/* =========================================================================
   Top Dev Remote — Editorial design system
   Structure: live McMurry & Hughes (left rail, ruled sections, typographic hero)
   Visual prototype: talent.top-dev-remote.com (navy, periwinkle, peach, paper)
   Radii: 8px buttons/inputs, 12px cards/panels, 999px filter pills
   ========================================================================= */

:root {
  /* TDR Palette mapped to MH roles */
  --paper: #FCFCFA;
  --bone: #F4F3FA;
  --field: #E7E6F4;
  --peach: #FFE5D9;
  --ink: #222573;
  --accent: #686DF3;
  --accent-dark: #4F54D8;
  --accent-soft: #B9BCFF;
  --slate: #36344D;
  --mid: #727586;

  --hair: rgba(34, 37, 115, 0.20);
  --hair-soft: rgba(34, 37, 115, 0.09);
  --hair-rev: rgba(252, 252, 250, 0.24);
  --hair-soft-rev: rgba(252, 252, 250, 0.12);

  /* Typography */
  --sans: 'Archivo', Arial, sans-serif;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* Geometry */
  --r-btn: 8px;
  --r-card: 12px;
  --r-pill: 999px;

  /* Spatial system */
  --wrapmax: 1320px;
  --gutter: 24px;
  --rail: 52px;
  --rail-gap: 32px;
  --band: clamp(56px, 6.8vw, 96px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.56;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: 12px;
  border-radius: 0 0 var(--r-btn) 0;
}
.skip:focus { left: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrapmax);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (min-width: 1180px) {
  .wrap {
    padding-left: calc(var(--rail) + var(--rail-gap));
    padding-right: 40px;
  }
}

/* ── Left editorial rail (desktop >= 1180px) ───────────────────────────── */
.rail {
  display: none;
}

@media (min-width: 1180px) {
  .rail {
    position: fixed;
    left: max(16px, calc((100vw - var(--wrapmax)) / 2 + 16px));
    top: 126px;
    width: var(--rail);
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 5;
    pointer-events: auto;
  }
  .rail__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mid);
    padding: 3px 0;
    transition: color 0.15s var(--ease);
  }
  .rail__item::before {
    content: "";
    width: 12px;
    height: 1px;
    background: var(--hair);
    transition: width 0.2s var(--ease), background-color 0.2s var(--ease);
  }
  .rail__item:hover,
  .rail__item.is-active {
    color: var(--ink);
    font-weight: 600;
  }
  .rail__item.is-active::before {
    width: 20px;
    background: var(--accent);
    height: 2px;
  }
}

/* ── Header / Navigation (matches talent.top-dev-remote.com) ───────────── */
.nav {
  height: 92px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--ink);
  color: #fff;
  position: relative;
  z-index: 20;
}

.nav__in {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.mark img {
  width: 64px;
  height: 64px;
}
.mark__meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.mark__name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}
.mark__sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 32px);
  font-size: 14px;
  font-weight: 600;
}
.nav__links a.nav__link {
  position: relative;
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.84);
  transition: color 0.15s var(--ease);
  white-space: nowrap;
}
.nav__links a.nav__link:hover,
.nav__links a.nav__link.is-active {
  color: #fff;
}
.nav__links a.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 3px;
  border-radius: 4px;
  background: var(--accent);
}
.nav__ext {
  font-family: var(--mono);
  font-size: 11px;
  margin-left: 3px;
  color: var(--accent-soft);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--r-btn);
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.15s var(--ease), transform 0.15s var(--ease);
}
.nav__cta:hover {
  background: #fff;
  color: var(--ink);
}
.nav__cta.is-active {
  box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--accent-soft);
}

.nav__toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: var(--r-btn);
  background: transparent;
  color: #fff;
  padding: 8px 15px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 960px) {
  .nav { height: 78px; }
  .mark img { width: 54px; height: 54px; }
  .mark__meta { display: flex; max-width: 12.5rem; }
  .mark__name { font-size: 13px; }
  .mark__sub { font-size: 8px; letter-spacing: 0.1em; }
  .nav__toggle { display: inline-flex; align-items: center; }
  .nav__links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 78px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--gutter) 24px;
    background: var(--ink);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a.nav__link {
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .nav__links a.nav__link.is-active::after {
    left: 0;
    right: auto;
    width: 28px;
    bottom: 10px;
  }
  .nav__cta {
    margin-top: 14px;
    text-align: center;
    padding: 12px 18px;
  }
}

/* ── Typography & labels ───────────────────────────────────────────────── */
.label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid);
}
.label--accent { color: var(--accent); }
.label--ink { color: var(--ink); }
.label--rev { color: var(--accent-soft); }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.say--xl {
  font-size: clamp(38px, 5.2vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.048em;
  text-wrap: balance;
}
.say--l {
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.say--m {
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.032em;
}
.say--s {
  font-size: clamp(19px, 1.8vw, 23px);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.hl { color: var(--accent); }

.standfirst {
  margin: 0;
  max-width: 52ch;
  font-size: clamp(17px, 1.45vw, 20px);
  font-weight: 400;
  line-height: 1.48;
  color: var(--slate);
}
.small {
  margin: 0;
  font-size: 15px;
  line-height: 1.56;
  color: var(--slate);
}

/* ── Buttons & text actions (8px radius) ───────────────────────────────── */
.btnrow {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 22px;
  border-radius: var(--r-btn);
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.15s var(--ease);
}
.btn:hover {
  background: var(--ink);
  color: var(--paper);
}
.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.btn--navy {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.btn--navy:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn--rev {
  border-color: rgba(255, 255, 255, 0.72);
  color: #fff;
}
.btn--rev:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}
.btn--s {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 14px;
}

.act {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
  text-decoration-color: var(--hair);
  transition: text-decoration-color 0.15s var(--ease), color 0.15s var(--ease);
}
.act:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}
.act--rev {
  color: #fff;
  text-decoration-color: var(--hair-rev);
}
.act--rev:hover {
  color: var(--peach);
  text-decoration-color: var(--peach);
}

/* ── Sections & MH ruled headers ───────────────────────────────────────── */
.section {
  padding: var(--band) 0;
  border-bottom: 1px solid var(--hair-soft);
}
.section--bone { background: var(--bone); }
.section--ink {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 0;
}
.section--ink h2,
.section--ink h3 { color: #fff; }
.section--ink .standfirst,
.section--ink .small { color: rgba(252, 252, 250, 0.82); }

.shead {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 12px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--hair);
  min-height: 54px;
  margin-bottom: clamp(32px, 4vw, 52px);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.shead__n { color: var(--accent); font-weight: 600; }
.shead__t { color: var(--ink); }
.shead__r { color: var(--mid); text-align: right; }

@media (max-width: 640px) {
  .shead {
    grid-template-columns: 36px 1fr;
    padding: 10px 0;
  }
  .shead__r {
    grid-column: 2;
    text-align: left;
  }
}

/* ── Hero (matches talent.top-dev-remote.com diagonal peach wash + MH layout) ── */
.hero {
  padding: clamp(48px, 6.5vw, 96px) 0 clamp(32px, 4vw, 52px);
  border-bottom: 1px solid var(--ink);
  background: linear-gradient(135deg, var(--paper) 0 70%, var(--peach) 70% 100%);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__say { margin: 16px 0 24px; }
.hero__sub { margin-bottom: 28px; }

/* Framed Market/Talent Window (12px corners) */
.window {
  margin: 0;
}
.window__obj {
  position: relative;
  width: 100%;
  aspect-ratio: 1.22;
  border: 2px solid var(--ink);
  border-radius: var(--r-card);
  background: rgba(255, 255, 255, 0.88);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(34, 37, 115, 0.08);
}
.window__searched {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44%;
  height: 44%;
  background: var(--peach);
  border-top: 1.5px solid var(--ink);
  border-right: 1.5px solid var(--ink);
  border-top-right-radius: 8px;
}
.window__searchedlab {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.window__searchedlab b { display: block; font-weight: 600; }
.window__beyondlab {
  position: absolute;
  right: 16px;
  top: 14px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}
.window__region {
  position: absolute;
  right: 16px;
  bottom: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
}
.dot {
  position: absolute;
  border-radius: 3px;
}
.dot--local {
  width: 8px;
  height: 8px;
  background: rgba(34, 37, 115, 0.35);
}
.dot--remote {
  width: 12px;
  height: 12px;
  background: var(--accent);
}
.dot--remote.dot--lg { width: 15px; height: 15px; }
.dot--remote.dot--sm { width: 9px; height: 9px; }

.window__cap {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}
.caption {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.caption::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2px;
  display: inline-block;
}
.caption--local::before { background: var(--peach); border: 1px solid var(--ink); }
.caption--remote::before { background: var(--accent); }

.hero__foot {
  margin-top: clamp(32px, 4.5vw, 56px);
  padding-top: 18px;
  border-top: 1px solid var(--hair);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
}
.hero__foot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}

@media (max-width: 900px) {
  .hero {
    background: linear-gradient(155deg, var(--paper) 0 78%, var(--peach) 78% 100%);
  }
  .hero__grid { grid-template-columns: 1fr; }
  .window { max-width: 520px; }
}

/* ── Page header (inner pages) ─────────────────────────────────────────── */
.phead {
  padding: clamp(44px, 5.5vw, 80px) 0;
  border-bottom: 1px solid var(--ink);
  background: linear-gradient(135deg, var(--paper) 0 78%, var(--peach) 78% 100%);
}
.phead__say { margin: 14px 0 20px; }
.phead__meta {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}

/* ── Cards, Grids & Ruled Ledgers (12px card radius) ───────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.5vw, 32px);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.5vw, 28px);
}
@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.card:hover {
  border-color: var(--ink);
  box-shadow: 0 8px 24px rgba(34, 37, 115, 0.06);
}
.card--peach {
  background: linear-gradient(180deg, var(--paper) 0%, #FFF7F3 100%);
  border-color: var(--ink);
}
.card--bone {
  background: var(--bone);
}
.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hair-soft);
}
.card__body h3 { margin-bottom: 10px; }
.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hair);
  background: var(--paper);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--slate);
}
.pill--accent {
  border-color: var(--accent);
  color: var(--accent);
}
.pill--ink {
  border-color: var(--ink);
  color: var(--ink);
}

/* Split layout (MH style: statement left, ruled ledger right) */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: start;
}
.split__side p { margin-top: 16px; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
}

/* Ruled ledger table / list */
.ledger {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--ink);
}
.ledger tr {
  border-bottom: 1px solid var(--hair);
}
.ledger td, .ledger th {
  padding: 18px 12px 18px 0;
  vertical-align: top;
  text-align: left;
  font-size: 15px;
  line-height: 1.54;
  color: var(--slate);
}
.ledger td.n {
  width: 44px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  padding-top: 20px;
}
.ledger td.t {
  width: 28%;
  font-weight: 700;
  color: var(--ink);
  padding-right: 18px;
}
@media (max-width: 640px) {
  .ledger, .ledger tbody, .ledger tr, .ledger td { display: block; width: 100%; }
  .ledger tr { padding: 16px 0; }
  .ledger td { padding: 4px 0; }
  .ledger td.t { width: 100%; font-size: 17px; }
}

/* Ruled steps (3 columns) */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
}
.step {
  border-top: 2px solid var(--ink);
  padding-top: 18px;
}
.step__n {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
}
.step h3 { margin-bottom: 10px; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
}

/* ── Jobs table & filter bar ───────────────────────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 28px;
}
.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-btn {
  border: 1.5px solid var(--ink);
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--ink);
  padding: 8px 16px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.filter-btn:hover,
.filter-btn[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.role-list {
  display: grid;
  gap: 20px;
}
.role-card {
  background: var(--paper);
  border: 1.5px solid var(--hair);
  border-radius: var(--r-card);
  padding: clamp(22px, 3vw, 32px);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.8fr);
  gap: 24px 36px;
  align-items: center;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.role-card:hover {
  border-color: var(--ink);
  box-shadow: 0 8px 26px rgba(34, 37, 115, 0.06);
}
.role-card[hidden] { display: none; }
.role-card__specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--hair-soft);
}
.spec span {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 3px;
}
.spec strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.role-card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
@media (max-width: 820px) {
  .role-card { grid-template-columns: 1fr; }
  .role-card__specs { grid-template-columns: 1fr; }
}

/* ── Talent Desk Preview Box ───────────────────────────────────────────── */
.desk-preview {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-card);
  padding: clamp(24px, 3.5vw, 40px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 28px 40px;
  align-items: center;
}
.desk-preview__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.desk-preview__panel {
  background: var(--bone);
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  padding: 22px;
}
.desk-preview__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hair-soft);
  font-size: 14px;
}
.desk-preview__row:last-child { border-bottom: 0; }
.desk-preview__row span { font-family: var(--mono); font-size: 11px; color: var(--mid); text-transform: uppercase; letter-spacing: 0.1em; }
.desk-preview__row strong { color: var(--ink); font-weight: 600; text-align: right; }
@media (max-width: 860px) {
  .desk-preview { grid-template-columns: 1fr; }
}

/* ── Interview Guide Videos & Rules ────────────────────────────────────── */
.video-card {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.video-card__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  overflow: hidden;
}
.video-card__frame img,
.video-card__frame iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  display: block;
}
.video-card__play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 14px;
  background: linear-gradient(180deg, rgba(34, 37, 115, 0.04) 40%, rgba(34, 37, 115, 0.45) 100%);
  color: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  cursor: pointer;
  transition: background-color 0.15s var(--ease);
}
.video-card__play:hover { background: rgba(34, 37, 115, 0.56); }
.video-card__play-badge {
  padding: 10px 18px;
  border-radius: var(--r-btn);
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.video-card__body {
  padding: 18px 22px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* ── Contact Form (8px inputs & buttons, 12px aside card) ──────────────── */
.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: clamp(28px, 4.5vw, 60px);
  align-items: start;
}
@media (max-width: 860px) {
  .form-grid { grid-template-columns: 1fr; }
}
.form {
  display: grid;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1.5px solid var(--hair);
  border-radius: var(--r-btn);
  background: #fff;
  padding: 12px 14px;
  font-size: 16px;
  color: var(--ink);
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  background: var(--paper);
}
.field__help {
  font-size: 13px;
  color: var(--mid);
  margin: 0;
}
.form__status {
  padding: 12px 14px;
  border-radius: var(--r-btn);
  border: 1px solid var(--hair);
  background: var(--bone);
  font-size: 14px;
  color: var(--ink);
}
.form__status:empty { display: none; }

.notice {
  border: 1px solid var(--ink);
  border-radius: var(--r-card);
  background: var(--peach);
  padding: 18px 20px;
  font-size: 14px;
  color: var(--ink);
}

/* ── Closing Promise Band ──────────────────────────────────────────────── */
.promise {
  padding: clamp(56px, 7.5vw, 108px) 0;
}
.promise__sub {
  margin: 18px 0 28px;
  max-width: 52ch;
}

/* ── Footer (Navy #222573, MH multi-column + TDR mark) ─────────────────── */
.foot {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(48px, 6vw, 72px) 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.foot__grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) repeat(4, minmax(0, 1fr));
  gap: 32px 24px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--hair-soft-rev);
}
@media (max-width: 1000px) {
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__brand-col { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .foot__grid { grid-template-columns: 1fr; }
}
.foot__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.foot__brand img { width: 56px; height: 56px; }
.foot__line {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(252, 252, 250, 0.78);
  max-width: 34ch;
  margin: 0;
}
.foot__list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14px;
  color: rgba(252, 252, 250, 0.88);
}
.foot__list a:hover {
  color: var(--peach);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.foot__note {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(252, 252, 250, 0.68);
}
.foot__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.foot__legal a {
  color: rgba(252, 252, 250, 0.78);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.foot__legal a:hover { color: var(--peach); }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Honeypot: visually hidden, still present in the DOM for bots that fill every field */
.hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-errors {
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-card);
  background: var(--peach);
  color: var(--ink);
  font-size: 15px;
}
.form-errors p { margin: 0 0 8px; font-weight: 600; }
.form-errors ul { margin: 0; padding-left: 1.15em; }
.form-errors li { margin: 0 0 4px; }
.field--error input,
.field--error textarea {
  border-color: var(--ink);
  background: #fff8f4;
}
.field__error {
  margin: 0;
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
}

/* Legal pages */
.prose {
  max-width: 72ch;
}
.prose h2 {
  margin: 2.2em 0 0.6em;
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: -0.03em;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  margin: 1.4em 0 0.4em;
  font-size: 1.05em;
  letter-spacing: -0.02em;
}
.prose p, .prose li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--slate);
}
.prose p { margin: 0 0 1em; }
.prose ul { margin: 0 0 1em; padding-left: 1.2em; }
.prose li { margin: 0 0 0.4em; }
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--ink); }

/* Footer brand label may wrap */
.foot__brand .label { line-height: 1.35; max-width: 22ch; }
