:root {
  --ink: #1a1a1a;
  --ink-soft: rgba(26, 26, 26, 0.72);
  --ink-faint: rgba(26, 26, 26, 0.38);
  --rose: #e85d6c;
  --rose-deep: #c94152;
  --panel: rgba(255, 252, 248, 0.55);
  --panel-strong: rgba(255, 252, 248, 0.82);
  --line: rgba(26, 26, 26, 0.14);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --pad: clamp(1rem, 3vw, 2.5rem);
  --header-h: 4.25rem;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html.lenis, html.lenis body { height: auto; }
body {
  background: #cfe6f5;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
}
body.touching, body.has-mouse-off { cursor: auto; }
body.touching .cursor, body.has-mouse-off .cursor { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: none; padding: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }

#webgl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  touch-action: auto;
  pointer-events: none;
}
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 45%, rgba(180, 200, 220, 0.28) 100%),
    linear-gradient(180deg, rgba(255,255,255,0.18), transparent 22%, transparent 70%, rgba(255,250,245,0.35));
}
.noise {
  position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0.035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor {
  position: fixed; top: 0; left: 0; z-index: 100; pointer-events: none;
  width: 28px; height: 28px; transform: translate(-50%, -50%);
  display: grid; place-items: center;
}
.cursor-ring {
  position: absolute; inset: 0;
  border: 1.5px solid rgba(26,26,26,0.75);
  border-radius: 50%;
  transition: transform .3s ease, background .3s ease, border-color .3s ease, width .3s, height .3s;
}
.cursor-icon {
  position: relative; z-index: 1; font-size: 11px; color: #fff; opacity: 0;
  transition: opacity .25s ease;
}
.cursor.is-hover .cursor-ring {
  transform: scale(2.1);
  background: rgba(26,26,26,0.88);
  border-color: transparent;
}
.cursor.is-hover .cursor-icon { opacity: 1; display: inline; }

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  background: linear-gradient(to bottom, rgba(255,252,248,0.55), transparent);
  backdrop-filter: blur(2px);
}
.brand { display: flex; align-items: center; gap: .65rem; }
.brand-mark { width: 26px; height: 26px; color: var(--rose); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: .92rem; letter-spacing: .18em; font-weight: 700; }
.brand-text small { font-size: .52rem; letter-spacing: .2em; color: var(--ink-soft); margin-top: .12rem; }
.nav-desktop { display: flex; gap: clamp(1rem, 2vw, 1.8rem); }
.nav-desktop a {
  font-size: .66rem; letter-spacing: .2em; font-weight: 600; color: var(--ink-soft);
  position: relative; padding: .3rem 0; transition: color .25s;
}
.nav-desktop a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--rose); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nav-desktop a:hover, .nav-desktop a.is-active { color: var(--ink); }
.nav-desktop a.is-active::after, .nav-desktop a:hover::after { transform: scaleX(1); }
.nav-toggle { display: none; width: 28px; height: 18px; position: relative; }
.nav-toggle span { position: absolute; left: 0; height: 1.5px; background: var(--ink); }
.nav-toggle span:first-child { top: 4px; width: 100%; }
.nav-toggle span:last-child { bottom: 4px; width: 70%; right: 0; left: auto; }
.mobile-nav {
  position: fixed; inset: 0; z-index: 35; background: rgba(255,252,248,.96);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem;
}
.mobile-nav[hidden] { display: none !important; }
.mobile-nav a { font-size: 1.05rem; letter-spacing: .28em; font-weight: 600; }

.scroll-root { position: relative; z-index: 3; }
.scroll-root a, .scroll-root button { pointer-events: auto; }
.spacer { height: 100vh; }
.spacer.tall { height: 140vh; }
.spacer.x-tall { height: 220vh; }

.hud { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
.hud a, .hud button, .hud .hoverable { pointer-events: auto; }
.hud-panel {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .45s ease, visibility .45s;
  padding: calc(var(--header-h) + 1rem) var(--pad) 2rem;
}
.hud-panel.is-on { opacity: 1; visibility: visible; }

.chapter-label {
  display: flex; align-items: center; gap: .5rem;
  font-size: .66rem; letter-spacing: .22em; font-weight: 600; margin: 0 0 1rem;
}
.chapter-label .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--rose);
  box-shadow: 0 0 10px rgba(232,93,108,.45);
}
.chapter-label.rose { color: var(--rose-deep); }

.hero-copy { max-width: 34rem; margin-top: 8vh; }
.hero-copy h1 {
  margin: 0 0 1rem; font-size: clamp(1.7rem, 3.5vw, 3rem);
  font-weight: 750; line-height: 1.1; letter-spacing: .01em;
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
}
.lede { margin: 0; max-width: 28rem; color: var(--ink-soft); font-size: .95rem; line-height: 1.65; }
.hero-jp {
  position: absolute; right: var(--pad); top: 45%;
  writing-mode: vertical-rl; font-family: var(--serif);
  letter-spacing: .4em; color: var(--ink-faint); font-size: 1rem;
}
.hero-footer {
  position: absolute; left: var(--pad); bottom: 1.5rem;
  display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap;
}
.scroll-hint { display: flex; align-items: center; gap: .7rem; font-size: .6rem; letter-spacing: .24em; color: var(--ink-soft); font-weight: 600; }
.scroll-hint .line { width: 40px; height: 1px; background: var(--ink-faint); display: inline-block; }
.chapter-pips { display: flex; gap: 1rem; }
.chapter-pips li { font-size: 1.1rem; font-weight: 700; color: var(--ink-faint); transition: color .25s, transform .25s; }
.chapter-pips li.is-active { color: var(--ink); transform: scale(1.08); }

.split {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end; max-width: 1100px; margin-top: 10vh;
}
.display {
  margin: 0; font-size: clamp(1.9rem, 4.2vw, 3.4rem); font-weight: 750; line-height: 1.05;
  text-shadow: 0 1px 0 rgba(255,255,255,.4);
}
.aside p {
  margin: 0 0 1.2rem; font-family: var(--serif); font-size: 1.15rem; line-height: 1.7; color: var(--ink-soft);
}
.text-link {
  display: inline-flex; font-size: .7rem; letter-spacing: .2em; font-weight: 700; color: var(--rose-deep);
  border-bottom: 1px solid rgba(201,65,82,.35); padding-bottom: .3rem;
}

.cards-panel { display: flex; flex-direction: column; justify-content: center; }
.overlay-label { position: relative; z-index: 2; margin-bottom: .8rem; }
.gardens-layout {
  display: grid; grid-template-columns: 1.55fr .7fr; gap: .85rem;
  max-height: calc(100vh - var(--header-h) - 5rem);
  min-height: 60vh;
}
.feature-card, .side-card {
  position: relative; overflow: hidden; border: 1px solid var(--line);
  background: var(--panel-strong); border-radius: 2px;
  box-shadow: 0 20px 50px rgba(80,100,130,.18);
}
.feature-card { min-height: 55vh; }
.feature-card img, .side-card img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .9s ease;
}
.hoverable:hover img { transform: scale(1.05); }
.card-caption {
  position: absolute; left: 1.1rem; bottom: 1.1rem; color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.55);
}
.card-caption h3 { margin: 0 0 .2rem; letter-spacing: .16em; font-size: 1.05rem; }
.card-caption p { margin: 0; font-size: .6rem; letter-spacing: .16em; opacity: .85; }
.side-stack { display: grid; grid-template-rows: 1fr 1fr; gap: .85rem; }
.side-card { min-height: 160px; }
.side-card h3 {
  position: absolute; left: 1rem; bottom: 1rem; margin: 0; color: #fff;
  letter-spacing: .18em; font-size: .82rem; text-shadow: 0 2px 10px rgba(0,0,0,.55);
}
.card-icon { position: absolute; top: 1rem; left: 1rem; display: flex; }
.card-icon span {
  width: 16px; height: 16px; border: 1.5px solid rgba(255,255,255,.85); border-radius: 50%;
}
.card-icon span:last-child { margin-left: -7px; }

.chapters-panel {
  display: flex; flex-direction: column; justify-content: center; gap: 1.5rem;
  background: linear-gradient(180deg, rgba(255,252,248,.72), rgba(255,252,248,.55));
  backdrop-filter: blur(8px);
}
.chapters-head h2 {
  margin: 0 0 1.2rem; font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 750; line-height: 1.15;
}
.stats {
  display: grid; grid-template-columns: repeat(4, max-content); gap: 2rem; margin-bottom: .5rem;
}
.stat { display: flex; flex-direction: column; gap: .25rem; }
.stat strong { font-size: clamp(1.5rem, 2.8vw, 2.3rem); font-weight: 750; line-height: 1; }
.stat span { font-size: .58rem; letter-spacing: .2em; color: var(--ink-soft); font-weight: 600; }
.stat.accent strong { color: var(--rose-deep); }
.h-track {
  display: flex; gap: 1.25rem; will-change: transform;
  padding-bottom: .5rem;
}
.h-col {
  flex: 0 0 min(72vw, 340px);
  background: var(--panel-strong);
  border: 1px solid var(--line);
  padding: 1.1rem;
  position: relative;
  box-shadow: 0 12px 40px rgba(80,100,130,.12);
}
.h-col .h-num { font-size: .7rem; letter-spacing: .2em; color: var(--ink-faint); font-weight: 700; }
.h-col h3 { margin: .45rem 0 .55rem; font-size: 1.15rem; letter-spacing: .04em; }
.h-col p { margin: 0 0 .9rem; font-family: var(--serif); color: var(--ink-soft); font-size: 1rem; line-height: 1.55; min-height: 3.8em; }
.h-col img { width: 100%; height: 150px; object-fit: cover; border-radius: 2px; }
.h-col .progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(26,26,26,.12);
}
.h-col .progress::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0%; background: var(--ink);
  transition: width .35s ease;
}
.h-col.is-active .progress::after { width: 100%; }
.h-col.is-active .h-num { color: var(--rose-deep); }

.after-panel { display: flex; align-items: center; }
.after-copy { max-width: 28rem; }
.poem {
  margin: 0 0 1.8rem; font-family: var(--serif);
  font-size: clamp(1.15rem, 2.1vw, 1.45rem); line-height: 1.7; color: var(--ink);
}
.poem span {
  display: block; opacity: 0; transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.after-panel.is-on .poem span { opacity: 1; transform: none; }
.after-panel.is-on .poem span:nth-child(1) { transition-delay: .05s; }
.after-panel.is-on .poem span:nth-child(2) { transition-delay: .18s; }
.after-panel.is-on .poem span:nth-child(3) { transition-delay: .3s; }
.after-panel.is-on .poem span:nth-child(4) { transition-delay: .42s; }
.cta {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .85rem 1.3rem; border-radius: 999px;
  border: 1px solid rgba(26,26,26,.35); background: rgba(255,252,248,.7);
  font-size: .7rem; letter-spacing: .2em; font-weight: 700;
  backdrop-filter: blur(8px); transition: transform .25s, border-color .25s, background .25s;
}
.cta svg { width: 15px; height: 15px; }
.cta:hover { transform: translateY(-2px); border-color: var(--rose); background: #fff; }
.after-vertical {
  position: absolute; right: var(--pad); top: 50%;
  transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl;
  font-size: clamp(2.2rem, 5.5vw, 4.6rem); font-weight: 800; letter-spacing: .12em;
  color: rgba(26,26,26,.55); pointer-events: none;
}
.marquee {
  position: absolute; left: 0; right: 0; bottom: 1.1rem; overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(255,252,248,.55); padding: .55rem 0;
}
.marquee-track {
  display: flex; width: max-content; gap: 0;
  animation: marquee 28s linear infinite;
  font-size: .68rem; letter-spacing: .28em; font-weight: 600; color: var(--ink-soft);
  white-space: nowrap;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Netlify badge hide */
#netlify-badge, .netlify-badge, [data-nf-hud],
a[href*="netlify.com"][style*="position"],
body > a[href*="www.netlify.com"] { display: none !important; opacity: 0 !important; pointer-events: none !important; }

@media (max-width: 960px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: inline-block; }
  .split { grid-template-columns: 1fr; margin-top: 4vh; }
  .gardens-layout { grid-template-columns: 1fr; max-height: none; }
  .side-stack { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .feature-card { min-height: 38vh; }
  .hero-jp { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .after-vertical { font-size: 1.8rem; opacity: .7; }
}
@media (max-width: 560px) {
  .side-stack { grid-template-columns: 1fr; }
  .h-col { flex-basis: 78vw; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .cursor { display: none !important; }
  body { cursor: auto; }
  .marquee-track { animation: none; }
}


/* Readable glass panels behind HUD copy */
.glass {
  background: linear-gradient(135deg, rgba(255,252,248,0.78), rgba(255,252,248,0.52));
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 18px 50px rgba(70,90,120,0.14), inset 0 1px 0 rgba(255,255,255,0.65);
  border-radius: 16px;
  padding: 1.15rem 1.35rem 1.25rem;
}
.glass-tight { padding: 0.95rem 1.1rem 1.05rem; border-radius: 14px; }
.hero-copy {
  max-width: 34rem;
  margin-top: 6vh;
}
.split {
  margin-top: 6vh;
  align-items: start;
}
.split .display-wrap,
.split .aside {
  position: relative;
}
.after-copy {
  max-width: 30rem;
}
.chapters-head {
  padding: 1rem 1.2rem 0.4rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,252,248,0.72), rgba(255,252,248,0.4));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.5);
  margin-bottom: 0.4rem;
}
.hero-footer {
  background: linear-gradient(90deg, rgba(255,252,248,0.7), rgba(255,252,248,0.25), transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(255,255,255,0.45);
}
.overlay-label.glass-chip {
  display: inline-flex;
  width: fit-content;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255,252,248,0.82);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.55);
  margin-bottom: 0.9rem;
}
@media (max-width: 960px) {
  .hero-copy { margin-top: 2vh; max-width: 100%; }
  .split { margin-top: 2vh; gap: 0.85rem; }
  .display { font-size: clamp(1.55rem, 7vw, 2.2rem); }
  .aside p { font-size: 1rem; }
  .glass { padding: 0.95rem 1rem 1.05rem; border-radius: 14px; }
}

.credits-note{margin:1rem 0 0;font-size:.68rem;letter-spacing:.04em;opacity:.6}
.credits-note a{text-decoration:underline;pointer-events:auto}

html, body { touch-action: pan-y pinch-zoom; overscroll-behavior-y: none; }
