/* ==========================================================================
   Coby The Cat ($COBY) — Royal Solana Kingdom
   1. Tokens
   2. Base & utilities
   3. Components (buttons, chips, stickers, cards)
   4. Navigation
   5. Hero
   6. Intro
   7. Polaroid board
   8. Adventure chapters
   9. Gallery + lightbox
  10. Community
  11. Value chips
  12. Final CTA
  13. Footer
  14. Motion / reduced motion
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  /* Royal blues */
  --navy-950: #03081a;
  --navy-900: #050d24;
  --navy-800: #08153a;
  --navy-700: #0c1e52;
  --navy-600: #122c72;
  --cobalt: #1e4fe0;
  --cobalt-500: #2f6bff;
  --cobalt-400: #5a8dff;
  --cobalt-glow: rgba(47, 107, 255, 0.45);

  /* Silver & gold */
  --silver: #e9effc;
  --silver-dim: #b9c6e4;
  --silver-faint: #8b9bc2;
  --gold: #e9bb55;
  --gold-bright: #ffd97a;
  --gold-deep: #a97a1c;

  /* Solana */
  --sol-purple: #9945ff;
  --sol-cyan: #00d1ff;
  --sol-green: #14f195;
  --sol-gradient: linear-gradient(90deg, var(--sol-purple) 0%, var(--sol-cyan) 55%, var(--sol-green) 100%);

  /* Accents */
  --coral: #ff7d6b;
  --pink: #ff8fc7;

  /* Surfaces */
  --glass: rgba(9, 21, 58, 0.62);
  --glass-strong: rgba(6, 15, 42, 0.86);
  --line-cobalt: rgba(90, 141, 255, 0.28);
  --line-gold: rgba(233, 187, 85, 0.32);

  /* Type */
  --font-display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --font-royal: "Cinzel", "Georgia", "Times New Roman", serif;
  --font-body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Metrics */
  --shell: 1200px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --nav-h: 74px;

  --shadow-soft: 0 18px 45px -22px rgba(0, 0, 0, 0.9);
  --shadow-card: 0 26px 60px -28px rgba(2, 8, 26, 0.95);
  --shadow-lift: 0 40px 80px -30px rgba(2, 8, 26, 0.95);

  --ease: cubic-bezier(0.22, 0.68, 0.32, 1);
}

/* 2. BASE ------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.68;
  color: var(--silver);
  background: var(--navy-950);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient kingdom backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 620px at 12% -6%, rgba(30, 79, 224, 0.4), transparent 62%),
    radial-gradient(780px 520px at 88% 4%, rgba(153, 69, 255, 0.24), transparent 60%),
    radial-gradient(1000px 700px at 50% 108%, rgba(20, 241, 149, 0.13), transparent 62%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 55%, #02060f 100%);
}

/* Paw-print pattern veil */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='%235a8dff' fill-opacity='0.05'%3E%3Cellipse cx='34' cy='44' rx='11' ry='9'/%3E%3Cellipse cx='20' cy='26' rx='5' ry='6.5'/%3E%3Cellipse cx='32' cy='20' rx='5' ry='6.5'/%3E%3Cellipse cx='44' cy='24' rx='5' ry='6.5'/%3E%3Cellipse cx='104' cy='114' rx='11' ry='9'/%3E%3Cellipse cx='90' cy='96' rx='5' ry='6.5'/%3E%3Cellipse cx='102' cy='90' rx='5' ry='6.5'/%3E%3Cellipse cx='114' cy='94' rx='5' ry='6.5'/%3E%3C/g%3E%3C/svg%3E");
}

/* height:auto lets the intrinsic width/height attributes reserve space while
   still allowing CSS aspect-ratio to drive the box. */
img { max-width: 100%; height: auto; display: block; }
svg { display: block; }

a { color: var(--cobalt-400); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-bright); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
  color: #fff;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul { margin: 0; padding: 0; list-style: none; }

button { font: inherit; color: inherit; }

::selection { background: var(--gold); color: var(--navy-950); }

:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  translate: -50% -140%;
  z-index: 999;
  padding: 0.75rem 1.4rem;
  background: var(--gold-bright);
  color: var(--navy-950);
  font-weight: 700;
  border-radius: 0 0 14px 14px;
  transition: translate 0.2s var(--ease);
}
.skip-link:focus { translate: -50% 0; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}
.shell--wide { --shell: 1360px; }

.section {
  position: relative;
  padding-block: clamp(4rem, 9vw, 7.5rem);
}

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-royal);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: "";
  width: 30px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.section-head--center .eyebrow::after {
  content: "";
  width: 30px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.section-title {
  font-size: clamp(2rem, 1.35rem + 2.9vw, 3.5rem);
}
.section-title .accent {
  background: linear-gradient(100deg, var(--gold-bright), var(--gold) 45%, #fff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: clamp(1.03rem, 0.98rem + 0.35vw, 1.2rem);
  color: var(--silver-dim);
}

/* Solana divider */
.sol-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}
.sol-divider::before,
.sol-divider::after {
  content: "";
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: var(--sol-gradient);
  opacity: 0.55;
}
.sol-divider::before { background: linear-gradient(90deg, transparent, var(--sol-purple), var(--sol-cyan)); }
.sol-divider::after  { background: linear-gradient(90deg, var(--sol-cyan), var(--sol-green), transparent); }
.sol-divider .sol-mark { width: 26px; opacity: 0.9; }

/* 3. COMPONENTS ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), filter 0.22s var(--ease), background-color 0.22s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(0.985); }

.btn--primary {
  position: relative;
  color: #06102b;
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 42%, #ffe9a8 100%);
  box-shadow: 0 12px 30px -12px rgba(233, 187, 85, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.btn--primary::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: var(--sol-gradient);
  z-index: -1;
  opacity: 0;
  filter: blur(9px);
  transition: opacity 0.25s var(--ease);
}
.btn--primary:hover { filter: saturate(1.08); box-shadow: 0 18px 40px -14px rgba(233, 187, 85, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.7); }
.btn--primary:hover::after { opacity: 0.85; }
.btn--primary .icon { color: #06102b; }

.btn--ghost {
  color: var(--silver);
  background: rgba(12, 30, 82, 0.5);
  border-color: var(--line-cobalt);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: #fff;
  background: rgba(23, 55, 140, 0.6);
}

.btn--lg { padding: 1.05rem 2.2rem; font-size: 1.12rem; }
.btn--sm { padding: 0.6rem 1.15rem; font-size: 0.9rem; }
.btn--block { width: 100%; }

.icon { width: 1.15em; height: 1.15em; flex: none; }
.icon--sol { width: 1.3em; height: 1.02em; }

/* The <use> host <svg> has no viewBox of its own — pin the ratio explicitly. */
.sol-mark {
  width: 22px;
  height: auto;
  aspect-ratio: 398 / 312;
  flex: none;
}

/* Trust / value chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(10, 24, 64, 0.66);
  border: 1px solid var(--line-cobalt);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--silver);
  backdrop-filter: blur(8px);
}
.chip .icon { width: 1.05em; height: 1.05em; color: var(--gold-bright); }
.chip--gold { border-color: var(--line-gold); }
.chip--sol { border-color: rgba(20, 241, 149, 0.35); }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

/* Glass card */
.glass {
  background: var(--glass);
  border: 1px solid var(--line-cobalt);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
}

/* Meme sticker */
.sticker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #06102b;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  border: 2px solid #fff;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.9);
  rotate: -4deg;
}
.sticker--cobalt { background: linear-gradient(135deg, var(--cobalt-400), var(--cobalt)); color: #fff; border-color: rgba(255,255,255,0.85); }
.sticker--coral  { background: linear-gradient(135deg, var(--coral), var(--pink)); color: #35061d; }
.sticker--sol    { background: var(--sol-gradient); color: #04121f; }
.sticker--white  { background: linear-gradient(135deg, #fff, #dfe8fb); color: var(--navy-800); }

/* 4. NAVIGATION ------------------------------------------------------------ */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(4, 11, 32, 0.55);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cobalt) 18%, var(--gold) 50%, var(--cobalt) 82%, transparent);
  opacity: 0.45;
  transition: opacity 0.3s var(--ease);
}
.nav.is-stuck {
  background: rgba(4, 11, 32, 0.9);
  box-shadow: 0 16px 40px -26px rgba(0, 0, 0, 1);
}
.nav.is-stuck::after { opacity: 0.9; }

.nav__inner {
  width: min(100% - (var(--gutter) * 2), 1360px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 2vw, 1.6rem);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: #fff;
  flex: none;
}
.brand__logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 3px rgba(30, 79, 224, 0.35), 0 6px 18px -6px var(--cobalt-glow);
  object-fit: cover;
  transition: transform 0.3s var(--ease);
}
.brand:hover .brand__logo { transform: rotate(-8deg) scale(1.06); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
}
.brand__sub {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver-faint);
}

.ticker-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem 0.5rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #06102b;
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.chain-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.34rem 0.72rem;
  border-radius: var(--radius-pill);
  background: rgba(8, 20, 54, 0.8);
  border: 1px solid rgba(20, 241, 149, 0.3);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--silver-dim);
  flex: none;
}
.chain-badge .sol-mark { width: 15px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(0.2rem, 1.1vw, 0.7rem);
  margin-left: auto;
}
.nav__link {
  position: relative;
  padding: 0.5rem 0.72rem;
  border-radius: 10px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--silver-dim);
  text-decoration: none;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0.72rem; right: 0.72rem; bottom: 0.28rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--cobalt-400));
  scale: 0 1;
  transform-origin: left;
  transition: scale 0.25s var(--ease);
}
.nav__link:hover { color: #fff; background: rgba(30, 79, 224, 0.16); }
.nav__link:hover::after,
.nav__link.is-active::after { scale: 1 1; }
.nav__link.is-active { color: #fff; }

.nav__cta { flex: none; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: rgba(12, 30, 82, 0.55);
  border: 1px solid var(--line-cobalt);
  border-radius: 12px;
  cursor: pointer;
  color: var(--silver);
}
.nav__toggle .icon { width: 22px; height: 22px; }
.nav__toggle .icon--close { display: none; }
.nav__toggle[aria-expanded="true"] .icon--menu { display: none; }
.nav__toggle[aria-expanded="true"] .icon--close { display: block; }

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  inset: var(--nav-h) 0 auto;
  z-index: 99;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.1rem var(--gutter) 1.6rem;
  background: var(--glass-strong);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-gold);
  box-shadow: 0 30px 60px -30px #000;
  max-height: calc(100dvh - var(--nav-h));
  overflow-y: auto;
}
.nav-drawer.is-open { display: flex; animation: drawer-in 0.28s var(--ease); }
@keyframes drawer-in {
  from { opacity: 0; translate: 0 -14px; }
  to { opacity: 1; translate: 0 0; }
}
.nav-drawer__link {
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--silver);
  text-decoration: none;
  border: 1px solid transparent;
}
.nav-drawer__link:hover,
.nav-drawer__link:focus-visible {
  background: rgba(30, 79, 224, 0.2);
  border-color: var(--line-cobalt);
  color: #fff;
}
.nav-drawer .btn { margin-top: 0.75rem; }
.nav-drawer__socials {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}
.nav-drawer__socials a {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line-cobalt);
  background: rgba(12, 30, 82, 0.5);
  color: var(--silver);
}
.nav-drawer__socials a:hover { border-color: var(--gold); color: var(--gold-bright); }
.nav-drawer__socials .icon { width: 20px; height: 20px; }

.nav-drawer__foot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--silver-faint);
}

/* 5. HERO ------------------------------------------------------------------ */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 7vw, 5rem));
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 70vh;
  z-index: -1;
  background:
    radial-gradient(60% 60% at 30% 30%, rgba(47, 107, 255, 0.35), transparent 70%),
    radial-gradient(50% 50% at 74% 22%, rgba(153, 69, 255, 0.22), transparent 70%);
  filter: blur(20px);
}

.hero__content { text-align: center; max-width: 62ch; margin-inline: auto; }

.hero__title {
  font-size: clamp(2.5rem, 1.4rem + 5.2vw, 5.1rem);
  line-height: 0.98;
  margin-bottom: 0.55rem;
  text-shadow: 0 14px 44px rgba(3, 9, 26, 0.9);
}
.hero__title .line-2 {
  display: block;
  background: linear-gradient(100deg, #fff 8%, var(--gold-bright) 42%, var(--gold) 62%, #fff 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
  color: var(--silver-dim);
  margin-bottom: 1.9rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-bottom: 1.6rem;
}
.hero__chips { justify-content: center; margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }

.hero__quote {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-pill);
  background: rgba(8, 20, 54, 0.7);
  border: 1px dashed var(--line-gold);
  font-family: var(--font-royal);
  font-size: clamp(0.8rem, 0.76rem + 0.2vw, 0.95rem);
  font-style: italic;
  color: var(--gold-bright);
}

/* Contract address bar */
.ca {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 100%;
  margin-bottom: 1.6rem;
  padding: 0.38rem 0.38rem 0.38rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(8, 20, 54, 0.78);
  border: 1px solid var(--line-cobalt);
  backdrop-filter: blur(10px);
  text-align: left;
}
.ca__label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: none;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver-faint);
}
.ca__label .sol-mark { width: 14px; }
.ca__value {
  font-family: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.8rem;
  color: var(--gold-bright);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.ca__copy {
  flex: none;
  padding: 0.42rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-gold);
  background: rgba(233, 187, 85, 0.14);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.ca__copy:hover { background: var(--gold-bright); color: #06102b; }
.ca.is-copied .ca__copy { background: var(--sol-green); border-color: var(--sol-green); color: #04211a; }
.ca--footer { margin: 0 0 1.4rem; }

@media (max-width: 560px) {
  .ca { flex-wrap: wrap; justify-content: center; border-radius: 20px; padding: 0.7rem; }
  .ca__value { white-space: normal; word-break: break-all; text-align: center; width: 100%; }
}

/* Framed banner */
.hero__frame {
  position: relative;
  border-radius: clamp(16px, 2.4vw, 26px);
  padding: clamp(6px, 0.9vw, 12px);
  background: linear-gradient(140deg, rgba(233, 187, 85, 0.75), rgba(30, 79, 224, 0.5) 45%, rgba(233, 187, 85, 0.6));
  box-shadow: var(--shadow-lift), 0 0 90px -30px var(--cobalt-glow);
}
.hero__frame img {
  width: 100%;
  height: auto;
  border-radius: clamp(11px, 1.7vw, 18px);
  aspect-ratio: 3 / 1;
  object-fit: cover;
}
.tape {
  position: absolute;
  width: 96px; height: 30px;
  background: linear-gradient(180deg, rgba(255, 249, 224, 0.55), rgba(233, 214, 160, 0.4));
  border-left: 1px dashed rgba(255, 255, 255, 0.35);
  border-right: 1px dashed rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  pointer-events: none;
}
.tape--tl { top: -14px; left: 4%; rotate: -7deg; }
.tape--tr { top: -14px; right: 4%; rotate: 6deg; }

/* "Bowl status" pill straddling the bottom edge of the banner frame */
.hero__status {
  position: absolute;
  left: 50%;
  bottom: 0;
  translate: -50% 50%;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  padding: 0.4rem 1.15rem 0.4rem 0.4rem;
  border-radius: var(--radius-pill);
  background: rgba(4, 11, 32, 0.94);
  border: 1px solid var(--line-gold);
  box-shadow: 0 16px 34px -14px #000, 0 0 40px -18px var(--cobalt-glow);
  font-size: clamp(0.74rem, 0.7rem + 0.2vw, 0.88rem);
  color: var(--silver-dim);
  white-space: nowrap;
  backdrop-filter: blur(8px);
}
.hero__status b { color: var(--gold-bright); font-weight: 600; }
.hero__status-bowl {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--cobalt), var(--navy-800));
  border: 1px solid var(--cobalt-400);
  color: var(--cobalt-400);
  animation: bowl-pulse 3.4s var(--ease) infinite;
}
.hero__status-bowl svg { width: 19px; height: 19px; }
@keyframes bowl-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(47, 107, 255, 0.45); }
  50% { transform: scale(1.07); box-shadow: 0 0 0 9px rgba(47, 107, 255, 0); }
}

/* Floating sparkles / paws */
.sparkles { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.sparkle {
  position: absolute;
  color: var(--gold-bright);
  opacity: 0.5;
  animation: drift 9s ease-in-out infinite;
}
.sparkle svg { width: 100%; height: auto; }
.sparkle--paw { color: var(--cobalt-400); opacity: 0.32; }
@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0.22; }
  50% { transform: translate3d(0, -22px, 0) rotate(9deg); opacity: 0.6; }
}

/* 6. INTRO ----------------------------------------------------------------- */
.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.portrait {
  position: relative;
  padding: 14px;
  border-radius: 26px;
  background: linear-gradient(150deg, rgba(233, 187, 85, 0.6), rgba(12, 30, 82, 0.9) 55%, rgba(47, 107, 255, 0.45));
  box-shadow: var(--shadow-lift);
  rotate: -2deg;
  transition: rotate 0.4s var(--ease), transform 0.4s var(--ease);
}
.portrait:hover { rotate: 0deg; transform: translateY(-6px); }
.portrait img {
  width: 100%;
  border-radius: 18px;
  aspect-ratio: 1;
  object-fit: cover;
}
.portrait__badge {
  position: absolute;
  top: -16px; left: -14px;
  rotate: -9deg;
}
.portrait__badge--2 {
  top: auto; left: auto;
  right: -16px; bottom: -18px;
  rotate: 6deg;
}
.portrait__ring {
  position: absolute;
  inset: -18px;
  border-radius: 34px;
  border: 1px dashed rgba(233, 187, 85, 0.35);
  pointer-events: none;
}

.intro__quotes {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.8rem;
}
.quote-line {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.05rem;
  border-radius: 14px;
  background: rgba(9, 21, 58, 0.55);
  border-left: 3px solid var(--gold);
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: #fff;
}
.quote-line .icon { color: var(--cobalt-400); }

/* 7. POLAROID BOARD -------------------------------------------------------- */
.board-section { overflow: hidden; }
.board {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  padding-block: 1.5rem 3rem;
  perspective: 1200px;
}
.polaroid {
  position: relative;
  flex: 0 0 clamp(196px, 20vw, 272px);
  margin-inline: clamp(-20px, -1.1vw, -6px);
  padding: 12px 12px 0;
  background: linear-gradient(180deg, #fdfbf4 0%, #f2eee1 100%);
  border-radius: 6px;
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(0, 0, 0, 0.12);
  color: var(--navy-900);
  rotate: var(--rot, -4deg);
  transform-origin: center bottom;
  transition: rotate 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  z-index: 1;
}
.polaroid::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0.35;
  background-image: radial-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 4px 4px;
}
.polaroid:hover,
.polaroid:focus-within {
  rotate: 0deg;
  transform: translateY(-16px) scale(1.045);
  box-shadow: var(--shadow-lift), 0 0 0 1px rgba(233, 187, 85, 0.6), 0 0 60px -18px var(--cobalt-glow);
  z-index: 5;
}
.polaroid__img {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  background: var(--navy-800);
}
.polaroid__img img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: saturate(1.03) contrast(1.02);
}
.polaroid__ep {
  position: absolute;
  top: 8px; left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(4, 11, 32, 0.82);
  border: 1px solid var(--line-gold);
  color: var(--gold-bright);
  font-family: var(--font-royal);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.polaroid__body { padding: 0.8rem 0.25rem 1.1rem; }
.polaroid__title {
  font-family: var(--font-display);
  font-size: 0.96rem;
  line-height: 1.22;
  min-height: 2.44em;           /* keeps every caption bar on the same line */
  color: var(--navy-900);
  margin: 0 0 0.5rem;
}
.polaroid__caption {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--navy-700), var(--navy-800));
  color: var(--silver);
  font-size: 0.775rem;
  line-height: 1.45;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.polaroid__sticker {
  position: absolute;
  bottom: -12px; right: -12px;
  font-size: 0.6rem;
  padding: 0.35rem 0.7rem;
  rotate: 7deg;
  z-index: 2;
}
.polaroid__pin {
  position: absolute;
  top: -12px; left: 50%;
  translate: -50% 0;
  width: 66px; height: 22px;
  background: linear-gradient(180deg, rgba(255, 249, 224, 0.75), rgba(226, 205, 150, 0.6));
  border-left: 1px dashed rgba(120, 100, 50, 0.35);
  border-right: 1px dashed rgba(120, 100, 50, 0.35);
  box-shadow: 0 3px 8px -3px rgba(0, 0, 0, 0.55);
  rotate: calc(var(--rot, -4deg) * -1);
}
.polaroid--pin .polaroid__pin {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: none;
  background: radial-gradient(circle at 34% 30%, #fff 0%, var(--coral) 45%, #a8341f 100%);
  box-shadow: 0 4px 9px -2px rgba(0, 0, 0, 0.7);
}

.board-hint {
  display: none;
  align-items: center;
  gap: 0.45rem;
  justify-content: center;
  font-size: 0.82rem;
  color: var(--silver-faint);
  margin-top: 0.25rem;
}
.board-hint .icon { width: 1em; height: 1em; }

/* 8. ADVENTURE CHAPTERS ---------------------------------------------------- */
.chapters { position: relative; padding-block: clamp(3rem, 6vw, 5rem); }

.quest-rail {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 3px;
  translate: -50% 0;
  background: rgba(90, 141, 255, 0.16);
  border-radius: 3px;
  overflow: hidden;
}
.quest-rail__fill {
  position: absolute;
  inset: 0 0 auto;
  height: 0;
  background: linear-gradient(180deg, var(--gold-bright), var(--cobalt-400) 45%, var(--sol-green));
  box-shadow: 0 0 16px var(--cobalt-glow);
  transition: height 0.15s linear;
}

.chapter {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
/* Quest-map node marker, one per chapter */
.chapter::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--gold-bright) 45%, var(--gold) 100%);
  box-shadow: 0 0 0 5px var(--navy-950), 0 0 22px var(--gold);
  pointer-events: none;
}

.chapter__bg {
  position: absolute;
  inset: 4% 0;
  z-index: -1;
  border-radius: 40px;
  opacity: 0.62;
  background:
    radial-gradient(52% 62% at 22% 32%, var(--c1), transparent 68%),
    radial-gradient(46% 58% at 78% 66%, var(--c2), transparent 68%),
    radial-gradient(60% 70% at 50% 100%, var(--c3), transparent 70%);
  filter: blur(6px);
}
.chapter__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.8rem, 5vw, 4.5rem);
  align-items: center;
}
.chapter:nth-child(even) .chapter__media { order: 2; }

.chapter__media {
  position: relative;
  border-radius: 26px;
  padding: 10px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lift);
  rotate: var(--tilt, -1.5deg);
  transition: rotate 0.4s var(--ease), transform 0.4s var(--ease);
}
.chapter__media:hover { rotate: 0deg; transform: translateY(-6px); }
.chapter__media img {
  width: 100%;
  border-radius: 18px;
  aspect-ratio: 1;
  object-fit: cover;
}
.chapter__num {
  position: absolute;
  top: -22px; left: -14px;
  width: 62px; height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--navy-700), var(--navy-900));
  border: 2px solid var(--gold);
  color: var(--gold-bright);
  font-family: var(--font-royal);
  font-size: 1.35rem;
  font-weight: 700;
  box-shadow: 0 12px 26px -12px #000, inset 0 0 18px rgba(233, 187, 85, 0.2);
}
.chapter__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-royal);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 0.85rem;
}
.chapter__title {
  font-size: clamp(1.6rem, 1.2rem + 1.9vw, 2.5rem);
  margin-bottom: 0.75rem;
}
.chapter__text { color: var(--silver-dim); }
.chapter__text strong { color: #fff; font-weight: 600; }
.chapter__tags { margin-top: 1.35rem; }

.chapter--1 { --c1: rgba(150, 190, 255, 0.5); --c2: rgba(255, 240, 214, 0.32); --c3: rgba(255, 199, 120, 0.3); }
.chapter--2 { --c1: rgba(214, 58, 58, 0.4);   --c2: rgba(255, 246, 224, 0.26); --c3: rgba(38, 166, 174, 0.4); }
.chapter--3 { --c1: rgba(16, 145, 106, 0.45); --c2: rgba(255, 178, 45, 0.34);  --c3: rgba(120, 92, 24, 0.42); }
.chapter--4 { --c1: rgba(255, 60, 196, 0.42); --c2: rgba(0, 209, 255, 0.38);   --c3: rgba(153, 69, 255, 0.45); }
.chapter--5 { --c1: rgba(178, 150, 255, 0.42);--c2: rgba(255, 125, 107, 0.34); --c3: rgba(20, 241, 149, 0.3); }

/* 9. GALLERY --------------------------------------------------------------- */
.gallery__featured {
  position: relative;
  margin-bottom: 1.15rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-gold);
  box-shadow: var(--shadow-card);
}
.gallery-grid {
  columns: 3;
  column-gap: 1.15rem;
}
.g-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0 0 1.15rem;
  break-inside: avoid;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-cobalt);
  background: var(--navy-800);
  box-shadow: var(--shadow-soft);
  cursor: zoom-in;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.g-card:hover,
.g-card:focus-visible {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: var(--shadow-lift), 0 0 44px -20px var(--cobalt-glow);
}
.g-card img {
  width: 100%;
  height: auto;
  transition: transform 0.5s var(--ease), filter 0.4s var(--ease);
}
.g-card:hover img,
.g-card:focus-visible img { transform: scale(1.06); }
.g-card__veil {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 0.9rem 1rem;
  background: linear-gradient(180deg, transparent 38%, rgba(3, 8, 26, 0.82) 100%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.g-card:hover .g-card__veil,
.g-card:focus-visible .g-card__veil { opacity: 1; }
.g-card__label {
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: #fff;
  text-align: left;
  line-height: 1.3;
}
.g-card__cat {
  position: absolute;
  top: 0.7rem; left: 0.7rem;
  padding: 0.25rem 0.62rem;
  border-radius: var(--radius-pill);
  background: rgba(4, 11, 32, 0.78);
  border: 1px solid var(--line-gold);
  color: var(--gold-bright);
  font-family: var(--font-royal);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.gallery__note {
  margin-top: 1.4rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--silver-faint);
}
.gallery__note kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 0.08em 0.4em;
  border-radius: 6px;
  background: rgba(12, 30, 82, 0.7);
  border: 1px solid var(--line-cobalt);
  border-bottom-width: 2px;
  font-family: var(--font-body);
  font-size: 0.9em;
  color: var(--silver);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(2, 6, 18, 0.93);
  backdrop-filter: blur(10px);
}
.lightbox.is-open { display: flex; animation: fade-in 0.22s var(--ease); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.lightbox__figure {
  margin: 0;
  max-width: min(1100px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
}
.lightbox__img {
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line-gold);
  box-shadow: 0 40px 90px -30px #000;
  object-fit: contain;
}
.lightbox__cap {
  text-align: center;
  font-size: 0.92rem;
  color: var(--silver-dim);
  max-width: 60ch;
}
.lightbox__cap b { color: var(--gold-bright); font-weight: 600; }
.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(12, 30, 82, 0.75);
  border: 1px solid var(--line-cobalt);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.lightbox__btn:hover { background: var(--cobalt); transform: scale(1.07); }
.lightbox__btn .icon { width: 22px; height: 22px; }
.lightbox__close { top: clamp(0.8rem, 2vw, 1.6rem); right: clamp(0.8rem, 2vw, 1.6rem); }
.lightbox__prev { left: clamp(0.5rem, 2vw, 1.6rem); top: 50%; translate: 0 -50%; }
.lightbox__next { right: clamp(0.5rem, 2vw, 1.6rem); top: 50%; translate: 0 -50%; }
.lightbox__count {
  position: absolute;
  bottom: clamp(0.7rem, 2vw, 1.4rem);
  left: 50%;
  translate: -50% 0;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--silver-faint);
}

/* 10. COMMUNITY ------------------------------------------------------------ */
.community { position: relative; overflow: hidden; }
.community__glow {
  position: absolute;
  inset: auto -10% -30% ;
  height: 60vh;
  z-index: -1;
  background: radial-gradient(50% 60% at 50% 100%, rgba(255, 199, 120, 0.22), transparent 70%);
}

.lanterns {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0.9rem, 2.4vw, 1.8rem);
  margin-bottom: clamp(2.2rem, 5vw, 3.2rem);
}
.lantern {
  width: clamp(38px, 5vw, 58px);
  color: var(--cobalt-400);
  filter: drop-shadow(0 0 14px currentColor);
  animation: lantern-float 6s ease-in-out infinite;
  animation-delay: var(--d, 0s);
  opacity: 0.9;
}
.lantern svg { width: 100%; height: auto; }
.lantern--gold { color: var(--gold-bright); }
.lantern--green { color: var(--sol-green); }
.lantern--purple { color: var(--sol-purple); }
.lantern--coral { color: var(--coral); }
@keyframes lantern-float {
  0%, 100% { transform: translateY(0); opacity: 0.62; }
  50% { transform: translateY(-14px); opacity: 1; }
}

.msg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.msg-card {
  position: relative;
  padding: 1.15rem 1.25rem 1.1rem;
  border-radius: 18px;
  background: rgba(9, 21, 58, 0.6);
  border: 1px solid var(--line-cobalt);
  rotate: var(--rot, -1deg);
  transition: transform 0.3s var(--ease), rotate 0.3s var(--ease), border-color 0.3s var(--ease);
}
.msg-card:hover { rotate: 0deg; transform: translateY(-5px); border-color: var(--gold); }
.msg-card__text { font-size: 0.94rem; color: var(--silver); margin-bottom: 0.7rem; }
.msg-card__who {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--silver-faint);
  letter-spacing: 0.04em;
}
.msg-card__who .icon { width: 1em; height: 1em; color: var(--cobalt-400); }
.community__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}
.msg-card__glow {
  position: absolute;
  top: -1px; left: 18%; right: 18%;
  height: 2px;
  border-radius: 2px;
  background: var(--sol-gradient);
  opacity: 0.7;
}

/* 11. VALUE CHIPS ---------------------------------------------------------- */
.values {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.values__panel {
  position: relative;
  border-radius: clamp(24px, 4vw, 44px);
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.2rem, 4vw, 3rem);
  background:
    linear-gradient(180deg, rgba(12, 30, 82, 0.55), rgba(5, 13, 36, 0.75)),
    repeating-linear-gradient(115deg, rgba(233, 187, 85, 0.05) 0 2px, transparent 2px 22px);
  border: 1px solid var(--line-gold);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.values__panel::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto;
  height: 80%;
  background: radial-gradient(50% 60% at 50% 0%, rgba(47, 107, 255, 0.22), transparent 70%);
  pointer-events: none;
}
.value-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0.7rem, 1.6vw, 1.1rem);
}
.value-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: clamp(0.94rem, 0.9rem + 0.25vw, 1.1rem);
  font-weight: 600;
  color: var(--chip-fg, #fff);
  background: var(--chip-bg, rgba(30, 79, 224, 0.3));
  border: 1.5px solid var(--chip-bd, var(--line-cobalt));
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), filter 0.22s var(--ease);
  cursor: default;
}
.value-chip:hover {
  transform: translateY(-4px) rotate(-1.2deg);
  filter: brightness(1.08);
  box-shadow: 0 22px 42px -20px rgba(0, 0, 0, 1), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.value-chip:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.4);
}
.value-chip .icon { width: 1.35em; height: 1.35em; }

.value-chip--cobalt { --chip-bg: linear-gradient(135deg, var(--cobalt-500), var(--cobalt)); --chip-bd: rgba(255,255,255,.28); }
.value-chip--gold   { --chip-bg: linear-gradient(135deg, var(--gold-bright), var(--gold)); --chip-fg: #06102b; --chip-bd: rgba(255,255,255,.6); }
.value-chip--white  { --chip-bg: linear-gradient(135deg, #ffffff, #dfe8fb); --chip-fg: var(--navy-800); --chip-bd: rgba(255,255,255,.85); }
.value-chip--purple { --chip-bg: linear-gradient(135deg, var(--sol-purple), #6d28d9); --chip-bd: rgba(255,255,255,.3); }
.value-chip--cyan   { --chip-bg: linear-gradient(135deg, var(--sol-cyan), #0284c7); --chip-fg: #04121f; --chip-bd: rgba(255,255,255,.5); }
.value-chip--green  { --chip-bg: linear-gradient(135deg, var(--sol-green), #0ea570); --chip-fg: #04211a; --chip-bd: rgba(255,255,255,.5); }
.value-chip--coral  { --chip-bg: linear-gradient(135deg, var(--coral), var(--pink)); --chip-fg: #350719; --chip-bd: rgba(255,255,255,.55); }
.value-chip--navy   { --chip-bg: linear-gradient(135deg, var(--navy-600), var(--navy-800)); --chip-bd: var(--line-gold); }

/* 12. FINAL CTA ------------------------------------------------------------ */
.final {
  position: relative;
  text-align: center;
  padding-block: clamp(4.5rem, 10vw, 8rem);
  overflow: hidden;
}
.final__mark {
  position: absolute;
  top: 50%; left: 50%;
  translate: -50% -50%;
  width: min(78vw, 760px);
  opacity: 0.08;
  z-index: -1;
  pointer-events: none;
}
.final__title { font-size: clamp(2.1rem, 1.4rem + 3.4vw, 4rem); }
.final__lead { max-width: 46ch; margin-inline: auto; margin-bottom: 2rem; }
.final__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.pawlink {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  color: var(--gold-bright);
  text-decoration: none;
  border-bottom: 1px dashed rgba(233, 187, 85, 0.5);
  padding-bottom: 2px;
}
.pawlink:hover { color: #fff; border-color: #fff; }
.pawlink .icon { transition: transform 0.25s var(--ease); }
.pawlink:hover .icon { transform: translateX(4px) rotate(-8deg); }

/* 13. FOOTER --------------------------------------------------------------- */
.footer {
  position: relative;
  border-top: 1px solid var(--line-cobalt);
  background: rgba(3, 8, 26, 0.72);
  padding-block: clamp(2.5rem, 6vw, 4rem) 1.75rem;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--sol-gradient);
  opacity: 0.6;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.1fr);
  gap: clamp(1.6rem, 4vw, 3rem);
  margin-bottom: 2.4rem;
}
.footer__tag { color: var(--silver-faint); font-size: 0.92rem; margin-top: 0.9rem; max-width: 34ch; }
.footer__chain {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(20, 241, 149, 0.32);
  background: rgba(8, 20, 54, 0.7);
  font-size: 0.8rem;
  color: var(--silver-dim);
}
.footer__col h3 {
  font-family: var(--font-royal);
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 1rem;
}
.footer__list { display: grid; gap: 0.55rem; }
.footer__list a {
  color: var(--silver-dim);
  text-decoration: none;
  font-size: 0.94rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.footer__list a:hover { color: var(--gold-bright); }
.footer__list .icon { width: 1em; height: 1em; opacity: 0.75; }

.disclaimer {
  padding: 1.1rem 1.3rem;
  border-radius: 16px;
  background: rgba(9, 21, 58, 0.5);
  border: 1px dashed var(--line-gold);
  font-size: 0.83rem;
  line-height: 1.6;
  color: var(--silver-faint);
  margin-bottom: 1.4rem;
}
.disclaimer strong { color: var(--silver-dim); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(90, 141, 255, 0.14);
  font-size: 0.82rem;
  color: var(--silver-faint);
}
.footer__bottom .sol-mark { width: 16px; }
.footer__made { display: inline-flex; align-items: center; gap: 0.45rem; }

/* 14. MOTION --------------------------------------------------------------- */
.reveal {
  opacity: 0;
  translate: 0 26px;
  transition: opacity 0.7s var(--ease), translate 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; translate: 0 0; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

body.no-scroll { overflow: hidden; }

/* RESPONSIVE --------------------------------------------------------------- */
@media (max-width: 1100px) {
  .nav__links { gap: 0.1rem; }
  .nav__link { padding: 0.5rem 0.55rem; font-size: 0.88rem; }
  .gallery-grid { columns: 2; }
}

@media (max-width: 960px) {
  :root { --nav-h: 66px; }
  .nav__links,
  .nav__cta,
  .chain-badge { display: none; }
  .nav__toggle { display: flex; margin-left: auto; }

  .intro__grid { grid-template-columns: 1fr; }
  .portrait { max-width: 420px; margin-inline: auto; }

  .chapter__grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .chapter:nth-child(even) .chapter__media { order: 0; }
  .chapter__media { max-width: 520px; }
  .quest-rail { left: 26px; }
  .chapter::after { left: 26px; }
  .chapter__num { top: -18px; left: -10px; width: 54px; height: 54px; font-size: 1.15rem; }

  /* Polaroid board becomes a swipeable carousel */
  .board {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.1rem;
    padding: 2rem var(--gutter) 2.6rem;
    margin-inline: calc(var(--gutter) * -1);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--cobalt) transparent;
  }
  .polaroid {
    flex: 0 0 min(72vw, 280px);
    margin-inline: 0;
    scroll-snap-align: center;
    rotate: calc(var(--rot, -4deg) * 0.45);
  }
  .board-hint { display: flex; }
}

@media (max-width: 640px) {
  .hero__status { padding-right: 0.85rem; gap: 0.5rem; }
  .hero__status-bowl { width: 28px; height: 28px; }
  .hero__status-bowl svg { width: 16px; height: 16px; }
  .gallery-grid { columns: 1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brandcol { grid-column: 1 / -1; }
  .lightbox__prev { left: 0.35rem; }
  .lightbox__next { right: 0.35rem; }
  .lightbox__btn { width: 44px; height: 44px; }
  .hero__actions .btn { flex: 1 1 100%; }
}

@media (max-width: 420px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; translate: none; }
  .sparkles { display: none; }
}

/* Print */
@media print {
  .nav, .nav-drawer, .lightbox, .sparkles, .hero__bowl { display: none !important; }
  body { background: #fff; color: #000; }
}
