:root {
  /* Every colour comes from one hue. The remote's dial sets --h; amber (80) is the default.
     The background takes the opposite hue, so amber light sits on a cool dark blue. */
  --h: 80;
  --hb: calc(var(--h) + 180);
  --bg: oklch(.155 .02 var(--hb));
  --panel: color-mix(in srgb, var(--bg) 52%, transparent);
  --ink: oklch(.955 .015 var(--h));
  --dim: oklch(.76 .025 var(--hb));
  --line: color-mix(in srgb, var(--ink) 16%, transparent);
  --amber: oklch(.81 .17 var(--h));   /* fills: buttons, bars, the hot tier */
  --accent: oklch(.81 .17 var(--h));  /* accent text and lines */
  --on-amber: oklch(.2 .05 var(--h));
  --body2: oklch(.87 .015 var(--hb));
  --sub: oklch(.9 .012 var(--h));
  --s0: oklch(.1 .015 var(--hb)); --s1: oklch(.21 .025 var(--hb)); --s2: oklch(.26 .03 var(--hb)); --s3: oklch(.18 .02 var(--hb)); --bar: oklch(.33 .03 var(--hb)); --glow: oklch(.22 .04 var(--h));
  --gutter: clamp(16px, 4vw, 56px);
  --display: 'Big Shoulders Display', Impact, sans-serif;
  --body: 'Geist', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  transition: --h .45s linear;
  /* z-index scale: canvas 0, content 1, texture 4, caption 5, nav 10, torch 20, remote 30, beam 31 */
}
/* Registered so the hue can glide; browsers without it just jump. */
@property --h { syntax: '<number>'; inherits: true; initial-value: 80; }
html.snap { transition: none; }
/* Daylight: the same hue, lit. */
[data-mode="light"] {
  color-scheme: light;
  --bg: oklch(.955 .012 var(--h));
  --ink: oklch(.2 .02 var(--hb));
  --dim: oklch(.47 .02 var(--hb));
  --accent: oklch(.47 .13 var(--h));
  --amber: oklch(.8 .16 var(--h));
  --on-amber: oklch(.2 .05 var(--h));
  --body2: oklch(.3 .02 var(--hb));
  --sub: oklch(.25 .02 var(--hb));
  --s0: oklch(.9 .012 var(--hb)); --s1: oklch(.82 .02 var(--hb)); --s2: oklch(.86 .018 var(--hb)); --s3: oklch(.92 .01 var(--hb)); --bar: oklch(.76 .025 var(--hb)); --glow: oklch(.97 .05 var(--h));
}
* { box-sizing: border-box; margin: 0; }
html { background: var(--bg); color-scheme: dark; }
body { font: 400 17px/1.55 var(--body); color: var(--ink); background: var(--bg); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
ol { list-style: none; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.noscript { position: relative; z-index: 1; padding: var(--gutter); }

#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; background: radial-gradient(120% 80% at 60% 100%, var(--glow), var(--bg) 60%); }
main { position: relative; z-index: 1; }

h1, h2, .svc-title, .panel h3, .figure b { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: -.005em; line-height: .92; }
h2 { font-size: clamp(52px, 8.4vw, 132px); }

.nav { position: fixed; z-index: 10; top: 0; left: 0; right: 0; height: 68px; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 95%, transparent) 55%, transparent); }
.nav-name { font: 700 24px/1 var(--display); text-transform: uppercase; text-decoration: none; }
.nav nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav nav a { text-decoration: none; }
.nav nav a:not(.nav-cta):hover { color: var(--accent); }
.nav-cta { padding: 8px 14px; background: var(--ink); color: var(--bg); font-weight: 500; transition: background .2s; }
.nav-cta:hover { background: var(--amber); color: var(--on-amber); }
@media (max-width: 720px) { .nav nav a:not(.nav-cta) { display: none; } }

.btn { display: inline-block; padding: 14px 24px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: transform .18s cubic-bezier(.16,1,.3,1), background .2s, color .2s; }
.btn:active { transform: scale(.98); }
.btn-solid { background: var(--amber); color: var(--on-amber); }
.btn-solid:hover { background: var(--ink); }
.btn-line { box-shadow: inset 0 0 0 1px var(--ink); background: color-mix(in srgb, var(--bg) 50%, transparent); }
.btn-line:hover { background: var(--ink); color: var(--bg); }

/* Hero: the graph is the visual; the copy sits on a scrim down the left. */
.hero { min-height: 100dvh; padding: 88px var(--gutter) var(--gutter); display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; cursor: crosshair;
  background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 80%, transparent), color-mix(in srgb, var(--bg) 25%, transparent) 48%, transparent 62%); }
.hero-copy { max-width: 720px; cursor: auto; }
.eyebrow { font: 500 14px/1 var(--mono); color: var(--accent); margin-bottom: 20px; }
h1 { font-size: clamp(58px, 7.5vw, 132px); }
.hero-sub { margin: 18px 0 24px; max-width: 34em; font-size: clamp(17px, 1.4vw, 20px); color: var(--sub); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
h1 .w { display: inline-block; }

.sim { flex: 0 0 auto; width: 270px; font: 400 13px/1.4 var(--mono); padding: 14px 16px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); cursor: auto; }
.sim-call { color: var(--accent); min-height: 2.8em; font-size: 14px; }
.sim-stats { margin: 10px 0; display: grid; gap: 4px; }
.sim-stats div { display: flex; justify-content: space-between; }
.sim-stats dt { color: var(--dim); }
.sim-stats dd { margin: 0; font-variant-numeric: tabular-nums; }
.sim-note { color: var(--dim); font-size: 12px; }
@media (max-width: 860px) {
  .hero { flex-direction: column; align-items: stretch; justify-content: flex-end; background: linear-gradient(0deg, color-mix(in srgb, var(--bg) 94%, transparent) 52%, transparent 84%); }
  .sim { width: 100%; order: 2; }
  .sim-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .sim-stats div { display: block; }
  .sim-call { min-height: 0; }
}

/* Speed: the measured build times, biggest type on the page after the headline. */
.speed { padding: 14vh var(--gutter); background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 90%, transparent), color-mix(in srgb, var(--bg) 62%, transparent) 52%, color-mix(in srgb, var(--bg) 6%, transparent) 74%); }
.speed-list li { max-width: 62vw; }
.speed-list { margin-top: 5vh; }
.speed-list li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(16px, 4vw, 64px); align-items: center; padding: 24px 0; border-top: 1px solid var(--line); }
.speed-list b { font: 900 clamp(64px, 10vw, 168px)/.92 var(--display); text-transform: uppercase; color: var(--accent); }
.speed-list h3 { font: 700 clamp(30px, 3.4vw, 52px)/1 var(--display); text-transform: uppercase; }
.speed-list p { margin-top: 8px; max-width: 38em; color: var(--body2); }
.speed-list .note { font: 400 14px/1.5 var(--mono); color: var(--dim); }
@media (max-width: 640px) { .speed-list li { grid-template-columns: minmax(0, 1fr); } }

/* Services: a list of huge lines that open as they reach the middle of the screen. */
.services { min-height: 100dvh; padding: 14vh var(--gutter); background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 80%, transparent), color-mix(in srgb, var(--bg) 55%, transparent) 55%, color-mix(in srgb, var(--bg) 15%, transparent)); }
.services h2 { font-size: clamp(26px, 2.8vw, 40px); font-weight: 700; margin-bottom: 5vh; color: var(--accent); }
.svc li { padding: 2.2vh 0; max-width: 1200px; }
.svc-title { font-size: clamp(50px, 9vw, 150px); opacity: .34; transition: opacity .35s, transform .5s cubic-bezier(.16,1,.3,1); transform-origin: left; text-shadow: 0 2px 24px color-mix(in srgb, var(--bg) 80%, transparent); }
.svc-more { opacity: .34; transition: opacity .35s; }
.svc-more p { max-width: 38em; padding-top: 14px; font-size: 19px; text-shadow: 0 1px 14px var(--bg); }
.svc-more small { display: block; padding-top: 8px; font: 400 14px/1.4 var(--mono); color: var(--accent); }
.svc li.on .svc-title { opacity: 1; }
.svc li.on .svc-more { opacity: 1; }

/* Selected work: vertical scroll drives a horizontal strip. */
.work { overflow: hidden; }
.track { display: flex; width: max-content; min-height: 100dvh; align-items: stretch; }
.panel { width: min(92vw, 1320px); min-height: 100dvh; padding: 92px clamp(24px, 4vw, 64px) 40px; background: var(--panel); border-right: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.panel:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.panel:nth-child(even) .panel-copy { order: 2; }
.panel h3 { font-size: clamp(56px, 7.4vw, 118px); overflow-wrap: anywhere; }
.panel .tag { margin: 16px 0 12px; font-size: clamp(19px, 1.7vw, 25px); line-height: 1.25; font-weight: 500; }
.panel .desc { color: var(--body2); max-width: 36em; }
.panel .meta { margin-top: 16px; font: 400 13px/1.5 var(--mono); color: var(--dim); }
.panel .meta a { color: var(--accent); display: inline-block; margin-top: 8px; }
.panel-visual { min-width: 0; }

.screens { position: relative; aspect-ratio: 16 / 11.5; }
.screens img { position: absolute; width: 74%; height: auto; display: block; box-shadow: 0 24px 60px rgb(2 4 8 / .7), 0 0 0 1px var(--line); transition: transform .5s cubic-bezier(.16,1,.3,1); }
.screens img:nth-child(1) { left: 0; top: 0; z-index: 3; }
.screens img:nth-child(2) { right: 0; top: 16%; z-index: 2; }
.screens img:nth-child(3) { left: 13%; bottom: 0; z-index: 1; }
.screens img:hover { z-index: 4; transform: scale(1.03); }

.demo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 14px; }
.demo-bar button { padding: 9px 14px; font-size: 14px; box-shadow: inset 0 0 0 1px var(--ink); transition: background .2s, color .2s; }
.demo-bar button:hover:not(:disabled) { background: var(--ink); color: var(--bg); }
.demo-bar button:disabled { opacity: .4; cursor: default; }
.demo-note { font: 400 13px/1.4 var(--mono); color: var(--dim); }
.demo-readout { font: 500 15px/1.4 var(--mono); color: var(--accent); margin-top: 12px; min-height: 1.4em; }

.tile-stage { position: relative; aspect-ratio: 16 / 10; background: var(--s0); box-shadow: inset 0 0 0 1px var(--line); padding: 0; }
.tile-stage.is-empty::after { content: 'No windows open. Add one.'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--dim); font: 400 14px var(--mono); }
.tile { position: absolute; left: calc(var(--x) * 100%); top: calc(var(--y) * 100%); width: calc(var(--w) * 100%); height: calc(var(--h) * 100%); border: 4px solid var(--s0); background: var(--s1); display: grid; place-items: center; font: 700 clamp(28px, 4vw, 64px)/1 var(--display); color: var(--dim); transition: left .42s cubic-bezier(.16,1,.3,1), top .42s cubic-bezier(.16,1,.3,1), width .42s cubic-bezier(.16,1,.3,1), height .42s cubic-bezier(.16,1,.3,1), background .15s, color .15s; }
.tile:hover { background: var(--amber); color: var(--on-amber); }

.ts-bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; height: clamp(220px, 38vh, 380px); }
.ts-col { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; }
.ts-col i { display: block; flex: 1; background: var(--bar); transform: scaleY(.5); transform-origin: bottom; transition: transform .2s ease-out, background .2s; }
.ts-col.is-pick i { background: var(--amber); }
.ts-col b { font: 500 14px/1 var(--mono); padding: 8px 0 4px; font-variant-numeric: tabular-nums; }
.ts-col span { font-size: 13px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; }

.tiers { display: grid; gap: 8px; grid-template-columns: repeat(12, 1fr); }
.tier { padding: clamp(16px, 2vw, 28px); }
.tier b { display: block; font: 900 clamp(34px, 4vw, 64px)/1 var(--display); text-transform: uppercase; }
.tier p { margin-top: 8px; font-size: 15px; }
.tier-hot { grid-column: span 12; background: var(--amber); color: var(--on-amber); }
.tier-warm { grid-column: span 7; background: var(--s2); }
.tier-cold { grid-column: span 5; background: var(--s3); box-shadow: inset 0 0 0 1px var(--line); }

.figure b { display: block; font-size: clamp(150px, 26vw, 420px); line-height: .8; color: var(--accent); }
.figure-long b { font-size: clamp(110px, 15vw, 240px); line-height: .92; white-space: nowrap; }
.figure span { display: block; margin-top: 18px; font-size: 22px; }

/* Everything else */
.all { padding: 16vh var(--gutter) 10vh; background: var(--panel); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0; }
.filters button { padding: 9px 16px; font-size: 15px; box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, color .2s; }
.filters button:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.grid { column-count: 3; column-gap: clamp(24px, 3vw, 48px); }
.item { break-inside: avoid; padding: 22px 0 26px; border-top: 1px solid var(--line); display: block; text-decoration: none; }
.item h3 { font: 700 clamp(30px, 2.8vw, 42px)/1 var(--display); text-transform: uppercase; transition: color .2s; }
.item p { margin-top: 8px; color: var(--body2); font-size: 16px; }
.item .tag { color: var(--ink); }
.item small { display: block; margin-top: 10px; font: 400 13px/1.5 var(--mono); color: var(--dim); }
a.item:hover h3 { color: var(--accent); }
.grid-empty { color: var(--dim); }
@media (max-width: 1040px) { .grid { column-count: 2; } }
@media (max-width: 640px) { .grid { column-count: 1; } }

/* Career */
.career { padding: 12vh 0 0; background: linear-gradient(180deg, var(--panel), color-mix(in srgb, var(--bg) 55%, transparent)); }
.career-list { padding: 0 var(--gutter); display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 5vw, 80px); }
.job h3 { font: 900 clamp(46px, 6vw, 96px)/.95 var(--display); text-transform: uppercase; }
.job h3 a { text-decoration: none; }
.job h3 a:hover { color: var(--accent); }
.job .role { margin-top: 8px; font-size: 19px; font-weight: 500; }
.job .dates { font: 400 14px var(--mono); color: var(--dim); }
.job p.b { margin-top: 12px; max-width: 38em; color: var(--body2); }
.marquee { margin-top: 10vh; overflow: hidden; padding: 14px 0; border-block: 1px solid var(--line); }
.marquee-in { display: flex; width: max-content; animation: slide 46s linear infinite; font: 700 clamp(26px, 3vw, 44px)/1 var(--display); text-transform: uppercase; }
.marquee-in span { padding-right: 1.1em; }
.marquee-in span:nth-child(3n) { color: var(--accent); }
.marquee:hover .marquee-in { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (max-width: 760px) { .career-list { grid-template-columns: 1fr; } }

/* Contact: the release at the end of the camera path */
.contact { min-height: 100dvh; padding: 18vh var(--gutter) 40px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 32px; }
.contact h2 { font-size: clamp(60px, 11vw, 190px); max-width: 11em; text-shadow: 0 4px 40px color-mix(in srgb, var(--bg) 70%, transparent); }
.btn-big { font-size: 22px; padding: 20px 34px; }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.copy { font: 500 16px var(--mono); text-decoration: underline; text-underline-offset: 4px; padding: 4px 0; }
.copy:hover { color: var(--accent); }
.contact-links { display: flex; gap: 18px; }
.contact-links a:hover { color: var(--accent); }
.off { margin-top: auto; color: var(--body2); font-size: 15px; background: color-mix(in srgb, var(--bg) 70%, transparent); padding: 6px 10px; margin-left: -10px; }

/* Under the width where pinning stops, the strip becomes a plain column. */
@media (max-width: 900px) {
  .track { flex-direction: column; width: 100%; }
  .panel, .panel:nth-child(even) { width: 100%; min-height: 0; padding: 64px var(--gutter); grid-template-columns: minmax(0, 1fr); border-right: 0; border-bottom: 1px solid var(--line); }
  .panel:nth-child(even) .panel-copy { order: 0; }
  .svc-title { opacity: 1; }
  .svc li .svc-more { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .marquee-in { flex-wrap: wrap; width: auto; padding: 0 var(--gutter); }
  .marquee-in span[aria-hidden] { display: none; }
  .svc-title { opacity: 1; }
  .svc li .svc-more { opacity: 1; }
  .track { flex-direction: column; width: 100%; }
  .panel, .panel:nth-child(even) { width: 100%; min-height: 0; }
}

/* The story caption and the plain "how it works" steps. */
.stage-caption { position: fixed; z-index: 5; top: 78px; right: var(--gutter); font: 500 13px/1 var(--mono); color: var(--accent); padding: 8px 10px; background: color-mix(in srgb, var(--bg) 72%, transparent); box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
.how { padding: 14vh var(--gutter); background: var(--panel); }
.how-list { margin-top: 5vh; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.how-list li { border-top: 2px solid var(--accent); padding-top: 14px; }
.how-list b { font: 900 54px/1 var(--display); color: var(--accent); }
.how-list h3 { margin-top: 8px; font: 700 clamp(26px, 2.4vw, 36px)/1 var(--display); text-transform: uppercase; }
.how-list p { margin-top: 10px; color: var(--body2); }
.contact { background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 55%, transparent), transparent 70%); }
@media (max-width: 900px) { .how-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .speed-list li { max-width: none; } .speed { background: var(--panel); } }
@media (max-width: 640px) { .how-list { grid-template-columns: minmax(0, 1fr); } }
.panel-copy { background: color-mix(in srgb, var(--bg) 55%, transparent); box-shadow: 0 0 40px 30px color-mix(in srgb, var(--bg) 55%, transparent); }
.all .item, .how-list li { background: color-mix(in srgb, var(--bg) 55%, transparent); }
@media (max-width: 900px) { .speed, .panel, .how, .all { background: color-mix(in srgb, var(--bg) 82%, transparent); } }

/* ---- Bulb colours. The remote sets data-theme on <html>; amber is the default. ---------------- */
/* Two keys bring a texture with them: scanlines with green, a drafting grid with blue. */
html::after { content: ''; position: fixed; inset: 0; z-index: 4; pointer-events: none; opacity: 0; transition: opacity .6s; }
[data-tex="scan"]:not([data-mode="light"])::after { opacity: 1; background: repeating-linear-gradient(180deg, transparent 0 2px, rgb(0 0 0 / .22) 2px 3px); }
[data-tex="grid"]::after { opacity: 1; background-image: linear-gradient(color-mix(in srgb, var(--ink) 6%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--ink) 6%, transparent) 1px, transparent 1px); background-size: 32px 32px; }
[data-tex="scan"]:not([data-mode="light"]) h1, [data-tex="scan"]:not([data-mode="light"]) h2 { text-shadow: 0 0 18px color-mix(in srgb, var(--accent) 35%, transparent); }

/* The light floods out of the bulb: the new colours arrive as a circle from its position. */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }

/* ---- The remote ------------------------------------------------------------------------------ */
.remote { position: fixed; z-index: 30; right: clamp(12px, 3vw, 40px); bottom: 0; width: 148px; padding: 16px 14px 26px; border-radius: 30px 30px 22px 22px;
  background: linear-gradient(160deg, #2a2e36, #15171c 46%, #0d0f13); box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), inset 0 -2px 6px rgb(0 0 0 / .6), 0 30px 60px -10px rgb(0 0 0 / .75), 0 0 0 1px rgb(0 0 0 / .6);
  color: #d9dde4; transform: translateY(calc(100% - 74px)) rotate(-7deg); transform-origin: 50% 100%; transition: transform .7s cubic-bezier(.2, 1.4, .35, 1); touch-action: manipulation; }
.remote:hover, .remote:focus-within, .remote.is-up { transform: translateY(14px) rotate(-3deg); }
.remote::before { content: ''; position: absolute; inset: 7px; border-radius: 24px 24px 17px 17px; pointer-events: none; background: radial-gradient(120% 50% at 30% 0%, rgb(255 255 255 / .08), transparent 60%); }
.remote-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding: 0 4px; cursor: pointer; }
.remote-lens { width: 30px; height: 12px; border-radius: 8px; background: radial-gradient(circle at 40% 40%, #5a1418, #1a0507 70%); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .8), 0 0 0 rgb(255 40 40 / 0); transition: box-shadow .08s, background .08s; }
.remote.is-firing .remote-lens { background: radial-gradient(circle at 40% 40%, #ff8a8a, #ff1f2e 60%, #6d0b12); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .4), 0 0 18px 4px rgb(255 40 50 / .55); }
.remote-brand { font: 600 9px/1 var(--mono); letter-spacing: .18em; color: #7d838e; }
.remote-keys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 7px; }
.key { position: relative; min-width: 0; aspect-ratio: 1; border-radius: 50%; overflow: visible; white-space: nowrap; display: grid; place-items: center; font: 700 8.5px/1 var(--mono); letter-spacing: .02em; color: #e6e9ee;
  background: radial-gradient(circle at 35% 30%, #3b404a, #1d2027 70%); box-shadow: inset 0 1px 0 rgb(255 255 255 / .16), 0 2px 0 #08090b, 0 3px 6px rgb(0 0 0 / .5); transition: transform .08s, box-shadow .08s; }
.key:active, .key.is-down { transform: translateY(2px); box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), 0 0 0 #08090b, 0 1px 2px rgb(0 0 0 / .5); }
.key-on { background: radial-gradient(circle at 35% 30%, #ff5d5d, #b3121d 70%); }
.key-off { background: radial-gradient(circle at 35% 30%, #2a2d33, #08090b 70%); }
.key-c { background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 55%, white), var(--c) 55%, color-mix(in srgb, var(--c) 55%, black)); color: rgb(0 0 0 / .55); }
.key-c[aria-pressed="true"]::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; box-shadow: 0 0 0 2px var(--c), 0 0 14px var(--c); }
.key[data-act="flash"], .key[data-act="fade"], .key-off, .key-on { font-size: 6.5px; letter-spacing: 0; }
.remote-label { grid-column: 1 / -1; margin: 4px 0 -2px; font: 500 8px/1 var(--mono); letter-spacing: .16em; color: #6c727d; text-align: center; }
.remote-hint { margin-top: 14px; font: 500 9px/1.35 var(--mono); color: #8a909a; text-align: center; min-height: 2.7em; }
/* The colour dial: spin it to any hue. */
.dial-wrap { display: grid; place-items: center; margin-top: 12px; }
.dial { position: relative; width: 84px; height: 84px; border-radius: 50%; cursor: grab; touch-action: none;
  background: conic-gradient(oklch(.8 .17 0), oklch(.8 .17 30), oklch(.8 .17 60), oklch(.8 .17 90), oklch(.8 .17 120), oklch(.8 .17 150), oklch(.8 .17 180), oklch(.8 .17 210), oklch(.8 .17 240), oklch(.8 .17 270), oklch(.8 .17 300), oklch(.8 .17 330), oklch(.8 .17 360));
  box-shadow: 0 0 0 3px #0a0b0e, 0 3px 8px rgb(0 0 0 / .6), 0 0 22px -4px oklch(.8 .17 var(--h)); }
.dial:active { cursor: grabbing; }
.dial-knob { position: absolute; inset: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #3b404a, #15171c 72%); box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), 0 2px 6px rgb(0 0 0 / .7);
  transform: rotate(calc(var(--dial, 80) * 1deg)); display: grid; justify-items: center; }
.dial-knob::before { content: ''; width: 4px; height: 14px; margin-top: 5px; border-radius: 2px; background: oklch(.85 .17 var(--h)); box-shadow: 0 0 8px oklch(.85 .17 var(--h)); }
.dial-hue { position: absolute; inset: 0; display: grid; place-items: center; font: 600 10px/1 var(--mono); color: #c9ced6; pointer-events: none; }
.dial:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

/* The IR beam from the remote to the bulb. */
.beam { position: fixed; z-index: 31; left: 0; top: 0; height: 3px; transform-origin: 0 50%; pointer-events: none; opacity: 0; border-radius: 3px;
  background: linear-gradient(90deg, rgb(255 60 60 / 0), rgb(255 70 70 / .9) 40%, #fff 50%, rgb(255 70 70 / .9) 60%, rgb(255 60 60 / 0)); background-size: 40% 100%; background-repeat: no-repeat; filter: drop-shadow(0 0 6px rgb(255 50 50 / .8)); }
/* Lights off: the page goes dark and the pointer becomes a torch. */
.torch { position: fixed; inset: 0; z-index: 20; pointer-events: none; opacity: 0; transition: opacity .9s; background: rgb(2 3 5 / .94);
  -webkit-mask-image: radial-gradient(circle at var(--tx, 50%) var(--ty, 40%), transparent 0 110px, #000 250px); mask-image: radial-gradient(circle at var(--tx, 50%) var(--ty, 40%), transparent 0 110px, #000 250px); }
html.lights-off .torch { opacity: 1; }
html.lights-off .remote .key-on { animation: beckon 1.6s ease-in-out infinite; }
@keyframes beckon { 50% { box-shadow: inset 0 1px 0 rgb(255 255 255 / .16), 0 2px 0 #08090b, 0 0 16px 4px rgb(255 60 60 / .7); } }
/* Room for the remote under the hero's demo box on larger screens. */
@media (min-width: 861px) { .hero { padding-bottom: calc(var(--gutter) + 64px); } }

/* ---- Phones and tablets ------------------------------------------------------------------------ */
@media (max-width: 600px) {
  h1 { font-size: clamp(44px, 12.6vw, 72px); }
  .hero { padding-bottom: 76px; }
  .hero-sub { font-size: 16px; margin: 14px 0 20px; }
  .sim { padding: 12px 14px; }
  .sim-note { display: none; }
}
/* Short phones: the copy needs the room, so the demo box goes and the bulb keeps its space. */
@media (max-width: 600px) and (max-height: 760px) {
  .sim { display: none; }
  .remote { width: 136px; transform: translateY(calc(100% - 58px)) rotate(-7deg); }
  .remote:hover, .remote:focus-within, .remote.is-up { transform: translateY(10px) rotate(-3deg); }
}
/* Phones on their side: copy on the left, the shape on the right, and everything in one screen. */
@media (max-height: 560px) and (min-aspect-ratio: 5/4) {
  .hero { padding: 76px var(--gutter) 22px; min-height: 100dvh; }
  .hero-copy { max-width: 56%; }
  .eyebrow { margin-bottom: 10px; font-size: 12px; }
  h1 { font-size: clamp(34px, 6.4vw, 62px); }
  .hero-sub { font-size: 15px; margin: 10px 0 14px; max-width: 30em; }
  .btn { padding: 11px 18px; }
  .sim { display: none; }
  .speed, .services, .how { padding-block: 64px; }
  .svc-title { font-size: clamp(40px, 7vw, 90px); }
  .contact { padding-top: 90px; }
  .contact h2 { font-size: clamp(44px, 8vw, 110px); }
  .remote { transform: translateY(calc(100% - 50px)) rotate(-7deg); }
  .remote:hover, .remote:focus-within, .remote.is-up { transform: translateY(10px) rotate(-3deg) scale(.8); }
}
/* On small screens the stage caption sits at the bottom and only shows when the stage changes. */
@media (max-width: 760px), (max-height: 560px) {
  .stage-caption { top: auto; bottom: 14px; left: var(--gutter); right: auto; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
  .stage-caption.is-on { opacity: 1; transform: none; }
}
/* Fingers need bigger targets than pointers. */
@media (pointer: coarse) {
  .nav nav a:not(.nav-cta) { padding: 12px 2px; }
  .nav-cta { padding: 12px 14px; }
  .nav-name { padding: 10px 0; }
  .contact-links a, .copy { display: inline-block; padding: 12px 0; }
  .demo-bar button, .filters button { min-height: 44px; }
  .remote { width: 216px; padding: 18px 16px 26px; }
  .remote-keys { gap: 10px 8px; }
  .key { font-size: 10px; }
  .key[data-act="flash"], .key[data-act="fade"], .key-off, .key-on { font-size: 8.5px; }
  .dial { width: 104px; height: 104px; }
  .dial-knob { inset: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .remote { transition: none; }
  .remote.is-firing .remote-lens { box-shadow: none; }
  .beam { display: none; }
}
