/* SEGLF Institute — site styles. "Norte" identity: petrol + amber, Sora display, Source Sans 3 body.
   Layout concept: a calm institutional page that reads like a well-kept governance file —
   wide petrol bands for statements, light surfaces for working content. */
:root {
  --bg: #F4F6F5;
  --surface: #FFFFFF;
  --mist: #EEF2F1;
  --line: #DCE3E2;
  --ink: #10262A;
  --slate: #4E5F63;
  --brand: #0E3B43;
  --brand-deep: #082429;
  --brand-ink: #FFFFFF;
  --band: #0E3B43;
  --band-ink: #FFFFFF;
  --band-soft: #C5D6D7;
  --band-line: #1F5A63;
  --amber: #D99A2B;
  --amber-ink: #9A6510;
  --track: #E3E9E8;
  --gap-c: #B3412F; --dev-c: #9A6510; --est-c: #2E6B4F;
  --gap-bg: #F6E4DF; --dev-bg: #F5EBD8; --est-bg: #DDEDE4;
  --sym-body: #0E3B43; --sym-north: #D99A2B; --sym-ring: #0E3B43;
  --font-display: "Sora", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1C20; --surface: #11272C; --mist: #15303A; --line: #24424A;
    --ink: #E4ECEC; --slate: #9DB0B3; --brand: #9FC2C4; --brand-deep: #C9DCDD; --brand-ink: #0B1C20;
    --band: #082429; --band-ink: #F4F6F5; --band-soft: #A9BFC1; --band-line: #1F4A52;
    --amber: #E8B04A; --amber-ink: #E8B04A; --track: #1E3A41;
    --gap-c: #F08C78; --dev-c: #E8B04A; --est-c: #7FC9A3;
    --gap-bg: #3A2320; --dev-bg: #3A2E18; --est-bg: #193329;
    --sym-body: #E4ECEC; --sym-north: #E8B04A; --sym-ring: #9FC2C4;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1C20; --surface: #11272C; --mist: #15303A; --line: #24424A;
  --ink: #E4ECEC; --slate: #9DB0B3; --brand: #9FC2C4; --brand-deep: #C9DCDD; --brand-ink: #0B1C20;
  --band: #082429; --band-ink: #F4F6F5; --band-soft: #A9BFC1; --band-line: #1F4A52;
  --amber: #E8B04A; --amber-ink: #E8B04A; --track: #1E3A41;
  --gap-c: #F08C78; --dev-c: #E8B04A; --est-c: #7FC9A3;
  --gap-bg: #3A2320; --dev-bg: #3A2E18; --est-bg: #193329;
  --sym-body: #E4ECEC; --sym-north: #E8B04A; --sym-ring: #9FC2C4;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.55;
}
img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap {
  max-width: 1160px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--surface); padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* ---------- Header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface); }
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand .name { font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1; color: var(--brand); }
.brand .sub { font-family: var(--font-display); font-size: 9px; letter-spacing: 0.32em; color: var(--slate); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; }
.nav a:hover { color: var(--brand); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font: 600 15px var(--font-body); text-decoration: none; cursor: pointer;
  border-radius: 6px; padding: 10px 18px; border: 1px solid var(--brand);
  background: transparent; color: var(--brand);
}
.btn.primary { background: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { background: var(--brand-deep); color: var(--brand-ink); }
.btn.amber { background: var(--amber); border-color: var(--amber); color: #10262A; }
.btn.amber:hover { filter: brightness(1.05); color: #10262A; }
.btn.ghost-light { border-color: var(--band-soft); color: var(--band-ink); }
.nav .btn { padding: 8px 14px; font-size: 14px; }
@media (max-width: 720px) { .nav .hide-sm { display: none; } }

/* ---------- Bands ---------- */
.band { background: var(--band); color: var(--band-ink); }
.band a { color: var(--band-ink); }
section { scroll-margin-top: 80px; }
.sec { padding-block: 72px; }
.sec.tight { padding-block: 48px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber-ink); }
.band .eyebrow { color: var(--amber); }
.lead { font-size: 19px; color: var(--slate); max-width: 62ch; }
.band .lead { color: var(--band-soft); }
.sec-head { display: grid; gap: 12px; margin-bottom: 36px; max-width: 760px; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 40px); color: var(--brand); }
.band .sec-head h2 { color: var(--band-ink); }

/* ---------- Hero ---------- */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; padding-block: 72px 80px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 48px 56px; } }
.hero h1 { font-size: clamp(34px, 5.2vw, 60px); letter-spacing: -0.01em; color: var(--band-ink); }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .copy { display: grid; gap: 22px; min-width: 0; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .fine { font-size: 14px; color: var(--band-soft); }

/* Hero specimen: a sample five-pillar profile, drawn the way the self-check reports it */
.specimen { background: rgba(255,255,255,0.04); border: 1px solid var(--band-line); border-radius: 10px; padding: 22px; display: grid; gap: 14px; min-width: 0; }
.specimen .top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.specimen .top b { font-family: var(--font-display); font-size: 15px; }
.specimen .top span { font-size: 12px; color: var(--band-soft); letter-spacing: 0.06em; }
.sp-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) 30px; gap: 12px; align-items: center; font-size: 14px; }
.sp-row .t { color: var(--band-soft); }
.sp-row .v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.sp-bar { height: 8px; border-radius: 4px; background: var(--band-line); position: relative; overflow: hidden; }
.sp-bar i { position: absolute; inset: 0 auto 0 0; background: var(--band-soft); border-radius: 4px; }
.sp-bar i.low { background: var(--amber); }
.specimen .scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--band-soft); padding-left: 124px; padding-right: 42px; font-variant-numeric: tabular-nums; }
.specimen .cap { font-size: 13px; color: var(--band-soft); border-top: 1px solid var(--band-line); padding-top: 12px; }
@media (max-width: 480px) { .sp-row { grid-template-columns: 92px minmax(0, 1fr) 28px; } .specimen .scale { padding-left: 104px; padding-right: 40px; } }

/* ---------- The gap (problem) ---------- */
.gap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.gap-grid > div { padding: 24px 26px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.gap-grid > div + div { border-left: 1px solid var(--line); }
.gap-grid .k { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); }
.gap-grid ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.gap-grid .paper { background: var(--mist); }
@media (max-width: 720px) { .gap-grid { grid-template-columns: minmax(0, 1fr); } .gap-grid > div + div { border-left: 0; border-top: 1px solid var(--line); } }
.gap-note { margin-top: 18px; font-size: 15px; color: var(--slate); max-width: 70ch; }

/* ---------- Pillars ---------- */
.pillars { display: grid; gap: 0; border-top: 2px solid var(--brand); }
.pillar { display: grid; grid-template-columns: 70px minmax(0, 1.1fr) minmax(0, 1.4fr); gap: 24px; padding-block: 22px; border-bottom: 1px solid var(--line); align-items: start; }
.pillar .no { font-family: var(--font-display); font-weight: 700; font-size: 28px; color: var(--amber-ink); line-height: 1; }
.pillar h3 { font-size: 20px; color: var(--brand); }
.pillar .q { font-size: 14px; color: var(--slate); margin-top: 6px; font-style: italic; }
.pillar p { color: var(--ink); }
@media (max-width: 760px) { .pillar { grid-template-columns: 44px minmax(0, 1fr); } .pillar p { grid-column: 2; } .pillar .no { font-size: 22px; } }
.pillars-note { margin-top: 18px; font-size: 15px; color: var(--slate); }

/* ---------- Path (engagement sequence) ---------- */
.path { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.step { padding: 0 18px 0 0; display: grid; gap: 8px; align-content: start; position: relative; min-width: 0; }
.step .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--band); border: 3px solid var(--amber); position: relative; z-index: 1; }
.step::before { content: ""; position: absolute; top: 6px; left: 14px; right: 0; height: 2px; background: var(--band-line); }
.step:last-child::before { display: none; }
.step .when { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); font-weight: 700; margin-top: 8px; }
.step h3 { font-size: 17px; color: var(--band-ink); }
.step p { font-size: 15px; color: var(--band-soft); }
.step .free { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: #10262A; background: var(--amber); border-radius: 999px; padding: 1px 8px; width: fit-content; }
@media (max-width: 900px) {
  .path { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .step { padding: 0 0 0 30px; }
  .step .dot { position: absolute; left: 0; top: 2px; }
  .step::before { top: 18px; left: 6px; right: auto; width: 2px; height: calc(100% + 10px); }
  .step .when { margin-top: 0; }
}

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 960px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .services { grid-template-columns: minmax(0, 1fr); } }
.svc { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.svc .code { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--slate); font-variant-numeric: tabular-nums; }
.svc h3 { font-size: 19px; color: var(--brand); }
.svc ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 15px; color: var(--slate); }
.svc .tag { justify-self: start; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 10px; background: var(--mist); color: var(--slate); }
.svc.lead-svc { border-top: 3px solid var(--amber); }

/* ---------- Audience ---------- */
.aud { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.aud > div { padding: 18px 18px 18px 0; display: grid; gap: 6px; min-width: 0; }
.aud > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.aud h3 { font-size: 16px; color: var(--brand); }
.aud p { font-size: 15px; color: var(--slate); }
@media (max-width: 860px) { .aud { grid-template-columns: repeat(2, minmax(0, 1fr)); } .aud > div:nth-child(3) { border-left: 0; padding-left: 0; } .aud > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .aud { grid-template-columns: minmax(0, 1fr); } .aud > div, .aud > div + div { padding-left: 0; border-left: 0; } .aud > div + div { border-top: 1px solid var(--line); } }

/* ---------- Self-check CTA ---------- */
.cta-box { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 36px; }
@media (max-width: 820px) { .cta-box { grid-template-columns: minmax(0, 1fr); padding: 26px 22px; } }
.cta-box h2 { font-size: clamp(26px, 3.2vw, 34px); color: var(--brand); }
.cta-box .copy { display: grid; gap: 14px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.facts div { border-left: 3px solid var(--amber); padding-left: 12px; }
.facts b { display: block; font-family: var(--font-display); font-size: 26px; color: var(--brand); font-variant-numeric: tabular-nums; }
.facts span { font-size: 14px; color: var(--slate); }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 760px) { .founder { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.monogram { width: 180px; aspect-ratio: 1; max-width: 100%; border-radius: 14px; background: var(--band); display: grid; place-items: center; }
.monogram span { font-family: var(--font-display); font-weight: 700; font-size: 56px; color: var(--band-ink); letter-spacing: 0.02em; }
.founder-photo { display: block; width: 100%; max-width: 220px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.founder .body { display: grid; gap: 14px; max-width: 68ch; }
.founder h3 { font-size: 24px; color: var(--brand); }
.founder .role { color: var(--amber-ink); font-weight: 600; }
.creds { display: flex; flex-wrap: wrap; gap: 8px; }
.creds span { font-size: 13px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; color: var(--slate); background: var(--surface); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; }
@media (max-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.contact .info { display: grid; gap: 18px; align-content: start; }
.contact dl { margin: 0; display: grid; gap: 14px; }
.contact dt { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); font-weight: 700; }
.contact dd { margin: 4px 0 0; color: var(--band-ink); }
.contact .mail { font-weight: 600; user-select: all; }
form.card-form { background: var(--surface); color: var(--ink); border-radius: 12px; padding: 26px; display: grid; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  font: 16px var(--font-body); color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 560px) { .row2 { grid-template-columns: minmax(0, 1fr); } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { font-size: 14px; min-height: 1.4em; }
.status.ok { color: var(--est-c); }
.status.err { color: var(--gap-c); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--slate); }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--brand); }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--surface); }
.site-foot .wrap { padding-block: 28px 36px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; font-size: 14px; color: var(--slate); }
.site-foot nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.site-foot nav a { color: var(--slate); }
.site-foot .legal { grid-column: 1 / -1; font-size: 13px; }
@media (max-width: 640px) { .site-foot .wrap { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Prose pages ---------- */
.prose { max-width: 760px; display: grid; gap: 16px; padding-block: 56px 72px; }
.prose h1 { font-size: clamp(30px, 4vw, 42px); color: var(--brand); }
.prose h2 { font-size: 22px; color: var(--brand); margin-top: 16px; }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.prose .meta { color: var(--slate); font-size: 15px; }

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