/* ════════════════════════════════════════════
   ADVENTURE RIDER — 冒険ライダー
   Classic anime cel aesthetic
   ════════════════════════════════════════════ */

:root {
  --ink: #1a1209;
  --paper: #f7eedd;
  --paper-dim: #efe2c8;
  --sun: #ff5c2e;
  --sun-deep: #e03a10;
  --gold: #ffb733;
  --crimson: #c1272d;
  --dusk: #2b1c3f;
  --dusk-2: #4a2545;
  --sky-1: #ffd98a;
  --sky-2: #ff9e4f;
  --sky-3: #f55f3a;
  --teal: #1f6f6b;
  --font-display: 'Anton', 'Zen Kaku Gothic New', sans-serif;
  --font-jp: 'Shippori Mincho', serif;
  --font-body: 'Space Grotesk', 'Zen Kaku Gothic New', sans-serif;
  --outline: 3px solid var(--ink);
  --shadow-hard: 8px 8px 0 var(--ink);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* NOTE: no `scroll-behavior: smooth` here — it corrupts ScrollTrigger's
   refresh measurements (pins get wrong start/end). JS handles smooth anchors. */
html, body { overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: var(--sun); color: var(--paper); }

/* ── halftone + grain helpers ───────────── */
.hero__grain {
  position: absolute; inset: 0; pointer-events: none; z-index: 9;
  opacity: .5; mix-blend-mode: multiply;
  background-image: radial-gradient(rgba(26,18,9,.18) 1px, transparent 1.4px);
  background-size: 5px 5px;
}

/* ════════════ LOADER ════════════ */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 24px;
}
.loader__sun {
  width: 90px; height: 90px; border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 60px rgba(255,92,46,.55);
}
.loader__text { text-align: center; }
.loader__kanji {
  display: block; font-family: var(--font-jp); font-weight: 800;
  font-size: 2.6rem; color: var(--paper); letter-spacing: .3em; margin-bottom: 6px;
}
.loader__label {
  font-size: .68rem; letter-spacing: .42em; color: var(--sun);
  font-weight: 700;
}
.loader__line {
  width: 180px; height: 3px; background: rgba(247,238,221,.18);
  position: relative; overflow: hidden;
}
.loader__line::after {
  content: ''; position: absolute; inset: 0; transform: scaleX(0);
  transform-origin: left; background: var(--sun);
  animation: loadbar 1.1s ease forwards;
}
@keyframes loadbar { to { transform: scaleX(1); } }

/* ════════════ NAV ════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 56px);
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}
.nav.is-scrolled {
  background: rgba(247,238,221,.94);
  backdrop-filter: blur(8px);
  box-shadow: 0 3px 0 var(--ink);
  padding-block: 12px;
}
.nav__logo { display: flex; align-items: center; gap: 12px; }
.nav__logo-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--sun); color: var(--paper);
  font-family: var(--font-jp); font-weight: 800; font-size: 1.3rem;
  border: var(--outline); box-shadow: 4px 4px 0 var(--ink);
  transition: transform .25s ease, box-shadow .25s ease;
}
.nav__logo:hover .nav__logo-mark { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.nav__logo-type {
  font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .06em;
}
.nav__logo-type em { font-style: normal; color: var(--sun-deep); }
.nav__links { display: flex; gap: clamp(16px, 2.6vw, 40px); }
.nav__links a {
  position: relative; font-weight: 700; font-size: .8rem; letter-spacing: .18em;
  padding: 4px 0;
}
.nav__links a::before {
  content: attr(data-jp);
  position: absolute; top: -0.95em; left: 50%; transform: translateX(-50%) translateY(4px);
  font-family: var(--font-jp); font-size: .62rem; color: var(--sun-deep);
  opacity: 0; transition: opacity .25s ease, transform .25s ease;
  white-space: nowrap;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 3px; width: 100%;
  background: var(--sun); transform: scaleX(0); transform-origin: right;
  transition: transform .3s cubic-bezier(.7,0,.2,1);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__links a:hover::before { opacity: 1; transform: translateX(-50%) translateY(0); }
.nav__cta {
  font-family: var(--font-display); font-size: .85rem; letter-spacing: .1em;
  background: var(--ink); color: var(--paper);
  padding: 10px 22px; border: var(--outline);
  box-shadow: 4px 4px 0 var(--sun);
  transition: transform .2s ease, box-shadow .2s ease;
}
.nav__cta:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--sun); }
.nav__burger { display: none; }

/* mobile menu */
.mobimenu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 clamp(28px, 8vw, 60px); gap: 8px;
  clip-path: circle(0% at calc(100% - 44px) 36px);
  transition: clip-path .55s cubic-bezier(.7,0,.2,1);
  visibility: hidden;
}
.mobimenu.is-open { clip-path: circle(150% at calc(100% - 44px) 36px); visibility: visible; }
.mobimenu a {
  font-family: var(--font-display); font-size: clamp(2rem, 9vw, 3rem);
  letter-spacing: .04em; padding: 10px 0; border-bottom: 1px solid rgba(247,238,221,.15);
  display: flex; align-items: baseline; gap: 16px;
}
.mobimenu a i { font-style: normal; font-size: .9rem; color: var(--sun); font-family: var(--font-body); }
.mobimenu a small { font-family: var(--font-jp); font-size: 1rem; color: var(--gold); margin-left: auto; }
.mobimenu__cta { color: var(--sun); border-bottom: none !important; }
body.menu-open .nav__logo-type { color: var(--paper); }
body.menu-open .nav.is-scrolled { background: transparent; box-shadow: none; backdrop-filter: none; }

/* ════════════ HERO ════════════ */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; align-items: flex-end;
}
.hero__sky {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 42%, var(--sky-3) 72%, var(--sun-deep) 100%);
}
.hero__sun {
  position: absolute; left: 50%; top: 16%;
  width: clamp(260px, 34vw, 520px); aspect-ratio: 1;
  transform: translateX(-50%);
}
.hero__sun-core {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #ffd24a, var(--sun) 58%, var(--sun-deep));
  border: var(--outline);
  box-shadow: 0 0 90px rgba(255,92,46,.55);
}
.hero__sun-ring {
  position: absolute; inset: -7%; border-radius: 50%;
  border: 3px dashed rgba(26,18,9,.5);
  animation: sunspin 50s linear infinite;
}
@keyframes sunspin { to { transform: rotate(360deg); } }

.hero__cloud { position: absolute; width: clamp(140px, 18vw, 280px); z-index: 2; }
.hero__cloud path { fill: var(--paper); stroke: var(--ink); stroke-width: 5; }
.hero__cloud--1 { top: 12%; left: 6%; }
.hero__cloud--2 { top: 26%; right: 8%; width: clamp(100px, 13vw, 200px); opacity: .9; }

.hero__mtn { position: absolute; bottom: 0; left: 0; width: 100%; height: 46%; }
.hero__mtn--far  { height: 56%; }
.hero__mtn--far path  { fill: var(--dusk-2); stroke: var(--ink); stroke-width: 4; }
.hero__mtn--mid  { height: 48%; }
.hero__mtn--mid path  { fill: var(--dusk); stroke: var(--ink); stroke-width: 4; }
.hero__mtn--near { height: 34%; }
.hero__mtn--near path { fill: var(--ink); }

.hero__road {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 13%;
  background: #241a10; border-top: 4px solid var(--ink); z-index: 3;
}
.hero__road-line {
  position: absolute; top: 50%; left: 0; width: 200%; height: 6px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 60px, transparent 60px 120px);
  animation: roadmove .5s linear infinite;
}
@keyframes roadmove { to { transform: translateX(-120px); } }

/* speed lines */
.hero__speedlines { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.speedline {
  position: absolute; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(247,238,221,.95), transparent);
}

/* rider */
.hero__rider {
  position: absolute; bottom: 4%; right: 3%;
  width: clamp(320px, 42vw, 600px); z-index: 5;
  filter: drop-shadow(10px 14px 0 rgba(26,18,9,.3));
}

/* rider svg cel colors */
.riderSvg .wheel__tire { fill: #241a10; stroke: var(--ink); stroke-width: 7; }
.riderSvg .wheel__rim, .bikeSvg .wheel__rim { fill: none; stroke: #8d8478; stroke-width: 6; }
.riderSvg .wheel__spokes rect, .bikeSvg .wheel__spokes rect { fill: #8d8478; }
.riderSvg .wheel__hub, .bikeSvg .wheel__hub { fill: #c9bfae; stroke: var(--ink); stroke-width: 5; }
.bikeSvg .wheel__tire { fill: #241a10; stroke: var(--ink); stroke-width: 7; }

.bike__pannier { fill: #c9bfae; stroke: var(--ink); stroke-width: 6; }
.bike__pannier-strap { fill: var(--ink); }
.bike__dark { fill: #3a2d1c; stroke: var(--ink); stroke-width: 5; }
.bike__pipe { fill: #8d8478; stroke: var(--ink); stroke-width: 5; }
.bike__engine { fill: #4a3a24; stroke: var(--ink); stroke-width: 6; }
.bike__body { fill: var(--crimson); stroke: var(--ink); stroke-width: 6; }
.bike__seat { fill: #241a10; stroke: var(--ink); stroke-width: 5; }
.bike__beak { fill: var(--crimson); stroke: var(--ink); stroke-width: 6; }
.bike__screen { fill: rgba(180,220,230,.85); stroke: var(--ink); stroke-width: 5; }
.bike__light { fill: var(--gold); stroke: var(--ink); stroke-width: 5; }
.bike__bulb { fill: #fff3c4; stroke: var(--ink); stroke-width: 4; }

.riderman__pants { fill: #3a2d1c; stroke: var(--ink); stroke-width: 5; }
.riderman__boot { fill: #241a10; stroke: var(--ink); stroke-width: 5; }
.riderman__jacket { fill: var(--teal); stroke: var(--ink); stroke-width: 6; }
.riderman__stripe { fill: var(--gold); stroke: var(--ink); stroke-width: 4; }
.riderman__arm { fill: var(--teal); stroke: var(--ink); stroke-width: 5; }
.riderman__glove { fill: #241a10; stroke: var(--ink); stroke-width: 5; }
.riderman__helmet { fill: var(--paper); stroke: var(--ink); stroke-width: 6; }
.riderman__visor { fill: var(--sun); stroke: var(--ink); stroke-width: 5; }
.riderman__helmet-dark { fill: var(--ink); }
.riderman__beard { fill: #6b6258; stroke: var(--ink); stroke-width: 3; }

.dust__p { fill: rgba(247,238,221,.6); }
.scarf path { fill: var(--crimson); stroke: var(--ink); stroke-width: 4; }
.exh__p { fill: rgba(247,238,221,.55); }

/* hero copy */
.hero__copy {
  position: relative; z-index: 6;
  padding: 0 clamp(20px, 5vw, 72px) clamp(120px, 16vh, 170px);
  max-width: 880px;
}
.hero__kicker {
  font-size: clamp(.62rem, 1vw, .78rem); font-weight: 700; letter-spacing: .34em;
  color: var(--ink); margin-bottom: 14px; display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
}
.hero__kicker-tag {
  font-family: var(--font-jp); letter-spacing: .2em;
  background: var(--ink); color: var(--gold); padding: 4px 10px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 11.5vw, 9.6rem);
  line-height: .92; letter-spacing: .01em;
  color: var(--ink);
  text-transform: uppercase;
}
.hero__title-row { display: block; overflow: hidden; }
.ht-word { display: inline-block; position: relative; }
.ht-word--stroke {
  color: transparent;
  -webkit-text-stroke: 3px var(--ink);
  text-shadow: 6px 6px 0 var(--sun);
}
.hero__jp {
  font-family: var(--font-jp); font-weight: 800;
  font-size: clamp(1.1rem, 2.6vw, 1.9rem); letter-spacing: .5em;
  color: var(--paper); background: var(--ink);
  display: inline-block; padding: 6px 18px 6px 24px; margin-top: 14px;
}
.hero__tag {
  margin-top: 20px; font-size: clamp(.95rem, 1.6vw, 1.15rem);
  font-weight: 500; max-width: 480px;
  color: var(--paper); text-shadow: 2px 2px 0 var(--ink);
}
.hero__actions { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); letter-spacing: .08em;
  font-size: .95rem; padding: 15px 28px;
  border: var(--outline);
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
}
.btn--solid { background: var(--ink); color: var(--paper); box-shadow: 6px 6px 0 rgba(26,18,9,.35); }
.btn--solid:hover { transform: translate(-3px,-3px); box-shadow: 10px 10px 0 rgba(26,18,9,.4); }
.btn--solid i { font-style: normal; color: var(--gold); transition: transform .25s ease; }
.btn--solid:hover i { transform: translateX(6px); }
.btn--ghost { background: var(--paper); color: var(--ink); box-shadow: 6px 6px 0 rgba(26,18,9,.35); }
.btn--ghost:hover { transform: translate(-3px,-3px); box-shadow: 10px 10px 0 rgba(26,18,9,.4); }
.btn--big { font-size: 1.2rem; padding: 20px 40px; }

.hero__vertical {
  position: absolute; right: clamp(14px, 2.5vw, 40px); top: 31%;
  transform: translateY(-50%);
  writing-mode: vertical-rl; z-index: 6;
  font-family: var(--font-jp); font-weight: 600;
  letter-spacing: .35em; font-size: clamp(.8rem, 1.3vw, 1.05rem);
  color: var(--ink); opacity: .85;
}
.hero__scrollcue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 7; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: .6rem; letter-spacing: .4em; font-weight: 700; color: var(--paper);
}
.hero__scrollcue-line { width: 2px; height: 44px; background: var(--paper); overflow: hidden; position: relative; }
.hero__scrollcue-line::after {
  content: ''; position: absolute; inset: 0; background: var(--sun);
  animation: cue 1.6s ease-in-out infinite;
}
@keyframes cue { 0% { transform: translateY(-100%);} 60%,100% { transform: translateY(100%);} }

/* ════════════ MARQUEE ════════════ */
.marquee {
  background: var(--ink); color: var(--paper);
  overflow: hidden; padding: 16px 0;
  border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink);
  position: relative; z-index: 8;
}
.marquee__track { display: flex; white-space: nowrap; width: max-content; }
.marquee__track span {
  font-family: var(--font-display); font-size: clamp(1rem, 2.2vw, 1.6rem);
  letter-spacing: .14em; color: var(--paper);
}

/* ════════════ SECTION SCAFFOLD ════════════ */
.section { padding: clamp(80px, 12vw, 150px) clamp(20px, 5vw, 72px); position: relative; }
.section__head { position: relative; margin-bottom: clamp(48px, 7vw, 90px); }
.section__no {
  font-size: .72rem; font-weight: 700; letter-spacing: .34em; color: var(--sun-deep);
  display: block; margin-bottom: 10px;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7.5vw, 6rem);
  line-height: 1; letter-spacing: .015em;
}
.section__title .char { display: inline-block; }
.section__jp {
  position: absolute; right: 0; top: 0;
  font-family: var(--font-jp); font-weight: 800;
  font-size: clamp(3rem, 10vw, 8rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 2px rgba(26,18,9,.22);
  pointer-events: none;
}

/* ════════════ STORY ════════════ */
.story { background: var(--paper); }
.story__panels {
  display: grid; gap: clamp(40px, 6vw, 80px);
}
.panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.panel--b { direction: rtl; }
.panel--b > * { direction: ltr; }
.panel__art {
  border: var(--outline); box-shadow: var(--shadow-hard);
  background: var(--paper-dim); overflow: hidden; aspect-ratio: 4 / 3;
  position: relative;
}
.panel__art svg { width: 100%; height: 100%; }
.panel__art .p-bg { fill: #5a6e8c; }
.panel__art .p-bg--warm { fill: var(--gold); }
.panel__art .p-bg--dusk { fill: var(--dusk); }
.p-rain line { stroke: rgba(247,238,221,.5); stroke-width: 3; }
.p-bldg { fill: #2e3a4e; stroke: var(--ink); stroke-width: 5; }
.p-bldg--2 { fill: #243044; }
.p-windows rect { fill: var(--gold); }
.p-burst path { stroke: var(--ink); stroke-width: 4; opacity: .6; }
.p-key__ring { fill: none; stroke: var(--ink); stroke-width: 12; }
.p-key__shaft, .p-key__tooth { fill: var(--ink); }
.p-sun { fill: var(--sun); stroke: var(--ink); stroke-width: 5; }
.p-hill { fill: #1c1230; stroke: var(--ink); stroke-width: 4; }
.p-road { fill: #3a2d1c; stroke: var(--ink); stroke-width: 4; }
.p-road-line { fill: var(--gold); }
.panel__ep {
  font-size: .7rem; font-weight: 700; letter-spacing: .3em; color: var(--sun-deep);
  display: inline-block; border: 2px solid var(--sun-deep); padding: 5px 12px;
  margin-bottom: 18px;
}
.panel__txt h3 {
  font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  line-height: 1.05; margin-bottom: 16px; text-transform: uppercase;
}
.panel__txt p { font-size: clamp(.95rem, 1.4vw, 1.08rem); max-width: 460px; }
.panel__txt em { font-family: var(--font-jp); font-style: normal; background: var(--gold); padding: 0 6px; }

.story__quote {
  margin-top: clamp(70px, 10vw, 130px);
  text-align: center;
}
.story__quote p {
  font-family: var(--font-jp); font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 3rem); line-height: 1.35;
}
.story__quote p span { color: var(--sun-deep); }
.story__quote cite {
  display: block; margin-top: 22px; font-style: normal;
  font-size: .72rem; letter-spacing: .3em; font-weight: 700; opacity: .65;
}

/* ════════════ RIDER ════════════ */
.rider { background: var(--ink); color: var(--paper); overflow: hidden; }
.rider .section__no { color: var(--gold); }
.rider .section__jp { -webkit-text-stroke: 2px rgba(247,238,221,.18); }
.rider__grid {
  display: grid; grid-template-columns: minmax(300px, 440px) 1fr;
  gap: clamp(36px, 6vw, 90px); align-items: start;
}
.rider__portrait-frame {
  position: relative; border: 4px solid var(--paper);
  box-shadow: 12px 12px 0 var(--sun);
  transform: rotate(-2deg);
}
.pt-bg { fill: var(--dusk); }
.halftone-dot { fill: rgba(247,238,221,.16); }
.pt-sun { fill: var(--sun); stroke: var(--paper); stroke-width: 4; }
.pt-jacket { fill: var(--teal); stroke: var(--ink); stroke-width: 6; }
.pt-jacket-dark { fill: #154d4a; stroke: var(--ink); stroke-width: 4; }
.pt-stripe { fill: var(--gold); stroke: var(--ink); stroke-width: 4; }
.pt-skin { fill: #e8b88a; stroke: var(--ink); stroke-width: 6; }
.pt-skin-dark { fill: #d9a574; stroke: var(--ink); stroke-width: 5; }
.pt-hair { fill: #241a10; stroke: var(--ink); stroke-width: 4; }
.pt-hair-grey { fill: #b8b0a4; }
.pt-ink { fill: var(--ink); }
.pt-eye { fill: #fff; stroke: var(--ink); stroke-width: 4; }
.pt-pupil { fill: #3d2b14; }
.pt-line { stroke: var(--ink); stroke-width: 3; fill: none; stroke-linecap: round; }
.pt-line--thick { stroke-width: 5; }
.pt-beard { fill: #4d443a; stroke: var(--ink); stroke-width: 4; }
.pt-beard-grey { stroke: #b8b0a4; stroke-width: 4; fill: none; stroke-linecap: round; }
.pt-scar { stroke: #b4513a; stroke-width: 4; stroke-linecap: round; }
.pt-goggle-strap { fill: var(--crimson); stroke: var(--ink); stroke-width: 4; }

.rider__stamp {
  position: absolute; bottom: 14px; right: 14px;
  font-family: var(--font-jp); font-weight: 800; font-size: 1rem;
  color: var(--paper); background: var(--crimson);
  border: 2px solid var(--paper);
  padding: 8px 10px; writing-mode: vertical-rl; letter-spacing: .25em;
}
.rider__name-jp {
  font-family: var(--font-jp); font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--gold); letter-spacing: .2em; margin-bottom: 8px;
}
.rider__name-jp span { color: var(--sun); }
.rider__name {
  font-family: var(--font-display); font-size: clamp(1.7rem, 3.6vw, 3rem);
  line-height: 1.08; margin-bottom: 20px;
}
.rider__name strong { color: var(--sun); }
.rider__bio { max-width: 560px; opacity: .92; font-size: clamp(.95rem, 1.4vw, 1.05rem); }

.rider__stats {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin: 36px 0;
}
.stat {
  border: 3px solid var(--paper); padding: 18px 12px 14px;
  text-align: center; background: rgba(247,238,221,.04);
  transition: background .3s ease;
}
.stat:hover { background: rgba(247,238,221,.1); }
.stat__num {
  display: block; font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3.2rem); color: var(--gold); line-height: 1;
}
.stat__label { font-size: .6rem; font-weight: 700; letter-spacing: .18em; display: block; margin-top: 8px; }
.stat__label em { display: block; font-style: normal; font-family: var(--font-jp); color: var(--sun); margin-top: 2px; }

.rider__traits { display: grid; gap: 14px; max-width: 560px; }
.trait b { font-size: .72rem; letter-spacing: .22em; display: block; margin-bottom: 6px; }
.trait__bar { height: 14px; border: 2px solid var(--paper); padding: 2px; }
.trait__bar i {
  display: block; height: 100%; width: var(--w);
  background: repeating-linear-gradient(45deg, var(--sun) 0 8px, var(--gold) 8px 16px);
  transform: scaleX(0); transform-origin: left;
}

/* ════════════ MACHINE ════════════ */
.machine { background: var(--paper-dim); overflow: hidden; }
.machine__intro {
  max-width: 660px; font-size: clamp(1rem, 1.8vw, 1.3rem); font-weight: 500;
  margin-bottom: clamp(40px, 6vw, 70px);
}
.machine__intro strong { color: var(--sun-deep); }
.machine__stage {
  position: relative; max-width: 980px; margin: 0 auto;
  padding: clamp(20px, 4vw, 50px);
}
.machine__rays {
  position: absolute; inset: 0; margin: auto;
  width: min(92%, 700px); aspect-ratio: 1; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255,92,46,.16) 0deg 9deg, transparent 9deg 18deg);
  animation: sunspin 70s linear infinite;
}
.bikeSvg { position: relative; z-index: 2; width: min(100%, 760px); margin: 0 auto; }

.callout {
  position: absolute; z-index: 3; display: flex; gap: 10px; align-items: flex-start;
  max-width: 240px;
}
.callout i {
  flex: 0 0 auto; width: 14px; height: 14px; border-radius: 50%;
  background: var(--sun); border: 3px solid var(--ink); margin-top: 4px;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255,92,46,.25); } }
.callout b { font-size: .72rem; letter-spacing: .14em; display: block; }
.callout span { font-size: .74rem; line-height: 1.45; display: block; opacity: .8; }
.callout--1 { top: 6%; right: 4%; }
.callout--2 { bottom: 16%; left: 2%; }
.callout--3 { top: 10%; left: 2%; }

.machine__specs {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; max-width: 980px; margin: clamp(40px, 6vw, 60px) auto 0;
}
.machine__specs li {
  border: var(--outline); background: var(--paper);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 22px 16px; text-align: center;
}
.machine__specs b {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  display: block; line-height: 1;
}
.machine__specs b i { font-style: normal; font-size: .55em; color: var(--sun-deep); }
.machine__specs span { font-size: .6rem; font-weight: 700; letter-spacing: .2em; display: block; margin-top: 8px; opacity: .7; }

/* ════════════ EPISODES ════════════ */
.episodes { background: var(--dusk); color: var(--paper); position: relative; }
.episodes__pin {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(70px, 9vh, 100px) 0 40px;
  overflow: hidden;
}
.section__head--episodes {
  padding: 0 clamp(20px, 5vw, 72px);
  margin-bottom: clamp(20px, 4vh, 48px);
}
.episodes__intro {
  margin-top: 14px; max-width: 540px;
  font-size: clamp(.85rem, 1.2vw, .98rem); opacity: .85;
}
.section__head--episodes .section__no { color: var(--gold); }
.section__head--episodes .section__jp { -webkit-text-stroke: 2px rgba(247,238,221,.2); }
.episodes__track {
  display: flex; gap: clamp(20px, 3vw, 40px);
  padding: 0 clamp(20px, 5vw, 72px);
  width: max-content;
}
.ep {
  width: clamp(260px, 30vw, 360px); flex: 0 0 auto;
  border: 3px solid var(--paper); background: rgba(247,238,221,.05);
  padding: 22px;
  transition: transform .35s ease, background .35s ease;
}
.ep:hover { transform: translateY(-10px) rotate(-1deg); background: rgba(247,238,221,.12); }
.ep__num { font-size: .7rem; font-weight: 700; letter-spacing: .3em; color: var(--gold); }
.ep__art {
  margin: 14px 0 18px; aspect-ratio: 16 / 10;
  border: 3px solid var(--paper);
  position: relative; overflow: hidden; background: var(--dusk-2);
}
.ep__art svg { width: 100%; height: 100%; display: block; }
.ep h3 { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: .04em; margin-bottom: 8px; }
.ep p { font-size: .85rem; opacity: .85; }
.ep__loc { font-size: .62rem; font-weight: 700; letter-spacing: .26em; color: var(--sun); display: block; margin-top: 12px; }
.ep--next h3 { color: var(--gold); }

.episodes__progress {
  margin: 28px clamp(20px, 5vw, 72px) 0;
  height: 4px; background: rgba(247,238,221,.18);
}

/* short desktop viewports: shrink the episode reel so nothing clips */
@media (min-width: 921px) and (max-height: 830px) {
  .section__head--episodes .section__title { font-size: clamp(2.2rem, 5vw, 3.6rem); }
  .section__head--episodes .section__jp { font-size: clamp(2.4rem, 6vw, 4.5rem); }
  .episodes__intro { margin-top: 8px; font-size: .82rem; }
  .ep { width: clamp(240px, 26vw, 320px); padding: 16px; }
  .ep__art { aspect-ratio: 16 / 9; margin: 10px 0 14px; }
  .ep h3 { font-size: 1.15rem; }
  .ep p { font-size: .8rem; }
}
@media (min-width: 921px) and (max-height: 660px) {
  .episodes__pin { padding: 60px 0 24px; }
  .section__head--episodes { margin-bottom: 14px; }
  .ep { width: clamp(220px, 22vw, 280px); }
  .ep__art { aspect-ratio: 16 / 7; }
  .episodes__progress { margin-top: 16px; }
}
.episodes__progress i { display: block; height: 100%; width: 0; background: var(--sun); }

/* ════════════ JOIN / CTA ════════════ */
.join {
  position: relative; overflow: hidden; text-align: center;
  background: var(--ink); color: var(--paper);
  padding: clamp(110px, 16vw, 200px) clamp(20px, 5vw, 72px);
}
.join__sun {
  position: absolute; left: 50%; top: 50%;
  width: min(70vw, 620px); aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,92,46,.35), transparent 70%);
}
.join__speed {
  position: absolute; inset: 0;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(247,238,221,.05) 0deg 4deg, transparent 4deg 14deg);
}
.join__inner { position: relative; z-index: 2; }
.join__kicker { font-size: .72rem; font-weight: 700; letter-spacing: .4em; color: var(--gold); margin-bottom: 18px; }
.join__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 8rem); line-height: .95;
  margin-bottom: 26px;
}
.join__sub { max-width: 520px; margin: 0 auto 40px; opacity: .85; }
.join .btn--solid { background: var(--sun); border-color: var(--paper); color: var(--ink); box-shadow: 8px 8px 0 rgba(247,238,221,.25); }
.join .btn--solid i { color: var(--ink); }

/* ════════════ EPISODE 01 ════════════ */
.ep01 {
  background: #120c06; color: var(--paper);
  padding: clamp(80px, 10vw, 140px) clamp(20px, 5vw, 72px);
  border-top: 4px solid var(--sun);
}
.ep01.is-closed { display: none; }
.ep01__head { text-align: center; margin-bottom: clamp(56px, 8vw, 100px); }
.ep01__badge {
  display: inline-block; font-family: var(--font-jp); font-weight: 800;
  font-size: clamp(.85rem, 1.4vw, 1.05rem); letter-spacing: .25em;
  color: var(--gold); border: 2px solid var(--gold); padding: 8px 18px;
  margin-bottom: 22px;
}
.ep01__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 7rem); line-height: .95;
  color: transparent; -webkit-text-stroke: 3px var(--paper);
  text-shadow: 6px 6px 0 rgba(255,92,46,.45);
}
.ep01__sub {
  margin-top: 18px; font-size: .68rem; font-weight: 700;
  letter-spacing: .38em; opacity: .65;
}

.ep01__chapters {
  max-width: 1060px; margin: 0 auto;
  display: grid; gap: clamp(60px, 9vw, 120px);
}
.chap {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: clamp(26px, 4.5vw, 60px); align-items: center;
}
.chap:nth-child(even) { direction: rtl; }
.chap:nth-child(even) > * { direction: ltr; }
.chap__art {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border: 3px solid var(--paper); box-shadow: 10px 10px 0 rgba(255,92,46,.35);
  background: #1d1409;
}
.chap__art svg { width: 100%; height: 100%; }
.chap__no {
  display: inline-block; font-family: var(--font-jp); font-weight: 800;
  font-size: .8rem; letter-spacing: .28em; color: var(--sun);
  margin-bottom: 12px;
}
.chap__body h3 {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.3rem);
  letter-spacing: .03em; margin-bottom: 16px;
}
.chap__slug {
  font-size: .68rem; font-weight: 700; letter-spacing: .22em;
  color: var(--gold); border-left: 3px solid var(--sun);
  padding-left: 12px; margin-bottom: 16px;
}
.chap__body p:not(.chap__slug) { font-size: clamp(.92rem, 1.3vw, 1.02rem); opacity: .92; margin-bottom: 14px; }
.chap__body strong { color: var(--gold); }
.chap__body em { font-style: normal; background: var(--sun); color: var(--ink); padding: 0 6px; }
.chap__line { padding-left: 16px; border-left: 2px solid rgba(247,238,221,.25); }
.chap__line b { display: block; color: var(--sun); font-size: .72rem; letter-spacing: .3em; margin-bottom: 2px; }
.chap__line span { display: block; font-size: .72rem; opacity: .55; font-style: italic; margin-bottom: 2px; }
.chap__note {
  font-family: var(--font-jp); font-weight: 800;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem); color: var(--gold);
  padding: 10px 0;
}

/* scene 03 — kick counter */
.chap__art--kicks {
  display: grid; place-items: center; align-content: center; gap: 6px;
  background: var(--gold);
  background-image: repeating-conic-gradient(from 0deg at 50% 50%, rgba(26,18,9,.14) 0deg 5deg, transparent 5deg 16deg);
}
.kick__num {
  font-family: var(--font-display); font-size: clamp(4rem, 9vw, 7rem);
  color: var(--ink); line-height: 1;
}
.kick__label { font-size: .68rem; font-weight: 700; letter-spacing: .34em; color: var(--ink); }

/* scene 04 — ignition in the barn */
.chap__art--ignite { background: #0b0703; }
.ignite__label {
  position: absolute; bottom: 12px; left: 0; width: 100%; text-align: center;
  font-size: .64rem; font-weight: 700; letter-spacing: .34em; color: var(--paper); opacity: .8;
}
.crow path { fill: #0b0603; stroke: rgba(255,210,74,.55); stroke-width: 2; }
.ign-beam { fill: #fff3c4; opacity: 0; }
.ign-puff { fill: rgba(247,238,221,.5); opacity: 0; }

/* scene 06 — odometer */
.chap__art--odo { display: grid; place-items: center; align-content: center; gap: 16px; background: #10131c; }
.odo { display: flex; gap: 6px; }
.odo__col {
  width: clamp(34px, 4.6vw, 52px); height: clamp(52px, 7vw, 78px);
  overflow: hidden; background: #060708;
  border: 3px solid #3a4150; border-radius: 6px;
}
.odo__strip { display: flex; flex-direction: column; }
.odo__strip i {
  font-style: normal; font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  height: clamp(52px, 7vw, 78px); line-height: clamp(52px, 7vw, 78px);
  text-align: center; color: var(--paper); display: block;
}
.odo__col--trip { border-color: var(--sun); }
.odo__col--trip i { color: var(--gold); }
.odo__label { font-size: .64rem; font-weight: 700; letter-spacing: .34em; color: var(--paper); opacity: .7; }

/* scene 07 extras */
.chap__tsuzuku {
  position: absolute; bottom: 12px; right: 12px;
  font-family: var(--font-jp); font-weight: 800; letter-spacing: .3em;
  background: var(--ink); color: var(--paper); padding: 6px 12px;
  border: 2px solid var(--paper); font-size: .9rem;
}

.ep01__end {
  text-align: center; max-width: 1060px;
  margin: clamp(70px, 10vw, 120px) auto 0;
  border-top: 1px solid rgba(247,238,221,.2);
  padding-top: clamp(40px, 6vw, 70px);
}
.ep01__end-kanji {
  display: inline-grid; place-items: center;
  width: 86px; height: 86px; border-radius: 50%;
  background: var(--crimson); color: var(--paper);
  font-family: var(--font-jp); font-weight: 800; font-size: 2.4rem;
  border: 3px solid var(--paper); margin-bottom: 18px;
}
.ep01__end p { font-family: var(--font-display); letter-spacing: .2em; font-size: 1.1rem; }
.ep01__end small { display: block; margin-top: 10px; font-size: .66rem; letter-spacing: .3em; font-weight: 700; color: var(--gold); }

@media (max-width: 920px) {
  .chap, .chap:nth-child(even) { grid-template-columns: 1fr; direction: ltr; }
}

/* ════════════ FOOTER ════════════ */
.footer { background: var(--ink); color: var(--paper); padding: 0 clamp(20px, 5vw, 72px) 36px; }
.footer__top {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px;
  border-top: 1px solid rgba(247,238,221,.2); padding: 32px 0; flex-wrap: wrap;
}
.footer__logo { font-family: var(--font-jp); font-weight: 800; font-size: 1.3rem; }
.footer__logo span { font-family: var(--font-display); font-size: .85rem; color: var(--sun); margin-left: 10px; letter-spacing: .1em; }
.footer__note { font-size: .75rem; opacity: .6; max-width: 380px; }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .62rem; letter-spacing: .25em; opacity: .5; font-weight: 700;
}

/* ════════════ REDUCED MOTION ════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ════════════ RESPONSIVE ════════════ */
@media (max-width: 920px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger {
    display: flex; flex-direction: column; gap: 6px;
    background: var(--ink); border: var(--outline); padding: 12px 10px;
    box-shadow: 4px 4px 0 var(--sun); cursor: pointer; z-index: 101;
  }
  .nav__burger span { width: 26px; height: 3px; background: var(--paper); transition: transform .3s ease, opacity .3s ease; }
  .nav__burger.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .nav__burger.is-open span:nth-child(2) { opacity: 0; }
  .nav__burger.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

  .panel, .panel--b { grid-template-columns: 1fr; direction: ltr; }
  .rider__grid { grid-template-columns: 1fr; }
  .rider__portrait { max-width: 380px; }
  .rider__stats { grid-template-columns: repeat(2, 1fr); }
  .machine__specs { grid-template-columns: repeat(2, 1fr); }

  .callout { position: static; max-width: none; margin-top: 14px; }
  .machine__stage { display: flex; flex-direction: column; }
  .machine__stage .bikeSvg { order: -1; }

  /* keep the rider clear of the headline copy on small screens */
  .hero__rider { width: min(74vw, 440px); bottom: 2%; left: auto; right: -4%; transform: none; }
  .hero__vertical { display: none; }
  .hero__copy { padding-bottom: 240px; }
  .hero__scrollcue { left: 24px; transform: none; align-items: flex-start; }

  /* episodes become vertical-friendly horizontal scroller */
  .episodes__pin { min-height: 0; }
  .episodes__track {
    width: auto; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory; padding-bottom: 10px;
  }
  .ep { scroll-snap-align: start; width: min(78vw, 320px); }
  .episodes__progress { display: none; }
}

@media (max-width: 520px) {
  .hero__title { font-size: clamp(3rem, 16.5vw, 4.4rem); }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .rider__stats { gap: 10px; }
  .machine__specs { grid-template-columns: 1fr 1fr; gap: 10px; }
  .section__jp { font-size: 2.6rem; top: auto; bottom: -10px; }
}
