:root {
  --petal: #F6C9D7;
  --gold: #D8B84C;
  --mud: #6B4A32;
  --cream: #F7F1E5;
  --deep: #10251F;
  --aqua: #9FE7E1;
  --leaf: #4F8A5B;
  --display: "Fraunces", serif;
  --poem: "Noto Serif KR", serif;
  --interface: "Commissioner", "Inter", sans-serif;
  --space: "Space Grotesk", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--deep);
  color: var(--cream);
  font-family: var(--interface);
  overflow-x: hidden;
}

.pond-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: .18;
  background-image: radial-gradient(circle at 18% 22%, rgba(247,241,229,.18) 0 1px, transparent 1px), radial-gradient(circle at 71% 64%, rgba(159,231,225,.14) 0 1px, transparent 1px);
  background-size: 23px 23px, 37px 37px;
  mix-blend-mode: overlay;
}

.bloom-stack { position: relative; }
.depth {
  position: relative;
  min-height: 108vh;
  display: grid;
  place-items: center;
  padding: 8vw;
  isolation: isolate;
  overflow: hidden;
}

.living-stem {
  position: fixed;
  left: 42%;
  top: 0;
  width: 16px;
  height: 100vh;
  z-index: 8;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(159,231,225,.05), rgba(247,241,229,.2), rgba(79,138,91,.08));
  box-shadow: 0 0 35px rgba(159,231,225,.18);
}
.living-stem span {
  position: absolute;
  left: 4px;
  bottom: 0;
  width: 8px;
  height: 0%;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), var(--aqua), var(--leaf));
  transition: height .12s linear;
}

.depth-meter {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: grid;
  gap: 16px;
}
.meter-dot {
  position: relative;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: rgba(247,241,229,.38);
  border: 1px solid rgba(247,241,229,.5);
  text-decoration: none;
  transition: transform .35s ease, background .35s ease;
}
.meter-dot span {
  position: absolute;
  right: 24px;
  top: -5px;
  color: var(--cream);
  font: 600 11px/1 var(--space);
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity .35s ease, transform .35s ease;
}
.meter-dot.is-active { background: var(--gold); transform: scale(1.35); }
.meter-dot.is-active span, .meter-dot:hover span { opacity: 1; transform: translateX(0); }

.depth-silt {
  background: radial-gradient(circle at 50% 74%, rgba(107,74,50,.72), transparent 34%), linear-gradient(180deg, #10251F 0%, #173229 42%, #6B4A32 130%);
}
.root-web {
  position: absolute;
  inset: 18% 0 0;
  background: repeating-radial-gradient(ellipse at 40% 92%, transparent 0 28px, rgba(216,184,76,.18) 29px 31px, transparent 32px 58px);
  filter: blur(.4px);
  opacity: .45;
}
.code-shadows span {
  position: absolute;
  font-family: var(--space);
  color: rgba(159,231,225,.13);
  filter: blur(2px);
  transform: rotate(-8deg);
}
.code-shadows span:nth-child(1) { left: 8%; top: 22%; }
.code-shadows span:nth-child(2) { right: 12%; top: 38%; }
.code-shadows span:nth-child(3) { left: 16%; bottom: 18%; }

.silt-card, .surface-panel, .bloom-text, .seedpod-panel {
  width: min(760px, 86vw);
  padding: clamp(28px, 5vw, 72px);
  border: 1px solid rgba(247,241,229,.22);
  border-radius: 42px;
  background: rgba(16,37,31,.54);
  box-shadow: 0 30px 90px rgba(0,0,0,.28), inset 0 1px 0 rgba(247,241,229,.18);
  backdrop-filter: blur(18px);
  z-index: 3;
}
.silt-card { margin-left: 18vw; }
.eyebrow {
  margin: 0 0 18px;
  color: var(--aqua);
  font: 700 12px/1 var(--space);
  letter-spacing: .22em;
  text-transform: uppercase;
}
h1, h2 { font-family: var(--display); margin: 0; font-weight: 650; letter-spacing: .03em; }
h1 { font-size: clamp(72px, 15vw, 184px); line-height: .78; color: var(--cream); text-shadow: 0 0 42px rgba(159,231,225,.24); }
h1 span { color: var(--petal); }
h1 i { color: var(--gold); font-style: normal; }
h2 { font-size: clamp(42px, 7vw, 98px); line-height: .92; }
p { font-size: clamp(17px, 1.6vw, 23px); line-height: 1.65; color: rgba(247,241,229,.82); }
.lead { max-width: 650px; }
.ko-note { font-family: var(--poem); color: var(--gold); letter-spacing: .04em; }

.depth-stem {
  background: linear-gradient(180deg, #173229 0%, #244B38 55%, #4F8A5B 130%);
  grid-template-columns: 1fr 1fr;
  gap: 10vw;
}
.leaf {
  position: relative;
  z-index: 4;
  max-width: 520px;
  padding: 44px;
  color: var(--deep);
  background: linear-gradient(135deg, rgba(159,231,225,.92), rgba(247,241,229,.74));
  border-radius: 70% 24% 64% 24%;
  box-shadow: 0 28px 80px rgba(16,37,31,.35);
}
.leaf-a { justify-self: end; transform: rotate(-4deg); }
.leaf-b { justify-self: start; transform: rotate(5deg); background: linear-gradient(135deg, rgba(247,241,229,.88), rgba(246,201,215,.75)); }
.leaf small { font: 700 12px/1 var(--space); letter-spacing: .18em; text-transform: uppercase; color: var(--mud); }
.leaf h2 { font-size: clamp(34px, 4.4vw, 64px); color: var(--deep); margin: 16px 0; }
.leaf p { color: rgba(16,37,31,.78); }
.dew {
  width: 76px;
  height: 76px;
  margin: 12px 8px 18px 0;
  border: 1px solid rgba(16,37,31,.15);
  border-radius: 50%;
  color: var(--deep);
  background: radial-gradient(circle at 34% 26%, #F7F1E5, #9FE7E1 48%, rgba(159,231,225,.22));
  box-shadow: inset -8px -12px 24px rgba(16,37,31,.1), 0 18px 35px rgba(16,37,31,.2);
  font-family: var(--space);
  cursor: pointer;
}

.depth-surface {
  background: linear-gradient(180deg, #4F8A5B 0%, #9FE7E1 12%, #F7F1E5 44%, #F7F1E5 100%);
  color: var(--deep);
}
.waterline {
  position: absolute;
  top: 9%;
  left: -10%;
  width: 120%;
  height: 150px;
  background: repeating-linear-gradient(175deg, rgba(247,241,229,.08) 0 12px, rgba(159,231,225,.45) 13px 16px, transparent 17px 34px);
  filter: blur(1px);
  animation: waterDrift 9s ease-in-out infinite alternate;
}
.surface-panel { margin-right: 18vw; background: rgba(247,241,229,.68); color: var(--deep); border-color: rgba(16,37,31,.12); }
.surface-panel p { color: rgba(16,37,31,.72); }
.lily-grid { display: grid; grid-template-columns: repeat(2, minmax(140px, 1fr)); gap: 18px; margin-top: 34px; }
.lily-grid span {
  display: grid;
  place-items: center;
  min-height: 112px;
  padding: 18px;
  border-radius: 60% 42% 58% 38%;
  background: radial-gradient(circle at 30% 25%, rgba(247,241,229,.8), rgba(79,138,91,.82));
  color: var(--cream);
  font: 700 13px/1.2 var(--space);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.depth-bloom { background: radial-gradient(circle at 50% 45%, rgba(246,201,215,.7), transparent 38%), linear-gradient(180deg, #F7F1E5, #F6C9D7 64%, #D8B84C 150%); color: var(--deep); }
.lotus-flower { position: relative; width: min(64vw, 650px); height: min(64vw, 650px); display: grid; place-items: center; }
.petal {
  position: absolute;
  width: 34%;
  height: 58%;
  border-radius: 80% 80% 50% 50%;
  transform-origin: 50% 88%;
  background: linear-gradient(180deg, #F7F1E5, #F6C9D7 62%, rgba(216,184,76,.62));
  box-shadow: inset 0 0 28px rgba(107,74,50,.12), 0 18px 45px rgba(107,74,50,.12);
  opacity: .92;
  transition: transform 1.2s cubic-bezier(.2,.8,.1,1);
}
.p1 { transform: rotate(0deg) translateY(-14%); } .p2 { transform: rotate(45deg) translateY(-14%); } .p3 { transform: rotate(90deg) translateY(-14%); } .p4 { transform: rotate(135deg) translateY(-14%); }
.p5 { transform: rotate(180deg) translateY(-14%); } .p6 { transform: rotate(225deg) translateY(-14%); } .p7 { transform: rotate(270deg) translateY(-14%); } .p8 { transform: rotate(315deg) translateY(-14%); }
.lotus-flower.open .p1 { transform: rotate(0deg) translateY(-29%); } .lotus-flower.open .p2 { transform: rotate(45deg) translateY(-29%); } .lotus-flower.open .p3 { transform: rotate(90deg) translateY(-29%); } .lotus-flower.open .p4 { transform: rotate(135deg) translateY(-29%); }
.lotus-flower.open .p5 { transform: rotate(180deg) translateY(-29%); } .lotus-flower.open .p6 { transform: rotate(225deg) translateY(-29%); } .lotus-flower.open .p7 { transform: rotate(270deg) translateY(-29%); } .lotus-flower.open .p8 { transform: rotate(315deg) translateY(-29%); }
.seed-stamp { position: relative; z-index: 2; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--mud); font: 800 96px/.8 var(--display); box-shadow: 0 0 0 16px rgba(247,241,229,.48); }
.bloom-text { position: absolute; right: 8vw; bottom: 7vw; max-width: 560px; background: rgba(247,241,229,.76); color: var(--deep); }
.bloom-text p { color: rgba(16,37,31,.76); }

.depth-seedpod { background: radial-gradient(circle at 30% 10%, rgba(216,184,76,.24), transparent 26%), linear-gradient(180deg, #F6C9D7, #10251F 62%); }
.seedpod-panel { background: rgba(16,37,31,.76); }
.seedpod-grid { display: grid; grid-template-columns: repeat(3, 92px); gap: 22px; margin-top: 36px; }
.seedpod-grid button {
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 40%, var(--deep) 0 10px, var(--gold) 11px 100%);
  color: var(--cream);
  font: 700 13px/1 var(--space);
  cursor: pointer;
  transition: transform .35s ease, filter .35s ease;
}
.seedpod-grid button.is-lit { transform: scale(1.12); filter: drop-shadow(0 0 20px rgba(216,184,76,.7)); }
footer { position: absolute; left: 8vw; right: 8vw; bottom: 34px; display: flex; justify-content: space-between; color: rgba(247,241,229,.62); font: 600 12px/1 var(--space); letter-spacing: .16em; text-transform: uppercase; }

.reveal-card { opacity: 0; transform: translateY(42px) scale(.98); transition: opacity .9s ease, transform .9s ease; }
.reveal-card.is-visible { opacity: 1; transform: translateY(0) scale(1); }

@keyframes waterDrift { from { transform: translateX(-2%) skewY(-1deg); } to { transform: translateX(2%) skewY(1deg); } }

@media (max-width: 820px) {
  .depth { padding: 28vw 7vw; min-height: 104vh; }
  .living-stem { left: 24px; }
  .depth-meter { right: 14px; }
  .silt-card, .surface-panel { margin: 0; }
  .depth-stem { grid-template-columns: 1fr; gap: 34px; }
  .leaf-a, .leaf-b { justify-self: center; transform: none; }
  .bloom-text { position: relative; right: auto; bottom: auto; margin-top: -18vw; }
  .seedpod-grid { grid-template-columns: repeat(2, 92px); }
  footer { align-items: flex-start; flex-direction: column; gap: 12px; }
}
