/* Advergent. One visual world: a black field, light that heats up as it nears the fixed point.
   Layout idea: the page runs cold to hot, like the funnel it describes. */
:root {
  --void: #000000;
  --filament: #f4f0e8;
  --ash: #a8a39a;
  --cold: #1428f0;
  --ember: #ff5a14;
  --rule: rgba(244, 240, 232, 0.2);

  --display: "Imbue", Didot, "Bodoni 72", "Times New Roman", serif;
  --text: "Libre Franklin", "Franklin Gothic Medium", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.25rem, 4.4vw, 4.5rem);
  --gap: clamp(1rem, 2vw, 2rem);
  --section: clamp(6rem, 13vw, 13rem);
  --step: clamp(0.9rem, 7vw, 7.5rem);

  --size-small: 0.9375rem;
  --size-body: 1.0625rem;
  --size-lead: clamp(1.25rem, 1.75vw, 1.625rem);
  --size-h3: clamp(2.125rem, 3.1vw, 3.25rem);
  --size-h2: clamp(3.75rem, 9.6vw, 10.5rem);
  --size-h1: clamp(3.625rem, min(7.1vw, 11.2vh), 9.5rem);
  color-scheme: dark;
}

@font-face {
  font-family: "Imbue";
  src: url("fonts/imbue.woff2") format("woff2");
  font-weight: 200 500;
  font-display: swap;
}
@font-face {
  font-family: "Libre Franklin";
  src: url("fonts/libre-franklin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; background: var(--void); }
body {
  margin: 0;
  background: var(--void);
  color: var(--filament);
  font-family: var(--text);
  font-size: var(--size-body);
  font-weight: 350;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
  overflow-x: clip;
}
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 300; text-wrap: balance; }
h2 { font-size: var(--size-h2); line-height: 0.96; letter-spacing: -0.006em; }
h3 { font-size: var(--size-h3); line-height: 1.04; font-weight: 340; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--ember); }
img, canvas { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
.ceiling :focus-visible { outline-color: #fff; }
.closing :focus-visible { outline-color: #000; }
.skip {
  position: fixed; left: var(--gutter); top: -4rem; z-index: 100;
  background: var(--filament); color: #000; padding: 0.6rem 1rem; text-decoration: none;
}
.skip:focus { top: 0.75rem; }
.wrap { padding-inline: var(--gutter); max-width: 1760px; margin-inline: auto; }
.lead { font-size: var(--size-lead); line-height: 1.42; font-weight: 300; max-width: 34em; }
.quiet { color: var(--ash); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Header */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--gutter);
  transition: background-color 0.3s ease;
}
.site-head.is-solid { background: rgba(0, 0, 0, 0.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand svg { width: 1.45rem; height: 1.45rem; }
.brand span { font-family: var(--display); font-size: 1.85rem; font-weight: 340; line-height: 1; letter-spacing: 0.005em; }
.nav-list { display: flex; gap: clamp(1.25rem, 2.6vw, 2.75rem); }
.nav-list a { text-decoration: none; font-size: var(--size-small); }
.nav-list a:hover, .nav-list a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--ember); }
.nav-toggle {
  display: none; appearance: none; background: none; border: 0; color: inherit;
  font: inherit; font-size: var(--size-small); padding: 0.4rem 0; cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font: 500 var(--size-small)/1 var(--text);
  padding: 1.05rem 1.6rem; border: 1px solid var(--filament);
  background: var(--filament); color: #000;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { background: var(--ember); border-color: var(--ember); color: #000; }
.btn--ghost { background: transparent; color: var(--filament); border-color: var(--rule); }
.btn--ghost:hover { background: var(--filament); border-color: var(--filament); color: #000; }
.btn--dark { background: #000; color: var(--filament); border-color: #000; }
.btn--dark:hover { background: #fff; border-color: #fff; color: #000; }

/* Hero */
.hero { height: 150svh; position: relative; }
.hero-stage {
  position: sticky; top: 0; height: 100svh; min-height: 560px; overflow: hidden;
  background-position: center; background-size: cover; background-repeat: no-repeat;
}
.hero-center {
  position: absolute; left: 50%; top: 46%; translate: -50% -50%;
  text-align: center; will-change: transform, opacity;
}
.hero h1 {
  font-size: var(--size-h1); line-height: 1.02; width: max-content; max-width: 92vw;
  font-weight: 320; letter-spacing: 0.002em;
}
.hero h1 > span { display: block; }
html:not(.anim) .hero h1 > span { animation: rise 1.5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: 1.15s; }
html:not(.anim) .hero h1 > span + span { animation-delay: 1.5s; }
@keyframes rise { from { opacity: 0; transform: translateY(0.14em); } to { opacity: 1; transform: none; } }
.hero-foot {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0 var(--gutter) clamp(1.5rem, 3.4vh, 2.75rem);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem;
  animation: fade 1.4s ease backwards; animation-delay: 2.1s;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.hero-foot p { max-width: 31em; font-size: clamp(1rem, 1.25vw, 1.1875rem); line-height: 1.45; font-weight: 350; text-shadow: 0 0 18px #000, 0 0 6px #000; }
.hero-actions { display: flex; gap: 0.75rem; flex: none; flex-wrap: wrap; }
.hero-actions .btn { white-space: nowrap; }

/* Thesis */
.thesis-panel { position: relative; z-index: 2; margin-top: -50svh; }
.thesis { padding-block: calc(16svh + clamp(1.5rem, 3vw, 3rem)) 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 3rem; position: relative; }
.word { grid-column: 1 / span 3; padding-top: 0.9rem; }
.word-term { font-family: var(--display); font-size: var(--size-h3); line-height: 1; font-weight: 340; }
.word-def { margin-top: 0.75rem; max-width: 16em; line-height: 1.45; }
.thesis-main { grid-column: 4 / -1; }
.thesis h2 { margin-bottom: clamp(2rem, 4vw, 3.75rem); }
.thesis h2 > span { display: block; }
.thesis h2 > span + span { padding-left: var(--step); }

.facts { margin-top: clamp(3.5rem, 7vw, 7rem); }
.facts div { display: grid; grid-template-columns: minmax(8rem, 1fr) 3fr; gap: var(--gap); padding-block: 1.1rem; border-top: 1px solid var(--rule); }
.facts dt { color: var(--ash); font-size: var(--size-small); padding-top: 0.15rem; }
.facts dd { max-width: 40em; }

/* Staircase headline: each line steps toward the right margin */
.stair > span { display: block; }
.stair > span:nth-child(2) { padding-left: var(--step); }
.stair > span:nth-child(3) { padding-left: calc(var(--step) * 2); }
.stair > span:nth-child(4) { padding-left: calc(var(--step) * 3); }

/* Paid media */
.paid { padding-top: var(--section); }
.paid-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 2.5rem; align-items: start; }
.paid-top h2 { grid-column: 1 / span 8; grid-row: 1; }
.paid-copy { grid-column: 9 / -1; grid-row: 1; display: grid; gap: 1.25rem; padding-top: 0.6rem; }
.paid-copy p:not(.lead) { max-width: 36em; }
.pipeline { position: relative; margin-top: clamp(2.5rem, 5vw, 5rem); }
.pipe-canvas-wrap { position: relative; height: clamp(240px, 33vw, 560px); background: center / 100% 100% no-repeat; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent); }
.pipe-label { position: absolute; z-index: 2; font-size: var(--size-small); color: var(--filament); text-shadow: 0 0 12px #000, 0 0 4px #000; }
.pipe-label--cold { left: var(--gutter); top: 13%; }
.pipe-label--hot { right: var(--gutter); top: 13%; }
.pipe-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.9s ease; }
.pipe-canvas.is-live { opacity: 1; }
.stages {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--gap);
  padding-inline: 11vw; margin-top: clamp(1.5rem, 3vw, 3rem);
}
.stage h3 { font-size: clamp(2rem, 2.9vw, 3rem); display: flex; align-items: baseline; gap: 0.6rem; margin-bottom: 0.65rem; }
.stage .n { font-family: var(--text); font-size: var(--size-small); font-weight: 400; color: var(--ash); }
.stage p { font-size: var(--size-small); line-height: 1.55; color: var(--filament); }
.paid-close { padding-top: clamp(3rem, 6vw, 6rem); padding-inline: var(--gutter); max-width: 1760px; margin-inline: auto; }
.paid-close p { font-family: var(--display); font-size: var(--size-h3); line-height: 1.08; font-weight: 340; max-width: 18em; margin-left: auto; text-wrap: balance; }

/* Three clocks */
.clocks { padding-top: var(--section); }
.clocks-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 1.5rem; align-items: end; }
.clocks-head h2 { grid-column: 1 / span 8; }
.clocks-head p { grid-column: 9 / -1; color: var(--filament); }
.clock-table { margin-top: clamp(2.5rem, 5vw, 5rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); }
.clock-col h3 { font-size: var(--size-h3); padding-bottom: 1rem; border-bottom: 1px solid var(--filament); }
.clock-col h3 small { display: block; font-family: var(--text); font-size: var(--size-small); font-weight: 400; color: var(--ash); line-height: 1.4; margin-top: 0.4rem; }
.clock-col dl > div { padding-block: 1rem; border-bottom: 1px solid var(--rule); }
.clock-col dt { font-weight: 550; }
.clock-col dd { color: var(--ash); font-size: var(--size-small); line-height: 1.5; margin-top: 0.15rem; }

/* Ceiling */
.ceiling { margin-top: var(--section); background: var(--cold); color: #fff; }
.ceiling-in { padding-block: clamp(4.5rem, 9vw, 9rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 3.5rem; }
.ceiling-text { grid-column: 1 / span 6; }
.ceiling-text blockquote { font-size: var(--size-lead); line-height: 1.35; font-weight: 350; max-width: 24em; margin-bottom: 1.5rem; }
.ceiling-text cite { display: block; font-style: normal; font-size: var(--size-small); margin-top: 0.5rem; }
.ceiling-text h2 { font-size: clamp(3.5rem, 7.6vw, 8.25rem); }
.ceiling-text > p { margin-top: clamp(1.75rem, 3vw, 3rem); max-width: 34em; }
.gauge { grid-column: 8 / -1; align-self: end; }
.gauge h3 { margin-bottom: 1.5rem; }
.dial { display: grid; gap: 0.4rem; padding-block: 0.9rem; border-top: 1px solid rgba(255, 255, 255, 0.34); }
.dial label { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--size-small); line-height: 1.3; }
.dial label small { font-size: inherit; opacity: 0.82; }
.dial output { font-weight: 550; font-variant-numeric: tabular-nums; }
.dial input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 1.75rem; margin: 0; background: transparent; cursor: ew-resize; }
.dial input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: rgba(255, 255, 255, 0.55); }
.dial input[type="range"]::-moz-range-track { height: 2px; background: rgba(255, 255, 255, 0.55); }
.dial input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 8px; height: 1.5rem; margin-top: calc(-0.75rem + 1px); background: #fff; border: 0; border-radius: 0; }
.dial input[type="range"]::-moz-range-thumb { width: 8px; height: 1.5rem; background: #fff; border: 0; border-radius: 0; }
.gauge-read { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid #fff; }
.gauge-read > p:first-child { font-size: var(--size-small); }
.gauge-num { display: block; font-family: var(--display); font-size: clamp(6rem, 11vw, 11.5rem); line-height: 1; font-weight: 300; }
.gauge-split { display: flex; height: 8px; margin-top: 0.75rem; background: rgba(255, 255, 255, 0.28); }
.gauge-split i { display: block; background: #fff; transition: width 0.2s ease; }
.gauge-legend { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--size-small); margin-top: 0.5rem; font-variant-numeric: tabular-nums; }
.gauge-note { font-size: 0.8125rem; line-height: 1.45; margin-top: 1rem; opacity: 0.86; max-width: 38em; }

/* Quality */
.quality { padding-top: var(--section); }
.quality h2 { max-width: 12em; font-size: clamp(3.25rem, 7.2vw, 7.75rem); }
.q-list { margin-top: clamp(2.5rem, 5vw, 5rem); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 2.5rem; }
.q-list li { border-top: 1px solid var(--rule); padding-top: 1rem; }
.q-list h3 { margin-bottom: 0.6rem; }
.q-list p { color: var(--ash); font-size: var(--size-small); line-height: 1.55; max-width: 26em; }

/* Ladder */
.ladder { padding-top: var(--section); }
.ladder-list { margin-top: clamp(2.5rem, 5vw, 4.5rem); display: grid; gap: clamp(1.75rem, 3vw, 3rem); }
.rung { display: grid; grid-template-columns: minmax(0, 1fr); padding-left: calc(var(--i) * clamp(1rem, 11vw, 13rem)); }
.rung-tag { font-size: var(--size-small); color: var(--ash); }
.rung h3 { font-size: clamp(2.875rem, 5.6vw, 6rem); line-height: 1; font-weight: 320; }
.rung p:last-child { max-width: 32em; margin-top: 0.35rem; color: var(--filament); }

/* Standards */
.standards { padding-top: var(--section); }
.standards h2 { font-size: clamp(4rem, 13.6vw, 15rem); line-height: 0.94; }
.std-grid { margin-top: clamp(2.5rem, 5vw, 5rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 3rem; }
.std-lead { grid-column: 1 / span 5; }
.std-list { grid-column: 7 / -1; }
.std-list li { padding-block: 1.1rem; border-top: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--gap); }
.std-list strong { font-weight: 550; }
.std-list span { color: var(--ash); font-size: var(--size-small); line-height: 1.55; }

/* Closing field */
.closing { background: var(--ember); color: #000; }
.closing-in { padding-block: clamp(4.5rem, 9vw, 9rem); display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
.closing h2 { font-size: clamp(3.75rem, 10.6vw, 12rem); line-height: 0.94; font-weight: 340; }
.closing h2 > span { display: block; }
.closing h2 > span + span { padding-left: var(--step); }
.closing-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.closing-row p { max-width: 32em; font-size: var(--size-lead); line-height: 1.38; font-weight: 400; }

/* Footer */
.site-foot { background: #000; padding-block: clamp(3.5rem, 6vw, 6rem) 2rem; font-size: var(--size-small); line-height: 1.55; }
.foot-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 2.5rem; }
.foot-about { grid-column: 1 / span 4; }
.foot-about p { margin-top: 1rem; color: var(--ash); max-width: 26em; }
.foot-col { grid-column: span 2; }
.foot-col h2 { font-family: var(--text); font-size: var(--size-small); font-weight: 400; color: var(--ash); line-height: 1.55; letter-spacing: 0; margin-bottom: 0.6rem; }
.foot-col li + li { margin-top: 0.35rem; }
.foot-col a { text-decoration: none; }
.foot-col a:hover { text-decoration: underline; text-decoration-color: var(--ember); }
.foot-addr { grid-column: span 4; }
.foot-addr h2 { font-family: var(--text); font-size: var(--size-small); font-weight: 400; color: var(--ash); line-height: 1.55; letter-spacing: 0; margin-bottom: 0.6rem; }
.foot-addr address { font-style: normal; }
.foot-addr strong { font-weight: 550; }
.foot-base { margin-top: clamp(2.5rem, 5vw, 4.5rem); padding-top: 1.1rem; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; color: var(--ash); }

/* Inner pages */
.page-head { position: relative; padding-top: clamp(9rem, 17vw, 15rem); overflow: clip; }
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(4rem, 10.4vw, 11.5rem); line-height: 0.95; letter-spacing: -0.006em; }
.page-head h1 > span { display: block; }
.page-head .lead { margin-top: clamp(2rem, 4vw, 3.5rem); margin-left: auto; text-shadow: 0 0 22px #000, 0 0 8px #000; }

.name-sec { padding-top: var(--section); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 2.5rem; }
.name-sec h2 { grid-column: 1 / span 8; font-size: clamp(3.5rem, 8vw, 8.75rem); }
.name-sec h2 > span { display: block; }
.name-sec h2 > span + span { padding-left: var(--step); }
.name-copy { grid-column: 7 / -1; display: grid; gap: 1.1rem; max-width: 38em; }

.rails { padding-top: var(--section); }
.rails h2 { font-size: clamp(4rem, 11vw, 12rem); }
.rails-intro { margin-top: clamp(1.75rem, 3vw, 3rem); }
.rail-list { margin-top: clamp(2.5rem, 5vw, 5rem); }
.rail-list li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding-block: 1rem; border-top: 1px solid var(--rule); align-items: baseline; }
.rail-year { grid-column: 1 / span 2; font-family: var(--display); font-size: var(--size-h3); line-height: 1; font-weight: 340; }
.rail-what { grid-column: 3 / span 4; font-weight: 550; }
.rail-why { grid-column: 7 / -1; color: var(--ash); max-width: 40em; }

.desks { padding-top: var(--section); }
.desks h2 { font-size: clamp(3.5rem, 8vw, 8.75rem); }
.desk-list { margin-top: clamp(2.5rem, 5vw, 5rem); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 2.5rem; }
.desk-list li { border-top: 1px solid var(--rule); padding-top: 1rem; }
.desk-list h3 { font-size: clamp(2rem, 2.7vw, 2.75rem); margin-bottom: 0.5rem; }
.desk-list p { color: var(--ash); font-size: var(--size-small); line-height: 1.55; }

.formal { padding-block: var(--section); }
.formal h2 { font-size: clamp(3.5rem, 8vw, 8.75rem); }
.formal .facts { margin-top: clamp(2rem, 4vw, 4rem); max-width: 62rem; }
.formal .facts address { font-style: normal; }

/* Contact */
.contact-grid { padding-block: clamp(4rem, 7vw, 7rem) var(--section); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 4rem; }
.contact-form { grid-column: 1 / span 6; display: grid; gap: 1.25rem; align-content: start; }
.contact-form h2, .contact-routes h2 { font-size: var(--size-h3); line-height: 1.04; margin-bottom: 0.5rem; font-weight: 340; }
.field { display: grid; gap: 0.35rem; }
.field label { font-size: var(--size-small); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--filament); background: #000;
  border: 0; border-bottom: 1px solid var(--ash); padding: 0.65rem 0; border-radius: 0;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ash) 50%), linear-gradient(135deg, var(--ash) 50%, transparent 50%); background-position: right 6px center, right 0 center; background-size: 6px 6px; background-repeat: no-repeat; }
.field textarea { min-height: 9.5rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-bottom-color: var(--ember); box-shadow: 0 1px 0 var(--ember); }
.field-trap { position: absolute; left: -9999px; }
.pics { font-size: 0.8125rem; line-height: 1.5; color: var(--ash); max-width: 42em; }
.form-status { font-size: var(--size-small); min-height: 1.5em; }
.form-row { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.contact-routes { grid-column: 8 / -1; }
.look-list li { padding-block: 0.95rem; border-top: 1px solid var(--rule); }
.look-list strong { display: block; font-weight: 550; }
.look-list span { color: var(--ash); font-size: var(--size-small); line-height: 1.5; display: block; margin-top: 0.15rem; }
.next { margin-top: 1.5rem; font-family: var(--display); font-size: clamp(2rem, 2.8vw, 2.75rem); line-height: 1.08; font-weight: 340; }
.direct { margin-top: 2.25rem; display: grid; gap: 1.25rem; }
.direct address { font-style: normal; }
.direct h3 { font-family: var(--text); font-size: var(--size-small); color: var(--ash); font-weight: 400; line-height: 1.5; margin-bottom: 0.2rem; }

/* Legal */
.legal-head { padding-top: clamp(9rem, 15vw, 13rem); }
.legal-head h1 { font-size: clamp(3.75rem, 8.6vw, 9.5rem); line-height: 0.96; }
.legal-head p { margin-top: 1.25rem; color: var(--ash); }
.legal { padding-block: clamp(3rem, 5vw, 5rem) var(--section); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.legal-body { grid-column: 4 / span 7; }
.legal-body > p:first-child { font-size: var(--size-lead); line-height: 1.42; font-weight: 300; }
.legal-body h2 { font-size: clamp(2rem, 2.8vw, 2.75rem); line-height: 1.08; font-weight: 340; letter-spacing: 0; margin-top: 2.75rem; margin-bottom: 0.65rem; }
.legal-body p + p, .legal-body ul + p, .legal-body p + ul { margin-top: 0.8rem; }
.legal-body ul { list-style: disc; padding-left: 1.2rem; }
.legal-body li + li { margin-top: 0.4rem; }
.legal-body p, .legal-body li { max-width: 40em; }
.legal-body address { font-style: normal; margin-top: 0.6rem; }

.notfound { min-height: 80svh; display: grid; align-content: center; gap: 1.75rem; padding-top: 6rem; }
.notfound h1 { font-size: clamp(4rem, 12vw, 13rem); line-height: 0.95; }

[hidden] { display: none !important; }

/* Narrower screens */
@media (max-width: 1100px) {
  .stages { padding-inline: var(--gutter); }
  .q-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .desk-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .paid-top h2 { grid-column: 1 / -1; }
  .paid-copy { grid-column: 6 / -1; grid-row: auto; }
  .ceiling-text, .gauge { grid-column: 1 / -1; }
  .std-lead, .std-list { grid-column: 1 / -1; }
  .foot-about { grid-column: 1 / -1; }
  .foot-col { grid-column: span 4; }
  .foot-addr { grid-column: span 4; }
  .legal-body { grid-column: 1 / span 10; }
}

@media (max-width: 780px) {
  :root { --step: clamp(0.9rem, 5.4vw, 2.25rem); --size-h1: clamp(3rem, 14.4vw, 5.25rem); }
  .nav-toggle { display: block; }
  .nav-list {
    display: none; position: fixed; inset: 0; background: #000; flex-direction: column; justify-content: center;
    padding: 5rem var(--gutter); gap: 1.25rem; z-index: -1;
  }
  .site-head.is-open { background: #000; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-head.is-open .nav-list { display: flex; }
  .nav-list a { font-family: var(--display); font-size: 3.5rem; line-height: 1.05; font-weight: 320; }
  .hero { height: 130svh; }
  .thesis-panel { margin-top: -30svh; }
  .thesis { padding-top: calc(12svh + 2rem); }
  .hero-center { top: 40%; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
  .hero-actions .btn { padding: 0.95rem 1.05rem; }
  .thesis { grid-template-columns: minmax(0, 1fr); }
  .word, .thesis-main { grid-column: 1; }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
  .paid-top h2, .paid-copy { grid-column: 1 / -1; grid-row: auto; }
  .pipe-label { display: none; }
  .pipeline { display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 0.75rem; padding-inline: var(--gutter) var(--gutter); }
  .pipe-canvas-wrap { height: auto; min-height: 100%; -webkit-mask-image: none; mask-image: none; }
  .stages { grid-template-columns: minmax(0, 1fr); padding-inline: 0; margin-top: 0; row-gap: 2rem; }
  .stage h3 { font-size: 2.5rem; }
  .paid-close p { margin-left: 0; }
  .clocks-head h2, .clocks-head p { grid-column: 1 / -1; }
  .clock-table { grid-template-columns: minmax(0, 1fr); row-gap: 2.5rem; }
  .q-list { grid-template-columns: minmax(0, 1fr); row-gap: 1.75rem; }
  .rung { padding-left: calc(var(--i) * 1.1rem); }
  .std-list li { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
  .closing-row { flex-direction: column; align-items: flex-start; }
  .foot-col, .foot-addr { grid-column: 1 / -1; }
  .name-sec h2, .name-copy { grid-column: 1 / -1; }
  .rail-list li { row-gap: 0.25rem; }
  .rail-year { grid-column: 1 / -1; }
  .rail-what { grid-column: 1 / -1; }
  .rail-why { grid-column: 1 / -1; }
  .desk-list { grid-template-columns: minmax(0, 1fr); row-gap: 1.75rem; }
  .contact-form, .contact-routes { grid-column: 1 / -1; }
  .legal-body { grid-column: 1 / -1; }
  .page-head .lead { margin-left: 0; }
}

@media (max-width: 780px) and (max-height: 700px) {
  .hero-center { top: 34%; }
  .hero-foot p { font-size: var(--size-small); }
}

/* Short laptop screens */
@media (min-width: 781px) and (max-height: 720px) {
  .hero-center { top: 45%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
  .hero { height: 100svh; }
  .thesis-panel { margin-top: 0; }
  .thesis { padding-top: 5rem; }
}

/* ------------------------------------------------------------------
   Motion layer
   ------------------------------------------------------------------ */
#world {
  position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh;
  z-index: 0; opacity: 0; transition: opacity 0.8s ease; pointer-events: none; display: block;
}
#world.is-live { opacity: 1; }
main, .site-foot { position: relative; z-index: 1; }
.site-foot { background: #000; }
main p, main dd, main dt, main li, main blockquote { text-shadow: 0 0 14px rgba(0, 0, 0, 0.9), 0 0 3px rgba(0, 0, 0, 0.6); }
.ceiling p, .ceiling blockquote, .ceiling label, .closing p { text-shadow: none; }

.heat-bar {
  position: fixed; left: 0; top: 0; width: 2px; height: 100%; z-index: 60; pointer-events: none;
  transform: scaleY(0); transform-origin: top;
  background: linear-gradient(to bottom, var(--cold), #7a2bd0 38%, var(--ember) 72%, #ffe9c7);
}

/* Kinetic type */
.w { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; white-space: pre; }
.kern-probe { position: absolute; visibility: hidden; white-space: pre; }
.anim [data-split] .ch { opacity: 0; transform: translate3d(var(--dx, 0), var(--dy, 0.2em), 0); }
.anim [data-split].in .ch {
  opacity: 1; transform: none;
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1) var(--cd, 0s), opacity 0.9s ease var(--cd, 0s);
}
.anim .hero [data-split].in .ch { transition-duration: 2.1s, 1.2s; }

/* Reveals */
.anim [data-rise] { opacity: 0; transform: translate3d(0, 26px, 0); }
.anim [data-rise="side"] { transform: translate3d(-44px, 0, 0); }
.anim [data-rise].in {
  opacity: 1; transform: none;
  transition: opacity 1s ease var(--d, 0s), transform 1.25s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0s);
}
.anim [data-line] { border-color: transparent !important; position: relative; }
.anim [data-line]::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--rule);
  transform: scaleX(0); transform-origin: left;
}
.anim [data-line="b"]::before { top: auto; bottom: 0; }
.anim [data-line].in::before { transform: none; transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0s); }

/* A pass of light across the Lamborghini line */
[data-sheen] { padding-bottom: 0.2em; }
.anim [data-sheen] {
  color: transparent;
  background: linear-gradient(100deg, var(--filament) 42%, #ffffff 47%, #ffb26b 50%, #ffffff 53%, var(--filament) 58%) 100% 0 / 280% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text;
}
.anim [data-sheen].in { animation: sheen 6.5s cubic-bezier(0.45, 0, 0.55, 1) 0.2s infinite; }
@keyframes sheen { 0% { background-position: 100% 0; } 42%, 100% { background-position: 0% 0; } }

/* Funnel stages light up as the traffic reaches them */
.pipe-canvas { background: transparent; }
.anim .stage { opacity: 0.26; transition: opacity 0.6s ease; }
.anim .stage.on { opacity: 1; }
.stage .n { transition: color 0.4s ease; }
.stage.on .n { color: var(--ember); }

/* Running line */
.ticker {
  overflow: hidden; margin-top: clamp(4rem, 8vw, 8rem); white-space: nowrap;
  font-family: var(--display); font-size: clamp(4.25rem, 12.5vw, 14rem); line-height: 1.12; font-weight: 300;
  border-block: 1px solid var(--rule);
}
.ticker-track { display: inline-flex; align-items: center; gap: 0.32em; will-change: transform; padding-block: 0.08em; }
.ticker-track i { display: block; width: 0.2em; height: 0.2em; border-radius: 50%; border: 1px solid var(--ember); box-shadow: 0 0 18px var(--ember), inset 0 0 8px var(--ember); flex: none; }
html:not(.anim) .ticker { display: none; }

/* Colour fields */
.ceiling, .closing { position: relative; overflow: hidden; }
.anim .ceiling, .anim .closing { clip-path: circle(0% at 50% 50%); }
.ceiling-in, .closing-in { position: relative; z-index: 1; }
.rosette { position: absolute; aspect-ratio: 1; pointer-events: none; z-index: 0; }
.rosette canvas { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform; }
.ceiling .rosette { width: min(135vmin, 1500px); right: -22vmin; top: 50%; translate: 0 -50%; }
.closing .rosette { width: min(150vmin, 1700px); right: calc(min(150vmin, 1700px) * -0.36); bottom: calc(min(150vmin, 1700px) * -0.36); }

/* Creators */
.creators { padding-block: var(--section); }
.creators h2 { font-size: clamp(3.5rem, 9vw, 9.75rem); }
.bring { margin-top: clamp(2.5rem, 5vw, 5rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 3rem; }
.bring-col:first-child { grid-column: 1 / span 5; }
.bring-col:last-child { grid-column: 7 / -1; }
.bring-col h3 { font-family: var(--text); font-size: var(--size-small); font-weight: 400; color: var(--ash); line-height: 1.5; margin-bottom: 0.75rem; }
.bring-list li { font-family: var(--display); font-size: clamp(2rem, 3vw, 3.25rem); line-height: 1.12; font-weight: 340; padding-block: 0.65rem; border-top: 1px solid var(--rule); }

/* Buttons */
.btn { position: relative; transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, translate 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.btn:active { scale: 0.97; }
.anim .btn--ping::after {
  content: ""; position: absolute; inset: -1px; border: 1px solid #000; pointer-events: none;
  animation: ping 2.6s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: 0.8; } 70%, 100% { transform: scale(1.32, 1.7); opacity: 0; } }

/* Company timeline */
.rail-list { position: relative; }
.anim .rail-list::before {
  content: ""; position: absolute; left: 0; top: 0; width: 2px; height: 100%; z-index: 1;
  background: linear-gradient(to bottom, var(--cold), var(--ember));
  transform: scaleY(var(--rp, 0)); transform-origin: top; box-shadow: 0 0 14px rgba(255, 90, 20, 0.55);
}
.anim .rail-list li { padding-left: 1.25rem; }
.rail-year { transition: color 0.5s ease; }
.anim .rail-list li.on .rail-year { color: var(--ember); }

/* Mobile menu opens from the toggle */
@media (max-width: 780px) {
  .site-head.is-solid { background: rgba(0, 0, 0, 0.9); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-head.is-open .nav-list { animation: menu-open 0.55s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .site-head.is-open .nav-list li { animation: menu-item 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .site-head.is-open .nav-list li:nth-child(2) { animation-delay: 0.06s; }
  .site-head.is-open .nav-list li:nth-child(3) { animation-delay: 0.12s; }
  .site-head.is-open .nav-list li:nth-child(4) { animation-delay: 0.18s; }
  .nav-list a { font-size: 3rem; }
  .bring-col:first-child, .bring-col:last-child { grid-column: 1 / -1; }
  .creators h2 { font-size: clamp(3.25rem, 15vw, 5.25rem); }
  .ceiling .rosette { width: 130vmin; right: -70vmin; top: 72%; }
  .closing .rosette { width: 120vmin; right: -46vmin; bottom: -44vmin; }
  .ticker { font-size: clamp(3.5rem, 19vw, 6rem); }
  .anim [data-rise] { transform: translate3d(0, 18px, 0); }
  .anim [data-rise="side"] { transform: translate3d(-22px, 0, 0); }
  .page-head { padding-top: 10.5rem; }
}
@keyframes menu-open { from { clip-path: circle(0% at 92% 4%); } to { clip-path: circle(150% at 92% 4%); } }
@keyframes menu-item { from { opacity: 0; transform: translate3d(0, 22px, 0); } to { opacity: 1; transform: none; } }

/* Page transitions */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.32s ease both; }
::view-transition-new(root) { animation: vt-in 0.75s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes vt-out { to { opacity: 0.35; } }
@keyframes vt-in { from { clip-path: circle(0% at 50% 46%); } to { clip-path: circle(150% at 50% 46%); } }

@media (prefers-reduced-motion: reduce) {
  #world { position: absolute; height: 100vh; }
  .heat-bar { display: none; }
  @view-transition { navigation: none; }
}

/* Three crafts, one P&L */
.std-list li { grid-template-columns: minmax(0, 1fr); gap: 0.3rem; padding-block: 1rem; }
.std-list strong { font-family: var(--display); font-size: clamp(2.25rem, 3.4vw, 3.5rem); line-height: 1.06; font-weight: 340; }
.std-list span { max-width: 36em; color: #d6d1c8; }
.breaks { margin-top: clamp(4rem, 8vw, 8rem); }
.breaks h3 { font-size: clamp(2.75rem, 5.4vw, 5.75rem); line-height: 1; font-weight: 320; max-width: 15em; }
.break-head, .break-list li { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); }
.break-head { margin-top: clamp(2rem, 4vw, 3.5rem); padding-bottom: 0.6rem; color: var(--ash); font-size: var(--size-small); }
.break-list li { padding-block: 1rem; border-top: 1px solid var(--rule); align-items: baseline; }
.b-num { font-weight: 550; }
.b-read { color: #d6d1c8; }
.std-list span, .break-list span { text-shadow: 0 0 10px #000, 0 0 4px #000, 0 0 2px #000; }
.desks { padding-bottom: var(--section); }
@media (max-width: 780px) {
  .break-head { display: none; }
  .break-list { margin-top: 1.75rem; }
  .break-list li { grid-template-columns: minmax(0, 1fr); row-gap: 0.15rem; }
}
