/* ==========================================================================
   Cold Founder — coldfounder.io
   --------------------------------------------------------------------------
   Design language: typography-led, editorial, asymmetric. Black + white base,
   a single deep red (#CC0000) used ONLY for CTAs and small accents.
   Deliberately avoids: icon boxes, gradients, uniform shadowed card grids,
   center-everything layouts, and repeated section rhythm. Sections vary in
   structure and in light/dark treatment on purpose.
   Type: Space Grotesk (display) + Inter (body/UI). Hairline rules for
   structure instead of shadows.
   ========================================================================== */

:root {
  --black: #0A0A0A;
  --true-black: #000000;
  --white: #FFFFFF;
  --paper: #FAFAFA;          /* barely-there off-white for the odd section */

  --ink: #0A0A0A;            /* primary text on light */
  --muted: #5C5C5C;          /* secondary text on light */
  --faint: #9B9B9B;          /* tertiary / indices on light */
  --line: #E6E6E6;           /* hairline on light */

  --on-dark: #FFFFFF;
  --on-dark-muted: rgba(255, 255, 255, 0.62);
  --on-dark-faint: rgba(255, 255, 255, 0.40);
  --line-dark: rgba(255, 255, 255, 0.16);

  --red: #CC0000;
  --red-hover: #B00000;

  --font-display: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(4.5rem, 10vw, 9rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--red); color: #fff; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Micro-label: uppercase, tracked. Red variant for accent moments. */
.label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}
.label--red { color: var(--red); }
.label--ondark { color: var(--on-dark-faint); }

/* Tabular index numerals */
.num {
  font-family: var(--font-display);
  font-weight: 500;
  font-feature-settings: "tnum" 1;
}

/* ---------- Buttons & inline links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0.9rem 1.6rem;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-hover); transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--ink); }
.btn--ondark.btn--outline { color: #fff; border-color: var(--line-dark); }
.btn--ondark.btn--outline:hover { border-color: #fff; }

/* Text link with animated arrow */
.arrow-link {
  font-family: var(--font-display);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
}
.arrow-link .ar { color: var(--red); transition: transform 150ms ease; }
.arrow-link:hover .ar { transform: translateX(4px); }
.arrow-link--ondark { color: #fff; }

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav__logo img { height: 22px; width: auto; display: block; }

.nav__links { display: flex; align-items: center; gap: 2.2rem; }
.nav__links a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 150ms ease;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--ink); }
.nav__cta {
  color: var(--red) !important;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.nav__cta::after { content: "\2192"; }

.nav__toggle {
  display: none;
  background: none; border: none; padding: 6px; cursor: pointer;
}
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform 200ms ease, opacity 200ms ease; }
.is-nav-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.is-nav-open .nav__toggle span:nth-child(2) { opacity: 0; }
.is-nav-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero  (light, left-aligned, asymmetric — not centered)
   ========================================================================== */

.hero { padding: clamp(4rem, 9vw, 8rem) 0 clamp(3.5rem, 7vw, 6rem); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}
.hero__label { margin-bottom: 1.6rem; }
.hero h1 {
  font-size: clamp(2.7rem, 7.2vw, 5.4rem);
  max-width: 16ch;
  margin-bottom: 1.6rem;
}
.hero__sub {
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  color: var(--muted);
  max-width: 42ch;
  margin-bottom: 2.4rem;
}
.hero__actions { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }

/* Thin meta row under the hero — adds structure without a card */
.hero__meta {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}
.hero__meta div { max-width: 22ch; }
.hero__meta dt { font-family: var(--font-display); font-weight: 500; font-size: 0.95rem; margin-bottom: 0.25rem; }
.hero__meta dd { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ==========================================================================
   "What You Could Build" — editorial numbered index (NO icon boxes)
   ========================================================================== */

.models { padding: var(--section-y) 0; }
.models__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.models__head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.models__head p { color: var(--muted); max-width: 40ch; }

.model-row {
  display: grid;
  grid-template-columns: 64px minmax(180px, 0.9fr) minmax(0, 1.5fr) 28px;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: baseline;
  padding: clamp(1.6rem, 3.2vw, 2.4rem) 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.models .model-row:last-of-type { border-bottom: 1px solid var(--line); }
.model-row__index { font-size: 1rem; color: var(--faint); transition: color 150ms ease; }
.model-row__name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.1;
  transition: transform 200ms ease;
}
.model-row__desc { color: var(--muted); font-size: 1.02rem; max-width: 52ch; }
.model-row__mark { color: var(--red); opacity: 0; transition: opacity 180ms ease, transform 180ms ease; align-self: center; font-size: 1.1rem; }
.model-row:hover .model-row__index { color: var(--red); }
.model-row:hover .model-row__name { transform: translateX(6px); }
.model-row:hover .model-row__mark { opacity: 1; transform: translateX(2px); }

/* ==========================================================================
   Process preview — two-column, label left / phases right (a different rhythm)
   ========================================================================== */

.procprev { padding: var(--section-y) 0; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.procprev__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
}
.procprev__aside h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 1.2rem; }
.procprev__aside p { color: var(--muted); margin-bottom: 1.6rem; max-width: 30ch; }

.phase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.phase-item {
  padding: clamp(1.4rem, 2.6vw, 2rem) clamp(1.4rem, 2.6vw, 2rem) clamp(1.4rem, 2.6vw, 2rem) 0;
  border-top: 1px solid var(--line);
}
.phase-item__label { color: var(--red); margin-bottom: 0.7rem; }
.phase-item h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; margin-bottom: 0.4rem; }
.phase-item p { color: var(--muted); font-size: 0.96rem; }

/* ==========================================================================
   Mission "Why We Exist" — pure black, text-led, big statement
   ========================================================================== */

.mission { background: var(--true-black); color: var(--on-dark); padding: clamp(5rem, 11vw, 10rem) 0; }
.mission__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.5fr) minmax(0, 1.5fr);
  gap: clamp(1.5rem, 5vw, 4rem);
}
.mission__grid > .label { padding-top: 0.5rem; color: #fff; }
.mission__body { max-width: 60ch; }
.mission__body p { color: var(--on-dark-muted); font-size: clamp(1.05rem, 1.7vw, 1.3rem); margin-bottom: 1.5rem; }
.mission__body p strong { color: var(--on-dark); font-weight: 600; }
.mission__kicker {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem) !important;
  line-height: 1.12;
  color: var(--on-dark) !important;
  margin-top: 2.5rem !important;
}
.mission__kicker .accent { color: var(--red); }

/* ==========================================================================
   Closing CTA — asymmetric: headline left, action right
   ========================================================================== */

.closing { padding: var(--section-y) 0; }
.closing__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}
.closing h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); max-width: 16ch; }
.closing__action { padding-bottom: 0.4rem; }
.closing__action p { color: var(--muted); margin-bottom: 1.4rem; }

/* ==========================================================================
   Interior page intro (Process / Results / Apply / legal)
   ========================================================================== */

.pintro { padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.pintro .label { margin-bottom: 1.4rem; }
.pintro h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); max-width: 18ch; }
.pintro p { color: var(--muted); max-width: 52ch; margin-top: 1.4rem; font-size: 1.1rem; }

/* ==========================================================================
   Process page — large ghost numbers, generous space
   ========================================================================== */

.phases { padding: var(--section-y) 0; }
.phase-block {
  display: grid;
  grid-template-columns: minmax(0, 0.5fr) minmax(0, 1.5fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--line);
}
.phases .phase-block:last-child { border-bottom: 1px solid var(--line); }
.phase-block__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.5rem, 9vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line);
  text-stroke: 1.5px var(--line);
}
.phase-block__label { color: var(--red); margin-bottom: 1rem; }
.phase-block h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 1rem; }
.phase-block p { color: var(--muted); font-size: 1.08rem; max-width: 54ch; }

/* ==========================================================================
   Results page — one featured quote + two secondary (varied hierarchy)
   ========================================================================== */

.results { padding: var(--section-y) 0; }

.result-feature {
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.result-feature__quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.result-feature__meta .metric {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}
.result-feature__meta .metric-label { color: var(--red); margin-bottom: 1.6rem; }
.result-feature__meta .person { font-family: var(--font-display); font-weight: 500; }
.result-feature__meta .person span { display: block; color: var(--muted); font-weight: 400; font-size: 0.92rem; margin-top: 0.2rem; }

.result-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.result-cell { padding-top: 1.6rem; border-top: 1px solid var(--line); }
.result-cell .metric { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; letter-spacing: -0.02em; margin-bottom: 0.2rem; }
.result-cell .metric-label { color: var(--red); margin-bottom: 1.2rem; }
.result-cell blockquote { margin: 0 0 1.4rem; color: var(--muted); font-size: 1rem; }
.result-cell .person { font-family: var(--font-display); font-weight: 500; font-size: 0.95rem; }
.result-cell .person span { display: block; color: var(--muted); font-weight: 400; font-size: 0.88rem; margin-top: 0.15rem; }

.results__note {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 60ch;
}
.results__note a { color: var(--red); }

/* ==========================================================================
   Apply page — asymmetric: copy left, form right (bordered, not shadowed)
   ========================================================================== */

.apply { padding: var(--section-y) 0; }
.apply__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.apply__aside h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.apply__aside p { color: var(--muted); }
.apply__steps { list-style: none; padding: 0; margin: 2rem 0 0; }
.apply__steps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
}
.apply__steps li:last-child { border-bottom: 1px solid var(--line); }
.apply__steps .num { color: var(--red); }

.form { border: 1px solid var(--line); border-radius: 6px; padding: clamp(1.6rem, 4vw, 2.6rem); }
.field { margin-bottom: 1.5rem; }
.field label { display: block; font-family: var(--font-display); font-weight: 500; font-size: 0.92rem; margin-bottom: 0.55rem; }
.field label .req { color: var(--red); }
.field input, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.8rem 0.9rem;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field textarea { resize: vertical; min-height: 116px; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.12);
}

.consent {
  display: flex; gap: 0.7rem; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 4px; padding: 1rem 1.1rem; margin-bottom: 1.5rem;
}
.consent input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--red); cursor: pointer; }
.consent label { font-size: 0.85rem; line-height: 1.55; color: var(--muted); cursor: pointer; }
.consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

.form__note { font-size: 0.85rem; color: var(--muted); margin-top: 1.1rem; }
.form__note a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

.form-success { text-align: left; padding: 1rem 0; }
.form-success .tick { width: 46px; height: 46px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 1.4rem; }
.form-success h2 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.form-success p { color: var(--muted); }

/* ==========================================================================
   Legal pages
   ========================================================================== */

.legal { padding: var(--section-y) 0; }
.legal__body { max-width: 720px; }
.legal__updated { color: var(--faint); font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 2.5rem; }
.legal__body h2 { font-size: 1.35rem; margin-top: 2.8rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.legal__body h2:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.legal__body h3 { font-family: var(--font-display); font-size: 1.05rem; margin-top: 1.6rem; }
.legal__body p, .legal__body li { color: var(--muted); }
.legal__body p { margin-bottom: 1rem; }
.legal__body strong { color: var(--ink); font-weight: 600; }
.legal__body ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.legal__body li { margin-bottom: 0.5rem; }
.legal__body li::marker { color: var(--red); }
.legal__body a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.legal__highlight { border-left: 2px solid var(--red); padding: 0.4rem 0 0.4rem 1.3rem; margin: 1.2rem 0; }
.legal__highlight p { color: var(--ink); margin: 0; }

/* ==========================================================================
   Footer — black, bookends the page
   ========================================================================== */

.footer { background: var(--true-black); color: var(--on-dark-muted); padding: clamp(3rem, 6vw, 5rem) 0 2rem; }
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line-dark);
}
.footer__brand img { height: 22px; width: auto; margin-bottom: 1.2rem; }
.footer__brand p { color: var(--on-dark-muted); max-width: 32ch; font-size: 0.95rem; }
.footer__col h4 { font-family: var(--font-display); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-faint); margin: 0 0 1rem; }
.footer__col a { display: block; color: var(--on-dark-muted); padding: 0.35rem 0; font-size: 0.95rem; transition: color 150ms ease; }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  padding-top: 1.6rem; font-size: 0.85rem; color: var(--on-dark-faint);
}
.footer__bottom nav { display: flex; gap: 1.4rem; }
.footer__bottom a { color: var(--on-dark-faint); transition: color 150ms ease; }
.footer__bottom a:hover { color: #fff; }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms ease, transform 600ms ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .models__head { grid-template-columns: 1fr; gap: 1rem; }
  .procprev__grid { grid-template-columns: 1fr; }
  .mission__grid { grid-template-columns: 1fr; }
  .mission__grid > .label { padding-top: 0; }
  .closing__grid { grid-template-columns: 1fr; align-items: start; }
  .phase-block { grid-template-columns: 1fr; gap: 0.8rem; }
  .phase-block__num { font-size: clamp(3rem, 14vw, 5rem); }
  .result-feature { grid-template-columns: 1fr; }
  .apply__grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .model-row { grid-template-columns: 40px 1fr; gap: 0.5rem 1rem; }
  .model-row__index { grid-row: 1; }
  .model-row__name { grid-column: 2; }
  .model-row__desc { grid-column: 2; margin-top: 0.5rem; }
  .model-row__mark { display: none; }
  .phase-grid { grid-template-columns: 1fr; }
  .result-secondary { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 2rem; }

  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 0.5rem 0 1rem; display: none;
  }
  .is-nav-open .nav__links { display: flex; }
  .nav__links a { padding: 0.85rem var(--gutter); font-size: 1.05rem; }
}
