:root {
  --ink: #0c0a08;
  --ink-2: #14110e;
  --panel: #1b1713;
  --bone: #efe4d0;
  --muted: #a89873;
  --gold: #d4a54a;
  --gold-2: #f0d48a;
  --ember: #c75a2c;
  --blood: #9a2f28;
  --line: rgba(212, 165, 74, 0.2);
  --ok: #7ea86a;
  --warn: #d4a54a;
  --theory: #c75a2c;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Figtree", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--bone);
  background: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--gold-2); text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; }

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 6vw;
  background: rgba(12, 10, 8, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--bone);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.brand svg { width: 28px; height: 28px; }
.nav {
  display: flex;
  gap: 1.35rem;
  align-items: center;
  font-size: 0.86rem;
}
.nav a { color: var(--muted); }
.nav a.active, .nav a:hover { color: var(--bone); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-2);
  padding: 0.7rem 1.15rem;
  font: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  cursor: pointer;
}
.btn:hover { background: var(--gold); color: var(--ink); }
.btn.solid { background: var(--gold); color: var(--ink); font-weight: 700; }
.btn.solid:hover { background: var(--gold-2); }
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--bone);
  padding: 0.45rem 0.7rem;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 6vw 4.5rem;
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(199, 90, 44, 0.22), transparent 55%),
    radial-gradient(700px 380px at 10% 110%, rgba(212, 165, 74, 0.12), transparent 50%),
    linear-gradient(180deg, #17130f, var(--ink));
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  z-index: 0;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(12, 10, 8, 0.88) 0%, rgba(12, 10, 8, 0.62) 48%, rgba(12, 10, 8, 0.35) 100%),
    linear-gradient(180deg, rgba(12, 10, 8, 0.2), rgba(12, 10, 8, 0.78));
}
.hero > *:not(.hero-bg):not(.hero-scrim) { position: relative; z-index: 2; }
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  z-index: 3;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.figure {
  margin: 1.4rem 0 0;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--panel);
}
.figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.figure.portrait img { aspect-ratio: 4 / 3; }
.figure figcaption {
  padding: 0.7rem 1rem;
  color: var(--muted);
  font-size: 0.82rem;
}
.card {
  overflow: hidden;
}
.card-media {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  margin: -1.35rem -1.35rem 1rem;
  max-width: none;
  width: calc(100% + 2.7rem);
}
.den-photo {
  display: block;
  width: calc(100% + 2.7rem);
  max-width: none;
  height: 150px;
  object-fit: cover;
  margin: -1.35rem -1.35rem 0.9rem;
}
.shot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.1rem;
  margin-top: 1.6rem;
}
.feature-banner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  padding: 0;
  margin-top: 1.1rem;
  align-items: stretch;
}
.feature-banner img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
  margin: 0;
  max-width: none;
}
.feature-banner div { padding: 1.2rem 1.35rem; }
.kicker {
  color: var(--gold);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin-bottom: 1rem;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.6rem); margin: 0 0 1rem; max-width: 18ch; }
.lede { max-width: 42rem; color: var(--muted); font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2.4rem;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.meta-row strong { color: var(--bone); font-weight: 600; display: block; letter-spacing: 0; text-transform: none; font-size: 1rem; }

.wrap { width: min(1120px, 88vw); margin: 0 auto; }
.section { padding: 4.2rem 0; border-bottom: 1px solid var(--line); }
.section h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0 0 0.6rem; }
.sub { color: var(--muted); max-width: 42rem; }

.grid-3, .grid-2, .dens { display: grid; gap: 1.1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1.15fr 0.85fr; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0.2rem 0 0.55rem; font-size: 1.45rem; }
.card p { margin: 0; color: var(--muted); }
.tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.steps { counter-reset: step; display: grid; gap: 0.9rem; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif);
  color: var(--gold);
  font-size: 1.4rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pill.ok { background: rgba(126, 168, 106, 0.15); color: var(--ok); }
.pill.warn { background: rgba(212, 165, 74, 0.15); color: var(--warn); }
.pill.theory { background: rgba(199, 90, 44, 0.16); color: #e9a07a; }

table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.85rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--gold); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
.table-wrap { overflow-x: auto; }

.dens { grid-template-columns: repeat(3, 1fr); }
.den { min-height: 180px; }
.swatch { width: 100%; height: 8px; margin-bottom: 0.9rem; }
.swatch.black { background: #111; box-shadow: inset 0 0 0 1px #444; }
.swatch.blue { background: linear-gradient(90deg, #1c3f73, #0b1c38); }
.swatch.green { background: #38563a; }
.swatch.red { background: #8d2a24; }
.swatch.orange { background: #c56a2b; }
.swatch.brown { background: #6b4a32; }
.swatch.gold { background: linear-gradient(90deg, #c9a44a, #f3e0a6); }

.timer {
  overflow: hidden;
  background: linear-gradient(180deg, #211c16, #151210);
  border: 1px solid var(--line);
  padding: 1.5rem;
}
.hero.tall {
  min-height: 58vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 4rem;
}
.clock {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 5rem);
  letter-spacing: 0.08em;
  line-height: 1;
}
.timer-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; }
.timer input, .timer select {
  background: var(--ink);
  border: 1px solid var(--line);
  color: var(--bone);
  padding: 0.65rem 0.8rem;
  font: inherit;
}
.timer input { width: 5.5rem; }
.bar {
  display: grid;
  grid-template-columns: 5.5rem 1fr 3.2rem;
  gap: 0.6rem;
  align-items: center;
  margin: 0.45rem 0;
  font-size: 0.9rem;
}
.bar-track { height: 8px; background: #2a241c; }
.bar-fill { height: 8px; background: var(--gold); }
.names { display: grid; gap: 0.45rem; font-size: 0.92rem; color: var(--muted); }

.toc {
  position: sticky;
  top: 5.2rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--ink-2);
}
.toc a { display: block; color: var(--muted); padding: 0.28rem 0; font-size: 0.9rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 0.9rem 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); }

.callout {
  border-left: 3px solid var(--gold);
  background: var(--ink-2);
  padding: 1rem 1.15rem;
  color: var(--muted);
}
.warnbox {
  border-left: 3px solid var(--ember);
  background: #1d1410;
  padding: 1rem 1.15rem;
}

.site-footer {
  padding: 2.4rem 6vw 3rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }

@media (max-width: 920px) {
  .grid-3, .grid-2, .dens, .shot-grid, .feature-banner { grid-template-columns: 1fr; }
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--ink-2);
    padding: 1rem 6vw 1.4rem;
    border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .site-header { flex-wrap: wrap; }
}
