/* ═══════════════════════════════════════════════════════════════════
   日本 — Nippon.  Startseite von lennartlux.com
   Die Seite durchläuft einen Tagesbogen: Morgendämmerung (Hero) →
   Tag (Welle, Jahreszeiten) → Dämmerung (Zen) → Nacht (Laternen).
   Keine externen Assets — Fonts kommen vom System, Grafiken sind SVG/CSS.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --sumi:      #12151f;   /* Tusche  */
  --indigo:    #1b2440;   /* Ai      */
  --night:     #0d1220;
  --shu:       #c8402f;   /* Zinnober */
  --shu-deep:  #a5301f;
  --sakura:    #f2c6d0;
  --kinari:    #f4efe6;   /* ungebleichtes Leinen */
  --gold:      #c9a227;
  --matcha:    #6f8f5f;

  --ease: cubic-bezier(.22, 1, .36, 1);

  /* Mincho-Stack: japanische Serifen zuerst, sonst westliche Serife. */
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP",
           "Songti SC", "Georgia", "Times New Roman", serif;
  --sans:  "Hiragino Sans", "Yu Gothic", "Noto Sans JP", system-ui,
           -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--night);
  color: var(--kinari);
  font-family: var(--sans);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0; }

/* Sektionen sind die Bühne — jede bringt ihren eigenen Himmel mit. */
section { position: relative; overflow: hidden; }

/* ── Wiederkehrende Textbausteine ─────────────────────────────────── */
.eyebrow {
  font-family: var(--serif);
  letter-spacing: .38em;
  text-transform: none;
  font-size: clamp(.72rem, 1.6vw, .84rem);
  color: var(--shu);
  margin: 0 0 1.1rem;
}
.eyebrow::after {
  content: ""; display: block; width: 2.6rem; height: 1px;
  background: currentColor; opacity: .55; margin-top: .9rem;
}

h2 { font-size: clamp(2rem, 5.6vw, 4rem); letter-spacing: .01em; }

.lead {
  font-size: clamp(1rem, 1.9vw, 1.18rem);
  max-width: 46ch; color: color-mix(in srgb, var(--kinari) 78%, transparent);
  margin: 1.4rem 0 0;
}
.lead em { font-style: italic; color: var(--sakura); }

.section-head { text-align: center; padding: 0 1.5rem; }
.section-head .eyebrow { display: inline-block; }
.section-head .eyebrow::after { margin-inline: auto; }

/* ── Partikel-Canvas + Scroll-Fortschritt ─────────────────────────── */
#particles {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 4;
}
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  background: rgba(255,255,255,.07); z-index: 20;
}
.progress__bar {
  height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--shu), var(--sakura), var(--gold));
  transform: scaleX(0);            /* JS setzt den Scroll-Anteil */
  transform-origin: left;
}

/* ═══════════════════ HERO ═══════════════════ */
.hero {
  min-height: 100svh;
  display: grid; place-items: center;
  /* Morgendämmerung: Nachtblau oben, Pfirsich am Horizont. */
  background:
    linear-gradient(#0b1024 0%, #1d2547 34%, #4a3f63 58%, #b56b6a 78%, #efb08a 92%, #f6d3a8 100%);
}

.hero__sun {
  position: absolute; left: 50%; top: 42%;
  width: min(46vmin, 340px); aspect-ratio: 1;
  /* --py wird vom Parallax-Code gesetzt; die Zentrierung bleibt erhalten. */
  transform: translate(-50%, calc(-50% + var(--py, 0px)));
  border-radius: 50%;
  background: radial-gradient(circle, #fff3d6 0%, #ffd9a0 38%, #f0a071 62%, transparent 70%);
  filter: blur(.5px);
  animation: sunPulse 9s ease-in-out infinite;
}
@keyframes sunPulse {
  50% { filter: blur(2px); opacity: .92; }
}

.hero__layer {
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%;
  transform: translate3d(0, var(--py, 0px), 0);
}
.hero__layer--far  { height: 42vh; }
.hero__layer--fuji { height: 62vh; }
.hero__layer--near { height: 26vh; z-index: 3; }

/* Nebelband, das quer über den Bergfuß zieht */
.hero__mist {
  position: absolute; left: -10%; right: -10%; bottom: 20vh; height: 16vh; z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(244,239,230,.30) 30%, rgba(244,239,230,.42) 55%, transparent);
  filter: blur(14px);
  animation: mistDrift 26s ease-in-out infinite alternate;
}
@keyframes mistDrift {
  to { transform: translateX(6%) scaleY(1.25); opacity: .75; }
}

.hero__content { position: relative; z-index: 5; text-align: center; padding: 0 1.5rem; }
.hero__kicker {
  font-family: var(--serif); letter-spacing: .5em; margin: 0 0 1.2rem;
  color: rgba(255,255,255,.72); font-size: clamp(.8rem, 2vw, 1rem);
}
.hero__title {
  display: flex; gap: clamp(.4rem, 2vw, 1.4rem); justify-content: center;
  font-size: clamp(5rem, 22vw, 15rem); line-height: .9; margin: 0;
  color: var(--kinari);
  text-shadow: 0 0 60px rgba(0,0,0,.35), 0 2px 0 rgba(0,0,0,.18);
}
.hero__glyph { display: block; }
.hero__sub {
  margin: 1.8rem 0 0; font-family: var(--serif); font-style: italic;
  font-size: clamp(1rem, 2.4vw, 1.5rem); color: rgba(255,255,255,.86);
  letter-spacing: .02em;
}

.scrollhint {
  position: absolute; bottom: 2.4rem; left: 50%; transform: translateX(-50%);
  z-index: 5; display: grid; justify-items: center; gap: .7rem;
  color: rgba(255,255,255,.7); text-decoration: none;
  font-size: .68rem; letter-spacing: .34em; text-transform: uppercase;
}
.scrollhint__line {
  width: 1px; height: 3.4rem; background: linear-gradient(rgba(255,255,255,.65), transparent);
  animation: hintDrop 2.2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes hintDrop {
  0%, 100% { transform: scaleY(.35); opacity: .35; }
  50%      { transform: scaleY(1);   opacity: 1; }
}

/* ═══════════════════ TORII ═══════════════════ */
.torii {
  min-height: 100svh;
  display: grid; place-items: center;
  padding: 8rem 1.5rem;
  background: linear-gradient(#f6d3a8 0%, #e8b596 22%, #cf8a86 48%, #6a5578 78%, #2a2a48 100%);
}
.torii__glow {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: min(90vmin, 760px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,214,170,.55), transparent 62%);
}
.torii__gate {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, calc(-46% + var(--py, 0px)));
  width: min(74vmin, 560px); height: auto;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.42));
}
.torii__copy {
  position: relative; z-index: 5; max-width: 34rem; text-align: center;
  background: radial-gradient(ellipse at center, rgba(15,17,30,.72), transparent 72%);
  padding: 3rem 1.5rem;
}

/* ═══════════════════ WELLE ═══════════════════ */
.wave {
  min-height: 100svh; display: grid; align-items: center;
  padding: 8rem 1.5rem 0;
  background: linear-gradient(#2a2a48, #17304f 45%, #0f2340);
}
.wave__copy { position: relative; z-index: 5; max-width: 42rem; margin: 0 auto; text-align: center; }
.wave__copy .lead { margin-inline: auto; }

.wave__stage { position: absolute; left: 0; right: 0; bottom: 0; height: 46vh; }
.wave__layer {
  position: absolute; bottom: 0; left: 0;
  width: 200%; height: 100%;
}
/* Drei Ebenen, unterschiedlich schnell — daraus entsteht die Tiefe. */
.wave__layer--3 { animation: swell 19s linear infinite;        opacity: .55; }
.wave__layer--2 { animation: swell 13s linear infinite reverse; opacity: .75; height: 84%; }
.wave__layer--1 { animation: swell  9s linear infinite;         height: 62%; }
@keyframes swell { to { transform: translateX(-50%); } }

/* ═══════════════════ JAHRESZEITEN ═══════════════════ */
.seasons {
  padding: 9rem 1.5rem 10rem;
  background: linear-gradient(#0f2340, #131a2e 40%, #1b1626);
}
.seasons__grid {
  list-style: none; margin: 4.5rem auto 0; padding: 0;
  max-width: 78rem;
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
}
.card {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 2.4rem 1.8rem 2.2rem;
  border: 1px solid rgba(244,239,230,.13);
  border-radius: 3px;
  background: rgba(255,255,255,.024);
  transition: transform .55s var(--ease), border-color .55s var(--ease), background .55s var(--ease);
}
.card::before {           /* farbiger Schleier, der beim Hover aufzieht */
  content: ""; position: absolute; inset: 0; z-index: -1;
  opacity: 0; transition: opacity .55s var(--ease);
  background: radial-gradient(120% 90% at 50% 0%, var(--tint), transparent 68%);
}
.card:hover, .card:focus-within { transform: translateY(-8px); border-color: color-mix(in srgb, var(--tint) 60%, transparent); }
.card:hover::before, .card:focus-within::before { opacity: 1; }

.card--haru  { --tint: #f2c6d0; }
.card--natsu { --tint: #4fb3a5; }
.card--aki   { --tint: #d2683a; }
.card--fuyu  { --tint: #9fc2e8; }

.card__kanji {
  position: absolute; right: -.6rem; bottom: -2.4rem; z-index: -1;
  font-family: var(--serif); font-size: 9.5rem; line-height: 1;
  color: var(--tint); opacity: .12;
  transition: opacity .55s var(--ease), transform .8s var(--ease);
}
.card:hover .card__kanji { opacity: .24; transform: translateY(-6px) rotate(-3deg); }

.card h3 {
  font-size: 1.7rem; margin-bottom: 1rem;
  display: flex; flex-direction: column; gap: .15rem;
}
.card h3 span {
  font-family: var(--sans); font-size: .68rem; letter-spacing: .3em;
  text-transform: uppercase; color: var(--tint); opacity: .9;
}
.card p { margin: 0; font-size: .95rem; color: rgba(244,239,230,.72); }

/* ═══════════════════ BAMBUS ═══════════════════ */
.bamboo {
  min-height: 100svh; display: grid; place-items: center; padding: 8rem 1.5rem;
  background: linear-gradient(#1b1626, #16301f 30%, #0f2417);
}
/* Halme: ein sich wiederholender Gradient, kein einziges Bild. */
.bamboo__stalks {
  position: absolute; inset: -6% 0;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0 34px,
    rgba(111,143,95,.30) 34px 40px,
    rgba(150,183,124,.50) 40px 62px,
    rgba(60,92,52,.55)  62px 70px,
    transparent 70px 116px
  );
  filter: blur(.4px);
  animation: sway 14s ease-in-out infinite alternate;
  transform-origin: bottom;
}
/* Zweite, unscharfe Ebene für Tiefenschärfe */
.bamboo__stalks::after {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    90deg, transparent 0 52px, rgba(90,120,78,.34) 52px 66px, transparent 66px 168px
  );
  filter: blur(5px);
  animation: sway 19s ease-in-out infinite alternate-reverse;
}
@keyframes sway {
  from { transform: skewX(-1.1deg) translateX(-.6%); }
  to   { transform: skewX(1.4deg)  translateX(.9%); }
}
/* Lichtstrahlen, die schräg durchs Blätterdach fallen */
.bamboo__rays {
  position: absolute; inset: -30% -20%;
  background: repeating-linear-gradient(
    104deg, transparent 0 90px, rgba(232,245,200,.10) 90px 132px, transparent 132px 240px
  );
  mix-blend-mode: screen;
  animation: rayShift 22s ease-in-out infinite alternate;
}
@keyframes rayShift { to { transform: translateX(70px); opacity: .55; } }

.haiku {
  position: relative; z-index: 5; margin: 0; text-align: center;
  background: radial-gradient(ellipse at center, rgba(10,20,14,.82), transparent 74%);
  padding: 3.5rem 2rem;
}
.haiku p {
  font-family: var(--serif); font-size: clamp(1.5rem, 4.2vw, 2.9rem);
  line-height: 1.6; margin: 0; color: var(--kinari);
}
.haiku cite {
  display: block; margin-top: 2rem; font-style: normal;
  font-size: .74rem; letter-spacing: .32em; text-transform: uppercase;
  color: rgba(244,239,230,.5);
}

/* ═══════════════════ ENSŌ ═══════════════════ */
.zen {
  min-height: 100svh; display: grid; place-items: center; padding: 8rem 1.5rem;
  background: linear-gradient(#0f2417, #101018 45%, #12151f);
}
.zen__enso {
  position: absolute; width: min(84vmin, 660px); height: auto; opacity: .9;
  filter: drop-shadow(0 0 40px rgba(244,239,230,.08));
}
#ensoCircle {
  /* Umfang bei r=76 ≈ 477.5. Der Strich bleibt bewusst offen (Lücke ~42). */
  stroke-dasharray: 436 480;
  stroke-dashoffset: 436;      /* JS zieht den Wert beim Scrollen auf 0 */
}
.zen__copy {
  position: relative; z-index: 5; max-width: 34rem; text-align: center;
  padding: 2rem;
}

/* ═══════════════════ WINTER ═══════════════════ */
.winter {
  min-height: 90svh; display: grid; place-items: center; padding: 8rem 1.5rem;
  background: linear-gradient(#12151f, #1e2636 40%, #2b3547);
}
.winter__copy { position: relative; z-index: 5; max-width: 34rem; text-align: center; }
.winter__copy .lead { margin-inline: auto; }

/* ═══════════════════ LATERNEN ═══════════════════ */
.lanterns {
  min-height: 110svh; display: grid; place-items: center; padding: 10rem 1.5rem;
  background: linear-gradient(#2b3547 0%, #141a2c 30%, #0a0e1a 100%);
}
.lanterns__field { position: absolute; inset: 0; }
.lantern {
  position: absolute; bottom: 12%; left: var(--x);
  width: calc(26px * var(--sc)); height: calc(38px * var(--sc));
  border-radius: 40% 40% 46% 46% / 30% 30% 60% 60%;
  background: linear-gradient(#ffd89b, #f0913f 55%, #d2542a);
  box-shadow: 0 0 26px 9px rgba(255,167,74,.34), 0 0 70px 26px rgba(255,140,50,.14);
  animation: drift 17s ease-in-out infinite, flicker 2.7s ease-in-out infinite;
  animation-delay: var(--dl), calc(var(--dl) * .4);
  opacity: .95;
}
@keyframes drift {
  0%   { transform: translate(0, 0)      rotate(-2deg); }
  50%  { transform: translate(14px, -46px) rotate(3deg); }
  100% { transform: translate(-6px, 6px)  rotate(-1deg); }
}
@keyframes flicker { 50% { opacity: .74; box-shadow: 0 0 18px 6px rgba(255,167,74,.26); } }

.lanterns__copy {
  position: relative; z-index: 5; max-width: 36rem; text-align: center;
  background: radial-gradient(ellipse at center, rgba(6,9,18,.8), transparent 76%);
  padding: 3rem 1.5rem;
}
/* Wasseroberfläche mit gespiegeltem Schimmer */
.lanterns__water {
  position: absolute; left: 0; right: 0; bottom: 0; height: 26vh;
  background:
    linear-gradient(transparent, rgba(255,150,70,.10) 40%, rgba(0,0,0,.6)),
    repeating-linear-gradient(0deg, transparent 0 6px, rgba(255,190,120,.055) 6px 8px);
  filter: blur(1px);
  animation: ripple 7s ease-in-out infinite alternate;
}
@keyframes ripple { to { transform: scaleY(1.1); opacity: .82; } }

/* ═══════════════════ FOOTER ═══════════════════ */
.foot {
  text-align: center; padding: 6rem 1.5rem 4rem;
  /* Führt das Nachtblau der Laternen-Sektion in die Tusche des Fußes über. */
  background: linear-gradient(#0a0e1a, var(--sumi) 60%);
  border-top: 1px solid rgba(244,239,230,.08);
}
.foot__seal {
  width: 74px; height: 74px; margin-bottom: 1.8rem;
  font-family: var(--serif);
  transform: rotate(-3deg);
  filter: drop-shadow(0 6px 18px rgba(200,64,47,.3));
}
.foot__line  { margin: 0; font-family: var(--serif); font-size: 1.05rem; }
.foot__small { margin: .7rem 0 2rem; font-size: .82rem; color: rgba(244,239,230,.45); }
.foot__up {
  color: var(--sakura); text-decoration: none; font-size: .84rem;
  letter-spacing: .22em; border-bottom: 1px solid transparent; padding-bottom: .2rem;
}
.foot__up:hover { border-color: currentColor; }

/* ═══════════════════ REVEAL beim Scrollen ═══════════════════ */
[data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .95s var(--ease) var(--d, 0ms), transform .95s var(--ease) var(--d, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ═══════════════════ Rücksicht & Bedienbarkeit ═══════════════════ */
:where(a, button):focus-visible {
  outline: 2px solid var(--sakura); outline-offset: 4px; border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
  /* Ohne Bewegung darf nichts unsichtbar bleiben. */
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  #ensoCircle { stroke-dashoffset: 0 !important; }
  #particles { display: none; }
}

@media (max-width: 640px) {
  .hero__mist { bottom: 24vh; }
  .torii__gate { transform: translate(-50%, calc(-52% + var(--py, 0px))); }
  .card__kanji { font-size: 7rem; }
}
