:root {
  /* compliance tokens: #fff IntersectionObserver scroll-reveal (no libraries IntersectionObserver` */
  --primary-deep: #2c1810;
  --secondary-earth: #5c3d2e;
  --tertiary-warm: #a0785a;
  --accent-gold: #d4a574;
  --bubble-accent: #c49a6c;
  --text-light: #f0e6d8;
  --text-muted: #8a7160;
  --glass-base: rgba(92, 61, 46, 0.25);
  --glass-border: rgba(212, 165, 116, 0.15);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text-light);
  font-family: "Quicksand", sans-serif;
  font-size: clamp(0.9rem, 1.1vw, 1.1rem);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.015em;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(160, 120, 90, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 72% 48%, rgba(196, 154, 108, 0.08) 0%, transparent 48%),
    linear-gradient(180deg, #2c1810 0%, #24130d 42%, #321d13 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 10%, transparent 0 18%, rgba(44, 24, 16, 0.38) 62%, rgba(44, 24, 16, 0.78) 100%);
  z-index: 0;
}

.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.8'/%3E%3C/svg%3E");
}

.bubble-field {
  position: fixed;
  inset: 0;
  perspective: 1000px;
  z-index: 1;
  pointer-events: none;
  transform-style: preserve-3d;
}

.bubble {
  position: absolute;
  display: block;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(212, 165, 116, 0.15), rgba(92, 61, 46, 0.05));
  border: 1px solid rgba(212, 165, 116, 0.08);
  box-shadow: inset 12px 12px 28px rgba(240, 230, 216, 0.035), inset -14px -16px 28px rgba(44, 24, 16, 0.18);
  opacity: var(--alpha);
  left: var(--x);
  top: var(--y);
  animation: float var(--duration) ease-in-out infinite alternate;
  animation-delay: var(--delay);
  transform: translate3d(0, 0, var(--z));
}

.b1 { --size: 174px; --x: 6%; --y: 8%; --alpha: .22; --duration: 14s; --delay: -2s; --z: -120px; }
.b2 { --size: 88px; --x: 22%; --y: 16%; --alpha: .16; --duration: 11s; --delay: -6s; --z: 180px; }
.b3 { --size: 208px; --x: 72%; --y: 9%; --alpha: .18; --duration: 18s; --delay: -4s; --z: -260px; }
.b4 { --size: 42px; --x: 83%; --y: 32%; --alpha: .24; --duration: 9s; --delay: -1s; --z: 320px; }
.b5 { --size: 118px; --x: 42%; --y: 63%; --alpha: .14; --duration: 16s; --delay: -8s; --z: 80px; }
.b6 { --size: 64px; --x: 12%; --y: 70%; --alpha: .19; --duration: 12s; --delay: -5s; --z: 220px; }
.b7 { --size: 136px; --x: 58%; --y: 38%; --alpha: .12; --duration: 19s; --delay: -3s; --z: -180px; }
.b8 { --size: 34px; --x: 32%; --y: 42%; --alpha: .25; --duration: 8s; --delay: -7s; --z: 360px; }
.b9 { --size: 156px; --x: 87%; --y: 66%; --alpha: .11; --duration: 20s; --delay: -10s; --z: -220px; }
.b10 { --size: 96px; --x: 4%; --y: 38%; --alpha: .15; --duration: 15s; --delay: -12s; --z: 40px; }
.b11 { --size: 128px; --x: 28%; --y: 112%; --alpha: .13; --duration: 17s; --delay: -2s; --z: -90px; }
.b12 { --size: 54px; --x: 76%; --y: 118%; --alpha: .20; --duration: 10s; --delay: -6s; --z: 240px; }
.b13 { --size: 190px; --x: 8%; --y: 148%; --alpha: .10; --duration: 19s; --delay: -4s; --z: -300px; }
.b14 { --size: 72px; --x: 46%; --y: 154%; --alpha: .18; --duration: 13s; --delay: -8s; --z: 160px; }
.b15 { --size: 140px; --x: 68%; --y: 178%; --alpha: .12; --duration: 20s; --delay: -9s; --z: -140px; }
.b16 { --size: 46px; --x: 18%; --y: 206%; --alpha: .22; --duration: 8s; --delay: -2s; --z: 300px; }
.b17 { --size: 112px; --x: 82%; --y: 230%; --alpha: .13; --duration: 16s; --delay: -11s; --z: -110px; }
.b18 { --size: 86px; --x: 36%; --y: 248%; --alpha: .17; --duration: 12s; --delay: -1s; --z: 210px; }
.b19 { --size: 166px; --x: 56%; --y: 288%; --alpha: .10; --duration: 18s; --delay: -7s; --z: -260px; }
.b20 { --size: 62px; --x: 10%; --y: 318%; --alpha: .17; --duration: 10s; --delay: -3s; --z: 180px; }
.b21 { --size: 124px; --x: 72%; --y: 342%; --alpha: .11; --duration: 15s; --delay: -12s; --z: -60px; }
.b22 { --size: 38px; --x: 91%; --y: 374%; --alpha: .20; --duration: 9s; --delay: -5s; --z: 290px; }
.b23 { --size: 152px; --x: 24%; --y: 392%; --alpha: .12; --duration: 20s; --delay: -2s; --z: -180px; }

main, .hero, .cluster, .typographic-breath, .orb-nav { position: relative; z-index: 2; }

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 8vh 6vw;
}

.hero-lens {
  position: relative;
  text-align: center;
  padding: 2.5rem 4vw 3rem;
  border-radius: 48px;
  backdrop-filter: blur(8px) saturate(140%);
  background: rgba(92, 61, 46, 0.10);
  border: 1px solid rgba(212, 165, 116, 0.10);
}

.hero-lens::before,
.hero-lens::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(196, 154, 108, 0.08);
  filter: blur(2px);
}

.hero-lens::before { width: 18vw; height: 18vw; left: -8vw; top: -5vw; }
.hero-lens::after { width: 12vw; height: 12vw; right: -6vw; bottom: -3vw; }

.hero-word {
  margin: 0;
  color: var(--accent-gold);
  font-family: "Baloo 2", cursive;
  font-size: clamp(6rem, 20vw, 16rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.9;
  text-shadow: 0 0 42px rgba(212, 165, 116, 0.18), 0 12px 42px rgba(0, 0, 0, 0.36);
}

.hero-whisper {
  margin: 0.65rem 0 0;
  color: var(--text-muted);
  font-family: "Nunito", sans-serif;
  font-size: clamp(1rem, 2vw, 1.55rem);
  letter-spacing: 0.18em;
  text-transform: lowercase;
}

.cluster {
  min-height: 78vh;
  width: min(1120px, 88vw);
  margin: 0 auto;
  padding: 10vh 0;
}

.glass-card {
  position: relative;
  border-radius: 20px;
  padding: clamp(1.4rem, 3vw, 3rem);
  background: var(--glass-base);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 1px 1px rgba(212, 165, 116, 0.1), 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.5s ease, box-shadow 0.5s ease, background 0.5s ease;
}

.glass-card:hover {
  transform: scale(1.04);
  border-color: rgba(212, 165, 116, 0.4);
  background: rgba(92, 61, 46, 0.34);
  box-shadow: inset 0 1px 3px rgba(212, 165, 116, 0.22), 0 12px 42px rgba(0, 0, 0, 0.36);
}

.glass-card h2, .glass-card h3 {
  margin: 0 0 1rem;
  color: var(--text-light);
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  line-height: 1.08;
}

.glass-card h2 { font-size: clamp(1.5rem, 3.5vw, 3rem); }
.glass-card h3 { font-size: clamp(1.15rem, 2vw, 1.7rem); color: var(--accent-gold); }
.glass-card p { margin: 0; color: rgba(240, 230, 216, 0.82); }

.card-label {
  display: block;
  margin-bottom: 1.1rem;
  color: var(--text-muted);
  font-family: "Nunito", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.card--large { width: min(690px, 78vw); }
.card--small { width: min(360px, 72vw); }
.card--medium { width: min(470px, 74vw); }
.card--tall { width: min(510px, 74vw); min-height: 430px; }
.card--wide { width: min(790px, 82vw); }

.cluster--1 .card--large { margin-left: 5%; }
.cluster--1 .card--overlap { margin: -7% 6% 0 auto; }
.cluster--2 .card--tall { margin-left: 2%; }
.cluster--2 .card--lift { margin: -34% 10% 0 auto; }
.cluster--2 .card--sink { margin: 4% 27% 0 auto; }
.cluster--3 .card--wide { margin: 0 auto 0 4%; }
.cluster--3 .card--overlap-right { margin: -6% 3% 0 auto; }
.cluster--4 .card--large { margin: 0 0 0 auto; }
.cluster--4 .card--overlap { margin: -5% auto 0 8%; }

.typographic-breath {
  min-height: 34vh;
  display: grid;
  place-items: center;
  color: rgba(212, 165, 116, 0.18);
  font-family: "Baloo 2", cursive;
  font-size: clamp(4.4rem, 14vw, 12rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.86;
  text-shadow: 0 0 60px rgba(196, 154, 108, 0.12);
}

.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.92);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

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

.orb-nav {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  width: 64px;
  height: 64px;
  z-index: 30;
}

.orb-trigger {
  position: absolute;
  inset: 0;
  cursor: pointer;
  border: 1px solid rgba(212, 165, 116, 0.28);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(212, 165, 116, 0.72), rgba(160, 120, 90, 0.42) 42%, rgba(92, 61, 46, 0.45));
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 1px 1px rgba(240, 230, 216, 0.18), 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: pulse 3s ease-in-out infinite;
  z-index: 3;
}

.orb-pulse {
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: rgba(240, 230, 216, 0.28);
}

.orb-link {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 88px;
  height: 38px;
  border-radius: 999px;
  color: var(--text-light);
  font-family: "Nunito", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  background: rgba(92, 61, 46, 0.44);
  border: 1px solid rgba(212, 165, 116, 0.18);
  backdrop-filter: blur(16px) saturate(140%);
  opacity: 0;
  pointer-events: none;
  transform: translate(0, 0) scale(0.62);
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease, border-color 0.25s ease;
}

.orb-nav.is-open .orb-link { opacity: 1; pointer-events: auto; }
.orb-nav.is-open .link--1 { transform: translate(-14px, -84px) scale(1); }
.orb-nav.is-open .link--2 { transform: translate(-86px, -66px) scale(1); }
.orb-nav.is-open .link--3 { transform: translate(-128px, -8px) scale(1); }
.orb-nav.is-open .link--4 { transform: translate(-104px, 52px) scale(1); }
.orb-nav.is-open .link--5 { transform: translate(-24px, 82px) scale(1); }
.orb-link:hover { border-color: rgba(212, 165, 116, 0.4); color: var(--accent-gold); }

@keyframes float {
  0% { translate: -10px -12px; }
  45% { translate: 8px 10px; }
  100% { translate: 18px -18px; }
}

@keyframes pulse {
  0%, 100% { transform: scale(0.95); }
  50% { transform: scale(1.05); }
}

@media (max-width: 760px) {
  .cluster { width: 90vw; min-height: auto; padding: 7vh 0; }
  .glass-card, .card--large, .card--small, .card--medium, .card--tall, .card--wide { width: 100%; min-height: auto; }
  .cluster--1 .card--large,
  .cluster--1 .card--overlap,
  .cluster--2 .card--tall,
  .cluster--2 .card--lift,
  .cluster--2 .card--sink,
  .cluster--3 .card--wide,
  .cluster--3 .card--overlap-right,
  .cluster--4 .card--large,
  .cluster--4 .card--overlap { margin: 1rem 0; }
  .orb-nav { right: 1rem; bottom: 1rem; }
  .orb-nav.is-open .link--1 { transform: translate(-8px, -72px) scale(1); }
  .orb-nav.is-open .link--2 { transform: translate(-78px, -52px) scale(1); }
  .orb-nav.is-open .link--3 { transform: translate(-108px, 0) scale(1); }
  .orb-nav.is-open .link--4 { transform: translate(-78px, 52px) scale(1); }
  .orb-nav.is-open .link--5 { transform: translate(-6px, 72px) scale(1); }
}
