/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --bg: #fff7e9;        /* warm cream */
  --ink: #16213e;       /* deep navy */
  --accent: #2155f5;    /* electric blue (big blocks) */
  --accent-text: #2155f5; /* electric blue used as text on --bg */
  --on-accent: #fff7e9;
  --hot: #ff7733;       /* orange highlights */
  --on-hot: #16213e;
  --tint-blue: #dbe4ff;  /* soft blue */
  --tint-peach: #ffd9c2; /* soft peach */
  --frame-c: #16213e;
  --page-bg: #fff7e9;
  --page-ink: #16213e;
  --frame: clamp(8px, 1.3vw, 18px);
  --gutter: clamp(16px, 2vw, 32px);

  --f-display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --f-serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --ease: cubic-bezier(0.7, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.2, 0.8, 0.1, 1);
  color-scheme: light;
}

/* Dark: navy background, cream type */
:root[data-theme="dark"] {
  --bg: #0f1730;
  --ink: #fff7e9;
  --accent-text: #7b97ff;
  --tint-blue: #b9c8ff;
  --tint-peach: #ffc9a8;
  --frame-c: #080d1d;
  --page-bg: #0f1730;
  --page-ink: #fff7e9;
  color-scheme: dark;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--frame-c);
  color: var(--ink);
  font-family: var(--f-serif);
  font-size: 18px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.5s var(--ease);
}

.page {
  position: relative;
  margin: 0 var(--frame);
  background: var(--bg);
  overflow-x: clip;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}

::selection { background: var(--accent); color: var(--on-accent); }

a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.mono {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.u {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.4s var(--ease);
}
.u:hover { background-size: 0 1px; background-position: 100% 100%; }

/* Fit-to-width display type (sized in JS) */
.fit {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--f-display);
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: -0.005em;
  font-size: 12vw; /* fallback before JS sizing */
}

.label {
  background: var(--ink);
  color: var(--bg);
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-align: center;
  padding: 7px 10px 6px;
}

.hatch {
  background-image: repeating-linear-gradient(-45deg, var(--ink) 0 1.2px, transparent 1.2px 13px);
}

/* Sections off screen pause their looping animations (big perf win) */
.is-offscreen, .is-offscreen *, .is-offscreen *::before, .is-offscreen *::after { animation-play-state: paused !important; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

/* Scroll progress square on the right frame */
.progress {
  position: fixed;
  z-index: 60;
  right: calc(var(--frame) / 2 - 4px);
  top: 0;
  width: 8px;
  height: 8px;
  background: var(--hot);
  will-change: transform;
}

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: fixed;
  z-index: 50;
  top: 0;
  left: var(--frame);
  right: var(--frame);
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-101%);
  transition: transform 0.6s var(--ease);
}
.nav.is-visible, .nav.is-open { transform: none; }
.nav__logo { font-family: var(--f-display); font-size: 22px; letter-spacing: 0.02em; text-transform: uppercase; }
.nav__links { display: flex; gap: clamp(14px, 2.4vw, 36px); }
.nav__links a, .nav__menu {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
}
.nav__links a::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  background: currentColor;
  transform: scale(0);
  transition: transform 0.3s var(--ease);
}
.nav__links a:hover::before, .nav__links a.is-active::before { transform: scale(1); }
.nav__menu { display: none; }

.menu {
  position: fixed;
  z-index: 45;
  inset: 0 var(--frame);
  padding: 80px var(--gutter) 40px;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: flex-end;
}
.menu[hidden] { display: none; }
.menu ul { width: 100%; }
.menu li { border-top: 1px solid var(--bg); }
.menu a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--f-display);
  text-transform: uppercase;
  font-size: clamp(44px, 13vw, 96px);
  line-height: 1;
  padding: 10px 0 6px;
}
.menu a span { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; }

/* ==========================================================================
   Header
   ========================================================================== */
.topbar {
  display: grid;
  grid-template-columns: auto 1fr minmax(0, 360px) 52px 52px 52px;
  height: 88px;
  border-bottom: 1px solid var(--ink);
}
.topbar > * + * { border-left: 1px solid var(--ink); }
.topbar__logo {
  display: grid;
  place-items: center;
  padding: 0 clamp(16px, 2vw, 28px);
  font-family: var(--f-display);
  text-transform: uppercase;
  white-space: nowrap;
  font-size: clamp(24px, 2.4vw, 36px);
  letter-spacing: -0.01em;
  transition: background-color 0.3s, color 0.3s;
}
.topbar__logo:hover { background: var(--ink); color: var(--bg); }
.topbar__info { display: grid; grid-template-rows: 1fr 1fr; }
.topbar__info p {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 18px;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
}
.topbar__info p + p { border-top: 1px solid var(--ink); }
.topbar__info .arrow { display: inline-block; transition: transform 0.4s var(--ease); }
.topbar__info p:hover .arrow { transform: translateX(4px); }
.topbar__icons { display: grid; grid-template-rows: 1fr 1fr; }
.topbar__icons a, .topbar__theme {
  display: grid;
  place-items: center;
  transition: background-color 0.3s, color 0.3s;
}
.topbar__icons a + a { border-top: 1px solid var(--ink); }
.topbar__icons a:hover, .topbar__theme:hover { background: var(--ink); color: var(--bg); }
.topbar svg { width: 18px; height: 18px; }
.theme-toggle svg { width: 20px; height: 20px; transition: transform 0.6s var(--ease); }
:root[data-theme="dark"] .theme-toggle svg { transform: rotate(180deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero__waves {
  height: clamp(220px, 44vh, 480px);
  border-bottom: 1px solid var(--ink);
}
.hero__waves canvas { display: block; width: 100%; height: 100%; }

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

.hero__title {
  padding: clamp(18px, 2.4vw, 36px) var(--gutter) clamp(10px, 1.4vw, 20px);
  border-bottom: 1px solid var(--ink);
}
.hero__title .fit { line-height: 0.94; }
.hero__title .line:nth-child(2) { color: var(--accent-text); }
.hero__title .line { display: block; overflow: hidden; }
@media (min-width: 700px) {
  .hero__title .line { display: inline-block; vertical-align: top; }
  .hero__title .line + .line { margin-left: 0.06em; }
  .hero__title .star { margin-right: 0.04em; }
}
.hero__title .line > span { display: inline-block; vertical-align: top; }
.js .hero__title .line > span,
.js .hero__title .star { transform: translateY(105%); transition: transform 1.3s var(--ease-out); }
.js .hero__title .line:nth-child(2) > span { transition-delay: 0.1s; }
.js .hero__title .star { transition-delay: 0.25s; }
.is-loaded .hero__title .line > span,
.is-loaded .hero__title .star { transform: none; }
.star {
  display: inline-block;
  width: 0.42em;
  height: 0.42em;
  margin-left: 0.18em;
  vertical-align: 0.22em;
  fill: var(--hot);
}
.star path { transform-origin: 50% 50%; animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: clamp(14px, 1.6vw, 22px) var(--gutter);
  border-bottom: 1px solid var(--ink);
}
.hero__intro { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.25; max-width: 56ch; }
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px 12px;
  border-radius: 99px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--f-display);
  text-transform: uppercase;
  font-size: 19px;
  white-space: nowrap;
  transition: background-color 0.3s, color 0.3s, transform 0.4s var(--ease-out);
}
.hero__cta span { transition: transform 0.4s var(--ease-out); }
.hero__cta:hover { background: var(--hot); color: var(--on-hot); transform: translateY(-2px); }
.hero__cta:hover span { transform: translateX(4px); }
@keyframes bob { 50% { transform: translateY(4px); } }

/* ==========================================================================
   About — scroll-told story, portrait with stickers, number tiles
   ========================================================================== */
.about {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(80px, 14vh, 160px) var(--gutter) clamp(60px, 10vh, 120px);
}

/* The window corridor continues onto the bottom of About, so there's no seam */
.about__tunnel {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-mask: linear-gradient(to bottom, transparent 30%, #000 88%);
  mask: linear-gradient(to bottom, transparent 30%, #000 88%);
}
/* About folds up on its bottom edge like a ceiling as you head into the corridor */
.about { transform-origin: 50% 100%; will-change: transform; }

/* Soft drifting color glows */
.about__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.about__glow span {
  position: absolute;
  width: clamp(280px, 42vw, 640px);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.32;
  will-change: transform;
  animation: drift 18s ease-in-out infinite alternate;
}
.about__glow span:nth-child(1) { background: radial-gradient(closest-side, var(--accent), transparent); top: -10%; left: -12%; }
.about__glow span:nth-child(2) { background: radial-gradient(closest-side, var(--hot), transparent); top: 30%; right: -14%; animation-duration: 22s; animation-delay: -6s; opacity: 0.28; }
.about__glow span:nth-child(3) { background: radial-gradient(closest-side, var(--tint-blue), transparent); bottom: -16%; left: 30%; animation-duration: 26s; opacity: 0.8; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6vw, 4vh) scale(1.12); }
  100% { transform: translate(-4vw, 8vh) scale(0.94); }
}

.about__grid {
  transform-origin: 50% 100%;
  will-change: transform, opacity;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(32px, 6vw, 110px);
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
}
.about__kicker { display: flex; align-items: center; gap: 10px; margin-bottom: clamp(20px, 3vw, 36px); }
.about__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 0 4px color-mix(in srgb, var(--hot) 25%, transparent); animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--hot) 0%, transparent); } }

/* Story text: words light up as they scroll past */
.about__story {
  font-size: clamp(26px, 2.6vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.01em;
}
.about__story .w { opacity: 0.14; transition: opacity 0.45s var(--ease-out), color 0.45s; }
.about__story .w.on { opacity: 1; }
.about__story .w.hi.on { color: var(--accent-text); font-style: italic; }

/* Inline pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.28em;
  padding: 0.04em 0.42em 0.06em;
  margin: 0 0.04em;
  border-radius: 99px;
  font-size: 0.82em;
  line-height: 1.15;
  vertical-align: 0.06em;
  white-space: nowrap;
  transform: scale(0.6) rotate(-6deg);
  transition: opacity 0.45s var(--ease-out), transform 0.7s cubic-bezier(0.34, 1.7, 0.5, 1);
}
.pill.on { transform: rotate(var(--rot, -2deg)); }
.pill img { width: 1.15em; height: 1.15em; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.pill--blue { background: var(--accent); color: var(--on-accent); --rot: -2deg; }
.pill--orange { background: var(--hot); color: var(--on-hot); --rot: 2deg; }
.pill--navy { background: var(--ink); color: var(--bg); --rot: -1.5deg; }
.pill--peach { background: var(--tint-peach); color: #16213e; --rot: 1.5deg; }
.pill--tint { background: var(--tint-blue); color: #16213e; --rot: -1deg; }
.pill--photo { background: var(--tint-blue); color: #16213e; padding-left: 0.12em; --rot: -3deg; }
.pill--logo { background: #f4f1ec; color: #16213e; padding-left: 0.12em; border: 1px solid #16213e22; --rot: 2deg; }
.pill--logo img { border-radius: 50%; background: #f4f1ec; object-fit: contain; }

.about__foot { margin-top: clamp(28px, 4vw, 52px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.about__links { display: flex; gap: 10px; flex-wrap: wrap; }
.pill-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 13px 20px 12px;
  border-radius: 99px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background-color 0.3s, color 0.3s, transform 0.4s var(--ease-out);
}
.pill-link span { transition: transform 0.4s var(--ease-out); }
.pill-link:hover { background: var(--accent); color: var(--on-accent); transform: translateY(-2px); }
.pill-link:hover span { transform: translateX(4px); }
.pill-link--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pill-link--ghost:hover { background: var(--hot); color: var(--on-hot); box-shadow: none; }

/* Portrait */
.about__visual { position: sticky; top: 14vh; }
.portrait { position: relative; width: min(100%, 360px); margin: 0 auto; aspect-ratio: 4 / 5; }
.portrait__blob {
  position: absolute;
  inset: -6% -8%;
  border-radius: 46% 54% 52% 48% / 52% 44% 56% 48%;
  background: conic-gradient(from 0deg, var(--accent), var(--hot), var(--tint-peach), var(--tint-blue), var(--accent));
  -webkit-mask: radial-gradient(closest-side, #000 55%, transparent 100%);
  mask: radial-gradient(closest-side, #000 55%, transparent 100%);
  opacity: 0.6;
  will-change: transform;
  animation: blob 14s linear infinite;
}
@keyframes blob {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.06); }
  100% { transform: rotate(360deg) scale(1); }
}
.portrait__viewfinder { position: absolute; inset: -14px; pointer-events: none; z-index: 2; }
.portrait__viewfinder i { position: absolute; width: 26px; height: 26px; border: 0 solid var(--ink); }
.portrait__viewfinder i:nth-child(1) { left: 0; top: 0; border-width: 2px 0 0 2px; }
.portrait__viewfinder i:nth-child(2) { right: 0; top: 0; border-width: 2px 2px 0 0; }
.portrait__viewfinder i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 2px 2px; }
.portrait__viewfinder i:nth-child(4) { right: 0; bottom: 0; border-width: 0 2px 2px 0; }
.portrait__viewfinder span { position: absolute; top: -22px; font-size: 10px; }
.portrait__viewfinder span:first-of-type { left: 2px; color: var(--hot); animation: blink 1.4s steps(2) infinite; }
.portrait__viewfinder span:last-of-type { right: 2px; }
.portrait__frame {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 999px 999px 28px 28px;
  border: 1.5px solid var(--ink);
  background: var(--tint-blue);
  box-shadow: 0 30px 60px -24px rgba(22, 33, 62, 0.5);
  transform: translate(var(--mx, 0), var(--my, 0));
  transition: transform 0.6s var(--ease-out);
}
.portrait__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transform: scale(1.06); transition: transform 1.2s var(--ease-out); }
.portrait:hover .portrait__frame img { transform: scale(1.12); }
.js .portrait__frame { clip-path: inset(100% 0 0 0 round 999px 999px 28px 28px); transition: clip-path 1.4s var(--ease-out), transform 0.6s var(--ease-out); }
.js .portrait.in .portrait__frame { clip-path: inset(0 0 0 0 round 999px 999px 28px 28px); }

.portrait__badge {
  position: absolute;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transform: translate(var(--dx, 0px), var(--dy, 0px));
  z-index: 3;
  right: -7%;
  bottom: 9%;
  width: clamp(96px, 9vw, 132px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--hot);
  color: var(--on-hot);
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px -12px rgba(22, 33, 62, 0.55);
}
.portrait__badge svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 16s linear infinite; }
.portrait__badge text { font-family: var(--f-mono); font-size: 17px; font-weight: 500; letter-spacing: 0; text-transform: uppercase; fill: currentColor; }
.portrait__badge-star { width: 28%; animation: spin 6s linear infinite reverse; }
.portrait__badge-star svg { display: block; width: 100%; fill: currentColor; }

/* Draggable stickers */
.stickers { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.sticker {
  position: absolute;
  left: var(--x);
  top: var(--y);
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transform: translate(var(--px, 0px), var(--py, 0px)) translate(var(--dx, 0px), var(--dy, 0px));
}
.sticker.is-dragging, .portrait__badge.is-dragging { cursor: grabbing; z-index: 5; }
.sticker span {
  display: block;
  padding: 9px 15px 8px;
  border-radius: 99px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(var(--r, 0deg)) scale(0);
  box-shadow: 0 10px 22px -10px rgba(22, 33, 62, 0.55);
  transition: transform 0.7s cubic-bezier(0.34, 1.7, 0.5, 1) var(--d, 0s), box-shadow 0.3s;
}
.portrait.in .sticker span { transform: rotate(var(--r, 0deg)) scale(1); animation: bob 4s ease-in-out infinite; animation-delay: var(--d, 0s); }
.sticker.is-dragging span { transform: rotate(0deg) scale(1.08) !important; animation: none; box-shadow: 0 18px 30px -10px rgba(22, 33, 62, 0.6); }
.tone-blue { background: var(--accent); color: var(--on-accent); }
.tone-orange { background: var(--hot); color: var(--on-hot); }
.tone-navy { background: var(--ink); color: var(--bg); }
.tone-tint { background: var(--tint-blue); color: #16213e; }
.tone-peach { background: var(--tint-peach); color: #16213e; }
.tone-cream { background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.about__drag-hint { text-align: center; margin-top: 22px; opacity: 0.55; }

/* Number tiles */
.numbers-sec { padding: clamp(36px, 5vw, 72px) var(--gutter); border-bottom: 1px solid var(--ink); }
.numbers { max-width: 1200px; margin: 0 auto; }
.numbers__head { display: flex; justify-content: space-between; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--ink); }
.numbers__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); perspective: 900px; }
.num-tile {
  position: relative;
  overflow: hidden;
  min-height: clamp(140px, 12.5vw, 184px);
  padding: clamp(16px, 1.6vw, 22px);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.5s var(--ease-out), box-shadow 0.4s;
}
.js .num-tile { opacity: 0; translate: 0 40px; transition: transform 0.5s var(--ease-out), box-shadow 0.4s, opacity 0.9s var(--ease-out) calc(var(--i, 0) * 70ms), translate 1s var(--ease-out) calc(var(--i, 0) * 70ms); }
.js .num-tile.in { opacity: 1; translate: 0 0; }
.num-tile:hover { box-shadow: 0 24px 40px -22px rgba(22, 33, 62, 0.6); }
.num-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.28), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.num-tile:hover::after { opacity: 1; }
.num-tile__index { display: flex; justify-content: space-between; opacity: 0.75; }
.num-tile__value { font-family: var(--f-display); font-size: clamp(48px, 5vw, 84px); line-height: 0.85; font-variant-numeric: tabular-nums; margin-top: 18px; }
.num-tile__label { font-size: clamp(15px, 1.15vw, 18px); line-height: 1.15; margin-top: 8px; max-width: 22ch; }
.num-tile.tone-cream { box-shadow: inset 0 0 0 1px var(--ink); }

.placeholder-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
}
.corner-marks::before, .corner-marks::after {
  content: "+";
  position: absolute;
  font-family: var(--f-mono);
  font-size: 14px;
  line-height: 1;
}
.corner-marks::before { top: 8px; left: 9px; }
.corner-marks::after { bottom: 8px; right: 9px; }

/* ==========================================================================
   Section heads (shared)
   ========================================================================== */
.section-head {
  padding: clamp(32px, 4vw, 64px) var(--gutter) 0;
  border-bottom: 1px solid var(--ink);
}
.section-head h2 { line-height: 0; }
.section-head__meta {
  display: flex;
  justify-content: space-between;
  padding: 14px 0 12px;
  margin-top: clamp(8px, 1vw, 14px);
  border-top: 1px solid var(--ink);
}

/* ==========================================================================
   Experience
   ========================================================================== */
.xp-row {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 56px 150px 1.1fr 1.3fr 32px;
  gap: clamp(16px, 2vw, 32px);
  padding: clamp(14px, 1.6vw, 22px) var(--gutter);
  border-bottom: 1px solid var(--ink);
  transition: color 0.45s var(--ease);
}
.xp-row::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.55s var(--ease);
}
.xp-row:hover { color: var(--on-accent); }
.xp-row:hover::before { transform: scaleY(1); transform-origin: 50% 0; }
.xp-row .mono { padding-top: 8px; }
.xp__role { font-size: clamp(20px, 1.7vw, 25px); line-height: 1.05; }
.xp__company {
  margin-top: 6px;
  font-family: var(--f-display);
  text-transform: uppercase;
  font-size: clamp(15px, 1.15vw, 17px);
  letter-spacing: 0.01em;
  line-height: 1;
}
.xp__company small { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.08em; margin-left: 8px; vertical-align: 2px; opacity: 0.8; }
.xp__desc { font-size: clamp(15px, 1.05vw, 16px); padding-top: 4px; max-width: 52ch; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  border-radius: 99px;
  padding: 4px 9px 3px;
}
.xp-more {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px var(--gutter);
  border-bottom: 1px solid var(--ink);
  font-size: 11px;
  transition: background-color 0.3s, color 0.3s;
}
.xp-more i { font-style: normal; font-size: 20px; transition: transform 0.4s var(--ease-out); }
.xp-more[aria-expanded="true"] i { transform: rotate(45deg); }
.xp-more:hover { background: var(--ink); color: var(--bg); }
.xp--early .xp-row { opacity: 0.85; }
.xp__arrow { font-size: 26px; line-height: 1; padding-top: 4px; transition: transform 0.5s var(--ease); justify-self: end; }
.xp-row:hover .xp__arrow { transform: rotate(45deg); }

/* ==========================================================================
   Work — window intro
   ========================================================================== */
/* Arch overlay that sits on top of the ring stage, expands, then fades away */
.orbit__intro {
  position: absolute;
  inset: 0;
  z-index: 6;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  background-color: var(--page-bg);
  background-image:
    linear-gradient(to right, var(--page-ink) 1px, transparent 1px),
    linear-gradient(to bottom, var(--page-ink) 1px, transparent 1px);
  background-size: calc(100% / 12) calc(100% / 9);
  border-top: 1px solid var(--page-ink);
}
.orbit__intro.is-done { visibility: hidden; }
.orbit__intro-label {
  position: absolute;
  bottom: 22px;
  left: var(--gutter);
  background: var(--page-bg);
  color: var(--page-ink);
  padding: 6px 8px;
}
.orbit__intro-label--r { left: auto; right: var(--gutter); }

/* ==========================================================================
   Work — section
   ========================================================================== */
.work {
  --ink: var(--accent);
  --bg: var(--on-accent);
  background: var(--ink);
  color: var(--bg);
  margin-top: -1px;
}
.work__title {
  font-family: var(--f-display);
  text-transform: uppercase;
  font-size: clamp(56px, 8vw, 132px);
  line-height: 0.85;
}
.work__title sup { font-size: 12px; vertical-align: top; margin-left: 6px; position: relative; top: 0.6em; }
@keyframes blink { 50% { opacity: 0; } }

/* ==========================================================================
   Work — 3D video ring ("orbit")
   ========================================================================== */
.orbit { position: relative; height: calc(var(--n, 6) * 34vh + 146vh); }
.orbit__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.orbit__head {
  position: absolute;
  z-index: 3;
  top: calc(46px + 2.5vh);
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}
.orbit .work__title { font-size: clamp(44px, 5vw, 84px); }
.orbit__meta { text-align: right; }
.orbit__count { font-family: var(--f-display); font-size: clamp(40px, 4.4vw, 72px); line-height: 0.85; }
.orbit__count small { font-size: 0.38em; margin-left: 4px; opacity: 0.7; }
.orbit__hint { margin-top: 10px; opacity: 0.85; }

.orbit__scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  perspective: 1300px;
  perspective-origin: 50% 42%;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.orbit__scene.is-dragging { cursor: grabbing; }
.orbit__tilt {
  position: relative;
  width: var(--w, 220px);
  height: var(--h, 390px);
  transform-style: preserve-3d;
  margin-top: -4vh;
}
.orbit__ring, .orbit__words { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }

.orb-card {
  position: absolute;
  inset: 0;
  padding: 0;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--bg);
  transform: rotateY(var(--a)) translateZ(var(--r)) scale(var(--s, 1));
  filter: brightness(var(--b, 1)) saturate(var(--sat, 1));
  transition: box-shadow 0.4s var(--ease), border-color 0.4s;
  -webkit-box-reflect: below 14px linear-gradient(transparent 72%, rgba(255, 255, 255, 0.16));
}
.orb-card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.orb-card.is-front { border-color: var(--hot); box-shadow: 0 0 0 1px var(--hot), 0 40px 80px -20px rgba(5, 10, 40, 0.55); }
.orb-card__top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 9px 10px;
  color: #fff;
  font-size: 10px;
  background: linear-gradient(rgba(0, 0, 0, 0.45), transparent);
}
.orb-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--hot);
  transform: scale(0);
  transition: transform 0.5s var(--ease-out);
}
.orb-card__play svg { width: 18px; height: 18px; fill: var(--on-hot); margin-left: 3px; }
.orb-card.is-front .orb-card__play { transform: scale(1); }
.orb-card.is-front:hover .orb-card__play { transform: scale(1.12); }

.orb-letter {
  position: absolute;
  left: 50%;
  top: 50%;
  font-family: var(--f-display);
  text-transform: uppercase;
  font-size: var(--fs, 60px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 247, 233, 0.6);
  transform: translate(-50%, -50%) rotateY(var(--a)) translateZ(var(--r2));
  opacity: calc(var(--wo, 1) * var(--lo, 1));
  pointer-events: none;
}
.orb-letter.is-star { -webkit-text-stroke: 1.5px var(--hot); font-size: calc(var(--fs, 60px) * 0.62); }

.orbit__floor {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--fw, 900px);
  height: var(--fw, 900px);
  margin: calc(var(--fw, 900px) / -2) 0 0 calc(var(--fw, 900px) / -2);
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, transparent 0 46px, rgba(255, 247, 233, 0.28) 46px 47px),
    repeating-conic-gradient(rgba(255, 247, 233, 0.22) 0 0.35deg, transparent 0.35deg 10deg);
  -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%);
  mask: radial-gradient(circle, #000 30%, transparent 70%);
  pointer-events: none;
}

.orbit__info, .orbit__views { position: absolute; z-index: 3; bottom: calc(52px + 3vh); }
.orbit__info { left: var(--gutter); width: min(360px, 42vw); }
.orbit__views { right: var(--gutter); text-align: right; }
.orbit__info.is-in > *, .orbit__views.is-in > * { animation: info-in 0.7s var(--ease-out) both; }
.orbit__info.is-in > :nth-child(2), .orbit__views.is-in > :nth-child(2) { animation-delay: 0.05s; }
.orbit__info.is-in > :nth-child(3) { animation-delay: 0.1s; }
.orbit__info.is-in > :nth-child(4) { animation-delay: 0.15s; }
@keyframes info-in { from { opacity: 0; transform: translateY(14px); } }
.orbit__brand { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(30px, 3.1vw, 50px); line-height: 0.9; margin-top: 10px; }
.orbit__title { font-size: clamp(16px, 1.3vw, 20px); font-style: italic; margin-top: 6px; }
.orbit__actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 18px; }
.orbit__play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px 10px;
  border-radius: 99px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background-color 0.3s, color 0.3s;
}
.orbit__play svg { width: 11px; height: 11px; fill: currentColor; }
.orbit__play:hover { background: var(--hot); color: var(--on-hot); }
.orbit__actions a { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; }
.orbit__views-num { font-family: var(--f-display); font-size: clamp(56px, 6.8vw, 112px); line-height: 0.82; font-variant-numeric: tabular-nums; }
.orbit__views .mono { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; }
.orbit__views .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hot); animation: blink 1.4s steps(2) infinite; }

.orbit__dial {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 52px;
  border-top: 1px solid var(--bg);
  overflow: hidden;
}
.orbit__ticks {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--bg) 1px, transparent 1px),
    linear-gradient(to right, var(--bg) 1px, transparent 1px);
  background-size: 10px 10px, 100px 24px;
  background-repeat: repeat-x;
  background-position: 0 0, 0 0;
  opacity: 0.75;
}
.orbit__needle {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  margin-left: -1px;
  background: var(--hot);
}
.orbit__needle::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  border: 7px solid transparent;
  border-top: 9px solid var(--hot);
  transform: translateX(-50%);
}

/* ==========================================================================
   12 Studios
   ========================================================================== */
/* One-line statement: what 12 Studios does */
.studio__intro {
  display: grid;
  grid-template-columns: clamp(150px, 17vw, 240px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  padding: clamp(24px, 3vw, 44px) var(--gutter);
  border-bottom: 1px solid var(--ink);
}
.studio__copy { display: flex; flex-direction: column; gap: 12px; }
/* "My role" badge: the first thing you read in the 12 Studios section */
.studio__role {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  margin-bottom: 6px;
  padding: 8px 20px 8px 8px;
  border-radius: 99px;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 16px 28px -18px rgba(33, 85, 245, 0.9);
}
.studio__role img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; border: 2px solid var(--on-accent); }
.studio__role .mono { font-size: 10px; opacity: 0.85; }
.studio__role-title { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(16px, 1.5vw, 22px); line-height: 1.05; margin-top: 2px; }
.studio__headline {
  font-family: var(--f-display);
  text-transform: uppercase;
  font-size: clamp(34px, 3.8vw, 64px);
  line-height: 0.9;
  letter-spacing: 0.005em;
}
.studio__headline em { font-style: normal; color: var(--accent-text); }
.studio__desc { font-size: clamp(16px, 1.25vw, 19px); font-style: italic; max-width: 46ch; }
.studio__visit {
  align-self: flex-start;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  margin-top: 6px;
  padding: 14px 20px 12px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--f-display);
  text-transform: uppercase;
  font-size: 20px;
  border-radius: 99px;
  transition: background-color 0.3s, color 0.3s;
}
.studio__visit:hover { background: var(--hot); color: var(--on-hot); }
.studio__visit .arr { transition: transform 0.5s var(--ease); }
.studio__visit:hover .arr { transform: rotate(45deg); }

/* ==========================================================================
   Education + skills
   ========================================================================== */
.edu { border-top: 0; }
.edu__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--ink);
  margin-top: clamp(28px, 3vw, 48px);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.edu__col { background: var(--bg); }
.edu__item { padding: clamp(20px, 2.4vw, 34px) var(--gutter); }
.edu__item + .edu__item { border-top: 1px solid var(--ink); }
.edu__school {
  font-family: var(--f-display);
  text-transform: uppercase;
  font-size: clamp(28px, 2.7vw, 42px);
  line-height: 0.92;
  margin-top: 14px;
}
.edu__degree { font-style: italic; font-size: clamp(17px, 1.4vw, 21px); margin-top: 8px; }
.edu__notes { font-size: 17px; margin-top: 12px; max-width: 48ch; opacity: 0.9; }
.skill-group { padding: clamp(20px, 2.4vw, 32px) var(--gutter); }
.skill-group + .skill-group { border-top: 1px solid var(--ink); }
.skill-group h3 { margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: clamp(17px, 1.4vw, 20px);
  border: 1px solid var(--ink);
  border-radius: 99px;
  padding: 5px 14px 4px;
  transition: background-color 0.3s, color 0.3s;
  cursor: default;
}
.chip:hover { background: var(--ink); color: var(--bg); }

/* ==========================================================================
   Contact + footer
   ========================================================================== */
.contact {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: clamp(56px, 7vw, 96px) var(--gutter);
  background:
    radial-gradient(40% 50% at 50% 50%, color-mix(in srgb, var(--tint-peach) 70%, transparent), transparent 70%),
    radial-gradient(55% 60% at 50% 55%, color-mix(in srgb, var(--tint-blue) 60%, transparent), transparent 75%);
}
.contact::before, .contact::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(720px, 90vw);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent);
  animation: contact-ring 6s ease-out infinite;
  pointer-events: none;
}
.contact::after { animation-delay: -3s; }
@keyframes contact-ring { from { scale: 0.6; opacity: 0.8; } to { scale: 1.5; opacity: 0; } }
.contact__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  background: var(--bg);
  padding: clamp(32px, 4vw, 56px) clamp(24px, 5vw, 72px);
  border-radius: 28px;
  box-shadow: inset 0 0 0 1.5px var(--ink), 0 40px 70px -40px rgba(22, 33, 62, 0.55);
}
.contact__lead { font-size: clamp(16px, 1.3vw, 19px); font-style: italic; margin-top: 18px; }
.contact__options { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 16px 0 clamp(24px, 3vw, 36px); }
.contact__option {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 13px 20px 12px;
  border-radius: 99px;
  font-family: var(--f-display);
  text-transform: uppercase;
  font-size: 18px;
  transition: transform 0.4s var(--ease-out), box-shadow 0.3s;
}
.contact__option span { transition: transform 0.4s var(--ease-out); }
.contact__option:hover { transform: translateY(-3px); box-shadow: 0 16px 26px -14px rgba(22, 33, 62, 0.6); }
.contact__option:hover span { transform: translateX(4px); }
.contact__kicker { margin-bottom: 18px; }
.contact__title { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(48px, 6.4vw, 104px); line-height: 0.86; }
.contact__email { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.contact__email a { font-size: clamp(22px, 2.3vw, 34px); font-style: italic; }
.contact__alt { margin-top: 16px; opacity: 0.8; }

/* Geometry around the contact card */
.contact__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--ink) 9%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--ink) 9%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: 50% 50%;
  -webkit-mask-image: radial-gradient(60% 70% at 50% 50%, #000 20%, transparent 75%);
  mask-image: radial-gradient(60% 70% at 50% 50%, #000 20%, transparent 75%);
  pointer-events: none;
}
.contact__geo { position: absolute; inset: 0; pointer-events: none; }
.geo {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 54px;
  height: 54px;
  translate: calc(var(--mx, 0) * var(--z) * 26px) calc(var(--my, 0) * var(--z) * 26px);
  transition: translate 0.9s var(--ease-out);
  animation: geo-float calc(9s + var(--z) * 4s) ease-in-out infinite alternate;
}
@keyframes geo-float { from { transform: translateY(-8px) rotate(-8deg); } to { transform: translateY(10px) rotate(10deg); } }
.geo--circle { width: 74px; height: 74px; border-radius: 50%; border: 1.5px solid var(--ink); opacity: 0.35; }
.geo--square { width: 44px; height: 44px; border: 1.5px solid var(--accent); opacity: 0.6; rotate: 45deg; }
.geo--tri svg { width: 100%; height: 100%; fill: none; stroke: var(--hot); stroke-width: 3; opacity: 0.7; }
.geo--plus { width: 26px; height: 26px; opacity: 0.5;
  background: linear-gradient(var(--ink), var(--ink)) 50% / 100% 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) 50% / 1.5px 100% no-repeat; }
.geo--sm { width: 16px; height: 16px; }
.geo--dot { width: 12px; height: 12px; border-radius: 50%; background: var(--hot); }
.geo--blue { background: var(--accent); width: 9px; height: 9px; }
.geo--star { width: 34px; height: 34px; }
.geo--star svg { width: 100%; height: 100%; fill: var(--hot); animation: spin 12s linear infinite; }

/* Dashed outline, with two light trails running around the card */
.contact__trace { position: absolute; inset: -14px; width: calc(100% + 28px); height: calc(100% + 28px); overflow: visible; pointer-events: none; z-index: -1; }
.contact__trace rect { x: 0.75px; y: 0.75px; width: calc(100% - 1.5px); height: calc(100% - 1.5px); rx: 40px; fill: none; }
.contact__dash { stroke: color-mix(in srgb, var(--ink) 35%, transparent); stroke-width: 1; stroke-dasharray: 4 7; }
.contact__comet { stroke: var(--hot); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 70 930; animation: comet 7s linear infinite; }
.contact__comet--b { stroke: var(--accent); animation-delay: -3.5s; }
@keyframes comet { to { stroke-dashoffset: -1000; } }
.contact__corner { position: absolute; width: 22px; height: 22px; border: 0 solid var(--ink); pointer-events: none; }
.contact__corner:nth-of-type(1) { top: -30px; left: -30px; border-top-width: 1.5px; border-left-width: 1.5px; }
.contact__corner:nth-of-type(2) { top: -30px; right: -30px; border-top-width: 1.5px; border-right-width: 1.5px; }
.contact__corner:nth-of-type(3) { bottom: -30px; left: -30px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.contact__corner:nth-of-type(4) { bottom: -30px; right: -30px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
@media (max-width: 700px) {
  .geo--circle, .geo--tri, .geo--sm { display: none; }
  .contact__corner { display: none; }
  .contact__trace { inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); }
}
@media (prefers-reduced-motion: reduce) { .geo, .contact__comet, .geo--star svg { animation: none; } }
.contact__alt a { text-decoration: underline; text-underline-offset: 3px; }
.copy { border: 1px solid var(--ink); border-radius: 99px; padding: 7px 12px 6px; transition: background-color 0.3s, color 0.3s; }
.copy:hover { background: var(--ink); color: var(--bg); }

.footer { border-top: 1px solid var(--ink); overflow: hidden; }
.footer__bar { display: grid; grid-template-columns: repeat(4, 1fr); }
.footer__bar > * { padding: 16px var(--gutter); display: flex; gap: 14px; align-items: center; }
.footer__bar > * + * { border-left: 1px solid var(--ink); }
.footer__bar > a:last-child { justify-content: flex-end; }
.footer__socials a:hover, .footer__bar > a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__name {
  border-top: 1px solid var(--ink);
  padding: clamp(10px, 1.6vw, 24px) var(--gutter) 0;
  line-height: 0;
  overflow: hidden;
}
.footer__name .fit { line-height: 0.8; transform: translateY(6%); }
.footer__name { text-align: center; }
@media (min-width: 700px) {
  .footer__name { padding-bottom: clamp(18px, 2.2vw, 32px); overflow: visible; }
  .footer__name .fit { line-height: 0.9; transform: none; }
}

/* ==========================================================================
   Finale: curtain call on a little spotlit stage
   ========================================================================== */
.footer { position: relative; }
.finale {
  position: relative;
  height: clamp(190px, 17vw, 240px);
  border-top: 1px solid var(--ink);
  overflow: hidden;
}
.finale__me {
  position: absolute;
  bottom: -2px;
  left: 66%;
  width: clamp(84px, 9vw, 128px);
  translate: 60vw 0;
}
.finale__me::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 420%;
  height: 160%;
  translate: -50% 0;
  background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(255, 210, 120, 0.55), transparent 70%);
  opacity: 0;
  transition: opacity 1.2s;
  z-index: -1;
}
.footer.is-live .finale__me::before { opacity: 1; }
.finale.is-walking .finale__me { animation: walk-in 2.4s cubic-bezier(0.25, 0.6, 0.35, 1) forwards; }
.finale.is-waving .finale__me { translate: 0 0; }
@keyframes walk-in { from { translate: 60vw 0; } to { translate: 0 0; } }
.finale__svg { display: block; width: 100%; height: auto; overflow: visible; }
.finale__flip { transform: scale(-1, 1); }
/* walking */
.finale.is-walking [data-j="legF"] { animation: fin-leg 0.42s ease-in-out infinite alternate; }
.finale.is-walking [data-j="legB"] { animation: fin-leg 0.42s ease-in-out infinite alternate-reverse; }
.finale.is-walking [data-j="shinF"], .finale.is-walking [data-j="shinB"] { transform: rotate(12deg); }
.finale.is-walking [data-j="armF"] { animation: fin-leg 0.42s ease-in-out infinite alternate-reverse; }
.finale.is-walking [data-j="armB"] { animation: fin-leg 0.42s ease-in-out infinite alternate; }
.finale.is-walking .me__body { animation: fin-bob 0.21s ease-in-out infinite alternate; }
@keyframes fin-leg { from { transform: rotate(-22deg); } to { transform: rotate(22deg); } }
@keyframes fin-bob { to { transform: translateY(-2px); } }
/* waving */
.finale.is-waving [data-j="armB"] { transform: rotate(116deg); }
.finale.is-waving [data-j="foreB"] { animation: fin-wave 0.4s ease-in-out infinite alternate; }
.finale.is-waving [data-j="armF"] { transform: rotate(6deg); }
.finale.is-waving [data-j="head"] { transform: rotate(-5deg); }
@keyframes fin-wave { from { transform: rotate(-6deg); } to { transform: rotate(48deg); } }
.finale__bubble {
  position: absolute;
  right: 92%;
  top: -6%;
  width: max-content;
  max-width: min(320px, 55vw);
  padding: 10px 14px 9px;
  border-radius: 16px 16px 4px 16px;
  background: var(--ink);
  color: var(--bg);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.2;
  opacity: 0;
  scale: 0.6;
  transform-origin: 100% 100%;
  transition: opacity 0.3s, scale 0.5s cubic-bezier(0.34, 1.7, 0.5, 1);
}
.finale.is-waving .finale__bubble { opacity: 1; scale: 1; transition-delay: 0.2s; }
.finale__hint { position: absolute; left: var(--gutter); bottom: 14px; opacity: 0; transition: opacity 0.8s 1.6s; }

/* Drum kit you can play */
.drums {
  position: absolute;
  left: var(--gutter);
  bottom: 40px;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  opacity: 0;
  translate: 0 24px;
  transition: opacity 0.6s 1s, translate 0.8s cubic-bezier(0.34, 1.5, 0.5, 1) 1s;
}
.footer.is-live .drums { opacity: 1; translate: 0 0; }
.drum { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.drum span { font-size: 9.5px; opacity: 0.75; }
.drum i {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-style: normal;
  transition: transform 0.2s;
}
.drum i::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 2px solid var(--hot);
  opacity: 0;
}
.drum.is-hit i { animation: drum-hit 0.28s cubic-bezier(0.34, 1.7, 0.5, 1); }
.drum.is-hit i::before { animation: drum-ring 0.5s ease-out; }
@keyframes drum-hit { 35% { scale: 1.08 0.88; } }
@keyframes drum-ring { from { opacity: 0.9; scale: 1; } to { opacity: 0; scale: 1.6; } }
.drum:hover i { transform: translateY(-2px); }
.drum--hat i { width: 56px; height: 14px; margin-bottom: 26px; background: linear-gradient(#ffe3a0, #d9a441); box-shadow: inset 0 0 0 1.5px #16213e; }
.drum--hat i::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 26px; margin-left: -1px; background: var(--ink); }
.drum--snare i { width: 60px; height: 60px; background: var(--bg); box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 8px var(--tint-blue), 0 10px 18px -12px rgba(22, 33, 62, 0.7); }
.drum--kick i { width: 84px; height: 84px; background: var(--accent); color: var(--on-accent); font-size: 22px; box-shadow: inset 0 0 0 3px #16213e, inset 0 0 0 10px var(--hot), 0 12px 22px -12px rgba(22, 33, 62, 0.7); }
.finale.is-jam .me__body { animation: fin-bob 0.12s ease-out 2 alternate; }
.music-note {
  position: absolute;
  z-index: 6;
  font-size: 22px;
  line-height: 1;
  color: var(--accent-text);
  pointer-events: none;
  animation: note-up 1.2s ease-out forwards;
}
.music-note:nth-of-type(2n) { color: var(--hot); }
@keyframes note-up {
  0% { transform: translate(0, 0) scale(0.6); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translate(var(--dx), -100px) rotate(18deg) scale(1); opacity: 0; }
}
.footer.is-live .finale__hint { opacity: 0.75; }

/* The giant name: letters drop in, then play like piano keys */
.footer__name .ch {
  display: inline-block;
  transform-origin: 50% 100%;
  transform: translateY(calc(var(--lift, 0) * -1em)) rotate(calc(var(--tilt, 0) * 1deg));
  transition: transform 0.35s cubic-bezier(0.34, 1.6, 0.5, 1), color 0.25s;
  cursor: pointer;
}
.footer__name .ch--space { width: 0.22em; cursor: default; }
.js .footer__name .ch { translate: 0 -115%; opacity: 0; }
.footer.is-live .footer__name .ch { animation: fin-drop 0.9s cubic-bezier(0.34, 1.45, 0.5, 1) both; animation-delay: calc(var(--i, 0) * 75ms + 0.15s); }
@keyframes fin-drop { from { translate: 0 -115%; opacity: 1; } to { translate: 0 0; opacity: 1; } }
.footer.is-live .footer__name .ch { translate: 0 0; opacity: 1; }
.footer__name .ch.is-struck,
.footer.is-live .footer__name .ch.is-struck { color: var(--accent-text); animation: fin-strike 0.5s cubic-bezier(0.34, 1.6, 0.5, 1); }
@keyframes fin-strike { 35% { scale: 1.05 0.9; } 100% { scale: 1 1; } }
.confetti {
  position: absolute;
  top: 0;
  z-index: 5;
  line-height: 1;
  pointer-events: none;
  animation: fin-fall 2.4s cubic-bezier(0.2, 0.6, 0.4, 1) both;
}
@keyframes fin-fall {
  from { transform: translate(0, -20px) rotate(0deg); opacity: 1; }
  to { transform: translate(var(--dx), 380px) rotate(var(--r)); opacity: 0; }
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  border: 0;
  padding: 0;
  max-width: none;
  max-height: none;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  background: transparent;
  color: var(--bg);
}
.lightbox::backdrop { background: color-mix(in srgb, var(--ink) 94%, transparent); }
:root[data-theme="dark"] .lightbox::backdrop { background: rgba(6, 10, 24, 0.95); }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.lightbox__media { height: min(80vh, 760px); aspect-ratio: 9 / 16; max-width: 92vw; border: 1px solid var(--bg); position: relative; background: #000; }
.lightbox__media video, .lightbox__media iframe { display: block; width: 100%; height: 100%; object-fit: contain; border: 0; }
.lightbox__media.is-embed { aspect-ratio: auto; width: min(420px, 92vw); height: min(86vh, 780px); background: #fff; }
.lightbox__media.is-image { aspect-ratio: auto; height: auto; width: auto; max-height: 86vh; background: none; border: 0; }
.lightbox__media.is-image img { max-height: 86vh; max-width: 92vw; width: auto; height: auto; }
.lightbox__caption a { text-decoration: underline; text-underline-offset: 3px; }
.lightbox__media .placeholder-art { background: var(--ink); color: var(--bg); padding: 24px; line-height: 1.5; }
:root[data-theme="dark"] .lightbox, :root[data-theme="dark"] .lightbox__media { color: var(--ink); border-color: var(--ink); }
:root[data-theme="dark"] .lightbox__media .placeholder-art { background: var(--bg); color: var(--ink); }
.lightbox__close { position: absolute; top: 18px; right: 22px; color: inherit; }
.lightbox__caption { text-align: center; }

/* ==========================================================================
   Custom cursor
   ========================================================================== */
.has-cursor, .has-cursor * { cursor: none !important; }
.cursor { display: none; }
.has-cursor .cursor {
  display: block;
  position: fixed;
  z-index: 200;
  left: 0;
  top: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.cursor.is-visible { opacity: 1; }
.cursor__star {
  position: absolute;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  fill: var(--hot);
  stroke: var(--page-ink);
  stroke-width: 5px;
  paint-order: stroke;
  transform: rotate(var(--spin, 0deg)) scale(1);
  transition: transform 0.35s cubic-bezier(0.34, 1.6, 0.5, 1), fill 0.3s;
}
.cursor.is-active .cursor__star { transform: rotate(var(--spin, 0deg)) scale(1.9); fill: var(--accent); }
.cursor.is-click .cursor__star { animation: cursor-click 0.35s var(--ease-out); }
@keyframes cursor-click { 40% { transform: rotate(var(--spin, 0deg)) scale(0.6); } }
.cursor__label {
  position: absolute;
  left: 22px;
  top: 14px;
  padding: 5px 9px 4px;
  border-radius: 99px;
  background: var(--page-ink);
  color: var(--page-bg);
  font-size: 10px;
  white-space: nowrap;
  opacity: 0;
  transform: scale(0.6);
  transform-origin: 0 0;
  transition: opacity 0.25s, transform 0.35s cubic-bezier(0.34, 1.6, 0.5, 1);
}
.cursor.has-label .cursor__label { opacity: 1; transform: none; }
.cursor-spark {
  position: fixed;
  z-index: 199;
  pointer-events: none;
  color: var(--hot);
  font-size: 11px;
  line-height: 1;
  transform: translate(-50%, -50%);
  animation: spark 0.6s var(--ease-out) forwards;
}
@keyframes spark { to { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0.3) rotate(90deg); opacity: 0; } }

/* ==========================================================================
   Header marks (UCLA, 12 Studios)
   ========================================================================== */
.mark { font-family: var(--f-display); line-height: 1; letter-spacing: 0.02em; }
.mark--ucla { font-size: 13px; letter-spacing: 0.06em; }
.mark--12 { font-size: 19px; position: relative; }
.mark--12 i { font-style: normal; font-size: 9px; position: absolute; top: -3px; right: -9px; color: var(--hot); }

/* ==========================================================================
   Hero HUD: hype counter, reactions, REC
   ========================================================================== */
.hero__waves { position: relative; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.hero__hud {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 6px;
  border-radius: 99px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--ink);
  font-size: 10px;
}
.hud-pill b { font-weight: 500; font-variant-numeric: tabular-nums; }
.hud-pill--live.bump { animation: bump 0.4s cubic-bezier(0.34, 1.7, 0.5, 1); }
@keyframes bump { 40% { transform: scale(1.12); } }
.hud-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hot); animation: blink 1.4s steps(2) infinite; }

/* Floating hints that invite people to play with the background */
.hints { position: absolute; inset: 0; pointer-events: none; transition: opacity 0.8s; }
.hero__waves.is-played .hints { opacity: 0; }
.hint {
  position: absolute;
  left: var(--x);
  top: var(--y);
  padding: 7px 13px 6px;
  border-radius: 99px;
  background: var(--bg);
  border: 1.5px dashed var(--ink);
  font-size: clamp(15px, 1.4vw, 19px);
  font-style: italic;
  white-space: nowrap;
  opacity: 0;
  rotate: var(--r);
  animation: hint-cycle 15s ease-in-out infinite var(--d), hint-float 4s ease-in-out infinite;
}
.hint::after { content: "↙"; position: absolute; right: -16px; bottom: -14px; font-style: normal; font-size: 16px; color: var(--hot); }
@keyframes hint-cycle {
  0%, 100% { opacity: 0; scale: 0.85; }
  4%, 18% { opacity: 1; scale: 1; }
  24% { opacity: 0; scale: 0.9; }
}
@keyframes hint-float { 50% { translate: 0 -7px; } }

/* Cartoon character crossing the hero */
.me { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.me__actor { transition: opacity 0.3s; filter: drop-shadow(0 0 0.6px var(--ink)) drop-shadow(0 0 0.6px var(--ink)); }
.me__shadow { fill: var(--ink); opacity: 0.18; }
.me__top { stroke: var(--top); }
.me__top-fill { fill: var(--top); }
.me__pants { stroke: var(--pants); }
.me__shoe { fill: var(--shoe); stroke: #16213e; stroke-width: 0.8; }
.me__arm-skin, .me__fore-skin { display: none; }
.is-sleeveless .me__arm-skin, .is-sleeveless .me__fore-skin { display: inline; }
.is-sleeveless .me__sleeve, .is-sleeveless .me__forearm { display: none; }
.is-sleeveless .me__shin { stroke: #efc6a2; }
.me__speed line { stroke: var(--hot); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 10 6; animation: march 0.3s linear infinite; }
.me__bib text { font-family: var(--f-mono); font-size: 5px; font-weight: 500; fill: #16213e; }
.me__pop {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  fill: var(--ink);
  text-anchor: middle;
  transform-box: fill-box;
  transform-origin: center;
  animation: me-pop 1.5s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
.me__dust { font-size: 18px; fill: var(--ink); opacity: 0.35; animation: me-dust 0.6s ease-out forwards; }
@keyframes me-pop {
  0% { transform: translate(0, 8px) scale(0.4); opacity: 0; }
  20% { transform: translate(calc(var(--dx) * 0.3), -6px) scale(1.1); opacity: 1; }
  100% { transform: translate(var(--dx), -46px) scale(0.9); opacity: 0; }
}
@keyframes me-dust { to { transform: translate(0, -10px) scale(2.4); opacity: 0; } }

.hype { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.react {
  position: absolute;
  padding: 6px 11px 5px;
  border-radius: 99px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 8px 18px -10px rgba(22, 33, 62, 0.6);
  animation: react-up 1.6s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
.react--emoji { padding: 0; background: none; box-shadow: none; font-size: 26px; }
.react--big { font-size: 13px; padding: 9px 15px 8px; background: var(--hot); color: var(--on-hot); }
@keyframes react-up {
  0% { transform: translate(-50%, -50%) scale(0.2) rotate(0deg); opacity: 0; }
  15% { transform: translate(calc(-50% + var(--dx) * 0.25), calc(-50% + var(--dy) * 0.2)) scale(1.1) rotate(var(--rot)); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.9) rotate(var(--rot)); opacity: 0; }
}
.rec {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: -46px 0 0 14px;
  padding: 6px 11px 5px;
  border-radius: 99px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--f-mono);
  font-size: 11px;
  pointer-events: none;
  opacity: 0;
  scale: 0.6;
  transition: opacity 0.25s, scale 0.35s cubic-bezier(0.34, 1.6, 0.5, 1);
}
.rec.is-on { opacity: 1; scale: 1; }
.rec__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hot); animation: blink 1s steps(2) infinite; }
.rec::before { content: "REC"; letter-spacing: 0.1em; }

/* ==========================================================================
   Work intro: a window you fly through
   ========================================================================== */
.orbit__intro {
  --ww: clamp(220px, 26vw, 380px);
  --wh: min(62vh, calc(var(--ww) * 1.75));
  align-items: center;
  background: none;
  border-top: 0;
  pointer-events: none;
}
/* The window is a real opening: the wall is drawn as a huge shadow around it,
   so what you see through the glass is the actual video ring behind. */
.window {
  position: relative;
  z-index: 1;
  width: var(--ww);
  height: var(--wh);
  perspective: 1400px;
  transform-origin: 50% 60%;
  will-change: transform;
}
.window__view {
  position: absolute;
  inset: 0;
  border-radius: calc(var(--ww) / 2) calc(var(--ww) / 2) 0 0;
}
/* The wall around the window (an SVG sheet with an arch-shaped hole) */
.wall { position: absolute; inset: 0; width: 100%; height: 100%; }
.wall__sheet { fill: var(--page-bg); }
/* Op-art corridor drawn on the wall: arch bands spaced geometrically read as depth */
.wall__bands { fill: var(--tint-blue); stroke: color-mix(in srgb, var(--page-ink) 40%, transparent); stroke-width: 1; }
.wall__rings, .wall__floor { fill: none; stroke: color-mix(in srgb, var(--page-ink) 45%, transparent); stroke-width: 1.2; }
/* Light leaking through the seam between the panes */
.window__view::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 4%;
  bottom: 0;
  width: 10px;
  margin-left: -5px;
  background: linear-gradient(#fff, #ffe7a3 50%, #fff);
  filter: blur(4px);
  opacity: var(--seam, 1);
  animation: seam-pulse 2.2s ease-in-out infinite;
}
@keyframes seam-pulse { 50% { opacity: calc(var(--seam, 1) * 0.6); transform: scaleX(1.8); } }

/* Full-screen warp streaks during the About → window transition */
.warp-vignette {
  position: fixed;
  inset: 0;
  z-index: 44;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at var(--vx, 50% 55%), transparent 22%, rgba(22, 33, 62, 0.32) 85%);
  will-change: opacity;
}
.warp { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 45; pointer-events: none; display: none; }

.window__pool {
  position: absolute;
  left: -40%;
  right: -40%;
  bottom: -70px;
  height: 90px;
  background: radial-gradient(closest-side, rgba(255, 220, 140, 0.5), rgba(255, 220, 140, 0.18) 55%, transparent);
}
/* Frosted glass panes */
.window__pane {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.5) 0 10%, rgba(255, 255, 255, 0.22) 10% 26%, rgba(255, 255, 255, 0.4) 26% 30%, rgba(255, 255, 255, 0.2) 30%),
    radial-gradient(1.2px 1.2px at 30% 20%, #fff, transparent),
    radial-gradient(1px 1px at 70% 46%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 40% 74%, #fff, transparent),
    color-mix(in srgb, var(--tint-blue) 88%, transparent);
  border: 8px solid var(--page-bg);
  box-shadow: inset 0 0 0 1.5px var(--page-ink), 0 0 0 1.5px var(--page-ink);
  backface-visibility: visible;
  will-change: transform;
}
.window__pane::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 33%;
  height: 8px;
  background: var(--page-bg);
  box-shadow: 0 -1.5px 0 var(--page-ink), 0 1.5px 0 var(--page-ink);
}
/* A sheen that sweeps across the glass every few seconds */
.window__glint {
  position: absolute;
  inset: -20% -60%;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.75) 50%, transparent 60%);
  transform: translateX(-70%);
}
@keyframes glint { 0%, 55% { transform: translateX(-70%); } 85%, 100% { transform: translateX(70%); } }
.window__pane--l { left: 0; transform-origin: 0 50%; border-top-left-radius: calc(var(--ww) / 2); border-right-width: 4px; }
.window__pane--r { right: 0; transform-origin: 100% 50%; border-top-right-radius: calc(var(--ww) / 2); border-left-width: 4px; }
.window__frame {
  position: absolute;
  inset: -12px -12px 0;
  border: 1.5px solid var(--page-ink);
  border-bottom: 0;
  border-radius: calc(var(--ww) / 2 + 12px) calc(var(--ww) / 2 + 12px) 0 0;
  pointer-events: none;
}
.window__sill {
  position: absolute;
  left: -14%;
  right: -14%;
  bottom: -20px;
  height: 20px;
  background: var(--page-bg);
  border: 1.5px solid var(--page-ink);
  border-radius: 4px;
  box-shadow: 0 14px 30px -16px rgba(22, 33, 62, 0.5);
}
/* Dust drifting up through the light */
.motes { position: absolute; z-index: 2; left: 50%; top: 50%; width: calc(var(--ww) * 1.8); height: var(--wh); translate: -50% -45%; pointer-events: none; }
.motes i {
  position: absolute;
  bottom: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe3a0 30%, rgba(255, 214, 120, 0) 70%);
  width: 8px;
  height: 8px;
  opacity: 0;
  animation: mote 6s ease-in infinite;
}
.motes i:nth-child(1) { left: 8%; animation-delay: 0s; }
.motes i:nth-child(2) { left: 22%; animation-delay: -1.2s; animation-duration: 7s; }
.motes i:nth-child(3) { left: 35%; animation-delay: -2.4s; }
.motes i:nth-child(4) { left: 48%; animation-delay: -3.1s; animation-duration: 5s; }
.motes i:nth-child(5) { left: 60%; animation-delay: -4.2s; }
.motes i:nth-child(6) { left: 72%; animation-delay: -0.6s; animation-duration: 8s; }
.motes i:nth-child(7) { left: 84%; animation-delay: -5.1s; }
.motes i:nth-child(8) { left: 92%; animation-delay: -2s; animation-duration: 6.5s; }
.motes i:nth-child(9) { left: 15%; animation-delay: -3.8s; animation-duration: 7.5s; }
.motes i:nth-child(10) { left: 66%; animation-delay: -1.8s; animation-duration: 5.5s; }
@keyframes mote {
  0% { transform: translate(0, 0); opacity: 0; }
  15% { opacity: 0.9; }
  100% { transform: translate(18px, calc(var(--wh) * -1)); opacity: 0; }
}
.window__cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 64px;
  translate: -50% 0;
  padding: 7px 13px 6px;
  border-radius: 99px;
  background: var(--page-ink);
  color: var(--page-bg);
}
.window__cue span { display: inline-block; animation: bob 1.6s var(--ease) infinite; }
/* Stars in the blue world behind the window (they stay for the whole section) */
.orbit__stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 22%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 28% 70%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 44% 14%, #fff, transparent),
    radial-gradient(1px 1px at 63% 38%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 78% 18%, #fff, transparent),
    radial-gradient(1px 1px at 88% 62%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 8% 52%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 54% 84%, #fff, transparent),
    radial-gradient(130% 80% at 50% 110%, rgba(140, 165, 255, 0.45), transparent 60%);
  opacity: 0.6;
}
@keyframes twinkle { to { opacity: 0.4; } }

/* ==========================================================================
   12 Studios: packages + live demo browser
   ========================================================================== */
.packages { padding: clamp(28px, 3.4vw, 48px) var(--gutter); border-bottom: 1px solid var(--ink); }
.packages__head { display: flex; justify-content: space-between; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--ink); }
/* Stacking cards: each package sticks, the next one slides over it */
.packages__grid { display: grid; gap: clamp(14px, 2vw, 22px); padding-top: 6px; }
.package {
  position: sticky;
  top: calc(64px + var(--i, 0) * 16px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  min-height: clamp(160px, 14vw, 196px);
  padding: clamp(20px, 2.3vw, 32px);
  border-radius: 22px;
  transform-origin: 50% 0;
  box-shadow: 0 -10px 30px -18px rgba(22, 33, 62, 0.55), 0 0 0 1.5px #16213e;
  will-change: transform;
}
.package__top { display: flex; align-items: center; gap: 10px; }
.package__star { font-size: 18px; line-height: 1; }
.package__title { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(32px, 3.6vw, 56px); line-height: 0.9; margin-top: 14px; }
.package__lead { font-size: clamp(16px, 1.2vw, 18px); font-style: italic; margin-top: 8px; }
.package__list { display: flex; flex-wrap: wrap; gap: 8px; align-content: center; }
.package__list li {
  padding: 9px 15px 8px;
  border-radius: 99px;
  box-shadow: inset 0 0 0 1.5px currentColor;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.2;
}

.browser {
  position: relative;
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  background: var(--bg);
  box-shadow: 0 40px 70px -40px rgba(22, 33, 62, 0.6);
}
.browser__bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-bottom: 1.5px solid var(--ink);
  border-radius: 14px 14px 0 0;
  background: var(--tint-blue);
  color: #16213e;
}
.browser__tag {
  position: absolute;
  left: 50%;
  translate: -50% 0;
  bottom: 100%;
  white-space: nowrap;
  max-width: calc(100% - 48px);
  margin-bottom: -1.5px;
  padding: 9px 16px 8px;
  border: 1.5px solid var(--ink);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: var(--hot);
  color: var(--on-hot);
  font-size: 16px;
  line-height: 1.25;
}
.browser__tag .mono { font-size: 10px; margin-right: 6px; }
.browser__tag b { font-weight: 400; font-style: italic; }
.browser__tag.is-in { animation: tag-in 0.6s cubic-bezier(0.34, 1.5, 0.5, 1); transform-origin: 50% 100%; }
@keyframes tag-in { from { transform: scale(0.85) translateY(8px); opacity: 0; } }
.browser__dots { display: flex; gap: 6px; }
.browser__dots i { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid #16213e; }
.browser__dots i:nth-child(1) { background: var(--hot); }
.browser__dots i:nth-child(2) { background: #ffd166; }
.browser__dots i:nth-child(3) { background: #7bd389; }
.browser__url {
  justify-self: center;
  padding: 6px 14px 5px;
  border-radius: 99px;
  background: #fff7e9;
  font-size: 10px;
  text-transform: lowercase;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.browser__open { font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
.browser__screen { position: relative; height: min(62vh, 600px); background: #fff; border-radius: 0 0 14px 14px; overflow: hidden; }
.browser__screen iframe { display: block; width: 100%; height: 100%; border: 0; transition: opacity 0.4s; }
.browser__screen.is-loading iframe { opacity: 0.25; }
.browser__screen.is-loading::after {
  content: "Loading…";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #16213e;
}

/* Emblem: transparent logo, tinted to the theme, with a spinning ring */
.studio__emblem {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
}
.emblem__glow {
  position: absolute;
  height: 64%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 90deg, var(--accent), var(--hot), var(--tint-peach), var(--tint-blue), var(--accent));
  -webkit-mask: radial-gradient(closest-side, #000 30%, transparent 100%);
  mask: radial-gradient(closest-side, #000 30%, transparent 100%);
  opacity: 0.4;
  will-change: transform;
  animation: spin 18s linear infinite;
}
.emblem__ring { position: absolute; height: 88%; width: auto; aspect-ratio: 1; animation: spin 40s linear infinite; }
.emblem__ring text { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0; text-transform: uppercase; fill: var(--ink); }
.emblem__logo {
  position: relative;
  height: 58%;
  aspect-ratio: 687 / 720;
  background: var(--ink);
  -webkit-mask: url("assets/12studios/logo.png") center / contain no-repeat;
  mask: url("assets/12studios/logo.png") center / contain no-repeat;
  animation: emblem-float 6s ease-in-out infinite;
}
@keyframes emblem-float { 50% { transform: translateY(-10px) rotate(-1.5deg); } }

/* Explore: map + info card */
.explore { position: relative; padding: clamp(36px, 5vw, 72px) var(--gutter); border-bottom: 1px solid var(--ink); }

/* Arrow from the chosen shop pin to its website */
.explore__link { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; overflow: visible; }
.explore__link-path {
  fill: none;
  stroke: var(--hot);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 7 8;
  animation: march 0.9s linear infinite;
}
.explore__link marker path { fill: var(--hot); }
.explore__link.is-in { animation: link-in 0.6s var(--ease-out); }
@keyframes march { to { stroke-dashoffset: -15; } }
@keyframes link-in { from { opacity: 0; } }
.explore__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.explore {
  background:
    radial-gradient(60% 50% at 20% 30%, color-mix(in srgb, var(--tint-blue) 55%, transparent), transparent 70%),
    radial-gradient(50% 45% at 85% 70%, color-mix(in srgb, var(--tint-peach) 50%, transparent), transparent 70%);
}
.explore__title { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(36px, 4vw, 66px); line-height: 0.9; margin-top: 10px; }
.explore__title em { color: var(--accent-text); }
.explore__hint { opacity: 0.7; }
.explore__body {
  position: relative;
  max-width: 840px;
  margin: 0 auto clamp(80px, 8vw, 104px);
}
.map {
  position: relative;
  aspect-ratio: 1000 / 540;
  perspective: 1500px;
  perspective-origin: 50% 30%;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.map.is-dragging { cursor: grabbing; }
.map__plane {
  position: absolute;
  left: 4%;
  right: 4%;
  top: -5%;
  aspect-ratio: 1000 / 640;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 52deg)) rotateZ(var(--rz, -16deg));
  transform-origin: 50% 55%;
}
.map__svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 30px 30px rgba(22, 33, 62, 0.25)); }
.m-land { fill: var(--tint-blue); stroke: var(--page-ink); stroke-width: 2; }
.m-dot { fill: var(--page-ink); opacity: 0.12; }
.m-campus { fill: color-mix(in srgb, #9fd7a8 70%, var(--page-bg)); stroke: var(--page-ink); stroke-width: 1.5; }
.m-trees circle { fill: #4f9a62; opacity: 0.55; }
.m-walk { fill: none; stroke: var(--page-bg); stroke-width: 7; stroke-dasharray: 2 12; stroke-linecap: round; }
.m-village { fill: var(--tint-peach); stroke: var(--page-ink); stroke-width: 1.5; }
.m-blocks rect { fill: var(--page-bg); stroke: var(--page-ink); stroke-width: 1.5; }
.m-roads path { fill: none; stroke: var(--page-ink); stroke-width: 22; stroke-linecap: round; }
.m-roads--fill path { stroke: #fffdf8; stroke-width: 17; }
.m-labels text { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; fill: var(--page-ink); opacity: 0.75; }
.m-labels text:nth-child(1) { text-anchor: end; }
.m-zone { font-family: var(--f-display); font-size: 92px; fill: var(--page-ink); opacity: 0.16; letter-spacing: 0.02em; text-transform: uppercase; }
.m-zone--sm { font-size: 22px; opacity: 0.55; }
.m-route { fill: none; stroke: var(--hot); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.m-route.is-drawn { animation: route 1.2s var(--ease-out) forwards; }
@keyframes route { to { stroke-dashoffset: 0; } }

.map__pins { position: absolute; inset: 0; transform-style: preserve-3d; }
/* Upright area labels on the map */
.map__zone { position: absolute; width: 0; height: 0; transform-style: preserve-3d; pointer-events: none; }
.map__zone-bb {
  position: absolute;
  left: 0;
  bottom: 0;
  transform-origin: 50% 100%;
  transform: translateX(-50%) rotateZ(calc(var(--rz) * -1)) rotateX(calc(var(--rx) * -1));
  padding: 7px 13px 6px;
  border-radius: 99px;
  white-space: nowrap;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #16213e;
  box-shadow: inset 0 0 0 1.5px #16213e, 0 10px 18px -12px rgba(22, 33, 62, 0.7);
}
.map__zone:nth-child(1) .map__zone-bb { background: #cfe9d4; }
.map__zone:nth-child(2) .map__zone-bb { background: #ffe3cf; }
.map__pin {
  position: absolute;
  width: 0;
  height: 0;
  padding: 0;
  transform-style: preserve-3d;
}
.pin__shadow {
  position: absolute;
  left: -16px;
  top: -6px;
  width: 32px;
  height: 12px;
  border-radius: 50%;
  background: rgba(22, 33, 62, 0.35);
  filter: blur(2px);
  transition: transform 0.4s var(--ease-out);
}
.pin__bb {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: 50% 100%;
  transform: translateX(-50%) rotateZ(calc(var(--rz) * -1)) rotateX(calc(var(--rx) * -1));
}
.pin__head {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  background: var(--page-bg);
  color: var(--page-ink);
  border: 2px solid var(--page-ink);
  box-shadow: 0 10px 18px -8px rgba(22, 33, 62, 0.6);
  transition: transform 0.45s cubic-bezier(0.34, 1.7, 0.5, 1), background-color 0.3s;
  animation: pin-bob 3.2s ease-in-out infinite;
  animation-delay: calc(var(--d, 0) * 1s);
}
@keyframes pin-bob { 50% { translate: 0 -5px; } }
.pin__stick { width: 2px; height: 22px; background: var(--page-ink); }
.pin__label {
  position: absolute;
  bottom: calc(100% + 6px);
  padding: 5px 10px 4px;
  border-radius: 99px;
  background: var(--page-ink);
  color: var(--page-bg);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px) scale(0.85);
  transition: opacity 0.25s, transform 0.35s cubic-bezier(0.34, 1.6, 0.5, 1);
  pointer-events: none;
}
.map__pin:hover .pin__label, .map__pin.is-active .pin__label, .map__pin:focus-visible .pin__label { opacity: 1; transform: none; }
.map__pin:hover .pin__head { transform: scale(1.15); }
.map__pin.is-active .pin__head { transform: scale(1.25); }
.map__pin.is-active .pin__shadow { transform: scale(1.3); }
.pin--service .pin__head { background: var(--accent); color: var(--on-accent); }
.pin--shop.is-active .pin__head { background: var(--hot); }
.pin--hq .pin__head { width: 58px; height: 58px; background: var(--page-ink); border-color: var(--page-ink); }
.pin--hq .pin__head::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--hot);
  animation: hq-pulse 2.4s ease-out infinite;
}
@keyframes hq-pulse { from { transform: scale(0.8); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
.pin__head { position: relative; }
.pin__logo {
  display: block;
  width: 74%;
  aspect-ratio: 687 / 720;
  background: var(--page-bg);
  -webkit-mask: url("assets/12studios/logo.png") center / contain no-repeat;
  mask: url("assets/12studios/logo.png") center / contain no-repeat;
}

.map__card {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  width: min(320px, 38%);
  padding: 20px 22px 22px;
  border-radius: 20px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1.5px var(--ink), 0 30px 50px -36px rgba(22, 33, 62, 0.6);
  transition: opacity 0.35s, transform 0.45s var(--ease-out);
}
.map__card.is-hidden { opacity: 0; transform: translateY(10px) scale(0.97); pointer-events: none; }
.map__card-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 12px;
  box-shadow: inset 0 0 0 1px var(--ink);
  transition: background-color 0.3s, color 0.3s;
}
.map__card-close:hover { background: var(--ink); color: var(--bg); }
.map__card.is-in > * { animation: info-in 0.6s var(--ease-out) both; }
.map__card.is-in > :nth-child(2) { animation-delay: 0.04s; }
.map__card.is-in > :nth-child(3) { animation-delay: 0.08s; }
.map__card.is-in > :nth-child(4) { animation-delay: 0.12s; }
.map__card.is-in > :nth-child(5) { animation-delay: 0.16s; }
.map__card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 50%;
  font-size: 22px;
  background: var(--tint-peach);
  color: #16213e;
}
.map__card-icon.pin--service { background: var(--accent); color: var(--on-accent); }
.map__card-icon.pin--hq { background: var(--page-ink); }
.map__card-icon .pin__logo { width: 70%; }
.map__card-title { font-family: var(--f-display); text-transform: uppercase; font-weight: 400; font-size: clamp(22px, 1.8vw, 28px); line-height: 0.95; margin-top: 8px; }
.map__card-text { font-size: 16px; margin-top: 8px; }
.map__card-list { margin-top: 14px; display: grid; gap: 8px; }
.map__card-list li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.25; }
.map__card-list li::before { content: "✦"; position: absolute; left: 0; color: var(--hot); }
.map__card-btn {
  display: inline-flex;
  margin-top: 20px;
  padding: 12px 18px 11px;
  border-radius: 99px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background-color 0.3s, color 0.3s;
}
.map__card-btn:hover { background: var(--hot); color: var(--on-hot); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .xp-row { grid-template-columns: 44px 1fr 1.2fr 28px; }
  .xp-row .xp__years { grid-column: 2; grid-row: 1; padding-top: 0; }
  .xp-row .xp__main { grid-column: 2; grid-row: 2; }
  .xp-row .xp__body { grid-column: 3; grid-row: 1 / span 2; }
  .xp-row .xp__arrow { grid-column: 4; grid-row: 1; }
}

@media (max-width: 860px) {
  .topbar { grid-template-columns: auto 1fr 48px 48px 48px; height: 84px; }
  .topbar__spacer { display: none; }
  .topbar__info { border-left: 1px solid var(--ink); }
  .topbar__info p { font-size: 16px; padding: 0 14px; }
  .topbar__logo { font-size: 28px; padding: 0 14px; }
  .hero__intro { font-size: 18px; }
  .hero__cta { font-size: 17px; padding: 11px 18px 10px; }
  .edu__grid { grid-template-columns: 1fr; }
  .studio__intro { grid-template-columns: 1fr; }
  .packages__grid { grid-template-columns: 1fr; }
  .package { grid-template-columns: 1fr; top: calc(56px + var(--i, 0) * 12px); min-height: 0; }
  .studio__intro { grid-template-columns: 110px minmax(0, 1fr); }
  .map__card { position: relative; width: 100%; margin-top: 10px; }
  .map__card.is-hidden { display: none; }
  .map { aspect-ratio: 1000 / 700; }
  .browser__tag { white-space: normal; width: max-content; max-width: calc(100% - 24px); font-size: 14px; text-align: center; }
  .package__title { margin-top: 22px; }
  .browser__screen { height: 70vh; }
  .browser__open { display: none; }
  .browser__bar { grid-template-columns: auto 1fr; }
  .orbit__intro { --ww: 56vw; }
  .window__cue { bottom: 52px; }
  .about__grid {
  transform-origin: 50% 100%;
  will-change: transform, opacity; grid-template-columns: 1fr; }
  .about__visual { position: relative; top: 0; order: -1; }
  .portrait { width: min(72vw, 340px); }
  .numbers__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__bar { grid-template-columns: 1fr 1fr; }
  .footer__bar > :nth-child(3) { border-left: 0; }
  .footer__bar > :nth-child(n + 3) { border-top: 1px solid var(--ink); }
  .nav__links { display: none; }
  .nav__menu { display: block; }
}

@media (max-width: 620px) {
  body { font-size: 17px; }
  .topbar__info p:first-child { font-size: 14px; }
  .topbar__info p { font-size: 14px; gap: 4px; }
  .xp-row { grid-template-columns: 1fr auto; gap: 10px; }
  .xp-row .xp__num { grid-column: 1; grid-row: 1; padding-top: 0; }
  .xp-row .xp__years { grid-column: 1; grid-row: 2; padding-top: 0; }
  .xp-row .xp__main { grid-column: 1 / -1; grid-row: 3; margin-top: 8px; }
  .xp-row .xp__body { grid-column: 1 / -1; grid-row: 4; }
  .xp-row .xp__arrow { grid-column: 2; grid-row: 1 / span 2; }
  .topbar__avail { display: none; }
  .hide-sm { display: none; }
  .hint { left: 5%; font-size: 14px; }
  .finale__me { left: 70%; }
  .finale__bubble { font-size: 13px; max-width: 58vw; }
  .finale__hint { bottom: 10px; font-size: 8.5px; }
  .drums { gap: 8px; bottom: 48px; }
  .drum--hat i { width: 40px; margin-bottom: 20px; }
  .drum--hat i::after { height: 20px; }
  .drum--snare i { width: 44px; height: 44px; }
  .drum--kick i { width: 60px; height: 60px; font-size: 16px; }
  .finale { height: 250px; }
  .finale__bubble { top: auto; bottom: 102%; right: -8px; max-width: 62vw; border-radius: 16px 16px 4px 16px; }
  .finale__hint { max-width: 58%; line-height: 1.5; }
  .pin__head { width: 26px; height: 26px; font-size: 12px; border-width: 1.5px; }
  .map__zone-bb { font-size: 8.5px; padding: 5px 9px 4px; }
  .studio__role { padding-right: 14px; }
  .studio__role img { width: 38px; height: 38px; }
  .studio__role-title { font-size: 15px; }
  .pin--hq .pin__head { width: 36px; height: 36px; }
  .pin__stick { height: 10px; }
  .pin__label { font-size: 8.5px; padding: 4px 8px 3px; }
  .pin__shadow { width: 22px; left: -11px; height: 8px; top: -4px; }
  .map { aspect-ratio: 1000 / 660; margin-top: 14px; }
  .footer__bar { grid-template-columns: 1fr; }
  .orbit__head { flex-direction: column; gap: 10px; }
  .orbit__meta { text-align: left; display: flex; align-items: baseline; gap: 14px; }
  .orbit__count { font-size: 40px; }
  .orbit__hint { margin-top: 0; }
  .orbit__tilt { margin-top: -5vh; }
  .orbit__info { width: 60vw; bottom: calc(52px + 2vh); }
  .orbit__brand { font-size: 30px; }
  .orbit__title { font-size: 16px; }
  .orbit__actions a { display: none; }
  .orbit__views { bottom: calc(52px + 2vh); }
  .orbit__views-num { font-size: 46px; }
  .orbit__views .mono { font-size: 9px; }
  .sticker span { font-size: 9.5px; padding: 7px 11px 6px; }
  .num-tile { border-radius: 16px; min-height: 150px; }
  .num-tile__label { font-size: 15px; }
  .footer__bar > * + * { border-left: 0; border-top: 1px solid var(--ink); }
  .footer__bar > a:last-child { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
