/* ============================================================
   KOISEI — Sakura River Scroll Experience
   ============================================================ */

:root {
  --washi:        #F1E9DE;
  --washi-warm:   #ECE4D9;
  --washi-deep:   #E4DED5;
  --sand:         #E9D4BD;
  --river-stone:  #C1BBB2;
  --ink:          #251C16;
  --night:        #241B15;
  --night-deep:   #1A130E;
  --cream-text:   #EDE9DF;
  --sakura:       #E8B4C0;
  --sakura-deep:  #D98E9F;
  --vermilion:    #C4472F;
  --lantern:      #E8A54B;

  --border-light: rgba(37, 28, 22, 0.14);
  --border-dark:  rgba(237, 233, 223, 0.15);

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-ui:      "Space Grotesk", "Helvetica Neue", sans-serif;
  --font-jp:      "Noto Serif JP", serif;

  --display-xl: clamp(4rem, 11vw, 11.5rem);
  --display-lg: clamp(3rem, 7vw, 7rem);
  --display-md: clamp(2rem, 4vw, 3.5rem);
  --body:       clamp(1rem, 1.15vw, 1.185rem);
  --caption:    0.8125rem;
  --kicker:     0.6875rem;

  --nav-h: 88px;
  --pad-x: 48px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--washi); scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--washi);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
main { position: relative; }

::selection { background: var(--sakura); color: var(--ink); }

/* ---------- type utilities ---------- */
.display-xl, .display-lg, .display-md {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.0;
}
.display-xl { font-size: var(--display-xl); line-height: 0.95; }
.display-lg { font-size: var(--display-lg); line-height: 1.02; }
.display-md { font-size: var(--display-md); line-height: 1.05; }
.display-xl em, .display-lg em, .display-md em { font-style: italic; font-weight: 400; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-ui);
  font-size: var(--kicker);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.kicker::before { content: "—"; letter-spacing: 0; margin-right: 2px; }
.kicker__tick {
  width: 6px; height: 6px;
  background: var(--vermilion);
  flex: none;
}
.kicker--cream { color: var(--cream-text); }

.jp-strip {
  font-family: var(--font-jp);
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 0.4em;
  font-size: 0.9375rem;
}

/* masked line reveals */
.mask { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.mask__inner { display: block; will-change: transform; }

/* text links with draw-on underline */
.text-link {
  position: relative;
  display: inline-block;
  font-family: var(--font-ui);
  font-size: var(--caption);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 4px;
}
.text-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--vermilion);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.text-link:hover::after { transform: scaleX(1); }
.text-link__arrow { display: inline-block; transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.text-link:hover .text-link__arrow { transform: translateX(4px); }

/* woodblock mat border */
.mat { position: relative; }
.mat::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid var(--border-light);
  pointer-events: none;
}
.section-dark .mat::after, .is-night .mat::after { border-color: var(--border-dark); }

/* paper vignette on light sections */
.section-light { position: relative; background: var(--washi); }
.section-light::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 90% 80% at 50% 50%, transparent 55%, rgba(37, 28, 22, 0.03) 100%);
  z-index: 0;
}

/* ---------- fixed layers ---------- */
.gl {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  z-index: 1;
  pointer-events: none;
}
.gl.gl--front { z-index: 3; }

.grain {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
}

/* ---------- preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--washi);
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader__center { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.torii { stroke: var(--vermilion); fill: none; stroke-width: 2.4; stroke-linecap: round; }
.preloader__torii { width: 30px; }
.preloader__word {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  letter-spacing: 0.5em;
  text-indent: 0.5em; /* optical centering against tracking */
  color: var(--ink);
}
.preloader__line {
  width: min(320px, 60vw);
  height: 1px;
  background: var(--border-light);
  position: relative;
  margin-top: 12px;
}
.preloader__line-fill {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 0%;
  background: var(--ink);
}
.preloader__pct {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  color: rgba(37, 28, 22, 0.6);
  font-variant-numeric: tabular-nums;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  padding-inline: var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 90;
  transition: height 0.45s cubic-bezier(0.33, 1, 0.68, 1),
              background-color 0.45s ease,
              backdrop-filter 0.45s ease;
  background: transparent;
}
.nav--scrolled {
  height: 68px;
  background: rgba(241, 233, 222, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.is-night .nav--scrolled { background: rgba(36, 27, 21, 0.82); }

.nav__brand { display: inline-flex; align-items: center; gap: 12px; }
.nav__torii { width: 22px; }
.nav__wordmark {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--ink);
  transition: color 0.45s ease;
}
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links > a:not(.nav__cta) {
  position: relative;
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--ink);
  transition: color 0.45s ease;
}
.nav__links > a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 1px;
  background: var(--vermilion);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.nav__links > a:not(.nav__cta):hover::after { transform: scaleX(1); }
.nav__jp {
  font-family: var(--font-jp);
  font-size: 15px;
  color: var(--ink);
  transition: color 0.45s ease;
}
.nav__cta {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 10px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.45s ease;
}
.nav__cta:hover { background: var(--ink); color: var(--washi); }

.is-night .nav__wordmark,
.is-night .nav__links > a:not(.nav__cta),
.is-night .nav__jp { color: var(--cream-text); }
.is-night .nav__cta { border-color: var(--cream-text); color: var(--cream-text); }
.is-night .nav__cta:hover { background: var(--cream-text); color: var(--night); }

/* ---------- progress rail ---------- */
.rail {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.rail__track { position: relative; width: 1px; height: 160px; background: var(--border-light); }
.is-night .rail__track { background: var(--border-dark); }
.rail__fill {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: top center;
  transition: background-color 0.45s ease;
}
.is-night .rail__fill { background: var(--cream-text); }
.rail__dots { position: absolute; inset: 0; }
.rail__dots span {
  position: absolute;
  left: 50%;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--river-stone);
  transform: translateX(-50%);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.rail__dots span.is-active { background: var(--vermilion); box-shadow: 0 0 0 2px rgba(196, 71, 47, 0.18); }
.rail__dots span:nth-child(1) { top: 0; }
.rail__dots span:nth-child(2) { top: 16.66%; }
.rail__dots span:nth-child(3) { top: 33.33%; }
.rail__dots span:nth-child(4) { top: 50%; }
.rail__dots span:nth-child(5) { top: 66.66%; }
.rail__dots span:nth-child(6) { top: 83.33%; }
.rail__dots span:nth-child(7) { top: 100%; }
.rail__index {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: rgba(37, 28, 22, 0.55);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-variant-numeric: tabular-nums;
  transition: color 0.45s ease;
}
.is-night .rail__index { color: rgba(237, 233, 223, 0.55); }

/* ---------- 1 · hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__fallback { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__content {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  transform: translateY(4vh);
  will-change: transform, opacity;
}
.hero__kicker { opacity: 0; }
.hero__title {
  color: var(--cream-text);
  text-shadow: 0 2px 40px rgba(37, 28, 22, 0.45), 0 2px 8px rgba(37, 28, 22, 0.3);
}
.hero__kicker, .hero__caption { text-shadow: 0 1px 14px rgba(37, 28, 22, 0.45); }
.hero__rule { width: 64px; height: 1px; background: var(--cream-text); opacity: 0; }
.hero__caption {
  font-family: var(--font-ui);
  font-size: var(--caption);
  letter-spacing: 0.14em;
  color: rgba(237, 233, 223, 0.75);
  opacity: 0;
}
.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
}
.hero__scroll-label {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(237, 233, 223, 0.8);
}
.hero__scroll-line { position: relative; width: 1px; height: 40px; background: rgba(237, 233, 223, 0.35); overflow: hidden; }
.hero__scroll-dot {
  position: absolute;
  top: -4px; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--cream-text);
  animation: scrollDot 1.8s cubic-bezier(0.37, 0, 0.63, 1) infinite;
}
@keyframes scrollDot { 0% { top: -4px; opacity: 0; } 25% { opacity: 1; } 100% { top: 42px; opacity: 0; } }
.hero__jp {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(37, 28, 22, 0.5);
}

/* ---------- 2 · manifesto ---------- */
.manifesto {
  position: relative;
  z-index: 10;
  padding: 16vh var(--pad-x);
  border-radius: 32px 32px 0 0;
  will-change: border-radius;
}
.manifesto__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.manifesto__inner > .kicker { grid-column: 1 / 4; align-self: start; margin-top: 1.2em; }
.manifesto__statement { grid-column: 1 / 12; margin-top: 8vh; }
.manifesto__statement .line { display: block; overflow: hidden; padding-bottom: 0.09em; margin-bottom: -0.05em; }
.manifesto__statement .line__inner { display: block; will-change: transform; }
.tok {
  display: inline-block;
  width: 140px;
  height: 90px;
  border-radius: 60px;
  overflow: hidden;
  vertical-align: baseline;
  margin: 0 0.12em;
  transform: translateY(6px);
}
.tok img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); }
.manifesto__body {
  grid-column: 7 / 13;
  margin-top: 10vh;
  max-width: 34em;
}
.manifesto__body p { color: rgba(37, 28, 22, 0.78); margin-bottom: 2em; }
.manifesto__numbers {
  grid-column: 1 / 13;
  margin-top: 14vh;
  display: flex;
  gap: 10vw;
  border-top: 1px solid var(--border-light);
  padding-top: 6vh;
}
.bignum { display: flex; flex-direction: column; gap: 10px; }
.bignum__value { font-variant-numeric: tabular-nums; }
.bignum__label {
  font-family: var(--font-ui);
  font-size: var(--kicker);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(37, 28, 22, 0.55);
}

/* ---------- 3 & 6 · scroll films ---------- */
.film {
  position: relative;
  z-index: 10;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--night);
}
.film__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.film__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 105% 95% at 50% 50%, transparent 62%, rgba(26, 19, 14, 0.55) 100%);
}
.film__shade {
  position: absolute;
  inset: 0;
  background: var(--night-deep);
  opacity: 0;
  pointer-events: none;
}
.film__chapters { position: absolute; inset: 0; pointer-events: none; }
.film__chapter {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
}
.film__chapter::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(94vw, 1160px);
  height: 52vh;
  background: radial-gradient(ellipse at center, rgba(26, 19, 14, 0.38) 0%, rgba(26, 19, 14, 0.2) 45%, transparent 72%);
  pointer-events: none;
}
.film__chapter .kicker { position: relative; text-shadow: 0 1px 10px rgba(26, 19, 14, 0.55); }
.film__line {
  position: relative;
  color: var(--cream-text);
  text-shadow: 0 2px 30px rgba(26, 19, 14, 0.6), 0 1px 5px rgba(26, 19, 14, 0.4);
}
.film__nav {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}
.film__numeral {
  font-family: var(--font-display);
  font-size: 1rem;
  color: rgba(237, 233, 223, 0.4);
  transition: color 0.3s ease;
}
.film__numeral.is-active { color: var(--vermilion); }
.film__meter {
  position: absolute;
  left: var(--pad-x);
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 18px;
  filter: drop-shadow(0 1px 3px rgba(26, 19, 14, 0.55));
}
.film__progress { position: relative; width: 220px; height: 1px; background: rgba(237, 233, 223, 0.25); }
.film__progress-fill {
  position: absolute;
  inset: 0;
  background: var(--cream-text);
  transform: scaleX(0);
  transform-origin: left center;
}
.film__timecode {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(237, 233, 223, 0.7);
  font-variant-numeric: tabular-nums;
}
.film__quote {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.film__quote-line { color: var(--cream-text); }
.film__quote-attr {
  font-family: var(--font-ui);
  font-size: var(--caption);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(237, 233, 223, 0.6);
}

/* ---------- 4 · horizontal gallery ---------- */
.gallery {
  position: relative;
  z-index: 10;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.gallery__header {
  position: absolute;
  top: calc(var(--nav-h) + 3vh);
  left: var(--pad-x);
  right: var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 2;
}
.gallery__title { margin-top: 18px; }
.gallery__hint {
  font-family: var(--font-ui);
  font-size: var(--caption);
  letter-spacing: 0.22em;
  color: rgba(37, 28, 22, 0.5);
  white-space: nowrap;
}
.gallery__track {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  align-items: flex-end;
  gap: 6vw;
  padding: 0 8vw 13vh;
  will-change: transform;
  width: max-content;
}
.card { position: relative; width: min(66vw, 900px); flex: none; }
.card__num {
  position: absolute;
  top: -5.2rem;
  left: -1.6rem;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 9rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--ink);
  transition: color 0.5s ease;
  pointer-events: none;
}
.card.is-center .card__num { color: var(--ink); }
.card__media {
  height: 52vh;
  overflow: hidden;
  border-radius: 4px;
  will-change: clip-path;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  will-change: transform;
}
.card__title { margin-top: 3.2vh; }
.card__foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 1.4vh;
  gap: 24px;
}
.card__caption { font-size: var(--body); color: rgba(37, 28, 22, 0.65); font-style: italic; }
.gallery__meter {
  position: absolute;
  left: var(--pad-x);
  right: var(--pad-x);
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 22px;
  z-index: 2;
}
.gallery__progress { position: relative; flex: 1; height: 1px; background: var(--border-light); }
.gallery__progress-fill {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
}
.gallery__counter {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(37, 28, 22, 0.6);
  font-variant-numeric: tabular-nums;
  display: flex;
}
#galleryIndex { display: inline-block; }

/* ---------- 5 · nightfall ---------- */
.nightfall {
  position: relative;
  z-index: 10;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  /* transparent: the WebGL dissolve renders behind this section */
}
.nightfall__frame {
  position: absolute;
  top: 11vh; right: 29vw; bottom: 11vh; left: 29vw;
  border: 1px solid rgba(37, 28, 22, 0.3);
  pointer-events: none;
}
.nightfall__copy {
  position: absolute;
  left: var(--pad-x);
  bottom: 12vh;
  z-index: 2;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  visibility: hidden;
  max-width: 62vw;
}
.nightfall__copy .kicker { color: inherit; }

/* ---------- 7 · footer ---------- */
.footer {
  position: relative;
  z-index: 2;
  padding: 13vh var(--pad-x) 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}
.footer__top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
.footer__cta-line { margin-top: 20px; max-width: 12em; }
.footer__cta-wrap { flex: none; padding: 24px; }
.footer__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--vermilion);
  color: var(--cream-text);
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 0.1em;
  will-change: transform;
  transition: box-shadow 0.35s ease;
}
.footer__cta:hover { box-shadow: 0 10px 40px rgba(196, 71, 47, 0.35); }
.footer__mid {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 8vh;
  padding-top: 5vh;
  border-top: 1px solid var(--border-light);
}
.footer__cols { display: flex; gap: 8vw; }
.footer__col { display: flex; flex-direction: column; gap: 14px; }
.footer__col a {
  position: relative;
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: rgba(37, 28, 22, 0.75);
  width: fit-content;
}
.footer__col a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: var(--vermilion);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.footer__col a:hover::after { transform: scaleX(1); }
.footer__jp { color: rgba(37, 28, 22, 0.5); }
.footer__wordmark-wrap {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 7vh;
  text-align: center;
  line-height: 0.8;
}
.footer__wordmark {
  font-family: var(--font-display);
  font-size: 200px; /* fitted by JS to viewport width */
  line-height: 0.78;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
  display: inline-block;
}
.footer__bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding: 18px 0 22px;
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(37, 28, 22, 0.55);
}

/* ---------- custom cursor ---------- */
.cursor { position: fixed; inset: 0; z-index: 400; pointer-events: none; opacity: 0; }
.cursor__dot {
  position: absolute;
  top: 0; left: 0;
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--cream-text);
  mix-blend-mode: difference;
}
.cursor__ring {
  position: absolute;
  top: 0; left: 0;
  width: 32px; height: 32px;
  margin: -16px 0 0 -16px;
  border: 1px solid var(--cream-text);
  border-radius: 50%;
  mix-blend-mode: difference;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              height 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              margin 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              background-color 0.3s ease;
}
.cursor__label {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--cream-text);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.cursor--link .cursor__ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.cursor--drag .cursor__ring,
.cursor--play .cursor__ring {
  width: 44px; height: 44px; margin: -22px 0 0 -22px;
  background: rgba(237, 233, 223, 0.12);
}
.cursor--drag .cursor__label, .cursor--play .cursor__label { opacity: 1; }
.cursor--drag .cursor__dot, .cursor--play .cursor__dot { opacity: 0; }

@media (hover: hover) and (pointer: fine) {
  body:not(.reduced) { cursor: none; }
  body:not(.reduced) a, body:not(.reduced) button { cursor: none; }
}
@media (hover: none), (max-width: 767px) {
  .cursor { display: none; }
}

/* ---------- reduced motion ---------- */
.reduced .gl, .reduced .preloader { display: none; }
.reduced .hero__fallback { display: block; }
.reduced .hero__kicker, .reduced .hero__rule, .reduced .hero__caption,
.reduced .hero__scroll { opacity: 1; }
.reduced .mask__inner { transform: none !important; }
.reduced .film__chapter:first-child { opacity: 1; visibility: visible; }
.reduced .nightfall { background: var(--night); }
.reduced .nightfall__copy { opacity: 1; visibility: visible; color: var(--cream-text); }
.reduced .gallery { height: auto; padding: 14vh 0; }
.reduced .gallery__header { position: static; padding: 0 var(--pad-x); }
.reduced .gallery__track { position: static; overflow-x: auto; padding-top: 8vh; }
.reduced .grain { opacity: 0.04; }
.reduced [data-io] { opacity: 0; transform: translateY(30px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reduced [data-io].in-view { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  :root { --pad-x: 32px; }
  .manifesto__statement { grid-column: 1 / 13; }
  .manifesto__body { grid-column: 4 / 13; }
}

@media (max-width: 767px) {
  :root { --pad-x: 20px; --nav-h: 68px; }
  .nav__links > a:not(.nav__cta) { display: none; }
  .nav__jp { display: none; }
  .rail { display: none; }
  .hero__jp { display: none; }
  .footer__jp { writing-mode: initial; text-orientation: initial; letter-spacing: 0.3em; }
  .tok { display: none; }
  .manifesto__inner { display: block; }
  .manifesto__body { margin-top: 8vh; }
  .manifesto__numbers { flex-direction: column; gap: 6vh; }

  .gallery { height: auto; padding-bottom: 10vh; }
  .gallery__header { position: static; padding: 14vh var(--pad-x) 0; }
  .gallery__track {
    position: static;
    width: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    align-items: flex-start;
    padding: 9rem 6vw 4vh;
    gap: 8vw;
  }
  .card { width: 82vw; scroll-snap-align: center; }
  .card__num { font-size: 6rem; top: -3.6rem; left: -0.4rem; }
  .card__media { height: 48vh; }
  .gallery__meter { display: none; }

  .nightfall__frame { left: 10vw; right: 10vw; }
  .nightfall__copy { max-width: 85vw; bottom: 9vh; }

  .footer__top { flex-direction: column; align-items: flex-start; }
  .footer__mid { flex-direction: column; gap: 6vh; }
  .footer__cols { flex-wrap: wrap; gap: 10vw; }
  .film__meter { left: var(--pad-x); }
  .film__progress { width: 120px; }
  .film__nav { right: 18px; }
}
