/* ===========================================================
   Gods & Goddesses Peptides — brand stylesheet
   Black + gold + marble, Marcellus headings, Cormorant body
   =========================================================== */

:root {
  --bg: #0a0908;
  --bg-elev: #141210;
  --gold: #c9a961;
  --gold-bright: #d4af37;
  --marble: #e0d0c0;
  --marble-dim: #b0a090;
  --line: #2a2620;
  --max: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--marble);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.18rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .serif-display {
  font-family: 'Marcellus', 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--marble);
}

a { color: var(--gold-bright); text-decoration: none; }
a:hover { color: var(--gold); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.gold { color: var(--gold-bright); }
.muted { color: var(--marble-dim); }
.center { text-align: center; }

/* ---------- Header / Nav ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,9,8,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: var(--max); margin: 0 auto;
}
.nav .brand { display: flex; align-items: center; gap: 12px; }
.nav .brand img { height: 52px; width: auto; }
.nav .brand span {
  font-family: 'Marcellus', serif; font-size: 1.05rem;
  letter-spacing: 0.12em; color: var(--gold); text-transform: uppercase;
}
.nav ul { display: flex; gap: 28px; list-style: none; }
.nav ul a {
  color: var(--marble); font-family: 'Marcellus', serif;
  font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.nav ul a:hover { color: var(--gold-bright); }
.nav-toggle { display: none; background: none; border: none; color: var(--gold); font-size: 1.6rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; text-align: center;
  padding: 90px 24px 80px;
  background:
    radial-gradient(ellipse at center, rgba(20,18,16,0.4) 0%, rgba(10,9,8,0.95) 75%),
    url('../assets/hero-bg.jpg') center/cover no-repeat, var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero img.medallion { width: 230px; height: auto; margin: 0 auto 28px; display: block; }
.hero .sub {
  font-size: 1.05rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; margin-bottom: 18px;
}
.hero .tag {
  font-family: 'Marcellus', serif; font-size: clamp(1.2rem,2.4vw,1.7rem);
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--marble);
  margin-bottom: 34px;
}
.hero p.lede { max-width: 640px; margin: 0 auto 34px; color: var(--marble-dim); font-size: 1.25rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; cursor: pointer;
  font-family: 'Marcellus', serif; font-size: 0.95rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 15px 38px; border: 1px solid var(--gold);
  background: var(--gold); color: #0a0908;
  transition: all 0.2s ease;
}
.btn:hover { background: var(--gold-bright); color: #0a0908; }
.btn.ghost { background: transparent; color: var(--gold); }
.btn.ghost:hover { background: var(--gold); color: #0a0908; }

/* ---------- Sections ---------- */
section { padding: 76px 0; border-bottom: 1px solid var(--line); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .eyebrow {
  font-size: 0.95rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.section-head p { color: var(--marble-dim); max-width: 620px; margin: 14px auto 0; }

/* ---------- Inventory grid ---------- */
.cat-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.cat-filter button {
  font-family: 'Marcellus', serif; font-size: 0.82rem; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 9px 18px; cursor: pointer;
  background: transparent; color: var(--marble-dim);
  border: 1px solid var(--line); transition: all 0.2s;
}
.cat-filter button.active, .cat-filter button:hover {
  color: #0a0908; background: var(--gold); border-color: var(--gold);
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 22px; }
.card {
  background: var(--bg-elev); border: 1px solid var(--line);
  padding: 26px 24px; display: flex; flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--gold); transform: translateY(-3px); }
.card .deity { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.card h3 { font-size: 1.5rem; margin-bottom: 2px; }
.card .mg { color: var(--gold-bright); font-size: 1.1rem; margin-bottom: 14px; }
.card .blurb { color: var(--marble-dim); font-size: 1.05rem; flex-grow: 1; margin-bottom: 18px; }
.card .row { display: flex; align-items: center; justify-content: space-between; }
.card .price { font-family: 'Marcellus', serif; font-size: 1.4rem; color: var(--marble); }
.card .add {
  font-family: 'Marcellus', serif; font-size: 0.8rem; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 8px 16px; cursor: pointer;
  background: transparent; border: 1px solid var(--gold); color: var(--gold);
  transition: all 0.2s;
}
.card .add:hover { background: var(--gold); color: #0a0908; }
.card .stock { font-size: 0.85rem; color: var(--marble-dim); margin-top: 8px; }
.card .stock.low { color: #d4895a; }

/* Sold-out tiles */
.card.sold-out { opacity: 0.62; }
.card.sold-out:hover { border-color: var(--line); transform: none; }
.card.sold-out h3, .card.sold-out .mg { color: var(--marble-dim); }
.soldout-row { margin-top: auto; padding-top: 6px; }
.soldout-label {
  display: inline-block; font-family: 'Marcellus', serif;
  font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--marble-dim); border: 1px solid var(--line); padding: 8px 18px;
}

/* ---------- Guide (Pantheon accordion) ---------- */
.guide-cat {
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}
.guide-cat.has-deity {
  background: linear-gradient(90deg,
    rgba(15,13,10,0.0) 0%,
    rgba(15,13,10,0.0) 50%,
    rgba(15,13,10,0.55) 100%);
}
.guide-cat[open] { padding-bottom: 16px; }
.guide-cat summary {
  list-style: none; cursor: pointer;
  padding: 22px 50px 22px 8px;
  user-select: none;
  position: relative;
  min-height: 200px;
}
.guide-cat summary::-webkit-details-marker { display: none; }
.guide-cat summary:hover .guide-cat-title { color: var(--gold-bright); }

/* Deity portrait anchored to the right, fits fully inside the card */
.guide-cat-portrait {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 42%;
  max-width: 220px;
  background-size: contain;
  background-position: right center;
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0.92;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.5));
  -webkit-mask-image: linear-gradient(to left, #000 60%, transparent 100%);
          mask-image: linear-gradient(to left, #000 60%, transparent 100%);
  transition: opacity 0.3s ease;
}
.guide-cat.has-deity summary:hover .guide-cat-portrait { opacity: 1; }

.guide-cat-heading {
  display: flex; flex-direction: column; gap: 8px;
  position: relative;
  z-index: 2;
  padding-right: 44%; /* room for portrait */
  min-height: 156px;
  justify-content: center;
}
.guide-cat-deity {
  font-family: 'Marcellus', serif;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  color: var(--gold-bright);
  text-transform: uppercase;
}
.guide-cat-titlerow {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.guide-cat-title {
  font-family: 'Marcellus', serif;
  font-size: 1.55rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.guide-cat-count {
  font-family: 'Marcellus', serif; font-size: 0.78rem;
  letter-spacing: 0.14em; color: var(--marble-dim);
  border: 1px solid var(--line); padding: 4px 10px;
  background: rgba(10,9,8,0.6);
}
.guide-chevron {
  position: absolute;
  right: 18px;
  bottom: 22px;
  width: 10px; height: 10px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  z-index: 3;
}
.guide-cat[open] .guide-chevron { transform: rotate(-135deg); }
.guide-cat-body { padding: 4px 4px 20px; position: relative; z-index: 2; }
.guide-cat-body .deity-line {
  color: var(--marble); font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 18px;
  padding: 14px 18px;
  background: rgba(10,9,8,0.5);
  border-left: 2px solid var(--gold);
}
.guide-item { padding: 14px 0; border-top: 1px solid var(--line); }
.guide-item:first-child { border-top: none; padding-top: 8px; }
.guide-item strong { color: var(--marble); font-size: 1.12rem; }
.guide-item span { color: var(--marble-dim); }

@media (max-width: 600px) {
  .guide-cat summary { min-height: 170px; padding: 18px 36px 18px 6px; }
  .guide-cat-portrait { width: 42%; max-width: 150px; }
  .guide-cat-heading { padding-right: 44%; min-height: 134px; }
  .guide-cat-title { font-size: 1.25rem; }
  .guide-cat-deity { font-size: 0.7rem; letter-spacing: 0.26em; }
  .guide-cat-count { font-size: 0.7rem; padding: 3px 8px; }
  .guide-chevron { right: 14px; bottom: 18px; }
}

/* ---------- Order form ---------- */
.order-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: 'Marcellus', serif; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 14px; background: var(--bg-elev);
  border: 1px solid var(--line); color: var(--marble);
  font-family: 'Cormorant Garamond', serif; font-size: 1.1rem;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { min-height: 90px; resize: vertical; }

.cart-box { background: var(--bg-elev); border: 1px solid var(--gold); padding: 26px 24px; position: sticky; top: 96px; }
.cart-box h3 { font-size: 1.4rem; margin-bottom: 16px; }
.cart-line { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
.cart-line .x { color: var(--marble-dim); cursor: pointer; padding-left: 10px; }
.cart-line .x:hover { color: #d4895a; }
.cart-empty { color: var(--marble-dim); font-style: italic; padding: 16px 0; }
.cart-total { display: flex; justify-content: space-between; font-family: 'Marcellus', serif; font-size: 1.3rem; padding-top: 16px; color: var(--marble); }
.qty-input { width: 54px; text-align: center; }

/* ---------- Footer ---------- */
footer.site { background: #060504; padding: 54px 24px 34px; text-align: center; border-top: 1px solid var(--line); }
footer.site img { height: 90px; margin-bottom: 18px; }
footer.site .tag { font-family: 'Marcellus', serif; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
footer.site ul { list-style: none; display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
footer.site ul a { color: var(--marble-dim); font-family: 'Marcellus', serif; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
footer.site .ruo { max-width: 760px; margin: 0 auto; font-size: 0.92rem; color: var(--marble-dim); line-height: 1.5; }
footer.site .copyright { margin-top: 22px; font-size: 0.85rem; color: #5a5248; }

/* ---------- Decorative marble figures ---------- */
.bg-figure {
  position: absolute; top: 0; bottom: 0; width: 44%; max-width: 520px;
  background-repeat: no-repeat; background-size: contain;
  pointer-events: none; z-index: 0; opacity: 0.18;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 80%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 80%, transparent 100%);
  will-change: transform;
}
.bg-figure.atlas { right: -3%; background-position: right center; background-image: url('../assets/atlas-bg.png'); }
.bg-figure.goddess { left: -3%; background-position: left center; background-image: url('../assets/goddess-bg.png'); opacity: 0.15; }

.hero { overflow: hidden; }
.hero > *:not(.bg-figure) { position: relative; z-index: 1; }
#order { position: relative; overflow: hidden; }
#order .wrap { position: relative; z-index: 1; }

/* Mobile-only marble bands — empty on desktop */
.hero-trailer, .order-prelude { display: none; }

/* (mobile bg-figure handling is in the main mobile block below) */

/* ---------- RUO banner ---------- */
.ruo-banner { background: #060504; color: var(--marble-dim); text-align: center; font-size: 0.85rem; letter-spacing: 0.06em; padding: 8px 24px; border-bottom: 1px solid var(--line); }

/* ---------- First-visit intro overlay ---------- */
.intro-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: radial-gradient(ellipse at center, #14110d 0%, #0a0908 70%, #050403 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  opacity: 1;
  transition: opacity 0.8s cubic-bezier(.4, 0, .2, 1);
  cursor: pointer;
  overflow: hidden;
}
.intro-overlay.fading { opacity: 0; pointer-events: none; }
.intro-overlay.fading * { animation-play-state: paused; }

.intro-content { text-align: center; padding: 0 24px; max-width: 720px; }

.intro-medallion {
  width: clamp(220px, 38vw, 320px);
  height: auto; display: block; margin: 0 auto 32px;
  opacity: 0;
  filter: blur(10px);
  transform: scale(0.82);
  animation: gg-medallion-in 1.3s cubic-bezier(.2,.7,.2,1) forwards;
}

.intro-title {
  font-family: 'Marcellus', serif;
  color: var(--gold);
  font-size: clamp(1.6rem, 4.4vw, 2.6rem);
  letter-spacing: 0.14em;
  opacity: 0;
  transform: translateY(14px);
  animation: gg-fade-up 1.1s cubic-bezier(.2,.7,.2,1) 0.55s forwards;
}
.intro-sub {
  font-family: 'Marcellus', serif;
  color: var(--gold);
  font-size: clamp(0.95rem, 2.2vw, 1.4rem);
  letter-spacing: 0.24em;
  margin-top: 6px;
  opacity: 0;
  transform: translateY(14px);
  animation: gg-fade-up 1.1s cubic-bezier(.2,.7,.2,1) 0.75s forwards;
}
.intro-tagline {
  font-family: 'Marcellus', serif;
  color: var(--marble-dim);
  font-size: clamp(0.78rem, 1.6vw, 1rem);
  letter-spacing: 0.34em;
  margin-top: 40px;
  opacity: 0;
  transform: translateY(14px);
  animation: gg-fade-up 1.3s cubic-bezier(.2,.7,.2,1) 1.05s forwards;
}
.intro-skip {
  position: absolute; bottom: 38px; left: 0; right: 0;
  text-align: center;
  font-family: 'Marcellus', serif;
  font-size: 0.72rem; letter-spacing: 0.38em;
  color: var(--marble-dim);
  opacity: 0;
  animation: gg-skip-pulse 1.6s ease-in-out 1.8s infinite alternate;
}

@keyframes gg-medallion-in {
  0%   { opacity: 0; filter: blur(10px); transform: scale(0.82); }
  60%  { opacity: 1; filter: blur(0);    transform: scale(1.04); }
  100% { opacity: 1; filter: blur(0);    transform: scale(1); }
}
@keyframes gg-fade-up {
  0%   { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes gg-skip-pulse {
  0%   { opacity: 0.35; }
  100% { opacity: 0.85; }
}

@media (prefers-reduced-motion: reduce) {
  .intro-medallion, .intro-title, .intro-sub, .intro-tagline, .intro-skip {
    animation: none; opacity: 1; transform: none; filter: none;
  }
  .intro-overlay { transition: opacity 0.3s linear; }
}

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #0a0908; font-family: 'Marcellus', serif; letter-spacing: 0.08em; padding: 14px 26px; opacity: 0; pointer-events: none; transition: opacity 0.3s; z-index: 100; }
.toast.show { opacity: 1; }

/* ---------- Research Literature Assistant ---------- */
.ai-chat { position: fixed; bottom: 22px; right: 22px; z-index: 95; font-family: 'Cormorant Garamond', Georgia, serif; }

.ai-chat-bubble {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold); color: #0a0908;
  border: 1px solid var(--gold); padding: 13px 22px;
  font-family: 'Marcellus', serif; font-size: 0.88rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer; box-shadow: 0 10px 28px rgba(0,0,0,0.45);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.ai-chat-bubble:hover { background: var(--gold-bright); transform: translateY(-2px); }
.ai-bubble-icon { font-size: 1.15rem; line-height: 1; }

.ai-chat-panel {
  position: absolute; bottom: 64px; right: 0;
  width: min(400px, 94vw); height: min(580px, 78vh);
  background: linear-gradient(180deg, #14110e 0%, #0a0908 100%);
  border: 1px solid var(--gold);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.ai-chat-panel[hidden] { display: none; }

.ai-chat-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,0.25);
}
.ai-chat-title { font-family: 'Marcellus', serif; color: var(--gold); font-size: 1rem; letter-spacing: 0.1em; text-transform: uppercase; }
.ai-chat-sub { color: var(--marble-dim); font-size: 0.88rem; margin-top: 4px; line-height: 1.4; }
.ai-chat-close {
  background: none; border: none; color: var(--marble-dim);
  font-size: 1.7rem; cursor: pointer; padding: 0 4px; line-height: 1;
}
.ai-chat-close:hover { color: var(--gold); }

.ai-chat-messages {
  flex: 1; overflow-y: auto; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 14px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.ai-chat-messages::-webkit-scrollbar { width: 6px; }
.ai-chat-messages::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.ai-msg { font-size: 1rem; line-height: 1.55; color: var(--marble); }
.ai-msg p { margin: 0 0 8px; }
.ai-msg p:last-child { margin-bottom: 0; }
.ai-msg strong { color: var(--gold-bright); font-weight: 600; }
.ai-msg em { color: var(--marble-dim); font-style: italic; }
.ai-msg ul, .ai-msg ol { margin: 6px 0 8px 18px; padding: 0; }
.ai-msg li { margin-bottom: 4px; }

.ai-msg-user { align-self: flex-end; max-width: 90%; }
.ai-msg-user-label {
  display: block; font-family: 'Marcellus', serif; letter-spacing: 0.12em;
  font-size: 0.7rem; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; text-align: right;
}
.ai-msg-user .ai-msg-body { background: var(--bg-elev); border: 1px solid var(--line); padding: 10px 13px; }

.ai-msg-assistant { max-width: 100%; }

.ai-msg-thinking { color: var(--marble-dim); font-style: italic; }
.ai-msg-thinking::after { content: '…'; }

.ai-chat-form {
  display: flex; gap: 8px; padding: 12px 14px;
  border-top: 1px solid var(--line); background: rgba(0,0,0,0.2);
}
.ai-chat-form input {
  flex: 1; background: var(--bg); border: 1px solid var(--line); color: var(--marble);
  padding: 10px 12px; font-family: 'Cormorant Garamond', serif; font-size: 1rem;
}
.ai-chat-form input:focus { outline: none; border-color: var(--gold); }
.ai-chat-form button {
  background: var(--gold); color: #0a0908; border: none;
  padding: 10px 18px; font-family: 'Marcellus', serif; font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
}
.ai-chat-form button:hover { background: var(--gold-bright); }
.ai-chat-form button:disabled { opacity: 0.5; cursor: wait; }

.ai-chat-disclaimer {
  font-size: 0.72rem; color: var(--marble-dim); letter-spacing: 0.04em;
  text-align: center; padding: 8px 12px;
  border-top: 1px solid var(--line); background: rgba(0,0,0,0.35);
}

@media (max-width: 600px) {
  .ai-chat { bottom: 14px; right: 14px; left: 14px; }
  .ai-chat-bubble { width: 100%; justify-content: center; padding: 12px 18px; font-size: 0.82rem; }
  .ai-chat-panel { right: 0; left: 0; bottom: 60px; width: auto; height: 75vh; max-height: 560px; }
  .ai-bubble-text { letter-spacing: 0.12em; }
}

/* ---------- Responsive: tablet + phone ---------- */
@media (max-width: 860px) {
  /* Nav — hamburger */
  .nav { padding: 12px 18px; }
  .nav .brand img { height: 42px; }
  .nav .brand span { font-size: 0.9rem; letter-spacing: 0.1em; }
  .nav ul { display: none; position: absolute; top: 68px; left: 0; right: 0;
            flex-direction: column; background: var(--bg-elev);
            padding: 20px 24px; gap: 18px; border-bottom: 1px solid var(--line); }
  .nav ul.open { display: flex; }
  .nav-toggle { display: block; }

  /* Section spacing */
  section { padding: 52px 0; }
  .wrap { padding: 0 20px; }
  .section-head { margin-bottom: 30px; }
  .section-head h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .section-head p { font-size: 1.05rem; max-width: 100%; }
  .section-head .eyebrow { font-size: 0.85rem; letter-spacing: 0.2em; }

  /* Hero */
  .hero { padding: 50px 18px 46px; }
  .hero img.medallion { width: 168px; margin-bottom: 20px; }
  .hero .sub { font-size: 0.88rem; letter-spacing: 0.18em; }
  .hero h1 { font-size: clamp(1.85rem, 6.5vw, 2.5rem); line-height: 1.18; margin-bottom: 14px; }
  .hero .tag { font-size: clamp(1rem, 3.5vw, 1.2rem); letter-spacing: 0.14em; margin-bottom: 22px; }
  .hero p.lede { font-size: 1.05rem; margin-bottom: 26px; }
  .hero .btn { padding: 13px 30px; font-size: 0.88rem; }

  /* Inventory: single column, snug cards */
  .cat-filter { gap: 8px; margin-bottom: 26px; }
  .cat-filter button { padding: 7px 14px; font-size: 0.78rem; letter-spacing: 0.08em; }
  .grid { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 22px 20px; }
  .card h3 { font-size: 1.35rem; }
  .card .mg { font-size: 1rem; margin-bottom: 12px; }
  .card .blurb { font-size: 1rem; }
  .card .price { font-size: 1.25rem; }
  .soldout-label { padding: 7px 14px; font-size: 0.78rem; }

  /* Guide accordion — tap-friendly summaries on mobile */
  .guide-cat summary { padding: 18px 4px; gap: 12px; }
  .guide-cat-title { font-size: 1.3rem; }
  .guide-cat-count { font-size: 0.74rem; padding: 3px 9px; }
  .guide-item strong { font-size: 1.05rem; }
  .guide-cat-body .deity-line { font-size: 0.98rem; }

  /* Order form */
  .order-layout { grid-template-columns: 1fr; gap: 26px; }
  .cart-box { position: static; padding: 22px 20px; }
  .field { margin-bottom: 16px; }
  .field input, .field textarea { font-size: 1.05rem; padding: 12px; }
  .btn { padding: 13px 30px; font-size: 0.9rem; }

  /* Marble figures: dial way back behind content */
  .bg-figure { opacity: 0.08; width: 72%; max-width: 380px; }

  /* RUO banner */
  .ruo-banner { font-size: 0.76rem; padding: 7px 14px; line-height: 1.4; letter-spacing: 0.04em; }

  /* Footer */
  footer.site { padding: 42px 20px 28px; }
  footer.site img { height: 72px; }
  footer.site .tag { font-size: 0.92rem; letter-spacing: 0.14em; margin-bottom: 16px; }
  footer.site ul { gap: 14px 18px; margin-bottom: 18px; }
  footer.site ul a { font-size: 0.78rem; }
  footer.site .ruo { font-size: 0.86rem; }
  footer.site .copyright { font-size: 0.78rem; margin-top: 18px; }
}

/* ---------- Responsive: small phones ---------- */
@media (max-width: 480px) {
  .nav .brand img { height: 38px; }
  .nav .brand span { display: none; }
  .nav-toggle { font-size: 1.4rem; }

  .ruo-banner { font-size: 0.7rem; padding: 6px 10px; letter-spacing: 0.02em; }

  section { padding: 40px 0; }
  .wrap { padding: 0 16px; }
  .section-head { margin-bottom: 22px; }
  .section-head h2 { font-size: 1.7rem; }

  .hero { padding: 36px 14px 38px; }
  .hero img.medallion { width: 142px; margin-bottom: 16px; }
  .hero h1 { font-size: 1.75rem; line-height: 1.18; }
  .hero .tag { font-size: 0.98rem; }
  .hero p.lede { font-size: 0.98rem; }

  .card { padding: 18px 16px; }
  .card h3 { font-size: 1.25rem; }
  .cart-box { padding: 20px 16px; }

  /* Atlas on small phones: hide the in-hero placement (medallion was crowding
     him) and instead show a dedicated band BELOW the gold CTA, above Inventory. */
  .hero .bg-figure.atlas { display: none; }
  .hero-trailer {
    display: block;
    width: 100%;
    height: 56vh;
    max-height: 480px;
    background-image: url('../assets/atlas-bg.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    opacity: 0.45;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
            mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
  }

  /* Goddess: same treatment as Atlas — hide the in-order placement
     (form was blocking her) and show a dedicated band above the Order section */
  #order .bg-figure.goddess { display: none; }
  .order-prelude {
    display: block;
    width: 100%;
    height: 56vh;
    max-height: 480px;
    background-image: url('../assets/goddess-bg.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    opacity: 0.45;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
            mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
  }

  footer.site { padding: 30px 14px 20px; }
  footer.site img { height: 60px; }
  footer.site ul { gap: 10px 14px; }
  footer.site .ruo { font-size: 0.82rem; }
}
