:root {
  /* Compliance text: Inte* Inter** functional labels Interprets concurrency classical wordmark Displa* Display** */
  --marble-ivory: #F7F1E8;
  --rose-quartz: #F2B8C6;
  --powder-mint: #BFE6D4;
  --lavender-veil: #C9B7E8;
  --champagne-pearl: #E8D6A7;
  --deep-ink-plum: #2F243A;
  --wet-marble-gray: #B9B2AA;
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --serif: "Cormorant Garamond", Garamond, Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--deep-ink-plum);
  background:
    radial-gradient(circle at 16% 8%, rgba(242, 184, 198, .42), transparent 28rem),
    radial-gradient(circle at 76% 18%, rgba(201, 183, 232, .34), transparent 30rem),
    linear-gradient(115deg, rgba(255,255,255,.24), transparent 35%, rgba(185,178,170,.16)),
    var(--marble-ivory);
  font-family: var(--sans);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

body::before {
  opacity: .48;
  background:
    linear-gradient(102deg, transparent 0 14%, rgba(185,178,170,.32) 14.2%, transparent 14.7% 39%, rgba(185,178,170,.22) 39.3%, transparent 39.9%),
    linear-gradient(32deg, transparent 0 62%, rgba(185,178,170,.26) 62.15%, transparent 62.7%),
    repeating-linear-gradient(86deg, transparent 0 7rem, rgba(255,255,255,.18) 7.3rem 7.7rem);
  mix-blend-mode: multiply;
}

body::after {
  background:
    radial-gradient(ellipse at 50% -10%, rgba(255,255,255,.74), transparent 42%),
    linear-gradient(90deg, rgba(232,214,167,.16), transparent 12%, transparent 88%, rgba(232,214,167,.16));
}

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

.vein {
  position: absolute;
  width: 1px;
  height: 120vh;
  background: linear-gradient(180deg, transparent, rgba(185,178,170,.65), transparent);
  transform-origin: top;
  opacity: .42;
}

.vein-a { left: 14%; top: -8%; transform: rotate(21deg); }
.vein-b { left: 59%; top: -12%; transform: rotate(-15deg); }
.vein-c { left: 83%; top: 6%; transform: rotate(29deg); }

.chapter-nav {
  position: fixed;
  left: clamp(1rem, 3vw, 2.7rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: grid;
  gap: 1rem;
}

.chapter-nav::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -4rem;
  bottom: -4rem;
  width: 1px;
  background: linear-gradient(var(--champagne-pearl), var(--wet-marble-gray), var(--champagne-pearl));
  opacity: .7;
}

.chapter-nav a {
  position: relative;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--deep-ink-plum);
  font-family: var(--serif);
  font-size: .8rem;
  border: 1px solid rgba(232,214,167,.85);
  border-radius: 50%;
  background: rgba(247,241,232,.82);
  box-shadow: 0 8px 26px rgba(47,36,58,.08), inset 0 0 13px rgba(255,255,255,.82);
}

.room {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: clamp(5rem, 8vw, 8rem) clamp(1.4rem, 6vw, 7rem) clamp(5rem, 8vw, 8rem);
  isolation: isolate;
}

.hero-room {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(20rem, .72fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 5rem);
  overflow: hidden;
}

.title-stream {
  padding-left: clamp(1.5rem, 7vw, 8rem);
}

.roman-label,
.caption {
  margin: 0 0 1.3rem;
  font-family: var(--serif);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: clamp(.78rem, 1.1vw, .98rem);
  color: rgba(47,36,58,.68);
}

.domain-title {
  position: relative;
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.075em;
  font-size: clamp(5.2rem, 14vw, 16rem);
  line-height: .73;
  max-width: 9ch;
  text-shadow: 0 1px 0 #fff, 0 24px 55px rgba(47,36,58,.14);
  background: linear-gradient(100deg, var(--deep-ink-plum), #5c4a68 36%, var(--rose-quartz) 52%, var(--deep-ink-plum) 72%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: causticText 9s ease-in-out infinite alternate;
}

.pearl-dot {
  display: inline-block;
  width: .22em;
  color: transparent;
  position: relative;
  margin: 0 .035em;
}

.pearl-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: .18em;
  width: .16em;
  height: .16em;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 24%, #fff, var(--champagne-pearl) 34%, var(--rose-quartz) 62%, rgba(47,36,58,.2));
  box-shadow: 0 .12em .35em rgba(47,36,58,.22), inset -.02em -.03em .04em rgba(47,36,58,.12);
  animation: pearlFloat 4.6s ease-in-out infinite;
}

.opening-whisper {
  width: min(31rem, 80%);
  margin: 2rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.55rem, 2.7vw, 3rem);
  line-height: 1.05;
}

.basin {
  position: relative;
  border: 1px solid rgba(232,214,167,.85);
  background:
    linear-gradient(140deg, rgba(255,255,255,.72), rgba(247,241,232,.24)),
    radial-gradient(ellipse at 48% 42%, rgba(191,230,212,.7), rgba(201,183,232,.36) 52%, rgba(185,178,170,.15) 67%, transparent 68%);
  box-shadow: inset 0 0 0 1.2rem rgba(255,255,255,.22), inset 0 0 4rem rgba(47,36,58,.08), 0 2rem 5rem rgba(47,36,58,.12);
  overflow: hidden;
}

.hero-basin {
  width: min(35rem, 88vw);
  aspect-ratio: 4 / 5.2;
  border-radius: 50% / 42%;
  justify-self: center;
  transform: rotate(4deg);
}

.hero-basin p,
.sundial-mark {
  position: absolute;
  font-family: var(--serif);
  color: rgba(47,36,58,.7);
}

.hero-basin p {
  left: 17%;
  right: 14%;
  bottom: 15%;
  font-size: 1.35rem;
  line-height: 1;
  font-style: italic;
}

.sundial-mark {
  top: 14%;
  right: 20%;
  font-size: clamp(4rem, 8vw, 8rem);
  opacity: .16;
}

.water-surface {
  position: absolute;
  inset: 18% 10%;
  border-radius: 50%;
  background:
    repeating-radial-gradient(ellipse at 50% 50%, rgba(255,255,255,.34) 0 .25rem, transparent .32rem 1.9rem),
    linear-gradient(125deg, rgba(242,184,198,.4), rgba(191,230,212,.54), rgba(201,183,232,.48));
  filter: blur(.2px);
  animation: waterMove 11s ease-in-out infinite alternate;
}

.water-surface::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: linear-gradient(110deg, transparent 15%, rgba(255,255,255,.38), transparent 32%, transparent 47%, rgba(232,214,167,.28), transparent 65%);
  transform: translateX(-20%);
  animation: shimmer 8s ease-in-out infinite;
}

.bubble-stream {
  position: absolute;
  z-index: -1;
  display: grid;
  gap: 1.7rem;
  transform: translateY(var(--drift, 0));
  transition: transform .12s linear;
}

.bubble-stream-one { right: 9%; bottom: 6%; }
.bubble-stream-two { left: 44%; top: 15%; animation-delay: -3s; }
.bubble-stream-three { left: 10%; bottom: 14%; animation-delay: -6s; }

.bubble-stream i,
.lens,
.pearl-separator span {
  display: block;
  border-radius: 50%;
  background: radial-gradient(circle at 31% 24%, rgba(255,255,255,.95), rgba(255,255,255,.24) 24%, rgba(191,230,212,.34) 52%, rgba(201,183,232,.28) 76%, rgba(47,36,58,.1));
  border: 1px solid rgba(255,255,255,.76);
  box-shadow: inset -.4rem -.6rem 1rem rgba(47,36,58,.07), 0 .8rem 2rem rgba(47,36,58,.1);
  animation: rise 8s ease-in-out infinite;
}

.bubble-stream i:nth-child(1) { width: 2.6rem; height: 2.6rem; animation-delay: -1s; }
.bubble-stream i:nth-child(2) { width: 4rem; height: 4rem; margin-left: 2rem; animation-delay: -4s; }
.bubble-stream i:nth-child(3) { width: 1.6rem; height: 1.6rem; margin-left: .7rem; animation-delay: -2s; }
.bubble-stream i:nth-child(4) { width: 5.8rem; height: 5.8rem; margin-left: 3.5rem; animation-delay: -6s; }
.bubble-stream i:nth-child(5) { width: 2.2rem; height: 2.2rem; margin-left: 1.7rem; animation-delay: -3s; }

.chapter-room {
  display: grid;
  grid-template-columns: minmax(8rem, .35fr) minmax(0, 1fr) minmax(16rem, .7fr);
  align-items: center;
  gap: clamp(1.4rem, 4vw, 5rem);
}

.stone-plaque,
.side-note {
  border: 1px solid rgba(185,178,170,.45);
  background: rgba(247,241,232,.54);
  box-shadow: inset 0 0 2.5rem rgba(255,255,255,.45), 0 1.2rem 3rem rgba(47,36,58,.08);
  backdrop-filter: blur(8px);
}

.stone-plaque {
  align-self: start;
  margin-top: 8vh;
  min-height: 21rem;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 1.4rem;
}

.chapter-number {
  font-family: var(--display);
  font-size: clamp(4rem, 9vw, 9rem);
  line-height: .8;
  color: rgba(47,36,58,.18);
}

.fine-line {
  width: 1px;
  height: 7rem;
  margin: 1.2rem 0;
  background: var(--champagne-pearl);
}

.stone-plaque p,
.side-note p {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  color: rgba(47,36,58,.68);
}

.folio {
  position: relative;
  padding: clamp(2rem, 4vw, 4.5rem);
  background:
    linear-gradient(135deg, rgba(255,255,255,.68), rgba(247,241,232,.54)),
    linear-gradient(78deg, transparent 0 42%, rgba(185,178,170,.13) 42.25%, transparent 42.7%);
  border: 1px solid rgba(232,214,167,.75);
  box-shadow: 0 2rem 5rem rgba(47,36,58,.1), inset 0 0 0 1px rgba(255,255,255,.7);
}

.folio-left { transform: translateY(-4vh); }
.folio-right { grid-column: 2 / span 1; transform: translateY(5vh); }

.chapter-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.2rem, 7vw, 8.8rem);
  line-height: .88;
  letter-spacing: -.045em;
}

.dropcap {
  float: left;
  font-size: 1.65em;
  line-height: .72;
  padding-right: .1em;
  color: var(--rose-quartz);
  text-shadow: .03em .03em 0 rgba(232,214,167,.5);
}

.body-copy {
  max-width: 42rem;
  margin: clamp(1.4rem, 3vw, 2.6rem) 0 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.8vw, 1.85rem);
  line-height: 1.22;
  color: rgba(47,36,58,.78);
}

.oval-frame {
  justify-self: center;
  width: min(27rem, 80vw);
  aspect-ratio: 3 / 4;
  border-radius: 50% / 45%;
  padding: 1.2rem;
  border: 1px solid var(--champagne-pearl);
  background: rgba(247,241,232,.44);
  box-shadow: inset 0 0 3rem rgba(255,255,255,.55), 0 1.7rem 4rem rgba(47,36,58,.12);
  transform: rotate(-7deg) translateY(7vh);
}

.small-basin {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.water-surface.mint {
  background: radial-gradient(ellipse, rgba(191,230,212,.7), rgba(201,183,232,.42), rgba(242,184,198,.24));
}

.lens {
  position: absolute;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  color: rgba(47,36,58,.55);
  font-style: italic;
}

.lens-a { width: 5rem; height: 5rem; top: 16%; left: 22%; }
.lens-b { width: 7rem; height: 7rem; right: 17%; top: 39%; }
.lens-c { width: 3.6rem; height: 3.6rem; left: 34%; bottom: 14%; }

.pull-quote,
.closing-quote {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  line-height: .92;
  letter-spacing: -.04em;
  color: var(--deep-ink-plum);
}

.pull-quote {
  grid-column: 2 / 4;
  width: min(55rem, 80vw);
  margin-left: 9vw;
  margin-top: -2rem;
  font-size: clamp(3.4rem, 8vw, 9rem);
  text-shadow: 0 18px 38px rgba(47,36,58,.12);
}

.overlap-room {
  grid-template-columns: minmax(0, .62fr) minmax(18rem, .8fr) minmax(12rem, .42fr);
  background: radial-gradient(circle at 74% 38%, rgba(201,183,232,.3), transparent 27rem);
}

.column-fragment {
  position: absolute;
  left: 6%;
  top: 14%;
  width: 13rem;
  height: 68vh;
  border-radius: 8rem 8rem 0 0;
  opacity: .42;
  background:
    repeating-linear-gradient(90deg, rgba(185,178,170,.38) 0 .35rem, rgba(255,255,255,.28) .36rem 1.1rem),
    linear-gradient(var(--marble-ivory), rgba(201,183,232,.34));
  box-shadow: inset 0 0 2rem rgba(47,36,58,.06);
}

.braided-streams {
  grid-column: 1 / span 1;
  width: min(28rem, 70vw);
  height: 70vh;
  justify-self: end;
  position: relative;
}

.braided-streams span {
  position: absolute;
  top: 0;
  width: 4rem;
  height: 100%;
  border-radius: 50%;
  border-left: 1px solid rgba(232,214,167,.78);
  border-right: 1px solid rgba(255,255,255,.5);
  background: linear-gradient(180deg, transparent, rgba(191,230,212,.2), rgba(201,183,232,.28), transparent);
  transform: translateY(var(--drift, 0));
  transition: transform .12s linear;
}

.braided-streams span:nth-child(1) { left: 0; transform: rotate(8deg); }
.braided-streams span:nth-child(2) { left: 23%; transform: rotate(-6deg); }
.braided-streams span:nth-child(3) { right: 22%; transform: rotate(5deg); }
.braided-streams span:nth-child(4) { right: 0; transform: rotate(-9deg); }

.side-note {
  grid-column: 3;
  padding: 1.6rem;
  align-self: end;
  margin-bottom: 10vh;
  border-radius: 12rem 12rem 1rem 1rem;
}

.side-note strong {
  display: block;
  margin-top: 1rem;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.05;
  font-weight: 600;
}

.afterglow-room {
  grid-template-columns: minmax(8rem, .42fr) minmax(0, 1fr);
  align-items: end;
  background: radial-gradient(circle at 70% 66%, rgba(232,214,167,.32), transparent 32rem);
}

.grand-initial {
  font-family: var(--display);
  font-size: clamp(12rem, 30vw, 34rem);
  line-height: .62;
  color: rgba(232,214,167,.42);
  text-shadow: 1px 1px 0 rgba(255,255,255,.8);
}

.final-folio {
  margin-bottom: 7vh;
}

.pearl-separator {
  position: absolute;
  left: 13%;
  right: 9%;
  bottom: 12vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pearl-separator::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--champagne-pearl), transparent);
}

.pearl-separator span {
  position: relative;
  width: clamp(1.2rem, 2.8vw, 2.5rem);
  height: clamp(1.2rem, 2.8vw, 2.5rem);
}

.closing-quote {
  position: absolute;
  left: clamp(2rem, 13vw, 12rem);
  right: clamp(2rem, 10vw, 10rem);
  bottom: clamp(2rem, 4vw, 4rem);
  font-size: clamp(2.2rem, 5vw, 6rem);
}

.reveal-item {
  opacity: 0;
  transform: translateY(2.4rem);
  filter: blur(8px);
  transition: opacity 1.15s ease, transform 1.15s cubic-bezier(.2,.72,.12,1), filter 1.15s ease;
  transition-delay: var(--delay, 0ms);
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.is-refracting {
  text-shadow: .04em .02em 0 rgba(191,230,212,.24), -.025em .02em 0 rgba(242,184,198,.22), 0 24px 55px rgba(47,36,58,.13);
}

@keyframes causticText {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

@keyframes pearlFloat {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -.12em); }
}

@keyframes waterMove {
  from { transform: rotate(-3deg) scale(1); }
  to { transform: rotate(4deg) scale(1.04); }
}

@keyframes shimmer {
  0% { transform: translateX(-35%) rotate(0deg); }
  50% { transform: translateX(25%) rotate(7deg); }
  100% { transform: translateX(70%) rotate(-3deg); }
}

@keyframes rise {
  0%, 100% { transform: translate3d(0, .7rem, 0) scale(.96); opacity: .74; }
  50% { transform: translate3d(.35rem, -1.1rem, 0) scale(1.03); opacity: .96; }
}

@media (max-width: 900px) {
  .chapter-nav { display: none; }
  .hero-room,
  .chapter-room,
  .overlap-room,
  .afterglow-room {
    grid-template-columns: 1fr;
  }
  .title-stream { padding-left: 0; }
  .domain-title { font-size: clamp(4.8rem, 24vw, 9rem); }
  .hero-basin,
  .oval-frame { justify-self: start; }
  .stone-plaque,
  .side-note,
  .folio-right,
  .pull-quote,
  .braided-streams {
    grid-column: auto;
  }
  .stone-plaque { min-height: 11rem; width: 12rem; margin-top: 0; }
  .fine-line { height: 3rem; }
  .pull-quote { margin-left: 0; width: auto; }
  .column-fragment { left: auto; right: -4rem; width: 8rem; }
  .closing-quote { position: relative; left: auto; right: auto; bottom: auto; }
  .pearl-separator { position: relative; left: auto; right: auto; bottom: auto; margin: 3rem 0; }
}
