:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem);
  --text-2xl: clamp(2.4rem, 1.2rem + 3.4vw, 4.25rem);

  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem;

  /* Brand: navy + brushed silver from the group seal */
  --navy: #191d36;          /* exact logo-tile navy */
  --navy-2: #232a4d;
  --navy-ink: #141830;
  --silver: #c9cbd3;
  --silver-2: #e4e5ea;

  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-2: #efeee9;
  --border: #dedcd5;
  --text: #191d36;
  --text-muted: #565a6e;
  --text-faint: #6f7385;
  --accent: #2e3a8c;        /* a lifted navy for links / focus */

  --radius-sm: 6px; --radius: 12px; --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(25,29,54,.06), 0 8px 24px rgba(25,29,54,.06);
  --font-display: 'Gambetta', 'Iowan Old Style', Georgia, serif;
  --font-body: 'General Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *{transition:none!important;animation:none!important;} }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: var(--text-base); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.skip { position:absolute; left:-999px; top:var(--space-2); background:var(--navy); color:#fff; padding:var(--space-2) var(--space-4); border-radius:var(--radius-sm); z-index:100; }
.skip:focus { left: var(--space-4); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(var(--space-5), 4vw, var(--space-10)); }

.eyebrow { font-size: var(--text-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--space-4); display:flex; align-items:center; gap: var(--space-3); }
.eyebrow::before { content:""; width: 24px; height: 1px; background: currentColor; opacity:.6; }
.eyebrow-light { color: var(--silver); }

/* Buttons */
.btn { display:inline-flex; align-items:center; justify-content:center; gap: var(--space-2); min-height: 48px; padding: 0 var(--space-6); border-radius: 999px; font-size: var(--text-sm); font-weight: 500; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); white-space: nowrap; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.btn-ghost { border-color: var(--border); background: transparent; color: var(--text); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-sm { min-height: 40px; padding: 0 var(--space-5); }
.btn-block { width: 100%; }
.btn:active { transform: translateY(1px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247,246,242,.88); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--border); }
.header-inner { display:flex; align-items:center; justify-content:space-between; min-height: 72px; gap: var(--space-4); }
.brand { display:flex; align-items:center; gap: var(--space-3); text-decoration:none; }
.brand img { width: 44px; height: 44px; }
.brand-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; letter-spacing: .005em; line-height:1.1; }
.brand-the { font-style: italic; color: var(--text-muted); font-weight: 400; }
.nav ul { display:flex; align-items:center; gap: var(--space-8); }
.nav a:not(.btn) { font-size: var(--text-sm); text-decoration:none; color: var(--text-muted); transition: color .2s; }
.nav a:not(.btn):hover { color: var(--text); }
.nav-toggle { display:none; background:none; border:1px solid var(--border); border-radius: 999px; width:44px; height:44px; align-items:center; justify-content:center; cursor:pointer; }

@media (max-width: 880px) {
  .nav-toggle { display:inline-flex; }
  .nav ul { position:absolute; left:0; right:0; top:72px; flex-direction:column; align-items:stretch; gap:0; background: var(--bg); border-bottom:1px solid var(--border); padding: var(--space-2) clamp(var(--space-5),4vw,var(--space-10)) var(--space-6); display:none; box-shadow: 0 16px 32px rgba(25,29,54,.12); }
  .nav ul.open { display:flex; }
  .nav li a:not(.btn) { display:block; padding: var(--space-4) 0; border-bottom: 1px solid var(--border); font-size: var(--text-base); color: var(--text); }
  .nav-cta-li { margin-top: var(--space-5); }
  .nav-cta-li .btn { width:100%; min-height:48px; }
}

/* Hero */
.hero { padding-block: clamp(var(--space-10), 6vw, var(--space-20)) clamp(var(--space-12), 7vw, var(--space-24)); }
.hero-grid { display:grid; grid-template-columns: 1.05fr 1fr; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items:center; }
.hero h1 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-2xl); line-height: 1.04; letter-spacing: -.015em; }
.lead { margin-top: var(--space-6); font-size: var(--text-lg); line-height: 1.5; color: var(--text-muted); max-width: 34ch; }
.hero-actions { display:flex; flex-wrap:wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hero-facts { display:flex; gap: clamp(var(--space-6), 4vw, var(--space-12)); margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid var(--border); }
.hero-facts dt { font-family: var(--font-display); font-size: var(--text-xl); line-height:1; font-weight:500; }
.hero-facts dd { font-size: var(--text-xs); color: var(--text-muted); margin-top: var(--space-2); max-width: 14ch; }
.hero-media { margin:0; position:relative; border-radius: var(--radius-lg); overflow:hidden; aspect-ratio: 4/5; box-shadow: var(--shadow); }
.hero-media img { width:100%; height:100%; object-fit:cover; object-position: 38% center; }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 4/3; order: -1; }
  .lead { max-width: none; }
}

/* Sections */
.section { padding-block: clamp(var(--space-16), 9vw, var(--space-24)); }
.section-head { max-width: 760px; margin-bottom: clamp(var(--space-8), 5vw, var(--space-12)); }
.section-head.split { max-width:none; display:grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-8); align-items:end; }
.section h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); line-height: 1.12; letter-spacing: -.01em; }
.section-sub { margin-top: var(--space-4); color: var(--text-muted); max-width: 56ch; }
.section-head.split .section-sub { margin-top:0; }
@media (max-width: 880px) { .section-head.split { grid-template-columns: 1fr; gap: var(--space-4); } }

/* Finder */
.finder { background: var(--surface); border-block: 1px solid var(--border); }
.finder-grid { display:grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(var(--space-6), 4vw, var(--space-12)); align-items:start; }
.needs { display:flex; flex-direction:column; border-top: 1px solid var(--border); }
.need { display:flex; align-items:center; gap: var(--space-4); text-align:left; background:none; border:0; border-bottom: 1px solid var(--border); padding: var(--space-5) var(--space-2); cursor:pointer; font-size: var(--text-base); color: var(--text-muted); transition: color .2s, background .2s, padding .25s var(--ease); position:relative; }
.need::after { content:"→"; margin-left:auto; opacity:0; transform: translateX(-6px); transition: opacity .2s, transform .25s var(--ease); color: var(--navy); }
.need:hover { color: var(--text); }
.need[aria-selected="true"] { color: var(--text); font-weight: 500; padding-left: var(--space-4); background: var(--bg); }
.need[aria-selected="true"]::after { opacity:1; transform:none; }
.need[aria-selected="true"]::before { content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background: var(--navy); }
.need-num { font-size: var(--text-xs); color: var(--text-faint); font-variant-numeric: tabular-nums; font-weight:500; width: 2ch; }

.match { display:grid; grid-template-rows: auto 1fr; border-radius: var(--radius-lg); overflow:hidden; background: var(--bg); border: 1px solid var(--border); position: sticky; top: 96px; }
.match-logo { background: var(--navy); height: 200px; display:flex; align-items:center; justify-content:center; padding: var(--space-6); }
.match-logo img { max-height: 150px; max-width: 70%; object-fit: contain; transition: opacity .25s var(--ease); }
.match-body { padding: clamp(var(--space-6), 3vw, var(--space-10)); }
.match-tag { font-size: var(--text-xs); text-transform: uppercase; letter-spacing:.1em; font-weight:600; color: var(--text-muted); }
.match h3 { font-family: var(--font-display); font-weight:500; font-size: var(--text-lg); margin-top: var(--space-2); line-height:1.2; }
.match-body > p:not(.match-tag) { margin-top: var(--space-3); color: var(--text-muted); }
.match-points { margin-top: var(--space-5); display:grid; gap: var(--space-2); }
.match-points li { display:flex; gap: var(--space-3); font-size: var(--text-sm); }
.match-points li::before { content:""; flex: 0 0 6px; height:6px; margin-top: .6em; border-radius:50%; background: var(--navy); }
.match-actions { display:flex; flex-wrap:wrap; gap: var(--space-3); margin-top: var(--space-8); }
.match.swap .match-body, .match.swap .match-logo img { opacity: 0; }
.match-body { transition: opacity .25s var(--ease); }
@media (max-width: 880px) {
  .finder-grid { grid-template-columns: 1fr; }
  .match { position: static; }
  .match-logo { height: 160px; }
  .match-logo img { max-height: 120px; }
}

/* Companies */
.co-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--space-6); }
.co { background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-lg); overflow:hidden; display:flex; flex-direction:column; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.co:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.co-logo { background: var(--navy); height: 168px; display:flex; align-items:center; justify-content:center; padding: var(--space-6); }
.co-logo img { max-height: 112px; max-width: 62%; width:auto; object-fit: contain; }
.co-body { padding: var(--space-6); display:flex; flex-direction:column; gap: var(--space-2); flex:1; }
.co-meta { font-size: var(--text-xs); color: var(--text-faint); letter-spacing:.04em; }
.co h3 { font-family: var(--font-display); font-weight:500; font-size: var(--text-lg); line-height:1.2; }
.co-body > p:not(.co-meta) { color: var(--text-muted); font-size: var(--text-sm); }
.co-link { margin-top:auto; padding-top: var(--space-4); font-size: var(--text-sm); font-weight:500; text-decoration:none; color: var(--accent); }
.co-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.co:target { outline: 2px solid var(--navy); outline-offset: 4px; }
@media (max-width: 960px) { .co-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) { .co-grid { grid-template-columns: 1fr; } }

/* Journey */
.journey { background: var(--navy); color: #fff; position:relative; overflow:hidden; }
.journey .wrap { position:relative; }
.journey .section-sub { color: #b9bccb; }
.steps { display:grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: var(--space-4); counter-reset: s; position:relative; }
.steps::before { content:""; position:absolute; top: 22px; left: 22px; right: 22px; height:1px; background: linear-gradient(90deg, rgba(201,203,211,.5), rgba(201,203,211,.15)); }
.step { position:relative; padding-right: var(--space-2); }
.step-n { width:44px; height:44px; border-radius:50%; display:flex; align-items:center; justify-content:center; background: var(--navy); border:1px solid var(--silver); font-family: var(--font-display); font-size: 1.1rem; position:relative; }
.step h3 { margin-top: var(--space-5); font-size: var(--text-base); font-weight:600; }
.step p { margin-top: var(--space-2); color:#b9bccb; font-size: var(--text-sm); }
.step a { display:inline-block; margin-top: var(--space-4); font-size: var(--text-sm); color:#fff; text-decoration:none; border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 2px; }
.step a:hover { border-color:#fff; }
.steps-foot { margin-top: clamp(var(--space-10), 5vw, var(--space-16)); padding: var(--space-5) var(--space-6); border:1px solid rgba(201,203,211,.25); border-radius: var(--radius); display:flex; flex-wrap:wrap; gap: var(--space-2) var(--space-4); align-items:center; color:#d9dbe3; font-size: var(--text-sm); }
.steps-foot-label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing:.12em; color: var(--silver); font-weight:600; }
.steps-foot a { color:#fff; margin-left:auto; text-underline-offset:3px; }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { top: 22px; bottom: 22px; left: 22px; right:auto; width:1px; height:auto; background: rgba(201,203,211,.35); }
  .step { display:grid; grid-template-columns: 44px 1fr; column-gap: var(--space-5); padding-bottom: var(--space-8); }
  .step-n { grid-row: span 3; }
  .step h3 { margin-top: var(--space-2); }
  .step a { justify-self:start; }
  .step:last-child { padding-bottom: 0; }
  .steps-foot a { margin-left: 0; }
}

/* About */
.about-grid { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--space-8), 6vw, var(--space-20)); align-items:center; }
.about-media { margin:0; border-radius: var(--radius-lg); overflow:hidden; aspect-ratio: 5/6; }
.about-media img { width:100%; height:100%; object-fit:cover; }
.about-copy h2 { margin-bottom: var(--space-6); }
.about-copy > p:not(.eyebrow) { color: var(--text-muted); margin-top: var(--space-4); }
.about-points { margin-top: var(--space-8); display:grid; gap: var(--space-4); border-top:1px solid var(--border); padding-top: var(--space-6); }
.about-points li { font-size: var(--text-sm); color: var(--text-muted); }
.about-points strong { color: var(--text); font-weight:600; }
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; } .about-media { aspect-ratio: 4/3; } }

/* Contact */
.contact { background: var(--surface); border-top: 1px solid var(--border); }
.contact-grid { display:grid; grid-template-columns: 1fr 1.1fr; gap: clamp(var(--space-8), 6vw, var(--space-20)); align-items:start; }
.contact-list { margin-top: var(--space-10); display:grid; gap: var(--space-6); }
.contact-list dt { font-size: var(--text-xs); text-transform:uppercase; letter-spacing:.1em; color: var(--text-faint); font-weight:600; }
.contact-list dd { margin-top: var(--space-1); }
.contact-list a { text-decoration:none; border-bottom:1px solid var(--border); }
.contact-list a:hover { border-color: var(--navy); }
.form { background: var(--bg); border:1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(var(--space-6), 3vw, var(--space-10)); display:grid; gap: var(--space-5); }
.field { display:grid; gap: var(--space-2); }
.field-row { display:grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
label { font-size: var(--text-sm); font-weight:500; }
.opt { color: var(--text-faint); font-weight:400; }
input, select, textarea { width:100%; background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4); min-height: 48px; font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
textarea { resize: vertical; min-height: 128px; }
select { appearance:none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23191d36' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position: right 16px center; padding-right: var(--space-10); }
input:focus, select:focus, textarea:focus { outline:none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(46,58,140,.15); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #b3261e; }
.err { display:none; font-size: var(--text-xs); color: #b3261e; }
.field.invalid .err { display:block; }
.form-note { font-size: var(--text-xs); color: var(--text-faint); text-align:center; }
.form-note.ok { color: #1f6b3a; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--navy-ink); color: #c4c7d3; padding-top: var(--space-16); font-size: var(--text-sm); }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-10); padding-bottom: var(--space-12); }
.footer-brand { display:flex; align-items:center; align-self:start; gap: var(--space-4); }
.footer-brand img { width:64px; height:64px; }
.footer-brand p { font-family: var(--font-display); font-size: 1.15rem; color:#fff; line-height:1.3; }
.footer-brand span { font-family: var(--font-body); font-size: var(--text-xs); color:#9a9eb2; }
.footer-h { font-size: var(--text-xs); text-transform: uppercase; letter-spacing:.12em; color:#fff; font-weight:600; margin-bottom: var(--space-4); }
.site-footer ul { display:grid; gap: var(--space-2); }
.site-footer a { text-decoration:none; color:#c4c7d3; }
.site-footer a:hover { color:#fff; }
.footer-base { display:flex; justify-content:space-between; gap: var(--space-4); flex-wrap:wrap; border-top: 1px solid rgba(255,255,255,.1); padding-block: var(--space-6); font-size: var(--text-xs); color:#9a9eb2; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

.form-tally{padding-top:var(--space-4);gap:var(--space-3)}
.form-tally iframe{display:block;width:100%;border:0;min-height:560px}
.form-alt{font-size:var(--text-sm,.875rem);color:var(--text-muted,#5b6077);margin:0}
.form-alt a{color:inherit;text-decoration:underline}

/* Hero without image */
.hero-grid{grid-template-columns:1fr}
.hero-copy{max-width:none}
.hero h1{max-width:none;text-wrap:wrap;font-size:clamp(2.6rem,1rem + 4.6vw,5.4rem)}
.hero .lead{max-width:44rem}
/* Balanced hero facts */
.hero-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:0}
.hero-facts > div{padding:var(--space-2) var(--space-8);border-left:1px solid var(--border)}
.hero-facts > div:first-child{padding-left:0;border-left:0}
.hero-facts dt{font-size:clamp(2.4rem,1.2rem + 3vw,4rem)}
.hero-facts dd{font-size:var(--text-sm,.95rem);max-width:none;margin-top:var(--space-3)}
@media (max-width:640px){
  .hero-facts > div{padding:var(--space-1) var(--space-4)}
  .hero-facts dt{font-size:2.1rem}
  .hero-facts dd{font-size:var(--text-xs)}
}
