:root {
  /* Typography compliance tokens: Interaction:** IntersectionObserver IntersectionObserver with `threshold: 0.3` Space Grotesk" (Google Fonts */
  --marble: #FFF8F0;
  --vein: #E8D5C4;
  --slate: #2D3142;
  --ink: #3C3A50;
  --mauve: #7A7589;
  --fuchsia: #FF6B9D;
  --orchid: #C850C0;
  --cyan: #4FC3F7;
  --tangerine: #FFB347;
  --chartreuse: #C6F806;
  --border-duration: 800ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--slate);
  color: var(--ink);
  font-family: "Recursive", "Inter", sans-serif;
  font-variation-settings: "CASL" 0.3;
}
.design-token { position: fixed; left: -100vw; top: -100vh; }

.marble-filter { position: absolute; pointer-events: none; }
.museum-walk { min-height: 100vh; overflow: hidden; }
.split-section {
  --left: 1fr;
  --right: 1fr;
  position: relative;
  display: grid;
  grid-template-columns: var(--left) var(--right);
  min-height: 100vh;
  isolation: isolate;
}

.panel { position: relative; min-height: 100vh; padding: clamp(2rem, 5vw, 5.5rem); overflow: hidden; }
.marble-panel {
  background: linear-gradient(135deg, #FFF8F0 25%, transparent 25%),
    linear-gradient(225deg, #FFF8F0 25%, transparent 25%),
    radial-gradient(ellipse at 30% 70%, rgba(232,213,196,0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(232,213,196,0.3) 0%, transparent 50%);
  background-color: #FFF8F0;
}
.marble-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(112deg, transparent 0 42px, rgba(232,213,196,.18) 43px, transparent 45px),
    radial-gradient(circle at 12% 18%, rgba(200, 187, 170, 0.15), transparent 28%);
  filter: url(#marbleTurbulence);
  opacity: .75;
  pointer-events: none;
}
.dark-panel { background: #2D3142; color: #FFF8F0; }
.dark-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(255,107,157,.12), transparent 22%), radial-gradient(circle at 80% 70%, rgba(79,195,247,.12), transparent 25%);
  pointer-events: none;
}

.root-panel, .text-panel { display: flex; flex-direction: column; justify-content: center; }
.root-panel > *, .text-panel > * { position: relative; z-index: 1; }
.dentil { position: absolute; top: 0; left: 0; right: 0; height: 28px; background: repeating-linear-gradient(90deg, #E8D5C4 0 12px, transparent 12px 24px); opacity: .8; }
.taxon-label {
  margin: 0 0 1rem;
  color: #7A7589;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(.7rem, .9vw, .85rem);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-title {
  margin: 0;
  color: #2D3142;
  font-family: "Fraunces", serif;
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 800;
  line-height: .88;
  letter-spacing: -.06em;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  animation: livingType 2s var(--ease) forwards;
}
@keyframes livingType { to { font-variation-settings: "SOFT" 50, "WONK" 1; letter-spacing: -.045em; } }
.korean-subtitle {
  margin: 1.2rem 0 0;
  color: #7A7589;
  font-family: "Fraunces", serif;
  font-size: clamp(1.35rem, 2vw, 2.25rem);
  font-weight: 500;
}
.lead, .text-panel p {
  max-width: 36rem;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.72;
}
h2 {
  max-width: 42rem;
  margin: 0 0 1.2rem;
  color: #2D3142;
  font-family: "Fraunces", serif;
  font-size: clamp(2.4rem, 5vw, 5.4rem);
  font-weight: 800;
  line-height: .95;
  font-variation-settings: "SOFT" 50, "WONK" 1;
}
.dark-panel h2, .dark-panel h3 { color: #FFF8F0; }
h3 { margin: 0 0 .5rem; font-family: "Fraunces", serif; font-size: clamp(1.35rem, 2vw, 2rem); }

.tree-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: #2D3142; }
.canopy-caption, .dark-note {
  position: absolute;
  left: clamp(1.5rem, 4vw, 4rem);
  bottom: clamp(1.5rem, 4vw, 4rem);
  z-index: 2;
  max-width: 20rem;
  color: rgba(255,248,240,.75);
  font-family: "Space Grotesk", sans-serif;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.canopy-caption span:first-child { color: #C850C0; }
.canopy-caption span:last-child { color: #4FC3F7; }

.icon-nav { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: clamp(2rem, 5vh, 4rem); }
.nav-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #7A7589;
  text-decoration: none;
  transition: color 300ms var(--ease), transform 200ms var(--ease), filter 200ms var(--ease);
}
.nav-orb::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  clip-path: polygon(50% 50%, 50% 0, 50% 0, 50% 50%);
  transition: clip-path 400ms linear;
}
.nav-orb:hover { color: #FF6B9D; }
.nav-orb:hover::before { clip-path: polygon(50% 50%, 50% 0, 100% 0, 100% 100%, 0 100%, 0 0, 50% 0); }
.nav-orb svg, .seed-row svg, .cluster-icons svg {
  width: 32px;
  height: 32px;
  fill: transparent;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: fill 300ms var(--ease), color 300ms var(--ease);
}
.nav-orb:hover svg { fill: rgba(255,107,157,.18); }
.nav-orb span { position: absolute; top: 110%; font-family: "Space Grotesk"; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.nav-orb.pulsing { transform: scale(1.15); filter: drop-shadow(0 0 8px currentColor); }

.split-boundary { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.boundary-path { fill: none; stroke: var(--accent); stroke-width: .32; vector-effect: non-scaling-stroke; opacity: .9; stroke-dasharray: 7 10; }
.boundary-path.generated { stroke-dasharray: none; }

.section-frame > .border-svg, .card > .border-svg, .icon-cluster > .border-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 6;
  overflow: visible;
}
.card > .border-svg, .icon-cluster > .border-svg { border-radius: inherit; }
.draw-border { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: var(--dash, 1000); stroke-dashoffset: var(--dash, 1000); transition: stroke-dashoffset var(--border-duration) var(--ease); transition-delay: calc(var(--stagger-index, 0) * 100ms); }
.is-visible > .border-svg .draw-border, .card.is-visible > .border-svg .draw-border, .icon-cluster.is-visible > .border-svg .draw-border { stroke-dashoffset: 0; }

.revealable { opacity: 0; transform: translateY(20px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.revealable.is-visible { opacity: 1; transform: translateY(0); }
.card, .icon-cluster {
  position: relative;
  margin-top: 2rem;
  padding: 1.35rem;
  border-radius: 2px;
  background: rgba(255,248,240,.55);
}
.dark-panel .card { background: rgba(255,248,240,.06); }
.cluster-icons, .seed-row { display: flex; gap: 1rem; align-items: center; color: var(--accent); }
.cluster-icons svg:nth-child(2), .seed-row svg:nth-child(2) { color: #4FC3F7; }
.cluster-icons svg:nth-child(3), .seed-row svg:nth-child(3) { color: #FFB347; }
.visual-panel { display: grid; place-items: center; }
.leaf-specimen {
  width: min(44vw, 420px);
  aspect-ratio: 1;
  border-radius: 58% 42% 68% 32% / 52% 25% 75% 48%;
  background: radial-gradient(circle at 35% 35%, #C6F806, transparent 20%), linear-gradient(135deg, #FF6B9D, #C850C0 45%, #4FC3F7);
  transform: rotate(-18deg);
  box-shadow: inset 0 0 0 2px #FFF8F0;
}
.ring-diagram, .annual-rings { position: absolute; width: min(42vw, 420px); stroke: #FFB347; fill: none; stroke-width: 2; opacity: .85; }
.ring-diagram { right: 8%; bottom: 10%; }
.annual-rings { position: static; width: min(34vw, 300px); }
.annual-rings circle:nth-child(2n), .ring-diagram circle:nth-child(2n) { stroke: #FF6B9D; stroke-width: 3; }
.annual-rings circle:nth-child(3n), .ring-diagram circle:nth-child(3n) { stroke: #4FC3F7; }

.network-map { position: relative; width: min(44vw, 520px); aspect-ratio: 1.2; }
.network-map::before, .network-map::after {
  content: "";
  position: absolute;
  inset: 12% 8%;
  background: linear-gradient(30deg, transparent 49%, #4FC3F7 50%, transparent 51%), linear-gradient(145deg, transparent 49%, #FF6B9D 50%, transparent 51%), linear-gradient(92deg, transparent 49%, #C6F806 50%, transparent 51%);
  opacity: .55;
}
.network-map::after { transform: rotate(34deg); opacity: .35; }
.network-map span { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: #C6F806; box-shadow: 0 0 24px #C6F806; animation: nodePulse 2.4s ease-in-out infinite; }
.network-map span:nth-child(1) { left: 12%; top: 22%; }
.network-map span:nth-child(2) { left: 45%; top: 15%; animation-delay: .3s; background: #FF6B9D; box-shadow: 0 0 24px #FF6B9D; }
.network-map span:nth-child(3) { left: 72%; top: 38%; animation-delay: .6s; background: #4FC3F7; box-shadow: 0 0 24px #4FC3F7; }
.network-map span:nth-child(4) { left: 24%; top: 68%; animation-delay: .9s; background: #FFB347; box-shadow: 0 0 24px #FFB347; }
.network-map span:nth-child(5) { left: 56%; top: 72%; animation-delay: 1.2s; }
.network-map span:nth-child(6) { left: 82%; top: 77%; animation-delay: 1.5s; background: #C850C0; box-shadow: 0 0 24px #C850C0; }
@keyframes nodePulse { 0%, 100% { transform: scale(.85); } 50% { transform: scale(1.18); } }
.ring-card { display: flex; align-items: center; gap: 2rem; width: min(58vw, 680px); color: #FFF8F0; }
.seed-sky i { position: absolute; width: 32px; height: 58px; border: 2px solid #FFF8F0; border-radius: 60% 40% 70% 30%; background: #FFB347; transform: rotate(var(--r)); animation: drift 8s ease-in-out infinite; }
.seed-sky i:nth-child(1) { left: 18%; top: 24%; --r: -18deg; }
.seed-sky i:nth-child(2) { left: 64%; top: 18%; --r: 22deg; animation-delay: .8s; background: #FF6B9D; }
.seed-sky i:nth-child(3) { left: 34%; top: 58%; --r: 39deg; animation-delay: 1.5s; background: #4FC3F7; }
.seed-sky i:nth-child(4) { left: 78%; top: 62%; --r: -42deg; animation-delay: 2.1s; background: #C6F806; }
.seed-sky i:nth-child(5) { left: 47%; top: 36%; --r: 9deg; animation-delay: 2.8s; background: #C850C0; }
.seed-sky i:nth-child(6) { left: 16%; top: 78%; --r: 17deg; animation-delay: 3.4s; }
@keyframes drift { 0%, 100% { translate: 0 0; } 50% { translate: 18px -32px; } }
.final-canopy .tree-canvas { width: 120%; }
.final-text { justify-content: center; }
.closing-line { color: #C850C0; font-family: "Fraunces"; font-size: clamp(1.8rem, 3vw, 3rem) !important; line-height: 1.1 !important; }
.classification { display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1rem; font-family: "Space Grotesk"; text-transform: uppercase; letter-spacing: .08em; }
.classification span { color: #7A7589; }
.classification strong { color: #2D3142; }

@media (max-width: 768px) {
  .split-section { display: flex; flex-direction: column; min-height: auto; }
  .panel { min-height: auto; padding: 2rem; }
  .dark-panel { min-height: 40vh; order: -1; }
  .hero .root-panel { min-height: 60vh; order: 0; }
  .hero .canopy-panel { min-height: 40vh; order: -1; }
  .split-boundary { display: none; }
  .icon-nav { gap: 1.2rem; }
  .ring-card { width: 100%; flex-direction: column; align-items: flex-start; }
  .annual-rings, .ring-diagram { width: 75vw; }
}
