/* =====================================================================
   WIDGES — Digital systems. Architectural precision.
   Brand-driven design system. Authored by hand, not generated.
   ---------------------------------------------------------------------
   Sections:
     00 · Fonts & tokens
     01 · Reset & base
     02 · Typography
     03 · Layout primitives
     04 · Buttons & links
     05 · Header / navigation
     06 · Footer
     07 · Hero + scroll-build animation
     08 · Generic sections / components
     09 · Portfolio
     10 · About
     11 · Legal (privacy)
     12 · Motion, reveal, utilities
     13 · Responsive
   ===================================================================== */

/* 00 · FONTS & TOKENS ------------------------------------------------ */
/* Switzer — free stand-in for PP Neue Montreal (the brand's primary face,
   which is commercial): a geometric grotesk with Swiss roots — clean,
   neutral, highly legible. Swap this import for licensed PP Neue Montreal
   when the font files are available. */
@import url('https://api.fontshare.com/v2/css?f[]=switzer@400,500,600,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* Brand palette — straight from the WIDGES brand identity system v3.0 */
  --carbon:        #0A0A0A;  /* Obsidian Black */
  --graphite:      #171717;  /* Graphite       */
  --blue:          #0066FF;  /* Electric Blue (accent) */
  --platinum:      #E5E5E5;  /* Stone          */
  --porcelain:     #E5E5E5;  /* Stone — light panels */
  --white:         #FFFFFF;  /* Pure White     */

  /* Derived working tones */
  --graphite-2:    #1C1C1C;
  --graphite-3:    #222222;
  --line:          rgba(229, 229, 229, 0.10);
  --line-strong:   rgba(229, 229, 229, 0.20);
  --blue-soft:     rgba(0, 102, 255, 0.16);
  --blue-glow:     rgba(0, 102, 255, 0.45);
  --blue-ink:      #0047B3;  /* deep Electric Blue — keeps AA contrast on light panels */
  --blue-hi:       #3D8BFF;  /* lifted Electric Blue — small text on dark stays AA */
  --ink-dim:       rgba(255, 255, 255, 0.64);
  --ink-faint:     rgba(255, 255, 255, 0.42);

  /* Type */
  --sans: 'Switzer', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Rhythm — tighter radii: architectural, drafted geometry */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 12px;
  --radius-sm: 8px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  color-scheme: dark;
}

/* 01 · RESET & BASE -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

/* No `scroll-behavior: smooth` here — the browser would animate the scroll
   corrections GSAP ScrollTrigger makes around the pinned hero, which showed
   up as the page "jumping" when the build ends. Smooth in-page anchor
   scrolling is handled in main.js instead. */
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  font-family: var(--sans);
  background: var(--carbon);
  color: var(--white);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
::selection { background: var(--blue); color: var(--white); }

/* Faint grain / atmosphere layer on the carbon background */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 600px at 78% -8%, rgba(0,102,255,0.10), transparent 60%),
    radial-gradient(700px 500px at -5% 18%, rgba(0,102,255,0.06), transparent 55%);
}

/* 02 · TYPOGRAPHY ---------------------------------------------------- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.04; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5.4rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }

p { color: var(--ink-dim); }
strong { color: var(--white); font-weight: 700; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blue-hi);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--blue);
  opacity: 0.7;
}

.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-dim); max-width: 56ch; }

.accent { color: var(--blue); }
/* the hero accent word carries a slow, liquid light sweep */
.hero h1 .accent {
  background: linear-gradient(100deg, var(--blue) 20%, #4D94FF 42%, #9cc4ff 50%, #4D94FF 58%, var(--blue) 80%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: accentSheen 7s var(--ease-soft) infinite;
}
@keyframes accentSheen { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
.serifless-num { font-family: var(--mono); font-weight: 500; }

/* 03 · LAYOUT PRIMITIVES --------------------------------------------- */
.shell { position: relative; z-index: 1; }
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(80px, 12vh, 160px); position: relative; }
.section--tight { padding-block: clamp(60px, 8vh, 100px); }

.panel-light { background: var(--porcelain); color: var(--graphite); }
.panel-light p { color: rgba(23,23,23,0.66); }
.panel-light .eyebrow { color: var(--blue-ink); }
.panel-light .eyebrow::before { background: var(--blue-ink); }
.panel-light strong { color: var(--graphite); }

/* 04 · BUTTONS & LINKS ----------------------------------------------- */
.btn {
  --bg: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.5em;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  background: var(--bg);
  color: var(--white);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s;
  box-shadow: 0 10px 30px -12px var(--blue-glow);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -14px var(--blue-glow); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
/* gloss sweep across solid buttons — the quiet "expensive" tell */
.btn:not(.btn--ghost) { position: relative; overflow: hidden; }
.btn:not(.btn--ghost)::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg); opacity: 0; pointer-events: none;
  transition: transform 0.8s var(--ease), opacity 0.25s;
}
.btn:not(.btn--ghost):hover::after { transform: skewX(-20deg) translateX(340%); opacity: 1; }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}
.btn--ghost:hover { background: rgba(255,255,255,0.05); border-color: var(--line-strong); box-shadow: none; }
.panel-light .btn--ghost { color: var(--graphite); border-color: rgba(23,23,23,0.18); }
.panel-light .btn--ghost:hover { background: rgba(23,23,23,0.04); }
/* Re-tone elements that default to dark-theme colors when placed on a light panel */
.panel-light .tag { color: rgba(23,23,23,0.62); border-color: rgba(23,23,23,0.16); }
.panel-light .lead { color: rgba(23,23,23,0.6); }
.panel-light .step { border-color: rgba(23,23,23,0.12); }
.panel-light .figures { border-color: rgba(23,23,23,0.12); }
.panel-light .divider { background-color: rgba(23,23,23,0.12); }
.panel-light .figure .l { color: rgba(23,23,23,0.6); }
.panel-light .member__avatar { color: var(--white); }
.panel-light h1, .panel-light h2, .panel-light h3, .panel-light h4 { color: var(--graphite); }

/* Quiet, underline-on-hover text link */
.tlink {
  display: inline-flex; align-items: center; gap: 0.45em;
  color: var(--white); font-weight: 500;
  position: relative;
}
.tlink::after {
  content: ""; position: absolute; left: 0; bottom: -3px;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.tlink:hover::after { transform: scaleX(1); }
.tlink:hover { color: var(--blue-hi); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* 05 · HEADER / NAVIGATION ------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding-block: 18px;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(10,10,10,0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
  padding-block: 12px;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 60px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 34px; height: 34px; flex: none; }

/* Primary logo (brand system 01) — the WIDGES lockup image, hung top-left.
   It drops in on load and shrinks smoothly once the visitor scrolls. */
.brand--primary { align-self: center; }
.brand--primary .brand__img {
  display: block; height: 62px; width: auto;
  transition: height 0.45s var(--ease);
  animation: tileIn 0.9s var(--ease) 0.15s backwards;
}
@keyframes tileIn { from { transform: translateY(-14px); opacity: 0; } }
.brand--primary:hover .brand__img { transform: translateY(1px); }
.site-header.is-stuck .brand--primary .brand__img { height: 40px; }
@media (max-width: 900px) {
  .brand--primary .brand__img { height: 46px; }
  .site-header.is-stuck .brand--primary .brand__img { height: 36px; }
}
/* Footer logo — the full lockup image */
.brand--footer { display: inline-flex; }
.footer__logo { display: block; height: 50px; width: auto; }
/* Wordmark — spaced caps, per the brand system's horizontal lockup */
.brand__name {
  font-weight: 600; font-size: 1.02rem; letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
}
.brand--primary .brand__rule {
  width: 70%; height: 1px; background: var(--line-strong);
  transition: width 0.45s var(--ease);
}
.site-header.is-stuck .brand--primary .brand__rule { width: 60%; }

.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a {
  position: relative;
  padding: 8px 14px;
  font-size: 0.94rem; font-weight: 500;
  color: var(--ink-dim);
  border-radius: 8px;
  transition: color 0.25s;
}
.nav__links a:hover { color: var(--white); }
.nav__links a.is-active { color: var(--white); }
.nav__links a.is-active::before {
  content: ""; position: absolute; left: 50%; bottom: 1px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--blue); transform: translateX(-50%);
  box-shadow: 0 0 10px var(--blue-glow);
}
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__menu { display: none; }  /* mobile drawer — shown only at <=900px */

.nav__burger { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); position: relative; }
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 1.6px; background: var(--white); transition: transform 0.35s var(--ease), opacity 0.2s; }
.nav__burger span:nth-child(1) { top: 16px; }
.nav__burger span:nth-child(2) { top: 22px; }
.nav__burger span:nth-child(3) { top: 28px; }
body.nav-open .nav__burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav__burger span:nth-child(2) { opacity: 0; }
body.nav-open .nav__burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 06 · FOOTER -------------------------------------------------------- */
/* Blueprint grid — the brand's pattern element, at drawing-paper subtlety */
.site-footer {
  background:
    linear-gradient(rgba(229,229,229,0.045) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(229,229,229,0.045) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--graphite);
  border-top: 1px solid var(--line); padding-block: 72px 36px; position: relative;
}
/* Brand signature — the tagline, set per the brand system: SemiBold,
   uppercase, wide tracking, Stone. Pairs with the logo lockup. */
.brand__tagline { display: block; margin-top: 16px; font-family: var(--sans); font-weight: 600; font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--platinum); opacity: 0.72; }
/* Hero placement of the brand signature — a quiet closing line under the stats */
.hero__signature { margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--line); width: max-content; max-width: 100%; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; align-items: start; }
.footer__brand { max-width: 34ch; }
.footer__brand p { margin-top: 18px; font-size: 0.96rem; }
.footer__col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-faint); font-family: var(--mono); font-weight: 500; margin-bottom: 18px; }
.footer__col a { display: block; padding: 7px 0; color: var(--ink-dim); font-size: 0.96rem; transition: color 0.25s, transform 0.25s var(--ease); }
.footer__col a:hover { color: var(--blue-hi); transform: translateX(3px); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line);
  font-size: 0.85rem; color: var(--ink-faint);
}
.footer__bottom .mono { font-family: var(--mono); }
.status-dot { display: inline-flex; align-items: center; gap: 8px; }
.status-dot i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px rgba(74,222,128,0.6); animation: pulse 2.4s var(--ease-soft) infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* 07 · HERO + SCROLL-BUILD ANIMATION --------------------------------- */
.hero { position: relative; padding-top: clamp(160px, 21vh, 215px); }
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; min-height: 78vh; }
.hero__copy { position: relative; z-index: 2; }
.hero h1 { margin: 22px 0 0; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: block; }
.hero__sub { margin-top: 26px; max-width: 46ch; font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.hero__actions { margin-top: 38px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.hero__meta { margin-top: 54px; display: flex; gap: 40px; flex-wrap: wrap; }
.hero__meta .stat .n { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.03em; font-feature-settings: "tnum"; }
.hero__meta .stat .l { font-size: 0.82rem; color: var(--ink-faint); font-family: var(--mono); letter-spacing: 0.04em; margin-top: 2px; }

/* The "build" stage — code editor on top, rendered preview underneath */
.build { position: relative; z-index: 1; }
.build__stack { position: relative; }

.window {
  background: var(--graphite-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  /* layered, realistic depth — contact + mid + ambient cast */
  box-shadow:
    0 1px 0 rgba(255,255,255,0.05) inset,
    0 2px 6px rgba(0,0,0,0.34),
    0 16px 34px -12px rgba(0,0,0,0.55),
    0 52px 100px -44px rgba(0,0,0,0.85);
  overflow: hidden;
}
.window__bar { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.015); }
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #2e2e2e; }
.dots i:nth-child(1) { background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.window__title { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-faint); display: flex; align-items: center; gap: 8px; }

/* AI pair-programmer chip — the brand's "AI inside" signal in the editor */
.ai-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.58rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue-hi);
  border: 1px solid rgba(0,102,255,0.35); border-radius: 999px;
  background: rgba(0,102,255,0.10);
  padding: 3px 9px; white-space: nowrap;
}
.ai-chip i { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px var(--blue-glow); animation: pulse 2.4s var(--ease-soft) infinite; }
@media (max-width: 560px) { .ai-chip { display: none; } }

/* Live build-progress meter in the editor title bar */
.build-meter { margin-left: auto; display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 0.68rem; color: var(--ink-faint); letter-spacing: 0.04em; }
.build-meter__stage { color: var(--blue-hi); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; min-width: 88px; text-align: right; transition: color 0.3s; }
.build.is-live .build-meter__stage { color: #22c55e; }
.build-meter__bar { width: 56px; height: 4px; border-radius: 3px; background: rgba(255,255,255,0.08); overflow: hidden; }
.build-meter__bar i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, #0066FF, #4D94FF); box-shadow: 0 0 8px var(--blue-glow); transition: width 0.1s linear; }
.build.is-live .build-meter__bar i { background: linear-gradient(90deg, #22c55e, #4ade80); box-shadow: 0 0 8px rgba(34,197,94,0.6); }
.build-meter__pct { min-width: 30px; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .build-meter__stage { display: none; } }

/* Editor — frosted glass so the ambient blue glows through subtly */
.editor {
  background: linear-gradient(180deg, rgba(28,28,28,0.80), rgba(14,14,14,0.84));
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}
.editor__body { display: grid; grid-template-columns: 44px 1fr; font-family: var(--mono); font-size: 0.82rem; line-height: 1.85; }
.editor__gutter { text-align: right; padding: 18px 12px 18px 0; color: rgba(255,255,255,0.22); user-select: none; border-right: 1px solid var(--line); }
.editor__gutter span { display: block; }
.editor__code { padding: 18px 18px 18px 16px; overflow: hidden; }
.code-line { display: block; white-space: pre; opacity: 0.12; transform: translateY(4px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); padding-left: 4px; margin-left: -4px; border-radius: 3px; }
.code-line.lit { opacity: 1; transform: none; }
/* the line currently being "written" gets a soft editor-style highlight */
.code-line.active-line { background: linear-gradient(90deg, rgba(0,102,255,0.13), transparent 72%); box-shadow: inset 2px 0 0 var(--blue); }
.code-line .ind { color: transparent; }
.tok-tag { color: var(--blue-hi); }
.tok-attr { color: #E5E5E5; }
.tok-str { color: #7fd1b9; }
.tok-txt { color: #f4f1ea; }
.tok-com { color: rgba(255,255,255,0.34); font-style: italic; }
.caret { display: inline-block; width: 8px; height: 1.05em; background: var(--blue); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* AI ghost suggestions — Copilot-style: on the line being written the tail
   shows as a dimmed, italic proposal with a small accept hint; once the
   build moves past the line, the suggestion "accepts" into real tokens. */
.tok-ghost span { transition: color 0.4s var(--ease); }
.code-line.active-line .tok-ghost span { color: rgba(255,255,255,0.30); font-style: italic; }
.code-line .tok-ghost::after {
  content: "⇥ AI"; display: inline-block; margin-left: 10px;
  font-size: 0.56rem; font-style: normal; letter-spacing: 0.1em; vertical-align: 1px;
  color: var(--blue-hi); background: rgba(0,102,255,0.14);
  border: 1px solid rgba(0,102,255,0.45); border-radius: 4px; padding: 1px 6px;
  opacity: 0; transform: translateX(-4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.code-line.active-line .tok-ghost::after { opacity: 1; transform: none; }

/* Ambient lighting behind the build — grows with --build-p (0→1) */
.build { --build-p: 0; }
/* fine film grain for tactile, expensive texture (sits behind the windows) */
.build::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px; opacity: 0.05; mix-blend-mode: overlay;
}
.build__ambient {
  position: absolute; inset: -18% -12% -22% -12%;
  pointer-events: none; z-index: 0; border-radius: 50%;
  background:
    radial-gradient(42% 46% at 68% 42%, rgba(0,102,255,0.55), transparent 70%),
    radial-gradient(38% 40% at 40% 70%, rgba(0,102,255,0.30), transparent 72%);
  filter: blur(46px);
  opacity: calc(0.10 + var(--build-p) * 0.55);
  transform: scale(calc(0.92 + var(--build-p) * 0.12));
  transition: opacity 0.4s var(--ease), transform 0.6s var(--ease);
}
.build__stack { position: relative; z-index: 1; transform-style: preserve-3d; }

/* Editor gets a glassy edge + a soft scan beam that sweeps with progress */
.editor { position: relative; }
.editor::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), inset 0 0 0 1px rgba(0,102,255,0.06);
}
.editor__scan {
  position: absolute; left: 44px; right: 0; top: 0; height: 64px; pointer-events: none; z-index: 3;
  background: linear-gradient(180deg, rgba(0,102,255,0.16), transparent 80%);
  opacity: 0; transition: opacity 0.4s var(--ease);
  transform: translateY(calc(var(--build-p) * 520px));
  mix-blend-mode: screen;
}
.build:not(.is-live) .editor__scan { opacity: calc(var(--build-p) * 0.9); }

/* ---- Browser preview window: a real mini Widges page that assembles ---- */
.browser {
  position: absolute; right: -18%; bottom: -12%;
  width: 60%; min-width: 250px;
  background: var(--white); color: var(--graphite);
  border-radius: 16px; border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 60px 110px -34px rgba(0,0,0,0.82), 0 0 0 1px rgba(0,0,0,0.04),
              0 0 60px -10px rgba(0,102,255,calc(0.15 + var(--build-p) * 0.35));
  overflow: hidden;
  transform: translateY(22px) rotate(-1.4deg);
  transition: transform 0.6s var(--ease), box-shadow 0.5s var(--ease);
}
/* glass gloss along the top edge of the browser chrome */
.browser::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 44%;
  z-index: 4; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.55), transparent);
  opacity: 0.45; mix-blend-mode: soft-light;
}
.browser__bar {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, #fff, var(--porcelain));
  padding: 11px 14px; border-bottom: 1px solid rgba(23,23,23,0.06);
}
.browser__url {
  flex: 1; display: inline-flex; align-items: center; gap: 7px;
  height: 24px; padding: 0 12px; border-radius: 8px;
  background: rgba(23,23,23,0.05); color: rgba(23,23,23,0.5);
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.02em;
}
.browser__live {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(23,23,23,0.32); transition: color 0.4s;
}
.browser__live i { width: 7px; height: 7px; border-radius: 50%; background: rgba(23,23,23,0.18); transition: background 0.4s, box-shadow 0.4s; }
.build.is-live .browser__live { color: #16a34a; }
.build.is-live .browser__live i { background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,0.6); animation: livePulse 1.8s var(--ease-soft) infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.55); } 70%,100% { box-shadow: 0 0 0 7px rgba(34,197,94,0); } }

.browser__view { position: relative; overflow: hidden; }
.msite {
  background:
    radial-gradient(120% 80% at 85% 0%, rgba(0,102,255,0.10), transparent 60%),
    var(--white);
  padding: 16px 18px 20px;
}
.msite__sheen {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(125deg, rgba(255,255,255,0) 40%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0) 60%);
  transform: translateX(-120%); transition: transform 0.9s var(--ease);
}
.build.is-live .msite__sheen { transform: translateX(120%); }

/* Reveal primitive: blur-in + lift, refined for a high-end feel */
.pv { opacity: 0; transform: translateY(14px) scale(0.985); filter: blur(7px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), filter 0.6s var(--ease); }
.pv.show { opacity: 1; transform: none; filter: none; }

.msite__nav { display: flex; align-items: center; justify-content: space-between; padding-bottom: 13px; border-bottom: 1px solid rgba(23,23,23,0.06); }
.msite__logo { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--graphite); }
.msite__logo svg { width: 15px; height: 15px; }
.msite__links { display: inline-flex; align-items: center; gap: 9px; }
.msite__links i { width: 18px; height: 5px; border-radius: 3px; background: rgba(23,23,23,0.14); }
.msite__links b { width: 38px; height: 15px; border-radius: 4px; background: var(--blue); box-shadow: 0 4px 12px -3px var(--blue-glow); }

.msite__hero { padding: 20px 0 16px; }
.msite__eyebrow { display: inline-block; font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.22em; color: var(--blue); margin-bottom: 10px; }
.msite__title { font-size: clamp(1.05rem, 2.2vw, 1.55rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; color: var(--graphite); }
.msite__title span { display: block; }
.msite__accent { color: var(--blue); }
.msite__sub { font-size: 0.72rem; line-height: 1.5; color: rgba(23,23,23,0.55); margin: 11px 0 0; max-width: 30ch; }
.msite__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; padding: 8px 15px; border-radius: 6px; background: var(--blue); color: #fff; font-size: 0.72rem; font-weight: 700; box-shadow: 0 10px 24px -10px var(--blue-glow); }
.msite__cta em { font-style: normal; }

.msite__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 8px; }
/* Cards show the three real portfolio sites — miniature screenshots,
   top-anchored like the big frames further down the page. */
.msite__card { aspect-ratio: 4 / 3.4; border-radius: 10px; overflow: hidden; border: 1px solid rgba(23,23,23,0.06); background: rgba(23,23,23,0.05); }
.msite__card img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* Anchored under the code editor (left of the browser overhang) so it stays
   on screen for the whole pinned build — at the hero's bottom edge it sat
   below the fold on shorter screens. Fades out once the build goes Live. */
.scroll-cue { position: absolute; left: 2px; top: calc(100% + 22px); display: flex; align-items: center; gap: 12px; color: var(--ink-faint); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; transition: opacity 0.4s var(--ease); }
.build.is-live .scroll-cue { opacity: 0; }
.scroll-cue .bar { width: 1px; height: 40px; background: linear-gradient(var(--blue), transparent); position: relative; overflow: hidden; }
.scroll-cue .bar::after { content: ""; position: absolute; top: -40%; left: 0; width: 100%; height: 40%; background: var(--white); animation: cue 2.2s var(--ease-soft) infinite; }
@keyframes cue { to { top: 110%; } }

/* 08 · GENERIC SECTIONS / COMPONENTS --------------------------------- */
.section-head { max-width: 60ch; }
.section-head h2 { margin-top: 18px; }
.section-head .lead { margin-top: 20px; }
.section-head--split { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end; max-width: none; }
@media (max-width: 760px) { .section-head--split { grid-template-columns: 1fr; align-items: start; } }

/* Heading forced onto a single line (wraps again only on small screens) */
.title-1line { white-space: nowrap; }
@media (max-width: 760px) { .title-1line { white-space: normal; } }

/* Value props — deliberately uneven, not a rigid grid */
.values { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; margin-top: 64px; }
.value {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  position: relative;
  transition: border-color 0.4s, transform 0.5s var(--ease), background 0.4s;
}
.value:hover { border-color: var(--line-strong); transform: translateY(-4px); background: linear-gradient(180deg, rgba(0,102,255,0.06), transparent); }
.value:nth-child(1) { grid-column: span 7; }
.value:nth-child(2) { grid-column: span 5; margin-top: 28px; }
.value:nth-child(3) { grid-column: span 5; }
.value:nth-child(4) { grid-column: span 7; margin-top: -10px; }
.value__ix { font-family: var(--mono); font-size: 0.78rem; color: var(--blue-hi); letter-spacing: 0.08em; }
.value h3 { margin: 16px 0 12px; }
.value p { font-size: 0.98rem; }
.value__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--blue-soft); border: 1px solid var(--line); display: grid; place-items: center; margin-bottom: 20px; color: var(--blue); transition: box-shadow 0.5s var(--ease), border-color 0.4s, transform 0.5s var(--ease); }
.value__icon svg { width: 22px; height: 22px; }
.value:hover .value__icon { box-shadow: 0 0 30px -6px var(--blue-glow); border-color: rgba(0,102,255,0.4); transform: translateY(-2px); }
/* icons draw themselves in as the card reveals — drafted, architectural */
.value__icon svg :is(path, circle, rect) {
  stroke-dasharray: 120; stroke-dashoffset: 120;
  transition: stroke-dashoffset 1.2s var(--ease) 0.25s;
}
.value.in .value__icon svg :is(path, circle, rect) { stroke-dashoffset: 0; }

/* Process — vertical, hand-numbered */
.process { margin-top: 60px; display: grid; gap: 0; }

/* Scroll-drawn progress line (index only, .process--line). The blue thread
   fills as the visitor reads; the step being read gets the spotlight. */
.process--line { position: relative; padding-left: 40px; }
.process__track { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: rgba(23,23,23,0.10); border-radius: 2px; overflow: hidden; }
.process__track i {
  display: block; width: 100%; height: 100%;
  transform: scaleY(0); transform-origin: top;
  background: linear-gradient(180deg, var(--blue), var(--blue-ink));
  box-shadow: 0 0 14px var(--blue-glow);
  will-change: transform;
}
.process--line .step { transition: opacity 0.55s var(--ease), padding 0.4s var(--ease); }
.process--line.has-spot .step { opacity: 0.45; }
.process--line.has-spot .step.is-active { opacity: 1; }
@media (max-width: 900px) {
  .process--line { padding-left: 0; }
  .process__track { display: none; }
  .process--line.has-spot .step { opacity: 1; }
}
.step { display: grid; grid-template-columns: 120px 1fr; gap: 32px; padding: 36px 0; border-top: 1px solid var(--line); align-items: start; transition: padding 0.4s var(--ease); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step:hover { padding-left: 14px; }
.step__n { font-family: var(--mono); font-size: 0.84rem; color: var(--blue); letter-spacing: 0.1em; }
.step h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; }
.step p { margin-top: 12px; max-width: 58ch; }
.step__tags { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-dim); border: 1px solid var(--line); border-radius: 6px; padding: 5px 12px; }

/* Marquee / tech strip */
.strip {
  border-block: 1px solid var(--line); padding-block: 26px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.strip__row { display: flex; gap: 60px; align-items: center; width: max-content; animation: marquee 32s linear infinite; }
.strip:hover .strip__row { animation-play-state: paused; }
.strip__row span { font-family: var(--mono); font-size: 0.92rem; color: var(--ink-faint); letter-spacing: 0.04em; white-space: nowrap; display: inline-flex; gap: 60px; }
.strip__row span::after { content: "✶"; color: var(--blue); opacity: 0.5; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: clamp(20px, 3vw, 32px); border: 1px solid var(--line-strong); background: radial-gradient(120% 140% at 80% 0%, rgba(0,102,255,0.22), transparent 55%), var(--graphite-2); padding: clamp(48px, 8vw, 96px); }
.cta-band h2 { max-width: 18ch; }
.cta-band p { margin-top: 18px; max-width: 48ch; }
.cta-band__actions { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }
.cta-band__glyph { position: absolute; right: -40px; bottom: -60px; width: 320px; opacity: 0.12; color: var(--blue); pointer-events: none; }

/* 09 · PORTFOLIO ----------------------------------------------------- */
.work { margin-top: 72px; display: grid; gap: clamp(48px, 8vh, 110px); }
.case { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.case:nth-child(even) { grid-template-columns: 1.15fr 1fr; }
.case:nth-child(even) .case__media { order: -1; }
.case__index { font-family: var(--mono); font-size: 0.8rem; color: var(--blue-hi); letter-spacing: 0.1em; }
.case h3 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin: 14px 0 6px; }
.case__kind { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-faint); letter-spacing: 0.05em; }
.case p { margin-top: 18px; max-width: 50ch; }
.case__tags { margin-top: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.case__actions { margin-top: 28px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

.frame {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--graphite-2);
  overflow: hidden;
  box-shadow: 0 40px 80px -44px rgba(0,0,0,0.85);
  transform: translateY(0);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), border-color 0.4s;
}
.frame:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 60px 110px -46px rgba(0,0,0,0.9); }
.frame__bar { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.frame__bar .u { flex: 1; height: 22px; border-radius: 7px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); display: flex; align-items: center; padding: 0 12px; font-family: var(--mono); font-size: 0.7rem; color: var(--ink-faint); gap: 8px; }
/* Static screenshot preview — reliable, fast, works on every device.
   The whole shot is a link to the live site; a label fades in on hover. */
.frame__shot { position: relative; display: block; aspect-ratio: 16 / 10.4; overflow: hidden; background: var(--graphite-3); }
.frame__shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.7s var(--ease); }
.frame:hover .frame__shot img { transform: scale(1.04); }
/* scroll parallax (GSAP writes inline transforms) — transitions would fight the scrub */
.frame__shot img.is-plx { transition: none; will-change: transform; }
.frame__live { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; padding: 18px; opacity: 0; background: linear-gradient(0deg, rgba(10,10,10,0.55), transparent 55%); transition: opacity 0.4s; }
.frame:hover .frame__live { opacity: 1; }
.frame__live > span { font-family: var(--mono); font-size: 0.78rem; color: var(--white); display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(10,10,10,0.6); backdrop-filter: blur(6px); border: 1px solid var(--line-strong); }

/* 10 · ABOUT --------------------------------------------------------- */
.about-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: end; }
.about-hero__aside { border-left: 1px solid var(--line); padding-left: 28px; }
.about-hero__aside p { font-size: 0.98rem; }
.manifesto { font-size: clamp(1.5rem, 3.4vw, 2.6rem); font-weight: 500; line-height: 1.28; letter-spacing: -0.02em; max-width: 24ch; color: var(--white); }
.manifesto .accent { font-weight: 700; }

.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 72px; border-top: 1px solid var(--line); padding-top: 48px; }
.figure .n { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 700; letter-spacing: -0.03em; }
.figure .l { color: var(--ink-dim); font-size: 0.92rem; margin-top: 8px; max-width: 22ch; }

/* auto-fit: the row stays balanced whatever the head-count */
.team { margin-top: 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.member { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: border-color 0.4s, transform 0.5s var(--ease); position: relative; overflow: hidden; }
.member:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.member__avatar { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; font-weight: 700; font-size: 1.4rem; color: var(--white); letter-spacing: -0.04em; margin-bottom: 22px; }
.member h3 { font-size: 1.2rem; }
.member .role { font-family: var(--mono); font-size: 0.78rem; color: var(--blue-hi); margin-top: 4px; letter-spacing: 0.04em; }
.panel-light .member .role { color: var(--blue-ink); }  /* AA on the white team cards */
.member p { font-size: 0.94rem; margin-top: 14px; }

/* 11 · LEGAL (PRIVACY) ----------------------------------------------- */
.legal { display: grid; grid-template-columns: 240px 1fr; gap: 64px; align-items: start; }
.legal__toc { position: sticky; top: 110px; }
.legal__toc h4 { font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-faint); margin-bottom: 16px; }
.legal__toc a { display: block; padding: 7px 0; font-size: 0.9rem; color: var(--ink-dim); transition: color 0.25s; border-left: 1px solid transparent; }
.legal__toc a:hover, .legal__toc a.is-active { color: var(--blue-hi); }
.legal__body { max-width: 70ch; }
.legal__body h2 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); margin: 56px 0 16px; scroll-margin-top: 110px; }
.legal__body h2:first-child { margin-top: 0; }
.legal__body h3 { font-size: 1.15rem; margin: 28px 0 10px; }
.legal__body p, .legal__body li { color: var(--ink-dim); font-size: 1rem; line-height: 1.8; }
.legal__body p { margin-bottom: 16px; }
.legal__body ul { list-style: none; margin: 0 0 16px; }
.legal__body li { position: relative; padding-left: 24px; margin-bottom: 10px; }
.legal__body li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 1px; background: var(--blue); }
.legal__body a { color: var(--blue-hi); }
.legal__body a:hover { text-decoration: underline; }
.legal__meta { font-family: var(--mono); font-size: 0.82rem; color: var(--ink-faint); padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 40px; }

.page-head { padding-top: clamp(175px, 23vh, 235px); }
.page-head h1 { margin-top: 18px; }
.page-head .lead { margin-top: 22px; }

/* 11b · CONTACT FORM ------------------------------------------------- */
.contact__grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(36px, 5vw, 80px); align-items: start; }
.contact__intro { position: sticky; top: 120px; }
.contact__intro h2 { margin: 18px 0 18px; }
.contact__intro > p { max-width: 42ch; }
.contact__details { list-style: none; margin: 36px 0 0; display: grid; gap: 4px; }
.contact__details li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.contact__details li:last-child { border-bottom: 1px solid var(--line); }
.contact__ico { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border: 1px solid var(--line); }
.contact__ico svg { width: 20px; height: 20px; }
.contact__detail { display: flex; flex-direction: column; gap: 2px; }
.contact__detail b { font-size: 0.74rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-faint); font-family: var(--mono); }
.contact__detail a, .contact__detail span { color: var(--white); font-size: 1.02rem; transition: color 0.25s; }
.contact__detail a:hover { color: var(--blue-hi); }
.contact__trust { margin-top: 26px; }
.contact__trust .status-dot { color: var(--ink-dim); font-size: 0.9rem; }

/* The form card — glass */
.contact__form {
  position: relative;
  background: linear-gradient(180deg, rgba(28,28,28,0.62), rgba(14,14,14,0.5));
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 40px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 44px 100px -54px rgba(0,0,0,0.85);
}
/* A slow electric-blue light travelling the card's edge — marks the form
   as the most important object on the page. Falls back to a static
   highlight in browsers without @property. */
@property --gb-a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.contact__form::before {
  content: ""; position: absolute; inset: -1px; z-index: 0; border-radius: var(--radius);
  padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--gb-a, 40deg),
    transparent 0%, rgba(0,102,255,0.85) 10%, rgba(77,148,255,0.35) 16%, transparent 26%,
    transparent 55%, rgba(0,102,255,0.35) 66%, transparent 78%);
  -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, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: borderSpin 9s linear infinite;
}
@keyframes borderSpin { to { --gb-a: 360deg; } }
.form__row { margin-bottom: 16px; }
.form__row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Floating-label field */
.field { position: relative; }
.field__input {
  width: 100%; font: inherit; font-size: 0.98rem; color: var(--white);
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 24px 16px 9px; appearance: none; -webkit-appearance: none;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.field__input::placeholder { color: transparent; }
.field__input:hover { border-color: rgba(216,210,196,0.30); }
.field__input:focus { outline: none; border-color: var(--blue); background: rgba(0,102,255,0.06); box-shadow: 0 0 0 4px var(--blue-soft); }
.field__input--area { min-height: 124px; resize: vertical; line-height: 1.55; }
.field__label {
  position: absolute; left: 16px; top: 16px; pointer-events: none;
  color: var(--ink-faint); font-size: 0.98rem; letter-spacing: -0.01em;
  transition: top 0.18s var(--ease), font-size 0.18s var(--ease), color 0.18s var(--ease);
}
.field__label i { font-style: normal; opacity: 0.7; font-size: 0.85em; }
.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label,
.field--select .field__label {
  top: 9px; font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase; font-family: var(--mono);
}
.field__input:focus + .field__label { color: var(--blue-hi); }

/* Select */
.field--select .field__input { cursor: pointer; padding-right: 42px; color: var(--white); }
.field--select .field__input:invalid { color: var(--ink-faint); }
.field--select option { color: var(--graphite); }
.field__chev { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-dim); pointer-events: none; transition: transform 0.25s; }
.field--select .field__input:focus ~ .field__chev { color: var(--blue); transform: translateY(-50%) rotate(180deg); }

/* Validation */
.field__input.is-invalid { border-color: #f1707a; background: rgba(241,112,122,0.06); }
.field__input.is-invalid:focus { box-shadow: 0 0 0 4px rgba(241,112,122,0.16); }
.field__error { display: none; margin-top: 6px; font-size: 0.78rem; color: #f1707a; font-family: var(--mono); }
.field__error.is-shown { display: block; }
.field__error--block { margin-top: -6px; margin-bottom: 14px; }
.field__count { position: absolute; right: 4px; bottom: -20px; font-size: 0.72rem; color: var(--ink-faint); font-family: var(--mono); }

/* Consent checkbox */
.consent { display: flex; align-items: flex-start; gap: 12px; margin: 22px 0 6px; cursor: pointer; }
.consent input { position: absolute; opacity: 0; width: 0; height: 0; }
.consent__box { width: 22px; height: 22px; flex: none; border-radius: 6px; border: 1px solid var(--line-strong); display: grid; place-items: center; color: transparent; transition: background 0.2s, border-color 0.2s, color 0.2s; margin-top: 1px; }
.consent__box svg { width: 14px; height: 14px; }
.consent input:checked + .consent__box { background: var(--blue); border-color: var(--blue); color: #fff; }
.consent input:focus-visible + .consent__box { box-shadow: 0 0 0 4px var(--blue-soft); }
.consent__text { font-size: 0.86rem; line-height: 1.5; color: var(--ink-dim); }
.consent__text a { color: var(--blue-hi); }
.consent__text a:hover { text-decoration: underline; }

/* Submit + states */
.form__submit { width: 100%; justify-content: center; position: relative; margin-top: 18px; padding-block: 1.05em; }
.form__spinner { position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff; opacity: 0; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.contact__form.is-sending .form__submit { pointer-events: none; }
.contact__form.is-sending .form__submit-label { opacity: 0; }
.contact__form.is-sending .form__spinner { opacity: 1; }
.form__note { margin-top: 16px; text-align: center; font-size: 0.86rem; color: var(--ink-faint); }
.form__note a { color: var(--ink-dim); border-bottom: 1px solid var(--line-strong); }
.form__note a:hover { color: var(--blue-hi); }

/* Success overlay */
.form__success {
  position: absolute; inset: 0; z-index: 3; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(21,21,21,0.86), rgba(14,14,14,0.92));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 40px; gap: 8px;
  opacity: 0; transform: scale(0.99); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.form__success[hidden] { display: none; }
.contact__form.is-sent .form__success { opacity: 1; transform: none; }
.form__success-ico { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; color: #22c55e; background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.3); margin-bottom: 8px; }
.form__success-ico svg { width: 30px; height: 30px; }
.form__success h3 { font-size: 1.5rem; }
.form__success p { max-width: 34ch; }
.form__success .tlink { margin-top: 12px; color: var(--blue-hi); }

/* 11c · FAQ ----------------------------------------------------------- */
.faq__list { margin-top: 56px; display: grid; gap: 0; max-width: 920px; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__q {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px 4px; font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 700; letter-spacing: -0.01em; color: var(--white);
  transition: color 0.25s, padding-left 0.3s var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__item:hover .faq__q { color: var(--blue); padding-left: 12px; }
.faq__icon { position: relative; width: 22px; height: 22px; flex: none; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 2px; border-radius: 2px; background: var(--blue); transform: translate(-50%, -50%); transition: transform 0.3s var(--ease); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__a { overflow: hidden; }
.faq__a p { padding: 0 4px 30px; max-width: 76ch; font-size: 1rem; line-height: 1.75; color: var(--ink-dim); }
/* JS drives a smooth open/close; this is the no-JS fallback */
.faq__item:not(.faq--js)[open] .faq__a { animation: faqIn 0.4s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

/* 12 · MOTION / REVEAL / UTIL ---------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }
[data-reveal][data-delay="4"] { transition-delay: 0.32s; }

.split-line { display: block; overflow: hidden; }
.split-line > span { display: inline-block; transform: translateY(110%); transition: transform 0.9s var(--ease); }
.in .split-line > span, [data-reveal].in.split-line > span { transform: none; }
/* masked line-by-line cascade inside a revealed heading */
.in .split-line:nth-of-type(2) > span { transition-delay: 0.09s; }
.in .split-line:nth-of-type(3) > span { transition-delay: 0.18s; }

.mt-s { margin-top: 14px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 56px; }
.center { text-align: center; }
.mw-text { max-width: 62ch; }
.divider { height: 1px; background: var(--line); border: 0; }

/* 13 · RESPONSIVE ---------------------------------------------------- */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; min-height: 0; }
  .build { margin-top: 8px; }
  .browser { position: absolute; right: -3%; bottom: -10%; width: 54%; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__burger { display: block; }
  .nav__menu {
    position: fixed; inset: 0; top: 0; z-index: 49;
    background: rgba(10,10,10,0.96); backdrop-filter: blur(20px);
    display: flex; flex-direction: column; justify-content: center; gap: 8px;
    padding: var(--gutter);
    transform: translateY(-100%); transition: transform 0.5s var(--ease);
  }
  body.nav-open .nav__menu { transform: none; }
  .nav__menu a { font-size: 1.8rem; font-weight: 700; padding: 12px 0; color: var(--white); }
  .nav__menu .btn { display: inline-flex; margin-top: 24px; align-self: flex-start; }
  .values { grid-template-columns: 1fr; }
  .values .value { grid-column: 1 / -1 !important; margin-top: 0 !important; }
  .contact__grid { grid-template-columns: 1fr; gap: 44px; }
  .contact__intro { position: static; }
  .case, .case:nth-child(even) { grid-template-columns: 1fr; }
  .case:nth-child(even) .case__media { order: 0; }
  .case__media { order: -1; }
  .about-hero { grid-template-columns: 1fr; gap: 32px; }
  .about-hero__aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
  .figures { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: 1fr; }
  .legal { grid-template-columns: 1fr; gap: 32px; }
  .legal__toc { position: static; }
  .legal__toc { display: none; }
  .step { grid-template-columns: 1fr; gap: 12px; }
  .step__n { order: -1; }
}
@media (max-width: 520px) {
  .hero__meta { gap: 26px; }
  .figures { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 26px; }
  .form__row--2 { grid-template-columns: 1fr; }
  .browser { display: none; }
  .editor__body { font-size: 0.74rem; }
}

/* ============================================================
   MOBILE OPTIMISATION — tighter vertical rhythm, finger-sized
   targets, full-width CTAs. Kept last so it wins on phones.
   ============================================================ */
@media (max-width: 700px) {
  /* Vertical rhythm — less endless scrolling, denser premium feel */
  .section { padding-block: clamp(54px, 9vh, 78px); }
  .section--tight { padding-block: clamp(42px, 7vh, 60px); }
  .page-head { padding-top: clamp(140px, 19vh, 175px); }

  /* Hero */
  .hero { padding-top: 145px; }
  .hero h1 { margin-top: 16px; }
  .hero__sub { margin-top: 18px; }
  .hero__actions { margin-top: 28px; gap: 12px; width: 100%; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; padding-block: 1.05em; }
  .hero__meta { margin-top: 34px; gap: 22px 30px; }
  .hero__signature { margin-top: 30px; padding-top: 18px; }

  /* Finger-friendly tap targets (≥44px) */
  .footer__col a { padding-block: 9px; }
  .nav__links a { padding: 10px 14px; }

  /* Tighten dense blocks */
  .values { margin-top: 44px; gap: 16px; }
  .value { padding: 26px 22px; }
  .process { margin-top: 40px; }
  .step { padding: 26px 0; gap: 14px; }
  .step:hover { padding-left: 0; }            /* no hover shift on touch */
  .work { margin-top: 46px; }
  .faq__list { margin-top: 40px; }
  .faq__q { padding: 22px 4px; }
  .faq__item:hover .faq__q { padding-left: 4px; }
  .contact__details li { padding: 12px 0; }
  .section-head h2 { margin-top: 14px; }

  /* Section headings a touch tighter so long words don't dominate */
  h1 { line-height: 1.06; }
  h2 { line-height: 1.08; }
}

/* Very small phones — let the footer breathe in one column */
@media (max-width: 430px) {
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__brand { grid-column: auto; }
  .hero__meta { gap: 20px 26px; }
}

/* Pointer is touch → kill hover-only motion that can feel janky on tap */
@media (hover: none) {
  .frame:hover { transform: none; }
  .frame:hover .frame__shot img { transform: none; }
  .value:hover, .member:hover { transform: none; }
  .footer__col a:hover { transform: none; }
}
