/* ============================================================
   HUNTERWHEATON.COM
   Hard, modern, masculine. Deep neutrals, one restrained
   bronze accent. Archivo Expanded display / Archivo text.
   ============================================================ */

:root {
  --bg: #0B0B0C;
  --bg-2: #101012;
  --panel: #17171A;
  --panel-2: #1D1D21;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --ink: #0B0B0C;
  --text: #ECECEE;
  --dim: rgba(236, 236, 238, 0.62);
  --muted: #85858E;

  --accent: #C8863C;
  --accent-soft: rgba(200, 134, 60, 0.14);

  --font-display: "Archivo Expanded", "Archivo", system-ui, sans-serif;
  --font-text: "Archivo", system-ui, -apple-system, sans-serif;

  --step-0: clamp(1.02rem, 0.98rem + 0.22vw, 1.14rem);
  --step-1: clamp(1.25rem, 1.08rem + 0.8vw, 1.65rem);
  --step-2: clamp(1.6rem, 1.3rem + 1.5vw, 2.4rem);
  --step-3: clamp(2.2rem, 1.7rem + 2.6vw, 3.6rem);
  --step-4: clamp(3rem, 2rem + 5.4vw, 5.6rem);

  --space: clamp(5rem, 10vw, 8.5rem);
  --wrap: min(1220px, 92vw);

  --z-nav: 30;
  --z-chrome: 2;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--accent); color: var(--ink); }

.wrap { width: var(--wrap); margin-inline: auto; }

/* ---------- type ---------- */

h1, .h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.02;
  text-wrap: balance;
}

.h2 {
  font-size: var(--step-3);
  max-width: 18ch;
}

p { max-width: 62ch; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1.9rem;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease-out), background 0.35s var(--ease-out),
    color 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.99); }

.btn--amber { background: var(--accent); color: var(--ink); }
.btn--amber:hover { background: #D5964C; }

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--text); background: rgba(255, 255, 255, 0.04); }

.btn--lg { padding: 1.15rem 2.6rem; font-size: 0.98rem; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(11, 11, 12, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav .wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-block: 0.95rem;
}

.brand { display: block; color: var(--text); transition: color 0.25s var(--ease-out); }
.brand svg { height: 15px; width: auto; display: block; }
.brand:hover { color: var(--accent); }

.nav nav { margin-left: auto; }

.nav-links { display: flex; gap: 1.7rem; list-style: none; }

.nav-links a {
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s var(--ease-out);
}
.nav-links a:hover { color: var(--text); }

.nav .btn { padding: 0.6rem 1.25rem; font-size: 0.8rem; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: calc(100dvh - 62px);
  display: flex;
  align-items: center;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

h1 {
  font-size: var(--step-4);
  line-height: 0.94;
  margin-bottom: 1.5rem;
}
.h1-line { display: block; }

.hero-tagline {
  font-family: var(--font-text);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.3;
  max-width: 26ch;
  margin-bottom: 1.2rem;
}

.hero-thesis {
  color: var(--dim);
  max-width: 52ch;
  margin-bottom: 2.2rem;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.hero-alt {
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.hero-alt:hover { color: var(--text); border-color: var(--text); }

.hero-media { position: relative; }

.frame {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
}
.frame img {
  border-radius: 4px;
  width: 100%;
  filter: grayscale(0.15) contrast(1.03);
}

/* ---------- sections ---------- */

.sec { padding-block: var(--space); }

.sec--raised {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---------- watch (VSL) ---------- */

.watch-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.55fr;
  gap: clamp(2rem, 4.5vw, 4.5rem);
  align-items: start;
}

.watch-side .h2 { margin-bottom: 1.1rem; }
.watch-side p { color: var(--dim); }

.vsl-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.vsl-frame.has-embed { border: none; background: #000; }
.vsl-embed, .vsl-embed iframe {
  width: 100%; height: 100%; aspect-ratio: 16 / 9; border: 0; display: block;
}

.vsl-inner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
}
.vsl-inner .big {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: var(--step-2);
  margin-bottom: 0.6rem;
}
.muted-line {
  font-size: 0.9rem;
  color: var(--muted);
}

.pullquote {
  margin-top: 2rem;
  padding-top: 1.7rem;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 1.08rem;
  line-height: 1.55;
  max-width: 70ch;
}

/* ---------- guide (magnet) ---------- */

.magnet-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.magnet-copy .h2 { margin-bottom: 1.4rem; }
.promise { font-size: 1.18rem; font-weight: 600; margin-bottom: 1rem; }
.promise-sub { color: var(--dim); }

.rules { margin-bottom: 2rem; }

.rule {
  display: flex;
  gap: 1.1rem;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding: 1.1rem 0;
}
.rule:last-of-type { border-bottom: 1px solid var(--line); }
.rule-no {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
  flex: 0 0 auto;
  min-width: 2ch;
}
.rule p { font-weight: 600; font-size: 1.05rem; }

.rules-more {
  margin-top: 0.9rem;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.magnet-form { display: flex; gap: 0.7rem; flex-wrap: wrap; }

.field-label {
  display: block;
  flex-basis: 100%;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.magnet-form input {
  flex: 1 1 220px;
  font-family: var(--font-text);
  font-size: 1rem;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 0.95rem 1.1rem;
  transition: border-color 0.2s var(--ease-out);
}
.magnet-form input::placeholder { color: var(--muted); }
.magnet-form input:focus { border-color: var(--accent); outline: none; }

.form-note { margin-top: 0.9rem; font-size: 0.92rem; color: var(--muted); }
.form-note a { color: var(--text); }

.ml-embed { width: 100%; }

/* ---------- how it works (mechanisms) ---------- */

.mech-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.mech {
  border-top: 1px solid var(--line);
  padding: clamp(1.8rem, 3.5vw, 2.8rem) 0;
}
.mech:last-child { border-bottom: 1px solid var(--line); }

.mech:nth-child(2) { padding-left: clamp(0rem, 8vw, 7rem); }
.mech:nth-child(3) { padding-left: clamp(0rem, 16vw, 14rem); }

.mech h3 {
  font-size: var(--step-2);
  line-height: 1.06;
  margin-bottom: 0.9rem;
}
.mech p { color: var(--dim); max-width: 58ch; }

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.about-quote blockquote {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: var(--step-3);
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 15ch;
  text-wrap: balance;
}

.about-body p { color: var(--dim); margin-bottom: 1.1rem; }
.about-body .btn { margin-top: 0.8rem; }

/* ---------- results (proof) ---------- */

.board-head { margin-bottom: clamp(2.2rem, 4.5vw, 3.5rem); }

.notice {
  margin-top: 1.4rem;
  border-left: 2px solid var(--accent);
  padding: 0.3rem 0 0.3rem 1.1rem;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 60ch;
}
.notice strong { color: var(--text); font-weight: 600; }

.wall { columns: 3 260px; column-gap: 1.1rem; }

.tile {
  position: relative;
  break-inside: avoid;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 1.1rem;
  overflow: hidden;
}

.tile--media img,
.tile--video video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  background: var(--ink);
}
.tile--video video { aspect-ratio: 9 / 16; object-fit: cover; }

/* ---------- client breakdowns (embedded YouTube) ---------- */

.case-head { margin-bottom: clamp(2.2rem, 4.5vw, 3.5rem); }

.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.6rem, 3.5vw, 3rem);
  align-items: start;
}

.case {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 8px;
  border-radius: 8px;
}
.case-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
}
.case-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- final CTA ---------- */

.sec--cta {
  border-top: 1px solid var(--line);
  text-align: center;
}
.sec--cta .h2 { margin-inline: auto; margin-bottom: 1.3rem; max-width: 20ch; }
.sec--cta p { margin-inline: auto; color: var(--dim); margin-bottom: 2rem; }
.cta-note {
  display: block;
  margin-top: 1.2rem;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- footer ---------- */

.foot { background: var(--bg-2); border-top: 1px solid var(--line); padding-block: 3rem 2rem; }

.foot-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.foot-brand {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.2rem;
}
.foot-line {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.foot-links { display: flex; gap: 1.7rem; list-style: none; flex-wrap: wrap; }
.foot-links a {
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s var(--ease-out);
}
.foot-links a:hover { color: var(--text); }

.foot-legal { color: var(--muted); font-size: 0.86rem; }

/* ---------- reveal on scroll (JS-gated) ---------- */

html.js .rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
html.js .rv.in { opacity: 1; transform: none; }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .rv { opacity: 1; transform: none; transition: none; }
  .btn, .nav-links a, .foot-links a, .hero-alt, .brand { transition: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-media { max-width: 560px; }
  .watch-grid, .magnet-grid, .about-grid, .case-grid { grid-template-columns: 1fr; }
  .mech:nth-child(2), .mech:nth-child(3) { padding-left: 0; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav .wrap { gap: 1rem; }
  .wall { columns: 1; }
  .about-quote blockquote, .h2 { max-width: none; }
}
