/* Shared styles for case study pages — mirrors the tokens in ../index.html */
:root {
  --bg:      #0a0a0f;
  --text:    #f0ede8;
  --muted:   #6b6b66;
  --muted2:  #9a9990;
  --accent:  #FCFF00;
  --green:   #61cb93;
  --red:     #e2725b;
  --line:    rgba(240,237,232,.07);
  --line-hi: rgba(240,237,232,.18);

  --display: 'Special Gothic Expanded One', sans-serif;
  --sans:    'Inter', system-ui, sans-serif;

  --gutter: 52px;
  --wrap:   1400px;
  --ease:   cubic-bezier(.22,1,.36,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  font-family: var(--sans); background: var(--bg); color: var(--text);
  font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.lb-open { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; }
::selection { background: var(--accent); color: var(--bg); }

.wrap { width: calc(100% - 2 * var(--gutter)); margin: 0 auto; }

/* ── Reading progress ──────────────────────────────────────────────────── */
.progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
}

/* ── Nav ───────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px var(--gutter);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.nav-inner {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  padding: 12px 24px 12px 28px;
  background: rgba(10,10,15,.6); border: 1px solid var(--line); border-radius: 100px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.nav-logo {
  font-family: var(--display); font-size: 18px; font-weight: 400;
  letter-spacing: .02em; text-decoration: none; text-transform: uppercase;
}
.nav-right { display: flex; justify-content: flex-end; }
.btn-accent {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--bg);
  border: 0; border-radius: 100px; padding: 8px 20px;
  font: 500 12px/1.6 var(--sans); letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
}
.btn-accent::after {
  content: ''; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-15deg); transition: left .55s cubic-bezier(.4,0,.2,1);
}
.btn-accent:hover::after { left: 140%; }
.connect { position: relative; }
.chev {
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .25s var(--ease);
}
.connect.open .chev { transform: translateY(2px) rotate(225deg); }
.connect-menu {
  position: absolute; top: calc(100% + 10px); right: 0; width: 290px; padding: 8px;
  background: rgba(14,14,19,.96); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0,0,0,.45);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  opacity: 0; visibility: hidden; transform: translateY(-7px) scale(.98); transform-origin: top right;
  transition: opacity .22s, visibility .22s, transform .3s var(--ease);
}
.connect.open .connect-menu { opacity: 1; visibility: visible; transform: none; }
.connect-menu a, .connect-menu button {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; padding: 12px; border: 0; border-radius: 9px; background: none;
  font: 400 13px/1.4 var(--sans); color: var(--muted2); text-decoration: none; text-align: left;
  cursor: pointer; transition: background .2s, color .2s;
}
.connect-menu a:hover, .connect-menu button:hover { background: rgba(255,255,255,.06); color: var(--text); }
.connect-menu .arr { color: var(--muted); font-size: 12px; }
.connect-menu .copied .arr { color: var(--accent); }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.c-hero { padding-top: 132px; }
.c-back {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 64px;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  text-decoration: none; transition: color .2s;
}
.c-back::before { content: '←'; font-size: 14px; transition: transform .25s var(--ease); }
.c-back:hover { color: var(--text); }
.c-back:hover::before { transform: translateX(-4px); }

.c-eyebrow {
  display: flex; align-items: center; gap: 14px; margin-bottom: 28px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.c-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--accent); }
.c-title {
  max-width: 1200px;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(36px, 6.4vw, 104px); line-height: 1.02; letter-spacing: -.04em;
}
.js .c-title:not(.split) { opacity: 0; }
.c-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.c-title .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s cubic-bezier(.16,1,.3,1); }
.c-title.in .w > span { transform: none; }

.c-intro { margin-top: 32px; }
.c-sub { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.65; color: var(--muted2); max-width: 780px; }
.c-sub em { font-style: normal; color: var(--accent); }
.c-meta {
  display: flex; flex-wrap: wrap; gap: 32px 56px;
  margin-top: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--line);
}
@media (min-width: 769px) { .c-meta .cmv { white-space: nowrap; } }
.cml { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cmv { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--text); }

/* cover */
.c-cover {
  position: relative; overflow: hidden; margin-top: 72px;
  aspect-ratio: 1.91; border-radius: 4px; border: 1px solid var(--line);
  clip-path: inset(10% 4% 10% 4% round 4px);
  transition: clip-path 1.4s cubic-bezier(.16,1,.3,1) .2s;
}
.c-cover.in { clip-path: inset(0 0 0 0 round 4px); }
.c-cover img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block;
  transform: scale(var(--s, 1.12)); will-change: transform;
}

/* ── KPI strip ─────────────────────────────────────────────────────────── */
.kpis {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  margin-top: 72px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  scroll-margin-top: 120px;
}
.kpi { padding: 36px 32px 40px; border-right: 1px solid var(--line); }
.kpi:first-child { padding-left: 0; }
.kpi:last-child { border-right: 0; }
.kpi-num {
  display: block; font-family: var(--display); font-weight: 400;
  font-size: clamp(34px, 4vw, 60px); line-height: 1; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.kpi-num em { font-style: normal; color: var(--accent); }
.kpi-label { display: block; margin-top: 14px; font-size: 11px; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ── Scroll-lit quote ──────────────────────────────────────────────────── */
.c-quote { padding: 140px 0 40px; }
.c-quote p {
  max-width: 1150px;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(22px, 3.1vw, 46px); line-height: 1.3; letter-spacing: -.03em;
}
.c-quote .qw { color: rgba(240,237,232,.16); transition: color .4s; }
.c-quote .qw.on { color: var(--text); }
.c-quote .qw.acc.on { color: var(--accent); }

/* ── Chapters (editorial two-column sections) ──────────────────────────── */
.chapter {
  display: grid; grid-template-columns: minmax(0,4fr) minmax(0,8fr); gap: 40px 64px;
  padding-top: 140px; scroll-margin-top: 90px;
}
.ch-head { position: sticky; top: 120px; align-self: start; }
.ch-idx { display: block; margin-bottom: 18px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-variant-numeric: tabular-nums; }
.ch-title { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 2.8vw, 40px); line-height: 1.15; letter-spacing: -.03em; }
.ch-body { min-width: 0; }

.csp { max-width: 760px; font-size: 16px; line-height: 1.85; color: var(--muted2); }
.csp + .csp { margin-top: 16px; }
.csp strong { font-weight: 400; color: var(--text); }
.csp em { font-style: normal; color: var(--accent); }

.intro-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.intro-card {
  position: relative; overflow: hidden;
  padding: 30px; border: 1px solid var(--line); border-radius: 4px; background: rgba(240,237,232,.02);
  transition: border-color .3s;
}
.intro-card:hover { border-color: var(--line-hi); }
.intro-card h3 { font-family: var(--display); font-weight: 400; font-size: 18px; line-height: 1.3; margin-bottom: 14px; }
.intro-card .csp { font-size: 14px; line-height: 1.75; }
.kv { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.kv .cmv { margin-top: 4px; }

/* cells grid */
.crg {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px;
  margin-top: 32px; overflow: hidden;
  background: var(--line); border: 1px solid var(--line); border-radius: 4px;
}
.crc { padding: 30px; background: var(--bg); transition: background .3s; }
.crc:hover { background: #0e0e14; }
.crc-title { font-family: var(--display); font-weight: 400; font-size: 16px; line-height: 1.3; margin-bottom: 10px; }
.crc-text { font-size: 13px; line-height: 1.7; color: var(--muted2); }
.crc-q { display: block; margin-bottom: 10px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.crc-num { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(36px, 3.6vw, 56px); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.crc-num em { font-style: normal; color: var(--accent); }
.crc-label { display: block; margin-top: 12px; font-size: 11px; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* pills */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border: 1px solid var(--line); border-radius: 100px;
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted2);
}
.pill--accent { border-color: rgba(252,255,0,.4); color: var(--accent); }
.pill--ok::before, .pill--no::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.pill--no::before { background: var(--red); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }

/* media */
.media { margin-top: 32px; }
.media img, .step-fig img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: 4px; background: rgba(255,255,255,.02);
}
.media figcaption, .step-fig figcaption { margin-top: 10px; font-size: 11px; line-height: 1.5; letter-spacing: .04em; color: var(--muted); }

/* killed / takeaways list */
.list { border-top: 1px solid var(--line); }
.list-item {
  position: relative; display: grid; grid-template-columns: 56px minmax(0,1fr) auto; gap: 8px 24px; align-items: baseline;
  padding: 30px 0; border-bottom: 1px solid var(--line);
}
.list-n { font-size: 11px; letter-spacing: .06em; color: var(--muted); font-variant-numeric: tabular-nums; }
.list-title { font-family: var(--display); font-weight: 400; font-size: clamp(18px, 1.8vw, 24px); line-height: 1.25; letter-spacing: -.02em; }
.list-text { grid-column: 2; font-size: 14px; line-height: 1.75; color: var(--muted2); max-width: 680px; }
.list-item .pill { grid-row: 1; grid-column: 3; }
.list--killed .list-title { position: relative; display: inline-block; justify-self: start; }
.list--killed .list-title::after {
  content: ''; position: absolute; left: -2px; right: -2px; top: 55%; height: 1.5px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.list--killed .list-item:hover .list-title::after, .list--killed .list-item.visible .list-title::after { transform: scaleX(1); }
.list--killed .list-item.visible .list-title::after { transition-delay: .5s; }
.list--effect .list-text { grid-column: 2 / -1; font-size: 16px; color: var(--text); }
.list--effect .list-text span { color: var(--muted2); }

/* ── Story: sticky scrollytelling ──────────────────────────────────────── */
.story { padding-top: 140px; scroll-margin-top: 90px; }
.story-top { display: grid; grid-template-columns: minmax(0,4fr) minmax(0,8fr); gap: 40px 64px; align-items: end; margin-bottom: 48px; }
.story-top .csp { max-width: 620px; }
.story-grid { display: grid; grid-template-columns: minmax(0,4fr) minmax(0,8fr); gap: 64px; }
.step { padding: 40px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step-n { display: block; margin-bottom: 14px; font-size: 11px; letter-spacing: .06em; color: var(--muted); font-variant-numeric: tabular-nums; }
.step h3 { font-family: var(--display); font-weight: 400; font-size: clamp(20px, 2vw, 28px); line-height: 1.2; letter-spacing: -.02em; margin-bottom: 16px; }
.step .pills { margin-bottom: 18px; }
.step .csp { font-size: 15px; }
.step-fig { margin-top: 28px; }
.story-media { display: none; }

/* desktop scrollytelling mode (enabled by JS) */
@media (min-width: 1025px) {
  .story.js .step {
    min-height: 72vh; display: flex; flex-direction: column; justify-content: center;
    border: 0; padding: 0; opacity: .28; transition: opacity .5s var(--ease);
  }
  .story.js .step:last-child { border: 0; }
  .story.js .step.active { opacity: 1; }
  .story.js .step-fig { display: none; }
  .story.js .story-media {
    display: flex; flex-direction: column; justify-content: center;
    position: sticky; top: 0; height: 100vh; padding: 96px 0 40px;
  }
  .story-frame {
    position: relative; width: 100%; aspect-ratio: 2.017; overflow: hidden;
    border: 1px solid var(--line); border-radius: 4px; background: #0d0d13;
  }
  .story-frame img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top;
    opacity: 0; transform: scale(1.04); transition: opacity .7s var(--ease), transform 1.1s var(--ease);
  }
  .story-frame img.active { opacity: 1; transform: none; }
  .story-bar { display: flex; align-items: center; gap: 20px; margin-top: 20px; }
  .story-count { font-size: 11px; letter-spacing: .1em; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 60px; }
  .story-count b { font-weight: 400; color: var(--text); }
  .story-dots { flex: 1; display: flex; gap: 6px; }
  .story-dots button {
    flex: 1; height: 2px; border: 0; background: var(--line-hi); cursor: pointer; position: relative; overflow: hidden;
  }
  .story-dots button::after { content: ''; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
  .story-dots button.done::after, .story-dots button.active::after { transform: scaleX(1); }
  .story-cap { font-size: 11px; letter-spacing: .04em; color: var(--muted); text-align: right; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
}

/* ── Next case ─────────────────────────────────────────────────────────── */
.c-next {
  position: relative; display: block; overflow: hidden; margin-top: 160px;
  min-height: min(62vh, 560px); border-radius: 4px; border: 1px solid var(--line);
  text-decoration: none;
}
.c-next img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; transform: scale(1.04); transition: transform 1.2s var(--ease), opacity .6s; opacity: .45; }
.c-next::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,10,15,.95) 0%, rgba(10,10,15,.3) 60%, rgba(10,10,15,.15) 100%); }
.c-next:hover img { transform: scale(1); opacity: .7; }
.c-next-in { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 44px; }
.cnl { margin-bottom: 14px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted2); }
.cnt { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 4.2vw, 64px); line-height: 1.05; letter-spacing: -.04em; }
.cna {
  flex-shrink: 0; width: 72px; height: 72px; display: grid; place-items: center;
  border: 1px solid var(--line-hi); border-radius: 50%; font-size: 22px; color: var(--text);
  transition: transform .45s var(--ease), background .3s, color .3s, border-color .3s;
}
.c-next:hover .cna { transform: rotate(-45deg); background: var(--accent); border-color: var(--accent); color: var(--bg); }

footer {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin-top: 64px; padding: 22px var(--gutter); border-top: 1px solid var(--line);
  font-size: 11px; letter-spacing: .04em; color: var(--muted);
}
.status { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 2.5s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* ── Chapter pill (floating section indicator) ─────────────────────────── */
.chap {
  position: fixed; left: 50%; bottom: 24px; z-index: 90;
  transform: translate(-50%, 140%); transition: transform .5s var(--ease);
}
.chap.show { transform: translate(-50%, 0); }
.chap-btn {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 12px; min-width: 240px;
  padding: 10px 18px 10px 14px; border: 1px solid var(--line-hi); border-radius: 100px;
  background: rgba(14,14,19,.82); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  font: 400 12px/1.4 var(--sans); color: var(--text); cursor: pointer; text-align: left;
}
.chap-btn .chap-fill { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.chap-idx { font-size: 11px; color: var(--accent); font-variant-numeric: tabular-nums; }
.chap-name { flex: 1; }
.chap .chev { transform: translateY(2px) rotate(225deg); }
.chap.open .chev { transform: translateY(-2px) rotate(45deg); }
.chap-menu {
  position: absolute; left: 0; right: 0; bottom: calc(100% + 10px); padding: 8px;
  background: rgba(14,14,19,.96); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0,0,0,.45);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .22s, visibility .22s, transform .3s var(--ease);
}
.chap.open .chap-menu { opacity: 1; visibility: visible; transform: none; }
.chap-menu a {
  display: flex; gap: 12px; padding: 10px 12px; border-radius: 9px;
  font-size: 13px; color: var(--muted2); text-decoration: none; transition: background .2s, color .2s;
}
.chap-menu a span { color: var(--muted); font-variant-numeric: tabular-nums; }
.chap-menu a:hover, .chap-menu a.active { background: rgba(255,255,255,.06); color: var(--text); }
.chap-menu a.active span { color: var(--accent); }

/* ── Cursor label & lightbox ───────────────────────────────────────────── */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none;
  padding: 8px 14px; border-radius: 100px; background: var(--accent); color: var(--bg);
  font: 500 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  opacity: 0; transform: translate(-50%, -50%) scale(.6); transition: opacity .2s, transform .3s var(--ease);
}
.cursor.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.lb {
  position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  padding: 72px var(--gutter) 32px; background: rgba(6,6,9,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.lb.open { opacity: 1; visibility: visible; }
.lb img { max-width: 100%; max-height: calc(100vh - 170px); border-radius: 4px; transform: scale(.96); transition: transform .45s var(--ease); cursor: zoom-out; }
.lb.open img { transform: none; }
.lb-cap { font-size: 12px; color: var(--muted2); text-align: center; }
.lb-count { font-size: 11px; letter-spacing: .1em; color: var(--muted); font-variant-numeric: tabular-nums; }
.lb-btn {
  position: absolute; width: 48px; height: 48px; display: grid; place-items: center;
  border: 1px solid var(--line-hi); border-radius: 50%; background: rgba(14,14,19,.8);
  color: var(--text); font-size: 18px; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.lb-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.lb-close { top: 20px; right: var(--gutter); }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ── Reveal ────────────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.fade-in { animation: fade-in 1s var(--ease) both; }
.fade-in.d1 { animation-delay: .35s; }
.fade-in.d2 { animation-delay: .5s; }
@keyframes fade-in { from { opacity: 0; transform: translateY(20px); } }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .chapter, .story-top, .story-grid { grid-template-columns: 1fr; }
  .ch-head { position: static; }
  .chapter { padding-top: 100px; gap: 28px; }
  .story { padding-top: 100px; }
  .story-top { gap: 20px; margin-bottom: 8px; }
  .kpis { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .kpi:nth-child(2) { border-right: 0; }
  .kpi:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .kpi:nth-child(3) { padding-left: 0; }
}
@media (max-width: 768px) {
  :root { --gutter: 20px; }
  .nav { padding: 14px var(--gutter); }
  .nav-inner { padding: 10px 12px 10px 20px; }
  .c-hero { padding-top: 104px; }
  .c-back { margin-bottom: 40px; }
  .c-cover { margin-top: 48px; }
  .kpis { margin-top: 48px; }
  .kpi { padding: 26px 16px 28px; }
  .kpi:first-child, .kpi:nth-child(3) { padding-left: 0; }
  .c-quote { padding-top: 88px; }
  .intro-grid, .crg { grid-template-columns: 1fr; }
  .intro-card, .crc { padding: 22px 20px; }
  .list-item { grid-template-columns: 32px minmax(0,1fr); }
  .list-item .pill { grid-row: auto; grid-column: 2; justify-self: start; }
  .list--effect .list-text { grid-column: 2; }
  .c-next { margin-top: 110px; min-height: 360px; }
  .c-next-in { padding: 24px; }
  .cna { width: 52px; height: 52px; font-size: 18px; }
  .chap-btn { min-width: 200px; }
  .connect-menu { right: -8px; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
  footer { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
  .c-title .w > span { transform: none; }
  .c-cover { clip-path: none; }
}

/* ── Page entrance: everything arrives top to bottom ──────────────────── */
.fade-in { animation: none; }
[data-enter] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s var(--ease), transform 1s cubic-bezier(.16,1,.3,1);
  transition-delay: calc(var(--i, 0) * 110ms + 120ms);
}
.nav[data-enter] { transform: translateY(-16px); }
html.ready [data-enter] { opacity: 1; transform: none; }
/* cover unrolls from the top edge down */
.c-cover { clip-path: inset(0 0 100% 0 round 4px); transition: clip-path 1.3s cubic-bezier(.77,0,.18,1) .78s; }
.c-cover.in { clip-path: inset(0 0 0 0 round 4px); }
@media (prefers-reduced-motion: reduce) {
  [data-enter] { opacity: 1; transform: none; }
  .c-cover { clip-path: none; }
}

/* smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
