/* =========================================================
   Slake — landing page
   The deck's field-journal system: warm paper, near-black ink,
   Georgia headlines, Inter for everything else, a thin ruled
   frame around the page and a section rail at the bottom.
   ========================================================= */

:root {
  --paper: #f7f5f0;
  --paper-deep: #efebe3;
  --ink: #1c1c1a;
  --ink-soft: #3b3a35;
  --muted: #8a8579;
  --muted-ink: #6e6a5f;
  --rule: rgba(28, 28, 26, 0.12);
  --rule-strong: rgba(28, 28, 26, 0.3);
  --frame-line: rgba(138, 133, 121, 0.5);
  --olive: #5a6b4a;
  --olive-pale: #c6d3ad;
  --night: #141513;
  --cream: #f3efe6;
  --cream-soft: rgba(243, 239, 230, 0.76);
  --cream-faint: rgba(243, 239, 230, 0.16);

  --serif: Georgia, "Gelasio", "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --matte: 14px;
  --matte-b: 40px;
  --gutter: clamp(22px, 6vw, 96px);
  --maxw: 1240px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (max-width: 760px) {
  :root {
    --matte: 8px;
    --matte-b: 8px;
  }
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

button,
input {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

em {
  font-style: italic;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  z-index: 100;
  top: 20px;
  left: 20px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-300%);
}

.skip:focus {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Type ---------- */

.label {
  margin: 0;
  font: 500 12px/1.4 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-ink);
}

.h2 {
  max-width: 18em;
  margin: 0.55em 0 0;
  font: 400 clamp(36px, 4.6vw, 68px)/1.06 var(--serif);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.h3 {
  margin: 0;
  font: 400 clamp(23px, 2vw, 29px)/1.2 var(--serif);
}

.lede {
  max-width: 34em;
  margin: 1.4em 0 0;
  font-size: clamp(17px, 1.3vw, 19px);
  color: var(--ink-soft);
}

.statement {
  margin: 0;
  font: 400 clamp(22px, 2.3vw, 32px)/1.3 var(--serif);
  text-wrap: balance;
}

.caption {
  margin: 14px 0 0;
  font-size: 13.5px;
  color: var(--muted-ink);
}

[data-tone="dark"],
[data-tone="photo"] {
  color: var(--cream);
}

[data-tone="dark"] .label,
[data-tone="photo"] .label {
  color: var(--cream-soft);
}

[data-tone="dark"] .lede,
[data-tone="photo"] .lede,
[data-tone="dark"] .caption {
  color: var(--cream-soft);
}

/* ---------- Frame: matte, masthead, rail ---------- */

.matte {
  position: fixed;
  z-index: 60;
  inset: 0;
  pointer-events: none;
  border: solid var(--paper);
  border-width: var(--matte) var(--matte) var(--matte-b);
}

.matte::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px var(--frame-line);
}

.masthead {
  position: fixed;
  z-index: 55;
  top: var(--matte);
  left: var(--matte);
  right: var(--matte);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px calc(var(--gutter) - var(--matte));
  color: var(--ink);
  transition: color 0.35s var(--ease);
}

.masthead[data-tone="dark"],
.masthead[data-tone="photo"] {
  color: var(--cream);
}

.masthead::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--paper);
  opacity: 0;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: opacity 0.35s var(--ease), background-color 0.35s var(--ease);
}

.masthead[data-tone="light"]::before {
  opacity: 1;
}

.masthead[data-tone="dark"]::before {
  background: var(--night);
  opacity: 1;
}

/* Over photography past the hero: frosted glass, so text sliding underneath stays out of the way */
.masthead[data-tone="photo"][data-scrolled]::before {
  background: rgba(14, 16, 13, 0.34);
  opacity: 1;
}

.brand {
  position: relative;
  display: block;
  width: clamp(92px, 8vw, 112px);
}

.brand img {
  width: 100%;
  transition: opacity 0.35s var(--ease);
}

.brand__cream {
  position: absolute;
  inset: 0;
  opacity: 0;
}

[data-tone="dark"] .brand__cream,
[data-tone="photo"] .brand__cream {
  opacity: 1;
}

[data-tone="dark"] .brand__ink,
[data-tone="photo"] .brand__ink {
  opacity: 0;
}

.masthead__actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.masthead__link {
  font: 500 13px/1 var(--sans);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.3s;
}

.masthead__link:hover {
  opacity: 1;
  text-decoration: underline;
}

.masthead .btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.masthead[data-tone="dark"] .btn:hover,
.masthead[data-tone="photo"] .btn:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--ink);
}

.rail {
  position: fixed;
  z-index: 61;
  left: var(--matte);
  right: var(--matte);
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--matte-b);
  font: 500 10.5px/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-ink);
}

.rail__index {
  min-width: 3em;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.rail__links {
  display: flex;
  gap: clamp(14px, 1.8vw, 26px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail__links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}

.rail__links a:hover,
.rail__links a[aria-current] {
  color: var(--ink);
}

.rail__links a[aria-current] {
  font-weight: 600;
}

.rail__note {
  color: var(--muted);
}

.mockup {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  letter-spacing: 0.12em;
}

.mockup[hidden] {
  display: none;
}

.mockup span {
  padding: 0 8px;
  color: var(--muted);
}

.mockup a {
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--muted-ink);
  text-decoration: none;
}

.mockup a[aria-current] {
  background: var(--ink);
  color: var(--paper);
}

@media (max-width: 760px) {
  .masthead {
    padding: 14px;
  }

  .masthead__link {
    display: none;
  }

  .rail {
    display: none;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 15px 22px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  font: 500 14px/1 var(--sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.btn--small {
  padding: 10px 16px;
  font-size: 13px;
}

.btn--cream {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--ink);
}

.btn--cream:hover {
  background: #fff;
  border-color: #fff;
}

.btn__arrow {
  transition: transform 0.3s var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* ---------- Motion ---------- */

html.js .reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}

html.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Layout ---------- */

.section {
  position: relative;
  padding: clamp(96px, 14vh, 168px) var(--gutter);
}

.wrap {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
}

.section--deep {
  background: var(--paper-deep);
}

.section--night {
  background: var(--night);
}

/* Full-bleed photography with slow parallax and a little film grain */
.photo {
  position: relative;
  overflow: hidden;
  /* clip, not hidden: a hidden box can still be scrolled when the form inside takes focus */
  overflow: clip;
  isolation: isolate;
  background: #23271f;
}

.photo::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.22;
  mix-blend-mode: overlay;
}

.photo__media {
  position: absolute;
  z-index: -2;
  inset: -8% 0;
  transform: translate3d(0, calc(var(--py, 0) * -6%), 0);
  will-change: transform;
}

.photo__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo__shade {
  position: absolute;
  z-index: -1;
  inset: 0;
}

/* ---------- 01 Hero ---------- */

.hero {
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
}

.hero .photo__media {
  inset: -4% 0 -10%;
}

.hero .photo__media img {
  object-position: 60% 45%;
  transform: scale(1.1);
  animation: settle 16s var(--ease) forwards;
}

@keyframes settle {
  to {
    transform: scale(1);
  }
}

.hero .photo__shade {
  background:
    linear-gradient(180deg, rgba(14, 16, 13, 0.3) 0%, rgba(14, 16, 13, 0) 26%, rgba(14, 16, 13, 0) 48%, rgba(14, 16, 13, 0.52) 100%),
    linear-gradient(90deg, rgba(14, 16, 13, 0.4) 0%, rgba(14, 16, 13, 0) 62%);
}

.hero__content {
  width: 100%;
  padding: 0 var(--gutter) calc(var(--matte-b) + clamp(48px, 9vh, 112px));
}

.hero__title {
  margin: 0;
  font: italic 400 clamp(60px, 10.5vw, 168px)/0.92 var(--serif);
  letter-spacing: -0.025em;
}

.hero__sub {
  max-width: 30em;
  margin: 0.9em 0 0;
  font-size: clamp(17px, 1.5vw, 22px);
  color: rgba(243, 239, 230, 0.92);
}

.hero__steps {
  margin-top: 26px;
}

.hero__cue {
  position: absolute;
  right: var(--gutter);
  bottom: calc(var(--matte-b) + clamp(48px, 9vh, 112px));
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--cream-soft);
  text-decoration: none;
}

.hero__cue i {
  position: relative;
  display: block;
  width: 1px;
  height: 46px;
  overflow: hidden;
  background: rgba(243, 239, 230, 0.25);
}

.hero__cue i::after {
  content: "";
  position: absolute;
  left: 0;
  width: 1px;
  height: 46px;
  background: var(--cream);
  animation: cue 2.4s var(--ease) infinite;
}

@keyframes cue {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(100%);
  }
}

@media (max-width: 760px) {
  .hero__cue {
    display: none;
  }
}

/* ---------- 02 Why ---------- */

.why {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
}

.why .photo__shade {
  background: linear-gradient(180deg, rgba(14, 16, 13, 0.66) 0%, rgba(14, 16, 13, 0.2) 46%, rgba(14, 16, 13, 0.55) 100%);
}

.why__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 64px;
  width: 100%;
  padding: clamp(110px, 16vh, 170px) var(--gutter) clamp(72px, 11vh, 120px);
}

.why__list {
  margin: 1.4em 0 0;
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--cream-soft);
}

.why__close {
  align-self: flex-end;
  max-width: 24em;
  margin: 0;
  text-align: right;
}

.why__close span {
  display: block;
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--cream-soft);
}

.why__close em {
  display: block;
  margin-top: 4px;
  font: italic 400 clamp(22px, 2.1vw, 30px)/1.3 var(--serif);
}

/* ---------- 03 Problem ---------- */

.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3.4vw, 52px);
  margin-top: clamp(56px, 7vw, 96px);
}

.trio__item {
  padding-top: 22px;
  border-top: 1px solid var(--rule-strong);
}

.trio__item .h3 {
  margin: 18px 0 14px;
}

.trio__item p:last-child {
  margin: 0;
  font-size: 16px;
  color: var(--ink-soft);
}

[data-tone="dark"] .trio__item {
  border-color: rgba(243, 239, 230, 0.26);
}

[data-tone="dark"] .trio__item p:last-child {
  color: var(--cream-soft);
}

.statement--end {
  max-width: 24em;
  margin: clamp(64px, 9vw, 128px) 0 0 auto;
  text-align: right;
}

@media (max-width: 860px) {
  .trio {
    grid-template-columns: 1fr;
  }

  .statement--end {
    text-align: left;
    margin-left: 0;
  }
}

/* ---------- 04 / 08 Split sections ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  min-height: 100vh;
  min-height: 100svh;
}

.split--rev {
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
}

.split__text {
  align-self: center;
  padding: clamp(110px, 15vh, 168px) clamp(28px, 5vw, 88px) clamp(80px, 12vh, 140px) var(--gutter);
}

.split--rev .split__text {
  padding: clamp(110px, 15vh, 168px) var(--gutter) clamp(80px, 12vh, 140px) clamp(28px, 5vw, 88px);
}

.split__media {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #2b2d28;
}

.split__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.8s var(--ease);
}

.split__media.is-in img {
  transform: none;
}

.tag {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 7px 10px;
  background: rgba(20, 21, 19, 0.72);
  color: var(--cream);
  font: 500 11px/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: clamp(36px, 4vw, 52px) 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding-top: 14px;
  border-top: 1px solid var(--rule-strong);
}

.steps .label {
  display: block;
}

.steps__t {
  display: block;
  margin-top: 10px;
  font: 400 clamp(19px, 1.6vw, 23px)/1.2 var(--serif);
}

.survey {
  margin-top: clamp(48px, 6vw, 80px);
}

.survey__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 16px;
}

.bignum {
  margin: 0;
  font: 400 clamp(52px, 5.4vw, 80px)/1 var(--serif);
  letter-spacing: -0.02em;
}

.survey__grid p:last-child {
  max-width: 18em;
  margin: 8px 0 0;
  font-size: 15.5px;
  color: var(--ink-soft);
}

.facts {
  margin: clamp(36px, 4vw, 52px) 0 0;
  border-top: 1px solid var(--rule);
}

.fact {
  display: grid;
  grid-template-columns: minmax(104px, 150px) 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}

.fact__n {
  margin: 0;
  font: 400 clamp(40px, 3.8vw, 56px)/1 var(--serif);
  letter-spacing: -0.02em;
}

.fact__t {
  margin: 0;
  font: 600 16px/1.35 var(--sans);
}

.fact__d {
  margin: 4px 0 0;
  font-size: 15px;
  color: var(--muted-ink);
}

@media (max-width: 900px) {
  .split,
  .split--rev {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .split__media {
    order: -1;
    aspect-ratio: 4 / 3;
  }

  .split__text,
  .split--rev .split__text {
    padding: 64px var(--gutter) 88px;
  }
}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 26px;
  }

  .split__media {
    aspect-ratio: 1 / 1;
  }
}

/* ---------- 05 Insight + Fig. 1 ---------- */

.insight .h2 {
  max-width: 17em;
}

.signal {
  margin: clamp(48px, 7vw, 96px) 0 0;
  padding: clamp(18px, 2.6vw, 34px);
  border: 1px solid var(--cream-faint);
}

.signal__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.signal__clock {
  font-variant-numeric: tabular-nums;
}

.signal__plot {
  position: relative;
  height: clamp(120px, 15vw, 190px);
  margin-top: 46px;
}

.signal__plot svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.signal__base {
  stroke: var(--cream-faint);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.signal__ghost,
.signal__live {
  fill: none;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.signal__ghost {
  stroke: rgba(243, 239, 230, 0.13);
  stroke-width: 1;
}

.signal__live {
  stroke: rgba(243, 239, 230, 0.85);
  stroke-width: 1.15;
}

.signal__band {
  fill: rgba(198, 211, 173, 0);
  transition: fill 0.6s var(--ease);
}

.signal__band.is-on {
  fill: rgba(198, 211, 173, 0.15);
}

.signal__marker {
  position: absolute;
  top: -34px;
  font: 500 10.5px/1 var(--sans);
  letter-spacing: 0.14em;
  white-space: nowrap;
  color: var(--olive-pale);
  opacity: 0;
  transform: translate(-50%, 6px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.signal__marker::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 16px;
  width: 1px;
  height: 12px;
  background: currentColor;
  opacity: 0.6;
}

.signal__marker.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.signal__playhead {
  position: absolute;
  top: -10px;
  bottom: -10px;
  left: 0;
  width: 1px;
  background: var(--cream);
  box-shadow: 0 0 14px rgba(243, 239, 230, 0.7);
  opacity: 0;
  transition: opacity 0.4s;
}

.signal.is-playing .signal__playhead {
  opacity: 1;
}

.signal__playhead::after {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cream);
}

.signal__axis {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font: 500 10.5px/1 var(--sans);
  letter-spacing: 0.1em;
  color: rgba(243, 239, 230, 0.5);
  font-variant-numeric: tabular-nums;
}

.signal__clips {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 16px);
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.clip__img {
  position: relative;
  aspect-ratio: 5 / 3;
  overflow: hidden;
  border: 1px solid var(--cream-faint);
  background: #0e100f;
  transition: border-color 0.6s var(--ease);
}

.clip__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.9s var(--ease), filter 0.9s var(--ease), transform 1.4s var(--ease);
}

html.js .clip:not(.is-cut) .clip__img {
  border-style: dashed;
}

html.js .clip:not(.is-cut) .clip__img img {
  opacity: 0;
  filter: blur(6px) grayscale(1);
  transform: scale(1.08);
}

.clip--best.is-cut .clip__img {
  border-color: var(--olive-pale);
}

.clip__best {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 4px 6px;
  background: rgba(20, 21, 19, 0.75);
  color: var(--olive-pale);
  font: 600 9px/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.6s 0.3s;
}

.clip.is-cut .clip__best {
  opacity: 1;
}

.clip__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0 0;
  font: 500 11px/1.3 var(--sans);
  letter-spacing: 0.06em;
  color: var(--cream-soft);
  font-variant-numeric: tabular-nums;
}

.signal__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--cream-faint);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  color: var(--cream-soft);
}

.legend li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.legend i {
  display: block;
  width: 18px;
  height: 10px;
}

.legend__line {
  border-bottom: 1px solid var(--cream);
  transform: translateY(-4px);
}

.legend__band {
  background: rgba(198, 211, 173, 0.3);
}

.legend__clip {
  border: 1px solid var(--cream-soft);
}

.signal__replay {
  padding: 8px 14px;
  border: 1px solid var(--cream-faint);
  border-radius: 999px;
  background: none;
  font: 500 12px/1 var(--sans);
  letter-spacing: 0.04em;
  color: var(--cream-soft);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s, border-color 0.3s, color 0.3s;
}

.signal.is-done .signal__replay {
  opacity: 1;
  pointer-events: auto;
}

.signal__replay:hover {
  border-color: var(--cream);
  color: var(--cream);
}

.signal__note {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: rgba(243, 239, 230, 0.5);
}

.insight .trio {
  margin-top: clamp(56px, 7vw, 96px);
}

@media (max-width: 760px) {
  .signal__clips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 18px;
  }

  .signal__marker {
    font-size: 9px;
    letter-spacing: 0.08em;
  }

  .signal__head {
    flex-direction: column;
    gap: 6px;
  }
}

/* ---------- 06 After the session ---------- */

.after__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}

.pull {
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding-left: 22px;
  border-left: 1px solid var(--rule-strong);
}

.pull__q {
  max-width: 26em;
  margin: 12px 0 0;
  font: italic 400 clamp(19px, 1.6vw, 23px)/1.45 var(--serif);
}

.phones {
  position: relative;
  height: clamp(540px, 52vw, 700px);
}

.phone {
  position: absolute;
  top: 9%;
  width: clamp(180px, 16vw, 236px);
}

.phone--left {
  left: 0;
  transform: rotate(-6deg);
}

.phone--right {
  right: 0;
  transform: rotate(6deg);
}

.phone--center {
  z-index: 2;
  top: 0;
  left: 50%;
  width: clamp(210px, 19vw, 276px);
  transform: translateX(-50%);
}

.phone figure {
  margin: 0;
}

.phone__frame {
  position: relative;
  padding: 8px;
  border-radius: 40px;
  background: #1d1d1b;
  box-shadow:
    0 40px 70px -30px rgba(28, 28, 26, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone__frame::after {
  content: "";
  position: absolute;
  top: 2.6%;
  left: 50%;
  width: 30%;
  height: 3.1%;
  border-radius: 999px;
  background: #0b0b0a;
  transform: translateX(-50%);
}

.phone__frame img {
  width: 100%;
  aspect-ratio: 598 / 1300;
  object-fit: cover;
  border-radius: 32px;
}

.phone figcaption {
  margin-top: 18px;
  text-align: center;
}

/* On desktop the phones overlap, so one figure caption sits beneath all three */
.phones__captions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  white-space: nowrap;
  text-align: center;
}

@media (min-width: 1001px) {
  .phone figcaption {
    display: none;
  }
}

@media (max-width: 1000px) {
  .phones__captions {
    display: none;
  }

  .after__grid {
    grid-template-columns: 1fr;
  }

  .phones {
    display: flex;
    gap: 18px;
    height: auto;
    margin: 0 calc(var(--gutter) * -1);
    padding: 12px var(--gutter) 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .phones::-webkit-scrollbar {
    display: none;
  }

  .phone,
  .phone--center {
    position: static;
    flex: 0 0 auto;
    width: min(62vw, 250px);
    transform: none;
    scroll-snap-align: center;
  }

  .phone--center {
    order: -1;
  }
}

/* ---------- 07 Loop ---------- */

.loop__fig {
  max-width: 1000px;
  margin: clamp(40px, 5vw, 64px) auto 0;
}

.loop__fig svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.loop__ring {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
  opacity: 0.55;
}

.loop__arrow {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.2;
  opacity: 0.7;
}

.loop__node,
.loop__runner {
  fill: var(--ink);
}

.loop__core {
  fill: var(--ink);
}

.loop__core-text {
  fill: var(--cream);
  font-family: var(--serif);
  font-size: 25px;
  font-style: italic;
}

.loop__label {
  fill: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
}

.loop__num {
  fill: var(--muted);
}

.loop__tag {
  fill: var(--muted-ink);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
}

.loop__lists {
  display: none;
}

.loop__lists ol {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.loop__lists li {
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
}

.loop__lists span {
  margin-right: 8px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 700px) {
  .loop__labels {
    display: none;
  }

  .loop__lists {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 28px;
  }
}

/* ---------- 09 Surf Lab ---------- */

.lab__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
  margin-top: clamp(48px, 6vw, 80px);
}

.screen {
  margin: 0;
}

.screen__frame {
  padding: clamp(6px, 0.7vw, 10px);
  border-radius: clamp(12px, 1.4vw, 20px);
  background: #191b20;
  box-shadow:
    0 50px 90px -50px rgba(28, 28, 26, 0.55),
    0 0 0 1px rgba(28, 28, 26, 0.12);
}

.screen__frame img {
  width: 100%;
  border-radius: clamp(6px, 0.8vw, 12px);
}

.lab__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.lab__steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}

.lab__n {
  font: 400 20px/1.25 var(--serif);
  color: var(--muted);
}

.lab__steps h3 {
  margin: 0;
  font: 600 16px/1.35 var(--sans);
}

.lab__steps p {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--ink-soft);
}

.lab .statement {
  margin-top: clamp(48px, 6vw, 88px);
}

@media (max-width: 900px) {
  .lab__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 10 Team ---------- */

.team__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 48px;
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 44px);
  margin-top: clamp(48px, 6vw, 80px);
}

.person {
  padding-top: 28px;
  border-top: 1px solid var(--rule-strong);
}

.person__img {
  width: clamp(96px, 9vw, 132px);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  filter: saturate(0.9) sepia(0.06);
}

.person .label {
  margin-top: 24px;
}

.person__name {
  margin: 8px 0 0;
  font: 400 clamp(23px, 2vw, 28px)/1.15 var(--serif);
}

.person__role {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--muted-ink);
}

.person__bio {
  margin: 14px 0 0;
  font-size: 15.5px;
  color: var(--ink-soft);
}

.team__more {
  max-width: 46em;
  margin: clamp(40px, 5vw, 64px) 0 0;
  font-size: 15px;
  color: var(--muted-ink);
}

@media (max-width: 1000px) {
  .team__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .team__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 11 Closing + contact ---------- */

.closing {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
}

.closing .photo__media img {
  object-position: 45% 60%;
}

.closing .photo__shade {
  background: linear-gradient(180deg, rgba(14, 16, 13, 0.3) 0%, rgba(14, 16, 13, 0) 30%, rgba(14, 16, 13, 0.28) 55%, rgba(14, 16, 13, 0.82) 100%);
}

.closing__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 72px;
  width: 100%;
  padding: clamp(110px, 16vh, 168px) var(--gutter) clamp(64px, 10vh, 112px);
}

.closing__title {
  max-width: 20em;
  margin: 0;
}

.cta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 96px);
  width: 100%;
  max-width: var(--maxw);
}

.cta__col {
  padding-top: 22px;
  border-top: 1px solid rgba(243, 239, 230, 0.4);
}

.cta__lead {
  max-width: 18em;
  margin: 14px 0 22px;
  font: 400 clamp(21px, 1.9vw, 27px)/1.3 var(--serif);
}

.cta__mail {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--cream-soft);
}

@media (max-width: 860px) {
  .cta {
    grid-template-columns: 1fr;
  }
}

/* ---------- Waitlist ---------- */

.waitlist {
  max-width: 480px;
}

.waitlist__row {
  display: flex;
  gap: 10px;
}

.field {
  flex: 1;
  min-width: 0;
  padding: 14px 20px;
  border: 1px solid rgba(243, 239, 230, 0.5);
  border-radius: 999px;
  background: rgba(243, 239, 230, 0.08);
  color: var(--cream);
  font: 400 15px/1.2 var(--sans);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: border-color 0.3s, background-color 0.3s;
}

.field::placeholder {
  color: rgba(243, 239, 230, 0.62);
}

.field:focus {
  outline: none;
  border-color: var(--cream);
  background: rgba(243, 239, 230, 0.14);
}

.roles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  border: 0;
}

.roles label {
  position: relative;
  cursor: pointer;
}

.roles input {
  position: absolute;
  opacity: 0;
}

.roles span {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid rgba(243, 239, 230, 0.3);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--cream-soft);
  transition: border-color 0.3s, background-color 0.3s, color 0.3s;
}

.roles input:checked + span {
  border-color: var(--cream);
  background: rgba(243, 239, 230, 0.16);
  color: var(--cream);
}

.roles input:focus-visible + span {
  outline: 2px solid var(--cream);
  outline-offset: 2px;
}

.hp {
  position: absolute;
  left: -9999px;
}

.waitlist__msg {
  min-height: 1.4em;
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--cream-soft);
}

.waitlist__msg:empty {
  min-height: 0;
  margin: 0;
}

.waitlist__note {
  margin: 12px 0 0;
  font-size: 12px;
  color: rgba(243, 239, 230, 0.6);
}

.waitlist.is-done .waitlist__row,
.waitlist.is-done .roles,
.waitlist.is-done .waitlist__note {
  display: none;
}

.waitlist.is-done .waitlist__msg {
  margin-top: 0;
  font: italic 400 22px/1.35 var(--serif);
  color: var(--cream);
}

@media (max-width: 420px) {
  .waitlist__row {
    flex-direction: column;
  }
}

/* ---------- Footer ---------- */

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  padding: 44px var(--gutter) calc(var(--matte-b) + 36px);
  font-size: 13.5px;
  color: var(--muted-ink);
}

.foot__brand {
  display: flex;
  align-items: center;
  gap: 22px;
}

.foot__brand img {
  width: 96px;
}

.foot__tag {
  font: italic 400 17px/1 var(--serif);
  color: var(--ink);
}

.foot__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.foot a {
  text-decoration: none;
}

.foot a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ---------- Teaser (version B) ---------- */

.teaser {
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
}

.teaser .photo__media {
  inset: 0;
  transform: none;
}

.teaser .photo__media img {
  object-position: 60% 45%;
  transform: scale(1.1);
  animation: settle 18s var(--ease) forwards;
}

.teaser .photo__shade {
  background:
    linear-gradient(180deg, rgba(14, 16, 13, 0.32) 0%, rgba(14, 16, 13, 0) 24%, rgba(14, 16, 13, 0.08) 50%, rgba(14, 16, 13, 0.62) 100%),
    linear-gradient(90deg, rgba(14, 16, 13, 0.45) 0%, rgba(14, 16, 13, 0) 64%);
}

.teaser__content {
  width: 100%;
  padding: 120px var(--gutter) calc(var(--matte-b) + clamp(124px, 17vh, 168px));
}

.hero__content,
.teaser__content,
.why__inner {
  text-shadow: 0 1px 14px rgba(14, 16, 13, 0.35);
}

.teaser__form {
  margin-top: clamp(30px, 4vh, 44px);
}

.teaser__inv {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--cream-soft);
}

.teaser__inv a {
  color: var(--cream);
}

.trace {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--matte-b) + clamp(24px, 4vh, 40px));
  height: 84px;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.trace__strip {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  animation: trace-run var(--dur, 40s) linear infinite;
}

@keyframes trace-run {
  to {
    transform: translate3d(var(--shift, -50%), 0, 0);
  }
}

.trace svg {
  position: absolute;
  top: 20px;
  left: 0;
  max-width: none;
  height: 64px;
}

.trace path {
  fill: none;
  stroke: rgba(243, 239, 230, 0.6);
  stroke-width: 1;
}

.trace__tag {
  position: absolute;
  top: 0;
  font: 500 9.5px/1 var(--sans);
  letter-spacing: 0.16em;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--cream);
  transform: translateX(-50%);
}

.trace__head {
  position: absolute;
  top: 22px;
  bottom: 4px;
  left: 72%;
  width: 1px;
  background: rgba(243, 239, 230, 0.85);
  box-shadow: 0 0 12px rgba(243, 239, 230, 0.75);
}

@media (prefers-reduced-motion: reduce) {
  .trace__strip,
  .hero .photo__media img,
  .teaser .photo__media img {
    animation: none;
    transform: none;
  }
}

@media (max-width: 760px) {
  .trace {
    height: 70px;
  }

  .trace svg {
    top: 18px;
    height: 52px;
  }
}

/* ---------- Small pages (thanks, 404) ---------- */

.plain {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 80px var(--gutter);
  text-align: center;
}

.plain .brand {
  margin: 0 auto 48px;
}

.plain .h2 {
  margin: 0 auto;
}

.plain .lede {
  margin: 1em auto 0;
}

.plain .btn {
  margin-top: 36px;
}
