:root {
  /* Design parser anchors: (`OK-2024-0037` (Google Interactions:** Interactions: Interaction Interactionssss: Intersection Observer `threshold: 0.15` */
  --pale-mist: #f0edf5;
  --frosted-pearl: #faf8ff;
  --dusty-violet: #5a4e82;
  --warm-graphite: #4a4553;
  --mist: #8e8799;
  --muted-rose: #c4899a;
  --soft-sage: #8fb5a3;
  --vault-shadow: #d0c8e0;
  --soft-lavender: #a899c2;
  --deep-fog: #e4dff0;
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--warm-graphite);
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: clamp(0.875rem, 1.8vw, 1.125rem);
  line-height: 1.65;
  background:
    repeating-linear-gradient(0deg, rgba(90, 78, 130, 0.04) 0 1px, transparent 1px 4px),
    radial-gradient(ellipse at 50% 0%, #f0edf5 0%, #e4dff0 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 12%, rgba(196, 137, 154, 0.24), transparent 28%),
    radial-gradient(circle at 86% 28%, rgba(143, 181, 163, 0.22), transparent 26%),
    radial-gradient(circle at 48% 86%, rgba(168, 153, 194, 0.28), transparent 32%);
  pointer-events: none;
  z-index: 0;
}

.vault, .atmosphere, .scroll-depth { position: relative; z-index: 1; }

.atmosphere { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }

.mote {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--muted-rose);
  opacity: 0.55;
  box-shadow: 0 0 16px rgba(196, 137, 154, 0.4);
  animation: float 24s ease-in-out infinite alternate;
}

.mote:nth-child(even) { background: var(--soft-sage); box-shadow: 0 0 16px rgba(143, 181, 163, 0.4); }
.mote-1 { left: 8%; top: 12%; animation-duration: 21s; }
.mote-2 { left: 22%; top: 68%; animation-duration: 28s; width: 3px; height: 3px; }
.mote-3 { left: 37%; top: 24%; animation-duration: 17s; }
.mote-4 { left: 52%; top: 78%; animation-duration: 30s; width: 4px; height: 4px; }
.mote-5 { left: 71%; top: 18%; animation-duration: 23s; }
.mote-6 { left: 88%; top: 58%; animation-duration: 26s; }
.mote-7 { left: 14%; top: 86%; animation-duration: 19s; width: 3px; height: 3px; }
.mote-8 { left: 82%; top: 8%; animation-duration: 29s; }
.mote-9 { left: 45%; top: 42%; animation-duration: 22s; width: 4px; height: 4px; }
.mote-10 { left: 63%; top: 91%; animation-duration: 25s; }

@keyframes float {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(28px, -42px, 0) scale(1.4); }
  100% { transform: translate3d(-18px, 36px, 0) scale(0.85); }
}

.scroll-depth {
  position: fixed;
  top: 8vh;
  right: 2rem;
  width: 2px;
  height: 84vh;
  background: rgba(196, 137, 154, 0.16);
  z-index: 8;
  border-radius: 999px;
}

.scroll-depth__bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 0;
  background: var(--muted-rose);
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(196, 137, 154, 0.35);
}

.scroll-depth__key {
  position: absolute;
  left: 50%;
  top: 0;
  width: 22px;
  height: 22px;
  fill: var(--muted-rose);
  transform: translate(-50%, -2px) rotate(0deg);
  filter: drop-shadow(0 4px 12px rgba(196, 137, 154, 0.45));
}

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 5vw, 6rem);
}

.glass-card {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 60%),
    rgba(250, 248, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(90, 78, 130, 0.15), inset 0 -4px 12px rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px) saturate(1.2);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out, background 0.3s ease-out;
}

.glass-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 23px;
  background: linear-gradient(135deg, rgba(255,255,255,0.28), transparent 48%);
  z-index: -1;
  opacity: 0.75;
  transition: opacity 0.4s var(--bounce);
}

.glass-card:hover {
  transform: scale(1.04) translateY(-4px);
  box-shadow: 0 22px 58px rgba(90, 78, 130, 0.23), inset 0 -5px 16px rgba(255, 255, 255, 0.35);
  transition: transform 0.4s var(--bounce), box-shadow 0.4s var(--bounce), background 0.4s var(--bounce);
}

.glass-card:hover::after { opacity: 0.85; }
.glass-card:hover .serial { opacity: 0.5; }

.hero__panel {
  width: min(100%, 600px);
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.015); }
}

h1, h2, h3 {
  margin: 0;
  font-family: "Barlow Condensed", "Space Grotesk", sans-serif;
  color: var(--dusty-violet);
  letter-spacing: 0.04em;
}

h1 {
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.9;
  text-shadow: 0 4px 20px rgba(90, 78, 130, 0.15), 0 14px 0 rgba(208, 200, 224, 0.22);
}

h2 { font-size: clamp(2rem, 5vw, 4rem); line-height: 0.95; text-transform: uppercase; }
h3 { font-size: clamp(1.5rem, 4vw, 3rem); line-height: 1; margin: 0.45rem 0 0.85rem; }
p { margin: 0; }

.romanized {
  margin-top: 1.2rem;
  color: var(--mist);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: 0.3em;
  text-transform: lowercase;
}

.hero__whisper { max-width: 410px; margin-top: 1.3rem; color: var(--warm-graphite); }

.serial, .tag, .eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.serial {
  position: absolute;
  top: 1.1rem;
  right: 1.2rem;
  color: var(--soft-lavender);
  opacity: 0.2;
  transition: opacity 0.4s var(--bounce);
}

.tag, .eyebrow { color: var(--soft-lavender); }
.tag.sage { color: var(--soft-sage); }
.eyebrow { margin-bottom: 0.8rem; color: var(--muted-rose); }

.key-turn { margin-top: 2rem; width: 46px; height: 46px; fill: var(--muted-rose); opacity: 0.8; animation: keyTurn 2.8s ease-in-out infinite; }
@keyframes keyTurn { 0%,100% { transform: rotate(-12deg); } 50% { transform: rotate(18deg); } }

.archive, .deep-vault { padding: 0 clamp(1.5rem, 5vw, 6rem) clamp(5rem, 12vw, 10rem); }
.section-card { max-width: 980px; margin: 0 auto clamp(2rem, 6vw, 4rem); }
.section-card p:not(.eyebrow) { max-width: 760px; margin-top: 1rem; }

.shelf-divider { display: flex; align-items: center; margin: 3rem auto; max-width: 1120px; height: 32px; }
.shelf-divider::before, .shelf-divider::after { content: ""; flex: 1; height: 1px; background: var(--vault-shadow); opacity: 0.75; }
.shelf-divider span { width: 66px; height: 22px; margin: 0 1rem; border: 1px solid var(--vault-shadow); border-top: 0; border-radius: 0 0 18px 18px; opacity: 0.8; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  align-items: start;
  max-width: 1320px;
  margin: 0 auto;
  transition: max-width 0.7s var(--bounce), grid-template-columns 0.7s var(--bounce);
}

.card-grid.narrow { grid-template-columns: repeat(2, 1fr); max-width: 920px; }
.card-grid.deep { grid-template-columns: 1fr; max-width: 560px; }

.archive-card { min-height: 360px; overflow: hidden; }
.archive-card.tall { min-height: 490px; }
.archive-card.squat { min-height: 290px; }
.archive-card p:not(.tag) { color: var(--warm-graphite); }

.orb-composition, .stacked-bubbles, .rounded-diagram, .soft-pill, .key-stamp, .soft-polygon {
  height: 122px;
  margin: 0.3rem 0 1.2rem;
  position: relative;
  border-radius: 22px;
  background: rgba(228, 223, 240, 0.42);
  box-shadow: inset 0 -8px 18px rgba(255,255,255,0.35);
}

.orb-composition i, .stacked-bubbles i, .rounded-diagram i, .soft-polygon i { position: absolute; display: block; }
.orb-composition i { border-radius: 999px; background: var(--muted-rose); box-shadow: 0 12px 28px rgba(196, 137, 154, 0.23), inset 0 10px 16px rgba(255,255,255,0.34); }
.orb-composition i:nth-child(1) { width: 82px; height: 82px; left: 8%; top: 20px; }
.orb-composition i:nth-child(2) { width: 54px; height: 54px; left: 46%; top: 14px; background: var(--soft-sage); }
.orb-composition i:nth-child(3) { width: 42px; height: 42px; right: 10%; bottom: 16px; background: var(--soft-lavender); }
.orb-composition.small { height: 96px; }

.soft-pill { height: 88px; border-radius: 999px; background: linear-gradient(135deg, rgba(143,181,163,0.55), rgba(250,248,255,0.72)); }
.soft-pill.rose { background: linear-gradient(135deg, rgba(196,137,154,0.58), rgba(250,248,255,0.74)); }

.stacked-bubbles i { border-radius: 28px; width: 44%; height: 30px; left: 12%; background: var(--soft-sage); box-shadow: 0 10px 22px rgba(90,78,130,0.11), inset 0 8px 12px rgba(255,255,255,0.36); }
.stacked-bubbles i:nth-child(1) { top: 18px; }
.stacked-bubbles i:nth-child(2) { top: 48px; left: 32%; background: var(--muted-rose); }
.stacked-bubbles i:nth-child(3) { top: 78px; width: 54%; background: var(--soft-lavender); }
.stacked-bubbles i:nth-child(4) { top: 34px; left: 62%; width: 52px; height: 52px; border-radius: 999px; background: var(--frosted-pearl); }
.stacked-bubbles.long { height: 148px; }

.rounded-diagram i { border-radius: 18px; background: var(--frosted-pearl); border: 1px solid rgba(255,255,255,0.65); box-shadow: 0 10px 24px rgba(90,78,130,0.12); }
.rounded-diagram i:nth-child(1) { width: 58%; height: 46px; left: 7%; top: 16px; }
.rounded-diagram i:nth-child(2) { width: 36%; height: 70px; right: 9%; top: 38px; background: rgba(196,137,154,0.36); }
.rounded-diagram i:nth-child(3) { width: 46%; height: 38px; left: 14%; bottom: 18px; background: rgba(143,181,163,0.38); }

.key-stamp { display: grid; place-items: center; }
.key-stamp svg { width: 78px; height: 78px; fill: var(--muted-rose); opacity: 0.72; filter: drop-shadow(0 14px 18px rgba(196,137,154,0.18)); }
.soft-polygon i { inset: 18px 20%; border-radius: 34% 66% 46% 54% / 58% 42% 58% 42%; background: linear-gradient(135deg, rgba(168,153,194,0.64), rgba(143,181,163,0.4)); box-shadow: inset 0 14px 18px rgba(255,255,255,0.32), 0 14px 28px rgba(90,78,130,0.13); }

.deep-vault { padding-top: 3rem; }
.final-card { max-width: 720px; margin: 0 auto; text-align: center; }
.final-card p:not(.eyebrow) { margin-top: 1rem; }

.reveal-card {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: opacity 0.7s ease-out, transform 0.8s var(--bounce), box-shadow 0.4s var(--bounce);
}

.reveal-card.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.reveal-card.is-visible:hover { transform: scale(1.04) translateY(-4px); }
.card-grid .reveal-card:nth-child(3n + 2) { transition-delay: 120ms; }
.card-grid .reveal-card:nth-child(3n) { transition-delay: 240ms; }

.split-heading .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.42s ease-out, transform 0.42s ease-out;
  transition-delay: calc(var(--char-index) * 30ms);
}
.split-heading.letters-visible .char { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .scroll-depth { right: 1rem; }
}

@media (max-width: 680px) {
  .card-grid, .card-grid.narrow, .card-grid.deep { grid-template-columns: 1fr; max-width: 560px; gap: 1.5rem; }
  .hero__panel { min-height: 460px; }
  .scroll-depth { display: none; }
  .archive-card, .archive-card.tall, .archive-card.squat { min-height: auto; }
}
