/*
 * Halcy careers — shared design system. Anchored to round.halcy.site's
 * palette + typography for cross-microsite continuity, leaning more
 * editorial via PP Editorial New for headlines and longer reading rhythm
 * for body copy.
 *
 * No build step. Single shared stylesheet imported by index.html and the
 * two role pages.
 */

@font-face {
  font-family: "Haffer SQ";
  src: url("/fonts/HafferSQTRIAL-Light.otf") format("opentype");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Haffer SQ";
  src: url("/fonts/HafferSQTRIAL-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Haffer SQ";
  src: url("/fonts/HafferSQTRIAL-Medium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "PP Editorial New";
  src: url("/fonts/PPEditorialNew-Ultralight.otf") format("opentype");
  font-weight: 200;
  font-display: swap;
}
@font-face {
  font-family: "PP Editorial New";
  src: url("/fonts/PPEditorialNew-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "PP Editorial New";
  src: url("/fonts/PPEditorialNew-Italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #4a6789;
  --bg-shade: rgba(0, 0, 0, 0.18);
  --paper: #f3f1ec;
  --ink: #243648;
  --text: #f3f1ec;
  --text-muted: rgba(243, 241, 236, 0.82);
  --text-faded: rgba(243, 241, 236, 0.72);
  --border: rgba(255, 255, 255, 0.22);
  --border-soft: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.1);
  --glass-strong: rgba(255, 255, 255, 0.16);
  --error: #ffd9d2;

  --serif: "PP Editorial New", "Iowan Old Style", "Apple Garamond", "Baskerville", Georgia, serif;
  --sans: "Haffer SQ", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--text);
  background-color: var(--bg);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-size: 17px;
  line-height: 1.55;
}
/* Background image lives on a fixed-position layer rather than on body.
 * iOS Safari has a long-standing bug where `background-attachment: fixed`
 * on body is treated as `scroll` for sizing - so `background-size: cover`
 * is computed against the full scrollable document height (5000px+),
 * not the viewport (~844px). That scaled the 3832x2152 photo by ~2.3x
 * and produced visible grain/blockiness. Putting the same stack on a
 * `position: fixed; inset: 0` layer (matching how .gate-overlay works)
 * forces cover to size against the viewport, so the image renders at
 * native resolution. The CSS gradient under the image-set paints
 * instantly while the bitmap decodes so there's no flash to flat blue. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 50% 100%, rgba(0, 0, 0, 0.22), transparent 65%),
    image-set(
      url("/SkyBackground.avif") type("image/avif"),
      url("/SkyBackground.jpg") type("image/jpeg")
    ),
    radial-gradient(ellipse at 18% 0%, rgba(255, 255, 255, 0.06), transparent 55%),
    linear-gradient(180deg, #5a779a 0%, #4a6789 45%, #3e587a 100%);
  background-size: auto, cover, auto, auto;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}
/* Soft darken at the very top so iOS status bar text (white) reads against
 * a slightly deeper backdrop instead of fighting with body copy that scrolls
 * up under it. Pure CSS, no JS, fixed so it stays put across scroll. */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: calc(env(safe-area-inset-top, 0px) + 80px);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Reset for editorial typography. */
h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
figure,
blockquote {
  margin: 0;
}
ul,
ol {
  padding-left: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
}

/* ─── Layout primitives ─────────────────────────────────────────── */
.shell {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 28px;
}
.shell--narrow {
  max-width: 640px;
}

/* ─── Page chrome (shared header + footer) ──────────────────────── */
.chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 28px 0;
}
.chrome a.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  font-family: var(--serif);
  font-weight: 200;
  font-size: 28px;
  letter-spacing: -0.005em;
}
.chrome a.wordmark img {
  width: 38px;
  height: 38px;
  display: block;
  opacity: 0.95;
}
.chrome .nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: var(--text-muted);
}
.chrome .nav a:hover {
  color: var(--text);
}

.foot {
  margin: 96px 0 56px;
  padding: 0 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-faded);
  text-align: center;
}
.foot a {
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  transition:
    color 120ms ease,
    border-color 120ms ease;
}
.foot a:hover {
  color: var(--text);
  border-color: var(--text);
}

/* ─── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 22px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.005em;
  background: var(--paper);
  color: var(--ink);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 80ms ease,
    background 120ms ease,
    opacity 120ms ease;
}
.btn:hover:not([disabled]) {
  background: #ffffff;
}
.btn:active:not([disabled]) {
  transform: scale(0.985);
}
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover:not([disabled]) {
  background: var(--glass);
  color: var(--text);
}
.linkish {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  font-size: 14px;
  transition:
    color 120ms ease,
    border-color 120ms ease;
}
.linkish:hover {
  color: var(--text);
  border-color: var(--text);
}

/* ─── Index page ────────────────────────────────────────────────── */
.hero {
  /* Vertical only — horizontal padding comes from .shell so text aligns with
   * everything below. (Using `padding` shorthand here would override .shell.) */
  padding-top: 14vh;
  padding-bottom: 7vh;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--text);
  max-width: 28ch;
  text-wrap: balance;
}
.hero .scroll-cue {
  margin-top: 56px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-faded);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}
.hero .scroll-cue:hover {
  color: var(--text);
}

.section-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faded);
  margin-bottom: 24px;
}

.roles {
  padding-top: 4vh;
  padding-bottom: 8vh;
}
.role-cards {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .role-cards {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
}
.role-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 26px 24px;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}
.role-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.42);
  background: var(--glass-strong);
}
.role-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--text-faded);
  letter-spacing: 0.04em;
}
.role-card .tag {
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 4px 10px;
}
.role-card h2 {
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(26px, 3.4vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: balance;
}
.role-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}
.role-card .cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text);
}
.role-card .cta::after {
  content: "→";
  transition: transform 200ms ease;
}
.role-card:hover .cta::after {
  transform: translateX(4px);
}

.response-note {
  margin-top: 28px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--text-faded);
  text-align: center;
}

/* ─── Cultural principles (manifesto) ───────────────────────────── */
.principles {
  /* Each principle gets its own panel — full viewport on desktop, gentler
   * on mobile so users still see two principles per swipe and don't lose
   * orientation in a long scroll-snap chain. */
  scroll-snap-type: y proximity;
}
.principle {
  scroll-snap-align: start;
  min-height: 52vh;
  display: flex;
  align-items: center;
  padding-top: clamp(48px, 8vh, 88px);
  padding-bottom: clamp(48px, 8vh, 88px);
  border-top: 1px solid var(--border-soft);
}
.principle:first-child {
  border-top: none;
}
.principle .num {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--text-faded);
  text-transform: uppercase;
  display: block;
  margin-bottom: 24px;
}
.principle h3 {
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(40px, 7vw, 88px);
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--text);
}
.principle p {
  margin-top: 28px;
  max-width: 32ch;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
  color: var(--text-muted);
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
}

/* Soft scroll-driven fade-in via the modern `animation-timeline: view()` API
 * where supported (Chrome 115+, Safari 17+). On older browsers and with
 * reduced-motion the elements just render normally — no JS dependency, no
 * risk of hidden content if a script fails to run. */
@supports (animation-timeline: view()) {
  @media not (prefers-reduced-motion: reduce) {
    .reveal {
      animation: careers-fade-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
    @keyframes careers-fade-in {
      from {
        opacity: 0;
        transform: translateY(10px);
      }
      to {
        opacity: 1;
        transform: none;
      }
    }
  }
}

.closing {
  margin: 8vh 0 4vh;
  text-align: center;
}
.closing p {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--text-muted);
  max-width: 26ch;
  margin: 0 auto;
  line-height: 1.4;
}

/* ─── Role pages ────────────────────────────────────────────────── */
.role {
  padding-bottom: 0;
}
.role-title {
  padding-top: 12vh;
  padding-bottom: 6vh;
}
.role-title .eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faded);
  margin-bottom: 22px;
}
.role-title h1 {
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(40px, 6.5vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--text);
  max-width: 22ch;
  text-wrap: balance;
}
.role-title .sub {
  margin-top: 22px;
  max-width: 36ch;
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.55;
}
.role-title .cta-row {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.role-title .cta-row .meta {
  font-size: 17px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.005em;
}

.role-section {
  /* clamp() pins a sane minimum on phones (where 7vh = ~50px is too cramped
   * against a divider line) and a sane max on tall desktop viewports. */
  padding-top: clamp(56px, 9vh, 96px);
  padding-bottom: clamp(56px, 9vh, 96px);
  border-top: 1px solid var(--border-soft);
}
.role-section h2 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faded);
  margin-bottom: 36px;
}
.editorial {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.6;
  color: var(--text);
  max-width: 36ch;
}
.editorial em {
  font-style: italic;
  color: var(--text-muted);
}
.editorial p + p {
  margin-top: 1.2em;
}

/* "Who you (probably) are" — vertical list, no markers, two-column on desktop */
.qual-list {
  display: grid;
  gap: 18px 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .qual-list {
    grid-template-columns: 1fr 1fr;
    gap: 22px 48px;
  }
}
.qual-list li {
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  padding-left: 0;
}
.qual-list li em {
  color: var(--text-muted);
}

/* "What you (ideally) bring" — numbered with optional <details> expand */
.numbered {
  display: flex;
  flex-direction: column;
  gap: 20px;
  counter-reset: bring;
}
.numbered .group-label {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin: 14px 0 4px;
}
.numbered .group-label:first-child {
  margin-top: 0;
}
.numbered .item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 6px 18px;
  font-size: 17px;
  line-height: 1.55;
}
.numbered .item::before {
  counter-increment: bring;
  content: counter(bring, decimal-leading-zero);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-faded);
  padding-top: 4px;
}
.numbered .item .body {
  color: var(--text);
}
.numbered details.item {
  display: block;
  position: relative;
  padding-left: 56px;
}
.numbered details.item::before {
  position: absolute;
  left: 0;
  top: 0;
}
.numbered details.item summary {
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  color: var(--text);
}
.numbered details.item summary::-webkit-details-marker {
  display: none;
}
.numbered details.item[open] summary {
  margin-bottom: 8px;
}
.numbered details.item .more {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* "What you will (mostly) do" — two layouts, role-specific */
.do-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.do-stack .item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  align-items: baseline;
  font-size: 17px;
  line-height: 1.55;
}
.do-stack .item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-faded);
  margin-top: 9px;
  justify-self: center;
}
.do-stack .item strong {
  color: var(--text);
  font-weight: 500;
  display: block;
  margin-bottom: 2px;
}
.do-stack .item span {
  color: var(--text-muted);
}

.do-split {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .do-split {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}
.do-split .col h3 {
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(22px, 2.6vw, 28px);
  letter-spacing: -0.005em;
  margin-bottom: 12px;
  color: var(--text);
}
.do-split .col .lead {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 22px;
  font-family: var(--serif);
  font-style: italic;
  line-height: 1.5;
}
.do-split .col ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.do-split .col li {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
}
.do-split .col li em {
  color: var(--text-muted);
}

/* Apprentice deal callout (Bizops) */
.callout {
  margin: 6vh -28px;
  padding: 6vh 28px;
  background: rgba(243, 241, 236, 0.05);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.callout .label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faded);
  margin-bottom: 24px;
}
.callout p {
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--text);
  max-width: 24ch;
}

/* Benefits */
.benefits {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.benefits li {
  display: grid;
  grid-template-columns: 14ch 1fr;
  gap: 18px;
  font-size: 16px;
  line-height: 1.55;
  padding: 14px 0;
  border-top: 1px solid var(--border-soft);
}
.benefits li:first-child {
  border-top: none;
  padding-top: 0;
}
.benefits li .k {
  color: var(--text-faded);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-top: 2px;
}
.benefits li .v {
  color: var(--text);
}
@media (max-width: 580px) {
  .benefits li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .benefits li .k {
    padding-top: 0;
  }
}

/* ─── Form (apply) ─────────────────────────────────────────────── */
.apply {
  padding-top: clamp(56px, 9vh, 96px);
  padding-bottom: clamp(72px, 11vh, 120px);
  border-top: 1px solid var(--border-soft);
}
.apply .intro {
  margin-bottom: 36px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--text-muted);
  max-width: 30ch;
}
.form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.field label {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 24px);
  letter-spacing: -0.005em;
  color: var(--text);
  line-height: 1.35;
}
.field .hint {
  font-size: 14px;
  color: var(--text-faded);
  margin-top: -2px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 14px;
  outline: none;
  transition:
    border-color 120ms ease,
    background 120ms ease;
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-faded);
}
.field input:focus,
.field textarea:focus {
  border-color: rgba(255, 255, 255, 0.5);
  background: var(--glass-strong);
}
.field textarea {
  min-height: 7em;
  resize: vertical;
  field-sizing: content; /* progressive enhancement */
}
.field .err {
  font-size: 13px;
  color: var(--error);
  display: none;
}
.field.invalid .err {
  display: block;
}
.field.invalid input,
.field.invalid textarea {
  border-color: rgba(255, 217, 210, 0.55);
}

/* ─── Password gate (soft, JS-driven) ──────────────────────────── */
body.is-locked {
  overflow: hidden;
}
body.is-locked > .chrome,
body.is-locked > main,
body.is-locked > .foot {
  display: none !important;
}
.gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 32px;
  /* Same image stack as body so the gate matches the page below it. */
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 50% 100%, rgba(0, 0, 0, 0.22), transparent 65%),
    image-set(
      url("/SkyBackground.avif") type("image/avif"),
      url("/SkyBackground.jpg") type("image/jpeg")
    ),
    linear-gradient(180deg, #5a779a 0%, #4a6789 45%, #3e587a 100%);
  background-size: auto, cover, auto;
  background-position: center;
  background-repeat: no-repeat;
}
.gate-overlay .gate-logo {
  width: min(220px, 50vw);
  height: auto;
  display: block;
  opacity: 0.95;
}
.gate-overlay .gate-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(320px, 80vw);
}
.gate-overlay .gate-input {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--sans);
  font-size: 16px;
  text-align: center;
  color: var(--text);
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  border: 1px solid var(--border);
  border-radius: 14px;
  outline: none;
  letter-spacing: 0.02em;
  transition:
    border-color 120ms ease,
    background 120ms ease;
}
.gate-overlay .gate-input::placeholder {
  color: var(--text-faded);
}
.gate-overlay .gate-input:focus {
  border-color: rgba(255, 255, 255, 0.45);
  background: var(--glass-strong);
}
.gate-overlay .gate-submit {
  width: 100%;
}
.gate-overlay .gate-error {
  min-height: 18px;
  font-size: 13px;
  color: var(--error);
  text-align: center;
  margin: 0;
}

/* Honeypot - visually hidden but still part of the form */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden;
}

.submit-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}
.submit-row .submit-error {
  font-size: 14px;
  color: var(--error);
  min-height: 18px;
}
.submit-row .submit {
  align-self: flex-start;
}

.confirm {
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 36ch;
}
.confirm h3 {
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(28px, 3.6vw, 36px);
  letter-spacing: -0.01em;
  color: var(--text);
}
.confirm p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.55;
}

.principles-link {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

/* ─── Reduced-motion / small-screen tweaks ──────────────────────── */
@media (max-width: 580px) {
  .shell {
    /* Long-hand only - the shorthand `padding: 0 24px` here would reset
     * top/bottom padding to 0 and (because this rule lives later in the
     * cascade than `.role-section`/`.apply`) wipe out their vertical
     * clamp() padding on mobile, collapsing every section divider against
     * its text. Long-hand left/right keeps the section padding intact. */
    padding-left: 24px;
    padding-right: 24px;
  }
  .chrome {
    padding: 24px 24px 0;
  }
  .hero {
    padding-top: 12vh;
    padding-bottom: 6vh;
  }
  .role-title {
    padding-top: 10vh;
    padding-bottom: 5vh;
  }
  .principle {
    min-height: 48vh;
  }
  .callout {
    margin: 6vh -24px;
    padding: 6vh 24px;
  }
  .chrome a.wordmark {
    font-size: 24px;
    gap: 12px;
  }
  .chrome a.wordmark img {
    width: 32px;
    height: 32px;
  }
  /* Section dividers: on desktop the section's border-top spans the .shell's
   * 920px max-width and gets visual breathing room from the wider viewport
   * around it. On mobile the viewport collapses onto the section, so the
   * border ran edge-to-edge and looked harsh against the screen sides.
   * Swap to a pseudo-element line inset by the shell's 24px mobile padding
   * so the divider aligns with the body text - matching how it reads on
   * desktop without changing desktop. */
  .role-section,
  .principle,
  .apply {
    position: relative;
    border-top: none;
  }
  .role-section::before,
  .principle::before,
  .apply::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: var(--border-soft);
  }
  .principle:first-child::before {
    display: none;
  }
}
