:root {
  --yellow: #ffe45c;
  --yellow-soft: #fff0a6;
  --ink: #101417;
  --paper: #fff8df;
  --paper-warm: #fff3c4;
  --blue: #83d7ff;
  --pink: #ff8fd9;
  --red: #d1483d;
  --line: rgb(16 20 23 / 0.16);
  --shadow: 0 14px 0 rgb(16 20 23 / 0.14);
  --ease-soft: cubic-bezier(0.2, 0.9, 0.22, 1);
  --ease-play: cubic-bezier(0.2, 1.35, 0.32, 1);
}

@font-face {
  font-family: "MD Nichrome Test";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./assets/fonts/MDNichromeTest-Bold.otf") format("opentype");
}

@font-face {
  font-family: "General Sans";
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url("./assets/fonts/GeneralSans-Extralight.otf") format("opentype");
}
@font-face {
  font-family: "General Sans";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("./assets/fonts/GeneralSans-Light.otf") format("opentype");
}
@font-face {
  font-family: "General Sans";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url("./assets/fonts/GeneralSans-LightItalic.otf") format("opentype");
}
@font-face {
  font-family: "General Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/GeneralSans-Regular.otf") format("opentype");
}
@font-face {
  font-family: "General Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/GeneralSans-Italic.otf") format("opentype");
}
@font-face {
  font-family: "General Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/GeneralSans-Medium.otf") format("opentype");
}
@font-face {
  font-family: "General Sans";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/GeneralSans-MediumItalic.otf") format("opentype");
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "General Sans", Inter, Helvetica, Arial, sans-serif;
  font-synthesis: none;
}

body.is-loading {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 8px solid var(--ink);
  background:
    radial-gradient(circle at 50% 44%, rgb(255 228 92 / 0.68), transparent 24%),
    radial-gradient(circle at 76% 18%, rgb(131 215 255 / 0.18), transparent 22%),
    linear-gradient(180deg, #fff9e6, var(--paper));
  transition:
    opacity 760ms var(--ease-soft),
    transform 880ms var(--ease-soft),
    visibility 0ms linear 880ms;
}

.loader::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.065;
  background-image: radial-gradient(circle, var(--ink) 0 1px, transparent 1.2px);
  background-size: 24px 24px;
}

.loader::after {
  content: "";
  position: absolute;
  inset: 74px 8% 72px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background:
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 92px 92px,
    linear-gradient(0deg, var(--line) 1px, transparent 1px) 0 0 / 92px 92px;
  opacity: 0.22;
  mask-image: radial-gradient(ellipse at center, black 0 38%, transparent 72%);
}

.loader-card {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: clamp(22px, 4vw, 34px);
  width: min(720px, 100%);
  padding: clamp(30px, 5vw, 56px) clamp(24px, 5vw, 58px);
  border: 3px solid var(--ink);
  border-radius: clamp(24px, 3vw, 42px);
  background:
    radial-gradient(circle at 8% 12%, rgb(255 143 217 / 0.22), transparent 24%),
    rgb(255 248 223 / 0.94);
  box-shadow: 11px 11px 0 var(--ink);
  text-align: center;
  transform: rotate(-1.2deg);
  animation: loader-card-breathe 2.5s var(--ease-soft) infinite;
}

.loader-topline {
  display: flex;
  justify-content: space-between;
  width: 100%;
  color: rgb(16 20 23 / 0.62);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.loader-kicker {
  margin: 0;
}

.loader-kicker {
  max-width: 620px;
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(48px, 8vw, 104px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 0.82;
  text-transform: uppercase;
}

.loader-mark {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 42px;
  padding: 0 10px;
}

.loader-mark span {
  display: block;
  width: 26px;
  height: 26px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  animation: loader-bounce 1.05s var(--ease-play) infinite;
}

.loader-mark span:nth-child(2) {
  background: var(--blue);
  animation-delay: 120ms;
}

.loader-mark span:nth-child(3) {
  background: var(--pink);
  animation-delay: 240ms;
}

.loader-track {
  position: relative;
  width: min(420px, 86%);
  height: 16px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: rgb(16 20 23 / 0.08);
}

.loader-track span {
  position: absolute;
  inset: 2px auto 2px 2px;
  width: 36%;
  border-radius: inherit;
  background: var(--yellow);
  box-shadow: 2px 0 0 var(--ink);
  animation: loader-track 2.4s var(--ease-soft) infinite;
}

body.is-ready .loader {
  visibility: hidden;
  opacity: 0;
  transform: translateY(-24px) scale(0.975);
}

.hero {
  position: fixed;
  inset: 0;
  z-index: 0;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 18%, rgb(255 228 92 / 0.82), transparent 30%),
    radial-gradient(circle at 86% 86%, rgb(131 215 255 / 0.2), transparent 30%),
    linear-gradient(180deg, #fff9e6 0%, var(--paper) 64%, #fff6cf 100%);
}

.site-header,
.headline h1 > span,
.headline strong,
.hero-actions,
.scroll-cue {
  opacity: 0;
  translate: 0 28px;
  scale: 0.975;
}

body.is-ready .site-header,
body.is-ready .headline h1 > span,
body.is-ready .headline strong,
body.is-ready .hero-actions,
body.is-ready .scroll-cue {
  opacity: 1;
  translate: 0 0;
  scale: 1;
  transition:
    opacity 760ms var(--ease-soft),
    translate 940ms var(--ease-play),
    scale 940ms var(--ease-play);
}

body.is-ready .site-header {
  transition-delay: 2.62s;
}

body.is-ready .headline h1 > span {
  transition-delay: 0.28s;
}

body.is-ready .headline strong {
  transition-delay: 1.22s;
}

body.is-ready .hero-actions {
  transition-delay: 2.2s;
}

body.is-ready .scroll-cue {
  animation: scroll-nudge 1.8s var(--ease-soft) 3.8s infinite;
  transition-delay: 3s;
}

.grain,
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.grain {
  z-index: 1;
  opacity: 0.075;
  background-image:
    radial-gradient(circle, var(--ink) 0 1px, transparent 1.2px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, black, transparent 78%);
}

.hero-grid {
  z-index: 0;
  inset: 110px 6% 72px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background:
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(0deg, var(--line) 1px, transparent 1px) 0 0 / 96px 96px;
  opacity: 0.36;
  mask-image: radial-gradient(ellipse at center, black 0 48%, transparent 78%);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 19;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  width: min(1500px, calc(100% - 72px));
  margin: 28px auto 0;
}

body.header-on-dark .brand {
  color: var(--paper);
}

/* on dark sections the ink Menu pill would vanish — invert it to paper */
body.header-on-dark .menu-toggle {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 3px 3px 0 rgb(255 248 223 / 0.22);
}

body.header-on-dark .brand:hover,
body.header-on-dark .brand:focus-visible {
  color: rgb(255 248 223 / 0.72);
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 0;
  transition:
    color 220ms ease,
    transform 340ms var(--ease-play);
}

.brand:hover,
.brand:focus-visible {
  color: rgb(16 20 23 / 0.72);
  transform: rotate(-1.2deg);
}

.brand-name {
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(24px, 2vw, 34px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.005em;
}

.brand-easter {
  position: absolute;
  left: 2px;
  top: calc(100% + 10px);
  padding: 8px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) rotate(2deg) scale(0.94);
  transition:
    opacity 180ms ease,
    transform 320ms var(--ease-play);
}

.brand:hover .brand-easter,
.brand:focus-visible .brand-easter {
  opacity: 1;
  transform: translateY(0) rotate(-1deg) scale(1);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.resume-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 7px 8px 7px 15px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: rgb(255 248 223 / 0.9);
  box-shadow: 3px 3px 0 var(--ink);
  transition:
    transform 340ms var(--ease-play),
    box-shadow 340ms var(--ease-play),
    background 220ms ease;
}

.resume-main {
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.resume-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  font-size: 15px;
  font-weight: 900;
  transition: transform 340ms var(--ease-play);
}

.resume-link:hover,
.resume-link:focus-visible {
  background: var(--blue);
  box-shadow: 2px 2px 0 var(--ink);
  transform: translate(2px, 2px) rotate(1deg);
}

.resume-link:hover .resume-icon,
.resume-link:focus-visible .resume-icon {
  transform: rotate(45deg) scale(1.05);
}

.menu-toggle,
.menu-close {
  border: 2px solid var(--ink);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 3px 3px 0 rgb(16 20 23 / 0.16);
  color: var(--paper);
  font-size: 14px;
  font-weight: 900;
  transition:
    transform 340ms var(--ease-play),
    box-shadow 340ms var(--ease-play),
    background 220ms ease,
    color 220ms ease;
}

.menu-lines {
  position: relative;
  width: 17px;
  height: 12px;
}

.menu-lines::before,
.menu-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  transition: transform 260ms var(--ease-play);
}

.menu-lines::before {
  top: 1px;
}

.menu-lines::after {
  bottom: 1px;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: var(--yellow);
  box-shadow: 1px 1px 0 var(--ink);
  color: var(--ink);
  transform: translate(2px, 2px) rotate(-1deg);
}

.menu-toggle:hover .menu-lines::before,
.menu-toggle:focus-visible .menu-lines::before {
  transform: translateY(4px) rotate(8deg);
}

.menu-toggle:hover .menu-lines::after,
.menu-toggle:focus-visible .menu-lines::after {
  transform: translateY(-4px) rotate(-8deg);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 46vw);
  pointer-events: none;
  visibility: hidden;
}

.menu-overlay.is-open {
  pointer-events: auto;
  visibility: visible;
}

.menu-scrim {
  background: rgb(16 20 23 / 0.62);
  opacity: 0;
  transition: opacity 260ms ease;
}

.menu-overlay.is-open .menu-scrim {
  opacity: 1;
}

.menu-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(26px, 4vh, 48px);
  min-height: 100svh;
  padding: clamp(56px, 8vw, 96px);
  border-left: 2px solid var(--ink);
  background:
    radial-gradient(circle at 82% 14%, rgb(255 228 92 / 0.5), transparent 30%),
    radial-gradient(circle at 12% 96%, rgb(131 215 255 / 0.35), transparent 34%),
    var(--paper);
  opacity: 0;
  translate: 32px 0;
  transition:
    opacity 260ms ease,
    translate 480ms var(--ease-play);
}

.menu-overlay.is-open .menu-panel {
  opacity: 1;
  translate: 0 0;
}

/* staggered, springy entrance for the panel contents */
.menu-close,
.menu-link,
.menu-socials {
  opacity: 0;
}

.menu-overlay.is-open .menu-close {
  animation: menu-item-in 560ms var(--ease-play) 80ms both;
}

.menu-overlay.is-open .menu-link {
  animation: menu-item-in 620ms var(--ease-play) both;
}

.menu-overlay.is-open .menu-link:nth-child(2) { animation-delay: 120ms; }
.menu-overlay.is-open .menu-link:nth-child(3) { animation-delay: 190ms; }
.menu-overlay.is-open .menu-link:nth-child(4) { animation-delay: 260ms; }
.menu-overlay.is-open .menu-link:nth-child(5) { animation-delay: 330ms; }
.menu-overlay.is-open .menu-link:nth-child(6) { animation-delay: 400ms; }

.menu-overlay.is-open .menu-socials {
  animation: menu-item-in 620ms var(--ease-play) 470ms both;
}

@keyframes menu-item-in {
  from {
    opacity: 0;
    translate: 56px 0;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

.menu-close {
  position: absolute;
  top: clamp(28px, 4vw, 48px);
  right: clamp(28px, 4vw, 48px);
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 34px;
  line-height: 1;
  transition:
    transform 320ms var(--ease-play),
    box-shadow 320ms var(--ease-play),
    background 220ms ease;
}

.menu-close:hover,
.menu-close:focus-visible {
  background: var(--pink);
  box-shadow: 2px 2px 0 var(--ink);
  transform: translate(2px, 2px) rotate(9deg);
}

.menu-link {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 18px;
  width: fit-content;
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(48px, 5vw, 86px);
  font-weight: 700;
  line-height: 0.86;
  color: rgb(16 20 23 / 0.74);
  text-transform: uppercase;
  transition:
    color 220ms ease,
    transform 320ms var(--ease-play);
}

.menu-link span {
  color: var(--ink);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 15px;
  font-weight: 900;
}

.menu-link:hover,
.menu-link:focus-visible {
  color: var(--ink);
  transform: translateX(-10px) rotate(-1deg);
}

.menu-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(30px, 7vh, 84px);
}

.menu-socials a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 22px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  font-weight: 900;
  box-shadow: 3px 3px 0 rgb(16 20 23 / 0.16);
  transition:
    transform 320ms var(--ease-play),
    box-shadow 320ms var(--ease-play),
    background 220ms ease,
    color 220ms ease;
}

.menu-socials a:hover,
.menu-socials a:focus-visible {
  background: var(--yellow);
  color: var(--ink);
  transform: translateY(-4px) rotate(-2deg);
  box-shadow: 5px 6px 0 var(--ink);
}

body.menu-open {
  overflow: hidden;
}

.hero-stage {
  position: relative;
  z-index: 3;
  display: grid;
  align-items: center;
  width: min(1280px, calc(100% - 72px));
  min-height: calc(100svh - 96px);
  margin: 0 auto;
  padding: clamp(72px, 12svh, 150px) 0 112px;
}

.headline {
  position: relative;
  z-index: 4;
  max-width: 1120px;
}

.headline h1 {
  margin: 0;
  color: var(--ink);
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

.headline span,
.headline strong {
  display: block;
}

.headline h1 > span {
  max-width: 960px;
  font-size: clamp(54px, 7.4vw, 116px);
  letter-spacing: 0.01em;
  line-height: 0.9;
}

.headline strong {
  width: fit-content;
  max-width: 100%;
  margin-top: clamp(16px, 1.8vw, 24px);
  padding: 0.09em 0.12em 0.045em;
  border: 2px solid var(--ink);
  border-radius: clamp(18px, 2vw, 30px);
  background: var(--paper-warm);
  box-shadow: 7px 7px 0 var(--ink);
  color: var(--ink);
  font-size: clamp(46px, 6.6vw, 100px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 0.92;
  text-shadow:
    0.026em 0.026em 0 var(--blue),
    0.052em 0.052em 0 var(--pink);
  transform: rotate(-0.8deg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(28px, 4vw, 48px);
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  transition:
    transform 320ms var(--ease-play),
    box-shadow 320ms var(--ease-play),
    background 220ms ease;
}

.primary-action {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 4px 4px 0 rgb(16 20 23 / 0.18);
}

.secondary-action {
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
}

.primary-action:hover,
.primary-action:focus-visible,
.secondary-action:hover,
.secondary-action:focus-visible {
  transform: translateY(-3px) rotate(-1deg);
}

.primary-action:hover,
.primary-action:focus-visible {
  background: var(--yellow);
  color: var(--ink);
}

.secondary-action:hover,
.secondary-action:focus-visible {
  background: var(--blue);
  box-shadow: 2px 2px 0 var(--ink);
}

.copy-wrap {
  position: relative;
  display: inline-block;
}

.animated-copy {
  cursor: default;
  white-space: normal;
}

/* a scribbled margin note, not a UI tooltip */
.copy-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(8px) rotate(-2.5deg);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-family: "Architects Daughter", "Patrick Hand", cursive;
  font-size: clamp(15px, 1.05vw, 19px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
  color: rgb(16 20 23 / 0.72);
  text-transform: none;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 220ms ease,
    transform 320ms var(--ease-play);
}
/* the underline sketch that ties the note to the headline */
.copy-tip::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -7px;
  height: 6px;
  border-bottom: 2px solid rgb(16 20 23 / 0.4);
  border-radius: 0 0 60% 40%;
}

.copy-wrap:hover .copy-tip,
.copy-wrap:focus-within .copy-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0) rotate(-2.5deg);
}

.animated-copy .word {
  display: inline-block;
}

.animated-copy .char {
  display: inline-block;
  transform-origin: 50% 76%;
  animation: copy-loop 6.2s var(--ease-soft) infinite;
  animation-delay: calc(var(--i) * 34ms);
}

.animated-copy.is-popping .char {
  animation: copy-pop 760ms var(--ease-play) both;
  animation-delay: calc(var(--i) * 10ms);
}

.animated-copy .question-mark {
  font-family: inherit;
  font-weight: inherit;
}

.scroll-cue {
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 8px 10px 8px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: rgb(255 248 223 / 0.86);
  box-shadow: 4px 4px 0 rgb(16 20 23 / 0.16);
  pointer-events: none;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--ink);
  text-transform: uppercase;
  transform: translateX(-50%);
  will-change: translate, opacity;
}

.scroll-icon {
  position: relative;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
}

.scroll-icon::before,
.scroll-icon::after {
  content: "";
  position: absolute;
  background: var(--ink);
}

.scroll-icon::before {
  width: 2px;
  height: 12px;
  border-radius: 999px;
}

.scroll-icon::after {
  width: 7px;
  height: 7px;
  margin-top: 6px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: transparent;
  transform: rotate(45deg);
}

.scroll-icon span {
  position: absolute;
  top: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink);
  animation: scroll-dot 1.3s var(--ease-soft) infinite;
}

.magnet {
  will-change: transform;
}

.profile-world {
  --world-progress: 0;
  --world-enter: 0;
  --world-hold: 0;
  --world-exit: 0;
  --pointer-x: 50%;
  --pointer-y: 48%;
  position: relative;
  height: 260svh;
  border-inline: 8px solid var(--ink);
  background: #f4f1e9;
}

.world-sticky {
  position: sticky;
  top: 0;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  background: #f4f1e9;
}

.world-sticky::before,
.world-sticky::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.world-sticky::before {
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgb(255 228 92 / 0.32), transparent 18rem),
    linear-gradient(180deg, #f8f3df 0%, #f4f1e9 100%);
}

.world-sticky::after {
  inset: auto 0 0;
  z-index: 6;
  height: 100%;
  background: #101417;
  transform: translateY(calc((1 - var(--world-exit)) * 100%));
  will-change: transform;
}

.world-grid {
  position: absolute;
  inset: 0 5%;
  z-index: 1;
  border-left: 1px solid rgb(16 20 23 / 0.16);
  border-right: 1px solid rgb(16 20 23 / 0.16);
  background:
    radial-gradient(circle, rgb(16 20 23 / 0.18) 0 1.1px, transparent 1.3px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgb(16 20 23 / 0.12) 1px, transparent 1px) 0 0 / 92px 92px;
  opacity: calc(0.34 + (var(--world-enter) * 0.18));
  transform: translateY(calc((1 - var(--world-enter)) * 8vh + (var(--world-hold) * -1.5vh)));
  will-change: transform;
}

.world-grid::before {
  content: "";
  position: absolute;
  inset: 0 -6%;
  z-index: -1;
  background: #ffe45c;
  clip-path: polygon(
    0 18%,
    12% 18%,
    12% 11%,
    28% 11%,
    28% 5%,
    52% 5%,
    52% 10%,
    72% 10%,
    72% 16%,
    100% 16%,
    100% 100%,
    0 100%
  );
  transform: translateY(calc((1 - var(--world-enter)) * 100%));
  will-change: transform;
}

.world-person {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: -1.5vh;
  width: min(39vw, 560px);
  min-width: 320px;
  margin: 0;
  transform:
    translateX(-50%)
    translateY(calc((1 - var(--world-enter)) * 45vh + (var(--world-hold) * -4vh) + (var(--world-exit) * -8vh)))
    scale(calc(1 - (var(--world-exit) * 0.03)));
  filter: drop-shadow(0 20px 22px rgb(16 20 23 / 0.18));
  opacity: calc(0.2 + (var(--world-enter) * 0.8));
  will-change: transform, opacity;
}

.world-person img {
  display: block;
  width: 100%;
  aspect-ratio: 0.76;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 42% 42% 0 0;
  mix-blend-mode: multiply;
}

.world-scribble {
  position: absolute;
  z-index: 3;
  left: 15%;
  top: 33%;
  width: 70%;
  height: 28%;
  opacity: calc(0.2 + (var(--world-enter) * 0.8));
  transform:
    translateY(calc((1 - var(--world-enter)) * 18vh + (var(--world-hold) * -1.5vh) + (var(--world-exit) * -4vh)))
    rotate(-4deg);
  will-change: transform, opacity;
}

.world-scribble::before,
.world-scribble::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 42%;
  border-top: 18px solid #fffdf5;
  border-radius: 50%;
  transform: skewX(-22deg);
}

.world-scribble::before {
  top: 10%;
}

.world-scribble::after {
  top: 35%;
  left: 10%;
  width: 82%;
}

.world-pill,
.world-menu-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: #fffdf5;
  background: var(--ink);
  box-shadow: 0 9px 18px rgb(16 20 23 / 0.14);
  font: inherit;
  white-space: nowrap;
}

.world-pill {
  position: absolute;
  z-index: 5;
  min-height: clamp(52px, 5vw, 74px);
  padding: 0 clamp(22px, 2.1vw, 34px);
  font-size: clamp(22px, 2.2vw, 40px);
  font-weight: 500;
  opacity: calc(var(--world-enter) - (var(--world-exit) * 0.3));
  transition:
    color 220ms ease,
    background 220ms ease,
    transform 220ms var(--ease-play);
  will-change: transform, opacity;
}

.world-pill:hover {
  color: var(--ink);
  background: #fffdf5;
}

.pill-product {
  right: clamp(64px, 9vw, 180px);
  top: 61%;
  transform: translateY(calc((1 - var(--world-enter)) * 22vh + (var(--world-hold) * -0.7vh) + (var(--world-exit) * -12vh)));
}

.pill-web {
  left: 50%;
  top: 61%;
  transform: translate(-50%, calc((1 - var(--world-enter)) * 17vh + (var(--world-hold) * -0.5vh) + (var(--world-exit) * -9vh)));
}

.pill-ai {
  left: clamp(48px, 8vw, 150px);
  top: 61%;
  transform: translateY(calc((1 - var(--world-enter)) * 24vh + (var(--world-hold) * -0.4vh) + (var(--world-exit) * -7vh)));
}

.world-menu-pill {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 5.1vh;
  min-height: 56px;
  gap: 22px;
  padding: 0 23px;
  color: var(--ink);
  background: var(--yellow);
  cursor: pointer;
  font-size: 22px;
  opacity: calc(var(--world-enter) - (var(--world-exit) * 0.65));
  transform: translate(-50%, calc((1 - var(--world-enter)) * 18vh + (var(--world-hold) * -0.6vh) + (var(--world-exit) * -9vh)));
  transition:
    box-shadow 220ms ease,
    transform 220ms var(--ease-play);
  will-change: transform, opacity;
}

.world-menu-pill:hover,
.world-menu-pill:focus-visible {
  box-shadow: 0 4px 0 var(--ink);
}

.next-section-preview {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: grid;
  place-items: end center;
  padding: clamp(62px, 8vw, 110px);
  color: var(--paper);
  transform: translateY(calc((1 - var(--world-exit)) * 100%));
  will-change: transform;
}

.next-section-preview p {
  max-width: 980px;
  margin: 0;
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(48px, 7.5vw, 128px);
  font-weight: 700;
  line-height: 0.86;
  text-align: center;
  text-transform: uppercase;
}

.identity-statement {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: clamp(80px, 12vw, 150px) clamp(28px, 6vw, 92px);
  border: 8px solid var(--ink);
  border-top: 0;
  background:
    radial-gradient(circle at 50% 48%, rgb(255 228 92 / 0.42), transparent 30%),
    var(--paper);
}

.identity-statement p {
  max-width: 1260px;
  margin: 0;
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(64px, 8.8vw, 154px);
  font-weight: 700;
  line-height: 0.86;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-0.7deg);
}

@keyframes loader-bounce {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  34% {
    transform: translateY(-15px) scale(1.05, 0.95);
  }

  58% {
    transform: translateY(4px) scale(0.96, 1.04);
  }
}

@keyframes loader-card-breathe {
  0%,
  100% {
    transform: rotate(-1.2deg) translateY(0);
  }

  50% {
    transform: rotate(-0.25deg) translateY(-6px);
  }
}

@keyframes loader-track {
  0% {
    transform: translateX(-105%);
  }

  54% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(230%);
  }
}

@keyframes scroll-nudge {
  0%,
  100% {
    translate: 0 0;
    opacity: 1;
  }

  46% {
    translate: 0 7px;
    opacity: 0.54;
  }
}

@keyframes scroll-dot {
  0%,
  100% {
    transform: translateY(-3px);
    opacity: 0.4;
  }

  46% {
    transform: translateY(8px);
    opacity: 1;
  }
}

@keyframes copy-loop {
  0%,
  72%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }

  5% {
    transform: translateY(-0.055em) rotate(-0.8deg) scale(1.018, 0.992);
  }

  10% {
    transform: translateY(0.025em) rotate(0.55deg) scale(0.992, 1.014);
  }

  15% {
    transform: translateY(-0.018em) rotate(-0.25deg) scale(1.006, 0.998);
  }

  20% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

@keyframes copy-pop {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
  }

  32% {
    transform: translateY(-0.09em) rotate(-1.2deg) scale(1.035, 0.982);
  }

  58% {
    transform: translateY(0.045em) rotate(0.8deg) scale(0.982, 1.025);
  }

  78% {
    transform: translateY(-0.022em) rotate(-0.35deg) scale(1.012, 0.996);
  }

  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .hero-stage {
    min-height: calc(100svh - 170px);
    padding-top: 86px;
  }

  .menu-overlay {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 48vw);
  }

  .world-person {
    width: min(45vw, 500px);
    min-width: 300px;
  }

  .world-pill {
    min-height: 58px;
    font-size: clamp(20px, 2.6vw, 30px);
  }

  .pill-ai {
    left: 34px;
  }

  .pill-product {
    right: 34px;
  }
}

@media (max-width: 760px) {
  .hero {
    border-width: 6px;
  }

  .grain {
    opacity: 0.055;
    background-size: 22px 22px;
  }

  .hero-grid {
    inset: 96px 18px 58px;
    background-size: 72px 72px;
    opacity: 0.22;
  }

  .site-header {
    width: min(100% - 28px, 1500px);
    grid-template-columns: 1fr auto;
    align-items: center;
    margin-top: 14px;
    gap: 10px;
  }

  .brand {
    min-width: 0;
    max-width: 100%;
  }

  .brand-name {
    font-size: 25px;
  }

  .resume-link {
    min-width: 0;
    min-height: 38px;
    padding: 6px 7px 6px 12px;
  }

  .resume-main {
    font-size: 13px;
  }

  .resume-icon {
    width: 25px;
    height: 25px;
    font-size: 13px;
  }

  .menu-toggle {
    min-height: 38px;
    padding: 6px 12px;
    font-size: 13px;
  }

  .menu-overlay {
    grid-template-columns: 1fr;
  }

  .menu-scrim {
    display: none;
  }

  .menu-panel {
    min-height: 100svh;
    border-left: 0;
    padding: 94px 34px 44px;
  }

  .menu-link {
    grid-template-columns: 34px 1fr;
    gap: 14px;
    font-size: clamp(48px, 15vw, 70px);
  }

  .menu-link span {
    font-size: 13px;
  }

  .menu-close {
    width: 48px;
    height: 48px;
    font-size: 28px;
  }

  .hero-stage {
    width: min(100% - 32px, 1280px);
    min-height: auto;
    padding: 70px 0 112px;
  }

  .headline h1 > span {
    font-size: clamp(43px, 16vw, 64px);
  }

  .headline strong {
    width: auto;
    font-size: clamp(38px, 14vw, 58px);
    box-shadow: 5px 5px 0 var(--ink);
    text-shadow:
      0.022em 0.022em 0 var(--blue),
      0.044em 0.044em 0 var(--pink);
  }

  .hero-actions {
    gap: 10px;
    margin-top: 28px;
  }

  .primary-action,
  .secondary-action {
    min-height: 44px;
    padding: 0 16px;
    font-size: 13px;
  }

  .scroll-cue {
    bottom: 18px;
  }

  .profile-world {
    height: 210svh;
    border-inline-width: 6px;
  }

  .world-grid {
    inset-inline: 18px;
    background:
      radial-gradient(circle, rgb(16 20 23 / 0.18) 0 1px, transparent 1.2px) 0 0 / 18px 18px,
      linear-gradient(90deg, rgb(16 20 23 / 0.11) 1px, transparent 1px) 0 0 / 74px 74px;
  }

  .world-grid::before {
    clip-path: polygon(
      0 12%,
      20% 12%,
      20% 7%,
      62% 7%,
      62% 12%,
      100% 12%,
      100% 100%,
      0 100%
    );
  }

  .world-person {
    width: min(82vw, 390px);
    min-width: 0;
  }

  .world-scribble {
    left: -8%;
    top: 31%;
    width: 116%;
    height: 22%;
  }

  .world-scribble::before,
  .world-scribble::after {
    border-top-width: 11px;
  }

  .world-pill {
    min-height: 44px;
    padding: 0 16px;
    font-size: clamp(15px, 4.8vw, 21px);
  }

  .pill-ai {
    left: 18px;
    top: 60%;
  }

  .pill-web {
    top: 51%;
  }

  .pill-product {
    right: 18px;
    top: 66%;
  }

  .world-menu-pill {
    min-height: 48px;
    gap: 16px;
    padding: 0 18px;
    font-size: 18px;
  }

  .next-section-preview {
    padding: 38px 24px 68px;
  }

  .identity-statement {
    border-width: 6px;
    border-top: 0;
  }

  .identity-statement p {
    font-size: clamp(48px, 15vw, 82px);
  }
}

@media (max-width: 420px) {
  .site-header {
    width: min(100% - 24px, 1500px);
  }

  .header-actions {
    gap: 7px;
  }

  .resume-main,
  .menu-toggle span:first-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .resume-link,
  .menu-toggle {
    width: 42px;
    height: 42px;
    justify-content: center;
    padding: 6px;
  }

  .brand-name {
    font-size: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .profile-world {
    height: auto;
  }

  .world-sticky {
    position: relative;
    min-height: 100svh;
  }

  .world-grid,
  .world-grid::before,
  .world-person,
  .world-scribble,
  .world-pill,
  .world-menu-pill,
  .next-section-preview,
  .world-sticky::after {
    transform: none !important;
  }

  .next-section-preview,
  .world-sticky::after {
    display: none;
  }
}

/* ================= below-hero redesign ================= */

.mono-kicker {
  margin: 0;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mono-note {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.6;
}

[data-reveal] {
  opacity: 0;
  translate: 0 38px;
}

/* Softer sibling of [data-reveal], applied automatically to the content that had
   no entrance of its own — visuals, diagrams, list items, body copy. Deliberately
   a shorter lift and a quicker settle than the authored reveals: the point is that
   things arrive rather than perform, so a long scroll never feels busy. */
[data-reveal-soft] {
  opacity: 0;
  translate: 0 16px;
}

[data-reveal-soft].in-view {
  opacity: 1;
  translate: 0 0;
  transition:
    opacity 560ms var(--ease-soft),
    translate 680ms var(--ease-play);
  transition-delay: var(--d, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal-soft],
  [data-reveal-soft].in-view {
    opacity: 1;
    translate: 0 0;
    transition: none;
  }
}

[data-reveal].in-view {
  opacity: 1;
  translate: 0 0;
  transition:
    opacity 720ms var(--ease-soft),
    translate 940ms var(--ease-play);
  transition-delay: var(--d, 0ms);
}

/* ---------- statement ---------- */

.statement {
  position: relative;
  height: 190svh;
  background: var(--ink);
  border-inline: 8px solid var(--ink);
}

.statement-sticky {
  position: sticky;
  top: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: clamp(26px, 4vh, 44px);
  min-height: 100svh;
  padding: 0 clamp(24px, 7vw, 120px);
}

.statement-copy {
  max-width: 1240px;
  margin: 0;
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-weight: 700;
  font-size: clamp(44px, 7vw, 124px);
  line-height: 0.92;
  text-align: center;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 1;
}

.statement-copy em {
  font-style: normal;
}

.statement-sub {
  display: block;
  margin-top: 0.45em;
  font-family: "General Sans", Inter, Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: clamp(16px, 1.6vw, 26px);
  line-height: 1.45;
  text-transform: none;
  letter-spacing: 0;
}

/* Words land UNFILLED (dim), each popping in with a playful staggered
   entrance once the section is live; scrolling then FILLS them (color). The
   entrance is an animation (staggered) and the fill is a transition, so the
   two never fight over the same property. */
.statement-copy .w {
  display: inline-block;
  color: rgb(255 248 223 / 0.26);
  opacity: 0;
  transition: color 0.42s var(--ease-soft);
}

.statement.is-live .statement-copy .w {
  animation: word-pop 0.62s var(--ease-play) both;
  animation-delay: calc(var(--wi, 0) * 40ms);
}

@keyframes word-pop {
  0% { opacity: 0; transform: translateY(0.6em) scale(0.72) rotate(-6deg); }
  55% { opacity: 1; transform: translateY(-0.08em) scale(1.05) rotate(2deg); }
  100% { opacity: 1; transform: none; }
}

.statement-copy .w.lit {
  color: var(--paper);
}

.statement-copy em .w.lit {
  color: var(--yellow);
}

/* ---------- work ---------- */

.work {
  position: relative;
  background: var(--ink);
  border-inline: 8px solid var(--ink);
  padding-bottom: 10svh;
}

.work-head {
  display: grid;
  gap: 12px;
  width: min(1500px, calc(100% - 72px));
  margin: 0 auto;
  padding: 4svh 0 7svh;
  color: var(--paper);
}

.work-head .mono-kicker {
  color: var(--yellow);
}

.work-head h2 {
  margin: 0;
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(64px, 10vw, 170px);
  font-weight: 700;
  line-height: 0.84;
  text-transform: uppercase;
}

.work-card {
  position: sticky;
  top: 0;
  display: grid;
  place-items: center;
  height: 100svh;
  padding: clamp(14px, 3vh, 36px) clamp(16px, 3vw, 48px);
}

.work-card-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(22px, 3.5vw, 60px);
  align-items: stretch;
  width: min(1500px, 100%);
  height: min(86svh, 100%);
  padding: clamp(24px, 4vw, 72px);
  border: 3px solid var(--ink);
  border-radius: clamp(22px, 3vw, 40px);
  box-shadow: 0 -10px 26px rgb(0 0 0 / 0.3);
  transform:
    translateY(calc(var(--covered, 0) * -5vh))
    scale(calc(1 - (var(--covered, 0) * 0.055)))
    rotate(calc(var(--covered, 0) * -1.4deg));
  contain: layout style;
}

/* will-change is a GPU-memory promise, not a free hint: four permanently
   promoted full-viewport card layers cost ~4x screen area in texture, which is
   why scrolling got dramatically worse on large monitors. Promote a card only
   while it is actually being covered. */
.work-card.is-moving .work-card-inner {
  will-change: transform;
}

/* dim covered cards with a composited overlay instead of a filter (cheap on scroll) */
.work-card-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  background: #05070a;
  opacity: calc(var(--covered, 0) * 0.34);
  pointer-events: none;
}

.card-a { background: var(--paper); }
.card-b { background: var(--yellow); }
.card-c { background: var(--blue); }
.card-d { background: var(--pink); }

.work-info {
  display: grid;
  gap: clamp(14px, 2vh, 22px);
  align-content: center;
}

.work-info h3 {
  margin: 0;
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(40px, 4.6vw, 84px);
  font-weight: 700;
  line-height: 0.88;
  text-transform: uppercase;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.work-tags span {
  padding: 7px 13px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: rgb(255 253 245 / 0.7);
  font-size: 13px;
  font-weight: 800;
}

.work-blurb {
  max-width: 46ch;
  margin: 0;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.5;
}

.work-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  padding: 12px 20px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  font-weight: 400;
}

/* the pills also carry .magnet, whose transition sits later in the file and would
   replace this shorthand outright — the extra class keeps our list winning while
   .magnet still gets its own `translate` transition for the magnetic follow */
.work-link,
.work-link.magnet {
  transition:
    transform 320ms var(--ease-play),
    translate 300ms var(--ease-play),
    background 220ms ease,
    box-shadow 260ms var(--ease-play),
    color 220ms ease;
}

.work-link:hover,
.work-link:focus-visible {
  background: rgb(255 253 245 / 0.9);
  color: var(--ink);
  transform: translateY(-3px) rotate(-1deg);
}

.work-arrow {
  transition: transform 320ms var(--ease-play);
}

.work-link:hover .work-arrow,
.work-link:focus-visible .work-arrow {
  transform: translateX(5px) rotate(-45deg);
}

.work-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
  border: 3px solid var(--ink);
  border-radius: clamp(16px, 2vw, 26px);
  background:
    repeating-linear-gradient(-45deg, rgb(16 20 23 / 0.07) 0 16px, transparent 16px 38px),
    rgb(255 253 245 / 0.55);
  overflow: hidden;
}

.ph-label {
  padding: 10px 16px;
  border: 2px dashed var(--ink);
  border-radius: 999px;
  background: rgb(255 253 245 / 0.88);
  text-transform: uppercase;
}

/* ---------- process ---------- */

.process {
  background: var(--paper);
  border-inline: 8px solid var(--ink);
  padding: clamp(90px, 14svh, 170px) 0;
}

.process-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1.55fr;
  gap: clamp(36px, 6vw, 110px);
  align-items: start;
  width: min(1500px, calc(100% - 72px));
  margin: 0 auto;
}

.process-head {
  position: sticky;
  top: clamp(60px, 12svh, 140px);
  display: grid;
  gap: 14px;
}

.process-head h2 {
  margin: 0;
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(56px, 6.4vw, 120px);
  font-weight: 700;
  line-height: 0.86;
  text-transform: uppercase;
}

.process-note {
  max-width: 30ch;
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
}

.process-row {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: clamp(18px, 3vw, 34px);
  padding: clamp(30px, 4vw, 48px) 0;
  border-top: 3px solid var(--ink);
}

.process-row:last-child {
  border-bottom: 3px solid var(--ink);
}

.process-num {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 14px;
  transform: rotate(-4deg);
}

.process-row h3 {
  margin: 0 0 10px;
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(28px, 2.6vw, 46px);
  font-weight: 700;
  line-height: 0.9;
  text-transform: uppercase;
}

.process-row p {
  max-width: 52ch;
  margin: 0;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.55;
}

/* ---------- skills marquee ---------- */

.skills {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
  overflow: hidden;
  padding: clamp(44px, 7vw, 90px) 0;
  background: var(--yellow);
  border-inline: 8px solid var(--ink);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}

.marquee {
  display: flex;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}

.marquee.reverse {
  animation-direction: reverse;
}

.track {
  display: flex;
  gap: clamp(12px, 1.6vw, 20px);
  padding-right: clamp(12px, 1.6vw, 20px);
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: clamp(16px, 1.6vw, 24px);
  font-weight: 900;
  white-space: nowrap;
}

.track .skill-pill:nth-child(odd) {
  transform: rotate(-1.6deg);
}

.track .skill-pill:nth-child(even) {
  transform: rotate(1.4deg);
}

.track .skill-pill:nth-child(3n) {
  background: var(--blue);
}

.track .skill-pill:nth-child(5n) {
  background: var(--pink);
}

@keyframes marquee-scroll {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- voices ---------- */

.voices {
  background: var(--paper);
  border-inline: 8px solid var(--ink);
  padding: clamp(90px, 14svh, 170px) 0;
}

.voices header {
  display: grid;
  gap: 12px;
  width: min(1500px, calc(100% - 72px));
  margin: 0 auto clamp(36px, 5vw, 64px);
}

.voices h2 {
  margin: 0;
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(44px, 5.6vw, 104px);
  font-weight: 700;
  line-height: 0.88;
  text-transform: uppercase;
}

.voice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(18px, 2.6vw, 34px);
  width: min(1500px, calc(100% - 72px));
  margin: 0 auto;
}

.voice-card {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: clamp(24px, 3vw, 40px);
  border: 3px dashed rgb(16 20 23 / 0.55);
  border-radius: 24px;
  background: rgb(255 253 245 / 0.6);
  transform: rotate(-0.8deg);
}

.voice-card:nth-child(2) {
  transform: rotate(0.9deg);
}

.voice-card blockquote {
  margin: 0;
  color: rgb(16 20 23 / 0.72);
}

.voice-card figcaption {
  font-weight: 900;
}

/* ---------- contact footer ---------- */

.contact {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle, rgb(16 20 23 / 0.14) 0 1.1px, transparent 1.3px) 0 0 / 22px 22px,
    linear-gradient(180deg, var(--paper) 0%, var(--paper-warm, #fff3c4) 100%);
  border: 8px solid var(--ink);
  border-top: 0;
  /* he is cropped by the page's true bottom edge: no ink strip under him */
  border-bottom: 0;
  color: var(--ink);
}

.contact-marquee {
  overflow: hidden;
  padding: clamp(14px, 2vw, 22px) 0;
  background: var(--ink);
  border-bottom: 3px solid var(--ink);
}

.contact-marquee .marquee {
  animation-duration: 22s;
}

.contact-marquee .track {
  gap: clamp(26px, 4vw, 52px);
  padding-right: clamp(26px, 4vw, 52px);
}

.contact-marquee span {
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(26px, 3.4vw, 52px);
  font-weight: 700;
  color: var(--yellow);
  text-transform: uppercase;
  white-space: nowrap;
}

/* Poster composition: he fills the frame and is cropped by the page's bottom
   edge; the headline sits over his hair, and the small stuff lives in the
   margins around him. */
.contact-stage {
  /* one source of truth for the figure's height, so the headline can be
     anchored RELATIVE to his hair line instead of to the top of the stage —
     otherwise the gap between them grows with viewport height */
  --fig-h: clamp(400px, 60svh, 660px);
  /* the headline's own line height, so the overlap is derived from the type
     rather than a fixed px clamp that drifts as --fig-h changes */
  --h2-line: calc(clamp(44px, 6.6vw, 97px) * 0.8);
  position: relative;
  display: block;
  width: 100%;
  /* the frame must always be tall enough for the figure PLUS the two headline
     lines and the kicker above it, or the type gets cut off at the top */
  min-height: max(clamp(600px, 88svh, 900px), calc(var(--fig-h) + var(--h2-line) * 3.2 + clamp(70px, 9svh, 130px)));
  padding: clamp(30px, 4.5svh, 54px) clamp(20px, 4vw, 56px) 0;
  overflow: hidden;
  text-align: center;
}

/* the headline's lower line dips into the figure's top band by a THIRD of one
   line, so his hair occludes the type without swallowing it */
.contact-head {
  position: absolute;
  left: clamp(20px, 4vw, 56px);
  right: clamp(20px, 4vw, 56px);
  bottom: calc(var(--fig-h) - var(--h2-line) * 0.34);
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: clamp(8px, 1.4vh, 14px);
  pointer-events: none;
}

/* he is cropped hard at the chest, and sits low enough that his head lands in
   the middle of the frame rather than under the headline */
.contact-portrait {
  position: absolute;
  left: 50%;
  bottom: 0;
  /* he sits in FRONT of the headline: the type runs behind his head */
  z-index: 3;
  margin: 0;
  /* the -40% head-centring bias pushes the box right, so the width has to
     leave room for that shift or his arm gets clipped by the frame */
  width: min(880px, 82vw);
  height: var(--fig-h);
  overflow: hidden;
  /* his raised arm makes the cutout's box wider on the right, so his head sits
     at ~40% of the box, not 50% — bias the offset so the HEAD lands on the
     page's centre line at any width */
  transform: translateX(-40%);
}

.contact-portrait img {
  display: block;
  width: 100%;
  /* fill the box so he TOUCHES the page's bottom edge — the crop eats into the
     bottom of the frame rather than leaving dead paper under him */
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}

/* rotated labels hugging the edges */
.contact-rail {
  position: absolute;
  top: clamp(40px, 8svh, 90px);
  z-index: 4;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgb(16 20 23 / 0.45);
  writing-mode: vertical-rl;
}
.contact-rail.rail-l { left: clamp(14px, 2.2vw, 30px); transform: rotate(180deg); }
.contact-rail.rail-r { right: clamp(14px, 2.2vw, 30px); }

/* the pitch and the links sit in the bottom corners, over the figure */
.contact-corner {
  position: absolute;
  z-index: 4;
  bottom: clamp(28px, 5svh, 56px);
  z-index: 4;
  text-align: left;
}
.contact-corner.corner-l {
  left: clamp(20px, 4vw, 56px);
  display: grid;
  gap: 14px;
  max-width: min(380px, 40vw);
}
/* the note can land on his dark hoodie, so it carries its own paper chip
   rather than relying on the ground behind it */
.contact-corner.corner-r {
  right: clamp(20px, 4vw, 56px);
  margin: 0;
  max-width: 22ch;
  padding: 10px 16px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 4px 4px 0 rgb(16 20 23 / 0.2);
  text-align: right;
  font-family: "Architects Daughter", "Patrick Hand", cursive;
  font-size: clamp(15px, 1.3vw, 19px);
  line-height: 1.35;
  color: var(--ink);
  transform: rotate(3deg);
}

@media (max-width: 900px) {
  .contact-stage {
    --fig-h: clamp(320px, 76vw, 470px);
    min-height: 0;
    padding-bottom: calc(var(--fig-h) + clamp(20px, 4vw, 40px));
  }
  /* stacked layout: the headline goes back to normal flow at the top */
  .contact-head {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
  }
  .contact-portrait { width: min(560px, 96vw); height: var(--fig-h); transform: translateX(-42%); }
  .contact-rail { display: none; }
  .contact-corner {
    position: static;
    max-width: none;
    margin: clamp(18px, 3vh, 26px) auto 0;
    text-align: center;
    justify-items: center;
    transform: none;
  }
  .contact-corner.corner-r { text-align: center; }
}

.contact h2 {
  margin: 0;
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(58px, 10.5vw, 176px);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-transform: uppercase;
  text-wrap: balance;
}

/* the question mark gets the poster's accent treatment */
.contact-mark {
  display: inline-block;
  margin-left: 0.06em;
  padding: 0 0.1em;
  background: var(--yellow);
  box-shadow: 0.04em 0.04em 0 var(--ink);
}

.contact-copy {
  max-width: 34ch;
  margin: 0;
  font-size: clamp(15px, 1.15vw, 17.5px);
  line-height: 1.45;
  color: rgb(16 20 23 / 0.72);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 0;
}

.contact .primary-action {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 4px 4px 0 rgb(16 20 23 / 0.28);
}

/* the light ground needs ink outlines, not the old paper-on-ink treatment */
.contact .secondary-action,
.contact .contact-secondary {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--paper);
  box-shadow: 4px 4px 0 rgb(16 20 23 / 0.22);
}
.contact .secondary-action:hover,
.contact .secondary-action:focus-visible,
.contact .contact-secondary:hover,
.contact .contact-secondary:focus-visible {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 6px 6px 0 rgb(16 20 23 / 0.3);
}

.contact .primary-action:hover,
.contact .primary-action:focus-visible {
  background: var(--pink);
  color: var(--ink);
}

.contact-secondary {
  background: transparent;
  color: var(--paper);
  border-color: var(--paper);
  box-shadow: 4px 4px 0 rgb(255 248 223 / 0.22);
}

.contact-secondary:hover,
.contact-secondary:focus-visible {
  background: var(--blue);
  color: var(--ink);
  border-color: var(--ink);
}

.contact-footnote {
  margin: clamp(30px, 5vh, 48px) 0 0;
  color: rgb(255 248 223 / 0.45);
}

/* ---------- responsive: below-hero ---------- */

@media (max-width: 1080px) {
  .work-card {
    position: static;
    height: auto;
  }

  .work-card-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
    min-height: 0;
    transform: none;
  }

  .work-media {
    min-height: 0;
    max-height: none;
    height: auto;
  }

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

  .process-head {
    position: static;
  }
}

@media (max-width: 760px) {
  .statement {
    border-inline-width: 6px;
  }

  .work,
  .process,
  .skills,
  .voices {
    border-inline-width: 6px;
  }

  .contact {
    border-width: 6px;
    border-top: 0;
  }

  .work-head,
  .process-grid,
  .voices header,
  .voice-grid {
    width: calc(100% - 32px);
  }

  .work-card {
    padding: 12px;
  }

  .work-card-inner {
    padding: 22px;
  }

  .work-info h3 {
    font-size: clamp(32px, 9vw, 44px);
  }

  .work-blurb {
    font-size: 15px;
  }

  .process-row {
    grid-template-columns: 62px 1fr;
  }

  .skill-pill {
    padding: 10px 16px;
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    translate: 0 0;
  }

  .statement {
    height: auto;
  }

  .statement-sticky {
    position: static;
  }

  .statement-copy,
  .statement-sub {
    opacity: 1 !important;
    transform: none !important;
  }

  .menu-close,
  .menu-link,
  .menu-socials,
  .menu-panel {
    opacity: 1 !important;
    translate: none !important;
    animation: none !important;
  }

  .statement-copy .w {
    color: var(--paper);
    opacity: 1 !important;
    animation: none !important;
  }

  .statement-copy em .w {
    color: var(--yellow);
  }

  .work-card {
    position: static;
    height: auto;
    padding-block: 24px;
  }

  .work-card-inner {
    height: auto;
    transform: none;
    filter: none;
  }

  .marquee {
    animation: none;
  }
}

/* ================= google pitch revamp ================= */

.hero-note {
  margin: 18px 0 0;
  color: rgb(16 20 23 / 0.55);
  text-transform: uppercase;
  opacity: 0;
  translate: 0 14px;
}

body.is-ready .hero-note {
  opacity: 1;
  translate: 0 0;
  transition:
    opacity 700ms var(--ease-soft) 3.1s,
    translate 800ms var(--ease-play) 3.1s;
}

.magnet {
  transition: translate 300ms var(--ease-play);
}

.marquee:hover {
  animation-play-state: paused;
}

.work-why {
  margin: 0;
  padding-top: 14px;
  border-top: 2px dashed rgb(16 20 23 / 0.4);
  color: rgb(16 20 23 / 0.66);
  text-transform: uppercase;
}

/* ---------- pitch ---------- */

.pitch {
  position: relative;
  background: var(--paper);
  border-inline: 8px solid var(--ink);
  padding-bottom: clamp(90px, 13svh, 160px);
}

.pitch-edge {
  height: 30px;
  background: var(--ink);
  -webkit-mask-image: radial-gradient(circle at 15px 0, #000 15px, transparent 16px);
  -webkit-mask-size: 30px 31px;
  -webkit-mask-repeat: repeat-x;
  mask-image: radial-gradient(circle at 15px 0, #000 15px, transparent 16px);
  mask-size: 30px 31px;
  mask-repeat: repeat-x;
}

.pitch-inner {
  display: grid;
  gap: clamp(40px, 6vw, 80px);
  width: min(1500px, calc(100% - 72px));
  margin: 0 auto;
  padding-top: clamp(70px, 10svh, 130px);
}

.pitch-head {
  display: grid;
  gap: 12px;
}

.pitch-head h2 {
  margin: 0;
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(56px, 8vw, 150px);
  font-weight: 700;
  line-height: 0.86;
  text-transform: uppercase;
}

.pitch-note {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
}

.pitch-rows {
  display: grid;
  gap: clamp(18px, 2.4vw, 30px);
}

.pitch-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr clamp(70px, 7vw, 96px) 1fr;
  gap: clamp(14px, 2vw, 26px);
  align-items: center;
}

.pitch-cell {
  display: grid;
  gap: 10px;
  align-content: start;
  height: 100%;
  padding: clamp(22px, 3vw, 38px);
  border: 3px solid var(--ink);
  border-radius: 22px;
}

.pitch-cell p {
  margin: 0;
  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 700;
  line-height: 1.35;
}

.pitch-you {
  background: var(--ink);
  color: var(--paper);
  transform: rotate(-0.6deg);
}

.pitch-you .mono-kicker {
  color: var(--yellow);
}

.pitch-me {
  background: var(--yellow);
  transform: rotate(0.6deg);
}

.pitch-stamp {
  display: grid;
  place-items: center;
  justify-self: center;
  width: clamp(64px, 6vw, 86px);
  aspect-ratio: 1;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 900;
  text-transform: uppercase;
  opacity: 0;
}

.pitch-row.in-view .pitch-stamp {
  animation: stamp-in 600ms var(--ease-play) 340ms both;
}

@keyframes stamp-in {
  0% {
    opacity: 0;
    transform: scale(2.1) rotate(16deg);
  }

  62% {
    opacity: 1;
    transform: scale(0.92) rotate(-9deg);
  }

  100% {
    opacity: 1;
    transform: scale(1) rotate(-7deg);
  }
}

/* ---------- pitch: numbered reasons ---------- */

.pitch-head h2 {
  line-height: 0.82;
}

.reasons {
  list-style: none;
  margin: 0;
  padding: 0 0 0 clamp(0px, 4vw, 60px);
  max-width: 1040px;
  position: relative;
  display: grid;
  gap: clamp(44px, 6vw, 88px);
}

.reasons-spine {
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 18px;
  width: 3px;
  background: var(--line);
  border-radius: 3px;
  display: none;
}

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

.reasons-spine-fill {
  position: absolute;
  left: -1px;
  top: 0;
  width: 5px;
  height: calc(var(--draw, 0) * 100%);
  background: var(--red);
  border-radius: 3px;
}

.reasons-spine-fill::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 15px;
  height: 15px;
  translate: -50% 50%;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 rgb(16 20 23 / 0.16);
}

.reason {
  position: relative;
  display: grid;
  grid-template-columns: clamp(74px, 8vw, 124px) 1fr;
  gap: clamp(16px, 3vw, 42px);
  align-items: start;
}

.reason-num {
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(44px, 5.2vw, 90px);
  font-weight: 700;
  line-height: 0.76;
  letter-spacing: -0.02em;
  color: var(--red);
}

.reason-body {
  display: grid;
  gap: clamp(10px, 1.1vw, 16px);
  padding-top: 0.06em;
}

.reason-title {
  margin: 0;
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(29px, 3.5vw, 58px);
  font-weight: 700;
  line-height: 0.9;
  text-transform: uppercase;
}

.reason-body p {
  margin: 0;
  max-width: 58ch;
  font-size: clamp(16px, 1.3vw, 21px);
  line-height: 1.55;
  color: rgb(16 20 23 / 0.82);
  text-wrap: pretty;
}

.reason-body em {
  font-style: italic;
  color: var(--ink);
}

.reason .reason-num,
.reason .reason-title,
.reason .reason-body p {
  opacity: 0;
  translate: 0 26px;
  transition:
    opacity 600ms var(--ease-soft),
    translate 720ms var(--ease-play);
}

.reason .reason-num {
  translate: 0 36px;
}

.reason.in-view .reason-num {
  opacity: 1;
  translate: 0 0;
  transition-delay: 40ms;
}

.reason.in-view .reason-title {
  opacity: 1;
  translate: 0 0;
  transition-delay: 130ms;
}

.reason.in-view .reason-body p {
  opacity: 1;
  translate: 0 0;
  transition-delay: 220ms;
}

@media (max-width: 640px) {
  .reason {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .reason-num {
    font-size: clamp(40px, 15vw, 60px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reason .reason-num,
  .reason .reason-title,
  .reason .reason-body p {
    opacity: 1;
    translate: 0 0;
    transition: none;
  }

  .reasons-spine-fill {
    height: 100%;
  }
}

/* ---------- lab ---------- */

.lab {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
  overflow: hidden;
  padding: clamp(44px, 7vw, 90px) 0;
  background: var(--yellow);
  border-inline: 8px solid var(--ink);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}

.lab-head {
  display: grid;
  gap: 10px;
  width: min(1500px, calc(100% - 72px));
  margin: 0 auto clamp(10px, 2vw, 22px);
}

.lab-head h2 {
  margin: 0;
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(40px, 5vw, 88px);
  font-weight: 700;
  line-height: 0.88;
  text-transform: uppercase;
}

.lab-card {
  display: inline-grid;
  gap: 4px;
  padding: 16px 22px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 5px 5px 0 var(--ink);
  white-space: nowrap;
  transition:
    transform 320ms var(--ease-play),
    box-shadow 320ms var(--ease-play);
}

.lab-card strong {
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.lab-card .mono-note {
  color: rgb(16 20 23 / 0.6);
  text-transform: uppercase;
}

.track .lab-card:nth-child(odd) {
  transform: rotate(-1.6deg);
}

.track .lab-card:nth-child(even) {
  transform: rotate(1.3deg);
}

.lab-card:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 7px 9px 0 var(--ink);
}

/* ---------- contact edge ---------- */

.contact-edge {
  height: 30px;
  background: var(--paper);
  -webkit-mask-image: radial-gradient(circle at 15px 0, #000 15px, transparent 16px);
  -webkit-mask-size: 30px 31px;
  -webkit-mask-repeat: repeat-x;
  mask-image: radial-gradient(circle at 15px 0, #000 15px, transparent 16px);
  mask-size: 30px 31px;
  mask-repeat: repeat-x;
}

/* ---------- responsive: pitch + lab ---------- */

@media (max-width: 980px) {
  .pitch-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pitch-stamp {
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    z-index: 2;
  }
}

@media (max-width: 760px) {
  .pitch,
  .lab {
    border-inline-width: 6px;
  }

  .pitch-inner,
  .lab-head {
    width: calc(100% - 32px);
  }

  .pitch-cell p {
    font-size: 16px;
  }

  .lab-card {
    padding: 12px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-note {
    opacity: 1;
    translate: 0 0;
  }

  .pitch-row.in-view .pitch-stamp,
  .pitch-stamp {
    animation: none;
    opacity: 1;
    transform: rotate(-7deg);
  }
}

/* ================= awwwards pass ================= */

/* custom cursor — a single simple dot (no ring, no absorb-on-hover) */

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  pointer-events: none;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
}

body.cursor-on,
body.cursor-on * {
  cursor: none !important;
}

/* statement ambience */

.statement-sticky::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: radial-gradient(circle, #fff 0 1px, transparent 1.2px);
  background-size: 26px 26px;
  pointer-events: none;
}

.statement-copy {
  position: relative;
  z-index: 1;
}

.statement-cue {
  position: relative;
  z-index: 1;
  animation: cue-bob 2s var(--ease-soft) infinite;
}

@keyframes cue-bob {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 6px;
  }
}

/* work: breathing room + ghost numerals + media hover */

.work-head {
  padding: 14svh 0 8svh;
}

.work-card-inner {
  position: relative;
}

.work-card-inner::after {
  content: attr(data-index);
  position: absolute;
  top: -0.02em;
  right: 0.05em;
  z-index: 0;
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(140px, 16vw, 280px);
  font-weight: 700;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 2px rgb(16 20 23 / 0.15);
  pointer-events: none;
}

.work-info,
.work-media {
  position: relative;
  z-index: 1;
}

.work-media {
  transition: transform 420ms var(--ease-play);
}

.work-card-inner:hover .work-media {
  transform: rotate(-1.2deg) scale(1.01);
}

/* pitch: chat-thread layout (less toast, more conversation) */

.pitch-rows {
  max-width: 1100px;
  gap: clamp(26px, 3.4vw, 44px);
}

.pitch-row {
  grid-template-columns: 1fr;
  gap: 12px;
}

.pitch-cell {
  width: min(100%, 560px);
  height: auto;
}

.pitch-you {
  justify-self: start;
  border-radius: 26px 26px 26px 6px;
}

.pitch-me {
  justify-self: end;
  border-radius: 26px 26px 6px 26px;
}

.pitch-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  z-index: 2;
}

/* voices: sticky notes with tape */

.voices h2 {
  font-size: clamp(36px, 4.6vw, 84px);
}

.voice-grid {
  width: min(1100px, calc(100% - 72px));
}

.voice-card {
  position: relative;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: #fff6bf;
  box-shadow: 7px 9px 0 rgb(16 20 23 / 0.12);
  padding-top: 46px;
  will-change: transform;
  transition:
    transform 420ms var(--ease-play),
    box-shadow 320ms var(--ease-soft);
}

/* six notes: cycling colours + hand-pinned rotations */
.voice-card:nth-child(1) { background: #fff6bf; transform: rotate(-1.4deg); }
.voice-card:nth-child(2) { background: #d9efff; transform: rotate(1.1deg); }
.voice-card:nth-child(3) { background: #ffd9ef; transform: rotate(-0.6deg); }
.voice-card:nth-child(4) { background: #e2f7cf; transform: rotate(1.6deg); }
.voice-card:nth-child(5) { background: #d9efff; transform: rotate(-1.1deg); }
.voice-card:nth-child(6) { background: #fff6bf; transform: rotate(0.7deg); }

/* micro-interaction: pick the note up, straighten it, deepen the shadow */
.voice-card:hover,
.voice-card:focus-within {
  transform: rotate(0deg) translateY(-8px) scale(1.02);
  box-shadow: 12px 16px 0 rgb(16 20 23 / 0.18);
  z-index: 2;
}

.voice-card:hover .voice-tag,
.voice-card:focus-within .voice-tag {
  transform: rotate(0deg) scale(1.06);
  background: var(--yellow);
}

/* tape */
.voice-card::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  width: 96px;
  height: 26px;
  background: rgb(255 253 245 / 0.75);
  border: 1px solid rgb(16 20 23 / 0.25);
  transform: translateX(-50%) rotate(-2.4deg);
  transition: transform 420ms var(--ease-play);
}

.voice-card:nth-child(even)::before {
  transform: translateX(-50%) rotate(2.8deg);
}

.voice-card:hover::before,
.voice-card:focus-within::before {
  transform: translateX(-50%) rotate(0deg) scaleX(1.08);
}

/* relationship label pill */
.voice-tag {
  /* inline-flex + a fixed height, not padding + line-height: the mono fallback
     stack renders each of these strings with a slightly different line-box metric
     depending on which glyphs are present, which was making some pills taller than
     others even with identical CSS. Centering a fixed-height box sidesteps that. */
  display: inline-flex;
  align-items: center;
  justify-self: start;
  height: 32px;
  padding: 0 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.55);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
  text-transform: uppercase;
  transform: rotate(-2deg);
  transition:
    transform 320ms var(--ease-play),
    background 320ms var(--ease-soft);
}

@media (prefers-reduced-motion: reduce) {
  .statement-copy,
  .statement-sub {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .statement-copy .w {
    opacity: 1 !important;
    color: var(--paper);
    animation: none !important;
  }

  .statement-copy em .w {
    color: var(--yellow);
  }

  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

/* ================= fixed-hero curtain revamp ================= */

/* The hero is pinned to the viewport; everything below scrolls up
   and curtains over it. */
.stage {
  position: relative;
  z-index: 1;
  margin-top: 0;
  pointer-events: none;
}

.stage > section {
  pointer-events: auto;
}

.stage > footer {
  pointer-events: auto;
}

.stage > section.intro {
  pointer-events: none;
}

/* ---------- intro: identity scene + yellow burst ---------- */

/* .intro is now just a scroll spacer that gives the fixed scene its dwell length */
.intro {
  position: relative;
  height: 200svh;
  pointer-events: none;
}

/* the identity scene is a fixed layer the yellow explosion reveals */
.intro-scene {
  position: fixed;
  inset: 0;
  z-index: 14;
  background: var(--yellow);
  --px: 50%;
  --py: 45%;
  --r: -18;
  --hide: 0;
  opacity: calc(1 - var(--hide, 0));
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at 50% 93%, #000 calc(var(--r) * 1%), transparent calc(var(--r) * 1% + 16%));
  mask-image: radial-gradient(circle at 50% 93%, #000 calc(var(--r) * 1%), transparent calc(var(--r) * 1% + 16%));
}

/* Once the mask has fully opened, the gradient is doing nothing but forcing a
   full-screen re-raster on every frame — drop it. */
body.is-blown .intro-scene:not(.intro-gone) {
  pointer-events: auto;
}

.intro-scene.mask-open {
  -webkit-mask-image: none;
  mask-image: none;
}

/* and once the scene is retired, take the fixed full-screen layer out of the
   compositor entirely instead of leaving it parked at opacity 0 for the rest of
   the page */
.intro-scene.intro-gone {
  display: none !important;
}

.intro-scene.intro-gone {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* solid ink veil the photo + chips dissolve into once the visit is over */
.intro-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--ink);
  opacity: 0;
  transition: opacity 300ms var(--ease-soft);
  transition-delay: 0ms;
  will-change: opacity;
}

.intro-scene.is-exiting .intro-veil {
  opacity: 1;
}

.intro-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
  opacity: 0;
  transform: scale(1.05);
  transition:
    opacity 0.6s ease,
    transform 0.8s var(--ease-play);
  will-change: transform, opacity;
}

.intro-scene.photo-in .intro-photo {
  opacity: 1;
  transform: scale(1);
}

.intro-scene.is-exiting .intro-photo {
  opacity: 0;
  transform: scale(1.14);
  filter: blur(22px) saturate(1.4);
  transition:
    opacity 520ms var(--ease-soft) 40ms,
    transform 560ms var(--ease-play) 40ms,
    filter 560ms var(--ease-soft) 40ms;
}

/* ---------- interaction chips: two loose clusters scattered in the sky ---------- */
.intro-chips {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.chip-slot {
  position: absolute;
  opacity: 0;
  transform: rotate(var(--tilt, 0deg)) translateY(14px) scale(0.9);
  transition:
    opacity 0.5s ease,
    transform 0.55s var(--ease-play);
  transition-delay: calc(0.15s + var(--i) * 0.14s);
}

body.is-blown .chip-slot {
  opacity: 1;
  transform: rotate(var(--tilt, 0deg)) translateY(0) scale(1);
}

.chip-l1 { left: 9%; top: 19%; --ex: -70px; --ey: -55px; --er: -20deg; }
.chip-l2 { left: 6%; top: 43%; --ex: -100px; --ey: 6px; --er: 16deg; }
.chip-l3 { left: 11%; top: 66%; --ex: -66px; --ey: 74px; --er: -24deg; }
.chip-r1 { right: 9%; top: 17%; --ex: 74px; --ey: -60px; --er: 22deg; }
.chip-r2 { right: 13%; top: 42%; --ex: 104px; --ey: 8px; --er: -18deg; }
.chip-r3 { right: 7%; top: 65%; --ex: 62px; --ey: 78px; --er: 26deg; }

.intro-scene.is-exiting .chip-slot {
  animation: chip-exit-fling 520ms var(--ease-play) both;
  animation-delay: calc(var(--i) * 55ms);
}

@keyframes chip-exit-fling {
  0% {
    opacity: 1;
    transform: rotate(var(--tilt, 0deg)) translate(0, 0) scale(1);
  }

  24% {
    opacity: 1;
    transform:
      rotate(calc(var(--tilt, 0deg) + (var(--er) * 0.25)))
      translate(calc(var(--ex) * 0.14), calc(var(--ey) * 0.1 - 16px))
      scale(1.14);
  }

  100% {
    opacity: 0;
    transform:
      rotate(calc(var(--tilt, 0deg) + var(--er)))
      translate(var(--ex), var(--ey))
      scale(0.32);
  }
}

.intro-chip {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  padding: 0 clamp(19px, 1.8vw, 31px);
  min-height: clamp(53px, 4.6vw, 72px);
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: clamp(18px, 1.6vw, 29px);
  font-weight: 700;
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  pointer-events: auto;
  transition:
    transform 260ms var(--ease-play),
    box-shadow 260ms var(--ease-play);
}

.chip-emoji {
  font-size: 1.1em;
  line-height: 1;
}

.chip-l2 .intro-chip, .chip-r2 .intro-chip { background: var(--blue); }
.chip-r3 .intro-chip { background: var(--pink); }

/* ---------- first-visit nudge: the chips ask to be hovered, once ---------- */
.chip-hint {
  position: absolute;
  left: 50%;
  /* clears the "Hi, I'm Yash" caption's band entirely, at any viewport height */
  bottom: calc(clamp(18px, 5svh, 46px) + 62px);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 15px 8px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 14.5px;
  font-weight: 400;
  letter-spacing: -0.01em;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 14px);
  transition: opacity 320ms ease, transform 420ms var(--ease-play);
  pointer-events: none;
}
.chip-hint-ic { font-size: 15px; }
body.is-blown.chips-fresh .chip-hint {
  opacity: 1;
  transform: translate(-50%, 0);
  animation: chip-hint-bob 2.4s ease-in-out 600ms infinite;
}
@keyframes chip-hint-bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -5px); }
}
@media (prefers-reduced-motion: reduce) {
  .chip-hint { animation: none; }
}

/* each chip gets its own quiet idle personality */
.chip-l1 .intro-chip { animation: chip-bob 4.6s ease-in-out infinite; }
.chip-l2 .intro-chip { animation: chip-drift 6.2s ease-in-out infinite; }
.chip-l3 .intro-chip { animation: chip-pulse 3.8s ease-in-out infinite; }
.chip-r1 .intro-chip { animation: chip-glow 2.8s ease-in-out infinite; }
.chip-r2 .intro-chip { animation: chip-tilt 5.2s ease-in-out infinite; }
.chip-r3 .intro-chip { animation: chip-jitter 3.6s ease-in-out infinite; }

@keyframes chip-bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}
@keyframes chip-drift {
  0%, 100% { translate: 0 0; }
  33% { translate: 6px -6px; }
  66% { translate: -5px 4px; }
}
@keyframes chip-pulse {
  0%, 100% { scale: 1; }
  50% { scale: 1.045; }
}
@keyframes chip-glow {
  0%, 100% { box-shadow: 4px 4px 0 var(--ink); }
  50% { box-shadow: 4px 4px 0 var(--ink), 0 0 18px 4px rgb(255 228 92 / 0.7); }
}
@keyframes chip-tilt {
  0%, 100% { rotate: -2.5deg; }
  50% { rotate: 2.5deg; }
}
@keyframes chip-jitter {
  0%, 88%, 100% { rotate: 0deg; }
  91% { rotate: -1.5deg; }
  94% { rotate: 1.5deg; }
  97% { rotate: -0.8deg; }
}

/* each chip also has its OWN distinct tactile hover reaction, on top of its idle loop */
.chip-l1 .intro-chip:hover, .chip-l1 .intro-chip:focus-visible {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 6px 6px 0 var(--ink);
}
.chip-l2 .intro-chip:hover, .chip-l2 .intro-chip:focus-visible {
  transform: scale(1.06) rotate(4deg);
}
.chip-l3 .intro-chip:hover, .chip-l3 .intro-chip:focus-visible {
  transform: scale(1.1) skewX(-4deg);
}
.chip-r1 .intro-chip:hover, .chip-r1 .intro-chip:focus-visible {
  transform: scale(1.12);
  box-shadow: 4px 4px 0 var(--ink), 0 0 0 6px rgb(255 228 92 / 0.5);
}
.chip-r2 .intro-chip:hover, .chip-r2 .intro-chip:focus-visible {
  transform: translate(2px, 2px) scale(1.04);
  box-shadow: 2px 2px 0 var(--ink);
}
.chip-r3 .intro-chip:hover, .chip-r3 .intro-chip:focus-visible {
  transform: scale(1.1) translateX(3px);
  box-shadow: 7px 4px 0 var(--ink);
}

/* ---------- per-chip hover payoffs: localized ~1-1.5s moments that explain the trait ---------- */
.chip-fx {
  position: absolute;
  top: calc(100% + 12px);
  z-index: 2;
  width: 190px;
  padding: 12px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
  opacity: 0;
  transform: translateY(-6px) scale(0.94);
  pointer-events: none;
  transition:
    opacity 200ms ease,
    transform 240ms var(--ease-play);
}

.chip-fx.fx-above {
  top: auto;
  bottom: calc(100% + 12px);
}

.chip-l1 .chip-fx, .chip-l2 .chip-fx, .chip-l3 .chip-fx { left: 0; }
.chip-r1 .chip-fx, .chip-r2 .chip-fx, .chip-r3 .chip-fx { right: 0; }

.chip-fx.is-firing {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.fx-panel {
  position: relative;
  height: 62px;
  margin-bottom: 8px;
  overflow: visible;
}

.fx-note {
  margin: 4px 2px 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

/* 1. Product Designer — jumbled blocks snap into a tidy grid */
.fx-block {
  position: absolute;
  width: 26px;
  height: 20px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
}
.wf-b1 { background: var(--yellow); }
.wf-b2 { background: var(--blue); }
.wf-b3 { background: var(--pink); }
.fx-cursor {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50% 50% 50% 0;
  background: var(--ink);
  opacity: 0;
}
.wf-b1 { top: 4px; left: 6px; transform: rotate(-14deg); }
.wf-b2 { top: 30px; left: 40px; transform: rotate(10deg); }
.wf-b3 { top: 2px; left: 76px; transform: rotate(8deg); }
.wf-b4 { top: 32px; left: 4px; transform: rotate(-6deg); width: 20px; height: 16px; }
.fx-wireframe.is-firing .wf-b1 { animation: wf-1 1.6s var(--ease-play) infinite; }
.fx-wireframe.is-firing .wf-b2 { animation: wf-2 1.6s var(--ease-play) infinite; }
.fx-wireframe.is-firing .wf-b3 { animation: wf-3 1.6s var(--ease-play) infinite; }
.fx-wireframe.is-firing .wf-b4 { animation: wf-4 1.6s var(--ease-play) infinite; }
.fx-wireframe.is-firing .fx-cursor { animation: wf-cursor 1.6s var(--ease-play) infinite; }
@keyframes wf-1 { 0%,100% { top: 4px; left: 6px; transform: rotate(-14deg); } 55%,85% { top: 2px; left: 2px; transform: rotate(0deg); } }
@keyframes wf-2 { 0%,100% { top: 30px; left: 40px; transform: rotate(10deg); } 55%,85% { top: 2px; left: 34px; transform: rotate(0deg); } }
@keyframes wf-3 { 0%,100% { top: 2px; left: 76px; transform: rotate(8deg); } 55%,85% { top: 2px; left: 66px; transform: rotate(0deg); } }
@keyframes wf-4 { 0%,100% { top: 32px; left: 4px; transform: rotate(-6deg); } 55%,85% { top: 32px; left: 2px; transform: rotate(0deg); } }
@keyframes wf-cursor { 0%,15%,100% { opacity: 0; top: 40px; left: 50px; } 25% { opacity: 1; top: 30px; left: 40px; } 50% { opacity: 1; top: 4px; left: 34px; } 65% { opacity: 0; } }

/* 2. AI-obsessed — rough outputs flip rapidly then collapse into one good one */
.fx-card {
  position: absolute;
  inset: 6px 20px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--paper);
  opacity: 0;
}
.fx-check {
  position: absolute;
  inset: 6px 20px;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-weight: 900;
  font-size: 20px;
  opacity: 0;
}
.fx-ai.is-firing .ai-c1 { animation: ai-flip 1.6s steps(1,end) infinite; animation-delay: 0s; }
.fx-ai.is-firing .ai-c2 { animation: ai-flip 1.6s steps(1,end) infinite; animation-delay: 0.13s; }
.fx-ai.is-firing .ai-c3 { animation: ai-flip 1.6s steps(1,end) infinite; animation-delay: 0.26s; }
.fx-ai.is-firing .fx-check { animation: ai-check 1.6s var(--ease-play) infinite; }
@keyframes ai-flip {
  0%, 100% { opacity: 0; }
  4%, 60% { opacity: 1; transform: rotate(-2deg); }
  62% { opacity: 0; }
}
@keyframes ai-check {
  0%, 62% { opacity: 0; transform: scale(0.5); }
  72% { opacity: 1; transform: scale(1.15); }
  82%, 92% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.6); }
}

/* 3. 0→1 Builder — dot > sketch > wireframe > product, one shape morphing */
.fx-morph {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--ink);
}
.fx-builder.is-firing .fx-morph { animation: builder-morph 1.6s var(--ease-play) infinite alternate; }
@keyframes builder-morph {
  0% { width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--ink); }
  25% { width: 46px; height: 4px; margin-left: -23px; border-radius: 2px; background: var(--ink); }
  55% { width: 70px; height: 26px; margin-left: -35px; border-radius: 6px; background: var(--paper); }
  85%, 100% { width: 70px; height: 26px; margin-left: -35px; border-radius: 6px; background: var(--yellow); }
}

/* 4. Enterprise AI — tangled node graph straightens into clean paths */
.fx-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
}
.fx-line {
  position: absolute;
  height: 2px;
  background: rgb(16 20 23 / 0.55);
  transform-origin: 0 50%;
}
.nd-d1 { top: 6px; left: 8px; }
.nd-d2 { top: 4px; right: 10px; }
.nd-d3 { bottom: 8px; left: 20px; }
.nd-d4 { bottom: 4px; right: 24px; }
.nd-l1, .nd-l2, .nd-l3 { top: 30px; left: 12px; width: 40px; }
.fx-nodes.is-firing .nd-l1 { animation: nd-line1 1.6s var(--ease-play) infinite; }
.fx-nodes.is-firing .nd-l2 { animation: nd-line2 1.6s var(--ease-play) infinite; }
.fx-nodes.is-firing .nd-l3 { animation: nd-line3 1.6s var(--ease-play) infinite; }
@keyframes nd-line1 { 0%,100% { rotate: 38deg; width: 30px; } 55%,85% { rotate: 0deg; width: 60px; } }
@keyframes nd-line2 { 0%,100% { rotate: -52deg; width: 24px; } 55%,85% { rotate: -14deg; width: 50px; } }
@keyframes nd-line3 { 0%,100% { rotate: 12deg; width: 20px; } 55%,85% { rotate: 22deg; width: 44px; } }

/* 5. Systems Thinker — stacked layers fan out to reveal depth */
.fx-layer {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 10px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  top: 26px;
}
.ly-1 { background: var(--paper); }
.ly-2 { background: var(--blue); }
.ly-3 { background: var(--yellow); }
.ly-4 { background: var(--pink); }
.fx-layers.is-firing .ly-1 { animation: ly-fan-1 1.6s var(--ease-play) infinite; }
.fx-layers.is-firing .ly-2 { animation: ly-fan-2 1.6s var(--ease-play) infinite; }
.fx-layers.is-firing .ly-3 { animation: ly-fan-3 1.6s var(--ease-play) infinite; }
.fx-layers.is-firing .ly-4 { animation: ly-fan-4 1.6s var(--ease-play) infinite; }
@keyframes ly-fan-1 { 0%,100% { transform: translateY(0); } 55%,80% { transform: translateY(-16px); } }
@keyframes ly-fan-2 { 0%,100% { transform: translateY(0); } 55%,80% { transform: translateY(-5px); } }
@keyframes ly-fan-3 { 0%,100% { transform: translateY(0); } 55%,80% { transform: translateY(6px); } }
@keyframes ly-fan-4 { 0%,100% { transform: translateY(0); } 55%,80% { transform: translateY(17px); } }

/* 6. Ships fast — progress rushes to 96%, pauses, then ships */
.fx-bar {
  position: absolute;
  top: 24px;
  left: 8px;
  right: 8px;
  height: 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  background: var(--paper);
}
.fx-bar-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--ink);
}
.fx-pkg {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 20px;
  opacity: 0;
  transform: scale(0.4);
}
.fx-ship.is-firing .fx-bar-fill { animation: ship-fill 1.6s var(--ease-play) infinite alternate; }
.fx-ship.is-firing .fx-pkg { animation: ship-pkg 1.6s var(--ease-play) infinite alternate; }
@keyframes ship-fill {
  0% { width: 0%; }
  60% { width: 96%; }
  75% { width: 96%; }
  90%, 100% { width: 100%; }
}
@keyframes ship-pkg {
  0%, 78% { opacity: 0; transform: scale(0.4); }
  90% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}

/* the name tag: a handwritten note beside his head, with an arrow that finds it */
/* the note lives in the empty centre column, clear of every chip row */
.intro-name {
  position: absolute;
  /* anchored to the page's centre line (where his head sits) rather than a
     percentage of the viewport, so it stays beside him at any width */
  left: auto;
  right: calc(50% + clamp(40px, 4vw, 90px));
  top: max(23%, 132px);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transform: translateY(10px) rotate(-1.5deg);
  transition:
    opacity 0.6s ease,
    transform 0.6s var(--ease-play);
  transition-delay: 0.9s;
}

.intro-name-txt {
  font-family: "Architects Daughter", "Patrick Hand", cursive;
  font-size: clamp(19px, 2vw, 25px);
  color: rgb(16 20 23 / 0.78);
  white-space: nowrap;
}

/* tk-arrow-up2 already points up-and-right, so it needs no flipping: just a
   small tilt to keep it hand-drawn */
.intro-name-arrow {
  order: 1;
  width: 26px;
  align-self: center;
  margin-top: 0;
  /* the asset points up-and-right; +45° lands it pointing straight right */
  transform: rotate(45deg);
}

body.is-blown .intro-name {
  opacity: 1;
  transform: translateY(0) rotate(-1.5deg);
}

.intro-scene.is-exiting .intro-name {
  opacity: 0 !important;
  transform: translateY(16px) rotate(-1.5deg) !important;
  transition: opacity 320ms ease, transform 360ms var(--ease-play);
}

.caption-wave {
  display: inline-block;
  transform-origin: 70% 70%;
  animation: caption-wave-loop 2.4s ease-in-out infinite;
  animation-delay: 1.6s;
}

@keyframes caption-wave-loop {
  0%, 60%, 100% { rotate: 0deg; }
  68% { rotate: 16deg; }
  76% { rotate: -10deg; }
  84% { rotate: 12deg; }
  92% { rotate: 0deg; }
}

/* ---------- hero: the "keep scrolling" bomb gets stuffed, then floods ---------- */

.hero {
  --fill: 0;
  --dissolve: 0;
  --fill-opacity: 0;
}

/* bottom-up yellow dissolve layer */
.hero-fill {
  position: fixed;
  inset: 0;
  z-index: 15;
  pointer-events: none;
  background: var(--yellow);
  opacity: var(--fill-opacity);
  transform: translateY(calc((1 - var(--dissolve)) * 101%));
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 9%);
  mask-image: linear-gradient(180deg, transparent 0, #000 9%);
  will-change: transform, opacity;
}

.scroll-cue {
  padding: 0;
  min-height: 0;
  border: 0;
  background: none;
  box-shadow: none;
  gap: 0;
  transform: translateX(-50%);
}

.scroll-bomb {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 12px 8px 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: rgb(255 248 223 / 0.92);
  box-shadow: 4px 4px 0 rgb(16 20 23 / 0.16);
  overflow: hidden;
  transform-origin: center bottom;
  transform:
    scaleX(calc(1 + var(--fill) * 0.5))
    scaleY(calc(1 + var(--fill) * 0.34));
  opacity: calc(1 - clamp((var(--fill) - 0.9) / 0.1, 0, 1));
  will-change: transform, opacity;
}

/* keep the label + arrow from stretching with the fattening pill */
.scroll-copy {
  display: inline-block;
  transform: scaleX(calc(1 / (1 + var(--fill) * 0.5)));
  transform-origin: left center;
}

.scroll-level {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  height: calc(var(--fill) * 135%);
  background: var(--yellow);
}

.scroll-copy,
.scroll-icon {
  position: relative;
  z-index: 1;
}

/* sweat drops */
.sweat {
  position: absolute;
  top: -4px;
  z-index: 2;
  width: 9px;
  height: 12px;
  background: var(--blue);
  border: 1.5px solid var(--ink);
  border-radius: 50% 50% 50% 50% / 62% 62% 40% 40%;
  opacity: 0;
  pointer-events: none;
}

.sweat-a {
  left: calc(50% - 60px);
}

.sweat-b {
  left: calc(50% + 52px);
}

.scroll-cue.s-sweat .sweat,
.scroll-cue.s-brink .sweat {
  animation: sweat-drip 1.1s ease-in infinite;
}

.scroll-cue.s-brink .sweat {
  animation-duration: 0.66s;
}

.scroll-cue .sweat-b {
  animation-delay: 0.45s;
}

@keyframes sweat-drip {
  0% { opacity: 0; translate: 0 -3px; scale: 0.5; }
  22% { opacity: 1; scale: 1; }
  100% { opacity: 0; translate: 0 24px; scale: 0.85; }
}

.scroll-cue.s-idle .scroll-bomb {
  animation: bomb-idle 2.2s var(--ease-soft) infinite;
}

.scroll-cue.s-fill .scroll-bomb {
  animation: bomb-wobble 0.62s ease-in-out infinite;
}

.scroll-cue.s-sweat .scroll-bomb {
  animation: bomb-strain 0.4s ease-in-out infinite;
}

.scroll-cue.s-brink .scroll-bomb {
  animation: bomb-panic 0.14s linear infinite;
}

@keyframes bomb-idle {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 3px; }
}

@keyframes bomb-wobble {
  0%, 100% { rotate: -1.6deg; translate: 0 0; }
  50% { rotate: 1.6deg; translate: 0 -1px; }
}

@keyframes bomb-strain {
  0%, 100% { rotate: -1deg; translate: 0 0; }
  30% { rotate: 1.4deg; translate: -1px -1px; }
  60% { rotate: -1.4deg; translate: 1px 0; }
}

@keyframes bomb-panic {
  0% { translate: -2px 0; rotate: -2.6deg; }
  25% { translate: 2px -1px; rotate: 2.6deg; }
  50% { translate: -1px 1px; rotate: -1.4deg; }
  75% { translate: 2px -1px; rotate: 2.8deg; }
  100% { translate: -2px 0; rotate: -2.6deg; }
}

body.is-ready .scroll-cue {
  animation: none;
}

/* smooth scrolling (Lenis) */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

/* ---------- statement: curtain lip over the intro ---------- */

.statement-sticky {
  background: var(--ink);
  border-radius: clamp(22px, 3vw, 60px) clamp(22px, 3vw, 60px) 0 0;
  box-shadow: 0 -26px 70px rgb(16 20 23 / 0.45);
}

/* ---------- pitch: conversational slide-in ---------- */

.pitch-you,
.pitch-me {
  opacity: 0;
  transition:
    opacity 640ms var(--ease-soft),
    translate 760ms var(--ease-play);
}

.pitch-you {
  translate: -46px 0;
}

.pitch-me {
  translate: 46px 0;
}

.pitch-row.in-view .pitch-you,
.pitch-row.in-view .pitch-me {
  opacity: 1;
  translate: 0 0;
}

.pitch-row.in-view .pitch-me {
  transition-delay: 150ms;
}

/* ---------- responsive: intro ---------- */

@media (max-width: 1080px) {
  .intro-portrait {
    height: 62svh;
  }

  .intro-pill {
    font-size: clamp(15px, 2.6vw, 24px);
    max-width: 44vw;
  }

  .pill-ai {
    left: clamp(16px, 5vw, 90px);
  }

  .pill-role {
    right: clamp(16px, 5vw, 90px);
  }
}

@media (max-width: 760px) {
  .intro {
    height: 200svh;
  }

  .intro-portrait {
    height: 54svh;
  }

  .intro-scribble {
    width: 108vw;
    top: 42%;
  }

  .pill-ai {
    left: 12px;
    top: 58%;
  }

  .pill-co {
    top: 68%;
  }

  .pill-role {
    right: 12px;
    top: 55%;
  }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .stage {
    margin-top: 0;
  }

  .hero {
    position: relative;
  }

  .intro {
    height: auto;
  }

  .intro-scene {
    position: relative;
    height: 100svh;
    clip-path: none !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    opacity: 1 !important;
  }

  .scroll-cue,
  .scroll-icon,
  .scroll-copy {
    transform: translateX(-50%);
  }

  .intro-scribble,
  .intro-pill,
  .intro-glow,
  .intro-menu {
    opacity: 1 !important;
  }

  .intro-portrait {
    opacity: 1 !important;
  }

  .intro-portrait,
  .pill-co,
  .intro-menu {
    transform: translateX(-50%) !important;
  }

  .pill-ai,
  .pill-role {
    transform: none !important;
  }

  .intro-scribble {
    transform: translate(-50%, -50%) rotate(-2deg) !important;
  }

  .pitch-you,
  .pitch-me {
    opacity: 1 !important;
    translate: 0 0 !important;
  }
}

/* ================= the ride: horizontal work-experience journey ================= */

.ride {
  position: relative;
  /* the black strip: was 24svh and ate the frame */
  --road-h: 15svh;
  --card-h: clamp(240px, 30svh, 310px);
  /* the sign always clears the card, which always clears the road */
  --post-h: calc(var(--card-h) + 30px);
  height: 400svh;
  background: var(--paper);
  border-inline: 8px solid var(--ink);
}

.ride-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 18%, rgb(255 228 92 / 0.5), transparent 34%),
    radial-gradient(circle at 82% 12%, rgb(131 215 255 / 0.34), transparent 32%),
    linear-gradient(180deg, #fff9e6 0%, var(--paper) 58%, #fff2c0 100%);
}

/* --- HUD (sits under the moving world's cards) --- */
.ride-hud {
  position: absolute;
  z-index: 8;
  top: clamp(88px, 12svh, 140px);
  left: clamp(24px, 5vw, 72px);
  max-width: min(760px, 58vw);
}

.ride-hud .mono-kicker {
  color: rgb(16 20 23 / 0.6);
}

.ride-hud h2 {
  margin: 6px 0 14px;
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(44px, 6.2vw, 108px);
  font-weight: 700;
  line-height: 0.84;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ride-sub {
  max-width: 34ch;
  margin: 0;
  font-size: clamp(14px, 1.15vw, 18px);
  line-height: 1.5;
  color: rgb(16 20 23 / 0.72);
}

.ride-odo {
  position: absolute;
  z-index: 8;
  top: clamp(120px, 21svh, 224px);
  right: clamp(24px, 5vw, 72px);
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-weight: 900;
  transform: rotate(-2deg);
}

.ride-odo-num {
  font-size: 26px;
  color: var(--ink);
}

.ride-odo-sep,
.ride-odo-total {
  font-size: 15px;
  color: rgb(16 20 23 / 0.5);
}

.ride-cue {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  padding: 8px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: rgb(255 248 223 / 0.86);
  box-shadow: 3px 3px 0 rgb(16 20 23 / 0.16);
  color: rgb(16 20 23 / 0.7);
  text-transform: uppercase;
  white-space: nowrap;
}

/* --- ambient sky: clouds drift, hills parallax --- */
.ride-sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.cloud {
  position: absolute;
  background: rgb(255 253 245 / 0.92);
  border: 2px solid rgb(16 20 23 / 0.14);
  border-radius: 999px;
  box-shadow: 0 8px 0 rgb(16 20 23 / 0.05);
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  bottom: 0;
  background: inherit;
  border: inherit;
  border-radius: 50%;
}

.cloud-1 { top: 16%; width: 132px; height: 34px; animation: cloud-drift 46s linear infinite; }
.cloud-1::before { left: 18px; width: 46px; height: 46px; }
.cloud-1::after { right: 24px; width: 60px; height: 60px; }
.cloud-2 { top: 30%; width: 96px; height: 26px; opacity: 0.8; animation: cloud-drift 62s linear infinite; animation-delay: -20s; }
.cloud-2::before { left: 14px; width: 34px; height: 34px; }
.cloud-2::after { right: 18px; width: 42px; height: 42px; }
.cloud-3 { top: 9%; width: 74px; height: 20px; opacity: 0.7; animation: cloud-drift 54s linear infinite; animation-delay: -38s; }
.cloud-3::before { left: 10px; width: 26px; height: 26px; }
.cloud-3::after { right: 14px; width: 30px; height: 30px; }

@keyframes cloud-drift {
  0% { transform: translateX(104vw); }
  100% { transform: translateX(-160px); }
}

.hill {
  position: absolute;
  bottom: var(--road-h);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: rgb(16 20 23 / 0.06);
}

.hill-1 { left: 30%; width: 46vw; height: 20svh; }
.hill-2 { left: 66%; width: 60vw; height: 27svh; background: rgb(16 20 23 / 0.045); }

/* --- moving world --- */
.ride-track {
  position: absolute;
  top: 0;
  left: 0;
  /* above .ride-hud (8): the track is its own stacking context, so the cards
     inside it can only clear the heading if the whole track does */
  z-index: 9;
  width: 460vw;
  height: 100%;
}

/* 460vw is a gigantic layer on a wide display — only promote it while the ride
   is actually on screen */
.ride.is-live .ride-track {
  will-change: transform;
}

.ride-road {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: var(--road-h);
  background:
    linear-gradient(180deg, #22282c 0, var(--ink) 3px, var(--ink) 100%);
  border-top: 4px solid var(--ink);
}

.ride-road::before {
  /* dashed centre line */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 46%;
  height: 7px;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 58px, transparent 58px 118px);
  opacity: 0.9;
}

.ride-road::after {
  /* faint gravel edge */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 4px;
  height: 6px;
  background: repeating-linear-gradient(90deg, rgb(255 248 223 / 0.14) 0 3px, transparent 3px 22px);
}

.km {
  position: absolute;
  bottom: calc(var(--road-h) + 8px);
  left: calc(52vw + (var(--n) - 1) * 64vw);
  transform: translateX(-50%);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: rgb(16 20 23 / 0.4);
  text-transform: uppercase;
  white-space: nowrap;
}

.km-start { left: 14vw; }
.km-end { left: calc(52vw + 5 * 64vw + 30vw); color: rgb(16 20 23 / 0.55); }

/* --- each stop: signpost rising from the road + a card that pops in --- */
.stop {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(52vw + (var(--n) - 1) * 64vw);
  width: 0;
}

.stop-post {
  position: absolute;
  left: -3px;
  bottom: calc(var(--road-h) - 4px);
  width: 6px;
  /* the sign sits at this height; the card hangs just under it */
  height: var(--post-h);
  background: var(--ink);
  border-radius: 3px 3px 0 0;
  transform-origin: 50% 100%;
}

.stop-post::after {
  /* base plate on the road */
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 26px;
  height: 8px;
  transform: translateX(-50%);
  background: var(--ink);
  border-radius: 3px;
}

.post-board {
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%) rotate(-2deg);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 10px clamp(16px, 1.6vw, 26px);
  margin-bottom: 8px;
  border: 3px solid var(--ink);
  border-radius: 14px;
  background: var(--yellow);
  box-shadow: 5px 5px 0 var(--ink);
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(20px, 1.9vw, 34px);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink);
}

/* each sign wears its company's own colour */
.stop .post-board {
  background: var(--brand, var(--yellow));
  color: var(--brand-ink, var(--ink));
}

.post-flag {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  width: 42px;
  height: 28px;
  transform: translateX(-50%);
  background:
    conic-gradient(var(--ink) 90deg, var(--paper) 90deg 180deg, var(--ink) 180deg 270deg, var(--paper) 270deg) 0 0 / 14px 14px;
  border: 2px solid var(--ink);
  animation: flag-wave 1.5s ease-in-out infinite;
  transform-origin: left center;
}

@keyframes flag-wave {
  0%, 100% { transform: translateX(-50%) skewY(-4deg); }
  50% { transform: translateX(-50%) skewY(4deg); }
}

.stop-card {
  position: absolute;
  /* above .ride-hud (z-index 8): on short viewports the card's meta row rises
     into the heading's band, and the logo tiles must stay readable */
  z-index: 9;
  left: 50%;
  bottom: calc(var(--road-h) + 26px);
  width: min(330px, 74vw);
  padding: clamp(18px, 1.6vw, 26px);
  border: 3px solid var(--ink);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
  opacity: 0;
  transform: translateX(-50%) translateY(28px) scale(0.94) rotate(-1.5deg);
  transition:
    opacity 0.5s var(--ease-soft),
    transform 0.6s var(--ease-play);
  will-change: transform, opacity;
}

.stop.reached .stop-card {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1) rotate(-1.5deg);
}

.stop-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 auto;
}
.stop-date { font-size: clamp(12px, 0.9vw, 14px); }

/* company mark, on its own brand tile */
.stop-logo {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: clamp(48px, 3.6vw, 58px);
  height: clamp(48px, 3.6vw, 58px);
  border: 2px solid var(--ink);
  border-radius: 11px;
  background: var(--brand, var(--paper));
  box-shadow: 3px 3px 0 var(--ink);
  overflow: hidden;
  transform: rotate(-2deg);
}
.stop-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stop-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 13px;
  font-weight: 900;
  transform: rotate(-5deg);
}

.stop-b .stop-num { background: var(--blue); }
.stop-p .stop-num { background: var(--pink); }
.stop-final .stop-num { background: var(--yellow); color: var(--ink); }

.stop-final .stop-card {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 8px 8px 0 var(--yellow);
}

.stop-final .stop-card h3 {
  color: var(--paper);
}

.stop-final .stop-note {
  color: rgb(255 248 223 / 0.74);
}

.stop-final .stop-date {
  color: rgb(255 248 223 / 0.58);
}

.stop-date {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(16 20 23 / 0.55);
}

.stop-card h3 {
  margin: 0;
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(26px, 2.2vw, 40px);
  font-weight: 700;
  line-height: 0.9;
  text-transform: uppercase;
}

.stop-card .stop-role {
  margin: 6px 0 12px;
  font-size: 15px;
  font-weight: 400;
}

.stop-note {
  margin: 0;
  color: rgb(16 20 23 / 0.66);
}

.stop-current {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 900;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

/* --- the bike: fixed in the centre, bobbing as the world rolls past --- */
.ride-bike {
  position: absolute;
  z-index: 2;
  left: 27%;
  bottom: calc(var(--road-h) - 4px);
  width: clamp(300px, 34vw, 450px);
  transform: translateX(-50%);
  pointer-events: none;
}

.bike-img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 14px rgb(16 20 23 / 0.28));
  animation: bike-bob 1.1s ease-in-out infinite;
  transform-origin: 50% 90%;
}

@keyframes bike-bob {
  0%, 100% { transform: translateY(0) rotate(-0.6deg); }
  30% { transform: translateY(-6px) rotate(0.5deg); }
  60% { transform: translateY(-2px) rotate(-0.2deg); }
}

.speed-lines {
  position: absolute;
  z-index: -1;
  top: 42%;
  right: 78%;
  width: 40vw;
  height: 44%;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, var(--ink)) top/100% 4px no-repeat,
    linear-gradient(90deg, transparent, var(--ink)) 0 34%/76% 4px no-repeat,
    linear-gradient(90deg, transparent, var(--ink)) 0 68%/88% 4px no-repeat,
    linear-gradient(90deg, transparent, var(--ink)) 0 100%/60% 4px no-repeat;
  opacity: 0.18;
  animation: speed-streak 0.5s linear infinite;
}

@keyframes speed-streak {
  0% { opacity: 0.05; transform: translateX(0); }
  50% { opacity: 0.22; }
  100% { opacity: 0.05; transform: translateX(-40px); }
}

.dust {
  position: absolute;
  left: 4%;
  bottom: 8%;
  width: 60px;
  height: 60px;
  pointer-events: none;
  background:
    radial-gradient(circle, rgb(16 20 23 / 0.16) 0 42%, transparent 46%) 0 0/26px 26px,
    radial-gradient(circle, rgb(16 20 23 / 0.12) 0 42%, transparent 46%) 14px 18px/20px 20px;
  background-repeat: no-repeat;
  animation: dust-puff 0.9s ease-out infinite;
}

@keyframes dust-puff {
  0% { opacity: 0; transform: translate(0, 0) scale(0.6); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translate(-40px, -14px) scale(1.3); }
}

@media (max-width: 900px) {
  .ride { height: 380svh; --road-h: 17svh; --card-h: clamp(230px, 29svh, 290px); }
  .ride-track { width: 480vw; }
  .stop,
  .km {
    left: calc(60vw + (var(--n) - 1) * 70vw);
  }
  .km-end { left: calc(60vw + 5 * 70vw + 28vw); }
  .ride-bike { width: clamp(300px, 74vw, 420px); }
  .ride-hud h2 { font-size: clamp(36px, 10vw, 62px); }
  .stop-card { width: min(320px, 86vw); }
}

@media (prefers-reduced-motion: reduce) {
  .ride {
    height: auto;
    border-inline-width: 6px;
  }
  .ride-sticky {
    position: relative;
    height: auto;
    min-height: 100svh;
    overflow: visible;
    padding-bottom: 40px;
  }
  .ride-track {
    position: relative;
    width: 100%;
    height: auto;
    transform: none !important;
    display: grid;
    gap: 20px;
    padding: clamp(220px, 30svh, 320px) clamp(20px, 6vw, 72px) 40px;
  }
  .ride-road,
  .ride-bike,
  .ride-sky,
  .ride-cue,
  .stop-post,
  .km { display: none; }
  .stop {
    position: relative;
    left: auto;
    top: auto;
    bottom: auto;
    width: 100%;
  }
  .stop-card {
    position: relative;
    height: auto;
    left: auto;
    bottom: auto;
    opacity: 1 !important;
    transform: none !important;
    width: 100%;
    max-width: 560px;
  }
  .cloud, .hill, .post-flag { display: none; }
}

/* the friction beat: the cue explains why the page is holding still */
.scroll-cue.s-hold { opacity: 1; }
.scroll-cue.s-hold .sweat { opacity: 0; }

/* case link inside a road-stop note */
.stop-note a { color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.stop-note a:hover { text-decoration-color: var(--tko, #ee6a2e); }

/* the featured note leads the wall: full width, bigger, and taped down straight */
.voice-card.is-featured {
  grid-column: 1 / -1;
  background: var(--yellow);
  transform: rotate(-0.5deg);
  box-shadow: 10px 12px 0 rgb(16 20 23 / 0.16);
}
.voice-card.is-featured blockquote {
  font-size: clamp(20px, 2.1vw, 31px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 400;
  color: var(--ink);
  text-wrap: pretty;
}
.voice-card.is-featured figcaption { font-size: 15px; }
.voice-card.is-featured .voice-tag {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.voice-card.is-featured:hover,
.voice-card.is-featured:focus-within { transform: rotate(0deg) translateY(-6px) scale(1.01); }

/* no company name inside the card (the road sign above says it) — the role
   carries the card, tinted with the company's colour */
.stop-card .stop-role {
  margin: 4px 0 10px;
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(21px, 1.9vw, 29px);
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
.stop-card { border-color: var(--ink); }
.stop:not(.stop-final) .stop-card { box-shadow: 8px 8px 0 var(--brand, var(--ink)), 8px 8px 0 2px var(--ink); }
.stop-final .stop-card { box-shadow: 8px 8px 0 var(--yellow); }

/* the quotes themselves read as text, not as terminal output */
.voice-card blockquote {
  font-size: clamp(16.5px, 1.15vw, 19px);
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: rgb(16 20 23 / 0.86);
  text-wrap: pretty;
}
.voice-card blockquote mark {
  background: var(--yellow);
  color: var(--ink);
  padding: 0 2px;
  box-decoration-break: clone;
}
.voice-card.is-featured blockquote mark { background: var(--paper); }

/* every card is the same size and hangs from its sign, not from the road */
.stop-card {
  bottom: calc(var(--road-h) + 14px);
  height: var(--card-h);
  width: min(360px, 76vw);
  display: flex;
  flex-direction: column;
  padding: clamp(15px, 1.2vw, 20px) clamp(16px, 1.3vw, 22px) clamp(17px, 1.4vw, 22px);
  border-radius: 16px;
}
.stop-card .stop-role {
  margin: 0 0 10px;
  font-size: clamp(21px, 1.85vw, 29px);
}
.stop-note {
  font-family: inherit;
  font-size: clamp(15.5px, 1.15vw, 18px);
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: rgb(16 20 23 / 0.78);
  text-wrap: pretty;
}
.stop-final .stop-note { color: rgb(255 248 223 / 0.84); }
.stop-logo { width: clamp(40px, 2.6vw, 46px); height: clamp(40px, 2.6vw, 46px); border-radius: 11px; }
.stop-date { font-size: clamp(12px, 0.88vw, 14px); }
/* content flows top-down and stays inside the card box */
.stop-meta { margin: 0 0 11px; }
.stop-card .stop-role { margin: 0 0 7px; font-size: clamp(20px, 1.65vw, 27px); line-height: 1.08; }
.stop-note { font-size: clamp(16px, 1.2vw, 18.5px); line-height: 1.45; margin: 0; }
/* the badge hugs its text instead of stretching across the card */
.stop-current { align-self: flex-start; width: auto; font-size: 11px; margin-top: 10px; }
/* a card grows if its story needs it, never overflows */
.stop-card { height: auto; min-height: var(--card-h); }

/* ---------- where my work made a difference: logo loop ---------- */
.diff-marquee { padding: clamp(18px, 3vw, 34px) 0 clamp(6px, 1.4vw, 16px); }
.diff-marquee .track { gap: clamp(18px, 2.4vw, 40px); align-items: center; }

.diff-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  padding: 12px 20px 12px 12px;
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 5px 5px 0 var(--ink);
  transform: rotate(-1deg);
  transition: transform 260ms var(--ease-play);
}
.diff-logo:nth-child(even) { transform: rotate(1.2deg); }
.diff-logo:hover { transform: rotate(0deg) translateY(-4px); }

.diff-logo img {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  object-fit: cover;
  border: 2px solid var(--ink);
}
.diff-logo > span {
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(19px, 1.5vw, 26px);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
}
/* no mark yet: the name carries the tile */
.diff-logo.is-word { padding: 12px 22px; background: var(--yellow); }
.diff-logo.is-word:nth-of-type(4n) { background: var(--blue); }

@media (max-width: 720px) {
  .diff-logo img { width: 38px; height: 38px; }
}

/* the marquee's max-content width must not set the section's column */
.lab { grid-template-columns: minmax(0, 1fr); }
.lab > .marquee { min-width: 0; }
/* word tiles read against the yellow section, and alternate properly */
.diff-logo.is-word { background: var(--paper); }
.diff-logo.is-word:nth-child(8n) { background: var(--blue); }
.diff-logo.is-word:nth-child(8n + 4) { background: var(--pink); }

:root {
  --boot-road-h: clamp(90px, 17vh, 150px);
}

/* ============ first-landing boot: the rider brings the page in ============ */
.loader {
  --boot-road-h: clamp(90px, 17vh, 150px);
  background: linear-gradient(180deg, #ffe45c 0%, #fff6cf 46%, #fdf6e3 100%);
  clip-path: inset(0 0 0 0);
}
.loader::before,
.loader::after { display: none; }
.loader-card { display: none; }

.loader-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.boot-hill {
  position: absolute;
  left: -10%;
  bottom: calc(var(--boot-road-h) - 2px);
  width: 70%;
  height: 26vh;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: rgb(16 20 23 / 0.05);
  animation: boot-hill-in 900ms var(--ease-play) both;
}
@keyframes boot-hill-in {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.boot-cloud {
  position: absolute;
  height: 34px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.72);
  box-shadow: 26px -12px 0 -4px rgb(255 255 255 / 0.72);
  animation: boot-cloud-drift 9s linear infinite;
}
.bc1 { top: 16%; left: 12%; width: 92px; animation-duration: 11s; }
.bc2 { top: 27%; left: 62%; width: 116px; animation-duration: 14s; animation-delay: -3s; }
.bc3 { top: 9%; left: 78%; width: 74px; animation-duration: 9s; animation-delay: -6s; }
@keyframes boot-cloud-drift {
  from { transform: translateX(6vw); }
  to { transform: translateX(-14vw); }
}

.boot-kicker,
.boot-word {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  text-align: center;
  color: var(--ink);
}
.boot-kicker {
  top: clamp(64px, 16vh, 150px);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0;
  animation: boot-text-in 700ms var(--ease-play) 160ms both;
}
.boot-word {
  top: calc(clamp(64px, 16vh, 150px) + clamp(22px, 3vh, 34px));
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(38px, 6.4vw, 96px);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  opacity: 0;
  animation: boot-text-in 760ms var(--ease-play) 320ms both;
}
@keyframes boot-text-in {
  from { opacity: 0; transform: translateX(-50%) translateY(18px) rotate(-1.5deg); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) rotate(-1.2deg); }
}

.boot-road {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: var(--boot-road-h);
  background: linear-gradient(180deg, #22282c 0%, #14181b 100%);
  border-top: 4px solid var(--ink);
  transform-origin: 50% 100%;
  animation: boot-road-in 640ms var(--ease-play) both;
}
@keyframes boot-road-in {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.boot-dashes {
  position: absolute;
  left: 0;
  top: 46%;
  width: 200%;
  height: 7px;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 46px, transparent 46px 104px);
  animation: boot-dash-run 620ms linear infinite;
}
@keyframes boot-dash-run {
  from { transform: translateX(0); }
  to { transform: translateX(-104px); }
}

/* the rider lives outside the curtain, so it is never clipped by the wipe */
.boot-bike {
  position: fixed;
  z-index: 1002;
  left: 50%;
  /* literal, not var(): this element is a SIBLING of .loader, so it cannot
     inherit the token defined there */
  bottom: calc(clamp(90px, 17vh, 150px) - 2px);
  /* sized by width only, with a viewport-height cap expressed as width
     (image is 1078×937, so 34.5svh of width ≈ 30svh of height); the box then
     always equals the rendered bike, and its bottom IS the wheels */
  width: min(clamp(320px, 40vw, 560px), 42svh);
  pointer-events: none;
  transform: translateX(-190vw);
  animation: boot-ride-in 1250ms cubic-bezier(0.2, 0.72, 0.24, 1) 180ms both;
}
.boot-bike img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 14px rgb(16 20 23 / 0.28));
  animation: boot-bob 460ms ease-in-out 1.4s infinite;
}
@keyframes boot-ride-in {
  from { transform: translateX(-190vw); }
  to { transform: translateX(-50%); }
}
@keyframes boot-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(-1deg); }
}

/* --- the exit: the bike accelerates right and drags the curtain with it --- */
body.is-ready .boot-bike {
  animation: boot-ride-out 1000ms cubic-bezier(0.46, 0.03, 0.72, 0.16) both;
}
@keyframes boot-ride-out {
  0% { transform: translateX(-50%); }
  14% { transform: translateX(-56%) rotate(-2deg); }
  100% { transform: translateX(115vw) rotate(1deg); }
}
body.is-ready .loader {
  visibility: visible;
  opacity: 1;
  animation: boot-wipe 940ms cubic-bezier(0.5, 0.02, 0.7, 0.2) 90ms forwards;
}
@keyframes boot-wipe {
  from { clip-path: inset(0 0 0 0); }
  to { clip-path: inset(0 0 0 100%); }
}
body.is-ready .boot-kicker,
body.is-ready .boot-word {
  animation: boot-text-out 340ms var(--ease-soft) both;
}
@keyframes boot-text-out {
  to { opacity: 0; transform: translateX(-50%) translateY(-22px) rotate(-3deg); }
}
body.is-ready .boot-dashes { animation-duration: 220ms; }

html.no-loader .boot-bike { display: none; }

@media (prefers-reduced-motion: reduce) {
  .boot-bike,
  .boot-bike img,
  .boot-dashes,
  .boot-cloud,
  .boot-road,
  .boot-hill { animation: none; }
  .boot-bike { transform: translateX(-50%); }
  body.is-ready .boot-bike { opacity: 0; transition: opacity 240ms linear; animation: none; }
  body.is-ready .loader { animation: none; visibility: hidden; opacity: 0; }
}

/* the hero lands as the curtain passes, not seconds later */
body.is-ready .headline h1 > span { transition-delay: 0.42s; }
body.is-ready .headline strong { transition-delay: 0.78s; }
body.is-ready .hero-actions { transition-delay: 0.96s; }
body.is-ready .site-header { transition-delay: 1.06s; }
body.is-ready .scroll-cue { transition-delay: 1.2s; }

/* linked tiles behave like the rest of the strip */
a.diff-logo { text-decoration: none; }
a.diff-logo:hover { box-shadow: 7px 7px 0 var(--ink); }

/* ---------- boot: the greeting leads, the status line follows ---------- */
.boot-word {
  top: clamp(58px, 15vh, 140px);
  max-width: min(1100px, 90vw);
  font-size: clamp(40px, 7.6vw, 118px);
  animation: boot-text-in 720ms var(--ease-play) 140ms both;
}
.boot-kicker {
  top: auto;
  bottom: calc(clamp(90px, 17vh, 150px) + 26px);
  font-size: clamp(11px, 1.05vw, 14px);
  color: rgb(16 20 23 / 0.62);
  animation: boot-text-in 700ms var(--ease-play) 420ms both;
}

/* ---------- boot exit: the curtain simply follows the bike out ---------- */
body.is-ready .loader {
  clip-path: none;
  animation: boot-slide-off 820ms cubic-bezier(0.62, 0.02, 0.36, 1) 120ms forwards;
}
@keyframes boot-slide-off {
  from { transform: translateX(0); }
  to { transform: translateX(101%); }
}
body.is-ready .boot-bike {
  animation: boot-ride-out 860ms cubic-bezier(0.5, 0.02, 0.42, 1) both;
}

/* ---------- hero: vertically centred, with one handwritten aside ---------- */
.hero-stage {
  align-content: center;
  padding: clamp(96px, 14svh, 170px) 0 clamp(96px, 14svh, 170px);
}
.headline { display: grid; justify-items: start; }

.hero-aside {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  align-items: center;
  margin: clamp(20px, 3.4vh, 40px) 0 0 6px;
  opacity: 0;
  translate: 0 16px;
  transition: opacity 0.7s var(--ease-soft), translate 0.8s var(--ease-play);
}
body.is-ready .hero-aside {
  opacity: 1;
  translate: 0 0;
  transition-delay: 1.02s;
}
.hero-aside-txt {
  font-family: "Architects Daughter", "Patrick Hand", cursive;
  font-size: clamp(16px, 1.35vw, 22px);
  line-height: 1.35;
  color: rgb(16 20 23 / 0.66);
  transform: rotate(-1.5deg);
}
.hero-aside-arrow {
  width: clamp(30px, 2.6vw, 42px);
  height: auto;
  margin-top: 2px;
  opacity: 0.5;
  /* the asset points up-and-right; a +45° turn lands it pointing straight right */
  transform: rotate(45deg);
}

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

/* the status line sits under the greeting, clear of the rider's box */
.boot-kicker {
  top: calc(clamp(58px, 15vh, 140px) + clamp(52px, 8.6vw, 132px));
  bottom: auto;
}

/* the hero centres against the viewport, not inside its own padding box */
.hero {
  display: grid;
  place-content: center;
}
.hero-stage {
  min-height: 0;
  padding: clamp(40px, 6svh, 80px) 0;
}

/* the hero fills its column again: centred vertically, content left */
.hero {
  display: grid;
  align-content: center;
  justify-content: stretch;
  place-content: center stretch;
}

/* ---------- background interest: soft colour, stripes, a ghost wordmark ---------- */
.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}
.hb1 {
  width: 44vw;
  height: 44vw;
  top: -14vw;
  left: -10vw;
  background: radial-gradient(circle, #ffe45c 0%, rgb(255 228 92 / 0) 68%);
  animation: hero-drift-a 22s ease-in-out infinite;
}
.hb2 {
  width: 38vw;
  height: 38vw;
  bottom: -16vw;
  right: -8vw;
  background: radial-gradient(circle, #9ad8ff 0%, rgb(154 216 255 / 0) 68%);
  animation: hero-drift-b 28s ease-in-out infinite;
}
@keyframes hero-drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(3vw, 2vw) scale(1.06); }
}
@keyframes hero-drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-3vw, -2vw) scale(1.08); }
}

.hero-stripes {
  position: absolute;
  top: -8%;
  right: -6%;
  width: 30vw;
  height: 120%;
  background: repeating-linear-gradient(
    -22deg,
    rgb(16 20 23 / 0.055) 0 3px,
    transparent 3px 22px
  );
  transform: rotate(4deg);
}

.hero-ghost {
  position: absolute;
  right: 2.5vw;
  bottom: -2.5vw;
  font-family: "MD Nichrome Test", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(140px, 21vw, 340px);
  font-weight: 700;
  line-height: 0.8;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 2px rgb(16 20 23 / 0.09);
  user-select: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-blob { animation: none; }
}

/* the greeting and its status line flow as one block, however many lines it takes */
.boot-copy {
  position: absolute;
  top: clamp(44px, 11vh, 110px);
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: clamp(8px, 1.4vh, 16px);
  width: min(1100px, 90vw);
}
.boot-copy .boot-word,
.boot-copy .boot-kicker {
  position: static;
  top: auto;
  bottom: auto;
  left: auto;
  transform: none;
  max-width: 100%;
}
.boot-copy .boot-word { font-size: clamp(34px, 6.4vw, 104px); }
@keyframes boot-text-in {
  from { opacity: 0; transform: translateY(18px) rotate(-1.5deg); }
  to { opacity: 1; transform: translateY(0) rotate(-1.2deg); }
}
@keyframes boot-text-out {
  to { opacity: 0; transform: translateY(-22px) rotate(-3deg); }
}

/* the greeting block: nothing overlaps, the status line always sits below */
.boot-copy { display: grid; gap: clamp(10px, 1.8vh, 20px); }
.boot-copy .boot-word {
  position: static !important;
  top: auto !important;
  bottom: auto !important;
  transform: none;
  margin: 0;
  line-height: 0.92;
}
.boot-copy .boot-kicker {
  position: static !important;
  top: auto !important;
  bottom: auto !important;
  transform: none;
  margin: 0;
}

/* pinned near the top, with a height budget that leaves the bike's whole
   26svh floor band untouched no matter how tall the wrapped text gets */
.boot-copy {
  top: clamp(48px, 12svh, 130px);
  max-height: 58svh;
  overflow: hidden;
  transform: translate(-50%, 0);
}
.boot-copy .boot-word { font-size: clamp(34px, 5.6vw, 92px); }
@media (max-width: 760px) {
  .boot-copy .boot-word { font-size: clamp(32px, 8.6vw, 52px); }
}

/* the opening line always breaks into exactly two lines — the type shrinks to
   fit the narrowest phone rather than being clipped by nowrap */
.headline h1 > span {
  font-size: clamp(26px, 5.6vw, 104px);
  white-space: nowrap;
  max-width: none;
}
@media (max-width: 760px) {
  .headline h1 > span { font-size: clamp(26px, 7.6vw, 64px); }
}

/* all three lines share ONE size at every width, and fill the hero properly */
.headline h1 > span,
.headline strong {
  font-size: clamp(30px, 6.7vw, 124px);
}
@media (max-width: 760px) {
  .headline h1 > span,
  .headline strong { font-size: clamp(26px, 8.4vw, 64px); }
}
/* a little more room inside the sticker */
.headline strong { padding: 0.16em 0.22em 0.12em; }

/* tiles that open a case study say so */
.diff-tag {
  padding: 4px 9px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.contact-footnote a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.contact-footnote a:hover { color: var(--ink); }

/* ---------- the cursor becomes the CTA over a work card ---------- */
.work-card.is-clickable { cursor: pointer; }

.cursor-cta {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -22px 0 0 -22px;
  padding: 11px 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14.5px;
  font-weight: 400;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 150ms var(--ease-soft), background 200ms ease, color 200ms ease, filter 200ms ease;
  will-change: transform;
}
.cursor-cta.is-on { opacity: var(--merge-fade, 1); }
/* docked on the pill: the label shrinks into it and vanishes, so only the real
   button is left — then it springs back out on the way away */
/* scale is folded into the JS transform, so the merge state only carries colour
   and the pill's own lift; opacity comes from --merge-fade */
.cursor-cta.is-merged { filter: blur(1px); }
.work-link.is-merged {
  transform: scale(1.06) translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--yellow);
}
.cursor-cta.is-hot {
  background: var(--yellow);
  color: var(--ink);
}
.cursor-cta-arrow { font-size: 15px; }

/* the dot steps aside while the CTA cursor is showing */
body.cta-cursor .cursor-dot { opacity: 0; }
.cursor-dot { transition: opacity 160ms ease; }

@media (prefers-reduced-motion: reduce), (pointer: coarse) {
  .cursor-cta { display: none; }
}

/* the touch wording only appears on phones (mobile.css turns it on) */
.hint-touch { display: none; }

.contact-footnote {
  position: relative;
  z-index: 5;
  margin: 0;
  padding: clamp(12px, 1.8vh, 18px) clamp(20px, 4vw, 56px);
  border-top: 2px solid rgb(16 20 23 / 0.14);
  background: rgb(255 248 223 / 0.86);
  backdrop-filter: blur(4px);
  text-align: center;
  font-size: 11px;
  color: rgb(16 20 23 / 0.5);
}
.contact-footnote a { color: rgb(16 20 23 / 0.7); }

@media (max-width: 900px) {
  .contact-portrait { width: min(560px, 100%); }
  .contact-hero { margin-bottom: clamp(-70px, -12vw, -40px); }
}


/* ---------- scroll performance ----------
   Large viewports were the worst case: more of the page is on screen at once, so
   every frame re-laid-out and repainted sections the reader had already passed.
   Containment scopes each section's layout and paint to itself. The hero, intro and
   ride are excluded on purpose — they use fixed/sticky layers that must escape their
   own bounds, and containment would clip them. */
.pitch,
.lab,
.voices,
.contact {
  contain: layout paint style;
}

/* NB: no content-visibility on .ws-shot/.ws-arrow — those images are sized from
   their intrinsic aspect ratio inside container-query bounds (width/height:auto),
   so a placeholder size squares them off and object-fit letterboxes the result.
   They already defer loading via loading="lazy". */


/* ---------- off-screen animation gate (see script.js) ----------
   Paused rather than removed, so an element resumes exactly where it left off
   when it scrolls back into view. */
[data-anim-gate].anim-off,
[data-anim-gate].anim-off *,
[data-anim-gate].anim-off *::before,
[data-anim-gate].anim-off *::after {
  animation-play-state: paused !important;
}
