/* ============================================================================
   SAM ($SAM) — styles.css
   ----------------------------------------------------------------------------
   1.  Tokens
   2.  Reset & base
   3.  Utilities  (shell, sr-only, grain, reveal, dividers)
   4.  Marks      (Solana logomark, eyebrow, chain badge)
   5.  Buttons
   6.  Navbar
   7.  Hero
   8.  About
   9.  Polaroid board
   10. Caption ticker
   11. Gallery grid
   12. Expression selector
   13. Value chips
   14. How to buy · contract panel · safety
   15. Community
   16. Footer
   17. Floating buy button
   18. Lightbox
   19. Reduced motion
   ========================================================================== */

/* ---------------------------------------------------------------- 1. TOKENS */
:root {
  /* Foundations — warm espresso-black, pulled from the shadows of the oak table */
  --bg:            #0A0810;
  --bg-2:          #100C13;
  --bg-3:          #17110F;
  --surface:       rgba(255, 246, 232, .05);
  --surface-2:     rgba(255, 246, 232, .085);
  --line:          rgba(255, 246, 232, .11);
  --line-strong:   rgba(255, 246, 232, .2);

  /* Sam's fur — warm creams */
  --cream:         #FFF6E8;
  --cream-2:       #F1E3CE;
  --paper:         #F8F1E4;
  --paper-edge:    #E3D3B9;

  /* The oak table */
  --wood:          #A9743F;
  --wood-deep:     #6B4423;

  /* Sam's eyes — the primary accent */
  --amber:         #F2B03C;
  --gold:          #E39B2B;
  --nose:          #F2B4B8;

  /* Type */
  --text:          #F2EBDF;
  --muted:         #BEB2A0;
  --muted-2:       #968A76;

  /* Solana palette — chain identity only */
  --sol-purple:    #9945FF;
  --sol-cyan:      #00D1FF;
  --sol-green:     #14F195;
  --sol-magenta:   #EB54BC;

  --sol-grad:      linear-gradient(100deg, var(--sol-purple) 0%, var(--sol-cyan) 48%, var(--sol-green) 100%);
  --sol-grad-alt:  linear-gradient(120deg, var(--sol-magenta) 0%, var(--sol-purple) 45%, var(--amber) 100%);
  --warm-grad:     linear-gradient(100deg, var(--wood) 0%, var(--gold) 40%, #FFD98A 100%);

  /* Shape */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-pill: 999px;

  /* Depth */
  --sh-sm: 0 2px 10px rgba(0, 0, 0, .35);
  --sh-md: 0 14px 34px -14px rgba(0, 0, 0, .7);
  --sh-lg: 0 34px 70px -26px rgba(0, 0, 0, .82);
  --glow-p: 0 0 46px -8px rgba(153, 69, 255, .55);
  --glow-g: 0 0 46px -8px rgba(20, 241, 149, .40);
  --glow-a: 0 0 46px -8px rgba(242, 176, 60, .55);

  /* Layout */
  --shell: 1200px;
  --gutter: clamp(1.15rem, 4vw, 2.75rem);
  --sec-y: clamp(4.5rem, 9vw, 8.5rem);

  /* Fonts */
  --font-display: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-hand: 'Caveat', 'Segoe Script', cursive;
  --font-mono: ui-monospace, 'SFMono-Regular', 'Cascadia Mono', Menlo, Consolas, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
  /* `clip` (not `hidden`) so decorative bleed and the off-canvas mobile drawer
     never create a horizontal scrollbar, without turning the root into a
     scroll container. */
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(1100px 620px at 78% -6%,  rgba(242, 176, 60, .17), transparent 62%),
    radial-gradient(900px 560px at 4% 14%,    rgba(153, 69, 255, .13), transparent 60%),
    radial-gradient(1200px 700px at 62% 46%,  rgba(169, 116, 63, .14), transparent 64%),
    radial-gradient(1000px 700px at 50% 108%, rgba(20, 241, 149, .08), transparent 62%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Tactile grain over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 9998;
  pointer-events: none;
  opacity: .038;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -.022em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

:where(a, button, [tabindex], summary, input):focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

.mono { font-family: var(--font-mono); }
.handwrite { font-family: var(--font-hand); font-weight: 700; }

/* Headline gradient stays warm — gold pulled from Sam's eyes. The Solana
   gradient is reserved for chain marks, CTAs and stickers. */
.grad-text {
  background: linear-gradient(100deg, var(--wood) 0%, var(--gold) 34%, #FFDF9E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------------------------------------------------------ 3. UTILITIES */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: fixed; top: -100px; left: 12px; z-index: 200;
  padding: .7rem 1.1rem; border-radius: var(--r-sm);
  background: var(--cream); color: #0A0810; font-weight: 700;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; }

.section { padding-block: var(--sec-y); position: relative; }

.section__head { max-width: 60ch; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }

.section__kicker {
  font-size: .74rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--muted-2); margin-bottom: .85rem;
}

.section__title { font-size: clamp(2.1rem, 1.35rem + 3.2vw, 4rem); }

.section__sub {
  margin-top: 1rem; color: var(--muted);
  font-size: clamp(1.02rem, .98rem + .25vw, 1.2rem);
}

.lede { color: #DCD6CB; font-size: clamp(1.03rem, .99rem + .3vw, 1.2rem); }

/* Reveal on scroll — only hidden when JavaScript is available to reveal it */
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .75s var(--ease-out), transform .75s var(--ease-out);
}

/* Section divider with eyebrows + Solana mark */
.divider {
  display: flex; align-items: center; gap: clamp(.6rem, 1.4vw, 1.1rem);
  width: min(100% - (var(--gutter) * 2), 760px);
  margin: clamp(2rem, 5vw, 3.5rem) auto 0;
}
.divider__line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.divider__brow { width: 34px; height: 12px; fill: var(--sol-purple); opacity: .75; }
.divider__brow--flip { transform: scaleX(-1); fill: var(--sol-green); }
.divider__sol { width: 22px; }

/* ---------------------------------------------------------------- 4. MARKS */
.sol-mark {
  width: 1em; height: 1em; flex: none;
  fill: url(#solGrad);
}
.brow { fill: currentColor; }

.chain-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .38rem .8rem .38rem .68rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: linear-gradient(120deg, rgba(153, 69, 255, .14), rgba(20, 241, 149, .11));
  font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  color: #E7E3DA;
  white-space: nowrap;
}
.chain-badge .sol-mark { font-size: .95rem; }
.chain-badge--nav { margin-left: auto; }

/* -------------------------------------------------------------- 5. BUTTONS */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .82rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 800; font-size: .98rem; letter-spacing: -.005em;
  cursor: pointer;
  white-space: nowrap;
  isolation: isolate;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
              background-color .22s var(--ease), border-color .22s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--sm { padding: .6rem 1.05rem; font-size: .9rem; }
.btn--lg { padding: 1rem 1.75rem; font-size: 1.06rem; }
.btn--xl { padding: 1.15rem 2.3rem; font-size: 1.18rem; }

.btn__icon { width: 1.15em; height: 1.15em; }

/* Primary — Solana gradient + shimmer */
.btn--primary {
  color: #0A0810;
  background: var(--sol-grad);
  background-size: 200% 100%;
  box-shadow: 0 10px 30px -12px rgba(153, 69, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .45);
  overflow: hidden;
}
.btn--primary:hover {
  box-shadow: 0 16px 40px -12px rgba(20, 241, 149, .55), var(--glow-p),
              inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn--primary::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 48%, transparent 66%);
  transform: translateX(-120%);
  animation: shimmer 4.5s var(--ease) infinite;
}
@keyframes shimmer {
  0%, 62% { transform: translateX(-120%); }
  86%, 100% { transform: translateX(120%); }
}
.btn--primary .sol-mark { fill: #0A0810; opacity: .85; }

/* Eyebrow that wiggles on hover / focus */
.btn__brow {
  width: 20px; height: 8px; fill: currentColor; opacity: .65;
  transform-origin: 60% 100%;
}
.btn:hover .btn__brow,
.btn:focus-visible .btn__brow { animation: browWiggle .62s var(--ease); }
@keyframes browWiggle {
  0%   { transform: rotate(0) translateY(0); }
  28%  { transform: rotate(-16deg) translateY(-3px); }
  55%  { transform: rotate(10deg) translateY(0); }
  78%  { transform: rotate(-5deg) translateY(-1px); }
  100% { transform: rotate(0) translateY(0); }
}

/* Ghost */
.btn--ghost {
  color: var(--cream);
  background: var(--surface);
  border-color: var(--line-strong);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: var(--surface-2);
  border-color: rgba(242, 176, 60, .55);
  box-shadow: 0 12px 30px -16px rgba(242, 176, 60, .9);
}

/* Copy */
.btn--copy {
  color: var(--cream);
  background: var(--surface-2);
  border-color: var(--line-strong);
  padding: .7rem 1.15rem;
}
.btn--copy:hover { border-color: rgba(20, 241, 149, .6); }
.btn--copy .icon-check { display: none; }
.btn--copy.is-done { color: var(--sol-green); border-color: rgba(20, 241, 149, .7); }
.btn--copy.is-done .icon-copy { display: none; }
.btn--copy.is-done .icon-check { display: block; }

/* ---------------------------------------------------------------- 6. NAVBAR */
.nav {
  position: sticky; top: 0; z-index: 90;
  padding-block: .7rem;
  background: rgba(10, 8, 16, .58);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.nav.is-stuck {
  background: rgba(10, 8, 16, .86);
  border-bottom-color: var(--line);
  box-shadow: 0 14px 40px -30px #000;
}

.nav__inner { display: flex; align-items: center; gap: clamp(.7rem, 2vw, 1.4rem); }

.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand__logo {
  width: 44px; height: 44px; border-radius: 14px;
  border: 1px solid var(--line-strong);
  box-shadow: var(--sh-sm);
}
.brand__text { display: flex; align-items: baseline; gap: .45rem; }
.brand__name {
  font-family: var(--font-display); font-weight: 900;
  font-size: 1.3rem; letter-spacing: .01em; color: var(--cream);
}
.brand__ticker {
  font-family: var(--font-display); font-weight: 800; font-size: .82rem;
  padding: .1rem .5rem; border-radius: var(--r-pill);
  border: 1px solid rgba(242, 176, 60, .5);
  color: var(--amber);
}

.nav__toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: 13px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--cream); cursor: pointer;
}
.nav__toggle svg { width: 22px; height: 22px; }

.nav__menu { display: flex; align-items: center; gap: clamp(.5rem, 1.6vw, 1.15rem); }
.nav__list { display: flex; align-items: center; gap: clamp(.15rem, 1vw, .5rem); }
.nav__list a {
  position: relative;
  display: block; padding: .55rem .8rem; border-radius: var(--r-pill);
  font-size: .95rem; font-weight: 600; color: #D9CFC0;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav__list a::after {
  content: ""; position: absolute; left: 50%; bottom: .3rem;
  width: 0; height: 2px; border-radius: 2px; transform: translateX(-50%);
  background: var(--sol-grad);
  transition: width .25s var(--ease);
}
.nav__list a:hover { color: var(--cream); background: var(--surface); }
.nav__list a:hover::after,
.nav__list a[aria-current="true"]::after { width: 42%; }
.nav__list a[aria-current="true"] { color: var(--cream); }

.nav__scrim {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(6, 4, 10, .62);
  backdrop-filter: blur(3px);
}

@media (max-width: 940px) {
  .chain-badge--nav { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: fixed; inset: 0 0 auto auto;
    z-index: 95;
    width: min(86vw, 340px);
    height: 100dvh;
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: .35rem;
    padding: 5.5rem 1.35rem 2rem;
    background: linear-gradient(170deg, #181119, #0A0810 60%);
    border-left: 1px solid var(--line);
    box-shadow: var(--sh-lg);
    transform: translateX(105%);
    /* visibility keeps the closed drawer out of the tab order and away from
       screen readers; it transitions as a discrete step, so the slide still reads. */
    visibility: hidden;
    transition: transform .34s var(--ease-out), visibility .34s var(--ease-out);
    overflow-y: auto;
  }
  .nav__menu.is-open { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: .2rem; }
  .nav__list a { padding: .95rem 1rem; font-size: 1.08rem; border-radius: var(--r-md); }
  .nav__list a::after { display: none; }
  .nav__buy { margin-top: 1.1rem; justify-content: center; padding-block: .95rem; font-size: 1.02rem; }
}

/* ------------------------------------------------------------------ 7. HERO */
.hero { position: relative; overflow: hidden; padding-bottom: clamp(2.5rem, 5vw, 4rem); }

.hero__glow {
  position: absolute; inset: -20% -10% auto; height: 520px; z-index: 0;
  background: radial-gradient(closest-side, rgba(242, 176, 60, .22), transparent 72%);
  filter: blur(10px);
  pointer-events: none;
}

.hero__art { position: relative; overflow: hidden; will-change: transform; }
.hero__art img {
  width: 100%; height: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover; object-position: center;
}
/* Short, steep fade — it blends the banner into the page without washing out
   the wordmark and tagline printed on the banner itself. */
.hero__art-fade {
  position: absolute; inset: auto 0 -1px 0; height: 26%;
  background: linear-gradient(to bottom, transparent, rgba(10, 8, 16, .5) 58%, var(--bg) 98%);
  pointer-events: none;
}

.hero__body {
  position: relative; z-index: 2;
  margin-top: clamp(-3.5rem, -4vw, -1.5rem);
  text-align: center;
  display: grid; justify-items: center; gap: 1.15rem;
}

.eyebrow-kicker {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .45rem 1.1rem; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: rgba(18, 13, 22, .72);
  backdrop-filter: blur(8px);
  font-size: .76rem; font-weight: 800; letter-spacing: .2em;
  color: #E8DCC8;
}
.eyebrow-kicker .brow { width: 26px; height: 10px; fill: var(--amber); }
.eyebrow-kicker .brow--r { transform: scaleX(-1); fill: var(--wood); }

.hero__title {
  font-size: clamp(2.5rem, 1.2rem + 5.6vw, 5.5rem);
  text-shadow: 0 14px 40px rgba(0, 0, 0, .55);
}

.hero__sub {
  max-width: 46ch; color: #E0D5C4;
  font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem);
}

.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: .5rem; }

.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: .9rem; }
.pill {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem .95rem; border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(6px);
  font-size: .86rem;
}
.pill__k { color: var(--muted-2); font-weight: 600; }
.pill__v { color: var(--cream); font-weight: 700; }
.pill--chain {
  border-color: rgba(20, 241, 149, .38);
  background: linear-gradient(120deg, rgba(153, 69, 255, .16), rgba(20, 241, 149, .14));
}
.pill--chain .sol-mark { font-size: 1rem; }

@media (max-width: 900px) {
  .hero__art img { aspect-ratio: 2 / 1; object-position: 64% center; }
}
@media (max-width: 600px) {
  .hero__art img { aspect-ratio: 5 / 4; object-position: 74% center; }
  .hero__body { margin-top: -2rem; }
}

/* ----------------------------------------------------------------- 8. ABOUT */
.about__grid {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: 1.15fr .85fr; align-items: center;
}
@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; } }

.quote {
  position: relative;
  margin: 2rem 0 0; padding: 1.6rem 1.6rem 1.6rem 2.9rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  background: linear-gradient(120deg, rgba(153, 69, 255, .13), rgba(242, 176, 60, .08) 55%, rgba(20, 241, 149, .10));
  box-shadow: var(--sh-md);
}
.quote::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 5px;
  border-radius: var(--r-pill); background: var(--sol-grad);
}
.quote p {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.25rem, 1.05rem + .9vw, 1.85rem);
  line-height: 1.2; color: var(--cream);
}
.quote__brow {
  position: absolute; right: 1.3rem; top: 1.15rem;
  width: 40px; height: 15px; fill: var(--amber); opacity: .5;
}

.about__figure { margin: 0; display: grid; justify-items: center; gap: .9rem; }
.frame {
  position: relative;
  padding: 12px; border-radius: var(--r-xl);
  background: linear-gradient(150deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .03));
  border: 1px solid var(--line-strong);
  box-shadow: var(--sh-lg), var(--glow-a);
  max-width: 420px;
}
.frame img { border-radius: 24px; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.frame__sticker {
  position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%) rotate(-3deg);
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .9rem; border-radius: var(--r-pill);
  background: var(--sol-grad); color: #0A0810;
  font-family: var(--font-display); font-weight: 800; font-size: .78rem;
  white-space: nowrap;
  box-shadow: var(--sh-md);
}
.frame__sticker .sol-mark { fill: #0A0810; }
.about__figure figcaption { color: var(--muted); font-size: 1.15rem; margin-top: .6rem; }

/* -------------------------------------------------------- 9. POLAROID BOARD */
.board-section { padding-bottom: clamp(3rem, 6vw, 5rem); }

.board {
  display: flex; justify-content: center; align-items: center;
  padding: clamp(2rem, 4vw, 3.5rem) var(--gutter) clamp(3rem, 5vw, 4.5rem);
  perspective: 1200px;
}

.polaroid {
  position: relative;
  flex: 0 0 clamp(182px, 17.6vw, 252px);
  margin: 0 clamp(-18px, -1.1vw, -5px);
  padding: 12px 12px 0;
  border-radius: 8px;
  background:
    linear-gradient(160deg, #FFFDF8, var(--paper) 55%, var(--paper-edge));
  border: 1px solid rgba(0, 0, 0, .12);
  box-shadow: var(--sh-lg);
  transform: rotate(var(--rot, 0deg)) translateY(var(--y, 0));
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.polaroid::after {   /* paper grain */
  content: ""; position: absolute; inset: 0; border-radius: 8px; pointer-events: none;
  opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23p)' opacity='.25'/%3E%3C/svg%3E");
}
.polaroid:nth-child(1) { z-index: 3; }
.polaroid:nth-child(2) { z-index: 5; }
.polaroid:nth-child(3) { z-index: 7; }
.polaroid:nth-child(4) { z-index: 4; }
.polaroid:nth-child(5) { z-index: 2; }

.polaroid:hover,
.polaroid:focus-within {
  z-index: 20;
  transform: rotate(0deg) translateY(calc(var(--y, 0px) - 16px)) scale(1.045);
  box-shadow: 0 44px 80px -28px rgba(0, 0, 0, .9), 0 0 50px -18px rgba(242, 176, 60, .7);
}

.polaroid__btn {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  background: #120D14; border-radius: 3px; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25);
}
.polaroid__btn img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  transition: transform .5s var(--ease-out);
}
.polaroid:hover .polaroid__btn img { transform: scale(1.05); }

.polaroid__cap {
  padding: .55rem .2rem .85rem;
  text-align: center; color: #2A2620;
  font-size: 1.3rem; line-height: 1.1;
}

/* Fasteners */
.tape {
  position: absolute; width: 76px; height: 26px; z-index: 6;
  background: linear-gradient(105deg, rgba(255, 247, 236, .62), rgba(240, 228, 208, .5));
  border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .35);
}
.tape--tl { top: -13px; left: -16px; transform: rotate(-32deg); }
.tape--tr { top: -13px; right: -16px; transform: rotate(30deg); }

.pin {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 20px; border-radius: 50%; z-index: 6;
  background: radial-gradient(circle at 34% 30%, #FF8FD8, var(--sol-magenta) 58%, #8C1F6B);
  box-shadow: 0 5px 12px rgba(0, 0, 0, .55), inset 0 -2px 4px rgba(0, 0, 0, .35);
}
.pin--alt { background: radial-gradient(circle at 34% 30%, #9AFFD9, var(--sol-green) 58%, #0A7A4C); }

.clip {
  position: absolute; top: -16px; left: 26px; z-index: 6;
  width: 16px; height: 42px; border-radius: 8px;
  border: 3px solid #C9BCA8;
  border-bottom-color: transparent;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .5);
  transform: rotate(-8deg);
}

/* Corner sticker badges. Kept inside the card bounds so a neighbouring
   polaroid can never clip them, and always low on the frame — never across
   Sam's eyes or eyebrow markings. */
.sticker {
  position: absolute; bottom: 56px; right: 9px; z-index: 8;
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .3rem .62rem; border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 800;
  font-size: .62rem; letter-spacing: .06em; text-transform: uppercase;
  color: #0A0810; white-space: nowrap;
  box-shadow: var(--sh-md);
  transform: rotate(-7deg);
}
.sticker .sol-mark { font-size: .8rem; fill: #0A0810; }
.sticker--brow      { background: linear-gradient(110deg, #FFE9A8, #FFC24A); }
.sticker--concern   { background: linear-gradient(110deg, #FF9BD2, var(--sol-magenta)); color: #fff; right: auto; left: 9px; transform: rotate(6deg); }
.sticker--sol       { background: var(--sol-grad); }
.sticker--pct       { background: linear-gradient(110deg, #9AFFD9, var(--sol-green)); right: auto; left: 9px; transform: rotate(7deg); }
.sticker--community { background: linear-gradient(110deg, #C9A6FF, var(--sol-purple)); color: #fff; }

.board__hint { color: var(--muted-2); font-size: .9rem; text-align: center; }

@media (max-width: 780px) {
  .board {
    justify-content: flex-start;
    gap: 1.5rem;
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    perspective: none;
  }
  .board::-webkit-scrollbar { display: none; }
  .polaroid {
    flex: 0 0 min(74vw, 300px);
    margin: 0;
    scroll-snap-align: center;
    transform: rotate(calc(var(--rot, 0deg) * .5)) translateY(0);
  }
  .polaroid:hover, .polaroid:focus-within { transform: rotate(0) translateY(-6px) scale(1.01); }
  .sticker { font-size: .58rem; }
}

/* ------------------------------------------------------- 10. CAPTION TICKER */
.ticker {
  position: relative;
  border-block: 1px solid var(--line);
  background: linear-gradient(100deg, rgba(153, 69, 255, .16), rgba(242, 176, 60, .10) 45%, rgba(20, 241, 149, .16));
  padding-block: clamp(.9rem, 2vw, 1.35rem);
  overflow: hidden;
  --ticker-duration: 34s;
}
.ticker::before, .ticker::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: clamp(40px, 8vw, 120px); z-index: 2;
  pointer-events: none;
}
.ticker::before { left: 0;  background: linear-gradient(90deg, var(--bg), transparent); }
.ticker::after  { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }

.ticker__track {
  display: flex; width: max-content;
  animation: tickerScroll var(--ticker-duration) linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker__group { display: flex; align-items: center; }
.ticker__item {
  display: inline-flex; align-items: center; gap: .5rem;
  padding-inline: clamp(.9rem, 2vw, 1.6rem);
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.15rem, .95rem + 1.1vw, 2rem);
  color: var(--cream); white-space: nowrap;
}
.ticker__item--sol { color: var(--sol-green); }
.ticker__item--sol .sol-mark { font-size: .85em; }
.ticker__sep svg { width: 30px; height: 11px; fill: var(--amber); opacity: .6; }

/* -------------------------------------------------------- 11. GALLERY GRID */
.gallery {
  display: grid; gap: clamp(1.1rem, 2.2vw, 1.75rem);
  grid-template-columns: repeat(6, 1fr);
}
.gcard {
  grid-column: span 2;
  display: flex; flex-direction: column;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
  box-shadow: var(--sh-md);
  overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s var(--ease);
}
.gcard:hover {
  transform: translateY(-6px);
  border-color: rgba(242, 176, 60, .45);
  box-shadow: var(--sh-lg), 0 0 46px -18px rgba(242, 176, 60, .8);
}
.gcard.is-highlight {
  border-color: var(--amber);
  box-shadow: var(--sh-lg), 0 0 0 2px rgba(242, 176, 60, .35), var(--glow-a);
}

.gcard__media {
  position: relative; display: block; width: 100%;
  padding: 0; border: 0; background: #130E16; cursor: zoom-in; overflow: hidden;
}
.gcard__media img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center;
  transition: transform .55s var(--ease-out);
}
.gcard:hover .gcard__media img { transform: scale(1.045); }

.gcard__corner {
  position: absolute; top: 12px; right: 12px;
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 11px;
  background: rgba(10, 8, 16, .64); border: 1px solid var(--line-strong);
  backdrop-filter: blur(6px);
}
.gcard__corner .sol-mark { width: 17px; height: 17px; }

.gcard__zoom {
  position: absolute; left: 12px; bottom: 12px;
  padding: .3rem .7rem; border-radius: var(--r-pill);
  background: rgba(10, 8, 16, .7); border: 1px solid var(--line-strong);
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--cream);
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.gcard:hover .gcard__zoom,
.gcard__media:focus-visible .gcard__zoom { opacity: 1; transform: none; }

.gcard__body { padding: clamp(1.15rem, 2vw, 1.65rem); display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.gcard__no {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted-2);
}
.gcard__title { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.75rem); color: var(--cream); }
.gcard__desc { color: #CFC4B2; font-size: .97rem; }
.gcard__cap {
  display: flex; align-items: flex-start; gap: .55rem;
  margin-top: auto; padding-top: .85rem;
  border-top: 1px dashed var(--line-strong);
  font-family: var(--font-hand); font-weight: 700;
  font-size: 1.22rem; line-height: 1.25; color: var(--amber);
}
.gcard__cap .brow { flex: none; width: 24px; height: 9px; margin-top: .45rem; color: var(--wood); }

/* Featured card spans two columns and lays out horizontally */
.gcard--feature { grid-column: span 4; }
@media (min-width: 1081px) {
  .gcard--feature { flex-direction: row; align-items: stretch; }
  /* The media column is a flex item, so its height is set by the row. Pin the
     picture to fill it, otherwise the square image leaves a gap above itself. */
  .gcard--feature .gcard__media { width: 46%; flex: none; min-height: 340px; }
  .gcard--feature .gcard__media picture { position: absolute; inset: 0; }
  .gcard--feature .gcard__media img { width: 100%; height: 100%; aspect-ratio: auto; }
  .gcard--feature .gcard__body { justify-content: center; padding: clamp(1.5rem, 2.4vw, 2.25rem); }
  .gcard--feature .gcard__title { font-size: clamp(1.6rem, 1.2rem + 1.1vw, 2.3rem); }
}
@media (max-width: 1080px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gcard, .gcard--feature { grid-column: span 1; }
  .gcard--feature { grid-column: span 2; }
}
@media (max-width: 700px) {
  .gallery { grid-template-columns: 1fr; }
  .gcard, .gcard--feature { grid-column: span 1; }
}

/* --------------------------------------------------- 12. EXPRESSION SELECTOR */
.thinking__card {
  border-radius: var(--r-xl);
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  box-shadow: var(--sh-lg);
  padding: clamp(1.2rem, 3vw, 2.25rem);
}
.thinking__chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: clamp(1.4rem, 3vw, 2rem); }

.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1.1rem; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-family: var(--font-display); font-weight: 800; font-size: .93rem;
  color: #E2D8C8;
  transition: transform .22s var(--ease), background .22s var(--ease),
              border-color .22s var(--ease), color .22s var(--ease), box-shadow .22s var(--ease);
}
.chip--pick { cursor: pointer; }
.chip--pick:hover { transform: translateY(-2px); background: var(--surface-2); border-color: rgba(242, 176, 60, .5); }
.chip--pick[aria-selected="true"] {
  background: var(--sol-grad); color: #0A0810; border-color: transparent;
  box-shadow: 0 10px 26px -14px rgba(153, 69, 255, .95);
}

.thinking__panel { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: clamp(1.3rem, 3vw, 2.5rem); align-items: center; }
@media (max-width: 760px) { .thinking__panel { grid-template-columns: 1fr; } }

.thinking__figure {
  position: relative; margin: 0;
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--sh-md);
}
.thinking__figure img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  transition: opacity .28s var(--ease);
}
.thinking__figure.is-swapping img { opacity: .18; }
.thinking__corner {
  position: absolute; top: 10px; left: 10px;
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  background: rgba(10, 8, 16, .66); border: 1px solid var(--line-strong);
}
.thinking__corner .sol-mark { width: 16px; height: 16px; }

.thinking__label { color: var(--muted-2); font-size: 1.15rem; }
.thinking__line {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.35rem, 1.1rem + 1.3vw, 2.35rem);
  line-height: 1.15; color: var(--cream); margin-block: .3rem .9rem;
}
.thinking__foot { color: var(--muted-2); font-size: .88rem; margin-bottom: 1.1rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 700; color: var(--amber);
  border-bottom: 1px solid rgba(242, 176, 60, .4); padding-bottom: 2px;
  transition: gap .2s var(--ease), color .2s var(--ease);
}
.link-arrow svg { width: 1.05em; height: 1.05em; }
.link-arrow:hover { gap: .8rem; color: var(--sol-green); }

/* ------------------------------------------------------- 13. VALUE CHIPS */
.chips { display: flex; flex-wrap: wrap; gap: clamp(.6rem, 1.4vw, .95rem); }
.chip--v {
  position: relative;
  padding: .85rem 1.4rem;
  font-size: clamp(.92rem, .88rem + .2vw, 1.05rem);
  color: var(--cream);
  background: rgba(255, 255, 255, .045);
  border: 1px solid transparent;
  background-clip: padding-box;
  cursor: default;
}
.chip--v::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; padding: 1.5px;
  background: var(--chip-grad, var(--sol-grad));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .85;
  transition: opacity .25s var(--ease);
}
.chip--v:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px -20px #000, 0 0 30px -14px var(--chip-glow, rgba(153, 69, 255, .9));
}
.chip--v:hover::before { opacity: 1; }
.chip__ico { width: 1.15em; height: 1.15em; flex: none; }
.chip--v .brow { width: 1.4em; height: .55em; }

.chip--g1 { --chip-grad: linear-gradient(120deg, #9945FF, #00D1FF); --chip-glow: rgba(153, 69, 255, .9); color: #EDE3FF; }
.chip--g2 { --chip-grad: linear-gradient(120deg, #00D1FF, #14F195); --chip-glow: rgba(0, 209, 255, .9); color: #DAF6FF; }
.chip--g3 { --chip-grad: linear-gradient(120deg, #14F195, #FFD166); --chip-glow: rgba(20, 241, 149, .9); color: #DDFFF1; }
.chip--g4 { --chip-grad: linear-gradient(120deg, #EB54BC, #9945FF); --chip-glow: rgba(235, 84, 188, .9); color: #FFE1F5; }
.chip--g5 { --chip-grad: linear-gradient(120deg, #FFD166, #FF8FD8); --chip-glow: rgba(255, 209, 102, .9); color: #FFF3D9; }
.chip--g6 { --chip-grad: var(--sol-grad);                            --chip-glow: rgba(20, 241, 149, .9); color: #E6FFF6; }
.chip--g7 { --chip-grad: linear-gradient(120deg, #F2B03C, #9945FF);  --chip-glow: rgba(242, 176, 60, .9); color: #DCEBFF; }
.chip--g8 { --chip-grad: linear-gradient(120deg, #9945FF, #EB54BC);  --chip-glow: rgba(153, 69, 255, .9); color: #F1E4FF; }

/* --------------------------------------------- 14. HOW TO BUY / CONTRACT */
.steps {
  display: grid; gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(3, 1fr);
  counter-reset: step;
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.step {
  position: relative;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  box-shadow: var(--sh-md);
  transition: transform .3s var(--ease-out), border-color .3s var(--ease);
}
.step:hover { transform: translateY(-5px); border-color: rgba(153, 69, 255, .5); }
.step__n {
  position: absolute; top: -18px; left: clamp(1.5rem, 2.5vw, 2rem);
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 15px;
  background: var(--sol-grad); color: #0A0810;
  font-family: var(--font-display); font-weight: 900; font-size: 1.35rem;
  box-shadow: 0 12px 26px -12px rgba(153, 69, 255, .9);
}
.step__ico { width: 30px; height: 30px; margin: 1.35rem 0 .9rem; color: var(--amber); }
.step__title { font-size: 1.3rem; color: var(--cream); margin-bottom: .45rem; }
.step__text { color: var(--muted); font-size: .97rem; }

.buy__cta {
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
  margin-top: clamp(2.25rem, 4vw, 3.25rem);
}
.buy__hostnote { color: var(--muted-2); font-size: .86rem; }

/* Contract address panel */
.ca {
  margin-top: clamp(2.25rem, 4vw, 3.25rem);
  padding: clamp(1.25rem, 2.6vw, 2rem);
  border-radius: var(--r-xl);
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(150deg, rgba(153, 69, 255, .14), rgba(242, 176, 60, .07) 50%, rgba(20, 241, 149, .12)),
    rgba(18, 13, 22, .7);
  box-shadow: var(--sh-lg);
}
.ca__head { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.ca__title {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: clamp(1.15rem, 1rem + .5vw, 1.5rem); color: var(--cream);
}
.ca__flag {
  padding: .3rem .75rem; border-radius: var(--r-pill);
  background: rgba(255, 193, 71, .16); border: 1px solid rgba(255, 193, 71, .55);
  color: #FFD98A; font-size: .74rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
}
.ca__flag[hidden] { display: none; }

.ca__row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: stretch; }
.ca__value {
  flex: 1 1 320px; min-width: 0;
  display: flex; align-items: center;
  padding: .85rem 1.05rem; border-radius: var(--r-md);
  background: rgba(6, 4, 10, .72);
  border: 1px dashed rgba(255, 193, 71, .5);
  color: #FFE3A6; font-size: .95rem;
  overflow-wrap: anywhere;
}
.ca.is-live .ca__value { border-style: solid; border-color: rgba(20, 241, 149, .5); color: #B9FFE2; }
.ca__note { margin-top: .9rem; color: var(--muted); font-size: .88rem; }

.safety {
  display: flex; gap: .85rem; align-items: flex-start;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding: 1.15rem 1.35rem;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 193, 71, .35);
  background: rgba(255, 193, 71, .07);
  color: #E8DCC6; font-size: .93rem;
}
.safety__ico { width: 24px; height: 24px; flex: none; color: #FFC147; margin-top: .1rem; }

/* ------------------------------------------------------------ 15. COMMUNITY */
.community__inner {
  position: relative;
  text-align: center;
  display: grid; justify-items: center; gap: 1.1rem;
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.25rem, 4vw, 3.5rem);
  border-radius: var(--r-xl);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(242, 176, 60, .18), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  box-shadow: var(--sh-lg);
  overflow: hidden;
}
.community__brow { width: 62px; height: 22px; fill: var(--amber); opacity: .7; }
.community__body { color: var(--muted); font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); max-width: 46ch; }
.community__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: .8rem; }

/* --------------------------------------------------------------- 16. FOOTER */
.community { padding-bottom: clamp(2rem, 4vw, 3rem); }

.footer {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 13, 22, .55), rgba(6, 4, 10, .95));
  padding-block: clamp(2.75rem, 5vw, 4rem) 1.5rem;
}
.footer__grid {
  display: grid; gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: 1.35fr .8fr .85fr;
}
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

.brand--footer .brand__logo { width: 52px; height: 52px; border-radius: 16px; }
.footer__brand { display: grid; justify-items: start; gap: 1rem; }
.footer__tag { font-family: var(--font-display); font-weight: 800; font-size: 1.12rem; color: var(--cream); }

.footer__h {
  font-family: var(--font-display); font-weight: 800; font-size: .78rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2);
  margin: 0 0 .9rem;
}
.footer__nav ul { display: grid; gap: .55rem; }
.footer__nav a, .socials a { color: var(--muted); transition: color .2s var(--ease); }
.footer__nav a:hover, .socials a:hover { color: var(--cream); }

.socials { display: grid; gap: .55rem; margin-bottom: 1.25rem; }
.socials a { display: inline-flex; align-items: center; gap: .6rem; }
.socials svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.socials a:hover svg { fill: var(--amber); }

.footer__legal {
  margin-top: clamp(2.25rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.footer__risk { color: var(--muted-2); font-size: .82rem; max-width: 92ch; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem;
  margin-top: 1.25rem; color: var(--muted-2); font-size: .84rem;
}
.footer__built {
  font-family: var(--font-display); font-weight: 800;
  background: var(--sol-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ------------------------------------------------- 17. FLOATING BUY BUTTON */
.floating-buy {
  display: none;
  position: fixed; z-index: 70;
  left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 140%);
  align-items: center; justify-content: center; gap: .55rem;
  width: min(92vw, 420px);
  padding: 1rem 1.5rem;
  border-radius: var(--r-pill);
  background: var(--sol-grad);
  color: #0A0810;
  font-family: var(--font-display); font-weight: 900; font-size: 1.08rem;
  box-shadow: 0 18px 42px -14px rgba(0, 0, 0, .95), 0 0 40px -14px rgba(153, 69, 255, .85);
  transition: transform .38s var(--ease-out);
}
.floating-buy .sol-mark { fill: #0A0810; opacity: .85; font-size: 1.1rem; }
.floating-buy .btn__brow { fill: #0A0810; opacity: .55; }
.floating-buy.is-visible { transform: translate(-50%, 0); }

@media (max-width: 940px) {
  .floating-buy { display: inline-flex; }
  body { padding-bottom: 4.5rem; }
}

/* ------------------------------------------------------------- 18. LIGHTBOX */
.lb {
  width: min(96vw, 1020px);
  max-width: none; max-height: 94dvh;
  padding: 0; border: 0; border-radius: var(--r-xl);
  background: linear-gradient(165deg, #1A1218, #0A0810);
  color: var(--text);
  box-shadow: var(--sh-lg);
  overflow: visible;
}
.lb::backdrop { background: rgba(2, 4, 10, .82); backdrop-filter: blur(8px); }
.lb[open] { animation: lbIn .3s var(--ease-out); }
@keyframes lbIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

.lb__inner { position: relative; padding: clamp(.75rem, 2vw, 1.15rem); }
.lb__figure { margin: 0; display: grid; gap: .9rem; }
.lb__figure img {
  width: 100%; max-height: 72dvh; object-fit: contain;
  border-radius: var(--r-lg); background: #0C0810;
}
.lb__cap { display: grid; gap: .3rem; padding: 0 .4rem .5rem; text-align: center; }
.lb__title { font-family: var(--font-display); font-weight: 900; font-size: 1.35rem; color: var(--cream); }
.lb__text { font-family: var(--font-hand); font-weight: 700; font-size: 1.3rem; color: var(--amber); }
.lb__count { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em; color: var(--muted-2); }

.lb__close, .lb__nav {
  position: absolute; z-index: 3;
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(10, 8, 16, .82); color: var(--cream);
  cursor: pointer; backdrop-filter: blur(6px);
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.lb__close:hover, .lb__nav:hover { background: rgba(242, 176, 60, .3); transform: scale(1.06); }
.lb__close svg, .lb__nav svg { width: 22px; height: 22px; }
.lb__close { top: -14px; right: -14px; }
.lb__nav--prev { left: -18px; top: 42%; }
.lb__nav--next { right: -18px; top: 42%; }

@media (max-width: 720px) {
  .lb { width: 100vw; max-height: 100dvh; border-radius: 0; }
  .lb__close { top: 10px; right: 10px; }
  .lb__nav--prev { left: 8px; }
  .lb__nav--next { right: 8px; }
  .lb__figure img { max-height: 62dvh; }
}

/* ------------------------------------------------------- 19. REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .step:hover, .gcard:hover, .chip--v:hover { transform: none; }
  .hero__art { transform: none !important; }

  /* Caption bar: stop scrolling, show every message in a centred, wrapped row */
  .ticker { overflow: visible; }
  .ticker::before, .ticker::after { display: none; }
  .ticker__track { width: 100%; animation: none; transform: none !important; justify-content: center; }
  .ticker__group { flex-wrap: wrap; justify-content: center; row-gap: .35rem; }
  .ticker__group + .ticker__group { display: none; }
  .polaroid { transform: rotate(var(--rot, 0deg)); }
  .polaroid:hover, .polaroid:focus-within { transform: rotate(var(--rot, 0deg)); }
}
