/* FoxDoo IT Solutions — landing page styles */

/* ─── Tokens ─────────────────────────────────────────────── */
:root {
  /* type */
  --ff-display: "Cabinet Grotesk", "Mona Sans", ui-sans-serif, system-ui, sans-serif;
  --ff-body: "General Sans", "Hanken Grotesk", "Noto Sans SC", ui-sans-serif, system-ui, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* color — light (default, warm cream) */
  --ink: #1d1814;
  --ink-2: #4a3f33;
  --ink-3: #7a6d5e;
  --paper: #fbf6ee;
  --paper-2: #f3e9d7;
  --paper-3: #ece0c8;
  --line: rgba(29,24,20,.12);
  --line-strong: rgba(29,24,20,.22);

  /* brand */
  --brand: #e8743f;       /* fox orange */
  --brand-ink: #1d1814;   /* text on brand */
  --brand-soft: #fbe6d6;
  --sage: #6b8e7f;
  --sage-soft: #d8e3dc;

  /* radii / shadow */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --shadow-sm: 0 1px 0 rgba(29,24,20,.04), 0 1px 2px rgba(29,24,20,.04);
  --shadow-md: 0 1px 2px rgba(29,24,20,.05), 0 8px 24px rgba(29,24,20,.06);
  --shadow-lg: 0 24px 60px -20px rgba(29,24,20,.18), 0 8px 24px -8px rgba(29,24,20,.10);

  /* layout */
  --container: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
}

html[data-theme="dark"] {
  --ink: #f6efe2;
  --ink-2: #c8bfb0;
  --ink-3: #8c8478;
  --paper: #14110e;
  --paper-2: #1d1916;
  --paper-3: #29231d;
  --line: rgba(246,239,226,.10);
  --line-strong: rgba(246,239,226,.20);
  --brand-soft: #2a1d14;
  --sage-soft: #1f2a26;
  --shadow-md: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.55);
}

/* font pairing variants */
html[data-fonts="soft"] {
  --ff-display: "Cabinet Grotesk", "Mona Sans", ui-sans-serif, system-ui, sans-serif;
  --ff-body: "General Sans", "Hanken Grotesk", "Noto Sans SC", ui-sans-serif, system-ui, sans-serif;
}
html[data-fonts="warm"] {
  --ff-display: "Mona Sans", ui-sans-serif, system-ui, sans-serif;
  --ff-body: "Hanken Grotesk", "Noto Sans SC", ui-sans-serif, system-ui, sans-serif;
}
html[data-fonts="editorial"] {
  --ff-display: "Instrument Serif", ui-serif, Georgia, serif;
  --ff-body: "Switzer", "Hanken Grotesk", "Noto Sans SC", system-ui, sans-serif;
}
html[data-fonts="technical"] {
  --ff-display: "Geist", ui-sans-serif, system-ui, sans-serif;
  --ff-body: "Geist", "Noto Sans SC", ui-sans-serif, system-ui, sans-serif;
}
html[data-fonts="humanist"] {
  --ff-display: "Familjen Grotesk", ui-sans-serif, system-ui, sans-serif;
  --ff-body: "Familjen Grotesk", "Noto Sans SC", ui-sans-serif, system-ui, sans-serif;
}
/* editorial: looser tracking + a touch of size for serif display */
html[data-fonts="editorial"] h1,
html[data-fonts="editorial"] h2,
html[data-fonts="editorial"] h3,
html[data-fonts="editorial"] h4 { font-weight: 400; letter-spacing: -0.015em; }
/* humanist: slightly tighter heading weight */
html[data-fonts="humanist"] h1,
html[data-fonts="humanist"] h2,
html[data-fonts="humanist"] h3,
html[data-fonts="humanist"] h4 { font-weight: 600; letter-spacing: -0.025em; }

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  transition: background-color .35s ease, color .35s ease;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ─── Bilingual visibility ──────────────────────────────── */
html[data-lang="en"] .lang-zh { display: none !important; }
html[data-lang="zh"] .lang-en { display: none !important; }

/* "both" mode — Chinese stacks under English everywhere, smaller + dimmer */
html[data-lang="both"] .lang-en,
html[data-lang="both"] .lang-zh { display: block; }
html[data-lang="both"] .lang-zh {
  color: color-mix(in oklab, currentColor 70%, transparent);
  font-weight: inherit;
  margin-top: .25em;
  font-size: .82em;
  line-height: 1.4;
  letter-spacing: 0;
}
/* Inline contexts — buttons, chips, eyebrow, badge-card mark — keep both
   languages on one line with a slim separator (these are short labels) */
html[data-lang="both"] .btn .lang-en,
html[data-lang="both"] .btn .lang-zh,
html[data-lang="both"] .btn-link .lang-en,
html[data-lang="both"] .btn-link .lang-zh,
html[data-lang="both"] .chip .lang-en,
html[data-lang="both"] .chip .lang-zh,
html[data-lang="both"] .eyebrow .lang-en,
html[data-lang="both"] .eyebrow .lang-zh,
html[data-lang="both"] .lang-switch .lang-en,
html[data-lang="both"] .lang-switch .lang-zh {
  display: inline; margin-top: 0; font-size: inherit; line-height: inherit;
}
html[data-lang="both"] .btn .lang-en + .lang-zh::before,
html[data-lang="both"] .btn-link .lang-en + .lang-zh::before,
html[data-lang="both"] .chip .lang-en + .lang-zh::before,
html[data-lang="both"] .eyebrow .lang-en + .lang-zh::before {
  content: " · "; opacity: .5;
}
html[data-lang="both"] .btn .lang-zh,
html[data-lang="both"] .btn-link .lang-zh,
html[data-lang="both"] .chip .lang-zh,
html[data-lang="both"] .eyebrow .lang-zh {
  color: color-mix(in oklab, currentColor 65%, transparent);
}
/* Nav links and footer link lists — stack EN above ZH for clarity */
html[data-lang="both"] .nav-links a .lang-en,
html[data-lang="both"] .nav-links a .lang-zh,
html[data-lang="both"] .footer ul a .lang-en,
html[data-lang="both"] .footer ul a .lang-zh,
html[data-lang="both"] .footer ul li > .lang-en,
html[data-lang="both"] .footer ul li > .lang-zh {
  display: block;
}
html[data-lang="both"] .nav-links a .lang-zh,
html[data-lang="both"] .footer ul a .lang-zh,
html[data-lang="both"] .footer ul li > .lang-zh {
  font-size: .78em; line-height: 1.3; margin-top: 1px;
  color: color-mix(in oklab, currentColor 60%, transparent);
}
/* Nav row needs a touch more vertical room for the stacked links */
html[data-lang="both"] .nav-links { gap: 24px; }
html[data-lang="both"] .nav-links a { line-height: 1.15; }
/* Hero h1 — keep accent / underline inline; only stack the parent block */
html[data-lang="both"] h1 .lang-zh,
html[data-lang="both"] h2 .lang-zh,
html[data-lang="both"] h3 .lang-zh,
html[data-lang="both"] h4 .lang-zh {
  font-size: .58em; line-height: 1.35; font-weight: 500; margin-top: .4em;
  color: var(--ink-2);
  letter-spacing: 0;
}
html[data-lang="both"] h3 .lang-zh,
html[data-lang="both"] h4 .lang-zh { font-size: .8em; }
/* Stat numbers + footer copyright + small meta lines: stay inline-block-stacked */
html[data-lang="both"] .stat .label .lang-zh,
html[data-lang="both"] .footer-bottom .lang-zh { display: inline; margin-top: 0; font-size: inherit; }
html[data-lang="both"] .footer-bottom span .lang-zh::before { content: " · "; opacity: .5; }
/* Hero meta + form row helper: inline */
html[data-lang="both"] .hero-meta .lang-en,
html[data-lang="both"] .hero-meta .lang-zh { display: inline; margin-top: 0; font-size: inherit; }
html[data-lang="both"] .hero-meta .lang-zh::before { content: " · "; opacity: .5; }
/* Form labels + selects: inline */
html[data-lang="both"] .cta-form label .lang-en,
html[data-lang="both"] .cta-form label .lang-zh { display: inline; margin-top: 0; font-size: inherit; }
html[data-lang="both"] .cta-form label .lang-zh::before { content: " · "; opacity: .5; }
/* Badge cards in hero: stack neatly inside the small card */
html[data-lang="both"] .badge-card .lang-zh { font-size: 11px; line-height: 1.3; margin-top: 2px; }

/* ─── Layout ─────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding: clamp(72px, 9vw, 140px) 0; }
.section-tight { padding: clamp(48px, 6vw, 96px) 0; }

/* ─── Type ───────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: clamp(48px, 7.2vw, 104px); letter-spacing: -0.035em; font-weight: 500; }
h2 { font-size: clamp(36px, 4.4vw, 64px); letter-spacing: -0.025em; }
h3 { font-size: clamp(22px, 1.8vw, 28px); letter-spacing: -0.015em; }
h4 { font-size: 18px; letter-spacing: -0.01em; }
p  { margin: 0; }
.lead { font-size: clamp(18px, 1.4vw, 22px); color: var(--ink-2); line-height: 1.55; max-width: 56ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-mono);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 500;
}
.eyebrow::before {
  content: ""; width: 18px; height: 1px; background: currentColor; display: inline-block;
}
.serif { color: var(--brand); }
.accent { color: var(--brand); font-size: 1.08em; }

em, i { font-style: normal; }
em { color: var(--brand); font-size: 1.08em; }

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  cursor: pointer; transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand);
  color: var(--brand-ink);
  border-color: var(--brand);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.04); }
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--paper-2); }
.btn-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink); border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px; font-weight: 500; transition: gap .2s ease, border-color .2s;
}
.btn-link:hover { gap: 10px; border-color: var(--brand); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ─── Nav ───────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 80;
  background: color-mix(in oklab, var(--paper) 85%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 24px;
}
.brand-mark {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--ff-display); font-weight: 600;
  font-size: 22px; letter-spacing: -0.02em;
}
.brand-mark img { height: 36px; width: auto; }
.brand-mark .badge {
  font-family: var(--ff-mono); font-size: 10px; letter-spacing: .12em;
  background: var(--paper-3); color: var(--ink-2);
  padding: 3px 8px; border-radius: 4px; text-transform: uppercase;
}
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links > a, .nav-links > .has-sub > a { color: var(--ink-2); font-size: 15px; font-weight: 500; transition: color .15s; }
.nav-links > a:hover, .nav-links > .has-sub > a:hover { color: var(--ink); }

/* ─── Nav dropdown ─────────────────────────────────────── */
.nav-links .has-sub { position: relative; display: inline-flex; align-items: center; }
.nav-links .has-sub > a { display: inline-flex; align-items: center; gap: 5px; }
.nav-links .has-sub > a::after {
  content: ""; width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .55; transition: transform .2s ease, opacity .2s ease;
}
.nav-links .has-sub:hover > a::after,
.nav-links .has-sub:focus-within > a::after { opacity: 1; transform: rotate(225deg) translateY(-1px); }

.nav-links .submenu {
  position: absolute; top: 100%; left: -16px;
  margin-top: 14px;
  min-width: 320px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.18), 0 2px 6px rgba(0,0,0,.06);
  padding: 10px;
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  z-index: 90;
}
/* Bridge over the gap so hover doesn't break */
.nav-links .submenu::before {
  content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px;
}
.nav-links .has-sub:hover .submenu,
.nav-links .has-sub:focus-within .submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition-delay: 0s;
}
.nav-links .submenu .sub-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 12px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
  font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3);
}
.nav-links .submenu .sub-head a {
  font-family: inherit; font-size: 10.5px; color: var(--brand);
  letter-spacing: .14em;
}
.nav-links .submenu a.sub-item {
  display: grid; grid-template-columns: 28px 1fr auto; align-items: center;
  gap: 12px;
  padding: 10px 12px; border-radius: 8px;
  color: var(--ink); font-size: 14.5px; font-weight: 500; line-height: 1.25;
  transition: background .15s ease;
}
.nav-links .submenu a.sub-item:hover { background: var(--paper-2); }
.nav-links .submenu a.sub-item .num {
  font-family: var(--ff-mono); font-size: 10.5px; color: var(--ink-3);
  letter-spacing: .12em;
}
.nav-links .submenu a.sub-item .desc {
  display: block; font-family: var(--ff-body); font-weight: 400;
  font-size: 12.5px; color: var(--ink-3); margin-top: 2px;
  letter-spacing: 0;
}
.nav-links .submenu a.sub-item .arrow {
  color: var(--brand); font-family: var(--ff-mono); font-size: 13px; opacity: 0;
  transition: opacity .15s ease, transform .15s ease;
}
.nav-links .submenu a.sub-item:hover .arrow { opacity: 1; transform: translateX(2px); }

/* Current page indicator — the ONLY highlight inside the submenu */
.nav-links .submenu a.sub-item[aria-current="page"] {
  background: color-mix(in oklab, var(--brand) 8%, transparent);
  box-shadow: inset 2px 0 0 var(--brand);
  font-weight: 600;
}
.nav-links .submenu a.sub-item[aria-current="page"]:hover {
  background: color-mix(in oklab, var(--brand) 12%, transparent);
}
.nav-links .submenu a.sub-item[aria-current="page"] .num { color: var(--brand); }
.nav-links .submenu a.sub-item[aria-current="page"] .arrow { opacity: 1; color: var(--brand); }

/* Stack EN/ZH sublabels in 'both' mode */
html[data-lang="both"] .nav-links .submenu a.sub-item .lang-en,
html[data-lang="both"] .nav-links .submenu a.sub-item .lang-zh { display: block; line-height: 1.2; }
html[data-lang="both"] .nav-links .submenu a.sub-item .lang-zh { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  display: inline-flex; padding: 3px; gap: 2px;
  background: var(--paper-2); border-radius: 999px; font-size: 12px;
  font-family: var(--ff-mono); letter-spacing: .08em;
}
.lang-switch button {
  border: 0; background: transparent; color: var(--ink-3);
  height: 26px; padding: 0 10px; border-radius: 999px; cursor: pointer;
  transition: background .15s, color .15s;
}
.lang-switch button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }

/* ─── Mobile nav (hamburger + drawer) ───────────────────── */
.nav-toggle { display: none; }
.mob-cta { display: none; } /* drawer-only CTA; mobile media query reveals it when menu open */
@media (max-width: 920px) {
  /* Hide desktop nav + CTA on mobile (drawer surfaces them) */
  .nav-links { display: none; }
  .nav-cta .btn-primary { display: none; }

  /* Hamburger button */
  .nav-toggle {
    display: inline-flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 5px; width: 40px; height: 40px;
    background: transparent; border: 1px solid var(--line);
    border-radius: 10px; cursor: pointer; padding: 0;
    transition: border-color .15s ease, background .15s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-toggle:hover { border-color: var(--line-strong); background: var(--paper-2); }
  .nav-toggle span {
    width: 18px; height: 1.6px;
    background: var(--ink);
    border-radius: 1px;
    transition: transform .22s ease, opacity .15s ease;
  }
  body.menu-open .nav-toggle {
    border-color: var(--brand);
    background: color-mix(in oklab, var(--brand) 8%, var(--paper));
  }
  body.menu-open .nav-toggle span { background: var(--ink); }
  body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
  body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

  /* Lock page scroll when drawer open */
  body.menu-open { overflow: hidden; }

  /* Drawer — reuses .nav-links structure, restyled when body has .menu-open.
     NOTE: header has backdrop-filter which creates a containing block for
     fixed children, so we use explicit height instead of top+bottom. */
  body.menu-open .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: fixed; left: 0; right: 0; top: 76px;
    height: calc(100vh - 76px);
    background: var(--paper);
    padding: 18px 22px 32px;
    z-index: 90;
    overflow-y: auto; overscroll-behavior: contain;
    align-items: stretch;
    animation: mob-slide .22s ease-out;
  }
  @keyframes mob-slide {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Each top-level menu link */
  body.menu-open .nav-links > a,
  body.menu-open .nav-links > .has-sub {
    width: 100%;
    border-bottom: 1px solid var(--line);
  }
  body.menu-open .nav-links > a {
    padding: 18px 4px;
    font-family: var(--ff-display);
    font-size: 22px; font-weight: 500; letter-spacing: -0.02em;
    color: var(--ink);
    display: block;
  }
  body.menu-open .nav-links > a[aria-current="page"] { color: var(--brand); }
  body.menu-open .nav-links > a[aria-current="page"]::before { display: none; }

  /* Services parent on mobile — show as a section header (not a link with dropdown) */
  body.menu-open .nav-links .has-sub {
    position: static; display: block; padding-bottom: 18px;
  }
  body.menu-open .nav-links .has-sub > a {
    padding: 18px 4px 12px;
    font-family: var(--ff-display);
    font-size: 22px; font-weight: 500; letter-spacing: -0.02em;
    color: var(--ink);
    display: block;
  }
  body.menu-open .nav-links .has-sub > a::after { display: none; }
  body.menu-open .nav-links .has-sub > a[aria-current="page"] { color: var(--brand); }
  body.menu-open .nav-links .has-sub > a[aria-current="page"]::before { display: none; }

  /* Submenu always expanded on mobile */
  body.menu-open .nav-links .submenu {
    position: static; opacity: 1; visibility: visible;
    transform: none; box-shadow: none;
    background: var(--paper-2); border: 1px solid var(--line);
    border-radius: var(--r-md);
    min-width: 0; margin: 0;
    padding: 6px 8px;
    transition: none;
  }
  body.menu-open .nav-links .submenu::before { display: none; }
  body.menu-open .nav-links .submenu .sub-head {
    padding: 8px 10px 8px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 4px;
    font-size: 10px;
  }
  body.menu-open .nav-links .submenu a.sub-item {
    padding: 12px 10px; font-size: 15px;
    gap: 10px;
  }
  body.menu-open .nav-links .submenu a.sub-item .num { font-size: 10.5px; }
  body.menu-open .nav-links .submenu a.sub-item .desc { font-size: 11.5px; }
  body.menu-open .nav-links .submenu a.sub-item .arrow { opacity: 1; }

  /* CTA at end of drawer — global rule hides by default, this reveals it inside the open drawer */
  body.menu-open .nav-links .mob-cta {
    display: flex;
    margin-top: 22px;
    justify-content: center; align-items: center;
    width: 100%; padding: 18px 22px;
    background: var(--brand); color: var(--paper);
    border-radius: 999px;
    font-family: var(--ff-display); font-weight: 500;
    font-size: 17px; letter-spacing: -0.01em;
    border: none; box-shadow: var(--shadow-md);
    gap: 10px;
  }
  body.menu-open .nav-links .mob-cta .arrow {
    font-family: var(--ff-mono); font-size: 17px;
  }
}

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: flex; flex-direction: column;
  padding: clamp(28px, 3.5vh, 44px) 0 0;
  overflow: hidden;
}
.hero > .container { flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; padding-bottom: clamp(28px, 3.5vw, 48px); }

/* Variant A — split editorial */
.hero[data-variant="split"] .hero-grid {
  display: grid; grid-template-columns: 1.15fr .9fr; gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.hero[data-variant="split"] .hero-art { aspect-ratio: 1 / 1.05; }

/* Variant B — centered */
.hero[data-variant="centered"] .hero-grid {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 40px;
}
.hero[data-variant="centered"] .hero-text { max-width: 22ch; }
.hero[data-variant="centered"] .hero-text .lead { margin-left: auto; margin-right: auto; }
.hero[data-variant="centered"] .hero-cta { justify-content: center; }
.hero[data-variant="centered"] .hero-art { display: none; }
.hero[data-variant="centered"] .hero-strip { width: 100%; }

/* Variant C — magazine */
.hero[data-variant="magazine"] .hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto;
  gap: clamp(24px, 4vw, 56px) clamp(32px, 5vw, 80px);
  align-items: end;
}
.hero[data-variant="magazine"] .hero-text { grid-column: 1 / 2; grid-row: 1 / 3; }
.hero[data-variant="magazine"] .hero-art { grid-column: 2 / 3; grid-row: 1 / 2; aspect-ratio: 1 / 1.1; }
.hero[data-variant="magazine"] .hero-side { grid-column: 2 / 3; grid-row: 2 / 3; }
.hero[data-variant="magazine"] h1 { font-size: clamp(56px, 9vw, 132px); }

@media (max-width: 920px) {
  .hero[data-variant="split"] .hero-grid,
  .hero[data-variant="magazine"] .hero-grid { grid-template-columns: 1fr; }
  .hero[data-variant="magazine"] .hero-art { grid-column: 1; grid-row: auto; }
  .hero[data-variant="magazine"] .hero-side { grid-column: 1; grid-row: auto; }
}

.hero h1 { color: var(--ink); font-size: clamp(40px, 5.8vw, 84px); word-break: keep-all; }
.hero h1 .accent { color: var(--brand); font-size: 1.08em; }
.hero h1 .underline { position: relative; display: inline-block; }
.hero h1 .underline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .14em;
  background: var(--brand); opacity: .35; border-radius: 3px;
}
.hero-text { display: flex; flex-direction: column; gap: 28px; }
.hero-text .lead { font-size: clamp(18px, 1.5vw, 22px); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-meta { display: flex; gap: 8px; align-items: center; color: var(--ink-3); font-size: 13px; }
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: #4caf50; box-shadow: 0 0 0 4px rgba(76,175,80,.18); }

/* Hero artwork — abstract fox-orange composition w/ cream layers */
.hero-art {
  position: relative; border-radius: var(--r-xl);
  background:
    radial-gradient(120% 90% at 80% 10%, color-mix(in oklab, var(--brand) 30%, var(--paper-2)) 0%, transparent 60%),
    radial-gradient(80% 70% at 20% 90%, color-mix(in oklab, var(--sage) 25%, var(--paper-2)) 0%, transparent 60%),
    var(--paper-2);
  overflow: hidden;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line);
}
.hero-art .badge-card {
  position: absolute; background: var(--paper); color: var(--ink);
  border-radius: var(--r-md); padding: 14px 16px; box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
  font-size: 13px;
}
.hero-art .badge-card .ico {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
.hero-art .badge-card.tl { top: 8%; left: -4%; }
.hero-art .badge-card.br { bottom: 10%; right: -6%; }
.hero-art .badge-card.mid { top: 44%; right: 6%; background: var(--ink); color: var(--paper); border-color: transparent; }
.hero-art .badge-card.mid .ico { background: rgba(232,116,63,.2); color: var(--brand); }

.hero-art .core {
  position: absolute; inset: 16% 20%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, color-mix(in oklab, var(--brand) 80%, white 20%), var(--brand) 60%, color-mix(in oklab, var(--brand) 50%, var(--ink) 50%));
  box-shadow: 0 30px 80px -20px rgba(232,116,63,.45), inset 0 -20px 60px rgba(29,24,20,.18);
}
.hero-art .ring {
  position: absolute; border-radius: 50%; border: 1px dashed var(--line-strong);
  pointer-events: none;
}
.hero-art .ring.r1 { inset: 6%; }
.hero-art .ring.r2 { inset: 30%; border-style: solid; border-color: var(--line); }

/* ─── Hero — tech variant (dark dashboard) ─────────────── */
.hero-art-tech { display: none; }
.hero[data-variant="tech"] .hero-grid {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.hero[data-variant="tech"] .hero-art-warm { display: none; }
.hero[data-variant="tech"] .hero-art-tech { display: block; }
.hero[data-variant="tech"] .hero-art {
  background:
    radial-gradient(120% 100% at 80% 0%, rgba(232,116,63,.22) 0%, transparent 55%),
    radial-gradient(80% 80% at 10% 100%, rgba(107,142,127,.18) 0%, transparent 60%),
    linear-gradient(180deg, #0c0a09 0%, #15110e 60%, #1a1612 100%);
  border: 1px solid rgba(255,255,255,.06);
  aspect-ratio: 1 / 1.05;
  box-shadow: 0 30px 90px -30px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.04);
}
@media (max-width: 920px) {
  .hero[data-variant="tech"] .hero-grid { grid-template-columns: 1fr; }
}

.hero-art-tech { position: absolute; inset: 0; overflow: hidden; border-radius: var(--r-xl); }

/* grid background */
.hero-art-tech .grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(80% 80% at 50% 45%, black 0%, transparent 95%);
          mask-image: radial-gradient(80% 80% at 50% 45%, black 0%, transparent 95%);
}

/* scanning beam */
.hero-art-tech .scan {
  position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,116,63,.55), transparent);
  animation: hero-scan 7s linear infinite;
  filter: blur(.5px);
}
@keyframes hero-scan {
  0% { top: 6%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 96%; opacity: 0; }
}

/* connection lines */
.hero-art-tech .lines {
  position: absolute; inset: 0; pointer-events: none; width: 100%; height: 100%;
}
.hero-art-tech .lines path {
  stroke: rgba(232,116,63,.35); stroke-width: 1; fill: none;
  stroke-dasharray: 4 6;
  animation: hero-dash 24s linear infinite;
}
.hero-art-tech .lines circle {
  fill: var(--brand);
  filter: drop-shadow(0 0 6px rgba(232,116,63,.7));
}
@keyframes hero-dash { to { stroke-dashoffset: -240; } }

/* terminal card */
.term-card {
  position: absolute; left: 5%; top: 26%; right: 8%;
  background: rgba(13,10,8,.96);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.7);
  overflow: hidden;
  font-family: var(--ff-mono);
  font-size: 12.5px; line-height: 1.75;
  color: #d8d2c5;
}
.term-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 11px; color: rgba(216,210,197,.55);
  letter-spacing: .04em;
}
.term-bar .tdot { width: 10px; height: 10px; border-radius: 50%; }
.term-bar .tdot.r { background: #f56565; }
.term-bar .tdot.y { background: #f6c360; }
.term-bar .tdot.g { background: #54c989; }
.term-bar .tfile { margin-left: 10px; }
.term-body { padding: 14px 18px 18px; }
.term-body .ln { display: block; opacity: 0; animation: hero-line-in .35s forwards; }
.term-body .ln:nth-child(1) { animation-delay: .15s; }
.term-body .ln:nth-child(2) { animation-delay: .35s; }
.term-body .ln:nth-child(3) { animation-delay: .55s; }
.term-body .ln:nth-child(4) { animation-delay: .75s; }
.term-body .ln:nth-child(5) { animation-delay: .95s; }
.term-body .ln:nth-child(6) { animation-delay: 1.20s; }
.term-body .ln:nth-child(7) { animation-delay: 1.55s; }
.term-body .ln:nth-child(8) { animation-delay: 1.95s; }
.term-body .ln:nth-child(9) { animation-delay: 2.35s; }
@keyframes hero-line-in { to { opacity: 1; } }
.term-body .tab { padding-left: 18px; }
.term-body .kw { color: #c89aff; }
.term-body .fn { color: #80c8ff; }
.term-body .str { color: #a8d77a; }
.term-body .op, .term-body .brace { color: #d8d2c5; }
.term-body .cmt { color: rgba(216,210,197,.42); }
.term-body .ok { color: #54c989; }
.term-body .ok::before { content: "✓ "; }
.term-body .running { color: var(--brand); }
.term-body .running::before { content: "● "; }
.term-body .cursor { display:inline-block; width: 7px; height: 14px; vertical-align: -2px; background: var(--brand); animation: hero-blink 1s steps(1) infinite; margin-left: 4px; border-radius: 1px; }
@keyframes hero-blink { 50% { opacity: 0; } }

/* metric / sparkline card */
.metric-card {
  position: absolute; right: 6%; top: 6%;
  background: rgba(28,22,18,.85);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
          backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 14px 16px;
  width: 46%; max-width: 220px;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,.6);
}
.metric-card .label {
  display: block; font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.metric-card .metric {
  display: block; margin-top: 6px;
  font-family: var(--ff-display); font-size: 34px; font-weight: 500;
  letter-spacing: -.02em; color: #fff; line-height: 1;
}
.metric-card .metric .unit { color: var(--brand); }
.metric-card .spark { display: block; margin-top: 10px; width: 100%; height: 32px; overflow: visible; }
.metric-card .spark .ln {
  stroke: var(--brand); stroke-width: 1.5; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(232,116,63,.5));
  stroke-dasharray: 200; stroke-dashoffset: 200;
  animation: hero-spark 2.4s ease-out .6s forwards;
}
.metric-card .spark .area {
  fill: url(#sparkfill);
  opacity: 0; animation: hero-fade 1.2s ease-out 1.5s forwards;
}
@keyframes hero-spark { to { stroke-dashoffset: 0; } }
@keyframes hero-fade { to { opacity: 1; } }

/* ping / deploy card */
.ping-card {
  position: absolute; right: 6%; bottom: 7%;
  background: rgba(255,255,255,.05);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
          backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex; gap: 12px; align-items: center;
  font-size: 12px; color: #fff;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,.6);
}
.ping-card .pulse {
  position: relative; flex-shrink: 0;
  width: 9px; height: 9px; border-radius: 50%;
  background: #54c989;
  box-shadow: 0 0 10px rgba(84,201,137,.6);
}
.ping-card .pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid #54c989; opacity: 0;
  animation: hero-pulse 1.8s ease-out infinite;
}
@keyframes hero-pulse {
  0% { transform: scale(.5); opacity: .9; }
  100% { transform: scale(2.6); opacity: 0; }
}
.ping-card b { font-weight: 600; letter-spacing: -.005em; }
.ping-card .meta {
  color: rgba(255,255,255,.55);
  font-family: var(--ff-mono); font-size: 11px;
}
.ping-card .sep { color: rgba(255,255,255,.25); }

/* stack chips removed — terminal already enumerates the stack */
.stack-chips { display: none; }

/* "logos" trust strip */
.hero-strip {
  margin-top: clamp(48px, 5vw, 80px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
}
.hero-strip .label { color: var(--ink-3); font-size: 13px; font-family: var(--ff-mono); letter-spacing: .1em; text-transform: uppercase; }
.hero-strip .marks { display: flex; gap: 32px; flex-wrap: wrap; align-items: center; opacity: .65; }
.hero-strip .mark { font-family: var(--ff-display); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-2); }

/* ─── Section header ───────────────────────────────────── */
.section-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end;
  margin-bottom: 64px;
}
.section-head .lead { max-width: 48ch; }
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; } }

/* ─── Services ─────────────────────────────────────────── */
.services-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px;
}
.svc {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex; flex-direction: column; gap: 20px;
  min-height: 320px;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.svc:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.svc .num {
  font-family: var(--ff-mono); font-size: 12px; color: var(--ink-3); letter-spacing: .1em;
}
.svc h3 { font-weight: 500; }
.svc p { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.svc .ico {
  width: 56px; height: 56px; border-radius: var(--r-md);
  background: var(--paper); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--brand);
}
.svc-feat {
  grid-column: span 8;
  background: var(--ink); color: var(--paper);
  min-height: 320px;
  border-color: transparent;
  background-image: radial-gradient(80% 80% at 80% 20%, rgba(232,116,63,.30), transparent 60%);
}
.svc-feat h3, .svc-feat p { color: var(--paper); }
.svc-feat p { color: color-mix(in oklab, var(--paper) 75%, transparent); }
.svc-feat .ico { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); color: var(--brand); }
.svc-feat .num { color: color-mix(in oklab, var(--paper) 60%, transparent); }
.svc-half { grid-column: span 6; } /* legacy, no longer used in homepage grid */
.svc-third { grid-column: span 4; }
@media (min-width: 1200px) {
  .svc-tags { row-gap: 6px; }
}
.svc-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.svc-tags span { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--paper); color: var(--ink-2); border: 1px solid var(--line); }
.svc-feat .svc-tags span { background: rgba(255,255,255,.08); color: color-mix(in oklab, var(--paper) 80%, transparent); border-color: rgba(255,255,255,.12); }

@media (max-width: 1100px) and (min-width: 701px) {
  .svc-feat { grid-column: span 12; }
  .svc-third { grid-column: span 6; }
  .svc-half { grid-column: span 6; }
  /* 7 non-featured cards in a 2-col grid leaves an orphan; let the last one span full width. */
  .services-grid > .svc:last-child { grid-column: span 12; }
}
@media (max-width: 700px) {
  .svc-feat, .svc-half, .svc-third { grid-column: span 12; }
}

/* ─── Why ──────────────────────────────────────────────── */
.why {
  background: var(--paper-2);
  border-radius: var(--r-xl);
  padding: clamp(48px, 6vw, 88px);
  border: 1px solid var(--line);
}

/* Why-head — NOC verification-passport */
.why-head { margin-bottom: 48px; }
.why-head-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  flex-wrap: wrap; gap: 12px;
}
.why-head-stamp {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink-2);
}
.why-head-stamp .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #5BD076;
  box-shadow: 0 0 0 4px rgba(91,208,118,.18);
  animation: whyDotPulse 2.4s ease-in-out infinite;
}
@keyframes whyDotPulse {
  0%, 100% { opacity: 1 }
  50% { opacity: .55 }
}
.why-head-cert { color: var(--brand); font-weight: 500; }
.why-head-main {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px;
  align-items: end;
}
.why-head-main h2 { margin-top: 0; }
.why-head-chips {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px;
}
.why-chip {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--brand) 7%, var(--paper));
  border: 1px solid rgba(232,116,63,.32);
  font-family: 'Plus Jakarta Sans', 'Noto Sans SC', sans-serif;
  font-size: 12.5px;
  color: var(--ink-2);
}
.why-chip b {
  color: var(--brand); font-weight: 600;
  font-size: 14px; letter-spacing: 0;
}
@media (max-width: 900px) {
  .why-head-main { grid-template-columns: 1fr; }
}
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 2.4vw, 40px);
}
.why-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 28px 30px;
  display: flex; flex-direction: column; gap: 6px;
  position: relative;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.why-item:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.why-item .why-tag {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px;
}
.why-item h3 { font-weight: 500; font-size: 22px; line-height: 1.2; letter-spacing: -0.015em; }
.why-item .big {
  font-family: var(--ff-display);
  font-size: clamp(44px, 4.4vw, 64px); font-weight: 500;
  letter-spacing: -0.04em; line-height: 1; color: var(--brand);
  margin-bottom: 12px;
}
.why-item .big .unit { font-size: .55em; color: var(--ink-3); margin-left: 4px; letter-spacing: 0; }
.why-item p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; margin-top: 8px; }
.why-item .why-foot {
  margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line);
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: .08em;
  color: var(--ink-3); text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.why-item .why-foot .live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #4caf50;
  box-shadow: 0 0 0 3px rgba(76,175,80,.18);
}
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* compare strip */
.why-compare {
  margin-top: clamp(48px, 5vw, 72px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.why-compare-head {
  padding: 18px clamp(20px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3);
}
.why-compare-head .lhs { display: flex; align-items: center; gap: 10px; }
.why-compare-head .lhs .live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 30%, transparent);
}
.why-compare table { width: 100%; border-collapse: collapse; }
.why-compare th, .why-compare td {
  padding: 18px clamp(16px, 2.4vw, 28px); text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px; vertical-align: middle;
}
.why-compare thead th {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 500; background: var(--paper-2);
  border-bottom: 1px solid var(--line-strong);
}
.why-compare tbody tr:last-child td { border-bottom: 0; }
.why-compare td:first-child {
  font-family: var(--ff-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); width: 22%;
}
.why-compare td.col-fox {
  background: color-mix(in oklab, #5BD076 14%, var(--paper));
  color: var(--ink); font-weight: 500;
  border-left: 1px solid color-mix(in oklab, #047857 35%, transparent);
  border-right: 1px solid color-mix(in oklab, #047857 35%, transparent);
}
.why-compare th.col-fox {
  background: color-mix(in oklab, #5BD076 22%, var(--paper));
  color: var(--ink); font-weight: 600;
  border-left: 1px solid color-mix(in oklab, #047857 35%, transparent);
  border-right: 1px solid color-mix(in oklab, #047857 35%, transparent);
}
.why-compare td.muted { color: var(--ink-3); }
@media (max-width: 700px) {
  .why-compare table, .why-compare thead, .why-compare tbody, .why-compare tr, .why-compare th, .why-compare td { display: block; }
  .why-compare thead { display: none; }
  .why-compare tbody tr { padding: 16px 20px; border-bottom: 1px solid var(--line); }
  .why-compare tbody tr:last-child { border-bottom: 0; }
  .why-compare td { border: 0; padding: 4px 0; font-size: 14px; }
  .why-compare td:first-child { font-size: 11px; margin-bottom: 6px; }
  .why-compare td::before { content: attr(data-h) " · "; color: var(--ink-3); font-family: var(--ff-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
  .why-compare td:first-child::before { content: ""; }
  .why-compare td.col-fox { border-left: 0; border-right: 0; }
}

/* won't-do list */
.wont-do {
  margin-top: clamp(48px, 5vw, 72px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px;
}
.wont-do-head {
  grid-column: 1 / -1;
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-bottom: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.wont-do-head h4 {
  font-family: var(--ff-display); font-weight: 500; font-size: clamp(22px, 2.2vw, 32px);
  letter-spacing: -0.02em; line-height: 1.15;
}
.wont-do-head h4 .accent { color: var(--brand); font-size: 1.08em; }
.wont-do-head .meta {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
.wont-do-item {
  display: flex; gap: 14px; padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}
.wont-do-item:nth-last-child(-n+2) { border-bottom: 0; }
.wont-do-item .x {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  background: color-mix(in oklab, var(--brand) 12%, var(--paper));
  color: var(--brand); display: grid; place-items: center;
  font-family: var(--ff-mono); font-size: 13px; font-weight: 600;
  margin-top: 2px;
}
.wont-do-item .body strong {
  display: block; font-weight: 500; font-size: 16px; letter-spacing: -0.01em;
  text-decoration: line-through; text-decoration-color: color-mix(in oklab, var(--brand) 50%, transparent);
  text-decoration-thickness: 1.5px; text-underline-offset: 2px;
}
.wont-do-item .body p { color: var(--ink-2); font-size: 14px; margin-top: 4px; line-height: 1.55; }
@media (max-width: 720px) { .wont-do { grid-template-columns: 1fr; } .wont-do-item:nth-last-child(2) { border-bottom: 1px dashed var(--line); } }

/* why-foot bar */
.why-bottom-bar {
  margin-top: clamp(40px, 4vw, 56px);
  padding: 20px 24px; border-radius: var(--r-md);
  background: var(--ink); color: var(--paper);
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  flex-wrap: wrap;
}
.why-bottom-bar p { font-family: var(--ff-display); font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; max-width: 60ch; }
.why-bottom-bar p .accent { color: var(--brand); font-size: 1.08em; }
.why-bottom-bar a {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--paper); border-bottom: 1px solid color-mix(in oklab, var(--paper) 40%, transparent);
  padding-bottom: 2px; font-weight: 500; font-size: 14.5px;
  font-family: var(--ff-mono); text-transform: uppercase; letter-spacing: .12em;
  transition: gap .2s ease, border-color .2s ease;
}
.why-bottom-bar a:hover { gap: 12px; border-color: var(--brand); }

/* ─── Process ──────────────────────────────────────────── */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.proc-step {
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px; border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.proc-step .num {
  font-family: var(--ff-mono); font-size: 12px; color: var(--brand);
  letter-spacing: .12em;
}
.proc-step h4 { font-size: 22px; font-weight: 500; line-height: 1.2; }
.proc-step p { font-size: 14px; color: var(--ink-2); }
.proc-step::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand) 0 30%, transparent 30%);
  opacity: .9;
}
.proc-step:nth-child(1)::after { background: linear-gradient(90deg, var(--brand) 0 25%, transparent 25%); }
.proc-step:nth-child(2)::after { background: linear-gradient(90deg, var(--brand) 0 50%, transparent 50%); }
.proc-step:nth-child(3)::after { background: linear-gradient(90deg, var(--brand) 0 75%, transparent 75%); }
.proc-step:nth-child(4)::after { background: var(--brand); }
@media (max-width: 900px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

/* ─── Stats ────────────────────────────────────────────── */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { padding: 36px 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.stat:last-child { border-right: 0; }
.stat .num {
  font-family: var(--ff-display);
  font-size: clamp(44px, 5vw, 68px); font-weight: 500;
  letter-spacing: -0.03em; line-height: 1;
}
.stat .num .unit { color: var(--brand); }
.stat .label { color: var(--ink-2); font-size: 14px; max-width: 22ch; }
@media (max-width: 800px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ─── Testimonial ─────────────────────────────────────── */
.testimonial-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.quote {
  background: var(--brand-soft);
  border-radius: var(--r-xl);
  padding: clamp(40px, 5vw, 72px);
  position: relative;
}
.quote .mark {
  font-family: var(--ff-display); font-size: 120px; line-height: .6;
  color: var(--brand); position: absolute; top: 32px; left: 32px; opacity: .4;
  font-weight: 500;
}
.quote blockquote {
  margin: 0; padding-top: 60px;
  font-family: var(--ff-display); font-size: clamp(22px, 2vw, 30px);
  line-height: 1.35; letter-spacing: -0.015em; color: var(--ink); font-weight: 500;
}
.quote .who { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.quote .avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--brand) 0%, var(--sage) 100%); border: 2px solid var(--paper); }
.quote .who-meta { font-size: 14px; }
.quote .who-meta b { display: block; font-weight: 600; }
.quote .who-meta span { color: var(--ink-2); }

.testi-card {
  background: var(--paper-2); border-radius: var(--r-xl);
  padding: clamp(32px, 4vw, 56px); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 24px; justify-content: space-between;
}
.testi-card .big {
  font-family: var(--ff-display); font-size: clamp(48px, 5vw, 72px);
  font-weight: 500; letter-spacing: -0.03em; line-height: 1; color: var(--brand);
}
.testi-card p { color: var(--ink-2); font-size: 16px; line-height: 1.5; }

@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* ─── Industries ──────────────────────────────────────── */
.industries { display: flex; flex-wrap: wrap; gap: 12px; }
.industries .chip {
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 15px;
  background: var(--paper);
  display: inline-flex; align-items: center; gap: 10px;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease;
  position: relative;
  cursor: default;
}
.industries .chip:hover {
  background: color-mix(in oklab, var(--brand) 8%, var(--paper));
  color: var(--ink);
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(232,116,63,.22), 0 0 0 1px rgba(232,116,63,.35);
}
.industries .chip .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand);
  transition: transform .25s ease, box-shadow .35s ease;
}
.industries .chip:hover .dot {
  transform: scale(1.35);
  box-shadow: 0 0 0 4px rgba(232,116,63,.18), 0 0 10px rgba(232,116,63,.65);
  animation: chipDotPulse 1.6s ease-in-out infinite;
}
@keyframes chipDotPulse {
  0%, 100% { opacity: 1 }
  50% { opacity: .55 }
}

/* ─── CTA banner ──────────────────────────────────────── */
.cta-banner {
  background: var(--ink); color: var(--paper);
  border-radius: var(--r-xl);
  padding: clamp(48px, 6vw, 88px);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 140%;
  background: radial-gradient(closest-side, rgba(232,116,63,.35), transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { color: var(--paper); position: relative; }
.cta-banner h2 .accent { color: var(--brand); font-size: 1.08em; }
.cta-banner p { color: color-mix(in oklab, var(--paper) 75%, transparent); margin-top: 18px; max-width: 48ch; }
/* Ghost btn inside dark cta-banner — hover stays readable (default :hover flips to a light bg which hides the white text) */
.cta-banner .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--paper);
}
.cta-form {
  background: rgba(255,255,255,.06); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg); padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
}
.cta-form label { font-size: 12px; font-family: var(--ff-mono); letter-spacing: .1em; text-transform: uppercase; color: color-mix(in oklab, var(--paper) 60%, transparent); }
.cta-form .field {
  display: flex; flex-direction: column; gap: 6px;
}
.cta-form input, .cta-form select {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.14);
  color: var(--paper); border-radius: 10px; padding: 12px 14px; font: inherit;
  outline: none; transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.cta-form select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'><path d='M2.5 4.5L6 8L9.5 4.5' stroke='%23e8743f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 12px;
  padding-right: 38px; cursor: pointer;
}
.cta-form select::-ms-expand { display: none; }
.cta-form input::placeholder { color: color-mix(in oklab, var(--paper) 40%, transparent); }
.cta-form input:hover, .cta-form select:hover { background-color: rgba(255,255,255,.07); border-color: rgba(255,255,255,.22); }
.cta-form input:focus, .cta-form select:focus { border-color: var(--brand); background-color: rgba(232,116,63,.05); box-shadow: 0 0 0 3px rgba(232,116,63,.14); }
.cta-form select option { color: var(--ink); background: var(--paper); padding: 8px 10px; }

/* ─── Form submit handler (fx-form.js) ─────────────────── */
.fx-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.fx-form-status {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.55;
  font-family: 'Plus Jakarta Sans', 'Noto Sans SC', sans-serif;
  display: none;
}
.fx-form-status.is-busy,
.fx-form-status.is-ok,
.fx-form-status.is-err { display: block; }
.fx-form-status.is-ok {
  background: rgba(58, 204, 160, .12);
  border: 1px solid rgba(58, 204, 160, .35);
  color: #3acca0;
}
.fx-form-status.is-ok b { color: #3acca0; margin-right: 4px; }
.fx-form-status.is-ok code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  background: rgba(58, 204, 160, .18);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
}
.fx-form-status.is-err {
  background: rgba(185, 28, 28, .12);
  border: 1px solid rgba(185, 28, 28, .35);
  color: #f87171;
}
.fx-form-status.is-busy {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
  color: color-mix(in oklab, var(--paper) 70%, transparent);
}
.cf-turnstile {
  min-height: 65px;
}
.cta-form .btn-primary { width: 100%; justify-content: center; height: 52px; }
.cta-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 800px) { .cta-banner { grid-template-columns: 1fr; } }

/* CTA right column — "often paired with" sister-services list */
.cta-related {
  position: relative;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg);
  padding: 22px 22px 18px;
}
.cta-related-head {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  color: color-mix(in oklab, var(--paper) 60%, transparent);
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  margin-bottom: 8px;
  width: 100%;
}
.cta-related-head .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 22%, transparent);
}
.cta-related ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
}
.cta-related ul li {
  border-bottom: 1px dotted rgba(255,255,255,.10);
}
.cta-related ul li:last-child { border-bottom: 0; }
.cta-related ul a {
  display: grid;
  grid-template-columns: 64px 1fr 18px;
  gap: 12px; align-items: center;
  padding: 12px 4px;
  text-decoration: none;
  color: var(--paper);
  transition: color .2s ease, transform .2s ease;
}
.cta-related ul a:hover {
  color: var(--brand);
  transform: translateX(4px);
}
.cta-related ul a .meta {
  font-family: var(--ff-mono); font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase;
  color: color-mix(in oklab, var(--paper) 50%, transparent);
}
.cta-related ul a:hover .meta { color: var(--brand); }
.cta-related ul a .name {
  font-family: var(--ff-display); font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.cta-related ul a .arrow {
  font-family: var(--ff-mono); font-size: 14px;
  color: color-mix(in oklab, var(--paper) 50%, transparent);
  text-align: right;
}
.cta-related ul a:hover .arrow { color: var(--brand); }

/* ─── CTA right-side info panel ──────────────────────────── */
.cta-expect {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  position: relative;
  z-index: 1;
  align-self: stretch;
  font-family: 'Plus Jakarta Sans', 'Noto Sans SC', sans-serif;
}
.cta-expect-head {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--paper) 55%, transparent);
  margin-bottom: 22px;
}
.cta-expect ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 18px;
}
.cta-expect li {
  display: grid;
  grid-template-columns: 26px 1fr;
  column-gap: 12px;
  align-items: start;
}
.cta-expect .check {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(232,116,63,.18);
  color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
  margin-top: 1px;
}
.cta-expect li b {
  color: var(--paper);
  font-weight: 500;
  font-size: 14.5px;
  line-height: 1.4;
  display: block;
}
.cta-expect-sub {
  color: color-mix(in oklab, var(--paper) 60%, transparent);
  font-size: 12.5px;
  line-height: 1.55;
  margin-top: 3px;
}
@media (max-width: 800px) { .cta-expect { margin-top: 8px; } }

/* ─── Custom select dropdown (fx-select.js) ───────────────── */
.fx-sel { position: relative; }
.fx-sel select {
  position: absolute; width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
  margin: 0; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}
.fx-sel-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; box-sizing: border-box;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--paper);
  border-radius: 10px;
  padding: 12px 38px 12px 14px;
  font: inherit; text-align: left; cursor: pointer; outline: none;
  position: relative;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.fx-sel-btn:hover { background-color: rgba(255,255,255,.07); border-color: rgba(255,255,255,.22); }
.fx-sel-btn:focus, .fx-sel.is-open .fx-sel-btn {
  border-color: var(--brand);
  background-color: rgba(232,116,63,.05);
  box-shadow: 0 0 0 3px rgba(232,116,63,.14);
}
.fx-sel-val {
  flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: inherit;
}
.fx-sel-chev {
  position: absolute; right: 14px; top: 50%;
  width: 12px; height: 12px; margin-top: -6px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'><path d='M2.5 4.5L6 8L9.5 4.5' stroke='%23e8743f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-size: contain; background-repeat: no-repeat;
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}
.fx-sel.is-open .fx-sel-chev { transform: rotate(180deg); }

.fx-sel-menu {
  display: none;
  position: fixed;
  background: #18130f;
  border: 1px solid rgba(232,116,63,.32);
  border-radius: 12px;
  padding: 6px;
  z-index: 100;
  box-shadow: 0 14px 38px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.04), inset 0 1px 0 rgba(255,255,255,.04);
  max-height: 280px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(232,116,63,.5) transparent;
}
.fx-sel-menu::-webkit-scrollbar { width: 6px; }
.fx-sel-menu::-webkit-scrollbar-thumb { background: rgba(232,116,63,.5); border-radius: 3px; }
.fx-sel-menu::-webkit-scrollbar-track { background: transparent; }
.fx-sel-menu.is-open {
  display: block;
  animation: fxSelOpen .2s cubic-bezier(.2,.8,.2,1);
  transform-origin: top center;
}
.fx-sel-menu.fx-sel-menu--up {
  transform-origin: bottom center;
}
.fx-sel-menu.is-open.fx-sel-menu--up {
  animation: fxSelOpenUp .2s cubic-bezier(.2,.8,.2,1);
}
@keyframes fxSelOpen {
  from { opacity: 0; transform: translateY(-6px) scale(.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fxSelOpenUp {
  from { opacity: 0; transform: translateY(6px) scale(.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.fx-sel-opt {
  padding: 11px 36px 11px 14px;
  border-radius: 7px;
  cursor: pointer;
  color: color-mix(in oklab, var(--paper) 80%, transparent);
  font-family: 'Plus Jakarta Sans', 'Noto Sans SC', sans-serif;
  font-size: 14px; line-height: 1.4;
  transition: background-color .15s ease, color .15s ease;
  position: relative;
}
.fx-sel-opt:hover {
  background: rgba(232,116,63,.14);
  color: var(--paper);
}
.fx-sel-opt.is-selected {
  background: rgba(232,116,63,.22);
  color: #fff;
}
.fx-sel-opt.is-selected::after {
  content: "";
  position: absolute; right: 12px; top: 50%; margin-top: -6px;
  width: 12px; height: 12px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'><path d='M2.5 6L5 8.5L9.5 3.5' stroke='%23e8743f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-size: contain; background-repeat: no-repeat;
}

/* ─── Footer ───────────────────────────────────────────── */
.footer { padding: 64px 0 36px; border-top: 1px solid var(--line); margin-top: 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px;
}
.footer h5 { font-family: var(--ff-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-3); font-weight: 500; margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: var(--ink-2); font-size: 14px; }
.footer ul a:hover { color: var(--ink); }
.footer-brand p { color: var(--ink-2); font-size: 14px; max-width: 32ch; margin-top: 14px; }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  color: var(--ink-3); font-size: 13px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ─── Clients ──────────────────────────────────────────── */
.clients-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 48px; flex-wrap: wrap; }
.clients-head .lead { max-width: 44ch; }
.clients-grid {
  display: grid; grid-template-columns: repeat(10, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.clients-grid .cell {
  aspect-ratio: 1.5 / 1;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid; place-items: center;
  background: var(--paper);
  padding: 14px;
  position: relative; overflow: hidden;
  transition: background .25s ease;
}
.clients-grid .cell:hover { background: var(--paper-2); }
.clients-grid .cell image-slot {
  width: 100%; height: 100%;
  filter: grayscale(1) contrast(.95);
  opacity: .55;
  transition: filter .3s ease, opacity .3s ease, transform .3s ease;
}
.clients-grid .cell:hover image-slot {
  filter: grayscale(0) contrast(1);
  opacity: 1;
  transform: scale(1.04);
}
.clients-grid .cell.feat { background: var(--ink); }
.clients-grid .cell.feat image-slot { filter: grayscale(1) invert(.92) contrast(.9); opacity: .7; }
.clients-grid .cell.feat:hover image-slot { filter: grayscale(0) invert(0); opacity: 1; }

@media (max-width: 1100px) { .clients-grid { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 700px)  { .clients-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 460px)  { .clients-grid { grid-template-columns: repeat(3, 1fr); } }

/* logo strip stat */
.clients-stat {
  display: flex; gap: 32px; align-items: baseline;
  padding: 28px 0 0; flex-wrap: wrap;
  color: var(--ink-3); font-family: var(--ff-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
}
.clients-stat b { color: var(--brand); font-family: var(--ff-display); font-size: 32px; font-weight: 500; letter-spacing: -.02em; text-transform: none; }

/* marquee */
.clients-marquee {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 26px 0;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.clients-marquee .track {
  display: flex; gap: 64px; align-items: center;
  width: max-content;
  animation: clients-marquee 38s linear infinite;
}
.clients-marquee .track .item {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink-2);
  font-family: var(--ff-display); font-size: 22px; font-weight: 600;
  letter-spacing: -0.02em;
}
.clients-marquee .track .star { color: var(--brand); font-size: 14px; opacity: .6; }
@keyframes clients-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.clients-marquee:hover .track { animation-play-state: paused; }

/* ─── Misc ─────────────────────────────────────────────── */
::selection { background: var(--brand); color: var(--brand-ink); }

/* tweak panel pinned */
.twk-panel { font-family: var(--ff-body); }


/* ─── Multi-page additions ─────────────────────────────── */
.nav-links a[aria-current="page"] { color: var(--ink); position: relative; font-weight: 600; }
/* underline uses ::before so it doesn't collide with the dropdown chevron
   (which lives in ::after on .has-sub > a) */
.nav-links a[aria-current="page"]::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px;
  height: 2px; background: var(--brand); border-radius: 2px;
}

/* page hero (sub-pages) */
.page-hero {
  padding: clamp(56px, 7vw, 110px) 0 clamp(48px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: .35;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 80%);
}
.page-hero .container { position: relative; }
.page-hero .crumbs {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); display: flex; gap: 10px; align-items: center; margin-bottom: 28px;
}
.page-hero .crumbs a { color: var(--ink-3); transition: color .15s; }
.page-hero .crumbs a:hover { color: var(--brand); }
.page-hero .crumbs .sep { opacity: .5; }
.page-hero h1 {
  font-size: clamp(48px, 6.5vw, 96px); letter-spacing: -0.035em; font-weight: 500; line-height: 1.02;
}
.page-hero h1 .accent { color: var(--brand); font-size: 1.08em; }
.page-hero h1 .underline { position: relative; }
.page-hero h1 .underline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 10px;
  background: color-mix(in oklab, var(--brand) 35%, transparent); z-index: -1; border-radius: 4px;
}
.page-hero .lead { margin-top: 28px; max-width: 56ch; }
.page-hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: stretch; }
.page-hero-side {
  position: relative;
  background: var(--ink); color: var(--paper);
  border-radius: var(--r-xl);
  padding: clamp(24px, 2.4vw, 36px);
  display: flex; flex-direction: column; gap: 24px;
  overflow: hidden;
  min-height: 420px;
}
.page-hero-side::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at 30% 20%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 20%, #000 0%, transparent 75%);
}
.page-hero-side > * { position: relative; }
.page-hero-side .top-row {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: color-mix(in oklab, var(--paper) 60%, transparent);
}
.page-hero-side .top-row .live {
  display: inline-flex; align-items: center; gap: 8px;
  color: color-mix(in oklab, var(--paper) 80%, transparent);
}
.page-hero-side .top-row .live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #4caf50; box-shadow: 0 0 0 4px rgba(76,175,80,.18);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity:1 } 50% { opacity:.4 } }
.page-hero-side .marquee-num {
  font-family: var(--ff-display);
  font-size: clamp(80px, 11vw, 168px); font-weight: 500; letter-spacing: -0.05em; line-height: .85;
  color: var(--paper);
  display: flex; align-items: baseline; gap: 14px;
}
.page-hero-side .marquee-num .unit {
  font-size: .35em; color: var(--brand); letter-spacing: 0;
}
.page-hero-side .marquee-cap {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: color-mix(in oklab, var(--paper) 55%, transparent);
  margin-top: -10px;
}
.page-hero-side .marquee-cap b { color: var(--paper); font-weight: 500; }
.page-hero-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-top: auto;
}
.page-hero-meta > div {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-md);
  padding: 14px 16px; display: flex; flex-direction: column; gap: 4px;
}
.page-hero-meta > div span {
  font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: color-mix(in oklab, var(--paper) 55%, transparent);
}
.page-hero-meta b {
  display: block; color: var(--paper); font-weight: 500;
  font-family: var(--ff-display); font-size: 18px; letter-spacing: -0.01em;
  text-transform: none;
}
.page-hero-side .footnote {
  position: absolute; right: 28px; bottom: 24px;
  font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: color-mix(in oklab, var(--paper) 40%, transparent);
}
@media (max-width: 980px) { .page-hero-grid { grid-template-columns: 1fr; gap: 32px; } .page-hero-side { min-height: 320px; } }

/* dossier rows (services page) */
.dossier { display: flex; flex-direction: column; }
.dossier-row {
  display: grid; grid-template-columns: 80px 1.2fr 1.4fr 220px;
  gap: 32px; padding: 36px 0; border-top: 1px solid var(--line);
  align-items: start;
}
.dossier-row:last-child { border-bottom: 1px solid var(--line); }
.dossier-row .num {
  font-family: var(--ff-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); padding-top: 6px;
}
.dossier-row h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.dossier-row h3 .it { color: var(--brand); font-size: 1.08em; }
.dossier-row .summary { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; margin-top: 10px; }
.dossier-row .deliverables { display: flex; flex-direction: column; gap: 8px; }
.dossier-row .deliverables h5 {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px;
}
.dossier-row .deliverables ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.dossier-row .deliverables li { font-size: 14px; color: var(--ink-2); padding-left: 18px; position: relative; }
.dossier-row .deliverables li::before {
  content: "→"; position: absolute; left: 0; top: 0; color: var(--brand); font-family: var(--ff-mono);
}
.dossier-row .meta-card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 18px; display: flex; flex-direction: column; gap: 10px;
}
.dossier-row .meta-card .row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.dossier-row .meta-card .row span:first-child { color: var(--ink-3); font-family: var(--ff-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.dossier-row .meta-card .row span:last-child { color: var(--ink); font-weight: 500; text-align: right; }
@media (max-width: 900px) {
  .dossier-row { grid-template-columns: 1fr; gap: 16px; padding: 28px 0; }
  .dossier-row .num { padding: 0; }
}

/* pricing cards */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.price-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 32px; display: flex; flex-direction: column; gap: 18px;
  position: relative;
}
.price-card.feat {
  background: var(--ink); color: var(--paper);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.price-card.feat h3, .price-card.feat .price { color: var(--paper); }
.price-card .tag {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); display: flex; justify-content: space-between; align-items: center;
}
.price-card.feat .tag { color: color-mix(in oklab, var(--paper) 60%, transparent); }
.price-card.feat .tag .pill {
  background: var(--brand); color: var(--paper);
  padding: 3px 10px; border-radius: 999px; font-size: 10px; letter-spacing: .12em;
}
.price-card h3 { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; }
.price-card .price { font-family: var(--ff-display); font-size: 56px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.price-card .price .unit { font-size: 18px; color: var(--ink-3); margin-left: 6px; letter-spacing: 0; font-weight: 400; }
.price-card.feat .price .unit { color: color-mix(in oklab, var(--paper) 60%, transparent); }
.price-card .desc { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.price-card.feat .desc { color: color-mix(in oklab, var(--paper) 75%, transparent); }
.price-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.price-card.feat ul { border-top-color: rgba(255,255,255,.14); }
.price-card li { font-size: 14px; padding-left: 22px; position: relative; line-height: 1.5; }
.price-card li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand); font-family: var(--ff-mono); font-weight: 700;
}
.price-card .btn { width: 100%; justify-content: center; margin-top: auto; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; }
.faq details {
  border-top: 1px solid var(--line); padding: 24px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--ff-display); font-weight: 500; font-size: 18px; letter-spacing: -0.01em;
  line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--ff-mono); font-size: 22px; font-weight: 400;
  color: var(--brand); transition: transform .2s ease;
  flex: 0 0 auto; margin-top: -2px;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); font-size: 15px; line-height: 1.6; margin-top: 14px; }
@media (max-width: 800px) { .faq { grid-template-columns: 1fr; gap: 0; } }

/* values grid (about) */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-card {
  padding: 28px; border-radius: var(--r-lg); background: var(--paper-2);
  border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px;
}
.value-card .num { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.value-card h4 { font-size: 22px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; }
.value-card p { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
@media (max-width: 900px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

/* founder card */
.founder {
  display: grid; grid-template-columns: 280px 1fr; gap: 48px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(32px, 4vw, 56px); align-items: center;
}
.founder .avatar {
  aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(135deg, var(--brand) 0%, var(--sage) 100%);
  display: grid; place-items: center; color: var(--paper);
  font-family: var(--ff-display); font-size: 96px; font-weight: 500;
}
.founder .body h3 { font-size: 32px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.founder .body .role { font-family: var(--ff-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-top: 8px; }
.founder .body p { color: var(--ink-2); font-size: 16px; line-height: 1.65; margin-top: 18px; }
.founder .body .links { display: flex; gap: 16px; margin-top: 24px; font-size: 14px; }
.founder .body .links a { color: var(--ink); border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
@media (max-width: 720px) { .founder { grid-template-columns: 1fr; gap: 24px; } .founder .avatar { max-width: 200px; } }

/* split intro (story) */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.story-grid .col h3 { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 16px; }
.story-grid .col h3 .it { color: var(--brand); font-size: 1.08em; }
.story-grid .col p { color: var(--ink-2); font-size: 15.5px; line-height: 1.7; margin-bottom: 14px; }
.story-grid .col p:last-child { margin-bottom: 0; }
@media (max-width: 800px) { .story-grid { grid-template-columns: 1fr; gap: 32px; } }

/* industries chips */
.industries-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.industries-chips > span {
  font-size: 13px; padding: 8px 16px; border-radius: 999px;
  background: var(--paper-2); border: 1px solid var(--line); color: var(--ink-2);
  font-family: var(--ff-mono); letter-spacing: .04em;
  display: inline-flex; align-items: center;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease;
  cursor: default;
}
.industries-chips > span:hover {
  background: color-mix(in oklab, var(--brand) 8%, var(--paper));
  color: var(--brand);
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(232,116,63,.18), 0 0 0 1px rgba(232,116,63,.3);
}

/* contact split */
.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-info .info-card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px; display: flex; flex-direction: column; gap: 12px;
}
.contact-info .info-card h4 { font-size: 18px; font-weight: 500; }
.contact-info .info-card .big {
  font-family: var(--ff-display); font-size: 32px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink);
}
.contact-info .info-card a { color: var(--ink); border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.contact-info .info-card p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.contact-info .info-card .row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; padding: 6px 0; border-top: 1px dashed var(--line); }
.contact-info .info-card .row:first-of-type { border-top: 0; padding-top: 0; }
.contact-info .info-card .row span:first-child { color: var(--ink-3); font-family: var(--ff-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.contact-form-card {
  background: var(--ink); color: var(--paper); border-radius: var(--r-xl);
  padding: clamp(32px, 4vw, 48px);
}
.contact-form-card h3 { color: var(--paper); font-size: 26px; font-weight: 500; letter-spacing: -0.02em; }
.contact-form-card p.sub { color: color-mix(in oklab, var(--paper) 70%, transparent); font-size: 14px; margin-top: 8px; }
.contact-form-card .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.contact-form-card .field { display: flex; flex-direction: column; gap: 6px; }
.contact-form-card label { font-size: 11px; font-family: var(--ff-mono); letter-spacing: .12em; text-transform: uppercase; color: color-mix(in oklab, var(--paper) 60%, transparent); }
.contact-form-card input, .contact-form-card select, .contact-form-card textarea {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.14);
  color: var(--paper); border-radius: 10px; padding: 12px 14px; font: inherit; outline: none;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.contact-form-card select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'><path d='M2.5 4.5L6 8L9.5 4.5' stroke='%23e8743f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 12px;
  padding-right: 38px; cursor: pointer;
}
.contact-form-card select::-ms-expand { display: none; }
.contact-form-card textarea { min-height: 120px; resize: vertical; }
.contact-form-card input:hover, .contact-form-card select:hover, .contact-form-card textarea:hover { background-color: rgba(255,255,255,.07); border-color: rgba(255,255,255,.22); }
.contact-form-card input:focus, .contact-form-card select:focus, .contact-form-card textarea:focus { border-color: var(--brand); background-color: rgba(232,116,63,.05); box-shadow: 0 0 0 3px rgba(232,116,63,.14); }
.contact-form-card select option { color: var(--ink); background: var(--paper); padding: 8px 10px; }
.contact-form-card .btn-primary { width: 100%; justify-content: center; height: 52px; margin-top: 20px; }
.contact-form-card .legal { font-size: 12px; color: color-mix(in oklab, var(--paper) 50%, transparent); margin-top: 14px; line-height: 1.5; }
@media (max-width: 900px) { .contact-split { grid-template-columns: 1fr; gap: 32px; } .contact-form-card .grid-2 { grid-template-columns: 1fr; } }


/* ─── Universal dark statusbar (used at bottom of page heros) ─── */
.statusbar {
  background: #1a1612;
  color: #f6efe2;
  display: flex; align-items: center;
  padding: 0 clamp(18px, 1.8vw, 26px);
  height: 32px;
  gap: 14px 22px;
  font-family: var(--ff-mono); font-size: 10.5px;
  letter-spacing: .04em;
  position: relative; z-index: 4;
  border-top: 1px solid rgba(246,239,226,.08);
}
.statusbar .l, .statusbar .r {
  display: flex; align-items: center; gap: 14px 18px;
  flex-wrap: wrap;
}
.statusbar .r { margin-left: auto; }
.statusbar .it {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(246,239,226,.65);
}
.statusbar .it.good { color: #5BD076; }
.statusbar .it.brand { color: var(--brand); }
.statusbar .it .d {
  width: 6px; height: 6px; border-radius: 50%;
  background: #5BD076; box-shadow: 0 0 6px rgba(91,208,118,.6);
}
.statusbar .it .d.brand { background: var(--brand); box-shadow: 0 0 6px rgba(232,116,63,.6); }
.statusbar .it.tick {
  position: relative;
  display: inline-grid;
  align-items: center;
  min-width: 22ch;
}
.statusbar .it.tick .tick-item {
  grid-area: 1 / 1;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity .22s ease, transform .22s ease;
  pointer-events: none;
}
.statusbar .it.tick .tick-item.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .statusbar .it.tick .tick-item { transition: none; }
}
@media (max-width: 720px) {
  .statusbar {
    flex-direction: column; align-items: stretch;
    height: auto; min-height: 32px;
    padding: 10px 14px;
    gap: 8px;
    font-size: 10px; letter-spacing: .03em;
  }
  .statusbar .l, .statusbar .r {
    gap: 8px 14px; flex-wrap: wrap;
  }
  .statusbar .r {
    margin-left: 0;
    border-top: 1px solid rgba(246,239,226,.08);
    padding-top: 8px;
  }
  .statusbar .it.tick { min-width: 0; }
}
@media (max-width: 480px) {
  /* tickers animate to items wider than viewport — hide on tiny screens */
  .statusbar .it.tick { display: none; }
  /* drop the version stamp; keep location + copyright */
  .statusbar .r .it:nth-child(2) { display: none; }
}
