:root {
  /* Typography compliance phrase: Source Sans 3** 3* from Google Fonts for its warm humanist clarity. Accent captions and tiny observational labels: **Fraunces** *Fraunces* from Google Fonts in a soft optical size for a candlelit editorial whisper. */
  --graphite: #1F2630;
  --slate: #596574;
  --silver: #D7DEE8;
  --mist: #F4F8FB;
  --cyan: #7DEBFF;
  --lilac: #BCA7FF;
  --rose: #FFD6EA;
  --candle: #FFE28A;
  --mx: 50vw;
  --my: 50vh;
  --scroll: 0;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--mist);
}

body {
  margin: 0;
  color: var(--graphite);
  font-family: "Source Sans 3", "Source Sans Pro", Optima, Candara, system-ui, sans-serif;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(125, 235, 255, .24), transparent 23rem),
    linear-gradient(140deg, var(--mist) 0%, var(--silver) 44%, #eef4f8 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 214, 234, .42), transparent 19rem),
    radial-gradient(circle at 84% 12%, rgba(188, 167, 255, .35), transparent 23rem),
    radial-gradient(circle at 78% 82%, rgba(125, 235, 255, .25), transparent 25rem);
  filter: blur(10px);
  opacity: calc(.8 - (var(--scroll) * .18));
  z-index: -3;
}

.atmosphere, .grain, .window-band {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.atmosphere { z-index: -2; overflow: hidden; }

.grain {
  opacity: .22;
  background-image:
    radial-gradient(circle, rgba(31, 38, 48, .16) 0 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 255, 255, .45) 0 1px, transparent 1px);
  background-size: 34px 34px, 47px 47px;
  background-position: 0 0, 13px 21px;
  mix-blend-mode: multiply;
}

.window-band {
  width: 26vw;
  height: 130vh;
  left: 9vw;
  top: -12vh;
  transform: rotate(18deg);
  border-left: 1px solid rgba(31, 38, 48, .08);
  border-right: 1px solid rgba(255, 255, 255, .72);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent);
}

.band-two {
  left: auto;
  right: 3vw;
  transform: rotate(-14deg);
  opacity: .64;
}

.panel {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 48% 44%, rgba(255, 255, 255, .96), rgba(244, 248, 251, .2) 18rem, transparent 36rem),
    linear-gradient(165deg, rgba(244, 248, 251, .98), rgba(215, 222, 232, .68));
}

.hero::after, .facet::after {
  content: "";
  position: absolute;
  inset: 7vh 7vw;
  border: 1px solid rgba(31, 38, 48, .08);
  border-radius: 42% 58% 52% 48% / 56% 42% 58% 44%;
  transform: rotate(-8deg);
  z-index: -1;
}

.hologram {
  position: absolute;
  width: clamp(22rem, 44vw, 43rem);
  height: clamp(27rem, 61vw, 56rem);
  left: 50%;
  top: 50%;
  transform: translate(calc(-50% + (var(--tilt-x, 0px) * .55)), calc(-50% + (var(--tilt-y, 0px) * .55)));
  filter: saturate(1.12);
}

.vapor-ring {
  position: absolute;
  inset: 12% 4%;
  border-radius: 50%;
  border: 1px solid rgba(31, 38, 48, .13);
  box-shadow: inset 0 0 3rem rgba(125, 235, 255, .16), 0 0 4rem rgba(188, 167, 255, .16);
  transform: rotate(-18deg);
  animation: ringDrift 14s ease-in-out infinite;
}

.ring-b { inset: 18% 10%; transform: rotate(21deg); animation-duration: 17s; border-color: rgba(125, 235, 255, .34); }
.ring-c { inset: 28% 19%; transform: rotate(72deg); animation-duration: 20s; border-color: rgba(255, 214, 234, .38); }

.flame {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: 50% 65%;
  border-radius: 55% 45% 58% 42% / 68% 55% 45% 32%;
  mix-blend-mode: screen;
  animation: flameBreath 8s ease-in-out infinite;
}

.flame-cyan {
  width: 46%;
  height: 55%;
  transform: translate(calc(-54% + var(--tilt-x, 0px)), calc(-49% + var(--tilt-y, 0px))) rotate(8deg);
  background: radial-gradient(circle at 42% 67%, rgba(255, 226, 138, .75), transparent 12%), radial-gradient(circle at 38% 28%, rgba(244, 248, 251, .94), transparent 19%), radial-gradient(ellipse at 52% 62%, var(--cyan), transparent 60%);
  filter: blur(18px);
  opacity: .82;
}

.flame-lilac {
  width: 39%;
  height: 48%;
  transform: translate(calc(-43% - (var(--tilt-x, 0px) * .7)), calc(-45% + (var(--tilt-y, 0px) * .4))) rotate(-13deg);
  background: radial-gradient(circle at 55% 30%, rgba(244, 248, 251, .8), transparent 18%), radial-gradient(ellipse at 46% 64%, var(--lilac), transparent 61%);
  filter: blur(15px);
  opacity: .72;
  animation-delay: -2s;
}

.flame-rose {
  width: 35%;
  height: 43%;
  transform: translate(calc(-47% + (var(--tilt-x, 0px) * .3)), calc(-40% - (var(--tilt-y, 0px) * .4))) rotate(19deg);
  background: radial-gradient(ellipse at 52% 58%, var(--rose), transparent 62%);
  filter: blur(20px);
  opacity: .58;
  animation-delay: -4s;
}

.flame-core {
  width: 10%;
  height: 18%;
  transform: translate(-48%, 31%);
  background: radial-gradient(ellipse at center, #FFFFFF, var(--candle) 42%, transparent 72%);
  filter: blur(5px);
  opacity: .94;
  mix-blend-mode: normal;
}

.wick-dash {
  position: absolute;
  width: 2px;
  height: 42px;
  left: 50%;
  top: 59%;
  background: linear-gradient(var(--graphite), transparent);
  opacity: .28;
  transform: rotate(7deg);
}

.mote {
  position: absolute;
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--candle);
  box-shadow: 0 0 1.6rem var(--cyan);
  opacity: .52;
  animation: moteRise 9s ease-in-out infinite;
}

.mote-one { left: 31%; top: 66%; }
.mote-two { right: 28%; top: 39%; animation-delay: -3s; background: var(--rose); }
.mote-three { left: 57%; top: 24%; animation-delay: -5s; background: var(--lilac); }

.wordmark {
  position: absolute;
  left: 12vw;
  bottom: 15vh;
  font-family: "Alegreya Sans", "Trebuchet MS", system-ui, sans-serif;
  font-size: clamp(3.4rem, 10vw, 10.5rem);
  font-weight: 300;
  letter-spacing: .16em;
  color: var(--graphite);
  text-shadow: 0 1px 0 rgba(255,255,255,.8);
}

.wordmark b { color: var(--lilac); font-weight: 300; }
.wordmark span, .wordmark b { display: inline-block; animation: letterLift .9s cubic-bezier(.2,.72,.18,1) both; }
.wordmark span:nth-child(2) { animation-delay: .07s; }
.wordmark span:nth-child(3) { animation-delay: .14s; }
.wordmark span:nth-child(4) { animation-delay: .21s; }
.wordmark span:nth-child(5) { animation-delay: .28s; }
.wordmark b { animation-delay: .35s; }
.wordmark span:nth-child(7) { animation-delay: .42s; }
.wordmark span:nth-child(8) { animation-delay: .49s; }
.wordmark span:nth-child(9) { animation-delay: .56s; }

.poem {
  position: absolute;
  right: 9vw;
  top: 18vh;
  width: min(27rem, 34vw);
  font-size: clamp(1.35rem, 2vw, 2.4rem);
  line-height: 1.08;
  font-weight: 300;
  color: var(--graphite);
}

.eyebrow, .hero-caption, .glass-note, .section-index {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 300;
  letter-spacing: .055em;
  color: var(--slate);
}

.hero-whisper { position: absolute; right: 12vw; top: 11vh; font-size: .86rem; }
.hero-caption { position: absolute; left: 39vw; bottom: 10vh; font-size: .88rem; color: var(--slate); }

.reveal { opacity: 0; transform: translateY(18px); animation: revealUp 1.3s cubic-bezier(.2,.72,.18,1) forwards; }
.delay-1 { animation-delay: .35s; }
.delay-2 { animation-delay: .95s; }
.delay-3 { animation-delay: 1.4s; }
.delay-4 { animation-delay: 1.85s; }

.calibration {
  position: absolute;
  left: 6vw;
  top: 18vh;
  display: grid;
  gap: 1.1rem;
}

.calibration i, .prism-marks i {
  display: block;
  width: 3rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--graphite), transparent);
  opacity: .26;
}

.calibration i:nth-child(even) { width: 1.2rem; margin-left: 2rem; background: var(--cyan); }

.prism-nav {
  position: fixed;
  right: 2.3vw;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 1rem;
  z-index: 20;
}

.nav-dot {
  position: relative;
  width: .68rem;
  height: .68rem;
  border-radius: 50%;
  border: 1px solid rgba(31, 38, 48, .42);
  background: rgba(244, 248, 251, .72);
  text-decoration: none;
  transition: transform .45s ease, background .45s ease, box-shadow .45s ease;
}

.nav-dot span {
  position: absolute;
  right: 1.15rem;
  top: -.3rem;
  white-space: nowrap;
  color: var(--slate);
  font: 300 .75rem "Fraunces", Georgia, serif;
  opacity: 0;
  transform: translateX(8px);
  transition: .35s ease;
}

.nav-dot:hover span, .nav-dot.active span { opacity: 1; transform: translateX(0); }
.nav-dot.active { transform: scale(1.55); background: var(--candle); box-shadow: 0 0 1.4rem rgba(125, 235, 255, .72); }

.facet {
  display: grid;
  background: linear-gradient(155deg, rgba(215,222,232,.9), rgba(244,248,251,.98));
}

.ignition { background: radial-gradient(circle at 72% 47%, rgba(255,226,138,.26), transparent 20rem), linear-gradient(145deg, var(--silver), var(--mist)); }
.refraction { background: radial-gradient(circle at 29% 42%, rgba(188,167,255,.31), transparent 25rem), linear-gradient(125deg, #edf3f7, var(--silver)); }
.quiet { background: radial-gradient(circle at 66% 68%, rgba(31,38,48,.13), transparent 24rem), linear-gradient(160deg, #dde5ee, var(--mist)); }
.daybreak { background: radial-gradient(circle at 50% 26%, rgba(125,235,255,.24), transparent 28rem), linear-gradient(180deg, var(--mist), #ffffff 80%); }

.pane {
  position: absolute;
  border: 1px solid rgba(255,255,255,.76);
  background: linear-gradient(120deg, rgba(255,255,255,.2), rgba(255,255,255,.04));
  box-shadow: 0 2rem 6rem rgba(89,101,116,.12);
  backdrop-filter: blur(8px);
}

.pane-tall { width: 22vw; height: 86vh; left: 61vw; top: 7vh; transform: skewX(-9deg); }
.pane-wide { width: 56vw; height: 36vh; left: 9vw; top: 18vh; transform: rotate(-7deg); }
.pane-slit { width: 13vw; height: 92vh; left: 16vw; top: 4vh; transform: rotate(13deg); }
.pane-dawn { width: 74vw; height: 42vh; left: 13vw; bottom: 3vh; border-radius: 50%; }

.text-cluster {
  position: absolute;
  max-width: 38rem;
  transform: translateY(44px);
  opacity: .14;
  transition: opacity 1s ease, transform 1s cubic-bezier(.2,.72,.18,1);
}

.panel.in-view .text-cluster { opacity: 1; transform: translateY(0); }
.offset-a { left: 12vw; top: 31vh; }
.offset-b { left: 38vw; top: 43vh; }
.offset-c { left: 44vw; top: 22vh; }
.offset-d { left: 18vw; top: 26vh; }

.text-cluster h1 {
  margin: .4rem 0 1rem;
  font-family: "Alegreya Sans", "Trebuchet MS", system-ui, sans-serif;
  font-size: clamp(3rem, 6.3vw, 7rem);
  font-weight: 300;
  line-height: .92;
  letter-spacing: .035em;
}

.text-cluster p:not(.eyebrow) {
  width: min(31rem, 76vw);
  font-size: clamp(1.1rem, 1.45vw, 1.45rem);
  line-height: 1.55;
  color: var(--slate);
}

.section-index {
  position: absolute;
  right: 12vw;
  top: 13vh;
  font-size: clamp(3rem, 8vw, 9rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(31, 38, 48, .16);
}

.glass-note {
  position: absolute;
  font-size: .92rem;
  color: var(--slate);
  padding-top: .8rem;
  border-top: 1px solid rgba(31,38,48,.18);
}

.note-a { right: 11vw; bottom: 16vh; }
.note-b { left: 12vw; bottom: 18vh; }

.prism-marks { position: absolute; right: 17vw; bottom: 20vh; display: grid; gap: 1.4rem; transform: rotate(-32deg); }
.prism-marks i:nth-child(2) { background: var(--cyan); width: 5rem; }
.prism-marks i:nth-child(3) { background: var(--lilac); width: 2.3rem; }
.prism-marks i:nth-child(4) { background: var(--rose); width: 4rem; }

.facet-copy {
  position: absolute;
  width: clamp(10rem, 18vw, 21rem);
  height: clamp(13rem, 24vw, 28rem);
  border-radius: 55% 45% 58% 42% / 68% 55% 45% 32%;
  filter: blur(25px);
  opacity: .35;
  background: radial-gradient(circle at 48% 60%, var(--candle), transparent 13%), radial-gradient(ellipse at 48% 54%, var(--cyan), transparent 44%), radial-gradient(ellipse at 57% 41%, var(--lilac), transparent 63%), radial-gradient(ellipse at 43% 48%, var(--rose), transparent 65%);
  animation: flameBreath 10s ease-in-out infinite;
}

.copy-one { right: 17vw; top: 24vh; }
.copy-two { left: 13vw; bottom: 12vh; transform: rotate(-18deg); }
.copy-three { right: 16vw; bottom: 16vh; transform: scale(.8) rotate(10deg); }
.copy-four { right: 18vw; top: 18vh; transform: scale(1.18); opacity: .28; }

.closing-mark {
  position: absolute;
  right: 10vw;
  bottom: 11vh;
  font-family: "Alegreya Sans", "Trebuchet MS", system-ui, sans-serif;
  font-size: clamp(1.6rem, 3vw, 3.5rem);
  letter-spacing: .18em;
  color: var(--graphite);
}

@keyframes revealUp { to { opacity: 1; transform: translateY(0); } }
@keyframes letterLift { from { opacity: 0; transform: translateY(24px) rotate(2deg); } to { opacity: 1; transform: translateY(0) rotate(0); } }
@keyframes ringDrift { 0%,100% { transform: rotate(-18deg) scale(1); opacity: .48; } 50% { transform: rotate(9deg) scale(1.05); opacity: .78; } }
@keyframes flameBreath { 0%,100% { scale: 1; filter: blur(18px) hue-rotate(0deg); } 50% { scale: 1.06 .97; filter: blur(22px) hue-rotate(14deg); } }
@keyframes moteRise { 0%,100% { transform: translateY(20px); opacity: .12; } 42% { opacity: .62; } 70% { transform: translateY(-88px) translateX(26px); opacity: .08; } }

@media (max-width: 760px) {
  .poem, .hero-whisper { right: 8vw; width: 68vw; }
  .wordmark { left: 7vw; bottom: 12vh; letter-spacing: .08em; }
  .hologram { width: 92vw; height: 115vw; }
  .text-cluster { left: 8vw; right: 8vw; top: 27vh; max-width: none; }
  .offset-b, .offset-c, .offset-d { left: 8vw; top: 27vh; }
  .section-index { right: 9vw; top: 9vh; }
  .prism-nav { right: 4vw; }
  .nav-dot span { display: none; }
}
