/* ==========================================================================
   NexGen Talent Partners — design system
   Warm paper, ink, teal and ember. Fraunces display over Outfit.
   Reference language: rounded cards, pill buttons, letterspaced kickers.
   ========================================================================== */

:root {
  --ink: #102033;
  --ink-soft: #1b2f45;
  --paper: #f6f3ec;
  --surface: #fffcf8;
  --sand: #efe9dd;
  --teal: #0e6b66;
  --teal-deep: #0a4f4b;
  --ember: #d86a32;
  --muted: #5c6770;
  --line: #e4ddd2;
  --foam: #e5f2f0;
  --danger: #8f2d2d;
  --danger-bg: #f8e8e4;
  --ok: #1c6b46;
  --ok-bg: #dcefe4;
  --warn: #9a5518;
  --warn-bg: #fbe8d8;

  --shadow: 0 16px 40px rgba(16, 32, 51, .08);
  --shadow-sm: 0 1px 0 rgba(16, 32, 51, .03);

  --sans: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;

  --wrap: 1120px;
  --gutter: 2rem;
  --r-xl: 28px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 14px;
  --pill: 999px;
}

/* ------------------------------- base ---------------------------------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
img { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
button, [role="button"], a, summary, label.consent, .choice { cursor: pointer; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--foam); color: var(--ink); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 560;
  letter-spacing: -.02em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
h1 em, h1 i { font-style: italic; color: var(--teal); font-weight: 560; }
h4 { margin: 0; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; }

.wrap { width: min(var(--wrap), calc(100% - var(--gutter))); margin-inline: auto; }

.section { padding: 60px 0; }
.section--paper { background: var(--surface); }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px;
  border-radius: var(--pill); text-decoration: none; font-weight: 650;
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

/* --------------------------- typography -------------------------------- */

h1 { font-size: clamp(2.15rem, 4.3vw, 3.55rem); line-height: 1.04; }
h2 { font-size: clamp(1.85rem, 3.1vw, 2.85rem); }
h3 { font-size: clamp(1.3rem, 1.9vw, 1.6rem); }

.lede { color: var(--muted); font-size: 1.08rem; max-width: 40rem; margin-top: 14px; }

.kicker {
  display: block;
  font-size: .74rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ember); margin-bottom: 14px;
}
.kicker--light { color: #f0b08a; }

.hint, .label-hint { font-size: .84rem; color: var(--muted); }
.meta { font-size: .84rem; color: var(--muted); }
.num, .amount, .updated, .ref-v, .code { font-variant-numeric: tabular-nums; }

/* ------------------------------ buttons -------------------------------- */

.btn, .btn-primary, .btn-outline, .btn-ghost-light {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: var(--pill);
  font-family: var(--sans); font-size: .95rem; font-weight: 650;
  text-decoration: none; border: 1px solid transparent; white-space: nowrap;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .15s ease;
}
.btn svg { width: 15px; height: 15px; flex: 0 0 auto; }
.btn-primary { background: var(--teal); color: #fbfaf6; }
.btn-primary:hover { background: var(--teal-deep); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal-deep); background: var(--surface); }
.btn-ghost-light { background: transparent; border-color: rgba(246, 243, 236, .34); color: #f6f3ec; }
.btn-ghost-light:hover { background: rgba(246, 243, 236, .12); border-color: rgba(246, 243, 236, .6); }
.btn-sm { min-height: 38px; padding: 0 15px; font-size: .88rem; }
.btn-primary:active, .btn-outline:active, .btn-ghost-light:active, .btn:active { transform: scale(.975); }
.btn[disabled], button[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.btn-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--teal); font-weight: 700; font-size: .92rem; text-decoration: none;
  transition: color .18s ease, gap .18s ease;
}
.btn-link svg { width: 14px; height: 14px; }
.btn-link:hover { color: var(--teal-deep); gap: 10px; }

/* ------------------------------ header --------------------------------- */

.topbar { background: var(--ink); color: #e9e3d7; font-size: .84rem; }
.topbar-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 9px 0; flex-wrap: wrap;
}
.topbar-links { display: flex; gap: 18px; align-items: center; }
.topbar-links a { color: #f6f3ec; text-decoration: none; font-weight: 600; }
.topbar-links a:hover { color: #9ad7d1; }

.masthead {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246, 243, 236, .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(228, 221, 210, .9);
}
.masthead-in { display: flex; align-items: center; gap: 12px; min-height: 68px; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; }
.logo-mark svg { width: 34px; height: 34px; display: block; }
.logo-mark rect { fill: var(--teal); }
.logo-text { display: grid; }
.logo-text b {
  font-family: var(--display); font-size: 1.14rem; font-weight: 640;
  line-height: 1.05; letter-spacing: -.01em;
}
.logo-text span {
  font-size: .64rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--teal); margin-top: 3px;
}

.nav { display: none; margin-left: auto; align-items: center; gap: 2px; }
.nav a {
  text-decoration: none; padding: 9px 13px; border-radius: var(--pill);
  font-size: .93rem; font-weight: 550; color: var(--ink);
  transition: background .16s ease, color .16s ease;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--foam); color: var(--teal-deep); }
.nav .nav-cta { margin-left: 10px; color: #fbfaf6; }
.nav .nav-cta:hover { background: var(--teal-deep); color: #fbfaf6; }

.nav-btn {
  margin-left: auto; width: 44px; height: 44px; border-radius: var(--pill);
  border: 1px solid var(--line); background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center;
}
.nav-btn-bar, .nav-btn-bar::before, .nav-btn-bar::after {
  display: block; width: 18px; height: 1.6px; background: var(--ink); border-radius: 2px;
}
.nav-btn-bar { position: relative; }
.nav-btn-bar::before, .nav-btn-bar::after { content: ""; position: absolute; left: 0; }
.nav-btn-bar::before { top: -6px; }
.nav-btn-bar::after { top: 6px; }

.nav.is-open {
  display: flex; flex-direction: column; align-items: stretch;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding: 12px var(--gutter) 18px; gap: 4px;
  box-shadow: 0 20px 40px rgba(16, 32, 51, .1);
}
.nav.is-open a { padding: 11px 12px; }
.nav.is-open .nav-cta { margin: 8px 0 0; }

/* ------------------------------- hero ---------------------------------- */

.hero { padding: 38px 0 52px; }
.hero-grid { display: grid; gap: 34px; align-items: center; }
.hero h1 { margin-top: 4px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.hero-facts {
  display: flex; flex-wrap: wrap; gap: 16px 36px;
  margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line);
}
.hero-facts b {
  display: block; font-family: var(--display); font-size: 1.55rem;
  font-weight: 640; line-height: 1.1; color: var(--ink);
}
.hero-facts span { display: block; font-size: .84rem; color: var(--muted); margin-top: 3px; }

.hero-art { position: relative; }
.hero-media { margin: 0; }
.hero-media img {
  width: 100%; height: 360px; object-fit: cover;
  border-radius: var(--r-xl); box-shadow: var(--shadow);
  background: var(--sand);
}

.shortlist {
  background: rgba(255, 252, 248, .97);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  margin-top: 14px;
}
.shortlist--float {
  position: absolute; left: -26px; bottom: -24px;
  width: calc(100% + 26px); max-width: 468px;
  margin: 0; padding: 16px 18px; border-radius: 20px;
  background: rgba(255, 252, 248, .97);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.shortlist-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.shortlist-head strong { display: block; min-height: 1.5em; line-height: 1.3; }
.shortlist-head strong, .shortlist-head span { transition: opacity .16s ease; }
.shortlist tbody tr { transition: opacity .16s ease; }
.shortlist tbody tr.is-out,
.shortlist-head .is-out { opacity: 0; }
.shortlist-head strong { font-family: var(--display); font-size: .97rem; font-weight: 640; }
.shortlist-head span { font-size: .74rem; color: var(--muted); }
.shortlist table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.shortlist th {
  text-align: left; font-size: .66rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); padding: 0 0 6px; border-bottom: 1px solid var(--line);
}
.shortlist th.num, .shortlist td.num { text-align: right; }
.shortlist td { padding: 6px 0; height: 31px; font-size: .81rem; border-bottom: 1px solid rgba(228, 221, 210, .7); }
.shortlist tr:last-child td { border-bottom: 0; }
.shortlist-foot {
  display: flex; justify-content: space-between; gap: 10px;
  margin-top: 10px; font-size: .68rem; color: var(--muted);
}
.who { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.who i {
  width: 24px; height: 24px; border-radius: var(--pill); display: grid; place-items: center;
  background: var(--foam); color: var(--teal-deep); font-size: .6rem; font-weight: 700; font-style: normal;
}

.badge {
  display: inline-block; padding: 4px 10px; border-radius: var(--pill);
  background: var(--foam); color: var(--teal-deep);
  font-size: .7rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
}
.badge--ok { background: var(--ok-bg); color: var(--ok); }
.badge--warn { background: var(--warn-bg); color: var(--warn); }

/* ----------------------------- marquee --------------------------------- */

.partners {
  border-block: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  padding: 15px 0;
}
.partners-in { display: none; }
.partners-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.partners-list { display: flex; align-items: center; }
.partners-list span {
  font-size: .76rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--teal); white-space: nowrap;
}
.partners-list span::after {
  content: "/"; color: var(--ember); font-weight: 700;
  margin: 0 26px; letter-spacing: 0;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --------------------------- section heads ----------------------------- */

.sec-head { max-width: 46rem; margin-bottom: 30px; }
.sec-head p { color: var(--muted); margin-top: 14px; max-width: 40rem; }
.sec-head--split {
  max-width: none; display: flex; flex-wrap: wrap;
  align-items: end; justify-content: space-between; gap: 16px;
}
.sec-head--split > div { max-width: 40rem; }

/* ------------------------------ tiles ---------------------------------- */

.tiles { display: grid; gap: 16px; }
.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d8cfc0; }
.tile-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.tile-num {
  font-size: .7rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ember);
}
.tile-icon {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: var(--r-sm); background: var(--foam); color: var(--teal-deep);
}
.tile-icon svg { width: 18px; height: 18px; }
.tile h3 { margin: 0 0 10px; }
.tile p { color: var(--muted); font-size: .95rem; }
.tile ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 7px; }
.tile li { position: relative; padding-left: 16px; font-size: .87rem; color: var(--muted); }
.tile li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal); opacity: .55;
}

/* ------------------------------ stats ---------------------------------- */

.ledger { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 26px; }
.ledger-cell {
  background: var(--ink); color: var(--paper);
  border-radius: 22px; padding: 20px;
}
.ledger-cell b {
  display: block; font-family: var(--display); font-size: 2rem;
  font-weight: 600; line-height: 1; letter-spacing: -.02em;
}
.ledger-cell span { display: block; margin-top: 8px; font-size: .8rem; line-height: 1.35; color: #cdd6d0; }

/* ------------------------------ steps ---------------------------------- */

.flow { display: grid; }
.flow-row {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 16px;
  padding: 20px 0; border-top: 1px solid var(--line);
}
.flow-row:last-child { border-bottom: 1px solid var(--line); }
.flow-num {
  width: 34px; height: 34px; border-radius: var(--pill);
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center; font-size: .78rem; font-weight: 700;
  grid-row: span 2;
}
.flow-title { font-weight: 650; font-size: 1.02rem; align-self: center; }
.flow-body { grid-column: 2; color: var(--muted); font-size: .92rem; }

/* ------------------------------ media ---------------------------------- */

.band, .page-media { margin: 0; }
.band img, .page-media img {
  width: min(var(--wrap), calc(100% - var(--gutter)));
  margin-inline: auto;
  height: clamp(240px, 30vw, 420px);
  object-fit: cover;
  object-position: 50% 32%;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
  background: var(--sand);
}

/* ----------------------------- panels ---------------------------------- */

.split { display: grid; gap: 16px; }
.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
}
.panel h3 { margin: 0 0 10px; }
.panel p { color: var(--muted); font-size: .95rem; }
.panel ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 9px; }
.panel li { position: relative; padding-left: 18px; font-size: .9rem; color: var(--muted); }
.panel li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--teal); opacity: .5;
}
.panel-foot { margin-top: auto; padding-top: 22px; }

.panel--navy { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.panel--navy h3 { color: #fbfaf6; }
.panel--navy p, .panel--navy li { color: #cdd6d0; }
.panel--navy li::before { background: #9ad7d1; opacity: .8; }
.panel--navy .kicker { color: #f0b08a; }

/* ------------------------------ quote ---------------------------------- */

.quote {
  margin: 0; padding: 34px 30px;
  background: var(--foam); border-radius: var(--r-xl);
  position: relative;
}
.quote p {
  font-family: var(--display); font-size: clamp(1.3rem, 2.3vw, 1.85rem);
  line-height: 1.32; font-weight: 560; letter-spacing: -.015em;
  max-width: 48rem;
}
.quote footer {
  margin-top: 20px; font-size: .84rem; color: var(--teal-deep); font-weight: 600;
}

/* -------------------------------- cta ---------------------------------- */

.cta { background: var(--ink); color: var(--paper); padding: 54px 0; }
.cta-in { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; justify-content: space-between; }
.cta h2 { color: #fbfaf6; max-width: 34rem; }
.cta p { color: #cdd6d0; margin-top: 12px; max-width: 38rem; font-size: .95rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btn-primary { background: var(--ember); color: #fffaf6; }
.cta .btn-primary:hover { background: #c25c28; }

/* ------------------------------ footer --------------------------------- */

.footer { background: var(--ink); color: #d7ddd8; padding: 52px 0 26px; }
.footer a { color: #f6f3ec; text-decoration: none; }
.footer a:hover { color: #9ad7d1; }
.footer-grid { display: grid; gap: 30px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo-mark rect { fill: var(--teal); }
.footer-brand .logo-text b { color: #f6f3ec; }
.footer-brand .logo-text span { color: #9ad7d1; }
.footer-brand p { color: #a9b4ad; font-size: .9rem; max-width: 22rem; }
.footer-contact { display: grid; gap: 6px; margin-top: 18px; font-size: .88rem; color: #a9b4ad; }
.footer h4 {
  font-family: var(--sans); font-size: .7rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: #93a099; margin-bottom: 14px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: .9rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between;
  margin-top: 36px; padding-top: 18px;
  border-top: 1px solid rgba(246, 243, 236, .14);
  font-size: .8rem; color: #93a099;
}
.footer--bare { padding-top: 0; }
.footer--bare .footer-bottom { border-top: 0; margin-top: 0; }

/* ---------------------------- page heads ------------------------------- */

.page-head { padding: 40px 0 12px; }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 18px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; }
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: #c3b8a8; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--teal); }
.crumbs span[aria-hidden] { color: #c3b8a8; }
.page-head h1 { font-size: clamp(2.1rem, 4vw, 3.15rem); }

.notfound { padding: 64px 0 84px; max-width: 44rem; }
.notfound .code {
  font-family: var(--display); font-size: clamp(3.6rem, 10vw, 6.4rem);
  line-height: 1; letter-spacing: -.04em; color: var(--teal); margin: 0 0 10px;
}
.notfound h1 { margin-bottom: 14px; }
.notfound p { color: var(--muted); max-width: 34rem; }
.notfound-actions, .confirm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ------------------------------ forms ---------------------------------- */

.form-shell { padding: 30px 0 70px; }
.form-grid { display: grid; gap: 26px; align-items: start; }

.form-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm);
}

.error-summary {
  border: 1px solid #e7c6c0; background: var(--danger-bg); color: var(--danger);
  border-radius: var(--r-sm); padding: 16px 18px; margin-bottom: 26px;
}
.error-summary { display: none; }
.error-summary.is-visible { display: block; }
.error-summary h2, .error-summary h3 { font-family: var(--sans); font-size: .95rem; font-weight: 700; margin: 0 0 8px; }
.error-summary ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.error-summary a { color: var(--danger); font-weight: 600; }
.error-summary p { margin: 0; }

.form-section { border-top: 1px solid var(--line); padding-top: 26px; margin-top: 26px; }
.form-section:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.n {
  display: block; font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ember); margin-bottom: 10px;
}
.form-section header { margin-bottom: 6px; }
.form-section h2 { font-size: 1.5rem; line-height: 1.2; }
.form-section .hint { margin-bottom: 20px; }

.grid { display: grid; gap: 16px; }

.field { display: grid; align-content: start; gap: 7px; min-width: 0; }
.field label, label.lbl {
  font-size: .87rem; font-weight: 650; display: flex; gap: 4px; align-items: baseline;
}
.req { color: var(--ember); font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #a7a29a; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px var(--foam); outline: none;
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"],
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea {
  border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-bg);
}
label.consent.is-invalid { color: var(--danger); }
label.consent.is-invalid input { outline: 2px solid var(--danger); outline-offset: 2px; }
.err { font-size: .82rem; color: var(--danger); font-weight: 600; }
.err:empty { display: none; }

.phone-row { display: grid; grid-template-columns: 104px 1fr; gap: 10px; }

.pw-wrap { position: relative; display: grid; }
.pw-wrap input { padding-right: 66px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: var(--teal);
  font-size: .78rem; font-weight: 700; padding: 8px 10px; border-radius: var(--pill);
}
.pw-toggle:hover { background: var(--foam); }

.pw-checks { display: grid; gap: 6px; margin-top: 4px; }
.pw-check {
  font-size: .82rem; color: var(--muted); padding-left: 22px; position: relative;
}
.pw-check::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 12px; height: 12px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--surface);
}
.pw-check.is-met { color: var(--teal-deep); }
.pw-check.is-met::before {
  border-color: var(--teal); background: var(--teal);
  box-shadow: inset 0 0 0 2px var(--surface);
}

label.consent {
  display: grid; grid-template-columns: auto 1fr; gap: 12px;
  align-items: start; font-size: .9rem; color: var(--muted); line-height: 1.5;
}
label.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--teal); }
label.consent a { color: var(--teal-deep); font-weight: 600; }

.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.form-actions .btn-primary { min-height: 50px; padding: 0 26px; }

.notice {
  margin-top: 20px; padding: 16px 18px; border-radius: var(--r-sm);
  background: var(--foam); color: var(--teal-deep); font-size: .88rem;
  border: 1px solid #cfe4e1;
}

.aside { display: grid; gap: 16px; }
.aside-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px;
}
.aside-card h2, .aside-card h3 { font-size: 1.1rem; line-height: 1.25; margin-bottom: 10px; letter-spacing: -.01em; }
.aside-card p { font-size: .88rem; color: var(--muted); }
.aside-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.aside-card li {
  position: relative; padding-left: 16px; font-size: .86rem; color: var(--muted);
}
.aside-card li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal); opacity: .5;
}
.aside-card--tint { background: var(--foam); border-color: #cfe4e1; }
.aside-card--tint h3 { color: var(--teal-deep); }
.aside-contact { display: grid; gap: 6px; font-size: .88rem; color: var(--muted); }
.aside-contact a { color: var(--teal-deep); font-weight: 600; text-decoration: none; }

/* ----------------------------- confirm --------------------------------- */

.confirm { padding: 56px 0 70px; display: grid; place-items: center; }
.confirm-card {
  width: min(660px, 100%); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 34px; box-shadow: var(--shadow); text-align: center;
}
.confirm-mark {
  width: 54px; height: 54px; border-radius: var(--pill); background: var(--ok-bg);
  display: grid; place-items: center; margin: 0 auto 18px;
}
.confirm-mark svg { width: 21px; height: 21px; color: var(--ok); }
.confirm-card h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.confirm-card .lede { margin-inline: auto; text-align: center; }
.ref {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px;
  align-items: center; text-align: left;
  margin: 22px auto 4px; padding: 14px 18px; max-width: 30rem;
  background: var(--foam); border-radius: var(--r-sm);
}
.ref > div { display: grid; gap: 3px; text-align: left; min-width: 0; }
.ref-k { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-deep); }
.ref-v { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1rem; font-weight: 700; color: var(--ink); }
.confirm-steps {
  list-style: none; list-style-type: none; padding: 0; margin: 26px 0 0;
  display: grid; gap: 14px; text-align: left;
}
.confirm-steps li { list-style: none; }
.confirm-steps li::marker { content: none; }
.confirm-steps li {
  position: relative; padding-left: 38px; font-size: .9rem; color: var(--muted);
}
.confirm-steps li i {
  position: absolute; left: 0; top: 0;
  width: 24px; height: 24px; border-radius: var(--pill);
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  font-size: .7rem; font-weight: 700; font-style: normal;
}
.confirm-actions { justify-content: center; }
.confirm-note { margin-top: 22px; font-size: .8rem; color: var(--muted); }

/* --------------------------- content blocks ---------------------------- */

.fees { display: grid; gap: 16px; }
.fee {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 24px;
}
.fee .amount {
  font-family: var(--display); font-size: 2.1rem; font-weight: 640;
  letter-spacing: -.03em; color: var(--teal); margin-bottom: 8px;
}
.fee h3 { font-size: 1.1rem; margin-bottom: 8px; }
.fee p { font-size: .88rem; color: var(--muted); }

.offices { display: grid; gap: 16px; }
.office {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px;
}
.office h3 { font-size: 1.1rem; margin-bottom: 6px; }
.office p { font-size: .88rem; color: var(--muted); }
.office .meta { margin-top: 12px; font-size: .82rem; }

.team { display: grid; gap: 16px; }
.member {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px;
}
.member h3 { font-size: 1.08rem; margin-bottom: 4px; }
.member p { font-size: .88rem; color: var(--muted); }
.member .meta {
  margin-top: 10px; font-size: .85rem; line-height: 1.5;
  color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 400;
}

.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.12rem; margin: 26px 0 8px; }
.prose p { color: #33414f; margin: 0 0 14px; }
.prose ul, .prose ol { color: #33414f; padding-left: 20px; margin: 0 0 16px; display: grid; gap: 7px; }
.prose a { color: var(--teal-deep); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: .9rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.prose .updated { font-size: .84rem; color: var(--muted); }

/* ---------------------------- breakpoints ------------------------------ */

@media (min-width: 700px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .field.full { grid-column: 1 / -1; }
  .fees, .offices { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 860px) {
  .nav { display: flex; }
  .nav-btn { display: none; }
  .hero { padding: 56px 0 76px; }
  .hero-grid { grid-template-columns: 1.04fr .96fr; gap: 48px; align-items: center; }
  .hero-media img { height: 524px; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .ledger { grid-template-columns: repeat(4, 1fr); }
  .flow-row { grid-template-columns: auto 178px 1fr; gap: 16px; align-items: start; }
  .flow-num { grid-row: span 1; }
  .flow-body { grid-column: 3; }
  .split { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: minmax(0, 1fr) 330px; gap: 32px; }
  .form-card { padding: 32px; }
  .footer-grid { grid-template-columns: 1.7fr 1fr 1fr 1fr; }
  .section { padding: 76px 0; }
  .page-head { padding: 52px 0 16px; }
  .quote { padding: 44px 44px; }
  .confirm-card { padding: 44px; }
  .notfound { padding: 80px 0 100px; }
  .aside { position: sticky; top: 88px; }
}

@media (min-width: 1040px) {
  .team { grid-template-columns: repeat(4, 1fr); }
  .offices { grid-template-columns: repeat(3, 1fr); }
  .fees { grid-template-columns: repeat(3, 1fr); }
}

/* single-column hero: anchor the card inside the photo instead of hanging it
   past the page edge */
@media (max-width: 859px) and (min-width: 641px) {
  .shortlist--float {
    left: 0; right: 0; width: auto; max-width: none; bottom: -22px;
  }
}

@media (max-width: 640px) {
  :root { --gutter: 1.25rem; }
  h1 { font-size: clamp(2.1rem, 9vw, 2.8rem); }
  .hero-media img { height: 300px; border-radius: var(--r-lg); }
  .shortlist--float {
    position: static; width: 100%; max-width: none; margin-top: 14px;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  }
  .topbar-in { font-size: .78rem; }
  .topbar-links { gap: 12px; }
  .form-card, .panel, .tile, .quote, .confirm-card, .aside-card { padding: 20px; }
  .ledger-cell { padding: 16px; }
  .ledger-cell b { font-size: 1.6rem; }
  .band img, .page-media img { height: clamp(180px, 44vw, 260px); border-radius: var(--r-lg); }
  .cta { padding: 40px 0; }
  .footer { padding: 40px 0 22px; }
}

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

@media print {
  .topbar, .masthead, .cta, .footer, .aside, .nav-btn, .shortlist { display: none; }
  body { background: #fff; }
}
