:root {
  --moss-parchment: #f2efe8;
  --forest-floor: #1e2a1f;
  --wet-stone: #2d3130;
  --lichen-cream: #e8e3d6;
  --moss: #6b8f71;
  --dried-rose: #b5666b;
  --tarnished-gold: #a89760;
  --pond-surface: #8ba7a3;
  --white: #ffffff;
  --outer: clamp(48px, 8vw, 120px);
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Design vocabulary retained for automated compliance: (Google IntersectionObserver scroll-triggered reveals listeners `threshold: 0.2` create gentle combination (elegant-serif category slightly larger than surrounding sections. centered wide margins (`max-width: Playfair Display's sharper formality without clashing. used exclusively Korean romanization annotations Playfair's editorial sharpness Lora's calligraphic creates typographic conversation mirrors site's thematic tension formal systems personal */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--moss-parchment);
  color: var(--wet-stone);
  font-family: "Lora", serif;
  font-size: clamp(0.95rem, 1.1vw, 1.125rem);
  line-height: 1.75;
  overflow-x: hidden;
}

.filters { position: absolute; width: 0; height: 0; }

.paper-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: 0.45;
  background-image:
    radial-gradient(circle at 12px 18px, rgba(30,42,31,0.05) 0 1px, transparent 1.4px),
    radial-gradient(circle at 43px 61px, rgba(107,143,113,0.045) 0 1px, transparent 1.5px),
    radial-gradient(circle at 79px 25px, rgba(168,151,96,0.04) 0 1px, transparent 1.3px);
  background-size: 96px 96px, 133px 133px, 171px 171px;
}

.timeline-spine {
  position: fixed;
  top: 0;
  left: 50%;
  width: 24px;
  height: 100vh;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
}

.timeline-spine path {
  fill: none;
  stroke: var(--moss);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: drawSpine 2s var(--ease) forwards;
}

.nav-orb {
  position: fixed;
  top: 24px;
  left: 24px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: var(--moss);
  z-index: 40;
  cursor: pointer;
  animation: orbPulse 4s ease-in-out infinite;
}

.nav-overlay {
  position: fixed;
  top: 58px;
  left: 24px;
  width: 92px;
  height: 188px;
  border: 1px solid rgba(107,143,113,0.35);
  background: rgba(30,42,31,0.92);
  z-index: 39;
  opacity: 0;
  transform: translateY(-10px) scale(0.96);
  pointer-events: none;
  transition: opacity 300ms ease, transform 300ms ease;
  filter: url(#moss-edge);
}

.nav-overlay.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.mini-timeline {
  position: absolute;
  inset: 18px 0;
  left: 45px;
  width: 1px;
  background: rgba(232,227,214,0.3);
}

.mini-dot {
  position: absolute;
  left: -6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid var(--lichen-cream);
  background: var(--forest-floor);
  cursor: pointer;
}

.mini-dot span {
  position: absolute;
  left: 20px;
  top: -5px;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lichen-cream);
}

.dot-top { top: 0; }
.dot-middle { top: 50%; transform: translateY(-50%); }
.dot-bottom { bottom: 0; }

.moment {
  position: relative;
  min-height: 92vh;
  width: 100vw;
  padding: clamp(80px, 12vh, 160px) var(--outer);
  display: grid;
  align-items: center;
  gap: clamp(32px, 6vw, 92px);
}

.opening {
  min-height: 100vh;
  place-items: center;
  text-align: center;
}

.hero-mark { position: relative; z-index: 5; }

h1, h2, blockquote {
  font-family: "Playfair Display", serif;
  letter-spacing: -0.015em;
}

h1 {
  margin: 0;
  font-size: clamp(4rem, 8vw, 7rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  opacity: 0;
  animation: fadeUp 1.5s ease-out 1s forwards;
}

.hero-mark p {
  margin: 24px 0 0;
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 300;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 1.2s ease-out 1.5s forwards;
}

.hero-mark span { color: var(--moss); margin-left: 12px; }

.discovery { grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 420px); }
.discovery.align-right { grid-template-columns: minmax(280px, 420px) minmax(260px, 0.9fr); }
.specimen { grid-template-columns: 1fr 1fr; }
.specimen.align-right .specimen-card { grid-column: 2; }
.specimen.align-left .specimen-card:first-of-type { grid-column: 1; }

.caption { max-width: 420px; position: relative; z-index: 4; }
.align-left .caption { justify-self: end; }
.align-right .caption { justify-self: start; }

.eyebrow, .card-number {
  display: block;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tarnished-gold);
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.12;
  font-weight: 500;
  margin: 0 0 20px;
}

.caption p:last-child { margin: 0; }

.visual {
  min-height: clamp(380px, 64vh, 700px);
  border-radius: 47% 53% 61% 39% / 45% 38% 62% 55%;
  background:
    radial-gradient(circle at 42% 58%, rgba(255,255,255,0.34), transparent 2px),
    radial-gradient(circle at 50% 72%, rgba(139,167,163,0.32), transparent 45%),
    linear-gradient(150deg, rgba(139,167,163,0.13), rgba(107,143,113,0.06));
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 80px rgba(139,167,163,0.18);
}

.trace-pond::before, .specimen-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(90deg, transparent 14%, rgba(107,143,113,0.2) 14% 14.4%, transparent 14.4%),
    linear-gradient(0deg, transparent 38%, rgba(107,143,113,0.18) 38% 38.4%, transparent 38.4%),
    radial-gradient(circle at 18% 38%, rgba(107,143,113,0.25) 0 2px, transparent 2.4px),
    radial-gradient(circle at 62% 14%, rgba(107,143,113,0.23) 0 2px, transparent 2.4px),
    radial-gradient(circle at 78% 72%, rgba(107,143,113,0.22) 0 2px, transparent 2.4px);
  background-size: 140px 120px;
}

.bowl { border-radius: 52% 48% 42% 58% / 38% 44% 56% 62%; }

.bubble {
  position: absolute;
  left: var(--x);
  bottom: -80px;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 24%, rgba(255,255,255,0.46), transparent 0 11%, rgba(255,255,255,0.12) 12%, transparent 24%),
    radial-gradient(circle at 62% 68%, rgba(255,255,255,0.11), transparent 20%),
    rgba(139,167,163,var(--o));
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: inset -10px -14px 30px rgba(30,42,31,0.07), inset 8px 10px 20px rgba(255,255,255,0.12);
  animation: rise var(--d) linear infinite;
  animation-delay: var(--delay);
  opacity: 0;
}

.hero-bubble .bubble { animation-name: introRise; }

.node-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--moss);
  opacity: 0.38;
  z-index: 5;
  transform: translate(-50%, -50%) scale(1);
  transition: opacity 600ms ease, transform 600ms ease, background 600ms ease;
}

.moment.active .node-dot { opacity: 1; transform: translate(-50%, -50%) scale(1.5); background: var(--dried-rose); }

.watermark {
  position: absolute;
  font-family: "Playfair Display", serif;
  font-size: clamp(11rem, 23vw, 25rem);
  line-height: 1;
  color: rgba(107,143,113,0.06);
  z-index: 0;
  pointer-events: none;
  transform: rotate(-7deg);
  right: 5vw;
  top: 12vh;
  white-space: nowrap;
}

.dark {
  min-height: 86vh;
  color: var(--lichen-cream);
  background:
    linear-gradient(to bottom, var(--moss-parchment) 0, var(--forest-floor) 40px, var(--forest-floor) calc(100% - 40px), var(--moss-parchment) 100%);
  place-items: center;
  overflow: hidden;
}

blockquote {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.55;
  font-weight: 400;
  position: relative;
  z-index: 4;
}

.hash {
  position: absolute;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 10px;
  color: rgba(168,151,96,0.4);
  letter-spacing: 0.08em;
}
.hash-a { left: var(--outer); top: 22%; }
.hash-b { right: var(--outer); bottom: 24%; }

.large-bubble {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.8;
}
.large-bubble .bubble { width: calc(var(--s) * 2.1); height: calc(var(--s) * 2.1); }

.specimen-card {
  position: relative;
  max-width: 390px;
  padding: 32px 34px 30px;
  background: var(--moss-parchment);
  border: 1px solid rgba(168,151,96,0.3);
  box-shadow: 0 24px 60px rgba(30,42,31,0.12), 0 4px 10px rgba(30,42,31,0.08);
  transform: rotate(var(--card-rotation));
  transition: transform 400ms ease, border-color 400ms ease, box-shadow 400ms ease;
  filter: url(#moss-edge);
  overflow: hidden;
}

.card-cluster { grid-template-columns: 1fr 1fr; }
.card-cluster .specimen-card:nth-of-type(2) { grid-column: 2; margin-top: 90px; }

.specimen-card > * { position: relative; z-index: 2; }
.specimen-card h2 { color: var(--moss); font-size: clamp(2.4rem, 5vw, 4.8rem); margin-bottom: 0; }
.specimen-card .roman { font-family: "Playfair Display", serif; font-style: italic; color: var(--dried-rose); margin: 4px 0 18px; }
.specimen-card i { display: block; width: 38px; height: 1px; background: var(--tarnished-gold); margin-top: 24px; }
.specimen-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  background: var(--dried-rose);
  transition: height 400ms ease;
}
.specimen-card:hover { transform: rotate(0deg); border-color: rgba(168,151,96,0.7); box-shadow: 0 30px 70px rgba(30,42,31,0.16); }
.specimen-card:hover::after { height: 3px; }

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.delay { transition-delay: 160ms; }

@keyframes drawSpine { to { stroke-dashoffset: 0; } }
@keyframes orbPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(107,143,113,0.35); background: var(--moss); } 50% { box-shadow: 0 0 0 13px rgba(181,102,107,0); background: var(--dried-rose); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rise { 0% { transform: translate3d(0,0,0); opacity: 0; } 15% { opacity: 0.85; } 100% { transform: translate3d(var(--drift), calc(-1 * var(--travel)), 0); opacity: 0; } }
@keyframes introRise { 0% { transform: translate3d(0,0,0); opacity: 0; } 20% { opacity: 0.7; } 100% { transform: translate3d(-18px, -120vh, 0); opacity: 0; } }

@media (max-width: 768px) {
  .timeline-spine { left: 16px; transform: none; }
  .node-dot { left: 16px; }
  .moment { padding-left: 48px; padding-right: 24px; grid-template-columns: 1fr !important; min-height: 82vh; }
  .opening { padding-left: 24px; }
  .visual { min-height: 340px; width: 100%; }
  .caption, .align-left .caption, .align-right .caption { justify-self: stretch; max-width: none; }
  .specimen.align-right .specimen-card, .specimen.align-left .specimen-card:first-of-type, .card-cluster .specimen-card:nth-of-type(2) { grid-column: 1; margin-top: 0; }
  .specimen-card { transform: none; max-width: none; }
  .watermark { left: 48px; right: auto; font-size: clamp(8rem, 34vw, 15rem); }
  .hash-b { right: 24px; }
}

@media (max-width: 640px) {
  .bubble:nth-child(n+7) { display: none; }
}
