/* tokens.css */
/* ibrahim.im design tokens (docs/BRAND.md). New tints only here (R2). */
@font-face { font-family: 'Playfair Display'; font-weight: 400 700; font-display: swap; src: url('../assets/fonts/playfair-latin-var.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400 700; font-display: swap; src: url('../assets/fonts/inter-latin-var.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 400 700; font-display: swap; src: url('../assets/fonts/spacegrotesk-latin-var.woff2') format('woff2'); }

:root {
  /* brand */
  --blue: #2563eb;
  --blue-300: #60a5fa;
  --blue-700: #1d4ed8;
  --blue-char: #1e7bff;
  --grad: linear-gradient(135deg, #60a5fa 0%, #2563eb 50%, #1d4ed8 100%);
  --grad-h: linear-gradient(90deg, #60a5fa 0%, #2563eb 55%, #1d4ed8 100%);
  --tint: rgba(37, 99, 235, .1);
  --tint-2: rgba(37, 99, 235, .05);
  /* neutrals */
  --ink: #0f1f3d;          /* deep navy for dark bands and strong text */
  --navy: #002159;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-2: #f8fafc;
  --bg-3: #f1f5fb;
  /* type */
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --ui: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --fs-hero: clamp(3.6rem, 10.5vw, 9rem);
  --fs-h1: clamp(2.6rem, 6vw, 4.8rem);
  --fs-h2: clamp(2.2rem, 4.6vw, 3.8rem);
  --fs-h3: clamp(1.35rem, 2vw, 1.75rem);
  --fs-lede: clamp(1.05rem, 1.4vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: .875rem;
  /* space + shape */
  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --section: clamp(4.5rem, 10vw, 8rem);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow-soft: 0 4px 6px -1px rgba(0,0,0,.05), 0 2px 4px -1px rgba(0,0,0,.03);
  --shadow: 0 10px 15px -3px rgba(0,0,0,.07), 0 4px 6px -2px rgba(0,0,0,.04);
  --shadow-lg: 0 25px 50px -12px rgba(0,0,0,.15);
  --shadow-blue: 0 18px 40px -16px rgba(37,99,235,.55);
  /* motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  --header-h: 80px;
}

/* base.css */
/* Base, layout primitives and shared components (header, buttons, eyebrow, footer). */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
html, body { overflow-x: clip; }
body { font: 400 var(--fs-body)/1.7 var(--sans); color: var(--slate-500); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid rgba(37, 99, 235, .45); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 999; background: var(--blue); color: #fff; padding: .6rem 1rem; border-radius: var(--r-sm); text-decoration: none; font-weight: 600; }
.skip:focus { top: 1rem; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section); }
.band-2 { background: var(--bg-2); }
.band-dark { background: var(--ink); color: #c7d2e6; }
.band-dark h2, .band-dark h3 { color: #fff; }

/* type */
h1, h2, h3 { color: var(--slate-700); font-weight: 700; letter-spacing: -.02em; }
.h-serif { font-family: var(--serif); }
.h2 { font-family: var(--serif); font-size: var(--fs-h2); line-height: 1.08; }
.h3 { font-family: var(--serif); font-size: var(--fs-h3); line-height: 1.25; font-weight: 600; }
.lede { font-size: var(--fs-lede); line-height: 1.6; color: var(--slate-500); max-width: 38rem; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-bottom: .06em; }
/* split headlines: gradient text can't paint through transformed children, so each word carries it */
.grad.is-split { background: none; -webkit-text-fill-color: currentColor; color: inherit; }
.grad.is-split .w { background: var(--grad); background-size: var(--gw, 300%) 100%; background-position: var(--gx, 0) 0; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-bottom: .06em; }
strong { color: var(--slate-700); font-weight: 600; }

/* eyebrow with side lines (old-site pattern, R2) */
.eyebrow { display: flex; align-items: center; gap: 1.1rem; font: 600 .82rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--blue); margin-bottom: 1.25rem; }
.eyebrow::before, .eyebrow::after { content: ''; width: 48px; height: 1px; background: currentColor; opacity: .35; }
.eyebrow.left::before { display: none; }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .lede { margin-inline: auto; }
.head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.head .lede { margin-top: 1rem; }

/* buttons */
.btn { --bg: var(--grad); display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 52px; padding: .95rem 1.9rem; border: 0; border-radius: var(--r-pill); background: var(--bg); color: #fff; font: 600 1.02rem/1 var(--sans); text-decoration: none; box-shadow: var(--shadow-blue); transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 24px 44px -16px rgba(37,99,235,.65); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn.light { --bg: #fff; color: var(--blue); box-shadow: var(--shadow); }
.btn.ghost { --bg: transparent; color: var(--slate-700); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--blue); color: var(--blue); }
.link { display: inline-flex; align-items: center; gap: .5rem; color: var(--slate-500); font-weight: 600; text-decoration: none; transition: color .25s, gap .25s; }
.link:hover { color: var(--blue); gap: .75rem; }
.link svg { width: 16px; height: 16px; }
.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* shared components (home + work) */
.h1 { font-family: var(--serif); font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -.03em; }
.grad-light { background: linear-gradient(135deg, #93c5fd, #60a5fa 50%, #3b82f6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-card { position: relative; width: 100%; max-width: 920px; margin-top: 1rem; padding: clamp(2.75rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4rem); border-radius: var(--r-lg); background: var(--grad); color: rgba(255,255,255,.92); text-align: center; box-shadow: 0 30px 60px -25px rgba(37,99,235,.7); }
.cta-card h2, .cta-card h3 { font: 600 clamp(1.9rem, 3.6vw, 2.8rem)/1.15 var(--serif); color: #fff; margin-bottom: .8rem; }
.cta-card .doodle > svg { color: #fff; }
.cta-card p { max-width: 42ch; margin: 0 auto 1.8rem; font-size: 1.08rem; }
.cta-char { --w: clamp(130px, 14vw, 190px); left: clamp(-1rem, -2vw, 0rem); top: 0; translate: 0 -78%; }
.card-proof { margin: 1.6rem 0 0 !important; font: 600 .8rem/1.4 var(--ui) !important; letter-spacing: .12em; text-transform: uppercase; color: #dbeafe; }
.mini-logos { display: flex; justify-content: center; gap: 1.6rem; margin-top: 1.8rem; align-items: center; }
.mini-logos img { height: 22px; width: auto; filter: brightness(0) invert(1); opacity: .75; }


/* header */
.hdr { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); display: flex; align-items: center; transition: background .35s, box-shadow .35s, transform .4s var(--ease-io); }
.hdr.is-scrolled { background: rgba(255,255,255,.9); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); box-shadow: 0 1px 0 var(--line); }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.hdr .logo img, .hdr .logo .logo-svg { display: block; width: 116px; height: auto; overflow: visible; }
/* logo intro (once per visit, set in head.html): letters rise from the baseline, the i's dot drops, ".im" lands (core.js) */
.logo-svg .L { transform-box: fill-box; transform-origin: 50% 100%; }
.logo-intro .hdr .logo-svg .L { opacity: 0; }
.nav { display: flex; gap: 2.2rem; }
.nav a { font: 500 .92rem/1 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--navy); text-decoration: none; position: relative; padding-block: .5rem; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--grad-h); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.nav a:hover::after, .nav a[aria-current=page]::after { transform: scaleX(1); }
.hdr .btn { min-height: 44px; padding: .7rem 1.3rem; font-size: .92rem; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; color: var(--navy); align-items: center; justify-content: center; }
.menu-btn svg { width: 26px; height: 26px; }

/* floating CTA (phones): visible after the hero, hidden while the contact form is on screen (R16) */
.float-cta { position: fixed; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 90; display: none; align-items: center; gap: .5rem; padding: .95rem 1.6rem; border-radius: var(--r-pill); background: var(--grad); color: #fff; font: 600 1rem/1 var(--sans); text-decoration: none; box-shadow: 0 16px 34px -12px rgba(37,99,235,.7); translate: -50% 140%; transition: translate .45s var(--ease-out); }
.float-cta svg { width: 18px; height: 18px; }
.float-cta.is-shown { translate: -50% 0; }

/* footer */
.ftr { position: relative; padding: clamp(4rem, 8vw, 6rem) 0 2rem; border-top: 1px solid var(--line); background: radial-gradient(ellipse 50% 70% at 0% 0%, rgba(96,165,250,.12), transparent 70%), var(--bg); overflow: hidden; }
.ftr-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem; }
.ftr .logo img { width: 120px; margin-bottom: 1.25rem; }
.ftr p { max-width: 32ch; font-size: .95rem; }
.ftr h2 { font: 600 .85rem/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--slate-700); margin-bottom: 1.25rem; }
.ftr ul { list-style: none; display: grid; gap: .8rem; }
.ftr ul a { text-decoration: none; display: inline-flex; gap: .55rem; align-items: center; transition: color .2s; }
.ftr ul a:hover { color: var(--blue); }
.ftr-bottom { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; }

@media (max-width: 900px) {
  .nav { position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; gap: 0; padding: .5rem var(--gutter) 1.5rem; background: #fff; box-shadow: 0 24px 30px -24px rgba(15,31,61,.25); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s; }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .menu-btn { display: inline-flex; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .ftr-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .cta-char { --w: 110px; translate: 0 -70%; left: .5rem; }
}
@media (max-width: 760px) {
  .float-cta { display: inline-flex; }
  body { padding-bottom: 5.5rem; } /* the floating CTA never hides the end of the page */
}
@media (max-width: 560px) {
  :root { --header-h: 68px; }
  .hdr .btn { display: none; }
  .ftr-grid { grid-template-columns: 1fr; }
}

/* QA 2026-10-12: small blue text meets 4.5:1, location tags never below 12px */
.eyebrow { color: #1d4ed8; }
.loc { font-size: max(12px, .72rem); }
small { font-size: max(12px, 80%); }
@media (max-width: 767px) { .story-proof, .close-proof, .contact-proof { font-size: 1rem; } }
.ftr .ftr-cta { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--blue); }

/* decor.css */
/* Decor library (docs/DECOR-LIBRARY.md). Pages reuse these; no one-off ornaments (R11).
   Ambient decor stays slow and low-opacity; everything static under reduced motion (core.js skips the loops). */

/* 1. Starburst: converging rays from the old hero. <svg class="burst"><use href="#d-burst"/></svg> */
.burst { position: absolute; width: var(--s, 900px); height: var(--s, 900px); color: var(--blue); opacity: var(--o, .14); pointer-events: none; }
.burst line { stroke: currentColor; stroke-width: 1.2; vector-effect: non-scaling-stroke; }

/* 2. Watercolour blob (old About motif). <div class="blob" style="--s:520px"></div> */
.blob { position: absolute; width: var(--s, 520px); aspect-ratio: 592 / 451; background: none center / contain no-repeat; opacity: var(--o, .16); pointer-events: none; }

/* 3. Grid paper / blueprint (old Process motif). <div class="gridpaper"></div> */
.gridpaper { position: absolute; inset: 0; pointer-events: none; opacity: var(--o, .7);
  background-image: linear-gradient(rgba(37,99,235,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(37,99,235,.07) 1px, transparent 1px), linear-gradient(rgba(37,99,235,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(37,99,235,.035) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 35%, transparent 80%); mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 35%, transparent 80%); }

/* 4. Sparkle: blue 4-point star from the characters. <svg class="sparkle" style="--s:22px"><use href="#d-sparkle"/></svg> */
.sparkle { position: absolute; width: var(--s, 20px); height: var(--s, 20px); color: var(--blue-char); pointer-events: none; transform-origin: center; }
.sparkle.inline { position: relative; display: inline-block; vertical-align: super; margin-left: .1em; }

/* 5. Doodles: hand-drawn underline / circle / arrow, drawn on reveal. */
.doodle { position: relative; display: inline-block; white-space: nowrap; }
.doodle > svg { position: absolute; pointer-events: none; overflow: visible; color: var(--blue-300); fill: none; stroke: currentColor; }
.doodle > svg path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.doodle.under > svg { left: -2%; right: -2%; width: 104%; bottom: -.12em; height: .32em; }
.doodle.circle > svg { inset: -18% -9%; width: 118%; height: 136%; }
.doodle-arrow { position: absolute; width: var(--s, 120px); color: var(--slate-500); pointer-events: none; }
.doodle-arrow path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* 6. Tilted gradient card behind media (old portrait motif). Wrap: <div class="tiltcard">media</div> */
.tiltcard { position: relative; isolation: isolate; }
.tiltcard::before { content: ''; position: absolute; inset: 4% -5% -6% 7%; z-index: -1; border-radius: var(--r-lg); background: var(--grad); transform: rotate(var(--tilt, 3deg)); box-shadow: var(--shadow-blue); }

/* 7. Ghost word: the giant pale "Hi," behind a headline. <span class="ghost" aria-hidden="true">Hi,</span> */
.ghost-word { position: absolute; font: 600 clamp(8rem, 22vw, 16rem)/.8 var(--serif); color: #eef3fb; pointer-events: none; user-select: none; z-index: 0; }

/* 8. Character: hand-drawn Ibrahim. <img class="char" data-char src="assets/char/telescope.webp" alt=""> */
.char { position: absolute; width: var(--w, 220px); height: auto; pointer-events: none; z-index: 2; filter: drop-shadow(0 18px 24px rgba(15,31,61,.08)); }
.char.static { position: relative; }

/* 9. Dotted path (flight paths, connections). */
.dotpath { position: absolute; pointer-events: none; color: var(--blue-300); }
.dotpath path { fill: none; stroke: currentColor; stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; }

/* 10. Device frames for project videos. */
.laptop { position: relative; width: 100%; }
.laptop .screen { position: relative; border: clamp(6px, .8vw, 10px) solid #141b2d; border-bottom-width: clamp(10px, 1.4vw, 18px); border-radius: clamp(10px, 1.2vw, 16px) clamp(10px, 1.2vw, 16px) 6px 6px; overflow: hidden; aspect-ratio: 16 / 10; background: #0f172a; }
.laptop .screen video, .laptop .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.laptop .base { height: clamp(8px, 1vw, 14px); margin: 0 -7%; border-radius: 0 0 14px 14px; background: linear-gradient(#e5e9f0, #b9c1cf); box-shadow: 0 18px 30px -12px rgba(15,31,61,.35); }
.laptop .base::before { content: ''; display: block; width: 16%; height: 40%; margin: 0 auto; border-radius: 0 0 8px 8px; background: #a7b0bf; }
.phone { position: relative; width: var(--w, 24%); aspect-ratio: 390 / 844; border: clamp(4px, .55vw, 7px) solid #141b2d; border-radius: clamp(16px, 2vw, 26px); overflow: hidden; background: #0f172a; box-shadow: 0 24px 40px -16px rgba(15,31,61,.45); }
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.devices { position: relative; }
.devices .phone { position: absolute; right: -4%; bottom: -8%; }

/* 11. Location pill with a flag (old project cards). */
.loc { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .7rem; border-radius: var(--r-pill); background: var(--tint); color: var(--blue); font: 600 .75rem/1 var(--sans); white-space: nowrap; }
.loc .flag { width: 1.3em; height: .87em; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }

/* 12. Soft glow orb for dark bands. */
.orb { position: absolute; width: var(--s, 40vw); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(96,165,250,.35), transparent 65%); pointer-events: none; }

@media (max-width: 760px) {
  .char.hide-sm, .doodle-arrow.hide-sm, .burst.hide-sm { display: none; }
}

/* decorative blob: loads after the page is up (class set by the build's script loader) */
.is-loaded .blob { background-image: url('../assets/img/bg-blob.webp'); }

/* components.css */
/* Shared components (accordion, chips, timeline, contact form, pills), used by Home and every page.
   Moved out of home.css 2026-10-12 so the generated pages use the same kit. */
.pill { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--bg-2); color: var(--slate-700); font-size: .9rem; font-weight: 500; }
.pill .flag { width: 1.3em; height: .87em; border-radius: 2px; }
.icon-link { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--slate-500); transition: color .2s, background .2s; }
.icon-link:hover { color: var(--blue); background: var(--tint); }
.icon-link svg { width: 20px; height: 20px; }
.timeline { list-style: none; position: relative; max-width: 940px; margin: 0 auto; }
.tl-line { position: absolute; left: 50%; top: 1.5rem; bottom: 1.5rem; width: 3px; translate: -50% 0; background: repeating-linear-gradient(to bottom, var(--line) 0 8px, transparent 8px 16px); border-radius: 2px; }
.tl-fill { position: absolute; inset: 0 0 auto; height: 0; background: linear-gradient(var(--blue), var(--blue-300)); border-radius: 2px; }
.step { position: relative; width: 50%; padding: 1.6rem 3.5rem 1.6rem 0; }
.step:nth-child(odd) { margin-left: 50%; padding: 1.6rem 0 1.6rem 3.5rem; }
.step .dot { position: absolute; top: 50%; right: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 3px solid var(--slate-300); box-shadow: 0 0 0 7px var(--bg); translate: 0 -50%; transition: background .4s, border-color .4s, scale .4s var(--ease-pop); }
.step:nth-child(odd) .dot { right: auto; left: -11px; }
.step.is-on .dot { background: var(--blue); border-color: var(--blue); scale: 1.25; box-shadow: 0 0 0 7px var(--bg), 0 0 22px rgba(37,99,235,.35); }
.step .card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 2rem; box-shadow: var(--shadow); transition: transform .35s var(--ease-out), box-shadow .35s; }
.step .card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.step .num { font: 600 .82rem/1 var(--ui); letter-spacing: .14em; color: var(--blue); margin-bottom: .7rem; }
.step .h3 { margin-bottom: .6rem; }
.step .doodle > svg { color: var(--blue-300); }
.plus { position: relative; width: 22px; height: 22px; flex-shrink: 0; }
.plus::before, .plus::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease-out); }
.plus::after { transform: rotate(90deg); }
.acc { display: grid; gap: .9rem; }
.acc-item { border-radius: var(--r); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: background .45s var(--ease-io), border-color .45s, box-shadow .45s; }
.acc-item.is-open { background: var(--grad); border-color: transparent; box-shadow: var(--shadow-blue); color: rgba(255,255,255,.9); }
.acc-btn { width: 100%; display: flex; align-items: center; gap: 1.2rem; padding: 1.5rem 1.6rem; border: 0; background: none; text-align: left; color: var(--slate-700); }
.acc-item.is-open .acc-btn { color: #fff; }
.acc-btn .num { font: 600 .85rem/1 var(--ui); letter-spacing: .12em; color: var(--blue); }
.acc-item.is-open .acc-btn .num { color: #dbeafe; }
.acc-btn .t { flex: 1; font: 600 clamp(1.3rem, 2vw, 1.6rem)/1.2 var(--serif); }
.acc-item.is-open .plus::after { transform: rotate(0); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-io); }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; padding: 0 1.6rem; }
.acc-item.is-open .acc-panel > div { padding-bottom: 1.6rem; }
.acc-panel p { font-size: 1.05rem; max-width: 52ch; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.1rem 0; }
.chips li { padding: .45rem .9rem; border-radius: var(--r-pill); background: rgba(255,255,255,.16); color: #fff; font-size: .85rem; font-weight: 500; }
.acc-proof { font-size: .95rem !important; color: #dbeafe; }
.acc-proof strong { color: #fff; }
.chip { display: inline-block; margin-top: 1rem; padding: .35rem .8rem; border-radius: var(--r-pill); background: var(--tint); color: var(--blue); font: 600 .78rem/1 var(--ui); letter-spacing: .04em; }
.contact { overflow: hidden; }
.contact-card { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); padding: clamp(2rem, 5vw, 4.5rem); border-radius: 28px; background: var(--bg-2); box-shadow: var(--shadow-lg); }
.contact-list { list-style: none; display: grid; gap: .9rem; margin: 1.8rem 0 1.2rem; }
.contact-list li { display: flex; align-items: center; gap: .7rem; color: var(--slate-700); }
.contact-list .i { color: var(--blue); width: 20px; height: 20px; }
.contact-list a { text-decoration: none; font-weight: 600; } .contact-list a:hover { color: var(--blue); }
.contact-proof { font: 600 .8rem/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--slate-500); }
.plane-wrap { position: relative; height: 170px; margin-top: 1.5rem; }
.plane-wrap .dotpath { inset: 0 auto auto 0; width: 100%; height: 100%; }
.form { background: #fff; border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: var(--shadow); align-self: start; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; margin-bottom: .45rem; font: 600 .92rem/1.2 var(--sans); color: var(--slate-700); }
.field label span { font-weight: 400; color: var(--slate-500); }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--slate-700); background: var(--bg-2); border: 1.5px solid var(--line); border-radius: 12px; padding: .9rem 1rem; transition: border-color .2s, box-shadow .2s, background .2s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px var(--tint); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #dc2626; }
.field .err { display: block; margin-top: .35rem; font-size: .82rem; color: #b91c1c; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.form .btn { width: 100%; margin-top: .4rem; }
.form-note { margin-top: .9rem; font-size: .85rem; }
.form-done { display: none; margin-top: 1rem; padding: .9rem 1rem; border-radius: 12px; background: var(--tint); color: var(--blue-700); font-weight: 600; }
.form.is-done .form-done { display: block; }
.icon-link { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; }
@media (max-width: 1080px) {
  .contact-card { grid-template-columns: 1fr; }
  .step, .step:nth-child(odd) { width: 100%; margin-left: 0; padding: .8rem 0 .8rem 2rem; }
  .step .card { padding: 1.4rem 1.25rem; }
  .tl-line { left: 10px; translate: 0 0; }
  .step .dot, .step:nth-child(odd) .dot { left: 0; right: auto; }
}
@media (max-width: 760px) { .contact-card { padding: 1.5rem 1.1rem; border-radius: 20px; } }
.form-error { margin-bottom: 1rem; padding: .8rem 1rem; border-radius: 12px; background: #fef2f2; color: #b91c1c; font-weight: 600; }
.btn.light { color: #1d4ed8; }
@media (max-width: 767px) { .form-note { font-size: 1rem; } }

/* pages.css */
/* Sub-pages (docs/pages/subpages.md): about, services, contact, case studies, thank-you, 404, privacy.
   Generated by tools/gen_pages.py; shared kit in base/decor/components. */

/* ---------- page hero (every sub-page) ---------- */
.p-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + clamp(3rem, 9vh, 6rem)) 0 clamp(3rem, 7vw, 5rem); }
.p-hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.p-hero .h1 { max-width: 14ch; }
.p-hero .lede { margin-top: 1.2rem; max-width: 40rem; }
.p-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 1.6rem; margin-top: 2rem; }
.p-proof { margin-top: 1.6rem; font: 600 .8rem/1.4 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--slate-500); }
.p-art { position: relative; justify-self: center; width: min(100%, 420px); }
.p-art .char { position: relative; --w: 100%; }
.crumb { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; font: 600 .82rem/1 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--slate-500); }
.crumb a { color: var(--blue-700); text-decoration: none; } .crumb a:hover { text-decoration: underline; }
.crumb span[aria-hidden] { color: var(--slate-300); }

/* ---------- About: the portrait card ---------- */
.about-card { position: relative; max-width: 400px; justify-self: end; }
.about-card img { border-radius: var(--r); box-shadow: var(--shadow-lg); }
.p-hero .ghost-word { left: -1rem; top: -2.5rem; }
.p-hero .meta { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; margin-top: 1.6rem; }

/* ---------- About wow: the fields I connect (constellation) ---------- */
.fields { overflow: hidden; }
.constellation { position: relative; max-width: 1040px; margin: 0 auto; aspect-ratio: 1000 / 620; }
.constellation > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.constellation .wire { fill: none; stroke: var(--blue-300); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 9; vector-effect: non-scaling-stroke; }
.constellation .wire-glow { fill: none; stroke: url(#wire-g); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.node { position: absolute; translate: -50% -50%; display: grid; justify-items: center; gap: .55rem; width: 190px; text-align: center; }
.node .dot { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1.5px solid var(--line); box-shadow: var(--shadow); color: var(--blue); }
.node .dot svg { width: 28px; height: 28px; }
.node b { font: 600 1.08rem/1.2 var(--serif); color: var(--ink); }
.node small { font-size: .9rem; line-height: 1.45; color: var(--slate-500); }
.node.core { width: 240px; }
.node.core .dot { width: 120px; height: 120px; background: var(--grad); border: 0; color: #fff; box-shadow: var(--shadow-blue); }
.node.core .dot svg { width: 46px; height: 46px; }
.node.core b { font-size: 1.35rem; }
.node.core .ring { position: absolute; top: 0; left: 50%; width: 120px; height: 120px; margin-left: -60px; border-radius: 50%; border: 2px solid var(--blue-300); opacity: 0; }
.fields-list { display: none; }

/* ---------- About: story timeline + how I work ---------- */
.story-tl .card p { font-size: 1rem; }
.story-tl .year { display: inline-block; margin-bottom: .6rem; font: 700 1.4rem/1 var(--serif); color: var(--blue); }
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: how; }
.how-grid article { position: relative; padding: 2rem 1.6rem; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-soft); transition: transform .35s var(--ease-out), box-shadow .35s; }
.how-grid article:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.how-grid .num { display: block; margin-bottom: 1rem; font: 600 .82rem/1 var(--ui); letter-spacing: .14em; color: var(--blue); }
.how-grid .h3 { margin-bottom: .55rem; font-size: 1.3rem; }
.how-grid p { font-size: 1rem; }
.offclock { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; padding: clamp(1.6rem, 4vw, 2.4rem); border-radius: var(--r-lg); background: var(--bg-3); }
.offclock .char { position: relative; --w: clamp(110px, 12vw, 150px); }
.offclock p { max-width: 52ch; font-size: 1.08rem; }

/* ---------- Services wow: the six layers ---------- */
.layers-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.iso { position: relative; height: clamp(360px, 42vw, 480px); perspective: 1400px; display: grid; place-items: center; }
.iso-stack { position: relative; width: min(300px, 70%); aspect-ratio: 16 / 10.5; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-40deg); }
.plate { --i: 0; position: absolute; inset: 0; border-radius: 14px; background: rgba(255,255,255,.95); border: 1.5px solid rgba(37,99,235,.22); box-shadow: 0 26px 36px -22px rgba(15,31,61,.35);
  transform: translateZ(calc(var(--i) * 46px)); transition: transform .5s var(--ease-out), border-color .3s, box-shadow .3s, background .3s; display: grid; place-items: center; }
.plate span { font: 700 1.05rem/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--slate-300); transform: rotateZ(40deg); transition: color .3s; }
.plate.is-on { transform: translateZ(calc(var(--i) * 46px + 34px)); border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,.25), 0 34px 50px -20px rgba(37,99,235,.55); }
.plate.is-on span { color: var(--blue); }
.plate.code { background: #0f1f3d; border-color: #1e3a8a; } .plate.code span { color: #93c5fd; }
.layer-list { list-style: none; display: grid; gap: .6rem; }
.layer-list button { width: 100%; display: grid; grid-template-columns: 2.6rem 1fr; gap: .2rem .8rem; align-items: baseline; padding: .95rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: left; color: var(--slate-700); cursor: pointer; transition: border-color .3s, box-shadow .3s, background .3s; }
.layer-list .n { font: 600 .78rem/1 var(--ui); letter-spacing: .12em; color: var(--blue); }
.layer-list .t { font: 600 1.2rem/1.25 var(--serif); color: var(--ink); }
.layer-list .d { grid-column: 2; font-size: .98rem; line-height: 1.55; color: var(--slate-500); }
.layer-list li.is-on button, .layer-list button:hover, .layer-list button:focus-visible { border-color: rgba(37,99,235,.4); box-shadow: var(--shadow); }

/* ---------- Services: three services, sectors, FAQ ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.svc { display: flex; flex-direction: column; gap: .9rem; padding: 2.2rem 1.9rem; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.svc.is-main { background: var(--grad); border: 0; color: #e0ecff; box-shadow: var(--shadow-blue); }
.svc.is-main .h3, .svc.is-main .num { color: #fff; }
.svc .num { font: 600 .82rem/1 var(--ui); letter-spacing: .14em; color: var(--blue); }
.svc ul { list-style: none; display: grid; gap: .45rem; margin-top: .2rem; }
.svc li { position: relative; padding-left: 1.4rem; font-size: 1rem; }
.svc li::before { content: ''; position: absolute; left: 0; top: .6em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--blue-300); }
.svc.is-main li::before { background: #bfdbfe; }
.svc .proof { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .95rem; }
.svc.is-main .proof { border-color: rgba(255,255,255,.25); }
.sectors { display: grid; gap: 1rem; }
.sector { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; align-items: center; padding: 1.3rem 1.4rem; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.sector .h3 { font-size: 1.25rem; }
.sector p { font-size: .95rem; margin-top: .25rem; }
.thumbs { display: flex; flex-wrap: wrap; gap: .7rem; }
.thumbs a { position: relative; display: block; width: 132px; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-soft); text-decoration: none; transition: transform .3s var(--ease-out), box-shadow .3s; }
.thumbs a:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.thumbs img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.thumbs span { display: block; padding: .45rem .6rem; font: 600 .78rem/1.25 var(--sans); color: var(--slate-700); background: #fff; }
.faq { max-width: 860px; margin: 0 auto; }

/* ---------- Contact ---------- */
.contact-page .contact-card { margin-top: 0; }
.next-steps { position: relative; }
.flight { position: relative; max-width: 1080px; margin: 0 auto; }
.flight svg.dotpath { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.flight-steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.flight-steps li { list-style: none; padding: 2rem 1.7rem; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.flight-steps li:nth-child(2) { margin-top: 3rem; } .flight-steps li:nth-child(3) { margin-top: 6rem; }
.flight-steps .num { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 1rem; border-radius: 50%; background: var(--grad); color: #fff; font: 700 1rem/1 var(--ui); }
.flight-steps .h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.flight .char { --w: clamp(110px, 12vw, 150px); right: -1rem; top: -7rem; }

/* ---------- Case study ---------- */
.cs-hero { padding-bottom: 0; }
.cs-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem; margin-top: 1.4rem; }
.cs-devices { position: relative; max-width: 1080px; margin: clamp(2.5rem, 6vw, 4rem) auto 0; padding: 0 0 2rem; }
.cs-devices .laptop { width: 82%; }
.cs-devices .laptop .screen { aspect-ratio: 16 / 10; }
.cs-devices .phone-frame { position: absolute; right: 2%; bottom: 0; width: 21%; border: clamp(6px, .8vw, 10px) solid #141b2d; border-radius: clamp(18px, 2.6vw, 34px); overflow: hidden; background: #000; box-shadow: var(--shadow-lg); aspect-ratio: 9 / 19.5; }
.cs-devices .phone-frame video, .cs-devices .phone-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.cs-tint { position: absolute; inset: 18% -6vw -10% -6vw; z-index: -1; border-radius: 40px; background: var(--tint-cs, var(--bg-3)); }
.csr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.csr article { padding: 2rem 1.8rem; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.csr article:last-child { background: var(--grad); border: 0; color: #e0ecff; box-shadow: var(--shadow-blue); }
.csr article:last-child .h3, .csr article:last-child .num { color: #fff; }
.csr .num { display: block; margin-bottom: .8rem; font: 600 .82rem/1 var(--ui); letter-spacing: .14em; color: var(--blue); }
.csr .h3 { margin-bottom: .7rem; }
.csr p { font-size: 1.02rem; line-height: 1.65; }
.did { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 2rem; }
.did .chips { margin: 0; }
.did .chips li { background: var(--tint); color: var(--blue-700); border: 0; }
.next-cs { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; align-items: center; padding: clamp(1.6rem, 4vw, 2.6rem); border-radius: 28px; background: var(--ink); color: #c7d2e6; text-decoration: none; overflow: hidden; transition: transform .4s var(--ease-out); }
.next-cs:hover { transform: translateY(-4px); }
.next-cs .k { font: 600 .82rem/1 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--blue-300); }
.next-cs .h2 { margin: .7rem 0 .9rem; color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.next-cs img { border-radius: 14px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); transition: transform .6s var(--ease-out); }
.next-cs:hover img { transform: scale(1.03); }

/* ---------- utility pages (thank-you, 404) ---------- */
.util { min-height: 88vh; display: grid; align-items: center; }
.util-grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.util .char { position: relative; --w: clamp(180px, 22vw, 300px); }
.util .h1 { max-width: 12ch; }
.mini-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.2rem; max-width: 720px; }
.mini-cards a { display: block; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); text-decoration: none; box-shadow: var(--shadow-soft); transition: transform .3s var(--ease-out); }
.mini-cards a:hover { transform: translateY(-4px); }
.mini-cards img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.mini-cards span { display: block; padding: .6rem .8rem; font: 600 .9rem/1.25 var(--sans); color: var(--slate-700); }

/* ---------- reading layout (privacy) ---------- */
.prose-wrap { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: clamp(2rem, 5vw, 4rem); justify-content: center; }
.toc { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
.toc p { margin-bottom: .8rem; font: 600 .78rem/1 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--slate-500); }
.toc ol { list-style: none; display: grid; gap: .35rem; border-left: 2px solid var(--line); }
.toc a { display: block; padding: .3rem 0 .3rem 1rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--slate-500); text-decoration: none; font-size: .95rem; }
.toc a:hover, .toc a.is-on { color: var(--blue); border-color: var(--blue); }
.prose h2 { margin: 2.6rem 0 .8rem; font: 600 1.7rem/1.25 var(--serif); color: var(--ink); scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.prose p, .prose li { font-size: 1.06rem; line-height: 1.75; color: var(--slate-700); }
.prose p { margin-bottom: 1rem; }
.prose ul { margin: 0 0 1rem 1.2rem; display: grid; gap: .4rem; }
.prose a { color: var(--blue-700); }
.prose .updated { font: 600 .82rem/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--slate-500); }

/* ---------- shared CTA band ---------- */
.p-cta .cta-card { margin-inline: auto; text-align: center; }
.p-cta .cta-card .char { --w: clamp(110px, 11vw, 150px); left: -2rem; top: -4.5rem; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .how-grid { grid-template-columns: 1fr 1fr; }
  .svc-grid, .csr { grid-template-columns: 1fr; }
  .layers-grid { grid-template-columns: 1fr; }
  .iso { height: 320px; }
}
@media (max-width: 900px) {
  .p-hero-grid, .util-grid { grid-template-columns: 1fr; }
  .p-art { width: min(70%, 300px); justify-self: start; }
  .about-card { justify-self: start; max-width: 320px; }
  .constellation { display: none; }
  .fields-list { display: grid; gap: .9rem; list-style: none; position: relative; padding-left: 2.2rem; }
  .fields-list::before { content: ''; position: absolute; left: 10px; top: .5rem; bottom: .5rem; width: 2px; background: repeating-linear-gradient(to bottom, var(--blue-300) 0 6px, transparent 6px 12px); }
  .fields-list li { position: relative; padding: 1rem 1.1rem; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
  .fields-list li::before { content: ''; position: absolute; left: -1.85rem; top: 1.25rem; width: 14px; height: 14px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px #fff; }
  .fields-list li.core { background: var(--grad); color: #e0ecff; border: 0; }
  .fields-list b { display: block; font: 600 1.1rem/1.25 var(--serif); color: var(--ink); }
  .fields-list li.core b { color: #fff; }
  .fields-list small { font-size: .95rem; line-height: 1.5; color: var(--slate-500); }
  .fields-list li.core small { color: #e0ecff; }
  .offclock { grid-template-columns: 1fr; text-align: left; }
  .sector { grid-template-columns: 1fr; }
  .flight-steps { grid-template-columns: 1fr; }
  .flight-steps li:nth-child(n) { margin-top: 0; }
  .flight .char { display: none; }
  .next-cs { grid-template-columns: 1fr; }
  .prose-wrap { grid-template-columns: 1fr; }
  .toc { position: static; }
  .mini-cards { grid-template-columns: 1fr 1fr; }
  .p-cta .cta-card .char { display: none; }
}
@media (max-width: 600px) {
  .how-grid { grid-template-columns: 1fr; }
  .cs-devices .laptop { width: 100%; }
  .cs-devices .phone-frame { position: relative; right: auto; width: 46%; margin: -18% 0 0 auto; }
  .mini-cards { grid-template-columns: 1fr; }
  .thumbs a { width: calc(50% - .35rem); }
}
@media (prefers-reduced-motion: reduce) { .plate, .how-grid article, .thumbs a, .next-cs, .next-cs img { transition: none; } }
.util .lede { margin-top: 1.2rem; } .util .h1 { margin-top: .4rem; }
/* QA 2026-10-12: contrast, tap targets, phone body size */
.offclock p { color: #475569; }
.plate span { color: #64748b; }
.sector p { font-size: 1rem; }
.crumb a, .crumb span { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 767px) { .form-note { font-size: 1rem; } .svc .proof, .svc li { font-size: 1rem; } }
.btn.light { color: #1d4ed8; } .plate span { color: #475569; }

