/* EHT hero concept: silver twilight, a house in a forest clearing behind a reflecting pool. */

:root {
  --ground: #0e1316;
  --ground-2: #151c20;
  --ink: #eceae5;
  --ink-soft: #d0d3d1;
  --graphite: #1b2124;
  --graphite-soft: rgba(27, 33, 36, 0.78);
  --graphite-line: rgba(27, 33, 36, 0.4);
  --lamp: #e8b46a;

  --gutter: clamp(20px, 4vw, 64px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--ground);
  color: var(--graphite);
  scrollbar-color: #2b3337 var(--ground);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Archivo", ui-sans-serif, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  font-stretch: 100%;
  font-weight: 400;
  line-height: 1.55;
  caret-color: var(--lamp);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--lamp);
  color: var(--graphite);
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--lamp);
  outline-offset: 4px;
}

/* Header */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  padding: 22px var(--gutter);
  padding-top: max(22px, env(safe-area-inset-top));
  color: var(--graphite);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  font-size: 1.375rem;
  font-stretch: 125%;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand-name {
  color: var(--graphite-soft);
  font-size: 0.75rem;
  line-height: 1.15;
}

/* Dark crowns fill the top corners of the frame, so the menu sits beside the logo, over open fog. */
.site-nav {
  margin-left: clamp(32px, 4vw, 72px);
  margin-right: auto;
}

.site-nav ul {
  display: flex;
  gap: clamp(18px, 2.4vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: var(--graphite-soft);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.3s var(--ease-out);
}

.site-nav a:hover {
  color: var(--graphite);
}

.nav-extra {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.menu-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--graphite);
  font: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
}

/* Buttons and links */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.6rem;
  border: 0;
  border-radius: 0;
  background: var(--graphite);
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 140ms var(--ease-out),
    background-color 180ms ease,
    color 180ms ease;
}

.button:not(:disabled):not([aria-disabled="true"]):is(.is-pressing, :focus-visible:active) {
  background: var(--lamp);
  color: var(--graphite);
}

.button:not(:disabled):not([aria-disabled="true"]).is-pressing {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .button:not(:disabled):not([aria-disabled="true"]):hover {
    background: var(--lamp);
    color: var(--graphite);
  }

  .button:not(:disabled):not([aria-disabled="true"]):active:not(:focus-visible) {
    transform: scale(0.97);
  }
}

.button--small {
  min-height: 42px;
  padding: 0 1.1rem;
  font-size: 0.875rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--graphite);
  font-size: 0.9375rem;
  text-decoration: underline;
  text-decoration-color: var(--graphite-line);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: text-decoration-color 0.3s var(--ease-out);
}

.text-link svg {
  transition: transform 0.4s var(--ease-out);
}

.text-link:hover {
  text-decoration-color: var(--lamp);
}

.text-link:hover svg {
  transform: translateX(4px);
}

/* Hero: a frontal, symmetrical frame, so the text stands on its axis in the clearing above the roof. */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto auto 1fr;
  justify-items: center;
  min-height: 100svh;
  padding: clamp(100px, 12vh, 140px) var(--gutter) clamp(32px, 6vh, 64px);
  overflow: hidden;
  text-align: center;
}

/* Until the photograph loads, a silver field stands in for it. */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #cfd3d5 0%, #b7bdc0 40%, #6e7679 70%, #2a3134 100%);
  transform-origin: 50% 70%;
}

.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 62%;
}

.hero-photo.is-missing {
  display: none;
}

/* The WebGL layer paints the same photographs, so the images step back once it runs. */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media.is-live .hero-photo {
  visibility: hidden;
}

/* The fog thickens in the clearing where the text stands, so the crowns behind the paragraph
   fade back the way they would in real mist; a lighter wash at the top keeps the menu on clear ground. */
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 27% at 50% 38%, rgba(222, 225, 227, 0.8) 0%, rgba(222, 225, 227, 0.62) 42%, rgba(222, 225, 227, 0) 100%),
    radial-gradient(ellipse 52% 44% at 50% 30%, rgba(226, 228, 229, 0.45) 0%, rgba(226, 228, 229, 0) 100%),
    linear-gradient(180deg, rgba(226, 228, 229, 0.35) 0%, rgba(226, 228, 229, 0) 16%),
    var(--hero-fade);
}

/* The pool sinks into the dark of the next section instead of ending on a hard edge. */
:root {
  --hero-fade: linear-gradient(0deg, #101517 0%, rgba(16, 21, 23, 0.6) 5%, rgba(16, 21, 23, 0) 14%);
}

.hero-title {
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  color: var(--graphite);
  font-size: clamp(4.5rem, 9vw, 12rem);
  font-stretch: 125%;
  font-weight: 200;
  line-height: 0.86;
  letter-spacing: -0.04em;
  text-wrap: nowrap;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.hero-title .line > span {
  display: inline-block;
  will-change: transform;
}

/* Same voice, a step down: the promise under the name of the idea. */
.line--sub {
  margin-top: 0.34em;
  font-size: 0.29em;
  font-stretch: 112%;
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-intro {
  grid-row: 2;
  margin-top: 20px;
}

.hero-intro p {
  max-width: 50ch;
  margin: 0 auto 28px;
  color: var(--graphite);
  font-size: 1.1875rem;
  font-weight: 450;
  line-height: 1.5;
  text-wrap: pretty;
}

.hero-intro .hero-description {
  max-width: 66ch;
  margin-bottom: 10px;
}

.hero-intro .hero-scope {
  max-width: 75ch;
  margin-bottom: 22px;
}

.hero-intro .hero-regions {
  max-width: none;
  margin: 22px auto 0;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 28px;
}

/* ---------- 2. Statement ---------- */

.statement {
  display: grid;
  gap: clamp(72px, 14vh, 160px);
  padding: clamp(120px, 20vh, 220px) var(--gutter) clamp(40px, 7vh, 80px);
  background: #101517;
  color: var(--ink);
}

.statement-text {
  max-width: 21em;
  margin: 0 auto;
  font-size: clamp(2rem, 4.2vw, 4.25rem);
  font-stretch: 112%;
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-align: center;
  text-wrap: balance;
}

/* Words start dim only when the script is there to light them. */
.statement-text.is-dimmed .w {
  color: rgba(236, 234, 229, 0.24);
  transition: color 0.7s var(--ease-out);
}

.statement-text.is-dimmed .w.is-on {
  color: var(--ink);
}

/* A window cut from the hero house: its living room, lights off, then on. */
.inline-window {
  position: relative;
  display: inline-block;
  width: 2.3em;
  height: 0.86em;
  margin: 0 0.1em;
  overflow: hidden;
  vertical-align: -0.1em;
}

.inline-window > span {
  position: absolute;
  inset: 0;
  background-position: 47.2% 71.5%;
  background-size: 512% auto;
}

.inline-window__dusk {
  background-image: url("assets/hero-desktop-dusk.webp");
}

.inline-window__lit {
  background-image: url("assets/hero-desktop.webp");
  transition: opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.statement-text.is-dimmed .inline-window__lit {
  opacity: 0;
}

.statement-text.is-dimmed.is-lit .inline-window__lit {
  opacity: 1;
}

.statement-notes {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  color: #a9b0b0;
  font-size: 0.9375rem;
}

.statement-notes p {
  margin: 0;
}

/* ---------- 3. Life in the home ---------- */

/* Tall section, sticky full-screen frame: scrolling walks the room from morning to away. */
.life {
  position: relative;
  height: 400vh;
  background: #0b0f11;
  color: var(--ink);
}

.life-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.life-media {
  position: absolute;
  inset: 0;
  background: #0b0f11;
}

.life-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50%) 50%;
  opacity: 0;
  transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.life-photo.is-active {
  opacity: 1;
}

/* The WebGL layer paints the same photographs, graded like film, once it runs. */
.life-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.life-media.is-live .life-photo {
  visibility: hidden;
}

/* Darkness for the text to stand in: a dim over the whole frame, deeper at the centre and edges. */
.life-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 58% 46% at 50% 52%, rgba(8, 11, 12, 0.5) 0%, rgba(8, 11, 12, 0.22) 62%, rgba(8, 11, 12, 0) 100%),
    linear-gradient(180deg, rgba(8, 11, 12, 0.72) 0%, rgba(8, 11, 12, 0.18) 26%, rgba(8, 11, 12, 0.16) 66%, rgba(8, 11, 12, 0.78) 100%);
}

.life-stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  height: 100%;
  padding: clamp(72px, 12vh, 120px) var(--gutter) clamp(24px, 5vh, 52px);
  text-align: center;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
}

.life-title {
  margin: 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: clamp(1.125rem, 1.7vw, 1.625rem);
  font-stretch: 112%;
  font-weight: 300;
  letter-spacing: -0.01em;
}

.life-reveal {
  display: inline-block;
  padding-bottom: 0.1em;
}

/* The current moment: all four stacked in one cell, only the active one shown. */
.life-now {
  display: grid;
  align-self: center;
}

.life-now__item {
  grid-area: 1 / 1;
  pointer-events: none;
}

.life-now__name,
.life-now__text {
  margin: 0;
  opacity: 0;
  transition:
    opacity 0.7s var(--ease-out),
    transform 1s var(--ease-out),
    filter 1s var(--ease-out);
}

.life-now__name {
  font-size: clamp(3.5rem, 11vw, 10rem);
  font-stretch: 125%;
  font-weight: 200;
  line-height: 0.92;
  letter-spacing: -0.04em;
  transform: translateY(0.25em);
  filter: blur(12px);
}

.life-now__text {
  max-width: 34ch;
  margin: clamp(16px, 3vh, 28px) auto 0;
  color: var(--ink-soft);
  font-size: clamp(1.0625rem, 1.3vw, 1.25rem);
  line-height: 1.5;
  transform: translateY(14px);
}

.life-now__item.is-active .life-now__name,
.life-now__item.is-active .life-now__text {
  opacity: 1;
  transform: none;
  filter: none;
}

.life-now__item.is-active .life-now__name {
  transition-delay: 0.25s;
}

.life-now__item.is-active .life-now__text {
  transition-delay: 0.5s;
}

/* The moment that is leaving drifts up and softens instead of dropping back. */
.life-now__item.is-leaving .life-now__name {
  transform: translateY(-0.2em);
  filter: blur(12px);
  transition-duration: 0.6s;
}

.life-now__item.is-leaving .life-now__text {
  transform: translateY(-10px);
  transition-duration: 0.5s;
}

/* A direct choice responds immediately; scrolling keeps the scene choreography. */
.life.is-selecting .life-now__name,
.life.is-selecting .life-now__text {
  transition-delay: 0s;
  transition-duration: 180ms;
  transform: none;
  filter: none;
}

.life.is-selecting .life-photo {
  transition-duration: 420ms;
  transition-timing-function: var(--ease-out);
}

.life.is-instant .life-now__name,
.life.is-instant .life-now__text,
.life.is-instant .life-photo,
.life.is-instant .life-tab {
  transition: none;
}

.life-nav {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.life-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px clamp(18px, 3vw, 44px);
}

.life-tab {
  position: relative;
  min-height: 44px;
  padding: 10px 2px 14px;
  border: 0;
  background: none;
  color: rgba(236, 234, 229, 0.52);
  font: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: color 0.4s var(--ease-out);
}

.life-tab:hover,
.life-tab[aria-pressed="true"] {
  color: var(--ink);
}

/* Each tab carries a dimmer track; the active one fills warm as the reader scrolls through it. */
.life-tab::before,
.life-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
}

.life-tab::before {
  background: rgba(236, 234, 229, 0.16);
}

.life-tab::after {
  background: var(--lamp);
  transform: scaleX(0);
  transform-origin: left;
}

.life-tab[aria-pressed="true"]::after {
  transform: scaleX(var(--p, 0));
}

.life-note {
  max-width: 46ch;
  margin: 0;
  color: rgba(236, 234, 229, 0.55);
  font-size: 0.75rem;
  line-height: 1.5;
  text-shadow: none;
}

/* Entrance: set only when the script runs, played once as the section arrives. */
.life.is-armed .life-reveal {
  transform: translateY(110%);
  transition: transform 1.4s var(--ease-out) 0.35s;
}

.life.is-armed .life-now {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  filter: blur(10px);
  transition:
    opacity 1.2s var(--ease-out) 0.7s,
    transform 1.6s var(--ease-out) 0.7s,
    filter 1.6s var(--ease-out) 0.7s;
}

.life.is-armed .life-nav {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 1s var(--ease-out) 1.15s,
    transform 1.2s var(--ease-out) 1.15s;
}

.life.is-armed.is-in .life-reveal,
.life.is-armed.is-in .life-now,
.life.is-armed.is-in .life-nav {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ---------- 4. Services ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Night lifts into morning: block 3's dark eases into the stone ground through a long, soft gradient. */
.services {
  --paper: #e8e7e3;
  --graphite-mute: rgba(27, 33, 36, 0.4);
  --graphite-read: rgba(27, 33, 36, 0.6);
  --rule: rgba(27, 33, 36, 0.14);
  --lens: min(26vw, 380px);
  --dial: calc(var(--lens) + 44px);

  position: relative;
  padding: clamp(300px, 48vh, 480px) var(--gutter) clamp(90px, 14vh, 160px);
  background:
    linear-gradient(
        180deg,
        #0b0f11 0%,
        #101517 8%,
        #1c2123 18%,
        #323739 28%,
        #545858 38%,
        #7d807e 49%,
        #a5a6a3 60%,
        #c6c6c2 71%,
        #dbdad6 82%,
        #e4e3df 91%,
        var(--paper) 100%
      )
      top / 100% clamp(420px, 70vh, 720px) no-repeat,
    var(--paper);
  color: var(--graphite);
}

/* Fine grain over the gradient keeps it from banding on dark screens. */
.services::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: clamp(420px, 70vh, 720px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.07;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* ---- Heading: two staggered lines, a dimmer, and a two-tone aside ---- */

.services-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3.2fr);
  max-width: 1320px;
  margin: 0 auto;
}

.services-title {
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  margin: 0;
  font-size: clamp(2.75rem, 7vw, 7.25rem);
  font-stretch: 112%;
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.st-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.22em;
  will-change: transform;
}

/* The first line steps right, the second holds the left edge: the composition reads as a stair. */
.st-line--1 {
  padding-left: 24%;
}

.st-m {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

.st-w {
  display: inline-block;
}

/* The dimmer: a slim slider whose warm bar slides up to its knob, the way a room comes up. */
.st-dimmer {
  position: relative;
  display: inline-block;
  width: 1.1em;
  height: 0.3em;
  margin: 0 0.16em 0 0.1em;
}

.st-dimmer::before,
.st-dimmer__fill {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  height: 0.045em;
  margin-top: -0.0225em;
  border-radius: 1em;
}

.st-dimmer::before {
  right: 0;
  background: rgba(27, 33, 36, 0.18);
}

.st-dimmer__fill {
  width: 72%;
  background: linear-gradient(90deg, rgba(232, 180, 106, 0.35), var(--lamp));
  transform-origin: left;
}

.st-dimmer__knob {
  position: absolute;
  top: 50%;
  left: 72%;
  width: 0.26em;
  height: 0.26em;
  margin: -0.13em 0 0 -0.13em;
  border-radius: 50%;
  background: var(--lamp);
  box-shadow: 0 0 0.3em 0.08em rgba(232, 180, 106, 0.55);
}

.st-aside {
  display: inline-grid;
  font-size: 0.24em;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.st-aside__b {
  color: var(--graphite-read);
}

/* A short note beside the first line, where the stair leaves room. */
.services-note {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  max-width: min(30ch, calc(100% - 28px));
  margin: 0.6em 0 0;
  color: var(--graphite-read);
  font-size: 0.875rem;
  line-height: 1.5;
}

.services-paths {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-self: center;
  width: min(100%, 980px);
  margin-top: clamp(56px, 9vh, 96px);
}

.services-path {
  padding: 4px clamp(24px, 3vw, 44px);
}

.services-path + .services-path {
  border-left: 1px solid var(--rule);
}

.services-path h3 {
  min-height: 3.1em;
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 1.7vw, 1.625rem);
  font-stretch: 112%;
  font-weight: 400;
}

.services-path p {
  margin: 0;
  color: var(--graphite-soft);
  line-height: 1.55;
}

/* ---- Systems: rows split by a round dial in the middle ---- */

.perks {
  position: relative;
  max-width: 1320px;
  margin: clamp(110px, 16vh, 180px) auto 0;
}

/* Desktop study: let the lens carry enough visual weight for all eight systems.
   The wider field keeps the reading columns at their original measure. */
@media (min-width: 961px) {
  .services {
    --lens: clamp(265px, 33vw, 500px);
  }

  .perks {
    width: min(1460px, calc(100% + 72px));
    max-width: none;
    margin-left: 50%;
    margin-right: 0;
    transform: translateX(-50%);
  }

  .perk {
    grid-template-columns: minmax(0, 1fr) calc(var(--dial) + 32px) minmax(0, 1fr);
  }
}

.perks-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.perk {
  display: grid;
  grid-template-columns: minmax(0, 1fr) calc(var(--dial) + 72px) minmax(0, 1fr);
}

/* Each half carries its own divider, so the lines stop short of the dial instead of crossing it. */
.perk__left,
.perk__right {
  position: relative;
  padding: clamp(14px, 1.8vh, 20px) 0;
}

.perk__left {
  grid-column: 1;
  display: flex;
  align-items: center;
}

.perk__right {
  grid-column: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
  gap: 20px;
}

.perk__left::before,
.perk__right::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--rule);
}

/* Lines grow outward from the dial. */
.perk__left::before {
  transform-origin: right;
}

.perk__right::before {
  transform-origin: left;
}

.perk:last-child .perk__left,
.perk:last-child .perk__right {
  box-shadow: inset 0 -1px 0 var(--rule);
}

.perk__name {
  margin: 0;
}

.perk__select {
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--graphite-mute);
  font: inherit;
  font-size: clamp(1.25rem, 1.9vw, 1.875rem);
  font-stretch: 112%;
  font-weight: 300;
  line-height: 1.15;
  text-align: left;
  cursor: pointer;
  transition: color 0.45s var(--ease-out);
}

.perk.is-active .perk__select,
.perk__select:focus-visible {
  color: var(--graphite);
}

.perk__info {
  color: var(--graphite-read);
  font-size: 0.9375rem;
  line-height: 1.5;
  transition: color 0.45s var(--ease-out);
}

.perk.is-active .perk__info {
  color: var(--graphite);
}

.perk__desc {
  max-width: 38ch;
  margin: 0;
}

.perk__more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s var(--ease-out);
}

.perk__more > ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
}

.perk__more li {
  padding-left: 18px;
  background: linear-gradient(var(--lamp), var(--lamp)) 0 0.62em / 8px 2px no-repeat;
}

.perk__more .perk__fine {
  padding-left: 0;
  background: none;
  color: var(--graphite-read);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.perk.is-open .perk__more {
  grid-template-rows: 1fr;
}

.perk.is-open .perk__more > ul {
  padding-top: 14px;
}

/* A light outline arrow; it fills only on the row in focus. */
.perk__toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(27, 33, 36, 0.28);
  border-radius: 50%;
  background: transparent;
  color: var(--graphite);
  cursor: pointer;
  transition:
    background-color 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out),
    color 0.35s var(--ease-out);
}

.perk.is-active .perk__toggle {
  border-color: var(--graphite);
  background: var(--graphite);
  color: var(--paper);
}

.perk__toggle:hover {
  border-color: var(--lamp);
  background: var(--lamp);
  color: var(--graphite);
}

.perk__toggle svg {
  transition: transform 0.5s var(--ease-out);
}

.perk.is-open .perk__toggle svg {
  transform: rotate(90deg);
}

/* The dial: a thin ring with one tick per system, a warm pointer, and the lens inside. */
.perks-dial {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: var(--dial);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.perks-ring {
  position: absolute;
  inset: 0;
  overflow: visible;
  fill: none;
  stroke: rgba(27, 33, 36, 0.3);
  stroke-width: 0.35;
}

.perks-ring circle {
  stroke-dasharray: 1 0;
}

.perks-pointer {
  position: absolute;
  inset: 0;
  transform: rotate(var(--angle, 0deg));
  transition: transform 1.1s cubic-bezier(0.65, 0, 0.25, 1);
}

.perks-pointer::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: var(--lamp);
  box-shadow: 0 0 12px 2px rgba(232, 180, 106, 0.55);
}

.perks-lens {
  position: absolute;
  inset: 22px;
  overflow: hidden;
  border-radius: 50%;
  background: #cfcec8;
}

/* A new photo opens from the centre like an iris; the old one waits underneath. */
.perks-shot {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  clip-path: circle(0% at 50% 50%);
  transform: translateY(var(--py, 0px)) scale(1.14);
  transition:
    clip-path 1.1s cubic-bezier(0.7, 0, 0.2, 1),
    transform 1.6s var(--ease-out);
}

.perks-shot.is-active {
  z-index: 1;
  clip-path: circle(75% at 50% 50%);
  transform: translateY(var(--py, 0px)) scale(1);
}

.perks-shot.is-leaving {
  clip-path: circle(75% at 50% 50%);
  transform: translateY(var(--py, 0px)) scale(1);
}

.perks-shot--pending {
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #cfcec8, #b9b8b1);
  color: rgba(27, 33, 36, 0.5);
  font-size: 0.875rem;
  line-height: 1.4;
  text-align: center;
}

.services-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  max-width: 1320px;
  margin: clamp(80px, 12vh, 140px) auto 0;
}

.services-cta p {
  max-width: 44ch;
  margin: 0;
  font-size: clamp(1.125rem, 1.6vw, 1.5rem);
  font-stretch: 112%;
  font-weight: 300;
  line-height: 1.35;
}

/* ---- Entrance, set only when the script runs ---- */

/* Words rise out of their masks one by one while the letters draw in from a wider spacing. */
.services.is-armed .st-w {
  transform: translateY(112%);
  letter-spacing: 0.08em;
  transition:
    transform 1.3s var(--ease-out) calc(var(--w, 0) * 80ms),
    letter-spacing 1.8s var(--ease-out) calc(var(--w, 0) * 80ms);
}

.services.is-armed .st-dimmer::before {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease-out) 0.55s;
}

.services.is-armed .st-dimmer__fill {
  transform: scaleX(0);
  transition: transform 1.3s cubic-bezier(0.65, 0, 0.25, 1) 1s;
}

.services.is-armed .st-dimmer__knob {
  left: 0;
  opacity: 0;
  box-shadow: 0 0 0 0 rgba(232, 180, 106, 0);
  transition:
    left 1.3s cubic-bezier(0.65, 0, 0.25, 1) 1s,
    opacity 0.4s var(--ease-out) 0.9s,
    box-shadow 1.4s var(--ease-out) 1.9s;
}

.services.is-armed .st-aside > span,
.services.is-armed .services-note,
.services.is-armed .services-path {
  opacity: 0;
  transform: translateX(-12px);
  transition:
    opacity 1s var(--ease-out),
    transform 1.2s var(--ease-out);
}

.services.is-armed .st-aside__a {
  transition-delay: 1.35s;
}

.services.is-armed .st-aside__b {
  transition-delay: 1.5s;
}

.services.is-armed .services-note {
  transform: translateY(10px);
  transition-delay: 1.55s;
}

.services.is-armed .services-path {
  transform: translateY(14px);
  transition-delay: 1.7s;
}

.services.is-armed .services-path + .services-path {
  transition-delay: 1.82s;
}

.services.is-armed .services-head.is-in .st-w {
  transform: none;
  letter-spacing: 0;
}

.services.is-armed .services-head.is-in .st-dimmer::before,
.services.is-armed .services-head.is-in .st-dimmer__fill {
  transform: none;
}

.services.is-armed .services-head.is-in .st-dimmer__knob {
  left: 72%;
  opacity: 1;
  box-shadow: 0 0 0.3em 0.08em rgba(232, 180, 106, 0.55);
}

.services.is-armed .services-head.is-in .st-aside > span,
.services.is-armed .services-head.is-in .services-note,
.services.is-armed .services-head.is-in .services-path {
  opacity: 1;
  transform: none;
}

/* Systems: dividers grow out of the dial, text follows, the ring draws and the lens opens. */
.services.is-armed .perk__left::before,
.services.is-armed .perk__right::before {
  transform: scaleX(0);
  transition: transform 1.3s var(--ease-out) calc(0.15s + var(--i, 0) * 80ms);
}

.services.is-armed .perk__name,
.services.is-armed .perk__info,
.services.is-armed .perk__toggle {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.9s var(--ease-out) calc(0.35s + var(--i, 0) * 80ms),
    transform 1.1s var(--ease-out) calc(0.35s + var(--i, 0) * 80ms),
    background-color 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out),
    color 0.35s var(--ease-out);
}

.services.is-armed .perks-ring circle {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.8s cubic-bezier(0.65, 0, 0.25, 1);
}

.services.is-armed .perks-ring line,
.services.is-armed .perks-pointer::after {
  opacity: 0;
  transition: opacity 0.8s var(--ease-out) 1.2s;
}

.services.is-armed .perks-lens {
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 1.5s cubic-bezier(0.7, 0, 0.2, 1) 0.45s;
}

.services.is-armed .perks.is-in .perk__left::before,
.services.is-armed .perks.is-in .perk__right::before {
  transform: scaleX(1);
}

.services.is-armed .perks.is-in .perk__name,
.services.is-armed .perks.is-in .perk__info,
.services.is-armed .perks.is-in .perk__toggle {
  opacity: 1;
  transform: none;
}

.services.is-armed .perks.is-in .perks-ring circle {
  stroke-dashoffset: 0;
}

.services.is-armed .perks.is-in .perks-ring line,
.services.is-armed .perks.is-in .perks-pointer::after {
  opacity: 1;
}

.services.is-armed .perks.is-in .perks-lens {
  clip-path: circle(50% at 50% 50%);
}

/* ---------- 4b. Platforms ---------- */

/* Right after the systems: the platforms behind them, every mark set in one graphite tone. */
.platforms {
  --paper: #e8e7e3;

  padding: 0 0 clamp(80px, 12vh, 130px);
  background: var(--paper);
  color: var(--graphite);
}

.platforms-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 40px;
  padding: 0 max(var(--gutter), calc((100% - 1320px) / 2)) 22px;
}

.platforms-title {
  margin: 0;
  font-size: 1.125rem;
  font-stretch: 112%;
  font-weight: 400;
}

.platforms-note {
  max-width: 62ch;
  margin: 0;
  color: rgba(27, 33, 36, 0.5);
  font-size: 0.8125rem;
}

/* A slow, continuous run; two identical lists so the loop never shows a seam. */
.platforms-track {
  display: flex;
  overflow: hidden;
  padding: clamp(28px, 4.5vh, 44px) 0;
  box-shadow:
    inset 0 1px 0 rgba(27, 33, 36, 0.12),
    inset 0 -1px 0 rgba(27, 33, 36, 0.12);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.platforms-run {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: clamp(56px, 6vw, 96px);
  margin: 0;
  padding: 0 clamp(28px, 3vw, 48px);
  list-style: none;
  animation: platforms-run 60s linear infinite;
}

.platforms-track:hover .platforms-run {
  animation-play-state: paused;
}

@keyframes platforms-run {
  to {
    transform: translateX(-100%);
  }
}

.platforms-run img {
  display: block;
  width: auto;
  height: calc(clamp(24px, 2.4vw, 34px) * var(--s, 1));
  max-width: none;
  filter: brightness(0) opacity(0.62);
  transition: filter 0.4s var(--ease-out);
}

.platforms-run li:hover img {
  filter: brightness(0) opacity(0.9);
}

/* ---------- 4c. Control: every way of asking reaches one logic ---------- */

.control {
  --ink-read: rgba(236, 234, 229, 0.64);
  --wire: rgba(236, 234, 229, 0.16);

  padding: clamp(110px, 16vh, 170px) max(var(--gutter), calc((100% - 1320px) / 2)) clamp(90px, 13vh, 140px);
  background: #0b0f11;
  color: var(--ink);
}

.control-head {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  align-items: end;
  gap: 24px clamp(32px, 6vw, 110px);
}

.control-title {
  margin: 0;
  font-size: clamp(2.5rem, 4.3vw, 4.5rem);
  font-stretch: 112%;
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.cl-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.cl-line > span {
  display: inline-block;
}

.cl-line + .cl-line {
  padding-left: 0.6em;
  color: var(--ink-read);
}

@media (min-width: 961px) {
  .cl-line {
    white-space: nowrap;
    font-size: calc(1em * var(--heading-fit, 1));
    letter-spacing: -0.03em;
  }
}

.control-lede {
  max-width: 42ch;
  margin: 0;
  color: var(--ink-read);
  font-size: 1.0625rem;
  line-height: 1.55;
}

/* The diagram: inputs on the left, one logic in the middle, systems on the right. */
.cx {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 0 clamp(40px, 7vw, 120px);
  margin-top: clamp(64px, 10vh, 110px);
}

.cx-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.cx-lines path {
  fill: none;
  stroke: var(--wire);
  stroke-width: 1.2;
  transition:
    stroke 0.5s var(--ease-out),
    stroke-width 0.5s var(--ease-out);
}

.cx-lines path.is-on {
  stroke: var(--lamp);
  stroke-width: 1.8;
}

/* A bright pulse rides the active input's wire into the hub, then out to the systems. */
.cx-lines .cx-pulse {
  stroke: #ffe2b0;
  stroke-width: 2.6;
  stroke-dasharray: 0.06 1;
  stroke-dashoffset: 0.06;
  opacity: 0;
}

.cx-lines .cx-pulse.is-running {
  opacity: 1;
  animation: cx-pulse 1.1s cubic-bezier(0.45, 0, 0.2, 1) forwards;
}

@keyframes cx-pulse {
  to {
    stroke-dashoffset: -1;
  }
}

.cx-inputs,
.cx-systems {
  position: relative;
  display: grid;
  gap: clamp(18px, 3.4vh, 30px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.cx-input {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  color: rgba(236, 234, 229, 0.42);
  transition: color 0.5s var(--ease-out);
}

.cx-input > span {
  justify-self: start;
}

.cx-input__name {
  font-size: clamp(1.25rem, 1.8vw, 1.625rem);
  font-stretch: 112%;
  font-weight: 300;
}

.cx-input__sub {
  font-size: 0.875rem;
}

.cx-input.is-on {
  color: var(--ink);
}

.cx-input.is-on .cx-input__sub {
  color: var(--lamp);
}

.cx-hub {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
}

.cx-core {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(96px, 9vw, 132px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 180, 106, 0.28) 0%, rgba(232, 180, 106, 0.06) 55%, rgba(232, 180, 106, 0) 72%);
}

.cx-core span {
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--lamp);
  box-shadow: 0 0 34px 8px rgba(232, 180, 106, 0.45);
  transition: transform 0.6s var(--ease-out);
}

.cx-core.is-hit span {
  transform: scale(1.18);
}

.cx-hub__name {
  margin: 18px 0 4px;
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  font-stretch: 112%;
}

.cx-hub__sub {
  margin: 0;
  color: var(--ink-read);
  font-size: 0.875rem;
}

/* What was asked, typed out under the hub. */
.cx-say {
  min-height: 3.2em;
  max-width: 24ch;
  margin: clamp(22px, 4vh, 36px) 0 0;
  font-size: clamp(1.125rem, 1.6vw, 1.5rem);
  font-stretch: 112%;
  font-weight: 300;
  line-height: 1.3;
}

.cx-say__caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.12em;
  background: var(--lamp);
  animation: cx-caret 1s steps(1) infinite;
}

@keyframes cx-caret {
  50% {
    opacity: 0;
  }
}

.cx-system {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0 12px;
  box-shadow: inset 0 -1px 0 var(--wire);
}

.cx-system dt {
  color: var(--ink-read);
  font-size: 0.9375rem;
}

.cx-system dd {
  margin: 0;
  font-size: clamp(1.125rem, 1.6vw, 1.5rem);
  font-stretch: 112%;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  transition:
    color 0.6s var(--ease-out),
    opacity 0.4s var(--ease-out),
    transform 0.6s var(--ease-out);
}

.cx-system dd.is-changing {
  opacity: 0;
  transform: translateY(6px);
}

.cx-system dd.is-new {
  color: var(--lamp);
}

.control-foot {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  align-items: end;
  gap: 32px clamp(32px, 6vw, 110px);
  margin-top: clamp(72px, 11vh, 120px);
}

.assistants {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px clamp(24px, 4vw, 64px);
}

.assistants h3 {
  margin: 0 0 10px;
  color: var(--lamp);
  font-size: 0.875rem;
  font-weight: 400;
}

.assistants p {
  margin: 0;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  font-stretch: 112%;
  font-weight: 300;
  line-height: 1.5;
}

.assistants p span {
  margin: 0 0.35em;
  color: rgba(236, 234, 229, 0.3);
}

.control-guard {
  max-width: 52ch;
  margin: 0;
  padding-left: 18px;
  color: var(--ink-read);
  font-size: 0.8125rem;
  line-height: 1.55;
  box-shadow: inset 2px 0 0 var(--lamp);
}

.control-guard__label {
  display: none;
}

@media (min-width: 961px) {
  .control {
    padding-bottom: clamp(72px, 9vh, 110px);
  }

  .control-foot {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: clamp(28px, 4vw, 64px);
    margin-top: clamp(70px, 10vh, 108px);
    padding-top: 28px;
    border-top: 1px solid var(--wire);
  }

  .assistants {
    display: contents;
  }

  .assistants h3,
  .control-guard__label {
    display: block;
    margin: 0 0 12px;
    color: var(--lamp);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.4;
  }

  .assistants p,
  .control-guard {
    font-size: clamp(1rem, 1.25vw, 1.125rem);
    line-height: 1.48;
  }

  .control-guard {
    max-width: none;
    padding: 0;
    box-shadow: none;
  }
}

/* Entrance, set only when the script runs. */
.control.is-armed .cl-line > span {
  transform: translateY(110%);
  transition: transform 1.3s var(--ease-out);
}

.control.is-armed .cl-line + .cl-line > span {
  transition-delay: 0.12s;
}

.control.is-armed .control-lede,
.control.is-armed .cx,
.control.is-armed .control-foot {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 1s var(--ease-out),
    transform 1.2s var(--ease-out);
}

.control.is-armed .control-lede {
  transition-delay: 0.3s;
}

.control.is-armed .cx {
  transition-delay: 0.5s;
}

.control.is-armed .control-foot {
  transition-delay: 0.7s;
}

.control.is-armed.is-in .cl-line > span,
.control.is-armed.is-in .control-lede,
.control.is-armed.is-in .cx,
.control.is-armed.is-in .control-foot {
  opacity: 1;
  transform: none;
}

/* ---------- 5. How we work ---------- */

/* A tone step down from block 4; a tall section with a sticky frame, the light walks the steps. */
.process {
  --stone: #dfded9;
  --graphite-mute: rgba(27, 33, 36, 0.4);
  --graphite-read: rgba(27, 33, 36, 0.62);
  --rule: rgba(27, 33, 36, 0.16);

  position: relative;
  height: 420vh;
  background: var(--stone);
  color: var(--graphite);
}

.process-sticky {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  height: 100vh;
  height: 100svh;
  /* Content keeps to 1320px on wide screens; the gutter is the floor everywhere. */
  padding: clamp(64px, 10vh, 112px) max(var(--gutter), calc((100% - 1320px) / 2)) clamp(24px, 4vh, 44px);
}

.process-head {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  align-items: end;
  gap: 24px clamp(32px, 5vw, 96px);
}

.process-title {
  margin: 0;
  font-size: clamp(2.25rem, 4.3vw, 4.5rem);
  font-stretch: 112%;
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.pt-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.pt-line > span {
  display: inline-block;
}

/* Each line holds together on wide screens, so neither ends on a lone word. */
@media (min-width: 961px) {
  .pt-line {
    white-space: nowrap;
    font-size: calc(1em * var(--heading-fit, 1));
    letter-spacing: -0.03em;
  }
}

.pt-line + .pt-line {
  color: var(--graphite-read);
}

.process-lede {
  max-width: 40ch;
  margin: 0;
  color: var(--graphite-read);
  line-height: 1.55;
}

/* The track: phases of the build above, the wire below, with the light travelling along it. */
.process-track {
  margin-top: clamp(40px, 8vh, 88px);
}

.pr-phases {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 14px;
  color: var(--graphite-read);
  font-size: 0.8125rem;
}

.pr-phases > span {
  position: relative;
  padding: 0 12px 10px;
  text-align: center;
}

/* A soft tone band marks how far each phase reaches, without a ruled bracket. */
.pr-phases > span::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: rgba(27, 33, 36, 0.07);
}

.pr-line {
  position: relative;
  height: 2px;
  margin: 0 calc(100% / 12);
  background: var(--rule);
}

.pr-line__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--x, 0) * 100%);
  background: linear-gradient(90deg, rgba(232, 180, 106, 0.2), var(--lamp));
}

.pr-light {
  position: absolute;
  top: 50%;
  left: calc(var(--x, 0) * 100%);
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: #f6d9a8;
  box-shadow:
    0 0 0 4px rgba(232, 180, 106, 0.22),
    0 0 26px 8px rgba(232, 180, 106, 0.5);
}

.pr-nodes {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: -7px 0 0;
  padding: 0;
  list-style: none;
}

.pr-node {
  display: grid;
  justify-items: center;
  gap: 16px;
  width: 100%;
  padding: 0 6px 8px;
  border: 0;
  background: none;
  color: var(--graphite-mute);
  font: inherit;
  font-size: 0.9375rem;
  text-align: center;
  cursor: pointer;
  transition: color 0.5s var(--ease-out);
}

.pr-node__dot {
  width: 12px;
  height: 12px;
  border: 1px solid rgba(27, 33, 36, 0.35);
  border-radius: 50%;
  background: var(--stone);
  transition:
    background-color 0.5s var(--ease-out),
    border-color 0.5s var(--ease-out),
    box-shadow 0.8s var(--ease-out);
}

/* A step the light has reached stays lit. */
.pr-node.is-lit {
  color: var(--graphite-read);
}

.pr-node.is-lit .pr-node__dot {
  border-color: var(--lamp);
  background: var(--lamp);
}

.pr-node[aria-pressed="true"],
.pr-node:hover {
  color: var(--graphite);
}

.pr-node[aria-pressed="true"] .pr-node__dot {
  box-shadow: 0 0 0 5px rgba(232, 180, 106, 0.22);
}

/* The step in focus: all six stacked in one cell, only the active one shown. */
.process-stage {
  display: grid;
  align-self: center;
}

.pr-step {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  grid-template-areas:
    "phase gets"
    "name  gets"
    "desc  gets";
  align-content: start;
  gap: 0 clamp(32px, 6vw, 120px);
  pointer-events: none;
}

.pr-step > * {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(6px);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.9s var(--ease-out),
    filter 0.9s var(--ease-out);
}

.pr-step.is-active {
  pointer-events: auto;
}

.pr-step.is-active > * {
  opacity: 1;
  transform: none;
  filter: none;
}

.pr-step.is-active > :nth-child(2) {
  transition-delay: 0.08s;
}

.pr-step.is-active > :nth-child(3) {
  transition-delay: 0.16s;
}

.pr-step.is-active > :nth-child(4) {
  transition-delay: 0.26s;
}

.pr-step.is-leaving > * {
  transform: translateY(-12px);
  transition-duration: 0.45s;
}

.pr-step__phase {
  grid-area: phase;
  margin: 0 0 10px;
  color: #a0773c;
  font-size: 0.875rem;
}

.pr-step__name {
  grid-area: name;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.75rem);
  font-stretch: 112%;
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.pr-step__desc {
  grid-area: desc;
  max-width: 44ch;
  margin: 18px 0 0;
  color: var(--graphite-read);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.pr-step__gets {
  grid-area: gets;
  align-self: end;
}

.pr-step__label {
  margin: 0 0 14px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.pr-step__gets ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--graphite-read);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.pr-step__gets li {
  padding-left: 18px;
  background: linear-gradient(var(--lamp), var(--lamp)) 0 0.62em / 8px 2px no-repeat;
}

/* Who does what, set as a quiet closing line. */
.process-note {
  max-width: 82ch;
  margin: 0;
  padding-top: 18px;
  color: var(--graphite-read);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Entrance, set only when the script runs. */
.process.is-armed .pt-line > span {
  transform: translateY(110%);
  transition: transform 1.3s var(--ease-out);
}

.process.is-armed .pt-line + .pt-line > span {
  transition-delay: 0.12s;
}

.process.is-armed .process-lede,
.process.is-armed .pr-phases,
.process.is-armed .pr-nodes,
.process.is-armed .process-stage,
.process.is-armed .process-note {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 1s var(--ease-out),
    transform 1.2s var(--ease-out);
}

.process.is-armed .process-lede {
  transition-delay: 0.3s;
}

.process.is-armed .pr-phases {
  transition-delay: 0.5s;
}

.process.is-armed .pr-nodes {
  transition-delay: 0.62s;
}

.process.is-armed .process-stage {
  transition-delay: 0.8s;
}

.process.is-armed .process-note {
  transition-delay: 1s;
}

.process.is-armed .pr-line {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.6s cubic-bezier(0.65, 0, 0.25, 1) 0.45s;
}

.process.is-armed.is-in .pt-line > span,
.process.is-armed.is-in .process-lede,
.process.is-armed.is-in .pr-phases,
.process.is-armed.is-in .pr-nodes,
.process.is-armed.is-in .process-stage,
.process.is-armed.is-in .process-note,
.process.is-armed.is-in .pr-line {
  opacity: 1;
  transform: none;
}

/* ---------- 6. Breath ---------- */

/* A full-screen pause: the house in morning fog, a slow line of type passing behind the firs. */
.breath {
  --stone: #dfded9;

  position: relative;
  height: 115vh;
  height: 115svh;
  overflow: hidden;
  background: #b9bcbd;
}

.breath-frame {
  position: absolute;
  inset: 0;
  /* Without the script the photograph still fills the frame. */
  background: url("assets/hero-desktop-dusk.webp") 50% 60% / cover no-repeat;
  transform: scale(var(--push, 1.06));
  transform-origin: 50% 60%;
  will-change: transform;
}

.breath-base,
.breath-front {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Type sits between the photograph and its own trees, so the firs pass in front of it. */
.breath-type {
  position: absolute;
  left: 0;
  right: 0;
  top: 22%;
  overflow: hidden;
  color: rgba(27, 33, 36, 0.82);
  font-size: clamp(5rem, 15vw, 16rem);
  font-stretch: 125%;
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.breath-track {
  display: inline-flex;
  align-items: center;
  will-change: transform;
}

.breath-track > span {
  padding: 0 0.12em 0.08em;
}

/* A warm point of light between the phrases. */
.breath-track > i {
  width: 0.09em;
  height: 0.09em;
  margin: 0 0.3em;
  border-radius: 50%;
  background: var(--lamp);
  box-shadow: 0 0 0.25em 0.05em rgba(232, 180, 106, 0.6);
}

/* The photograph rises out of block 5's stone ground and sinks into the dark of block 7. */
.breath::before,
.breath::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  pointer-events: none;
}

.breath::before {
  top: 0;
  height: 22%;
  background: linear-gradient(180deg, var(--stone) 0%, rgba(223, 222, 217, 0.6) 40%, rgba(223, 222, 217, 0) 100%);
}

.breath::after {
  bottom: 0;
  height: 26%;
  background: linear-gradient(0deg, #0b0f11 0%, rgba(11, 15, 17, 0.55) 45%, rgba(11, 15, 17, 0) 100%);
}

@media (max-width: 700px) {
  .breath-frame {
    background-image: url("assets/hero-mobile-dusk.webp");
  }

  /* Lower on tall phones, so the line crosses the tops of the firs. */
  .breath-type {
    top: 31%;
    font-size: 23vw;
  }
}

/* ---------- 7. Architects & builders ---------- */

/* One screen: the argument on the left, a building section on the right that shows one idea at a time. */
.partners {
  --ink-line: rgba(236, 234, 229, 0.42);
  --ink-read: rgba(236, 234, 229, 0.66);

  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 2fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: clamp(28px, 5vh, 56px) clamp(32px, 4vw, 72px);
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(80px, 11vh, 120px) max(var(--gutter), calc((100% - 1320px) / 2)) clamp(36px, 6vh, 64px);
  background: #0b0f11;
  color: var(--ink);
}

.partners-title {
  margin: 0;
  font-size: calc(clamp(2.25rem, 3.5vw, 3.875rem) * var(--heading-fit, 1));
  font-stretch: 112%;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
}

.pa-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
  white-space: nowrap;
}

.pa-line > span {
  display: inline-block;
}

.pa-line + .pa-line {
  padding-left: 0.6em;
  color: var(--ink-read);
}

.partners-lede {
  max-width: 40ch;
  margin: clamp(18px, 3vh, 28px) 0 clamp(24px, 4vh, 40px);
  color: var(--ink-read);
  line-height: 1.55;
}

/* The four ideas: only the one on the drawing is open; its bar fills like a dimmer while it plays. */
.pd-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pd-item {
  position: relative;
  display: grid;
  width: 100%;
  padding: 12px 0 12px 20px;
  border: 0;
  background: none;
  color: rgba(236, 234, 229, 0.42);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 0.4s var(--ease-out);
}

.pd-item::before,
.pd-item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 2px;
}

.pd-item::before {
  background: rgba(236, 234, 229, 0.12);
}

.pd-item::after {
  background: var(--lamp);
  transform: scaleY(var(--p, 0));
  transform-origin: top;
}

.pd-item[aria-pressed="true"] {
  color: var(--ink);
}

.pd-item:hover {
  color: var(--ink);
}

.pd-item__name {
  font-size: clamp(1.125rem, 1.45vw, 1.375rem);
  font-stretch: 112%;
  font-weight: 400;
}

.pd-item__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s var(--ease-out);
}

.pd-item__body > span {
  overflow: hidden;
  max-width: 38ch;
  color: var(--ink-read);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.pd-item[aria-pressed="true"] .pd-item__body {
  grid-template-rows: 1fr;
}

.pd-item[aria-pressed="true"] .pd-item__body > span {
  padding-top: 8px;
}

/* ---- The drawing ---- */

.pd-frame {
  position: relative;
  min-width: 0;
}

.pd-hint {
  display: none;
}

.pd-drawing {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.pd-drawing path,
.pd-drawing circle {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pd-base {
  stroke: var(--ink-line);
  stroke-width: 1.3;
}

.pd-rooms text {
  fill: rgba(236, 234, 229, 0.28);
  font-size: 13px;
  text-anchor: middle;
}

/* Each part shows full, faint or not at all, depending on the idea in focus. */
.pd-part {
  color: var(--lamp);
  stroke: currentColor;
  stroke-width: 1.7;
  opacity: 0;
  transition: opacity 0.7s var(--ease-out);
}

.pd-part circle {
  fill: rgba(232, 180, 106, 0.16);
}

.pd-trades {
  color: rgba(236, 234, 229, 0.5);
  stroke-width: 1.4;
  stroke-dasharray: 0.004 0.006;
}

.pd-run {
  opacity: 0.85;
}

.pd-flow {
  stroke: #f6d9a8;
  stroke-width: 2.6;
  stroke-dasharray: 0.012 0.188;
  animation: pd-flow 9s linear infinite;
}

@keyframes pd-flow {
  to {
    stroke-dashoffset: -1;
  }
}

.pd-link {
  stroke-dasharray: 0.006 0.006;
  stroke-width: 1.4;
}

.pd-tag rect {
  fill: #0b0f11;
  stroke: var(--lamp);
  stroke-width: 1.2;
}

.pd-tag text {
  fill: var(--ink);
  stroke: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.pd-labels {
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.8s var(--ease-out);
}

.pd-label {
  fill: var(--ink);
  font-size: 18px;
  paint-order: stroke;
  stroke: #0b0f11;
  stroke-width: 6px;
  stroke-linejoin: round;
}

/* 0: one backbone. The cabling and rack, with current running. */
.partners[data-focus="0"] .pd-cabling {
  opacity: 1;
}

/* 1: devices in place; the backbone stays faintly behind them. */
.partners[data-focus="1"] .pd-cabling {
  opacity: 0.22;
}

.partners[data-focus="1"] .pd-devices {
  opacity: 1;
}

/* 2: other trades' equipment and the links into the rack. */
.partners[data-focus="2"] .pd-cabling,
.partners[data-focus="2"] .pd-devices {
  opacity: 0.2;
}

.partners[data-focus="2"] .pd-equipment,
.partners[data-focus="2"] .pd-trades {
  opacity: 1;
}

/* 3: everything faint, tags on top. */
.partners[data-focus="3"] .pd-cabling,
.partners[data-focus="3"] .pd-devices,
.partners[data-focus="3"] .pd-equipment {
  opacity: 0.28;
}

.partners[data-focus="3"] .pd-tags {
  opacity: 1;
}

.partners[data-focus="0"] .pd-labels[data-layer="0"],
.partners[data-focus="1"] .pd-labels[data-layer="1"],
.partners[data-focus="2"] .pd-labels[data-layer="2"],
.partners[data-focus="3"] .pd-labels[data-layer="3"] {
  opacity: 1;
  transform: none;
  transition-delay: 0.25s;
}

/* ---- Foot ---- */

.partners-foot {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 32px;
  padding-top: clamp(20px, 3vh, 28px);
}

.partners-client {
  margin: 0;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  font-stretch: 112%;
  font-weight: 300;
  line-height: 1.4;
}

.partners-note {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(236, 234, 229, 0.45);
  font-size: 0.8125rem;
}

/* Light button for dark grounds. */
.button--light {
  background: var(--ink);
  color: var(--graphite);
}

@media (hover: hover) and (pointer: fine) {
  .button--light:not(:disabled):not([aria-disabled="true"]):hover {
    background: var(--lamp);
    color: var(--graphite);
  }
}

/* ---- Entrance, set only when the script runs ---- */

.partners.is-armed .pa-line > span {
  transform: translateY(110%);
  transition: transform 1.3s var(--ease-out);
}

.partners.is-armed .pa-line + .pa-line > span {
  transition-delay: 0.12s;
}

.partners.is-armed .partners-lede,
.partners.is-armed .pd-list,
.partners.is-armed .partners-foot {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 1s var(--ease-out),
    transform 1.2s var(--ease-out);
}

.partners.is-armed .partners-lede {
  transition-delay: 0.3s;
}

.partners.is-armed .pd-list {
  transition-delay: 0.45s;
}

.partners.is-armed .partners-foot {
  transition-delay: 0.9s;
}

.partners.is-armed .pd-base path {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.8s cubic-bezier(0.65, 0, 0.35, 1) calc(var(--d, 0) * 60ms);
}

.partners.is-armed .pd-rooms {
  opacity: 0;
  transition: opacity 0.9s var(--ease-out) 1.2s;
}

.partners.is-armed.is-in .pa-line > span,
.partners.is-armed.is-in .partners-lede,
.partners.is-armed.is-in .pd-list,
.partners.is-armed.is-in .partners-foot {
  opacity: 1;
  transform: none;
}

.partners.is-armed.is-in .pd-base path {
  stroke-dashoffset: 0;
}

.partners.is-armed.is-in .pd-rooms {
  opacity: 1;
}

/* Layers wait for the drawing to finish before they appear. */
.partners.is-armed:not(.is-drawn) .pd-part,
.partners.is-armed:not(.is-drawn) .pd-labels {
  opacity: 0 !important;
}

/* ---------- 8. Principles ---------- */

/* Light again after the dark of block 7: a short dawn, then a sticky heading beside four principles. */
.principles {
  --paper: #e8e7e3;
  --graphite-read: rgba(27, 33, 36, 0.64);

  position: relative;
  padding: clamp(220px, 34vh, 340px) max(var(--gutter), calc((100% - 1320px) / 2)) clamp(100px, 15vh, 170px);
  background:
    linear-gradient(180deg, #0b0f11 0%, #1f2426 14%, #4a4e4f 30%, #858886 48%, #bdbdb9 66%, #dcdbd7 84%, var(--paper) 100%) top / 100% clamp(260px, 40vh, 400px) no-repeat,
    var(--paper);
  color: var(--graphite);
}

.principles-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  align-items: start;
  gap: clamp(40px, 7vw, 140px);
}

.principles-head {
  position: sticky;
  top: clamp(90px, 14vh, 140px);
}

.principles-title {
  margin: 0;
  font-size: clamp(2.75rem, 5.2vw, 5.5rem);
  font-stretch: 112%;
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.pp-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.pp-line > span {
  display: inline-block;
}

.pp-line + .pp-line {
  padding-left: 0.7em;
  color: var(--graphite-read);
}

.principles-lede {
  max-width: 30ch;
  margin: clamp(22px, 3.5vh, 32px) 0 0;
  color: var(--graphite-read);
  font-size: 1.125rem;
  line-height: 1.5;
}

/* EHT Core: a quiet note, clearly a direction rather than an offer. */
.principles-core {
  max-width: 40ch;
  margin: clamp(56px, 12vh, 120px) 0 0;
  padding-left: 18px;
  color: var(--graphite-read);
  font-size: 0.875rem;
  line-height: 1.55;
  box-shadow: inset 2px 0 0 var(--lamp);
}

.principles-core span {
  display: block;
  margin-bottom: 4px;
  color: #a0773c;
}

.principles-list {
  display: grid;
  gap: clamp(64px, 12vh, 128px);
  margin: 0;
  padding: clamp(8px, 2vh, 24px) 0 0;
  list-style: none;
}

.principle {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 6px 28px;
}

.pr-icon {
  grid-row: 1 / 3;
  width: 56px;
  height: 56px;
  fill: none;
  stroke: var(--graphite);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.pr-icon .pr-icon__move {
  stroke: #c08a3e;
  transition: transform 0.6s var(--ease-out);
  transform-box: fill-box;
  transform-origin: center;
}

.principle__title {
  margin: 0;
  text-wrap: balance;
  font-size: clamp(1.75rem, 2.7vw, 2.625rem);
  font-stretch: 112%;
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.principle__text {
  max-width: 44ch;
  margin: 12px 0 0;
  color: var(--graphite-read);
  font-size: 1.0625rem;
  line-height: 1.55;
}

/* Each mark comes alive on hover: the rocker flips, the shield's line steadies, the check lands, a node opens. */
.principle:hover .pr-icon--switch .pr-icon__move {
  transform: translateY(13px);
}

.principle:hover .pr-icon--shield .pr-icon__move {
  transform: scale(1.12);
}

.principle:hover .pr-icon--check .pr-icon__move {
  transform: scale(1.12);
}

.principle:hover .pr-icon--open .pr-icon__move {
  transform: translateX(3px);
}

/* Entrance, set only when the script runs. */
.principles.is-armed .pp-line > span {
  transform: translateY(110%);
  transition: transform 1.3s var(--ease-out);
}

.principles.is-armed .pp-line + .pp-line > span {
  transition-delay: 0.12s;
}

.principles.is-armed .principles-lede,
.principles.is-armed .principles-core {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 1s var(--ease-out) 0.35s,
    transform 1.2s var(--ease-out) 0.35s;
}

.principles.is-armed .principles-core {
  transition-delay: 0.6s;
}

.principles.is-armed .principles-head.is-in .pp-line > span,
.principles.is-armed .principles-head.is-in .principles-lede,
.principles.is-armed .principles-head.is-in .principles-core {
  opacity: 1;
  transform: none;
}

.principles.is-armed .pr-icon * {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  transition:
    stroke-dashoffset 1.4s cubic-bezier(0.65, 0, 0.35, 1),
    transform 0.6s var(--ease-out);
}

.principles.is-armed .pr-icon .pr-icon__move {
  transition-delay: 0.5s, 0s;
}

.principles.is-armed .principle__title,
.principles.is-armed .principle__text {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.9s var(--ease-out) 0.15s,
    transform 1.1s var(--ease-out) 0.15s;
}

.principles.is-armed .principle__text {
  transition-delay: 0.28s;
}

.principles.is-armed .principle.is-in .pr-icon * {
  stroke-dashoffset: 0;
}

.principles.is-armed .principle.is-in .principle__title,
.principles.is-armed .principle.is-in .principle__text {
  opacity: 1;
  transform: none;
}

/* The working home is the exhibit: type frames a full-width moving view. */
.lab {
  background: var(--ground);
  color: var(--ink);
}

.lab-inner {
  display: flex;
  flex-direction: column;
}

.lab-copy,
.lab-details {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.lab-copy {
  padding-top: clamp(88px, 11vw, 176px);
  padding-bottom: clamp(36px, 5vw, 72px);
}

.lab-title {
  margin: 0;
  font-size: clamp(4rem, 7vw, 7.75rem);
  font-stretch: 112%;
  font-weight: 300;
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.lab-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.lab-line > span {
  display: inline-block;
}

.lab-line + .lab-line {
  text-align: right;
}

.lab-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
  gap: clamp(64px, 12vw, 220px);
  align-items: start;
  padding-top: clamp(54px, 7vw, 112px);
  padding-bottom: clamp(88px, 10vw, 152px);
}

.lab-lede {
  max-width: 62ch;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.125rem, 1.55vw, 1.5rem);
  line-height: 1.5;
}

.lab-values {
  display: grid;
  gap: 0.22em;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: clamp(1.55rem, 2.4vw, 2.75rem);
  font-stretch: 112%;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.lab-values li::before {
  content: "·";
  display: inline-block;
  width: 0.7em;
  color: var(--lamp);
}

.lab-media {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  height: clamp(450px, 50vw, 740px);
  background: #202a2d;
}

.lab-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.lab.is-armed .lab-line > span {
  transform: translateY(110%);
  transition: transform 1.2s var(--ease-out);
}

.lab.is-armed .lab-line + .lab-line > span {
  transition-delay: 0.1s;
}

.lab.is-armed .lab-lede,
.lab.is-armed .lab-values {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s var(--ease-out) 0.22s, transform 1s var(--ease-out) 0.22s;
}

.lab.is-armed .lab-values {
  transition-delay: 0.35s;
}

.lab.is-armed .lab-media {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.35s var(--ease-out) 0.08s;
}

.lab.is-armed.is-in .lab-line > span,
.lab.is-armed.is-in .lab-lede,
.lab.is-armed.is-in .lab-values {
  opacity: 1;
  transform: none;
}

.lab.is-armed.is-in .lab-media {
  clip-path: inset(0 0 0 0);
}

/* ---------- Founder (team page: about.html) ---------- */

/* A tone step down from block 8: the founder's story on the left, his portrait on the right. */
.team {
  --stone: #dfded9;
  --graphite-read: rgba(27, 33, 36, 0.62);
  --rule: rgba(27, 33, 36, 0.14);

  padding: clamp(110px, 16vh, 170px) max(var(--gutter), calc((100% - 1320px) / 2)) clamp(90px, 13vh, 140px);
  background: var(--stone);
  color: var(--graphite);
}

.founder {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(40px, 6vw, 120px);
}

.team-title {
  margin: 0;
  font-size: clamp(2.5rem, 4.8vw, 5rem);
  font-stretch: 112%;
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.tm-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.tm-line > span {
  display: inline-block;
}

.tm-line + .tm-line {
  padding-left: 0.7em;
  color: var(--graphite-read);
}

@media (min-width: 961px) {
  .tm-line {
    white-space: nowrap;
  }
}

.team-lede {
  max-width: 50ch;
  margin: clamp(24px, 4vh, 36px) 0 0;
  color: var(--graphite-read);
  font-size: 1.125rem;
  line-height: 1.6;
}

/* Three plain facts, set as text rather than as a stats banner. */
.founder-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px clamp(20px, 3vw, 40px);
  max-width: 640px;
  margin: clamp(32px, 5vh, 48px) 0 clamp(28px, 4vh, 40px);
  padding: 0;
  list-style: none;
  color: var(--graphite-read);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.founder-facts li {
  padding-top: 14px;
  box-shadow: inset 0 2px 0 var(--lamp);
}

.founder-facts strong {
  display: block;
  margin-bottom: 4px;
  color: var(--graphite);
  font-size: 1.125rem;
  font-stretch: 112%;
  font-weight: 400;
}

.founder-photo {
  margin: 0;
}

.founder-photo__frame {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #cfcdc7;
}

.founder-photo__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transform: scale(var(--zoom, 1));
  transition: transform 1.6s var(--ease-out);
}

.founder-photo figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  color: var(--graphite-read);
  font-size: 0.875rem;
}

.founder-photo figcaption span {
  color: var(--graphite);
  font-size: 1rem;
}

/* Entrance, set only when the script runs: the title rises, the portrait opens like a shade. */
.team.is-armed .tm-line > span {
  transform: translateY(110%);
  transition: transform 1.3s var(--ease-out);
}

.team.is-armed .tm-line + .tm-line > span {
  transition-delay: 0.12s;
}

.team.is-armed .team-lede,
.team.is-armed .founder-facts,
.team.is-armed .founder-copy .text-link,
.team.is-armed .founder-photo figcaption {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 1s var(--ease-out) 0.35s,
    transform 1.2s var(--ease-out) 0.35s;
}

.team.is-armed .founder-facts {
  transition-delay: 0.5s;
}

.team.is-armed .founder-copy .text-link,
.team.is-armed .founder-photo figcaption {
  transition-delay: 0.7s;
}

.team.is-armed .founder-photo__frame {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.4s cubic-bezier(0.7, 0, 0.2, 1) 0.15s;
}

.team.is-armed .founder-photo__frame img {
  --zoom: 1.12;
}

.team.is-armed.is-in .tm-line > span,
.team.is-armed.is-in .team-lede,
.team.is-armed.is-in .founder-facts,
.team.is-armed.is-in .founder-copy .text-link,
.team.is-armed.is-in .founder-photo figcaption {
  opacity: 1;
  transform: none;
}

.team.is-armed.is-in .founder-photo__frame {
  clip-path: inset(0 0 0 0);
}

.team.is-armed.is-in .founder-photo__frame img {
  --zoom: 1;
}

/* ---------- 10. Contact ---------- */

/* The closing scene, dark: the invitation on the left, a calm form on the right. */
.contact {
  --ink-read: rgba(236, 234, 229, 0.64);
  --field-line: rgba(236, 234, 229, 0.26);

  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(48px, 7vw, 140px);
  padding: clamp(110px, 16vh, 170px) max(var(--gutter), calc((100% - 1320px) / 2)) clamp(90px, 14vh, 150px);
  background: #0b0f11;
  color: var(--ink);
}

.contact-intro {
  position: sticky;
  top: clamp(90px, 14vh, 140px);
}

.contact-title {
  margin: 0;
  font-size: clamp(2.75rem, 5.2vw, 5.5rem);
  font-stretch: 112%;
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.ct-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.ct-line > span {
  display: inline-block;
}

.ct-line + .ct-line {
  padding-left: 0.6em;
  color: var(--ink-read);
}

.contact-lede {
  max-width: 38ch;
  margin: clamp(22px, 3.5vh, 32px) 0 0;
  color: var(--ink-read);
  font-size: 1.125rem;
  line-height: 1.55;
}

.contact-details {
  display: grid;
  gap: 22px;
  margin: clamp(40px, 7vh, 64px) 0 0;
}

.contact-details dt {
  margin-bottom: 6px;
  color: var(--lamp);
  font-size: 0.875rem;
}

.contact-details dd {
  max-width: 36ch;
  margin: 0;
  color: var(--ink-read);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.contact-details dd a {
  color: var(--ink);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-stretch: 112%;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

.contact-details dd a:hover {
  color: var(--lamp);
}

.contact-details dd .contact-email {
  font-size: clamp(1.125rem, 1.6vw, 1.5rem);
  overflow-wrap: anywhere;
}

/* ---- Form ---- */

.contact-form {
  display: grid;
  gap: clamp(26px, 4vh, 36px);
}

.cf-hidden {
  position: absolute;
  left: -9999px;
}

.cf-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(26px, 4vh, 36px) clamp(20px, 3vw, 40px);
}

.cf-field {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.cf-field > label,
.cf-group legend {
  display: block;
  margin-bottom: 10px;
  padding: 0;
  color: var(--ink);
  font-size: 0.9375rem;
}

.cf-optional {
  margin-left: 6px;
  color: rgba(236, 234, 229, 0.42);
  font-size: 0.8125rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
  box-shadow: inset 0 -1px 0 var(--field-line);
  transition: box-shadow 0.4s var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}

.contact-form textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.5;
}

.contact-form ::placeholder {
  color: rgba(236, 234, 229, 0.34);
}

/* The underline brightens to a warm line on focus, like a light coming up. */
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  box-shadow: inset 0 -2px 0 var(--lamp);
}

.contact-form input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  transition: background-color 9999s 0s;
}

/* Choices as chips: native inputs, styled. */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  position: relative;
  cursor: pointer;
}

.chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 21px;
  color: var(--ink-read);
  font-size: 0.9375rem;
  box-shadow: inset 0 0 0 1px var(--field-line);
  transition:
    background-color 0.35s var(--ease-out),
    color 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
}

.chip:hover span {
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(236, 234, 229, 0.5);
}

.chip input:checked + span {
  background: var(--lamp);
  color: var(--graphite);
  box-shadow: none;
}

.chip input:focus-visible + span {
  outline: 2px solid var(--lamp);
  outline-offset: 3px;
}

/* Errors sit right under the field, shown only after an attempt to send. */
.cf-error {
  display: none;
  margin: 8px 0 0;
  color: #f0b27a;
  font-size: 0.8125rem;
}

.cf-field.is-invalid .cf-error {
  display: block;
}

.cf-field.is-invalid input,
.cf-field.is-invalid textarea {
  box-shadow: inset 0 -2px 0 #f0b27a;
}

.cf-submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 8px;
}

.cf-submit .button {
  min-width: 220px;
}

.cf-submit .button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.cf-privacy {
  margin: 0;
  color: rgba(236, 234, 229, 0.45);
  font-size: 0.8125rem;
}

.cf-done {
  padding: 28px 0 0 20px;
  box-shadow: inset 2px 0 0 var(--lamp);
}

.cf-done__title {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  font-stretch: 112%;
  font-weight: 300;
}

.cf-done__text {
  max-width: 44ch;
  margin: 12px 0 0;
  color: var(--ink-read);
  line-height: 1.55;
}

.contact-form.is-sent > :not(.cf-done) {
  display: none;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: clamp(80px, 12vh, 130px) max(var(--gutter), calc((100% - 1320px) / 2)) max(28px, env(safe-area-inset-bottom));
  background: #0b0f11;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(236, 234, 229, 0.08);
}

/* The page closes on the line it opened with. */
.sf-statement {
  margin: 0;
  font-size: clamp(2.75rem, 8.4vw, 9rem);
  font-stretch: 125%;
  font-weight: 200;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.sf-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.sf-line > span {
  display: inline-block;
}

.sf-line + .sf-line {
  font-size: 0.42em;
  font-stretch: 112%;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: rgba(236, 234, 229, 0.6);
}

.sf-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: start;
  gap: 32px clamp(24px, 4vw, 64px);
  margin-top: clamp(64px, 11vh, 120px);
}

.sf-brand {
  color: var(--ink);
}

.sf-brand .brand-name {
  color: rgba(236, 234, 229, 0.6);
}

.sf-nav {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 12px 40px;
}

.sf-nav a,
.sf-contact a {
  color: rgba(236, 234, 229, 0.75);
  text-decoration: none;
  transition: color 0.3s var(--ease-out);
}

.sf-nav a:hover,
.sf-contact a:hover {
  color: var(--lamp);
}

.sf-contact {
  justify-self: end;
  text-align: right;
}

.sf-contact a {
  color: var(--ink);
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}

.sf-contact p {
  margin: 8px 0 0;
  color: rgba(236, 234, 229, 0.5);
  font-size: 0.875rem;
}

.sf-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  margin-top: clamp(48px, 8vh, 80px);
  padding-top: 20px;
  color: rgba(236, 234, 229, 0.42);
  font-size: 0.8125rem;
  box-shadow: inset 0 1px 0 rgba(236, 234, 229, 0.08);
}

.sf-base p {
  margin: 0;
}

/* ---- Entrance, set only when the script runs ---- */

.is-armed-contact .ct-line > span,
.is-armed-contact .sf-line > span {
  transform: translateY(110%);
  transition: transform 1.3s var(--ease-out);
}

.is-armed-contact .ct-line + .ct-line > span,
.is-armed-contact .sf-line + .sf-line > span {
  transition-delay: 0.12s;
}

.is-armed-contact [data-cfade] .contact-lede,
.is-armed-contact [data-cfade] .contact-details,
.is-armed-contact .contact-form > * {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.9s var(--ease-out) calc(0.25s + var(--i, 0) * 70ms),
    transform 1.1s var(--ease-out) calc(0.25s + var(--i, 0) * 70ms);
}

.is-armed-contact .is-in .ct-line > span,
.is-armed-contact .is-in .sf-line > span,
.is-armed-contact .is-in.sf-line > span,
.is-armed-contact [data-cfade].is-in .contact-lede,
.is-armed-contact [data-cfade].is-in .contact-details,
.is-armed-contact .contact-form.is-in > * {
  opacity: 1;
  transform: none;
}

/* Small screens */

@media (max-width: 1100px) {
  .nav-extra {
    display: list-item;
  }
}

@media (max-width: 960px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    margin: 0;
    padding: 12px var(--gutter) 28px;
    background: var(--ground-2);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .site-nav a {
    display: block;
    padding: 10px 0;
    color: var(--ink);
    font-size: 1.375rem;
    font-stretch: 112%;
    font-weight: 300;
  }

  .site-nav a:hover {
    color: var(--lamp);
  }

  .header-actions {
    margin-left: auto;
    gap: 16px;
  }

  .hero {
    padding-top: 112px;
  }

  .hero-title {
    /* "One home." sets about 5.7em wide; keep it inside the gutters. */
    font-size: clamp(3rem, 15.4vw, 10rem);
  }

  .line--sub {
    font-size: 0.42em;
  }

  /* On a narrow screen the paragraph runs nearly edge to edge, so the thicker fog does too. */
  .hero-scrim {
    background:
      radial-gradient(ellipse 72% 24% at 50% 37%, rgba(222, 225, 227, 0.82) 0%, rgba(222, 225, 227, 0.64) 48%, rgba(222, 225, 227, 0) 100%),
      radial-gradient(ellipse 80% 40% at 50% 28%, rgba(226, 228, 229, 0.45) 0%, rgba(226, 228, 229, 0) 100%),
      linear-gradient(180deg, rgba(226, 228, 229, 0.35) 0%, rgba(226, 228, 229, 0) 16%),
      var(--hero-fade);
  }
}

@media (max-width: 600px) {
  .header-cta {
    display: none;
  }

  .hero-intro p {
    margin-bottom: 22px;
    font-size: 1.0625rem;
  }

  .hero-intro .hero-description {
    margin-bottom: 10px;
  }

  .hero-intro .hero-scope {
    margin-bottom: 22px;
  }

  .hero-intro .hero-regions {
    margin-top: 20px;
    font-size: 0.8125rem;
  }

  /* Services stay one tap away in the menu; the photo keeps the room. */
  .hero-actions .text-link {
    display: none;
  }

  .statement-notes {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Phones: the same full-screen room, type scaled down. */
@media (max-width: 600px) {
  .life-now__name {
    font-size: 19vw;
  }

  .life-now__text {
    font-size: 1rem;
  }

  .life-tabs {
    gap: 2px 16px;
  }

  .life-tab {
    font-size: 0.875rem;
  }
}

/* Mid widths: the stair has no room for the note beside it, so the note moves under the title. */
@media (max-width: 1200px) {
  .services-note {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: 44ch;
    margin-top: 28px;
    font-size: 1rem;
  }
}

/* Services on narrow screens: the heading stacks, and the rows become an accordion with the dial
   inside the chosen row (the script places it there), so nothing the reader taps changes off screen. */
@media (max-width: 960px) {
  .services-head {
    grid-template-columns: 1fr;
  }

  .services-title {
    font-size: clamp(2.5rem, 11vw, 4.5rem);
  }

  .st-line--1 {
    padding-left: 0;
  }

  .st-aside {
    font-size: 0.32em;
  }

  .services-paths {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 44px;
  }

  .services-path {
    padding: 0;
  }

  .services-path h3 {
    min-height: 0;
  }

  .services-path + .services-path {
    border-left: 0;
  }

  /* Each row: name and arrow on one line, then the dial and details for the row in focus. */
  .perk {
    position: relative;
    grid-template-columns: minmax(0, 1fr) 36px;
    align-items: center;
    gap: 0 16px;
    padding: 16px 0;
  }

  .perk::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--rule);
  }

  .perk:last-child {
    box-shadow: inset 0 -1px 0 var(--rule);
  }

  .perk__left,
  .perk__right {
    padding: 0;
  }

  .perk__left::before,
  .perk__right::before {
    display: none;
  }

  .perk__right {
    display: contents;
  }

  .perk__left {
    grid-column: 1;
    grid-row: 1;
  }

  .perk__toggle {
    grid-column: 2;
    grid-row: 1;
  }

  .perk .perks-dial {
    position: relative;
    top: auto;
    left: auto;
    grid-column: 1 / -1;
    grid-row: 2;
    width: min(72vw, 360px);
    margin: 22px auto 6px;
    transform: none;
  }

  .perk__info {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 16px;
  }

  .perk:not(.is-active) .perk__info {
    display: none;
  }

  .perk:last-child .perk__left,
  .perk:last-child .perk__right {
    box-shadow: none;
  }
}

/* Process on narrow screens: no pinning. The steps run down a vertical wire, and the light
   fills it as the reader scrolls (the script sets --y on the stage). */
@media (max-width: 960px) {
  .process {
    height: auto;
  }

  .process-sticky {
    position: relative;
    display: block;
    height: auto;
    padding-block: clamp(80px, 12vh, 120px);
  }

  .process-head {
    grid-template-columns: 1fr;
  }

  .process-track,
  .pr-nodes {
    display: none;
  }

  .process-stage {
    position: relative;
    display: grid;
    gap: 44px;
    margin-top: 56px;
    padding-left: 34px;
  }

  .process-stage::before,
  .process-stage::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 6px;
    bottom: 6px;
    width: 2px;
  }

  .process-stage::before {
    background: var(--rule);
  }

  .process-stage::after {
    bottom: auto;
    height: calc(var(--y, 0) * (100% - 12px));
    background: linear-gradient(180deg, rgba(232, 180, 106, 0.2), var(--lamp));
  }

  .pr-step {
    position: relative;
    grid-area: auto;
    grid-template-columns: 1fr;
    grid-template-areas:
      "phase"
      "name"
      "desc"
      "gets";
    pointer-events: auto;
  }

  .pr-step > * {
    opacity: 1;
    transform: none;
    filter: none;
  }

  /* Each step's dot on the wire; it lights once the fill passes it. */
  .pr-step::before {
    content: "";
    position: absolute;
    left: -34px;
    top: 4px;
    width: 12px;
    height: 12px;
    border: 1px solid rgba(27, 33, 36, 0.35);
    border-radius: 50%;
    background: var(--stone);
    transition:
      background-color 0.5s var(--ease-out),
      border-color 0.5s var(--ease-out),
      box-shadow 0.8s var(--ease-out);
  }

  .pr-step.is-lit::before {
    border-color: var(--lamp);
    background: var(--lamp);
    box-shadow: 0 0 0 5px rgba(232, 180, 106, 0.22);
  }

  .pr-step__name {
    font-size: 1.875rem;
  }

  .pr-step__desc {
    margin-top: 12px;
    font-size: 1rem;
  }

  .pr-step__gets {
    margin-top: 18px;
  }

  .process-note {
    margin-top: 56px;
  }

  .process.is-armed .process-stage {
    transform: none;
  }
}

/* Architects & builders on narrow screens: copy first, then the drawing in a frame that scrolls
   sideways so the labels stay readable. */
@media (max-width: 960px) {
  .partners {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: 0;
    padding-block: clamp(80px, 12vh, 120px);
  }

  .pd-scroll {
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .pd-scroll::-webkit-scrollbar {
    display: none;
  }

  .pd-drawing {
    width: 860px;
    max-width: none;
  }

  .pd-hint {
    display: block;
    margin: 10px 0 0;
    color: rgba(236, 234, 229, 0.5);
    font-size: 0.8125rem;
  }

  .partners-foot {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

/* Principles on narrow screens: one column, the heading no longer pinned. */
@media (max-width: 860px) {
  .principles-inner {
    grid-template-columns: 1fr;
  }

  .principles-head {
    position: relative;
    top: 0;
  }

  .principles-core {
    margin-top: 40px;
  }

  .principles-list {
    gap: 56px;
    padding-top: 16px;
  }

  .principle {
    grid-template-columns: 1fr;
  }

  .pr-icon {
    grid-row: auto;
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
  }
}

/* Founder on narrow screens: portrait first, then the story. */
@media (max-width: 960px) {
  .lab-title {
    font-size: clamp(3.5rem, 7.8vw, 5.5rem);
  }

  .lab-media {
    height: clamp(380px, 62vw, 560px);
  }

  .lab-details {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .lab-lede {
    max-width: 64ch;
  }

  .lab-values {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    font-size: clamp(1.25rem, 2.8vw, 2rem);
  }
}

@media (max-width: 700px) {
  .lab-copy {
    padding-top: 84px;
    padding-bottom: 34px;
  }

  .lab-title {
    font-size: clamp(2.25rem, 8vw, 3.5rem);
    letter-spacing: -0.04em;
  }

  .lab-line + .lab-line {
    text-align: left;
  }

  .lab-media {
    height: clamp(360px, 112vw, 520px);
  }

  .lab-details {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-top: 42px;
    padding-bottom: 92px;
  }

  .lab-lede {
    font-size: 1.0625rem;
  }

  .lab-values {
    grid-template-columns: 1fr;
    gap: 0.22em;
    font-size: clamp(1.45rem, 6vw, 2rem);
  }
}

@media (max-width: 860px) {
  .founder {
    grid-template-columns: 1fr;
  }

  .founder-photo {
    order: -1;
  }

  .team-title {
    font-size: clamp(1.875rem, 8.2vw, 3.5rem);
  }

  .tm-line + .tm-line {
    padding-left: 0;
  }

  .founder-facts {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Contact and footer on narrow screens: one column. */
@media (max-width: 860px) {
  .contact {
    grid-template-columns: 1fr;
  }

  .contact-intro {
    position: relative;
    top: 0;
  }

  .contact-title {
    font-size: clamp(2.25rem, 10vw, 3.5rem);
  }

  .cf-row {
    grid-template-columns: 1fr;
  }

  .sf-statement {
    font-size: clamp(2.5rem, 13vw, 5rem);
  }

  .sf-line + .sf-line {
    font-size: 0.5em;
  }

  .sf-cols {
    grid-template-columns: 1fr;
  }

  .sf-contact {
    justify-self: start;
    text-align: left;
  }
}

/* Control on narrow screens: what was asked and the systems' answer first, inputs as a row of names. */
@media (max-width: 960px) {
  .control-head,
  .control-foot {
    grid-template-columns: 1fr;
  }

  .control-title {
    font-size: clamp(1.625rem, 6.9vw, 3.5rem);
  }

  .cl-line + .cl-line {
    padding-left: 0;
  }

  .cx {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cx-lines {
    display: none;
  }

  .cx-inputs {
    order: -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 20px;
  }

  .cx-input {
    padding: 8px 0 8px 14px;
    box-shadow: inset 2px 0 0 var(--wire);
  }

  .cx-input.is-on {
    box-shadow: inset 2px 0 0 var(--lamp);
  }

  .cx-input__name {
    font-size: 1.125rem;
  }

  .cx-hub {
    grid-template-columns: auto 1fr;
    justify-items: start;
    align-items: center;
    gap: 0 18px;
    text-align: left;
  }

  .cx-core {
    grid-row: 1 / 3;
    width: 72px;
  }

  .cx-hub__name {
    margin: 0;
  }

  .cx-say {
    grid-column: 1 / -1;
    max-width: none;
    margin-top: 20px;
  }

  .assistants {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .button {
    transition-property: background-color, color;
  }

  .button:not(:disabled):not([aria-disabled="true"]):is(.is-pressing, :active:not(:focus-visible)) {
    transform: none;
  }

  .pd-flow {
    animation: none;
    opacity: 0;
  }

  .platforms-track {
    overflow-x: auto;
  }

  .platforms-run {
    animation: none;
  }

  .platforms-run[aria-hidden="true"] {
    display: none;
  }

  .cx-say__caret {
    animation: none;
  }
}
