/* ==========================================================================
   Culmen Media — Design tokens
   Palette: near-black slate ground, summit-gold accent, signal-teal for data
   Type: Space Grotesk (display) / Inter (body) / IBM Plex Mono (data & labels)
   Signature: contour-line / ascent-line motif tying "Culmen" (Latin: summit)
   to performance advertising ("reaching peak metrics")
   ========================================================================== */

:root {
  --bg: #0B0F14;
  --bg-raised: #121822;
  --bg-raised-2: #171F2B;
  --line: #232C3A;
  --text: #E9EEF3;
  --text-muted: #8D99A8;
  --gold: #E3A034;
  --gold-soft: #F0C878;
  --teal: #3FC1B0;
  --danger: #E35D4F;

  --font-display: 'Space Grotesk', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --container: 1800px;
  --radius: 4px;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 24px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--gold);
}

p.lead {
  font-size: 24px;
  color: var(--text-muted);
  max-width: 620px;
}

/* Contour divider — replaces plain hairlines between sections */
.contour {
  width: 100%;
  height: 28px;
  display: block;
  opacity: 0.5;
}
.contour path { stroke: var(--line); stroke-width: 1; fill: none; }

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 20, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.site .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo svg { width: 70px; height: 70px; }
.logo .mark-gold { color: var(--gold); }

nav.primary { display: flex; align-items: center; gap: 36px; }
nav.primary a {
  font-size: 24px;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
nav.primary a:hover, nav.primary a.active { color: var(--text); }

.btn {
  font-family: var(--font-mono);
  font-size: 24px;
  letter-spacing: 0.03em;
  padding: 14px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-block;
}
.btn:hover { background: var(--gold); color: #12140E; }
.btn.solid { background: var(--gold); color: #12140E; }
.btn.solid:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn.ghost { border-color: var(--line); color: var(--text-muted); }
.btn.ghost:hover { border-color: var(--text-muted); color: var(--text); background: transparent; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 24px; cursor: pointer; }

@media (max-width: 860px) {
  nav.primary { position: fixed; inset: 72px 0 0 0; background: var(--bg); flex-direction: column;
    justify-content: flex-start; padding: 40px 32px; gap: 24px; transform: translateX(100%);
    transition: transform 0.25s ease; }
  nav.primary.open { transform: translateX(0); }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(11,15,20,0.75), rgba(11,15,20,0.92));
  z-index: 1;
}
.hero .grid { position: relative; z-index: 2; }
.hero .grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 5vw, 58px);
  margin-bottom: 22px;
}
.hero h1 .accent { color: var(--gold); }
.hero .cta-row { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.ascent-chart { width: 100%; height: auto; }
.ascent-chart .line { stroke: var(--gold); stroke-width: 2; fill: none; stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 1.8s ease forwards 0.2s; }
.ascent-chart .line-ghost { stroke: var(--line); stroke-width: 1; fill: none; }
.ascent-chart .fill { fill: url(#ascentFill); opacity: 0; animation: fadein 1s ease forwards 1.6s; }
.ascent-chart .peak-dot { fill: var(--gold); opacity: 0; animation: fadein 0.4s ease forwards 1.9s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }

@media (max-width: 860px) {
  .hero .grid { grid-template-columns: 1fr; }
}

/* ---------- Section scaffolding ---------- */
section { padding: 84px 0; }
section.tight { padding: 56px 0; }
section.raised { background: var(--bg-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 14px; }

/* ---------- Grids / cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 860px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.15s ease;
}
.card:hover { border-color: var(--gold); }
.card .num { font-family: var(--font-mono); font-size: 28px; color: var(--gold); margin-bottom: 14px; display: block; }
.card h3 { font-size: 24px; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 24px; }

/* Elevation stat markers — like readouts on a survey map, not generic 01/02/03 */
.elevation-row { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.elevation {
  flex: 1 1 220px;
  padding: 32px 28px;
  border-right: 1px solid var(--line);
}
.elevation:last-child { border-right: none; }
.elevation .mark { font-family: var(--font-mono); font-size: 20px; color: var(--gold); letter-spacing: 0.08em; }
.elevation .value { font-family: var(--font-display); font-size: 40px; margin: 8px 0 4px; }
.elevation .label { color: var(--text-muted); font-size: 14px; }

/* Tag pills for verticals/markets */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  font-family: var(--font-mono);
  font-size: 18px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-muted);
}

/* ---------- Forms ---------- */
form.panel {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 8px; font-family: var(--font-mono); letter-spacing: 0.02em; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 14px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 22px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-msg { margin-top: 16px; font-size: 22px; font-family: var(--font-mono); }
.form-msg.ok { color: var(--teal); }
.form-msg.err { color: var(--danger); }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  color: var(--text-muted);
  font-size: 14px;
}
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
footer.site h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--text); text-transform: uppercase; margin-bottom: 16px; }
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 10px; }
footer.site a:hover { color: var(--gold); }
footer.site .bottom { display: flex; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) {
  footer.site .cols { grid-template-columns: 1fr 1fr; }
}

/* Utility */
.center { text-align: center; }
.mt-lg { margin-top: 48px; }
.text-muted { color: var(--text-muted); }




