/* =====================================================================
   Nexorai — design system
   Brand: ink (#0B0E14) + paper (#F6F5F1) + signal amber (#F59E0B).
   Type: Space Grotesk (display) · Inter (text) · JetBrains Mono (technical).
   Every text colour pair below meets WCAG 2.2 AA (≥ 4.5:1) in both themes.
   ===================================================================== */

/* ---------- fonts (self-hosted, no third-party requests) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("/assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-display: swap; font-weight: 300 700; src: url("/assets/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-display: swap; font-weight: 300 700; src: url("/assets/fonts/space-grotesk-latin-ext-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 100 800; src: url("/assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 100 800; src: url("/assets/fonts/jetbrains-mono-latin-ext-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- tokens ---------- */
:root {
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* brand constants (theme-independent) */
  --amber-300: #FCD34D;
  --amber-400: #FBBF24;
  --amber-500: #F59E0B;
  --amber-600: #D97706;
  --amber-700: #B45309;
  --amber-800: #92400E;
  --night: #0B0E14;
  --night-2: #121722;
  --night-3: #1A2130;
  --night-text: #E8EAEE;
  --night-muted: #A6ACB8;
  --night-line: rgba(255, 255, 255, .1);
  --green: #15803D;
  --green-dark: #4ADE80;

  /* light theme */
  --bg: #F6F5F1;
  --bg-alt: #EFEDE7;
  --surface: #FFFFFF;
  --surface-2: #FAF9F6;
  --ink: #0B0E14;
  --text: #2A2F38;
  --muted: #555B66;
  --faint: #656B76;
  --line: rgba(11, 14, 20, .1);
  --line-strong: rgba(11, 14, 20, .18);
  --grid: rgba(11, 14, 20, .06);
  --accent: var(--amber-500);
  --accent-hover: var(--amber-400);
  --accent-ink: var(--amber-800);
  --accent-soft: rgba(245, 158, 11, .14);
  --on-accent: #0B0E14;
  --live: var(--green);
  --shadow-sm: 0 1px 2px rgba(11, 14, 20, .05), 0 2px 8px -2px rgba(11, 14, 20, .06);
  --shadow: 0 1px 2px rgba(11, 14, 20, .04), 0 12px 32px -12px rgba(11, 14, 20, .14);
  --shadow-lg: 0 2px 4px rgba(11, 14, 20, .04), 0 32px 64px -24px rgba(11, 14, 20, .22);

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(72px, 9vw, 120px);
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0E14; --bg-alt: #0F131B; --surface: #131823; --surface-2: #171D29;
    --ink: #F3F4F6; --text: #D5D9E0; --muted: #A6ACB8; --faint: #949BA8;
    --line: rgba(255, 255, 255, .09); --line-strong: rgba(255, 255, 255, .16); --grid: rgba(255, 255, 255, .05);
    --accent-ink: var(--amber-400); --accent-soft: rgba(245, 158, 11, .14); --live: var(--green-dark);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow: 0 12px 32px -12px rgba(0, 0, 0, .6); --shadow-lg: 0 32px 64px -24px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B0E14; --bg-alt: #0F131B; --surface: #131823; --surface-2: #171D29;
  --ink: #F3F4F6; --text: #D5D9E0; --muted: #A6ACB8; --faint: #949BA8;
  --line: rgba(255, 255, 255, .09); --line-strong: rgba(255, 255, 255, .16); --grid: rgba(255, 255, 255, .05);
  --accent-ink: var(--amber-400); --accent-soft: rgba(245, 158, 11, .14); --live: var(--green-dark);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow: 0 12px 32px -12px rgba(0, 0, 0, .6); --shadow-lg: 0 32px 64px -24px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-sans); font-size: 1rem; line-height: 1.65;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; font-weight: 600; letter-spacing: -.025em; line-height: 1.12; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
[role="list"] { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(245, 158, 11, .32); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: calc(780px + var(--gutter) * 2); }

.skip-link {
  position: fixed; top: -100px; left: 12px; z-index: 100; padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--ink); color: var(--bg); font-weight: 600; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- buttons & links ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 44px; padding: 10px 20px; border-radius: 10px; border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg); font-weight: 600; font-size: .9375rem; line-height: 1.2;
  cursor: pointer; white-space: nowrap; transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn .icon { width: 1.05em; height: 1.05em; transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary, .btn-accent { --btn-bg: var(--accent); --btn-fg: var(--on-accent); box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 8px 22px -10px rgba(245, 158, 11, .7); }
.btn-primary:hover, .btn-accent:hover { --btn-bg: var(--accent-hover); }
.btn-secondary { --btn-bd: var(--line-strong); --btn-bg: var(--surface); }
.btn-secondary:hover { --btn-bd: var(--ink); }
.btn-ghost-dark { --btn-fg: var(--night-text); --btn-bd: rgba(255, 255, 255, .22); }
.btn-ghost-dark:hover { --btn-bd: rgba(255, 255, 255, .6); }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: .875rem; }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: border-color .2s; }
.link-arrow .icon { transition: transform .25s var(--ease); color: var(--accent-ink); }
.link-arrow:hover { border-color: var(--accent); }
.link-arrow:hover .icon { transform: translateX(3px); }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line);
  background: transparent; color: var(--ink); cursor: pointer; transition: border-color .2s, background-color .2s;
}
.icon-btn:hover { border-color: var(--line-strong); background: var(--surface); }
.icon-btn .icon { width: 18px; height: 18px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s, background-color .25s;
}
.site-header[data-scrolled] { border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); flex: none; }
.brand-mark { width: 32px; height: 32px; }
.mk-bg { fill: var(--night); }
.mk-fg { fill: #F6F5F1; }
.mk-ac { fill: var(--amber-500); }
:root[data-theme="dark"] .mk-bg { fill: #1D2433; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mk-bg { fill: #1D2433; } }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.04em; }

.site-nav { flex: 1; display: flex; align-items: center; }
.nav-list { list-style: none; display: flex; gap: 4px; margin-inline: auto; }
.nav-list a { display: block; padding: 8px 14px; border-radius: 8px; font-size: .9375rem; font-weight: 500; color: var(--muted); transition: color .2s, background-color .2s; }
.nav-list a:hover { color: var(--ink); background: var(--surface); }
.nav-list a[aria-current="page"] { color: var(--ink); }
.nav-list a[aria-current="page"]::after { content: ""; display: block; height: 2px; margin-top: 3px; border-radius: 2px; background: var(--accent); }
.nav-mobile-extra { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; }
.lang-switch a { padding: 5px 9px; border-radius: 7px; font: 600 .75rem/1 var(--font-mono); letter-spacing: .04em; color: var(--muted); }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="true"] { background: var(--ink); color: var(--bg); }

.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
.nav-toggle { display: none; }
.nav-toggle .i-close { display: none; }

/* Six nav items need more room than the original five: switch to the mobile
   menu at 1120px so the header never overflows between 961 and 1100px. */
@media (max-width: 1120px) {
  .nav-toggle { display: inline-grid; }
  .lang-desktop { display: none; }
  .header-actions { margin-left: auto; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49; max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 20px; padding: 16px var(--gutter) 28px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s;
  }
  .nav-open .site-nav { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s var(--ease); }
  .nav-open .nav-toggle .i-menu { display: none; }
  .nav-open .nav-toggle .i-close { display: block; }
  .nav-list { flex-direction: column; margin: 0; gap: 0; }
  .nav-list a { padding: 14px 4px; font-size: 1.0625rem; border-radius: 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .nav-list a[aria-current="page"]::after { display: none; }
  .nav-list a[aria-current="page"] { color: var(--accent-ink); }
  .nav-mobile-extra { display: flex; flex-direction: column; gap: 16px; }
  .nav-mobile-extra .lang-switch { align-self: flex-start; }
}
@media (max-width: 560px) { .header-cta { display: none; } }

/* ---------- shared section scaffolding ---------- */
.section { padding-block: var(--section); position: relative; }
.section-tight { padding-top: clamp(40px, 5vw, 64px); }
.section-alt { background: var(--bg-alt); }
.section-dark {
  background: var(--night); color: var(--night-muted);
  --ink: #F3F4F6; --text: var(--night-text); --muted: var(--night-muted); --faint: var(--night-muted);
  --line: var(--night-line); --line-strong: rgba(255, 255, 255, .2); --surface: var(--night-2); --accent-ink: var(--amber-400);
}
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font: 600 .75rem/1.2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .5; }
.eyebrow-idx { color: var(--accent-ink); }
.eyebrow:has(.eyebrow-idx)::before { display: none; }
.eyebrow-idx::after { content: "/"; margin-left: 10px; color: var(--faint); }
.eyebrow-on-dark { color: var(--night-muted); }
.section-title { font-size: clamp(2rem, 3.6vw, 2.875rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.06; }
.section-lead { margin-top: 18px; font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); color: var(--muted); max-width: 640px; }
.section-link { margin-top: clamp(28px, 4vw, 40px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .875rem; color: var(--text); }
.chip-mono { font: 500 .8125rem/1.3 var(--font-mono); border-radius: 6px; }
.stack-label { margin: 26px 0 10px; font: 600 .75rem/1.2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }

.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.check-list .icon { margin-top: .2em; width: 18px; height: 18px; padding: 2px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); stroke-width: 2.5; }

/* grid / glow backdrops — the "blueprint" motif */
.hero-grid, .cta-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 100%); mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 100%);
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); }
.hero-glow {
  position: absolute; width: 760px; height: 560px; right: -160px; top: -120px; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(245, 158, 11, .22), rgba(245, 158, 11, .06) 55%, transparent);
  filter: blur(10px);
}
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.hero-title { font-size: clamp(2.375rem, 5vw, 4.125rem); font-weight: 600; letter-spacing: -.045em; line-height: 1.02; }
.hl {
  color: var(--ink); background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 94% / 100% .13em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; animation: underline 1s .5s var(--ease) both;
}
@keyframes underline { from { background-size: 0 .13em; } to { background-size: 100% .13em; } }
.hero-lead { margin-top: 26px; max-width: 560px; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.assurances { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 32px; list-style: none; }
.assurances li { display: inline-flex; align-items: center; gap: 8px; font-size: .9375rem; color: var(--text); }
.assurances .icon { width: 18px; height: 18px; color: var(--live); stroke-width: 2.4; }

/* window chrome (code card) */
.window, .code-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 500 .75rem/1 var(--font-mono); color: var(--muted); }
.window-dots { display: inline-flex; gap: 6px; }
.window-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.window-file { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.window-tag { padding: 4px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink); text-transform: uppercase; letter-spacing: .1em; font-size: .6875rem; }
.hero-visual { margin: 0; }

/* hero visual: brand artwork + team card */
.hero-visual { position: relative; margin: 0; padding: 0 0 56px 40px; }
.brand-panel {
  position: relative; overflow: hidden; aspect-ratio: 500 / 520; border-radius: 28px; background: var(--night); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
}
.brand-panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 10%, rgba(245, 158, 11, .28), transparent 55%); }
.brand-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.ba-bar { fill: #F6F5F1; opacity: .09; }
.ba-diag, .ba-dot { fill: var(--amber-500); }
.ba-diag { transform-box: fill-box; transform-origin: 0 0; animation: draw-in 1.1s .3s var(--ease) both; }
.ba-dot { transform-box: fill-box; transform-origin: center; animation: pop-in .5s 1.2s var(--ease) both; }
@keyframes draw-in { from { clip-path: inset(0 100% 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes pop-in { from { transform: scale(0); } to { transform: scale(1); } }
.brand-panel-tag { position: absolute; top: 24px; right: 28px; font: 500 .75rem/1 var(--font-mono); letter-spacing: .08em; color: var(--night-muted); }
.team-card {
  position: absolute; left: 0; bottom: 0; width: min(340px, 82%); padding: 22px 22px 18px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.team-card-label { margin-bottom: 14px; font: 600 .75rem/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.deliver-list { list-style: none; display: grid; gap: 4px; }
.deliver-list a { display: flex; align-items: center; gap: 12px; padding: 6px 8px 6px 0; border-radius: 10px; font-weight: 600; font-size: .9375rem; color: var(--ink); transition: color .2s; }
.deliver-list a:hover { color: var(--accent-ink); }
.deliver-list .service-icon { width: 34px; height: 34px; border-radius: 9px; }
.deliver-list .service-icon .icon { width: 18px; height: 18px; }
.team-card-foot { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }
.team-card-foot .icon { width: 15px; height: 15px; color: var(--accent-ink); }

/* ---------- services (home) ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service-card {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.service-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.service-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); }
.service-icon .icon { width: 22px; height: 22px; }
.service-icon-lg { width: 56px; height: 56px; margin-bottom: 22px; border-radius: 14px; }
.service-icon-lg .icon { width: 28px; height: 28px; }
.service-num { font: 500 .8125rem var(--font-mono); color: var(--faint); }
.service-name { font: 600 1.375rem/1.2 var(--font-display); letter-spacing: -.025em; color: var(--ink); }
.service-short { color: var(--muted); font-size: .9688rem; flex: 1; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.service-tags span { padding: 4px 9px; border-radius: 6px; background: var(--bg-alt); font: 500 .75rem/1.3 var(--font-mono); color: var(--muted); }
.service-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 600; font-size: .9375rem; color: var(--ink); }
.service-more .icon { color: var(--accent-ink); transition: transform .25s var(--ease); }
.service-card:hover .service-more .icon { transform: translateX(4px); }
.service-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-hero .service-icon-lg { margin-bottom: 18px; }
.service-card-cta { background: var(--night); border-color: var(--night); color: var(--night-muted); justify-content: flex-end; overflow: hidden; }
.service-card-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 100% 0, rgba(245, 158, 11, .3), transparent 60%); }
.service-card-cta > * { position: relative; }
.service-card-cta .service-name { color: #fff; }
.service-card-cta .service-short { color: var(--night-muted); flex: 0; }
.service-card-cta .service-more { color: #fff; }
.service-card-cta .service-more .icon { color: var(--amber-400); }

/* ---------- why ---------- */
.why-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.why-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; }
.why-item { padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.why-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px; border-radius: 10px; border: 1px solid var(--line); color: var(--accent-ink); }
.why-icon .icon { width: 20px; height: 20px; }
.why-item h3 { font-size: 1.125rem; margin-bottom: 8px; }
.why-item p { font-size: .9375rem; color: var(--muted); }

/* code card — always dark, like an editor */
.code-card { background: var(--night); border-color: var(--night-3); }
.code-card .window-bar { border-color: var(--night-line); color: var(--night-muted); }
.code-card .window-dots i { background: rgba(255, 255, 255, .18); }
.code { margin: 0; padding: 20px 20px 22px 0; overflow-x: auto; font: 450 .8125rem/1.9 var(--font-mono); color: #E8EAEE; tab-size: 2; }
.code code { display: block; min-width: max-content; }
.ln { display: inline-block; width: 44px; padding-right: 16px; text-align: right; color: #5E6676; user-select: none; }
.tk-k { color: #F472B6; }
.tk-p { color: #93C5FD; }
.tk-s { color: #FCD34D; }
.tk-b { color: #FB923C; }
.tk-c { color: #8B93A3; font-style: italic; }
.why-intro .code-card { margin-top: 8px; }

/* ---------- process steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.step { position: relative; display: flex; flex-direction: column; }
.step-rail { position: relative; display: flex; align-items: center; margin-bottom: 20px; }
.step-rail::after { content: ""; flex: 1; height: 1px; margin-left: 12px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px); }
.step:last-child .step-rail::after { display: none; }
.step-num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-strong); font: 600 .875rem var(--font-mono); color: var(--ink); }
.step:first-child .step-num { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.step-body h3 { font-size: 1.1875rem; margin-bottom: 8px; }
.step-body p { font-size: .9375rem; color: var(--muted); }
.step-get { display: flex; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .875rem !important; color: var(--text) !important; }
.step-get .icon { width: 16px; height: 16px; margin-top: .25em; color: var(--live); stroke-width: 2.4; }

.steps.is-detailed { grid-template-columns: 1fr; gap: 0; }
.steps.is-detailed .step { flex-direction: row; gap: clamp(20px, 3vw, 40px); padding-bottom: 40px; }
.steps.is-detailed .step-rail { flex-direction: column; margin: 0; }
.steps.is-detailed .step-rail::after { width: 1px; height: auto; margin: 12px 0 0; background: repeating-linear-gradient(180deg, var(--line-strong) 0 6px, transparent 6px 12px); }
.steps.is-detailed .step:last-child .step-rail::after { display: none; }
.steps.is-detailed .step-body { flex: 1; padding: 6px 0 0; }
.steps.is-detailed .step-body h3 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); }
.steps.is-detailed .step-body > p { font-size: 1.0625rem; max-width: 640px; }
.step-dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0 0; }
.step-dl > div { padding: 18px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.step-dl dt { margin-bottom: 8px; font: 600 .6875rem/1.2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.step-dl dd { margin: 0; font-size: .9375rem; color: var(--text); }

/* ---------- industries ---------- */
.industry-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.industry-card {
  display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.industry-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.industry-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 6px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); }
.industry-icon .icon { width: 22px; height: 22px; }
.industry-name { font: 600 1.125rem/1.25 var(--font-display); letter-spacing: -.02em; color: var(--ink); }
.industry-text { font-size: .9375rem; color: var(--muted); }
.industry-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.industry-detail { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.industry-detail h2 { margin: 10px 0 8px; font-size: clamp(1.375rem, 2.2vw, 1.75rem); letter-spacing: -.03em; }
.industry-detail > p:not(.stack-label) { color: var(--muted); }
.industry-detail .stack-label { margin-top: 22px; }

/* ---------- stack ---------- */
.stack-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stack-group { padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface-2); }
.stack-group h3 { margin-bottom: 16px; font: 600 .75rem/1.2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.stack-group .chip { font: 500 .8125rem/1.3 var(--font-mono); border-radius: 6px; }

/* ---------- engagement models ---------- */
.models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.model-card { display: flex; flex-direction: column; padding: 32px 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.model-card.is-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.model-idx { font: 500 .8125rem var(--font-mono); color: var(--accent-ink); margin-bottom: 18px; }
.model-card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.model-text { color: var(--muted); margin-bottom: 24px; }
.model-card .check-list { margin-bottom: 28px; font-size: .9375rem; }
.model-fit { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--ink); font-weight: 500; }
.model-fit span { display: block; margin-bottom: 4px; font: 600 .6875rem/1.2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }

/* ---------- mission ---------- */
.mission { max-width: 920px; margin: 0 auto; text-align: center; }
.mission-mark { width: 56px; height: 56px; margin: 0 auto 24px; }
.mission .eyebrow::before { display: none; }
.mission-text { font: 500 clamp(1.5rem, 3vw, 2.25rem)/1.3 var(--font-display); letter-spacing: -.025em; color: var(--ink); }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none;
  font: 600 1.125rem/1.35 var(--font-display); letter-spacing: -.015em; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; flex: none; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line-strong); }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .25s var(--ease); }
.faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-plus { background: var(--accent); border-color: var(--accent); }
.faq-item[open] .faq-plus::before, .faq-item[open] .faq-plus::after { background: var(--on-accent); }
.faq-item[open] .faq-plus::after { transform: translate(-50%, -50%) rotate(0); }
.faq-answer { padding: 0 52px 24px 0; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 32px; align-items: end;
  padding: clamp(36px, 6vw, 72px); border-radius: 28px; background: var(--night); color: var(--night-muted);
  --grid: rgba(255, 255, 255, .06);
}
.cta-band::after { content: ""; position: absolute; width: 520px; height: 520px; right: -120px; top: -200px; border-radius: 50%; background: radial-gradient(closest-side, rgba(245, 158, 11, .35), transparent); pointer-events: none; }
.cta-grid { -webkit-mask-image: radial-gradient(ellipse 80% 90% at 80% 20%, #000 20%, transparent 100%); mask-image: radial-gradient(ellipse 80% 90% at 80% 20%, #000 20%, transparent 100%); }
.cta-copy, .cta-actions { position: relative; z-index: 1; }
.cta-copy h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.04em; margin-bottom: 16px; }
.cta-copy p { max-width: 560px; font-size: 1.0625rem; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }

/* ---------- inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.page-hero .container { position: relative; }
.page-hero-compact { padding-bottom: clamp(32px, 4vw, 48px); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; font: 500 .8125rem var(--font-mono); color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb [aria-current] { color: var(--ink); }
.page-title { font-size: clamp(2.375rem, 5vw, 4rem); letter-spacing: -.045em; line-height: 1.04; max-width: 900px; }
.page-lead { margin-top: 22px; max-width: 680px; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--muted); }

/* ---------- services detail ---------- */
.service-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.service-detail-body { display: grid; gap: 16px; }
.service-detail-body > .link-arrow { justify-self: start; margin-top: 12px; }
.panel { padding: clamp(24px, 3vw, 32px); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.panel h3, .panel-title { font-size: 1.125rem; margin-bottom: 18px; }
.panel-accent { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.problem-list { list-style: none; display: grid; gap: 14px; }
.problem-list li { position: relative; padding-left: 26px; color: var(--text); }
.problem-list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 12px; height: 2px; border-radius: 2px; background: var(--faint); }

/* ---------- solutions ---------- */
.want-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.want-card { padding: 24px; border-radius: var(--r-lg); border: 1px dashed var(--line-strong); }
.want-tag { display: inline-block; margin-bottom: 16px; padding: 3px 8px; border-radius: 6px; background: var(--accent-soft); font: 600 .6875rem/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.want-card h3 { font-size: 1.125rem; margin-bottom: 8px; }
.want-card p { font-size: .9375rem; color: var(--muted); }
.founding { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; margin-top: 24px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--accent); }
.founding h3 { font-size: 1.375rem; margin-bottom: 6px; }
.founding p { color: var(--muted); max-width: 640px; }
.careers { margin-top: 40px; border-style: dashed; }
.careers .eyebrow { margin-bottom: 10px; }

/* ---------- process page ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.rhythm { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
.rhythm li { padding-top: 18px; border-top: 2px solid var(--accent); }
.rhythm h3, .quality-grid h3, .values h3, .nearshore-grid h3, .timeline h3 { font-size: 1.125rem; margin-bottom: 8px; }
.rhythm p, .quality-grid p, .values p, .nearshore-grid p, .timeline p { font-size: .9375rem; color: var(--muted); }
.quality-grid, .values { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.quality-grid li, .values li { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.values { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.quality-idx { display: block; margin-bottom: 20px; font: 500 .8125rem var(--font-mono); color: var(--accent-ink); }
.trust { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); }
.trust-list { list-style: none; display: grid; gap: 4px; }
.trust-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 1.0313rem; }
.trust-list .icon { width: 20px; height: 20px; margin-top: .15em; color: var(--amber-400); }

/* ---------- about ---------- */
.story { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); }
.story-text { display: grid; gap: 20px; font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); color: var(--text); }
.story-text p:first-child { font: 500 clamp(1.25rem, 2vw, 1.5rem)/1.45 var(--font-display); letter-spacing: -.015em; color: var(--ink); }
.founders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.founder { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.founder-photo { width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover; background: var(--bg-alt); filter: grayscale(.15); transition: filter .4s; }
.founder:hover .founder-photo { filter: none; }
.founder-body { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 24px; }
.founder-body h3 { font-size: 1.375rem; }
.founder-role { font: 500 .8125rem var(--font-mono); color: var(--accent-ink); margin-bottom: 14px; flex: 1; }
.founder .link-arrow { align-self: flex-start; }
.nearshore { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.nearshore-grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.nearshore-grid li { padding: 24px; border-radius: var(--r-lg); background: var(--night-2); border: 1px solid var(--night-line); }
.facts { margin: 0; padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--night-line); }
.facts-title { margin-bottom: 8px; font: 600 .75rem/1.2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--amber-400); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--night-line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--night-muted); font-size: .9375rem; }
.facts dd { margin: 0; color: #fff; font-weight: 500; text-align: right; }
.timeline { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.timeline li { position: relative; padding: 28px 24px 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.timeline li.is-now { border-color: var(--accent); }
.tl-when { display: inline-block; margin-bottom: 16px; font: 600 .8125rem var(--font-mono); color: var(--accent-ink); }
.timeline li.is-now .tl-when::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--live); vertical-align: middle; }

/* ---------- contact ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.contact-side { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 24px); }
.next-steps { list-style: none; display: grid; gap: 18px; }
.next-steps li { display: flex; gap: 14px; }
.next-num { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: var(--on-accent); font: 600 .8125rem var(--font-mono); }
.next-steps h3 { font-size: 1rem; margin-bottom: 2px; }
.next-steps p { font-size: .9375rem; color: var(--muted); }
.contact-details { list-style: none; display: grid; padding: 8px 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.contact-details li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-details li:last-child { border-bottom: 0; }
.contact-details .icon { margin-top: 3px; color: var(--accent-ink); }
.contact-details div { display: flex; flex-direction: column; }
.detail-label { font: 600 .6875rem/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.contact-details a { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.contact-details a:hover { text-decoration-color: var(--accent); }

.form-card { padding: clamp(24px, 4vw, 40px); border-radius: 24px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.contact-form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 7px; align-content: start; }
.field label { font-size: .875rem; font-weight: 600; color: var(--ink); }
.opt { font-weight: 400; color: var(--faint); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--bg); color: var(--ink); font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 132px; line-height: 1.55; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23656B76' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field [aria-invalid="true"] { border-color: #DC2626; box-shadow: 0 0 0 4px rgba(220, 38, 38, .12); }
.field-error { display: flex; gap: 6px; font-size: .875rem; font-weight: 500; color: #B91C1C; }
.field-error::before { content: "!"; flex: none; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; background: #DC2626; color: #fff; font: 700 .6875rem/1 var(--font-sans); }
:root[data-theme="dark"] .field-error { color: #FCA5A5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .field-error { color: #FCA5A5; } }
.form-summary { padding: 12px 16px; border-radius: 10px; background: rgba(220, 38, 38, .08); border: 1px solid rgba(220, 38, 38, .3); color: var(--ink); font-size: .9375rem; }
.form-summary a { font-weight: 600; text-decoration: underline; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { font-size: .875rem; color: var(--muted); }
.consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.contact-form button[disabled] { opacity: .7; cursor: progress; }
.form-sent { text-align: center; padding: clamp(24px, 5vw, 56px) 0; }
.form-sent:focus { outline: none; }
.sent-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 18px; background: var(--accent); color: var(--on-accent); }
.sent-icon .icon { width: 30px; height: 30px; stroke-width: 2.5; }
.form-sent h2 { font-size: 1.75rem; margin-bottom: 10px; }
.form-sent p { color: var(--muted); margin-bottom: 28px; }

/* ---------- website-redesign offer ---------- */
.founding h2 { font-size: 1.375rem; margin-bottom: 6px; }
.offer-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.offer-grid .why-item { height: 100%; }
.offer-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: clamp(24px, 4vw, 40px); }
.offer-step { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 32px); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.offer-step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 20px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font: 600 .8125rem var(--font-mono); }
.offer-step h3 { font-size: 1.375rem; margin-bottom: 10px; }
.offer-step > p:not(.step-get) { color: var(--muted); font-size: .9688rem; }
.offer-step .step-get { margin-top: auto; }
.price-panel { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 4vw, 48px); align-items: center; padding: clamp(24px, 4vw, 40px); border-radius: var(--r-lg); border: 1px solid var(--accent); background: var(--surface); }
.price-panel h3 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); margin-bottom: 12px; }
.price-panel .section-lead { margin-top: 0; font-size: 1rem; }
.price-figure { padding: 24px; border-radius: var(--r); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); }
.price-label { font: 600 .6875rem/1.2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.price-value { margin: 8px 0 12px; font: 600 clamp(2rem, 4vw, 2.875rem)/1 var(--font-display); letter-spacing: -.04em; color: var(--ink); }
.price-badge { display: inline-block; margin-bottom: 12px; font: 600 clamp(1.5rem, 3vw, 2rem)/1.1 var(--font-display); letter-spacing: -.03em; color: var(--ink); }
.price-note { font-size: .875rem; color: var(--muted); }
.price-note + .price-note { margin-top: 6px; }
.scope-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.scope-note { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.guarantee { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: clamp(32px, 5vw, 56px); border-radius: 28px; background: var(--night); color: var(--night-muted); }
.guarantee::after { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(245, 158, 11, .32), transparent); pointer-events: none; }
.guarantee > * { position: relative; z-index: 1; }
.guarantee h2 { color: #fff; font-size: clamp(1.75rem, 3.4vw, 2.625rem); letter-spacing: -.035em; margin-bottom: 14px; max-width: 760px; }
.guarantee p:not(.eyebrow) { max-width: 680px; font-size: 1.0313rem; }
.guarantee-mark { width: 72px; height: 72px; opacity: .9; }
.guarantee .eyebrow { color: var(--night-muted); }
.local-text { margin-bottom: 18px; font-size: .9375rem; color: var(--muted); }
.local-facts { list-style: none; display: grid; gap: 10px; }
.local-facts li { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; color: var(--text); }
.local-facts .icon { width: 17px; height: 17px; margin-top: .2em; color: var(--accent-ink); }
.local-facts a { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.local-facts a:hover { text-decoration-color: var(--accent); }
.footer-local { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 16px; }
.footer-local li, .footer-local a { display: inline-flex; align-items: center; gap: 6px; }
.footer-local li { font-size: .8125rem; color: var(--muted); }
.footer-local .icon { width: 15px; height: 15px; color: var(--accent-ink); }
.footer-local a { color: var(--text); font-weight: 500; }

/* ---------- legal ---------- */
.legal-meta { margin-top: 16px; font: 500 .875rem var(--font-mono); color: var(--muted); }
.legal { font-size: 1.0313rem; color: var(--text); }
.legal h2 { margin: 44px 0 14px; font-size: 1.375rem; }
.legal p, .legal ul { margin-bottom: 16px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal li::marker { color: var(--accent-ink); }
.legal a { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.legal strong { color: var(--ink); }
.legal-lead { font-size: 1.1875rem; color: var(--ink); }
.legal-note { padding: 12px 16px; border-radius: 10px; background: var(--bg-alt); font-size: .9375rem; color: var(--muted); }
.legal-box { padding: 20px 24px; margin-bottom: 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.legal-box p:last-child { margin-bottom: 0; }

/* ---------- 404 ---------- */
.not-found { min-height: 60vh; display: grid; align-items: center; border-bottom: 0; }
.nf-code { font: 700 clamp(5rem, 16vw, 11rem)/1 var(--font-display); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px var(--line-strong); margin-bottom: 8px; }
.not-found .hero-actions { margin-top: 32px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding-top: clamp(56px, 7vw, 88px); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 48px; }
.footer-brand p { margin: 18px 0 20px; max-width: 360px; color: var(--muted); font-size: .9375rem; }
.footer-mail { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.footer-mail .icon { color: var(--accent-ink); }
.footer-social { display: flex; gap: 8px; margin-top: 20px; }
.footer-col h2 { margin-bottom: 16px; font: 600 .75rem/1.2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { font-size: .9375rem; color: var(--text); transition: color .2s; }
.footer-col a:hover { color: var(--accent-ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 24px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.footer-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-meta span { display: inline-flex; align-items: center; gap: 6px; }
.footer-meta .icon { width: 15px; height: 15px; }
.footer-legal { display: block; margin-top: 4px; }

/* ---------- reveal on scroll (only when JS is running) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .service-grid, .service-grid-4, .industry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stack-grid, .want-grid, .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
  .step:nth-child(3) .step-rail::after { display: none; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero-inner, .why-layout, .faq-layout, .service-detail-grid, .two-col, .trust, .story, .nearshore, .contact-layout, .industry-details { grid-template-columns: minmax(0, 1fr); }
  .why-intro, .contact-side { position: static; }
  .price-panel, .scope-grid { grid-template-columns: minmax(0, 1fr); }
  .guarantee { grid-template-columns: minmax(0, 1fr); }
  .guarantee-mark { display: none; }
  .models, .founders, .timeline { grid-template-columns: minmax(0, 1fr); }
  .founder { flex-direction: row; }
  .founder-photo { width: 160px; flex: none; aspect-ratio: auto; height: auto; min-height: 100%; }
  .quality-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-dl { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; align-items: start; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .service-grid, .service-grid-4, .industry-grid, .stack-grid, .want-grid, .why-grid, .rhythm, .quality-grid, .values, .nearshore-grid, .field-row { grid-template-columns: minmax(0, 1fr); }
  .offer-grid, .offer-steps { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step { flex-direction: row; gap: 18px; }
  .step-rail { flex-direction: column; margin: 0; }
  .step-rail::after, .step:nth-child(3) .step-rail::after { display: block; width: 1px; height: auto; margin: 10px 0 0; background: repeating-linear-gradient(180deg, var(--line-strong) 0 6px, transparent 6px 12px); }
  .step:last-child .step-rail::after { display: none; }
  .step-body { padding-bottom: 28px; }
  .steps.is-detailed .step { padding-bottom: 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .founder { flex-direction: column; }
  .founder-photo { width: 100%; aspect-ratio: 4 / 3; min-height: 0; }
  .faq-answer { padding-right: 0; }
  .cta-actions .btn { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
  .window-tag { display: none; }
  .hero-visual { padding: 0 0 0; }
  .team-card { position: relative; width: auto; margin: -64px 16px 0; }
}
