:root {
  /* Compliance echoes: Interactions Throughout:** IntersectionObserver` trigger staggered fade-in. Each paragraph enters `opacity: 0` to `1` and `transform: translateY(20px against deep navy voids Playfair Display" (Google Fonts Source Serif 4" (Google Fonts */
  --deep-navy: #0d1b2a;
  --midnight: #1b2838;
  --silver: #c5ccd3;
  --pewter: #8e99a9;
  --moss: #4a6741;
  --patina: #2d6a5a;
  --bronze: #7a6842;
  --void: #070d15;
  --headline: "Playfair Display", Georgia, serif;
  --body: "Source Serif 4", Georgia, serif;
  --mono: "DM Mono", monospace;
  --throughout-token: "Throughout* Throughout:**";
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--pewter);
  background-color: var(--deep-navy);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='64' height='64' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E"),
    radial-gradient(circle at 20% 10%, rgba(45, 106, 90, 0.18), transparent 32rem),
    linear-gradient(180deg, var(--deep-navy), var(--void));
  font-family: var(--body);
  overflow-x: hidden;
}

.compliance-token { display: none; }

.ambient-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  mix-blend-mode: screen;
  opacity: 0.12;
  background-image: repeating-linear-gradient(180deg, transparent 0, transparent 2px, rgba(74, 103, 65, 0.18) 3px, transparent 4px);
}

.puzzle-world { position: relative; }

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

.hero-zone {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 44%, rgba(27, 40, 56, 0.95), var(--deep-navy) 62%, var(--void));
}

.hero-mesh-wrap {
  position: absolute;
  width: min(70vw, 920px);
  aspect-ratio: 1 / .72;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 40px 90px rgba(7, 13, 21, 0.7));
}

.hero-mesh {
  width: 100%;
  height: 100%;
  border-radius: 42% 58% 49% 51% / 55% 38% 62% 45%;
  background:
    radial-gradient(circle at 30% 40%, rgba(45, 106, 90, 0.98) 0 8%, rgba(45, 106, 90, 0.55) 22%, transparent 49%),
    radial-gradient(circle at 70% 60%, rgba(74, 103, 65, 0.98) 0 10%, rgba(74, 103, 65, 0.5) 24%, transparent 51%),
    radial-gradient(circle at 50% 80%, rgba(122, 104, 66, 0.95) 0 6%, rgba(122, 104, 66, 0.46) 25%, transparent 53%),
    conic-gradient(from 120deg at 46% 44%, rgba(197, 204, 211, 0.12), rgba(13, 27, 42, 0.22), rgba(45, 106, 90, 0.26), rgba(122, 104, 66, 0.18), rgba(197, 204, 211, 0.08));
  background-size: 120% 120%, 130% 130%, 125% 125%, 100% 100%;
  background-position: 0% 0%, 100% 50%, 45% 100%, center;
  box-shadow: inset 0 0 70px rgba(197, 204, 211, 0.08), inset 0 0 120px rgba(7, 13, 21, 0.45), 0 0 90px rgba(45, 106, 90, 0.2);
  animation: meshBreathe 20s ease-in-out infinite alternate;
  will-change: background-position;
}

.hero-mesh::after {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: inherit;
  border: 1px solid rgba(197, 204, 211, 0.06);
  background: repeating-linear-gradient(90deg, transparent, transparent 28px, rgba(197, 204, 211, 0.035) 29px);
  mix-blend-mode: screen;
}

.orbit-field { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }

.orbit-ring {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(197, 204, 211, 0.08);
  border-radius: 50%;
  animation: orbit 60s linear infinite;
  box-shadow: 0 0 18px rgba(74, 103, 65, 0.3);
}

.orbit-chip {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--silver);
  opacity: .26;
}

.chip-one { animation: orbit 48s linear infinite reverse; }
.chip-two { animation: orbit 72s linear infinite; transform-origin: center; }

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(88vw, 1040px);
  text-align: center;
  padding: 2rem;
}

.specimen-label, .scroll-rune, .pebble span, .specimen-plate {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--moss);
}

.hero-label { opacity: 0; animation: fadeDrift 1.5s ease .35s forwards; }

h1, h2, h3 { margin: 0; }

h1 {
  font-family: var(--headline);
  font-weight: 900;
  font-size: clamp(2.8rem, 6vw, 6.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--silver);
  text-shadow: 0 0 40px rgba(109, 158, 117, 0.15), 0 8px 36px rgba(7, 13, 21, .9);
  opacity: 0;
  transform: translateY(12px);
  animation: fadeDrift 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) .15s forwards;
}

.hero-line {
  max-width: 620px;
  margin: 1.2rem auto 0;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.72;
  letter-spacing: .005em;
  color: var(--silver);
  opacity: 0;
  transform: translateY(12px);
  animation: fadeDrift 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) .8s forwards;
}

.scroll-rune { position: absolute; bottom: 2rem; opacity: .62; }

.corroded-seam {
  height: 48px;
  position: relative;
  z-index: 4;
  background:
    linear-gradient(90deg, transparent, rgba(45, 106, 90, .25), transparent),
    repeating-linear-gradient(135deg, rgba(122,104,66,.12) 0 7px, rgba(27,40,56,.55) 8px 16px),
    linear-gradient(180deg, var(--midnight), var(--void), var(--midnight));
  border-block: 1px solid rgba(197,204,211,.06);
}

.corroded-seam.glow { animation: seamGlow 1.2s ease; }

.chamber {
  padding: clamp(3.5rem, 6vw, 6.5rem);
  background: var(--deep-navy);
}

.scanline {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: repeating-linear-gradient(transparent 0 2px, rgba(109,158,117,0.03) 2px 4px);
  pointer-events: none;
}

.accent-mesh {
  position: absolute;
  border-radius: 50%;
  filter: blur(3px);
  opacity: .22;
  background: radial-gradient(circle at 30% 40%, var(--patina), transparent 58%), radial-gradient(circle at 68% 60%, var(--bronze), transparent 62%);
}

.mesh-a { width: 380px; height: 380px; right: 4%; top: 12%; }
.mesh-b { width: 300px; height: 300px; left: 8%; bottom: 6%; opacity: .18; }
.mesh-c { width: 420px; height: 420px; right: -9%; top: 18%; opacity: .16; }

.collection-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  min-height: calc(100vh - 12rem);
}

.stone-prose {
  grid-column: 1 / 8;
  padding: clamp(2rem, 4vw, 4rem);
  background: rgba(27, 40, 56, .56);
  border: 1px solid rgba(197, 204, 211, .08);
  clip-path: polygon(3% 8%, 96% 0, 100% 86%, 88% 100%, 12% 94%, 0 65%);
  box-shadow: inset 0 0 52px rgba(7, 13, 21, .38), 0 18px 70px rgba(7, 13, 21, .28);
}

.metal-heading {
  font-family: var(--headline);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: .45rem 0 1.25rem;
  color: var(--silver);
  background: linear-gradient(105deg, #c5ccd3 0%, #8e99a9 45%, #c5ccd3 55%, #8e99a9 100%);
  background-size: 200% auto;
  background-position: 200% center;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(109, 158, 117, 0.15);
}

.metal-heading.shimmer { animation: metallicSweep 1.2s ease forwards; }

p {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.72;
  letter-spacing: .005em;
  color: var(--pewter);
}

.reveal-group > p, .reveal-group .piece-card, .reveal-group .metal-heading {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform .8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-group.in-view > p, .reveal-group.in-view .piece-card, .reveal-group.in-view .metal-heading {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--stagger, 0) * 120ms);
}

.rotating-specimen { grid-column: 8 / 13; position: relative; min-height: 440px; display: grid; place-items: center; }

.specimen-core {
  width: min(34vw, 390px);
  aspect-ratio: 1;
  border-radius: 42% 58% 36% 64% / 56% 44% 56% 44%;
  background: radial-gradient(circle at 30% 30%, var(--silver), transparent 12%), radial-gradient(circle at 42% 50%, var(--patina), transparent 45%), radial-gradient(circle at 70% 65%, var(--bronze), transparent 54%), var(--midnight);
  box-shadow: inset 0 0 80px rgba(7,13,21,.55), 0 0 70px rgba(45,106,90,.18);
  animation: slowRotate 28s linear infinite;
}

.specimen-plate {
  position: absolute;
  bottom: 8%;
  right: 2%;
  padding: .8rem 1rem;
  background: rgba(7, 13, 21, .72);
  border: 1px solid rgba(122, 104, 66, .45);
  color: var(--bronze);
}

.chamber-gathering { background: linear-gradient(145deg, var(--deep-navy), var(--midnight) 55%, var(--deep-navy)); }
.gathering-shell { min-height: calc(100vh - 12rem); display: flex; flex-direction: column; justify-content: center; }

.piece-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  grid-template-rows: minmax(260px, 55vh) minmax(210px, 45vh);
  gap: 1rem;
  margin-top: 1.6rem;
}

.piece-card {
  padding: clamp(1.4rem, 3vw, 2.6rem);
  background: linear-gradient(145deg, rgba(27,40,56,.82), rgba(7,13,21,.45));
  border: 1px solid rgba(197,204,211,.08);
  border-radius: 24px 8px 32px 12px;
  transition: border-radius .4s ease, transform .4s ease, box-shadow .4s ease;
  box-shadow: inset 0 0 38px rgba(7,13,21,.38);
}

.piece-card:hover { border-radius: 8px 34px 14px 40px; transform: translateY(-4px) rotate(.35deg); box-shadow: inset 0 0 42px rgba(7,13,21,.38), 0 0 28px rgba(74,103,65,.16); }
.piece-card h3 { font-family: var(--headline); font-size: clamp(1.35rem, 2.4vw, 2.2rem); color: var(--silver); letter-spacing: -.03em; }
.card-wide { grid-column: 1 / 2; grid-row: 1 / 2; }
.card-tall { grid-column: 2 / 3; grid-row: 1 / 2; border-radius: 10px 28px 12px 36px; }
.card-small { grid-column: 1 / 2; grid-row: 2 / 3; border-radius: 34px 14px 26px 8px; }
.card-deep { grid-column: 2 / 3; grid-row: 2 / 3; border-radius: 18px 42px 9px 30px; }

.chamber-ritual { display: grid; place-items: center; background: linear-gradient(to bottom, #0d1b2a, #070d15); }
.ritual-column { max-width: 640px; padding-block: 9rem; }

.pebble-nav {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 999;
  display: grid;
  gap: .6rem;
  opacity: 0;
  transform: translateY(18px);
  animation: navAppear .8s ease 2s forwards;
}

.pebble {
  width: 48px;
  height: 42px;
  display: grid;
  place-items: center;
  text-decoration: none;
  background: linear-gradient(145deg, rgba(27,40,56,.92), rgba(7,13,21,.9));
  border: 1px solid rgba(197,204,211,.1);
  transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .3s ease;
}

.pebble:hover { transform: scale(1.15); box-shadow: 0 0 12px rgba(74,103,65,0.4); }
.pebble.active { animation: wobble 1.6s ease-in-out infinite; box-shadow: 0 0 16px rgba(45,106,90,.28); }
.pebble-hero { border-radius: 46% 54% 61% 39% / 45% 36% 64% 55%; }
.pebble-collection { border-radius: 56% 44% 41% 59% / 53% 61% 39% 47%; }
.pebble-gathering { border-radius: 37% 63% 48% 52% / 61% 42% 58% 39%; }
.pebble-ritual { border-radius: 61% 39% 57% 43% / 44% 67% 33% 56%; }

@keyframes meshBreathe {
  0% { background-position: 0% 0%, 100% 50%, 45% 100%, center; border-radius: 42% 58% 49% 51% / 55% 38% 62% 45%; }
  100% { background-position: 24% 14%, 78% 62%, 58% 84%, center; border-radius: 56% 44% 61% 39% / 42% 62% 38% 58%; }
}

@keyframes orbit {
  from { transform: rotate(0deg) translateX(180px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(180px) rotate(-360deg); }
}

@keyframes fadeDrift { to { opacity: 1; transform: translateY(0); } }
@keyframes navAppear { to { opacity: 1; transform: translateY(0); } }
@keyframes metallicSweep { to { background-position: 0% center; } }
@keyframes seamGlow { 0%, 100% { box-shadow: inset 0 0 0 rgba(45,106,90,0); } 45% { box-shadow: inset 0 0 30px rgba(45,106,90,0.2); } }
@keyframes slowRotate { to { transform: rotate(360deg); } }
@keyframes wobble { 0%,100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }

@media (max-width: 820px) {
  .chamber { padding: 4rem 1.2rem; }
  .hero-mesh-wrap { width: 112vw; }
  .collection-grid, .piece-grid { display: block; }
  .stone-prose { clip-path: polygon(2% 4%, 98% 0, 100% 92%, 86% 100%, 10% 96%, 0 70%); }
  .rotating-specimen { min-height: 320px; }
  .specimen-core { width: min(72vw, 340px); }
  .piece-card { margin: 1rem 0; min-height: 210px; }
}
