/* ═══════════════════════════════════════════════════════════════════════════
   index-v2.css — Desk-Ops Home v2 Editorial
   Production port of
   web/design-handoff/import-v2-editorial/Desk-Ops Home v2 Editorial.dc.html

   Values are transcribed from the comp's inline styles verbatim. The comp
   encoded its phone/desktop switches two ways — React state (renderVals:
   colAlign / colText / hideInCard / hideBand / storyPin / storyText /
   touchVeil / touchPill) and CSS `clamp(0px, calc((100vw - 700px) * 100), X)`
   show/hide hacks. Both are converted here to plain media queries at the
   700px behavioural breakpoint (phone < 700px, desktop >= 700px) with
   identical outcomes. All other clamp()/vw sizing is untouched.

   Colours are literal (not custom properties) so every declaration maps
   1:1 back to the comp; landing.css owns the site token system and is not
   shared by this page.
   ═════════════════════════════════════════════════════════════════════════ */

/* ── Self-hosted display serif ────────────────────────────────────────────
   Latin subsets pulled once from the Google css2 endpoint (static instances,
   not the variable file) and served from this origin: no Google Fonts request
   at runtime. The 700 face is the file landing.css already ships; 400 + 600
   are new. */
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/source-serif-4-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/source-serif-4-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/source-serif-4-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Inter and JetBrains Mono are NOT self-hosted (no third-party fetch, no
   extra weight): the named family wins if the visitor has it installed,
   otherwise the system stack renders. */
:root {
  --f-sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Source Serif 4", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ── Base ────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; color-scheme: dark; }
body {
  margin: 0;
  background: #2B3A4A;
  color: #FFFFFF;
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: #6FCE7E; }
a:hover { color: #BFE7FE; }

.page { background: #2B3A4A; overflow-x: hidden; font-family: var(--f-sans); }

/* Skip link: comp parks it off-screen; :focus brings it back so the control
   is actually reachable (matches the landing.css .skip-link pattern). */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: #FFFFFF; color: #2B3A4A; padding: 10px 18px; text-decoration: none;
}
.skip-link:focus { left: 0; }
main:focus { outline: none; } /* skip-link target (tabindex=-1), programmatic only */

/* ── Motion ──────────────────────────────────────────────────────────── */
@keyframes doDrift { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.11) translate3d(-1.2%, -0.8%, 0); } }
@keyframes doRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes doFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes doMarquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* ═══ 1 · Hero ═════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: max(100%, min(100dvh, 1080px));
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  background: #101B26;
}
.hero-layer {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 1920px);
  height: max(100%, min(100dvh, 1080px));
}
.hero-media { object-fit: cover; object-position: 30% 50%; }
/* The walker sits left-of-centre in the source frame; tablet-width cover
   crops push him right into the copy column, so the framing shifts there. */
@media (min-width: 700px) and (max-width: 1023.98px) {
  .hero-media { object-position: 38% 50%; }
}
.hero-scrim-top {
  background: linear-gradient(180deg, rgba(16,27,38,0.58) 0%, rgba(16,27,38,0.14) 14%, rgba(16,27,38,0) 30%);
}
.hero-scrim-bottom {
  background: linear-gradient(180deg, rgba(16,27,38,0) 72%, rgba(24,36,48,0.42) 90%, #101B26 100%);
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,1) 62%);
  mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,1) 62%);
}
.hero-scrim-side {
  background: linear-gradient(100deg, rgba(16,27,38,0) 52%, rgba(16,27,38,0.16) 72%, rgba(16,27,38,0.30) 100%);
}

/* Header nav */
.hero-head { position: absolute; top: 0; left: 0; right: 0; z-index: 4; }
.hero-head nav {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: 1920px; margin: 0 auto;
  padding: 18px clamp(20px, 5vw, 88px);
  height: 68px; box-sizing: border-box;
}
.wordmark {
  display: flex; align-items: baseline; gap: 1px;
  font-weight: 800; font-size: 1.6rem; letter-spacing: -0.02em;
  color: #F2F2EE; text-decoration: none;
  text-shadow: 0 1px 10px rgba(0,0,0,0.45);
}
.wordmark .star {
  width: 0.7em; height: 0.7em; fill: #CE7247;
  align-self: center; margin: 0 1px; flex: 0 0 auto;
}
.nav-links { display: flex; align-items: center; gap: clamp(10px, 2vw, 26px); }
.nav-links a {
  color: #FFFFFF; text-decoration: none; font-weight: 600; font-size: 0.95rem;
  opacity: 0.9; text-shadow: 0 1px 10px rgba(0,0,0,0.45);
}
.nav-links a.nav-story { padding: 10px 6px; }
.nav-links a.nav-login { padding: 10px 0; }
.nav-links a:hover,
.nav-links a:focus-visible { opacity: 1; color: #FFFFFF; }

/* Hero copy column */
.hero-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 1920px; margin: 0 auto;
  padding: clamp(64px, calc(50vh - 235px), 176px) clamp(20px, 5vw, 88px) clamp(40px, 6vh, 72px);
  box-sizing: border-box;
  display: flex; flex-direction: column;
  justify-content: flex-start; align-items: flex-end;
}
.hero-col {
  width: clamp(373px, 26vw, 600px);
  max-width: min(100%, 620px, max(46vw, 340px));
  margin-right: clamp(0px, calc((100vw - 820px) * 0.26), 180px);
  margin-left: auto;
  flex: 0 0 auto;
}
.hero-trust {
  display: flex; flex-direction: column; align-items: flex-start;
}
.trust-line {
  width: 100%;
  margin: 0 0 clamp(10px, min(1.8vh, 2.6vw), 18px);
  max-height: 120px; overflow: hidden;
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: flex-start;
  text-align: left;
  gap: 4px 10px;
  font-size: 0.95rem;
  color: rgba(232,242,250,0.8);
  text-shadow: 0 1px 14px rgba(8,14,20,0.85);
  animation: doRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.85s both;
}
.stars { display: inline-flex; gap: 4px; flex: 0 0 auto; padding-top: 0.25em; }
.stars svg { width: 0.95em; height: 0.95em; fill: #CE7247; flex: 0 0 auto; }

.hero-card {
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  box-sizing: border-box;
  padding: clamp(15px, min(2.6vh, 3.4vw), 34px) clamp(20px, 2.6vw, 38px);
  border-radius: 18px;
  background: rgba(18,28,39,0.84);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 30px 70px -34px rgba(0,0,0,0.8);
  margin-top: 0;
  height: auto;
}
.hero-card h1 {
  margin: 0;
  font-family: var(--f-serif); font-weight: 700;
  font-size: clamp(2.4rem, min(5.4vw, 8.6vh), 4.5rem);
  line-height: 1.02; letter-spacing: -0.025em;
  color: #FFFFFF;
  text-shadow: 0 2px 24px rgba(8,14,20,0.55);
  animation: doRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}
.hero-sub {
  margin: clamp(10px, min(2.2vh, 3.2vw), 18px) 0 0;
  max-width: 28ch;
  font-family: var(--f-serif); font-weight: 600;
  font-size: clamp(1.3rem, 2.1vw, 1.75rem);
  line-height: 1.25; letter-spacing: -0.01em;
  color: #E8A87F;
  text-shadow: 0 2px 18px rgba(8,14,20,0.6);
  animation: doRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.16s both;
}
.hero-card .btn-coral {
  margin: clamp(14px, min(3.4vh, 4.6vw), 30px) 0 0;
  font-size: 1.02rem;
  padding: 16px 30px;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,0.7);
  animation: doRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.36s both;
}
.card-rule {
  width: 100%; height: 1px;
  margin-top: clamp(11px, min(2.7vh, 3.6vw), 24px);
  background: rgba(255,255,255,0.24);
  animation: doFade 1s ease-out 0.95s both;
}

/* Shared coral button */
.btn-coral {
  font: inherit; font-weight: 700;
  color: #FFFFFF; background: #B85A3E;
  border: none; border-radius: 12px;
  cursor: pointer;
  transition: background 160ms ease-out;
}
.btn-coral:hover,
.btn-coral:focus-visible { background: #CE7247; }

/* Platform marquee */
.marquee {
  width: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 9%, rgba(0,0,0,1) 86%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 9%, rgba(0,0,0,1) 86%, rgba(0,0,0,0) 100%);
}
.marquee-track { display: flex; width: max-content; align-items: center; }
.marquee-track span {
  margin-right: 44px;
  font-family: var(--f-mono); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.52);
  white-space: nowrap; flex: 0 0 auto;
}
.marquee-track img { width: auto; margin-right: 44px; opacity: 0.52; flex: 0 0 auto; }
.marquee-track img.ic-citrix { height: 21px; }
.marquee-track img.ic-anthropic { height: 19px; }
.marquee-track img.ic-gemini { height: 21px; }

.marquee-card {
  margin-top: clamp(10px, min(2.4vh, 3.2vw), 22px);
  max-height: 40px;
  animation: doFade 1.2s ease-out 0.7s both;
}
.marquee-card .marquee-track { animation: doMarquee 33s linear infinite; }

/* ═══ 2 · Proof strip (phone only) ═════════════════════════════════════ */
.proof { display: none; background: #101B26; max-height: 340px; overflow: hidden; }
.proof-inner {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 18px; padding: 26px clamp(20px, 5vw, 88px) 30px;
}
.proof .trust-line {
  width: auto; max-width: 100%;
  margin: 0;
  max-height: none; overflow: visible;
  justify-content: center; text-align: center;
  line-height: 1.5;
  text-shadow: none;
  animation: none;
}
.proof-rule { width: min(100%, 340px); height: 1px; background: rgba(255,255,255,0.18); }
.marquee-band {
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 9%, rgba(0,0,0,1) 91%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 9%, rgba(0,0,0,1) 91%, rgba(0,0,0,0) 100%);
}
.marquee-band .marquee-track { animation: doMarquee 30s linear infinite; }
.marquee-band .marquee-track span { margin-right: 40px; font-size: 0.8rem; }
.marquee-band .marquee-track img { margin-right: 40px; }
.marquee-band .marquee-track img.ic-citrix { height: 20px; }
.marquee-band .marquee-track img.ic-anthropic { height: 18px; }
.marquee-band .marquee-track img.ic-gemini { height: 20px; }

/* ═══ 3 · My story ═════════════════════════════════════════════════════ */
.story {
  position: relative;
  background-color: #FCFAF6;
  padding: clamp(64px, 8vw, 120px) 0 clamp(56px, 7vw, 104px);
  overflow: hidden;
}
.story-ground { position: absolute; inset: 0; background-color: #FCFAF6; }
.story-grain {
  position: absolute; inset: 0;
  background-image: url("assets/founder-grain-5d615f.png");
  background-repeat: repeat;
  opacity: 0.05;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.story-grid {
  position: relative; z-index: 1;
  max-width: 1440px; margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 88px);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr));
  gap: clamp(32px, 5vw, 76px);
  align-items: stretch;
}
.story-portrait-col {
  display: flex; flex-direction: column; gap: 16px; height: 100%;
  max-width: clamp(280px, 40vw, 560px);
  margin-inline: 0;
}
.portrait-btn {
  --do-veil: rgba(11,11,11,0);
  --do-pill: 0;
  position: relative; display: block;
  flex: 1 1 auto;
  min-height: clamp(340px, 46vw, 620px);
  width: 100%; padding: 0; border: none; background: none; cursor: pointer;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 18px 34px -14px rgba(28,24,20,0.42), 0 2px 6px -2px rgba(28,24,20,0.2);
  animation: doFade 1.1s ease-out both;
}
.portrait-btn:hover,
.portrait-btn:focus-visible {
  --do-veil: rgba(11,11,11,0.52);
  --do-pill: 1;
  --do-zoom: 1.05;
}
.portrait-btn img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 6%;
  filter: contrast(1.03) sepia(0.05);
  transform: scale(var(--do-zoom, 1));
  transition: transform 300ms ease-out;
}
.portrait-veil {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--do-veil, rgba(11,11,11,0));
  transition: background 300ms ease-out;
  padding: 24px;
}
.portrait-pill {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center;
  opacity: var(--do-pill, 0);
  transition: opacity 300ms ease-out;
}
.portrait-name {
  display: block; font-family: var(--f-serif); font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.1; letter-spacing: -0.01em;
  color: #FFFFFF;
}
.portrait-role {
  display: block; font-family: var(--f-mono);
  font-size: 0.6875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.2em; color: rgba(255,255,255,0.76);
}
.portrait-tick { display: block; width: 32px; height: 1px; background: rgba(255,255,255,0.34); }
.portrait-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 12px;
  background: #B85A3E; color: #FFFFFF; font-weight: 600; font-size: 0.95rem;
}

.story-text-col { max-width: 660px; display: flex; flex-direction: column; margin-inline: 0; }
.story-kicker {
  font-family: var(--f-mono); font-size: 0.6875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.2em; color: #3C4A59;
  text-align: left;
}
.story-text-col h2 {
  margin: 16px 0 0;
  font-family: var(--f-serif); font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 1.08; letter-spacing: -0.02em;
  color: #0B0B0B; text-wrap: pretty; text-align: left;
}
.story-body {
  margin-top: 26px;
  display: flex; flex-direction: column; gap: 18px;
  font-size: 1.06rem; line-height: 1.72; color: #3C4A59;
}
.story-body p { margin: 0; }
.story-body strong { color: #0B0B0B; font-weight: 600; }
.story-body figure {
  margin: 6px 0; width: 100%;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.story-body figure img {
  display: block; width: 100%; min-width: min(480px, 100%); height: auto;
}

/* ═══ 4 · Closer ═══════════════════════════════════════════════════════ */
.closer {
  background: #1C2733;
  padding: clamp(72px, 9vw, 116px) 0 clamp(64px, 8vw, 100px);
  text-align: center;
}
.closer-inner { max-width: 860px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 88px); box-sizing: border-box; }
.closer h2 {
  margin: 0;
  font-family: var(--f-serif); font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.1; letter-spacing: -0.02em;
  color: #F2F2EE; text-wrap: balance;
}
.closer-lede {
  margin: 18px auto 0; max-width: 58ch;
  font-size: 1.1rem; line-height: 1.6; color: rgba(242,242,238,0.74);
}
.closer .btn-coral { margin: 32px 0 0; font-size: 1.05rem; padding: 17px 34px; }
.closer-honesty { margin: 16px 0 0; font-size: 0.9rem; color: rgba(242,242,238,0.62); }

/* ═══ 5 · Footer ═══════════════════════════════════════════════════════ */
.site-foot { background: #1C2733; text-align: center; padding: 0 0 56px; }
.site-foot > div { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 88px); box-sizing: border-box; }
.foot-brand {
  padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: baseline; justify-content: center; gap: 14px;
}
.foot-wordmark {
  display: flex; align-items: baseline; gap: 1px;
  font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; color: #F2F2EE;
}
.foot-wordmark .star {
  width: 0.72em; height: 0.72em; fill: #CE7247;
  align-self: center; margin: 0 1px; flex: 0 0 auto;
}
.foot-domain { color: rgba(242,242,238,0.66); font-size: 0.95rem; }
.foot-legal {
  margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 2px 4px; font-size: 0.82rem;
}
.foot-legal a {
  display: inline-block; padding: 6px 9px;
  color: rgba(242,242,238,0.78); text-decoration: none;
}
.foot-legal a:hover,
.foot-legal a:focus-visible { color: #FFFFFF; text-decoration: underline; }
.foot-disclaimer {
  margin: 10px auto 0; max-width: 760px;
  font-size: 0.72rem; line-height: 1.6; color: rgba(242,242,238,0.66);
}
.foot-entity { margin: 6px 0 0; font-size: 0.72rem; color: rgba(242,242,238,0.66); }

/* ═══ 6 · Dialogs ══════════════════════════════════════════════════════ */
dialog:not([open]) { display: none !important; }
dialog::backdrop { background: rgba(16,27,38,0.74); }
body.dialog-open { overflow: hidden; }
body:has(dialog[open]) { overflow: hidden; }

.dlg-close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.92); border: 1px solid #E5E7EB;
  border-radius: 999px; cursor: pointer; color: #3C4A59;
}

/* Bio dialog */
#bio {
  position: fixed; inset: 0; border: none; padding: 0; margin: auto;
  width: min(1080px, calc(100vw - 24px));
  max-width: min(1080px, calc(100vw - 24px));
  height: fit-content;
  max-height: calc(100vh - 24px);
  background: #FFFFFF; color-scheme: light;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 40px 80px -24px rgba(0,0,0,0.55);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-template-rows: minmax(0, 1fr);
}
/* Below 624px `auto-fit` drops to a single column (2 cols need 2 × 300px, and
   the dialog is min(1080px, 100vw - 24px) wide → 100vw < 624px is one column).
   One column means the two children need TWO rows, but only one is declared —
   so the implicit auto row (.bio-body, ~1300px of content) took the dialog's
   whole max-height and the explicit 1fr portrait row resolved to 0px, painting
   the portrait on top of the biography. Declaring both rows fixes the band and
   leaves .bio-body as the scroller, so the close button stays anchored. */
@media (max-width: 623.98px) {
  #bio { grid-template-rows: 260px minmax(0, 1fr); }
}
.bio-portrait { position: relative; background: #EDEAE3; overflow: hidden; min-height: 260px; }
.bio-portrait img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 8%;
}
.bio-body { overflow-y: auto; min-height: 0; padding: clamp(24px, 3.5vw, 44px); }
.bio-body h2 {
  margin: 0; font-family: var(--f-serif); font-weight: 700;
  font-size: 2rem; line-height: 1.1; color: #0B0B0B;
}
.bio-role { margin: 6px 0 0; font-size: 1.1rem; color: #6B7280; }
.bio-rule { height: 1px; background: #E5E7EB; margin: 20px 0; }
.bio-lede { margin: 0; font-size: 1.05rem; line-height: 1.65; color: #0B0B0B; }
.bio-sub { margin: 14px 0 0; font-size: 0.98rem; line-height: 1.65; color: #3C4A59; }
.bio-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; }
.bio-cols h3 {
  margin: 0 0 10px; font-family: var(--f-sans);
  font-size: 0.95rem; font-weight: 700; color: #0B0B0B;
}
.bio-cols ul {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 6px;
  font-size: 0.92rem; line-height: 1.5; color: #3C4A59;
}
.bio-body h3.bio-hl-head {
  margin: 0 0 12px; font-family: var(--f-sans);
  font-size: 1.05rem; font-weight: 700; color: #0B0B0B;
}
.bio-highlights {
  display: flex; flex-direction: column; gap: 10px;
  font-size: 0.95rem; line-height: 1.6; color: #3C4A59;
}
.bio-highlights p { margin: 0; }
.bio-highlights strong { color: #0B0B0B; }

/* Apply dialog */
#apply {
  border: none; padding: 0; background: transparent;
  position: fixed; inset: 0; margin: auto;
  width: min(560px, calc(100vw - 24px));
  max-width: min(560px, calc(100vw - 24px));
  height: fit-content;
  max-height: calc(100vh - 24px);
  overflow-y: auto; border-radius: 18px;
}
.apply-card {
  position: relative; background: #FFFFFF; color-scheme: light;
  border-radius: 18px;
  box-shadow: 0 40px 80px -24px rgba(0,0,0,0.55);
  padding: clamp(24px, 4vw, 40px);
}
.apply-card .dlg-close { background: rgba(11,11,11,0.06); }
.eyebrow-mono {
  font-family: var(--f-mono); font-size: 0.6875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.18em; color: #3C4A59;
}
.apply-card h2 {
  margin: 10px 0 0; font-family: var(--f-serif); font-weight: 700;
  font-size: 1.7rem; line-height: 1.15; letter-spacing: -0.01em; color: #0B0B0B;
}
.apply-lede { margin: 10px 0 0; font-size: 0.98rem; line-height: 1.6; color: #3C4A59; }
.apply-step { margin-top: 20px; }
.apply-step-note { margin: 0; font-size: 0.92rem; color: #6B7280; }

.field { margin-top: 14px; }
.field label {
  display: block; font-weight: 600; font-size: 0.9rem; color: #3C4A59; margin-bottom: 6px;
}
.field input {
  width: 100%; box-sizing: border-box; font: inherit;
  color: #0B0B0B; background: #FFFFFF;
  padding: 11px 12px; border: 1px solid #D5D9DE; border-radius: 12px;
}
.field input:focus-visible { outline: 2px solid #B85A3E; outline-offset: 1px; border-color: #B85A3E; }
.field-error { display: none; font-size: 0.82rem; color: #B3401F; margin-top: 6px; }
.field.invalid .field-error { display: block; }
.field.invalid input { border-color: #B3401F; }

.hp-field { position: absolute; left: -9999px; top: -9999px; }

#apply-step-1 .btn-coral,
#apply-step-2 .btn-coral {
  width: 100%; font-size: 1rem; padding: 15px 26px;
}
#apply-step-1 .btn-coral { margin-top: 20px; }
#apply-step-2 .btn-coral { margin-top: 22px; }

.chips { border: none; margin: 16px 0 0; padding: 0; }
.chips legend {
  font-weight: 600; font-size: 0.9rem; color: #3C4A59; padding: 0; margin-bottom: 8px;
}
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chips input[type="radio"] {
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none;
}
.chip {
  font: inherit; font-size: 0.92rem; padding: 11px 16px; border-radius: 999px; cursor: pointer;
  transition: border-color 160ms ease-out, background 160ms ease-out;
  background: #FFFFFF; border: 1px solid #D5D9DE; color: #3C4A59;
}
.chips input[type="radio"]:checked + .chip {
  background: #B85A3E; border: 1px solid #B85A3E; color: #FFFFFF;
}
/* The radio itself is visually hidden, so the focus ring has to live on the
   label the visitor actually sees. */
.chips input[type="radio"]:focus-visible + .chip { outline: 2px solid #B85A3E; outline-offset: 2px; }
.chips .field-error { display: none; margin-top: 8px; }
.chips.invalid .field-error { display: block; }

.apply-back {
  display: block; margin: 6px auto 0; padding: 8px 14px;
  background: none; border: none; font: inherit; font-size: 0.9rem;
  color: #6B7280; cursor: pointer; text-decoration: underline;
}
.apply-consent { margin: 14px 0 0; font-size: 0.8rem; line-height: 1.5; color: #6B7280; }
.apply-consent a, .apply-success a { color: #2E7A3F; }

.form-error {
  margin-top: 16px; padding: 12px 14px;
  border: 1px solid rgba(179,64,31,0.34); border-radius: 12px;
  background: rgba(179,64,31,0.07);
  font-size: 0.9rem; line-height: 1.5; color: #B3401F;
}
/* The page-level green link colour is for dark grounds; inside the error panel
   it drops under 4.5:1, so the fallback link inherits the error ink. */
.form-error a { color: #B3401F; text-decoration: underline; }
.apply-success { margin-top: 18px; }
.apply-success h3 {
  margin: 0; font-family: var(--f-sans); font-size: 1.25rem; font-weight: 700; color: #0B0B0B;
}
.apply-success p { margin: 10px 0 0; font-size: 0.98rem; line-height: 1.6; color: #3C4A59; }

.turnstile-slot:not(:empty) { margin-top: 16px; }

/* ═══ Phone (< 700px) — the comp's renderVals()/clamp switches ══════════ */
@media (max-width: 699.98px) {
  /* hero padding-top: max(desktop value, 38vh) */
  .hero-inner {
    padding-top: max(clamp(64px, calc(50vh - 235px), 176px), 38vh);
  }
  /* colAlign / colText → center */
  .hero-trust { align-items: center; }
  .hero-card { align-items: center; text-align: center; }
  /* hideInCard → the trust line and the in-card marquee collapse to zero */
  .hero-trust,
  .card-rule,
  .marquee-card { display: none; }
  /* hideBand → the proof strip is the phone-only home of both */
  .proof { display: block; }
  /* storyPin → margin-inline: auto; storyText → center */
  .story-portrait-col,
  .story-text-col { margin-inline: auto; }
  .story-kicker,
  .story-text-col h2 { text-align: center; }
  /* touchVeil / touchPill: no hover on touch, so the veil + pill stay on */
  .portrait-btn { --do-veil: rgba(11,11,11,0.52); --do-pill: 1; }
}

/* ═══ Reduced motion ═══════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  html { scroll-behavior: auto; }
  /* The comp's kill switch only covered @keyframes. The portrait's hover/focus
     zoom is a transformed transition — that is motion too, so it goes as well
     (the veil + pill still appear, they just appear instantly). */
  .portrait-btn img { transform: none !important; transition: none !important; }
}
