:root {
  /* Compliance tokens from DESIGN.md: #0042 Interaction:** Interaction: Interaction* Interlude 1:** 1: 1* "Every story." — zoom-focus entrance 2:** 2: 2* "Collect Sections:** Sections: Sections* IntersectionObserver threshold: (Google */
  --charcoal: #1a1a2e;
  --indigo: #16213e;
  --ruby: #c0392b;
  --sapphire: #2980b9;
  --emerald: #27ae60;
  --amethyst: #8e44ad;
  --topaz: #f39c12;
  --cream: #f0e6d3;
  --lavender: #a8a4ce;
  --gold: #ffd700;
  --night: #0f0f1e;
  --iso-rotate: rotateX(55deg) rotateZ(-45deg);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1e 100%);
  color: var(--cream);
  font-family: "Nunito", sans-serif;
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

.page-shell { min-height: 100vh; }

.scene {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.scene::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 25% 15%, rgba(255, 215, 0, 0.14), transparent 28%),
    radial-gradient(circle at 80% 30%, rgba(142, 68, 173, 0.20), transparent 34%),
    radial-gradient(circle at 45% 90%, rgba(41, 128, 185, 0.16), transparent 36%);
  z-index: -2;
}

.scene--dusk::before {
  background:
    radial-gradient(circle at 50% 82%, rgba(243, 156, 18, 0.24), transparent 36%),
    radial-gradient(circle at 18% 20%, rgba(192, 57, 43, 0.12), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(39, 174, 96, 0.10), transparent 32%);
}

.brand-plane {
  position: relative;
  z-index: 4;
  text-align: center;
  transform: perspective(900px) rotateX(12deg) rotateZ(-4deg);
  margin-top: -16vh;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 24px rgba(255, 215, 0, 0.22);
}

h1, h2, .focus-text, .claim-card label {
  font-family: "Quicksand", sans-serif;
  letter-spacing: 0.04em;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--cream);
}

.brand-plane p {
  margin: 0.35rem 0 0;
  color: var(--lavender);
  font-weight: 300;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
}

.chevron {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  font: 700 3rem/1 "Quicksand", sans-serif;
  animation: pulseDown 1.8s ease-in-out infinite;
}

.ember-field { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.ember {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 12px currentColor;
  animation: floatBadge var(--duration) linear infinite;
  animation-delay: var(--delay);
}

.city {
  position: absolute;
  width: min(980px, 98vw);
  height: min(560px, 62vh);
  bottom: 6vh;
  left: 50%;
  transform: translateX(-50%) perspective(1200px) rotateX(55deg) rotateZ(-45deg);
  transform-style: preserve-3d;
  z-index: 2;
}

.city--closing { bottom: 28vh; opacity: 0.98; }

.building {
  --c: var(--ruby);
  position: absolute;
  width: 86px;
  height: 130px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c), white 20%), var(--c));
  border-radius: 8px 8px 3px 3px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.36), inset 0 0 0 1px rgba(240, 230, 211, 0.18);
  transform-style: preserve-3d;
  animation: breathe 4.8s ease-in-out infinite;
}

.building::before, .building::after {
  content: "";
  position: absolute;
  top: 10px;
  width: 28px;
  height: calc(100% - 10px);
  background: color-mix(in srgb, var(--c), black 35%);
}

.building::before { right: -28px; transform-origin: left top; transform: skewY(38deg); border-radius: 0 7px 5px 0; }
.building::after { left: -28px; transform-origin: right top; transform: skewY(-38deg); background: color-mix(in srgb, var(--c), black 18%); border-radius: 7px 0 0 5px; }

.building span {
  position: absolute;
  inset: 18px 16px;
  background-image: radial-gradient(circle, #ffd700 0 2px, transparent 2.5px);
  background-size: 17px 17px;
  filter: drop-shadow(0 0 5px #ffd700);
  opacity: 0.8;
}

.scene--dusk .building span { opacity: 1; filter: drop-shadow(0 0 9px #ffd700); }
.ruby { --c: #c0392b; --rgb: 192, 57, 43; }
.sapphire { --c: #2980b9; --rgb: 41, 128, 185; }
.emerald { --c: #27ae60; --rgb: 39, 174, 96; }
.amethyst { --c: #8e44ad; --rgb: 142, 68, 173; }
.topaz { --c: #f39c12; --rgb: 243, 156, 18; }
.tall { height: 210px; }
.tower { height: 285px; width: 76px; }
.b1 { left: 7%; top: 44%; animation-delay: -0.3s; } .b2 { left: 18%; top: 20%; animation-delay: -1.1s; }
.b3 { left: 30%; top: 54%; animation-delay: -2.1s; } .b4 { left: 41%; top: 10%; animation-delay: -0.8s; }
.b5 { left: 52%; top: 45%; animation-delay: -2.8s; } .b6 { left: 63%; top: 25%; animation-delay: -1.6s; }
.b7 { left: 74%; top: 8%; animation-delay: -3.2s; } .b8 { left: 82%; top: 43%; animation-delay: -0.5s; }
.b9 { left: 15%; top: 62%; animation-delay: -2.2s; } .b10 { left: 67%; top: 64%; animation-delay: -1.2s; }
.b11 { left: 37%; top: 72%; animation-delay: -2.6s; } .b12 { left: 88%; top: 18%; animation-delay: -0.2s; }

.water-tower, .antenna, .badge-sign {
  position: absolute;
  z-index: 5;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,.4));
}
.water-tower { width: 34px; height: 44px; border-radius: 12px 12px 6px 6px; background: #f39c12; left: 49%; top: 2%; }
.water-tower::after { content: ""; position: absolute; width: 48px; height: 3px; background: #f0e6d3; left: -7px; bottom: -8px; box-shadow: 8px 12px 0 #f0e6d3; opacity: .7; }
.antenna { width: 2px; height: 70px; background: #a8a4ce; left: 78%; top: 3%; }
.antenna::before { content: ""; position: absolute; width: 38px; height: 2px; background: #a8a4ce; top: 18px; left: -18px; transform: rotate(28deg); }
.badge-sign { width: 42px; height: 42px; border-radius: 50%; background: #ffd700; box-shadow: 0 0 24px #ffd700; left: 58%; top: 34%; }
.sign2 { left: 28%; top: 22%; background: #27ae60; box-shadow: 0 0 26px #27ae60; }
.sign3 { left: 76%; top: 36%; background: #c0392b; box-shadow: 0 0 26px #c0392b; }

.masonry-wrap {
  min-height: 100vh;
  padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 4vw, 4rem);
  position: relative;
}

.masonry-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(168, 164, 206, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(168, 164, 206, 0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  pointer-events: none;
}

.section-kicker {
  position: relative;
  max-width: 1180px;
  margin: 0 auto 1.5rem;
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lavender);
}

.masonry-grid {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  column-count: 3;
  column-gap: 1.5rem;
}

.badge-card {
  position: relative;
  display: inline-block;
  width: 100%;
  min-height: 180px;
  margin: 0 0 1.5rem;
  padding: 1.45rem;
  break-inside: avoid;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(22, 33, 62, 0.96), rgba(15, 15, 30, 0.96));
  box-shadow: 0 4px 24px rgba(var(--rgb), 0.25), 0 18px 46px rgba(0, 0, 0, 0.24);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: cardIn 720ms ease-out forwards;
  animation-delay: var(--delay);
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 300ms ease;
}

.badge-card.medium { min-height: 280px; }
.badge-card.large { min-height: 400px; }
.badge-card:hover, .badge-card.in-view {
  transform: translateY(-8px);
  box-shadow: 0 12px 48px rgba(var(--rgb), 0.52), 0 30px 70px rgba(0, 0, 0, 0.36);
}

.inner-line {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(var(--rgb), 0.30);
  border-radius: 12px;
  pointer-events: none;
}

.badge-stage { height: 118px; position: relative; margin: 0.2rem 0 1rem; display: grid; place-items: center; }
.pedestal {
  width: 92px;
  height: 62px;
  background: color-mix(in srgb, var(--c), white 22%);
  transform: perspective(500px) var(--iso-rotate);
  border-radius: 12px;
  box-shadow: -18px 18px 0 color-mix(in srgb, var(--c), black 20%), 18px 18px 0 color-mix(in srgb, var(--c), black 40%), 0 16px 24px rgba(0,0,0,.28);
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.badge-card:hover .pedestal, .badge-card.in-view .pedestal { transform: perspective(500px) rotateX(55deg) rotateZ(-51deg); }

.badge-icon {
  position: absolute;
  width: 64px;
  height: 64px;
  top: 18px;
  left: 50%;
  margin-left: -32px;
  filter: drop-shadow(0 8px 10px rgba(0,0,0,.42));
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.badge-card:hover .badge-icon, .badge-card.in-view .badge-icon { transform: rotate(10deg) translateY(-3px); }
.badge-icon i { position: absolute; display: block; background: var(--c); opacity: .95; }

.badge-card h2 { margin: 0 0 .35rem; font-size: clamp(1.25rem, 2vw, 1.65rem); font-weight: 700; color: var(--cream); }
.badge-card p { margin: 0 0 1rem; color: var(--lavender); }
.meta { position: absolute; left: 1.45rem; right: 1.45rem; bottom: 1.2rem; font-family: "Space Mono", monospace; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(240, 230, 211, 0.68); }

.story-strip {
  min-height: 52vh;
  margin: 0;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.story-strip::before {
  content: "";
  position: absolute;
  width: min(900px, 90vw);
  height: 120px;
  border-radius: 22px;
  background: linear-gradient(90deg, rgba(var(--rgb), 0.18), rgba(255, 215, 0, 0.08));
  box-shadow: 0 0 46px rgba(var(--rgb), 0.22), inset 0 0 0 1px rgba(var(--rgb), 0.32);
  transform: perspective(700px) rotateX(55deg) rotateZ(-8deg);
}
.focus-text {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 1rem;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--c);
  text-shadow: 0 0 22px rgba(var(--rgb), 0.45);
  transform: scale(1.5);
  filter: blur(8px);
  opacity: 0;
  transition: transform 800ms ease-out, filter 800ms ease-out, opacity 800ms ease-out;
}
.focus-text.is-focused { transform: scale(1); filter: blur(0); opacity: 1; }

.closing { min-height: 112vh; padding-top: 42vh; }
.closing-line { min-height: 24vh; width: 100%; }
.claim-card {
  position: relative;
  z-index: 6;
  width: min(620px, calc(100vw - 2rem));
  padding: 1.2rem;
  border-radius: 24px;
  background: rgba(22, 33, 62, 0.78);
  box-shadow: 0 0 34px rgba(255, 215, 0, 0.20), inset 0 0 0 1px rgba(255, 215, 0, 0.24);
  backdrop-filter: blur(10px);
}
.claim-card label { display: block; margin-bottom: .75rem; font-size: clamp(1.2rem, 2vw, 1.7rem); color: var(--cream); font-weight: 600; }
.claim-card input {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 16px;
  padding: 1rem 1.1rem;
  background: #0f0f1e;
  color: #ffd700;
  font: 400 clamp(1rem, 2vw, 1.45rem)/1.2 "Space Mono", monospace;
  box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.38), 0 0 24px rgba(255, 215, 0, 0.14);
}

.pattern-orbit i:nth-child(1), .pattern-bloom i, .pattern-rings i { border-radius: 50%; }
.pattern-orbit i:nth-child(1){ inset: 7px; opacity:.4; }.pattern-orbit i:nth-child(2){ width:18px;height:18px;border-radius:50%;left:7px;top:23px; }.pattern-orbit i:nth-child(3){ width:24px;height:24px;border-radius:50%;right:4px;top:8px;opacity:.7; }.pattern-orbit i:nth-child(4){ width:28px;height:8px;border-radius:8px;right:6px;bottom:12px;opacity:.8; }
.pattern-bars i{ width:14px;border-radius:8px;bottom:8px; }.pattern-bars i:nth-child(1){height:30px;left:9px;opacity:.45}.pattern-bars i:nth-child(2){height:48px;left:25px}.pattern-bars i:nth-child(3){height:38px;left:43px;opacity:.7}
.pattern-bloom i{ width:28px;height:28px;left:18px;top:18px;transform-origin:14px 14px;opacity:.64}.pattern-bloom i:nth-child(2){transform:rotate(72deg) translateX(18px)}.pattern-bloom i:nth-child(3){transform:rotate(144deg) translateX(18px)}.pattern-bloom i:nth-child(4){transform:rotate(216deg) translateX(18px)}.pattern-bloom i:nth-child(5){transform:rotate(288deg) translateX(18px)}
.pattern-arc i{ border:5px solid var(--c); background:transparent; border-radius:50%; opacity:.45 }.pattern-arc i:nth-child(1){inset:8px}.pattern-arc i:nth-child(2){inset:18px;opacity:.75}.pattern-arc i:nth-child(3){width:18px;height:18px;right:4px;top:4px;background:var(--c);opacity:1}
.pattern-stack i{ height:14px;border-radius:9px;left:8px;right:8px }.pattern-stack i:nth-child(1){top:10px;opacity:.45}.pattern-stack i:nth-child(2){top:25px;left:16px}.pattern-stack i:nth-child(3){top:40px;right:16px;opacity:.72}
.pattern-comet i:nth-child(1){width:30px;height:30px;border-radius:50%;right:6px;top:6px}.pattern-comet i:nth-child(2),.pattern-comet i:nth-child(3),.pattern-comet i:nth-child(4){height:8px;border-radius:8px;left:4px;opacity:.6}.pattern-comet i:nth-child(2){width:42px;top:18px}.pattern-comet i:nth-child(3){width:34px;top:32px}.pattern-comet i:nth-child(4){width:25px;top:46px}
.pattern-cross i{border-radius:10px}.pattern-cross i:nth-child(1){width:50px;height:12px;left:7px;top:26px}.pattern-cross i:nth-child(2){width:12px;height:50px;left:26px;top:7px;opacity:.7}.pattern-cross i:nth-child(3){width:18px;height:18px;left:5px;top:5px;opacity:.45}.pattern-cross i:nth-child(4){width:18px;height:18px;right:5px;bottom:5px;opacity:.45}
.pattern-moon i{border-radius:50%}.pattern-moon i:nth-child(1){inset:6px}.pattern-moon i:nth-child(2){inset:6px;left:20px;background:#16213e}.pattern-moon i:nth-child(3){width:13px;height:13px;left:8px;bottom:8px;opacity:.6}
.pattern-diamond i{transform:rotate(45deg);border-radius:8px}.pattern-diamond i:nth-child(1){width:42px;height:42px;left:11px;top:11px;opacity:.45}.pattern-diamond i:nth-child(2){width:28px;height:28px;left:18px;top:18px}.pattern-diamond i:nth-child(3){width:12px;height:12px;right:7px;top:7px;opacity:.8}
.pattern-sun i{border-radius:50%;left:18px;top:18px;width:28px;height:28px}.pattern-sun i:nth-child(n+2){width:8px;height:22px;left:28px;top:0;border-radius:8px;transform-origin:4px 32px}.pattern-sun i:nth-child(3){transform:rotate(90deg)}.pattern-sun i:nth-child(4){transform:rotate(45deg);opacity:.7}.pattern-sun i:nth-child(5){transform:rotate(135deg);opacity:.7}
.pattern-rings i{border:5px solid var(--c);background:transparent}.pattern-rings i:nth-child(1){inset:5px;opacity:.4}.pattern-rings i:nth-child(2){inset:15px;opacity:.7}.pattern-rings i:nth-child(3){inset:25px;background:var(--c)}
.pattern-leaf i{border-radius:70% 10%}.pattern-leaf i:nth-child(1){width:34px;height:20px;left:7px;top:10px;transform:rotate(-25deg);opacity:.55}.pattern-leaf i:nth-child(2){width:34px;height:20px;right:7px;top:24px;transform:rotate(155deg)}.pattern-leaf i:nth-child(3){width:34px;height:20px;left:10px;bottom:7px;transform:rotate(-25deg);opacity:.75}.pattern-leaf i:nth-child(4){width:5px;height:54px;left:30px;top:5px;border-radius:5px;opacity:.5}
.pattern-spark i{border-radius:8px}.pattern-spark i:nth-child(1){width:12px;height:54px;left:26px;top:5px}.pattern-spark i:nth-child(2){width:54px;height:12px;left:5px;top:26px;opacity:.75}.pattern-spark i:nth-child(3){width:22px;height:22px;right:4px;top:5px;transform:rotate(45deg);opacity:.5}
.pattern-ladder i{height:8px;border-radius:8px;left:10px;right:10px}.pattern-ladder i:nth-child(1){top:10px}.pattern-ladder i:nth-child(2){top:24px;left:18px;opacity:.8}.pattern-ladder i:nth-child(3){top:38px;right:18px;opacity:.65}.pattern-ladder i:nth-child(4){width:8px;height:54px;left:28px;top:5px;opacity:.38}
.pattern-heart i{border-radius:50%}.pattern-heart i:nth-child(1){width:30px;height:30px;left:8px;top:9px}.pattern-heart i:nth-child(2){width:30px;height:30px;right:8px;top:9px}.pattern-heart i:nth-child(3){width:34px;height:34px;left:15px;top:22px;transform:rotate(45deg);border-radius:6px}
.pattern-map i{border-radius:8px}.pattern-map i:nth-child(1){width:16px;height:48px;left:8px;top:8px;opacity:.48}.pattern-map i:nth-child(2){width:18px;height:48px;left:25px;top:8px;opacity:.82}.pattern-map i:nth-child(3){width:14px;height:48px;right:7px;top:8px;opacity:.62}.pattern-map i:nth-child(4){width:11px;height:11px;border-radius:50%;left:28px;top:18px;background:#ffd700}.pattern-map i:nth-child(5){width:30px;height:5px;left:19px;top:38px;transform:rotate(-24deg);background:#ffd700;opacity:.8}
.pattern-portal i{border-radius:50%;border:6px solid var(--c);background:transparent}.pattern-portal i:nth-child(1){inset:4px;opacity:.5}.pattern-portal i:nth-child(2){inset:15px}.pattern-portal i:nth-child(3){width:16px;height:16px;left:24px;top:24px;background:var(--c)}
.pattern-drop i{border-radius:50% 50% 50% 8px;transform:rotate(-45deg)}.pattern-drop i:nth-child(1){width:34px;height:34px;left:15px;top:8px}.pattern-drop i:nth-child(2){width:17px;height:17px;left:8px;bottom:8px;opacity:.6}.pattern-drop i:nth-child(3){width:14px;height:14px;right:8px;bottom:11px;opacity:.45}
.pattern-crown i{border-radius:8px 8px 2px 2px;bottom:8px}.pattern-crown i:nth-child(1){width:50px;height:18px;left:7px}.pattern-crown i:nth-child(2){width:18px;height:38px;left:9px;opacity:.65}.pattern-crown i:nth-child(3){width:18px;height:50px;left:23px}.pattern-crown i:nth-child(4){width:18px;height:38px;right:9px;opacity:.65}

@keyframes pulseDown { 0%,100% { opacity: .45; transform: translate(-50%, -6px); } 50% { opacity: 1; transform: translate(-50%, 8px); } }
@keyframes floatBadge { 0% { opacity: 0; transform: translate3d(0, 35vh, 0) scale(.6); } 14% { opacity: 1; } 55% { transform: translate3d(var(--drift), -20vh, 0) scale(1); } 100% { opacity: 0; transform: translate3d(calc(var(--drift) * -1), -72vh, 0) scale(.4); } }
@keyframes breathe { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes cardIn { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) { .masonry-grid { column-count: 2; } .brand-plane { margin-top: -22vh; } .city { width: 900px; opacity: .82; } }
@media (max-width: 620px) { .masonry-grid { column-count: 1; } .masonry-wrap { padding-inline: 1rem; } .city { width: 760px; bottom: 2vh; } .badge-card.large, .badge-card.medium, .badge-card.small { min-height: auto; padding-bottom: 4.6rem; } .story-strip::before { height: 96px; } }
