/* Tyeke's Media. Shared styles for every page. Values come from tokens.css. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
input, select, textarea { scroll-margin-top: 120px; }
body {
  margin: 0; background: var(--void); color: var(--frost);
  font: var(--fs-body)/1.6 var(--text); overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 500; text-wrap: balance; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--signal); color: var(--void); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
.on-paper :focus-visible, .panel :focus-visible { outline-color: var(--ink); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: fixed; left: 16px; top: -100px; z-index: 100; padding: 12px 18px;
  background: var(--signal); color: var(--void); font-weight: 600; border-radius: 999px; text-decoration: none;
}
.skip:focus { top: 16px; }

/* Film grain over the night. Paper sections sit above it and stay clean. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Corner light: screens glowing just out of frame. Never behind body text. */
.corner-light { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.corner-light::before, .corner-light::after {
  content: ""; position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
  filter: blur(40px); opacity: .55; transition: transform 2s var(--ease);
}
.corner-light::before { left: -38vmax; top: -40vmax; background: radial-gradient(closest-side, rgba(25,227,255,.28), transparent); transform: translateY(calc(var(--scroll, 0) * 6vh)); }
.corner-light::after { right: -38vmax; bottom: -42vmax; background: radial-gradient(closest-side, rgba(139,92,255,.34), transparent); transform: translateY(calc(var(--scroll, 0) * -6vh)); }

/* Floating particle layer (particles.js). Above the helix, below all content; moved only by translate3d. */
.particles { position: fixed; left: 0; top: 0; z-index: 1; pointer-events: none; will-change: transform; mix-blend-mode: screen; }
main { position: relative; z-index: 1; }
/* Single-column grids must not grow to their content's width on phones */
.hero, .night-head, .page-head, .studio-head, .lost, .claim, .start, .rule-grid, .statement-grid, .footer-grid, .project, .window, .hour { grid-template-columns: minmax(0, 1fr); }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
.label {
  font: 600 var(--fs-label)/1.4 var(--text); letter-spacing: .16em; text-transform: uppercase;
  color: var(--haze); font-variant-numeric: tabular-nums;
}
.label .lit { color: var(--signal); }
.h-hero { font-size: var(--fs-hero); line-height: .9; letter-spacing: -.045em; }
.h-xl { font-size: var(--fs-xl); line-height: .95; letter-spacing: -.04em; }
.h-l { font-size: var(--fs-l); line-height: 1; letter-spacing: -.03em; }
.one-line, .one-line .ln, .one-line .ln > span { white-space: nowrap; max-width: none !important; min-width: 0; } /* site.js: four words or fewer, one line (it shrinks the type if needed) */
.h-m { font-size: var(--fs-m); line-height: 1.15; letter-spacing: -.015em; }
.lede { font-size: var(--fs-lede); line-height: 1.5; max-width: 46ch; }
.muted { color: var(--haze); }
.measure { max-width: 62ch; }
.accent { color: var(--signal); }

/* Line-by-line rise from behind a mask */
.js [data-rise] .ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.js [data-rise] .ln > span { display: block; transform: translateY(105%); transition: transform var(--t-slow) var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.js [data-rise].is-in .ln > span { transform: none; }
.js [data-fade] { opacity: 0; transform: translateY(24px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
.js [data-fade].is-in { opacity: 1; transform: none; }

/* ---------- Buttons and links ---------- */
.btn {
  --bx: 50%; display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 14px 26px;
  border-radius: 999px; border: 1px solid transparent; text-decoration: none; font-weight: 600; cursor: pointer;
  background: radial-gradient(120px circle at var(--bx) 50%, #8ff3ff, var(--signal) 70%);
  color: var(--void); transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  box-shadow: 0 0 0 rgba(25,227,255,0);
}
.btn:hover { box-shadow: 0 10px 40px -10px rgba(25,227,255,.6); }
.btn:active { transform: scale(.98); }
.btn .arr { transition: transform var(--t-fast) var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn.ghost { background: transparent; color: var(--frost); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--frost); box-shadow: none; }
.btn.ink { background: var(--ink); color: var(--paper); }
.btn.ink:hover { box-shadow: 0 10px 40px -12px var(--shadow); }
.link {
  text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size var(--t-fast) var(--ease); padding-bottom: 2px;
}
.link:hover, .link:focus-visible { background-size: 100% 1px; }
.link.under { background-size: 100% 1px; }
.link.under:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 14px var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 15px/1 var(--display); letter-spacing: -.01em; padding: 6px 12px 6px 6px; border-radius: 999px; background: rgba(7,6,15,.62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); }
.brand img { width: 30px; height: 30px; border-radius: 50%; }
.nav { display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 999px; background: rgba(7,6,15,.62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); }
.nav a { padding: 9px 14px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--haze); transition: color var(--t-fast), background var(--t-fast); }
.nav a:hover { color: var(--frost); }
.nav a[aria-current="page"] { color: var(--frost); background: rgba(243,242,250,.08); }
.nav a.cta { background: var(--signal); color: var(--void); font-weight: 600; }
.nav a.cta[aria-current="page"] { background: var(--frost); }
.nav .long { display: none; }
@media (min-width: 560px) { .nav .long { display: inline; } .nav a { padding: 9px 16px; } }
@media (max-width: 400px) { .brand .name { display: none; } .brand { padding-right: 6px; } }
/* Work ── Studio, with the music switch as the line between them: flat while silent, a live wave while it plays */
.head-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.duo {
  display: flex; align-items: center; gap: 4px; padding: 5px 6px; border-radius: 999px;
  background: rgba(7,6,15,.62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line);
  box-shadow: 0 10px 34px -16px rgba(25,227,255,.35);
}
.duo a { padding: 9px 14px; border-radius: 999px; text-decoration: none; font: 500 13px/1 "Geist Mono", ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--haze); transition: color var(--t-fast), background var(--t-fast); }
.duo a:hover, .duo a:focus-visible { color: var(--frost); }
.duo a[aria-current="page"] { color: var(--frost); } /* the page you are on reads brighter, with no oval behind it */
.sound { display: grid; place-items: center; width: 76px; height: 34px; padding: 0 6px; border: 0; border-radius: 999px; background: none; cursor: pointer; color: var(--haze); transition: color var(--t-fast); }
.sound:hover, .sound:focus-visible, .sound[aria-pressed="true"] { color: var(--signal); }
.sound svg { width: 100%; height: 20px; overflow: visible; }
.sound path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.sound[aria-pressed="true"] path { filter: drop-shadow(0 0 4px rgba(25,227,255,.8)); }
@media (max-width: 899.98px) { .brand .name { display: none; } .brand { padding-right: 6px; } }
@media (max-width: 560px) { .brand { display: none; } } /* on a phone, Home in the pill does the logo's job */
@media (max-width: 400px) { .duo a { padding: 9px 8px; font-size: 12px; } .sound { width: 46px; } }
@media (max-width: 359px) { .duo { padding: 5px 4px; gap: 2px; } .duo a { padding: 9px 6px; font-size: 11px; letter-spacing: .05em; } .sound { width: 34px; padding: 0 3px; } .site-header .nav a { padding: 9px 13px; } }

/* ---------- Boot sequence (Home, first visit) ---------- */
.boot {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: var(--void);
  transition: opacity 500ms var(--ease), visibility 0s 500ms;
}
.boot.done { opacity: 0; visibility: hidden; }
.boot .label { display: flex; gap: 14px; }
.boot .count { color: var(--signal); min-width: 3ch; }

/* ---------- Home hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; padding-block: 120px 56px; overflow: clip; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero .telemetry { position: absolute; top: 96px; left: var(--gutter); right: var(--gutter); display: flex; flex-wrap: wrap; gap: 6px 22px; z-index: 2; }
.mark {
  --mx: 40%; --my: 35%; position: absolute; z-index: 1; width: min(78vw, 600px); aspect-ratio: 1;
  right: max(-6vw, calc(50% - 560px)); top: 50%; translate: 0 -56%;
  transform: scale(calc(1 - var(--p, 0) * .4)) translateY(calc(var(--p, 0) * -14vh));
  opacity: calc(1 - var(--p, 0) * 1.1);
  /* Blend the whole mark with the fog behind it; the mark is its own layer, so its images can't */
  mix-blend-mode: screen;
  /* Fade the square edges of the source image into the night */
  -webkit-mask-image: radial-gradient(circle, #000 52%, transparent 71%);
          mask-image: radial-gradient(circle, #000 52%, transparent 71%);
}
.mark img { position: absolute; inset: 0; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }
.mark .lit { mix-blend-mode: lighten; }
.mark .base { filter: brightness(.38) saturate(.85); }
.mark .lit {
  -webkit-mask-image: radial-gradient(circle at var(--mx) var(--my), #000 0, rgba(0,0,0,.6) 18%, transparent 46%);
          mask-image: radial-gradient(circle at var(--mx) var(--my), #000 0, rgba(0,0,0,.6) 18%, transparent 46%);
  filter: brightness(1.15) saturate(1.1);
}
.hero-copy { position: relative; z-index: 2; display: grid; gap: 28px; }
.hero-copy .h-hero { max-width: 11ch; }
.hero-copy .row { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; }
.scroll-cue i { width: 1px; height: 44px; background: linear-gradient(var(--signal), transparent); animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 720px) {
  .mark { width: 92vw; right: -10vw; top: 38%; }
  .hero { padding-bottom: 40px; }
}

/* ---------- Statement (words light as you read) ---------- */
.statement { padding-block: var(--section); }
.statement .h-l { max-width: 20ch; }
.js .statement .w { opacity: .26; transition: opacity 400ms var(--ease); }
.js .statement .w.on { opacity: 1; }
.statement-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .statement-grid { grid-template-columns: 4fr 8fr; } }

/* ---------- Lit windows (Home work preview) ---------- */
.windows { padding-bottom: var(--section); display: grid; gap: clamp(72px, 12vw, 160px); }
.window { --lit: 0; display: grid; gap: 22px; text-decoration: none; }
.window .frame {
  position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  transform: scale(calc(.94 + var(--lit) * .06)); transition: transform 200ms linear;
  box-shadow: 0 40px 120px -40px rgba(25, 227, 255, calc(var(--lit) * .45)), 0 0 0 1px rgba(243,242,250, calc(var(--lit) * .1));
}
.window .frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; filter: brightness(calc(.4 + var(--lit) * .6)); }
.window .meta { display: grid; gap: 8px; }
.window .h-l { transition: color var(--t-mid) var(--ease); }
.window:hover .h-l, .window:focus-visible .h-l { color: var(--signal); }
@media (min-width: 900px) {
  .window { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
  .window .frame { grid-column: 1 / span 9; }
  .window .meta { grid-column: 10 / span 3; padding-bottom: 12px; }
  .window:nth-child(even) .frame { grid-column: 4 / span 9; order: 2; }
  .window:nth-child(even) .meta { grid-column: 1 / span 3; order: 1; }
}

/* ---------- Daylight panel (slides over the night) ---------- */
.panel {
  position: relative; z-index: 2; background: var(--paper); color: var(--ink);
  border-radius: var(--radius-panel) var(--radius-panel) 0 0; padding-block: clamp(72px, 10vw, 160px);
  box-shadow: 0 -40px 80px -30px var(--shadow);
}
.panel .label, .on-paper .label { color: var(--ink-2); }
.panel .muted, .on-paper .muted { color: var(--ink-2); }
.panel + .panel-end, .panel-end { position: relative; z-index: 2; background: var(--void); border-radius: var(--radius-panel) var(--radius-panel) 0 0; margin-top: calc(var(--radius-panel) * -1); }
.js .panel[data-slide] { transform: translateY(calc((1 - var(--in, 1)) * 12vh)); }

.rule-grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .rule-grid { grid-template-columns: 7fr 5fr; align-items: end; } }
.quote { margin: 0; display: grid; gap: 18px; }
.quote blockquote { margin: 0; font: 500 var(--fs-m)/1.3 var(--display); letter-spacing: -.01em; max-width: 34ch; }
.quote figcaption { font-size: 14px; }

/* ---------- The empty frame ---------- */
.claim { padding-block: var(--section); display: grid; gap: 40px; }
.frame-empty {
  position: relative; aspect-ratio: 16 / 10; border-radius: 18px; border: 1px solid var(--line);
  display: grid; place-items: center; text-align: center; padding: 24px; overflow: hidden;
  background: radial-gradient(70% 60% at 50% 50%, rgba(139,92,255, calc(var(--glow, 0) * .22)), transparent 70%);
  transition: background var(--t-slow) var(--ease);
}
.frame-empty .big { font: 500 var(--fs-xl)/.9 var(--display); letter-spacing: -.04em; color: rgba(243,242,250, calc(.14 + var(--glow, 0) * .86)); transition: color var(--t-slow) var(--ease); }
@media (min-width: 900px) { .claim { grid-template-columns: 5fr 7fr; align-items: center; } }

/* ---------- Keep scrolling to the next page ---------- */
.next {
  position: relative; z-index: 2; min-height: 92svh; display: grid; place-items: center; text-align: center;
  padding: 96px var(--gutter); border-top: 1px solid var(--line); text-decoration: none;
}
.next .inner { display: grid; gap: 18px; justify-items: center; }
.next .h-xl { transition: color var(--t-mid) var(--ease); }
.next:hover .h-xl { color: var(--signal); }
.ring { width: 64px; height: 64px; }
.ring circle { fill: none; stroke-width: 2; }
.ring .track { stroke: var(--line); }
.ring .fill { stroke: var(--signal); stroke-dasharray: 176; stroke-dashoffset: calc(176 - var(--np, 0) * 176); transform: rotate(-90deg); transform-origin: center; }
.wipe { position: fixed; inset: 0; z-index: 95; background: var(--void); transform: translateY(100%); transition: transform 1200ms var(--ease); pointer-events: none; }
.wipe.go { transform: none; }
.wipe.up { transform: translateY(-100%); }
.wipe.up.go { transform: none; }
/* Scrolling up past the top of a page takes you back */
.prev-cue {
  position: fixed; z-index: 45; top: 84px; left: 50%; transform: translateX(-50%); padding: 9px 16px; border-radius: 999px;
  background: rgba(7, 6, 15, .72); border: 1px solid var(--line); text-decoration: none; color: var(--frost); overflow: hidden;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); opacity: 0; pointer-events: none; transition: opacity var(--t-mid) var(--ease);
}
.prev-cue.show { opacity: .85; pointer-events: auto; }
.prev-cue::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: calc(var(--pp, 0) * 100%); background: var(--signal); box-shadow: 0 0 10px var(--signal); }
.prev-cue span { position: relative; }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 2; border-top: 1px solid var(--line); padding-block: 64px 40px; background: var(--void); }
.footer-grid { display: grid; gap: 40px; }
.footer-grid .h-l { max-width: 12ch; }
.footer-cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.footer-cols ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.footer-cols a { text-decoration: none; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 5fr 7fr; } }

/* ---------- Page heads (inner pages) ---------- */
.page-head { padding-block: 160px clamp(56px, 8vw, 120px); display: grid; gap: 28px; }

/* ---------- Work: one project at a time ---------- */
.work-filter { display: grid; gap: 10px; }
.work-filter .q { color: var(--frost); }
.work-filter ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.work-filter button {
  background: none; border: 0; padding: 6px 0; cursor: pointer; color: var(--haze);
  font: 600 13px/1.4 var(--text); letter-spacing: .12em; text-transform: uppercase;
}
.work-filter button::before { content: "→ "; color: var(--uv); }
.work-filter button[aria-pressed="true"] { color: var(--signal); }
.work-filter button:hover { color: var(--frost); }

.projects { position: relative; }
.project {
  --lit: 0; min-height: 100svh; display: grid; align-content: center; gap: 28px; padding-block: 120px 96px;
  border-top: 1px solid var(--line);
}
.project[hidden] { display: none; }
.project .stage { position: relative; }
.project .desk {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
  transform: translateY(calc((1 - var(--lit)) * 40px)) scale(calc(.94 + var(--lit) * .06));
  box-shadow: 0 50px 140px -50px rgba(25,227,255, calc(var(--lit) * .5));
}
.project .desk img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; filter: brightness(calc(.4 + var(--lit) * .6)); }
.project .phone {
  position: absolute; right: 4%; bottom: -10%; width: clamp(96px, 18%, 220px); border-radius: 22px; overflow: hidden;
  border: 1px solid rgba(243,242,250,.22); box-shadow: 0 30px 60px -20px var(--shadow);
  transform: translateY(calc((1 - var(--lit)) * 90px)); opacity: calc(.3 + var(--lit) * .7);
}
.project .phone img { width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }
.project .info { display: grid; gap: 18px; }
.project .idx { color: var(--signal); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0 28px; margin: 0; }
.facts div { padding: 12px 0; border-top: 1px solid var(--line); }
.facts dt { font: 600 var(--fs-label)/1.4 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--haze); }
.facts dd { margin: 4px 0 0; }
.project .actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 1024px) {
  .project { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; }
  .project .stage { grid-column: 1 / span 8; }
  .project .info { grid-column: 9 / span 4; }
}
/* A single project on its own page: the project fills the screen, with a strip to the builds either side */
html.arriving body { opacity: 0; }
html.arrived body { transition: opacity .45s var(--ease); }
.showcase .project { border-top: 0; }
.showcase .project .actions { flex-direction: column; align-items: flex-start; }
.showcase-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 18px; padding-block: 28px 96px; border-top: 1px solid var(--line); }
.showcase-nav a { display: grid; gap: 6px; text-decoration: none; color: var(--frost); }
.showcase-nav .to-next { text-align: right; justify-items: end; }
.showcase-nav .name { font: 700 clamp(18px, 2.2vw, 26px)/1.15 var(--display); transition: color var(--t-mid) var(--ease); }
.showcase-nav a:hover .name { color: var(--signal); }
.showcase-nav .all { align-self: center; color: var(--haze); }
.showcase-nav .all:hover { color: var(--signal); }
@media (max-width: 640px) { .showcase-nav { grid-template-columns: 1fr 1fr; } .showcase-nav .all { grid-column: 1 / -1; grid-row: 2; justify-self: center; } }
/* ---------- The reel: a build, then the director's notes, one thought per slide ----------
   A computer pins it and the wheel moves it sideways (assets/js/reel.js); a phone swipes it. */
.reel { position: relative; }
.reel-pin { position: relative; }
.reel-track { display: flex; }
.slide { position: relative; flex: 0 0 100vw; width: 100vw; min-height: 100svh; display: grid; align-items: center; } /* nothing clipped at a slide's edge, so no line crosses the screen as they move */
.slide .projects { width: 100%; }
.slide .project { border-top: 0; }
.slide-in { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding-block: 104px 96px; } /* minmax(0): a one-line heading can never widen the column past the screen */
/* each thought sits on one tile with its picture: frosted glass, lit from beneath in the build's color */
.thought-tile, .glass-tile {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: center;
  padding: clamp(22px, 3.2vw, 48px); border-radius: 22px; border: 1px solid rgba(243,242,250,.12);
  background: linear-gradient(160deg, rgba(24,21,48,.72), rgba(7,6,15,.86));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(243,242,250,.07),
    0 60px 120px -40px color-mix(in srgb, var(--acc) 58%, transparent),
    0 26px 50px -24px color-mix(in srgb, var(--acc2) 30%, transparent),
    0 30px 60px -30px var(--shadow);
}
.thought-copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.thought-copy .h-l { font-size: clamp(28px, 3.1vw, 46px); max-width: 18ch; }
.thought-copy .idx { color: var(--acc); }
/* the narration: the director thinking out loud */
.narration { display: grid; gap: 14px; max-width: 46ch; padding-left: 20px; border-left: 2px solid color-mix(in srgb, var(--acc) 70%, transparent); }
.narration p { margin: 0; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.62; color: var(--frost); }
.narration p + p { color: var(--haze); }
.thought-visual { display: grid; }
.shot { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 60px -30px var(--shadow); }
.shot img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.shot.crop-low img { object-position: bottom; }
.shot.is-phone { width: min(260px, 62%); justify-self: center; border-radius: 26px; border-color: rgba(243,242,250,.22); }
.shot.is-phone img { aspect-ratio: 390 / 844; }
.specimen-set { display: grid; gap: 20px; padding: clamp(18px, 2.4vw, 32px); border: 1px solid var(--line); border-radius: 14px; background: rgba(7,6,15,.5); }
.spec-row { display: grid; gap: 8px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.spec-row:last-child { border: 0; padding-bottom: 0; }
.spec { margin: 0; color: var(--frost); line-height: 1.02; overflow-wrap: anywhere; }
.spec-row.display .spec { font-size: clamp(36px, 4.4vw, 68px); }
.spec-row.display em { color: var(--acc); text-shadow: 0 0 26px color-mix(in srgb, var(--acc) 60%, transparent); }
.spec-row.text .spec { font-size: clamp(19px, 1.8vw, 28px); line-height: 1.2; }
.spec-row.mono .spec { font-size: clamp(12px, 1.05vw, 16px); letter-spacing: .06em; color: var(--acc); }
.swatch-set { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 14px; }
.swatch-set li { display: grid; gap: 4px; }
.swatch-set i { display: block; aspect-ratio: 4 / 3; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 24px 50px -30px var(--shadow); }
.swatch-set .hex { font-size: 13px; color: var(--haze); font-variant-numeric: tabular-nums; }
/* 01 Blueprint: the path a visitor takes, stop by stop, down to the one action the site exists for */
.path-map { display: grid; gap: 18px; padding: clamp(18px, 2.4vw, 32px); border: 1px solid var(--line); border-radius: 14px; background: rgba(7,6,15,.5); }
.path-map ol { list-style: none; margin: 0; padding: 0; display: grid; position: relative; }
.path-map ol::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 22px; width: 1px; background: linear-gradient(var(--line), color-mix(in srgb, var(--acc) 70%, transparent)); }
.path-map li { position: relative; display: grid; gap: 2px; padding: 0 0 clamp(10px, 1.4vh, 16px) 28px; }
.path-map li::before { content: ""; position: absolute; left: 0; top: 7px; width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--haze); background: var(--void); }
.path-map .stop { color: var(--frost); font-weight: 500; font-size: clamp(15px, 1.15vw, 18px); }
.path-map .job { color: var(--haze); font-size: 14px; }
.path-map .goal { padding-bottom: 0; padding-top: 4px; gap: 8px; justify-items: start; }
.path-map .goal::before { top: 14px; border-color: var(--acc); background: var(--acc); box-shadow: 0 0 16px var(--acc); }
.goal-pill { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 18px; border-radius: 999px; background: var(--acc); color: var(--void); font-weight: 600; box-shadow: 0 12px 34px -12px color-mix(in srgb, var(--acc) 80%, transparent); }
/* 02 Art direction: the site's own type over its palette, on one panel */
.art-set { display: grid; gap: 14px; }
.art-set .specimen-set { gap: 14px; }
.art-set .spec-row { padding-bottom: 12px; }
.art-set .spec-row.display .spec { font-size: clamp(30px, 3.4vw, 54px); }
.art-set .swatch-set { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.art-set .swatch-set i { aspect-ratio: 1; border-radius: 9px; }
.art-set .swatch-set .label { font-size: 10px; letter-spacing: .06em; }
.art-set .swatch-set .hex { font-size: 11px; }
/* 04 Launch closes the reel: the site itself and Back on the tile, the other builds beneath it */
.launch .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.launch .shot img { max-height: 40vh; }
.launch .build-pills { padding-top: 0; border-top: 0; gap: 10px; }
/* the builds, as pills: one theme for all of them, the page's own light on hover; the one you're on is lit */
.build-pills { display: grid; gap: 14px; padding-top: 28px; border-top: 1px solid var(--line); justify-items: center; text-align: center; }
.build-pills ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--frost); text-decoration: none; font-weight: 500; white-space: nowrap;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
a.pill:hover, a.pill:focus-visible { border-color: var(--acc); color: var(--acc); box-shadow: 0 10px 34px -14px color-mix(in srgb, var(--acc) 70%, transparent); }
.pill.is-here { border-color: color-mix(in srgb, var(--acc) 60%, transparent); background: color-mix(in srgb, var(--acc) 14%, transparent); }
.reel-hud { position: absolute; z-index: 5; left: var(--gutter); right: var(--gutter); bottom: 68px; display: flex; align-items: center; gap: 16px; pointer-events: none; }
/* the one launched site says so: a LIVE badge pinned in the same spot on every slide, with the town's own time */
.live-badge { position: absolute; z-index: 6; top: 72px; left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; text-decoration: none; } /* centered above the slides, the same on every one */
.live-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 20px 9px 16px; border-radius: 999px;
  border: 1px solid rgba(61,220,132,.55); background: rgba(7,6,15,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #D8F5E4; font: 600 13px/1 var(--text); letter-spacing: .2em; text-transform: uppercase;
  box-shadow: 0 10px 40px -14px rgba(61,220,132,.55);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.live-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 10px #3DDC84; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #3DDC84; animation: live-ping 1.8s var(--ease) infinite; }
@keyframes live-ping { from { transform: scale(1); opacity: .7; } to { transform: scale(3.2); opacity: 0; } }
.live-time { font-size: 13px; letter-spacing: .06em; color: var(--haze); font-variant-numeric: tabular-nums; white-space: nowrap; }
.has-live .slide-in, .has-live .project { padding-top: 150px; }
.live-inline { justify-self: start; text-decoration: none; } /* a LIVE pill beside a launched build's name, on the Work reel */
.live-inline:hover .live-pill, .live-inline:focus-visible .live-pill { border-color: #3DDC84; box-shadow: 0 8px 30px -10px rgba(61,220,132,.6); }
.slide.intro .page-head { padding-top: 0; grid-column: 1 / -1; } /* room for the badge above every slide */
.live-badge:hover .live-pill, .live-badge:focus-visible .live-pill { border-color: #3DDC84; box-shadow: 0 8px 30px -10px rgba(61,220,132,.6); }
.reel-count { color: var(--frost); font-variant-numeric: tabular-nums; white-space: nowrap; }
.reel-bar { flex: 0 0 min(180px, 28vw); height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.reel-bar i { display: block; height: 100%; background: var(--acc); transform-origin: left; transform: scaleX(0); }
/* the hint says the plain word: scroll down and the slides travel sideways. It stays until the reel first moves */
.reel-hint {
  position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 16px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--acc) 45%, transparent); background: rgba(7,6,15,.72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--frost); font-size: 15px; font-weight: 500; white-space: nowrap;
  box-shadow: 0 14px 40px -16px color-mix(in srgb, var(--acc) 60%, transparent);
  transition: opacity var(--t-mid) var(--ease);
}
.reel.moved .reel-hint { opacity: 0; }
.reel-hint .touch { display: none; }
.reel-hint .mouse { position: relative; flex: none; width: 16px; height: 24px; border: 1.5px solid var(--frost); border-radius: 9px; }
.reel-hint .mouse i { position: absolute; left: 50%; top: 4px; width: 2px; height: 5px; margin-left: -1px; border-radius: 2px; background: var(--acc); animation: hint-wheel 1.6s var(--ease) infinite; }
.reel-hint .go { color: var(--acc); animation: hint-go 1.6s var(--ease) infinite; }
@keyframes hint-wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(8px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
@keyframes hint-go { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .reel-hint .mouse i, .reel-hint .go { animation: none; } }
/* arrows at either edge, for anyone who would rather click than scroll */
.reel-arrow {
  position: absolute; z-index: 6; top: 50%; width: 52px; height: 52px; margin-top: -26px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line); background: rgba(7,6,15,.6); color: var(--frost); font-size: 20px; cursor: pointer;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: opacity var(--t-mid) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.reel-arrow.back { left: var(--gutter); }
.reel-arrow.fwd { right: var(--gutter); }
.reel-arrow:hover, .reel-arrow:focus-visible { border-color: var(--acc); color: var(--acc); box-shadow: 0 10px 34px -12px color-mix(in srgb, var(--acc) 70%, transparent); }
.reel.at-start .reel-arrow.back, .reel.at-end .reel-arrow.fwd { opacity: 0; pointer-events: none; }
@media (min-width: 900px) {
  .slide-in { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .thought-tile { grid-column: 1 / -1; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .flip .thought-tile { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .flip .thought-copy { grid-column: 2; grid-row: 1; }
  .flip .thought-visual { grid-column: 1; grid-row: 1; }
  .launch .slide-in > * { grid-column: 1 / -1; }
}
@media (min-width: 900px) and (pointer: fine) {
  .reel-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; overflow: clip; } /* clip: focus can never scroll it sideways */
  .reel-track { height: 100vh; will-change: transform; }
  .slide { height: 100vh; min-height: 0; }
}
/* phones and tablets: swipe it */
@media (max-width: 899.98px), (pointer: coarse), (pointer: none) {
  .reel-track { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; align-items: flex-start; transition: height var(--t-mid) var(--ease); } /* reel.js sets its height to the slide in view */
  .reel-track::-webkit-scrollbar { display: none; }
  .slide { scroll-snap-align: start; scroll-snap-stop: always; }
  .slide { align-items: start; }
  .reel-hud { position: sticky; bottom: 0; padding: 72px var(--gutter) 60px; margin-top: -58px; background: linear-gradient(rgba(7,6,15,0), rgba(7,6,15,.55) 22%, rgba(7,6,15,.92) 42%, var(--void) 52%); } /* a long, gentle fade: copy dissolves well above the count and the pill instead of being sliced */
  .reel-hint { position: static; transform: none; margin-left: auto; min-width: 0; padding: 8px 14px; gap: 8px; font-size: 13px; line-height: 1.25; white-space: normal; }
  .reel-bar { flex-shrink: 1; min-width: 36px; }
  .reel-hint .mouse, .reel-hint .pc { display: none; }
  .reel-hint .touch { display: inline; }
  .reel-arrow { display: none; }
  .live-badge { top: 74px; }
}

.pager {
  position: fixed; z-index: 40; right: var(--gutter); bottom: 18px; display: flex; align-items: center; gap: 4px;
  padding: 5px; border-radius: 999px; background: rgba(7,6,15,.72); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
}
.pager.away { opacity: 0; transform: translateY(20px); pointer-events: none; }
.pager button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; font-size: 16px; color: var(--frost); }
.pager button:hover { background: rgba(243,242,250,.08); }
.pager .count { min-width: 64px; text-align: center; }

/* ---------- Case study: one night ---------- */
.night-head { min-height: 100svh; display: grid; align-content: end; gap: 28px; padding-block: 160px 72px; position: relative; overflow: clip; }
/* Only Bandit's side of the screenshot shows, so its own headline never competes with ours */
.night-head .bg { position: absolute; inset: 0 0 0 38%; z-index: -1; }
.night-head .bg img { width: 100%; height: 100%; object-fit: cover; object-position: 92% 30%; filter: brightness(.42) saturate(.95); }
.night-head .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, var(--void), rgba(7,6,15,.3) 45%, rgba(7,6,15,.1)), linear-gradient(to top, var(--void) 6%, transparent 50%); }
@media (max-width: 720px) { .night-head .bg { inset: 0 0 40% 20%; } }
.hour { display: grid; gap: 40px; padding-block: clamp(80px, 12vw, 180px); border-top: 1px solid var(--line); }
.hour .time { font: 500 var(--fs-l)/1 var(--display); color: var(--signal); letter-spacing: -.03em; }
.on-paper .hour, .hour.on-paper { border-top-color: var(--line-ink); }
.on-paper .hour .time, .hour.on-paper .time { color: var(--ink); }
.hour .shot { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 50px 120px -50px var(--shadow); }
.hour .shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
@media (min-width: 1024px) {
  .hour { grid-template-columns: 3fr 9fr; }
  .hour .body { display: grid; gap: 32px; }
}
.dawn { position: relative; height: 70svh; background: linear-gradient(var(--void), #1b1840 30%, #6f6aa8 62%, #c9cde6 85%, var(--paper)); }
.dawn .label { position: absolute; left: var(--gutter); bottom: 32px; color: var(--ink-2); }
.on-paper { background: var(--paper); color: var(--ink); }
.big-quote { margin: 0; display: grid; gap: 28px; padding-block: clamp(80px, 12vw, 180px); }
.big-quote blockquote { margin: 0; font: 500 var(--fs-l)/1.08 var(--display); letter-spacing: -.025em; max-width: 26ch; }
.built-list { list-style: none; padding: 0; margin: 0; display: grid; }
.built-list li { display: grid; gap: 6px; padding: 20px 0; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .built-list li { grid-template-columns: 4fr 8fr; gap: 28px; } }

/* ---------- Studio ---------- */
.studio-head { display: grid; gap: 40px; padding-block: 160px clamp(56px, 8vw, 120px); }
@media (min-width: 1024px) { .studio-head { grid-template-columns: 7fr 5fr; align-items: end; } }
.window-unlit { aspect-ratio: 4 / 5; border-radius: 18px; border: 1px solid var(--line); display: grid; align-content: space-between; padding: 22px; background: radial-gradient(80% 60% at 30% 20%, rgba(25,227,255,.07), transparent 70%); }
.window-unlit .clock { font: 500 var(--fs-l)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

.never { list-style: none; padding: 0; margin: 0; }
.never li { font: 500 var(--fs-m)/1.2 var(--display); padding: 16px 0; border-top: 1px solid var(--line); color: var(--haze); text-decoration: line-through; text-decoration-color: var(--uv); text-decoration-thickness: 2px; }

.compile { position: relative; height: 260svh; }
.compile .sticky { position: sticky; top: 0; min-height: 100svh; display: grid; align-content: center; gap: 32px; padding-block: 96px 40px; }
.compile .panes { display: grid; gap: 20px; }
@media (min-width: 1024px) { .compile .panes { grid-template-columns: 7fr 5fr; align-items: stretch; } }
.code {
  margin: 0; padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: rgba(14, 11, 36, .7);
  font: 14px/1.7 ui-monospace, "Cascadia Code", Consolas, monospace; overflow-x: auto; min-height: 300px; color: var(--haze);
  white-space: normal;
}
.code .ln { display: block; white-space: pre; }
.js .code .ln { opacity: .14; transition: opacity 300ms var(--ease), color 300ms; }
.js .code .ln.on { opacity: 1; color: var(--frost); }
.code .k { color: var(--signal); }
.code .v { color: #c9b6ff; }
.render { border-radius: 16px; border: 1px dashed var(--line); min-height: 300px; display: grid; place-items: center; padding: 24px; position: relative; }
.render .label { position: absolute; top: 16px; left: 18px; }
/* The specimen gains each style as its line compiles */
.specimen { padding: 12px 16px; border: 1px solid var(--haze); background: transparent; color: var(--haze); font: 400 15px/1.2 "Times New Roman", serif; transition: all 600ms var(--ease); }
.specimen.s1 { font-family: var(--text); font-weight: 600; color: var(--frost); }
.specimen.s2 { padding: 16px 30px; min-height: 56px; }
.specimen.s3 { border-radius: 999px; }
.specimen.s4 { background: var(--signal); color: var(--void); border-color: var(--signal); }
.specimen.s5 { box-shadow: 0 14px 50px -12px rgba(25,227,255,.7); transform: translateY(-4px); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; }
.steps li { display: grid; gap: 8px; padding: 28px 0; border-top: 1px solid var(--line-ink); }
.steps .n { font: 600 var(--fs-label)/1 var(--text); letter-spacing: .16em; color: var(--ink-2); }
@media (min-width: 900px) { .steps li { grid-template-columns: 2fr 4fr 6fr; align-items: baseline; gap: 28px; } }

.routes { list-style: none; padding: 0; margin: 0; }
.routes details { border-top: 1px solid var(--line-ink); }
.routes summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; }
.routes summary::-webkit-details-marker { display: none; }
.routes summary .h-l { transition: transform var(--t-mid) var(--ease); }
.routes summary:hover .h-l { transform: translateX(10px); }
.routes summary .plus { font: 400 28px/1 var(--text); transition: transform var(--t-mid) var(--ease); }
.routes details[open] .plus { transform: rotate(45deg); }
.routes .body { padding: 0 0 24px; max-width: 56ch; }
.routes .path { color: var(--ink-2); font-size: 15px; margin-right: 10px; }

.prices { display: grid; }
.price { display: grid; gap: 10px; padding: 28px 0; border-top: 1px solid var(--line-ink); }
.price .amt { font: 500 var(--fs-l)/1 var(--display); letter-spacing: -.03em; }
.price .avg { font-size: 14px; color: var(--ink-2); }
@media (min-width: 900px) { .price { grid-template-columns: 3fr 3fr 6fr; align-items: baseline; gap: 28px; } }
.care { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 15px; }
.care th, .care td { text-align: left; padding: 12px 14px 12px 0; border-top: 1px solid var(--line-ink); vertical-align: top; }
.care th { font-family: var(--display); font-weight: 500; font-size: 20px; }
.care td small { display: block; color: var(--ink-2); font-size: 13px; }
.table-scroll { overflow-x: auto; }
.promises { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.promises li::before { content: "◆ "; color: var(--uv); font-size: 10px; vertical-align: 2px; }

.faq details { border-top: 1px solid var(--line-ink); }
.faq summary { cursor: pointer; padding: 18px 0; font: 500 var(--fs-m)/1.25 var(--display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--text); font-weight: 400; transition: transform var(--t-mid) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding-bottom: 20px; max-width: 64ch; }

/* ---------- Start a build ---------- */
.start { display: grid; gap: 48px; padding-bottom: var(--section); }
@media (min-width: 1024px) { .start { grid-template-columns: 7fr 5fr; align-items: start; } .start .aside { position: sticky; top: 100px; } }
.brief { display: grid; gap: 20px; }
.brief .two { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.field label .req { color: var(--signal); }
.field label small { font-weight: 400; color: var(--haze); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(243,242,250,.04); color: var(--frost); transition: border-color var(--t-fast), background var(--t-fast);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--haze) 50%), linear-gradient(-45deg, transparent 50%, var(--haze) 50%); background-position: calc(100% - 22px) 23px, calc(100% - 16px) 23px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field select option { background: var(--void); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(243,242,250,.3); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--signal); background: rgba(25,227,255,.05); outline: none; box-shadow: 0 0 0 3px rgba(25,227,255,.25); }
.field .err { color: #FF9DB0; font-size: 14px; margin: 0; }
.field .err:empty { display: none; }
.field.bad input, .field.bad textarea { border-color: #FF9DB0; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 14px; color: var(--haze); }
.sent { display: none; gap: 14px; padding: 28px; border-radius: 18px; border: 1px solid var(--signal); }
.brief.done .fields { display: none; }
.brief.done .sent { display: grid; }

.lightframe { position: relative; aspect-ratio: 16 / 10; border-radius: 18px; display: grid; place-items: center; text-align: center; padding: 20px; overflow: hidden; border: 1px solid var(--line); }
.lightframe .e { position: absolute; background: var(--signal); box-shadow: 0 0 18px var(--signal); transition: transform 900ms var(--ease); }
.lightframe .e1 { left: 0; right: 0; top: 0; height: 2px; transform: scaleX(0); transform-origin: left; }
.lightframe .e2 { top: 0; bottom: 0; right: 0; width: 2px; transform: scaleY(0); transform-origin: top; }
.lightframe .e3 { left: 0; right: 0; bottom: 0; height: 2px; transform: scaleX(0); transform-origin: right; }
.lightframe .e4 { top: 0; bottom: 0; left: 0; width: 2px; transform: scaleY(0); transform-origin: bottom; }
.lightframe[data-step="1"] .e1, .lightframe[data-step="2"] .e1, .lightframe[data-step="3"] .e1, .lightframe[data-step="4"] .e1, .lightframe[data-step="5"] .e1,
.lightframe[data-step="2"] .e2, .lightframe[data-step="3"] .e2, .lightframe[data-step="4"] .e2, .lightframe[data-step="5"] .e2,
.lightframe[data-step="3"] .e3, .lightframe[data-step="4"] .e3, .lightframe[data-step="5"] .e3,
.lightframe[data-step="4"] .e4, .lightframe[data-step="5"] .e4 { transform: none; }
.lightframe .glow { position: absolute; inset: 0; background: radial-gradient(70% 70% at 50% 50%, rgba(25,227,255,.22), rgba(139,92,255,.16) 50%, transparent 80%); opacity: 0; transition: opacity 1200ms var(--ease); }
.lightframe[data-step="5"] .glow { opacity: 1; }
.lightframe .who { position: relative; font: 500 clamp(30px, 5vw, 64px)/.95 var(--display); letter-spacing: -.035em; color: rgba(243,242,250,.2); transition: color 900ms var(--ease); overflow-wrap: anywhere; }
.lightframe[data-step="5"] .who { color: var(--frost); }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; }
.contact-list li { padding: 14px 0; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.contact-list a { font: 500 var(--fs-m)/1.2 var(--display); text-decoration: none; overflow-wrap: anywhere; }

/* ---------- 404 ---------- */
.lost { min-height: 100svh; display: grid; align-content: center; gap: 28px; }

/* ---------- Home: the DNA helix (WebGL layer, see helix.js) ---------- */
/* Techy type on Home whether or not the 3D loads */
[data-page="home"] .h-hero, [data-page="home"] .h-xl, [data-page="home"] .h-l {
  font-family: var(--tech); font-weight: 500; text-transform: uppercase; letter-spacing: -.035em;
}
[data-page="home"] .h-hero { font-size: clamp(36px, 6.4vw, 100px); line-height: .98; }
[data-page="home"] .hero-copy .h-hero { max-width: 15ch; }
[data-page="home"] .h-xl { font-size: clamp(32px, 5.4vw, 84px); line-height: 1; }
[data-page="home"] .h-l { font-size: clamp(24px, 3.2vw, 44px); line-height: 1.08; }
[data-page="home"] .label { font-family: var(--tech); font-weight: 500; letter-spacing: .1em; }

.helix { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1400ms var(--ease); }
.helix canvas { display: block; width: 100% !important; height: 100% !important; }
.has-helix .helix { opacity: 1; }
/* The 3D scene takes over the mark, the fog and the work images; the HTML stays on top as the content */
.has-helix .hero canvas[data-fog], .has-helix .mark { display: none; }
.has-helix .hero { align-items: end; }
/* The work orbits the helix in 3D; each project's text gets a full screen beside its card */
.has-helix .windows { gap: 0; padding-top: 6svh; padding-bottom: 0; } /* the first tile arrives only after the statement and its glass have scrolled past */
.has-helix .window { min-height: 52svh; grid-template-columns: minmax(0, 1fr); align-content: center; } /* tiles sit close: two or three share the screen */
.has-helix .window .frame { display: none; }
/* The glass tile is the link. The HTML link stays for keyboard and screen readers:
   invisible to the pointer, and its text only shows while it has keyboard focus. */
.has-helix .window { pointer-events: none; }
.has-helix .window .meta { grid-column: auto; order: 0; padding: 0; max-width: 19rem; }
.has-helix .window:not(:focus-visible) .meta { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.has-helix .window:focus-visible { outline: none; }
.has-helix .window:focus-visible .meta { outline: 2px solid var(--signal); outline-offset: 10px; border-radius: 6px; }
html.tile-hover, html.tile-hover body { cursor: pointer; }
@media (max-width: 720px) {
  .has-helix .window { min-height: 44svh; }
  .has-helix .window .meta { max-width: none; }
}
.has-helix main { text-shadow: 0 0 30px rgba(4, 7, 13, .95), 0 0 3px rgba(4, 7, 13, .7); }
/* Phones: body copy sits right over the helix, so give it a soft dark backing */
@media (max-width: 720px) {
  .has-helix main .lede, .has-helix .window .meta p, .has-helix .statement .lede { text-shadow: 0 0 18px #04070d, 0 0 8px #04070d, 0 0 2px #04070d; }
}
.has-helix .btn { text-shadow: none; }
.has-helix .panel {
  background: rgba(6, 8, 20, .5); color: var(--frost); border: 1px solid var(--line); border-bottom: 0;
  backdrop-filter: blur(20px) saturate(1.25); -webkit-backdrop-filter: blur(20px) saturate(1.25); box-shadow: none;
}
.has-helix .panel .label, .has-helix .panel .muted { color: var(--haze); }
.has-helix .panel .btn.ink { background: var(--signal); color: var(--void); }
.has-helix .panel :focus-visible { outline-color: var(--signal); }
.has-helix .panel-end { background: transparent; }
.has-helix .frame-empty { background: rgba(4, 7, 13, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.has-helix .site-footer { background: rgba(4, 7, 13, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.has-helix body::after { opacity: .05; }

/* ---------- Reduced motion: still, readable, everything lit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 200ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js [data-rise] .ln > span, .js [data-fade] { transform: none !important; }
  .js [data-fade] { opacity: 1; }
  .mark, .window .frame, .project .desk, .project .phone, .js .panel[data-slide] { transform: none !important; translate: 0 -50%; }
  .window .frame, .project .desk, .project .phone { translate: none; }
  .mark { opacity: 1 !important; }
  .window, .project { --lit: 1 !important; }
  .js .statement .w { opacity: 1; }
  .js .code .ln { opacity: 1; color: var(--frost); }
  .compile { height: auto; }
  .compile .sticky { position: static; }
  .corner-light::before, .corner-light::after { transform: none; }
  .boot { display: none; }
}

/* Words on stained glass: the work heading comes down a size so its pane does too */
[data-page="home"] [data-plaque] .h-xl { font-size: clamp(28px, 4vw, 60px); }
/* Hero words on their glass tile: a size smaller, clear of the logo ring */
[data-page="home"] .hero-copy .h-hero { font-size: clamp(32px, 4.6vw, 72px); }

/* The opening: only with the 3D scene. The page loads on the TM; this space is the scroll
   the helix spins through before the hero words arrive. */
/* The headline above the DNA. Without the 3D scene it is simply the top of the page. */
.intro-space { display: block; padding: 132px 0 24px; }
.has-helix .intro-space { position: relative; height: 130svh; padding: 0; } /* longer: the coin rises from the lower third and flips the whole way */
.intro-head { display: grid; justify-items: center; gap: 14px; text-align: center; width: min(92vw, 980px); margin-inline: auto; }
.has-helix .intro-head { position: absolute; left: 50%; top: clamp(96px, 13svh, 150px); transform: translateX(-50%); }
.intro-head > .label { color: var(--haze); }
.intro-title {
  margin: 0; font: 700 clamp(28px, 4.4vw, 64px)/1.05 "Unbounded", var(--display); letter-spacing: -.01em; text-wrap: balance;
  background: linear-gradient(90deg, #19E3FF, #8B5CFF 55%, #E040FB); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(25, 227, 255, .25));
  text-shadow: none; /* the page's dark text shadow would show through the gradient letters */
}
.intro-cue { display: none; flex-direction: column; align-items: center; gap: 10px; color: var(--haze); margin-top: 10px; text-align: center; max-width: 34ch; margin-inline: auto; }
.has-helix .intro-cue { display: flex; }
.intro-cue::after { content: ""; width: 1px; height: 36px; background: linear-gradient(var(--signal), transparent); animation: cue 2.4s var(--ease) infinite; transform-origin: top; }

/* The words now ride the helix on glass, printed in 3D. Their HTML stays in place, invisible,
   so the page keeps its layout, search text and screen-reader text. */
.has-helix [data-plaque] { opacity: 0; }
.has-helix .statement-grid > .label { opacity: 0; } /* printed on its pane now */

/* The dive: only with the 3D scene. The TM drops into the ocean, is wrapped in bubbles that
   become a whirlpool, and spins as you scroll. This is the scroll that drives it. */
.dive { display: none; }
.has-helix .dive { display: block; height: 780svh; } /* includes a held stretch while the whirlpool forms, and time to circle the temple at the bottom */
@media (max-width: 720px) { .has-helix .dive { height: 720svh; } }

/* Each lesson pane gets a screen to itself on the helix, so neighbouring panes never crowd or overlap */
.has-helix .statement { padding-block: 0; } /* the scene spaces these evenly (helix.js, evenPanes) */

/* The spark of life: while it plays, the words, menu and background particles wait in the dark,
   then fade in as the DNA finishes growing */
.sparking .site-header, .sparking main, .sparking .site-footer, .sparking canvas.particles { opacity: 0; }
.site-header, main, .site-footer, canvas.particles { transition: opacity 900ms var(--ease); }
.sparking .helix { transition: none; } /* the scene starts black, so it shows at once and the spark is never hidden by a fade */

/* How it's made: on the flat page a plain button after the work; with the 3D scene the link is
   carved into the pedestal at the bottom of the sea, and this one shows only for keyboard focus */
.atlantis { text-align: center; padding-block: 56px; margin: 0; }
.has-helix .atlantis { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); padding: 0; }
.has-helix .atlantis:focus-within { position: fixed; left: 50%; bottom: 32px; width: auto; height: auto; clip: auto; overflow: visible; transform: translateX(-50%); z-index: 5; }
html.link-hover, html.link-hover body { cursor: pointer; }

/* ---------- Studio as a reel: the same tiles as the builds, on the night ---------- */
.studio-reel { --line-ink: var(--line); --ink-2: var(--haze); }
.studio-reel .studio-head { padding-block: 0; width: 100%; grid-column: 1 / -1; }
.studio-reel .window-unlit { max-height: 56vh; aspect-ratio: auto; min-height: 260px; }
.studio-reel .never li { font-size: clamp(18px, 1.6vw, 26px); padding: 12px 0; }
.studio-reel .compile { height: auto; display: grid; gap: 14px; }
.studio-reel .code, .studio-reel .render { min-height: 0; font-size: 13px; }
.studio-reel .render { min-height: 150px; }
.studio-reel .steps li { grid-template-columns: 40px minmax(0, 1fr); gap: 4px 14px; padding: 16px 0; align-items: baseline; }
.studio-reel .steps li > p { grid-column: 2; color: var(--haze); }
.studio-reel .steps .n { color: var(--acc); }
.studio-reel .steps .h-m { font-size: clamp(20px, 1.6vw, 26px); }
.studio-reel .routes summary { padding: 12px 0; }
.studio-reel .routes summary .h-l { font-size: clamp(19px, 1.5vw, 24px); }
.studio-reel .routes .path { color: var(--acc); }
.studio-reel .routes .body { color: var(--haze); padding-bottom: 14px; }
.studio-reel .price { padding: 16px 0; gap: 6px; }
.studio-reel .price .h-m { font-size: clamp(20px, 1.6vw, 26px); }
.studio-reel .price .amt { font-size: clamp(26px, 2.2vw, 36px); color: var(--acc); }
.studio-reel .price > p:last-child { color: var(--haze); font-size: 15px; }
.studio-reel .care { margin-top: 0; font-size: 14px; }
.studio-reel .care th { font-size: 17px; }
.studio-reel .promises { margin-top: 18px; font-size: 14px; }
.studio-reel .faq summary { font-size: clamp(16px, 1.25vw, 20px); padding: 12px 0; }
.studio-reel .faq .a { color: var(--haze); padding-bottom: 14px; }
.studio-reel .thought-copy .actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .studio-reel .thought-tile { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); } .studio-reel .flip .thought-tile { grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); } }
.studio-reel .price { grid-template-columns: minmax(0, 1fr) auto; align-items: start; column-gap: 20px; }
.studio-reel .price > div:nth-child(2) { text-align: right; }
.studio-reel .price .amt, .studio-reel .price .avg { white-space: nowrap; }
.studio-reel .price > p:last-child { grid-column: 1 / -1; }
@media (max-width: 899.98px), (pointer: coarse), (pointer: none) {
  .studio-reel .price { grid-template-columns: minmax(0, 1fr); }
  .studio-reel .price > div:nth-child(2) { text-align: left; }
}
.studio-reel .slide.intro .h-hero { font-size: clamp(48px, min(11vh, 9vw), 160px); } /* four lines that always fit the screen */

/* Start: the brief and the ways to reach us sit on the same lit glass tiles as the rest of the site */
.start .glass-tile { display: grid; align-items: start; }
.start .brief.glass-tile { gap: 20px; }
.start .reach { gap: 16px; padding-block: clamp(20px, 2.6vw, 36px); }
.start .reach .contact-list li:first-child { border-top: 0; padding-top: 4px; }
.start .field input, .start .field select, .start .field textarea { background: rgba(7,6,15,.55); }

/* ---------- Town pages (/web-design-<town>-ok/, built by tools/build.mjs from towns/) and the privacy policy ---------- */
.town { --acc: var(--signal); --acc2: var(--uv); --line-ink: var(--line); --ink-2: var(--haze); }
.town .page-head .h-xl { max-width: 15ch; }
.town .voice { color: var(--signal); }
.town .h-xl .voice { display: block; font-size: .62em; line-height: 1.05; margin-top: .25em; letter-spacing: -.03em; }
.town .page-head .promises { margin: 0; }
.town .promises b { color: var(--signal); font-weight: 600; }
.town .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.town-sec { padding-block: clamp(14px, 2vw, 28px); }
.town-tile { align-items: start; }
.town-tile .h-l { font-size: clamp(28px, 3.1vw, 46px); max-width: 16ch; }
.town-tile .body > p { color: var(--haze); max-width: 62ch; }
.town-tile .body > p:last-child { margin-bottom: 0; }
@media (min-width: 900px) { .town-tile { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }
.town .quote { margin-top: 28px; padding-left: 20px; border-left: 2px solid #3DDC84; }
.town .quote figcaption b { font-weight: 600; }
.town .price { padding: 20px 0; gap: 8px; }
.town .price:first-child { border-top: 0; padding-top: 0; }
.town .price p { margin: 0; }
.town .price .amt { font-size: clamp(26px, 2.2vw, 36px); color: var(--signal); }
.town .price .amt.quoted { font-size: clamp(19px, 1.5vw, 24px); }
.town .price ul { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 4px; color: var(--haze); font-size: 15px; }
.town .price ul li::marker { color: var(--uv); }
@media (min-width: 900px) {
  .town .price { grid-template-columns: minmax(0, 1fr) auto; align-items: start; column-gap: 20px; }
  .town .price > div:nth-child(2) { text-align: right; }
  .town .price > ul { grid-column: 1 / -1; }
}
.town .note { margin: 20px 0 0; color: var(--haze); }
.town .note b { color: var(--frost); }
.town .why, .town .jobs { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px 28px; }
@media (min-width: 700px) { .town .why, .town .jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.town .why li { border-left: 2px solid var(--signal); padding-left: 14px; }
.town .why b { display: block; font-weight: 600; }
.town .why span { color: var(--haze); }
.town .jobs { gap: 14px; }
.town .job { display: grid; gap: 6px; height: 100%; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: rgba(7,6,15,.45); transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.town .job:hover, .town .job:focus-visible { border-color: var(--signal); box-shadow: 0 10px 34px -14px rgba(25,227,255,.6); }
.town .job.live .label { color: #3DDC84; }
.town .job b { font: 500 20px/1.2 var(--display); }
.town .job span:last-child { color: var(--haze); font-size: 15px; }
.town .faq summary { font-size: clamp(18px, 1.5vw, 22px); }
.town .faq details:first-child { border-top: 0; }
.town .faq details:first-child summary { padding-top: 0; }
.town .faq .a { color: var(--haze); }
.town-cta { display: grid; justify-items: center; gap: 22px; text-align: center; padding-block: clamp(72px, 10vw, 140px); }
.town-cta .lede { margin: 0; }
.town-cta .promises { margin: 0; justify-content: center; }
.town-cta .promises .fast { color: var(--signal); font-weight: 600; }
.town-cta .actions { justify-content: center; }
@media (max-width: 520px) { .town .actions .btn { flex: 1 1 100%; justify-content: center; } }
.privacy .prose { max-width: 70ch; padding-bottom: var(--section); }
.privacy .prose h2 { margin: 48px 0 12px; }
.privacy .prose h2:first-child { margin-top: 0; }
.privacy .prose p, .privacy .prose li { color: var(--haze); }
.privacy .prose b { color: var(--frost); font-weight: 600; }
.privacy .prose ul { margin: 0 0 1em; padding-left: 20px; display: grid; gap: 6px; }
.privacy .prose a { color: var(--signal); }

/* Lab copy (tyekesmedia.com/lab): stop the fallback frames and particles canvas from widening the page */
html { overflow-x: clip; }
