/* Digital Asset Incubator Limited
   Native CSS. Tokens first, then sections in page order.
   Motion: transform and opacity only; scroll-driven where the browser supports it,
   IntersectionObserver fallbacks in site.js; everything collapses under reduced motion. */

@font-face {
  font-family: 'Archivo';
  src: url('../assets/fonts/archivo.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('../assets/fonts/geist.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #ebebe8;
  --bg-2: #e0e0dc;
  --panel: #f4f4f2;
  --ink: #121314;
  --ink-2: #2f3134;
  --muted: #5c5f65;
  --line: rgba(18, 19, 20, .13);
  --accent: #e5421a;
  --on-accent: #121314;
  --shade: 34, 30, 27;           /* shadow tint, rgb triplet */
  --sheen: rgba(255, 255, 255, .55);

  --display: 'Archivo', 'Arial Narrow', sans-serif;
  --text: 'Geist', system-ui, sans-serif;

  --pad: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --press: cubic-bezier(.32, .72, 0, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f10;
    --bg-2: #161719;
    --panel: #1a1b1d;
    --ink: #ecece9;
    --ink-2: #cfd0cd;
    --muted: #979a9f;
    --line: rgba(236, 236, 233, .14);
    --accent: #ff5b2e;
    --on-accent: #0e0f10;
    --shade: 0, 0, 0;
    --sheen: rgba(255, 255, 255, .22);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 800; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 40;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px;
  text-decoration: none; transition: transform .4s var(--ease);
}
.skip:focus { transform: translateY(76px); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.display {
  font-family: var(--display);
  font-stretch: 122%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.015em;
  line-height: .86;
}
.label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- buttons and links ---------- */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font: 500 15px/1 var(--text);
  letter-spacing: .005em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform .55s var(--spring), color .3s var(--ease);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .6s var(--press);
}
.btn:hover { transform: translateY(-2px); color: var(--on-accent); }
.btn:hover::before { transform: scaleX(1); }
.btn:active { transform: translateY(0) scale(.965); transition-duration: .15s; }
.btn--small { height: 40px; padding: 0 18px; font-size: 14px; }

.textlink {
  display: inline-block;
  font-weight: 500;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  padding-bottom: 3px;
  transition: background-size .5s var(--press);
}
.textlink:hover { background-size: 0% 1px; background-position: right bottom; }

/* ---------- navigation ---------- */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 30;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  height: 52px;
  padding: 6px 6px 6px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: inset 0 1px 0 var(--sheen), 0 10px 30px -18px rgba(var(--shade), .5);
}
.nav__mark {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .04em;
  text-decoration: none;
  margin-right: 14px;
}
.nav__links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: block;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 15px;
  text-decoration: none;
  color: var(--ink-2);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.nav__links a:hover { background: var(--line); color: var(--ink); }
.nav .btn { margin-left: 8px; }
.nav__toggle { display: none; }

@media (max-width: 760px) {
  .nav { left: var(--pad); right: var(--pad); transform: none; justify-content: space-between; }
  .nav__links, .nav .btn { display: none; }
  .nav__toggle {
    display: inline-flex; align-items: center; gap: 10px;
    height: 40px; padding: 0 16px; border: 0; border-radius: 999px;
    background: var(--ink); color: var(--bg); font: 500 14px/1 var(--text); cursor: pointer;
  }
  .nav__toggle .bars { position: relative; width: 14px; height: 10px; }
  .nav__toggle .bars::before, .nav__toggle .bars::after {
    content: ''; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
    transition: transform .5s var(--press), top .5s var(--press);
  }
  .nav__toggle .bars::before { top: 1px; }
  .nav__toggle .bars::after { top: 7px; }
  .menu-open .nav__toggle .bars::before { top: 4px; transform: rotate(45deg); }
  .menu-open .nav__toggle .bars::after { top: 4px; transform: rotate(-45deg); }
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 32px;
  padding: 110px var(--pad) 40px;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: blur(28px);
  backdrop-filter: blur(28px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s var(--ease), visibility 0s linear .45s;
}
.menu-open .menu { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li { overflow: hidden; }
.menu li a {
  display: block;
  font-family: var(--display);
  font-stretch: 118%;
  font-weight: 800;
  font-size: clamp(40px, 13vw, 72px);
  line-height: 1.02;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(105%);
  transition: transform .7s var(--press);
}
.menu-open .menu li a { transform: none; }
.menu-open .menu li:nth-child(2) a { transition-delay: .05s; }
.menu-open .menu li:nth-child(3) a { transition-delay: .1s; }
.menu-open .menu li:nth-child(4) a { transition-delay: .15s; }
.menu .btn { align-self: flex-start; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow-x: clip;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding-top: 96px;
  padding-bottom: clamp(28px, 4vh, 44px);
}
.lockup { position: relative; align-self: start; margin-top: clamp(8px, 4vh, 48px); }
.lockup h1 { position: relative; z-index: 1; }
.lockup .line { display: block; white-space: nowrap; width: max-content; }
.lockup .line > span { display: inline-block; }
.lockup .line--1 { margin-bottom: .02em; }

.stage {
  --w: clamp(280px, 34vw, 520px);
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 100%;
  width: var(--w);
  aspect-ratio: 470 / 340;
  transform: translate(-57%, -16%);
  perspective: 1500px;
  pointer-events: none;
}
.stage__floor {
  position: absolute;
  left: -12%; right: -18%;
  bottom: -7%;
  height: 22%;
  background: radial-gradient(closest-side, rgba(var(--shade), .42), rgba(var(--shade), .16) 55%, transparent);
}
.sleeve {
  position: absolute;
  left: 22%;
  bottom: 0;
  width: 64%;
  aspect-ratio: 1;
  transform: rotate(-2.5deg);
  transform-origin: 50% 100%;
}
.sleeve img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .12) inset,
    0 2px 3px rgba(var(--shade), .35),
    0 26px 40px -18px rgba(var(--shade), .55);
}
.sleeve::after { /* key light from upper left */
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: 3px;
  background: linear-gradient(128deg, rgba(255, 255, 255, .2), transparent 38%, rgba(0, 0, 0, .22));
}
.disc {
  position: absolute;
  z-index: 1;
  top: 3%;
  left: 3%;
  width: 94%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translateX(var(--out, 44%));
  transition: transform 1.6s var(--spring) .55s;
}
.disc__vinyl {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 17%, rgba(255,255,255,.05) 17.4%, transparent 18.5%),
    repeating-radial-gradient(circle, #111 0 1.1px, #1c1c1c 1.6px 2.4px),
    #141414;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .04) inset, 0 18px 30px -16px rgba(var(--shade), .7);
  animation: spin 14s linear infinite; /* a record turns at constant speed; linear is the honest curve */
}
.disc__vinyl img {
  position: absolute;
  left: 32%;
  top: 32%;
  width: 36%;
  height: 36%;
  border-radius: 50%;
}
.disc__sheen { /* the light stays put while the record turns */
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 210deg, transparent 0 8%, rgba(255,255,255,.16) 13%, transparent 20% 52%, rgba(255,255,255,.1) 58%, transparent 66%);
  -webkit-mask: radial-gradient(circle, transparent 0 18.6%, #000 19%);
  mask: radial-gradient(circle, transparent 0 18.6%, #000 19%);
}
@keyframes spin { to { transform: rotate(360deg); } }

.book {
  --bw: 34%;
  position: absolute;
  z-index: 3;
  left: 4%;
  bottom: -3%;
  width: var(--bw);
  aspect-ratio: 640 / 961;
  transform-style: preserve-3d;
  transform: rotateY(-26deg) rotateX(3deg);
}
.book__front, .book__pages, .book__back { position: absolute; }
.book__front {
  inset: 0;
  transform: translateZ(9px);
  border-radius: 2px 4px 4px 2px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(var(--shade), .4);
}
.book__front img { width: 100%; height: 100%; object-fit: cover; }
.book__front::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.28) 0, rgba(255,255,255,.12) 2.5%, transparent 6%),
    linear-gradient(125deg, rgba(255,255,255,.22), transparent 42%, rgba(0,0,0,.18));
}
.book__pages {
  top: 1.2%;
  bottom: 1.2%;
  right: -9px;
  width: 18px;
  transform: rotateY(90deg);
  background:
    repeating-linear-gradient(90deg, #efede6 0 1px, #d9d6cd 1px 2px),
    #e9e6de;
  box-shadow: inset 6px 0 8px -4px rgba(0, 0, 0, .25);
}
.book__back {
  inset: 0;
  transform: translateZ(-9px);
  background: #101112;
  border-radius: 2px;
  box-shadow: 30px 30px 40px -18px rgba(var(--shade), .55);
}

.hero__foot {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
  align-items: end;
  gap: 24px;
}
.hero__lede { max-width: 33ch; font-size: clamp(17px, 1.35vw, 19px); color: var(--ink-2); margin-bottom: 22px; }
.hero__ventures { grid-column: 3; justify-self: end; text-align: right; list-style: none; margin: 0; padding: 0; }
.hero__ventures li + li { margin-top: 14px; }
.hero__ventures a { text-decoration: none; display: inline-block; }
.hero__ventures strong { display: block; font-weight: 600; font-size: 16px; }
.hero__ventures span { display: block; font-size: 14px; color: var(--muted); }
.hero__ventures a:hover strong { color: var(--accent); }

/* entry: letters rise once, then the record slides out of its sleeve */
.js .lockup .line > span { transform: translateY(102%); }
.js .lockup .line { overflow: hidden; padding-block: .04em .02em; margin-block: -.04em -.02em; }
.js .disc { --out: 0%; }
.js .stage { opacity: 0; translate: 0 36px; transition: opacity 1s var(--ease) .3s, translate 1.3s var(--ease) .3s; }
.is-ready .lockup .line > span { transform: none; transition: transform 1.1s var(--press); }
.is-ready .lockup .line--2 > span { transition-delay: .08s; }
.is-ready .stage { opacity: 1; translate: 0 0; }
.is-ready .disc { --out: 44%; }

@media (max-width: 760px) {
  .hero { padding-top: 96px; min-height: 0; grid-template-rows: auto auto; padding-bottom: 72px; }
  .lockup { margin-top: 2vh; }
  .stage { --w: min(84vw, 380px); transform: translate(-54%, -12%); }
  .hero__foot { grid-template-columns: 1fr; gap: 28px; margin-top: calc(min(84vw, 380px) * .66 + 36px); }
  .hero__ventures { grid-column: 1; justify-self: start; text-align: left; display: flex; gap: 22px; }
  .hero__ventures li + li { margin-top: 0; }
}

/* ---------- curved marquee ---------- */
.band {
  position: relative;
  z-index: 3;
  overflow-x: clip;
  margin-top: clamp(-90px, -5vw, -30px);
  margin-bottom: clamp(-60px, -3vw, -20px);
  pointer-events: none;
}
.band svg { display: block; width: 100%; height: auto; overflow: visible; }
.band__stroke { fill: none; stroke: var(--accent); stroke-width: 70; stroke-linecap: butt; }
.band text {
  font-family: var(--display);
  font-stretch: 120%;
  font-weight: 800;
  font-size: 36px;
  text-transform: uppercase;
  letter-spacing: .01em;
  fill: var(--on-accent);
}
.band .o { fill: none; stroke: var(--on-accent); stroke-width: 1.1px; }
@media (max-width: 760px) { .band svg { height: 150px; } }

/* ---------- manifesto (scroll-scrubbed words) ---------- */
.manifesto { padding-block: clamp(120px, 18vh, 200px); }
.scrub {
  max-width: 22em;
  font-family: var(--display);
  font-stretch: 100%;
  font-weight: 650;
  font-size: clamp(30px, 4.3vw, 66px);
  line-height: 1.08;
  letter-spacing: -.022em;
}
.scrub .w { opacity: .16; }
@supports (animation-timeline: view()) {
  .scrub { view-timeline-name: --scrub; }
  .scrub .w {
    animation: lit linear both;
    animation-timeline: --scrub;
    animation-range: cover var(--s) cover var(--e);
  }
}
@keyframes lit { to { opacity: 1; } }
.scrub.is-lit .w { opacity: 1; transition: opacity .6s var(--ease); transition-delay: calc(var(--i) * 22ms); }

/* ---------- ventures ---------- */
.venture { position: relative; }
.venture__name {
  font-size: clamp(46px, 8.4vw, 128px);
  margin-bottom: clamp(20px, 3vw, 36px);
}
.venture__logo { margin: 22px 0 36px; line-height: 0; }
.venture__logo img { width: clamp(170px, 16vw, 240px); height: auto; }
.venture__logo--plate { margin: 0; }
.venture__logo--plate img {
  width: clamp(260px, 32vw, 480px);
  border-radius: 24px;
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -36px rgba(var(--shade), .7);
}
.venture__copy { max-width: 46ch; color: var(--ink-2); font-size: clamp(17px, 1.3vw, 19px); }
.venture__copy + .venture__copy { margin-top: 14px; }
.venture__link { margin-top: 28px; }

.press {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding-block: clamp(40px, 8vh, 100px) clamp(100px, 14vh, 160px);
}
.press__text { align-self: center; }
.press .venture__name { font-size: clamp(40px, 5.1vw, 74px); }
.shelf {
  --gap: clamp(8px, 1vw, 14px);
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--gap);
  height: clamp(560px, 92vh, 860px);
  overflow: hidden;
  border-radius: 28px;
  padding: var(--gap);
  background: var(--bg-2);
  -webkit-mask: linear-gradient(transparent, #000 9%, #000 91%, transparent);
  mask: linear-gradient(transparent, #000 9%, #000 91%, transparent);
}
.shelf__col { display: flex; flex-direction: column; gap: var(--gap); }
.shelf__col:nth-child(odd) { margin-top: -38%; }
.shelf__col:nth-child(even) { margin-top: -8%; }
.shelf img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(var(--shade), .25), 0 14px 26px -16px rgba(var(--shade), .55);
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .shelf { view-timeline-name: --shelf; }
    .shelf__col { animation: drift-up linear both; animation-timeline: --shelf; animation-range: cover; }
    .shelf__col:nth-child(even) { animation-name: drift-down; }
  }
}
@keyframes drift-up { from { transform: translateY(8%); } to { transform: translateY(-8%); } }
@keyframes drift-down { from { transform: translateY(-6%); } to { transform: translateY(6%); } }

.label-co { padding-block: clamp(60px, 10vh, 120px) clamp(120px, 16vh, 180px); }
.label-co__head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
}
.label-co__head .venture__name { margin-bottom: 0; }
.crate {
  display: flex;
  justify-content: center;
  margin-top: clamp(48px, 8vh, 96px);
  padding: 30px var(--pad) 0;
  list-style: none;
}
.crate li { position: relative; flex: 0 0 auto; width: clamp(150px, 15vw, 230px); }
.crate li + li { margin-left: clamp(-90px, -6.2vw, -40px); }
.crate figure { margin: 0; }
.crate button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 4px;
  transform: rotate(var(--r, 0deg)) translateY(var(--y, 0));
  transition: transform .7s var(--spring);
}
.crate img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: -10px 0 24px -12px rgba(var(--shade), .55), 0 20px 34px -20px rgba(var(--shade), .6);
}
.crate li:nth-child(odd) button { --r: -2deg; }
.crate li:nth-child(even) button { --r: 1.5deg; }
.crate li:hover, .crate li:focus-within { z-index: 2; }
.crate li:hover button, .crate li button:focus-visible, .crate li button[aria-pressed='true'] { --y: -26px; --r: 0deg; }
.crate figcaption {
  position: absolute;
  left: 0; right: 0; top: calc(100% + 14px);
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .35s var(--ease), transform .5s var(--ease);
}
.crate figcaption strong { display: block; font-weight: 600; }
.crate figcaption span { color: var(--muted); }
.crate li:hover figcaption, .crate li:focus-within figcaption { opacity: 1; transform: none; }
.crate-note { text-align: center; margin-top: 76px; font-size: 14px; color: var(--muted); }

@media (max-width: 900px) {
  .press { grid-template-columns: 1fr; }
  .shelf { height: 520px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .shelf__col:nth-child(5) { display: none; }
  .label-co__head { grid-template-columns: 1fr; }
  .crate { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 70px; scrollbar-width: none; }
  .crate::-webkit-scrollbar { display: none; }
  .crate li { scroll-snap-align: center; width: 62vw; }
  .crate li + li { margin-left: 14px; }
  .crate figcaption { opacity: 1; transform: none; }
  .crate li button { --r: 0deg !important; }
  .crate-note { display: none; }
}

/* ---------- services with the scroll-drawn ribbon ---------- */
.services { position: relative; padding-block: clamp(100px, 16vh, 180px); }
.services__title { font-size: clamp(40px, 6.4vw, 96px); max-width: 11em; }
.services__intro { max-width: 52ch; margin-top: 28px; color: var(--ink-2); font-size: clamp(17px, 1.3vw, 19px); }
.ribbon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.ribbon path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: var(--len, 4000);
  stroke-dashoffset: var(--len, 4000);
}
.ribbon .knot { fill: var(--accent); transform-box: fill-box; transform-origin: center; }
@supports (animation-timeline: view()) {
  .services__list { view-timeline-name: --ribbon; }
  .ribbon path { animation: draw linear both; animation-timeline: --ribbon; animation-range: cover 14% cover 66%; }
}
.ribbon.is-drawn path { stroke-dashoffset: 0; transition: stroke-dashoffset 2.4s var(--ease); }
@keyframes draw { to { stroke-dashoffset: 0; } }

.services__list { position: relative; margin-top: clamp(70px, 12vh, 140px); }
.svc {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  padding-block: clamp(40px, 7vh, 80px);
}
.svc__body { grid-column: 1 / span 6; }
.svc:nth-of-type(2) .svc__body { grid-column: 7 / span 6; }
.svc:nth-of-type(3) .svc__body { grid-column: 2 / span 6; }
.svc h3 { font-size: clamp(36px, 5vw, 76px); margin-bottom: 22px; }
.svc p { max-width: 42ch; color: var(--ink-2); }
.svc__for { margin-top: 14px; font-size: 15px; color: var(--muted); }
.svc ul {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.svc li {
  font-size: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
}
@media (max-width: 760px) {
  .svc__body, .svc:nth-of-type(2) .svc__body, .svc:nth-of-type(3) .svc__body { grid-column: 2 / -1; }
}

/* ---------- work (sticky stack) ---------- */
.work { padding-block: clamp(60px, 10vh, 120px) clamp(80px, 12vh, 140px); }
.work__title { font-size: clamp(40px, 6.4vw, 96px); margin-bottom: clamp(40px, 7vh, 80px); }
.build {
  position: sticky;
  top: calc(86px + var(--i) * 22px);
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(18px, 2.4vw, 32px);
  margin-bottom: 9vh;
  border-radius: 32px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -40px rgba(var(--shade), .6);
}
.build__meta h3 { font-family: var(--display); font-stretch: 112%; font-size: clamp(26px, 2.6vw, 38px); line-height: 1; letter-spacing: -.01em; margin-bottom: 14px; }
.build__meta p { color: var(--ink-2); max-width: 36ch; }
.build__stack { margin-top: 18px; font-size: 14px; color: var(--muted); }
.build__meta .textlink { margin-top: 22px; }
.shot { position: relative; padding-bottom: 6%; }
.shot__frame {
  padding: 6px;
  border-radius: 20px;
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.shot__frame img { border-radius: 14px; width: 100%; }
.shot__phone {
  position: absolute;
  right: -1%;
  bottom: 0;
  width: 21%;
  padding: 5px;
  border-radius: 22px;
  background: #0b0b0c;
  transform: rotate(3deg);
  box-shadow: 0 24px 40px -18px rgba(var(--shade), .7);
}
.shot__phone img { border-radius: 17px; }
@media (max-width: 900px) {
  .build { position: relative; top: 0; grid-template-columns: 1fr; margin-bottom: 28px; border-radius: 24px; }
  .build__meta { order: 2; }
  .shot__phone { width: 26%; }
}

/* ---------- contact ---------- */
.contact { padding-block: clamp(100px, 14vh, 160px); }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.contact__title { font-size: clamp(44px, 5.6vw, 86px); }
.contact__intro { margin-top: 26px; max-width: 34ch; color: var(--ink-2); }
.details { display: grid; gap: 16px; margin: 44px 0 0; font-size: 15px; }
.details dt { font-size: 13px; color: var(--muted); }
.details dd { margin: 2px 0 0; color: var(--ink-2); }
.details a { color: var(--ink); text-underline-offset: 3px; overflow-wrap: anywhere; }
.panel {
  padding: 8px;
  border-radius: 32px;
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.panel__core {
  padding: clamp(22px, 3vw, 40px);
  border-radius: 25px;
  background: var(--panel);
  box-shadow: inset 0 1px 0 var(--sheen);
}
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  font: 400 16px/1.4 var(--text);
  color: var(--ink);
  background: var(--bg);
  border: 0;
  border-radius: 14px;
  padding: 13px 15px;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .3s var(--ease);
  appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.field .err { min-height: 0; font-size: 14px; color: var(--accent); }
.field [aria-invalid='true'] { box-shadow: inset 0 0 0 2px var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 6px; }
.form__note { font-size: 14px; color: var(--muted); max-width: 38ch; }
.form__status { grid-column: 1 / -1; font-size: 15px; }
.form__status:empty { display: none; }
.form__status.ok { padding: 14px 16px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.form__status.bad { color: var(--accent); }
.btn[aria-busy='true'] { opacity: .7; pointer-events: none; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* ---------- footer with the elastic wordmark ---------- */
.foot { padding-top: clamp(60px, 10vh, 110px); overflow: hidden; }
.foot__row {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.foot__nav { display: flex; flex-wrap: wrap; gap: 8px 26px; list-style: none; margin: 0; padding: 0; align-content: start; }
.foot__nav a { text-decoration: none; color: var(--ink-2); }
.foot__nav a:hover { color: var(--accent); }
.foot__legal { font-size: 14px; color: var(--muted); max-width: 52ch; }
.foot__legal p + p { margin-top: 8px; }
.wordmark {
  display: block;
  padding-top: 24px;
  transform-origin: 50% 100%;
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  line-height: .74;
  letter-spacing: -.02em;
  white-space: nowrap;
  width: max-content;
  margin-inline: auto;
  user-select: none;
}
.wordmark-wrap { overflow: hidden; padding-bottom: 2px; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .wordmark { animation: stretch linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  }
}
@keyframes stretch {
  0% { transform: scaleY(.18) scaleX(1.04); }
  62% { transform: scaleY(1.16) scaleX(.985); }
  80% { transform: scaleY(.95) scaleX(1.005); }
  100% { transform: scaleY(1) scaleX(1); }
}
.wordmark.is-stretched { animation: stretch 1.3s var(--ease) both; }
@media (max-width: 760px) { .foot__row { grid-template-columns: 1fr; } }

/* ---------- simple pages (privacy, 404) ---------- */
.doc { padding-top: 140px; padding-bottom: 120px; }
.doc h1 { font-size: clamp(44px, 7vw, 96px); margin-bottom: 40px; }
.doc h2 { font-family: var(--text); text-transform: none; font-size: 21px; font-weight: 600; margin: 40px 0 10px; }
.doc p, .doc li { max-width: 68ch; color: var(--ink-2); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 20px; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .scrub .w { opacity: 1; }
  .ribbon path { stroke-dashoffset: 0; }
  .js .lockup .line > span { transform: none; }
  .js .stage { opacity: 1; translate: 0 0; }
  .js .disc { --out: 44%; }
}
