/* GLN Fin 18 — "GLN, taken apart"
   Black stage, one object, precise numbers. The thermal gradient appears only where a temperature is shown. */

@property --gutter-px { syntax: '<length>'; inherits: true; initial-value: 24px; }
/* the hero's light band, animated in CSS so it starts at first paint, before any library arrives */
@property --sweep-x { syntax: '<length>'; inherits: true; initial-value: -9999px; }
@property --peak { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --ra { syntax: '<number>'; inherits: true; initial-value: 0.1; }

:root {
  --black: #000000;
  --white: #ffffff;
  --soft: #f2f2f0;
  --grey: #8e8e93;          /* secondary text on black (6.4:1) */
  --grey-ink: #6e6e73;      /* secondary text on soft white (4.6:1) */
  --cool: #4da3ff;
  --warm: #ffb547;
  --thermal: linear-gradient(90deg, var(--cool), var(--warm));
  --line-d: rgba(255, 255, 255, 0.16);
  --line-l: rgba(0, 0, 0, 0.14);
  --font: "Geist", "Geist Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: clamp(1.25rem, 4.5vw, 4rem);
  --gutter-px: clamp(1.25rem, 4.5vw, 4rem);
  --wrap: 82.5rem;
  --nav-h: 4rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}
/* local stand-in with Geist's widths, so text doesn't reflow when the web font arrives */
@font-face { font-family: "Geist Fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Arimo"); font-weight: 100 549; size-adjust: 102.5%; }
@font-face { font-family: "Geist Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Arimo Bold"); font-weight: 550 900; size-adjust: 100%; }
@supports (background: linear-gradient(in oklab, red, blue)) {
  :root { --thermal: linear-gradient(90deg in oklab, var(--cool), var(--warm)); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
address { font-style: normal; }

:focus-visible { outline: 2px solid var(--white); outline-offset: 0.1875rem; border-radius: 0.25rem; }
.soft :focus-visible { outline-color: var(--black); }

.skip {
  position: fixed; left: 0.75rem; top: 0.75rem; z-index: 100;
  padding: 0.625rem 1rem; border-radius: 62.4375rem; background: var(--white); color: var(--black);
  transform: translateY(-160%); transition: transform 0.2s;
}
.skip:focus { transform: none; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

h1, h2 { font-weight: 620; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
h2 { font-size: clamp(2.375rem, 5.4vw, 5.6rem); }
h3 { font-size: 1.25rem; font-weight: 580; letter-spacing: -0.01em; line-height: 1.3; }
.lead { font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.5; max-width: 38em; }
.small { font-size: 0.9375rem; color: var(--grey); }
.soft .small { color: var(--grey-ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0 1.5rem; border: 0; border-radius: 62.4375rem;
  background: var(--white); color: var(--black);
  font-size: 1rem; font-weight: 560; letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { background: #dcdcd8; }
.btn:active { transform: scale(0.98); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: #2a2a2c; }
.btn-sm { min-height: 2.75rem; padding: 0 1.1rem; font-size: 0.9375rem; }
.text-link {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3125rem;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  transition: text-decoration-color 0.2s;
}
.text-link:hover { text-decoration-color: currentColor; }

/* ------------------------------------------------------------------ nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; gap: 1.75rem; padding: 0 var(--gutter);
  background: rgba(0, 0, 0, 0.74);
  -webkit-backdrop-filter: saturate(1.4) blur(1.125rem); backdrop-filter: saturate(1.4) blur(1.125rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.nav { transition: background-color 0.35s, color 0.35s, border-color 0.35s; }
.nav.nav-light { background: rgba(242, 242, 240, 0.8); color: var(--black); border-bottom-color: rgba(0, 0, 0, 0.08); }
.nav.nav-light .nav-links a { color: #3a3a3c; }
.nav.nav-light .nav-links a:hover { color: var(--black); }
.nav.nav-light .nav-cta { background: var(--black); color: var(--white); }
.nav.nav-light .menu-btn { border-color: rgba(0, 0, 0, 0.2); }
.nav.nav-light :focus-visible { outline-color: var(--black); }
.wordmark {
  font-weight: 700; font-size: 1.3125rem; letter-spacing: -0.045em; text-decoration: none;
  display: inline-flex; align-items: center; min-height: 2.75rem;
}
.nav-links { margin-left: auto; }
.nav-links ul { display: flex; gap: 0.25rem; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.75rem;
  font-size: 0.9375rem; color: #d1d1d6; text-decoration: none; border-radius: 62.4375rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.menu-btn {
  display: none; min-height: 2.75rem; min-width: 2.75rem; padding: 0 0.875rem; margin-left: 0.25rem;
  border: 1px solid var(--line-d); border-radius: 62.4375rem; background: transparent; font-size: 0.9375rem;
}
.menu {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 49; background: var(--black);
  padding: 1.5rem var(--gutter) 2.5rem; overflow-y: auto;
}
.menu li { border-bottom: 1px solid var(--line-d); }
.menu a { display: flex; align-items: center; min-height: 4rem; font-size: 1.75rem; font-weight: 560; letter-spacing: -0.03em; text-decoration: none; }

/* hero intro: CSS only, gated by .js; main.js syncs the 3D panel to the same clock.
   Timeline: band 0.1-1.3s, headline 0.62-1.5s, side copy and nav 0.9-1.5s. */
.js .hero-name { animation: gln-sweep 1.2s cubic-bezier(0.42, 0, 0.58, 1) 0.1s both, gln-peak 1.2s linear 0.1s both, gln-rest 0.7s ease-out 0.75s both; }
.js .hero h1 .ln > span { animation: gln-rise 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.62s both; }
.js .hero h1 .ln + .ln > span { animation-delay: 0.7s; }
.js .hero-side { animation: gln-lift 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both; }
.js .nav { animation: gln-appear 0.5s ease-out 0.95s both; }
@keyframes gln-sweep { from { --sweep-x: -25vw; } to { --sweep-x: 125vw; } }
@keyframes gln-peak { 0% { --peak: 0; } 15% { --peak: 0.95; } 80% { --peak: 0.95; } 100% { --peak: 0; } }
@keyframes gln-rest { from { --ra: 0.035; } to { --ra: 0.105; } }
@keyframes gln-rise { from { transform: translateY(108%); } }
@keyframes gln-lift { from { opacity: 0; transform: translateY(0.875rem); } }
@keyframes gln-appear { from { opacity: 0; } }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 40rem;
  overflow: clip; background: var(--black);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; will-change: transform; }
.hero-name {
  --x0: 0px;
  position: absolute; inset: 0 0 8vh; z-index: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; column-gap: 34vh;
  font-weight: 700; font-size: clamp(9rem, 24vw, 30rem); line-height: 0.8; letter-spacing: -0.065em;
  user-select: none; pointer-events: none; white-space: nowrap;
}
.hero-name span:first-child { text-align: right; }
.hero-name span {
  color: transparent;
  background-image: linear-gradient(100deg,
    rgba(255, 255, 255, var(--ra)) calc(var(--sweep-x) - var(--x0) - 13.75rem),
    rgba(255, 255, 255, max(var(--ra), var(--peak))) calc(var(--sweep-x) - var(--x0)),
    rgba(255, 255, 255, var(--ra)) calc(var(--sweep-x) - var(--x0) + 13.75rem));
  -webkit-background-clip: text; background-clip: text;
}
.hero-copy {
  position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: clamp(1.75rem, 6vh, 4rem);
  display: grid; grid-template-columns: 1fr 1fr; align-items: end; column-gap: 40vh;
}
.hero h1 { font-size: clamp(2.5rem, 3.6vw, 4rem); max-width: 10.5em; }
.hero h1 .ln { display: block; overflow: clip; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.hero h1 .ln > span { display: block; }
.hero-side { justify-self: end; max-width: 25.5rem; }
.hero-side p { color: #c7c7cc; font-size: 1.0625rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 1.375rem; }
.webgl-ready .hero-canvas { opacity: 1; }

/* ------------------------------------------------------------------ chapters */
.chapter { position: relative; padding: clamp(6rem, 14vw, 12.5rem) 0; }
.soft { background: var(--soft); color: var(--black); color-scheme: light; }
.dark { background: var(--black); color: var(--white); }
.soft .text-link { text-decoration-color: rgba(0, 0, 0, 0.4); }

/* statement */
.statement { padding-top: clamp(6.875rem, 16vw, 14.375rem); }
.statement-lines { font-size: clamp(3.5rem, 11.2vw, 11.5rem); line-height: 0.9; letter-spacing: -0.055em; font-weight: 650; }
.statement-lines span { display: block; }
.statement-body {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem clamp(1.5rem, 4vw, 4rem);
  margin-top: clamp(3.5rem, 7vw, 6.5rem); max-width: 60rem; margin-left: auto;
}
.statement-body p { font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); }

.felt {
  margin-top: clamp(4.5rem, 9vw, 8.75rem); padding-top: 1.75rem; border-top: 1px solid var(--line-l);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1.25rem clamp(1.5rem, 5vw, 5rem); align-items: start;
}
.felt-title { font-size: clamp(1.375rem, 2vw, 1.75rem); letter-spacing: -0.02em; max-width: 14em; }
.felt-scale { position: relative; grid-row: span 3; height: 9.375rem; margin-top: 0.5rem; }
.felt-bar { position: absolute; left: 0; right: 0; top: 4rem; height: 0.5rem; border-radius: 0.5rem; background: var(--thermal); }
.felt-mark, .felt-pin { position: absolute; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; white-space: nowrap; }
.felt-mark { top: 0; }
.felt-mark span, .felt-pin span { font-size: 0.875rem; color: var(--grey-ink); }
.felt-mark b, .felt-pin b { font-weight: 560; font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.felt-mark::after { content: ""; width: 1px; height: 0.75rem; margin-top: 0.25rem; background: rgba(0, 0, 0, 0.35); }
.felt-mark-walls { left: 22.2%; }
.felt-mark-air { left: 77.8%; }
.felt-pin { --pos: 50%; --c: #b9b3a6; left: var(--pos); top: 3.5rem; }
.felt-pin::before {
  content: ""; width: 1.5rem; height: 1.5rem; border-radius: 50%; margin-bottom: 0.625rem;
  background: var(--c); box-shadow: 0 0 0 0.25rem var(--soft), 0 0 0 0.3125rem rgba(0, 0, 0, 0.2);
}
.felt-text { font-size: 1.0625rem; max-width: 26em; }
.felt figcaption { font-size: 0.9375rem; color: var(--grey-ink); max-width: 30em; }

/* ------------------------------------------------------------------ exploded view */
.built { position: relative; background: var(--black); color: var(--white); }
.built-stage { position: relative; display: flex; flex-direction: column; padding: calc(var(--nav-h) + 3.5rem) var(--gutter) 5rem; }
.built-stage > .built-head { order: -1; }
.built-canvas { width: 100%; height: 76vh; min-height: 26.25rem; opacity: 0; transition: opacity 0.8s; }
.built.is-3d .built-canvas { opacity: 1; }
.no-webgl .built-canvas, html:not(.js) .built-canvas { display: none; }
.built-lines { display: none; }
.built-head { max-width: 30rem; margin-bottom: 2rem; }
.built-head h2 { font-size: clamp(2rem, 3.4vw, 3.6rem); }
.built-hint { margin-top: 0.75rem; color: var(--grey); }
.callouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2rem 2.5rem; margin-top: 2.5rem; }
.callout h3 { font-size: 1.125rem; }
.callout p { color: var(--grey); font-size: 0.96875rem; line-height: 1.5; margin-top: 0.375rem; }
.callout .fig { font-family: var(--mono); font-size: 0.875rem; color: var(--white); margin-top: 0.625rem; letter-spacing: -0.01em; }
.built-end { margin-top: 2.5rem; font-size: clamp(1.125rem, 1.6vw, 1.375rem); color: #d1d1d6; }

.built.is-overlay .built-stage { height: 100vh; height: 100svh; min-height: 35rem; padding: 0; overflow: hidden; }
.built.is-overlay .built-canvas { position: absolute; inset: 0; height: 100%; min-height: 0; }
.built.is-overlay .built-lines { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.built.is-overlay .built-head { position: absolute; top: calc(var(--nav-h) + 1.75rem); left: var(--gutter); margin: 0; z-index: 2; }
.built.is-overlay .callouts { display: block; margin: 0; }
.built.is-overlay .callout { position: absolute; left: 0; top: 0; z-index: 2; width: min(17rem, 23vw); will-change: transform, opacity; }
.built.is-overlay.is-3d .callout { opacity: 0; }
.built.is-overlay .callout[data-side="right"] { text-align: left; }
.built.is-overlay .built-end { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 2.25rem; margin: 0; text-align: center; z-index: 2; }
.built.is-overlay.is-3d .built-end { opacity: 0; }
.built-lines path { fill: none; stroke: rgba(255, 255, 255, 0.72); stroke-width: 1; }
.built-lines circle { fill: var(--white); }
.built.is-seq .callout { width: auto; right: var(--gutter); max-width: 26rem; }
.built.is-seq .built-end { bottom: 1.75rem; }

/* ------------------------------------------------------------------ quiet */
.quiet-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.5rem clamp(2rem, 5vw, 6rem); align-items: end; }
.quiet-head h2 { max-width: 9em; }
.quiet-head p { font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); max-width: 30em; }
.wave { margin-top: clamp(4rem, 8vw, 7.5rem); }
.wave-plot { height: clamp(9.375rem, 20vw, 16.25rem); }
.wave-svg { width: 100%; height: 100%; overflow: visible; }
.wave-ghost, .wave-live { fill: none; stroke-linecap: round; stroke-width: 3; }
.wave-ghost { stroke: rgba(0, 0, 0, 0.12); }
.wave-live { stroke: var(--black); }
.wave-flat { stroke: var(--black); stroke-width: 3; stroke-linecap: round; opacity: 0; }
html:not(.js) .wave-flat { opacity: 1; }
.wave figcaption { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin-top: 1.75rem; font-size: 0.9375rem; color: var(--grey-ink); }
.key { display: inline-flex; align-items: center; gap: 0.625rem; color: var(--black); }
.key::before { content: ""; width: 1.375rem; height: 0.1875rem; border-radius: 0.1875rem; background: var(--black); }
.key-ghost::before { background: rgba(0, 0, 0, 0.18); }
.wave-note { margin-left: auto; }

.photo { position: relative; }
.photo img { width: 100%; }
.photo figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 0.625rem; margin-top: 0.875rem; font-size: 0.9375rem; color: var(--grey-ink); }
.dark .photo figcaption { color: var(--grey); }
.tag {
  display: inline-flex; align-items: center; height: 1.625rem; padding: 0 0.625rem; border-radius: 62.4375rem;
  border: 1px solid currentColor; font-size: 0.8125rem; font-weight: 560; line-height: 1;
}
.quiet-photo { margin-top: clamp(5rem, 10vw, 9.375rem); }
.quiet-photo img { aspect-ratio: 2 / 1; object-fit: cover; }

/* ------------------------------------------------------------------ app */
.app { overflow: clip; }
.app-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem clamp(2.5rem, 7vw, 7.5rem); align-items: center; }
.app-copy h2 { max-width: 8em; }
.app-copy .lead { margin-top: 1.5rem; color: #d1d1d6; }
.features { margin-top: 2.5rem; border-top: 1px solid var(--line-d); }
.features li { border-bottom: 1px solid var(--line-d); }
.feature {
  display: grid; gap: 0.375rem; width: 100%; padding: 1.125rem 0 1.125rem 1.375rem; border: 0; background: none; text-align: left;
  position: relative; color: var(--grey); transition: color 0.3s;
}
.feature::before { content: ""; position: absolute; left: 0; top: 1.375rem; width: 0.5rem; height: 0.5rem; border-radius: 50%; border: 1px solid currentColor; transition: background-color 0.3s; }
.feature-t { font-size: 1.1875rem; font-weight: 580; letter-spacing: -0.015em; }
.feature-d { font-size: 1rem; line-height: 1.5; }
.feature[aria-pressed="true"] { color: var(--white); }
.feature[aria-pressed="true"]::before { background: var(--white); }
.feature[aria-pressed="true"] .feature-d { color: #c7c7cc; }
.feature:hover { color: #d1d1d6; }
.app-copy .small { margin-top: 1.25rem; }

.phone-wrap { display: flex; justify-content: center; perspective: 100rem; }
.phone {
  --pw: 20rem;
  width: var(--pw); aspect-ratio: 320 / 672; padding: 0.75rem; border-radius: 3.5rem;
  background: #1a1a1c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), inset 0 0 0 0.25rem #0c0c0d, 0 2.5rem 7.5rem rgba(0, 0, 0, 0.9);
  transform-origin: 50% 80%;
}
.phone-screen {
  position: relative; height: 100%; border-radius: 2.8125rem; overflow: hidden; background: var(--black);
  display: flex; flex-direction: column; padding: 0 1rem; color: var(--white); font-size: 0.875rem;
}
.phone-status { display: flex; align-items: center; justify-content: space-between; height: 3rem; padding: 0 0.75rem; font-size: 0.875rem; font-weight: 600; }
.island { width: 5.75rem; height: 1.75rem; border-radius: 1.25rem; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07); }
.status-r { display: flex; gap: 0.1875rem; align-items: flex-end; }
.status-r i { width: 0.25rem; border-radius: 1px; background: var(--white); }
.status-r i:nth-child(1) { height: 0.3125rem; } .status-r i:nth-child(2) { height: 0.5rem; } .status-r i:nth-child(3) { height: 0.6875rem; }
.app-top { display: flex; align-items: center; justify-content: space-between; padding: 0.375rem 0.25rem 0.25rem; }
.app-home { font-size: 1.5rem; font-weight: 640; letter-spacing: -0.03em; }
.app-mode { display: inline-flex; align-items: center; gap: 0.4375rem; height: 1.875rem; padding: 0 0.75rem; border-radius: 62.4375rem; background: #1c1c1e; font-size: 0.8125rem; font-weight: 560; }
.app-mode i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--cool); }

.app-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.app-panel[hidden] { display: none; }
.dial { --t: 0.643; --knob: #c9b58f; --size: 13.25rem; position: relative; width: var(--size); height: var(--size); margin: 0.625rem auto 0; }
.dial-track, .dial-fill {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from -135deg, var(--cool), var(--warm) 270deg, transparent 270deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 0.75rem), #000 calc(100% - 0.6875rem));
  mask: radial-gradient(farthest-side, transparent calc(100% - 0.75rem), #000 calc(100% - 0.6875rem));
}
@supports (background: conic-gradient(from 0deg in oklab, red, blue)) {
  .dial-track, .dial-fill { background: conic-gradient(from -135deg in oklab, var(--cool), var(--warm) 270deg, transparent 270deg); }
}
.dial-track { opacity: 0.2; }
.dial-fill {
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 0.75rem), #000 calc(100% - 0.6875rem)), conic-gradient(from -135deg, #000 calc(var(--t) * 270deg), transparent 0);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(farthest-side, transparent calc(100% - 0.75rem), #000 calc(100% - 0.6875rem)) intersect, conic-gradient(from -135deg, #000 calc(var(--t) * 270deg), transparent 0);
}
.dial-knob {
  position: absolute; left: 50%; top: 50%; width: 1.625rem; height: 1.625rem; margin: -0.8125rem 0 0 -0.8125rem; border-radius: 50%;
  background: var(--knob); box-shadow: 0 0 0 0.25rem var(--black);
  transform: rotate(calc(-135deg + var(--t) * 270deg)) translateY(calc(var(--size) / -2 + 0.375rem));
}
.dial-hit { position: absolute; inset: -0.5rem; border-radius: 50%; cursor: grab; touch-action: none; z-index: 2; }
.dial-hit.is-dragging { cursor: grabbing; }
.dial-hit:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; border-radius: 50%; }
.dial-centre { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.dial-room { font-size: 0.8125rem; color: var(--grey); font-weight: 520; }
.dial-value { font-size: 3.75rem; font-weight: 300; letter-spacing: -0.05em; line-height: 1; margin: 0.25rem 0 0.375rem; font-variant-numeric: tabular-nums; }
.dial-deg { font-size: 0.5em; vertical-align: 0.9em; margin-left: 2px; color: #c7c7cc; }
.dial-now { font-size: 0.8125rem; color: var(--grey); }
.dial-steps { display: flex; align-items: center; justify-content: space-between; width: 14.5rem; margin: 0.25rem auto 0.75rem; }
.step { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; background: #1c1c1e; font-size: 1.375rem; line-height: 1; display: grid; place-items: center; }
.step:hover { background: #2c2c2e; }
.dial-hint { font-size: 0.8125rem; color: var(--grey); }
.rooms { display: grid; gap: 0.375rem; }
.room {
  display: grid; grid-template-columns: 0.625rem 1fr auto auto; align-items: center; gap: 0.625rem; width: 100%; min-height: 2.875rem;
  padding: 0 0.875rem; border: 0; border-radius: 0.875rem; background: #1c1c1e; text-align: left; font-size: 0.875rem;
  box-shadow: inset 0 0 0 1px transparent; transition: box-shadow 0.2s;
}
.room[aria-pressed="true"] { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55); }
.room-dot { width: 0.625rem; height: 0.625rem; border-radius: 50%; background: var(--grey); }
.room-name { font-weight: 540; }
.room-now { color: var(--grey); font-variant-numeric: tabular-nums; }
.room-set { font-weight: 620; font-variant-numeric: tabular-nums; min-width: 3.2em; text-align: right; }

.panel-title { font-size: 1.0625rem; font-weight: 600; padding: 0.625rem 0.25rem 0.875rem; }
.week { display: grid; gap: 0.4375rem; padding: 0 0.25rem; }
.week-row { display: grid; grid-template-columns: 0.875rem 1fr; align-items: center; gap: 0.625rem; font-size: 0.8125rem; color: var(--grey); }
.strip { display: flex; height: 1rem; border-radius: 0.3125rem; overflow: hidden; gap: 2px; }
.strip i { display: block; height: 100%; }
.week-axis { display: flex; justify-content: space-between; margin-left: 1.5rem; font-size: 0.75rem; color: var(--grey); font-variant-numeric: tabular-nums; }
.week-list { margin-top: 1.125rem; border-top: 1px solid var(--line-d); }
.week-list li { display: grid; grid-template-columns: 3.5rem 1fr auto; padding: 0.625rem 0.25rem; border-bottom: 1px solid var(--line-d); font-variant-numeric: tabular-nums; }
.week-list span:first-child { color: var(--grey); }
.away-switch { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 3.5rem; padding: 0 1rem; border: 0; border-radius: 1rem; background: #1c1c1e; font-size: 1rem; font-weight: 560; }
.switch { width: 3.25rem; height: 2rem; border-radius: 62.4375rem; background: #3a3a3c; padding: 0.1875rem; transition: background-color 0.25s; }
.switch i { display: block; width: 1.625rem; height: 1.625rem; border-radius: 50%; background: var(--white); transition: transform 0.3s var(--ease); }
.away-switch[aria-checked="true"] .switch { background: var(--white); }
.away-switch[aria-checked="true"] .switch i { background: var(--black); transform: translateX(1.25rem); }
.away-body { padding: 1.125rem 0.25rem 0; }
.away-state { color: #d1d1d6; }
.away-temp { display: flex; flex-direction: column-reverse; margin: 1.75rem 0 1.375rem; }
.away-num { font-size: 3.5rem; font-weight: 300; letter-spacing: -0.05em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.away-cap { font-size: 0.8125rem; color: var(--grey); }
.away-note { color: var(--grey); font-size: 0.875rem; line-height: 1.5; }

.app-tabs { display: grid; grid-template-columns: repeat(3, 1fr); margin: auto -1rem 0; padding: 0.25rem 0.5rem 1.125rem; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.app-tabs button { min-height: 2.875rem; border: 0; background: none; font-size: 0.8125rem; font-weight: 560; color: var(--grey); border-radius: 0.75rem; }
.app-tabs button[aria-selected="true"] { color: var(--white); }
.phone-power { position: absolute; inset: 0; background: var(--black); opacity: 0; pointer-events: none; z-index: 5; }
.app-armed .phone-power { opacity: 1; }

/* ------------------------------------------------------------------ specs */
.specs h2 { max-width: 10em; }
.spec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(3.5rem, 7vw, 6.25rem); border-top: 1px solid var(--line-l); }
.spec { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0.875rem; padding: clamp(1.75rem, 3.4vw, 3rem) 1.5rem clamp(2rem, 4vw, 3.5rem) 0; border-bottom: 1px solid var(--line-l); }
.spec dd { display: flex; align-items: baseline; font-family: var(--mono); font-weight: 400; font-size: clamp(3.5rem, 7.4vw, 8.6rem); line-height: 0.95; letter-spacing: -0.06em; }
.spec .n { display: inline-block; text-align: right; font-variant-numeric: tabular-nums; }
.spec .u { font-family: var(--font); font-size: 0.3em; font-weight: 520; letter-spacing: -0.01em; margin-left: 0.35em; }
.spec .p { font-size: 0.55em; margin-right: 0.12em; color: var(--grey-ink); }
.spec dt { font-size: 1.0625rem; color: var(--grey-ink); max-width: 16em; }
.finishes { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem; margin-top: 3rem; }
.finishes h3 { font-size: 1.0625rem; }
.finishes ul { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; }
.finishes li { display: inline-flex; align-items: center; gap: 0.625rem; font-size: 1.0625rem; }
.sw { width: 1.375rem; height: 1.375rem; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18); }
.sw-alu { background: linear-gradient(135deg, #e3e5e8, #a9adb3); }
.sw-graphite { background: #3a3c41; }
.sw-chalk { background: #e8e6e1; }
.spec-note { margin-top: 1.5rem; }

/* ------------------------------------------------------------------ install */
.install-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.5rem clamp(2rem, 5vw, 6rem); align-items: end; }
.install-head h2 { max-width: 12em; }
.install-head .lead { color: #d1d1d6; }
.install-photo { margin-top: clamp(3.5rem, 7vw, 6.25rem); }
.install-photo img { aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 30%; }
.steps-wrap { --p: 1; --g: clamp(1.5rem, 3vw, 3rem); position: relative; margin-top: clamp(4rem, 8vw, 7.5rem); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem var(--g); counter-reset: none; }
.steps-rail { position: absolute; left: 1.25rem; top: 1.25rem; width: calc(75% + var(--g) * 0.75); height: 1px; background: var(--line-d); }
.steps-rail i { position: absolute; inset: 0; background: var(--white); transform-origin: 0 50%; transform: scaleX(var(--p)); }
.step-item { position: relative; }
.step-n {
  position: relative; z-index: 1; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--black); border: 1px solid rgba(255, 255, 255, 0.35); font-size: 0.9375rem; font-weight: 560; font-variant-numeric: tabular-nums;
  transition: background-color 0.35s, color 0.35s, border-color 0.35s;
}
.step-item.is-on .step-n { background: var(--white); color: var(--black); border-color: var(--white); }
.step-item h3 { margin-top: 1.75rem; font-size: 1.5rem; letter-spacing: -0.02em; }
.when { margin-top: 0.25rem; color: var(--grey); font-size: 0.9375rem; }
.step-item p:last-child { margin-top: 0.875rem; color: #d1d1d6; font-size: 1rem; }
.install .small { margin-top: 3rem; }

/* ------------------------------------------------------------------ survey */
.survey-head h2 { max-width: 10em; }
.survey-head .lead { margin-top: 1.25rem; }
.survey-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 3.5rem clamp(2.5rem, 6vw, 7rem); margin-top: clamp(3.5rem, 7vw, 6rem); align-items: start; }
.choice { border: 0; margin: 0 0 2rem; padding: 0; min-width: 0; }
.choice legend { font-size: 1.125rem; font-weight: 580; margin-bottom: 0.875rem; padding: 0; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.625rem; }
.tile { position: relative; display: flex; }
.tile input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tile span {
  flex: 1; display: flex; align-items: center; min-height: 4rem; padding: 0 1.125rem; border-radius: 1rem;
  background: var(--white); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16); font-weight: 540;
  transition: box-shadow 0.2s;
}
.tile input:checked + span { box-shadow: inset 0 0 0 2px var(--black); }
.tile input:focus-visible + span { outline: 2px solid var(--black); outline-offset: 0.1875rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1rem; margin-bottom: 2rem; }
.field { display: grid; gap: 0.5rem; }
.field label { font-size: 0.9375rem; font-weight: 560; }
.field input, .field select {
  width: 100%; min-height: 3.375rem; padding: 0 1rem; border: 0; border-radius: 0.875rem; background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.22); font-size: 1.0625rem; color: var(--black); appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, #000 50%), linear-gradient(135deg, #000 50%, transparent 50%);
  background-position: calc(100% - 1.375rem) 50%, calc(100% - 1rem) 50%; background-size: 0.375rem 0.375rem; background-repeat: no-repeat; padding-right: 2.5rem;
}
.field input:focus-visible, .field select:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; }
.field [aria-invalid="true"] { box-shadow: inset 0 0 0 2px #b3261e; }
.form-status { margin-top: 1rem; min-height: 1.6em; font-size: 1rem; }
.form-status[data-state="error"] { color: #a1231b; }
.survey-aside h3 { margin-top: 2rem; font-size: 1.125rem; }
.survey-aside address, .next { margin-top: 0.625rem; color: var(--grey-ink); line-height: 1.65; }
.survey-aside address a { color: var(--black); }
.next { list-style: decimal; padding-left: 1.2em; }
.survey-photo img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 45%; }

/* ------------------------------------------------------------------ footer */
.footer { padding: 4.5rem 0 3.5rem; background: var(--black); color: var(--white); }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem 3rem; align-items: start; }
.wordmark-lg { font-size: 2.5rem; min-height: 0; line-height: 1; }
.footer-line { color: var(--grey); padding-top: 0.5rem; }
.footer nav ul { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.footer nav a { display: inline-flex; align-items: center; min-height: 2.75rem; color: #d1d1d6; text-decoration: none; }
.footer nav a:hover { color: var(--white); }
.footer-notes { grid-column: 1 / -1; display: grid; gap: 0.375rem; padding-top: 1.75rem; border-top: 1px solid var(--line-d); font-size: 0.9375rem; color: var(--grey); }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .menu-btn { display: inline-flex; align-items: center; }
  .hero-copy { grid-template-columns: 1fr; row-gap: 1.25rem; }
  .hero-side { justify-self: start; }
  .hero h1 { max-width: 9em; }
}
@media (min-width: 768px) and (max-width: 1100px) {
  .hero-copy { left: var(--gutter); right: auto; max-width: 38%; }
  .app-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .phone { --pw: 18.75rem; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-rail { display: none; }
}
@media (max-width: 900px) {
  .survey-grid { grid-template-columns: 1fr; }
  .survey-aside { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 2rem; }
  .survey-photo { grid-row: span 4; }
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  :root { --nav-h: 3.625rem; }
  body { font-size: 1.0625rem; }
  .nav { gap: 0.5rem; }
  .statement-body, .felt, .quiet-head, .install-head, .app-grid { grid-template-columns: 1fr; }
  .felt-scale { grid-row: auto; margin-top: 1.75rem; }
  .felt-mark span, .felt-pin span { font-size: 0.8125rem; }
  .app-copy { order: -1; }
  .phone { --pw: min(20rem, 88vw); }
  .dial { --size: min(13.25rem, 58vw); }
  .dial-steps { width: calc(min(13.25rem, 58vw) + 1.25rem); }
  .spec-grid { grid-template-columns: 1fr; }
  .spec { padding-right: 0; }
  .steps { grid-template-columns: 1fr; gap: 2.5rem; padding-left: 4rem; }
  .steps-rail { left: 1.25rem; top: 1.25rem; width: 1px; height: calc(100% - 3.75rem); }
  .steps-rail i { transform-origin: 50% 0; transform: scaleY(var(--p)); }
  .step-n { position: absolute; left: -4rem; top: 0; }
  .step-item h3 { margin-top: 0.375rem; }
  .tile span { min-height: 3.5rem; padding: 0.5rem 0.75rem; justify-content: center; text-align: center; line-height: 1.25; }
  .fields { grid-template-columns: 1fr; }
  .survey-aside { display: block; }
  .wave-note { margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .small, .photo figcaption, .wave figcaption, .felt figcaption, .callout p, .spec-note { font-size: 1rem; }
  .built-stage { padding-top: calc(var(--nav-h) + 2rem); }
  .built-canvas { height: 64vh; }
  .built.is-overlay .built-head { top: calc(var(--nav-h) + 1.25rem); right: var(--gutter); }
  .built.is-overlay .built-head h2 { font-size: 1.75rem; }
  .built.is-overlay .built-hint { margin-top: 0.375rem; font-size: 0.9375rem; }
}
@media (max-width: 420px) {
  .nav-cta { padding: 0 0.9rem; }
}

/* large screens: from 1440 to 2560 the whole composition grows, as if the 1440 design were enlarged.
   Everything is in rem, so the root size carries type and spacing; the gutter and container follow the viewport. */
@media (min-width: 1441px) {
  html { font-size: min(calc(100% + (100vw - 1440px) * 0.0042), 137.5%); }
  :root { --gutter: calc(64px + (100vw - 1440px) * 0.045); --gutter-px: calc(64px + (100vw - 1440px) * 0.045); --wrap: 2400px; }
}
@media (min-width: 1800px) {
  .built.is-overlay .callout { width: min(19rem, 23vw); }
  .callout h3 { font-size: 1.25rem; }
  .callout p { font-size: 1.0625rem; }
  .callout .fig { font-size: 0.9375rem; }
  .quiet-photo img { aspect-ratio: 21 / 9; }
  .phone-wrap { transform: scale(1.12); transform-origin: 50% 50%; margin: 3rem 0; }
}

/* phones and portrait tablets: the panel stands above the copy */
@media (max-width: 767px), (max-width: 1100px) and (orientation: portrait) {
  .hero { height: auto; min-height: 100svh; display: flex; flex-direction: column; }
  .hero-canvas { position: absolute; inset: 0 0 auto; height: 64svh; min-height: 27.5rem; }
  .hero-name { inset: 0 0 auto; height: 64svh; min-height: 27.5rem; column-gap: min(30vw, 26svh); font-size: min(34vw, 30svh); padding-top: var(--nav-h); }
  .hero-copy { position: relative; left: auto; right: auto; bottom: auto; margin: max(64svh, 27.5rem) var(--gutter) 0; padding-bottom: 3rem; max-width: 40rem; }
  .hero h1 { font-size: clamp(2.5rem, 6.4vw, 3.5rem); max-width: 9em; }
}
@media (min-width: 1000px) and (max-width: 1199px) {
  .built.is-overlay:not(.is-seq) .callout { width: 24vw; }
}

/* ------------------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  .js .hero-name, .js .hero h1 .ln > span, .js .hero-side, .js .nav { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .hero-canvas { will-change: auto; }
}
