/* Neotics. Stone ground, ink type, one orange tendon. Display in Zalando Sans Expanded Light,
   text in Zalando Sans, technical labels in Fragment Mono. */

:root {
  --stone: #ECEAE5;
  --stone-2: #E3E0D9;
  --paper: #F5F4F0;
  --ink: #121110;
  --ink-2: #4D4A45;
  --ink-3: #7A766E;
  --line: #D2CEC6;
  --tendon: #D2461C;
  --tendon-ink: #A8360F;
  --night: #0E0E0D;
  --night-2: #181816;
  --night-line: #2B2A27;
  --on-night: #ECEAE5;
  --on-night-2: #A6A29A;
  --live: #2F7A4E;
  --dev: #9A6A12;

  --display: "Zalando Sans Expanded", "Zalando Sans", ui-sans-serif, system-ui, sans-serif;
  --sans: "Zalando Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "Fragment Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(22px, 4vw, 56px);
  --gap: clamp(16px, 2vw, 28px);
  --nav-h: 72px;
  --settle: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: #B8B3A9 var(--stone); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--tendon); color: var(--paper); }
:focus-visible { outline: 2px solid var(--tendon); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 2; }

/* ---------- type */

.display {
  font: 300 clamp(44px, 5.7vw, 88px)/.95 var(--display);
  letter-spacing: -.048em;
  margin: 0;
}
.display--md { font-size: clamp(42px, 5.6vw, 96px); }
.h2 {
  font: 300 clamp(32px, 3.9vw, 62px)/1.02 var(--display);
  letter-spacing: -.038em;
  margin: 0;
  text-wrap: balance;
}
.h3 {
  font: 400 clamp(20px, 1.6vw, 24px)/1.2 var(--display);
  letter-spacing: -.02em;
  margin: 0;
}
.h3--lg { font-weight: 300; font-size: clamp(28px, 2.6vw, 40px); letter-spacing: -.032em; line-height: 1.06; text-wrap: balance; }
.lede { font-size: clamp(18px, 1.35vw, 20px); line-height: 1.5; color: var(--ink-2); max-width: 44ch; margin: 0; text-wrap: pretty; }
.body { color: var(--ink-2); max-width: 46ch; margin: 0; text-wrap: pretty; }
.label {
  font: 400 12px/1.4 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0;
}
.fine { font-size: 13px; color: var(--on-night-2); margin: 0; }

/* split words rise from behind a mask */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.wi { display: inline-block; will-change: transform; }

/* ---------- controls */

/* Buttons are made of the hand's materials. Graphite: matte, a soft sheen across the top (the page grain
   gives it tooth), and an ember that rises from the bottom edge under the pointer. Stoneware: pale glaze with iron flecks. */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 26px;
  border-radius: 999px;
  color: var(--paper);
  background-color: #171614;
  background-image:
    linear-gradient(180deg, #2E2B28 0%, #171614 50%, #0B0A09 100%);
  box-sizing: border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .17),
    inset 0 -1px 0 rgba(0, 0, 0, .55),
    inset 0 0 0 1px rgba(255, 255, 255, .05),
    0 1px 1px rgba(18, 17, 16, .30),
    0 14px 28px -14px rgba(18, 17, 16, .65);
  font: 500 15px/1 var(--sans);
  text-decoration: none;
  position: relative; isolation: isolate; overflow: hidden;
  transition: transform .45s var(--settle), box-shadow .45s var(--settle);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(80% 130% at var(--mx, 50%) 135%, #E8642F 0%, #B23A13 40%, rgba(178, 58, 19, 0) 78%);
  opacity: 0; transition: opacity .55s var(--settle);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 120% at 50% -55%, rgba(255, 255, 255, .2), transparent 58%);
}
@media (hover: hover) { .btn:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -1px 0 rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .06), 0 2px 2px rgba(18, 17, 16, .25), 0 20px 34px -16px rgba(18, 17, 16, .6); }
.btn:hover::before { opacity: 1; } }
.btn:active::before { opacity: 1; transition-duration: .15s; }
.btn:active { transform: translateY(0) scale(.985); box-shadow: inset 0 2px 8px rgba(0, 0, 0, .55), 0 1px 1px rgba(18, 17, 16, .3); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn__arrow { display: inline-block; transition: transform .45s var(--settle); }
/* the arrow leaves through the right edge and comes back in from the left */
@media (hover: hover) { .btn:hover .btn__arrow { transform: translateX(4px); animation: arrow-through .75s var(--settle); } }
@keyframes arrow-through {
  0% { transform: translateX(0); opacity: 1; }
  38% { transform: translateX(14px); opacity: 0; }
  39% { transform: translateX(-12px); opacity: 0; }
  100% { transform: translateX(4px); opacity: 1; }
}

.btn--stone {
  color: var(--ink);
  background-color: #ECE9E2;
  background-image:
    url("assets/speckle.png"),
    linear-gradient(180deg, #F8F7F3 0%, #ECE9E2 55%, #DEDAD1 100%);
  background-size: 150px, auto;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -1px 0 rgba(18, 17, 16, .08),
    0 0 0 1px rgba(18, 17, 16, .10),
    0 1px 1px rgba(18, 17, 16, .08),
    0 12px 26px -16px rgba(18, 17, 16, .45);
}
.btn--stone::before { background: radial-gradient(80% 130% at var(--mx, 50%) 135%, rgba(210, 70, 28, .26), rgba(210, 70, 28, 0) 75%); }
.btn--stone::after { background: radial-gradient(120% 120% at 50% -55%, rgba(255, 255, 255, .9), transparent 60%); opacity: 1; mix-blend-mode: normal; }
@media (hover: hover) { .btn--stone:hover { box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(18, 17, 16, .08), 0 0 0 1px rgba(18, 17, 16, .12), 0 2px 2px rgba(18, 17, 16, .08), 0 18px 30px -16px rgba(18, 17, 16, .45); } }
.btn--stone:active { box-shadow: inset 0 2px 6px rgba(18, 17, 16, .18), 0 0 0 1px rgba(18, 17, 16, .12); }

.link {
  font: 500 15px/1 var(--sans);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 6px;
  transition: background-size .5s var(--settle);
}
@media (hover: hover) { .link:hover { background-size: 0 1px; background-position: 100% 100%; } }
.link--night { color: var(--on-night); }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font: 400 12px/1 var(--mono); letter-spacing: .04em;
  color: var(--ink-2);
  margin: 0;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip--live::before { background: var(--live); }
.chip--dev::before { background: var(--dev); }
.chip--plan::before { background: transparent; box-shadow: inset 0 0 0 1.2px var(--ink-3); }

.actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

/* ---------- nav */

.nav {
  position: fixed; inset: 0 0 auto; z-index: 20;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  transition: background .5s var(--settle), box-shadow .5s var(--settle);
}
.nav.is-scrolled { background: color-mix(in srgb, var(--stone) 82%, transparent); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.nav.is-night { color: var(--on-night); }
.nav.is-night.is-scrolled { background: color-mix(in srgb, var(--night) 80%, transparent); box-shadow: 0 1px 0 var(--night-line); }
.nav.is-night .brand, .nav.is-night .brand__mark { color: var(--on-night); }
.nav.is-night .nav__links a { color: var(--on-night-2); }
.nav.is-night .nav__links a:hover { color: var(--on-night); }
.nav.is-night .btn { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px rgba(255, 255, 255, .14), 0 10px 24px -12px rgba(0, 0, 0, .8); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__mark { color: var(--ink); }
.brand__word { font: 400 19px/1 var(--display); letter-spacing: -.03em; }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a { font-size: 14px; text-decoration: none; color: var(--ink-2); transition: color .3s; }
.nav__links a:hover { color: var(--ink); }
/* a tendon underline draws in on hover and stays under the section being read */
.nav__links a:not(.token-chip) {
  padding: 6px 0; background: linear-gradient(var(--tendon), var(--tendon)) 100% 100% / 0 1px no-repeat;
  transition: color .3s, background-size .6s var(--settle);
}
.nav__links a.is-here { color: var(--ink); background-position: 0 100%; background-size: 100% 1px; }
@media (hover: hover) { .nav__links a:not(.token-chip):hover { background-position: 0 100%; background-size: 100% 1px; } }
.nav.is-night .nav__links a.is-here { color: var(--on-night); }
/* the N is threaded again when the brand is pointed at */
@property --draw { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --dot { syntax: "<number>"; inherits: true; initial-value: 1; }
@media (hover: hover) { .brand:hover .brand__mark { animation: rethread 1.25s cubic-bezier(.7, 0, .2, 1); } }
@keyframes rethread {
  0% { --draw: 0; --dot: 1; }
  36% { --draw: -1; --dot: 1; }
  37% { --draw: 1; --dot: 0; }
  80% { --dot: 0; }
  100% { --draw: 0; --dot: 1; }
}
/* $NEO: the token object itself, small, on a paper chip ringed in tendon; it turns over once as the page opens */
.nav__links a.token-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; margin: -7px 0; padding: 0 14px 0 9px;
  border-radius: 999px; color: var(--ink); font-weight: 500; background: var(--paper); perspective: 160px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tendon) 45%, transparent), 0 1px 0 rgba(255, 255, 255, .7) inset, 0 6px 14px -10px rgba(18, 17, 16, .35);
  transition: box-shadow .4s var(--settle);
}
.token-chip img { width: 17px; height: auto; transition: transform 1s var(--settle); }
@media (hover: hover) {
  .nav__links a.token-chip:hover { box-shadow: inset 0 0 0 1px var(--tendon), 0 1px 0 rgba(255, 255, 255, .7) inset, 0 8px 16px -10px rgba(18, 17, 16, .45); }
  .token-chip:hover img { transform: rotateY(360deg); }
}
.nav.is-night .nav__links a.token-chip {
  color: var(--on-night); background: var(--night-2);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tendon) 65%, transparent), 0 6px 14px -10px rgba(0, 0, 0, .8);
}
.nav.is-night .nav__links a.token-chip.is-here { box-shadow: inset 0 0 0 1px var(--tendon), 0 6px 14px -10px rgba(0, 0, 0, .8); }

/* ---------- the thread: one tendon drawn through the page */

.thread { position: absolute; left: 0; top: 0; z-index: 1; pointer-events: none; overflow: visible; }
.thread path { fill: none; stroke: var(--tendon); stroke-width: 1.5; stroke-linecap: round; }
.node {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%; position: relative;
  box-shadow: inset 0 0 0 1.5px var(--ink-3);
  margin-right: 12px; vertical-align: 1px;
  transition: background .5s var(--settle), box-shadow .5s var(--settle), transform .5s var(--settle);
}
.node.is-on { background: var(--tendon); box-shadow: inset 0 0 0 1.5px var(--tendon), 0 0 0 5px color-mix(in srgb, var(--tendon) 16%, transparent); }
/* when the tendon reaches a node it is plucked: one ring, once */
.node::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--tendon); opacity: 0; pointer-events: none; }
.node.is-on::after { animation: pluck 1.3s var(--settle); }
@keyframes pluck { from { transform: scale(1); opacity: .85; } to { transform: scale(3.6); opacity: 0; } }
/* the head of the tendon, where it is being drawn */
.thread__head { opacity: 0; transition: opacity .5s var(--settle); }
.thread__head.is-on { opacity: 1; }
.thread__head circle { fill: var(--tendon); }
.thread__head .thread__halo { opacity: .14; }
.actions { position: relative; }
.node--btn { position: absolute; left: calc(var(--gutter) * -0.5 - 4.5px); top: 26px; margin: -4.5px 0 0; }

/* ---------- hero */

.hero { position: relative; height: 290vh; }
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__grid {
  height: 100%;
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--gap);
  align-items: center;
}
.hero__copy { display: grid; gap: 28px; padding-top: var(--nav-h); align-content: center; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* a tendon threaded through two eyelets; it draws in with the page and pulls taut as the hero hand closes */
.cord { flex: none; color: var(--tendon); overflow: visible; }
.cord__line { fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 1; }
.cord__ring { fill: none; stroke: #A47B3C; stroke-width: 1.6; }
.cord__crimp { fill: var(--ink); }
.hero__eyebrow > span::after { content: ""; display: inline-block; width: 1px; height: 11px; margin-left: 10px; vertical-align: -1px; background: var(--ink-3); opacity: .5; }
.hero__open {
  color: var(--tendon-ink); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 3px; transition: background-size .5s var(--settle);
}
.hero__open span { display: inline-block; transition: transform .5s var(--settle); }
@media (hover: hover) {
  .hero__open:hover { background-size: 0 1px; background-position: 100% 100%; }
  .hero__open:hover span { transform: translateX(3px); }
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--live); position: relative; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--live); opacity: 0; animation: pulse 2.4s var(--settle) infinite; }
@keyframes pulse { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.hero__stage { position: relative; height: 100%; }
.seq { display: block; }
.seq--hero {
  position: absolute; right: 2%; bottom: 0;
  height: min(94%, 1000px); width: auto; aspect-ratio: 921 / 1300;
  -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 74%, transparent 99%);
}
.captions { list-style: none; margin: 0; padding: 0; position: absolute; left: 0; bottom: 14vh; width: min(24ch, 36%); }
.cap {
  position: absolute; left: 0; bottom: 0;
  font: 300 clamp(18px, 1.4vw, 22px)/1.3 var(--display); letter-spacing: -.02em;
  display: grid; gap: 10px;
  opacity: 0; transform: translateY(-10px);
  transition: opacity .25s ease, transform .4s var(--settle);
}
.cap .label { color: var(--tendon-ink); }
.cap.is-on { opacity: 1; transform: none; transition: opacity .8s var(--settle) .22s, transform .9s var(--settle) .22s; }
.cap:not(.is-on) { transform: translateY(-10px); }
.progress { position: absolute; left: 0; bottom: calc(15vh - 36px); display: flex; gap: 6px; }
.progress i { width: 34px; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.progress i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(var(--p, 0)); transform-origin: left; }
.scrollcue { position: absolute; left: var(--gutter); bottom: 26px; display: flex; align-items: center; gap: 14px; color: var(--ink-2); }
.scrollcue::after { content: ""; width: 48px; height: 1px; background: linear-gradient(90deg, var(--ink-3), transparent); animation: cue 2.2s var(--settle) infinite; transform-origin: left; }
@keyframes cue { 0% { transform: scaleX(0); } 60% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.hero__anchor { position: absolute; bottom: 4vh; right: calc(var(--gutter) + 22%); width: 1px; height: 1px; }

/* ---------- idea */

.idea { padding: clamp(80px, 12vw, 180px) 0 clamp(60px, 8vw, 120px); }
.idea__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: center; }
.idea__img { margin: 0 0 0 calc(-1 * var(--gutter)); }
.idea__img img {
  width: 100%;
  -webkit-mask-image: radial-gradient(58% 56% at 50% 50%, #000 40%, transparent 88%);
  mask-image: radial-gradient(58% 56% at 50% 50%, #000 40%, transparent 88%);
}
.idea__copy { display: grid; gap: 24px; }
.kinds { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--line); }
.kinds li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }
.kinds .label { color: var(--ink); padding-top: 3px; }

/* ---------- how */

.how { padding: clamp(60px, 9vw, 140px) 0; }
.how__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); align-items: start; }
.how__head { position: sticky; top: calc(var(--nav-h) + 40px); display: grid; gap: 24px; }
.steps { list-style: none; margin: 0; padding: 0; }
.step {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); column-gap: var(--gap); row-gap: 14px;
  padding: 40px 0 44px; border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__no { grid-row: span 3; font: 300 15px/1.4 var(--mono); color: var(--ink-2); }
.step p { margin: 0; color: var(--ink-2); max-width: 50ch; }
.step .chip { margin-top: 6px; }

/* ---------- demonstrations */

.demos { position: relative; height: min(92vh, 900px); min-height: 620px; overflow: hidden; }
.demos__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 78%, transparent);
  mask-image: linear-gradient(transparent, #000 14%, #000 78%, transparent);
}
.demos__copy { padding-top: clamp(40px, 7vw, 100px); display: grid; gap: 22px; justify-items: start; }
.demos__copy .h2 { max-width: 12ch; }
.legend { display: inline-flex; align-items: center; gap: 10px; }
.swatch { width: 22px; height: 2px; background: var(--tendon); }

/* ---------- open, exploded */

.open { position: relative; height: 260vh; }
.open__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.open__grid { height: 100%; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); align-items: center; }
.open__copy { display: grid; gap: 22px; padding-top: var(--nav-h); justify-items: start; }
.stack { list-style: none; margin: 6px 0 4px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; width: 100%; max-width: 520px; }
.stack li { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); position: relative; color: var(--ink-2); transition: color .6s var(--settle); }
.stack li::before { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 1px; background: var(--tendon); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--settle); }
.stack li.is-on { color: var(--ink); }
.stack li.is-on::before { transform: scaleX(1); }
.stack b { font: 400 15px/1.3 var(--display); letter-spacing: -.01em; }
.stack span { font: 400 11px/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.open__stage { position: relative; height: 100%; }
.seq--open {
  position: absolute; right: 0; bottom: 0;
  height: min(88%, 1000px); width: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 76%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 76%, transparent 99%);
}

/* ---------- tracks */

.tracks { padding: clamp(80px, 11vw, 160px) 0; }
.tracks__head { display: grid; gap: 24px; margin-bottom: clamp(40px, 5vw, 72px); }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.row {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(0, 2fr); gap: var(--gap); align-items: baseline;
  padding: 30px 0; border-bottom: 1px solid var(--line);
  position: relative;
}
.row::before { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--tendon); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--settle); }
@media (hover: hover) { .row:hover::before { transform: scaleX(1); } }
.row .h3 { font-weight: 300; font-size: clamp(24px, 2.4vw, 36px); letter-spacing: -.03em; }
.row p { margin: 0; color: var(--ink-2); }
.row .label { justify-self: end; }

/* ---------- night: compute and token */

.night { background: var(--night); color: var(--on-night); padding: clamp(90px, 12vw, 180px) 0; position: relative; overflow-x: clip; }
.night .label, .night .body, .night .chip { color: var(--on-night-2); }
.night .node { box-shadow: inset 0 0 0 1.5px var(--on-night-2); }
.night .node.is-on { box-shadow: inset 0 0 0 1.5px var(--tendon), 0 0 0 5px color-mix(in srgb, var(--tendon) 22%, transparent); }
.night__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.compute { display: grid; gap: 22px; justify-items: start; padding-top: 12px; border-top: 1px solid var(--night-line); padding-top: 32px; }
.token { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); align-items: center; }
.token__img { margin: -6% 0 -10% -8%; }
.token__copy { display: grid; gap: 22px; justify-items: start; }
.chip--live { color: inherit; }

/* ---------- status */

.status { padding: clamp(90px, 12vw, 170px) 0 clamp(60px, 8vw, 120px); }
.status__head { display: grid; gap: 24px; margin-bottom: clamp(24px, 3vw, 40px); }
.status__img { margin: 0 0 clamp(40px, 5vw, 72px); }
.status__img img { width: 100%; }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.col { border-top: 1px solid var(--ink); padding-top: 22px; display: grid; gap: 18px; align-content: start; }
.col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.col li { color: var(--ink-2); padding-left: 18px; position: relative; text-wrap: pretty; }
.col li::before { content: ""; position: absolute; left: 0; top: .78em; width: 8px; height: 1px; background: var(--ink-3); }

/* ---------- join */

.join { padding: clamp(40px, 6vw, 80px) 0 0; overflow: hidden; }
.join__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--gap); align-items: center; }
.join__copy { display: grid; gap: 28px; padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 11vw, 160px); }
.join__copy .lede { max-width: 40ch; }
.join__img { margin: 0 calc(-1 * var(--gutter)) 0 0; }
.join__img img { width: 100%; -webkit-mask-image: linear-gradient(to left, transparent 0%, #000 18%); mask-image: linear-gradient(to left, transparent 0%, #000 18%); }

/* ---------- footer */

/* the footer glows like the end of a fire: warm dark ground, embers rising from the bottom corners */
.foot {
  position: relative; z-index: 2; overflow: hidden; isolation: isolate;
  padding: clamp(64px, 8vw, 110px) 0 0;
  color: var(--on-night);
  background-color: #191410;
}
.foot::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(26% 40% at 12% 108%, rgba(244, 120, 62, .55), rgba(244, 120, 62, 0) 70%),
    radial-gradient(62% 88% at 8% 118%, rgba(222, 84, 36, .72), rgba(222, 84, 36, 0) 70%),
    radial-gradient(45% 70% at 96% 112%, rgba(214, 160, 96, .34), rgba(214, 160, 96, 0) 72%),
    radial-gradient(70% 60% at 60% 0%, rgba(120, 72, 40, .22), rgba(120, 72, 40, 0) 70%);
}
.foot::after { content: ""; position: absolute; inset: 0; z-index: -1; background: url("assets/grain.png") 0 0 / 180px; opacity: .35; mix-blend-mode: overlay; pointer-events: none; }
.foot .brand, .foot .brand__mark { color: var(--on-night); }
.foot .label { color: var(--on-night-2); }
.foot__word {
  margin: clamp(40px, 6vw, 80px) var(--gutter) calc(-4vw);
  aspect-ratio: 3709 / 728;
  -webkit-mask: url("assets/wordmark-light.svg?v=4") center / contain no-repeat;
  mask: url("assets/wordmark-light.svg?v=4") center / contain no-repeat;
  background: linear-gradient(180deg, rgba(236, 234, 229, .15) 0%, rgba(236, 234, 229, .07) 45%, rgba(246, 140, 88, .30) 100%);
}
.foot__base { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: clamp(48px, 6vw, 80px); padding-top: 22px; border-top: 1px solid rgba(236, 234, 229, .12); }
.foot__top { color: var(--on-night-2); text-decoration: none; font-size: 13px; transition: color .3s; }
.foot__top:hover { color: var(--on-night); }
.foot__top span { display: inline-block; transition: transform .6s var(--settle); }
@media (hover: hover) { .foot__top:hover span { transform: translateY(-3px); } }
.foot__grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: var(--gap); }
.foot__grid > .brand { align-self: start; }
.foot nav { display: grid; gap: 10px; align-content: start; }
.foot nav .label { margin-bottom: 6px; }
.foot nav a {
  justify-self: start; text-decoration: none; font-size: 15px; color: #CFCBC3; padding-bottom: 2px;
  background: linear-gradient(#EE8A66, #EE8A66) 100% 100% / 0 1px no-repeat;
  transition: color .3s, background-size .6s var(--settle);
}
.foot nav a:hover { color: var(--on-night); }
@media (hover: hover) { .foot nav a:hover { background-position: 0 100%; background-size: 100% 1px; } }
.foot__fine { margin: 0; font-size: 13px; color: var(--on-night-2); }

/* ---------- reveal defaults (JS adds .is-in) */

/* text develops out of a soft blur as it rises; renders settle into place a little slower */
.js [data-reveal] { opacity: 0; transform: translateY(22px); }
.js [data-reveal]:not(figure) { filter: blur(5px); }
.js figure[data-reveal] { transform: translateY(48px) scale(.965); }
.js [data-reveal].is-in {
  opacity: 1; transform: none; filter: none;
  transition: opacity 1s var(--settle), transform 1.2s var(--settle), filter 1s var(--settle), background-size 1.6s var(--settle);
}
.js figure[data-reveal].is-in { transition: opacity 1.4s var(--settle), transform 1.9s var(--settle); }

/* section labels are written out from the margin, where the tendon passes */
.js [data-wipe] { clip-path: inset(-40px 100% -40px -120px); }
.js [data-wipe].is-in { clip-path: inset(-40px -40px -40px -120px); transition: clip-path 1.3s var(--settle); }

/* rules are pulled taut from the left as their rows arrive */
.js .step[data-reveal], .js .col[data-reveal] { border-top-color: transparent; background: linear-gradient(var(--rule, var(--line)), var(--rule, var(--line))) 0 0 / 0 1px no-repeat; background-origin: border-box; }
.js .col[data-reveal] { --rule: var(--ink); }
.js .row[data-reveal] { border-bottom-color: transparent; background: linear-gradient(var(--line), var(--line)) 0 100% / 0 1px no-repeat; background-origin: border-box; }
.js .step[data-reveal].is-in, .js .col[data-reveal].is-in, .js .row[data-reveal].is-in { background-size: 100% 1px; }
.js .kinds[data-reveal] { filter: none; }
.js .kinds[data-reveal] li, .js .col[data-reveal] li {
  --at: calc(var(--d0, .15s) + var(--d, 0s));
  opacity: 0; transform: translateY(10px);
  transition: opacity .9s var(--settle) var(--at), transform 1s var(--settle) var(--at), background-size 1.4s var(--settle) var(--at);
}
.js .col[data-reveal] li { --d0: .3s; }
.js .kinds[data-reveal] li { border-bottom-color: transparent; background: linear-gradient(var(--line), var(--line)) 0 100% / 0 1px no-repeat; background-origin: border-box; }
.js .kinds.is-in li, .js .col.is-in li { opacity: 1; transform: none; background-size: 100% 1px; }
.kinds li:nth-child(2), .col li:nth-child(2) { --d: .08s; }
.kinds li:nth-child(3), .col li:nth-child(3) { --d: .16s; }
.kinds li:nth-child(4), .col li:nth-child(4) { --d: .24s; }

/* a status dot is set down once its line has arrived */
.js [data-reveal] .chip::before, .js .chip[data-reveal]::before { transform: scale(0); transition: transform .7s var(--settle) .35s; }
.js [data-reveal].is-in .chip::before, .js .chip[data-reveal].is-in::before { transform: none; }
.js .legend[data-reveal] .swatch { transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--settle) .3s; }
.js .legend.is-in .swatch { transform: none; }

/* ---------- responsive */

@media (max-width: 1100px) {
  .nav__links { gap: 22px; }
  .night__grid { grid-template-columns: 1fr; }
  .compute { order: 2; }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
}

/* stacked layouts: phones held upright, and anything narrow */
@media (max-width: 900px) and (orientation: portrait), (max-width: 560px) {
  .hero { height: 240vh; }
  .hero__grid { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; }
  .hero__copy { padding-top: calc(var(--nav-h) + 12px); gap: 18px; }
  .hero__copy .lede { font-size: 16px; }
  .actions { gap: 20px; }
  .seq--hero { right: 50%; transform: translateX(50%); height: 100%; max-height: 52svh; }
  .captions { display: none; }
  .progress { left: 0; bottom: 20px; }
  .scrollcue { display: none; }
  .hero__anchor { right: 50%; }
  .idea__grid, .how__grid, .open__grid, .join__grid { grid-template-columns: 1fr; }
  .idea__img { margin: 0 calc(-1 * var(--gutter)); }
  .how__head { position: static; margin-bottom: 24px; }
  .step { grid-template-columns: 56px minmax(0, 1fr); padding: 28px 0 32px; }
  .open { height: 220vh; }
  .open__grid { grid-template-rows: auto 1fr; align-items: start; }
  .open__copy { padding-top: calc(var(--nav-h) + 8px); gap: 14px; }
  .open__copy .body { display: none; }
  .stack { grid-template-columns: 1fr 1fr; }
  .stack li { padding: 6px 0; }
  .stack span { display: none; }
  .seq--open { right: 50%; transform: translateX(50%); height: 100%; max-height: 56svh; }
  .row { grid-template-columns: 1fr; gap: 8px; }
  .row .label { justify-self: start; }
  .token { grid-template-columns: 1fr; }
  .token__img { margin: 0 -8% -8%; }
  .cols { grid-template-columns: 1fr; gap: 36px; }
  .join__copy { padding-bottom: 24px; }
  .join__img { width: 80%; justify-self: end; }
  .foot__grid { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .foot__grid > .brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .kinds li { grid-template-columns: 1fr; gap: 4px; }
  .demos { height: auto; min-height: 0; padding-bottom: 72vw; }
  .demos__canvas { top: auto; height: 90vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .cap { transition: none; }
}

/* section nodes sit in the left margin, so the thread runs down the gutter rather than through text */
.label { position: relative; }
.h2--node { position: relative; }
.h2--node > .node { position: absolute; left: calc(var(--gutter) * -0.5 - 4.5px); top: .5em; margin: -4.5px 0 0; }
.label > .node { position: absolute; left: calc(var(--gutter) * -0.5 - 4.5px); top: 50%; margin: -4.5px 0 0; }
.idea__copy .label > .node, .token__copy .label > .node { left: calc(var(--gap) * -0.5 - 4.5px); }

/* ---------- brand page */

.bp .nav__links a { font-size: 13px; }
.bp-hero { padding: calc(var(--nav-h) + clamp(60px, 9vw, 140px)) 0 clamp(50px, 7vw, 100px); }
.bp-hero .wrap { display: grid; gap: 28px; }
.bp-sec { padding: clamp(56px, 7vw, 110px) 0; border-top: 1px solid var(--line); }
.bp-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--gap); }
.bp-body { display: grid; gap: 24px; justify-items: start; }
.bp-body > .body { max-width: 62ch; }
.bp-table { border-collapse: collapse; width: 100%; max-width: 860px; margin-top: 8px; }
.bp-table caption { text-align: left; padding-bottom: 12px; }
.bp-table td { padding: 14px 0; border-top: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.bp-table td:first-child { width: 32%; font: 400 18px/1.3 var(--display); letter-spacing: -.02em; color: var(--ink); padding-right: 20px; }
.bp-table tr:last-child td { border-bottom: 1px solid var(--line); }
.bp-marks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); width: 100%; margin-top: 8px; }
.bp-tile { margin: 0; aspect-ratio: 1; background: var(--paper); border-radius: 4px; display: grid; place-items: center; position: relative; color: var(--ink); }
.bp-tile figcaption { position: absolute; left: 16px; bottom: 14px; }
.bp-tile--night { background: var(--night); color: var(--on-night); }
.bp-tile--night figcaption { color: var(--on-night-2); }
.bp-construct { width: 72%; height: auto; overflow: visible; }
.bp-construct .guide { fill: none; stroke: var(--ink-3); stroke-width: .4; stroke-dasharray: 1.2 1; }
.bp-construct .dot { fill: var(--ink-3); }
.bp-sizes { display: flex; align-items: center; gap: 28px; }
.bp-lockups { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); width: 100%; }
.bp-lockup { display: flex; align-items: center; gap: 18px; padding: 44px 36px; background: var(--paper); border-radius: 4px; color: var(--ink); }
.bp-lockup span { font: 400 clamp(36px, 4vw, 56px)/1 var(--display); letter-spacing: -.035em; }
.bp-lockup--night { background: var(--night); color: var(--on-night); }
.bp-object { margin: 0; width: min(100%, 560px); background: var(--night); border-radius: 4px; padding: 24px 24px 48px; position: relative; }
.bp-object figcaption { position: absolute; left: 20px; bottom: 16px; color: var(--on-night-2); }
.bp-swatches { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; width: 100%; }
.bp-swatches li { background: var(--paper); border-radius: 4px; padding: 0 0 14px; display: grid; gap: 2px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(18, 17, 16, .08); }
.bp-swatches li::before { content: ""; height: 112px; background: var(--c); margin-bottom: 12px; box-shadow: inset 0 -1px 0 rgba(18, 17, 16, .08); }
.bp-swatches li > * { padding: 0 16px; }
.bp-swatches b { font: 400 18px/1.2 var(--display); letter-spacing: -.02em; }
.bp-swatches span { font: 400 12px/1.4 var(--mono); }
.bp-swatches em { font-style: normal; font-size: 13px; }
.bp-type { display: grid; gap: 32px; width: 100%; }
.bp-type > div { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.bp-mono { font-size: 15px; color: var(--ink); }
.bp-mats { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 860px; }
.bp-mats li { display: grid; grid-template-columns: 28px 200px 1fr; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.bp-mats b { font: 400 17px/1.3 var(--display); letter-spacing: -.015em; color: var(--ink); }
.bp-mats .sw { width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(18, 17, 16, .12); }
.bp-renders { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); align-items: end; width: 100%; }
.bp-renders img { width: 100%; height: 340px; object-fit: contain; object-position: bottom; }
.bp-list { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.bp-list li { padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.bp-list b { color: var(--ink); font-weight: 500; }
.bp code { font: 400 13px var(--mono); }

@media (max-width: 900px) {
  .bp-grid { grid-template-columns: 1fr; }
  .bp-marks { grid-template-columns: 1fr 1fr; }
  .bp-lockups { grid-template-columns: 1fr; }
  .bp-mats li { grid-template-columns: 28px 1fr; }
  .bp-mats li > :last-child { grid-column: 2; }
  .bp-renders { grid-template-columns: 1fr 1fr; }
  .bp-renders img { height: 260px; }
}


/* ---------- light in the corners: soft gels of colour, as if the studio lamps had filters on them */

:root {
  --gel-ember: rgba(226, 98, 52, .17);
  --gel-apricot: rgba(242, 170, 122, .30);
  --gel-brass: rgba(214, 184, 128, .30);
  --gel-mist: rgba(150, 176, 200, .28);
  --gel-celadon: rgba(140, 186, 164, .28);
}
section.gel { position: relative; }  /* the sticky stages are already positioned */
.gel::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(var(--g1s, 48% 60%) at var(--g1p, 100% 0%), var(--g1, transparent), transparent 70%),
    radial-gradient(var(--g2s, 42% 55%) at var(--g2p, 0% 100%), var(--g2, transparent), transparent 70%);
  animation: gel 16s ease-in-out infinite alternate;
}
@keyframes gel { from { opacity: .7; } to { opacity: 1; } }
.hero__sticky.gel { --g1: var(--gel-apricot); --g1p: 80% 34%; --g1s: 46% 64%; --g2: var(--gel-mist); --g2p: 0% 100%; --g2s: 44% 52%; }
.idea.gel { --g1: var(--gel-brass); --g1p: 18% 52%; --g1s: 44% 62%; --g2: var(--gel-mist); --g2p: 100% 0%; --g2s: 38% 50%; }
.how.gel { --g1: var(--gel-mist); --g1p: 100% 8%; --g1s: 40% 46%; --g2: var(--gel-apricot); --g2p: 0% 96%; --g2s: 42% 48%; }
.demos.gel { --g1: var(--gel-ember); --g1p: 68% 58%; --g1s: 34% 46%; --g2: var(--gel-brass); --g2p: 0% 0%; --g2s: 40% 50%; }
.open__sticky.gel { --g1: var(--gel-mist); --g1p: 76% 50%; --g1s: 42% 62%; --g2: var(--gel-apricot); --g2p: 100% 100%; --g2s: 36% 44%; }
.tracks.gel { --g1: var(--gel-brass); --g1p: 100% 100%; --g1s: 42% 60%; --g2: var(--gel-celadon); --g2p: 0% 0%; --g2s: 36% 50%; }
.status.gel { --g1: var(--gel-celadon); --g1p: 0% 6%; --g1s: 38% 40%; --g2: var(--gel-apricot); --g2p: 100% 100%; --g2s: 42% 46%; }
.join.gel { --g1: var(--gel-celadon); --g1p: 74% 46%; --g1s: 40% 64%; --g2: var(--gel-apricot); --g2p: 0% 100%; --g2s: 40% 52%; }
.night::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--glow, 1);
  background:
    radial-gradient(34% 52% at 50% 52%, rgba(210, 70, 28, .20), transparent 70%),
    radial-gradient(40% 60% at 0% 100%, rgba(150, 176, 200, .08), transparent 70%);
}

/* fine film grain over everything, so the gradients and renders sit in the same air */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 40; pointer-events: none;
  background: url("assets/grain.png") 0 0 / 200px; opacity: .14; mix-blend-mode: overlay;
}

@media (prefers-reduced-motion: reduce) {
  .gel::before { animation: none; }
}
@media (max-width: 900px) and (orientation: portrait), (max-width: 560px) {
  .join__img { margin: 0 calc(-1 * var(--gutter)); }
  .join__img img { -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }
  .foot__base { flex-direction: column; align-items: flex-start; }
}

.bp-gels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; width: 100%; }
.bp-gels li { aspect-ratio: 1; border-radius: 4px; background: radial-gradient(70% 70% at 70% 30%, var(--g), transparent 72%), var(--stone); box-shadow: inset 0 0 0 1px rgba(18, 17, 16, .08); display: grid; align-content: end; padding: 14px; gap: 2px; }
.bp-gels b { font: 400 16px/1.2 var(--display); letter-spacing: -.02em; }
.bp-gels span { font: 400 11px/1.4 var(--mono); color: var(--ink-2); }
.bp-knoll { width: 100%; margin-top: 12px; }
.bp-buttons { display: grid; gap: 12px; width: 100%; }
.bp-btnrow { display: flex; flex-wrap: wrap; gap: 20px; padding: 40px 36px; border-radius: 4px; background: var(--paper); box-shadow: inset 0 0 0 1px rgba(18, 17, 16, .06); }
.bp-btnrow--night { background: var(--night); }
.bp .foot { padding-top: 56px; }
.bp .foot__base { margin-top: 0; border-top: 0; padding-top: 0; }
@media (max-width: 900px) { .bp-gels { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bp-lab { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .3fr); gap: var(--gap); align-items: end; width: 100%; margin-top: 8px; }
.bp-shot { margin: 0; overflow: hidden; border-radius: 10px; background: var(--paper); box-shadow: 0 0 0 1px rgba(18, 17, 16, .08), 0 30px 60px -36px rgba(18, 17, 16, .45); }
.bp-shot img { display: block; width: 100%; height: auto; }
.bp-shot--phone { border-radius: 22px; }
@media (max-width: 900px) and (orientation: portrait), (max-width: 560px) {
  .bp-lab { grid-template-columns: 1fr; }
  .bp-shot--phone { width: min(62%, 280px); justify-self: center; }
}

/* graphite on a dark ground needs its rim lit, or it sinks into the night */
.night .btn:not(.btn--stone), .foot .btn:not(.btn--stone), .bp-btnrow--night .btn:not(.btn--stone) {
  background:
    radial-gradient(120% 120% at 50% -55%, rgba(255, 255, 255, .26), transparent 58%),
    linear-gradient(180deg, #3A3733 0%, #22201D 50%, #141311 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), inset 0 0 0 1px rgba(255, 255, 255, .12), 0 14px 30px -14px rgba(0, 0, 0, .9);
}

/* ---------- touch, notches and the small-screen menu */

html { -webkit-tap-highlight-color: transparent; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.nav__end { display: flex; align-items: center; gap: 6px; }
.burger { display: none; position: relative; width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; color: inherit; cursor: pointer; }
.burger i { position: absolute; left: 13px; right: 13px; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform .5s var(--settle), top .5s var(--settle); }
.burger i:nth-of-type(1) { top: 18px; }
.burger i:nth-of-type(2) { top: 25px; }
.menu-open .burger i:nth-of-type(1) { top: 21.5px; transform: rotate(45deg); }
.menu-open .burger i:nth-of-type(2) { top: 21.5px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 19; display: none; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 28px + env(safe-area-inset-top)) var(--gutter) calc(28px + env(safe-area-inset-bottom));
  background-color: #191410; color: var(--on-night); isolation: isolate;
  clip-path: circle(0% at calc(100% - 44px) 36px);
  transition: clip-path .75s var(--settle), visibility 0s linear .75s; visibility: hidden;
}
.menu::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 50% at 10% 110%, rgba(222, 84, 36, .55), transparent 70%),
    radial-gradient(60% 40% at 100% 100%, rgba(214, 160, 96, .25), transparent 70%);
}
.menu-open .menu { clip-path: circle(160% at calc(100% - 44px) 36px); visibility: visible; transition: clip-path .75s var(--settle); }
.menu__links { display: grid; }
.menu__links a {
  display: flex; align-items: baseline; gap: 16px; padding: 10px 0;
  font: 300 clamp(30px, 8.6vw, 44px)/1.12 var(--display); letter-spacing: -.035em;
  color: var(--on-night); text-decoration: none; border-bottom: 1px solid var(--night-line);
  opacity: 0; transform: translateY(16px); transition: opacity .3s, transform .3s;
}
.menu__links .label { color: #EE8A66; min-width: 2.2ch; }
.menu__token { width: 30px; height: auto; margin-left: auto; align-self: center; }
.menu-open .menu__links a { opacity: 1; transform: none; transition: opacity .7s var(--settle), transform .8s var(--settle); }
.menu-open .menu__links a:nth-child(1) { transition-delay: .14s; }
.menu-open .menu__links a:nth-child(2) { transition-delay: .18s; }
.menu-open .menu__links a:nth-child(3) { transition-delay: .22s; }
.menu-open .menu__links a:nth-child(4) { transition-delay: .26s; }
.menu-open .menu__links a:nth-child(5) { transition-delay: .30s; }
.menu-open .menu__links a:nth-child(6) { transition-delay: .34s; }
.menu-open .menu__links a:nth-child(7) { transition-delay: .38s; }
.menu__foot { display: flex; gap: 12px; flex-wrap: wrap; opacity: 0; transition: opacity .3s; }
.menu-open .menu__foot { opacity: 1; transition: opacity .8s var(--settle) .4s; }
.menu-open { overflow: hidden; }

/* ---------- the intro: the tendon draws the N, the anchor lands, the page opens */

.intro { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: var(--stone); pointer-events: none; animation: intro-out .7s var(--settle) 1.15s forwards; }
.intro path { fill: none; stroke: var(--ink); stroke-width: 4.6; stroke-dasharray: 1; stroke-dashoffset: 1; animation: intro-draw 1s cubic-bezier(.7, 0, .2, 1) .1s forwards; }
.intro circle { fill: var(--tendon); transform-box: fill-box; transform-origin: center; transform: scale(0); animation: intro-dot .55s var(--settle) .95s forwards; }
.intro.is-skip { display: none; }
@keyframes intro-draw { to { stroke-dashoffset: 0; } }
@keyframes intro-dot { to { transform: scale(1); } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }

.stack__count { display: none; }

@media (max-width: 900px) {
  .burger { display: block; }
  .menu { display: flex; }
  .nav .btn--sm { padding: 0 16px; }
}

@media (max-width: 900px) and (orientation: portrait), (max-width: 560px) {
  /* hero: the copy lifts away as the hand grows to fill the screen and the captions take the top */
  .hero__copy { will-change: opacity, transform; position: relative; z-index: 3; }
  .hero.is-past .hero__copy { pointer-events: none; }
  .seq--hero { height: 78svh; max-height: none; transform-origin: 50% 100%; will-change: transform; }
  .progress { left: var(--gutter); bottom: calc(20px + env(safe-area-inset-bottom)); }
  .captions { display: block; position: absolute; left: var(--gutter); right: var(--gutter); top: calc(var(--nav-h) + 6px); bottom: auto; width: auto; opacity: 0; pointer-events: none; }
  .cap { top: 0; bottom: auto; font-size: 21px; max-width: 19ch; }
  .hero__stage { position: absolute; inset: 0; height: auto; pointer-events: none; }
  .hero__grid { position: relative; }

  /* open: one project at a time, with a counter */
  .stack__count { display: block; color: var(--tendon-ink); }
  .stack { display: block; position: relative; height: 62px; margin: 0; max-width: none; }
  .stack li { position: absolute; inset: 0; padding: 0; border: 0; opacity: 0; transform: translateY(14px); transition: opacity .35s, transform .6s var(--settle); }
  .stack li::before { display: none; }
  .stack li.is-current { opacity: 1; transform: none; color: var(--ink); }
  .stack b { font-size: 30px; font-weight: 300; letter-spacing: -.035em; }
  .stack span { display: block; }

  /* status: the parts pan past as the section scrolls */
  .status__img { overflow: hidden; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
  .status__img img { width: 235%; max-width: none; will-change: transform; }
}
@media (max-width: 900px) and (orientation: portrait) and (min-width: 561px) {
  .status__img img { width: 160%; }

  .foot { padding-bottom: env(safe-area-inset-bottom); }
  .row:active::before { transform: scaleX(1); }
}

@media (max-width: 560px) {
  .hero__eyebrow { font-size: 11px; gap: 8px; }
  .hero__eyebrow > span::after { margin-left: 8px; }
  .cord { width: 44px; height: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  .menu, .menu__links a, .menu__foot { transition: none; }
  .token-chip:hover img { transform: none; }
}

/* phones on their side: two columns like the desktop, everything sized to the short height */
@media (orientation: landscape) and (max-height: 540px) {
  :root { --nav-h: 58px; }
  .display { font-size: min(5.4vw, 14.5vh); }
  .h2 { font-size: min(3.9vw, 10.5vh); }
  .hero__copy { gap: 12px; }
  .hero__copy .lede { font-size: 15px; max-width: 42ch; }
  .hero__eyebrow { font-size: 11px; gap: 8px; }
  .hero__eyebrow > span::after { margin-left: 8px; }
  .cord { width: 44px; height: 11px; }
  .btn { height: 44px; padding: 0 20px; }
  .btn--sm { height: 36px; }
  .captions, .progress, .scrollcue { display: none; }
  .seq--hero { height: 94%; }
  .open__copy { gap: 10px; }
  .open__copy .body, .stack span { display: none; }
  .stack li { padding: 5px 0; }
  .seq--open { height: 94%; }
}
