:root {
  --bg: #061812;
  --surface: #0b241b;
  --surface-2: #103025;
  --gold: #d4a853;
  --gold-bright: #e4ba66;
  --gold-dim: rgba(212, 168, 83, 0.28);
  --gold-soft: rgba(212, 168, 83, 0.14);
  --jade-bright: #34c788;
  --stone: #efe8d8;
  --muted: #9fb8ad;
  --font-display: 'Marcellus', Georgia, serif;
  --font-body: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--stone);
  font-family: var(--font-body);
  line-height: 1.65;
  padding: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Architectural Codex Frame */
.codex-frame {
  max-width: 1220px;
  margin: 0 auto;
  border: 1px solid var(--gold-dim);
  background:
    radial-gradient(920px circle at 50% 0%, rgba(21, 107, 72, 0.28), transparent 55%),
    var(--bg);
  position: relative;
}
.codex-frame::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(212, 168, 83, 0.11);
  pointer-events: none;
}
.inner { padding: 0 clamp(18px, 4.5vw, 58px); position: relative; z-index: 2; }

/* Header & Navigation */
header {
  border-bottom: 1px solid var(--gold-dim);
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #000;
  border: 1.5px solid var(--gold);
  overflow: hidden;
  flex-shrink: 0;
}
.brand-icon img { width: 100%; height: 100%; object-fit: cover; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.08rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  display: block;
  line-height: 1.1;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 0.86rem; color: var(--muted); }
.nav a { padding: 6px 0; transition: color 0.18s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid var(--gold);
  font-family: var(--font-mono);
  font-size: 0.77rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.18s;
}
.btn:active { transform: scale(0.98); }
.btn-gold { background: var(--gold); color: #061812; font-weight: 700; }
.btn-gold:hover { background: var(--gold-bright); }
.btn-ghost { background: transparent; color: var(--gold); }
.btn-ghost:hover { background: rgba(212, 168, 83, 0.12); }

/* Breadcrumbs */
.breadcrumbs {
  padding: 18px 0 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.breadcrumbs a:hover { color: var(--gold); }

/* Typography */
.kicker {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}
h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: 0.015em;
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.1vw, 2.6rem);
  line-height: 1.15;
  font-weight: 400;
  margin-bottom: 12px;
}
h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
}
.lead { color: var(--muted); max-width: 60ch; font-size: 1.02rem; }
.gold { color: var(--gold); }

/* Hero Centered Monumental */
.hero {
  text-align: center;
  padding: 52px 0 60px;
  border-bottom: 1px solid var(--gold-dim);
}
.hero h1 { max-width: 19ch; margin: 0 auto 18px; }
.hero .lead { margin: 0 auto 28px; }
.emblem-wrap {
  width: 196px;
  height: 196px;
  margin: 0 auto 24px;
  border-radius: 50%;
  overflow: hidden;
  background: #000;
  border: 1.5px solid var(--gold);
  box-shadow: 0 0 0 5px rgba(212, 168, 83, 0.08), 0 0 50px rgba(212, 168, 83, 0.22);
}
.emblem-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 40px; }

/* Subpage Hero Split */
.sub-hero {
  padding: 40px 0 54px;
  border-bottom: 1px solid var(--gold-dim);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}
.sub-hero-img {
  border: 1px solid var(--gold-dim);
  background: var(--surface);
  padding: 8px;
}
.sub-hero-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* 3-Panel Museum Triptych */
.triptych {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.triptych a {
  display: block;
  border: 1px solid var(--gold-dim);
  background: var(--surface);
  padding: 8px;
  transition: border-color 0.22s, transform 0.22s;
}
.triptych a:hover { border-color: var(--gold); transform: translateY(-3px); }
.triptych img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.triptych .cap {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  padding-top: 8px;
  text-transform: uppercase;
}

/* Sections */
section { padding: 64px 0; border-bottom: 1px solid var(--gold-dim); }

/* Citation Capsule (GEO/AEO 40-60 words direct answer block) */
.capsule {
  background: var(--surface);
  border-left: 3px solid var(--gold);
  border-top: 1px solid var(--gold-soft);
  border-right: 1px solid var(--gold-soft);
  border-bottom: 1px solid var(--gold-soft);
  padding: 18px 22px;
  margin: 14px 0 24px;
  max-width: 72ch;
  font-size: 0.96rem;
  color: var(--stone);
}

/* Interactive 4 Doors */
.doors-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 26px;
  margin-top: 26px;
  align-items: start;
}
.door-buttons { display: grid; gap: 10px; }
.door-btn {
  text-align: left;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--gold-dim);
  color: var(--stone);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.08rem;
  transition: background 0.2s, border-color 0.2s;
}
.door-btn .num { font-family: var(--font-mono); font-size: 0.72rem; color: var(--gold); }
.door-btn.active {
  background: var(--surface-2);
  border-color: var(--gold);
  box-shadow: inset 3px 0 0 var(--gold);
}
.door-detail {
  background: var(--surface);
  border: 1px solid var(--gold);
  padding: 28px;
}
.door-detail .dir {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.door-detail h3 { font-size: 1.7rem; margin-bottom: 10px; }
.door-detail p { color: var(--muted); font-size: 0.96rem; margin-bottom: 18px; }

/* Grids & Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 26px; }
.card {
  background: var(--surface);
  border: 1px solid var(--gold-dim);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--gold); }
.card.featured { border-color: var(--gold); background: linear-gradient(155deg, #0d2a20, #0b1c15); }
.card .date-code { font-family: var(--font-mono); font-size: 0.72rem; color: var(--gold); letter-spacing: 0.08em; }
.card p { font-size: 0.92rem; color: var(--muted); }
.card ul { padding-left: 18px; color: var(--muted); font-size: 0.92rem; }
.card li { margin-bottom: 6px; }
.price { font-family: var(--font-mono); font-size: 1.15rem; color: var(--stone); font-weight: 700; font-variant-numeric: tabular-nums; }
.card-actions { display: flex; flex-direction: column; gap: 8px; }

/* Live Quote + Kit Listo */
.quote-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  margin-top: 26px;
  align-items: stretch;
}
.quote-box {
  background: var(--surface);
  border: 1px solid var(--gold);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.q-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(3, 12, 9, 0.55);
  border: 1px solid var(--gold-dim);
  margin-bottom: 12px;
}
.q-field label { font-size: 0.9rem; color: var(--stone); }
select {
  background: var(--surface-2);
  color: var(--stone);
  border: 1px solid var(--gold-dim);
  padding: 9px 12px;
  font-family: var(--font-body);
  font-size: 16px;
  min-width: 220px;
  max-width: 100%;
}
.q-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--gold-dim);
}
.q-total-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }
.q-total-val { font-family: var(--font-mono); font-size: 1.75rem; color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; }

/* Interactive Prep Evaluator Chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 18px; }
.chip {
  min-height: 44px;
  padding: 9px 16px;
  background: var(--surface);
  border: 1px solid var(--gold-dim);
  color: var(--stone);
  font-size: 0.86rem;
  cursor: pointer;
}
.chip.active { background: rgba(212, 168, 83, 0.16); border-color: var(--gold); color: var(--gold); font-weight: 600; }

/* Comparison / Data Table */
.table-wrap { overflow-x: auto; margin-top: 22px; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--gold-dim); }
th { font-family: var(--font-mono); font-size: 0.74rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em; background: var(--surface); }
td { color: var(--muted); }
td strong { color: var(--stone); }

/* FAQ Accordion */
.faq-list { margin-top: 22px; border-top: 1px solid var(--gold-dim); }
details { border-bottom: 1px solid var(--gold-dim); padding: 16px 0; }
summary {
  font-family: var(--font-display);
  font-size: 1.2rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
summary::after { content: "+"; font-family: var(--font-mono); color: var(--gold); }
details[open] summary::after { content: "−"; }
details p { margin-top: 10px; color: var(--muted); max-width: 70ch; font-size: 0.94rem; }

/* Footer */
footer {
  padding: 36px 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; align-items: center; }
.footer-links a:hover { color: var(--gold); }

/* Mobile Sticky Reserve Bar */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: rgba(6, 24, 18, 0.96);
  border-top: 1px solid var(--gold-dim);
  padding: 10px 16px max(12px, env(safe-area-inset-bottom));
}

@media (max-width: 920px) {
  .nav { display: none; }
  .sub-hero, .triptych, .doors-layout, .grid-3, .grid-2, .quote-layout, footer { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .q-field { flex-direction: column; align-items: stretch; }
  select { width: 100%; min-width: 0; }
  .mobile-bar { display: block; }
  body { padding: 10px 10px 84px; }
}
