/* ============================================================
   THE PRESSROOM — Site Styles v3
   Front Nine Press · site.css
   Requires tokens.css loaded first. No @import.
   ============================================================ */

/* ── 1. RESET & BASE ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: var(--fs-md);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
}

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

img, video { max-width: 100%; display: block; }

/* ── 2. UTILITIES ─────────────────────────────────────────── */
.wrap    { max-width: var(--maxw);    margin-inline: auto; padding-inline: var(--sp-6); }
.serif   { font-family: var(--font-serif); }
.caps    { font-family: var(--font-caps); text-transform: uppercase; letter-spacing: var(--ls-wide); }

.pill {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: var(--rad-pill);
  padding: 3px 12px;
  font-size: var(--fs-2xs);
  font-family: var(--font-caps);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

/* ── 3. BUTTON ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  background: var(--accent);
  color: var(--pine-2);
  font-family: var(--font-caps);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  font-weight: 600;
  font-size: var(--fs-sm);
  padding: 14px 28px;
  border-radius: var(--rad-sm);
  border: none;
  cursor: pointer;
  transition:
    transform var(--dur-fast) var(--ease-press),
    box-shadow var(--dur-fast) var(--ease-press),
    background var(--dur-fast) var(--ease-out);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--glow), 0 2px 8px rgba(0,0,0,.25);
  background: var(--gold-0);
}
.btn:active { transform: translateY(0); }

.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: none;
  background: transparent;
}

.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── 4. NAV ───────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(15, 29, 24, 0.88);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-xl);
  letter-spacing: var(--ls-tight);
  line-height: 1;
}
.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: var(--sp-7);
  align-items: center;
}
.nav-links a {
  font-family: var(--font-caps);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  font-size: var(--fs-xs);
  color: var(--text-dim);
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-links a:hover { color: var(--accent); }
.nav-links .btn   { padding: 10px 20px; font-size: var(--fs-xs); }

/* Mobile nav — CSS-only checkbox reveal */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--rad-sm);
  padding: 6px 10px;
  cursor: pointer;
  font-size: var(--fs-lg);
  line-height: 1;
}
/* Nav sheet (mobile drawer) */
.nav-sheet {
  display: none;
  position: fixed;
  inset: 72px 0 0 0;
  z-index: var(--z-overlay);
  background: rgba(10, 18, 15, 0.97);
  backdrop-filter: blur(12px);
  padding: var(--sp-8) var(--sp-6);
  flex-direction: column;
  gap: var(--sp-6);
}
.nav-sheet a {
  font-family: var(--font-caps);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  font-size: var(--fs-2xl);
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--sp-5);
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-sheet a:hover { color: var(--accent); }

#nav-open       { display: none; }
#nav-open:checked ~ .nav-sheet { display: flex; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links a:not(.btn) { display: none; }
}

/* ── 5. COLLECTION HERO (full-bleed) ──────────────────────── */
.collection-hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.collection-hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.collection-hero__media img,
.collection-hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.collection-hero__wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    var(--canvas) 0%,
    var(--hero-wash) 40%,
    rgba(0,0,0,.15) 100%
  );
}
.collection-hero__body {
  position: relative;
  padding: var(--sp-13) 0 var(--sp-11);
}
.collection-hero__kicker {
  display: block;
  font-family: var(--font-caps);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  font-size: var(--fs-xs);
  color: var(--accent);
  margin-bottom: var(--sp-4);
}
.collection-hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-5xl);
  line-height: var(--lh-tight);
  font-weight: 700;
  max-width: 14ch;
}
.collection-hero__title em {
  font-style: italic;
  color: var(--accent);
}
.collection-hero__sub {
  color: var(--text-dim);
  font-size: var(--fs-lg);
  max-width: 38ch;
  margin-block: var(--sp-5) var(--sp-7);
  line-height: var(--lh-relaxed);
}
.collection-hero__cta { display: flex; gap: var(--sp-4); flex-wrap: wrap; }

/* ── 6. HERO (homepage 2-col) ─────────────────────────────── */
.hero {
  padding: 84px 0 60px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: var(--sp-10);
  align-items: center;
}
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-top: 48px; } }

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  line-height: var(--lh-tight);
  font-weight: 700;
}
.hero h1 em { color: var(--accent); font-style: italic; }

.kicker {
  display: block;
  color: var(--accent-2);
  font-family: var(--font-caps);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  font-size: var(--fs-xs);
  margin-bottom: 18px;
}

.hero p.lede {
  color: var(--text-dim);
  font-size: var(--fs-lg);
  margin: var(--sp-5) 0 var(--sp-7);
  max-width: 34em;
  line-height: var(--lh-relaxed);
}

.hero-art { position: relative; }
.hero-art img {
  border-radius: var(--rad-sm);
  box-shadow: var(--shadow-poster);
  transform: rotate(1.5deg);
}

.hero-cta  { display: flex; gap: var(--sp-4); flex-wrap: wrap; align-items: center; }
.hero-note { font-size: var(--fs-xs); color: var(--text-dim); margin-top: var(--sp-3); }

/* ── 7. GATEWAY (3-door collection entry) ─────────────────── */
.gateway {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  padding-block: var(--sp-10);
}
@media (max-width: 820px) { .gateway { grid-template-columns: 1fr; } }

.gateway-door {
  position: relative;
  border-radius: var(--rad-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  isolation: isolate;
  cursor: pointer;
  border: 1px solid var(--border);
}
.gateway-door img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-press);
}
.gateway-door:hover img { transform: scale(1.07); }

.gateway-door__wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.08) 55%);
  transition: opacity var(--dur-base) var(--ease-out);
}
.gateway-door__reveal {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--dur-base) var(--ease-out);
}
.gateway-door:hover .gateway-door__reveal { opacity: 1; }

.gateway-door__label {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--sp-10) var(--sp-6) var(--sp-6);
}
.gateway-door__label h3 {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  line-height: var(--lh-snug);
}
.gateway-door__label p {
  color: var(--text-dim);
  font-size: var(--fs-sm);
  margin-top: var(--sp-2);
}

/* ── 8. SECTIONS ──────────────────────────────────────────── */
section { padding: 72px 0; }

.sect-head {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--sp-9);
}
.sect-head h2 {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  margin-top: var(--sp-2);
  line-height: var(--lh-snug);
}
.sect-head p { color: var(--text-dim); margin-top: var(--sp-3); }

/* ── 9. STYLE CARDS ───────────────────────────────────────── */
.styles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}
@media (max-width: 820px) { .styles { grid-template-columns: 1fr; } }

.style-card {
  background: var(--canvas-raised);
  border: 1px solid var(--border);
  border-radius: var(--rad);
  overflow: hidden;
  transition:
    transform var(--dur-base) var(--ease-press),
    box-shadow var(--dur-base) var(--ease-press),
    border-color var(--dur-base) var(--ease-out);
}
.style-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-accent);
}
.style-card img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.style-card .pad { padding: var(--sp-5) 22px; }
.style-card h3 { font-family: var(--font-display); font-size: var(--fs-xl); }
.style-card p  { color: var(--text-dim); font-size: var(--fs-sm); margin-top: var(--sp-1); }

/* ── 10. STEPS ────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  counter-reset: step;
}
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

.step {
  background: var(--canvas-raised);
  border: 1px solid var(--border);
  border-radius: var(--rad);
  padding: var(--sp-7);
  transition: border-color var(--dur-base) var(--ease-out);
}
.step:hover { border-color: var(--border-accent); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: 44px;
  color: var(--accent);
  display: block;
  margin-bottom: var(--sp-2);
  opacity: .85;
}
.step h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.step p  { color: var(--text-dim); font-size: var(--fs-md); }

/* ── 11. DESTINATION GRID ─────────────────────────────────── */
.dest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 1000px) { .dest-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .dest-grid { grid-template-columns: repeat(2, 1fr); } }

.dest-card {
  position: relative;
  border-radius: var(--rad-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  isolation: isolate;
}
.dest-card img {
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
  transition: transform var(--dur-slow) var(--ease-press);
}
.dest-card:hover img { transform: scale(1.06); }
.dest-card .label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 14px 12px;
  background: linear-gradient(transparent, rgba(10,18,15,.93));
  font-family: var(--font-caps);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: var(--fs-xs);
}

/* ── 12. WALL (masonry poster grid + filter) ──────────────── */
.wall-filter {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-bottom: var(--sp-7);
}
.wall-filter__chip {
  font-family: var(--font-caps);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  font-size: var(--fs-xs);
  border: 1px solid var(--border);
  border-radius: var(--rad-pill);
  padding: 6px 14px;
  cursor: pointer;
  background: transparent;
  color: var(--text-dim);
  transition:
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
}
.wall-filter__chip:hover,
.wall-filter__chip.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--glow);
}

.wall {
  columns: 4 220px;
  column-gap: var(--sp-5);
}
.wall__item {
  break-inside: avoid;
  margin-bottom: var(--sp-5);
  border-radius: var(--rad-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  isolation: isolate;
  cursor: pointer;
  transition: box-shadow var(--dur-base) var(--ease-press);
}
.wall__item:hover { box-shadow: var(--shadow-poster); }
.wall__item img { width: 100%; display: block; }
.wall__item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 50%);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: var(--sp-5);
  transition: opacity var(--dur-base) var(--ease-out);
}
.wall__item:hover .wall__item__overlay { opacity: 1; }

/* ── 13. TIERS / PRICING ──────────────────────────────────── */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } }

.tier {
  background: var(--canvas-raised);
  border: 1px solid var(--border);
  border-radius: var(--rad);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.tier:hover { border-color: var(--border-accent); box-shadow: var(--shadow-glow); }
.tier.feature {
  border-color: var(--accent);
  position: relative;
  box-shadow: var(--shadow-glow);
}
.tier .price {
  font-family: var(--font-display);
  font-size: 44px;
  margin: var(--sp-2) 0 var(--sp-1);
  line-height: 1;
}
.tier .price small { font-size: var(--fs-md); color: var(--text-dim); font-family: var(--font-ui); }
.tier ul { list-style: none; margin: var(--sp-5) 0 var(--sp-7); flex: 1; }
.tier li {
  padding: 7px 0;
  color: var(--text-dim);
  font-size: var(--fs-md);
  border-bottom: 1px dashed var(--border);
}
.tier li::before { content: "⛳ "; opacity: .7; }

/* ── 14. HONESTY ──────────────────────────────────────────── */
.honesty {
  background: var(--canvas-raised);
  border-radius: var(--rad);
  border: 1px solid var(--border);
  padding: var(--sp-10);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
}
@media (max-width: 820px) { .honesty { grid-template-columns: 1fr; } }
.honesty h3 { font-family: var(--font-display); font-size: var(--fs-2xl); margin-bottom: var(--sp-3); }
.honesty p  { color: var(--text-dim); font-size: var(--fs-md); margin-bottom: var(--sp-2); }

/* ── 15. BUILDER ──────────────────────────────────────────── */
.builder {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: var(--sp-10);
  padding: 48px 0 80px;
  align-items: start;
}
@media (max-width: 980px) { .builder { grid-template-columns: 1fr; } }

.panel {
  background: var(--canvas-raised);
  border: 1px solid var(--border);
  border-radius: var(--rad);
  padding: var(--sp-7);
}
.panel h1  { font-family: var(--font-display); font-size: var(--fs-2xl); margin-bottom: var(--sp-1); }
.panel .sub { color: var(--text-dim); font-size: var(--fs-sm); margin-bottom: var(--sp-5); }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-caps);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: var(--fs-xs);
  color: var(--text-dim);
  margin-bottom: var(--sp-2);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: #0b1713;
  border: 1px solid rgba(244,234,216,.16);
  color: var(--text);
  border-radius: var(--rad-sm);
  padding: 12px 14px;
  font-size: var(--fs-md);
  font-family: var(--font-ui);
  transition: border-color var(--dur-fast) var(--ease-out);
  appearance: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }

.style-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.style-chip {
  border: 2px solid transparent;
  border-radius: var(--rad-sm);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-press);
}
.style-chip:hover  { transform: translateY(-3px); }
.style-chip img    { aspect-ratio: 4/5; object-fit: cover; }
.style-chip .nm {
  position: absolute;
  inset: auto 0 0 0;
  font-size: var(--fs-2xs);
  text-align: center;
  padding: 14px 2px 5px;
  background: linear-gradient(transparent, rgba(10,18,15,.95));
  font-family: var(--font-caps);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.style-chip.active { border-color: var(--accent); }

.preview-wrap { position: sticky; top: 96px; }

#poster-canvas {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  display: block;
  border-radius: var(--rad-sm);
  box-shadow: var(--shadow-poster);
}

.buy-card {
  margin-top: var(--sp-5);
  background: var(--canvas-raised);
  border: 1px solid var(--border);
  border-radius: var(--rad);
  padding: 22px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.buy-card .btn { flex: 1; min-width: 200px; text-align: center; }

.design-code { margin-top: 14px; font-size: var(--fs-xs); color: var(--text-dim); text-align: center; width: 100%; }
.design-code code {
  background: #0b1713;
  padding: 4px 10px;
  border-radius: var(--rad-sm);
  font-size: var(--fs-2xs);
  word-break: break-all;
}

/* ── 16. WIZARD (builder step header) ─────────────────────── */
.wizard {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: var(--sp-7);
  border-radius: var(--rad-pill);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--canvas-raised);
}
.wizard-step {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 12px 20px;
  font-family: var(--font-caps);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  font-size: var(--fs-xs);
  color: var(--text-dim);
  flex: 1;
  justify-content: center;
  border-right: 1px solid var(--border);
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.wizard-step:last-child { border-right: none; }
.wizard-step .wizard-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}
.wizard-step.active {
  color: var(--accent);
  background: var(--glow);
}
.wizard-step.done {
  color: var(--accent-3);
}
.wizard-step.done .wizard-num {
  background: var(--accent-3);
  border-color: var(--accent-3);
  color: var(--canvas);
}

/* ── 17. BUY RAIL (sticky sidebar on destination pages) ───── */
.buy-rail {
  position: sticky;
  top: 96px;
  background: var(--canvas-raised);
  border: 1px solid var(--border);
  border-radius: var(--rad);
  padding: var(--sp-7);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.buy-rail__price {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  line-height: 1;
}
.buy-rail__price small { font-size: var(--fs-md); color: var(--text-dim); font-family: var(--font-ui); }
.buy-rail__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-sm);
  color: var(--text-dim);
}
.buy-rail .btn { width: 100%; margin-top: var(--sp-2); }
.buy-rail__note { font-size: var(--fs-xs); color: var(--text-dim); text-align: center; }

/* ── 18. MOCKUP TOGGLE / STAGE ────────────────────────────── */
.mockup-toggle {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  justify-content: center;
}
.mockup-toggle__btn {
  font-family: var(--font-caps);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  font-size: var(--fs-xs);
  border: 1px solid var(--border);
  border-radius: var(--rad-pill);
  padding: 5px 14px;
  cursor: pointer;
  background: transparent;
  color: var(--text-dim);
  transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.mockup-toggle__btn.active,
.mockup-toggle__btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.mockup-stage {
  position: relative;
  width: 100%;
  border-radius: var(--rad);
  overflow: hidden;
  background: var(--canvas-raised);
  border: 1px solid var(--border);
}
.mockup-stage svg { width: 100%; height: auto; display: block; }
.mockup-stage__poster {
  position: absolute;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: var(--shadow-md);
}

/* ── 19. GIFT PANEL ───────────────────────────────────────── */
.gift-panel {
  background: var(--canvas-raised);
  border: 1px solid var(--border-accent);
  border-radius: var(--rad);
  padding: var(--sp-6);
  margin-top: var(--sp-5);
}
.gift-panel__head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
  font-family: var(--font-display);
  font-size: var(--fs-xl);
}
.gift-panel__toggle {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  cursor: pointer;
  font-size: var(--fs-sm);
  color: var(--text-dim);
  font-family: var(--font-caps);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}

/* ── 20. SHARE MODAL + TOAST ──────────────────────────────── */
.share-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
}
.share-modal.open { display: flex; }
.share-modal__card {
  background: var(--canvas-raised);
  border: 1px solid var(--border);
  border-radius: var(--rad-lg);
  padding: var(--sp-8);
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.share-modal__card h3 { font-family: var(--font-display); font-size: var(--fs-2xl); margin-bottom: var(--sp-5); }
.share-modal__url {
  display: flex;
  gap: var(--sp-2);
  background: #0b1713;
  border: 1px solid var(--border);
  border-radius: var(--rad-sm);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--text-dim);
  word-break: break-all;
  margin-bottom: var(--sp-5);
}
.share-modal__close {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: var(--fs-xl);
  line-height: 1;
  float: right;
}

.toast {
  position: fixed;
  bottom: var(--sp-7);
  right: var(--sp-7);
  z-index: var(--z-toast);
  background: var(--canvas-raised);
  border: 1px solid var(--border-accent);
  border-radius: var(--rad);
  padding: var(--sp-4) var(--sp-6);
  font-size: var(--fs-sm);
  box-shadow: var(--shadow-md);
  transform: translateY(120%);
  opacity: 0;
  transition: transform var(--dur-slow) var(--ease-press), opacity var(--dur-slow) var(--ease-press);
  pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ── 21. FILM (video feature block) ───────────────────────── */
.film {
  position: relative;
  border-radius: var(--rad-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  isolation: isolate;
  background: var(--canvas-raised);
  border: 1px solid var(--border);
}
.film video,
.film img { width: 100%; height: 100%; object-fit: cover; }
.film__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: var(--sp-8);
}
.film__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(244,234,216,.12);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(244,234,216,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-press);
}
.film__play:hover { background: rgba(244,234,216,.22); transform: translate(-50%, -50%) scale(1.08); }
.film__play::after {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 11px 0 11px 20px;
  border-color: transparent transparent transparent var(--cream-0);
  margin-left: 4px;
}

/* ── 22. DESIGN PAGE COMPONENTS ───────────────────────────── */
.swatch-row {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-block: var(--sp-4);
}
.swatch-row__chip {
  width: 48px;
  height: 48px;
  border-radius: var(--rad-sm);
  border: 1px solid var(--border);
  position: relative;
  cursor: default;
}
.swatch-row__chip::after {
  content: attr(data-label);
  position: absolute;
  inset: auto 50% -1.8em auto;
  transform: translateX(50%);
  font-size: var(--fs-2xs);
  color: var(--text-dim);
  white-space: nowrap;
  font-family: var(--font-ui);
}

.type-specimen { border: 1px solid var(--border); border-radius: var(--rad); overflow: hidden; }
.type-specimen__row {
  display: flex;
  align-items: baseline;
  gap: var(--sp-5);
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--border);
}
.type-specimen__row:last-child { border-bottom: none; }
.type-specimen__label {
  width: 80px;
  flex-shrink: 0;
  font-size: var(--fs-xs);
  color: var(--text-dim);
  font-family: var(--font-caps);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: var(--sp-3);
}
.icon-grid__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-4);
  border-radius: var(--rad-sm);
  border: 1px solid var(--border);
  font-size: var(--fs-xs);
  color: var(--text-dim);
  text-align: center;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.icon-grid__item:hover { border-color: var(--border-accent); }

/* ── 23. ORDER STATUS ─────────────────────────────────────── */
.order-status {
  background: var(--canvas-raised);
  border: 1px solid var(--border);
  border-radius: var(--rad);
  padding: var(--sp-8);
}
.order-status__timeline {
  position: relative;
  padding-left: var(--sp-9);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.order-status__timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}
.order-status__event {
  position: relative;
  padding: 0 0 var(--sp-7) 0;
}
.order-status__event:last-child { padding-bottom: 0; }
.order-status__dot {
  position: absolute;
  left: calc(-1 * var(--sp-9) + 4px);
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--canvas);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.order-status__event.done   .order-status__dot { border-color: var(--accent); background: var(--accent); }
.order-status__event.active .order-status__dot { border-color: var(--accent); box-shadow: 0 0 0 4px var(--glow); }
.order-status__label { font-size: var(--fs-sm); color: var(--text-dim); }
.order-status__event.done   .order-status__label,
.order-status__event.active .order-status__label { color: var(--text); font-weight: 500; }
.order-status__time { font-size: var(--fs-xs); color: var(--text-dim); margin-top: 2px; }

/* ── 24. GUIDE PAGES ──────────────────────────────────────── */
.guide-hero {
  padding: 56px 0 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-9);
  align-items: center;
}
@media (max-width: 860px) { .guide-hero { grid-template-columns: 1fr; } }

.guide-hero img { border-radius: var(--rad-sm); box-shadow: var(--shadow-lg); }

.guide-body {
  max-width: var(--maxw-prose);
  margin: 0 auto;
  padding: 40px 0;
}
.guide-body h2 {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  margin: 36px 0 12px;
  color: var(--accent);
}
.guide-body p  { color: var(--text-dim); font-size: var(--fs-lg); margin-bottom: 14px; line-height: var(--lh-relaxed); }
.guide-body li { color: var(--text-dim); margin: 10px 0 10px 20px; }

.style-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 30px 0; }
.src-note  { font-size: var(--fs-xs); color: rgba(207,197,174,.55); margin-top: 26px; }

/* ── 25. CTA BAND ─────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(120deg, var(--pine-3), var(--canvas-raised));
  border: 1px solid var(--border-accent);
  border-radius: var(--rad);
  padding: var(--sp-10);
  text-align: center;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, var(--glow) 0%, transparent 70%);
  pointer-events: none;
}
.cta-band h2 { font-family: var(--font-display); font-size: var(--fs-3xl); margin-bottom: var(--sp-2); }
.cta-band p  { color: var(--text-dim); margin-bottom: var(--sp-6); }

/* ── 26. FAQ ──────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--border); padding: 22px 0; }
.faq-item h3 { font-family: var(--font-display); font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.faq-item p  { color: var(--text-dim); font-size: var(--fs-md); }

/* ── 27. MARQUEE ──────────────────────────────────────────── */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--border);
  padding-block: var(--sp-3);
  position: relative;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track {
  display: flex;
  width: max-content;
  gap: var(--sp-8);
  white-space: nowrap;
}
@media (prefers-reduced-motion: no-preference) {
  .marquee__track {
    animation: marquee-scroll var(--dur-marquee) linear infinite;
  }
}
.marquee__item {
  font-family: var(--font-caps);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  font-size: var(--fs-sm);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.marquee__item::after {
  content: "·";
  color: var(--accent);
  opacity: .6;
}
@keyframes marquee-scroll {
  to { transform: translateX(-50%); }
}

/* ── 28. MOTION — REVEAL + TILT ───────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity var(--dur-slower) var(--ease-press),
      transform var(--dur-slower) var(--ease-press);
  }
  .reveal.in {
    opacity: 1;
    transform: translateY(0);
  }

  .tilt {
    transform-style: preserve-3d;
    transition: transform var(--dur-base) var(--ease-press);
    perspective: 900px;
  }
  /* JS drives --rx / --ry via style attr; fallback: hover lifts */
  .tilt:hover { transform: rotateX(var(--rx, -3deg)) rotateY(var(--ry, 4deg)) scale(1.02); }

  /* View transition utilities */
  .vt-poster   { view-transition-name: poster-main; }
  .vt-panel    { view-transition-name: builder-panel; }
  .vt-hero-img { view-transition-name: hero-image; }
}

/* ── 29. FOOTER ───────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 44px 0;
  margin-top: 40px;
}
.foot {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-6);
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: var(--fs-xs);
}
.foot .cols  { display: flex; gap: 40px; flex-wrap: wrap; }
.foot a:hover { color: var(--accent); }
.legal {
  margin-top: 22px;
  font-size: var(--fs-2xs);
  color: rgba(207,197,174,.5);
  max-width: 70em;
}

/* ── 30. MEGA-FOOTER ──────────────────────────────────────── */
.mega-footer {
  background: var(--canvas-raised);
  border-top: 1px solid var(--border);
  padding-top: var(--sp-10);
  margin-top: var(--sp-10);
}
.mega-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-10);
  padding-bottom: var(--sp-10);
}
@media (max-width: 900px) {
  .mega-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .mega-footer__grid { grid-template-columns: 1fr; }
}

.mega-footer__brand .logo { display: block; margin-bottom: var(--sp-4); }
.mega-footer__brand p { color: var(--text-dim); font-size: var(--fs-sm); max-width: 28ch; line-height: var(--lh-relaxed); }

.mega-footer__col h4 {
  font-family: var(--font-caps);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  font-size: var(--fs-xs);
  color: var(--accent);
  margin-bottom: var(--sp-4);
}
.mega-footer__col ul { list-style: none; display: flex; flex-direction: column; gap: var(--sp-2); }
.mega-footer__col a  { font-size: var(--fs-sm); color: var(--text-dim); transition: color var(--dur-fast) var(--ease-out); }
.mega-footer__col a:hover { color: var(--accent); }

.mega-footer__bar {
  border-top: 1px solid var(--border);
  padding-block: var(--sp-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--text-dim);
}

/* ── 31. PRINT (guide pages) ──────────────────────────────── */
@media print {
  nav, footer, .mega-footer, .cta-band, .buy-rail { display: none !important; }
  body { background: #fff; color: #111; font-size: 12pt; }
  .guide-body h2 { color: #111; }
  .guide-body p, .guide-body li { color: #333; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
  .style-row img { max-width: 30%; }
}

/* ── 32. RESPONSIVE POLISH ────────────────────────────────── */
/* BP1: ≤1200px */
@media (max-width: 1200px) {
  .wall { columns: 3 180px; }
  .mega-footer__grid { gap: var(--sp-8); }
}

/* BP2: ≤980px */
@media (max-width: 980px) {
  section { padding: 52px 0; }
  .collection-hero { min-height: 70svh; }
  .mega-footer__grid { grid-template-columns: 1fr 1fr; }
}

/* BP3: ≤760px */
@media (max-width: 760px) {
  section { padding: 40px 0; }
  .wall { columns: 2 150px; }
  .wizard { flex-wrap: wrap; }
  .wizard-step { flex: 0 0 50%; border-right: none; border-bottom: 1px solid var(--border); }
  .wizard-step:nth-child(odd) { border-right: 1px solid var(--border); }
  .wizard-step:last-child, .wizard-step:nth-last-child(-n+2):nth-child(odd) { border-bottom: none; }
  .buy-rail { position: static; }
}

/* BP4: ≤480px */
@media (max-width: 480px) {
  .wrap { padding-inline: var(--sp-4); }
  .wall { columns: 1; }
  .gateway { grid-template-columns: 1fr; }
  .tiers   { grid-template-columns: 1fr; }
  .styles  { grid-template-columns: 1fr; }
  .collection-hero__title { font-size: var(--fs-4xl); }
  .wizard { flex-direction: column; border-radius: var(--rad); }
  .wizard-step { border-right: none; border-bottom: 1px solid var(--border); }
  .wizard-step:last-child { border-bottom: none; }
}

/* Keep native disclosure and account states hidden regardless of button styling. */
[hidden] { display: none !important; }
/* Keyboard and small-screen polish. */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.style-chip { padding: 0; color: inherit; background: transparent; width: 100%; }
.wizard-step { background: transparent; color: inherit; font: inherit; cursor: pointer; }
.design-code code { overflow-wrap: anywhere; display: block; max-height: 3.8em; overflow: auto; }
#ai-options { display: grid; gap: 10px; margin-top: 12px; }
#ai-options button { white-space: normal; }
#signin-form { margin-top: 28px; }
#account-orders .panel h3 { font-family: var(--font-display); margin-bottom: 10px; }
@media(max-width:1100px) { .nav-links { display: none; } .nav-toggle { display: block; } }
@media(max-width:760px) { .film-split { grid-template-columns: 1fr !important; } .film-split .film { max-width: 100% !important; } .builder .preview-wrap { position: static; } .buy-card { display: grid; gap: 12px; } .buy-card>.btn { width: 100%; text-align: center; } }
@media(prefers-reduced-motion:reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } .collection-hero__media video { display: none; } .reveal { opacity: 1 !important; transform: none !important; } }
/* Bound sprite icons to their text controls instead of the SVG default canvas. */
.icon { display: inline-block; width: 1.2em; height: 1.2em; flex: 0 0 auto; vertical-align: -.18em; }
.mockup-toggle { align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.mockup-toggle__btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; }
.mockup-toggle select { min-height: 42px; padding: 8px 12px; max-width: 100%; border: 1px solid var(--border); border-radius: var(--rad-pill); background: var(--canvas-raised); color: var(--text); font: inherit; }
.crest-strip { display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.crest-strip canvas { width: 84px; height: 84px; flex: 0 0 84px; }
.crest-strip p { font-size: var(--fs-sm); color: var(--text-dim); }
.mini-actions { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }
.collection-hero__wash { background: linear-gradient(90deg,rgba(9,22,16,.8),rgba(9,22,16,.35)),linear-gradient(0deg,rgba(9,22,16,.85),transparent 75%); }
.collection-hero__kicker { color: #f1d999; }
