/* ═══════════════════════════════════════════════════
   Spiros Kaftanis · personal site
   Signature: the ascent line. A single lime stroke that
   climbs the whole page and resolves into a chart.
   ═══════════════════════════════════════════════════ */

/* fonts and the logo monogram live in assets.css, inlined as data URIs
   so nothing breaks when the page is opened straight from disk */

:root {
  --void: #08090A;
  --void-2: #0E1013;
  --void-3: #14171A;
  --bone: #F2F4EF;
  --ash: #8A8F87;
  --ash-dim: #555954;
  --lime: #C4F112;
  --lime-deep: #A6D600;

  --display: "Phudu", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, monospace;

  --gutter: clamp(20px, 5vw, 96px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--void);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-booting { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--lime); color: var(--void); }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ─────────── shared atoms ─────────── */

.tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--lime);
  margin: 0 0 26px;
}
.tag-dark { color: rgba(8, 9, 10, .55); }

.lede {
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.5;
  color: var(--bone);
  margin: 0 0 26px;
}

.body-copy {
  color: var(--ash);
  margin: 0 0 20px;
  max-width: 54ch;
}

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--bone);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 17px 34px;
  border-radius: 100px;
  border: 1px solid rgba(242, 244, 239, .22);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn-solid { --btn-bg: var(--lime); --btn-fg: var(--void); border-color: var(--lime); }
.btn-solid:hover { --btn-bg: var(--bone); border-color: var(--bone); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }

.magnetic > span, .magnetic > svg { pointer-events: none; }

/* ─────────── boot sequence ─────────── */

.boot {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--void);
  display: grid;
  place-items: center;
  transition: opacity .7s var(--ease), visibility .7s;
}
.boot.is-done { opacity: 0; visibility: hidden; }

.boot-inner { position: relative; width: min(340px, 62vw); text-align: center; }

.boot-line { width: 100%; height: 54px; display: block; }
.boot-line path {
  stroke-dasharray: 460;
  stroke-dashoffset: 460;
  animation: bootDraw 1.1s var(--ease) forwards;
}
@keyframes bootDraw { to { stroke-dashoffset: 0; } }

.boot-mark {
  display: block;
  width: 34px;
  height: 34px;
  margin: 18px auto 0;
  background: var(--bone);
  -webkit-mask-image: var(--logo-mask);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: var(--logo-mask);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  opacity: 0;
  animation: bootFade .6s .5s var(--ease) forwards;
}
@keyframes bootFade { to { opacity: 1; } }

/* ─────────── ambient layers ─────────── */

.grain {
  position: fixed;
  inset: -60px;
  z-index: 90;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 5s steps(5) infinite;
}
@keyframes grainShift {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-14px, 6px); }
  40% { transform: translate(9px, -12px); }
  60% { transform: translate(-7px, 14px); }
  80% { transform: translate(12px, 5px); }
}

/* ─────────── the spine ─────────── */

.spine {
  position: fixed;
  left: 22px;
  top: 0;
  bottom: 0;
  width: 40px;
  z-index: 40;
  pointer-events: none;
  display: none;
}
.spine-svg { width: 40px; height: 100%; }
.spine-ghost { stroke: rgba(242, 244, 239, .12); }
.spine-live { stroke: var(--lime); }
.spine-ghost, .spine-live, .spine-cap { transition: stroke .45s ease, color .45s ease; }

/* the line crosses the lime block, so it flips to black to stay readable */
.spine.is-inverted .spine-ghost { stroke: rgba(8, 9, 10, .25); }
.spine.is-inverted .spine-live { stroke: var(--void); }
.spine.is-inverted .spine-cap { color: rgba(8, 9, 10, .5); }
.spine-cap {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .4em;
  color: var(--ash-dim);
}

@media (min-width: 1180px) { .spine { display: block; } }

/* ─────────── top bar ─────────── */

.bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px var(--gutter);
  transition: background .4s ease, backdrop-filter .4s ease, padding .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.bar.is-stuck {
  padding-top: 13px;
  padding-bottom: 13px;
  background: rgba(8, 9, 10, .72);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(242, 244, 239, .08);
}

.bar-mark { display: flex; align-items: center; gap: 12px; }
/* the monogram is a transparent PNG of dark ink, so it is used as a
   mask and painted with the accent instead of being recoloured */
.bar-mark-badge {
  display: block;
  flex: none;
  width: 32px;
  height: 32px;
  background: var(--bone);
  -webkit-mask-image: var(--logo-mask);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: var(--logo-mask);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  transition: background .35s var(--ease);
}
.bar-mark:hover .bar-mark-badge { background: var(--lime); }
.bar-mark-name {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
}

.bar-nav {
  margin-left: auto;
  display: flex;
  gap: 30px;
}
.bar-nav a {
  position: relative;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ash);
  transition: color .3s ease;
}
.bar-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.bar-nav a:hover { color: var(--bone); }
.bar-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.bar-cta {
  padding: 11px 22px;
  border: 1px solid rgba(242, 244, 239, .22);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.bar-cta:hover { background: var(--lime); border-color: var(--lime); color: var(--void); }

/* ─────────── menu button and overlay ─────────── */

.menu-btn {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(242, 244, 239, .22);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: border-color .35s var(--ease), background .35s var(--ease);
}
.menu-btn span {
  display: block;
  width: 15px;
  height: 1.5px;
  background: var(--bone);
  transition: transform .45s var(--ease), background .35s ease;
}
body.menu-open .menu-btn { border-color: var(--lime); }
body.menu-open .menu-btn span { background: var(--lime); }
body.menu-open .menu-btn span:first-child { transform: translateY(3.75px) rotate(45deg); }
body.menu-open .menu-btn span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 120px var(--gutter) 44px;
  background: var(--void);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility .4s;
}
body.menu-open { overflow: hidden; }
body.menu-open .menu { opacity: 1; visibility: visible; }

.menu-nav { display: flex; flex-direction: column; margin-block: auto; }
.menu-nav a {
  padding: 15px 0;
  border-bottom: 1px solid rgba(242, 244, 239, .1);
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(30px, 8.5vw, 46px);
  line-height: 1.05;
  letter-spacing: -.03em;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .5s ease, transform .7s var(--ease), color .3s ease;
}
body.menu-open .menu-nav a {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--m) * 55ms + 80ms);
}
.menu-nav a:active { color: var(--lime); }

.menu-foot {
  display: flex;
  flex-direction: column;
  gap: 18px;
  opacity: 0;
  transition: opacity .5s ease .4s;
}
body.menu-open .menu-foot { opacity: 1; }
.menu-mail {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(17px, 4.6vw, 22px);
  letter-spacing: -.02em;
  color: var(--lime);
  word-break: break-word;
}
.menu-social { display: flex; flex-wrap: wrap; gap: 20px; }
.menu-social a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ash);
}

@media (max-width: 900px) {
  .bar-nav { display: none; }
  .bar-mark-name { display: none; }
  .bar-cta { margin-left: auto; }
  .menu-btn { display: flex; }
}

/* the overlay is a small screen affordance only */
@media (min-width: 901px) {
  .menu { display: none; }
}

@media (max-width: 400px) {
  .bar { gap: 12px; }
  .bar-cta { padding: 11px 16px; letter-spacing: .1em; }
}

/* ─────────── hero ─────────── */

.hero {
  position: relative;
  /* the name rows drift sideways on exit, so they clip against the section */
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 118px var(--gutter) 84px;
  z-index: 2;
}

.hero-stage { will-change: transform, opacity; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(20px, 3vw, 32px);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ash);
}
.hero-eyebrow i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(196, 241, 18, .6);
  animation: ping 2.4s infinite;
}
@keyframes ping {
  70% { box-shadow: 0 0 0 9px rgba(196, 241, 18, 0); }
  100% { box-shadow: 0 0 0 0 rgba(196, 241, 18, 0); }
}

.hero-name {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(52px, 20.5vw, 330px);
  line-height: .78;
  letter-spacing: -.025em;
  text-transform: uppercase;
}
/* the two rows push to opposite edges: the block spans the full measure
   and the diagonal void between them is the composition */
.hero-row { display: block; white-space: nowrap; }
.hero-row-b {
  text-align: right;
  color: rgba(242, 244, 239, .11);
}

.hero-name .ltr {
  display: inline-block;
  transform: translateY(105%) rotate(4deg);
  opacity: 0;
  transition: transform 1.1s var(--ease), opacity .7s ease;
  transition-delay: calc(var(--i) * 42ms + 120ms);
}
.is-ready .hero-name .ltr { transform: none; opacity: 1; }

.hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: clamp(24px, 4vw, 64px);
  margin-top: clamp(26px, 3.5vw, 44px);
  padding-top: 28px;
  border-top: 1px solid rgba(242, 244, 239, .1);
}
.hero-claim {
  flex: 1 1 320px;
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(21px, 2.4vw, 32px);
  line-height: 1.22;
  max-width: 15ch;
}
.hero-sub {
  flex: 1 1 300px;
  margin: 0;
  max-width: 46ch;
  color: var(--ash);
  font-size: 15.5px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  left: var(--gutter);
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ash-dim);
}
.hero-scroll i {
  display: block;
  width: 58px;
  height: 1px;
  background: linear-gradient(90deg, var(--lime), transparent);
  animation: sweep 2.6s var(--ease) infinite;
  transform-origin: left;
}
@keyframes sweep {
  0% { transform: scaleX(0); opacity: 0; }
  40% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1) translateX(58px); opacity: 0; }
}

@media (max-width: 700px) {
  .hero-scroll { display: none; }
  .hero-row-b { -webkit-text-stroke-width: .7px; }
}

/* ─────────── reveal utilities ─────────── */

.reveal-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s ease, transform 1s var(--ease);
  transition-delay: calc(var(--d, 0) * 110ms + 500ms);
}
.is-ready .reveal-up, .in-view.reveal-up { opacity: 1; transform: none; }

.word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.word > i {
  display: inline-block;
  font-style: inherit;
  transform: translateY(110%);
  transition: transform .9s var(--ease);
  transition-delay: calc(var(--w) * 26ms);
}
.in-view .word > i, .in-view.word > i { transform: none; }

/* the mask clips at the bottom, so it needs room for descenders.
   the padding is given back with a negative margin, and the start
   offset clears the padded box */
.line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: .18em;
  margin-bottom: -.18em;
}
.line-mask > span {
  display: block;
  transform: translateY(130%);
  transition: transform 1.05s var(--ease);
  transition-delay: calc(var(--l) * 90ms);
}
.in-view .line-mask > span { transform: none; }

/* staggered rows: credentials, facts, contact links */
.creds .cred,
.labs-facts > div,
.contact-rows a,
.chart-legend li {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .8s var(--ease), padding-left .4s var(--ease), background .4s ease;
  transition-delay: calc(var(--s, 0) * 80ms);
}
.creds.in-view .cred,
.labs-facts.in-view > div,
.contact-rows.in-view a,
.chart-legend.in-view li { opacity: 1; transform: none; }

.mailto {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .9s var(--ease), padding-left .5s var(--ease), border-color .5s ease;
}
.mailto.in-view { opacity: 1; transform: none; }

/* ─────────── about ─────────── */

.about {
  position: relative;
  z-index: 2;
  padding: clamp(90px, 12vw, 190px) var(--gutter);
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
  max-width: 1340px;
  margin-inline: auto;
}

.portrait { margin: 0; position: sticky; top: 110px; }
.portrait-frame {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--void-2);
}
.portrait-frame img {
  width: 100%;
  aspect-ratio: 4 / 4.9;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(.86);
  transform: scale(1.12);
  transition: transform 1.4s var(--ease), filter .8s ease;
}
.in-view .portrait-frame img { transform: scale(1); }
.portrait:hover .portrait-frame img { filter: grayscale(.25) contrast(1.02) brightness(.98); }

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(8, 9, 10, .85));
  pointer-events: none;
}
.portrait-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--lime);
  transform-origin: top;
  transition: transform 1.15s var(--ease);
}
.in-view .portrait-veil { transform: scaleY(0); transform-origin: bottom; }

.portrait figcaption {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 16px;
}
.portrait figcaption strong { font-size: 15px; font-weight: 600; }
.portrait figcaption span {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--lime);
}

.about-copy h2 {
  margin: 0 0 30px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(38px, 5.4vw, 82px);
  line-height: .98;
  letter-spacing: -.02em;
}

.creds {
  margin: 48px 0 0;
  border-top: 1px solid rgba(242, 244, 239, .1);
}
.cred {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(242, 244, 239, .1);
  transition: padding-left .4s var(--ease), background .4s ease;
}
.cred:hover { padding-left: 12px; background: rgba(242, 244, 239, .02); }
.cred dt {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ash-dim);
  padding-top: 3px;
}
.cred dd { margin: 0; font-size: 15px; color: var(--bone); }

@media (max-width: 940px) {
  .about-grid { grid-template-columns: 1fr; }
  .portrait { position: static; max-width: 400px; }
  .cred { grid-template-columns: 1fr; gap: 5px; }
}

/* ─────────── higher highs chart ─────────── */

.highs {
  position: relative;
  z-index: 2;
  padding: clamp(70px, 9vw, 130px) var(--gutter) clamp(90px, 12vw, 170px);
}
.highs-head { max-width: 760px; margin: 0 auto clamp(50px, 7vw, 100px); text-align: center; }
.highs-head h2 {
  margin: 0 0 24px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(46px, 8vw, 128px);
  line-height: .92;
  letter-spacing: -.03em;
}
.highs-head .lede { color: var(--ash); }

.chart { max-width: 1280px; margin-inline: auto; }
.chart-plot { position: relative; aspect-ratio: 1200 / 520; }
.chart-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.chart-grid line { stroke: rgba(242, 244, 239, .07); stroke-width: 1; }

.chart-line {
  stroke: var(--lime);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 6px 22px rgba(196, 241, 18, .35));
  stroke-dasharray: var(--len, 2000);
  stroke-dashoffset: var(--len, 2000);
}
.in-view .chart-line { transition: stroke-dashoffset 1.9s var(--ease); stroke-dashoffset: 0; }

.chart-fill {
  fill: url(#chartWash);
  opacity: 0;
  transition: opacity 1.1s ease 1.1s;
}
.in-view .chart-fill { opacity: 1; }

.chart-nodes circle {
  fill: var(--void);
  stroke: var(--lime);
  stroke-width: 3;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  transition: opacity .4s ease, transform .6s var(--ease);
}
.in-view .chart-nodes circle { opacity: 1; transform: scale(1); }
.in-view .chart-nodes circle:nth-child(1) { transition-delay: .5s; }
.in-view .chart-nodes circle:nth-child(2) { transition-delay: .9s; }
.in-view .chart-nodes circle:nth-child(3) { transition-delay: 1.3s; }
.in-view .chart-nodes circle:nth-child(4) { transition-delay: 1.7s; }

.pin {
  position: absolute;
  left: calc(var(--x) / 1200 * 100%);
  top: calc(var(--y) / 520 * 100%);
  transform: translate(-50%, 34px);
  text-align: center;
  opacity: 0;
  transition: opacity .6s ease, transform .9s var(--ease);
}
.pin-top { transform: translate(-84%, -112%); }
.in-view .pin { opacity: 1; transform: translate(-50%, 18px); }
.in-view .pin-top { transform: translate(-84%, -128%); }
.in-view .pin[data-pin="1"] { transition-delay: .6s; }
.in-view .pin[data-pin="2"] { transition-delay: 1s; }
.in-view .pin[data-pin="3"] { transition-delay: 1.4s; }
.in-view .pin[data-pin="4"] { transition-delay: 1.8s; }

.pin b {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(24px, 3.4vw, 54px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--bone);
}
.pin[data-pin="4"] b { color: var(--lime); }
.pin span {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ash);
  white-space: nowrap;
}

.chart-legend { display: none; }

@media (max-width: 780px) {
  .chart-plot { aspect-ratio: 1200 / 620; }
  .pin { display: none; }
  .chart-legend {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
    background: rgba(242, 244, 239, .1);
    border: 1px solid rgba(242, 244, 239, .1);
  }
  .chart-legend li { background: var(--void); padding: 20px 16px; }
  .chart-legend b {
    display: block;
    font-family: var(--display);
    font-size: 34px;
    line-height: 1;
    color: var(--lime);
  }
  .chart-legend span {
    display: block;
    margin-top: 7px;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ash);
  }
}

/* ─────────── marquee ─────────── */

.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 26px 0;
  border-block: 1px solid rgba(242, 244, 239, .1);
  background: var(--void-2);
}
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-set { display: flex; align-items: center; }
.marquee-set span {
  padding: 0 26px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(24px, 3.4vw, 44px);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -.01em;
  color: rgba(242, 244, 239, .28);
  white-space: nowrap;
}
.marquee-set i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  flex: none;
}

/* ─────────── what I build ─────────── */

.build { position: relative; z-index: 2; height: 520vh; }
.build-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.build-track {
  display: flex;
  align-items: stretch;
  gap: clamp(18px, 2vw, 34px);
  padding-inline: var(--gutter);
  will-change: transform;
}
/* flex containers drop trailing padding from scrollWidth, so pad with a spacer */
.build-track::after { content: ""; flex: none; width: var(--gutter); }

.panel {
  flex: none;
  width: clamp(280px, 30vw, 420px);
  display: flex;
  flex-direction: column;
}

.panel-intro { justify-content: center; width: clamp(260px, 26vw, 360px); }
.panel-intro h2 {
  margin: 0 0 22px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(46px, 6.4vw, 92px);
  line-height: .9;
  letter-spacing: -.03em;
}
.panel-note {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ash-dim);
  max-width: 24ch;
}

.panel-card {
  position: relative;
  justify-content: flex-end;
  padding: 34px;
  border: 1px solid rgba(242, 244, 239, .12);
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(242, 244, 239, .035), transparent 62%);
  min-height: min(470px, 68svh);
  transition: border-color .5s var(--ease), background .5s var(--ease), transform .6s var(--ease);
}
.panel-card:hover {
  border-color: rgba(196, 241, 18, .55);
  background: linear-gradient(180deg, rgba(196, 241, 18, .07), transparent 62%);
  transform: translateY(-6px);
}

.panel-idx {
  position: absolute;
  top: 22px;
  left: 30px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 72px;
  line-height: 1;
  letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(196, 241, 18, .45);
  transition: -webkit-text-stroke-color .5s var(--ease);
}
.panel-card:hover .panel-idx { -webkit-text-stroke-color: var(--lime); }
.panel-card h3 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(27px, 2.9vw, 40px);
  line-height: 1.02;
  letter-spacing: -.02em;
}
.panel-card > p { margin: 0 0 22px; color: var(--ash); font-size: 15px; }
.panel-card ul {
  margin: 0;
  padding: 18px 0 0;
  list-style: none;
  border-top: 1px solid rgba(242, 244, 239, .12);
}
.panel-card li {
  position: relative;
  padding-left: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ash);
  line-height: 2.3;
}
.panel-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 1px;
  background: var(--lime);
}

.panel-end {
  justify-content: center;
  align-items: flex-start;
  gap: 22px;
  width: clamp(240px, 24vw, 330px);
}
.panel-end h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1;
  letter-spacing: -.02em;
}

@media (max-width: 860px) {
  .build { height: auto; }
  .build-sticky { position: static; height: auto; display: block; padding: 90px 0; }
  .build-track {
    transform: none !important;
    flex-direction: column;
    gap: 16px;
  }
  .panel { width: 100%; }
  .panel-card { min-height: 0; padding: 28px; }
  .panel-idx { position: static; display: block; margin-bottom: 14px; transform: none; }
  .panel-intro, .panel-end { width: 100%; }
  .panel-intro { padding-bottom: 12px; }
}

/* ─────────── the company: hard inversion ─────────── */

.labs {
  position: relative;
  z-index: 2;
  background: var(--lime);
  color: var(--void);
  padding: clamp(80px, 11vw, 160px) var(--gutter);
  overflow: hidden;
}
.labs::before {
  content: "";
  position: absolute;
  inset: auto -10% -60% 40%;
  height: 120%;
  background: radial-gradient(circle at 50% 50%, rgba(8, 9, 10, .10), transparent 60%);
  pointer-events: none;
}
.labs-inner { position: relative; max-width: 1280px; margin-inline: auto; }

.labs-title {
  margin: 0 0 clamp(34px, 5vw, 60px);
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(52px, 11.5vw, 200px);
  line-height: .82;
  letter-spacing: -.045em;
  text-transform: uppercase;
}

.labs-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 70px);
  padding-top: 34px;
  border-top: 1px solid rgba(8, 9, 10, .22);
}
.labs-lede {
  margin: 0;
  font-size: clamp(19px, 2.1vw, 27px);
  line-height: 1.4;
  font-weight: 500;
}
.labs-note { margin: 0; color: rgba(8, 9, 10, .68); font-size: 16px; max-width: 42ch; }

.labs-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: clamp(40px, 5vw, 66px) 0 0;
  background: rgba(8, 9, 10, .2);
  border: 1px solid rgba(8, 9, 10, .2);
}
.labs-facts > div { background: var(--lime); padding: 22px 20px; }
.labs-facts dt {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(8, 9, 10, .55);
  margin-bottom: 9px;
}
.labs-facts dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(17px, 1.7vw, 23px);
  line-height: 1.15;
  letter-spacing: -.01em;
}

.labs-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(40px, 5vw, 62px);
  padding: 18px 30px;
  border-radius: 100px;
  background: var(--void);
  color: var(--bone);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: background .4s var(--ease), color .4s var(--ease);
}
.labs-link svg { width: 15px; height: 15px; transition: transform .4s var(--ease); }
.labs-link:hover { background: var(--bone); color: var(--void); }
.labs-link:hover svg { transform: translate(3px, -3px); }

@media (max-width: 860px) {
  .labs-body { grid-template-columns: 1fr; }
  .labs-facts { grid-template-columns: repeat(2, 1fr); }
}

/* ─────────── client words ─────────── */

.says {
  position: relative;
  z-index: 2;
  padding: clamp(90px, 12vw, 170px) var(--gutter);
  text-align: center;
}
.says .tag { margin-bottom: 46px; }

.says-stage {
  position: relative;
  max-width: 900px;
  margin-inline: auto;
  min-height: 260px;
}
.say {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .9s var(--ease);
  pointer-events: none;
}
.say.is-live { opacity: 1; transform: none; pointer-events: auto; }
.say p {
  margin: 0 0 30px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(23px, 3.4vw, 44px);
  line-height: 1.2;
  letter-spacing: -.02em;
}
.say footer { display: flex; flex-direction: column; gap: 4px; }
.say strong { font-size: 14px; font-weight: 600; }
.say span {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ash);
}

.says-dots { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.says-dots button {
  width: 30px;
  height: 2px;
  padding: 0;
  border: 0;
  background: rgba(242, 244, 239, .2);
  cursor: pointer;
  transition: background .4s ease, width .4s var(--ease);
}
.says-dots button[aria-current="true"] { background: var(--lime); width: 52px; }

@media (max-width: 700px) { .says-stage { min-height: 330px; } }

/* ─────────── career timeline ─────────── */

.path {
  position: relative;
  z-index: 2;
  padding: clamp(70px, 9vw, 120px) var(--gutter) clamp(80px, 10vw, 140px);
  border-top: 1px solid rgba(242, 244, 239, .1);
}
.path-head { max-width: 1280px; margin: 0 auto clamp(46px, 6vw, 80px); }
.path-head h2 {
  margin: 0 0 24px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(40px, 6.6vw, 96px);
  line-height: .92;
  letter-spacing: -.035em;
}
.path-lede {
  margin: 0;
  max-width: 52ch;
  font-size: clamp(16px, 1.8vw, 21px);
  line-height: 1.55;
  color: var(--ash);
}

.path-list {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.path-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 44px);
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .9s var(--ease);
}
.path-item.in-view { opacity: 1; transform: none; }

.path-when {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 1px;
  font-family: var(--mono);
  letter-spacing: .1em;
}
.path-when span { font-size: 15px; color: var(--bone); }
.path-when i {
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ash-dim);
}

/* the connecting line lights up entry by entry as the section is read,
   so the career reads as one continuous climb */
.path-body {
  position: relative;
  padding: 0 0 clamp(34px, 4.5vw, 56px) clamp(24px, 3vw, 38px);
  border-left: 1px solid rgba(242, 244, 239, .14);
  transition: border-color 1s ease;
}
.path-item:last-child .path-body { padding-bottom: 0; }
.path-item.in-view .path-body { border-left-color: rgba(196, 241, 18, .4); }

.path-body::before {
  content: "";
  position: absolute;
  left: -5.5px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--void);
  border: 1.5px solid rgba(242, 244, 239, .3);
  transition: background .6s ease, border-color .6s ease, box-shadow .6s ease;
}
.path-item.in-view .path-body::before {
  background: var(--lime);
  border-color: var(--lime);
  box-shadow: 0 0 14px rgba(196, 241, 18, .45);
}

.path-kind {
  display: block;
  margin-bottom: 11px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--lime);
}
.path-body h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.path-org {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ash);
}
.path-body > p:last-child {
  margin: 0;
  max-width: 58ch;
  color: var(--ash);
  font-size: 15.5px;
  line-height: 1.65;
}


@media (max-width: 780px) {
  .path-item { grid-template-columns: 1fr; gap: 10px; }
  .path-when { flex-direction: row; align-items: baseline; gap: 10px; padding-left: 2px; }
}

/* ─────────── contact ─────────── */

.contact {
  position: relative;
  z-index: 2;
  padding: clamp(80px, 10vw, 150px) var(--gutter) clamp(60px, 7vw, 100px);
  border-top: 1px solid rgba(242, 244, 239, .1);
}
.contact-title {
  margin: 0 0 28px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(48px, 10.5vw, 170px);
  line-height: .86;
  letter-spacing: -.04em;
}
.contact-lede { max-width: 52ch; color: var(--ash); font-size: clamp(16px, 1.7vw, 20px); margin: 0 0 clamp(44px, 5vw, 66px); }

.mailto {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 22px;
  padding: 28px 0;
  border-top: 1px solid rgba(242, 244, 239, .16);
  border-bottom: 1px solid rgba(242, 244, 239, .16);
}
.mailto:hover { padding-left: 10px; border-color: var(--lime); }
.mailto-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--lime);
}
.mailto-value {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(24px, 4.4vw, 62px);
  line-height: 1;
  letter-spacing: -.025em;
  word-break: break-word;
}

.contact-rows { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(242, 244, 239, .12); border-bottom: 1px solid rgba(242, 244, 239, .12); }
.contact-rows a {
  background: var(--void);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.contact-rows a:hover { background: var(--void-3); transform: translateY(-3px); }
.contact-rows span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ash-dim);
}
.contact-rows b { font-size: 15px; font-weight: 500; }

@media (max-width: 780px) { .contact-rows { grid-template-columns: repeat(2, 1fr); } }

/* ─────────── footer ─────────── */

.foot {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 34px var(--gutter) 44px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ash-dim);
}

.foot-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.foot-nav a { color: var(--ash); transition: color .3s ease; }
.foot-nav a:hover { color: var(--lime); }

/* ═══════════════════════════════════════════════════
   Journal
   ═══════════════════════════════════════════════════ */

.page-head {
  position: relative;
  z-index: 2;
  padding: clamp(130px, 16vw, 210px) var(--gutter) clamp(50px, 6vw, 80px);
}
.page-title {
  margin: 0 0 26px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(46px, 10vw, 160px);
  line-height: .86;
  letter-spacing: -.04em;
}
.page-lede {
  margin: 0;
  max-width: 54ch;
  font-size: clamp(16px, 1.8vw, 21px);
  line-height: 1.55;
  color: var(--ash);
}

/* ─────────── post list ─────────── */

.post-list {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter) clamp(16px, 2.5vw, 34px);
  border-top: 1px solid rgba(242, 244, 239, .12);
  margin-top: clamp(30px, 4vw, 50px);
}

.post-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 60px;
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
  padding: clamp(30px, 4vw, 52px) 0;
  border-bottom: 1px solid rgba(242, 244, 239, .12);
  transition: padding-left .55s var(--ease), background .5s ease,
              opacity .7s ease, transform .9s var(--ease);
}
.post-row:hover { padding-left: 18px; background: rgba(242, 244, 239, .022); }
.post-row { opacity: 0; transform: translateY(26px); }
.post-row.in-view { opacity: 1; transform: none; }

.post-when {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 7px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.post-when time { color: var(--ash); }
.post-when span { color: var(--lime); }

.post-main h2 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(26px, 3.6vw, 52px);
  line-height: 1.02;
  letter-spacing: -.025em;
  transition: color .4s ease;
}
.post-row:hover .post-main h2 { color: var(--lime); }
.post-main p {
  margin: 0 0 18px;
  max-width: 62ch;
  color: var(--ash);
  font-size: 16px;
  line-height: 1.6;
}
.post-time {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ash-dim);
}

.post-go {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  justify-self: end;
  border: 1px solid rgba(242, 244, 239, .2);
  border-radius: 50%;
  color: var(--bone);
  transition: background .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease);
}
.post-go svg { width: 16px; height: 16px; }
.post-row:hover .post-go {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--void);
  transform: translate(4px, -4px);
}

@media (max-width: 820px) {
  .post-row { grid-template-columns: 1fr; gap: 16px; }
  .post-when { flex-direction: row; gap: 14px; padding-top: 0; }
  .post-go { justify-self: start; width: 44px; height: 44px; }
}

/* ─────────── article ─────────── */

.article { position: relative; z-index: 2; }

.article-head {
  padding: clamp(112px, 13vw, 170px) var(--gutter) clamp(36px, 5vw, 60px);
  max-width: 1180px;
  margin-inline: auto;
}

.back-link {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  margin-bottom: clamp(28px, 4vw, 48px);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ash);
  transition: color .3s ease, gap .35s var(--ease);
}
.back-link svg { width: 14px; height: 14px; }
.back-link:hover { color: var(--lime); gap: 14px; }

.article-kicker {
  display: inline-block;
  margin: 0 0 22px;
  padding: 7px 15px;
  border: 1px solid rgba(196, 241, 18, .4);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--lime);
}

.article-title {
  margin: 0 0 28px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(38px, 6.6vw, 96px);
  line-height: .92;
  letter-spacing: -.035em;
}

.article-lede {
  margin: 0 0 clamp(34px, 4vw, 52px);
  max-width: 60ch;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.5;
  color: rgba(242, 244, 239, .8);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: rgba(242, 244, 239, .12);
  border-block: 1px solid rgba(242, 244, 239, .12);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .9s var(--ease);
}
.article-meta.in-view { opacity: 1; transform: none; }
.article-meta span {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 18px 20px 18px 0;
  background: var(--void);
  font-size: 14px;
  color: var(--bone);
}
.article-meta b {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ash-dim);
}

/* ─────────── prose ─────────── */

/* the body column is narrower than the header but shares its left edge,
   so the whole article reads off one axis */
.prose {
  padding: clamp(40px, 6vw, 76px) var(--gutter) clamp(50px, 7vw, 90px);
  max-width: 1180px;
  margin-inline: auto;
  font-size: 18px;
  line-height: 1.78;
  color: rgba(242, 244, 239, .76);
}
.prose > * { max-width: 72ch; }
.prose > p { margin: 0 0 26px; }
.prose b { color: var(--bone); font-weight: 600; }

/* each block surfaces as it is reached, so reading has a rhythm */
.prose > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .8s var(--ease);
}
.prose > *.in-view { opacity: 1; transform: none; }

.prose h2 {
  margin: clamp(48px, 6vw, 72px) 0 22px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -.025em;
  color: var(--bone);
}

.prose ul {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.prose li {
  position: relative;
  margin-bottom: 15px;
  padding-left: 26px;
}
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 12px;
  height: 1px;
  background: var(--lime);
}

.prose blockquote {
  margin: clamp(40px, 5vw, 60px) 0;
  padding: 4px 0 4px 30px;
  border-left: 2px solid var(--lime);
}
.prose blockquote p {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(21px, 2.6vw, 30px);
  line-height: 1.3;
  letter-spacing: -.02em;
  color: var(--bone);
}

/* ─────────── article foot ─────────── */

.article-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1px;
  margin-top: clamp(30px, 4vw, 50px);
  background: rgba(242, 244, 239, .12);
  border-top: 1px solid rgba(242, 244, 239, .12);
}
.next-up, .article-cta {
  background: var(--void);
  padding: clamp(34px, 4.5vw, 60px) clamp(24px, 4vw, 60px);
}
.next-up .tag { margin-bottom: 20px; }

.next-link { display: block; }
.next-link h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.1;
  letter-spacing: -.02em;
  transition: color .35s ease;
}
.next-link:hover h3 { color: var(--lime); }
.next-link span {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ash-dim);
}

.article-cta h3 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.article-cta p {
  margin: 0 0 26px;
  max-width: 40ch;
  color: var(--ash);
  font-size: 15.5px;
}

@media (max-width: 820px) {
  .article-foot { grid-template-columns: 1fr; }
}

/* ─────────── cta strip ─────────── */

.cta-strip {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(60px, 8vw, 110px) var(--gutter);
  border-top: 1px solid rgba(242, 244, 239, .12);
}
.cta-copy h2 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(30px, 4.6vw, 68px);
  line-height: .98;
  letter-spacing: -.03em;
}
.cta-copy p { margin: 0; color: var(--ash); font-size: 16px; }

/* ═══════════════════════════════════════════════════
   404: the only descent on the site
   ═══════════════════════════════════════════════════ */

.four-head { padding-bottom: clamp(30px, 4vw, 50px); }

.four-code {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(110px, 25vw, 340px);
  line-height: .8;
  letter-spacing: -.05em;
}
/* the middle zero is the hole you fell into */
.four-code i { font-style: normal; color: var(--lime); }

.four-claim {
  margin: 0 0 26px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(34px, 5.4vw, 86px);
  line-height: .94;
  letter-spacing: -.03em;
  color: var(--bone);
}

.four-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(34px, 4vw, 48px); }

.four-lows {
  position: relative;
  z-index: 2;
  padding: clamp(20px, 3vw, 40px) var(--gutter) clamp(70px, 9vw, 120px);
}
.four-fig {
  max-width: 1280px;
  margin: clamp(34px, 5vw, 60px) auto 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ash-dim);
  text-align: center;
}

.four-report {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(60px, 8vw, 100px);
}
.four-report .creds { margin-top: 0; }
.four-report .cred dd { font-size: 16px; }
#badPath {
  font-family: var(--mono);
  font-size: 13px;
  word-break: break-all;
  color: var(--lime);
}

.four-theory {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  margin: 30px 0 0;
}
.four-theory-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ash-dim);
}
.four-theory-line {
  color: var(--bone);
  font-size: 17px;
  transition: opacity .3s ease, transform .3s var(--ease);
}
.four-theory-line.is-out { opacity: 0; transform: translateY(-6px); }

.four-exits { margin-top: 0; }
.four-exits .post-when em { font-style: normal; color: var(--ash); }

/* ─────────── reduced motion ─────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .hero-name .ltr,
  .reveal-up,
  .word > i,
  .line-mask > span,
  .pin,
  .post-row,
  .article-meta,
  .prose > *,
  .path-item,
  .portrait-frame img { opacity: 1 !important; transform: none !important; }
  .portrait-veil { display: none; }
  .chart-line { stroke-dashoffset: 0 !important; }
  .chart-nodes circle { opacity: 1 !important; transform: none !important; }
  .grain { display: none; }
  .build { height: auto; }
  .build-sticky { position: static; height: auto; }
  .build-track { transform: none !important; flex-wrap: wrap; }
}
