/* =================================================================
   SHURI ／ Ryukyu Glass Village ─ LP styles
   ================================================================= */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  /* Palette — base */
  --ink:        #0a0a0c;
  --ink-soft:   #1a1a1f;
  --paper:      #f5f0e6;
  --paper-deep: #ece5d3;
  --line:       rgba(10, 10, 12, .12);
  --line-on-dk: rgba(255, 255, 255, .14);
  --muted:      #6b665d;
  --muted-on-dk:#9b9486;

  /* Palette — accents */
  --gold:       #b8893f;
  --gold-mid:   #d4af6f;
  --gold-light: #e8c77a;

  /* Palette — chapter colors */
  --c-red-bg:    #1a0507;
  --c-red-tint:  #3a0d10;
  --c-red-mark:  #d23436;

  --c-yel-bg:    #1c1607;
  --c-yel-tint:  #3a2c0d;
  --c-yel-mark:  #e8b524;

  --c-blu-bg:    #03131c;
  --c-blu-tint:  #0a2d3e;
  --c-blu-mark:  #4ec0e0;

  /* Type */
  --ff-jp: "Shippori Mincho B1", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --ff-en: "Cormorant Garamond", "Cormorant", "Times New Roman", serif;
  --ff-en-it: "Cormorant", "Cormorant Garamond", serif;

  /* Sizing — fluid clamps (mobile-first) */
  --fs-eyebrow: clamp(11px, .76vw + 9px, 13px);
  --fs-body:    clamp(15px, .25vw + 14px, 17px);
  --fs-lead:    clamp(16px, .4vw + 14px, 19px);
  --fs-h2:      clamp(26px, 2.4vw + 14px, 48px);
  --fs-h3:      clamp(22px, 1.6vw + 14px, 36px);
  --fs-kanji:   clamp(120px, 20vw, 280px);
  --fs-hero-en: clamp(56px, 7vw, 128px);
  --fs-hero-jp: clamp(96px, 13vw, 240px);

  /* Layout */
  --maxw:        1320px;
  --maxw-narrow: 880px;
  --gutter:      clamp(20px, 4vw, 56px);
  --section-pad: clamp(80px, 12vh, 180px);

  /* Easing */
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-io:  cubic-bezier(.65, .05, .36, 1);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 0;
  background: var(--paper); /* canvas bg — visible through .trio's transparent area */
}
body {
  font-family: var(--ff-jp);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink);
  /* no background here — let html bg show through transparent sections */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  font-feature-settings: "palt";
}
img, picture, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--gold); }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
::selection { background: var(--gold); color: #fff; }

/* Skip motion if user wants */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Layout ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--maxw-narrow); }

.eyebrow {
  font-family: var(--ff-en);
  font-style: italic;
  font-size: var(--fs-eyebrow);
  font-weight: 400;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.6em;
  display: inline-flex;
  align-items: center;
  gap: 1em;
}
.eyebrow::before {
  content: "";
  width: 36px; height: 1px;
  background: currentColor;
  display: inline-block;
}
.eyebrow--center {
  display: flex;
  justify-content: center;
}

/* ── Loader ─────────────────────────────────────────────── */
.loader {
  position: fixed; inset: 0;
  background: var(--ink);
  z-index: 999;
  display: grid;
  place-items: center;
  transition: opacity .9s var(--ease-out), visibility .9s;
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__inner {
  display: flex;
  gap: .15em;
  font-family: var(--ff-jp);
  font-size: clamp(48px, 9vw, 96px);
  color: var(--gold-light);
  letter-spacing: .05em;
}
.loader__mark {
  opacity: 0;
  transform: translateY(16px);
  animation: loaderMark 1.2s var(--ease-out) forwards;
}
.loader__mark:nth-child(1) { animation-delay: .15s; }
.loader__mark:nth-child(2) { animation-delay: .35s; }
@keyframes loaderMark {
  0%   { opacity: 0; transform: translateY(16px); filter: blur(6px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}
.loader__line {
  position: absolute;
  bottom: 0; left: 50%;
  width: 1px; height: 40vh;
  background: rgba(255, 255, 255, .07);
  transform: translateX(-50%);
  overflow: hidden;
}
.loader__line span {
  display: block;
  width: 1px; height: 100%;
  background: linear-gradient(to bottom, transparent, var(--gold-light) 50%, transparent);
  transform: translateY(-100%);
  animation: loaderLine 1.4s var(--ease-out) infinite;
}
@keyframes loaderLine {
  to { transform: translateY(200%); }
}

/* ── Nav ────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 18px var(--gutter);
  z-index: 100;
  color: #fff;
  mix-blend-mode: normal;
  pointer-events: none;
  transition: background-color .5s var(--ease-out), color .5s var(--ease-out), backdrop-filter .5s, padding .5s;
}
.nav > * { pointer-events: auto; }
.nav.is-light { color: var(--ink); }
.nav.is-stuck {
  background: rgba(245, 240, 230, .85);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  color: var(--ink);
  padding-block: 12px;
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-stuck.on-dark {
  background: rgba(10, 10, 12, .8);
  color: #fff;
  box-shadow: 0 1px 0 var(--line-on-dk);
}
.nav__brand {
  display: flex; flex-direction: column; align-items: center; line-height: 1;
  gap: 6px;
}
.nav__brand picture { display: block; }
.nav__brand-logo {
  display: block;
  width: 110px;
  height: auto;
  /* Invert depending on nav state — switches with nav.is-stuck (light mode) */
  transition: filter .5s var(--ease-out);
}
/* When nav becomes light (over paper sections), invert the white logo to dark */
.nav.is-stuck:not(.on-dark) .nav__brand-logo {
  filter: invert(1) brightness(.4);
}
.nav__brand-jp {
  font-size: 10px;
  letter-spacing: .3em;
  margin-top: 0;
  opacity: .75;
}
.nav__menu {
  display: none;
  gap: 28px;
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 14px;
  letter-spacing: .12em;
}
.nav__menu a { position: relative; padding-block: 4px; }
.nav__menu a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width .4s var(--ease-out);
}
.nav__menu a:hover::after { width: 100%; }
.nav__cta {
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 13px;
  letter-spacing: .18em;
  padding: 10px 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  transition: background .4s, color .4s;
}
.nav__cta:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
@media (min-width: 880px) { .nav__menu { display: flex; } }

/* ── Hero (full-bleed cinematic — Shuri Castle) ───────── */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  display: grid;
}

.hero__bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero__bg picture, .hero__bg img {
  width: 100%; height: 100%;
  display: block;
}
.hero__bg img {
  object-fit: cover;
  object-position: 35% 55%;
  transform: scale(1.04);
  animation: heroZoom 22s ease-out forwards;
  will-change: transform;
}
@keyframes heroZoom { to { transform: scale(1.0); } }

/* Veil — vignette + vertical wash for legibility + mood, centered for content */
.hero__veil {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    /* Subtle top/bottom darkening for nav + base */
    linear-gradient(180deg,
      rgba(10, 10, 12, .35) 0%,
      rgba(10, 10, 12, .08) 28%,
      rgba(10, 10, 12, .22) 70%,
      rgba(10, 10, 12, .60) 100%),
    /* Radial vignette focused on center to spotlight hero content */
    radial-gradient(ellipse 80% 95% at 50% 55%,
      transparent 0%,
      transparent 35%,
      rgba(10, 10, 12, .35) 80%,
      rgba(10, 10, 12, .55) 100%);
  pointer-events: none;
}

.hero__particles {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 2;
  opacity: .55;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero__content {
  position: relative;
  z-index: 3;
  align-self: center;
  justify-self: center;
  text-align: center;
  padding: 0 var(--gutter);
  max-width: min(960px, 80vw);
}

.hero__meta {
  font-family: var(--ff-en);
  font-style: italic;
  font-size: var(--fs-eyebrow);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-light);
  display: inline-flex; align-items: center; gap: 1em;
  margin-bottom: 1.6em;
  opacity: 0;
  animation: heroIn 1.2s .4s var(--ease-out) forwards;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .6);
}
.hero__meta .line { width: 40px; height: 1px; background: currentColor; display: inline-block; }

.hero__title {
  display: block;
  line-height: .95;
  margin-bottom: 1.4em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .55);
}
.hero__title-jp { display: block; font-weight: 500; }
.hero__title picture { display: block; }
.hero__title-logo {
  display: block;
  width: clamp(300px, 32vw, 560px);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .6));
  opacity: 0;
  animation: heroIn 1.4s .65s var(--ease-out) forwards;
}
.hero__title-jp {
  font-family: var(--ff-jp);
  font-size: clamp(32px, 4vw, 72px);
  letter-spacing: .18em;
  margin-top: .6em;
  color: #fff;
  opacity: 0;
  animation: heroIn 1.4s .9s var(--ease-out) forwards;
}

.hero__lead {
  font-size: var(--fs-lead);
  line-height: 2.05;
  color: rgba(255, 255, 255, .94);
  letter-spacing: .06em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .65);
}
.hero__lead span {
  display: block;
  opacity: 0;
  transform: translateY(12px);
  animation: heroIn 1.2s var(--ease-out) forwards;
}
.hero__lead span:nth-child(1) { animation-delay: 1.15s; }
.hero__lead span:nth-child(2) { animation-delay: 1.33s; }
.hero__lead span:nth-child(3) { animation-delay: 1.51s; }

.hero__release {
  position: absolute;
  top: clamp(98px, 12vh, 140px);
  right: var(--gutter);
  z-index: 3;
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 12px;
  letter-spacing: .3em;
  color: rgba(255, 255, 255, .85);
  text-align: right;
  display: flex; flex-direction: column; gap: 4px; align-items: flex-end;
  opacity: 0;
  animation: heroIn 1.2s 1.85s var(--ease-out) forwards;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}
.hero__release span {
  font-style: normal;
  font-family: var(--ff-en);
  font-size: 18px;
  letter-spacing: .15em;
  color: #fff;
}
.hero__release em {
  color: var(--gold-light);
  font-style: italic;
  font-size: 11px;
  letter-spacing: .35em;
}
.hero__release::after {
  content: "";
  display: block;
  width: 28px; height: 1px;
  background: var(--gold-light);
  margin-top: 8px;
}

@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 700px) {
  .hero__bg img { object-position: 65% 30%; }
  .hero__release { top: 84px; font-size: 11px; }
  .hero__release span { font-size: 16px; }
  .hero__content { padding-bottom: 80px; }
}

/* ── Gold gradient section dividers (subtle) ──────────── */
.concept,
.trio,
.chapter,
.product,
.footer {
  border-top: 1px solid transparent;
  border-image: linear-gradient(to right, transparent 0%, color-mix(in srgb, var(--gold) 65%, transparent) 50%, transparent 100%) 1;
}
/* ── Back-to-top button ───────────────────────────────── */
.to-top {
  position: fixed;
  right: clamp(18px, 3vw, 32px);
  bottom: clamp(18px, 3vw, 32px);
  width: 52px; height: 52px;
  border-radius: 999px;
  background: rgba(10, 10, 12, .72);
  color: #fff;
  border: 1px solid rgba(232, 199, 122, .45);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  z-index: 90;
  display: grid; place-items: center;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity .5s var(--ease-out),
    transform .5s var(--ease-out),
    background .4s,
    border-color .4s;
  cursor: pointer;
}
.to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.to-top:hover {
  background: var(--gold);
  border-color: var(--gold);
}
.to-top__arrow {
  width: 12px; height: 12px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(-45deg);
  margin-top: 4px; /* nudge so arrow looks centered */
  transition: transform .4s var(--ease-out);
}
.to-top:hover .to-top__arrow { transform: rotate(-45deg) translate(-2px, 2px); }

/* ── Reveal utility ────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
}
[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}
[data-split-words] span {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
}
[data-split-words].is-in span { opacity: 1; transform: translateY(0); }
[data-split-words].is-in span:nth-child(2) { transition-delay: .12s; }
[data-split-words].is-in span:nth-child(3) { transition-delay: .24s; }

/* ── Concept ───────────────────────────────────────────── */
.concept {
  position: relative;
  padding: var(--section-pad) 0;
  background: var(--paper);
  overflow: hidden;
}
.concept__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(184, 137, 63, .08) 0%, transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(184, 137, 63, .05) 0%, transparent 50%);
  pointer-events: none;
}
.concept__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
@media (min-width: 880px) {
  .concept__grid {
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(48px, 7vw, 110px);
  }
}
.concept__h {
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .04em;
}
.concept__h span { display: block; }
.concept__body {
  font-size: var(--fs-lead);
  line-height: 2.05;
  letter-spacing: .04em;
  color: #2c2820;
  /* nudge body down so its first baseline sits with headline second-line baseline */
  padding-top: clamp(0px, 1.2vw, 18px);
}
.concept__body p + p { margin-top: 1.6em; }

/* ── Trio — fully fixed image (nakayama pattern) ──────── */
/*
  Mechanism:
  - .trio is transparent and tall; user scrolls THROUGH it.
  - .trio__photo and .trio__text are position:fixed — never move.
  - Adjacent sections have solid backgrounds and stack above z-index -1/-2.
*/
.trio {
  position: relative;
  background: transparent;
  height: 130svh;
}

/* Fixed photo — crisp, no overlay washing it out */
.trio__photo {
  position: fixed;
  inset: 0;
  margin: 0;
  z-index: -2;
  pointer-events: none;
  /* Faded in/out by JS based on Trio section visibility, so fixed elements
     don't peek through during overscroll/rubber-band at top or bottom of page */
  opacity: 0;
  transition: opacity .4s ease-out;
}
.trio__photo.is-visible { opacity: 1; }
.trio__photo picture, .trio__photo img {
  width: 100%; height: 100%; display: block;
}
.trio__photo img {
  object-fit: cover;
  object-position: 50% 55%;
}

/* Fixed text — pure vertical Japanese, generous edge margin */
.trio__text {
  position: fixed;
  z-index: -1;
  right: clamp(48px, 7vw, 120px);
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  padding: 0;
  pointer-events: none;
  max-height: calc(100svh - 160px);
  opacity: 0;
  transition: opacity .4s ease-out;

  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--ff-jp);
  font-weight: 500;
  font-size: clamp(18px, 1.1vw + 13px, 26px);
  letter-spacing: .28em;
  line-height: 1.95;
  color: rgba(255, 255, 255, .95);   /* light text on dark photo */

  white-space: nowrap;

  /* Subtle dark drop-shadow for depth, no glow halo */
  text-shadow: 0 1px 18px rgba(0, 0, 0, .55);
}
.trio__text.is-visible { opacity: 1; }
.trio__text > span {
  display: block;
  margin: 0 0 0 1.1em;
}
.trio__text > span:first-child {
  margin-left: 0;
}
.trio__title {
  font-size: 1.35em;
  font-weight: 500;
  letter-spacing: .18em;
  color: #fff;
}
.trio__sig {
  font-size: .58em;
  color: var(--gold-light);          /* gold reads beautifully on dark */
  letter-spacing: .25em;
  margin-left: 1.6em;
  padding-top: 6em;                  /* push signature down → bottom of its column */
}

@media (max-width: 700px) {
  .trio { height: 120svh; }
  .trio__photo img { object-position: 50% 60%; }
  .trio__text {
    right: clamp(20px, 5vw, 36px);
    font-size: clamp(16px, 4.2vw, 22px);
    gap: .7em;
    line-height: 1.7;
  }
  .trio__title { font-size: 1.25em; }
}

/* ── Chapter (banner ＋ dark editorial body) ───────────── */
.chapter {
  position: relative;
  background: var(--ink);
  color: #fff;
  isolation: isolate;
}
.chapter--red    { --c-bg: var(--c-red-bg);  --c-tint: var(--c-red-tint);  --c-mark: var(--c-red-mark); }
.chapter--yellow { --c-bg: var(--c-yel-bg);  --c-tint: var(--c-yel-tint);  --c-mark: var(--c-yel-mark); }
.chapter--blue   { --c-bg: var(--c-blu-bg);  --c-tint: var(--c-blu-tint);  --c-mark: var(--c-blu-mark); }

/* Banner photo at top */
.chapter__banner {
  position: relative;
  height: clamp(40svh, 56svh, 64svh);
  overflow: hidden;
  background: var(--c-bg);
}
.chapter__banner picture, .chapter__banner img {
  width: 100%; height: 100%; display: block;
}
.chapter__banner img {
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.6s var(--ease-out);
}
.chapter:hover .chapter__banner img { transform: scale(1.08); }
.chapter__banner::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,12,.15) 0%, transparent 35%, transparent 60%, var(--ink) 100%),
    linear-gradient(95deg, color-mix(in srgb, var(--c-bg) 65%, transparent) 0%, transparent 60%);
  pointer-events: none;
}

/* Body — dark editorial */
.chapter__body {
  position: relative;
  background: var(--ink);
  padding: clamp(72px, 11vh, 140px) 0 clamp(72px, 12vh, 160px);
  overflow: hidden;
}
.chapter__body::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 30%, color-mix(in srgb, var(--c-tint) 60%, transparent) 0%, transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(184, 137, 63, .08) 0%, transparent 55%);
  pointer-events: none;
}
.chapter__layout {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vh, 72px);
  align-items: center;
  /* Narrower than the default container so the text/photo gap feels intimate,
     not stretched across a wide screen. */
  max-width: 1080px;
}
@media (min-width: 900px) {
  .chapter__layout {
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 4vw, 72px);
  }
  .chapter__layout--reverse > .chapter__content {
    order: 2;
    /* mirror layout — push content to the right edge of column so red/yellow are symmetric */
    margin-left: auto;
  }
  .chapter__layout--reverse > .chapter__detail  { order: 1; }
}

/* Content — text side */
.chapter__content { max-width: 32em; }

/* Inline index marker at top of content */
.chapter__index {
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 12px;
  letter-spacing: .3em;
  color: rgba(255,255,255,.45);
  margin-bottom: 2em;
  text-transform: uppercase;
}
.chapter__index span:first-child {
  color: var(--gold-light);
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: .2em;
}
.chapter__index em {
  font-style: italic;
  color: rgba(255,255,255,.65);
  letter-spacing: .25em;
}

/* The kanji — thin, refined, photo-filled glyph (background-clip: text) */
.chapter__kanji {
  font-family: var(--ff-jp);
  font-weight: 400;
  /* sized for 2-character meaning (再生・栄光・継承) — fits within the column */
  font-size: clamp(80px, 11vw, 180px);
  line-height: 1.0;
  letter-spacing: .02em;                /* slight breathing between the two characters */
  margin: -.06em 0 .1em -.04em;
  padding-bottom: .04em;
  opacity: 0;
  animation: kanjiFade 1.6s .15s var(--ease-out) forwards;
  /* Photo fill — strokes become a window onto the chapter's detail image */
  color: var(--c-mark);                 /* fallback for unsupported browsers */
  background-size: cover;               /* fill the glyph bounding box */
  background-position: center;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  /* Keep a soft chromatic halo behind the glyph */
  filter: drop-shadow(0 0 60px color-mix(in srgb, var(--c-mark) 25%, transparent));
}
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .chapter__kanji { color: transparent; }
}
/* Per-chapter: dedicated kanji-fill images (solid colored macros, no dark BG) */
.chapter--red .chapter__kanji {
  background-image: url(../images/products/kanji-fill-red-1200.webp);
  background-size: 115% auto;
  background-position: 24% 48%;
}
.chapter--yellow .chapter__kanji {
  background-image: url(../images/products/kanji-fill-yellow-1200.webp);
  background-size: 105% auto;
  background-position: 29% 69%;
}
.chapter--blue .chapter__kanji {
  background-image: url(../images/products/kanji-fill-blue-1200.webp);
  background-size: 100% auto;
  background-position: 0% 38%;
}
@keyframes kanjiFade { to { opacity: 1; } }

.chapter__name {
  font-family: var(--ff-en);
  font-weight: 400;
  font-size: clamp(18px, 1.2vw + 12px, 26px);
  letter-spacing: .22em;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 2em;
  display: flex; align-items: baseline; gap: .5em; flex-wrap: wrap;
}
.chapter__name .slash { color: var(--gold-light); font-weight: 300; }
.chapter__name em {
  font-family: var(--ff-jp);
  font-style: normal;
  color: var(--gold-light);
  letter-spacing: .15em;
}
.chapter__poem {
  font-size: clamp(17px, .55vw + 15px, 21px);
  line-height: 2.15;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .92);
  margin-bottom: 1.8em;
}
.chapter__poem p { margin: 0; }
.chapter__caption {
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 13px;
  line-height: 1.9;
  color: rgba(255, 255, 255, .5);
  letter-spacing: .04em;
  max-width: 32em;
  border-top: 1px solid var(--line-on-dk);
  padding-top: 1.4em;
}
.chapter__caption-en {
  display: block;
  color: var(--gold-light);
  letter-spacing: .15em;
  margin-bottom: .5em;
  font-size: 12px;
  text-transform: uppercase;
}

/* Detail close-up — refined, sized like an editorial feature image */
.chapter__detail {
  position: relative;
  margin: 0;
  overflow: hidden;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 4 / 5;
  background: var(--ink-soft);
  /* Right-side photo (red, blue) → push to RIGHT edge of column for visual symmetry
     with text on opposite outer edge */
  margin-left: auto;
}
/* Left-side photo (yellow, reverse layout) → push to LEFT edge of column */
.chapter__layout--reverse .chapter__detail {
  margin-left: 0;
  margin-right: auto;
}
.chapter__detail picture, .chapter__detail img {
  width: 100%; height: 100%; display: block;
}
.chapter__detail img {
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  /* No hover zoom — image is not clickable. JS applies scroll-driven zoom instead. */
  will-change: transform;
}

@media (max-width: 899px) {
  .chapter__kanji { font-size: clamp(140px, 32vw, 240px); }
  .chapter__detail { aspect-ratio: 4 / 5; max-width: 540px; margin-inline: auto; }
}

/* ── Craft / Material — process style ─────────────────── */
.craft {
  /* No background — keeps .craft__intro transparent so the fixed gold overlay
     shows through. .process and .craft__meta-band have their own bg so the
     overlay is naturally masked away from those areas. */
  color: #fff;
}
.craft .eyebrow { color: var(--gold-light); }
.craft__intro {
  padding: var(--section-pad) 0 clamp(40px, 6vh, 80px);
  border-top: 1px solid var(--line-on-dk);
}

/* ── Gold-leaf fixed overlay — trio-style mask pattern ──
   Behind everything (z-index: -3). Three stacked background layers:
     1. Dark gradient on top, hides image on left, fades to transparent on right
     2. Gold image, cover-fits viewport (full height, no rectangle edges)
     3. Solid dark backdrop fills remaining area
   Result: gold particles on the right, smoothly fading to dark on the left,
   no visible image boundary. */
.gold-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  background:
    linear-gradient(to right,
      var(--ink) 0%,
      var(--ink) 30%,
      transparent 65%,
      transparent 100%),
    url(../images/scenes/gold-leaf-1600.webp) center / cover no-repeat,
    var(--ink);
}
.craft__h {
  font-size: var(--fs-h2);
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.4;
  margin-bottom: 1em;
  max-width: 14em;
}
.craft__h span { display: block; }
.craft__lead {
  font-size: var(--fs-lead);
  line-height: 2.1;
  color: rgba(255, 255, 255, .82);
  max-width: 38em;
}

/* Process item (one step) */
.process {
  position: relative;
  background: var(--ink);   /* opaque — masks the fixed gold overlay below */
}
.process__photo {
  position: relative;
  margin: 0;
  height: clamp(38svh, 50svh, 60svh);
  overflow: hidden;
  background: #000;
}
.process__photo picture, .process__photo img {
  width: 100%; height: 100%; display: block;
}
.process__photo img {
  object-fit: cover;
  object-position: center;
  transition: transform 1.4s var(--ease-out);
}
#process-03 .process__photo img { object-position: center 78%; }
.process:hover .process__photo img { transform: scale(1.04); }
.process__photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 60%, var(--ink) 100%);
  pointer-events: none;
}
.process__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding-block: clamp(48px, 8vh, 96px);
}
@media (min-width: 880px) {
  .process__inner {
    grid-template-columns: 240px 1fr;
    gap: clamp(40px, 6vw, 96px);
  }
}
.process__ttl {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.process__ttl dt {
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 12px;
  letter-spacing: .25em;
  color: var(--gold-light);
  text-transform: uppercase;
  line-height: 1.7;
}
.process__ttl dd {
  font-family: var(--ff-en);
  font-weight: 400;
  font-size: clamp(64px, 8vw, 120px);
  line-height: 1;
  color: #fff;
  letter-spacing: -.02em;
}
.process__txt h3 {
  font-family: var(--ff-jp);
  font-weight: 500;
  font-size: var(--fs-h3);
  letter-spacing: .08em;
  margin-bottom: 1em;
  color: #fff;
}
.process__txt h3::after {
  content: "";
  display: block;
  width: 32px; height: 1px;
  background: var(--gold);
  margin-top: .8em;
}
.process__txt p {
  font-size: var(--fs-lead);
  line-height: 2.05;
  color: rgba(255, 255, 255, .82);
  letter-spacing: .04em;
  max-width: 36em;
}

.craft__meta-band {
  border-top: 1px solid var(--line-on-dk);
  padding: clamp(36px, 5vh, 60px) 0;
  background: var(--ink);    /* opaque — masks the fixed gold overlay below */
}
.craft__meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  font-family: var(--ff-en);
  font-size: 13px;
  letter-spacing: .12em;
}
@media (min-width: 700px) {
  .craft__meta { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}
.craft__meta div { display: flex; flex-direction: column; gap: .5em; }
.craft__meta dt {
  color: var(--gold-light);
  font-style: italic;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .25em;
}
.craft__meta dd { color: rgba(255, 255, 255, .9); font-size: 14px; line-height: 1.7; }

/* ── Handwork ──────────────────────────────────────────── */
.handwork {
  background: var(--paper);
  padding: var(--section-pad) 0 0;
  text-align: center;
  overflow: hidden;
}
.handwork__h {
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .04em;
  margin-bottom: 1.6em;
}
.handwork__h span { display: inline-block; }
.handwork__body {
  font-size: var(--fs-lead);
  line-height: 2.2;
  letter-spacing: .04em;
  color: #2c2820;
  max-width: 38em;
  margin: 0 auto;
}
.handwork__body + .handwork__body { margin-top: 1.6em; }
.handwork__strip {
  margin-top: clamp(60px, 10vh, 120px);
  overflow: hidden;
  position: relative;
}
.handwork__strip::before, .handwork__strip::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 12vw; z-index: 2;
  pointer-events: none;
}
.handwork__strip::before { left: 0; background: linear-gradient(to right, var(--paper), transparent); }
.handwork__strip::after  { right: 0; background: linear-gradient(to left,  var(--paper), transparent); }
.handwork__strip-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.handwork__strip-track img {
  width: clamp(180px, 22vw, 320px);
  height: auto;
  flex: 0 0 auto;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ── Purpose ───────────────────────────────────────────── */
.purpose {
  background: var(--paper-deep);
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}
.purpose::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(184, 137, 63, .12) 0%, transparent 60%);
  pointer-events: none;
}
.purpose__h {
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: .04em;
  margin-bottom: 1.4em;
  position: relative;
}
.purpose__h span { display: block; }
.purpose__body {
  font-size: var(--fs-lead);
  line-height: 2.2;
  letter-spacing: .04em;
  color: #2c2820;
  max-width: 38em;
  position: relative;
}
.purpose__body + .purpose__body { margin-top: 1.6em; }

/* ── Product ───────────────────────────────────────────── */
.product {
  background: var(--ink);
  color: #fff;
  padding: var(--section-pad) 0;
}
.product .eyebrow { color: var(--gold-light); }
.product__h {
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: .04em;
  margin-bottom: 1.6em;
}
.product__h span { display: inline-block; }

.product__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: clamp(60px, 8vh, 96px);
}
@media (min-width: 700px) {
  .product__cards { grid-template-columns: repeat(3, 1fr); }
}
.product__card {
  position: relative;
  background: var(--ink-soft);
  border: 1px solid var(--line-on-dk);
  border-radius: 4px;
  overflow: hidden;
  /* No transform on hover — would cause edge flicker. Use shadow + border for lift feel. */
  transition: border-color .5s var(--ease-out), box-shadow .5s var(--ease-out);
  --c-key: var(--gold);   /* default; overridden per data-color */
}
.product__card:hover {
  border-color: var(--c-key);
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .6), 0 0 0 1px var(--c-key);
}
.product__card[data-color="red"]    { --c-key: var(--c-red-mark); background: linear-gradient(170deg, #2a0608, var(--ink-soft)); }
.product__card[data-color="yellow"] { --c-key: var(--c-yel-mark); background: linear-gradient(170deg, #2a2008, var(--ink-soft)); }
.product__card[data-color="blue"]   { --c-key: var(--c-blu-mark); background: linear-gradient(170deg, #06202a, var(--ink-soft)); }
.product__card picture {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  background: #0d0d10;
}
.product__card img {
  width: 100%; height: 100%;
  object-fit: cover;             /* box image is square, no padding needed */
  transition: transform 1s var(--ease-out);
}
.product__card:hover img { transform: scale(1.04); }
.product__card-meta {
  padding: 24px 28px 28px;
  border-top: 1px solid var(--line-on-dk);
}
.product__card-name {
  font-family: var(--ff-en);
  font-size: 20px;
  letter-spacing: .25em;
  color: #fff;
  margin-bottom: .4em;
  display: flex; align-items: baseline; gap: .8em;
}
.product__card-name span {
  font-family: var(--ff-jp);
  font-size: 1.4em;
  color: var(--c-key);          /* per-card key color (red/yellow/blue) */
  letter-spacing: .1em;
}
.product__card-tag {
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 13px;
  letter-spacing: .15em;
  color: var(--c-key);           /* per-card key color */
}

.product__spec {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  border-top: 1px solid var(--line-on-dk);
  border-bottom: 1px solid var(--line-on-dk);
  padding: clamp(28px, 4vw, 48px) 0;
  margin-bottom: clamp(40px, 6vh, 80px);
}
@media (min-width: 700px) { .product__spec { grid-template-columns: repeat(2, 1fr); column-gap: clamp(32px, 5vw, 80px); } }
@media (min-width: 1000px) {
  .product__spec { grid-template-columns: repeat(3, 1fr); }
  .product__spec--full { grid-column: 1 / -1; }
}
.product__spec div {
  display: flex; flex-direction: column; gap: .6em;
}
.product__spec dt {
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 12px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.product__spec dd {
  font-size: 16px;
  letter-spacing: .04em;
  line-height: 1.8;
  color: rgba(255, 255, 255, .92);
}
.product__spec dd span {
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 12px;
  color: rgba(255, 255, 255, .55);
  margin-left: .4em;
}

.product__cta {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
}
.btn {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 18px 36px;
  border-radius: 999px;
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 15px;
  letter-spacing: .18em;
  text-transform: uppercase;
  /*
    NOTE: never animate any property that changes the button's bounding box
    on hover (width, padding, transform: translateY/scale on the button itself).
    Doing so creates a hover-flicker loop near the edge: the button grows past
    the cursor, :hover ends, button shrinks back, cursor is back inside, repeat.
    Only animate colors / inner-element transforms here.
  */
  transition: background .4s var(--ease-out), color .4s var(--ease-out), border-color .4s var(--ease-out), box-shadow .4s var(--ease-out);
  position: relative;
  white-space: nowrap;
  line-height: 1;
}
.btn--primary {
  background: var(--gold);
  color: #fff;
  border: 1px solid var(--gold);
  padding-right: 30px;
}
.btn--primary:hover {
  background: var(--gold-mid);
  border-color: var(--gold-mid);
  box-shadow: 0 8px 24px -10px rgba(184, 137, 63, .55);
}
.btn--primary i {
  width: 28px; height: 1px;             /* fixed width — no growth on hover */
  background: currentColor;
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  transition: transform .35s var(--ease-out);
}
.btn--primary i::after {
  content: "";
  position: absolute; right: -1px; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn--primary:hover i {
  /* translate doesn't affect layout — button bounding box stays the same */
  transform: translateX(4px);
}
.btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, .85);
  border: 1px solid var(--line-on-dk);
}
.btn--ghost:hover { color: #fff; border-color: var(--gold-light); }

/* ── Footer ────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .6);
  padding: 60px 0 40px;
  border-top: 1px solid var(--line-on-dk);
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (min-width: 700px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}
.footer__brand picture { display: block; }
.footer__brand-logo {
  display: block;
  width: 180px;
  height: auto;
  margin-bottom: 14px;
}
.footer__brand small {
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 13px;
  letter-spacing: .15em;
  color: rgba(255, 255, 255, .5);
}
.footer__addr {
  font-style: normal;
  font-size: 13px;
  line-height: 2;
  letter-spacing: .04em;
}
.footer__links {
  display: flex; flex-wrap: wrap; gap: 24px;
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 13px;
  letter-spacing: .12em;
  padding-block: 24px;
  border-top: 1px solid var(--line-on-dk);
  border-bottom: 1px solid var(--line-on-dk);
}
.footer__links a:hover { color: var(--gold-light); }
.footer__copy {
  margin-top: 24px;
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 11px;
  letter-spacing: .25em;
  color: rgba(255, 255, 255, .4);
}

/* ── Mobile tweaks ─────────────────────────────────────── */
@media (max-width: 700px) {
  .nav__cta { padding: 8px 14px; font-size: 11px; }
  .nav { padding-block: 14px; }
  .hero__title-jp { letter-spacing: .12em; }
  .hero__lead { line-height: 2; }
  .chapter { height: auto; }
  .chapter__sticky { position: relative; min-height: 100svh; height: auto; padding-block: 80px; }
  .chapter__type { padding-block: 0; }
  .chapter__visual { padding-block: 20px 0; }
  .craft__h, .concept__h, .handwork__h, .purpose__h, .product__h, .trio__h { letter-spacing: .02em; }
}

/* ── Color theme on dark sections for nav ─────────────── */
section[data-color] { /* used by nav state observer */ }
