/* ================================================================
   DRAGONWALK — style.css
   Design system: v4 warm palette + CLAUDE.md structure
   Typography: Cormorant Garamond (display) + Outfit (body)
   ================================================================ */

/* --- RESET --- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

/* --- DESIGN TOKENS --- */
:root {
  --bg-deep: #0D0A07;
  --bg-dark: #1A1410;
  --bg-card: #1E1914;
  --bg-warm: #241E17;

  --gold: #C48232;
  --gold-light: #D4A355;
  --gold-pale: #E8C98A;
  --amber: #B8722D;
  --ember: #c45a2d;

  --cream: #F5E6D0;
  --cream-soft: #EDD5B8;
  --text: #F5E6D0;
  --text-dim: #A89680;
  --text-muted: #6B5D4F;

  --border: rgba(196,130,50,.08);
  --border-hover: rgba(196,130,50,.25);
  --glow: rgba(196,130,50,.04);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', sans-serif;

  --section-pad: clamp(80px, 10vw, 140px);
  --container-max: 1200px;
  --container-narrow: 800px;
}

/* --- BASE --- */
html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle grain texture */
body::after {
  content: '';
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  background: transparent url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E") repeat;
  pointer-events: none;
  z-index: 9999;
  animation: grain 8s steps(10) infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0,0); }
  10% { transform: translate(-5%,-10%); }
  30% { transform: translate(3%,-15%); }
  50% { transform: translate(12%,9%); }
  70% { transform: translate(9%,4%); }
  90% { transform: translate(-1%,7%); }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* --- UTILITY --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 300;
  line-height: 1.15;
  color: var(--cream);
  margin-bottom: 20px;
}

.divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 24px 0;
  opacity: .6;
}
.divider-center { margin-left: auto; margin-right: auto; }

/* --- SCROLL ANIMATIONS --- */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s cubic-bezier(.23,1,.32,1), transform .8s cubic-bezier(.23,1,.32,1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.stagger-1 { transition-delay: .1s; }
.stagger-2 { transition-delay: .2s; }
.stagger-3 { transition-delay: .3s; }

/* ================================================================
   NAVIGATION
   ================================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all .4s;
}
.nav.scrolled {
  background: rgba(13,10,7,.95);
  backdrop-filter: blur(20px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo-img {
  height: 60px;
  width: auto;
  transition: opacity .3s;
}
.nav-logo:hover .nav-logo-img {
  opacity: .8;
}
.footer-logo-img {
  height: 80px;
  width: auto;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color .3s;
  cursor: pointer;
}
.nav-links a:hover { color: var(--cream); }
.nav-cta {
  color: var(--gold) !important;
  border: 1px solid rgba(196,130,50,.3);
  padding: 8px 20px !important;
  transition: all .3s !important;
}
.nav-cta:hover {
  background: rgba(196,130,50,.15) !important;
  border-color: var(--gold) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1003;
}
.hamburger span {
  width: 24px;
  height: 1.5px;
  background: var(--cream);
  transition: all .3s;
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero.jpg') center/cover no-repeat;
  animation: heroZoom 20s ease forwards;
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,10,7,.55) 0%,
    rgba(13,10,7,.25) 40%,
    rgba(13,10,7,.75) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 0 24px;
}
.hero-content .section-label {
  opacity: 0;
  animation: fadeUp .8s ease .3s forwards;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--cream);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp .8s ease .5s forwards;
}
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 300;
  font-style: italic;
  color: var(--text-dim);
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp .8s ease .7s forwards;
}
.hero-cta {
  display: inline-block;
  padding: 18px 52px;
  background: var(--gold);
  color: var(--bg-deep);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all .4s;
  opacity: 0;
  animation: fadeUp .8s ease .9s forwards;
}
.hero-cta:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(196,130,50,.3);
}
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeUp .8s ease 1.2s forwards;
}
.hero-scroll span {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: .3; }
  50% { opacity: .8; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   ORIGIN
   ================================================================ */
.origin {
  background: var(--bg-dark);
}
.origin-chapter {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.origin-chapter p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 20px;
}
.myth-quote {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 24px);
  font-style: italic;
  color: var(--cream-soft);
  line-height: 1.6;
  margin: 36px 0;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.myth-quote::before {
  content: '\201C';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 80px;
  color: var(--gold);
  opacity: .15;
  line-height: 1;
}
.origin-reveal {
  color: var(--gold);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  margin-top: 32px;
}

/* ================================================================
   WHAT TO SPICE — 2x2 image grid
   ================================================================ */
.what-to-spice {
  background: var(--bg-deep);
}
.spice-header {
  text-align: center;
  margin-bottom: 48px;
}
.spice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.spice-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}
.spice-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.23,1,.32,1), filter .6s;
  filter: saturate(.85) brightness(.9);
}
.spice-card:hover img {
  transform: scale(1.05);
  filter: saturate(1) brightness(1);
}
/* Gradient overlay */
.spice-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13,10,7,.85) 0%,
    rgba(13,10,7,.2) 40%,
    transparent 100%
  );
  transition: opacity .4s;
}
.spice-card:hover::after {
  background: linear-gradient(
    to top,
    rgba(13,10,7,.7) 0%,
    rgba(13,10,7,.1) 40%,
    transparent 100%
  );
}
.spice-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 24px;
}
.spice-card-label h4 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  margin-bottom: 0;
}
.spice-card-label span {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
}
/* Placeholder for when images aren't loaded yet */
.spice-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-warm));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  opacity: .2;
}

/* ================================================================
   PRODUCT + BUY (split layout)
   ================================================================ */
.product-section {
  background: var(--bg-dark);
}
.product-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}

/* Shared column layout */
.product-col {
  display: flex;
  flex-direction: column;
  text-align: center;
}
.product-col:first-child {
  padding-right: 24px;
  border-right: 1px solid var(--border);
}
.product-col:last-child {
  padding-left: 24px;
}
.product-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  margin-bottom: 20px;
}
.product-image-wrap {
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 24px;
}
.product-image-wrap img {
  width: 100%;
  display: block;
}
.spoon-video-wrap {
  flex: 1;
  min-height: 280px;
}
.spoon-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.spoon-title {
  margin-bottom: 24px;
}
.spoon-title h3,
.product-info h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  margin-bottom: 8px;
}
.product-info {
  margin-bottom: 20px;
}
.product-desc {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.7;
  max-width: 400px;
  margin: 0 auto 12px;
}
.product-details {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.product-details span {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.product-details span:not(:last-child)::after {
  content: '\00B7';
  margin-left: 16px;
  color: var(--gold);
  opacity: .4;
}
.product-price {
  font-family: var(--font-display);
  font-size: 42px;
  color: var(--gold);
  margin-bottom: 4px;
}
.product-price .currency {
  font-size: 24px;
  vertical-align: super;
}
.product-shipping-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
/* Shared CTA button */
.btn-product {
  display: inline-block;
  padding: 18px 48px;
  background: transparent;
  border: 1px solid rgba(196,130,50,.4);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .4s;
  margin-top: auto;
  align-self: center;
}
.btn-product:hover {
  background: rgba(196,130,50,.15);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(196,130,50,.2);
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-brand p {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.8;
  max-width: 300px;
  margin-top: 12px;
}
.footer h5 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer a {
  display: block;
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 12px;
  transition: color .3s;
}
.footer a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(196,130,50,.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}
.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text-muted);
}

/* ================================================================
   TREASURY — HERO
   ================================================================ */
.treasury-hero {
  padding: 160px 0 60px;
  text-align: center;
  background: var(--bg-deep);
  position: relative;
}
.treasury-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: .15;
}
.treasury-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--cream);
  margin-bottom: 16px;
}
.treasury-tagline {
  font-family: var(--font-display);
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 300;
  font-style: italic;
  color: var(--text-dim);
  max-width: 500px;
  margin: 0 auto;
}

/* ================================================================
   TREASURY — FILTER BAR
   ================================================================ */
.treasury-filters {
  background: var(--bg-deep);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.treasury-filters-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.treasury-filters-inner::-webkit-scrollbar { display: none; }

.filter-btn {
  flex-shrink: 0;
  padding: 10px 20px;
  background: transparent;
  border: 1px solid rgba(196,130,50,.12);
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .3s;
  white-space: nowrap;
}
.filter-btn:hover {
  color: var(--cream);
  border-color: rgba(196,130,50,.3);
}
.filter-btn.active {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(196,130,50,.08);
}

/* ================================================================
   TREASURY — PRODUCT GRID
   ================================================================ */
.treasury-grid-section {
  background: var(--bg-deep);
  padding: 40px 0 var(--section-pad);
}
.treasury-count {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.treasury-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.treasury-empty {
  text-align: center;
  padding: 80px 0;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
}

/* ================================================================
   TREASURY — PRODUCT CARDS
   ================================================================ */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all .4s cubic-bezier(.23,1,.32,1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
}

/* Card Image */
.product-card-image {
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, var(--bg-warm), var(--bg-dark));
  overflow: hidden;
  position: relative;
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.23,1,.32,1);
}
.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

/* Placeholder icon when no image */
.card-placeholder-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--text-muted);
  opacity: .3;
}

/* Partner logo on card */
.card-image-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-partner-logo {
  position: relative;
  z-index: 1;
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .45;
  transition: opacity .4s;
}
.product-card:hover .card-partner-logo {
  opacity: .7;
}

/* Partner logo in modal */
.modal-image-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-image-logo img {
  width: 160px !important;
  height: 160px !important;
  object-fit: contain !important;
  filter: brightness(0) invert(1);
  opacity: .4;
}

/* Status Badge */
.card-status-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 2;
}
.badge-available {
  background: var(--gold);
  color: var(--bg-deep);
}
.badge-on-request {
  background: rgba(196,130,50,.15);
  color: var(--gold);
  border: 1px solid rgba(196,130,50,.3);
}
.badge-members-only {
  background: rgba(196,130,50,.08);
  color: var(--gold-pale);
  border: 1px solid rgba(196,130,50,.2);
}
.badge-qualify {
  background: rgba(107,124,94,.15);
  color: #8fa87a;
  border: 1px solid rgba(107,124,94,.3);
}
.badge-sold-out {
  background: rgba(107,93,79,.2);
  color: var(--text-muted);
  border: 1px solid rgba(107,93,79,.3);
}

/* Card Body */
.product-card-body {
  padding: 16px 16px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-category {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: .7;
  margin-bottom: 6px;
}
.card-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--cream);
  line-height: 1.3;
  margin-bottom: 8px;
}
.card-partner {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
.card-price {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--gold);
}
.card-price .card-currency {
  font-size: 14px;
  vertical-align: super;
}
.card-cta-text {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color .3s;
}
.product-card:hover .card-cta-text {
  color: var(--gold);
}

/* Sold out card state */
.product-card.card-sold-out {
  opacity: .55;
}
.product-card.card-sold-out:hover {
  transform: none;
  box-shadow: none;
}

/* ================================================================
   TREASURY — PRODUCT MODAL
   ================================================================ */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.product-modal.open {
  opacity: 1;
  visibility: visible;
}
.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13,10,7,.92);
  backdrop-filter: blur(12px);
}
.product-modal-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 900px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  transform: translateY(20px);
  transition: transform .4s cubic-bezier(.23,1,.32,1);
}
.product-modal.open .product-modal-content {
  transform: translateY(0);
}

.product-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13,10,7,.6);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 24px;
  cursor: pointer;
  transition: all .3s;
}
.product-modal-close:hover {
  color: var(--cream);
  border-color: var(--border-hover);
}

/* Modal Image */
.product-modal-image {
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, var(--bg-warm), var(--bg-dark));
  overflow: hidden;
  position: relative;
}
.product-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-status-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Modal Info */
.product-modal-info {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
}
.modal-category {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.modal-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: 16px;
}
.modal-story {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.modal-hook {
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.modal-hook-label {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: block;
}
.modal-hook p {
  color: var(--cream-soft);
  font-size: 14px;
}
.modal-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.modal-price {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--gold);
}
.modal-partner {
  font-size: 12px;
  color: var(--text-muted);
}
.modal-partner span {
  color: var(--text-dim);
  font-weight: 400;
}
.modal-cta {
  margin-top: auto;
  width: 100%;
  text-align: center;
}

/* Active nav link */
.nav-links a.active {
  color: var(--gold) !important;
}

/* --- Blurred product cards (image only) --- */
.card-blurred {
  cursor: default;
}
.card-blurred:hover {
  transform: none;
  border-color: rgba(196,130,50,0.08);
  box-shadow: none;
}

/* Blur the image area only */
.image-blurred img,
.image-blurred .card-placeholder-icon {
  filter: blur(14px);
  -webkit-filter: blur(14px);
  transform: scale(1.05);
}
.image-blurred .card-status-badge {
  display: none;
}

/* "Members Only" label centered on blurred image */
.card-blur-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(13,10,7,0.7);
  border: 1px solid rgba(196,130,50,0.3);
  padding: 8px 18px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  white-space: nowrap;
}

/* ================================================================
   LEGENDS PAGE — Gallery of Fire
   ================================================================ */

/* --- Legends Hero --- */
.legends-hero {
  padding: 160px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, rgba(13,10,7,1) 0%, rgba(30,20,12,1) 100%);
  border-bottom: 1px solid rgba(196,130,50,0.15);
}
.legends-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 10vw, 100px);
  font-weight: 300;
  color: var(--cream);
  letter-spacing: 0.06em;
  margin: 8px 0 16px;
}
.legends-tagline {
  font-family: var(--font-display);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 300;
  font-style: italic;
  color: rgba(245,230,208,0.6);
  max-width: 560px;
  margin: 0 auto;
}

/* --- Legends Filter Bar --- */
.legends-filters {
  position: sticky;
  top: 60px;
  z-index: 90;
  background: rgba(13,10,7,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196,130,50,0.1);
  padding: 16px 0;
  overflow-x: auto;
}
.legends-filters-inner {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  min-width: max-content;
}

/* --- Legends Grid --- */
.legends-grid-section {
  padding: 40px 0 100px;
  background: var(--bg-deep);
}
.legends-count {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(245,230,208,0.35);
  margin-bottom: 32px;
  text-align: center;
}
.legends-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.legends-empty {
  text-align: center;
  padding: 80px 20px;
  color: rgba(245,230,208,0.4);
  font-family: var(--font-display);
  font-style: italic;
}

/* --- Legend Card --- */
.legend-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(245,230,208,0.03);
  border: 1px solid rgba(196,130,50,0.08);
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.legend-card:hover {
  transform: translateY(-6px);
  border-color: rgba(196,130,50,0.25);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* Portrait image area — 3:4 aspect ratio */
.legend-card-image {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: rgba(13,10,7,0.6);
}
.legend-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.legend-card:hover .legend-card-image img {
  transform: scale(1.05);
}

/* Placeholder icon when no portrait exists */
.legend-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  background: linear-gradient(135deg, rgba(196,130,50,0.08) 0%, rgba(13,10,7,0.3) 100%);
}

/* Card overlay with name/title at bottom */
.legend-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 20px 20px;
  background: linear-gradient(0deg, rgba(13,10,7,0.92) 0%, transparent 100%);
}
.legend-card-era {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.legend-card-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--cream);
  line-height: 1.2;
}
.legend-card-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 300;
  font-style: italic;
  color: rgba(245,230,208,0.55);
  margin-top: 2px;
}

/* Print status badge on card */
.legend-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 4px;
  backdrop-filter: blur(8px);
}
.badge-print-available {
  background: rgba(196,130,50,0.2);
  color: var(--gold);
  border: 1px solid rgba(196,130,50,0.3);
}
.badge-print-sold-out {
  background: rgba(80,60,40,0.3);
  color: rgba(245,230,208,0.4);
  border: 1px solid rgba(245,230,208,0.1);
}
.badge-print-coming-soon {
  background: rgba(245,230,208,0.05);
  color: rgba(245,230,208,0.45);
  border: 1px solid rgba(245,230,208,0.08);
}
.badge-print-limited {
  background: rgba(180,120,40,0.15);
  color: #D4A544;
  border: 1px solid rgba(212,165,68,0.3);
}

/* --- Legend Modal --- */
.legend-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.legend-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.legend-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
}
.legend-modal-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  max-width: 900px;
  width: 90%;
  max-height: 88vh;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(196,130,50,0.12);
}
.legend-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  background: rgba(0,0,0,0.5);
  border: none;
  color: var(--cream);
  font-size: 28px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.legend-modal-close:hover {
  background: rgba(196,130,50,0.3);
}

/* Modal portrait image */
.legend-modal-image {
  position: relative;
  background: rgba(13,10,7,0.8);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.legend-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.legend-modal-placeholder-icon {
  font-size: 80px;
  opacity: 0.5;
}

/* Modal info panel */
.legend-modal-info {
  padding: 40px 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.legend-modal-era {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.legend-modal-name {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  color: var(--cream);
  line-height: 1.15;
  margin: 0 0 4px;
}
.legend-modal-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 300;
  font-style: italic;
  color: rgba(245,230,208,0.5);
  margin-bottom: 20px;
}
.legend-modal-story {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: rgba(245,230,208,0.7);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Controversy section */
.legend-modal-controversy {
  background: rgba(196,130,50,0.06);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin-bottom: 24px;
}
.controversy-label {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}
.legend-modal-controversy p {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  color: rgba(245,230,208,0.65);
  line-height: 1.7;
  margin: 0;
}

/* Print purchase area */
.legend-modal-print {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.legend-modal-price {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--cream);
}
.legend-modal-print-badge {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 4px;
}
.legend-modal-cta {
  margin-top: auto;
  width: 100%;
  text-align: center;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 968px) {
  .product-split { grid-template-columns: 1fr; gap: 48px; }
  .product-col:first-child { padding-right: 0; border-right: none; }
  .product-col:last-child { padding-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }

  /* Treasury */
  .treasury-grid { grid-template-columns: repeat(3, 1fr); }
  .product-modal-content { grid-template-columns: 1fr; max-height: 90vh; }
  .product-modal-image { aspect-ratio: 16/9; }

  /* Legends */
  .legends-grid { grid-template-columns: repeat(2, 1fr); }
  .legend-modal-content { grid-template-columns: 1fr; max-height: 90vh; }
  .legend-modal-image { min-height: 280px; max-height: 350px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(13,10,7,.98);
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 1002;
  }
  .nav-links.mobile-open a {
    font-size: 14px;
    letter-spacing: 4px;
  }

  .spice-grid { grid-template-columns: 1fr; gap: 12px; }
  .section { padding: 80px 0; }

  /* Treasury */
  .treasury-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .treasury-hero { padding: 120px 0 40px; }
  .product-modal-info { padding: 24px 20px; }

  /* Legends */
  .legends-hero { padding: 120px 0 40px; }
  .legends-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .legend-modal-info { padding: 24px 20px; }
  .legend-card-name { font-size: 18px; }
}

@media (max-width: 480px) {
  .product-details { flex-direction: column; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  /* Treasury */
  .treasury-grid { grid-template-columns: 1fr; }
  .filter-btn { padding: 8px 14px; font-size: 10px; }

  /* Legends */
  .legends-grid { grid-template-columns: 1fr; }
  .legend-card-overlay { padding: 40px 16px 16px; }
}
