/* =============================================================================
   KAITO — Premium dark-warm editorial (Japanese) · styles.css
   ============================================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* sumi ink base (warm near-black, never #000) */
  --bg:      #0d0b0a;
  --bg-2:    #131010;
  --bg-3:    #1b1613;   /* card */
  --bg-4:    #241d18;

  /* text — warm cream, never pure white */
  --cream:   #ede4d3;
  --cream-2: #c9bda6;
  --cream-3: #8a7d68;   /* metadata */

  /* accents */
  --shu:     #c1402f;   /* vermilion 朱 — primary */
  --shu-2:   #9c2e21;
  --ai:      #38606b;   /* indigo-teal 藍 — secondary */
  --gold:    #c49a5b;

  --accent:  var(--shu);
  --line:    rgba(237, 228, 211, 0.12);
  --line-2:  rgba(237, 228, 211, 0.06);

  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --jp: "Noto Serif JP", serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --gutter: clamp(1.25rem, 5vw, 6rem);
  --maxw: 1280px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--cream);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.04; letter-spacing: -0.02em; font-weight: 400; }
::selection { background: var(--shu); color: var(--cream); }

:focus-visible { outline: 2px solid var(--shu); outline-offset: 3px; border-radius: 3px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--cream); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 500;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.kicker {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cream-3);
  display: inline-flex; align-items: center; gap: .6rem;
}
.kicker .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--shu);
  box-shadow: 0 0 0 0 rgba(193, 64, 47, .5);
  animation: pulse 2.6s var(--ease-soft) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(193,64,47,.5); }
  70%  { box-shadow: 0 0 0 10px rgba(193,64,47,0); }
  100% { box-shadow: 0 0 0 0 rgba(193,64,47,0); }
}
[lang="ja"] { font-family: var(--jp); font-weight: 500; }

/* grain overlay (fixed) */
.grain {
  position: fixed; inset: 0; z-index: 3; pointer-events: none;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =============================================================
   4. Typography helpers
   ============================================================= */
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5.4vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 20ch;
}
.section-title.big { font-size: clamp(2.4rem, 7vw, 5.6rem); }
.section-title em, .hero-title em, .pull em, .cta-title em, h2 em, .lead em, p em {
  font-style: italic;
  color: var(--gold);
}
.section-title em { color: var(--shu); }
.hero-title em { color: var(--shu); font-style: italic; }
.lead { font-size: clamp(1.15rem, 2.1vw, 1.5rem); color: var(--cream); line-height: 1.5; }
.em-line { color: var(--cream); font-weight: 400; }
.em-line em { color: var(--gold); }
.small { font-size: .95rem; color: var(--cream-2); }

/* =============================================================
   5. Components — buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.7rem;
  border-radius: 100px;
  font-size: .92rem; font-weight: 500; letter-spacing: .01em;
  transition: transform .5s var(--ease-out), background .4s var(--ease-out), color .4s var(--ease-out), border-color .4s var(--ease-out);
  will-change: transform;
  position: relative;
}
.btn-primary { background: var(--shu); color: #fff; }
.btn-primary:hover { background: var(--shu-2); transform: translateY(-2px); box-shadow: 0 14px 36px -12px rgba(193,64,47,.7); }
.btn-ghost { border: 1px solid var(--line); color: var(--cream); }
.btn-ghost:hover { border-color: var(--cream-2); background: rgba(237,228,211,.04); }
.btn-lg { padding: 1.15rem 2.3rem; font-size: 1rem; }

/* =============================================================
   6. Splash
   ============================================================= */
.splash {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: grid; place-items: center;
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out { animation: splashOut 1s var(--ease-in) forwards; }
@keyframes splashOut { to { opacity: 0; visibility: hidden; clip-path: inset(0 0 100% 0); } }
@keyframes splashSafety { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.splash-inner { text-align: center; display: grid; gap: 1rem; justify-items: center; }
.splash-kanji {
  font-family: var(--jp); font-size: clamp(3rem, 12vw, 6rem); color: var(--shu);
  opacity: 0; animation: splashUp .9s .1s var(--ease-out) forwards;
}
.splash-name {
  font-family: var(--mono); letter-spacing: .5em; font-size: .8rem; color: var(--cream-3);
  padding-left: .5em;
  opacity: 0; animation: splashUp .9s .35s var(--ease-out) forwards;
}
.splash-line {
  width: 0; height: 1px; background: var(--line);
  animation: splashLine 1.4s .6s var(--ease-out) forwards;
}
@keyframes splashUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes splashLine { to { width: 120px; } }

/* =============================================================
   7. Cursor
   ============================================================= */
.cursor { position: fixed; top: 0; left: 0; z-index: 900; pointer-events: none; opacity: 0; transition: opacity .3s; mix-blend-mode: difference; }
.cursor.is-ready { opacity: 1; }
.cursor-dot { position: fixed; top: 0; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--cream); transform: translate(-50%, -50%); }
.cursor-ring { position: fixed; top: 0; left: 0; width: 34px; height: 34px; border: 1px solid rgba(237,228,211,.6); border-radius: 50%; transform: translate(-50%, -50%); transition: width .3s var(--ease-out), height .3s var(--ease-out), background .3s; }
.cursor.is-hover .cursor-ring { width: 54px; height: 54px; background: rgba(237,228,211,.08); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* =============================================================
   8. Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  transition: background .5s var(--ease-out), border-color .5s, backdrop-filter .5s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(13, 11, 10, .8);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom-color: var(--line-2);
}
.nav-inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: 1.1rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav-brand { display: inline-flex; align-items: center; gap: .6rem; }
.nav-brand-mark { font-family: var(--jp); color: var(--shu); font-size: 1.5rem; }
.nav-brand-name { font-family: var(--serif); font-size: 1.25rem; letter-spacing: .01em; }
.nav-links { display: none; gap: 2rem; }
.nav-links a { font-size: .9rem; color: var(--cream-2); position: relative; padding: .3rem 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--shu); transition: width .4s var(--ease-out); }
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { padding: .7rem 1.4rem; }
.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; padding: .5rem; }
.nav-toggle span { width: 24px; height: 1.5px; background: var(--cream); transition: transform .4s var(--ease-out), opacity .3s; }
.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { transform: translateY(-0px) rotate(-45deg); opacity: 1; }

/* mobile menu */
.nav-mobile {
  position: fixed; inset: 0; z-index: 490;
  background: var(--bg-2);
  display: grid; place-content: center; gap: 1.4rem; text-align: center;
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease-out), visibility .5s;
}
.nav-mobile.is-open { opacity: 1; visibility: visible; }
.nav-mobile a { font-family: var(--serif); font-size: 2rem; color: var(--cream); }
.nav-mobile a[data-cta] { color: var(--shu); }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}
@media (max-width: 959px) {
  .nav-cta { display: none; }
}

/* =============================================================
   9. Hero
   ============================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: 54svh auto; overflow: hidden;
}
.hero-media { position: relative; z-index: 0; overflow: hidden; }
.hero-img, .hero-video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
/* mobile: blend bottom of image into the text block below */
.hero-tint {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,11,10,.15) 0%, transparent 30%, rgba(13,11,10,.55) 82%, var(--bg) 100%);
}
.hero-mesh {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: .5; mix-blend-mode: screen;
  background:
    radial-gradient(38% 45% at 12% 88%, rgba(193,64,47,.5) 0%, transparent 60%),
    radial-gradient(42% 45% at 90% 15%, rgba(56,96,107,.4) 0%, transparent 60%);
  filter: blur(50px);
  animation: meshDrift 18s var(--ease-soft) infinite alternate;
}
@keyframes meshDrift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(3%, -3%, 0) scale(1.15); }
}
.hero-inner {
  position: relative; z-index: 2; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(1.8rem, 5vw, 3rem) var(--gutter) clamp(2.5rem, 5vh, 3.5rem);
}
.hero-kicker { margin-bottom: 1.3rem; }
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 7.6vw, 4.3rem);
  line-height: 1.0; letter-spacing: -0.03em;
  max-width: 18ch;
}
.hero-sub { margin-top: 1.4rem; max-width: 44ch; font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--cream-2); }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-scroll {
  position: absolute; bottom: 1.6rem; right: var(--gutter); z-index: 3;
  display: none; align-items: center; gap: .7rem;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cream-3);
}

/* Desktop: two columns — text left on dark, portrait right, face fully clear */
@media (min-width: 960px) {
  .hero { grid-template-rows: none; grid-template-columns: 1.02fr 0.98fr; }
  .hero-media { grid-column: 2; grid-row: 1; }
  .hero-img, .hero-video { object-position: 50% 22%; }
  .hero-tint {
    background: linear-gradient(90deg, var(--bg) 0%, rgba(13,11,10,.4) 12%, transparent 42%),
                linear-gradient(180deg, transparent 60%, rgba(13,11,10,.4) 100%);
  }
  .hero-inner { grid-column: 1; grid-row: 1; padding-block: 6rem; padding-inline: var(--gutter) clamp(2rem, 4vw, 4rem); }
  .hero-inner > * { max-width: 40rem; }
}
.hero-scroll i { width: 1px; height: 42px; background: linear-gradient(var(--cream-3), transparent); position: relative; overflow: hidden; }
.hero-scroll i::after { content: ""; position: absolute; top: -50%; left: 0; width: 1px; height: 50%; background: var(--shu); animation: scrollLine 2.2s var(--ease-soft) infinite; }
@keyframes scrollLine { to { top: 100%; } }
@media (min-width: 960px) { .hero-scroll { display: flex; } }

/* =============================================================
   10. Ticker
   ============================================================= */
.ticker {
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
  overflow: hidden; background: var(--bg-2);
  padding: 1.1rem 0;
}
.ticker-track {
  display: flex; align-items: center; gap: 2.5rem; width: max-content;
  animation: tickerMove 34s linear infinite;
  font-family: var(--serif); font-size: 1.3rem; font-style: italic; color: var(--cream-2);
  white-space: nowrap;
}
.ticker-track .sep { color: var(--shu); font-style: normal; }
@keyframes tickerMove { to { transform: translateX(-50%); } }

/* =============================================================
   11. Sections base
   ============================================================= */
.section {
  position: relative;
  max-width: var(--maxw); margin-inline: auto;
  padding: clamp(4.5rem, 11vh, 9rem) var(--gutter);
}
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); display: grid; gap: 1.2rem; }
.section-head.center { text-align: center; justify-items: center; }
.section-intro { max-width: 52ch; color: var(--cream-2); font-size: 1.05rem; }

.fig-kanji {
  position: absolute; font-family: var(--jp); color: rgba(237,228,211,.9);
  font-size: clamp(3rem, 8vw, 6rem); right: -.2em; bottom: -.3em; z-index: 2;
  mix-blend-mode: overlay; pointer-events: none;
}

/* =============================================================
   12. Story
   ============================================================= */
.story-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.story-fig { position: relative; border-radius: 4px; overflow: hidden; }
.story-fig img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.story-copy { display: grid; gap: 1.3rem; }
.story-copy p { color: var(--cream-2); max-width: 54ch; }
@media (min-width: 960px) {
  .story-grid { grid-template-columns: 1fr 1.1fr; }
}

/* =============================================================
   13. Struggle (pull quote)
   ============================================================= */
.struggle { text-align: center; }
.struggle-inner { max-width: 60ch; margin-inline: auto; display: grid; gap: 1.8rem; justify-items: center; }
.pull {
  font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 3rem); line-height: 1.2;
  letter-spacing: -0.02em; color: var(--cream);
}
.struggle-foot { color: var(--cream-3); max-width: 48ch; }

/* =============================================================
   14. Today
   ============================================================= */
.today-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
.today-copy { display: grid; gap: 1.2rem; }
.today-copy p { color: var(--cream-2); max-width: 58ch; }
.today-media { display: grid; gap: 1.4rem; }
.today-media figure { border-radius: 4px; overflow: hidden; }
.today-media img { width: 100%; object-fit: cover; }
.today-media figure:nth-child(1) img { aspect-ratio: 4/5; }
.today-media figure:nth-child(2) img { aspect-ratio: 4/3; }
@media (min-width: 960px) {
  .today-grid { grid-template-columns: 1.3fr 1fr; align-items: start; }
  .today-media { position: sticky; top: 100px; }
}

/* =============================================================
   14b. Japan band (full-bleed horizontal gallery)
   ============================================================= */
.japan-band { position: relative; padding-block: clamp(3.5rem, 8vh, 6rem); background: var(--bg-2); border-block: 1px solid var(--line-2); }
.japan-head { max-width: var(--maxw); margin: 0 auto clamp(2rem, 4vw, 3rem); padding-inline: var(--gutter); display: grid; gap: 1rem; }
.japan-track {
  display: flex; gap: 1rem;
  overflow-x: auto; overflow-y: visible;
  scroll-snap-type: x mandatory;
  padding: .5rem var(--gutter) 1.5rem;
  scrollbar-width: thin; scrollbar-color: var(--cream-3) transparent;
}
.japan-track::-webkit-scrollbar { height: 6px; }
.japan-track::-webkit-scrollbar-thumb { background: var(--cream-3); border-radius: 3px; }
.japan-shot {
  flex: 0 0 auto; width: clamp(240px, 68vw, 360px);
  scroll-snap-align: start; border-radius: 4px; overflow: hidden;
  background: var(--bg-3);
}
.japan-shot img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transition: transform .8s var(--ease-out), filter .8s var(--ease-out); filter: saturate(1.02); }
.japan-shot:hover img { transform: scale(1.05); filter: saturate(1.12); }

/* =============================================================
   15. Method
   ============================================================= */
.method { text-align: left; }
.method-halo {
  position: absolute; inset: -20% -10% 20% -10%; z-index: -1; pointer-events: none;
  background: radial-gradient(45% 40% at 50% 30%, rgba(193,64,47,.16), transparent 70%);
  filter: blur(90px);
}
.method-glyph { font-family: var(--jp); font-size: clamp(2.4rem, 6vw, 4rem); color: var(--shu); opacity: .9; letter-spacing: .1em; }
.method-copy { max-width: 60ch; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); display: grid; gap: 1.2rem; text-align: center; }
.method-copy p { color: var(--cream-2); }
.method-copy strong { color: var(--cream); }
.method-list { list-style: none; display: grid; gap: 1rem; max-width: 1000px; margin-inline: auto; }
.method-item {
  display: flex; gap: 1.3rem; align-items: flex-start;
  padding: 1.5rem 1.7rem; border: 1px solid var(--line-2); border-radius: 6px;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  transition: transform .5s var(--ease-out), border-color .5s, box-shadow .5s;
}
.method-item .mi-num { font-family: var(--jp); font-size: 1.8rem; color: var(--shu); line-height: 1; flex-shrink: 0; }
.method-item p { color: var(--cream-2); }
.method-item strong { color: var(--cream); }
.method-contrast { max-width: 62ch; margin: clamp(2.5rem, 5vw, 3.5rem) auto 0; display: grid; gap: 1.1rem; text-align: center; }
.method-contrast p { color: var(--cream-3); }
.method-contrast .em-line { color: var(--cream); }
@media (min-width: 760px) {
  .method-list { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}

/* =============================================================
   16. Stats
   ============================================================= */
.stats-grid { display: grid; gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
.stat { background: var(--bg-2); padding: clamp(1.8rem, 4vw, 2.8rem); display: grid; gap: .7rem; }
.stat-num { font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1; color: var(--cream); letter-spacing: -0.03em; }
.stat-label { font-size: .92rem; color: var(--cream-3); max-width: 30ch; }
@media (min-width: 720px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }

/* =============================================================
   17. Classroom
   ============================================================= */
.classroom-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.classroom-media figure { position: relative; border-radius: 4px; overflow: hidden; }
.classroom-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.classroom-copy { display: grid; gap: 1.4rem; }
.steps { list-style: none; display: grid; gap: 1.4rem; margin-top: .5rem; }
.steps li { display: flex; gap: 1.2rem; align-items: flex-start; }
.step-n { font-family: var(--mono); font-size: .85rem; color: var(--shu); padding-top: .3rem; flex-shrink: 0; letter-spacing: .1em; }
.steps p { color: var(--cream-2); }
.steps strong { color: var(--cream); }
.classroom-copy .btn { justify-self: start; margin-top: .6rem; }
@media (min-width: 960px) {
  .classroom-grid { grid-template-columns: 1fr 1.15fr; }
}

/* =============================================================
   18. Audience
   ============================================================= */
.audience-grid { display: grid; gap: 1.2rem; }
.aud-card {
  position: relative; overflow: hidden;
  padding: 2.2rem 2rem; border: 1px solid var(--line-2); border-radius: 6px;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  display: grid; gap: .8rem;
  transition: transform .5s var(--ease-out), border-color .5s, box-shadow .5s;
}
.aud-kanji { font-family: var(--jp); font-size: 2.4rem; color: var(--shu); }
.aud-card h3 { font-family: var(--serif); font-size: 1.4rem; }
.aud-card p { color: var(--cream-3); font-size: .96rem; }
.audience-honest { text-align: center; max-width: 56ch; margin: 2.5rem auto 0; color: var(--cream-2); }
.audience-honest em { color: var(--gold); }
@media (min-width: 720px) { .audience-grid { grid-template-columns: repeat(3, 1fr); } }

/* =============================================================
   19. Why
   ============================================================= */
.why-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.why-fig { border-radius: 4px; overflow: hidden; }
.why-fig img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.why-copy { display: grid; gap: 1.2rem; }
.why-copy p { color: var(--cream-2); max-width: 52ch; }
@media (min-width: 960px) {
  .why-grid { grid-template-columns: 1fr 1.2fr; }
}

/* =============================================================
   20. Media / testimonial
   ============================================================= */
.media { text-align: center; }
.media-quote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.5rem, 3.6vw, 2.6rem); line-height: 1.28; letter-spacing: -0.02em;
  max-width: 24ch; margin: 0 auto; color: var(--cream);
}
.media-cite { margin-top: 1.4rem; color: var(--cream-3); font-size: .95rem; }
.media-cite em { color: var(--gold); }
.media-embed { margin: clamp(2.5rem, 5vw, 3.5rem) auto 0; max-width: 900px; aspect-ratio: 16/9; border-radius: 6px; overflow: hidden; border: 1px solid var(--line-2); }
.media-embed iframe { width: 100%; height: 100%; border: 0; }
.media-embed-fallback { position: relative; width: 100%; height: 100%; display: grid; place-content: center; gap: 1rem; text-align: center; }
.media-embed-fallback img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.media-embed-play { position: relative; z-index: 1; display: grid; justify-items: center; gap: .5rem; color: var(--cream); }
.media-embed-play span { font-family: var(--jp); color: var(--shu); }
.media-embed-play i { font-style: normal; width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--cream-2); display: grid; place-content: center; }
.media-embed-fallback p { position: relative; z-index: 1; font-size: .85rem; color: var(--cream-3); }
.media-embed-fallback code { font-family: var(--mono); color: var(--gold); font-size: .8rem; }

/* =============================================================
   21. Ebooks
   ============================================================= */
.ebooks-grid { display: grid; gap: 1.4rem; }
.ebook {
  border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden;
  background: var(--bg-2);
  transition: transform .5s var(--ease-out), border-color .5s, box-shadow .5s;
  display: flex; flex-direction: column;
}
.ebook-cover { aspect-ratio: 5/7; overflow: hidden; background: var(--bg-3); }
.ebook-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.ebook:hover .ebook-cover img { transform: scale(1.05); }
.ebook-body { padding: 1.5rem; display: grid; gap: .6rem; flex: 1; }
.ebook-level { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--shu); }
.ebook-body h3 { font-family: var(--serif); font-size: 1.3rem; line-height: 1.15; }
.ebook-desc { color: var(--cream-3); font-size: .92rem; flex: 1; }
.ebook-foot { display: flex; align-items: center; justify-content: space-between; margin-top: .5rem; padding-top: 1rem; border-top: 1px solid var(--line-2); }
.ebook-price { font-family: var(--mono); color: var(--cream); font-size: .9rem; }
.ebook-buy { font-size: .85rem; color: var(--gold); transition: gap .3s; }
@media (min-width: 720px) { .ebooks-grid { grid-template-columns: repeat(3, 1fr); } }

/* =============================================================
   22. Beyond (social)
   ============================================================= */
.beyond-grid { display: grid; gap: 1.2rem; }
.beyond-card {
  position: relative; overflow: hidden;
  padding: 2rem; border: 1px solid var(--line-2); border-radius: 8px;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  display: grid; gap: .6rem; align-content: start;
  min-height: 210px;
  transition: transform .5s var(--ease-out), border-color .5s, box-shadow .5s;
}
.bc-tag { font-family: var(--mono); font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: var(--cream-3); }
.bc-num { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3rem); color: var(--cream); line-height: 1; }
.beyond-card p { color: var(--cream-3); font-size: .92rem; }
.bc-go { margin-top: auto; color: var(--gold); font-size: .88rem; }
.beyond-card:hover { border-color: var(--shu); }
.beyond-foot { text-align: center; max-width: 58ch; margin: 2.5rem auto 0; color: var(--cream-2); }
@media (min-width: 720px) { .beyond-grid { grid-template-columns: repeat(3, 1fr); } }

/* =============================================================
   23. Community
   ============================================================= */
.community { text-align: center; }
.community-inner { max-width: 56ch; margin-inline: auto; display: grid; gap: 1.4rem; justify-items: center; }
.community-copy { color: var(--cream-2); }
.community-form { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; width: 100%; max-width: 460px; }
.community-form input {
  flex: 1; min-width: 220px;
  padding: .95rem 1.3rem; border-radius: 100px;
  background: var(--bg-3); border: 1px solid var(--line); color: var(--cream);
  font: inherit; font-size: .95rem;
}
.community-form input::placeholder { color: var(--cream-3); }
.community-form input:focus-visible { border-color: var(--shu); outline: none; }
.form-msg { flex-basis: 100%; font-size: .88rem; color: var(--gold); min-height: 1.2em; }
.community-note { font-size: .82rem; color: var(--cream-3); }

/* =============================================================
   22b. Classroom note
   ============================================================= */
.classroom-note { color: var(--cream-3); font-size: .95rem; max-width: 46ch; }

/* =============================================================
   22b2. Testimonios (masonry)
   ============================================================= */
.testimonials { }
.rating-summary {
  max-width: 820px; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
  display: grid; gap: 2rem; align-items: center;
  padding: clamp(1.6rem, 4vw, 2.4rem);
  border: 1px solid var(--line-2); border-radius: 14px;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
}
.rs-score { display: grid; justify-items: center; gap: .4rem; }
.rs-num { font-family: var(--serif); font-size: clamp(3rem, 8vw, 4.4rem); line-height: 1; color: var(--cream); letter-spacing: -0.02em; }
.rs-stars { color: var(--gold); letter-spacing: .15em; font-size: 1.2rem; }
.rs-count { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-3); }
.rs-cats { list-style: none; display: grid; gap: .9rem; width: 100%; }
.rs-cats li { display: grid; grid-template-columns: 6.5rem 1fr 2.4rem; align-items: center; gap: 1rem; }
.rs-label { font-size: .9rem; color: var(--cream-2); }
.rs-track { height: 5px; border-radius: 100px; background: rgba(237,228,211,.1); overflow: hidden; }
.rs-track i { display: block; height: 100%; width: var(--v, 100%); background: linear-gradient(90deg, var(--shu), var(--gold)); border-radius: 100px; }
.rs-cats b { font-family: var(--mono); font-size: .85rem; font-weight: 500; color: var(--cream); text-align: right; }
@media (min-width: 720px) { .rating-summary { grid-template-columns: auto 1fr; gap: 3rem; } }

.tst-masonry { columns: 1; column-gap: 1.2rem; max-width: 1120px; margin-inline: auto; }
.tst {
  break-inside: avoid; margin-bottom: 1.2rem;
  padding: 1.6rem 1.7rem; border: 1px solid var(--line-2); border-radius: 10px;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  display: grid; gap: .9rem;
  transition: border-color .5s var(--ease-out), transform .5s var(--ease-out);
}
.tst:hover { border-color: rgba(193,64,47,.4); transform: translateY(-3px); }
.tst-stars { color: var(--gold); letter-spacing: .12em; font-size: .95rem; }
.tst blockquote { font-family: var(--serif); font-style: italic; font-size: 1.06rem; line-height: 1.45; color: var(--cream); }
.tst blockquote span[lang="ja"] { font-style: normal; color: var(--shu); }
.tst figcaption { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-3); }
.tst-foot { text-align: center; margin-top: 2.5rem; color: var(--cream-3); font-size: .92rem; }
@media (min-width: 720px) { .tst-masonry { columns: 2; } }
@media (min-width: 1080px) { .tst-masonry { columns: 3; } }

/* =============================================================
   16b. Stats duo (dos números grandes) + historia larga
   ============================================================= */
.stats-duo { grid-template-columns: 1fr; }
@media (min-width: 640px) { .stats-duo { grid-template-columns: 1fr 1fr; } }
.stats-duo .stat { padding: clamp(2.2rem, 6vw, 4rem); gap: 1rem; text-align: center; justify-items: center; }
.stats-duo .stat-num { font-size: clamp(3.2rem, 9vw, 5.6rem); }
.stats-duo .stat-label { font-size: 1.02rem; max-width: 26ch; }

/* historia por capítulos (estructurada, con aire) */
.story-more {
  max-width: 980px; margin: clamp(2.8rem, 6vw, 4.5rem) auto 0;
  display: grid; gap: clamp(2rem, 4vw, 2.8rem);
}
@media (min-width: 760px) {
  .story-more { grid-template-columns: 1fr 1fr; column-gap: clamp(2.2rem, 4vw, 3.5rem); }
}
.story-chapter { display: grid; gap: 1rem; align-content: start; padding-top: clamp(1.6rem, 3vw, 2.4rem); border-top: 1px solid var(--line-2); }
.story-sub {
  font-family: var(--mono); font-size: .76rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cream-3); display: flex; align-items: center; gap: .8rem; font-weight: 400;
}
.story-sub span[lang="ja"] { font-family: var(--jp); color: var(--shu); font-size: 1.5rem; line-height: 1; }
.story-chapter p { color: var(--cream-2); font-size: 1.08rem; line-height: 1.75; }
.story-chapter p.em-line { color: var(--cream); }

/* intro de la historia — más editorial (serif + letra capital) */
.story-copy { gap: 1.5rem; }
.story-copy .lead {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.5rem, 2.8vw, 2.05rem); line-height: 1.32; letter-spacing: -0.015em;
  color: var(--cream);
}
.story-copy .lead::first-letter {
  font-family: var(--serif); font-weight: 500;
  float: left; font-size: 3.6em; line-height: .74;
  padding: .05em .14em 0 0; color: var(--shu);
}
.story-copy p:not(.lead) { color: var(--cream-2); font-size: 1.07rem; line-height: 1.7; }
.story-copy p:not(.lead) strong { color: var(--cream); }

/* =============================================================
   22c. Redes (visual, clicable)
   ============================================================= */
.socials { text-align: center; }
.socials-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; max-width: 820px; margin-inline: auto; }
.social-card {
  display: grid; justify-items: center; gap: 1rem;
  padding: clamp(1.8rem, 4vw, 2.8rem) 1rem;
  border: 1px solid var(--line-2); border-radius: 12px;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  transition: transform .5s var(--ease-out), border-color .5s, box-shadow .5s, background .5s;
}
.social-ic { width: clamp(44px, 8vw, 60px); height: clamp(44px, 8vw, 60px); color: var(--cream); transition: color .4s var(--ease-out), transform .5s var(--ease-out); }
.social-ic svg { width: 100%; height: 100%; }
.social-name { font-family: var(--mono); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--cream-3); transition: color .4s; }
.social-card:hover { border-color: var(--shu); box-shadow: 0 26px 50px -28px rgba(0,0,0,.8); }
.social-card:hover .social-ic { color: var(--shu); transform: translateY(-3px) scale(1.06); }
.social-card:hover .social-name { color: var(--cream); }

/* =============================================================
   22d. Novedades (email slim)
   ============================================================= */
.news { text-align: center; }
.news-inner { max-width: 44ch; margin-inline: auto; display: grid; gap: 1.4rem; justify-items: center; }
.news-copy { color: var(--cream-2); font-size: 1.05rem; }
.news-form { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; width: 100%; max-width: 440px; }
.news-form input {
  flex: 1; min-width: 200px;
  padding: .95rem 1.3rem; border-radius: 100px;
  background: var(--bg-3); border: 1px solid var(--line); color: var(--cream);
  font: inherit; font-size: .95rem;
}
.news-form input::placeholder { color: var(--cream-3); }
.news-form input:focus-visible { border-color: var(--shu); outline: none; }
.news-form .form-msg { flex-basis: 100%; font-size: .88rem; color: var(--gold); min-height: 1.2em; margin: 0; }

/* =============================================================
   24. CTA final
   ============================================================= */
.cta { position: relative; max-width: none; text-align: center; overflow: hidden; padding-block: clamp(5rem, 14vh, 10rem); }
.cta-media { position: absolute; inset: 0; z-index: 0; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.cta-tint { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,11,10,.9), rgba(13,11,10,.78) 40%, rgba(13,11,10,.94)); }
.cta-mesh {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: screen; opacity: .5;
  background: radial-gradient(40% 50% at 50% 60%, rgba(193,64,47,.5), transparent 65%);
  filter: blur(60px); animation: meshDrift 16s var(--ease-soft) infinite alternate;
}
.cta-inner { position: relative; z-index: 2; max-width: 60ch; margin-inline: auto; padding-inline: var(--gutter); display: grid; gap: 1.5rem; justify-items: center; }
.cta-kanji { font-family: var(--jp); font-size: clamp(3rem, 9vw, 6rem); color: var(--shu); }
.cta-title { font-family: var(--serif); font-size: clamp(2.2rem, 6.5vw, 5rem); line-height: 1; letter-spacing: -0.03em; }
.cta-sub { color: var(--cream-2); max-width: 48ch; font-size: 1.08rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: .6rem; }
.cta-fine { font-size: .85rem; color: var(--cream-3); }

/* =============================================================
   25. Footer
   ============================================================= */
.footer { border-top: 1px solid var(--line-2); background: var(--bg-2); }
.footer-inner { max-width: var(--maxw); margin-inline: auto; padding: clamp(3rem, 6vw, 5rem) var(--gutter) 2rem; display: grid; gap: 2.5rem; }
.footer-mark { font-family: var(--jp); font-size: 1.8rem; color: var(--shu); }
.footer-name { font-family: var(--serif); font-size: 1.5rem; margin-top: .4rem; }
.footer-tag { color: var(--cream-3); font-size: .92rem; margin-top: .4rem; max-width: 32ch; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-h { font-family: var(--mono); font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: var(--cream-3); margin-bottom: .9rem; }
.footer-nav a { display: block; color: var(--cream-2); font-size: .92rem; padding: .3rem 0; transition: color .3s; }
.footer-nav a:hover { color: var(--shu); }
.footer-base { max-width: var(--maxw); margin-inline: auto; padding: 1.5rem var(--gutter); border-top: 1px solid var(--line-2); display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; }
.footer-base p { font-size: .82rem; color: var(--cream-3); }
@media (min-width: 720px) {
  .footer-inner { grid-template-columns: 1fr 1.4fr; align-items: start; }
}

/* =============================================================
   26. Reveal / effects
   ============================================================= */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
/* DEFENSIVE: split-text elements must never stay invisible */
.reveal[data-split] { opacity: 1; transform: none; }

/* split lines */
.line-wrap { display: block; overflow: hidden; }
.line-inner { display: block; transform: translateY(105%); transition: transform 1s var(--ease-out); }
[data-split].is-visible .line-inner { transform: none; }
.split-word { display: inline-block; }

/* parallax images need headroom so movement never reveals empty edges */
[data-parallax] { overflow: hidden; }
[data-parallax] img { scale: 1.16; will-change: transform; }

/* tilt cards get a soft accent halo on hover via JS-set custom props */
[data-tilt] { transform-style: preserve-3d; will-change: transform; }
.method-item:hover, .aud-card:hover, .ebook:hover { border-color: rgba(193,64,47,.4); box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }

/* =============================================================
   27. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-mesh, .cta-mesh { animation: none; }
  .ticker-track { animation-duration: 90s; }
  .kicker .dot { animation: none; }
  .hero-scroll i::after { animation: none; }
}
