:root {
  /* compliance vocabulary: micro-text (Google Fonts IntersectionObserver` listener (throttled `requestAnimationFrame` (a typeface mechanical Mono's fixed-width geometric precision creates deliberate tension organic floral motifs finding typewriter shop. rhythm gives stamp-like */
  --background-primary: #f5f0e8;
  --background-secondary: #faf7f2;
  --text-primary: #6b2d3e;
  --text-secondary: #8c5a6e;
  --accent-warm: #c47a8a;
  --accent-cool: #9fb8a4;
  --skeleton: #e8e0d4;
  --deep-ground: #2a1520;
  --display: "Space Mono", "Courier New", monospace;
  --body: "Cormorant Garamond", Georgia, serif;
  --accent: "IBM Plex Mono", "Courier New", monospace;
  --korean: "Noto Sans KR", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--background-primary);
  color: var(--text-primary);
  font-family: var(--body);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.85;
  font-feature-settings: "kern" 1;
}

.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.24'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

main { position: relative; z-index: 2; }

.petal-scatter,
.terminal-petals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.terminal-petals { position: absolute; z-index: 0; overflow: hidden; }

.pressed-flower,
.trail-petal,
.loose-petal {
  position: absolute;
  width: calc(var(--size, 64) * 1px);
  height: calc(var(--size, 64) * 1px);
  color: var(--flower-color, #c47a8a);
  opacity: var(--petal-opacity, .35);
  transform: rotate(var(--rotation, 0deg)) scale(var(--scale, 1));
  filter: drop-shadow(0 5px 6px rgba(42, 21, 32, .12));
}

.pressed-flower svg,
.trail-petal svg,
.loose-petal svg { display: block; width: 100%; height: 100%; fill: currentColor; }

.vine-spine {
  position: fixed;
  left: 0;
  top: 0;
  width: 20vw;
  min-width: 135px;
  height: 100vh;
  z-index: 3;
  pointer-events: none;
}

.vine-spine::before {
  content: "";
  position: absolute;
  left: 18%;
  top: 0;
  width: 42px;
  height: 100%;
  background: linear-gradient(90deg, rgba(159, 184, 164, .12), transparent);
}

.vine-svg { width: 100%; height: 100%; overflow: visible; }

.vine-path,
.vine-ghost {
  fill: none;
  stroke: var(--accent-cool);
  stroke-width: 5;
  stroke-linecap: round;
  opacity: .8;
}

.vine-ghost { stroke-width: 2; opacity: .38; }

.bloom {
  position: absolute;
  left: 42%;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform .7s cubic-bezier(.2, 1.4, .45, 1);
  background: radial-gradient(circle, var(--background-secondary) 0 18%, var(--accent-warm) 19% 38%, transparent 40%), conic-gradient(from 18deg, var(--accent-warm), var(--text-primary), var(--accent-warm), var(--text-secondary), var(--accent-warm));
  filter: drop-shadow(0 5px 9px rgba(107, 45, 62, .18));
}

.bloom.visible { transform: translate(-50%, -50%) scale(1); }
.bloom-01 { top: 13%; }
.bloom-02 { top: 31%; left: 51%; }
.bloom-03 { top: 51%; left: 38%; }
.bloom-04 { top: 70%; left: 50%; }
.bloom-05 { top: 88%; left: 43%; }

.sweep-one {
  min-height: 112vh;
  position: relative;
  padding: 9vh 5vw 14vh 24vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: radial-gradient(circle at 78% 22%, rgba(196, 122, 138, .14), transparent 29%), linear-gradient(180deg, #faf7f2 0%, #f5f0e8 100%);
}

.brand {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--text-primary);
  line-height: .95;
  word-break: keep-all;
  text-shadow: 13px 12px 0 rgba(232, 224, 212, .85);
}

.domain-label,
.mini-label,
.card-number,
.annotation-row b {
  font-family: var(--accent);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.domain-label { margin: 0 0 1.2rem 1vw; color: var(--text-secondary); }

.hero-note {
  max-width: 720px;
  margin: 2.1rem 0 0 13vw;
  color: var(--text-secondary);
  font-style: italic;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  line-height: 1.4;
}

.hero-fragment {
  position: absolute;
  font-family: var(--korean);
  font-weight: 700;
  color: rgba(196, 122, 138, .22);
  font-size: clamp(4rem, 13vw, 12rem);
  line-height: 1;
  word-break: keep-all;
}

.fragment-ko-one { top: 8vh; left: 25vw; transform: rotate(-13deg); }
.fragment-ko-two { top: 20vh; right: 18vw; transform: rotate(8deg); }
.fragment-ko-three { bottom: 16vh; left: 55vw; transform: rotate(-4deg); }

.hero-shelf {
  margin-top: 8vh;
  width: min(66vw, 760px);
  display: grid;
  grid-template-columns: 110px 1fr .55fr;
  gap: 16px;
  align-items: center;
}

.mini-label { color: var(--accent-warm); }

.shimmer-block {
  display: block;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(90deg, #e8e0d4 25%, #faf7f2 50%, #e8e0d4 75%);
  background-size: 200% 100%;
  animation: shimmer 2s ease-in-out infinite;
  box-shadow: inset 0 0 0 1px rgba(107, 45, 62, .03);
}

.hero-shimmer.two { height: 34px; }

.sweep-two {
  min-height: 80vh;
  padding: 8vh 7vw 12vh 24vw;
  display: flex;
  align-items: center;
}

.statement-stack {
  width: 60vw;
  max-width: 850px;
  position: relative;
}

.statement {
  margin: 2rem 0;
  padding: 1.1rem 1.4rem;
  color: var(--text-primary);
  font-size: clamp(1.55rem, 3.4vw, 3.4rem);
  line-height: 1.18;
  font-weight: 500;
  background: rgba(250, 247, 242, .58);
  border-left: 3px solid var(--accent-warm);
  transform: rotate(-1.4deg);
}

.statement.ghost {
  margin-left: 8vw;
  color: var(--text-secondary);
  opacity: .74;
  transform: rotate(1.2deg);
  font-size: clamp(1.2rem, 2.2vw, 2rem);
}

.wide { width: 75%; height: 30px; }
.short { width: 42%; height: 14px; margin-left: 21%; }

.collage-card {
  position: relative;
  width: var(--card-width, 58vw);
  min-height: 54vh;
  margin: 8vh 0 14vh var(--card-left, 30vw);
  padding: clamp(2rem, 5vw, 4.8rem);
  background: rgba(250, 247, 242, .88);
  border: 1px solid rgba(107, 45, 62, .18);
  box-shadow: 0 22px 55px rgba(42, 21, 32, .10), inset 0 0 0 12px rgba(232, 224, 212, .22);
  clip-path: polygon(0 3%, 2% 0, 5% 4%, 8% 1%, 12% 3%, 17% 0, 23% 2%, 31% 1%, 100% 0, 100% 100%, 6% 100%, 3% 96%, 0 98%);
  transform: translateY(40px) rotate(var(--card-rotation, 0deg));
  opacity: 0;
  transition: opacity .8s ease-out, transform .8s ease-out;
}

.collage-card.in-view { opacity: 1; transform: translateY(0) rotate(var(--card-rotation, 0deg)); }
.card-01 { --card-rotation: -1.8deg; --card-width: 62vw; --card-left: 28vw; }
.card-02 { --card-rotation: 2.4deg; --card-width: 48vw; --card-left: 36vw; }
.card-03 { --card-rotation: -2deg; --card-width: 67vw; --card-left: 24vw; }
.card-04 { --card-rotation: 1.3deg; --card-width: 54vw; --card-left: 33vw; }

.collage-card::before,
.collage-card::after {
  content: "";
  position: absolute;
  height: 10px;
  width: 132px;
  background: repeating-linear-gradient(90deg, rgba(196, 122, 138, .45) 0 7px, rgba(250, 247, 242, .55) 7px 14px);
  box-shadow: 0 2px 7px rgba(42, 21, 32, .08);
  opacity: .82;
}

.collage-card::before { top: 18px; left: -24px; transform: rotate(-6deg); }
.collage-card::after { right: -27px; bottom: 31px; transform: rotate(8deg); background: repeating-linear-gradient(90deg, rgba(159, 184, 164, .46) 0 6px, rgba(245, 240, 232, .72) 6px 12px); }

.card-number { color: var(--accent-warm); }

.collage-card h2 {
  margin: .4rem 0 1.4rem;
  color: var(--text-primary);
  font-family: var(--display);
  font-size: clamp(1.35rem, 3vw, 3.2rem);
  line-height: 1.18;
  letter-spacing: .04em;
}

.collage-card p { color: var(--text-secondary); max-width: 760px; }

blockquote {
  margin: 2rem 0 0 3vw;
  max-width: 620px;
  color: var(--deep-ground);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  line-height: 1.4;
  font-weight: 500;
}

.card-ornaments { position: absolute; right: 9%; top: 11%; width: 130px; height: 130px; opacity: .55; }
.card-ornaments span { position: absolute; inset: 24%; border-radius: 60% 40% 60% 40%; background: var(--accent-warm); transform-origin: 50% 100%; }
.card-ornaments span:nth-child(1) { transform: translateY(-34px) rotate(20deg); }
.card-ornaments span:nth-child(2) { transform: translateX(36px) rotate(110deg); background: var(--text-secondary); }
.card-ornaments span:nth-child(3) { transform: translateX(-36px) rotate(-70deg); background: var(--accent-cool); }

.skeleton-collection { width: 78%; margin-top: 2rem; display: grid; gap: 16px; }
.skeleton-collection i:nth-child(1) { width: 78%; height: 38px; }
.skeleton-collection i:nth-child(2) { width: 52%; height: 15px; margin-left: 18%; }
.skeleton-collection i:nth-child(3) { width: 68%; height: 24px; }

.korean-line { font-family: var(--korean); font-weight: 300; word-break: keep-all; }
.annotation-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.annotation-row b { padding: .4rem .65rem; color: var(--text-primary); border: 1px dashed var(--accent-warm); background: rgba(232, 224, 212, .38); transform: rotate(var(--tag-rotate, -2deg)); }
.annotation-row b:nth-child(2) { --tag-rotate: 2deg; }
.annotation-row b:nth-child(3) { --tag-rotate: -1deg; }

.dissolution {
  position: relative;
  min-height: 115vh;
  padding: 18vh 7vw 20vh 28vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at 48% 42%, rgba(196, 122, 138, .15), transparent 34%), var(--background-primary);
}

.whisper {
  position: relative;
  z-index: 2;
  max-width: 760px;
  color: var(--text-primary);
  font-size: clamp(2rem, 5.5vw, 6rem);
  line-height: 1.05;
  font-weight: 300;
  margin: 0;
}

.whisper-sub {
  position: relative;
  z-index: 2;
  font-family: var(--accent);
  font-size: .78rem;
  letter-spacing: .16em;
  color: var(--text-secondary);
  margin-top: 2rem;
}

.trail-petal {
  position: fixed;
  z-index: 70;
  pointer-events: none;
  animation: trailFade 1.2s ease-out forwards;
}

.loose-petal { animation: floatPetal var(--duration, 9s) ease-in-out infinite alternate; }

@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes trailFade { to { opacity: 0; transform: translateY(20px) scale(.3) rotate(28deg); } }
@keyframes floatPetal { from { transform: translateY(0) rotate(var(--rotation, 0deg)) scale(var(--scale, 1)); } to { transform: translateY(-32px) translateX(18px) rotate(calc(var(--rotation, 0deg) + 24deg)) scale(var(--scale, 1)); } }

@media (max-width: 760px) {
  .vine-spine { width: 24vw; min-width: 92px; opacity: .75; }
  .sweep-one, .sweep-two, .dissolution { padding-left: 24vw; padding-right: 5vw; }
  .hero-note { margin-left: 0; }
  .hero-shelf { width: 68vw; grid-template-columns: 1fr; }
  .statement-stack { width: 70vw; }
  .collage-card { width: 70vw; margin-left: 24vw; padding: 2rem; }
  .card-02, .card-04 { width: 68vw; margin-left: 27vw; }
}
