/* HOLDFAST: design tokens */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.4rem, 1.1rem + 4vw, 4.75rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  /* Surfaces: charcoal / near-black */
  --bg: #0b0b0c;
  --surface: #111112;
  --surface-2: #17171a;
  --border: #26262a;
  --border-strong: #34343a;

  /* Text: warm off-white */
  --text: #f2ece3;
  --text-muted: #a19a90;
  --text-faint: #6f6a64;

  /* Accent: ember */
  --ember: #d2703a;
  --ember-hover: #e08249;
  --ember-dim: rgba(210, 112, 58, 0.14);
  --bronze: #9a7550;

  --font-display: 'Cabinet Grotesk', 'Satoshi', system-ui, sans-serif;
  --font-body: 'Satoshi', system-ui, -apple-system, sans-serif;

  --radius: 4px;
  --maxw: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-x: hidden; scroll-behavior: smooth; scroll-padding-top: 86px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.02; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-lg); font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: inherit; }
em { font-style: normal; color: var(--ember); }

.wrap { width: min(100% - var(--space-10), var(--maxw)); margin-inline: auto; }
@media (max-width: 640px) { .wrap { width: min(100% - var(--space-8), var(--maxw)); } }

.skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip-path: none; left: var(--space-4); top: var(--space-4); z-index: 100; background: var(--ember); color: #14100c; padding: var(--space-3) var(--space-4); border-radius: var(--radius); }

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

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 12, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner {
  width: min(100% - var(--space-10), var(--maxw)); margin-inline: auto;
  display: flex; align-items: center; gap: var(--space-8);
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--text); }
.mark { width: 26px; height: 26px; color: var(--ember); flex: none; }
.wordmark {
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.nav-links { margin-left: auto; display: flex; gap: var(--space-8); }
.nav-links a {
  font-size: var(--text-sm); color: var(--text-muted); text-decoration: none;
  letter-spacing: .01em; transition: color .2s ease;
}
.nav-links a:hover { color: var(--text); }
@media (max-width: 900px) { .nav-links { display: none; } .nav-inner { gap: var(--space-4); } .btn-sm { margin-left: auto; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-3);
  background: var(--ember); color: #150e08;
  font-family: var(--font-body); font-weight: 700; font-size: var(--text-sm);
  letter-spacing: .04em; text-transform: uppercase;
  padding: var(--space-4) var(--space-8);
  border: 0; border-radius: var(--radius); text-decoration: none; cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: var(--ember-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: var(--space-3) var(--space-5); font-size: var(--text-xs); white-space: nowrap; }
.lbl-short { display: none; }
@media (max-width: 560px) { .lbl-long { display: none; } .lbl-short { display: inline; } .nav-cta { padding-inline: var(--space-6); } }
.btn-block { width: 100%; padding-block: var(--space-5); font-size: var(--text-sm); }
.btn[disabled] { opacity: .75; cursor: progress; transform: none; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-sm); font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-muted); text-decoration: none;
  border-bottom: 1px solid var(--border-strong); padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}
.btn-ghost:hover { color: var(--text); border-color: var(--ember); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center;
  gap: var(--space-16);
  width: min(100% - var(--space-10), var(--maxw)); margin-inline: auto;
  padding-block: clamp(var(--space-16), 7vw, var(--space-32)) clamp(var(--space-16), 7vw, var(--space-24));
  position: relative;
}
.hero::before {
  content: ''; position: absolute; inset: -20% -40% auto -40%; height: 120%;
  background: radial-gradient(60% 50% at 30% 30%, rgba(210,112,58,.10), transparent 70%);
  pointer-events: none; z-index: -1;
}
.eyebrow {
  font-size: var(--text-xs); letter-spacing: .22em; text-transform: uppercase;
  color: var(--ember); font-weight: 700; margin-bottom: var(--space-6);
}
.hero h1 { margin-bottom: var(--space-6); }
.lede { font-size: var(--text-lg); color: var(--text-muted); max-width: 34ch; line-height: 1.5; }
.hero-actions { display: flex; align-items: center; gap: var(--space-8); margin-top: var(--space-10); flex-wrap: wrap; }
.hero-facts {
  list-style: none; margin: var(--space-12) 0 0; padding: var(--space-6) 0 0;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: var(--space-6) var(--space-8);
  font-size: var(--text-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint);
}
.hero-facts li { position: relative; padding-left: var(--space-4); }
.hero-facts li::before { content: ''; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; background: var(--bronze); }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 35%; border-radius: 2px; filter: saturate(.92) contrast(1.03); }
.hero-media-fade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,11,12,.55), transparent 45%); pointer-events: none; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: var(--space-10); padding-top: var(--space-12); }
  .hero-media { order: -1; }
  .hero-media img { aspect-ratio: 4 / 3; object-position: 50% 30%; }
  .lede { max-width: 46ch; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(var(--space-16), 8vw, var(--space-32)); }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.kicker {
  font-size: var(--text-xs); letter-spacing: .22em; text-transform: uppercase;
  color: var(--bronze); font-weight: 700;
}
.section-head { max-width: 40ch; margin-bottom: clamp(var(--space-10), 5vw, var(--space-16)); }
.section-head .kicker { margin-bottom: var(--space-4); }
.section-head .body { margin-top: var(--space-4); max-width: 44ch; }
.stack > * + * { margin-top: var(--space-5); }
.stack .kicker + h2 { margin-top: var(--space-4); }
.stack h2 { margin-bottom: var(--space-2); }
.body { color: var(--text-muted); max-width: 56ch; }
.body.strong { color: var(--text); font-weight: 500; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--space-10), 6vw, var(--space-20)); align-items: center; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } .grid-2-reverse figure { order: 2; } }

.media { margin: 0; }
.media .vsl {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  padding: 0; border: 1px solid var(--border); border-radius: 2px;
  overflow: hidden; cursor: pointer; background: var(--surface-2);
}
.media .vsl img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; filter: saturate(.9); }
.media .vsl iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media .vsl-play {
  position: absolute; inset: 0; margin: auto; width: 76px; height: 76px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--accent, #d2703a); color: #0b0b0c;
  transition: transform .2s ease;
}
.media .vsl:hover .vsl-play { transform: scale(1.08); }
.media .vsl-label {
  position: absolute; left: var(--space-4); bottom: var(--space-4);
  font-size: var(--text-xs); letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: rgba(11,11,12,.72); padding: 6px 10px; border-radius: 2px;
}
.media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; filter: saturate(.9); }
.media figcaption {
  margin-top: var(--space-4); font-size: var(--text-xs); letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-faint);
}

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.pillar {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--space-8);
  display: flex; flex-direction: column; gap: var(--space-4);
  transition: border-color .25s ease, transform .25s ease;
}
.pillar:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.pillar .num {
  font-family: var(--font-display); font-weight: 800; font-size: var(--text-sm);
  letter-spacing: .1em; color: var(--ember);
}
.pillar p { color: var(--text-muted); font-size: var(--text-sm); line-height: 1.6; }
@media (max-width: 1000px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Band ---------- */
.band { position: relative; isolation: isolate; }
.band img { width: 100%; height: clamp(340px, 52vh, 560px); object-fit: cover; object-position: 50% 42%; filter: saturate(.85) brightness(.72); }
.band::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(11,11,12,.9), rgba(11,11,12,.35) 60%, rgba(11,11,12,.75));
  z-index: 1;
}
.band-copy {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: center;
  width: min(100% - var(--space-10), var(--maxw)); margin-inline: auto;
}
.band-copy blockquote {
  margin: 0; max-width: 20ch;
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl);
  line-height: 1.15; letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0,0,0,.6);
}

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-8); counter-reset: s; }
.steps li { border-top: 2px solid var(--border-strong); padding-top: var(--space-6); position: relative; }
.steps li::before { content: ''; position: absolute; top: -2px; left: 0; width: 42px; height: 2px; background: var(--ember); }
.step-n {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: var(--text-sm); letter-spacing: .1em; color: var(--text-faint); margin-bottom: var(--space-4);
}
.steps h3 { margin-bottom: var(--space-3); }
.steps p { color: var(--text-muted); font-size: var(--text-sm); line-height: 1.6; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); gap: var(--space-8) var(--space-6); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Fit ---------- */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.fit-card { border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(var(--space-6), 3vw, var(--space-10)); background: var(--surface-2); }
.fit-card h3 { margin-bottom: var(--space-6); }
.fit-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.fit-card li { position: relative; padding-left: var(--space-8); color: var(--text-muted); font-size: var(--text-sm); line-height: 1.6; }
.fit-card li::before {
  position: absolute; left: 0; top: 0; font-weight: 700; font-size: var(--text-sm);
}
.fit-yes { border-left: 2px solid var(--ember); }
.fit-yes li::before { content: '✓'; color: var(--ember); }
.fit-no { opacity: .92; }
.fit-no li::before { content: '✕'; color: var(--text-faint); }
@media (max-width: 800px) { .fit-grid { grid-template-columns: 1fr; } }

/* ---------- Creds ---------- */
.creds { display: grid; gap: var(--space-4); margin-top: var(--space-8); border-top: 1px solid var(--border); padding-top: var(--space-6); }
.creds div { display: flex; gap: var(--space-4); flex-wrap: wrap; align-items: baseline; }
.creds strong {
  font-size: var(--text-xs); letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-faint); font-weight: 700; min-width: 90px;
}
.creds span { font-size: var(--text-sm); color: var(--text); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: clamp(var(--space-8), 6vw, var(--space-20)); align-items: start; }
.faq-grid .section-head { margin-bottom: 0; position: sticky; top: 110px; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } .faq-grid .section-head { position: static; } }
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: var(--space-6) var(--space-10) var(--space-6) 0;
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg);
  letter-spacing: -.01em; position: relative; transition: color .2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--ember); }
.faq summary::after {
  content: ''; position: absolute; right: var(--space-2); top: 50%; width: 13px; height: 13px;
  border-right: 2px solid var(--ember); border-bottom: 2px solid var(--ember);
  transform: translateY(-70%) rotate(45deg); transition: transform .25s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq p { color: var(--text-muted); padding-bottom: var(--space-6); max-width: 68ch; font-size: var(--text-sm); line-height: 1.7; }

/* ---------- Apply ---------- */
.apply { background: linear-gradient(180deg, var(--bg), #0e0d0d 60%, var(--bg)); }
.apply-wrap { max-width: 780px; margin-inline: auto; }
.apply-head { text-align: center; margin-bottom: var(--space-12); }
.apply-head .kicker { margin-bottom: var(--space-4); }
.apply-head h2 { margin-bottom: var(--space-5); }
.apply-head .body { margin-inline: auto; }

.form {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(var(--space-6), 4vw, var(--space-12));
  display: grid; gap: var(--space-6);
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
@media (max-width: 620px) { .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: var(--space-2); min-width: 0; }
.field label {
  font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 700;
}
.field input, .field select, .field textarea {
  width: 100%; background: #0d0d0e; color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: var(--space-4); font-family: var(--font-body); font-size: var(--text-sm); line-height: 1.5;
  transition: border-color .2s ease, background .2s ease;
}
.field textarea { resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-faint) 50%), linear-gradient(135deg, var(--text-faint) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: var(--space-10); }
.field select option { background: #0d0d0e; color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: #5d5852; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ember); background: #101011; outline: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #b4553f; }
.err { font-size: var(--text-xs); color: #e08a72; min-height: 0; }
.err:empty { display: none; }
.form-error {
  background: var(--ember-dim); border: 1px solid #7a4128; border-radius: var(--radius);
  padding: var(--space-4); font-size: var(--text-sm); color: #f0b79a;
}
.fineprint { font-size: var(--text-xs); color: var(--text-faint); text-align: center; }

.spinner {
  width: 15px; height: 15px; border-radius: 50%; display: none;
  border: 2px solid rgba(21,14,8,.35); border-top-color: #150e08;
  animation: spin .7s linear infinite;
}
.btn.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.success {
  text-align: center; border: 1px solid var(--border); background: var(--surface);
  border-top: 2px solid var(--ember);
  border-radius: var(--radius); padding: clamp(var(--space-10), 6vw, var(--space-20)) clamp(var(--space-6), 4vw, var(--space-12));
  display: grid; gap: var(--space-5); justify-items: center;
  animation: rise .5s cubic-bezier(.22,1,.36,1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.success-mark { width: 52px; height: 52px; color: var(--ember); }
.success h3 { font-size: var(--text-xl); }
.success p { color: var(--text-muted); max-width: 46ch; }
.success .success-sub { color: var(--text-faint); font-size: var(--text-sm); border-top: 1px solid var(--border); padding-top: var(--space-5); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding-block: var(--space-12); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; }
.footer-meta { display: flex; align-items: center; gap: var(--space-6); flex-wrap: wrap; font-size: var(--text-xs); color: var(--text-faint); letter-spacing: .04em; }
.footer-meta a { color: var(--text-muted); text-decoration: none; }
.footer-meta a:hover { color: var(--ember); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
