/* TrunkFlow company site, build 2: dark teal and cinematic (the founder's choice, 2026-11-19).
   One idea per screen, free scrolling with "Next" buttons that glide you on, drop-down menus
   in the top bar, and a moving background of water lines on the openings. */

:root {
  --bg: #04161b;
  --bg-deep: #020e12;
  --teal: #082830;
  --panel: #0a2a32;
  --panel-2: #0f343e;
  --panel-3: #154250;
  --text: #f3efe7;
  --text-soft: #a8bcbe;
  --text-faint: #6d8a8f;
  --line: rgba(243, 239, 231, 0.11);
  --line-strong: rgba(243, 239, 231, 0.24);
  --button-bg: #f3efe7;
  --button-fg: #04161b;
  --focus: #66e8ee;

  --water: #4fe3ea;
  --water-deep: #12bfcc;
  --water-glow: rgba(79, 227, 234, 0.32);
  --care: #57d7a0;
  --care-deep: #1f8f63;
  --care-glow: rgba(87, 215, 160, 0.28);
  --fz: #969cff;
  --fz-deep: #4f46e5;
  --fz-glow: rgba(150, 156, 255, 0.3);
  --warm: #f2a06b;
  --accent: var(--water);
  --accent-glow: var(--water-glow);

  --radius: 28px;
  --radius-s: 18px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  /* One overshoot, then it settles: "bounce once". */
  --spring: linear(0, 0.013, 0.05 2.4%, 0.2 5.5%, 0.86 13%, 1.035 17.4%, 1.075 19.8%, 1.082 21.8%, 1.07 24.4%, 1.012 31%, 0.995 35.8%, 0.993 40%, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Instrument Sans", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Instrument Sans", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --header-h: 60px;
  color-scheme: dark;
}

.theme-water { --accent: var(--water); --accent-glow: var(--water-glow); --accent-deep: var(--water-deep); }
.theme-rapid { --accent: var(--care); --accent-glow: var(--care-glow); --accent-deep: var(--care-deep); }
.theme-fugazii { --accent: var(--fz); --accent-glow: var(--fz-glow); --accent-deep: var(--fz-deep); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 64px); background: var(--bg); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  @view-transition { navigation: auto; }
}
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 260ms; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.62 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: clip; }
::selection { background: rgba(79, 227, 234, 0.32); color: var(--text); }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.06; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 10px; }
main:focus { outline: none; }
/* width: 100% keeps a part's content on the same left edge even when it's short. */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--button-bg); color: var(--button-fg); font-weight: 600; text-decoration: none; transition: top 150ms var(--ease-out); }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent; transition: transform 200ms var(--ease-out), background-color 200ms, border-color 200ms, color 200ms, box-shadow 300ms; }
.button:active { transform: scale(0.96); transition-duration: 120ms; }
.button-light { background: var(--button-bg); color: var(--button-fg); }
.button-light:hover { box-shadow: 0 0 0 6px rgba(243, 239, 231, 0.1); }
.button-ghost { background: rgba(243, 239, 231, 0.04); color: var(--text); border-color: var(--line-strong); }
.button-ghost:hover { border-color: var(--text); background: rgba(243, 239, 231, 0.08); }
.button-accent { background: var(--accent); color: var(--bg-deep); }
.button-accent:hover { box-shadow: 0 0 0 6px var(--accent-glow); }
.button[disabled] { opacity: 0.4; cursor: default; transform: none; }
.arrow { display: inline-block; transition: transform 250ms var(--ease-out); }
.button:hover .arrow, a:hover > .arrow { transform: translateX(3px); }
.arrow-down { display: inline-block; transition: transform 250ms var(--ease-out); }
.button:hover .arrow-down, a:hover > .arrow-down { transform: translateY(3px); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--text); }
.link-arrow::after { content: "→"; transition: transform 250ms var(--ease-out); }
.link-arrow:hover::after { transform: translateX(4px); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- The top bar: Projects opens a wide bar; About, Team and Contact are links ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 60; border-bottom: 1px solid transparent; transition: background-color 350ms var(--ease-out), border-color 350ms, -webkit-backdrop-filter 350ms, backdrop-filter 350ms; }
.site-header[data-solid] { background: rgba(4, 22, 27, 0.78); -webkit-backdrop-filter: saturate(1.4) blur(18px); backdrop-filter: saturate(1.4) blur(18px); border-bottom-color: var(--line); }
.site-header.is-open { background: #04161b; border-bottom-color: var(--line); }
/* The page blurs and dims behind the open bar, as on OpenAI's site. */
.nav-scrim { position: fixed; inset: 0; z-index: 59; background: rgba(1, 9, 12, 0.5); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); opacity: 0; visibility: hidden; transition: opacity 320ms var(--ease-out), visibility 0s linear 320ms; }
html.nav-open .nav-scrim { opacity: 1; visibility: visible; transition-delay: 0s; }
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; padding: 8px 0; border-radius: 8px; }
.brand img { width: auto; height: 19px; }
.brand .brand-mark { display: none; height: 22px; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-link { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; font-size: 0.92rem; font-weight: 500; color: var(--text-soft); text-decoration: none; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color 160ms, background-color 220ms; }
.nav-link:hover, .nav-item.is-open > .nav-link, .nav-link[aria-current="page"] { color: var(--text); }
.nav-link[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.nav-item.is-open > .nav-link { background: rgba(243, 239, 231, 0.08); }
.nav-link .chev { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: 0.7; transition: transform 300ms var(--ease-out); }
.nav-item.is-open > .nav-link .chev { transform: translateY(1px) rotate(-135deg); }
.nav-link.is-contact, .nav-link.is-contact:hover, .nav-link.is-contact[aria-current="page"] { margin-left: 8px; color: var(--button-fg); background: var(--button-bg); font-weight: 600; }
.nav-link.is-contact[aria-current="page"]::after { display: none; }

.nav-panel { position: absolute; left: 0; right: 0; top: 100%; background: #04161b; border-bottom: 1px solid var(--line); }
.js .nav-panel { display: block; visibility: hidden; opacity: 0; clip-path: inset(0 0 100% 0); transition: opacity 240ms var(--ease-out), clip-path 520ms var(--ease-out), visibility 0s linear 520ms; }
.js .nav-item.is-open > .nav-panel { visibility: visible; opacity: 1; clip-path: inset(0 0 0 0); transition-delay: 0s; }
.panel-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.7fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; padding-block: 30px 42px; }
.panel-label { margin: 0; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
.panel-big { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; }
.panel-big a { display: grid; gap: 3px; padding: 9px 0; text-decoration: none; border-radius: 10px; }
.pb-name { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: clamp(1.6rem, 2.3vw, 2.15rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; color: var(--text-soft); transition: color 200ms, transform 450ms var(--ease-out); }
.pb-name::after { content: "→"; font-size: 0.7em; color: var(--accent); opacity: 0; transform: translateX(-8px); transition: opacity 250ms, transform 450ms var(--ease-out); }
.pb-line { font-size: 0.92rem; color: var(--text-faint); transition: color 200ms; }
.panel-big a.is-active .pb-name, .panel-big a:focus-visible .pb-name { color: var(--text); transform: translateX(4px); }
.panel-big a.is-active .pb-name::after, .panel-big a:focus-visible .pb-name::after { opacity: 1; transform: none; }
.panel-big a.is-active .pb-line { color: var(--text-soft); }
.panel-small ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.panel-small a { color: var(--text-soft); font-weight: 500; text-decoration: none; transition: color 160ms; }
.panel-small a:hover { color: var(--text); }
.panel-preview { position: relative; height: 236px; margin-top: 6px; border-radius: 22px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.pp { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(120% 120% at 70% 0%, var(--accent-glow), var(--panel) 70%); opacity: 0; transition: opacity 380ms var(--ease-out); }
.pp.is-shown { opacity: 1; }
.pp-caption { position: absolute; left: 18px; bottom: 14px; font-size: 0.82rem; font-weight: 600; color: var(--text-soft); }
.pp-figure { position: relative; margin-top: -24px; font-family: var(--font-display); font-size: 3.4rem; font-weight: 650; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.pp-figure small { font-size: 0.38em; margin-left: 4px; color: var(--text-soft); letter-spacing: 0; }
.pp-stamp { font-size: 2.1rem; }
.pp .tv-acks { width: 64%; }
.pp.is-shown .pp-stamp { animation: stamp 560ms var(--spring) both; }
.pp.is-shown .tv-line { stroke-dasharray: 320; animation: draw-line 900ms var(--ease-out) both; }
.pp.is-shown .pp-figure { animation: settle 600ms var(--spring) 120ms both; }
.pp.is-shown .tv-ack { animation: settle 520ms var(--spring) both; }
.pp.is-shown .tv-ack + .tv-ack { animation-delay: 140ms; }
.pp.is-shown .tv-ack:last-child i { animation: pop 420ms var(--spring) 420ms both; }
@keyframes draw-line { from { stroke-dashoffset: 320; } to { stroke-dashoffset: 0; } }
.js .nav-item.is-open .panel-big li, .js .nav-item.is-open .panel-small, .js .nav-item.is-open .panel-preview { animation: tile-in 560ms var(--ease-out) both; }
.js .nav-item.is-open .panel-big li:nth-child(2) { animation-delay: 45ms; }
.js .nav-item.is-open .panel-big li:nth-child(3) { animation-delay: 90ms; }
.js .nav-item.is-open .panel-small { animation-delay: 110ms; }
.js .nav-item.is-open .panel-preview { animation-delay: 150ms; }
@keyframes tile-in { from { opacity: 0; transform: translateY(10px); } }
.copy-status { min-height: 1.4em; margin: 10px 0 0; font-weight: 600; color: var(--care); font-size: 0.95rem; }
.copy-status.is-shown { animation: settle 420ms var(--spring) both; }

/* Phones and small tablets: the same four links, smaller; the bar lists the projects. */
@media (max-width: 899px) {
  .panel-inner { grid-template-columns: 1fr; gap: 22px; padding-block: 16px 26px; }
  .panel-preview { display: none; }
  .nav-panel { max-height: calc(100svh - var(--header-h)); overflow-y: auto; }
  .panel-small ul { grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 20px; margin-top: 10px; }
  .panel-small a { font-size: 0.92rem; }
}
@media (max-width: 640px) {
  .brand .brand-word { display: none; }
  .brand .brand-mark { display: block; }
  .header-bar { gap: 10px; }
  .nav-link { gap: 6px; padding: 8px 10px; font-size: 0.9rem; }
  .nav-link.is-contact, .nav-link.is-contact:hover, .nav-link.is-contact[aria-current="page"] { margin-left: 4px; padding: 8px 13px; }
  .pb-name { font-size: 1.55rem; }
  .panel-small ul { grid-template-columns: 1fr; }
}
@media (max-width: 370px) {
  .nav-link { gap: 4px; padding: 7px 7px; font-size: 0.85rem; }
  .nav-link.is-contact, .nav-link.is-contact:hover, .nav-link.is-contact[aria-current="page"] { margin-left: 2px; padding: 7px 10px; }
  .brand .brand-mark { height: 19px; }
}

/* ---------- Openings with the moving water lines ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + 40px) 0 120px; }
.flow-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 55% at 50% 45%, transparent 0%, rgba(4, 22, 27, 0.55) 62%, var(--bg) 100%), linear-gradient(to bottom, rgba(4, 22, 27, 0.2), transparent 30%, transparent 70%, var(--bg)); pointer-events: none; }
.hero-content { display: grid; justify-items: center; gap: 0; }
.hero-mark { margin: 0; }
.hero-mark img { width: clamp(260px, 40vw, 600px); height: auto; filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.45)); }
.hero-headline { margin: clamp(22px, 3vw, 34px) 0 0; font-family: var(--font-display); font-size: clamp(1.35rem, 2.6vw, 2.15rem); font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; color: var(--text); max-width: 24ch; text-wrap: balance; }
.hero .button { margin-top: clamp(28px, 4vw, 44px); }
.js .hero-content > * { opacity: 0; transform: translateY(18px); }
.js .hero.is-ready .hero-content > * { opacity: 1; transform: none; transition: opacity 900ms var(--ease-out), transform 1100ms var(--ease-out); }
.js .hero.is-ready .hero-content > *:nth-child(2) { transition-delay: 160ms; }
.js .hero.is-ready .hero-content > *:nth-child(3) { transition-delay: 320ms; }
.js .hero.is-ready .hero-content > *:nth-child(4) { transition-delay: 460ms; }
.js .hero:not(.is-ready) .hero-content > * { animation: reveal-failsafe 0s 2.5s forwards; }

/* A project page's opening: the same lines, in the project's own colour. */
.case-hero { text-align: left; place-items: end start; padding-bottom: clamp(90px, 14vh, 150px); }
.case-hero .hero-content { justify-items: start; width: 100%; }
.case-hero .kicker { color: var(--accent); }
.case-hero h1 { margin-top: 14px; font-size: clamp(2.8rem, 7.4vw, 6.8rem); font-weight: 650; letter-spacing: -0.045em; line-height: 0.98; max-width: 13ch; text-wrap: balance; }
.case-hero .lede { margin: 26px 0 0; font-size: clamp(1.1rem, 1.7vw, 1.4rem); color: var(--text-soft); max-width: 46ch; text-align: left; }
.case-hero .button-row { margin-top: 32px; }
.case-hero::before { background: linear-gradient(to top, var(--bg) 0%, rgba(4, 22, 27, 0.6) 35%, rgba(4, 22, 27, 0.2) 70%, rgba(4, 22, 27, 0.5) 100%); }
.kicker { margin: 0; font-size: 0.86rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-soft); }
.stage { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 0.92rem; font-weight: 500; color: var(--text-soft); }
.stage::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow), 0 0 18px 2px var(--accent-glow); flex: none; }

/* ---------- The home page's chapters: one project per screen ---------- */
.chapter { position: relative; min-height: 100svh; display: grid; align-items: center; padding-block: clamp(110px, 16vh, 170px) clamp(120px, 18vh, 180px); overflow: hidden; isolation: isolate; }
.chapter::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 60% at 78% 50%, var(--accent-glow), transparent 70%); opacity: 0.55; pointer-events: none; }
.chapter + .chapter { border-top: 1px solid var(--line); }
.chapter-inner { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.chapter-copy .kicker { color: var(--accent); }
.chapter-title { margin-top: 16px; font-size: clamp(2.3rem, 4.5vw, 4.2rem); font-weight: 650; letter-spacing: -0.04em; line-height: 1; text-wrap: balance; }
.chapter-line { margin: 22px 0 0; font-size: clamp(1.08rem, 1.5vw, 1.3rem); color: var(--text-soft); max-width: 40ch; }
.chapter-copy .button-row { margin-top: 30px; }
.chapter-copy .stage { margin-top: 26px; }
.chapter-visual { position: relative; }
.next-chapter { position: absolute; left: 50%; bottom: clamp(26px, 4vh, 40px); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(4, 22, 27, 0.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--text-soft); font-size: 0.9rem; font-weight: 500; text-decoration: none; white-space: nowrap; transition: color 200ms, border-color 200ms; }
.next-chapter:hover { color: var(--text); border-color: var(--text); }
.next-chapter b { color: var(--text); font-weight: 600; }
.next-chapter .arrow-down { color: var(--accent); }
@media (max-width: 899px) {
  .chapter { min-height: auto; padding-block: 96px 120px; }
  .chapter-inner { grid-template-columns: 1fr; gap: 40px; }
  .chapter::before { background: radial-gradient(90% 50% at 50% 75%, var(--accent-glow), transparent 70%); }
}

/* The dots on the right show where you are; each one jumps to its chapter. */
.chapter-dots { position: fixed; right: clamp(12px, 2vw, 28px); top: 50%; z-index: 40; transform: translateY(-50%); display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; opacity: 0; pointer-events: none; transition: opacity 400ms var(--ease-out); }
.chapter-dots.is-visible { opacity: 1; pointer-events: auto; }
.chapter-dots a { position: relative; display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); transition: background-color 250ms, transform 350ms var(--spring); }
.chapter-dots a::before { content: ""; position: absolute; inset: -10px; }
.chapter-dots a span { position: absolute; right: 22px; top: 50%; transform: translate(6px, -50%); padding: 5px 10px; border-radius: 8px; background: var(--panel-2); color: var(--text); font-size: 0.8rem; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 200ms, transform 300ms var(--ease-out); }
.chapter-dots a:hover span, .chapter-dots a:focus-visible span { opacity: 1; transform: translate(0, -50%); }
.chapter-dots a[aria-current="true"] { background: var(--text); transform: scale(1.35); }
@media (max-width: 899px) { .chapter-dots { display: none; } }

/* ---------- Visuals the chapters use ---------- */
.stagebox { position: relative; border-radius: calc(var(--radius) + 6px); overflow: hidden; background: radial-gradient(120% 100% at 70% 0%, rgba(243, 239, 231, 0.05), transparent 60%), var(--panel); border: 1px solid var(--line); }
.big-number { position: absolute; left: 6%; bottom: 11%; margin: 0; font-family: var(--font-display); font-weight: 650; font-size: clamp(3rem, 6.4vw, 5.6rem); letter-spacing: -0.05em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.big-number small { font-size: 0.34em; margin-left: 6px; color: var(--text-soft); letter-spacing: 0; font-weight: 600; }
.big-number-caption { position: absolute; left: 6%; bottom: 5%; margin: 0; font-size: 0.85rem; color: var(--text-soft); font-weight: 500; }

/* The installation drawing, on dark. */
.install { position: relative; }
.install svg { width: 100%; height: auto; }
.install-stage { position: relative; }
.install .wall { fill: #0d3039; }
.install .grout { stroke: rgba(243, 239, 231, 0.07); stroke-width: 1; }
.install .chrome-stroke { stroke: url(#chrome); }
.install .label { font: 600 13px var(--font); fill: var(--text-soft); letter-spacing: 0.02em; }
.install .measure { font: 600 13px var(--font); fill: var(--text); font-variant-numeric: tabular-nums; }
.install .leader { stroke: var(--line-strong); stroke-width: 1; fill: none; }
.install .stream { stroke: var(--water); stroke-width: 3; stroke-linecap: round; fill: none; stroke-dasharray: 10 14; opacity: 0.9; filter: drop-shadow(0 0 6px var(--water-glow)); }
@media (prefers-reduced-motion: no-preference) { .install .stream { animation: flow 900ms linear infinite; } }
@keyframes flow { to { stroke-dashoffset: -24; } }
.install .monitor-body { fill: #d9e1e3; stroke: #8ea0a5; stroke-width: 1.2; }
.install .monitor-ear { fill: #c5d0d3; stroke: #8ea0a5; stroke-width: 1.2; }
.install .monitor-light { fill: var(--light, #3ad38a); filter: drop-shadow(0 0 7px var(--light, #3ad38a)); transition: fill 250ms, filter 250ms; }
.install .monitor-ring { fill: none; stroke: var(--water); stroke-width: 2.5; opacity: 0; transform-origin: 380px 222px; transform-box: view-box; }
.install.is-identified .monitor-ring { animation: ring 900ms var(--ease-out) 1; }
@keyframes ring { from { transform: scale(0.8); opacity: 0.9; } to { transform: scale(1.3); opacity: 0; } }
.install-button { position: absolute; left: 50%; top: 50.5%; width: 15%; height: 18%; transform: translate(-50%, -50%); border-radius: 22px; border: 2px dashed transparent; background: transparent; cursor: pointer; transition: border-color 200ms; }
.install-button:hover, .install-button[aria-expanded="true"] { border-color: var(--water); }
.install-hint { position: absolute; left: 64.5%; top: 33%; padding: 5px 12px; border-radius: 999px; background: rgba(4, 22, 27, 0.7); border: 1px solid var(--line-strong); font-size: 0.8rem; font-weight: 600; color: var(--text); pointer-events: none; white-space: nowrap; animation: hint 2.6s var(--ease-in-out) infinite; }
@keyframes hint { 50% { transform: translateY(-3px); } }
.install.is-identified .install-hint { opacity: 0; }
.install-callout { position: absolute; left: 3%; bottom: 5%; width: min(330px, 46%); padding: 16px 18px; border-radius: 18px; background: rgba(10, 42, 50, 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--line-strong); font-size: 0.95rem; transform-origin: 50% 100%; }
.install-callout strong { display: block; font-size: 1.02rem; margin-bottom: 4px; }
.install-callout p { margin: 0; color: var(--text-soft); }
.js .install-callout { opacity: 0; transform: scale(0.92) translateY(8px); pointer-events: none; transition: opacity 200ms var(--ease-out), transform 460ms var(--spring); }
.js .install.is-identified .install-callout { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 719px) {
  .install .measure { display: none; }
  .install .label { font-size: 24px; }
  .install-hint { left: 58%; top: 28%; }
  .install-callout { position: static; width: auto; margin: 12px; }
  .js .install-callout { display: none; }
  .js .install.is-identified .install-callout { display: block; }
}

/* Status panels and responder cards, as Rapid Response shows them. */
.panel-stack { display: grid; gap: 12px; padding: clamp(22px, 4vw, 44px); }
.status-panel { border-radius: 18px; background: var(--panel-2); border: 1px solid var(--line); padding: 16px 18px; transition: background-color 400ms, border-color 400ms; }
.status-panel .sp-place { margin: 0 0 4px; font-size: 0.82rem; font-weight: 600; color: var(--text-soft); letter-spacing: 0.02em; }
.status-panel .sp-title { margin: 0; font-weight: 600; font-size: 1.12rem; }
.status-panel .sp-count { margin: 6px 0 0; font-size: 0.95rem; font-weight: 600; color: var(--care); font-variant-numeric: tabular-nums; }
.status-panel.is-done { background: rgba(87, 215, 160, 0.12); border-color: rgba(87, 215, 160, 0.4); }
.member { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-radius: 16px; border: 1px solid var(--line); background: rgba(243, 239, 231, 0.03); font-weight: 600; transition: background-color 400ms, border-color 400ms; }
.member .mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; flex: none; font-size: 0.85rem; transition: background-color 300ms; }
.member .who { flex: 1; }
.member .state { font-weight: 500; font-size: 0.9rem; }
.member.is-waiting .mark { border: 1.5px dashed var(--text-faint); color: var(--text-soft); animation: wait-breathe 2.4s ease-in-out infinite; }
.member.is-waiting .state { color: var(--text-soft); }
.member.is-confirmed { background: rgba(87, 215, 160, 0.1); border-color: rgba(87, 215, 160, 0.38); }
.member.is-confirmed .mark { background: var(--care); color: var(--bg-deep); }
.member.is-confirmed .state { color: var(--care); }
.member.is-flip .mark { animation: pop 460ms var(--spring) both; }
@keyframes wait-breathe { 50% { transform: scale(0.9); opacity: 0.6; } }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes settle { from { transform: translateY(14px) scale(0.97); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 480px) {
  .member { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; }
  .member .mark { grid-row: span 2; }
  .member .who, .member .state { grid-column: 2; }
  .member .state { font-size: 0.85rem; }
}

/* A phone frame for Fugazii's approved screens. */
.phone { position: relative; width: min(64%, 300px); aspect-ratio: 599 / 1300; border-radius: 42px; padding: 9px; background: #000; box-shadow: 0 0 0 1px rgba(243, 239, 231, 0.12), 0 40px 80px -30px rgba(0, 0, 0, 0.8); }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 33px; }
.stamp { display: inline-block; padding: 6px 16px; border: 3px solid currentColor; border-radius: 12px; font-weight: 800; font-size: 1.6rem; letter-spacing: 0.12em; transform: rotate(-6deg); color: #ff6b6b; background: rgba(4, 22, 27, 0.88); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.fz-visual { display: grid; place-items: center; padding: 8% 0 0; min-height: 520px; }
.fz-visual .stamp { position: absolute; left: 60%; top: 20%; font-size: clamp(1.4rem, 2.6vw, 2.2rem); }
.js .fz-visual .stamp { opacity: 0; }
.js .fz-visual.is-in .stamp, .js .is-in .fz-visual .stamp { animation: stamp 620ms var(--spring) 350ms both; }
@keyframes stamp { from { transform: rotate(-14deg) scale(1.7); opacity: 0; } to { transform: rotate(-6deg) scale(1); opacity: 1; } }

/* ---------- Project pages: one idea per screen ---------- */
.jump-bar { position: fixed; left: 0; right: 0; top: var(--header-h); z-index: 50; background: rgba(4, 22, 27, 0.82); -webkit-backdrop-filter: saturate(1.4) blur(18px); backdrop-filter: saturate(1.4) blur(18px); border-bottom: 1px solid var(--line); transform: translateY(-110%); opacity: 0; visibility: hidden; pointer-events: none; transition: transform 420ms var(--ease-out), opacity 300ms var(--ease-out), visibility 0s linear 420ms; }
.jump-bar.is-visible { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.jump-inner { display: flex; align-items: center; gap: 16px; min-height: 52px; }
.jump-name { font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.jump-menu { position: relative; margin-right: auto; }
.jump-current { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 6px 12px; border-radius: 10px; border: 0; background: rgba(243, 239, 231, 0.06); color: var(--text-soft); font-size: 0.92rem; font-weight: 500; cursor: pointer; }
.jump-current:hover { color: var(--text); }
.jump-current .chev { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 300ms var(--ease-out); }
.jump-current[aria-expanded="true"] .chev { transform: translateY(1px) rotate(-135deg); }
.jump-list { position: absolute; left: 0; top: calc(100% + 8px); min-width: 260px; margin: 0; padding: 8px; list-style: none; border-radius: 16px; background: var(--panel); border: 1px solid var(--line-strong); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7); }
.jump-list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--text-soft); font-weight: 500; }
.jump-list a:hover { background: rgba(243, 239, 231, 0.06); color: var(--text); }
.jump-list a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); flex: none; }
.jump-list a[aria-current="true"] { color: var(--text); }
.jump-list a[aria-current="true"]::before { background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.js .jump-list { display: block; visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity 200ms var(--ease-out), transform 300ms var(--ease-out), visibility 0s linear 300ms; }
.js .jump-list.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.jump-cta { min-height: 36px; padding: 6px 16px; font-size: 0.9rem; }
@media (max-width: 719px) { .jump-name { display: none; } .jump-cta { display: none; } }

.story { position: relative; min-height: 100svh; display: grid; align-content: center; padding-block: clamp(100px, 14vh, 150px); }
.story + .story { border-top: 1px solid var(--line); }
.story-head { max-width: 820px; margin-bottom: clamp(32px, 5vw, 60px); }
.story-head .kicker { color: var(--accent); }
.story-head h2 { margin-top: 14px; font-size: clamp(2.2rem, 4.6vw, 4rem); font-weight: 650; letter-spacing: -0.04em; line-height: 1.02; text-wrap: balance; }
.story-head p { margin: 20px 0 0; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--text-soft); max-width: 56ch; }
.statement { margin: 0; font-family: var(--font-display); font-size: clamp(1.9rem, 4.4vw, 3.8rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; max-width: 22ch; text-wrap: balance; }
.statement em { font-style: normal; color: var(--accent); }
.statement-sub { margin: 28px 0 0; font-size: clamp(1.08rem, 1.6vw, 1.32rem); color: var(--text-soft); max-width: 58ch; }
.statement-sub strong { color: var(--text); font-weight: 600; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 90px); align-items: center; }
@media (max-width: 899px) { .split { grid-template-columns: 1fr; } .story { min-height: auto; } }

/* Fugazii's three moments: the phone stays while the steps go by. */
.scrolly { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); }
.scrolly-steps { display: grid; }
.scrolly-step { min-height: 72vh; display: grid; align-content: center; padding-block: 40px; opacity: 0.28; transition: opacity 500ms var(--ease-out); }
.scrolly-step.is-active { opacity: 1; }
.scrolly-step .step-num { font-size: 0.9rem; font-weight: 700; color: var(--accent); letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.scrolly-step h3 { margin-top: 12px; font-size: clamp(1.8rem, 3.4vw, 2.8rem); letter-spacing: -0.03em; }
.scrolly-step p { margin: 16px 0 0; color: var(--text-soft); font-size: 1.15rem; max-width: 40ch; }
.scrolly-stage { position: sticky; top: calc(var(--header-h) + 72px); height: calc(100svh - var(--header-h) - 120px); display: grid; place-items: center; }
.scrolly-stage .phone { width: auto; height: min(100%, 640px); }
.scrolly-stage .phone img, .scrolly-stage .checking-screen { position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px); border-radius: 33px; opacity: 0; transition: opacity 500ms var(--ease-out); }
.scrolly-stage .is-active { opacity: 1 !important; }
.checking-screen { background: #fff; color: #111827; padding: 32% 10% 0; }
.checking-screen p { margin: 0 0 16px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #4b5563; }
.checking-screen ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checking-screen li { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 0.95rem; }
.checking-screen li::before { content: "✓"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #4f46e5; color: #fff; font-size: 0.72rem; flex: none; }
@media (max-width: 899px) {
  .scrolly { grid-template-columns: 1fr; }
  .scrolly-stage { display: none; }
  .scrolly-step { min-height: auto; opacity: 1; padding-block: 18px; }
  .scrolly-step .step-phone { display: grid !important; place-items: center; margin-top: 18px; }
}
.step-phone { display: none; }
.step-phone .phone { width: min(70%, 260px); }

/* Where a project stands. */
.stands-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 28px; }
.stands-col { padding: 26px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); }
.stands-col h3 { margin: 0 0 14px; font-size: 0.86rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-soft); }
.stands-col.is-done h3 { color: var(--accent); }
.stands-col ul { margin: 0; padding-left: 1.1em; color: var(--text-soft); }
.stands-col li + li { margin-top: 8px; }
.status-line { margin: 0; padding: 20px 22px; border-left: 3px solid var(--accent); background: rgba(243, 239, 231, 0.04); border-radius: 0 16px 16px 0; font-size: 1.1rem; font-weight: 500; max-width: 70ch; }
.fine-print { font-size: 0.92rem; color: var(--text-soft); }
@media (max-width: 719px) { .stands-grid { grid-template-columns: 1fr; } }

.next-project { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: clamp(30px, 6vw, 64px); border-radius: calc(var(--radius) + 8px); background: radial-gradient(100% 140% at 90% 50%, var(--accent-glow), transparent 60%), var(--panel); border: 1px solid var(--line); text-decoration: none; transition: transform 400ms var(--ease-out), border-color 300ms; }
.next-project:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.np-kicker { display: block; font-size: 0.86rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-soft); }
.np-name { display: block; margin-top: 10px; font-family: var(--font-display); font-size: clamp(1.9rem, 4.2vw, 3.4rem); font-weight: 650; letter-spacing: -0.035em; line-height: 1.02; }
.np-arrow { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--button-bg); color: var(--button-fg); font-size: 1.5rem; transition: transform 350ms var(--spring); }
.next-project:hover .np-arrow { transform: translateX(5px); }
.case-end { padding-block: clamp(40px, 8vw, 100px) clamp(60px, 10vw, 120px); }
.case-end .button-row { margin-top: 24px; }

/* ---------- Demos ---------- */
.demo { border-radius: calc(var(--radius) + 4px); background: var(--panel); border: 1px solid var(--line); padding: clamp(18px, 3.6vw, 40px); }
.demo-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.demo-title { font-size: 1.3rem; letter-spacing: -0.015em; }
.tag { display: inline-block; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; color: var(--text-soft); }
.segmented { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(243, 239, 231, 0.05); border: 1px solid var(--line); gap: 2px; }
.segmented button { min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 0; background: transparent; font-weight: 600; font-size: 0.95rem; color: var(--text-soft); cursor: pointer; transition: background-color 250ms var(--ease-out), color 200ms, transform 200ms var(--ease-out); }
.segmented button:active { transform: scale(0.95); }
.segmented button[aria-pressed="true"], .segmented button[aria-selected="true"] { background: var(--button-bg); color: var(--button-fg); }
.demo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.static-steps { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; }
.static-steps summary { cursor: pointer; font-weight: 600; color: var(--text-soft); width: fit-content; border-radius: 6px; }
.static-steps ol, .static-list { margin: 12px 0 0; padding-left: 1.3em; color: var(--text-soft); }
.static-steps li + li, .static-list li + li { margin-top: 6px; }
.no-js-note { display: none; }
html:not(.js) .needs-js { display: none !important; }
html:not(.js) .no-js-note { display: block; }

/* The sample shower. */
.shower { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: clamp(18px, 3vw, 36px); align-items: start; }
.readouts { display: grid; gap: 10px; margin: 0; }
.readout { padding: 14px 16px; border-radius: 16px; background: var(--panel-2); }
.readout dt { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-soft); }
.readout dd { margin: 2px 0 0; font-size: 1.8rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.readout dd small { font-size: 0.52em; font-weight: 600; color: var(--text-soft); margin-left: 4px; letter-spacing: 0; }
.readout.r-volume dd { color: var(--water); }
.readout.r-temp dd { color: var(--warm); }
.chart { width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: rgba(243, 239, 231, 0.08); stroke-width: 1; }
.chart .axis text { font: 500 12px var(--font); fill: var(--text-soft); font-variant-numeric: tabular-nums; }
.chart .axis-title { font: 600 12px var(--font); letter-spacing: 0.04em; }
.chart .vol-fill { fill: var(--water-glow); opacity: 0.45; }
.chart .vol-line { fill: none; stroke: var(--water); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 6px var(--water-glow)); }
.chart .temp-line { fill: none; stroke: var(--warm); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart .cursor line { stroke: var(--text); stroke-width: 1.5; stroke-dasharray: 3 4; opacity: 0.8; }
.chart .cursor .dot-vol { fill: var(--water); stroke: var(--panel); stroke-width: 3; }
.chart .cursor .dot-temp { fill: var(--warm); stroke: var(--panel); stroke-width: 3; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 0.88rem; color: var(--text-soft); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend li::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--swatch); }
.legend .l-vol { --swatch: var(--water); }
.legend .l-temp { --swatch: var(--warm); }
.scrub { margin-top: 18px; }
.scrub label { display: flex; justify-content: space-between; font-size: 0.9rem; font-weight: 600; color: var(--text-soft); margin-bottom: 8px; }
.scrub input[type="range"] { width: 100%; height: 36px; accent-color: var(--water); cursor: pointer; background: transparent; }
.summary { margin: 20px 0 0; padding: 18px 20px; border-radius: 16px; background: rgba(243, 239, 231, 0.04); color: var(--text-soft); font-size: 0.97rem; }
.summary strong { color: var(--text); }
@media (max-width: 899px) { .shower { grid-template-columns: 1fr; } .readouts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .readout dd { font-size: 1.45rem; } }

/* Who sees what: two phone screens, kept light like real screens. */
.roles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 5vw, 64px); align-items: center; }
.js .role-panel.is-entering .screen { animation: settle 560ms var(--spring) both; }
.role-explain h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -0.025em; margin-bottom: 12px; }
.role-explain p { color: var(--text-soft); }
.role-explain ul { margin: 0; padding-left: 1.1em; color: var(--text-soft); }
.role-explain li + li { margin-top: 6px; }
.screen { border-radius: 34px; padding: 10px; background: #000; box-shadow: 0 0 0 1px rgba(243, 239, 231, 0.12), 0 40px 80px -30px rgba(0, 0, 0, 0.8); max-width: 360px; width: 100%; justify-self: center; }
.screen-inner { border-radius: 25px; background: #fbfaf7; color: #0b1d22; padding: 20px 18px 22px; min-height: 430px; }
.s-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.s-title { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.s-sub { font-size: 0.8rem; color: #5a6b70; font-weight: 600; }
.shower-card { border-radius: 18px; padding: 16px; background: #fff; border: 1px solid rgba(8, 40, 48, 0.1); box-shadow: 0 8px 20px -14px rgba(8, 40, 48, 0.4); }
.sc-when { font-size: 0.8rem; font-weight: 600; color: #5a6b70; }
.sc-big { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: #006f79; line-height: 1.1; margin: 2px 0 10px; }
.sc-big small { font-size: 0.4em; color: #5a6b70; margin-left: 4px; font-weight: 600; letter-spacing: 0; }
.sc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.sc-stats div { background: #f2f0ea; border-radius: 10px; padding: 8px; }
.sc-stats dt { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #5a6b70; }
.sc-stats dd { margin: 2px 0 0; font-weight: 700; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.sc-trace { margin-top: 12px; width: 100%; height: 44px; }
.sc-trace path { fill: none; stroke: #d9692f; stroke-width: 2.2; stroke-linecap: round; }
.history-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.history-list li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 12px; background: #f2f0ea; font-size: 0.86rem; font-variant-numeric: tabular-nums; }
.history-list li span:last-child { font-weight: 700; }
.s-foot { margin: 14px 2px 0; font-size: 0.78rem; color: #5a6b70; }
.screen.manager .screen-inner { background: #f4f7f8; }
.report-period { display: inline-flex; gap: 4px; padding: 3px; border-radius: 10px; background: #e4eaec; margin-bottom: 14px; }
.report-period span { padding: 5px 10px; border-radius: 8px; font-size: 0.78rem; font-weight: 700; color: #4b5d62; }
.report-period span.on { background: #fff; color: #082830; box-shadow: 0 1px 2px rgba(8, 40, 48, 0.15); }
.report-total { border-radius: 14px; background: #082830; color: #f7f4ee; padding: 16px; }
.rt-label { font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.75; }
.rt-value { font-size: 2.3rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; margin-top: 2px; }
.rt-value small { font-size: 0.42em; margin-left: 4px; opacity: 0.8; letter-spacing: 0; }
.rt-range { font-size: 0.8rem; opacity: 0.8; margin-top: 2px; }
.report-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 0.86rem; font-variant-numeric: tabular-nums; }
.report-table th { text-align: left; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: #5a6b70; font-weight: 700; padding: 6px 4px; border-bottom: 1px solid rgba(8, 40, 48, 0.14); }
.report-table td { padding: 10px 4px; border-bottom: 1px solid rgba(8, 40, 48, 0.08); }
.report-table td:last-child, .report-table th:last-child { text-align: right; font-weight: 700; }
.report-table .bar { display: block; width: 100%; height: 4px; margin-top: 6px; }
.report-table .bar rect { fill: #12bfcc; }
.absent { margin-top: 12px; display: grid; gap: 6px; }
.absent span { display: flex; align-items: center; gap: 8px; font-size: 0.76rem; color: #5a6b70; }
.absent span::before { content: "—"; color: #9aa9ae; font-weight: 700; }
@media (max-width: 899px) { .roles { grid-template-columns: 1fr; } }

/* The temperature light and the chirps. */
.indicator-demo { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 26px; align-items: center; }
.light-bar { display: grid; place-items: center; height: 210px; border-radius: 28px; background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--light) 26%, transparent), transparent 70%), var(--panel-2); transition: background 300ms; }
.light-bar .unit { width: 96px; height: 124px; border-radius: 26px; background: #d9e1e3; border: 1px solid #8ea0a5; display: grid; place-items: center; position: relative; }
.light-bar .unit::before, .light-bar .unit::after { content: ""; position: absolute; top: 28px; width: 24px; height: 46px; border-radius: 14px; background: #c5d0d3; border: 1px solid #8ea0a5; }
.light-bar .unit::before { left: -18px; }
.light-bar .unit::after { right: -18px; }
.light-bar .led { width: 42px; height: 8px; border-radius: 4px; background: var(--light); box-shadow: 0 0 16px 3px var(--light); transition: background 250ms, box-shadow 250ms; }
.indicator-copy .segmented { margin-bottom: 16px; }
.indicator-word { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 6px; }
.indicator-copy p { color: var(--text-soft); margin: 0; }
.chirps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.chirps li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 16px 18px; border-radius: 18px; background: var(--panel-2); }
.chirps .c-name { display: block; font-weight: 600; }
.chirps .c-what { display: block; color: var(--text-soft); font-size: 0.94rem; }
.chirps .pattern { display: inline-flex; gap: 5px; align-items: center; margin-top: 8px; }
.chirps .pattern i { display: block; height: 8px; border-radius: 4px; background: var(--water); box-shadow: 0 0 10px var(--water-glow); }
.chirps .pattern i.s { width: 8px; }
.chirps .pattern i.l { width: 26px; }
.chirps .pattern i.up { width: 10px; height: 10px; border-radius: 50%; background: var(--care); box-shadow: 0 0 10px var(--care-glow); }
.chirp-play { min-height: 40px; padding: 8px 16px; font-size: 0.9rem; }
.chirps li.is-playing .pattern i { animation: blip 320ms var(--ease-out) both; }
.chirps li.is-playing .pattern i:nth-child(2) { animation-delay: 160ms; }
.chirps li.is-playing .pattern i:nth-child(3) { animation-delay: 320ms; }
@keyframes blip { 50% { transform: scale(1.4); filter: brightness(1.3); } }
@media (max-width: 719px) { .indicator-demo { grid-template-columns: 1fr; } .light-bar { height: 180px; } }

/* Rapid Response's sample request. */
.rr-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 32px); align-items: start; }
.rr-pane-title { margin: 0 0 12px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-soft); }
.rr-requester { border-radius: 22px; padding: 18px; background: rgba(243, 239, 231, 0.03); border: 1px solid var(--line); }
.rr-head { border-radius: 16px; padding: 16px; background: var(--panel-2); border: 1px solid var(--line); transition: background-color 400ms, border-color 400ms; }
.rr-head .rr-place { margin: 0; font-size: 0.85rem; font-weight: 600; color: var(--text-soft); }
.rr-head .rr-title { margin: 4px 0 0; font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; }
.rr-head .rr-count { margin: 6px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--care); }
.rr-head .rr-count:empty { display: none; }
.rr-head .rr-reason { margin: 6px 0 0; font-size: 0.9rem; color: var(--text-soft); }
.rr-requester[data-state="done"] .rr-head { background: rgba(87, 215, 160, 0.12); border-color: rgba(87, 215, 160, 0.4); }
.rr-members { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.rr-note { margin: 12px 2px 0; font-size: 0.92rem; color: var(--text-soft); min-height: 1.5em; }
.rr-done { margin: 12px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--care); color: var(--bg-deep); font-weight: 650; display: flex; gap: 10px; align-items: center; }
.js .rr-done:not([hidden]) { animation: settle 560ms var(--spring) both; }
.rr-alerts { display: grid; gap: 12px; }
.rr-alert { border-radius: 20px 20px 20px 6px; padding: 14px 16px; background: #0b3a31; border: 1px solid rgba(87, 215, 160, 0.22); color: #e6f5ee; transition: opacity 300ms; }
.rr-alert .ra-who { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 0 6px; font-size: 0.82rem; font-weight: 700; color: #9fd9bf; }
.rr-alert .ra-lang { font-weight: 600; opacity: 0.85; }
.rr-alert .ra-msg { margin: 0; font-size: 0.95rem; }
.rr-alert .ra-msg strong { display: block; margin-bottom: 2px; }
.rr-alert .ra-help { margin: 8px 0 0; font-size: 0.8rem; color: #9fd9bf; }
.rr-alert .button { margin-top: 12px; width: 100%; background: #e6f5ee; color: #0b3a31; }
.rr-alert .button[disabled] { opacity: 1; background: transparent; border: 1px dashed rgba(159, 217, 191, 0.5); color: #9fd9bf; }
.rr-alert.is-idle { opacity: 0.45; }
.rr-alert.is-idle .button { visibility: hidden; }
@media (max-width: 819px) { .rr-grid { grid-template-columns: 1fr; } }

/* Three people, one handoff. */
.handoff { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.handoff-step { position: relative; padding: 0 clamp(18px, 3vw, 36px) 0 0; }
.handoff-step + .handoff-step { padding-left: clamp(18px, 3vw, 36px); border-left: 1px solid var(--line); }
.handoff-step .rc-who { margin: 0 0 12px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.handoff-step h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -0.025em; margin-bottom: 14px; }
.handoff-step ul { margin: 0; padding-left: 1.1em; color: var(--text-soft); }
.handoff-step li + li { margin-top: 8px; }
.handoff-step code { font: 600 0.88em var(--font); background: rgba(243, 239, 231, 0.08); padding: 1px 6px; border-radius: 6px; color: var(--text); }
.rr-roster { display: grid; gap: 6px; margin: 18px 0 0; padding: 0; list-style: none; }
.rr-roster li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(243, 239, 231, 0.04); font-size: 0.92rem; }
.rr-roster .duty { font-size: 0.78rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.rr-roster .on { background: rgba(87, 215, 160, 0.15); color: var(--care); }
.rr-roster .off { background: rgba(243, 239, 231, 0.07); color: var(--text-soft); }
.rr-roster .lang { font-size: 0.78rem; font-weight: 600; color: var(--text-soft); }
.rr-roster .head { background: transparent; padding: 0 12px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); }
@media (max-width: 899px) { .handoff { grid-template-columns: 1fr; gap: 36px; } .handoff-step, .handoff-step + .handoff-step { padding: 0; border-left: 0; } }

/* Fugazii's sample check. */
.fz-demo { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(20px, 5vw, 64px); align-items: center; }
.fz-device { width: 100%; max-width: 340px; justify-self: center; border-radius: 44px; padding: 10px; background: #000; box-shadow: 0 0 0 1px rgba(243, 239, 231, 0.12), 0 40px 80px -30px rgba(0, 0, 0, 0.8); }
.fz-screen { position: relative; border-radius: 34px; overflow: hidden; background: #111; color: #f4f4f5; aspect-ratio: 9 / 17; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.fz-post { position: absolute; inset: 0; padding: 22px 18px; display: grid; align-content: end; gap: 10px; background: radial-gradient(120% 70% at 30% 20%, #3b2b55, #141017 70%); }
.fz-post .p-who { margin: 0; font-weight: 700; font-size: 0.95rem; }
.fz-post .p-text { margin: 0; font-size: 1rem; line-height: 1.4; }
.fz-post .p-hint { margin: 0; font-size: 0.8rem; opacity: 0.7; }
.fz-post .p-share { position: absolute; right: 14px; bottom: 120px; display: grid; justify-items: center; gap: 4px; font-size: 0.72rem; font-weight: 600; border: 0; background: transparent; color: inherit; cursor: pointer; padding: 0; border-radius: 12px; }
.fz-post .p-share span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); font-size: 1.2rem; transition: transform 150ms var(--ease-out); }
.fz-post .p-share:active span { transform: scale(0.9); }
.fz-sheet { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 14px 22px; background: #f4f4f5; color: #111827; border-radius: 22px 22px 0 0; transform: translateY(105%); transition: transform 420ms var(--ease-out); }
.fz-sheet .sh-title { margin: 0 0 12px; font-size: 0.8rem; font-weight: 600; color: #4b5563; text-align: center; }
.fz-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.fz-apps span, .fz-apps .fz-app { display: grid; justify-items: center; gap: 6px; font: 600 0.7rem/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #374151; }
.fz-apps i { display: block; width: 46px; height: 46px; border-radius: 12px; background: #d1d5db; }
.fz-apps .fz-app { border: 0; background: transparent; padding: 0; cursor: pointer; color: #111827; border-radius: 12px; }
.fz-apps .fz-app i { background: #4f46e5; display: grid; place-items: center; color: #fff; font-style: normal; font-weight: 800; font-size: 1.4rem; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #4f46e5; transition: transform 150ms var(--ease-out); }
.fz-screen[data-step="sheet"] .fz-app i { animation: nudge 900ms var(--spring) 200ms both; }
@keyframes nudge { 40% { transform: scale(1.14); } }
.fz-checking, .fz-result { position: absolute; inset: 0; background: #fff; color: #111827; padding: 26px 20px; display: grid; align-content: start; gap: 12px; opacity: 0; visibility: hidden; transition: opacity 240ms var(--ease-out), visibility 0s linear 240ms; }
.fz-checking .ck-title, .fz-result .rs-label { margin: 0; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #4b5563; }
.fz-checking ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fz-checking li { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 0.95rem; color: #9ca3af; transition: color 200ms; }
.fz-checking li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #d1d5db; flex: none; transition: background-color 200ms, border-color 200ms; }
.fz-checking li.done { color: #111827; }
.fz-checking li.done::before { background: #4f46e5; border-color: #4f46e5; box-shadow: inset 0 0 0 4px #fff; }
.fz-result .rs-stamp { justify-self: start; margin-top: 8px; font-size: 2rem; color: var(--verdict, #dc2626); background: #fff; box-shadow: none; }
.fz-result .rs-summary { margin: 6px 0 0; font-size: 1.02rem; line-height: 1.45; }
.fz-result .rs-sources { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.fz-result .rs-sources li { font-size: 0.8rem; padding: 8px 10px; border-radius: 10px; background: #f4f4f5; color: #374151; }
.fz-result .rs-fine { margin: 6px 0 0; font-size: 0.72rem; color: #6b7280; }
.fz-screen[data-step="sheet"] .fz-sheet { transform: none; }
.fz-screen[data-step="checking"] .fz-checking, .fz-screen[data-step="result"] .fz-result { opacity: 1; visibility: visible; transition-delay: 0s; }
.fz-screen[data-step="result"] .rs-stamp { animation: stamp 580ms var(--spring) both; }
.fz-controls h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -0.025em; margin-bottom: 12px; }
.fz-controls p { color: var(--text-soft); }
.fz-controls .button-row { margin-top: 20px; }
.verdict-key { display: grid; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.verdict-key li { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 12px; align-items: baseline; font-size: 0.95rem; color: var(--text-soft); }
.verdict-key b { font-size: 0.82rem; letter-spacing: 0.08em; font-weight: 800; color: var(--verdict); }
.v-true { --verdict: #4ade80; }
.v-false { --verdict: #f87171; }
.v-mislead { --verdict: #fbbf24; }
.v-unverified { --verdict: #fbbf24; }
.v-none { --verdict: #9ca3af; }
@media (max-width: 899px) { .fz-demo { grid-template-columns: 1fr; } .verdict-key li { grid-template-columns: 1fr; gap: 2px; } }

/* The five results, side by side. */
.screens-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.screens-strip figure { margin: 0; display: grid; gap: 12px; justify-items: center; }
.screens-strip .phone { width: 100%; border-radius: 28px; padding: 6px; }
.screens-strip .phone img { border-radius: 23px; }
.screens-strip figcaption { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; color: var(--verdict); }
@media (max-width: 899px) { .screens-strip { grid-template-columns: repeat(5, 64%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; } .screens-strip figure { scroll-snap-align: center; } }

/* ---------- About, Team and Contact ---------- */
.page-hero { position: relative; min-height: 78svh; display: grid; align-content: end; padding: calc(var(--header-h) + 80px) 0 clamp(60px, 10vh, 110px); overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 85% 10%, rgba(79, 227, 234, 0.14), transparent 70%), radial-gradient(50% 60% at 10% 90%, rgba(87, 215, 160, 0.08), transparent 70%); }
.page-hero h1 { margin-top: 14px; font-size: clamp(2.8rem, 7.4vw, 6.6rem); font-weight: 650; letter-spacing: -0.045em; line-height: 0.98; max-width: 14ch; text-wrap: balance; }
.page-hero .lede { margin: 26px 0 0; font-size: clamp(1.1rem, 1.8vw, 1.45rem); color: var(--text-soft); max-width: 52ch; }
.page-hero .lede strong { color: var(--text); font-weight: 600; }
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; }
.ways li { padding: 0 clamp(16px, 3vw, 36px) 0 0; }
.ways li + li { padding-left: clamp(16px, 3vw, 36px); border-left: 1px solid var(--line); }
.ways .w-num { font-size: 0.9rem; font-weight: 700; color: var(--water); font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }
.ways h3 { margin: 14px 0 10px; font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -0.025em; }
.ways p { margin: 0; color: var(--text-soft); }
@media (max-width: 819px) { .ways { grid-template-columns: 1fr; gap: 32px; } .ways li, .ways li + li { padding: 0; border-left: 0; } }
.decision { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 90px); align-items: center; padding-block: clamp(40px, 6vw, 80px); text-decoration: none; }
.decision + .decision { border-top: 1px solid var(--line); }
.decision:nth-child(even) .decision-visual { order: 2; }
.decision .kicker { color: var(--accent); }
.decision h3 { margin-top: 14px; font-size: clamp(1.8rem, 3.6vw, 3rem); font-weight: 650; letter-spacing: -0.035em; line-height: 1.05; }
.decision p { margin: 18px 0 0; color: var(--text-soft); font-size: 1.1rem; max-width: 46ch; }
.decision .link-arrow { margin-top: 22px; }
.decision-visual { border-radius: calc(var(--radius) + 6px); transition: translate 500ms var(--ease-out), transform 800ms var(--ease-out); }
.decision:hover .decision-visual { translate: 0 -4px; }
@media (max-width: 819px) { .decision { grid-template-columns: 1fr; } .decision:nth-child(even) .decision-visual { order: 0; } }

.portrait { position: relative; overflow: hidden; background: var(--panel-2); object-fit: cover; object-position: 50% 22%; }
.portrait-standin { display: grid; place-items: center; background: radial-gradient(80% 80% at 30% 20%, rgba(79, 227, 234, 0.12), transparent 70%), var(--panel-2); color: var(--text-faint); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.9rem; text-align: center; }
.profile { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 96px); align-items: center; min-height: 100svh; padding: calc(var(--header-h) + 60px) 0 80px; }
.profile-photo .portrait { width: 100%; aspect-ratio: 4 / 5; border-radius: calc(var(--radius) + 12px); }
.profile-name { margin-top: 14px; font-size: clamp(2.8rem, 6.6vw, 5.8rem); font-weight: 650; letter-spacing: -0.045em; line-height: 0.98; }
.profile-title { margin: 16px 0 0; font-size: 1.25rem; font-weight: 500; color: var(--water); }
.profile-bio { margin-top: 28px; font-size: 1.12rem; max-width: 56ch; }
.profile-bio p { color: var(--text-soft); }
.profile .button-row { margin-top: 30px; }
@media (max-width: 819px) { .profile { grid-template-columns: 1fr; gap: 26px; min-height: auto; } .profile-photo { max-width: 440px; } .profile-photo .portrait { aspect-ratio: 1 / 1; } }
.work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.work li { padding: clamp(22px, 3vw, 34px); display: grid; gap: 12px; align-content: start; border-radius: 24px; background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 60%), var(--panel); border: 1px solid var(--line); }
.work .kicker { color: var(--accent); }
.work h3 { font-size: clamp(1.35rem, 2.3vw, 1.8rem); letter-spacing: -0.025em; }
.work p { margin: 0; color: var(--text-soft); }
@media (max-width: 719px) { .work { grid-template-columns: 1fr; } }

.contact-page { min-height: 100svh; display: grid; align-content: center; padding: calc(var(--header-h) + 60px) 0 80px; position: relative; isolation: isolate; overflow: hidden; }
.contact-page::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 80% 30%, rgba(79, 227, 234, 0.14), transparent 70%), radial-gradient(40% 50% at 10% 85%, rgba(150, 156, 255, 0.1), transparent 70%); }
.contact-page h1 { margin-top: 14px; font-size: clamp(3rem, 8vw, 7rem); font-weight: 650; letter-spacing: -0.05em; line-height: 0.96; }
.contact-page .lede { margin: 24px 0 0; font-size: clamp(1.15rem, 1.9vw, 1.5rem); color: var(--text-soft); max-width: 44ch; }
.email-xl { display: inline-block; margin: clamp(36px, 6vw, 64px) 0 26px; font-family: var(--font-display); font-size: clamp(1.6rem, 4.6vw, 3.6rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; text-decoration: none; word-break: break-word; background: linear-gradient(90deg, var(--text), var(--text)) 0 100% / 0% 2px no-repeat; transition: background-size 500ms var(--ease-out); user-select: all; -webkit-user-select: all; }
.email-xl:hover { background-size: 100% 2px; }
.subject-note { margin: 16px 0 0; color: var(--text-soft); }
.ec-note { margin: 18px 0 0; font-size: 0.95rem; color: var(--text-faint); }
.legal-line { margin-top: 40px; color: var(--text-faint); font-size: 0.95rem; }
.legal-line a { color: var(--text-soft); }

.not-found { min-height: 90svh; display: grid; align-content: center; padding: calc(var(--header-h) + 40px) 0 60px; }
.not-found h1 { margin-top: 14px; font-size: clamp(2.8rem, 7vw, 5.6rem); font-weight: 650; letter-spacing: -0.045em; }
.not-found p { margin-top: 20px; color: var(--text-soft); font-size: 1.2rem; }
.not-found .button-row { margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 64px 44px; font-size: 0.95rem; background: var(--bg-deep); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { width: 46px; height: auto; margin-top: 4px; }
.footer-brand p { margin: 0; color: var(--text-soft); }
.footer-brand strong { color: var(--text); }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.footer-heading { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin: 0 0 12px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-nav a, .footer-contact a { text-decoration: none; color: var(--text-soft); transition: color 160ms; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--text); }
.footer-contact p { margin: 0; line-height: 1.95; word-break: break-word; }
.footer-legal { grid-column: 1 / -1; margin: 16px 0 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--text-faint); font-size: 0.88rem; }
@media (max-width: 819px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- Reveals ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(36px); }
.js [data-reveal="rise"] { transform: translateY(48px) scale(0.97); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity 900ms var(--ease-out) var(--d, 0s), transform 1100ms var(--ease-out) var(--d, 0s); }
.js:not(.reveal-ready) [data-reveal]:not(.is-in) { animation: reveal-failsafe 0s 3.5s forwards; }
@keyframes reveal-failsafe { to { opacity: 1; transform: none; clip-path: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js .hero-content > *, .js .fz-visual .stamp { opacity: 1 !important; transform: none !important; }
  .install .stream { animation: none !important; stroke-dasharray: none; }
  .scrolly-step { opacity: 1; }
}

/* The drawings inside the Projects bar's preview. */
.tv-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tv-fill { fill: var(--accent-glow); opacity: 0.5; }
.tv-line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 0 6px var(--accent-glow)); }
.tv-acks { display: grid; gap: 8px; width: 78%; }
.tv-ack { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; background: rgba(87, 215, 160, 0.12); border: 1px solid rgba(87, 215, 160, 0.35); font-size: 0.82rem; font-weight: 600; }
.tv-ack i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--care); color: var(--bg-deep); font-style: normal; font-size: 0.7rem; }

/* The figure in a chapter's corner, and Fugazii's phone rising from the bottom. */
.stage-figure { position: absolute; right: 6%; top: 7%; text-align: right; }
.stage-figure .fig { margin: 0; font-family: var(--font-display); font-weight: 650; font-size: clamp(2.6rem, 5vw, 4.6rem); letter-spacing: -0.05em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.stage-figure .fig small { font-size: 0.36em; margin-left: 5px; color: var(--text-soft); letter-spacing: 0; font-weight: 600; }
.stage-figure .fig-caption { margin: 10px 0 0; font-size: 0.85rem; font-weight: 500; color: var(--text-soft); }
.stagebox.fz-visual { height: clamp(440px, 46vw, 600px); min-height: 0; place-items: start center; padding-top: 7%; }
.stagebox.panel-stack { padding: clamp(24px, 4.5vw, 52px); }
.ack-replay { justify-self: start; min-height: 38px; padding: 8px 16px; font-size: 0.88rem; margin-top: 6px; }
.chapter-company .chapter-inner, .chapter-contact .chapter-inner { grid-template-columns: 1fr; }
.chapter-company .chapter-copy, .chapter-contact .chapter-copy { max-width: 860px; }
.chapter-company::before { background: radial-gradient(50% 60% at 15% 70%, rgba(79, 227, 234, 0.14), transparent 70%), radial-gradient(45% 55% at 85% 25%, rgba(150, 156, 255, 0.1), transparent 70%); opacity: 1; }
.chapter-contact::before { background: radial-gradient(55% 60% at 50% 100%, rgba(79, 227, 234, 0.16), transparent 70%); opacity: 1; }
.chapter-contact { min-height: 86svh; text-align: center; }
.chapter-contact .chapter-copy { margin-inline: auto; display: grid; justify-items: center; }
.chapter-contact .chapter-line { margin-inline: auto; }
.chapter-contact .email-xl { margin-block: 30px 6px; }

/* Small additions for build 2's pages. */
.js .hero.is-ready .hero-content > *:nth-child(5) { transition-delay: 560ms; }
.js .hero.is-ready .hero-content > *:nth-child(6) { transition-delay: 640ms; }
.case-hero .button-row { align-items: center; gap: 18px 22px; }
.hero .chapter-title { margin-top: 14px; max-width: 16ch; }
.hero .kicker + .chapter-title { margin-top: 14px; }
.step-phone .checking-screen { height: 100%; border-radius: 33px; }
.decisions { display: grid; }
.decision { color: inherit; }
.decision:hover h3 { color: var(--accent); }
.decision h3 { transition: color 250ms; }
.scene-gap { height: 1px; }

/* ---------- Build 3: the water, the closing screen, and motion everywhere ---------- */
/* Without WebGL, an opening keeps a still, dark glow instead of the water. */
.flow-still { background: radial-gradient(80% 60% at 50% 40%, #0b2c35, var(--bg) 72%); }
.flow-still .flow-canvas { display: none; }
/* The closing screen sits on water too. */
.chapter-contact::before { background: radial-gradient(70% 75% at 50% 50%, transparent 0%, rgba(4, 22, 27, 0.5) 62%, var(--bg) 100%), linear-gradient(to bottom, var(--bg), transparent 22%, transparent 80%, var(--bg)); opacity: 1; }
.chapter-contact { min-height: 100svh; }
/* A project page's jump bar fills as you read. */
.jump-bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); transform-origin: 0 50%; transform: scaleX(var(--read, 0)); }

/* Motion (motion.js adds .motion; none of this applies to people who ask for less motion). */
@property --gx { syntax: "<percentage>"; inherits: true; initial-value: 78%; }
@property --gy { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
/* Openings: the words lift away and the water dims as you scroll on. */
.motion .hero-content { translate: 0 calc(max(0, var(--p, 0.5) - 0.5) * -260px); opacity: calc(1 - max(0, var(--p, 0.5) - 0.5) * 2.4); }
.motion .hero .flow-canvas { opacity: calc(1 - max(0, var(--p, 0.5) - 0.5) * 1.2); scale: calc(1 + max(0, var(--p, 0.5) - 0.5) * 0.12); }
/* Chapters: the picture drifts a little slower than the words, and the glow peaks mid-screen. */
.motion .chapter-visual { translate: 0 calc((0.5 - var(--p, 0.5)) * 120px); }
.motion .chapter-copy { translate: 0 calc((0.5 - var(--p, 0.5)) * 40px); }
.motion .chapter.theme-water::before, .motion .chapter.theme-rapid::before, .motion .chapter.theme-fugazii::before { opacity: calc(0.18 + 0.7 * var(--c, 1)); }
.motion .fz-visual .phone { rotate: calc((var(--p, 0.5) - 0.5) * -9deg); }
.motion .story-head { translate: 0 calc((0.5 - var(--p, 0.5)) * 50px); }
.motion .case-end .next-project { scale: calc(0.95 + 0.05 * min(1, var(--p, 1) * 2.2)); }
@media (max-width: 899px) {
  .motion .chapter-visual { translate: 0 calc((0.5 - var(--p, 0.5)) * 60px); }
  .motion .chapter-copy, .motion .story-head { translate: none; }
}
/* With a mouse, each chapter's glow drifts after the pointer. */
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .motion .chapter.theme-water, .motion .chapter.theme-rapid, .motion .chapter.theme-fugazii { transition: --gx 1.6s var(--ease-out), --gy 1.6s var(--ease-out); }
  .motion .chapter.theme-water::before, .motion .chapter.theme-rapid::before, .motion .chapter.theme-fugazii::before { background: radial-gradient(60% 60% at var(--gx) var(--gy), var(--accent-glow), transparent 70%); }
}
/* Big headings rise into place word by word. */
.motion .rw { display: inline-block; vertical-align: top; overflow: clip; padding: 0.1em 0.04em 0.16em; margin: -0.1em -0.04em -0.16em; }
.motion .rw > span { display: inline-block; translate: 0 115%; transition: translate 1050ms var(--ease-out); transition-delay: calc(var(--i, 0) * 55ms + 100ms); }
.motion .is-in .rw > span, .motion .hero.is-ready .rw > span, .motion .rises.is-in .rw > span { translate: 0 0; }
.motion:not(.reveal-ready) .rw > span { animation: rise-failsafe 0s 3.5s forwards; }
@keyframes rise-failsafe { to { translate: 0 0; } }
/* The large statements light up word by word as you read down them. */
.motion .lw > span { opacity: 0.2; transition: opacity 360ms var(--ease-out); }
.motion .lw.is-lit > span { opacity: 1; }
/* Small moments replay each time you come back: the FALSE stamp, for one. */
.motion .chapter .fz-visual .stamp { animation: none; opacity: 0; }
.motion .chapter.is-live .fz-visual .stamp { animation: stamp 620ms var(--spring) 300ms both; }
/* Panels catch a soft light where the pointer is, with a brighter edge. */
.spot { position: relative; }
.spot::before, .spot::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 450ms var(--ease-out); }
.spot::after { background: radial-gradient(520px circle at var(--sx, 50%) var(--sy, 50%), color-mix(in srgb, var(--accent) 8%, transparent), transparent 62%); }
.spot::before { padding: 1px; background: radial-gradient(280px circle at var(--sx, 50%) var(--sy, 50%), color-mix(in srgb, var(--accent) 80%, transparent), transparent 70%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.spot.is-lit::before, .spot.is-lit::after { opacity: 1; }
/* Pictures tilt toward the pointer; the main buttons lean toward it. */
.motion .tilt { transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 800ms var(--ease-out); }
.motion .decision-visual.tilt { transition: translate 500ms var(--ease-out), transform 800ms var(--ease-out); }
.motion .magnet { translate: var(--mx, 0px) var(--my, 0px); }
.motion .button.magnet { transition: translate 500ms var(--spring), transform 200ms var(--ease-out), background-color 200ms, border-color 200ms, color 200ms, box-shadow 300ms; }
.motion .np-arrow.magnet { transition: translate 500ms var(--spring), transform 350ms var(--spring); }
/* On a phone, the chapter's figure sits under the drawing instead of over it. */
@media (max-width: 719px) {
  .stagebox .stage-figure { position: relative; right: auto; top: auto; text-align: left; padding: 4px 22px 22px; }
}
