/* Camber Credit — site styles
   Institutional editorial system: dark navy surfaces + warm paper content.
   All type derives from the tokens below. Do not hard-code font sizes in rules. */
:root {
  /* color */
  --navy: #101921;
  --navy-2: #0c141b;
  --deep: #072646;
  --ice: #e2effc;
  --ice-muted: rgba(226, 239, 252, 0.8);
  --ice-faint: rgba(226, 239, 252, 0.62);
  --line: rgba(226, 239, 252, 0.16);
  --line-strong: rgba(226, 239, 252, 0.4);

  --paper: #f7f5f0;
  --paper-2: #efece4;
  --ink: #13202c;
  --ink-muted: #42505c;
  --ink-faint: #5f6a74;
  --rule: #d8d4c8;
  --rule-dark: #8a8574;
  --input-line: #7d7868;

  /* layout */
  --max: 1160px;
  --pad: 32px;

  /* families */
  --sans: "Inter", "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  /* type scale */
  --fs-display: clamp(2.25rem, 4.8vw, 4rem);      /* hero headline: 36 -> 64 */
  --fs-title: clamp(1.875rem, 3.4vw, 3rem);       /* page titles + section titles: 30 -> 48 */
  --fs-heading: 1.625rem;                          /* prose h2, form legends, role names: 26 */
  --fs-subheading: 1.25rem;                        /* prose h3: 20 */
  --fs-feature: clamp(1.25rem, 2vw, 1.5rem);       /* serif feature paragraph: 20 -> 24 */
  --fs-lead: clamp(1.0625rem, 1.4vw, 1.1875rem);   /* hero/page leads: 17 -> 19 */
  --fs-body: 1.0625rem;                            /* body copy: 17 */
  --fs-secondary: 0.9375rem;                       /* notes, checklines, meta, footer contact: 15 */
  --fs-caption: 0.8125rem;                         /* hints, footnotes, legal fine print: 13 */
  --fs-ui: 0.8125rem;                              /* nav, buttons, form labels, footer links: 13 */
  --fs-eyebrow: 0.75rem;                           /* section eyebrows: 12 */

  /* letter-spacing */
  --ls-ui: 0.14em;
  --ls-eyebrow: 0.26em;

  /* rhythm */
  --band: 130px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.7;
  font-size: var(--fs-body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: opacity 0.25s ease, color 0.25s ease; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

h1, h2, h3, legend { font-family: var(--serif); font-weight: 400; }

[id] { scroll-margin-top: 100px; }

/* shared UI-caps treatment */
.site-nav a, .btn, label.field span.lab, .role-card .go {
  font-family: var(--sans);
  font-size: var(--fs-ui);
  font-weight: 600;
  letter-spacing: var(--ls-ui);
  text-transform: uppercase;
}

/* ---------- Focus visibility ---------- */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.site-header :focus-visible, .hero :focus-visible, .page-hero :focus-visible,
.site-footer :focus-visible { outline-color: var(--ice); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: var(--ice);
  padding: 14px 24px;
  font-size: var(--fs-ui);
  font-weight: 600;
  letter-spacing: 0.08em;
}
.skip-link:focus { left: 0; }

/* ---------- Reveal on scroll ---------- */
.rv { opacity: 0; transform: translateY(14px); transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(12, 20, 27, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  color: var(--ice);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.brand img { height: 30px; width: auto; flex: none; }
.brand span { font-size: 1rem; letter-spacing: 0.05em; font-weight: 400; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 32px; flex: none; }
.site-nav a { color: var(--ice-muted); padding: 8px 0; font-size: 0.75rem; font-weight: 400; letter-spacing: 0.18em; }
.site-nav a:hover { color: var(--ice); }
.site-nav .ext-arrow { font-size: 0.85em; letter-spacing: 0; }

/* hamburger toggle (mobile only, requires JS) */
.menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  flex: none;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ice);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  min-height: 88svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--ice);
  background: linear-gradient(165deg, #081524 0%, var(--deep) 48%, var(--navy) 100%);
}
.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* navy "trading screen" overlay: fine grid + deep navy tint */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    repeating-linear-gradient(0deg, rgba(226, 239, 252, 0.028) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(226, 239, 252, 0.028) 0 1px, transparent 1px 5px),
    linear-gradient(90deg, rgba(8, 17, 28, 0.9) 0%, rgba(8, 24, 44, 0.78) 55%, rgba(7, 38, 70, 0.72) 100%),
    linear-gradient(180deg, rgba(10, 18, 28, 0.6) 0%, rgba(10, 18, 28, 0.42) 45%, rgba(16, 25, 33, 0.96) 100%);
}
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-top: 140px; padding-bottom: 110px; }
.hero h1 {
  font-size: var(--fs-display);
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 14em;
  text-shadow: 0 2px 30px rgba(4, 9, 15, 0.55);
}
.hero p.lead {
  margin-top: 28px;
  max-width: 600px;
  font-size: var(--fs-lead);
  color: var(--ice);
  line-height: 1.75;
  text-shadow: 0 1px 16px rgba(4, 9, 15, 0.6);
}
.hero .hero-actions { margin-top: 40px; display: flex; gap: 18px; flex-wrap: wrap; }
.hero h1 em, .page-hero h1 em { font-style: italic; font-weight: 400; }

/* video pause/play control */
.video-toggle {
  position: absolute;
  right: 28px;
  bottom: 30px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(12, 20, 27, 0.6);
  color: var(--ice);
  font-size: var(--fs-ui);
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
}
.video-toggle:hover { background: rgba(12, 20, 27, 0.9); }

/* scroll cue: labeled so it reads as deliberate, not a stray rule */
.hero .scroll-cue {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.hero .scroll-cue .cue-label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ice-faint);
}
.hero .scroll-cue .cue-line {
  position: relative;
  width: 1px; height: 44px;
  background: linear-gradient(180deg, transparent, var(--ice-faint));
  overflow: hidden;
}
.hero .scroll-cue .cue-line::after {
  content: "";
  position: absolute;
  top: -40%; left: 0;
  width: 100%; height: 40%;
  background: var(--ice);
  animation: cue 2.4s ease-in-out infinite;
}
@keyframes cue { 0% { top: -40%; } 60%, 100% { top: 110%; } }
@media (prefers-reduced-motion: reduce) { .hero .scroll-cue .cue-line::after { animation: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 15px 40px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.btn:hover { background: transparent; color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--input-line); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* buttons inside dark contexts */
.hero .btn, .page-hero .btn, .site-footer .btn {
  border-color: var(--ice);
  background: var(--ice);
  color: var(--navy);
}
.hero .btn:hover, .page-hero .btn:hover { background: transparent; color: var(--ice); }
.hero .btn.ghost, .page-hero .btn.ghost { background: transparent; color: var(--ice); border-color: var(--line-strong); }
.hero .btn.ghost:hover, .page-hero .btn.ghost:hover { background: var(--ice); color: var(--navy); border-color: var(--ice); }

/* ---------- Sections ---------- */
section.band { padding: var(--band) 0; }
section.band.tint {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
section.band.tint::after {
  content: "";
  position: absolute;
  right: -150px;
  top: 50%;
  transform: translateY(-50%);
  width: 560px;
  height: 560px;
  background: url("/assets/logo-mark-navy.png") center / contain no-repeat;
  opacity: 0.045;
  pointer-events: none;
}
section.band.tint .wrap { position: relative; z-index: 1; }

/* editorial split layout */
.split {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 80px;
  align-items: start;
}
.split > .eyebrow, .split > .section-title { margin-bottom: 0; position: sticky; top: 120px; }
.prose-feature p:first-of-type {
  font-family: var(--serif);
  font-size: var(--fs-feature);
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 28px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 28px;
}
.eyebrow::before { content: ""; width: 52px; height: 1px; background: currentColor; opacity: 0.7; }

h2.section-title {
  font-size: var(--fs-title);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 26px;
}
.section-intro { max-width: 720px; color: var(--ink-muted); }

/* dark-context eyebrows */
.page-hero .eyebrow, .hero .eyebrow { color: var(--ice-faint); }

/* ---------- Contact / form layout ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 90px;
  align-items: start;
}
.contact-intro { position: sticky; top: 120px; }
.contact-intro h2 { font-size: var(--fs-title); line-height: 1.14; margin-bottom: 26px; }
.form-note { color: var(--ink-muted); font-size: var(--fs-secondary); line-height: 1.75; }
.form-key { font-size: var(--fs-secondary); color: var(--ink-faint); margin-bottom: 34px; }

form .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px 40px;
}
form .grid .full { grid-column: 1 / -1; }
label.field { display: block; }
label.field span.lab {
  display: block;
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-ui);
  color: var(--ink-faint);
  margin-bottom: 4px;
}
input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="number"], select, textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--input-line);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--fs-body);
  padding: 8px 2px 10px;
  border-radius: 0;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
select {
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%2342505c' stroke-width='1.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  cursor: pointer;
}
select option { background: var(--paper); color: var(--ink); }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-bottom-color: var(--ink);
  box-shadow: 0 1px 0 0 var(--ink);
}
input:focus:not(:focus-visible), select:focus:not(:focus-visible), textarea:focus:not(:focus-visible) { outline: none; }
::placeholder { color: var(--ink-faint); }

input[type="file"] {
  width: 100%;
  border: 1px dashed var(--input-line);
  padding: 18px 16px;
  font-family: var(--sans);
  font-size: var(--fs-secondary);
  color: var(--ink-muted);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.25s ease;
}
input[type="file"]:hover { border-color: var(--ink); }
input[type="file"]:focus { border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: 3px; }

.checkline {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: var(--fs-secondary);
  color: var(--ink-muted);
  margin-top: 10px;
  line-height: 1.6;
}
.checkline input[type="checkbox"] {
  margin-top: 2px;
  width: 24px; height: 24px;
  accent-color: var(--navy);
  flex: none;
}
.checkline a { text-decoration: underline; text-underline-offset: 3px; }
.checkline a:hover { color: var(--ink); }

.form-footnote {
  margin-top: 36px;
  font-size: var(--fs-caption);
  color: var(--ink-faint);
  max-width: 760px;
  line-height: 1.65;
}
form .submit-row { margin-top: 46px; }

/* homepage inquiry section: shallow full-width composition */
#inquiries.band { padding: 84px 0 96px; }
.inquiries-head {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 24px 64px;
  align-items: end;
  margin-bottom: 40px;
}
.inquiries-head .section-title { margin-bottom: 0; }
.inquiries-head .form-note { max-width: 56ch; }
/* 6-col module: text fields span 2 (3 per row), selects span 3 (2 per row) */
#inquiries form .grid { grid-template-columns: repeat(6, 1fr); gap: 20px 28px; }
#inquiries form .grid > label.field { grid-column: span 2; }
#inquiries form .grid > label.field-wide { grid-column: span 3; }
#inquiries form .grid > .full { grid-column: 1 / -1; }
#inquiries .form-legal {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}
#inquiries .form-send {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 6px;
}
#inquiries .form-send .btn { width: 304px; text-align: center; }
#inquiries form textarea { min-height: 76px; }
#inquiries .form-key { font-size: var(--fs-caption); margin-bottom: 18px; }
#inquiries .checkline { gap: 12px; margin-top: 0; }
#inquiries .form-footnote { margin-top: 26px; }

@media (max-width: 1000px) {
  #inquiries form .grid { grid-template-columns: 1fr 1fr; }
  #inquiries form .grid > label.field,
  #inquiries form .grid > label.field-wide { grid-column: auto; }
  .inquiries-head { grid-template-columns: 1fr; align-items: start; }
}

.req { color: var(--ink-faint); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- ATS-style application form ---------- */
form fieldset { border: 0; margin: 0 0 8px; min-width: 0; }
form fieldset + fieldset { border-top: 1px solid var(--rule); padding-top: 44px; margin-top: 52px; }
form legend {
  float: left; /* lifts legend out of the fieldset border area so the divider sits well above it */
  width: 100%;
  font-size: var(--fs-heading);
  color: var(--ink);
  margin-bottom: 24px;
  padding: 0;
}
form legend + *, form fieldset .grid { clear: both; }
form legend + .legend-note { margin-top: -14px; }
.legend-note { font-size: var(--fs-secondary); color: var(--ink-faint); margin-bottom: 30px; }
.hint { display: block; font-size: var(--fs-caption); color: var(--ink-faint); margin-top: 8px; line-height: 1.5; }
.consent-note {
  margin-top: 26px;
  font-size: var(--fs-caption);
  color: var(--ink-faint);
  max-width: 700px;
  line-height: 1.65;
}
.consent-note a { text-decoration: underline; text-underline-offset: 3px; }
.consent-note a:hover { color: var(--ink); }

/* boxed variant for the application form: visible field boundaries, tighter rhythm */
.app-form .grid { gap: 22px 24px; }
.app-form input[type="text"], .app-form input[type="email"], .app-form input[type="tel"],
.app-form input[type="url"], .app-form select, .app-form textarea {
  border: 1px solid var(--input-line);
  background: #fff;
  padding: 12px 14px;
}
.app-form select { background-position: right 12px center; background-color: #fff; }
.app-form textarea { min-height: 96px; }
.app-form input:focus, .app-form select:focus, .app-form textarea:focus {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.app-form input[type="file"] { background: #fff; padding: 14px; }
.app-form input:user-invalid, .app-form select:user-invalid, .app-form textarea:user-invalid {
  border-color: #9c3232;
  box-shadow: none;
}
.app-form fieldset + fieldset { padding-top: 36px; margin-top: 40px; }
.app-form legend { margin-bottom: 18px; }
.app-form legend + .legend-note { margin-top: -8px; margin-bottom: 22px; }
.app-form .hint { margin-top: 6px; }
.app-form .submit-row { margin-top: 38px; }

/* inline validation feedback (after user interaction) */
input:user-invalid, select:user-invalid, textarea:user-invalid { border-bottom-color: #9c3232; }
label.field:has(:user-invalid) span.lab { color: #9c3232; }
input[type="file"]:user-invalid { border-color: #9c3232; }
input[type="checkbox"]:user-invalid { outline: 2px solid #9c3232; outline-offset: 2px; }


/* ---------- Servicing routing callout ---------- */
.callout {
  margin-top: 30px;
  border: 1px solid var(--rule-dark);
  border-left: 3px solid var(--deep);
  background: var(--paper-2);
  padding: 20px 22px;
  font-size: var(--fs-secondary);
  color: var(--ink-muted);
  line-height: 1.7;
}
.callout strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 6px; }
.callout a { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.callout a:hover { color: var(--ink); }

/* servicing notice below the inquiry form: bold question, text beneath, slim */
.callout-notice {
  margin: 56px 0 0;
  padding: 16px 20px;
}

.callout-dark {
  border-color: var(--line-strong);
  border-left-color: var(--ice);
  background: rgba(226, 239, 252, 0.06);
  color: var(--ice-muted);
  max-width: 640px;
}
.callout-dark strong { color: var(--ice); }
.callout-dark a:hover { color: var(--ice); }


/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  padding: 168px 0 88px;
  color: var(--ice);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(20, 65, 110, 0.5), transparent 60%),
    linear-gradient(175deg, var(--deep) 0%, var(--navy) 72%);
  border-bottom: 1px solid var(--line);
}
.page-hero.short-hero { min-height: 68vh; min-height: 68svh; display: flex; align-items: center; }
.page-hero.short-hero .wrap { width: 100%; }
.page-hero h1 {
  font-size: var(--fs-title);
  line-height: 1.1;
  letter-spacing: -0.015em;
  max-width: 16em;
}
.page-hero p.lead { margin-top: 26px; max-width: 660px; color: var(--ice-muted); font-size: var(--fs-lead); line-height: 1.75; }
.page-hero .meta {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ice-muted);
}
.page-hero .meta span { border: 1px solid var(--line-strong); padding: 8px 16px; }
.mt-lg { margin-top: 36px; }

/* ---------- Careers ---------- */
.roles-list { display: grid; gap: 18px; }
.role-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 36px 38px;
  background: #fff;
  border: 1px solid var(--rule-dark);
  border-left: 3px solid var(--deep);
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.role-card:hover, .role-card:focus-visible {
  border-color: var(--ink);
  border-left-color: var(--deep);
  box-shadow: 0 10px 30px rgba(19, 32, 44, 0.07);
}
.role-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.role-card h3 { font-size: var(--fs-heading); margin-bottom: 8px; }
.role-card p { color: var(--ink-muted); font-size: var(--fs-secondary); letter-spacing: 0.04em; }
.role-card .go {
  color: var(--ink);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 12px;
}
.role-card .go::after { content: "→"; font-size: 1.125rem; transition: transform 0.3s ease; }
.role-card:hover .go::after, .role-card:focus-visible .go::after { transform: translateX(6px); }

/* ---------- Job page: prose + sticky summary rail ---------- */
.job-layout {
  display: grid;
  grid-template-columns: 7.5fr 4fr;
  gap: 80px;
  align-items: start;
}
.job-layout > .prose { grid-column: 1; grid-row: 1; }
.job-rail {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: 120px;
  background: #fff;
  border: 1px solid var(--rule-dark);
  border-top: 3px solid var(--deep);
  padding: 30px 30px 32px;
}
.job-rail .rail-h {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 20px;
}
.job-rail dl { margin: 0 0 26px; }
.job-rail dt {
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.job-rail dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: var(--fs-secondary);
}
.job-rail dd + dt { margin-top: 18px; }
.job-rail .btn { display: block; width: 100%; text-align: center; }

/* ---------- Prose (legal + job body) ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: var(--fs-heading); margin: 56px 0 18px; letter-spacing: -0.01em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--fs-subheading); margin: 40px 0 14px; }
.prose p { margin: 0 0 18px; color: var(--ink-muted); }
.prose ul { margin: 0 0 24px 20px; color: var(--ink-muted); }
.prose li { margin-bottom: 10px; padding-left: 6px; }
.prose li::marker { color: var(--ink-faint); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--ink); }
.effective { color: var(--ink-faint); font-size: var(--fs-secondary); margin-bottom: 40px; letter-spacing: 0.02em; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy);
  color: var(--ice-muted);
  padding: 84px 0 36px;
  font-size: var(--fs-secondary);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1.3fr;
  gap: 64px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.footer-brand { display: inline-flex; align-items: center; gap: 13px; color: var(--ice); }
.footer-brand img { height: 34px; }
.footer-brand span { font-size: 1.125rem; letter-spacing: 0.05em; }
.footer-address { margin-top: 22px; line-height: 1.9; color: var(--ice-muted); }
.footer-address a { text-decoration: underline; text-underline-offset: 3px; }
.footer-address a:hover, .footer-servicing a:hover, .footer-menu a:hover { color: var(--ice); }
.footer-h {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--ice-faint);
  margin-bottom: 18px;
}
.footer-menu { list-style: none; }
.footer-menu a { display: inline-block; padding: 7px 0; color: var(--ice-muted); }
.footer-servicing { color: var(--ice-muted); line-height: 1.8; max-width: 40ch; }
.footer-servicing a { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.footer-legal {
  margin-top: 44px;
  columns: 2;
  column-gap: 64px;
  font-size: var(--fs-caption);
  color: var(--ice-faint);
  line-height: 1.75;
}
.footer-legal p { margin-bottom: 14px; break-inside: avoid; }
.footer-base {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: var(--fs-caption);
  color: var(--ice-faint);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .contact-intro { position: static; }
  .job-layout { grid-template-columns: 1fr; gap: 44px; }
  .job-layout > .prose, .job-rail { grid-column: 1; grid-row: auto; }
  .job-rail { position: static; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split > .eyebrow, .split > .section-title { position: static; margin-bottom: 6px; }
  section.band.tint::after { width: 380px; height: 380px; right: -160px; }
}

@media (max-width: 760px) {
  :root {
    --pad: 22px;
    --band: 68px;
    --fs-display: 1.875rem;   /* 30: mobile hero headline */
    --fs-title: 1.625rem;     /* 26 */
    --fs-heading: 1.375rem;   /* 22 */
    --fs-subheading: 1.125rem;/* 18 */
    --fs-lead: 1rem;          /* 16 */
    --fs-body: 1rem;          /* 16 */
    --fs-secondary: 0.875rem; /* 14 */
    --fs-ui: 0.75rem;         /* 12 */
    --ls-ui: 0.1em;
    --ls-eyebrow: 0.2em;
  }

  /* header: compact single row, no crowding */
  .site-header .wrap { height: 60px; gap: 12px; }
  .brand { gap: 10px; }
  .brand img { height: 22px; }
  .brand span { font-size: 0.875rem; letter-spacing: 0.04em; }
  html.js .menu-toggle { display: inline-flex; }
  html.js .site-nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 17, 24, 0.97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 6px 22px 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s 0.25s;
  }
  html.js .site-nav.open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s;
  }
  html.js .site-nav a {
    padding: 16px 0;
    font-size: 0.8125rem;
    letter-spacing: 0.2em;
    border-bottom: 1px solid var(--line);
  }
  html.js .site-nav a:last-child { border-bottom: 0; }
  .site-nav { gap: 16px; }
  .site-nav a { padding: 6px 0; }

  /* hero: mobile gets its own composition. The video becomes a cinematic
     band at the top that fades into solid navy; all text sits on solid
     color below for full readability. */
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    align-items: flex-end;
    background: #0a141f;
  }
  .hero video {
    top: 0;
    bottom: auto;
    height: 340px;
  }
  .hero::after {
    background:
      repeating-linear-gradient(0deg, rgba(226, 239, 252, 0.025) 0 1px, transparent 1px 5px),
      repeating-linear-gradient(90deg, rgba(226, 239, 252, 0.025) 0 1px, transparent 1px 5px),
      linear-gradient(180deg,
        rgba(7, 14, 23, 0.45) 0px,
        rgba(7, 14, 23, 0.55) 160px,
        rgba(10, 20, 31, 0.92) 300px,
        #0a141f 345px,
        #0a141f 100%);
  }
  .hero .wrap { padding-top: 348px; padding-bottom: 72px; }
  .hero h1 { line-height: 1.18; text-shadow: none; }
  .hero h1::before {
    content: "";
    display: block;
    width: 44px;
    height: 2px;
    background: var(--ice);
    opacity: 0.85;
    margin-bottom: 24px;
  }
  .hero p.lead {
    margin-top: 18px;
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--ice-muted);
    text-shadow: none;
  }
  .hero .hero-actions { margin-top: 32px; flex-direction: column; align-items: stretch; gap: 20px; }
  .hero .hero-actions .btn { width: 100%; text-align: center; padding: 16px 20px; }
  .hero .hero-actions .btn.ghost {
    width: auto;
    align-self: flex-start;
    border: 0;
    padding: 4px 0;
    background: transparent;
    color: var(--ice-muted);
  }
  .hero .hero-actions .btn.ghost::after { content: "  →"; white-space: pre; }
  .hero .hero-actions .btn.ghost:hover { background: transparent; color: var(--ice); }
  .hero .scroll-cue { display: none; }
  .video-toggle { top: 275px; bottom: auto; right: 16px; width: 40px; height: 40px; }

  /* sections */
  h2.section-title, .contact-intro h2 { margin-bottom: 18px; }
  .eyebrow { margin-bottom: 20px; gap: 12px; }
  .eyebrow::before { width: 36px; }
  section.band.tint::after { display: none; }

  /* interior page heroes */
  .page-hero { padding: 118px 0 54px; }
  .page-hero p.lead { margin-top: 18px; }
  .page-hero .meta { margin-top: 20px; gap: 8px; }
  .page-hero .meta span { padding: 6px 12px; }
  .page-hero.short-hero { min-height: 62vh; min-height: 62svh; }

  /* forms */
  #inquiries.band { padding: var(--band) 0; }
  .inquiries-head { margin-bottom: 32px; }
  .callout-notice { margin: 40px 0 0; padding: 16px 18px; }
  form .grid, #inquiries form .grid { grid-template-columns: 1fr; gap: 26px; }
  #inquiries form .grid > label.field, #inquiries form .grid > label.field-wide,
  #inquiries .form-legal, #inquiries .form-send { grid-column: 1 / -1; }
  #inquiries .form-send .btn { width: 100%; }
  .app-form .grid { gap: 16px; }
  form fieldset + fieldset { padding-top: 32px; margin-top: 38px; }
  form legend { margin-bottom: 16px; }
  form .submit-row { margin-top: 34px; }
  form .submit-row .btn, form button.btn { width: 100%; text-align: center; padding: 16px 20px; }
  .contact-grid { gap: 44px; }

  /* careers */
  .role-card { flex-direction: column; align-items: flex-start; gap: 14px; padding: 24px 20px; }

  /* prose rhythm */
  .prose h2 { margin: 40px 0 14px; }
  .prose h3 { margin: 30px 0 12px; }

  /* footer */
  footer.site-footer { padding: 56px 0 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 40px; }
  .footer-brand img { height: 28px; }
  .footer-brand span { font-size: 1rem; }
  .footer-menu a { padding: 9px 0; }
  .footer-legal { columns: 1; margin-top: 36px; }
  .footer-base { flex-direction: column; gap: 4px; }
}

@media (max-width: 370px) {
  .brand span { display: none; }
}
