/* Xiaoai Zhou LLC — site styles (dark technology theme) */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("/assets/fonts/source-serif-4-latin.woff2") format("woff2");
}

:root {
  --bg: #05070d;
  --bg-2: #080c17;
  --bg-3: #0c1222;
  --ink: #f5f8fc;            /* headings */
  --text: #d6deea;
  --muted: #8f9db3;
  --line: rgba(148, 163, 184, .14);
  --line-2: rgba(148, 163, 184, .24);
  --accent: #3b82f6;
  --accent-2: #22d3ee;
  --accent-dark: #2563eb;
  --gold: #e3c48d;
  --radius: 14px;
  --max: 1200px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --grad: linear-gradient(100deg, #60a5fa 0%, #22d3ee 55%, #e3c48d 100%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::selection { background: rgba(59,130,246,.35); color: #fff; }
img, svg { display: block; max-width: 100%; }
a { color: #7cb4ff; text-decoration: none; transition: color .2s; }
a:hover { color: #b4d4ff; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .6em; font-weight: 650; letter-spacing: -0.025em; }
p { margin: 0 0 1em; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; position: relative; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: #fff; color: #000; padding: 8px 12px; z-index: 100; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: shimmer 8s ease-in-out infinite alternate; }
@keyframes shimmer { to { background-position: 100% 0; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 7, 13, .55); border-bottom: 1px solid transparent;
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  transition: background .3s, border-color .3s;
}
.site-header.scrolled { background: rgba(5, 7, 13, .82); border-bottom-color: var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 0 14px rgba(59,130,246,.45)); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name strong { font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: .005em; }
.brand-name span { font-size: 10.5px; color: var(--muted); letter-spacing: .2em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: #b8c3d6; font-size: 14.5px; font-weight: 500; position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: #fff; }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; margin: 4px 0; border-radius: 2px; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0; background: rgba(5,7,13,.97);
    flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); padding: 8px 24px 22px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav .btn { margin-top: 16px; text-align: center; border-bottom: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 10px; font-weight: 600; font-size: 15px; color: #fff;
  background: linear-gradient(135deg, #3b82f6, #2563eb); border: 1px solid rgba(147,197,253,.35);
  box-shadow: 0 8px 30px -10px rgba(59,130,246,.75), inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.btn:hover { color: #fff; transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 12px 38px -10px rgba(59,130,246,.95), inset 0 1px 0 rgba(255,255,255,.22); }
.btn-outline { background: rgba(255,255,255,.03); border-color: var(--line-2); box-shadow: none; }
.btn-outline:hover { background: rgba(255,255,255,.07); border-color: rgba(148,163,184,.45); box-shadow: none; }
.btn-light { background: #fff; color: #050a16; border-color: #fff; box-shadow: 0 10px 34px -12px rgba(255,255,255,.45); }
.btn-light:hover { color: #050a16; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.link-arrow { font-weight: 600; font-size: 14.5px; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero, .page-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--bg); }
canvas.net { position: absolute; inset: 0; z-index: -1; }
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 520px at 78% 18%, rgba(59,130,246,.22), transparent 60%),
    radial-gradient(700px 480px at 10% 90%, rgba(34,211,238,.10), transparent 60%),
    radial-gradient(600px 300px at 50% -10%, rgba(227,196,141,.08), transparent 70%);
}
.hero::after, .page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(148,163,184,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
}
.hero { min-height: calc(100vh - 72px); min-height: calc(100svh - 72px); display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.hero .container { padding-top: 72px; padding-bottom: 96px; width: 100%; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero-grid > * { min-width: 0; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } }
.hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.04; letter-spacing: -0.04em; margin-bottom: 24px; }
.hero p.lead { font-size: 18.5px; max-width: 580px; color: #aab6c9; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-points { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 13.5px; color: var(--muted); }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); }

.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; margin-bottom: 26px;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255,255,255,.03);
  font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #c7d2e3;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; animation: ping 2.2s infinite; }
@media (max-width: 420px) { .badge { font-size: 10.5px; letter-spacing: .05em; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(52,211,153,0); } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 18px;
}
.eyebrow::before { content: "//"; color: var(--muted); }

/* Terminal */
.terminal {
  position: relative; border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, rgba(15,23,42,.92), rgba(8,12,23,.94));
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px -40px rgba(59,130,246,.55), 0 0 0 1px rgba(255,255,255,.02) inset;
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.terminal:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
@media (max-width: 980px) { .terminal, .terminal:hover { transform: none; } }
.terminal::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(96,165,250,.7), transparent 35%, transparent 65%, rgba(34,211,238,.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.term-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #334155; }
.term-bar i:nth-child(1) { background: #f87171; } .term-bar i:nth-child(2) { background: #fbbf24; } .term-bar i:nth-child(3) { background: #34d399; }
.term-bar em { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-left: 10px; }
.term-body {
  margin: 0; padding: 20px 22px; height: 400px; overflow: hidden; font-family: var(--mono); font-size: 13px; line-height: 1.75;
  color: #cbd5e1; white-space: pre-wrap; word-break: break-word;
}
@media (max-width: 560px) { .term-body { font-size: 11.5px; height: 380px; padding: 16px; } }
.t-line { display: block; }
.t-prompt { color: var(--accent-2); }
.t-cmd { color: #f1f5f9; }
.t-out { color: #94a3b8; }
.t-err { color: #fca5a5; }
.t-ok { color: #6ee7b7; }
.t-com { color: #e3c48d; font-style: italic; }
.t-caret { display: inline-block; width: 8px; height: 15px; margin-left: 2px; vertical-align: -2px; background: var(--accent-2); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 24px; height: 38px; border: 1.5px solid var(--line-2); border-radius: 14px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #cbd5e1; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (max-height: 760px), (max-width: 980px) { .scroll-cue { display: none; } }

/* Page hero (inner pages) */
.page-hero { border-bottom: 1px solid var(--line); }
.page-hero .container { padding-top: 110px; padding-bottom: 96px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 60px); letter-spacing: -0.035em; max-width: 820px; }
.page-hero p { font-size: 18px; max-width: 680px; margin: 0; color: #aab6c9; }
.breadcrumb { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-bottom: 22px; letter-spacing: .04em; }
.breadcrumb a { color: #b8c3d6; }

/* ---------- Marquee ---------- */
.marquee { border-bottom: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding: 24px 0 26px; }
.marquee-label { text-align: center; font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.marquee-viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track ul { display: flex; gap: 56px; list-style: none; margin: 0; padding: 0 28px; }
.marquee-track li { white-space: nowrap; font-size: 17px; font-weight: 600; color: #6b7a91; letter-spacing: -0.01em; transition: color .2s; }
.marquee-track li:hover { color: #e2e8f0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 120px 0; position: relative; }
.section-soft { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 60px; }
.section-head h2 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -0.035em; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
@media (max-width: 640px) { .section { padding: 84px 0; } .section-head { margin-bottom: 44px; } }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card {
  position: relative; border-radius: var(--radius); padding: 34px 30px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid var(--line); transition: transform .3s cubic-bezier(.2,.7,.2,1), border-color .3s, background .3s;
}
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(96,165,250,.9), rgba(34,211,238,.35) 35%, transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(59,130,246,.10), transparent 55%);
}
.card:hover { transform: translateY(-4px); border-color: transparent; }
.card:hover::before, .card:hover::after { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.card h3 { font-size: 20px; margin-top: 22px; letter-spacing: -0.02em; }
.card p { color: var(--muted); margin: 0; }
.card .link-arrow { margin-top: 18px; }
.icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(59,130,246,.22), rgba(34,211,238,.08)); color: #93c5fd;
  border: 1px solid rgba(96,165,250,.28); box-shadow: 0 0 24px -6px rgba(59,130,246,.5);
}
.icon svg { width: 23px; height: 23px; }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.top { align-items: start; }
.split > * { min-width: 0; }
.split.contact-split { grid-template-columns: 1.45fr 1fr; }
@media (max-width: 900px) { .split, .split.contact-split { grid-template-columns: 1fr; gap: 44px; } }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 14px; }
.checklist li strong { color: var(--ink); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 21px; height: 21px; border-radius: 6px;
  background: rgba(34,211,238,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322d3ee' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat;
  border: 1px solid rgba(34,211,238,.3);
}

/* Panel (glass) */
.panel {
  position: relative; border-radius: 18px; padding: 42px; color: var(--text);
  background: linear-gradient(160deg, rgba(59,130,246,.14), rgba(255,255,255,.02) 45%, rgba(34,211,238,.06));
  border: 1px solid var(--line-2); box-shadow: 0 30px 80px -40px rgba(59,130,246,.55);
}
.panel::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 80%) var(--my, 0%), rgba(96,165,250,.14), transparent 60%); }
@media (max-width: 560px) { .panel { padding: 30px 24px; } .panel dl { gap: 10px 18px; } }
.panel h3 { color: var(--ink); font-size: 21px; position: relative; }
.panel dl { position: relative; margin: 24px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 14px 26px; font-size: 15px; }
.panel dt { color: var(--muted); font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; padding-top: 2px; }
.panel dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.panel dd a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.3); }

/* Engagement models */
.model { display: flex; flex-direction: column; }
.model .tag, .case-head .tag { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); }
.model h3 { margin-top: 10px; }
.model ul { margin: 18px 0 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.model ul li { margin-bottom: 6px; }
.model ul li::marker { color: var(--accent-2); }
.model.featured { background: linear-gradient(180deg, rgba(59,130,246,.16), rgba(255,255,255,.02)); border-color: rgba(96,165,250,.45); box-shadow: 0 30px 80px -40px rgba(59,130,246,.7); }

/* Process */
.steps { counter-reset: step; position: relative; }
.step { position: relative; padding-top: 30px; border-top: 1px solid var(--line-2); }
.step::after { content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 2px; background: var(--grad); box-shadow: 0 0 14px rgba(34,211,238,.7); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--mono); font-size: 13px; color: var(--accent-2); margin-bottom: 14px; letter-spacing: .1em;
}
.step h3 { font-size: 20px; }
.step p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* Service detail */
.service-block { display: grid; grid-template-columns: 320px 1fr; gap: 56px; padding: 60px 0; border-top: 1px solid var(--line); }
.service-block:first-child { border-top: 0; padding-top: 0; }
.service-block h2 { font-size: 30px; letter-spacing: -0.03em; }
.service-block .num { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; margin-bottom: 12px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.service-block p { color: var(--muted); font-size: 17px; }
.service-block .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px; margin-top: 22px; }
.service-block .cols .checklist { margin: 0; }
@media (max-width: 900px) { .service-block { grid-template-columns: 1fr; gap: 16px; } .service-block .cols { grid-template-columns: 1fr; } }

/* Values */
.value { padding: 4px 0 4px 24px; border-left: 2px solid; border-image: var(--grad) 1; }
.value h3 { font-size: 20px; }
.value p { color: var(--muted); margin: 0; }

/* Who we serve */
.sector { display: flex; gap: 18px; align-items: flex-start; padding: 24px 0; border-top: 1px solid var(--line); }
.sector:first-child { border-top: 0; padding-top: 0; }
.sector .icon { flex: none; }
.sector h3 { font-size: 18px; margin: 3px 0 6px; }
.sector p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* Example engagements */
.case { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.case-head { padding: 28px 30px 22px; border-bottom: 1px solid var(--line); background: linear-gradient(160deg, rgba(59,130,246,.16), transparent 70%); }
.case-head h3 { margin: 10px 0 0; font-size: 21px; }
.case-body { padding: 24px 30px 30px; }
.case-body h4 { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 20px 0 6px; }
.case-body h4:first-child { margin-top: 0; }
.case-body p { color: var(--muted); margin: 0; font-size: 15.5px; }
.note { font-size: 13.5px; color: #6b7a91; margin-top: 30px; }

/* Founder */
.founder { display: grid; grid-template-columns: 280px 1fr; gap: 60px; align-items: start; }
@media (max-width: 820px) { .founder { grid-template-columns: 1fr; gap: 28px; } }
.portrait { position: relative; aspect-ratio: 4 / 5; max-width: 280px; border-radius: 18px; overflow: hidden; background: var(--bg-3); }
.portrait::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 64px; color: #fff; }
.portrait.has-photo { box-shadow: 0 30px 80px -30px rgba(59,130,246,.55), 0 0 0 1px rgba(96,165,250,.3); }
.founder .role { font-family: var(--mono); color: var(--accent-2); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 20px; }
.founder h3 { font-size: 34px; letter-spacing: -0.03em; margin-bottom: 8px; }
.founder p { color: var(--muted); font-size: 17px; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: var(--bg); border-top: 1px solid var(--line); isolation: isolate; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(700px 300px at 85% 50%, rgba(59,130,246,.28), transparent 70%), radial-gradient(500px 260px at 10% 50%, rgba(34,211,238,.12), transparent 70%);
}
.cta-band .container { padding-top: 100px; padding-bottom: 100px; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 12px; letter-spacing: -0.035em; }
.cta-band p { margin: 0; font-size: 17px; max-width: 620px; color: var(--muted); }

/* Contact */
.contact-card { position: relative; border-radius: 18px; padding: 40px; background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)); border: 1px solid var(--line-2); }
.contact-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(360px circle at var(--mx, 30%) var(--my, 0%), rgba(59,130,246,.12), transparent 60%); }
.contact-card > * { position: relative; }
@media (max-width: 560px) { .contact-card { padding: 28px 22px; } }
.contact-email { font-size: clamp(22px, 3vw, 30px); font-weight: 650; letter-spacing: -0.02em; display: inline-block; margin: 8px 0 26px; word-break: break-all;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
address { color: var(--muted); }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 0 24px; margin-bottom: 12px; background: rgba(255,255,255,.02); transition: border-color .2s, background .2s; }
.faq details[open] { border-color: rgba(96,165,250,.4); background: rgba(59,130,246,.05); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 20px; line-height: 1; color: var(--accent-2); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 22px; max-width: 820px; }

/* Legal */
.legal { max-width: 800px; }
.legal h2 { font-size: 22px; margin-top: 46px; letter-spacing: -0.02em; }
.legal p, .legal li { color: #b4c0d2; }

/* Footer */
.site-footer { background: #03050a; color: var(--muted); font-size: 14.5px; border-top: 1px solid var(--line); position: relative; }
.site-footer::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(96,165,250,.6), rgba(34,211,238,.6), transparent); }
.site-footer .container { padding-top: 76px; padding-bottom: 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--ink); font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #a3b0c4; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { margin-bottom: 18px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 60px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: #6b7a91; }

/* ---------- Reveal on scroll (enabled by site.js) ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.card.reveal.in:hover { transform: translateY(-4px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .terminal { transform: none; }
}

/* ---------- Scroll-driven effects (enabled by site.js via html.scrollfx) ---------- */
.progress-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 100; pointer-events: none;
  background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 12px rgba(34,211,238,.8);
}
.hero-copy, .hero-visual { will-change: transform, opacity; }

/* Pinned statement: words light up as you scroll */
.statement { position: relative; background: var(--bg); }
.statement-sticky { padding: 140px 0; }
.statement-text { font-size: clamp(30px, 4.6vw, 64px); font-weight: 650; line-height: 1.16; letter-spacing: -0.035em; color: var(--ink); max-width: 1050px; margin: 0; }
.statement-text .w { transition: opacity .25s, color .25s, text-shadow .25s; }
.statement-text .w.hl { color: #7dd3fc; }
.scrollfx .statement { height: 240vh; }
.scrollfx .statement-sticky { position: sticky; top: 72px; height: calc(100vh - 72px); display: flex; align-items: center; padding: 0; }
.scrollfx .statement-text .w { opacity: .13; }
.scrollfx .statement-text .w.on { opacity: 1; }
.scrollfx .statement-text .w.hl.on { text-shadow: 0 0 28px rgba(56,189,248,.55); }

/* Horizontal-scroll services */
.hs-section { position: relative; border-top: 1px solid var(--line); background: var(--bg); }
.hs-sticky { padding: 120px 0; }
.hs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.hs-head .section-head { margin-bottom: 56px; }
.hs-progress { display: none; }
.hs-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 980px) { .hs-track { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .hs-track { grid-template-columns: 1fr; } .hs-sticky { padding: 84px 0; } }
.hs-section.active .hs-sticky { position: sticky; top: 72px; height: calc(100vh - 72px); padding: 0; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hs-section.active .hs-head .section-head { margin-bottom: 44px; }
.hs-section.active .hs-progress { display: block; flex: none; width: 200px; height: 2px; background: var(--line-2); border-radius: 2px; margin-bottom: 64px; overflow: hidden; }
.hs-section.active .hs-progress span { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
.hs-section.active .hs-track {
  display: flex; gap: 24px; width: max-content; max-width: none; margin: 0; will-change: transform;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2 + 24px));
}
.hs-section.active .hs-track > .card { width: 400px; flex: none; min-height: 310px; padding: 40px 34px; }
.hs-section.active .hs-track > .card h3 { font-size: 23px; }
.hs-section.active .hs-track > .card .icon { width: 56px; height: 56px; }

/* Process steps light up in sequence */
.scrollfx .step::after { width: 0; transition: width .8s cubic-bezier(.2,.7,.2,1); }
.scrollfx .step.lit::after { width: 100%; }
.scrollfx .step h3, .scrollfx .step p, .scrollfx .step::before { transition: color .5s, opacity .5s; }
.scrollfx .step:not(.lit) h3 { color: #64748b; }
.scrollfx .step:not(.lit) p { opacity: .45; }

/* in-page anchors land just below the sticky header (section paging in site.js relies on this too) */
html { scroll-padding-top: 72px; }

/* Who we serve: heading + grid */
.serve-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 56px; }
.serve-head .section-head { margin-bottom: 0; }
.serve-head .btn { flex: none; }
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 36px; }
.sectors .sector, .sectors .sector:first-child { border-top: 1px solid var(--line); padding: 26px 0; }
@media (max-width: 1100px) { .sectors { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .sectors { grid-template-columns: 1fr; } .serve-head { margin-bottom: 36px; } }

/* ---------- Full-screen sections (desktop, enabled with section paging via html.paged) ---------- */
.paged main > section:not(.statement):not(.hs-section) {
  min-height: calc(100vh - 72px); display: flex; flex-direction: column; justify-content: center;
  padding-top: clamp(36px, 6vh, 96px); padding-bottom: clamp(36px, 6vh, 96px);
}
.paged main > section > .container { width: 100%; }
.paged .hero .container, .paged .page-hero .container { padding-top: 0; padding-bottom: 0; }
.paged .cta-band { min-height: calc(100vh - 72px - var(--footer-h, 0px)) !important; }
.paged .cta-band .container { padding-top: 0; padding-bottom: 0; }
.paged .section-head { margin-bottom: clamp(26px, 5vh, 60px); }
.paged .serve-head { margin-bottom: clamp(20px, 4vh, 56px); }
.paged .section-head h2 { font-size: clamp(28px, min(4vw, 5.4vh), 48px); }
.paged .hero { min-height: calc(100vh - 72px - var(--marquee-h, 0px)) !important; }
.paged .hero { padding-top: clamp(20px, 3.5vh, 72px) !important; padding-bottom: clamp(20px, 3.5vh, 72px) !important; }
.paged .hero h1 { font-size: clamp(36px, min(5.4vw, 7vh), 72px); margin-bottom: clamp(14px, 2.6vh, 24px); }
.paged .hero p.lead { font-size: clamp(15.5px, 2.2vh, 18.5px); margin-bottom: clamp(18px, 3.4vh, 36px); }
.paged .badge { margin-bottom: clamp(14px, 2.6vh, 26px); }
.paged .hero-grid { gap: clamp(32px, 4vw, 56px); }
@media (max-height: 860px) { .paged .hero-points, .paged .scroll-cue { display: none; } }
.paged .page-hero h1 { font-size: clamp(36px, min(5vw, 7vh), 60px); }
.paged .statement-text { font-size: clamp(28px, min(4.6vw, 7.2vh), 64px); }
.paged .term-body { height: clamp(260px, 44vh, 400px); }
.paged .hero-points { margin-top: clamp(20px, 4vh, 40px); }
.paged .sectors .sector { padding: clamp(12px, 2.2vh, 26px) 0; }
.paged .sectors .sector p { line-height: 1.55; }
.paged .case-head { padding: clamp(18px, 2.8vh, 28px) 28px clamp(14px, 2.2vh, 22px); }
.paged .case-body { padding: clamp(16px, 2.6vh, 24px) 28px clamp(20px, 3vh, 30px); }
.paged .case-body h4 { margin-top: clamp(12px, 2vh, 20px); }
.paged .case-body p { font-size: 15px; line-height: 1.6; }
.paged .card { padding: clamp(24px, 3.8vh, 34px) 30px; }
.paged .card h3 { margin-top: clamp(14px, 2.4vh, 22px); }
.paged .checklist li { margin-bottom: clamp(8px, 1.5vh, 14px); }
.paged .steps .step { padding-top: clamp(20px, 3.4vh, 30px); }
.paged .service-block { padding: clamp(36px, 6vh, 60px) 0; }
.paged .scroll-cue { bottom: clamp(14px, 3vh, 26px); }

/* Example engagements: tabs + panel */
.cases { display: grid; grid-template-columns: 320px 1fr; gap: 28px; align-items: stretch; }
@media (max-width: 980px) { .cases { grid-template-columns: 1fr; } }
.case-tabs { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 980px) { .case-tabs { flex-direction: row; overflow-x: auto; } .case-tab { min-width: 220px; } }
.case-tab {
  position: relative; overflow: hidden; text-align: left; cursor: pointer; font: inherit; color: var(--muted);
  padding: 18px 20px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.02);
  display: flex; flex-direction: column; gap: 6px; transition: border-color .25s, background .25s, color .25s;
}
.case-tab strong { color: #cbd5e1; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; }
.case-tab:hover { border-color: var(--line-2); background: rgba(255,255,255,.04); }
.case-tab.active { border-color: rgba(96,165,250,.55); background: linear-gradient(135deg, rgba(59,130,246,.18), rgba(34,211,238,.05)); box-shadow: 0 20px 50px -30px rgba(59,130,246,.8); }
.case-tab.active strong { color: #fff; }
.case-tab:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.case-timer { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
.case-tab.active.running .case-timer { animation: caseTimer 8s linear forwards; }
@keyframes caseTimer { to { transform: scaleX(1); } }
.case-panels { position: relative; }
.case-panel {
  position: relative; border-radius: 18px; padding: clamp(26px, 4vh, 40px) clamp(26px, 3vw, 40px); border: 1px solid var(--line-2);
  background: linear-gradient(160deg, rgba(59,130,246,.12), rgba(255,255,255,.02) 50%, rgba(34,211,238,.05));
  box-shadow: 0 30px 80px -40px rgba(59,130,246,.55);
}
.js .case-panel { display: none; }
.js .case-panel.active { display: block; animation: panelIn .55s cubic-bezier(.2,.7,.2,1); }
.case-panel + .case-panel { margin-top: 16px; }
.js .case-panel + .case-panel { margin-top: 0; }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.case-panel-head { padding-bottom: clamp(16px, 3vh, 26px); margin-bottom: clamp(18px, 3vh, 28px); border-bottom: 1px solid var(--line); }
.case-panel-head h3 { font-size: clamp(22px, 2.4vw, 30px); margin: 8px 0 0; letter-spacing: -0.03em; }
.case-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 760px) { .case-cols { grid-template-columns: 1fr; gap: 18px; } }
.case-cols h4 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; display: flex; gap: 10px; align-items: center; }
.case-cols h4 b { color: var(--accent-2); font-weight: 500; }
.case-cols p { color: var(--muted); margin: 0; font-size: 15.5px; line-height: 1.65; }
.case-tab .tag, .case-panel .tag { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); }

/* Short desktop screens (e.g. 1366x768 laptops): tighten so each section still fits one screen */
@media (max-height: 760px) {
  .paged main > section:not(.statement):not(.hs-section) { padding-top: 22px; padding-bottom: 22px; }
  .paged .section-head { margin-bottom: 22px; }
  .paged .section-head p { font-size: 15.5px; }
  .paged .section-head h2 { margin-bottom: .45em; }
  .paged .eyebrow { margin-bottom: 10px; }
  .paged .serve-head .section-head p { display: none; }
  .paged .sectors .sector { padding: 10px 0; gap: 14px; }
  .paged .sectors .sector .icon { width: 38px; height: 38px; }
  .paged .sectors .sector h3 { font-size: 16.5px; margin-bottom: 3px; }
  .paged .sectors .sector p { font-size: 14px; line-height: 1.45; }
  .paged #engagements .section-head p { display: none; }
  .paged .case-tabs { gap: 8px; }
  .paged .case-tab { padding: 12px 16px; }
  .paged .case-tab strong { font-size: 15px; }
  .paged .case-panel { padding: 20px 26px; }
  .paged .case-cols p { font-size: 14px; line-height: 1.5; }
  .paged .checklist { margin-top: 14px; }
  .paged .checklist li { margin-bottom: 6px; font-size: 15px; }
  .paged .panel { padding: 26px 30px; }
  .paged .panel dl { gap: 8px 22px; margin-top: 14px; }
  .paged .split p.muted { margin-bottom: .6em; font-size: 15px; }
  .paged .cta-band h2 { font-size: 30px; }
  .site-footer .container { padding-top: 40px; padding-bottom: 20px; }
  .site-footer li { margin-bottom: 6px; }
  .site-footer .brand { margin-bottom: 12px; }
  .footer-bottom { margin-top: 26px; padding-top: 16px; }
}
