:root {
  --ink: #172633;
  --muted: #5f6d77;
  --paper: #ffffff;
  --soft: #f4f1eb;
  --line: #dfe3e5;
  --gold: #9b7937;
  --gold-dark: #76591f;
  --navy: #102331;
  --max: 1180px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 999; padding: .75rem 1rem; background: var(--navy); color: white; }
.skip-link:focus { top: 1rem; }

.site-header,
.inner-header {
  width: 100%; min-height: 92px; padding: 14px max(24px, calc((100vw - var(--max)) / 2));
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px;
  background: rgba(255,255,255,.98); border-bottom: 1px solid var(--line); position: relative; z-index: 50;
}
.site-brand img,
.inner-header > a:first-child img { width: 78px; height: 78px; object-fit: contain; }
.site-nav,
.inner-header nav { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 2vw, 30px); }
.site-nav a,
.inner-header nav a { text-decoration: none; color: var(--ink); font-size: .82rem; font-weight: 750; letter-spacing: .035em; }
.site-nav a:hover, .site-nav a:focus-visible,
.inner-header nav a:hover, .inner-header nav a:focus-visible { color: var(--gold-dark); }
.site-nav a[aria-current="page"], .inner-header nav a[aria-current="page"] { color: var(--gold-dark); border-bottom: 2px solid var(--gold); }
.header-cta,
.inner-header .inner-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; background: var(--navy); color: white; text-decoration: none; font-weight: 800; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.menu-toggle { display: none; border: 1px solid var(--line); background: white; min-width: 48px; min-height: 48px; padding: 8px; color: var(--ink); font-weight: 800; }

main { overflow: hidden; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-soft { background: var(--soft); }
.eyebrow { margin: 0 0 16px; color: var(--gold-dark); font-size: .78rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; color: var(--ink); line-height: 1.08; letter-spacing: -.025em; }
h1 { font-size: clamp(2.45rem, 6.4vw, 5.6rem); max-width: 980px; }
h2 { font-size: clamp(2rem, 4vw, 3.65rem); max-width: 850px; }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
p { color: var(--muted); }
.lead { max-width: 760px; font-size: clamp(1.05rem, 2vw, 1.3rem); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; min-height: 50px; padding: 0 22px; align-items: center; justify-content: center; text-decoration: none; border: 1px solid var(--navy); background: var(--navy); color: white; font-weight: 800; }
.button.secondary { background: transparent; color: var(--navy); }
.button:hover, .button:focus-visible { background: var(--gold-dark); border-color: var(--gold-dark); color: white; }

.hero { padding: clamp(74px, 10vw, 132px) 0 72px; background: linear-gradient(90deg, #fff 0 62%, #f3f0e9 62%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: clamp(42px, 7vw, 100px); align-items: end; }
.hero h1 { margin-bottom: 24px; }
.hero .process-note { padding: 28px; border-left: 4px solid var(--gold); background: white; box-shadow: 0 12px 40px rgba(16,35,49,.08); }
.process-note strong { display: block; margin-bottom: 8px; color: var(--ink); }
.process-note p { margin: 0; }

.path-grid, .card-grid, .system-grid, .proof-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.path-card, .info-card, .system-card { padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); background: white; }
.path-card { display: flex; flex-direction: column; min-height: 310px; }
.path-card .path-number { color: var(--gold-dark); font-size: .78rem; font-weight: 850; letter-spacing: .12em; }
.path-card p { flex: 1; }
.path-card a { font-weight: 850; color: var(--gold-dark); text-underline-offset: 4px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 7vw, 88px); align-items: center; }
.steps { counter-reset: process; display: grid; gap: 1px; border: 1px solid var(--line); background: var(--line); }
.step { counter-increment: process; display: grid; grid-template-columns: 54px 1fr; gap: 14px; padding: 22px; background: white; }
.step::before { content: counter(process, decimal-leading-zero); color: var(--gold-dark); font-weight: 850; }
.step h3, .step p { margin-bottom: 6px; }

.system-card { padding: 0; overflow: hidden; }
.system-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.system-card div { padding: 22px; }
.system-card p { margin-bottom: 0; }
.system-card a { font-weight: 850; color: var(--gold-dark); }
.photo-caption { margin: 0; padding: 10px 14px; background: var(--navy); color: white; font-size: .85rem; }

.project-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.project-strip figure { margin: 0; background: var(--navy); }
.project-strip img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.project-strip figcaption { padding: 14px; color: white; font-size: .9rem; }
.verification-note { padding: 18px 20px; border-left: 4px solid var(--gold); background: #fff; color: var(--muted); }

.faq { max-width: 900px; }
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; color: var(--ink); font-weight: 800; }
.faq details p { max-width: 760px; }

.cta-band { background: var(--navy); color: white; }
.cta-band h2, .cta-band p { color: white; }

.site-footer,
.inner-footer { width: 100%; padding: 54px max(24px, calc((100vw - var(--max)) / 2)); display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; background: #0b1a24; color: white; }
.site-footer p, .inner-footer p { color: #cbd5da; }
.site-footer img, .inner-footer img { width: 72px; }
.site-footer a, .inner-footer a { color: white; display: block; margin: 8px 0; text-decoration: none; }
.site-footer h3, .site-footer h4, .inner-footer h4 { color: white; }
.footer-bottom { grid-column: 1/-1; border-top: 1px solid rgba(255,255,255,.18); padding-top: 20px; color: #cbd5da; font-size: .85rem; }

.page-hero { padding: clamp(62px, 9vw, 110px) 0; background: var(--soft); }
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 5rem); margin-bottom: 22px; }
.breadcrumbs { margin-bottom: 18px; color: var(--muted); font-size: .86rem; }
.breadcrumbs a { color: var(--gold-dark); }

.form-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(36px, 7vw, 84px); align-items: start; }
.application-form { padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line); background: white; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1/-1; }
.field label, .field > span:first-child { color: var(--ink); font-weight: 760; }
.field small { color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 49px; border: 1px solid #bac3c8; border-radius: 0; padding: 10px 12px; background: white; color: var(--ink); }
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(155,121,55,.22); border-color: var(--gold-dark); }
.field [aria-invalid="true"] { border-color: #a12a2a; }
.field-error { min-height: 1.2em; margin: 0; color: #8d1f1f; font-size: .84rem; }
.choice-row { display: flex; flex-wrap: wrap; gap: 16px; }
.choice-row label, .check-row { display: flex; align-items: flex-start; gap: 9px; font-weight: 500; color: var(--muted); }
.choice-row input, .check-row input { margin-top: .35rem; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; padding: 10px 0; color: var(--ink); font-weight: 700; }
.form-status.error { color: #8d1f1f; }
.application-form button[type="submit"] { min-height: 52px; padding: 0 24px; border: 0; background: var(--navy); color: white; font-weight: 850; cursor: pointer; }
.application-form button[disabled] { opacity: .62; cursor: wait; }
.privacy-note { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .9rem; }
.side-list { padding: 0; list-style: none; }
.side-list li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); }

.compact-cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.tag-list li { padding: 7px 11px; border: 1px solid var(--line); background: white; color: var(--ink); }
.consent-banner { position: fixed; z-index: 200; left: 18px; right: 18px; bottom: 18px; margin: auto; width: min(920px, calc(100% - 36px)); padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 22px; background: var(--navy); color: white; box-shadow: 0 16px 50px rgba(0,0,0,.25); }
.consent-banner strong, .consent-banner p, .consent-banner a { color: white; }
.consent-banner p { margin: 4px 0 0; font-size: .9rem; }
.consent-banner > div:last-child { display: flex; flex-wrap: wrap; gap: 8px; flex: 0 0 auto; }
.consent-banner button { min-height: 44px; padding: 8px 14px; border: 1px solid white; background: transparent; color: white; font-weight: 750; cursor: pointer; }
.consent-banner button:last-child { background: white; color: var(--navy); }

/* Existing exported pages: keep URLs/content, normalize the global shell. */
.inner-page { overflow: hidden; }
.inner-page .inner-hero, .inner-page > section { max-width: var(--max); margin-inline: auto; }
.inner-page .inner-hero { padding-inline: 20px; }
.inner-actions a { min-height: 48px; }

@media (max-width: 1060px) {
  .site-header, .inner-header { grid-template-columns: auto auto 1fr; gap: 14px; }
  .menu-toggle { display: inline-flex; justify-content: center; align-items: center; }
  .site-nav, .inner-header nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 14px 24px 22px; background: white; border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; gap: 0; }
  .site-nav.is-open, .inner-header nav.is-open { display: flex; }
  .site-nav a, .inner-header nav a { width: 100%; padding: 12px 0; }
  .header-cta, .inner-header .inner-cta { justify-self: end; }
}

@media (max-width: 820px) {
  .hero { background: linear-gradient(#fff 0 72%, var(--soft) 72%); }
  .hero-grid, .two-col, .form-layout { grid-template-columns: 1fr; }
  .path-grid, .card-grid, .system-grid, .proof-grid { grid-template-columns: 1fr; }
  .project-strip { grid-template-columns: 1fr; }
  .project-strip img { aspect-ratio: 4/3; }
  .site-footer, .inner-footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .site-header, .inner-header { min-height: 72px; padding: 8px 14px; grid-template-columns: auto auto 1fr; }
  .site-brand img, .inner-header > a:first-child img { width: 58px; height: 58px; }
  .header-cta, .inner-header .inner-cta { min-height: 42px; padding: 0 11px; font-size: .64rem; max-width: 132px; white-space: normal; text-align: center; }
  .form-grid, .compact-cards { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .site-footer, .inner-footer { grid-template-columns: 1fr; }
  .footer-bottom { grid-column: auto; }
  h1 { font-size: clamp(2.25rem, 12vw, 3.5rem); }
  .consent-banner { align-items: stretch; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
