:root {
  --void: #05040A;
  --ultra: #2B0B5A;
  --magenta: #FF2BC2;
  --leaf: #B7FF2A;
  --cyan: #00E7FF;
  --ivory: #F8E8D8;
  --red: #FF3B30;
  --display: "Bebas Neue", Impact, Haettenschweiler, "Arial Narrow", sans-serif;
  --serif: "Crimson Text", Georgia, serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  background: var(--void);
  color: var(--ivory);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--serif);
  background:
    radial-gradient(circle at 70% 18%, rgba(255, 43, 194, .2), transparent 28rem),
    radial-gradient(circle at 20% 34%, rgba(0, 231, 255, .16), transparent 24rem),
    linear-gradient(135deg, #05040A 0%, #11031f 45%, #05040A 100%);
}

.opening-vein {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: var(--void);
  pointer-events: none;
  opacity: 1;
  animation: curtainLift 2.7s cubic-bezier(.78, 0, .18, 1) forwards;
}

.opening-vein::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 12%;
  width: 3px;
  height: 76%;
  transform: translateX(-50%) scaleY(0);
  transform-origin: top;
  background: linear-gradient(var(--leaf), transparent 72%);
  box-shadow: 0 0 22px var(--leaf), 22px 104px 0 -1px rgba(183,255,42,.5), -18px 230px 0 -1px rgba(183,255,42,.45);
  border-radius: 999px;
  animation: veinPulse 2.2s ease-out forwards;
}

.archive-stage { position: relative; }

.hero-vitrine {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
  padding: 3vmin;
  border-bottom: 1px solid rgba(0,231,255,.2);
}

.rain-grid {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(90deg, rgba(248,232,216,.045) 1px, transparent 1px),
    linear-gradient(rgba(248,232,216,.035) 1px, transparent 1px),
    repeating-linear-gradient(115deg, transparent 0 45px, rgba(183,255,42,.05) 46px, transparent 47px);
  background-size: 62px 62px, 62px 62px, 140px 140px;
  transform: rotate(-7deg);
  opacity: .55;
  animation: gridDrift 16s linear infinite;
}

.poster-title {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%) translateY(70px);
  font-family: var(--display);
  font-size: clamp(7rem, 23vw, 22rem);
  line-height: .72;
  letter-spacing: -.03em;
  color: rgba(248,232,216,.06);
  text-shadow: 0 0 28px rgba(255,43,194,.62), 0 0 100px rgba(0,231,255,.35);
  white-space: nowrap;
  animation: titleRise 1.8s .9s cubic-bezier(.2, .9, .1, 1) forwards;
}

.thread-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.thread {
  fill: none;
  stroke: rgba(0,231,255,.55);
  stroke-width: 1.2;
  stroke-dasharray: 8 12;
  filter: drop-shadow(0 0 8px rgba(0,231,255,.8));
  animation: threadDraw 3.8s 1.1s ease forwards, tickFloat 4s ease-in-out infinite;
  stroke-dashoffset: 560;
}

.leaf-vein-path {
  fill: none;
  stroke: var(--leaf);
  stroke-width: 2;
  stroke-dasharray: 720;
  stroke-dashoffset: 720;
  filter: drop-shadow(0 0 9px var(--leaf));
  animation: veinDraw 5.6s 1.2s ease forwards;
}

.mannequin-wrap {
  position: relative;
  width: min(58vw, 470px);
  height: min(78vh, 670px);
  transform-style: preserve-3d;
  transition: transform .7s ease;
}

.mannequin {
  position: absolute;
  inset: 9% 24% 3%;
  filter: drop-shadow(0 0 35px rgba(0,231,255,.32));
}

.head, .neck, .torso, .hip {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(160deg, rgba(248,232,216,.24), rgba(0,231,255,.07));
  border: 1px solid rgba(248,232,216,.28);
  box-shadow: inset 0 0 28px rgba(255,43,194,.16), 0 0 32px rgba(0,231,255,.18);
  backdrop-filter: blur(7px);
}

.head {
  top: 0;
  width: 34%;
  height: 15%;
  border-radius: 46% 46% 40% 40%;
  clip-path: polygon(18% 8%, 82% 8%, 94% 52%, 70% 100%, 30% 100%, 6% 52%);
}

.neck { top: 14%; width: 13%; height: 9%; border-radius: 0 0 40% 40%; }
.torso { top: 21%; width: 76%; height: 47%; border-radius: 44% 44% 18% 18%; clip-path: polygon(17% 0, 83% 0, 100% 34%, 75% 100%, 25% 100%, 0 34%); }
.hip { top: 65%; width: 48%; height: 20%; border-radius: 12% 12% 46% 46%; clip-path: polygon(9% 0, 91% 0, 78% 100%, 22% 100%); }

.costume-fragment {
  position: absolute;
  border: 1px solid rgba(183,255,42,.42);
  background: linear-gradient(135deg, rgba(43,11,90,.68), rgba(255,43,194,.14));
  box-shadow: 0 0 24px rgba(255,43,194,.3), inset 0 0 18px rgba(183,255,42,.1);
  transition: transform .9s cubic-bezier(.2, .8, .2, 1), opacity .7s ease;
}

.collar { left: 31%; top: 21%; width: 38%; height: 13%; clip-path: polygon(0 0, 50% 58%, 100% 0, 80% 100%, 20% 100%); }
.horn { left: 32%; top: 0; width: 36%; height: 16%; clip-path: polygon(0 100%, 17% 15%, 45% 76%, 56% 76%, 83% 15%, 100% 100%); opacity: .78; }
.sleeve { top: 34%; width: 18%; height: 34%; border-radius: 55% 20% 42% 18%; }
.sleeve.left { left: 5%; transform: rotate(14deg); }
.sleeve.right { right: 5%; transform: rotate(-14deg); }
.visor { left: 35%; top: 9%; width: 30%; height: 6%; background: rgba(0,231,255,.2); border-color: var(--cyan); border-radius: 100%; }

.measuring-arc {
  position: absolute;
  border: 1px dashed rgba(248,232,216,.3);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  animation: arcHover 6s ease-in-out infinite;
}
.arc-one { inset: 7% 8% 16% 8%; }
.arc-two { inset: 19% 17% 28% 17%; animation-delay: -2s; }

.leaf {
  position: absolute;
  width: 28px;
  height: 54px;
  background: linear-gradient(90deg, rgba(183,255,42,.2), rgba(183,255,42,.82));
  border-radius: 100% 0 100% 0;
  box-shadow: 0 0 18px rgba(183,255,42,.8);
  animation: leafBlink 3.2s ease-in-out infinite;
}
.seam-one { left: 36%; top: 31%; transform: rotate(26deg); }
.seam-two { right: 27%; top: 48%; transform: rotate(-24deg); animation-delay: -1.4s; }
.seam-three { left: 48%; top: 67%; transform: rotate(55deg); animation-delay: -2.1s; }

.annotation {
  position: absolute;
  z-index: 4;
  width: min(260px, 28vw);
  padding: 14px 16px 15px;
  color: var(--ivory);
  background: linear-gradient(135deg, rgba(43,11,90,.72), rgba(5,4,10,.78));
  border: 1px solid rgba(248,232,216,.18);
  border-left: 3px solid var(--leaf);
  box-shadow: 0 0 26px rgba(0,231,255,.13), inset 0 0 22px rgba(255,43,194,.08);
  transform: translateY(18px);
  opacity: 0;
  transition: transform .8s cubic-bezier(.2, .8, .2, 1), border-color .4s ease, opacity .7s ease;
}
.annotation.is-visible { opacity: 1; transform: translate(var(--tx, 0), var(--ty, 0)); }
.annotation span, .mono { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .09em; text-transform: uppercase; color: var(--cyan); }
.annotation strong { display: block; font-family: var(--display); font-size: 1.85rem; letter-spacing: .02em; color: var(--leaf); margin-top: 4px; }
.annotation p { margin: 4px 0 0; font-size: .95rem; line-height: 1.2; }
.tag-one { left: 7%; top: 20%; animation-delay: 1.7s; }
.tag-two { right: 8%; top: 17%; animation-delay: 1.95s; border-left-color: var(--magenta); }
.tag-three { left: 12%; bottom: 17%; animation-delay: 2.2s; border-left-color: var(--cyan); }
.tag-four { right: 10%; bottom: 18%; animation-delay: 2.45s; border-left-color: var(--red); }
.tag-five { left: 50%; bottom: 5%; width: min(310px, 38vw); animation-delay: 2.7s; border-left-color: var(--leaf); }

.hero-copy {
  position: absolute;
  left: 4vw;
  bottom: 4vh;
  width: min(430px, 42vw);
  padding: 18px 20px;
  background: rgba(5,4,10,.46);
  border-top: 1px solid rgba(183,255,42,.35);
}
.chapter { font-family: var(--mono); color: var(--red); text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; }
.hero-copy h1, .field-note h2, .final-note h2 { font-family: var(--display); font-weight: 400; line-height: .86; margin: 10px 0; }
.hero-copy h1 { font-size: clamp(3.4rem, 7vw, 6.5rem); color: var(--ivory); text-shadow: 0 0 20px rgba(255,43,194,.32); }
.hero-copy p { margin: 0; font-size: 1.15rem; line-height: 1.3; }

.specimen-panel, .bar-counter {
  min-height: 92vh;
  position: relative;
  display: grid;
  grid-template-columns: minmax(90px, .25fr) 1fr 1fr;
  gap: 4vw;
  align-items: center;
  padding: 8vh 7vw;
  overflow: hidden;
  border-bottom: 1px solid rgba(248,232,216,.1);
}
.specimen-panel:nth-of-type(even) { background: linear-gradient(125deg, rgba(43,11,90,.42), transparent 62%); }
.vertical-label {
  font-family: var(--display);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: clamp(3.5rem, 8vw, 7rem);
  color: rgba(248,232,216,.08);
  text-shadow: 0 0 20px rgba(0,231,255,.35);
  line-height: .8;
}
.field-note {
  position: relative;
  max-width: 530px;
  padding: 30px;
  background: linear-gradient(145deg, rgba(248,232,216,.09), rgba(43,11,90,.34));
  border: 1px solid rgba(0,231,255,.32);
  box-shadow: -16px 22px 0 rgba(255,43,194,.08), 0 0 44px rgba(0,231,255,.12);
}
.field-note.skewed { transform: rotate(-2deg); }
.field-note.note-open {
  border-color: var(--leaf);
  box-shadow: -20px 26px 0 rgba(183,255,42,.09), 0 0 54px rgba(183,255,42,.18);
  transform: translateY(-8px) rotate(-1deg);
}
.field-note h2, .final-note h2 { font-size: clamp(4rem, 9vw, 8.2rem); color: var(--leaf); }
.field-note p { font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.15; margin: 0; }
.panel-figure { position: relative; min-height: 420px; }
.swatch { position: absolute; border: 1px solid rgba(248,232,216,.22); box-shadow: 0 0 30px rgba(255,43,194,.24); }
.swatch-a { inset: 9% 22% 22% 0; background: rgba(255,43,194,.18); clip-path: polygon(8% 0, 100% 14%, 78% 100%, 0 82%); }
.swatch-b { inset: 0 4% 36% 27%; background: rgba(0,231,255,.16); clip-path: polygon(0 18%, 76% 0, 100% 72%, 21% 100%); }
.weave-lens { position: absolute; right: 9%; bottom: 8%; width: 210px; height: 210px; border-radius: 50%; border: 1px solid var(--leaf); background: repeating-linear-gradient(45deg, rgba(248,232,216,.11) 0 2px, transparent 2px 12px); box-shadow: 0 0 35px rgba(183,255,42,.28); }
.mask-oval { position: absolute; inset: 13% 16%; border: 2px solid var(--magenta); border-radius: 48%; background: radial-gradient(circle at 45% 34%, rgba(248,232,216,.16), rgba(43,11,90,.48) 55%, transparent 56%); box-shadow: 0 0 50px rgba(255,43,194,.4); }
.fan-ribs { position: absolute; left: 4%; right: 4%; bottom: 7%; height: 58%; background: repeating-conic-gradient(from 210deg at 50% 100%, transparent 0 10deg, rgba(0,231,255,.36) 11deg 12deg); clip-path: polygon(50% 100%, 0 0, 100% 0); opacity: .8; }
.botany-vine { grid-column: 2; height: 520px; position: relative; border-left: 2px solid var(--leaf); filter: drop-shadow(0 0 13px var(--leaf)); transform: skewX(-12deg); }
.botany-vine span { position: absolute; width: 76px; height: 142px; background: linear-gradient(90deg, rgba(183,255,42,.15), rgba(183,255,42,.72)); border: 1px solid rgba(248,232,216,.22); border-radius: 100% 0; transform-origin: left bottom; }
.botany-vine span:nth-child(1) { top: 2%; left: -1px; transform: rotate(44deg); }
.botany-vine span:nth-child(2) { top: 20%; left: 2px; transform: rotate(-130deg); }
.botany-vine span:nth-child(3) { top: 39%; left: -1px; transform: rotate(52deg); }
.botany-vine span:nth-child(4) { top: 57%; left: 2px; transform: rotate(-122deg); }
.botany-vine span:nth-child(5) { top: 74%; left: -1px; transform: rotate(48deg); }

.bar-counter {
  min-height: 100vh;
  grid-template-columns: 1fr 1fr;
  background:
    radial-gradient(circle at 54% 35%, rgba(255,59,48,.18), transparent 24rem),
    linear-gradient(180deg, transparent 0 45%, rgba(43,11,90,.58) 46% 100%);
}
.counter-glass { position: absolute; left: 8%; right: 8%; bottom: 15%; height: 19%; border: 1px solid rgba(0,231,255,.38); background: linear-gradient(90deg, rgba(0,231,255,.08), rgba(255,43,194,.11)); transform: skewX(-8deg); box-shadow: 0 0 55px rgba(0,231,255,.18); }
.resting-mask { justify-self: end; width: min(420px, 42vw); height: 280px; border: 2px solid var(--magenta); border-radius: 50% 50% 44% 44%; background: radial-gradient(circle at 34% 46%, transparent 0 30px, rgba(248,232,216,.08) 31px), radial-gradient(circle at 66% 46%, transparent 0 30px, rgba(248,232,216,.08) 31px), rgba(43,11,90,.48); box-shadow: 0 0 60px rgba(255,43,194,.35); clip-path: polygon(8% 16%, 92% 16%, 86% 76%, 51% 100%, 14% 76%); }
.specimen-leaf { position: absolute; right: 23%; bottom: 25%; width: 88px; height: 172px; background: linear-gradient(90deg, rgba(183,255,42,.22), var(--leaf)); border-radius: 100% 0 100% 0; transform: rotate(64deg); box-shadow: 0 0 34px rgba(183,255,42,.75); }
.final-note { position: relative; z-index: 2; max-width: 560px; }
.final-note h2 { color: var(--magenta); }
.final-note p { font-size: clamp(2rem, 5vw, 5rem); line-height: .92; margin: 0; font-style: italic; color: var(--ivory); }

.persona-fabric .collar { transform: rotate(12deg) translateY(-10px); border-color: var(--cyan); }
.persona-mask .visor { transform: scaleX(1.5) translateY(-6px); background: rgba(255,43,194,.3); }
.persona-mask .horn { transform: translateY(-14px) scale(1.12); }
.persona-prop .sleeve.left { transform: rotate(31deg) translateX(-18px); }
.persona-prop .sleeve.right { transform: rotate(-31deg) translateX(18px); }
.persona-bar .collar { transform: translateY(20px) rotate(180deg); }
.persona-bar .visor { transform: scaleX(1.7); border-color: var(--leaf); }

@keyframes curtainLift { 0%, 72% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@keyframes veinPulse { 0% { transform: translateX(-50%) scaleY(0); opacity: .15; } 45% { transform: translateX(-50%) scaleY(1); opacity: 1; } 100% { transform: translateX(-50%) scaleY(1); opacity: .2; } }
@keyframes titleRise { to { transform: translate(-50%, -50%) translateY(0); color: rgba(248,232,216,.105); } }
@keyframes gridDrift { to { background-position: 180px 120px, 180px 120px, 240px 0; } }
@keyframes threadDraw { to { stroke-dashoffset: 0; } }
@keyframes veinDraw { to { stroke-dashoffset: 0; } }
@keyframes tickFloat { 50% { opacity: .45; } }
@keyframes arcHover { 50% { transform: rotate(5deg) scale(1.025); } }
@keyframes leafBlink { 50% { opacity: .42; transform: rotate(var(--leaf-rot, 30deg)) scale(.88); } }

@media (max-width: 860px) {
  .annotation { width: 43vw; font-size: .88rem; }
  .tag-one, .tag-three { left: 3%; }
  .tag-two, .tag-four { right: 3%; }
  .hero-copy { width: 86vw; left: 7vw; bottom: 2vh; }
  .specimen-panel, .bar-counter { grid-template-columns: 1fr; padding: 8vh 6vw; }
  .vertical-label { writing-mode: horizontal-tb; font-size: 5rem; }
  .botany-vine { grid-column: 1; margin-left: 18vw; }
  .resting-mask { justify-self: center; width: 82vw; }
}
