/* ============================================================
   bluewave — bw.css · design system v3 (wordmark identity)
   Single shared stylesheet for all four pages.
   Tokens + base + components. Motion engine: bw-motion.js (window.BW).
   Dark end to end — html/body pinned to ABYSS #04070E.
   ============================================================ */

/* ---------- 0 · Self-hosted fonts (GDPR: no external font hosts) ---------- */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('fonts/BricolageGrotesque-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('fonts/InstrumentSans-var.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/JetBrainsMono-var.woff2') format('woff2');
}

/* ---------- 1 · Tokens ---------- */
:root {
  /* ground */
  --abyss: #04070E;            /* page ground — html/body, never lighter */
  --deep: #081328;             /* hero column top */
  --deep-2: #050C1A;
  --intro-top: #071021;        /* subpage intro gradient top */
  --panel: rgba(8, 15, 30, .4);        /* quiet panel fill */
  --panel-soft: rgba(8, 15, 30, .35);
  --card-grad: linear-gradient(170deg, rgba(17, 29, 52, .6), rgba(8, 14, 28, .72));
  --glass-grad: linear-gradient(165deg, rgba(19, 33, 60, .72), rgba(8, 15, 30, .8));
  --glass-border: rgba(130, 165, 225, .2);
  --frame-bg: #08101F;         /* browser-frame body */
  --frame-bar: rgba(13, 22, 40, .92);
  --screen-bg: #0A1424;        /* media wells behind screenshots */

  /* ink */
  --ink: #EAF2FC;              /* 17.4:1 */
  --body: #AFC2D9;             /* 10.9:1 */
  --body-bright: #C4D2E4;
  --body-soft: #A8BBD2;
  --muted: #6E86A3;            /* 5.2:1 AA */
  --faint: #6E86A3;            /* raised to AA (was #5D7492 / 4.2:1) — used for small labels */
  --nav-idle: #8FA3BD;
  --footer-dim: #6E86A3;       /* raised to AA (was #5A6E88 / 3.9:1) */

  /* voltage */
  --accent: #2F6BFF;           /* COBALT — CTAs, w-start. var name kept from spec */
  --cobalt: #2F6BFF;           /* alias — pages reference both names */
  --accent-ring: rgba(47, 107, 255, .25);
  --cobalt-bright: #6E97FF;    /* links · 7.1:1 */
  --aqua: #56D9E2;             /* w-end · 11.7:1 */
  --aqua-bright: #9FF0F6;
  --focus: #9DBAFF;            /* 2px focus ring */

  /* paper — ONLY inside screenshot/document frames, never a page ground */
  --paper: #F2EEE4;
  --paper-ink: #161B26;
  --paper-w: #2452D9;

  /* hairlines */
  --hairline: rgba(140, 170, 220, .14);
  --hairline-soft: rgba(140, 170, 220, .08);
  --hairline-mid: rgba(140, 170, 220, .1);
  --hairline-strong: rgba(140, 170, 220, .22);
  --hairline-hot: rgba(110, 151, 255, .4);

  /* type */
  --font-display: 'Bricolage Grotesque', 'Instrument Sans', system-ui, sans-serif;
  --font-body: 'Instrument Sans', system-ui, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  /* motion — the only two easings, the only six durations */
  --ease-exhale: cubic-bezier(.22, .7, .3, 1);   /* enters, hovers, reveals */
  --ease-gather: cubic-bezier(.65, .05, .25, 1); /* wipes, accordions, ripples */
  --d-micro: 120ms; --d-small: 240ms; --d-medium: 420ms;
  --d-large: 650ms; --d-signature: 1600ms; --d-ambient: 6000ms;

  /* radii */
  --r-9: 9px; --r-12: 12px; --r-16: 16px; --r-20: 20px; --r-pill: 999px;
  --r-phone: 46px; --r-phone-screen: 36px;

  /* layout */
  --container: 1240px;
  --pad: clamp(20px, 4.5vw, 48px);
}

/* ---------- 2 · Base / reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: #04070E;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: #04070E;
  color: var(--body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
  accent-color: var(--accent);
}
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button {
  font: inherit; color: inherit; background: none; border: none;
  padding: 0; cursor: pointer; text-align: inherit;
}
input, textarea, select { font: inherit; }
input::placeholder, textarea::placeholder { color: var(--faint); opacity: 1; }
[hidden] { display: none !important; }

::selection { background: rgba(47, 107, 255, .45); color: #F2F7FF; }

/* slim scrollbar */
html { scrollbar-width: thin; scrollbar-color: #16233C #04070E; }
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-thumb { background: #16233C; border-radius: 99px; border: 2px solid #04070E; }
::-webkit-scrollbar-track { background: #04070E; }

/* visible focus everywhere */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* ---------- 3 · Keyframes (engine hooks — bw-motion.js relies on these names) ---------- */
@keyframes bwBreath {          /* breathing hero type: quiet, one soft exhale, quiet.
                                  transform is GPU-composited (no glyph re-raster = no shimmer);
                                  weight barely moves so it never pixelates. */
  0%, 22%   { transform: scale(1);     font-variation-settings: 'opsz' 90, 'wght' 600; }
  52%       { transform: scale(1.015); font-variation-settings: 'opsz' 90, 'wght' 612; }
  82%, 100% { transform: scale(1);     font-variation-settings: 'opsz' 90, 'wght' 600; }
}
@keyframes bwPulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes bwBlink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
@keyframes bwRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bwDraw {            /* exhale-line: dashoffset 420 → 0, then fade */
  0%   { stroke-dashoffset: 420; opacity: 1; }
  72%  { stroke-dashoffset: 0;   opacity: 1; }
  100% { stroke-dashoffset: 0;   opacity: 0; }
}

.bw-breath { animation: bwBreath 8s ease-in-out infinite; transform-origin: 0% 50%;
  will-change: transform; backface-visibility: hidden; }
.bw-pulse  { animation: bwPulse 2.6s ease-in-out infinite; }

/* exhale-line indicator (put on the <path> inside the widget svg) */
.exhale-path {
  stroke: var(--aqua); stroke-width: 1.6;
  stroke-dasharray: 420; stroke-dashoffset: 420;
  animation: bwDraw 1.6s var(--ease-gather) infinite;
}
/* caret block for typing states */
.caret {
  display: inline-block; width: 7px; height: 13px; background: var(--aqua);
  margin-left: 6px; vertical-align: -2px; animation: bwBlink 1s steps(1) infinite;
}

/* ---------- 4 · Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* film grain — last element of <body> */
.grain {
  position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: .03;
  background-image: url('data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%22180%22%20height=%22180%22%3E%3Cfilter%20id=%22n%22%3E%3CfeTurbulence%20type=%22fractalNoise%22%20baseFrequency=%220.75%22%20numOctaves=%222%22%20stitchTiles=%22stitch%22/%3E%3C/filter%3E%3Crect%20width=%22180%22%20height=%22180%22%20filter=%22url(%23n)%22/%3E%3C/svg%3E');
}

/* home hero shell */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(128px, 16vh, 180px) 0 clamp(56px, 8vh, 88px);
  min-height: 86vh; display: flex; align-items: center;
  background: linear-gradient(180deg, #081328 0%, #050C1A 55%, #04070E 100%);
}
.hero__water { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(1100px 500px at 50% -8%, rgba(47, 107, 255, .14), rgba(47, 107, 255, 0) 65%);
}

/* subpage intro shell (work/lab/studio) */
.page-intro {
  padding: clamp(120px, 15vh, 170px) 0 clamp(40px, 5vw, 64px);
  background: linear-gradient(180deg, #071021 0%, #04070E 70%);
}

/* ---------- 5 · Type ---------- */
.h-hero {          /* home H1 — add .bw-breath for the breathing loop */
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(46px, 7vw, 96px); line-height: .98; letter-spacing: -.028em;
  color: var(--ink); text-wrap: balance;
}
.h-page {          /* subpage H1 */
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(38px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -.026em;
  color: var(--ink);
}
.h-section {       /* section H2 */
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(30px, 4vw, 50px); line-height: 1.05; letter-spacing: -.02em;
  color: var(--ink);
}
.h-block {         /* smaller block H2 (lab teaser, contact) */
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(26px, 3vw, 38px); line-height: 1.08; letter-spacing: -.02em;
  color: var(--ink);
}
.h-case {          /* case H2 on work page */
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.015em; color: var(--ink);
}
.h-card {          /* card / widget titles */
  font-family: var(--font-display); font-weight: 600;
  font-size: 17px; letter-spacing: -.01em; color: var(--ink);
}
.grad-text {       /* cobalt-bright → aqua gradient text (hero second line) */
  background: linear-gradient(92deg, #6E97FF 10%, #56D9E2 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.65; color: var(--body); }

/* mono kickers — uppercase, tracked out */
.kicker {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .18em;
  color: var(--aqua); text-transform: uppercase;
}
.kicker--label { font-size: 11px; letter-spacing: .2em; color: #7E96B8; text-transform: none; }
.kicker--faint { font-size: 10.5px; letter-spacing: .18em; color: var(--faint); }
.kicker--muted { font-size: 11px; letter-spacing: .16em; color: var(--muted); }
.mono { font-family: var(--font-mono); }
.micro { font-size: 12px; line-height: 1.6; color: var(--muted); }

/* oversized section numerals — 14–16% cobalt-bright */
.num-xl {
  font-family: var(--font-mono); font-weight: 600; line-height: 1;
  font-size: clamp(40px, 5vw, 64px); color: rgba(110, 151, 255, .16);
}
.num-hero {
  font-family: var(--font-mono); font-weight: 600; line-height: 1;
  font-size: clamp(48px, 6vw, 84px); color: rgba(110, 151, 255, .14);
}

/* hairline rule */
.rule { border: 0; border-top: 1px solid var(--hairline); margin: 0; }

/* ---------- 6 · Wordmark (the only glyph: the liquid w) ---------- */
/* Markup: see CONTRACT.md — .wordmark wraps "blue" + svg.wordmark__w + "ave"  */
.wordmark { display: inline-flex; align-items: baseline; white-space: nowrap; }
.wordmark__txt {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em;
  color: var(--ink); line-height: 1;
}
.wordmark__w {
  width: .94em; height: .64em; overflow: visible;
  vertical-align: -.02em; margin: 0 .015em;
}
.wordmark__labs {
  font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .22em;
  color: var(--faint); margin-left: 8px;
}

/* ---------- 7 · Header ---------- */
.bw-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(4, 8, 17, .78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline-mid);
}
.bw-header__in {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--pad);
  height: 60px; display: flex; align-items: center; gap: 28px;
}
.bw-logo { display: inline-flex; align-items: baseline; flex: none; font-size: 18px; }
.bw-header__right { margin-left: auto; display: flex; align-items: center; gap: 24px; }

.bw-nav { display: flex; align-items: center; gap: 22px; }
.bw-nav__link {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em;
  color: var(--nav-idle); text-transform: uppercase; transition: color var(--d-small);
}
.bw-nav__link:hover { color: var(--ink); }
.bw-nav__link[aria-current="page"] {
  display: inline-flex; align-items: center; gap: 7px; color: var(--ink);
}
.bw-nav__dot {
  width: 5px; height: 5px; border-radius: 99px; background: var(--aqua);
  box-shadow: 0 0 8px rgba(86, 217, 226, .8);
}

/* mobile pill tab row (<920px) — sits in the page flow just under the fixed 60px
   bar and scrolls away with the page, so the sticky part stays ≤64px. */
.bw-tabs { display: none; gap: 6px; padding: 70px 16px 10px; overflow-x: auto;
  background: linear-gradient(180deg, #081120 0%, rgba(8, 17, 32, 0) 100%); }
.bw-tabs__tab {
  flex: 1; text-align: center; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .14em; color: var(--nav-idle); text-transform: uppercase;
  padding: 9px 10px; border: 1px solid rgba(140, 170, 220, .18); border-radius: 99px;
  min-height: 40px; display: inline-flex; align-items: center; justify-content: center;
}
.bw-tabs__tab[aria-current="page"] {
  color: var(--ink); border-color: rgba(110, 151, 255, .45); background: rgba(47, 107, 255, .12);
}
@media (max-width: 919.98px) {
  .bw-nav { display: none; }
  .bw-tabs { display: flex; }
  /* the flow-tabs strip already clears the fixed bar — pull section tops back in */
  .hero { padding-top: clamp(36px, 6vh, 64px); min-height: 78vh; }
  .page-intro { padding-top: clamp(32px, 5vh, 56px); }
}

/* ---------- 8 · Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; letter-spacing: .01em; border-radius: 11px;
  transition: filter var(--d-small), transform var(--d-small);
}
.btn--primary {                 /* header "Start a project" */
  background: var(--accent); color: #F4F8FF; font-size: 13px;
  padding: 9px 16px; border-radius: var(--r-9);
  border: 1px solid rgba(170, 200, 255, .28);
  box-shadow: 0 8px 22px rgba(35, 80, 210, .35), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.btn--primary-lg {              /* "Get the estimate" */
  background: var(--accent); color: #F4F8FF; font-size: 15px;
  padding: 14px 26px; border-radius: 11px;
  border: 1px solid rgba(170, 200, 255, .28);
  box-shadow: 0 12px 30px rgba(35, 80, 210, .4), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.btn--primary:hover, .btn--primary-lg:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn--ink {                     /* white in-widget button "Take it apart" */
  min-height: 48px; padding: 12px 20px; border-radius: var(--r-12);
  background: var(--ink); color: #0A1424; font-weight: 600; font-size: 14.5px;
  box-shadow: 0 10px 26px rgba(2, 8, 20, .45);
  transition: transform var(--d-micro), filter var(--d-small);
}
.btn--ink:hover { filter: brightness(1.06); }
.btn--ink:active { transform: scale(.97); }

/* ---------- 9 · Links ---------- */
/* draw-in underline, left→right, 350ms EXHALE — aqua mono action links */
.link-line {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em;
  color: var(--aqua); text-transform: uppercase;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0% 1px;
  padding-bottom: 3px;
  transition: background-size .35s var(--ease-exhale), color var(--d-small);
}
.link-line:hover { background-size: 100% 1px; color: var(--aqua-bright); }
.link-line--drawn { background-size: 100% 1px; padding-bottom: 2px; letter-spacing: .12em; }
.link-line--drawn:hover { color: var(--aqua-bright); }

.link-quiet { transition: color var(--d-small); }   /* footer / frame links */
.link-quiet:hover { color: var(--ink); }

.link-dotted {                   /* tertiary reset actions */
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em;
  color: var(--muted); border-bottom: 1px dotted rgba(110, 134, 163, .6);
  padding-bottom: 2px; transition: color var(--d-small);
}
.link-dotted:hover { color: var(--body); }

/* ---------- 10 · Glass + cards ---------- */
.glass {                         /* the widget / form recipe */
  position: relative; border-radius: var(--r-20);
  background: var(--glass-grad);
  border: 1px solid var(--glass-border);
  box-shadow: 0 30px 80px rgba(1, 6, 18, .55), 0 0 90px rgba(47, 107, 255, .09), inset 0 1px 0 rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.panel {                         /* quiet bordered panel (chronology, matrix…) */
  border: 1px solid var(--hairline); border-radius: var(--r-16); background: var(--panel);
}

/* work teaser / lab tile card — liquid hover lives on this class */
.card {
  display: flex; flex-direction: column; border-radius: var(--r-16); overflow: hidden;
  background: var(--card-grad); border: 1px solid var(--hairline);
  box-shadow: 0 18px 44px rgba(1, 6, 16, .4);
  transition: transform var(--d-medium) var(--ease-exhale),
              border-color var(--d-medium), box-shadow var(--d-medium);
}
a.card, button.card { text-align: left; }
.card:hover {
  transform: translateY(-4px) scale(1.012);
  border-color: var(--hairline-hot);
  box-shadow: 0 28px 60px rgba(1, 6, 16, .55), 0 0 60px rgba(47, 107, 255, .14);
}
.card__media {
  height: 190px; overflow: hidden; border-bottom: 1px solid rgba(140, 170, 220, .12);
  background: var(--screen-bg); width: 100%;
}
.card__media--tile { height: 180px; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media--cover {            /* typographic cover (no screenshot yet) */
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: linear-gradient(160deg, #0D1B33, #070F20);
}
.card__body { padding: 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; width: 100%; }
.card__meta {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em;
  color: var(--faint); margin-top: auto; padding-top: 8px;
}
.card__desc { font-size: 13.5px; line-height: 1.55; color: var(--body-soft); }

/* dashed in-build tile (never clickable) */
.card--inbuild {
  background: rgba(10, 18, 34, .35); border: 1px dashed var(--hairline-strong);
  box-shadow: none;
}
.card--inbuild:hover { transform: none; border-color: var(--hairline-strong); box-shadow: none; }
.card--inbuild .card__media { border-bottom: 1px dashed rgba(140, 170, 220, .18); }

/* diagonal hatch for in-build media wells */
.hatch {
  background: repeating-linear-gradient(135deg, rgba(140, 170, 220, .05) 0 10px, rgba(140, 170, 220, .015) 10px 20px);
  display: flex; align-items: center; justify-content: center;
}

/* ---------- 11 · Status dots + chips ---------- */
.dot { width: 7px; height: 7px; border-radius: 99px; flex: none; }
.dot--live {                     /* pulsing aqua = live */
  background: var(--aqua); box-shadow: 0 0 9px rgba(86, 217, 226, .8);
  animation: bwPulse 2.6s ease-in-out infinite;
}
.dot--ref { border: 1.5px solid var(--aqua); }          /* hollow = reference */
.dot--build { border: 1.5px dashed var(--nav-idle); }   /* dashed = in build */

.chip {                          /* honesty chips over case headers */
  display: inline-block; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .18em; border-radius: var(--r-pill); padding: 5px 11px;
}
.chip--live { color: var(--aqua); border: 1px solid rgba(86, 217, 226, .3); background: rgba(86, 217, 226, .06); }
.chip--ref  { color: var(--nav-idle); border: 1px solid rgba(140, 170, 220, .28); background: rgba(140, 170, 220, .06); }
.chip--build { color: var(--nav-idle); border: 1px dashed rgba(140, 170, 220, .35); }

.chip-tech {                     /* tech stack chips */
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em;
  color: #9FB4CE; padding: 4px 10px; border: 1px solid rgba(140, 170, 220, .18);
  border-radius: var(--r-pill); background: rgba(120, 160, 230, .06);
}
.chip-suggest {                  /* idle widget suggestion chips (buttons) */
  font-size: 13px; color: var(--body-bright); padding: 8px 13px;
  border: 1px solid rgba(140, 170, 220, .2); border-radius: var(--r-pill);
  background: rgba(120, 160, 230, .06);
  transition: border-color var(--d-small), background var(--d-small);
}
.chip-suggest:hover { border-color: rgba(110, 151, 255, .5); background: rgba(120, 160, 230, .12); }

/* ---------- 12 · Spec rows (TASK / BUILT / TIME) ---------- */
.spec-row {
  display: flex; gap: 14px; padding: 11px 0; border-top: 1px solid var(--hairline);
}
.spec-row:last-of-type { border-bottom: 1px solid var(--hairline); }
.spec-row__key {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em;
  color: var(--faint); min-width: 64px; padding-top: 3px; flex: none;
}
.spec-row p { font-size: 15px; line-height: 1.6; color: var(--body-bright); }

/* ---------- 13 · Chronology (work page) ---------- */
.chrono { margin-top: 36px; border: 1px solid var(--hairline); border-radius: var(--r-16); background: var(--panel); padding: 8px clamp(16px, 2.5vw, 26px); }
.chrono__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid rgba(140, 170, 220, .12);
}
.chrono__count { font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--ink); }
.chrono__row {
  display: flex; align-items: center; gap: 12px; padding: 11px 0;
  border-bottom: 1px solid var(--hairline-soft); flex-wrap: wrap;
}
.chrono__row:last-child { border-bottom: 0; }
.chrono__year { font-family: var(--font-mono); font-size: 10.5px; color: var(--faint); width: 44px; flex: none; }
.chrono__name { font-size: 14.5px; font-weight: 500; color: var(--ink); transition: color var(--d-small); }
a.chrono__name:hover { color: var(--aqua-bright); }
.chrono__tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; color: var(--muted); margin-left: auto; }

/* ---------- 14 · Stats strip ---------- */
.stats {
  border-top: 1px solid var(--hairline-mid); border-bottom: 1px solid var(--hairline-mid);
  background: var(--panel-soft);
}
.stats__grid {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--pad);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 24px;
}
.stat { padding: 26px 0; }
.stat__num { font-family: var(--font-mono); font-size: 28px; font-weight: 600; color: var(--ink); }
.stat__label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  color: var(--muted); text-transform: uppercase; margin-top: 7px;
}

/* ---------- 15 · Forms (labels carry their one-word reason) ---------- */
.field { margin-bottom: 14px; }
.field__label {
  display: block; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .16em; color: var(--nav-idle); margin-bottom: 7px;
  text-transform: uppercase;
}
.input {
  display: block; width: 100%; min-height: 48px;
  background: rgba(5, 10, 22, .75); border: 1px solid var(--hairline-strong);
  border-radius: var(--r-12); padding: 12px 14px;
  font-size: 15px; color: var(--ink); outline: none;
  transition: border-color var(--d-small), box-shadow var(--d-small);
}
.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
  outline: none;
}
textarea.input { resize: vertical; min-height: 74px; }
select.input {
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235D7492' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px;
}
select.input option { background: #081120; color: var(--ink); }

/* ---------- 16 · Frames ---------- */
/* browser frame around desktop screenshots */
.frame-browser {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(150, 180, 230, .16); background: var(--frame-bg);
  box-shadow: 0 40px 100px rgba(1, 5, 14, .65), 0 0 80px rgba(47, 107, 255, .08);
}
.frame-browser__bar {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  background: var(--frame-bar); border-bottom: 1px solid var(--hairline-mid);
}
.frame-browser__dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(140, 170, 220, .25); flex: none; }
.frame-browser__title { margin-left: 10px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; color: var(--muted); }

/* glass reflection on any frame — place as last child of the frame */
.glare {
  position: absolute; top: 0; left: 0; right: 0; height: 34%;
  background: linear-gradient(175deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0));
  pointer-events: none;
}

/* clean card hover: gentle image zoom + a light sheen sweeping across (replaces
   the retired feDisplacementMap "liquid" crumple). */
[data-liquid] { position: relative; overflow: hidden; }
[data-liquid] img { transition: transform .6s cubic-bezier(.22,.7,.3,1), filter .6s ease; will-change: transform; }
[data-liquid]::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: linear-gradient(115deg, transparent 34%, rgba(174, 210, 255, .16) 50%, transparent 64%);
  transform: translateX(-130%); transition: transform .85s cubic-bezier(.22,.7,.3,1);
}
[data-liquid]:hover img, a:hover > [data-liquid] img { transform: scale(1.035); filter: brightness(1.05) saturate(1.04); }
[data-liquid]:hover::after, a:hover > [data-liquid]::after { transform: translateX(130%); }

/* phone frame (CrewLink) — bezel 54/42 family: r46 outer, r36 screen */
.frame-phone {
  position: relative; width: min(290px, 78vw); border-radius: var(--r-phone); padding: 11px;
  background: linear-gradient(170deg, #0E1C34, #081120);
  border: 1px solid rgba(150, 180, 230, .18);
  box-shadow: 0 40px 90px rgba(1, 5, 14, .6), 0 0 70px rgba(47, 107, 255, .07);
}
.frame-phone__screen {
  border-radius: var(--r-phone-screen); overflow: hidden; background: #060D1C;
  aspect-ratio: 390 / 800; position: relative;
}
.frame-phone__glare {
  position: absolute; top: 11px; left: 11px; right: 11px; height: 120px;
  border-radius: 36px 36px 0 0;
  background: linear-gradient(175deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 70%);
  pointer-events: none; z-index: 2;
}
.frame-phone__notch {
  position: absolute; top: 21px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 21px; border-radius: 12px; background: var(--abyss);
  border: 1px solid rgba(150, 180, 230, .14); pointer-events: none; z-index: 3;
}

/* user-fillable capture slot — labeled empty frame */
.slot {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 18px; text-align: center;
  background: repeating-linear-gradient(135deg, rgba(140, 170, 220, .05) 0 10px, rgba(140, 170, 220, .015) 10px 20px);
}
.slot__label {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em;
  line-height: 1.9; color: var(--faint); text-transform: uppercase; max-width: 30ch;
}

/* ---------- 17 · Lightbox (BW.initLightbox wires it) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 80; background: rgba(2, 5, 11, .84);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center; padding: 4vw;
  animation: bwRise .25s ease both;
}
.lightbox__panel {
  max-width: min(1100px, 94vw); width: 100%; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(150, 180, 230, .22); box-shadow: 0 60px 140px rgba(0, 0, 0, .7);
  background: var(--frame-bg);
}
.lightbox__panel .frame-browser__bar { background: rgba(13, 22, 40, .95); }
.lightbox__body { max-height: 78vh; overflow: auto; }
.lightbox__close {
  margin-left: auto; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  color: var(--nav-idle); padding: 4px 10px; border: 1px solid rgba(140, 170, 220, .25);
  border-radius: 8px; transition: color var(--d-small);
}
.lightbox__close:hover { color: var(--ink); }

/* ---------- 18 · Footer ---------- */
.bw-footer {
  border-top: 1px solid var(--hairline-mid);
  padding: clamp(40px, 6vw, 72px) 0 42px; overflow: hidden;
}
.bw-footer__wordmark {           /* GIANT close — spotlight target + egg host */
  position: relative; user-select: none; -webkit-user-select: none;
  line-height: .94; white-space: nowrap;
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.03em;
  color: var(--ink); font-size: clamp(58px, 12.2vw, 182px);
}
.bw-footer__wordmark [data-egg-letter] { display: inline-block; }
.bw-footer__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px; margin-top: clamp(28px, 4vw, 48px);
}
.bw-footer__label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em;
  color: var(--faint); margin: 0 0 10px;
}
.bw-footer__text { font-family: var(--font-mono); font-size: 11.5px; line-height: 2; color: var(--nav-idle); }
.bw-footer__legal {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em;
  color: var(--footer-dim); margin: 26px 0 0;
}

/* ---------- 19 · Reduced motion — every loop collapses, wipes vanish ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .bw-breath { animation: none; font-variation-settings: 'opsz' 90, 'wght' 600; }
  .exhale-path { animation: none; stroke-dashoffset: 0; opacity: 1; }
  [data-liquid] img, [data-liquid]::after { transition: none; }
  [data-liquid]:hover img, a:hover > [data-liquid] img { transform: none; filter: none; }
}
