/* =====================================================
   Lemmen Solutions — Technical Light System
   Tokens · Layout · Type · Components · Animations
   ===================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Neutrals — near-white surface, deep ink text */
  --bg:        #FAFAFA;
  --bg-elev:   #FFFFFF;
  --bg-soft:   #F4F4F5;
  --bg-deep:   #0A0A0A;

  --ink:       #0A0A0A;
  --ink-2:     #18181B;
  --ink-3:     #3F3F46;
  --ink-mute:  #71717A;
  --ink-faint: #A1A1AA;

  --line:        #E4E4E7;
  --line-soft:   #EEEEEF;
  --line-strong: #D4D4D8;

  /* Brand */
  --brand:        #39b6ff;
  --brand-deep:   #0E8FE0;
  --brand-soft:   #BCE3F7;
  --brand-tint:   #E6F4FD;
  --brand-shadow: #39b6ff33;

  /* Semantic */
  --success: #10B981;
  --danger:  #DC2626;

  /* Type */
  --font-sans: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Scale (tight, technical) */
  --fs-mono:  11.5px;
  --fs-body:  16px;
  --fs-lede:  18px;
  --fs-h3:    clamp(1.15rem, 0.95rem + 0.8vw, 1.4rem);
  --fs-h2:    clamp(1.975rem, 1.425rem + 2.4vw, 3.125rem);
  --fs-h1:    clamp(2.4rem, 1.5rem + 4.6vw, 4.75rem);

  --lh-tight: 1.02;
  --lh-snug:  1.15;
  --lh-body:  1.55;

  /* Space */
  --gutter:   clamp(20px, 4vw, 36px);
  --section:  clamp(72px, 8vw, 140px);

  /* Radii / shadows */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;

  --shadow-1: 0 1px 0 #0a0a0a0a, 0 1px 2px #0a0a0a0a;
  --shadow-2: 0 1px 0 #0a0a0a08, 0 12px 24px -10px #0a0a0a14;
  --shadow-brand: 0 0 0 1px #39b6ff44, 0 10px 30px -10px #39b6ff55;

  /* Motion */
  --ease-out:    cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.4, 0, .2, 1);
  --dur-fast: 160ms;
  --dur-base: 240ms;
  --dur-slow: 520ms;
}

/* =====================================================
   Intro Splash
   ===================================================== */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: grid;
  place-items: center;
  overflow: hidden;
  animation: splash-out 0.75s cubic-bezier(.65,0,.35,1) 1.5s forwards;
  will-change: opacity, transform;
}
html:not(.is-loading) .splash {
  display: none;
}

@keyframes splash-out {
  0%   { opacity: 1; transform: scale(1);   filter: blur(0px); }
  100% { opacity: 0; transform: scale(1.04); filter: blur(6px); visibility: hidden; }
}

.splash-mark {
  position: relative;
  z-index: 2;
  transform: translateY(0);
  animation: splash-lift 0.7s cubic-bezier(.65,0,.35,1) 1.1s forwards;
}
@keyframes splash-lift {
  to { transform: translateY(-12px) scale(0.98); }
}

.splash-logo {
  width: clamp(240px, 32vw, 420px);
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 40px #39b6ff22);
}

.splash-word { opacity: 0; }
.splash-word-1 { animation: splash-word-in 0.5s cubic-bezier(.16,1,.3,1) 0.35s forwards; }
.splash-word-2 { animation: splash-word-in 0.5s cubic-bezier(.16,1,.3,1) 0.55s forwards; }
@keyframes splash-word-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.splash-arc {
  stroke-dasharray: 210;
  stroke-dashoffset: 210;
  animation: splash-arc-draw 0.7s cubic-bezier(.65,0,.35,1) 0.15s forwards;
}
@keyframes splash-arc-draw {
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .splash,
  .splash-mark,
  .splash-word,
  .splash-arc {
    animation: none !important;
  }
  .splash { display: none; }
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
ol, ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--brand); color: var(--bg-elev); }

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  font-feature-settings: "ss01", "tnum";
  font-variant-numeric: tabular-nums;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--ink);
  color: var(--bg-elev);
  padding: 10px 14px;
  border-radius: var(--r-sm);
  z-index: 100;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: 16px; }
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Subtle dot grid background (replaces grain) */
.grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle at 1px 1px, #0a0a0a0a 1px, transparent 0);
  background-size: 24px 24px;
}
body > * { position: relative; z-index: 1; }

/* =====================================================
   Header / Nav
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}
.nav-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 24px;
  align-items: center;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
}
.logo {
  height: 38px;
  width: auto;
  display: block;
  transition: opacity var(--dur-base) var(--ease-out);
}
.brand:hover .logo { opacity: 0.78; }
.logo-sm { height: 34px; }

.primary-nav {
  display: flex;
  gap: 28px;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
}
.primary-nav a {
  position: relative;
  color: var(--ink-mute);
  padding: 6px 0;
}
.primary-nav a:hover,
.primary-nav a.is-active { color: var(--ink); }
.primary-nav a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--ease-out);
}
.primary-nav a:hover::after,
.primary-nav a.is-active::after {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 16px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: background 300ms var(--ease-out),
              box-shadow 300ms var(--ease-out),
              transform 300ms var(--ease-out);
}
.nav-cta:hover {
  background: var(--brand-deep);
  box-shadow: var(--shadow-brand);
  transform: translateY(-1px);
}
.nav-cta:hover svg {
  animation: arrow-spring 600ms cubic-bezier(.34,1.56,.64,1) forwards;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: 6px;
}
.nav-toggle span {
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--dur-base) var(--ease-out);
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 8px var(--gutter) 24px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.mobile-nav a {
  padding: 14px 0;
  font-size: 18px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav .mobile-cta {
  margin-top: 12px;
  color: var(--brand);
}

/* =====================================================
   Hero
   ===================================================== */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(72px, 10vw, 140px) 0 clamp(96px, 12vw, 180px);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

/* Full-hero aurora backdrop */
.hero-aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-aurora .aurora-1 {
  width: 720px;
  height: 720px;
  top: -220px;
  right: -160px;
  background: var(--brand);
  opacity: 0.28;
  filter: blur(120px);
  border-radius: 50%;
  position: absolute;
  animation: aurora-drift-a 24s var(--ease-in-out) infinite;
  mix-blend-mode: normal;
}
.hero-aurora .aurora-2 {
  width: 540px;
  height: 540px;
  bottom: -160px;
  left: 35%;
  background: var(--brand-soft);
  opacity: 0.55;
  filter: blur(110px);
  border-radius: 50%;
  position: absolute;
  animation: aurora-drift-b 28s var(--ease-in-out) infinite;
  mix-blend-mode: normal;
}
.hero-aurora .aurora-3 {
  width: 360px;
  height: 360px;
  top: 32%;
  left: -120px;
  background: var(--brand);
  opacity: 0.18;
  filter: blur(90px);
  border-radius: 50%;
  position: absolute;
  animation: aurora-drift-c 22s var(--ease-in-out) infinite;
  mix-blend-mode: normal;
}

.display {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: -0.035em;
  margin: 0 0 28px;
  color: var(--ink);
}
.display em {
  font-style: normal;
  color: var(--brand);
  font-weight: 600;
}
.display-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}
.display-line .line-inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 700ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: transform;
}
.display-line[data-reveal].is-in .line-inner { transform: translateY(0); }
.display-line[data-reveal] { opacity: 1; transform: none; }

.lede {
  max-width: 52ch;
  font-size: var(--fs-lede);
  line-height: 1.55;
  color: var(--ink-3);
  margin: 0 0 36px;
  letter-spacing: -0.005em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1;
  transition: background var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
  border: 1px solid transparent;
  cursor: pointer;
  will-change: transform;
}
.btn svg { transition: transform var(--dur-base) var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--brand);
  color: #fff;
  transition: background 300ms var(--ease-out),
              box-shadow 300ms var(--ease-out),
              transform 300ms var(--ease-out);
}
.btn-primary:hover {
  background: var(--brand-deep);
  box-shadow: var(--shadow-brand);
  transform: translateY(-1px);
}
.btn-primary:hover svg {
  animation: arrow-spring 600ms cubic-bezier(.34,1.56,.64,1) forwards;
}
@keyframes arrow-spring {
  0%  { transform: translateX(0); }
  50% { transform: translateX(7px); }
  100% { transform: translateX(3px); }
}
.btn-ghost {
  background: var(--bg-elev);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: color-mix(in srgb, var(--ink) 12%, transparent);
  background: color-mix(in srgb, var(--ink) 3%, transparent);
  color: var(--ink);
}
.btn-large {
  padding: 14px 20px;
  font-size: 15px;
}

/* Aurora drift keyframes (used by .hero-aurora .aurora-*) */
.aurora { will-change: transform; }
@keyframes aurora-drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(60px, 80px) scale(1.08); }
}
@keyframes aurora-drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-70px, -50px) scale(1.12); }
}
@keyframes aurora-drift-c {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(30px, -40px) scale(0.92); }
}


/* =====================================================
   Sections
   ===================================================== */
.section {
  padding: var(--section) 0;
  position: relative;
}
.section + .section {
  border-top: none;
}
.section + .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line-strong) 25%, var(--line-strong) 75%, transparent);
  pointer-events: none;
}

.section-head {
  max-width: 880px;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.section-num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--ink-mute);
}
.section-num .mono { color: var(--brand); }
.section-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  letter-spacing: -0.028em;
  margin: 0;
  max-width: 24ch;
  color: var(--ink);
}
.section-title em {
  font-style: normal;
  color: var(--brand);
  font-weight: 600;
}
.section-lede {
  max-width: 60ch;
  margin: 18px 0 0;
  color: var(--ink-3);
  font-size: 17px;
  line-height: 1.55;
}

/* ---------- Services (interactive spotlight) ---------- */
.services-spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.services-list {
  display: flex;
  flex-direction: column;
}

.service-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 24px 0 24px 0;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  border-bottom: 1px solid var(--line);
  opacity: 0.28;
  position: relative;
  transition: opacity 400ms var(--ease-out), padding-left 400ms var(--ease-out);
}
.service-item:first-child {
  border-top: 1px solid var(--line);
}
.service-item.is-active,
.service-item:hover {
  opacity: 1;
}
.service-item.is-active {
  padding-left: 20px;
}
.service-item.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  background: var(--brand);
  border-radius: 3px;
}

.service-idx { color: var(--brand); }

.service-name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(1.4rem, 1rem + 1.8vw, 2.2rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

/* Detail panel (right side) */
.services-detail {
  position: relative;
  min-height: 180px;
  padding-top: 24px;
}

.service-panel {
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 350ms var(--ease-out), transform 350ms var(--ease-out);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.service-panel.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
  top: 0;
}

.service-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-elev);
  color: var(--brand-deep);
}
.service-icon svg { width: 22px; height: 22px; }

.service-panel p {
  margin: 0;
  color: var(--ink-3);
  font-size: 16px;
  line-height: 1.6;
  max-width: 44ch;
}

/* ---------- Process ---------- */
/* ---------- Roadmap (vertical with SVG curve) ---------- */
.roadmap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 80px;
}

.roadmap-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.roadmap-curve {
  stroke: var(--line);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 6 8;
}
.roadmap-curve-progress {
  stroke: var(--brand);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.roadmap-step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 28px;
  padding: 32px 0;
  margin-left: -80px;
  position: relative;
}

.roadmap-node {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  position: relative;
  z-index: 2;
  font-size: 14px;
  color: var(--ink-mute);
  flex-shrink: 0;
  transition: border-color 500ms var(--ease-out),
              background 500ms var(--ease-out),
              color 500ms var(--ease-out),
              box-shadow 600ms var(--ease-out),
              transform 500ms var(--ease-out);
}
.roadmap-step.is-in .roadmap-node {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 0 0 8px var(--brand-tint);
  transform: scale(1.08);
}

.roadmap-card {
  padding: 28px 28px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--bg);
  transition: border-color 300ms var(--ease-out),
              box-shadow 300ms var(--ease-out),
              transform 300ms var(--ease-out);
}
.roadmap-card:hover {
  border-color: color-mix(in srgb, var(--ink) 18%, transparent);
  box-shadow: var(--shadow-2);
  transform: translateX(4px);
}

.roadmap-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}
.roadmap-card-head h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(1.1rem, 0.9rem + 0.8vw, 1.35rem);
  margin: 0;
  letter-spacing: -0.018em;
}
.roadmap-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-3);
  line-height: 1.6;
}
.roadmap-dur {
  color: var(--brand);
  font-size: 13px;
  white-space: nowrap;
  padding: 4px 12px;
  background: var(--brand-tint);
  border-radius: 999px;
}

/* ---------- Case / Projects ---------- */
.case {
  background: var(--bg-elev);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.case {
  position: relative;
}
.case:hover {
  border-color: color-mix(in srgb, var(--ink) 16%, transparent);
  box-shadow: 0 8px 30px -8px rgba(0,0,0,.1);
}
.case-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(1.15rem, 0.9rem + 1vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.case-desc {
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* Project showcase (laptop mockup, no card) */
.project-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.project-laptop {
  display: block;
  width: 100%;
  max-width: 800px;
  height: auto;
  margin: 0 auto 32px;
  object-fit: contain;
}
.project-info {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}


/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.about-body p {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-3);
  margin: 0 0 16px;
  max-width: 60ch;
}
.about-body p:first-child {
  font-family: var(--font-sans);
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  font-style: normal;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: -0.012em;
}
.about-principles {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.about-principles li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 15px;
}
.bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

/* Name highlight — curved underline via inline SVG */
.name-highlight {
  position: relative;
}
.name-highlight::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'%3E%3Cpath d='M0 6 Q50 -2 100 6' fill='none' stroke='%2339b6ff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center bottom;
  background-size: 100% 8px;
  transition: width 700ms cubic-bezier(.22,1,.36,1);
}
.is-in .name-highlight::after {
  width: 100%;
}

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: var(--font-sans);
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--ink);
  transition: color var(--dur-fast) var(--ease-out);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brand); }
.faq-chev {
  flex-shrink: 0;
  color: var(--ink-mute);
  transition: transform 400ms cubic-bezier(.34,1.56,.64,1), color var(--dur-fast) var(--ease-out);
}
.faq-item:hover .faq-chev { color: var(--brand); }
.faq-item[open] .faq-chev { transform: rotate(180deg); color: var(--brand); }
.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-base) var(--ease-out);
}
.faq-item[open] .faq-body { grid-template-rows: 1fr; }
.faq-body > * { overflow: hidden; }
.faq-body p {
  margin: 0;
  padding-bottom: 22px;
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.65;
  max-width: 62ch;
}

/* ---------- Contact ---------- */
.section-contact { padding-bottom: calc(var(--section) + 16px); }
.contact-card {
  background: color-mix(in srgb, var(--brand) 6%, var(--bg-elev));
  color: var(--ink);
  padding: clamp(48px, 6vw, 80px);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--brand) 14%, transparent);
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 360px at 90% -20%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 60%),
    radial-gradient(560px 320px at 0% 110%, color-mix(in srgb, var(--brand) 6%, transparent), transparent 60%);
  pointer-events: none;
}
.contact-card .section-num { color: var(--ink-mute); position: relative; }
.contact-card .section-num .mono { color: var(--brand); }
.contact-title {
  position: relative;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(2rem, 1.4rem + 3.6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.036em;
  margin: 0 0 20px;
  max-width: 16ch;
}
.contact-title em {
  font-style: normal;
  color: var(--brand);
}
.contact-lede {
  position: relative;
  max-width: 54ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-3);
  margin: 0 0 32px;
}
.contact-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}
.contact-card .btn-primary {
  background: var(--brand);
  color: #fff;
}
.contact-card .btn-primary:hover {
  background: var(--brand-deep);
  box-shadow: var(--shadow-brand);
  transform: translateY(-1px);
}
.contact-meta {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid color-mix(in srgb, var(--brand) 14%, transparent);
  margin: 0;
}
.contact-meta dt {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
.contact-meta dd { margin: 0; color: var(--ink); font-size: 14px; }

/* =====================================================
   Footer
   ===================================================== */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.footer-brand { max-width: 32ch; }
.footer-tag {
  margin: 12px 0 0;
  color: var(--ink-3);
  font-size: 14px;
}
.footer-col h4 {
  margin: 0 0 12px;
  color: var(--ink-mute);
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a, .footer-col li {
  color: var(--ink-3);
  font-size: 14px;
  transition: color var(--dur-fast) var(--ease-out);
}
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  color: var(--ink-mute);
  font-size: 13px;
}
.footer-bottom .mono { color: var(--ink-mute); }

/* =====================================================
   Section atmosphere (subtle background gradients)
   ===================================================== */

/* =====================================================
   Varied reveal styles per section
   ===================================================== */


.about-principles li {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
}
.about-body.is-in .about-principles li {
  opacity: 1;
  transform: translateX(0);
}
.about-body.is-in .about-principles li:nth-child(1) { transition-delay: 80ms; }
.about-body.is-in .about-principles li:nth-child(2) { transition-delay: 160ms; }
.about-body.is-in .about-principles li:nth-child(3) { transition-delay: 240ms; }
.about-body.is-in .about-principles li:nth-child(4) { transition-delay: 320ms; }

/* =====================================================
   Reveal animations
   ===================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 1024px) {
  .nav-cta { display: none; }
  .services-spotlight { grid-template-columns: 1fr 1fr; }
  .roadmap { padding-left: 72px; }
  .roadmap-step { margin-left: -72px; gap: 20px; }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .about-grid, .faq-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .primary-nav { display: none; }
  .nav-row { grid-template-columns: 1fr auto; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav.is-open { display: flex; }

  .hero { padding-top: 56px; }

  .services-spotlight { grid-template-columns: 1fr; }
  .services-detail { min-height: 0; }
  .service-panel { position: relative; top: 0; }
  .service-panel:not(.is-active) { display: none; }
  .service-item.is-active { padding-left: 16px; }
  .roadmap { padding-left: 60px; }
  .roadmap-step { margin-left: -60px; gap: 14px; padding: 24px 0; }
  .roadmap-node { width: 44px; height: 44px; font-size: 13px; }
  .roadmap-svg { width: 60px; }
  .roadmap-card { padding: 22px 20px; }

  .case-screenshot { padding: 16px 16px 0; }
  .case-spotlight .case-content { padding: 20px 20px 24px; }
  .case-compact .case-content { padding: 20px 20px 24px; }

  .contact-card { padding: 32px 24px; }
  .contact-meta { grid-template-columns: 1fr; gap: 14px; }

  .about-principles { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* =====================================================
   Motion preferences
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .display-line .line-inner { transform: none !important; }
  .aurora { animation: none !important; }
}

/* ---------- Legal pages ---------- */
.legal-page {
  padding: clamp(80px, 12vw, 160px) 0 clamp(60px, 8vw, 120px);
}
.legal-content {
  max-width: 640px;
}
.legal-back {
  display: inline-block;
  font-size: 14px;
  color: var(--ink-3);
  text-decoration: none;
  margin-bottom: 40px;
  transition: color 200ms var(--ease-out);
}
.legal-back:hover { color: var(--brand); }
.legal-content h1 {
  font-size: clamp(1.8rem, 1.5rem + 1.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 8px;
}
.legal-updated {
  font-size: 14px;
  color: var(--ink-3);
  margin: 0 0 48px;
}
.legal-content h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 36px 0 12px;
}
.legal-content p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-3);
  margin: 0 0 16px;
}
.legal-content a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}
