@font-face {
  font-family: "cosmosOracle";
  src: url("../assets/fonts/cosmos_oracle_regular-s.p.13j19qssvlzxn.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "cosmosOracle";
  src: url("../assets/fonts/cosmos_oracle_medium-s.p.0nbmfbgzc0dl-.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "cosmosOracle";
  src: url("../assets/fonts/cosmos_oracle_bold-s.p.40yf3n_hfr9iw.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "basisMono";
  src: url("../assets/fonts/basis_grotesque_pro_mono-s.3qtx5pjcn9ie6.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --canvas: #f6f5f3;
  --ink: #0b0b0b;
  --grey: #6b6a69;
  --grey-2: #8d8b88;
  --line: #e6e4e0;
  --accent: #bc361b;
  --mark-w: min(24vw, 22svh, 230px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "cosmosOracle", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  overflow-x: clip;
}
img {
  display: block;
  max-width: 100%;
}
p,
h1,
h2,
figure,
ul {
  margin: 0;
  padding: 0;
}
.mono {
  font-family: "basisMono", ui-monospace, monospace;
}

#world {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100svh;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
}
main {
  position: relative;
  z-index: 1;
}

/* ---------------------------------------------------------------- nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px clamp(16px, 3vw, 40px);
  pointer-events: none;
}
.nav > * {
  pointer-events: auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 20px;
}
.mini-mark {
  position: relative;
  width: 26px;
  height: 29px;
  display: block;
}
.mini-mark i,
.mark i {
  position: absolute;
  width: 32.1%;
  height: 29.05%;
  border-radius: 50%;
  background: var(--ink);
}
.mini-mark i:nth-child(1),
.mark i:nth-child(1) {
  left: 33.97%;
  top: 0;
}
.mini-mark i:nth-child(2),
.mark i:nth-child(2) {
  left: 33.97%;
  top: 70.97%;
}
.mini-mark i:nth-child(3),
.mark i:nth-child(3) {
  left: 0;
  top: 17.72%;
}
.mini-mark i:nth-child(4),
.mark i:nth-child(4) {
  left: 67.96%;
  top: 53.21%;
}
.mini-mark i:nth-child(5),
.mark i:nth-child(5) {
  left: 67.96%;
  top: 17.72%;
}
.mini-mark i:nth-child(6),
.mark i:nth-child(6) {
  left: 0;
  top: 53.21%;
}
.nav-chapters {
  display: flex;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(252, 251, 250, 0.82);
  border: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.nav-chapters a {
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--grey);
  text-decoration: none;
  font-size: 16px;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.nav-chapters a.on {
  background: var(--ink);
  color: #fff;
}
.nav-cta {
  margin-left: auto;
}
.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
}
.progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--ink);
  transform-origin: 0 50%;
  transform: scaleX(0);
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.pill-dark {
  background: var(--ink);
  color: #fff;
}
.pill-dark:focus-visible,
.nav-chapters a:focus-visible,
.nav-logo:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------- chapters */
.chap {
  position: relative;
}
/* pinned chapters overlap by one screen so each pin hands straight to the next */
html:not(.reduced) .chap:not(#ch-finale) {
  margin-bottom: -100svh;
}
.stage {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
}

/* 1 · noise */
.noise-bg {
  position: absolute;
  inset: 0;
  background: #e4e3e0;
}
.feed {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  margin: 0 auto;
  width: min(1880px, 100vw);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(110px, 13vw, 240px), 1fr));
  grid-auto-rows: 8px;
  gap: 0 16px;
  padding: 0 16px;
}
.fcard {
  position: relative;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  margin-bottom: 16px;
}
.fcard img {
  width: 100%;
  height: calc(100% - 40px);
  object-fit: cover;
}
.fmeta {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 500;
  color: #4f4f4f;
  white-space: nowrap;
  overflow: hidden;
}
.fmeta .av {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #c9c7c3;
}
.fmeta .likes {
  margin-left: auto;
  color: #b42d2d;
  font-weight: 700;
}
.spons {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 9px;
  border-radius: 8px;
  background: #ffe14d;
  font-size: 13px;
  font-weight: 700;
}
.noise-layer {
  position: absolute;
  inset: 0;
}
.nz {
  position: absolute;
  font-weight: 700;
  white-space: nowrap;
  will-change: transform;
}
.nz-toast {
  padding: 14px 20px;
  border-radius: 16px;
  background: #1c1c1e;
  color: #fff;
  font-size: clamp(14px, 1.5vw, 24px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
}
.nz-badge {
  min-width: 52px;
  height: 52px;
  padding: 0 12px;
  border-radius: 26px;
  background: #e5302f;
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}
.nz-ad {
  padding: 14px 22px;
  border-radius: 12px;
  background: #ffe14d;
  color: #111;
  font-size: clamp(18px, 2.2vw, 38px);
  letter-spacing: -0.02em;
  border: 3px solid #111;
}
.nz-modal {
  width: min(460px, 78vw);
  padding: 26px;
  border-radius: 22px;
  background: #fff;
  font-size: clamp(18px, 1.7vw, 26px);
  white-space: normal;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}
.nz-modal .btns {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.nz-btn {
  flex: 1;
  height: 48px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: #2f6bff;
  color: #fff;
}
.nz-btn.alt {
  background: #eee;
  color: #333;
}
.nz-cookie {
  width: min(900px, 92vw);
  padding: 20px 26px;
  border-radius: 18px;
  background: #fff;
  font-size: clamp(15px, 1.5vw, 22px);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}
.nz-cookie .nz-btn {
  flex: none;
  padding: 0 24px;
}
.punch-wrap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.punch {
  grid-area: 1 / 1;
  padding: 0.2em 0.5em 0.28em;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: clamp(36px, 8vw, 124px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
}
.hole,
.hole-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
}
.hole {
  width: calc(var(--mark-w) * 0.321 * 0.5);
  aspect-ratio: 1;
  margin: calc(var(--mark-w) * -0.0802) 0 0 calc(var(--mark-w) * -0.0802);
  background: var(--ink);
  opacity: 0;
}
.hole-ring {
  width: 220px;
  height: 220px;
  margin: -110px 0 0 -110px;
  border: 2px solid var(--ink);
  opacity: 0;
}
.scroll-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  width: fit-content;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px 12px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  white-space: nowrap;
}
.scroll-hint b {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  position: relative;
}
.scroll-hint b::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
}

/* 2 · mark */
.mark-stage,
.finale-stage {
  display: grid;
  place-items: center;
}
.mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--mark-w);
  height: calc(var(--mark-w) * 1.1052);
  margin-left: calc(var(--mark-w) * -0.5);
  margin-top: calc(var(--mark-w) * -0.5526);
}
.mark i {
  will-change: transform;
}
.lockup {
  position: absolute;
  left: 0;
  right: 0;
  top: 40%;
  text-align: center;
  padding: 0 16px;
}
.wordmark {
  display: flex;
  justify-content: center;
  font-size: clamp(28px, 3.6vw, 60px);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
}
.wordmark span {
  display: inline-block;
}
.hero {
  margin-top: 0.35em;
  font-size: clamp(52px, 9vw, 156px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.row {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
}
.row .w,
.hero .w {
  display: inline-block;
}

/* 3 · galaxy */
.galaxy-stage {
  display: grid;
  place-items: center;
}
.halo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(1300px, 110vw);
  height: min(560px, 60svh);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(246, 245, 243, 0.94), rgba(246, 245, 243, 0));
  opacity: 0;
}
.warp-words {
  display: grid;
  place-items: center;
  font-weight: 500;
  font-size: clamp(60px, 13vw, 210px);
  letter-spacing: -0.05em;
  line-height: 1;
  text-align: center;
  padding: 0 12px;
}
.ww {
  grid-area: 1 / 1;
  opacity: 0;
  will-change: transform, opacity;
}
.galaxy-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 40px;
  width: fit-content;
  margin: 0 auto;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(252, 251, 250, 0.9);
  border: 1px solid var(--line);
  font-size: 16px;
  color: var(--grey);
  white-space: nowrap;
  opacity: 0;
}
.galaxy-meta .mono {
  color: var(--ink);
}

/* 4 · search */
.search-title {
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 0 0.22em;
  padding: 0 16px;
  font-size: clamp(48px, 8.6vw, 170px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.05;
  text-align: center;
}
.search-title .w {
  display: inline-block;
}
.searchbar {
  position: absolute;
  left: 50%;
  top: clamp(84px, 11svh, 116px);
  width: min(1040px, 92vw);
  height: clamp(58px, 6.4svh, 84px);
  margin-left: calc(min(1040px, 92vw) * -0.5);
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 20px);
  padding: 0 clamp(16px, 2vw, 28px);
  border-radius: 999px;
  background: #fcfbfa;
  border: 1px solid var(--line);
  box-shadow: 0 10px 40px rgba(20, 18, 14, 0.07);
  opacity: 0;
}
.ico {
  flex: none;
  width: clamp(22px, 2vw, 30px);
  height: clamp(22px, 2vw, 30px);
}
.field {
  position: relative;
  flex: 1;
  height: 100%;
  min-width: 0;
}
.fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  font-size: clamp(16px, 1.7vw, 28px);
  white-space: nowrap;
}
.ph {
  color: var(--grey-2);
}
.ph b {
  font-weight: 400;
  color: #2a2a2a;
}
.chip {
  gap: 10px;
  top: 15%;
  bottom: 15%;
  padding: 0 16px 0 8px;
  border-radius: 999px;
  background: #efedea;
  opacity: 0;
}
.chip .sw {
  width: clamp(24px, 2.4vw, 36px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
}
.chip img {
  width: clamp(24px, 2.4vw, 34px);
  height: 80%;
  border-radius: 8px;
  object-fit: cover;
}
.rainbow {
  position: relative;
  flex: none;
  width: clamp(26px, 2.4vw, 36px);
  height: clamp(29px, 2.65vw, 40px);
}
.rainbow i {
  position: absolute;
  width: 32.1%;
  height: 29.05%;
  border-radius: 50%;
}
.rainbow i:nth-child(1) {
  left: 33.97%;
  top: 0;
  background: #e8a13a;
}
.rainbow i:nth-child(2) {
  left: 33.97%;
  top: 70.97%;
  background: #4c7bd9;
}
.rainbow i:nth-child(3) {
  left: 0;
  top: 17.72%;
  background: #d4483b;
}
.rainbow i:nth-child(4) {
  left: 67.96%;
  top: 53.21%;
  background: #7bb36a;
}
.rainbow i:nth-child(5) {
  left: 67.96%;
  top: 17.72%;
  background: #e8cf4a;
}
.rainbow i:nth-child(6) {
  left: 0;
  top: 53.21%;
  background: #9b6bd1;
}
.palette {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(clamp(84px, 11svh, 116px) + clamp(58px, 6.4svh, 84px) + 22px);
  display: flex;
  justify-content: center;
  gap: clamp(10px, 1.3vw, 20px);
}
.palette i {
  width: clamp(36px, 4vw, 64px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--c);
  opacity: 0;
}
.tiles {
  position: absolute;
  inset: 0;
  perspective: 1600px;
  transform-style: preserve-3d;
}
.tile {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: clamp(10px, 1vw, 18px);
  overflow: hidden;
  background: #ddd;
  box-shadow: 0 14px 34px rgba(20, 18, 14, 0.12);
  opacity: 0;
  will-change: transform;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tile.ai {
  background:
    radial-gradient(60% 50% at 30% 30%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 60%),
    radial-gradient(70% 70% at 70% 70%, #b58cff, rgba(181, 140, 255, 0) 70%),
    radial-gradient(80% 80% at 20% 90%, #ff9ad5, rgba(255, 154, 213, 0) 70%),
    linear-gradient(135deg, #8fd3ff, #c8b6ff 50%, #ffc7e8);
}
.tile.ai.b {
  background:
    radial-gradient(40% 40% at 60% 35%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 70%),
    radial-gradient(90% 60% at 40% 80%, #ffb36b, rgba(255, 179, 107, 0) 70%),
    linear-gradient(160deg, #4f6bff, #b667ff 60%, #ff8fb1);
}
.tile.ai.c {
  background:
    radial-gradient(50% 50% at 50% 50%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 60%),
    conic-gradient(from 40deg at 50% 50%, #6ef0d0, #7aa8ff, #d58bff, #ffd36e, #6ef0d0);
}
.tile .ai-veil {
  position: absolute;
  inset: 0;
  background: inherit;
  opacity: 0;
}
.ai-tag {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 4px 11px;
  border-radius: 20px;
  background: rgba(11, 11, 11, 0.78);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}
.seed {
  position: absolute;
  left: calc(50% - min(300px, 38vw) / 2);
  top: calc(52% - min(300px, 38vw) * 0.625);
  width: min(300px, 38vw);
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(20, 18, 14, 0.18);
  opacity: 0;
}
.seed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: #fcfbfa;
  opacity: 0;
}
.brackets {
  position: absolute;
  pointer-events: none;
}
.brackets i {
  position: absolute;
  width: 44px;
  height: 44px;
  border: 0 solid var(--ink);
  opacity: 0;
}
.brackets i:nth-child(1) {
  left: 0;
  top: 0;
  border-width: 3px 0 0 3px;
  border-radius: 14px 0 0 0;
}
.brackets i:nth-child(2) {
  right: 0;
  top: 0;
  border-width: 3px 3px 0 0;
  border-radius: 0 14px 0 0;
}
.brackets i:nth-child(3) {
  left: 0;
  bottom: 0;
  border-width: 0 0 3px 3px;
  border-radius: 0 0 0 14px;
}
.brackets i:nth-child(4) {
  right: 0;
  bottom: 0;
  border-width: 0 3px 3px 0;
  border-radius: 0 0 14px 0;
}
#seed-brackets {
  left: calc(50% - min(300px, 38vw) / 2 - 20px);
  top: calc(52% - min(300px, 38vw) * 0.625 - 20px);
  width: calc(min(300px, 38vw) + 40px);
  height: calc(min(300px, 38vw) * 1.25 + 40px);
}
.sim-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.sim-lines line {
  stroke: var(--ink);
  stroke-width: 1.5;
}
.ai-card {
  position: absolute;
  left: 50%;
  top: calc(clamp(84px, 11svh, 116px) + clamp(58px, 6.4svh, 84px) + 18px);
  width: min(640px, 92vw);
  margin-left: calc(min(640px, 92vw) * -0.5);
  padding: 18px 22px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 50px rgba(20, 18, 14, 0.1);
  opacity: 0;
}
.ai-title {
  font-size: 22px;
  font-weight: 500;
}
.ai-sub {
  font-size: 16px;
  color: var(--grey);
  margin: 2px 0 14px;
}
.seg {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 52px;
  padding: 4px;
  border-radius: 999px;
  background: #f1efec;
}
.seg-thumb {
  position: absolute;
  left: 4px;
  top: 4px;
  bottom: 4px;
  width: calc((100% - 8px) / 3);
  border-radius: 999px;
  background: var(--ink);
}
.seg-opt {
  position: relative;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 500;
  color: var(--grey);
}
.seg-opt.on {
  color: #fff;
}
.mode-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(28px, 7svh, 80px);
  text-align: center;
  font-size: clamp(34px, 4.6vw, 80px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
  opacity: 0;
}
.cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 38px;
  opacity: 0;
  z-index: 5;
}
.click-ring {
  position: absolute;
  left: 0;
  top: 0;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  opacity: 0;
  z-index: 5;
}

/* 5 · research */
.research-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(24px, 4vw, 80px);
  padding: 90px clamp(20px, 7vw, 140px) 40px;
}
.research-head {
  font-size: clamp(44px, 6.4vw, 110px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.02;
}
.research-body {
  margin-top: 28px;
  max-width: 30ch;
  font-size: clamp(18px, 1.9vw, 30px);
  line-height: 1.4;
  color: var(--grey);
  opacity: 0;
}
.research-visual {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 40px);
}
.plate {
  position: relative;
  flex: none;
  width: min(380px, 26vw);
  aspect-ratio: 0.656;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(20, 18, 14, 0.2);
  opacity: 0;
}
.plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sweep {
  position: absolute;
  top: 0;
  left: -60%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
}
.plate figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 15px;
  white-space: nowrap;
  opacity: 0;
}
.plate figcaption b {
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.22);
}
#plate-brackets {
  left: -18px;
  top: -18px;
  width: calc(min(380px, 26vw) + 36px);
  height: calc(min(380px, 26vw) / 0.656 + 36px);
}
.tags {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.tag {
  padding: 16px 20px 18px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(20, 18, 14, 0.08);
  opacity: 0;
  position: relative;
}
.tag::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  width: clamp(16px, 2.4vw, 40px);
  height: 1.5px;
  background: var(--ink);
  transform-origin: 100% 50%;
  transform: scaleX(var(--link, 0));
}
.tag small {
  display: block;
  font-size: 15px;
  color: var(--grey);
  margin-bottom: 2px;
}
.tag span {
  display: block;
  font-size: clamp(18px, 1.7vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* 6 · yours */
.yours-stage {
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  padding: clamp(90px, 13svh, 140px) 16px clamp(40px, 8svh, 90px);
}
.yours-head {
  text-align: center;
  font-size: clamp(22px, 3.2vw, 56px);
  color: var(--grey);
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.yours-head .w,
.yours-foot .w {
  display: inline-block;
}
.stacks {
  position: relative;
  align-self: center;
  display: flex;
  justify-content: center;
  gap: clamp(28px, 9vw, 200px);
  width: 100%;
}
.link-line {
  position: absolute;
  left: 18%;
  right: 18%;
  top: 42%;
  height: 0;
  border-top: 2px dashed var(--ink);
  transform-origin: 0 50%;
  transform: scaleX(0);
}
.stack {
  position: relative;
  width: clamp(92px, 16vw, 230px);
  aspect-ratio: 0.8;
}
.scard {
  position: absolute;
  inset: 0;
  border-radius: clamp(12px, 1.2vw, 20px);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(20, 18, 14, 0.14);
  will-change: transform;
}
.scard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stack-lab {
  position: absolute;
  left: -60%;
  right: -60%;
  text-align: center;
  top: calc(100% + 22px);
  white-space: nowrap;
  font-size: clamp(14px, 1.6vw, 28px);
  font-weight: 500;
  opacity: 0;
}
.stack-lab small {
  font-weight: 400;
  color: var(--grey);
  margin-left: 6px;
  font-size: 0.85em;
}
.yours-foot {
  text-align: center;
  font-size: clamp(40px, 6vw, 104px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

/* 7 · finale */
.dream {
  position: relative;
  font-size: clamp(44px, 6vw, 96px);
  font-weight: 500;
  letter-spacing: -0.045em;
  text-align: center;
}
.dream .w {
  display: inline-block;
  opacity: 0;
}
.burst-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 360px;
  height: 360px;
  margin: -180px 0 0 -180px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  opacity: 0;
}
.final-lockup {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.final-word {
  margin-top: 0;
}
.final-word span {
  opacity: 0;
}
.cta {
  height: clamp(60px, 7svh, 92px);
  padding: 0 clamp(30px, 3vw, 48px);
  font-size: clamp(22px, 2.3vw, 38px);
  opacity: 0;
}
.url {
  font-size: clamp(18px, 1.8vw, 28px);
  color: var(--grey);
  opacity: 0;
}
.foot {
  padding: 40px 16px 60px;
  text-align: center;
  font-size: 14px;
  color: var(--grey);
}

/* ---------------------------------------------------------------- phone */
@media (max-width: 760px) {
  .nav {
    gap: 12px;
    padding: 14px 16px;
  }
  .nav-chapters {
    display: none;
  }
  .pill {
    height: 44px;
    padding: 0 18px;
    font-size: 16px;
  }
  .research-stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-content: center;
    gap: 22px;
    padding: 84px 20px 24px;
  }
  .research-body {
    margin-top: 12px;
  }
  .research-visual {
    gap: 14px;
  }
  .plate {
    width: 40vw;
  }
  #plate-brackets {
    width: calc(40vw + 36px);
    height: calc(40vw / 0.656 + 36px);
  }
  .tags {
    gap: 10px;
    flex: 1;
  }
  .tag {
    padding: 10px 12px 12px;
    border-radius: 14px;
  }
  .tag small {
    font-size: 12px;
  }
  .tag span {
    font-size: 15px;
  }
  .ai-card {
    padding: 14px 16px;
  }
  .ai-title {
    font-size: 18px;
  }
  .ai-sub {
    font-size: 13px;
  }
  .seg {
    height: 44px;
  }
  .seg-opt {
    font-size: 15px;
  }
  .ai-tag {
    left: 6px;
    top: 6px;
    font-size: 11px;
    padding: 3px 7px;
  }
  .scroll-hint {
    font-size: 14px;
  }
  .stacks {
    gap: 5vw;
  }
  .stack {
    width: 27vw;
  }
  .stack-lab {
    left: -8%;
    right: -8%;
    white-space: normal;
    line-height: 1.2;
    font-size: 13px;
  }
  .stack-lab small {
    display: block;
    margin: 2px 0 0;
  }
  .plate figcaption {
    font-size: 11px;
    gap: 4px;
    bottom: 10px;
  }
  .plate figcaption b {
    padding: 3px 6px;
    border-radius: 6px;
  }
}

/* ---------------------------------------------------------------- reduced motion */
.reduced .stage {
  height: auto;
  min-height: 100svh;
}
