/* ============================================
   KIRKLAND — Design System
   Warehouse luxury × GTA sunset × Solana neon
   ============================================ */

:root {
  --navy: #070714;
  --navy-2: #0d0a1f;
  --purple-black: #12081f;
  --violet: #7b2cff;
  --magenta: #e01e8a;
  --hot-magenta: #ff2d9b;
  --sunset: #ff6a1a;
  --orange: #ff8a2b;
  --yellow: #ffd166;
  --cyan: #14f1d9;
  --solana-purple: #9945ff;
  --green: #39ff88;
  --off-white: #f4f0e8;
  --cream: #ebe4d6;
  --muted: #a89bb8;
  --ink: #0a0612;
  --paper: #f3efe4;
  --paper-edge: #ddd4c2;

  --font-display: "Arial Narrow", "Helvetica Condensed", "Franklin Gothic Medium", "Impact", sans-serif;
  --font-body: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Consolas", "Courier New", monospace;

  --max: 1180px;
  --header-h: 68px;
  --radius: 2px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap: cubic-bezier(0.34, 1.3, 0.64, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--off-white);
  background: var(--navy);
  text-rendering: optimizeLegibility;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--cyan);
  color: var(--ink);
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 7, 20, 0.92);
  border-bottom: 1px solid rgba(153, 69, 255, 0.28);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.65rem clamp(0.85rem, 2.5vw, 1.5rem);
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex-shrink: 1;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: cover;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.header-nav {
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
  flex-shrink: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  min-height: 44px;
  padding: 0.4rem 0.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
  line-height: 1.05;
  cursor: pointer;
  transition: transform 0.15s var(--ease-out), box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  user-select: none;
}

.btn-label {
  font-size: 0.92rem;
}

.btn-tag {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0.85;
}

.btn-url {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.9;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.btn-buy {
  background: linear-gradient(135deg, var(--hot-magenta), var(--sunset));
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 1px rgba(255, 106, 26, 0.25);
}

.btn-chart {
  background: rgba(20, 241, 217, 0.08);
  color: var(--cyan);
  border-color: rgba(20, 241, 217, 0.55);
}

.btn-x {
  background: rgba(153, 69, 255, 0.18);
  color: var(--off-white);
  border-color: rgba(153, 69, 255, 0.7);
  min-width: 48px;
}

.btn-lg {
  min-height: 52px;
  padding: 0.55rem 1.1rem;
}

.btn-lg .btn-label {
  font-size: 1.05rem;
}

.btn-xl {
  min-height: 64px;
  padding: 0.85rem 1.4rem;
  min-width: min(100%, 280px);
}

.btn-xl .btn-label {
  font-size: 1.4rem;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn-buy:hover {
  box-shadow: 0 8px 24px rgba(224, 30, 138, 0.35);
}

.btn-chart:hover {
  background: rgba(20, 241, 217, 0.16);
}

.btn-x:hover {
  background: rgba(153, 69, 255, 0.32);
}

/* ---------- Warehouse label ---------- */

.warehouse-label {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin: 0;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(244, 240, 232, 0.45);
  background: rgba(7, 7, 20, 0.55);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(0.85rem, 2.5vw, 1.5rem) clamp(2rem, 5vw, 3.5rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-gradient {
  position: absolute;
  inset: -20% -10%;
  background:
    radial-gradient(ellipse 55% 50% at 78% 42%, rgba(224, 30, 138, 0.35), transparent 60%),
    radial-gradient(ellipse 40% 45% at 20% 20%, rgba(153, 69, 255, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 40% at 60% 90%, rgba(255, 106, 26, 0.22), transparent 50%),
    linear-gradient(160deg, var(--navy) 0%, var(--purple-black) 45%, #1a0a28 100%);
  animation: gradient-shift 16s ease-in-out infinite alternate;
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}

.hero-geo {
  position: absolute;
  right: -5%;
  top: 10%;
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  background:
    linear-gradient(115deg, transparent 40%, rgba(20, 241, 217, 0.08) 40% 46%, transparent 46%),
    linear-gradient(115deg, transparent 52%, rgba(153, 69, 255, 0.1) 52% 58%, transparent 58%),
    linear-gradient(115deg, transparent 64%, rgba(224, 30, 138, 0.08) 64% 70%, transparent 70%);
  animation: gradient-shift 20s ease-in-out infinite alternate-reverse;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
}

.hero-copy {
  position: relative;
  min-width: 0;
}

.hero-label {
  margin-bottom: 1.25rem;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.hero-line {
  display: block;
  font-size: clamp(2.6rem, 9vw, 6.4rem);
}

.hero-line-accent {
  color: transparent;
  background: linear-gradient(90deg, var(--hot-magenta), var(--sunset), var(--yellow));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-ticker {
  margin: 1rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.hero-hook {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cream);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.price-sticker {
  display: none;
  position: absolute;
  right: 0;
  bottom: -0.5rem;
  width: 110px;
  padding: 0.55rem 0.45rem;
  background: var(--yellow);
  color: var(--ink);
  text-align: center;
  transform: rotate(-6deg);
  box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.35);
}

.price-sticker-top,
.price-sticker-bot {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.price-sticker-mid {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  margin: 0.15rem 0;
}

@media (min-width: 900px) {
  .price-sticker {
    display: block;
  }
}

.hero-visual {
  min-width: 0;
  display: flex;
  justify-content: center;
}

.hero-visual-frame {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 1;
}

.hero-sunset-orb {
  position: absolute;
  inset: 8% 4% auto;
  height: 55%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 60%, rgba(255, 209, 102, 0.55), rgba(255, 106, 26, 0.35) 35%, rgba(224, 30, 138, 0.2) 55%, transparent 70%);
  filter: blur(2px);
  animation: gradient-shift 14s ease-in-out infinite alternate;
  z-index: 0;
}

.hero-shelf-mark {
  position: absolute;
  top: 4%;
  left: -2%;
  z-index: 2;
  display: grid;
  gap: 0.15rem;
  padding: 0.4rem 0.55rem;
  background: var(--off-white);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  box-shadow: 4px 4px 0 rgba(20, 241, 217, 0.45);
}

.hero-character {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: character-float 5.5s ease-in-out infinite;
  filter: drop-shadow(0 18px 40px rgba(153, 69, 255, 0.35));
}

.hero-deco-type {
  position: absolute;
  bottom: 2%;
  right: -4%;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: rgba(244, 240, 232, 0.12);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  pointer-events: none;
  user-select: none;
}

/* Hero entrance defaults (JS enhances) */
[data-stagger] {
  opacity: 1;
  transform: none;
}

.js-ready [data-stagger] {
  opacity: 0;
  transform: translateY(28px);
}

.js-ready .hero-is-in [data-stagger] {
  animation: stagger-in 0.7s var(--ease-out) forwards;
}

.js-ready .hero-is-in [data-stagger]:nth-child(1) { animation-delay: 0.05s; }
.js-ready .hero-is-in [data-stagger]:nth-child(2) { animation-delay: 0.14s; }
.js-ready .hero-is-in .hero-ticker { animation-delay: 0.24s; }
.js-ready .hero-is-in .hero-hook { animation-delay: 0.34s; }
.js-ready .hero-is-in .hero-actions { animation-delay: 0.46s; }

.js-ready .reveal-snap,
.js-ready .reveal-sticker,
.js-ready .reveal-stamp,
.js-ready .reveal-label,
.js-ready .reveal-type,
.js-ready .reveal-slide,
.js-ready .reveal-banner,
.js-ready .reveal-story,
.js-ready .reveal-receipt,
.js-ready .reveal-sign {
  opacity: 0;
}

.js-ready .reveal-snap { transform: translateY(-16px); }
.js-ready .reveal-sticker { transform: translateX(28px) rotate(-14deg); }
.js-ready .reveal-stamp { transform: scale(0.7) rotate(0deg); }
.js-ready .reveal-label { transform: translateY(20px); }
.js-ready .reveal-type { transform: translateY(36px); }
.js-ready .reveal-slide { transform: translateX(-40px); }
.js-ready .reveal-banner { transform: perspective(900px) rotateX(4deg) translateY(30px); }
.js-ready .reveal-story { transform: translateX(-18px); }
.js-ready .reveal-receipt { transform: translateY(40px) rotate(-1.5deg); }
.js-ready .reveal-sign { transform: scale(0.94); }

.js-ready .is-visible.reveal-snap {
  animation: snap-down 0.55s var(--ease-snap) forwards;
}

.js-ready .is-visible.reveal-sticker {
  animation: sticker-in 0.7s var(--ease-snap) forwards;
}

.js-ready .is-visible.reveal-stamp {
  animation: stamp-in 0.65s var(--ease-snap) forwards;
}

.js-ready .is-visible.reveal-label {
  animation: label-in 0.7s var(--ease-out) forwards;
}

.js-ready .is-visible.reveal-type {
  animation: type-in 0.85s var(--ease-out) forwards;
}

.js-ready .is-visible.reveal-slide {
  animation: slide-in 0.75s var(--ease-out) forwards;
}

.js-ready .is-visible.reveal-banner {
  animation: banner-in 0.9s var(--ease-out) forwards;
}

.js-ready .is-visible.reveal-story {
  animation: story-in 0.6s var(--ease-out) forwards;
}

.js-ready .is-visible.reveal-receipt {
  animation: receipt-in 0.8s var(--ease-out) forwards;
}

.js-ready .is-visible.reveal-sign {
  animation: sign-in 0.75s var(--ease-out) forwards;
}

/* ---------- Contract inventory label ---------- */

.contract-label {
  padding: 0 clamp(0.85rem, 2.5vw, 1.5rem) clamp(2rem, 4vw, 3rem);
}

.contract-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem 1.5rem;
  align-items: center;
  padding: 1rem 1.15rem;
  background:
    linear-gradient(90deg, rgba(244, 240, 232, 0.96), rgba(235, 228, 214, 0.94));
  color: var(--ink);
  border: 2px solid #1a1524;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.06),
    6px 6px 0 rgba(20, 241, 217, 0.25);
}

.contract-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.contract-body {
  min-width: 0;
}

.contract-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.ca-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.35rem;
  min-width: 0;
}

.ca-address {
  display: block;
  flex: 1 1 12rem;
  min-width: 0;
  max-width: 100%;
  padding: 0.45rem 0.55rem;
  background: rgba(7, 7, 20, 0.08);
  border: 1px solid rgba(26, 21, 36, 0.25);
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 1.7vw, 0.85rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: var(--ink);
  overflow-wrap: anywhere;
  word-break: break-all;
}

.btn-copy {
  flex: 0 0 auto;
  background: var(--ink);
  color: var(--cyan);
  border-color: var(--ink);
  min-width: 72px;
}

.btn-copy:hover {
  background: #1c1528;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.btn-copy.is-copied {
  background: var(--cyan);
  color: var(--ink);
  border-color: var(--cyan);
}

.contract-barcode {
  width: 72px;
  height: 42px;
  background:
    repeating-linear-gradient(
      90deg,
      #111 0 2px,
      transparent 2px 4px,
      #111 4px 5px,
      transparent 5px 8px,
      #111 8px 11px,
      transparent 11px 13px
    );
  opacity: 0.85;
}

/* ---------- Signature value ---------- */

.signature-value {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(0.85rem, 2.5vw, 1.5rem);
  background:
    linear-gradient(180deg, rgba(18, 8, 31, 0.4), transparent 30%),
    var(--navy-2);
  overflow: hidden;
}

.signature-value::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.signature-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
}

.aisle-badge {
  display: inline-flex;
  align-items: stretch;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(244, 240, 232, 0.35);
}

.aisle-num {
  padding: 0.45rem 0.7rem;
  background: var(--cyan);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.06em;
}

.aisle-txt {
  padding: 0.45rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  font-weight: 700;
}

.signature-heading {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 4.6rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.signature-heading span {
  display: block;
}

.signature-heading span:last-child {
  color: transparent;
  background: linear-gradient(90deg, var(--cyan), var(--solana-purple), var(--hot-magenta));
  -webkit-background-clip: text;
  background-clip: text;
}

.signature-copy {
  max-width: 34rem;
  display: grid;
  gap: 0.35rem;
}

.signature-copy p {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--cream);
}

.signature-emphasis {
  margin-top: 0.5rem !important;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--off-white) !important;
}

.signature-motifs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
  align-items: end;
}

.motif-barcode {
  width: 120px;
  height: 48px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(244, 240, 232, 0.85) 0 2px,
      transparent 2px 5px,
      rgba(244, 240, 232, 0.85) 5px 7px,
      transparent 7px 9px,
      rgba(244, 240, 232, 0.85) 9px 13px,
      transparent 13px 15px
    );
  opacity: 0.55;
}

.motif-shelf {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.motif-shelf span {
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(255, 106, 26, 0.45);
  background: rgba(255, 106, 26, 0.08);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.motif-receipt-strip {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem;
  background: rgba(243, 239, 228, 0.08);
  border-left: 3px solid var(--paper);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------- Marquee aisle ---------- */

.aisle-marquee {
  border-block: 1px solid rgba(153, 69, 255, 0.35);
  background: linear-gradient(90deg, rgba(224, 30, 138, 0.18), rgba(20, 241, 217, 0.1), rgba(153, 69, 255, 0.18));
  overflow: hidden;
  padding: 0.9rem 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-right: 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  white-space: nowrap;
  text-transform: uppercase;
}

.marquee-dot {
  color: var(--cyan);
  font-size: 0.7em;
}

/* ---------- Banner moment ---------- */

.banner-moment {
  padding: clamp(2rem, 5vw, 4rem) clamp(0.85rem, 2.5vw, 1.5rem);
}

.banner-frame {
  max-width: min(1240px, 100%);
  margin: 0 auto;
  position: relative;
  border: 1px solid rgba(244, 240, 232, 0.2);
  box-shadow:
    0 0 0 1px rgba(153, 69, 255, 0.15),
    0 24px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  background: var(--purple-black);
}

.banner-img {
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  object-position: center;
}

.banner-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.7rem 1rem;
  background: rgba(7, 7, 20, 0.92);
  border-top: 1px solid rgba(255, 106, 26, 0.35);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  font-weight: 700;
}

/* ---------- Brand story ---------- */

.brand-story {
  padding: clamp(2.5rem, 6vw, 5rem) clamp(0.85rem, 2.5vw, 1.5rem);
  background:
    radial-gradient(ellipse 60% 50% at 10% 20%, rgba(153, 69, 255, 0.15), transparent 55%),
    var(--navy);
}

.story-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

.story-fragments {
  display: grid;
  gap: 0.85rem;
  max-width: 40rem;
}

.story-line {
  margin: 0;
  font-size: clamp(1.15rem, 2.8vw, 1.75rem);
  color: var(--muted);
  line-height: 1.25;
}

.story-lead,
.story-end {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--off-white);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
}

.story-strong {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--cyan);
}

.story-stamp {
  width: 110px;
  height: 110px;
  display: grid;
  place-content: center;
  text-align: center;
  border: 3px solid var(--hot-magenta);
  color: var(--hot-magenta);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  line-height: 1.15;
  transform: rotate(12deg);
  opacity: 0.85;
}

/* ---------- Gallery ---------- */

.gallery {
  padding: clamp(2rem, 5vw, 4rem) clamp(0.85rem, 2.5vw, 1.5rem) clamp(3rem, 6vw, 5rem);
}

.gallery-head {
  max-width: var(--max);
  margin: 0 auto 1.5rem;
}

.gallery-head h2 {
  margin: 0.85rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: 0.04em;
}

.gallery-wall {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.gallery-item {
  margin: 0;
  position: relative;
  background: rgba(18, 8, 31, 0.65);
  border: 1px solid rgba(244, 240, 232, 0.14);
  overflow: hidden;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  background: linear-gradient(transparent, rgba(7, 7, 20, 0.92));
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  transition: transform 0.25s var(--ease-out);
}

.gal-sku {
  color: var(--cyan);
}

.gal-name {
  color: var(--cream);
  font-weight: 700;
}

.gallery-poster {
  grid-column: span 5;
  aspect-ratio: 1;
}

.gallery-wide {
  grid-column: span 7;
  aspect-ratio: 3 / 2;
}

.gallery-wide img {
  object-position: center 35%;
}

.gallery-coin {
  grid-column: 3 / span 8;
  aspect-ratio: 1.4;
  max-height: 420px;
}

.gallery-item:hover {
  transform: rotate(1.25deg) scale(1.015);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.gallery-item:hover figcaption {
  transform: translateY(-2px);
}

.gallery-coin:hover {
  transform: rotate(-1deg) scale(1.015);
}

/* ---------- Receipt ---------- */

.receipt-section {
  padding: clamp(2rem, 5vw, 4rem) clamp(0.85rem, 2.5vw, 1.5rem);
  display: flex;
  justify-content: center;
  background:
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(255, 106, 26, 0.12), transparent 60%),
    var(--navy-2);
}

.receipt {
  width: min(100%, 420px);
  padding: 1.75rem 1.4rem 1.5rem;
  background:
    linear-gradient(180deg, #f7f3ea 0%, var(--paper) 100%);
  color: var(--ink);
  font-family: var(--font-mono);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 20px 50px rgba(0, 0, 0, 0.35);
  position: relative;
  filter: contrast(1.02);
}

.receipt::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.08;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.receipt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 12px;
  background:
    linear-gradient(135deg, var(--paper) 33.33%, transparent 33.33%) 0 0 / 12px 12px,
    linear-gradient(225deg, var(--paper) 33.33%, transparent 33.33%) 0 0 / 12px 12px;
}

.receipt-store {
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.receipt-sub {
  margin: 0.35rem 0 0;
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  opacity: 0.7;
}

.receipt-rule {
  margin: 0.9rem 0;
  text-align: center;
  letter-spacing: 0.08em;
  opacity: 0.55;
  user-select: none;
}

.receipt-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.receipt-lines li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.receipt-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: 0.4rem 0 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.receipt-footer {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  opacity: 0.65;
}

/* ---------- Final CTA ---------- */

.final-cta {
  padding: clamp(2.5rem, 6vw, 5rem) clamp(0.85rem, 2.5vw, 1.5rem);
}

.cta-sign {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1.1rem, 3vw, 2.5rem);
  text-align: center;
  background:
    linear-gradient(145deg, rgba(18, 8, 31, 0.95), rgba(7, 7, 20, 0.98)),
    linear-gradient(90deg, var(--magenta), var(--cyan));
  border: 2px solid rgba(244, 240, 232, 0.35);
  box-shadow:
    inset 0 0 0 6px rgba(7, 7, 20, 0.85),
    0 0 0 1px rgba(20, 241, 217, 0.2),
    0 24px 60px rgba(224, 30, 138, 0.18);
}

.cta-eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--cyan);
  font-weight: 700;
}

.cta-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 8vw, 5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.cta-sub {
  margin: 1rem auto 1.75rem;
  max-width: 22rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.35;
  color: var(--cream);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid rgba(153, 69, 255, 0.25);
  padding: 1.5rem clamp(0.85rem, 2.5vw, 1.5rem) 2rem;
  background: #05040d;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 0.4rem;
  text-align: center;
}

.footer-brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.footer-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-x {
  margin-top: 0.35rem;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  justify-self: center;
}

.footer-x:hover {
  text-decoration: underline;
}

/* ---------- Keyframes ---------- */

@keyframes stagger-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes character-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes gradient-shift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-2%, 2%, 0) scale(1.04); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes snap-down {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sticker-in {
  to {
    opacity: 1;
    transform: translateX(0) rotate(-6deg);
  }
}

@keyframes stamp-in {
  to {
    opacity: 1;
    transform: scale(1) rotate(12deg);
  }
}

@keyframes label-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes type-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-in {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes banner-in {
  to {
    opacity: 1;
    transform: perspective(900px) rotateX(0) translateY(0);
  }
}

@keyframes story-in {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes receipt-in {
  to {
    opacity: 1;
    transform: translateY(0) rotate(0.4deg);
  }
}

@keyframes sign-in {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .gallery-poster {
    grid-column: span 6;
  }

  .gallery-wide {
    grid-column: span 6;
  }

  .gallery-coin {
    grid-column: span 12;
    max-height: none;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .hero-visual {
    order: -1;
  }

  .hero-visual-frame {
    width: min(100%, 360px);
  }

  .hero-deco-type {
    display: none;
  }

  .story-inner {
    grid-template-columns: 1fr;
  }

  .story-stamp {
    justify-self: start;
  }

  .contract-inner {
    grid-template-columns: 1fr;
  }

  .contract-barcode {
    width: 100%;
    max-width: 140px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 60px;
  }

  .header-inner {
    padding-block: 0.5rem;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .brand-name {
    font-size: 0.95rem;
    letter-spacing: 0.06em;
  }

  .header-nav {
    gap: 0.3rem;
  }

  .btn {
    min-height: 42px;
    padding: 0.35rem 0.55rem;
  }

  .btn-label {
    font-size: 0.8rem;
  }

  .btn-tag {
    font-size: 0.48rem;
  }

  .btn-x {
    min-width: 44px;
  }

  .hero-character {
    animation: none;
  }

  .hero-gradient,
  .hero-geo,
  .hero-sunset-orb {
    animation: none;
  }

  .gallery-poster,
  .gallery-wide,
  .gallery-coin {
    grid-column: span 12;
    aspect-ratio: auto;
  }

  .gallery-poster,
  .gallery-coin {
    aspect-ratio: 1;
  }

  .gallery-wide {
    aspect-ratio: 3 / 1;
  }

  .gallery-item:hover {
    transform: none;
  }

  .signature-motifs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .brand-name {
    max-width: 7.5ch;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-nav .btn-tag {
    display: none;
  }

  .header-nav .btn {
    padding: 0.4rem 0.5rem;
  }

  .hero-line {
    font-size: clamp(2.2rem, 14vw, 3rem);
  }

  .hero-actions .btn-lg {
    flex: 1 1 auto;
    min-width: calc(50% - 0.3rem);
  }

  .hero-actions .btn-x {
    min-width: 52px;
    flex: 0 0 auto;
  }

  .cta-actions .btn-xl {
    width: 100%;
  }

  .cta-actions .btn-lg {
    flex: 1 1 calc(50% - 0.35rem);
  }

  .banner-caption {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }

  .footer-brand,
  .footer-note,
  .footer-x {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 360px) {
  .brand-name {
    display: none;
  }

  .btn-label {
    font-size: 0.75rem;
  }

  .hero-shelf-mark {
    display: none;
  }

  .btn-copy {
    width: 100%;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js-ready [data-stagger],
  .js-ready .reveal-snap,
  .js-ready .reveal-sticker,
  .js-ready .reveal-stamp,
  .js-ready .reveal-label,
  .js-ready .reveal-type,
  .js-ready .reveal-slide,
  .js-ready .reveal-banner,
  .js-ready .reveal-story,
  .js-ready .reveal-receipt,
  .js-ready .reveal-sign {
    opacity: 1 !important;
    transform: none !important;
  }

  .price-sticker {
    transform: rotate(-6deg) !important;
  }

  .story-stamp {
    transform: rotate(12deg) !important;
  }

  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }

  .marquee-group:last-child {
    display: none;
  }

  .hero-character {
    animation: none;
  }
}
