/* Eight Count Creative: blue, black and white. Frosted liquid glass over a field of light.
   4px spacing grid, one blue accent, mono labels for the "screen" feel. */

:root {
  --bg: #03050b;
  --ink: #f4f7ff;
  --dim: rgba(232, 240, 255, 0.7);
  --faint: rgba(232, 240, 255, 0.46);
  --blue: #1d5fe0;
  --blue-hi: #6cb2ff;
  --ice: #d6e9ff;
  --hair: rgba(255, 255, 255, 0.1);
  --r-lg: 28px;
  --r-md: 20px;
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 1.0625rem; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 4px; border-radius: 8px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; color: #000; padding: 8px 16px; border-radius: 12px; transition: top 0.2s; }
.skip:focus { top: 12px; }
.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }

/* ---------- backdrop ---------- */
.bg { position: fixed; inset: 0; z-index: -3; background: radial-gradient(ellipse 80% 60% at 15% -10%, rgba(29, 95, 224, 0.2), transparent 70%), linear-gradient(180deg, #03050b, #050813 60%, #03050b); }
.wave { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; }
.veil { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(3, 5, 11, 0.72) 0%, rgba(3, 5, 11, 0.1) 38%, rgba(3, 5, 11, 0.1) 62%, rgba(3, 5, 11, 0.6) 100%); }

/* ---------- screen frame ---------- */
.frame { position: fixed; inset: 10px; z-index: 45; pointer-events: none; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 28px; }
.corner { position: absolute; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.tl { top: 28px; left: 32px; } .tr { top: 28px; right: 32px; }
.bl { bottom: 24px; left: 32px; } .br { bottom: 24px; right: 32px; }

.beats { position: fixed; right: 28px; top: 50%; transform: translateY(-50%); z-index: 40; display: grid; gap: 8px; pointer-events: none; }
.beat { display: block; width: 16px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.16); transition: background-color 0.3s, width 0.3s var(--ease); }
.beat.on { background: rgba(255, 255, 255, 0.85); }
.beat.now { width: 24px; background: var(--blue-hi); }

/* ---------- glass lens cursor ---------- */
.lens {
  position: fixed; left: 0; top: 0; z-index: 60; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.03);
  -webkit-backdrop-filter: blur(1px) brightness(1.3) saturate(1.6); backdrop-filter: blur(1px) brightness(1.3) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -10px 18px rgba(108, 178, 255, 0.12), 0 10px 28px rgba(0, 0, 0, 0.4);
  opacity: 0; will-change: transform;
  transition: opacity 0.25s, width 0.3s var(--ease), height 0.3s var(--ease), margin 0.3s var(--ease);
}
.lens.on { opacity: 1; }
.lens.big { width: 104px; height: 104px; margin: -52px 0 0 -52px; }
@media (hover: none), (pointer: coarse) { .lens { display: none; } }

/* ---------- liquid glass ---------- */
.glass {
  position: relative; isolation: isolate; border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.035) 50%, rgba(255, 255, 255, 0.05) 100%);
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--hair);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), inset 0 -1px 0 rgba(255, 255, 255, 0.04), 0 20px 48px -20px rgba(0, 0, 0, 0.8);
}
.glass::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: radial-gradient(360px circle at var(--mx, 30%) var(--my, 0%), rgba(255, 255, 255, 0.08), transparent 62%); opacity: 0; transition: opacity 0.3s var(--ease); }
.spot:hover::before { opacity: 1; }
.glass::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0) 72%, rgba(255, 255, 255, 0.16));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }

/* ---------- navigation pill ---------- */
.topbar { position: fixed; inset: max(18px, env(safe-area-inset-top)) 0 auto 0; z-index: 50; display: flex; justify-content: center; padding-inline: 8px; pointer-events: none; }
.pill { pointer-events: auto; position: relative; display: flex; gap: 4px; padding: 4px; border-radius: 999px; user-select: none; -webkit-user-select: none; touch-action: pan-y;
  background: rgba(16, 18, 26, 0.55); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--hair); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 16px 40px rgba(0, 0, 0, 0.6); }
.pill.dragging { cursor: grabbing; }
.pill-link { position: relative; z-index: 1; padding: 10px 16px; border-radius: 999px; color: rgba(255, 255, 255, 0.7); text-decoration: none; font-weight: 500; font-size: 0.9375rem; transition: color 0.2s, transform 0.18s var(--ease); -webkit-tap-highlight-color: transparent; }
.pill-link:hover, .pill-link[aria-current="true"], .pill-link.hot { color: #fff; }
.pill:hover .pill-link[aria-current="true"]:not(.hot) { color: rgba(255, 255, 255, 0.7); }
.pill-link:active { transform: scale(0.94); }
.pill-indicator { position: absolute; left: 0; top: 4px; bottom: 4px; width: 0; z-index: 0; border-radius: 999px; will-change: transform, width; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.12)); border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -8px 12px rgba(255, 255, 255, 0.04), 0 4px 12px rgba(0, 0, 0, 0.35); }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; font-weight: 600; }
h1 { font-size: clamp(2.75rem, 6.6vw, 5.25rem); font-weight: 300; line-height: 1.02; letter-spacing: -0.04em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 300; line-height: 1.06; letter-spacing: -0.035em; max-width: 20ch; }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.25; }
.accent { color: var(--blue-hi); font-weight: 400; }
.mono { display: block; margin: 0 0 16px; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-hi); }
.lead { color: var(--dim); font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); max-width: 54ch; margin: 24px 0 0; }
.sub { margin: 48px 0 16px; font-size: 0.8125rem; font-family: var(--mono); font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }

/* ---------- layout ---------- */
section { padding-block: clamp(88px, 11vw, 152px); }
.hero { min-height: 100svh; display: flex; align-items: center; padding-top: 120px; padding-bottom: 72px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 48px 0 0; }
.stats div { padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, 0.18); }
.stats dt { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 200; line-height: 1; letter-spacing: -0.04em; color: #fff; }
.stats dd { margin: 8px 0 0; font-size: 0.875rem; line-height: 1.4; color: var(--faint); }

/* viewfinder */
.hero-art { display: grid; place-items: center; }
.viewfinder { width: min(560px, 100%); padding: 56px 28px 28px; border-radius: var(--r-lg); perspective: 1200px; }
.vf { position: absolute; width: 20px; height: 20px; border: 0 solid rgba(255, 255, 255, 0.75); }
.c1 { top: 14px; left: 14px; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 8px; }
.c2 { top: 14px; right: 14px; border-top-width: 2px; border-right-width: 2px; border-top-right-radius: 8px; }
.c3 { bottom: 14px; left: 14px; border-bottom-width: 2px; border-left-width: 2px; border-bottom-left-radius: 8px; }
.c4 { bottom: 14px; right: 14px; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 8px; }
.vf-tag { position: absolute; top: 20px; left: 48px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); }
.vf-tag b { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-hi); }
.vf-tag.right { left: auto; right: 48px; }

/* 3D stage */
.stage { position: relative; width: 100%; aspect-ratio: 1 / 1.22; transform-style: preserve-3d; will-change: transform; }
.stage .logo { position: absolute; left: 6%; top: 0; width: 88%; height: auto;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-composite: intersect; }
.device { position: absolute; overflow: hidden; background: linear-gradient(160deg, rgba(22, 28, 48, 0.94), rgba(8, 10, 20, 0.96)); border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 36px 60px -24px rgba(0, 0, 0, 0.95); }
.browser { left: 0; bottom: 0; width: 62%; aspect-ratio: 16 / 10; border-radius: 14px; transform: translateZ(70px); }
.browser .bar { display: flex; align-items: center; gap: 4px; height: 8%; min-height: 18px; padding: 0 8px; border-bottom: 1px solid var(--hair); }
.browser .bar i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.28); }
.browser .bar span { margin-left: 8px; font-family: var(--mono); font-size: 0.5625rem; color: var(--faint); }
.screen { padding: 10px 12px; display: grid; gap: 8px; }
.m-nav { display: flex; align-items: center; gap: 6px; }
.m-nav b { margin-right: auto; font-size: 0.5625rem; font-weight: 600; color: #fff; }
.m-nav span { width: 14px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.3); }
.m-hero { display: grid; gap: 4px; padding-top: 4px; }
.m-title { height: 8px; width: 74%; border-radius: 4px; background: rgba(255, 255, 255, 0.88); }
.m-title.short { width: 52%; }
.m-line { height: 4px; width: 86%; border-radius: 3px; background: rgba(255, 255, 255, 0.26); }
.m-line.short { width: 60%; }
.m-btn { margin-top: 4px; width: 38px; height: 12px; border-radius: 999px; background: var(--blue); }
.m-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.m-cards i { height: 26px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--hair); }
.m-cards i.hot { background: linear-gradient(180deg, rgba(108, 178, 255, 0.4), rgba(29, 95, 224, 0.18)); }
.phone { right: 0; bottom: 0; width: 20%; aspect-ratio: 9 / 18; border-radius: 20px; padding: 10px 8px; display: grid; align-content: start; gap: 6px; transform: translateZ(120px); }
.phone .notch { justify-self: center; width: 30%; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, 0.25); }
.phone .p-img { height: 38%; border-radius: 10px; background: linear-gradient(170deg, rgba(108, 178, 255, 0.5), rgba(29, 95, 224, 0.15) 60%, rgba(255, 255, 255, 0.05)); }
.phone .m-title { width: 80%; }
.float { position: absolute; padding: 8px 16px; border-radius: 999px; font-size: 0.8125rem; font-weight: 500; color: #fff; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 12px 28px -10px rgba(0, 0, 0, 0.7); }
.f1 { top: 8%; left: -2%; transform: translateZ(110px); }
.f2 { top: 30%; right: -4%; transform: translateZ(150px); }
.f3 { top: 50%; left: -4%; transform: translateZ(90px); }

/* services: spec sheet */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.split-head { position: sticky; top: 120px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.chips li { padding: 8px 16px; border-radius: 999px; font-size: 0.9375rem; color: var(--ice); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--hair); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16); }
.rows { padding: 8px; display: grid; }
.row-hi { position: absolute; left: 8px; right: 8px; top: 0; height: 0; z-index: 0; border-radius: 20px; opacity: 0; pointer-events: none; will-change: transform, height, opacity;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05)); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3); transition: opacity 0.25s; }
.row-hi.on { opacity: 1; }
.row { position: relative; z-index: 1; display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 28px 24px; }
.row + .row::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 1px; background: rgba(255, 255, 255, 0.08); }
.row .mono { margin: 4px 0 0; }
.row p { margin: 8px 0 0; color: var(--dim); }

.steps { list-style: none; padding: 0; margin: 80px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { padding: 24px 28px; border-radius: var(--r-md); display: grid; gap: 8px; align-content: start; }
.steps .mono { margin: 0; }
.steps b { font-size: 1.125rem; font-weight: 600; }
.steps span:not(.mono) { color: var(--dim); }

/* cards, work, about */
.grid { display: grid; gap: 20px; margin-top: 56px; }
.grid-work { grid-template-columns: repeat(3, 1fr); align-items: start; }
.grid-work .card:nth-child(2) { margin-top: 48px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { padding: clamp(24px, 3vw, 32px); }
.card p { color: var(--dim); margin: 12px 0 0; }
.tag { display: inline-block; margin-bottom: 16px; padding: 4px 12px; border-radius: 999px; font-family: var(--mono); font-size: 0.75rem; color: var(--ice); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--hair); }
.big-name { font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 200; letter-spacing: -0.05em; line-height: 1; margin: 8px 0 12px; }

.thumb { position: relative; overflow: hidden; aspect-ratio: 16 / 10; margin: 0 0 20px; border-radius: 12px; border: 1px solid var(--hair); background: rgba(0, 0, 0, 0.4); }
.thumb::before { content: ""; position: absolute; left: 12px; top: 8px; width: 30px; height: 6px; background: radial-gradient(circle at 3px 3px, rgba(255, 255, 255, 0.3) 2.5px, transparent 3px) 0 0 / 10px 6px repeat-x; }
.thumb i { position: absolute; left: 12px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.3); }
.thumb i:nth-of-type(1) { top: 34%; width: 44%; background: rgba(255, 255, 255, 0.8); height: 8px; }
.thumb i:nth-of-type(2) { top: 52%; width: 32%; }
.thumb b { position: absolute; right: 12px; top: 28px; bottom: 12px; width: 34%; }
.t-dance b { border-radius: 999px; background: linear-gradient(180deg, rgba(108, 178, 255, 0.6), rgba(29, 95, 224, 0.2)); }
.t-martial b { border-radius: 6px; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0 4px, transparent 4px 10px); }
.t-gym b { border-radius: 6px; background: radial-gradient(circle, rgba(108, 178, 255, 0.7) 2px, transparent 2.5px) 0 0 / 12px 12px; }
.tilt.reveal.in { transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: opacity 0.5s var(--ease), transform 0.35s var(--ease); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 28px; border-radius: 999px; font: inherit; font-weight: 500; font-size: 1rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; color: #fff; -webkit-tap-highlight-color: transparent; transition: transform 0.2s var(--ease), background-color 0.2s; }
.btn:active { transform: scale(0.97); transition-duration: 0.1s; }
.btn-primary { background: var(--blue); border-color: rgba(255, 255, 255, 0.22); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-primary:hover { background: #2569f0; }
.btn-glass { background: rgba(255, 255, 255, 0.07); border-color: var(--hair); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.13); }
.btn[disabled] { opacity: 0.6; pointer-events: none; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 16px; }
.contact-list li { display: grid; gap: 4px; }
.contact-list span { color: var(--faint); font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.contact-list a, .contact-list b { justify-self: start; font-size: 1.0625rem; font-weight: 500; text-decoration: none; color: var(--ice); }
.contact-list a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.form { padding: clamp(24px, 3vw, 32px); display: grid; gap: 20px; }
.form label { display: grid; gap: 8px; font-size: 0.875rem; font-weight: 500; color: var(--ice); }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-weight: 400; font-size: 1rem; color: var(--ink); background: rgba(0, 0, 0, 0.35); border: 1px solid var(--hair); border-radius: 12px; padding: 12px 16px; transition: border-color 0.2s, background-color 0.2s; }
.form textarea { resize: vertical; min-height: 120px; }
.form select option { background: #0b0f1a; color: #fff; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue-hi); background: rgba(0, 0, 0, 0.5); }
.ts:empty { display: none; }
.note { margin: 0; font-size: 0.8125rem; color: var(--faint); }
.note a { color: var(--ice); }

/* privacy page */
.doc-page .pill-link:hover { background: rgba(255, 255, 255, 0.1); }
.doc-hero { padding: 144px 0 8px; }
.doc-hero .lead { max-width: 52ch; }
.doc-hero .meta { margin: 20px 0 0; color: var(--faint); font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.glance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.glance article { padding: 24px 28px; border-radius: var(--r-md); }
.glance .mono { margin: 0 0 8px; }
.glance p { margin: 0; color: var(--ice); font-size: 1.0625rem; line-height: 1.4; }
.doc-body { display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 5vw, 72px); align-items: start; padding-top: 72px; padding-bottom: 96px; }
.toc { position: sticky; top: 112px; display: grid; gap: 4px; }
.toc a { display: flex; gap: 12px; padding: 8px 12px; border-radius: 12px; text-decoration: none; color: var(--dim); font-size: 0.9375rem; transition: background-color 0.2s, color 0.2s; }
.toc a span { font-family: var(--mono); font-size: 0.75rem; color: var(--blue-hi); padding-top: 2px; }
.toc a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.doc-secs { display: grid; gap: 20px; }
.doc-sec { padding: clamp(24px, 3vw, 32px); scroll-margin-top: 104px; }
.doc-sec .mono { margin: 0 0 8px; }
.doc-sec h2 { font-size: clamp(1.5rem, 3vw, 2rem); max-width: none; margin: 0 0 12px; }
.doc-sec p, .doc-sec li { color: var(--dim); }
.doc-sec p { margin: 0 0 12px; }
.doc-sec p:last-child { margin-bottom: 0; }
.doc-sec ul { margin: 0 0 12px; padding-left: 20px; }
.doc-sec a { color: var(--ice); }
.doc-foot { padding: 32px 0 48px; color: var(--faint); font-size: 0.875rem; border-top: 1px solid rgba(255, 255, 255, 0.08); background: linear-gradient(180deg, rgba(3, 5, 11, 0.55), rgba(3, 5, 11, 0.8)); }
.doc-foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.doc-foot a { text-decoration: none; }
.doc-foot a:hover { color: #fff; }

/* tap ripple (touch screens) */
.ripple { position: fixed; z-index: 60; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 0 24px rgba(108, 178, 255, 0.35);
  animation: ripple 0.65s var(--ease) forwards; }
@keyframes ripple { from { transform: scale(0.25); opacity: 0.9; } to { transform: scale(1.7); opacity: 0; } }

/* lighter glass when the device struggles (set by the speed guard) */
.lite .glass, .lite .pill, .lite .btn-glass, .lite .float { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lite .veil { background: linear-gradient(180deg, rgba(3, 5, 11, 0.75), rgba(3, 5, 11, 0.45)); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 0; min-height: 1.5em; font-size: 0.9375rem; color: var(--dim); }
.status.ok { color: #8fd0ff; }
.status.err { color: #ffb4b4; }

/* footer */
.foot { padding: 56px 0 56px; color: var(--dim); font-size: 0.9375rem; border-top: 1px solid rgba(255, 255, 255, 0.08); overflow: hidden; background: linear-gradient(180deg, rgba(3, 5, 11, 0.55), rgba(3, 5, 11, 0.8)); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-grid > * { display: grid; gap: 8px; align-content: start; }
.foot b { color: var(--ink); font-weight: 600; }
.foot-brand { font-size: 1.0625rem; }
.foot p { margin: 0; max-width: 32ch; }
.foot a { text-decoration: none; justify-self: start; }   /* only the words are clickable, not the whole column */
.foot a:hover { color: #fff; }
.mega-wrap { margin-top: 48px; }
.mega { display: block; font-size: clamp(3.5rem, 14.5vw, 13rem); font-weight: 200; line-height: 0.9; letter-spacing: -0.06em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.28); user-select: none; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.875rem; }

/* entrance */
.reveal { opacity: 0; transform: translate3d(0, 16px, 0); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1100px) {
  .corner.tl, .corner.tr { display: none; }
  /* the eight beats become a bar along the bottom */
  .beats { display: flex; flex-direction: row; gap: 6px; align-items: center; right: auto; left: 50%; top: auto; bottom: 20px; transform: translateX(-50%); padding: 8px 12px; border-radius: 999px;
    background: rgba(16, 18, 26, 0.55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--hair); }
  .beat { width: 14px; }
  .beat.now { width: 22px; }
}
@media (max-width: 900px) {
  .hero-grid, .contact-grid, .split { grid-template-columns: 1fr; }
  .split-head { position: static; }
  .hero { padding-top: 104px; }
  .hero-art { order: -1; }
  .viewfinder { width: min(420px, 100%); padding: 48px 16px 20px; }
  .foot-grid, .glance, .doc-body { grid-template-columns: 1fr; }
  .grid-work .card:nth-child(2) { margin-top: 0; }
  /* swipeable rows on phones and tablets */
  .grid-work, .steps { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 24px; margin-inline: -24px; padding: 4px 24px 16px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .grid-work::-webkit-scrollbar, .steps::-webkit-scrollbar { display: none; }
  .grid-work .card, .steps li { flex: 0 0 82%; scroll-snap-align: start; }
  .steps { margin-top: 56px; }
  .toc { position: static; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: -24px; padding: 0 24px 4px; }
  .toc::-webkit-scrollbar { display: none; }
  .toc a { flex: 0 0 auto; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--hair); }
  .doc-hero { padding-top: 112px; }
  .doc-body { padding-top: 40px; }
  .corner { display: none; }
  .stats { gap: 16px; }
}
@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
  .pill-link { padding: 8px 12px; font-size: 0.8125rem; }
  .btn { padding: 12px 24px; }
  .float { padding: 6px 12px; font-size: 0.75rem; }
  .f1 { left: 6%; } .f2 { right: 2%; } .f3 { display: none; }
  .frame { inset: 6px; border-radius: 22px; }
  /* lighter glass on phones keeps scrolling smooth */
  .glass { -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%); }
  .float, .btn-glass { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .glance { gap: 12px; margin-top: 32px; }
  .row { grid-template-columns: 1fr; gap: 8px; }
  .stats { grid-template-columns: 1fr; }
}

/* accessibility preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transform: none; transition: opacity 0.2s; }
  .btn:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .glass, .pill, .btn-glass, .lens { -webkit-backdrop-filter: none; backdrop-filter: none; background: #0b1020; }
}
@media (prefers-contrast: more) {
  .glass, .pill { background: #060a14; border-color: rgba(255, 255, 255, 0.6); }
  .lead, .card p, .steps span, .row p, .stats dd { color: #fff; }
}
