/* ============================================
   THE FOUNDRY — KSR LANDING PAGE
   Workshop noir, extended.
   Sibling system to the KSR homepage.
   ============================================ */

:root {
  --black: #0a0908;
  --ink: #14110f;
  --char: #1f1c19;
  --char-2: #2a2622;
  --bone: #f4ede4;
  --bone-dim: #c9c0b3;
  --bone-faint: #807769;
  --amber: #f0a44a;
  --amber-deep: #c97a1f;
  --amber-glow: rgba(240, 164, 74, 0.18);
  --rust: #8b2a1a;
  --line: #2a2622;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  overflow-x: clip;
  max-width: 100vw;
}

body {
  /* Scale the whole rendered page by 15%. CSS is px-based throughout
     (so html font-size % wouldn't propagate); zoom is the one-line lever
     that bumps fonts, padding, images, and layout uniformly. Supported
     in all modern browsers including Firefox 126+ (2024). If you ever
     want to dial this back, change just this value. */
  zoom: 1.15;

  background: var(--black);
  color: var(--bone);
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100vw;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* type system */
.display {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.01em;
  line-height: 0.9;
}
.editorial {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 144, 'SOFT' 50, 'WONK' 0;
  line-height: 1;
}
.mono, .label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px;
  font-weight: 500;
  color: var(--bone-faint);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}
.wrap-narrow {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(10, 9, 8, 0.75);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: 1440px;
  margin: 0 auto;
}
.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 0.12em;
  color: var(--bone);
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo .sep {
  color: var(--bone-faint);
  font-size: 18px;
  font-weight: 300;
}
.logo .foundry {
  color: var(--amber);
  letter-spacing: 0.14em;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--bone-dim);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--amber); }
.nav-cta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--black);
  background: var(--amber);
  padding: 10px 18px;
  border: 1px solid var(--amber);
  transition: all 0.2s;
}
.nav-cta:hover {
  background: transparent;
  color: var(--amber);
}
@media (max-width: 800px) {
  .nav-links { display: none; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 120px 0 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--amber-glow) 0%, transparent 60%);
  top: 20%;
  right: -200px;
  filter: blur(60px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}
.hero-eyebrow .line {
  height: 1px;
  width: 48px;
  background: var(--amber);
}
.hero-eyebrow .text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber);
}

.hero-title {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 144, 'SOFT' 40, 'WONK' 0;
  font-weight: 350;
  font-size: clamp(42px, 5.5vw, 76px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--bone);
  margin-bottom: 36px;
  text-wrap: balance;
}
.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--amber);
}
.hero-title .line {
  display: block;
}
.hero-title .break { display: block; }

.hero-sub {
  font-family: 'Newsreader', serif;
  font-size: 19px;
  line-height: 1.55;
  color: var(--bone-dim);
  max-width: 560px;
  margin-bottom: 48px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 18px 28px;
  border: 1px solid var(--amber);
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-primary {
  background: var(--amber);
  color: var(--black);
}
.btn-primary:hover {
  background: transparent;
  color: var(--amber);
}
.btn-secondary {
  background: transparent;
  color: var(--bone);
  border-color: var(--bone-faint);
}
.btn-secondary:hover {
  border-color: var(--amber);
  color: var(--amber);
}
.btn-outline-amber {
  background: transparent;
  color: var(--amber);
  border: 1px solid var(--amber);
}
.btn-outline-amber:hover {
  background: var(--amber);
  color: var(--black);
}
.btn .arrow {
  display: inline-block;
  transition: transform 0.25s;
}
.btn:hover .arrow { transform: translateX(4px); }

/* hero visual — placeholder for hero photograph */
.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--black);
  border: 1px solid var(--line);
  overflow: hidden;
}
.hero-visual img.lockup {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8%;
  z-index: 1;
}
.hero-visual .corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 1px solid var(--amber);
  opacity: 0.7;
}
.hero-visual .corner.tl { top: 14px; left: 14px; border-right: none; border-bottom: none; }
.hero-visual .corner.tr { top: 14px; right: 14px; border-left: none; border-bottom: none; }
.hero-visual .corner.bl { bottom: 14px; left: 14px; border-right: none; border-top: none; }
.hero-visual .corner.br { bottom: 14px; right: 14px; border-left: none; border-top: none; }

.hero-visual .placeholder-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: var(--bone-faint);
}
.hero-visual .placeholder-label .num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 96px;
  color: var(--amber);
  opacity: 0.3;
  line-height: 1;
}
.hero-visual .placeholder-label .txt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-visual .spec-tag {
  position: absolute;
  bottom: 32px;
  left: 32px;
  right: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-faint);
}
.hero-visual .spec-tag .val { color: var(--bone); }

/* ============================================
   SPEC BAND
   ============================================ */
.spec-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink);
}
.spec-band-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1440px;
  margin: 0 auto;
}
.spec-cell {
  padding: 36px 32px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.spec-cell:last-child { border-right: none; }
.spec-cell .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-faint);
}
.spec-cell .value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 38px;
  letter-spacing: 0.04em;
  color: var(--bone);
  line-height: 1;
}
.spec-cell .value .accent { color: var(--amber); }
@media (max-width: 800px) {
  .spec-band-inner { grid-template-columns: repeat(2, 1fr); }
  .spec-cell { border-bottom: 1px solid var(--line); }
  .spec-cell:nth-child(2) { border-right: none; }
}

/* ============================================
   SECTION SCAFFOLDING
   ============================================ */
section { position: relative; max-width: 100vw; overflow-x: clip; }
.section-pad { padding: 120px 0; }
.section-pad-tight { padding: 80px 0; }

.section-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--amber);
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 144, 'SOFT' 40;
  font-weight: 350;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--bone);
  margin-bottom: 24px;
  max-width: 880px;
}
.section-title em {
  font-style: italic;
  color: var(--amber);
  font-weight: 300;
}
.section-title .heading-aside {
  font-size: 0.32em;
  font-style: italic;
  font-weight: 400;
  color: var(--bone-faint);
  letter-spacing: 0;
  vertical-align: 0.25em;
  margin-left: 0.2em;
}
.section-lede {
  font-family: 'Newsreader', serif;
  font-size: 19px;
  line-height: 1.55;
  color: var(--bone-dim);
  max-width: 720px;
}

/* ============================================
   MANIFESTO
   ============================================ */
.manifesto {
  background: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) {
  .manifesto-grid { grid-template-columns: 1fr; gap: 32px; }
}
.manifesto-label {
  align-self: start;
}
.manifesto-label .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--amber);
  margin-bottom: 12px;
}
.manifesto-label .kicker {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 0.04em;
  color: var(--bone);
  line-height: 1;
}
.manifesto-body p {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 32, 'SOFT' 30;
  font-weight: 350;
  font-size: 26px;
  line-height: 1.4;
  color: var(--bone);
  margin-bottom: 28px;
  letter-spacing: -0.005em;
}
.manifesto-body p:last-child { margin-bottom: 0; }
.manifesto-body em {
  font-style: italic;
  color: var(--amber);
}
.manifesto-body .pull {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  font-weight: 300;
  font-style: italic;
  font-size: 36px;
  line-height: 1.25;
  color: var(--amber);
  border-left: 2px solid var(--amber);
  padding-left: 28px;
  margin: 40px 0;
}

/* ============================================
   THE EMBER (amp section)
   ============================================ */
.ember-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 720px) {
  .ember-grid { grid-template-columns: 1fr; }
}
.ember-visual {
  aspect-ratio: 1/1;
  background: linear-gradient(160deg, var(--char) 0%, var(--ink) 100%);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.ember-visual .corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1px solid var(--amber);
  opacity: 0.6;
}
.ember-visual .corner.tl { top: 16px; left: 16px; border-right: none; border-bottom: none; z-index: 2; }
.ember-visual .corner.br { bottom: 16px; right: 16px; border-left: none; border-top: none; z-index: 2; }
.ember-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
/* Rear-panel photo under the spec list. The column stretches to the front
   photo's height and the image is contained on black, so both columns end
   level; the list's own 32px bottom margin spaces it. On one-column phones
   it falls back to the photo's shape. */
.ember-specs {
  align-self: stretch;
  display: flex;
  flex-direction: column;
}
.ember-rear {
  position: relative;
  flex: 1 1 auto;
  min-height: 220px;
  background: #000;
  border: 1px solid var(--line);
}
.ember-rear img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media (max-width: 720px) {
  .ember-rear { flex: none; min-height: 0; aspect-ratio: 594 / 325; }
}
/* Real photos of a built Ember under the spec list. Sources are padded to
   4:3 on black, so cover never crops the amp. */
.ember-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}
@media (max-width: 720px) {
  .ember-strip { grid-template-columns: 1fr; }
}
.ember-strip figure {
  aspect-ratio: 4/3;
  background: #000;
  border: 1px solid var(--line);
  overflow: hidden;
}
.ember-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ember-visual .placeholder-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}
.ember-visual .placeholder-label .word {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 80px;
  letter-spacing: 0.04em;
  color: var(--amber);
  opacity: 0.35;
  line-height: 1;
}
.ember-visual .placeholder-label .meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--bone-faint);
  text-transform: uppercase;
}
.ember-meta {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-faint);
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.ember-meta .val { color: var(--bone); }


/* ============================================
   THE 4-DAY ARC
   ============================================ */
.arc {
  background: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.arc-header { margin-bottom: 80px; }

.day {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  gap: 60px;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.day:last-child { border-bottom: none; }
@media (max-width: 1000px) {
  .day { grid-template-columns: 1fr; gap: 32px; }
}

.day-marker .num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 88px;
  color: var(--amber);
  line-height: 0.9;
  letter-spacing: 0.02em;
}
.day-marker .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bone-faint);
  margin-top: 8px;
}

.day-main h3 {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 100, 'SOFT' 40;
  font-weight: 350;
  font-size: 36px;
  line-height: 1.05;
  color: var(--bone);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.day-main h3 em {
  font-style: italic;
  color: var(--amber);
  font-weight: 300;
}
.day-main p {
  font-size: 20px;
  line-height: 1.55;
  color: var(--bone-dim);
  margin-bottom: 16px;
}
.day-main p:last-child { margin-bottom: 0; }

.day-blocks {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.block {
  margin-bottom: 22px;
}
.block:last-child { margin-bottom: 0; }
.block-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 4px;
}
.block-title {
  font-family: 'Newsreader', serif;
  font-size: 19px;
  color: var(--bone);
  line-height: 1.4;
}
.block-title .desc {
  color: var(--bone-faint);
  display: block;
  font-size: 17px;
  margin-top: 2px;
}

/* ============================================
   WHAT YOU TAKE HOME
   ============================================ */
.takehome-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
}
@media (max-width: 900px) {
  .takehome-grid { grid-template-columns: 1fr; }
}
.takehome-card {
  background: var(--ink);
  border: 1px solid var(--line);
  padding: 40px 32px;
  position: relative;
  transition: border-color 0.3s;
}
.takehome-card:hover { border-color: var(--amber); }
.takehome-card .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--amber);
  margin-bottom: 32px;
}
.takehome-card .icon-wrap {
  aspect-ratio: 1/1;
  background: var(--char);
  border: 1px solid var(--line);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.takehome-card .icon-wrap svg { width: 56%; height: 56%; }
/* Photo cards (Ember, Tools) fill the square frame edge-to-edge. */
.takehome-card .icon-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* The Agency card is a symbolic mark, not a photo — a soft amber glow
   behind it gives the icon-wrap the same visual weight as the photos. */
.takehome-card .icon-wrap.icon-glow {
  background:
    radial-gradient(circle at 50% 50%, var(--amber-glow) 0%, transparent 62%),
    var(--char);
}
.takehome-card h4 {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 72;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.1;
  margin-bottom: 12px;
  color: var(--bone);
}
.takehome-card h4 em {
  font-style: italic;
  color: var(--amber);
}
.takehome-card p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--bone-dim);
}

/* ============================================
   PROBE PULL QUOTE
   ============================================ */
.probe-pull {
  background: var(--black);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.probe-pull::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--amber-glow) 0%, transparent 60%);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  filter: blur(80px);
  pointer-events: none;
}
.probe-pull-text {
  position: relative;
  z-index: 2;
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 144, 'SOFT' 60, 'WONK' 0;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.15;
  color: var(--bone);
  max-width: 900px;
  margin: 0 auto;
  padding: 0 32px;
}
.probe-pull-text .amber { color: var(--amber); }
.probe-pull-attrib {
  position: relative;
  z-index: 2;
  margin-top: 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

/* ============================================
   INSTRUCTORS
   ============================================ */
.instructors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 64px;
}
@media (max-width: 900px) {
  .instructors-grid { grid-template-columns: 1fr; }
}
.instructor {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
}
@media (max-width: 600px) {
  .instructor { grid-template-columns: 1fr; }
}
.instructor-photo {
  aspect-ratio: 4/5;
  background: var(--char);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.instructor-photo .corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid var(--amber);
  opacity: 0.5;
}
.instructor-photo .corner.tl { top: 10px; left: 10px; border-right: none; border-bottom: none; z-index: 2; }
.instructor-photo .corner.br { bottom: 10px; right: 10px; border-left: none; border-top: none; z-index: 2; }
.instructor-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.instructor-photo .ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--bone-faint);
  text-transform: uppercase;
}
.instructor-body .role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
}
.instructor-body .name {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 72;
  font-weight: 400;
  font-size: 32px;
  line-height: 1;
  color: var(--bone);
  margin-bottom: 16px;
}
.instructor-body p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--bone-dim);
}

/* ============================================
   COHORTS / PRICING
   ============================================ */
.cohorts {
  background: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cohorts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 64px;
}
@media (max-width: 900px) {
  .cohorts-grid { grid-template-columns: 1fr; }
}
/* Completed cohort: dimmed, desaturated, and non-interactive — a record on
   the page, not something to book. The .complete card drops its CTAs (there's
   a static wrapped-note instead) so nothing here is clickable. */
.cohort.complete {
  opacity: 0.55;
  filter: saturate(0.55);
}
.cohort.complete:hover { border-color: var(--line); }
.cohort.complete .badge {
  background: var(--bone-faint);
  color: var(--black);
}
.cohort-complete-note {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-faint);
}
.cohort {
  background: var(--black);
  border: 1px solid var(--line);
  padding: 48px 40px;
  position: relative;
  transition: border-color 0.3s;
}
.cohort.featured { border-color: var(--amber); }
.cohort:hover { border-color: var(--amber); }
.cohort .badge {
  position: absolute;
  top: -1px;
  right: -1px;
  background: var(--amber);
  color: var(--black);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 8px 14px;
  font-weight: 600;
}
.cohort-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--amber);
  margin-bottom: 14px;
}
.cohort-dates {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 44px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--bone);
  margin-bottom: 8px;
}
.cohort-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--bone-faint);
  letter-spacing: 0.18em;
  margin-bottom: 36px;
}
.cohort-pricing {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 28px;
}
.cohort-price {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 144;
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  color: var(--bone);
}
.cohort-price .strike {
  color: var(--bone-faint);
  text-decoration: line-through;
  font-size: 26px;
  margin-right: 12px;
}
.cohort-price-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--bone-faint);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.cohort-includes {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-bottom: 32px;
}
.cohort-includes li {
  font-family: 'Newsreader', serif;
  font-size: 18px;
  color: var(--bone-dim);
  list-style: none;
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
}
.cohort-includes li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--amber);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}
.cohort-seats {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-faint);
  margin-bottom: 24px;
}
.cohort-seats .filled { color: var(--amber); }

/* Stacked CTA pair — primary Reserve button (deposit, solid amber) on top,
   secondary Pay-in-Full (outline amber) below. Replaces the previous inline
   width:100% + tiny "or pay in full" link pattern. */
.cohort-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cohort-cta .btn {
  width: 100%;
  justify-content: center;
}

/* Paired hover: inside .cohort-cta the filled state follows the cursor.
   Default — deposit filled, full outline. Hovering deposit KEEPS it filled
   (this overrides the global .btn-primary:hover which would otherwise
   invert it to outline). Hovering Pay-in-Full swaps both: the outline
   button becomes filled (via its own :hover) and the primary becomes
   outline (via the :has() rule). Net effect: the button under the cursor
   is always the filled one — clear "this is the one you'd click" signal.
   :has() is in every modern browser (Chrome/Edge 105+, Safari 15.4+,
   Firefox 121+); older browsers gracefully fall back to the prior
   independent-hover behavior. */
.cohort-cta .btn-primary:hover {
  background: var(--amber);
  color: var(--black);
}
.cohort-cta:has(.btn-outline-amber:hover) .btn-primary {
  background: transparent;
  color: var(--amber);
}

/* Sold-out state — set by main.js after /api/seats returns sold_out=true.
   Hides the CTA pair and reveals a centered "this cohort is full" callout. */
.cohort-sold-out {
  display: none;
  text-align: center;
  padding: 18px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-faint);
}
.cohort-sold-out a {
  color: var(--amber);
  border-bottom: 1px solid var(--amber);
  padding-bottom: 1px;
}
.cohort.sold-out .cohort-cta { display: none; }
.cohort.sold-out .cohort-sold-out { display: block; }

/* ============================================
   ADVANCED TEASER
   ============================================ */
.advanced {
  background: var(--black);
}
.advanced-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
@media (max-width: 900px) {
  .advanced-grid { grid-template-columns: 1fr; }
}
.adv-card {
  background: var(--ink);
  border: 1px solid var(--line);
  padding: 32px 28px;
  transition: all 0.3s;
}
.adv-card:hover {
  border-color: var(--amber);
  transform: translateY(-2px);
}
.adv-card .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--amber);
  letter-spacing: 0.22em;
  margin-bottom: 24px;
}
.adv-card h4 {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 72;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.1;
  color: var(--bone);
  margin-bottom: 12px;
}
.adv-card h4 em {
  font-style: italic;
  color: var(--amber);
}
.adv-card .duration {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-faint);
  margin-bottom: 16px;
}
.adv-card p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--bone-dim);
  margin-bottom: 20px;
}
.adv-card .price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: var(--bone);
  letter-spacing: 0.02em;
}
.bundle-note {
  margin-top: 40px;
  padding: 24px 32px;
  border-left: 2px solid var(--amber);
  background: var(--ink);
  font-family: 'Newsreader', serif;
  font-size: 19px;
  color: var(--bone-dim);
  line-height: 1.5;
}
.bundle-note strong {
  color: var(--bone);
  font-weight: 600;
}
.bundle-note .amber { color: var(--amber); font-weight: 500; }

/* ============================================
   FAQ
   ============================================ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 56px;
  margin-top: 56px;
}
@media (max-width: 800px) {
  .faq-grid { grid-template-columns: 1fr; }
}
details.faq {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  cursor: pointer;
}
details.faq summary {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 32;
  font-weight: 400;
  font-size: 18px;
  color: var(--bone);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: '+';
  color: var(--amber);
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  line-height: 1;
  transition: transform 0.25s;
}
details.faq[open] summary::after {
  content: '−';
}
details.faq p {
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--bone-dim);
  max-width: 540px;
}

/* ============================================
   CLOSING / WAITLIST
   ============================================ */
.closing {
  background: var(--ink);
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}
.closing::before {
  content: '';
  position: absolute;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--amber-glow) 0%, transparent 70%);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  filter: blur(80px);
  pointer-events: none;
}
.closing-inner {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 32px;
}
.closing-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 28px;
}
.closing-title {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 144, 'SOFT' 40;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.1;
  color: var(--bone);
  margin-bottom: 24px;
  letter-spacing: -0.015em;
}
.closing-title .amber { color: var(--amber); }
.closing-sub {
  font-size: 18px;
  color: var(--bone-dim);
  margin-bottom: 48px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* signup form (closing section)
   Shaped to match the bordered-card aesthetic the rest of the page uses
   (.cohort, .adv-card, .takehome-card): 1 px line border on a dark
   background, generous inner padding, mono-caps labels, serif inputs.
   Native <select> styled with appearance:none + an amber chevron. */
.signup-form {
  max-width: 560px;
  margin: 0 auto;
  background: var(--black);
  border: 1px solid var(--line);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  text-align: left;
  transition: border-color 0.3s;
}
.signup-form:focus-within { border-color: var(--amber); }

.signup-form .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.signup-form .field-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

/* Email input + textarea share the same look. */
.signup-form input[type="email"],
.signup-form textarea {
  background: transparent;
  border: 1px solid var(--bone-faint);
  color: var(--bone);
  font-family: 'Newsreader', serif;
  font-size: 17px;
  padding: 14px 18px;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
}
.signup-form textarea {
  font-size: 15px;
  line-height: 1.5;
  resize: vertical;
  min-height: 80px;
}
.signup-form input[type="email"]::placeholder,
.signup-form textarea::placeholder {
  color: var(--bone-faint);
  font-style: italic;
}
.signup-form input[type="email"]:focus,
.signup-form textarea:focus {
  border-color: var(--amber);
}

/* <select> matches the input look: appearance:none drops the native
   widget; the chevron lives on the wrapper so the select stays transparent. */
.signup-form .select-wrap { position: relative; }
.signup-form .select-wrap::after {
  content: '\25BE'; /* ▾ */
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--amber);
  pointer-events: none;
  font-size: 14px;
}
.signup-form select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: transparent;
  border: 1px solid var(--bone-faint);
  color: var(--bone);
  font-family: 'Newsreader', serif;
  font-size: 17px;
  padding: 14px 38px 14px 18px;
  outline: none;
  width: 100%;
  cursor: pointer;
  transition: border-color 0.2s;
}
.signup-form select:focus { border-color: var(--amber); }
.signup-form select option { background: var(--ink); color: var(--bone); }

/* Honeypot — visually hidden, focus-disabled. Real users never see it. */
.signup-form .honeypot {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Submit button fills the card width — matches the cohort CTA pattern
   (.cohort-cta .btn { width: 100% }) so the whole site reads one way. */
.signup-submit {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
}

/* The "no spam" line sits OUTSIDE the bordered form, centered below it,
   same mono-caps style as cohort dot indicators. */
.signup-note {
  margin-top: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--bone-faint);
  text-transform: uppercase;
  text-align: center;
}

/* In-place success state — main.js sets .signup-form.done and replaces
   the form's innerHTML with the success text. The card stays the same
   shape, just shifts to amber-glow. */
.signup-form.done {
  align-items: center;
  justify-content: center;
  border-color: var(--amber);
  background: var(--amber-glow);
  padding: 48px 40px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  text-align: center;
  gap: 0;
}
.signup-form.error input[type="email"] { border-color: var(--rust); }
.signup-error {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--black);
  border-top: 1px solid var(--line);
  padding: 48px 0 36px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-tag {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 0.16em;
  color: var(--bone);
}
.footer-tag span { color: var(--amber); }
.footer-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

/* ============================================
   FADE-IN ON SCROLL
   Only initial-hidden when JS is active (main.js sets html.js).
   Without JS the content shows immediately — no flash, no broken page.
   ============================================ */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.js .reveal.in {
  opacity: 1;
  transform: translateY(0);
}
