/* =============================================================================
   Fractional DevRel — shared styles for index.html and resources.html.

   The audience toggle repaints the page through --accent alone: it defaults to
   blue on :root and flips amber under body.mode-client. Pages without the
   toggle (resources.html) simply inherit the blue default.
   ============================================================================= */

:root {
  --bone: #F4F4F2;
  --bone-deep: #EBEBE7;
  --black: #000000;
  --ink: #0A0A0A;
  --mute: #6B7280;
  --line: #000000;
  --blue: #2241FF;
  --blue-deep: #1A33CC;
  /* Client (hiring) accent — a warm amber that reads clearly distinct from
     the talent-track blue, so the audience switch is obvious at a glance. */
  --amber: #F2600C;
  --amber-deep: #D14E02;
  /* The live accent. Follows the audience toggle: blue for DevRel talent,
     amber for companies hiring. Everything themeable references --accent. */
  --accent: var(--blue);
  --accent-deep: var(--blue-deep);
  /* Height of the sticky nav: the CTA button (41px) + 16px padding top/bottom +
     its 1.5px border. Anything else that pins below the nav offsets by this. */
  --nav-h: 74px;
}

/* Client (hiring) mode repaints every accent amber. */
body.mode-client {
  --accent: var(--amber);
  --accent-deep: var(--amber-deep);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bone);
  color: var(--black);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ============ TOP NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bone);
  border-bottom: 1.5px solid var(--black);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  /* Not space-between: the audience switch has to sit next to the mark on the
     left, not float into the middle. .nav-right claims the gap instead. */
  justify-content: flex-start;
}

.nav-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--black);
}

.mark-dot {
  width: 28px;
  height: 28px;
  display: block;
}

.nav-name {
  font-family: 'Funnel Display', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
}

/* The links + audience CTA, pushed to the far right by the auto margin. */
.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.nav-link {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  color: var(--black);
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--accent); }

.nav-cta {
  background: var(--black);
  color: var(--bone);
  padding: 10px 20px;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--accent); }

/* ============ CONTAINER ============ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ============ SECTION META ============ */
.meta {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  display: flex;
  align-items: center;
  gap: 14px;
}

.meta-num {
  color: var(--accent);
  font-weight: 700;
}

.meta-line {
  flex: 1;
  height: 1px;
  background: var(--black);
  max-width: 80px;
}

/* ============ HERO ============ */
.hero {
  padding: 88px 0 120px;
  position: relative;
}

h1.hero-title {
  font-family: 'Funnel Display', sans-serif;
  font-size: clamp(64px, 11.5vw, 168px);
  line-height: 0.86;
  font-weight: 800;
  letter-spacing: -0.045em;
  max-width: 14ch;
  color: var(--black);
  opacity: 0;
  animation: fadeUp 1s ease-out 0.2s forwards;
}

h1.hero-title .blue { color: var(--accent); }

.hero-deck {
  margin-top: 56px;
  max-width: 620px;
  font-family: 'DM Sans', sans-serif;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 400;
  margin-left: auto;
  opacity: 0;
  animation: fadeUp 1s ease-out 0.35s forwards;
}

.hero-deck strong { font-weight: 600; }

.hero-form-wrap {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  opacity: 0;
  animation: fadeUp 1s ease-out 0.5s forwards;
}

.hero-form {
  display: flex;
  border: 1.5px solid var(--black);
}

.hero-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 18px 22px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--black);
  outline: none;
}

.hero-form input::placeholder { color: var(--mute); }

.hero-form button {
  background: var(--black);
  color: var(--bone);
  border: none;
  padding: 18px 28px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.hero-form button:hover { background: var(--accent); }

.hero-micro {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--mute);
  line-height: 1.5;
}

/* ============ THESIS ============ */
.thesis {
  padding: 120px 0;
  border-top: 1.5px solid var(--black);
  position: relative;
}

.thesis-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 96px;
  margin-top: 56px;
  align-items: start;
}

.thesis h2 {
  font-family: 'Funnel Display', sans-serif;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.thesis h2 .blue { color: var(--accent); }

.thesis-body {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
}

.thesis-body p { margin-bottom: 18px; }
.thesis-body p:last-child { margin-bottom: 0; font-weight: 600; }

.thesis-cases {
  margin: 32px 0;
  padding-left: 24px;
  border-left: 1.5px solid var(--black);
}

.thesis-case {
  padding: 10px 0;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
}

.thesis-case strong {
  color: var(--accent);
  font-weight: 700;
  margin-right: 8px;
}

/* ============ BUILDING ============ */
.building {
  padding: 120px 0;
  border-top: 1.5px solid var(--black);
  background: var(--bone-deep);
}

.building h2 {
  font-family: 'Funnel Display', sans-serif;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.045em;
  margin-top: 56px;
  margin-bottom: 80px;
  max-width: 14ch;
}

.building h2 .blue { color: var(--accent); }

.building-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px;
  background: var(--black);
  border: 1.5px solid var(--black);
}

.b-item {
  background: var(--bone-deep);
  padding: 48px 40px 40px;
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.b-num {
  font-family: 'Funnel Display', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.b-item h3 {
  font-family: 'Funnel Display', sans-serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  line-height: 1.05;
}

.b-item p {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink);
  margin-top: auto;
}

/* ============ FOUNDING (BLUE PANEL) ============ */
.founding {
  background: var(--accent);
  color: var(--bone);
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}

.founding .meta { color: rgba(244,244,242,0.7); }
.founding .meta-num { color: var(--bone); }
.founding .meta-line { background: rgba(244,244,242,0.4); }

.founding-head {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  margin-top: 56px;
  align-items: end;
  margin-bottom: 96px;
}

.founding h2 {
  font-family: 'Funnel Display', sans-serif;
  font-size: clamp(56px, 9vw, 144px);
  line-height: 0.84;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--bone);
}

.founding-lede {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(244,244,242,0.9);
}

.perks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: rgba(244,244,242,0.25);
  border: 2px solid rgba(244,244,242,0.25);
}

.perk {
  background: var(--accent);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}

.perk-num {
  font-family: 'Funnel Display', sans-serif;
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 24px;
  color: var(--bone);
  opacity: 0.6;
}

.perk h3 {
  font-family: 'Funnel Display', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--bone);
}

.perk p {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(244,244,242,0.85);
  margin-top: auto;
}

/* ============ QUALIFIES ============ */
.qualifies {
  padding: 120px 0;
  border-top: 1.5px solid var(--black);
}

.qualifies h2 {
  font-family: 'Funnel Display', sans-serif;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.045em;
  margin-top: 56px;
  margin-bottom: 64px;
  max-width: 18ch;
}

.qualifies h2 .blue { color: var(--accent); }

.qual-list {
  list-style: none;
  border-top: 1.5px solid var(--black);
}

.qual-list li {
  border-bottom: 1.5px solid var(--black);
  padding: 28px 0;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  align-items: baseline;
}

.qual-num {
  font-family: 'Funnel Display', sans-serif;
  font-weight: 800;
  font-size: 30px;
  color: var(--accent);
  letter-spacing: -0.04em;
}

.qual-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 19px;
  line-height: 1.45;
  color: var(--black);
  font-weight: 500;
}

/* ============ FAQ ============ */
.faq {
  padding: 120px 0;
  border-top: 1.5px solid var(--black);
  background: var(--bone-deep);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 96px;
  margin-top: 56px;
  align-items: start;
}

.faq h2 {
  font-family: 'Funnel Display', sans-serif;
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -0.04em;
  position: sticky;
  top: 100px;
}

.faq h2 .blue { color: var(--accent); }

.faq-items {
  border-top: 1.5px solid var(--black);
}

.faq-item {
  border-bottom: 1.5px solid var(--black);
  padding: 32px 0;
}

.faq-q {
  font-family: 'Funnel Display', sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 14px;
  color: var(--black);
}

.faq-a {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
}

/* ============ FINAL CTA (BLACK) ============ */
.final {
  background: var(--black);
  color: var(--bone);
  padding: 140px 0 120px;
  position: relative;
}

.final .meta { color: rgba(244,244,242,0.5); }
.final .meta-num { color: var(--accent); }
.final .meta-line { background: rgba(244,244,242,0.3); }

.final-head {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 80px;
  margin-top: 56px;
  margin-bottom: 80px;
  align-items: end;
}

.final h2 {
  font-family: 'Funnel Display', sans-serif;
  font-size: clamp(64px, 10vw, 160px);
  line-height: 0.84;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--bone);
}

.final h2 .blue { color: var(--accent); }

.final-lede {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(244,244,242,0.7);
}

.final-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 760px;
}

.final-form input,
.final-form textarea {
  background: transparent;
  border: 1.5px solid rgba(244,244,242,0.3);
  padding: 18px 22px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--bone);
  outline: none;
  transition: border-color 0.2s;
}

.final-form textarea { resize: vertical; min-height: 92px; line-height: 1.5; }

.final-form input::placeholder,
.final-form textarea::placeholder { color: rgba(244,244,242,0.5); }
.final-form input:focus,
.final-form textarea:focus { border-color: var(--accent); }
.final-form input.full,
.final-form textarea.full { grid-column: 1 / -1; }

.final-submit {
  grid-column: 1 / -1;
  background: var(--accent);
  color: var(--bone);
  border: none;
  padding: 22px 28px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
}

.final-submit:hover { background: var(--bone); color: var(--black); }

.final-micro {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(244,244,242,0.5);
  margin-top: 18px;
}

/* ============ FOOTER ============ */
footer {
  background: var(--black);
  color: rgba(244,244,242,0.5);
  padding: 32px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  border-top: 1px solid rgba(244,244,242,0.15);
}

footer .mark-dot { opacity: 0.9; }

.footer-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--bone);
}

.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  color: rgba(244,244,242,0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--bone); }

/* ============ FORM STATES ============ */
.form-success {
  padding: 18px 22px;
  border: 1.5px solid var(--accent);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--black);
}

.form-error {
  margin-top: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #c0392b;
}

/* Dark sections (final CTA + dialog) invert the palette */
.final .form-success,
.apply-dialog .form-success { border-color: var(--bone); color: var(--bone); }
.final .form-error,
.apply-dialog .form-error { color: #ff9a9a; }

/* ============ APPLY DIALOG ============ */
.apply-dialog {
  border: 1.5px solid var(--accent);
  background: var(--black);
  color: var(--bone);
  padding: 0;
  max-width: 620px;
  width: calc(100% - 48px);
  margin: auto; /* restore centering the global `* { margin: 0 }` reset removes */
}

.apply-dialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
}

.dialog-inner {
  padding: 48px 44px 44px;
  position: relative;
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: transparent;
  border: none;
  color: rgba(244, 244, 242, 0.6);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
}
.dialog-close:hover { color: var(--bone); }

.dialog-title {
  font-family: 'Funnel Display', sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--bone);
  max-width: 12ch;
}
.dialog-title .blue { color: var(--accent); }

.dialog-lede {
  margin-top: 16px;
  margin-bottom: 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(244, 244, 242, 0.7);
}

.dialog-form { max-width: none; }

/* ============ CONSENT BANNER ============ */
.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: var(--bone);
  border-top: 1.5px solid var(--black);
  animation: fadeUp 0.4s ease-out;
}

.consent-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.consent-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  max-width: 760px;
}

.consent-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.consent-actions button {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  padding: 12px 24px;
  cursor: pointer;
  border: 1.5px solid var(--black);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.consent-decline {
  background: transparent;
  color: var(--black);
}
.consent-decline:hover { background: var(--bone-deep); }

.consent-accept {
  background: var(--accent);
  color: var(--bone);
  border-color: var(--accent);
}
.consent-accept:hover { background: var(--black); border-color: var(--black); }

/* ============ AUDIENCE TOGGLE (talent <-> hiring) ============ */
.hero-top {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 56px;
  opacity: 0;
  animation: fadeUp 0.8s ease-out 0.1s forwards;
}

.hero-top .meta { flex: 0 1 auto; }

/* The "I want to:" cue + the switch, in the nav beside the mark. ONE copy for
   the whole site — it used to be duplicated in each hero, which meant it
   vanished from view as soon as you scrolled past the fold. */
.nav-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 28px;
  flex-shrink: 0;
}

.switch-hint {
  font-family: 'Funnel Display', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.015em;
  color: var(--black);
  white-space: nowrap;
}

/* Two EQUAL columns, not flex: the sliding thumb is a fixed 50% wide, so halves
   that size to their own label ("Do DevRel" 95px vs "Hire DevRel" 103px) leave
   the accent block sitting a few px off its text. Auto-width grid resolves both
   1fr tracks to the wider label's max-content, so the halves match and nothing
   clips. */
.switch {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex-shrink: 0;
  border: 1.5px solid var(--black);
  background: var(--bone);
  padding: 0;
  isolation: isolate;
}

.switch-thumb {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 50%;
  background: var(--accent);
  z-index: 0;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), background 0.32s;
}
body.mode-client .switch-thumb { transform: translateX(100%); }

/* Single-line at nav scale. The old hero version stacked a second line of
   sub-copy under each label; that reads as a 84px-tall sticky bar, so the
   labels carry it alone and the group's aria-label spells out the choice. */
.switch-opt {
  position: relative;
  z-index: 1;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px 16px;
  text-align: center;
  font-family: 'Funnel Display', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.015em;
  line-height: 1.35;
  transition: color 0.25s;
  color: var(--black);
  white-space: nowrap;
}

.switch-opt.is-active { color: var(--bone); }

/* ============ AUDIENCE VISIBILITY ============ */
.client-only { display: none !important; }
body.mode-client .client-only { display: revert !important; }
body.mode-client .talent-only { display: none !important; }

/* ============ CLIENT FORM (find-a-DevRel-now opt-in) ============ */
.optin {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  border: 1.5px solid rgba(244,244,242,0.3);
  padding: 16px 18px;
  margin-top: 2px;
  transition: border-color 0.2s, background 0.2s;
}

.optin input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.optin-box {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 1.5px solid rgba(244,244,242,0.5);
  position: relative;
  transition: background 0.2s, border-color 0.2s;
}

.optin input:checked + .optin-box { background: var(--accent); border-color: var(--accent); }
.optin input:checked + .optin-box::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid var(--bone);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.optin input:focus-visible + .optin-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.optin:has(input:checked) { border-color: var(--accent); }

.optin-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(244,244,242,0.72);
}

.optin-text strong {
  display: block;
  font-family: 'Funnel Display', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--bone);
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}

/* Client hero form lives on the bone background — relight inputs + cards. */
.hero .final-form input,
.hero .final-form textarea {
  border-color: var(--black);
  color: var(--black);
}
.hero .final-form input::placeholder,
.hero .final-form textarea::placeholder { color: var(--mute); }
.hero .final-form input:focus,
.hero .final-form textarea:focus { border-color: var(--accent); }
.hero .final-submit { background: var(--accent); color: var(--bone); }
.hero .final-submit:hover { background: var(--black); color: var(--bone); }

.hero .optin { border-color: var(--black); }
.hero .optin-box { border-color: var(--black); }
.hero .optin input:checked + .optin-box { background: var(--accent); border-color: var(--accent); }
.hero .optin:has(input:checked) { border-color: var(--accent); }
.hero .optin-text { color: var(--ink); }
.hero .optin-text strong { color: var(--black); }

.client-hero-form .final-form { max-width: none; }
.client-hero-form { margin-top: 8px; }

/* The client hero starts hidden (talent is default), so its fade-in animation
   may never run. Keep its content statically visible so it always renders
   when the visitor toggles to the hiring track. */
.hero.client-only .hero-top,
.hero.client-only .hero-title,
.hero.client-only .hero-deck,
.hero.client-only .hero-form-wrap {
  opacity: 1;
  animation: none;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .nav { padding: 12px 20px; }
  .nav-name { display: none; }
  /* Hiding .nav-name frees the room the links need. The resources CTA also
     drops to just "Submit →" — at its full length it blows past a 390px nav. */
  .nav-right { gap: 12px; }
  .nav-link { font-size: 13px; }
  .nav-cta { padding: 9px 12px; font-size: 13px; }
  .nav-cta-long { display: none; }
  .container { padding: 0 24px; }
  .hero { padding: 56px 0 72px; }
  .hero-deck { margin-left: 0; margin-top: 32px; font-size: 17px; }
  .hero-form-wrap { grid-template-columns: 1fr; gap: 24px; margin-top: 40px; }
  .hero-form { flex-direction: column; }
  .hero-form button { width: 100%; }

  .thesis, .qualifies, .faq, .founding, .building { padding: 72px 0; }
  .thesis-grid, .faq-grid, .founding-head, .final-head { grid-template-columns: 1fr; gap: 40px; }
  .building-grid, .perks { grid-template-columns: 1fr; }
  .final-form { grid-template-columns: 1fr; }
  .final { padding: 80px 0 64px; }
  .faq h2 { position: static; }
  .qual-list li { grid-template-columns: 56px 1fr; gap: 18px; }
  .qual-text { font-size: 17px; }
  footer { flex-direction: column; gap: 12px; text-align: center; }
  .dialog-inner { padding: 40px 24px 32px; }
  .consent-inner { flex-direction: column; align-items: flex-start; gap: 16px; padding: 18px 24px; }
  .consent-actions { width: 100%; }
  .consent-actions button { flex: 1; }

  .hero-top { flex-direction: column; align-items: stretch; gap: 18px; margin-bottom: 36px; }

  /* The mark, links and CTA already fill a phone-width nav, so the switch takes
     a full second row underneath rather than being squeezed in beside them. */
  .nav { flex-wrap: wrap; row-gap: 12px; }
  .nav-switch { order: 3; width: 100%; margin-left: 0; gap: 10px; }
  .switch { flex: 1 1 auto; }
  .switch-opt { min-width: 0; padding: 9px 8px; }
}

/* ============ RESOURCES PAGE ============ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-link.is-current { color: var(--accent); }

.res-hero { padding: 96px 0 72px; }

.res-title {
  margin-top: 40px;
  font-family: 'Funnel Display', sans-serif;
  font-size: clamp(52px, 8vw, 116px);
  line-height: 0.88;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--black);
}
.res-title .blue { color: var(--accent); }

.res-lede {
  margin-top: 40px;
  max-width: 620px;
  font-family: 'DM Sans', sans-serif;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
  margin-left: auto;
}
.res-lede strong { font-weight: 600; }

.res-browse {
  padding: 0 0 120px;
  border-top: 1.5px solid var(--black);
  padding-top: 48px;
}

/* The filter bar sticks directly under the nav so the controls stay reachable
   while scrolling a long list. Offsetting by less than --nav-h tucks the top of
   the bar behind the nav, which outranks it on z-index. */
.res-controls {
  position: sticky;
  top: var(--nav-h);
  z-index: 20;
  background: var(--bone);
  padding: 20px 0 24px;
  margin-bottom: 16px;
  border-bottom: 1.5px solid var(--black);
}

.res-search {
  width: 100%;
  max-width: 420px;
  background: transparent;
  border: 1.5px solid var(--black);
  padding: 14px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--black);
  outline: none;
  transition: border-color 0.2s;
}
.res-search::placeholder { color: var(--mute); }
.res-search:focus { border-color: var(--accent); }

.res-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.res-chip {
  background: transparent;
  border: 1.5px solid var(--black);
  color: var(--black);
  padding: 7px 14px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.res-chip:hover { border-color: var(--accent); color: var(--accent); }
.res-chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bone);
}
.res-chip-clear {
  border-style: dashed;
  color: var(--mute);
}
.res-chip-clear:hover { border-color: var(--black); color: var(--black); }

.res-count {
  margin-top: 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}

.res-status {
  padding: 22px;
  border: 1.5px solid var(--black);
  background: var(--bone-deep);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  margin-bottom: 24px;
}

.res-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.res-card {
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--black);
  padding: 26px 24px 22px;
  text-decoration: none;
  color: var(--black);
  background: var(--bone);
  transition: background 0.15s, transform 0.15s;
}
.res-card:hover {
  background: var(--bone-deep);
  transform: translateY(-2px);
}
.res-card:hover .res-name { color: var(--accent); }

.res-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.res-name {
  font-family: 'Funnel Display', sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  transition: color 0.15s;
}

.res-host {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: var(--mute);
  white-space: nowrap;
  flex-shrink: 0;
}

.res-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  flex: 1;
}

.res-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.res-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--mute);
  border: 1px solid rgba(107,114,128,0.4);
  padding: 3px 8px;
}

.res-empty {
  grid-column: 1 / -1;
  padding: 48px 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: var(--mute);
}

@media (max-width: 860px) {
  .res-hero { padding: 64px 0 48px; }
  .res-lede { margin-left: 0; margin-top: 32px; font-size: 17px; }
  .res-controls { position: static; }
  .res-grid { grid-template-columns: 1fr; }
}
