/* ============================================================
   THE RECORD — design system
   Addressing the Elephant
   Dark, layered, gold-on-ink. Vanta FOG background with glass depth.
   ============================================================ */

:root {
  --ink:        #08080d;
  --ink-2:      #0e0e16;
  --slate:      #15151f;
  --slate-2:    #1d1d29;
  --line:       rgba(212, 169, 78, 0.14);
  --gold:       #d4a94e;
  --gold-soft:  #e6c877;
  --cream:      #ece7dc;
  --cream-dim:  #b9b3a6;
  --muted:      #8a8578;
  --crimson:    #b3553f;
  --crimson-2:  #8a3b3b;
  --teal:       #4e7f8a;
  --glass:      rgba(21, 21, 31, 0.62);
  --glass-2:    rgba(14, 14, 22, 0.72);
  --shadow:     0 24px 60px -18px rgba(0,0,0,0.85), 0 6px 18px -6px rgba(0,0,0,0.6);
  --shadow-soft:0 14px 40px -20px rgba(0,0,0,0.8);
  --radius:     18px;
  --radius-sm:  12px;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--cream);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- animated background layer (Vanta FOG) ---- */
#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
#bg-fallback {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 800px at 12% 8%, rgba(212,169,78,0.10), transparent 60%),
    radial-gradient(1000px 700px at 88% 90%, rgba(78,127,138,0.10), transparent 60%),
    radial-gradient(800px 500px at 70% 20%, rgba(179,85,63,0.07), transparent 55%),
    linear-gradient(160deg, #0a0a12 0%, #08080d 55%, #0b0a0e 100%);
}

/* ---- scrollbar ---- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--slate-2); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ---- layout ---- */
.container {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---- nav ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(8,8,13,0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.22rem;
  letter-spacing: 0.02em;
  color: var(--cream);
  text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.brand .mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(135deg, var(--gold), #8a6a2a);
  display: inline-grid; place-items: center;
  box-shadow: 0 0 18px rgba(212,169,78,0.35);
}
.brand .mark svg { width: 15px; height: 15px; }
.nav-links { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-link {
  color: var(--cream-dim);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 8px 13px;
  border-radius: 9px;
  transition: color .2s ease, background .2s ease;
}
.nav-link:hover { color: var(--cream); background: rgba(212,169,78,0.08); }
.nav-link.active { color: var(--gold-soft); background: rgba(212,169,78,0.12); }

/* ---- hero ---- */
.hero {
  padding: 160px 0 70px;
  position: relative;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: var(--gold); opacity: .6; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin-bottom: 22px;
  text-wrap: balance;
}
.hero h1 .accent {
  background: linear-gradient(100deg, var(--gold-soft), var(--gold) 55%, #a67c2a);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .lede {
  font-size: 1.18rem;
  color: var(--cream-dim);
  max-width: 720px;
  line-height: 1.7;
}
.hero .lede strong { color: var(--gold-soft); font-weight: 600; }

/* ---- sections & cards ---- */
.section { padding: 64px 0; }
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.section-kicker {
  font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.section-body { color: var(--cream-dim); max-width: 820px; font-size: 1.02rem; }
.section-body strong { color: var(--cream); font-weight: 600; }
.section-body em { color: var(--gold-soft); }

.card {
  background: var(--glass);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(212,169,78,0.32);
  box-shadow: var(--shadow);
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.28rem;
  color: var(--cream);
  margin-bottom: 10px;
}
.card p { color: var(--cream-dim); font-size: 0.95rem; }
.card .card-icon {
  width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(212,169,78,0.18), rgba(212,169,78,0.05));
  border: 1px solid var(--line);
  color: var(--gold);
}
.card.crimson .card-icon { background: linear-gradient(135deg, rgba(179,85,63,0.2), rgba(179,85,63,0.05)); color: var(--crimson); }
.card.teal .card-icon { background: linear-gradient(135deg, rgba(78,127,138,0.2), rgba(78,127,138,0.05)); color: var(--teal); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

/* ---- tables ---- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table {
  width: 100%; border-collapse: collapse; font-size: 0.92rem;
  background: var(--glass-2); backdrop-filter: blur(10px);
}
th, td { padding: 15px 18px; text-align: left; vertical-align: top; }
th {
  font-family: var(--font-display); font-weight: 500; color: var(--gold-soft);
  font-size: 0.9rem; letter-spacing: 0.02em;
  background: rgba(212,169,78,0.06); border-bottom: 1px solid var(--line);
}
td { border-bottom: 1px solid rgba(212,169,78,0.08); color: var(--cream-dim); }
tr:last-child td { border-bottom: none; }
td strong { color: var(--cream); font-weight: 600; }
td .machine { color: var(--crimson); }
td .ours { color: var(--teal); }

/* ---- pills / tags ---- */
.pill {
  display: inline-block;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--gold-soft);
  background: rgba(212,169,78,0.07);
  margin: 0 6px 8px 0;
}
.pill.crimson { color: var(--crimson); border-color: rgba(179,85,63,0.3); background: rgba(179,85,63,0.08); }
.pill.teal { color: var(--teal); border-color: rgba(78,127,138,0.3); background: rgba(78,127,138,0.08); }

/* ---- number list (cracks) ---- */
.crack-list { list-style: none; }
.crack-list li {
  position: relative;
  padding: 20px 22px 20px 64px;
  margin-bottom: 14px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s ease, border-color .25s ease;
}
.crack-list li:hover { transform: translateX(4px); border-color: rgba(212,169,78,0.3); }
.crack-list .num {
  position: absolute; left: 18px; top: 18px;
  font-family: var(--font-display); font-size: 1.5rem; color: var(--gold);
  opacity: .9;
}
.crack-list strong { color: var(--cream); font-family: var(--font-display); font-weight: 500; font-size: 1.08rem; }
.crack-list p { color: var(--cream-dim); font-size: 0.92rem; margin-top: 4px; }

/* ---- callout ---- */
.callout {
  border-left: 3px solid var(--gold);
  background: rgba(212,169,78,0.06);
  padding: 22px 26px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
}
.callout.crimson { border-left-color: var(--crimson); background: rgba(179,85,63,0.07); }
.callout p { color: var(--cream); font-size: 1.02rem; }
.callout .label { display:block; font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }

/* ---- footer ---- */
.footer {
  margin-top: 80px;
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}
.footer a { color: var(--gold-soft); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ---- sitemap ---- */
.sitemap { list-style: none; }
.sitemap li { margin-bottom: 8px; }
.sitemap a {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--cream); text-decoration: none; font-size: 1.05rem;
  padding: 12px 18px; border-radius: 10px;
  transition: background .2s ease, color .2s ease;
}
.sitemap a:hover { background: rgba(212,169,78,0.08); color: var(--gold-soft); }
.sitemap a .arrow { color: var(--gold); opacity: .7; }
.sitemap .desc { color: var(--muted); font-size: 0.86rem; margin-left: 26px; }

/* ---- utility ---- */
.mt-0 { margin-top: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 28px; }
.mb-4 { margin-bottom: 44px; }
.gold { color: var(--gold-soft); }
.crimson { color: var(--crimson); }
.teal { color: var(--teal); }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-inner { flex-direction: column; height: auto; padding: 12px 18px; gap: 10px; }
  .nav-links { justify-content: center; }
  .hero { padding: 140px 0 50px; }
  .container { padding: 0 18px; }
}
