/* Stop Thinking Poor, the mentorship page at /stp. Its own world: ink, bone,
   one signal colour, two typefaces, slow motion. Nothing here links back to
   the rest of the site. */
:root {
  --ink: #0b0b0a;
  --ink-2: #131311;
  --ink-3: #1b1b18;
  --bone: #ede7db;
  --bone-2: #cfc9bd;
  --ash: #9a9890;
  --line: rgba(237, 231, 219, 0.12);
  --line-2: rgba(237, 231, 219, 0.22);
  --signal: #c8442b;       /* the one accent: the dot, the numerals, the button */
  --signal-deep: #b4381f;  /* button fill, bone on it clears AA */
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --gut: 16px;
  --max: 1180px;
  color-scheme: dark;
}
@media (min-width: 700px) { :root { --gut: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (min-width: 1000px) { body { font-size: 18px; } }
::selection { background: var(--signal); color: var(--bone); }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
em { font-style: italic; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 20; background: var(--bone); color: var(--ink); padding: 10px 14px; border-radius: 4px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }

.eyebrow {
  font: 500 12px/1.4 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 18px;
}
.fine { font-size: 14px; line-height: 1.5; color: var(--ash); }

/* The mark */
.mark { display: inline-flex; align-items: center; gap: 14px; }
.mono {
  display: inline-grid; place-items: center;
  height: 34px; padding: 0 9px;
  border: 1px solid var(--line-2);
  font: 600 15px/1 var(--serif);
  letter-spacing: 0.14em;
  padding-left: calc(9px + 0.14em);
  color: var(--bone);
}
.word {
  font: 600 13px/1 var(--serif);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--bone);
  white-space: nowrap;
}

/* The bar */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut)));
  padding-top: max(14px, env(safe-area-inset-top));
  background: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color 0.6s var(--ease);
}
.bar.scrolled { border-bottom-color: var(--line); }
.bar-apply {
  font: 500 13px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; color: var(--bone);
  padding: 11px 0 9px; border-bottom: 1px solid var(--signal);
}
.bar-apply:hover { color: var(--bone-2); }
@media (max-width: 380px) { .word { letter-spacing: 0.26em; font-size: 12px; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 28px;
  background: var(--signal-deep); color: var(--bone);
  border: 0; border-radius: 2px;
  font: 600 15px/1 var(--sans); letter-spacing: 0.06em;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.5s var(--ease), transform 0.5s var(--ease);
}
.btn:hover { background: #a3321b; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Hero */
main { display: block; }
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: 22px var(--gut) 72px;
  display: grid; gap: 26px;
}
.hero h1 {
  font: 500 clamp(40px, 10.6vw, 84px)/1.0 var(--serif);
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.hero h1 em { display: block; color: var(--bone-2); }
.lede { margin-top: 18px; max-width: 34em; color: var(--bone-2); font-size: 16.5px; line-height: 1.55; }
.hero-act { display: grid; gap: 12px; justify-items: start; }
.hero-act .fine { max-width: 30em; }
.hero .eyebrow { margin-bottom: 14px; }

@media (max-width: 699px) {
  /* Above the fold on a phone: the mark, the headline, the line, the video, Apply */
  .hero { display: flex; flex-direction: column; gap: 22px; }
  .hero-copy { display: contents; }
  .hero .eyebrow, .hero h1, .lede { order: 1; }
  .hero .eyebrow { margin-bottom: -8px; }
  .lede { margin-top: -6px; }
  .vsl { order: 2; }
  .hero-act { order: 3; }
  .hero-act .btn { width: 100%; }
}
@media (min-width: 700px) and (max-width: 999px) {
  .hero { padding-top: 40px; }
  .hero-act { margin-top: 30px; }
}
@media (min-width: 1000px) {
  /* The headline across the top, then the line and Apply beside the video */
  .hero {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas: "eb eb" "h1 h1" "copy vsl";
    align-items: start; gap: 0 64px;
    min-height: calc(100svh - 64px);
    align-content: center;
    padding-top: 24px; padding-bottom: 64px;
  }
  .hero-copy { display: contents; }
  .hero .eyebrow { grid-area: eb; }
  .hero h1 { grid-area: h1; font-size: clamp(64px, 5.8vw, 88px); margin-bottom: 44px; }
  .hero h1 em { display: inline; }
  .lede { grid-area: copy; margin-top: 4px; }
  .hero-act { grid-area: copy; align-self: end; margin-top: 0; }
  .vsl { grid-area: vsl; }
}
/* The video */
.vsl { margin: 0; }
.frame {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  background: var(--ink-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.frame video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.hold {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 22px 24px;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(200, 68, 43, 0.07), transparent 60%),
    var(--ink-2);
}
.hold-mono {
  position: absolute; right: -0.06em; bottom: -0.2em;
  font: 600 clamp(110px, 34vw, 260px)/1 var(--serif);
  letter-spacing: 0.02em;
  color: rgba(237, 231, 219, 0.045);
  pointer-events: none; user-select: none;
}
.hold-rec {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 11px/1 var(--sans); letter-spacing: 0.26em; text-transform: uppercase; color: var(--ash);
  margin-bottom: 14px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); animation: breathe 2.8s var(--ease) infinite; }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.hold-line { position: relative; font: italic 500 clamp(26px, 7.2vw, 40px)/1.08 var(--serif); }
.hold-sub { position: relative; margin-top: 10px; max-width: 26em; font-size: 14px; line-height: 1.5; color: var(--ash); }
@media (max-width: 420px) { .hold-sub { font-size: 13px; } .hold { padding: 18px; } .hold-rec { margin-bottom: 10px; } }

/* Sections */
section { scroll-margin-top: 72px; }
.sec-head { max-width: 760px; margin-bottom: 44px; }
.sec-head h2, .apply-head h2 {
  font: 500 clamp(32px, 6.4vw, 54px)/1.06 var(--serif);
  letter-spacing: -0.008em; text-wrap: balance;
}
.pillars, .fit, .how, .voices {
  width: calc(100% - 2 * var(--gut));
  max-width: calc(var(--max) - 2 * var(--gut));
  margin: 0 auto;
  padding: 88px 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 1000px) { .pillars, .fit, .how, .voices { padding-top: 128px; padding-bottom: 128px; } }

/* The pillars: a numbered sequence, each shaped by what it says */
.pillar-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 72px; }
.pillar { display: grid; grid-template-columns: 1fr; gap: 10px; }
.num {
  font: 500 64px/0.9 var(--serif);
  color: var(--signal);
  letter-spacing: 0.02em;
}
.pillar h3 { font: 500 clamp(28px, 5.6vw, 40px)/1.12 var(--serif); margin-bottom: 18px; text-wrap: balance; }
.kicker { display: block; font: 500 12px/1.4 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ash); margin-bottom: 12px; }
.pillar-body { max-width: 680px; }
.pillar-body > p + p, .pillar-body > p + ol, .pillar-body > ol + p, .pillar-body > dl + p { margin-top: 20px; }
.pillar-body p { color: var(--bone-2); }
.clear { list-style: none; counter-reset: c; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--line); }
.clear li { counter-increment: c; position: relative; padding: 16px 0 16px 36px; border-bottom: 1px solid var(--line); color: var(--bone-2); }
.clear li::before { content: counter(c, lower-roman) "."; position: absolute; left: 0; top: 16px; font: italic 500 18px/1.5 var(--serif); color: var(--ash); }
.clear strong { color: var(--bone); font-weight: 500; }
.pull {
  margin-top: 28px !important;
  font: italic 500 clamp(22px, 4.6vw, 28px)/1.3 var(--serif);
  color: var(--bone) !important;
  padding-left: 20px; border-left: 1px solid var(--signal);
}
.pair { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.pair > div { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; align-content: start; }
.pair dt { font: 600 24px/1.2 var(--serif); }
.pair dd { margin: 0; color: var(--bone-2); }
.note { font-size: 15px; color: var(--ash) !important; padding-top: 18px; border-top: 1px solid var(--line); margin-top: 26px !important; }
@media (min-width: 1000px) {
  .pillar { grid-template-columns: 180px minmax(0, 1fr); gap: 40px; }
  .num { font-size: 96px; }
  .pillar-list { gap: 112px; }
  .pillar:nth-child(2) .pillar-body { max-width: 760px; }
  .pair { grid-template-columns: 1fr 1fr; gap: 0 40px; }
}

/* Fit */
.fit-cols { display: grid; gap: 44px; }
.fit-col h3 { font: 500 26px/1.2 var(--serif); margin-bottom: 14px; }
.fit-col ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.fit-col li { padding: 15px 0 15px 26px; border-bottom: 1px solid var(--line); position: relative; color: var(--bone-2); }
.fit-col li::before { content: ""; position: absolute; left: 2px; top: 27px; width: 12px; height: 1px; background: var(--bone); }
.fit-col.not h3 { color: var(--ash); }
.fit-col.not li { color: var(--ash); }
.fit-col.not li::before { background: var(--ash); width: 9px; transform: rotate(45deg); box-shadow: none; }
.fit-col.not li::after { content: ""; position: absolute; left: 2px; top: 27px; width: 9px; height: 1px; background: var(--ash); transform: rotate(-45deg); }
@media (min-width: 900px) { .fit-cols { grid-template-columns: 1fr 1fr; gap: 72px; } }

/* How it works: a sequence, not cards */
.steps { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.steps li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; padding: 26px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step-n { font: italic 500 20px/1.5 var(--serif); color: var(--ash); padding-top: 3px; }
.steps h3 { font: 500 28px/1.2 var(--serif); margin-bottom: 8px; }
.steps p { color: var(--bone-2); max-width: 36em; }
@media (min-width: 1000px) { .steps li { grid-template-columns: 160px minmax(0, 1fr); padding: 34px 0; } .steps h3 { font-size: 32px; } }

/* Testimonials, only when real ones exist */
.voice-list { display: grid; gap: 40px; max-width: 820px; }
.voice blockquote { margin: 0; font: italic 500 clamp(22px, 4.6vw, 30px)/1.3 var(--serif); }
.voice figcaption { margin-top: 12px; font-size: 14px; color: var(--ash); letter-spacing: 0.04em; }

/* The slogan, a hinge into the application */
.slogan {
  border-top: 1px solid var(--line);
  padding: 120px var(--gut);
  text-align: center;
}
.slogan-line {
  font: 500 clamp(44px, 11vw, 132px)/0.98 var(--serif);
  letter-spacing: -0.015em;
}
.slogan-line em { display: block; color: var(--signal); }
@media (min-width: 1000px) { .slogan { padding: 180px var(--gut); } }

/* The application */
.apply { background: var(--ink-2); border-top: 1px solid var(--line); }
.apply-wrap { max-width: 760px; margin: 0 auto; padding: 88px var(--gut) 96px; }
@media (min-width: 1000px) { .apply-wrap { padding: 128px var(--gut) 136px; } }
.apply-head { margin-bottom: 40px; }
.apply-head > p:last-child { margin-top: 16px; color: var(--bone-2); max-width: 34em; }
.form { display: grid; gap: 26px; }
.row.two { display: grid; gap: 26px; }
@media (min-width: 700px) { .row.two { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 10px; min-width: 0; }
.lab { font: 500 13px/1.4 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--bone-2); }
.opt { text-transform: none; letter-spacing: 0.02em; color: var(--ash); font-weight: 400; margin-left: 6px; }
input:not([type="radio"]), textarea {
  width: 100%; min-width: 0;
  background: var(--ink); color: var(--bone);
  border: 1px solid var(--line-2); border-radius: 2px;
  padding: 14px 14px; font: 400 17px/1.4 var(--sans);
  transition: border-color 0.4s var(--ease);
}
textarea { resize: vertical; min-height: 104px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #6f6e68; }
input:focus, textarea:focus { outline: none; border-color: var(--bone); }
.invalid input, .invalid textarea, fieldset.invalid { border-color: var(--signal); }
fieldset { margin: 0; padding: 0; border: 0; }
.choice { display: flex; flex-wrap: wrap; gap: 10px; }
.choice legend { margin-bottom: 12px; padding: 0; }
.choice.invalid .opt-card span { border-color: var(--signal); }
.opt-card { position: relative; flex: 1 1 auto; }
.opt-card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt-card span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; padding: 10px 18px;
  border: 1px solid var(--line-2); border-radius: 2px;
  font: 500 15px/1.3 var(--sans); color: var(--bone-2);
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease), color 0.4s var(--ease);
}
.opt-card input:hover + span { border-color: var(--bone-2); }
.opt-card input:checked + span { border-color: var(--bone); background: var(--bone); color: var(--ink); }
.opt-card input:focus-visible + span { outline: 2px solid var(--bone); outline-offset: 3px; }
@media (max-width: 699px) { .opt-card { flex-basis: 100%; } .opt-card span { justify-content: flex-start; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-err { color: #e8826d; font-size: 15px; }
.submit-row { display: grid; gap: 12px; justify-items: start; margin-top: 6px; }
@media (max-width: 699px) { .submit-row .btn { width: 100%; } }

.done { display: grid; gap: 18px; justify-items: start; }
.done:focus { outline: none; }
.done-h { font: 500 clamp(40px, 8vw, 64px)/1.04 var(--serif); }
.done > p:not(.eyebrow):not(.fine) { color: var(--bone-2); max-width: 32em; }
.done .eyebrow { margin-bottom: 0; color: var(--signal); }
.done .btn { margin-top: 8px; }
@media (max-width: 699px) { .done .btn { width: 100%; } }
.mail-line a { color: var(--bone); text-underline-offset: 3px; }

/* Footer */
.foot {
  max-width: var(--max); margin: 0 auto;
  padding: 56px var(--gut) calc(56px + env(safe-area-inset-bottom));
  display: grid; gap: 14px;
}
.foot > p:not(.fine) { color: var(--bone-2); }
.foot .fine a { color: var(--bone-2); text-underline-offset: 3px; }
.mark.small .mono { height: 28px; font-size: 13px; }
.mark.small .word { font-size: 11px; }

/* Motion: slow and sure, and only when wanted */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero-copy > *, .js .vsl, .js .hero-act { animation: rise 1.2s var(--ease) both; }
.js .hero h1 { animation-delay: 0.08s; }
.js .lede { animation-delay: 0.18s; }
.js .vsl { animation-delay: 0.3s; }
.js .hero-act { animation-delay: 0.42s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .hero-copy > *, .js .vsl, .js .hero-act { animation: none; }
  .dot { animation: none; }
  .btn, .opt-card span, .bar { transition: none; }
}
