/* Fusion 4 public site. One design system for every page.
   Palette: land and sky of the communities.
   Night #0F1B3B · Spruce #3E4A2E · Birch #F2ECE3 · River #2F4A7A · Ochre #C3872A · AIS burgundy #8B2E1B (brand mark only)
   Type: Bricolage Grotesque (display) · Atkinson Hyperlegible (body, designed for low vision) · IBM Plex Mono (labels, figures) */

@font-face { font-family: "Playfair Display"; src: url("fonts/playfair-var.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Lato"; src: url("fonts/lato-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lato"; src: url("fonts/lato-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Lato"; src: url("fonts/lato-700.woff2") format("woff2"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: "Lato"; src: url("fonts/lato-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Lato Label"; src: url("fonts/lato-700.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #F2ECE3; --surface: #FFFDF9; --surface-2: #EAE2D5; --ink: #1B2135; --ink-2: #55534E; --line: #D9D0C4; --line-2: #E7DFD2;
  --night: #0F1B3B; --night-2: #16244A; --spruce: #3E4A2E; --river: #2F4A7A; --river-wash: #E5E9F1;
  --ochre: #C3872A; --ochre-ink: #7A4A12; --ochre-wash: #F5E7CC; --brand: #8B2E1B; --good: #2F6B3F; --warn: #8A5A00;
  --on-night: #F4EFE8; --on-night-2: #CFC6B8; --night-line: rgba(244,239,232,.16);
  --shadow: 0 1px 2px rgba(15,27,59,.06), 0 12px 32px -12px rgba(15,27,59,.22);
  --shadow-lg: 0 2px 4px rgba(15,27,59,.08), 0 40px 80px -30px rgba(15,27,59,.45);
  --display: "Playfair Display", Georgia, "Times New Roman", serif; --body: "Lato", "Segoe UI", system-ui, sans-serif; --mono: "Lato Label", "Lato", "Segoe UI", sans-serif;
  --head: #0F1B3B; --link: #8B2E1B;
  --max: 1240px; --gut: clamp(16px, 4vw, 40px); --sec: clamp(72px, 10vw, 140px);
  --r: 6px; --r-lg: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1226; --surface: #121B33; --surface-2: #1A2542; --ink: #F4EFE8; --ink-2: #CFC6B8; --line: #2A3555; --line-2: #1E2846;
    --night: #070D1E; --night-2: #0E1730; --spruce: #2E3522; --river: #9FB4DA; --river-wash: #1A2542;
    --ochre: #E3B35C; --ochre-ink: #E3B35C; --ochre-wash: #2D2412; --good: #7CC48E; --warn: #E3B35C; --brand: #A64126;
    --head: #F4EFE8; --link: #F0A58F;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.6); --shadow-lg: 0 40px 80px -30px rgba(0,0,0,.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1226; --surface: #121B33; --surface-2: #1A2542; --ink: #F4EFE8; --ink-2: #CFC6B8; --line: #2A3555; --line-2: #1E2846;
  --night: #070D1E; --night-2: #0E1730; --spruce: #2E3522; --river: #9FB4DA; --river-wash: #1A2542;
  --ochre: #E3B35C; --ochre-ink: #E3B35C; --ochre-wash: #2D2412; --good: #7CC48E; --warn: #E3B35C; --brand: #A64126;
  --head: #F4EFE8; --link: #F0A58F;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.6); --shadow-lg: 0 40px 80px -30px rgba(0,0,0,.8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.1875rem/1.62 var(--body); overflow-x: hidden; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--river); text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; max-width: 68ch; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; line-height: 1.04; letter-spacing: -0.022em; font-weight: 750; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.9rem); font-weight: 800; letter-spacing: -0.032em; line-height: .98; }
h2 { font-size: clamp(2.05rem, 4.3vw, 3.7rem); }
h3 { font-size: clamp(1.35rem, 1.9vw, 1.65rem); line-height: 1.15; letter-spacing: -0.012em; }
h4 { font-size: 1.2rem; letter-spacing: -0.005em; line-height: 1.2; }
.lede { font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.5; color: var(--ink-2); max-width: 40ch; text-wrap: pretty; }
.small { font-size: 1rem; color: var(--ink-2); }
.eyebrow { font: 500 .9375rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ochre-ink); margin: 0 0 18px; display: flex; gap: 12px; align-items: center; }
.eyebrow .no { color: var(--ink-2); }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: .02em; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ochre); color: #111; padding: 12px 18px; border-radius: var(--r); font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.sec { padding: var(--sec) 0; position: relative; }
.sec.tight { padding: calc(var(--sec) * .6) 0; }
.sec + .sec.alt, .sec.alt { background: var(--surface); }
.dark { background: var(--night); color: var(--on-night); --ink: var(--on-night); --ink-2: var(--on-night-2); --line: var(--night-line); --line-2: var(--night-line); --river: #8FD0E2; --ochre-ink: #E5B85C; --surface: var(--night-2); --surface-2: #1B3443; color-scheme: dark; }
.spruce { background: var(--spruce); color: #F4EFE8; --ink: #F4EFE8; --ink-2: #C3D3CD; --line: rgba(238,240,235,.2); --river: #A6E0D2; --ochre-ink: #EDC473; --surface: #24564D; color-scheme: dark; }
.head { display: grid; gap: 22px; margin-bottom: clamp(40px, 6vw, 72px); max-width: 860px; }
.head.split { max-width: none; grid-template-columns: 1fr; }
@media (min-width: 960px) { .head.split { grid-template-columns: 1.15fr 1fr; align-items: end; gap: 64px; } }
.grid { display: grid; gap: clamp(20px, 3vw, 36px); }
@media (min-width: 760px) { .g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); } .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } }
.split { display: grid; gap: clamp(36px, 6vw, 88px); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } .split.wide-l { grid-template-columns: 1.2fr .8fr; } .split.wide-r { grid-template-columns: .85fr 1.15fr; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 14px 26px; border-radius: 999px; font: 700 1.125rem/1.1 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-primary { background: var(--ochre); color: #14110A; box-shadow: 0 10px 24px -12px rgba(195,135,42,.9); }
.btn-primary:hover { background: #B57A22; }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-dark { background: var(--night); color: #F4EFE8; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.textlink { font-weight: 700; display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }
.textlink svg { width: 20px; height: 20px; transition: transform .2s; }
.textlink:hover svg { transform: translateX(4px); }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line-2); }
.site-head.on-hero { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; color: #F4EFE8; transition: background-color .3s, color .3s, border-color .3s; }
.site-head.on-hero.scrolled { background: color-mix(in srgb, var(--night) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: rgba(255,255,255,.08); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand img { width: 42px; height: auto; }
.brand b { display: block; white-space: nowrap; font: 800 1.35rem/1 var(--display); letter-spacing: -0.02em; }
.brand span { display: block; font: 500 .78rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; opacity: .8; margin-top: 4px; }
.navlinks { display: none; gap: 2px; align-items: center; list-style: none; margin: 0; padding: 0; }
.navlinks a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; color: inherit; text-decoration: none; font-weight: 700; font-size: 1.02rem; }
.navlinks a:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.navlinks a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--ochre); border-radius: 0; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-cta .btn { min-height: 48px; padding: 10px 20px; font-size: 1.02rem; }
.signin { display: none; color: inherit; font-weight: 700; text-decoration: none; min-height: 44px; align-items: center; padding: 0 10px; }
@media (min-width: 1240px) { .navlinks { display: flex; } .signin { display: inline-flex; } }
.navlinks a, .signin { white-space: nowrap; }
@media (max-width: 520px) { .nav-cta .btn .long { display: none; } .brand span { display: none; } }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 2px solid currentColor; font-weight: 700; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 22px; height: 22px; }
.menu-panel { position: fixed; inset: 80px 0 auto 0; max-height: calc(100vh - 80px); overflow: auto; background: var(--night); color: #F4EFE8; padding: 20px var(--gut) 32px; border-top: 1px solid rgba(255,255,255,.1); box-shadow: var(--shadow-lg); }
.menu-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.menu-panel a { display: flex; justify-content: space-between; align-items: center; min-height: 56px; color: #F4EFE8; text-decoration: none; font: 700 1.3rem/1.2 var(--display); border-bottom: 1px solid rgba(255,255,255,.1); }
.menu-panel .mp-foot { display: grid; gap: 12px; margin-top: 24px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; align-items: flex-end; color: #F2F3EE; background: var(--night); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 110%; object-fit: cover; object-position: 50% 60%; transform-origin: 50% 40%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(8,18,26,.5) 0%, rgba(8,18,26,.06) 32%, rgba(8,18,26,.16) 55%, rgba(8,18,26,.78) 100%),
  linear-gradient(90deg, rgba(8,18,26,.6) 0%, rgba(8,18,26,0) 62%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .1; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero .wrap { padding-top: 140px; padding-bottom: clamp(48px, 8vw, 96px); }
.hero h1 { max-width: 15ch; color: #F7F7F2; }
.hero h1 em { font-style: normal; color: #E3B35C; }
.hero .lede { color: #E6DED0; max-width: 46ch; margin: 26px 0 36px; }
.hero .eyebrow { color: #E3B35C; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.18); font: 500 .95rem/1.4 var(--mono); letter-spacing: .04em; color: #C9D3D6; }
.hero-meta b { color: #fff; font-weight: 500; }
.hero .signin-line { margin-top: 18px; color: #E6DED0; font-size: 1.05rem; }
.hero .signin-line a { color: #fff; font-weight: 700; }
.page-hero { padding: clamp(72px, 10vw, 132px) 0 clamp(56px, 7vw, 96px); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.5rem, 5.6vw, 5rem); max-width: 17ch; }
.page-hero .lede { margin-top: 26px; max-width: 48ch; }
.page-hero.has-photo { color: #F2F3EE; background: var(--night); isolation: isolate; }
.page-hero.has-photo .lede { color: #E6DED0; }
.page-hero.has-photo .eyebrow { color: #E3B35C; }
.page-hero.has-photo { padding: 0; display: grid; }
.page-hero.has-photo .ph-media { position: relative; height: 300px; overflow: hidden; }
.page-hero.has-photo .ph-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero.has-photo .ph-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,18,26,0) 50%, rgba(8,18,26,.9) 100%); }
.page-hero.has-photo .wrap { padding-top: 36px; padding-bottom: clamp(56px, 7vw, 96px); }
@media (min-width: 960px) { .page-hero.has-photo { grid-template-columns: 1fr minmax(380px, 38%); min-height: 620px; } .page-hero.has-photo .ph-media { order: 2; height: auto; } .page-hero.has-photo .ph-media::after { background: linear-gradient(90deg, rgba(8,18,26,1) 0%, rgba(8,18,26,0) 30%); } .page-hero.has-photo .wrap { align-self: center; max-width: calc(var(--max) * .66); margin: 0 0 0 max(0px, calc((100vw - var(--max)) / 2)); padding-top: 90px; } }

/* topographic contour motif */
.contours { position: absolute; inset: 0; pointer-events: none; color: var(--line); opacity: .9; z-index: 0; }
.contours svg { width: 100%; height: 100%; }
.sec > .wrap, .page-hero > .wrap { position: relative; z-index: 1; }

/* ---------- nutshell ---------- */
.nut { counter-reset: nut; display: grid; gap: 0; border-top: 2px solid var(--ink); }
@media (min-width: 860px) { .nut { grid-template-columns: repeat(2, 1fr); column-gap: 56px; } }
.nut li { list-style: none; counter-increment: nut; display: grid; grid-template-columns: 56px 1fr; gap: 6px 14px; padding: 26px 0 28px; border-bottom: 1px solid var(--line); }
.nut li::before { content: counter(nut, decimal-leading-zero); font: 500 1rem/1.9 var(--mono); color: var(--ochre-ink); grid-row: span 2; }
.nut b { font: 750 clamp(1.35rem, 2vw, 1.7rem)/1.15 var(--display); letter-spacing: -0.015em; }
.nut span { color: var(--ink-2); font-size: 1.1rem; }
ol.nut { padding: 0; margin: 0; }

/* ---------- problems ---------- */
.prob { border-top: 1px solid var(--line); }
.prob-row { display: grid; gap: 14px 48px; padding: 34px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .prob-row { grid-template-columns: 70px 1fr 1fr; align-items: start; } }
.prob-row .n { font: 500 1rem var(--mono); color: var(--ink-2); padding-top: 8px; }
.prob-row q { font: 700 clamp(1.4rem, 2.3vw, 1.9rem)/1.2 var(--display); letter-spacing: -0.015em; quotes: "\201C" "\201D"; display: block; }
.prob-row .fix { border-left: 3px solid var(--ochre); padding-left: 20px; }
.prob-row .fix b { display: block; font: 500 .85rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ochre-ink); margin-bottom: 6px; }
.prob-row .fix p { margin: 0; }

/* ---------- photo frames ---------- */
.photo { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption, .cap { font: 500 .9rem/1.4 var(--mono); letter-spacing: .02em; color: var(--ink-2); margin-top: 12px; }
.photo.tall { aspect-ratio: 4 / 5; }
.photo.wide { aspect-ratio: 16 / 10; }
.parallax img { will-change: transform; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 26px 20px 26px 0; border-bottom: 1px solid var(--line); }
.stat:not(:last-child) { border-right: 0; }
.stat b { display: block; font: 800 clamp(2.3rem, 4.6vw, 3.8rem)/1 var(--display); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 10px; color: var(--ink-2); font-size: 1.05rem; line-height: 1.4; max-width: 24ch; }
.source { font: 500 .875rem/1.5 var(--mono); color: var(--ink-2); margin-top: 18px; letter-spacing: .02em; }

/* ---------- ledger lists ---------- */
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ledger li { display: grid; grid-template-columns: 1fr; gap: 4px 28px; padding: 20px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .ledger li { grid-template-columns: minmax(200px, .8fr) 1.4fr; } }
.ledger b { font: 700 1.2rem/1.3 var(--display); letter-spacing: -0.01em; }
.ledger span { color: var(--ink-2); }
.ledger a { font-weight: 700; }

/* ---------- blanket vs asset (set piece) ---------- */
.contrast { display: grid; gap: 28px; }
.toggle { display: inline-flex; padding: 5px; border-radius: 999px; background: color-mix(in srgb, currentColor 10%, transparent); gap: 4px; flex-wrap: wrap; }
.toggle button { min-height: 50px; padding: 10px 22px; border-radius: 999px; border: 0; background: transparent; color: inherit; font: 700 1.05rem var(--body); cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--ochre); color: #14110A; }
.stage { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #0A1822; border: 1px solid rgba(255,255,255,.08); }
.stage svg { width: 100%; height: auto; }
.stage .bldg { transition: fill .5s ease, stroke .5s ease, opacity .5s; }
.stage[data-mode="blanket"] .bldg { fill: #3A4A55; stroke: transparent; }
.stage[data-mode="asset"] .bldg { fill: #E3B35C; }
.stage[data-mode="asset"] .bldg.crit { fill: #E8806E; }
.stage .blanket { transition: opacity .6s ease; }
.stage[data-mode="asset"] .blanket { opacity: 0; }
.stage[data-mode="blanket"] .pin { opacity: 0; }
.stage .pin { transition: opacity .4s ease; }
.stage-card { position: absolute; right: 16px; bottom: 16px; left: 16px; max-width: 360px; margin-left: auto; background: rgba(9,20,28,.92); color: #F4EFE8; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 18px 20px; backdrop-filter: blur(8px); box-shadow: 0 20px 40px -20px #000; font-size: 1rem; transition: opacity .35s ease, transform .35s ease; }
.stage-card h4 { font-size: 1.25rem; margin-bottom: 10px; }
.stage-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.stage-card dt { font: 500 .85rem/1.5 var(--mono); color: #AFC0C7; letter-spacing: .03em; }
.stage-card dd { margin: 0; font-weight: 700; }
.stage-card .tag { display: inline-block; font: 500 .8rem var(--mono); padding: 3px 8px; border-radius: 4px; background: #E3B35C; color: #14110A; margin-bottom: 8px; letter-spacing: .05em; }
.stage-card .tag.crit { background: #E8806E; }
.stage[data-mode="blanket"] .stage-card.asset, .stage[data-mode="asset"] .stage-card.blanketc { opacity: 0; transform: translateY(8px); pointer-events: none; }
.stage-card.blanketc { position: absolute; }
@media (max-width: 700px) { .stage-card { position: relative; inset: auto; max-width: none; margin: 0; border-radius: 0; border-width: 1px 0 0; } .stage[data-mode="blanket"] .stage-card.asset, .stage[data-mode="asset"] .stage-card.blanketc { display: none; } }
.vs { display: grid; gap: 24px; }
@media (min-width: 860px) { .vs { grid-template-columns: 1fr 1fr; } }
.vs > div { padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--line); }
.vs > div.win { border-color: var(--ochre); background: color-mix(in srgb, var(--ochre) 7%, transparent); }
.vs h3 { margin-bottom: 14px; }
.vs ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }

/* ---------- asset sheet ---------- */
.sheet { background: var(--surface); color: var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line-2); overflow: hidden; }
.sheet-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 22px 24px; background: var(--night); color: #F4EFE8; flex-wrap: wrap; }
.sheet-top small { font: 500 .85rem var(--mono); letter-spacing: .06em; color: #CFC6B8; text-transform: uppercase; display: block; margin-bottom: 6px; }
.sheet-top h3 { font-size: 1.6rem; }
.ais-badge { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 92px; padding: 8px 12px; border-radius: 10px; background: #E3B35C; color: #14110A; font: 800 1.5rem/1 var(--display); }
.ais-badge small { color: #3b2b05; margin: 4px 0 0; font-size: .72rem; }
.sheet-tabs { display: flex; gap: 4px; padding: 10px 14px 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.sheet-tabs button { min-height: 48px; padding: 8px 16px; border: 0; background: none; color: var(--ink-2); font: 700 1.02rem var(--body); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.sheet-tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--ochre); }
.sheet-body { padding: 22px 24px 26px; }
.kv { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
@media (min-width: 560px) { .kv { grid-template-columns: 1fr 1fr; column-gap: 28px; } }
.kv div { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.kv dt { color: var(--ink-2); font-size: .95rem; }
.kv dd { margin: 0; font-weight: 700; }
.defect { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.defect .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ochre); margin-top: 8px; }
.defect .dot.hi { background: #C4523F; }
.pill { display: inline-block; font: 500 .82rem/1 var(--mono); letter-spacing: .04em; padding: 6px 9px; border-radius: 5px; background: var(--surface-2); color: var(--ink); }
.pill.ok { background: color-mix(in srgb, var(--good) 18%, transparent); }
.pill.warn { background: var(--ochre-wash); color: var(--ochre-ink); }

/* ---------- loop ---------- */
.loop { position: relative; width: 100%; max-width: 560px; margin: 0 auto; }
.loop svg { width: 100%; height: auto; overflow: visible; }
.loop .seg { fill: none; stroke: var(--line); stroke-width: 14; transition: stroke .5s; }
.loop .seg.on { stroke: var(--ochre); }
.loop text { font-family: var(--display); font-weight: 750; fill: var(--ink); }
.loop .lsub { font-family: var(--body); font-weight: 400; fill: var(--ink-2); }
.loop-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); counter-reset: ls; }
.loop-steps li { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 44px 1fr; gap: 2px 12px; transition: background-color .4s; }
.loop-steps li::before { counter-increment: ls; content: counter(ls); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 500 .95rem var(--mono); border: 2px solid var(--line); }
.loop-steps li.on::before { background: var(--ochre); border-color: var(--ochre); color: #14110A; }
.loop-steps b { font: 750 1.25rem var(--display); }
.loop-steps span { color: var(--ink-2); }

/* ---------- device frames ---------- */
.laptop { position: relative; max-width: 980px; margin: 0 auto; }
.laptop .lid { background: #070D1E; border-radius: 18px 18px 6px 6px; padding: 14px 14px 18px; box-shadow: var(--shadow-lg); border: 1px solid #26323A; }
.laptop .screen, .tablet .screen, .phone .screen { container-type: inline-size; }
.laptop .screen { position: relative; border-radius: 6px; overflow: hidden; background: #F5F6F3; aspect-ratio: 16 / 10; }
.laptop .base { height: 16px; margin: 0 -5%; background: linear-gradient(#C7CBCD, #8E9599); border-radius: 0 0 16px 16px; position: relative; }
.laptop .base::before { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 6px; transform: translateX(-50%); background: #6E777C; border-radius: 0 0 8px 8px; }
.tablet { background: #070D1E; border-radius: 30px; padding: 16px; box-shadow: var(--shadow-lg); border: 1px solid #2A363E; max-width: 760px; margin: 0 auto; }
.tablet .screen { border-radius: 14px; overflow: hidden; background: #F5F6F3; aspect-ratio: 4 / 3; position: relative; }
.phone { background: #070D1E; border-radius: 40px; padding: 12px; box-shadow: var(--shadow-lg); width: min(330px, 86vw); margin: 0 auto; border: 1px solid #2A363E; }
.phone .screen { border-radius: 30px; overflow: hidden; background: #F5F6F3; aspect-ratio: 9 / 19; position: relative; }
.tilt { transform: perspective(1800px) rotateX(4deg) rotateY(-8deg); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.tilt:hover { transform: perspective(1800px) rotateX(1deg) rotateY(-2deg); }

/* ---------- app mockup (styled like Fusion) ---------- */
.app { position: absolute; inset: 0; display: grid; grid-template-columns: 22% 1fr; font-family: "Segoe UI", system-ui, sans-serif; color: #1B2730; font-size: clamp(6px, 1.5cqw, 15px); line-height: 1.35; background: #F6F5F1; }
.app-side { background: #0B1430; color: #C9D4D9; padding: 1.4em 1em; display: flex; flex-direction: column; gap: .35em; }
.app-side .logo { display: flex; align-items: center; gap: .6em; color: #fff; font-weight: 700; font-size: 1.15em; margin-bottom: 1.2em; }
.app-side .logo i { width: 1.9em; height: 1.9em; border-radius: 50%; background: #8B2E1B; display: block; }
.app-side span { display: block; padding: .55em .8em; border-radius: .5em; }
.app-side span.on { background: rgba(255,255,255,.1); color: #fff; font-weight: 700; }
.app-main { padding: 1.5em 1.8em; overflow: hidden; position: relative; }
.app-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2em; }
.app-top h5 { font-size: 1.7em; margin: 0; font-weight: 700; letter-spacing: -.01em; font-family: "Segoe UI", system-ui, sans-serif; }
.app-top .who { font-size: .95em; color: #56646D; }
.chip { display: inline-block; padding: .25em .65em; border-radius: 1em; font-size: .9em; background: #E6E9E5; color: #334149; font-weight: 600; }
.chip.g { background: #DCEBDD; color: #1F5A2C; } .chip.y { background: #F6E7C4; color: #6E4A00; } .chip.r { background: #F5D9D3; color: #8A2A1B; } .chip.b { background: #D8E8EE; color: #1D5163; }
.app-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9em; margin-bottom: 1.1em; }
.app-card { background: #fff; border: 1px solid #E2E1DA; border-radius: .7em; padding: .9em 1em; }
.app-card small { display: block; color: #5E6B73; font-size: .9em; }
.app-card b { display: block; font-size: 1.6em; margin-top: .2em; letter-spacing: -.01em; }
.app-table { background: #fff; border: 1px solid #E2E1DA; border-radius: .7em; overflow: hidden; }
.app-table .tr { display: grid; grid-template-columns: 2.2fr 1.2fr 1fr 1fr; padding: .7em 1em; border-bottom: 1px solid #EEEDE7; align-items: center; gap: .6em; }
.app-table .tr.h { background: #F1F0EA; font-weight: 700; color: #4A5860; font-size: .92em; }
.app-tabs { display: flex; gap: 1.2em; border-bottom: 1px solid #E2E1DA; margin-bottom: 1em; }
.app-tabs span { padding: .55em 0; color: #5E6B73; font-weight: 600; }
.app-tabs span.on { color: #0B1430; box-shadow: inset 0 -.2em 0 #C3872A; }
.screens { position: absolute; inset: 0; }
.screens > .scr { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.screens > .scr.on { opacity: 1; }
.no-js .screens > .scr:first-child, .screens > .scr:first-child:only-child { opacity: 1; }
.cursor { position: absolute; width: 26px; height: 26px; z-index: 5; pointer-events: none; transition: left 1s cubic-bezier(.5,0,.2,1), top 1s cubic-bezier(.5,0,.2,1); filter: drop-shadow(0 3px 4px rgba(0,0,0,.35)); }
.hl { position: absolute; border: 3px solid #C3872A; border-radius: 10px; box-shadow: 0 0 0 9999px rgba(10,18,24,.18); transition: all .8s cubic-bezier(.5,0,.2,1); z-index: 4; pointer-events: none; }
.demo-caption { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; margin-top: 26px; }
.demo-steps { display: flex; gap: 6px; flex-wrap: wrap; }
.demo-steps button { min-height: 46px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: inherit; font: 700 1rem var(--body); cursor: pointer; }
.demo-steps button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.demo-text { min-height: 3.2em; font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; }
.illus { font: 500 .85rem var(--mono); color: var(--ink-2); letter-spacing: .03em; }

/* ---------- map ---------- */
.mapbox { position: relative; }
.mapbox svg.cmap { width: 100%; height: auto; overflow: hidden; }
.cmap .prov { fill: var(--surface-2); stroke: var(--bg); stroke-width: .7; transition: fill .6s ease; }
.dark .cmap .prov, .spruce .cmap .prov { fill: #1B3341; stroke: #0F1B3B; }
.cmap .prov.lit { fill: color-mix(in srgb, var(--ochre) 32%, var(--surface-2)); }
.dark .cmap .prov.lit { fill: #3B4A3A; }
.cmap .pt { fill: var(--ochre); opacity: 0; transition: opacity .5s ease, r .3s; }
.cmap.show .pt { opacity: .85; }
.cmap .pt.sel { fill: #fff; stroke: var(--ochre); stroke-width: 1.4; opacity: 1; }
.cmap .provlabel { font: 500 8px var(--mono); fill: var(--ink-2); letter-spacing: .04em; pointer-events: none; }
.cmap .provcount { font: 800 13px var(--display); fill: var(--ink); pointer-events: none; }
.maptip { position: absolute; pointer-events: none; background: var(--night); color: #F4EFE8; padding: 10px 14px; border-radius: 8px; font-size: .98rem; box-shadow: var(--shadow); max-width: 280px; opacity: 0; transition: opacity .15s; z-index: 6; }
.maptip b { display: block; font-family: var(--display); font-size: 1.08rem; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font: 500 .9rem var(--mono); color: var(--ink-2); margin-top: 14px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--ochre); margin-right: 8px; vertical-align: -1px; }

/* ---------- community lookup ---------- */
.lookup { position: relative; max-width: 720px; }
.lookup label { display: block; font: 700 1.15rem var(--body); margin-bottom: 10px; }
.lookup input { width: 100%; min-height: 64px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); padding: 14px 20px 14px 56px; font: 400 1.25rem var(--body); }
.lookup input:focus { outline: none; border-color: var(--ochre); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ochre) 30%, transparent); }
.lookup .ico { position: absolute; left: 18px; bottom: 20px; width: 24px; height: 24px; color: var(--ink-2); }
.lookup ul[role="listbox"] { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); margin: 0; padding: 6px; list-style: none; max-height: 380px; overflow: auto; }
.lookup li[role="option"] { padding: 12px 14px; border-radius: 10px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; min-height: 52px; align-items: center; }
.lookup li[role="option"] small { color: var(--ink-2); font: 500 .85rem var(--mono); white-space: nowrap; }
.lookup li[aria-selected="true"], .lookup li[role="option"]:hover { background: var(--river-wash); }
.profile { margin-top: 34px; display: grid; gap: 28px; }
@media (min-width: 980px) { .profile { grid-template-columns: 1.1fr .9fr; align-items: start; } }
.pcard { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(22px, 3vw, 34px); animation: rise .6s cubic-bezier(.2,.7,.2,1); }
.pcard h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 6px; }
.pcard .alt { color: var(--ink-2); margin-bottom: 18px; }
.bars { display: grid; gap: 10px; margin: 6px 0 0; }
.bars > div:not(.proj-list) { display: grid; grid-template-columns: minmax(130px, 1fr) 2fr 38px; gap: 12px; align-items: center; font-size: 1rem; }
.bars i { display: block; height: 12px; border-radius: 6px; background: var(--river); transform-origin: left; animation: grow .8s cubic-bezier(.2,.7,.2,1) both; }
.bars span:last-child { font: 500 .95rem var(--mono); text-align: right; }
.would { background: var(--night); color: #F4EFE8; border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); }
.would h3 { color: #fff; margin-bottom: 14px; }
.would ul { margin: 0 0 22px; padding: 0; list-style: none; display: grid; gap: 12px; }
.would li { padding-left: 30px; position: relative; color: #E6DED0; }
.would li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 14px; border-radius: 50%; border: 3px solid #E3B35C; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- journey ---------- */
.journey { position: relative; list-style: none; margin: 0; padding: 0; }
.journey::before { content: ""; position: absolute; left: 23px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.journey .jprog { position: absolute; left: 23px; top: 10px; width: 2px; background: var(--ochre); height: 0; transition: height .2s linear; }
.journey > li { position: relative; padding: 0 0 clamp(40px, 6vw, 72px) 76px; }
.journey > li::before { content: attr(data-n); position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line); display: grid; place-items: center; font: 500 1rem var(--mono); color: var(--ink-2); transition: all .4s; }
.sec.alt .journey > li::before { background: var(--surface); }
.journey > li.done::before { background: var(--ochre); border-color: var(--ochre); color: #14110A; }
.journey h3 { margin: 6px 0 10px; }
.journey .who { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 14px; }
.journey .get { border-left: 3px solid var(--ochre); padding: 4px 0 4px 18px; margin-top: 12px; }
.journey .get b { display: block; font: 500 .85rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ochre-ink); margin-bottom: 4px; }
.jgrid { display: grid; gap: 24px; }
@media (min-width: 1000px) { .jgrid { grid-template-columns: 1fr 1fr; align-items: start; gap: 48px; } }

/* ---------- before / after ---------- */
.ba { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 10; background: #0A1822; box-shadow: var(--shadow-lg); user-select: none; touch-action: pan-y; }
.ba > div { position: absolute; inset: 0; }
.ba .after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; z-index: 4; }
.ba .handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; background: #E3B35C; z-index: 3; transform: translateX(-50%); pointer-events: none; }
.ba .handle::after { content: "\2194"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; background: #E3B35C; color: #14110A; display: grid; place-items: center; font-size: 1.5rem; font-weight: 700; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.ba input:focus-visible + .handle::after { outline: 3px solid #fff; outline-offset: 3px; }
.ba .lbl { position: absolute; top: 14px; z-index: 2; font: 500 .85rem var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 7px 10px; border-radius: 6px; background: rgba(9,20,28,.82); color: #F4EFE8; }

/* ---------- program map ---------- */
.pmap { display: grid; gap: 28px; }
@media (min-width: 1000px) { .pmap { grid-template-columns: 1.05fr .95fr; align-items: start; } }
.orbit { position: relative; aspect-ratio: 1; max-width: 600px; width: 100%; margin: 0 auto; }
.orbit svg.rings { position: absolute; inset: 0; width: 100%; height: 100%; }
.orbit .core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 30%; aspect-ratio: 1; border-radius: 50%; background: var(--night); color: #F4EFE8; display: grid; place-items: center; text-align: center; padding: 8px; box-shadow: 0 0 0 10px color-mix(in srgb, var(--ochre) 18%, transparent); }
.orbit .core b { font: 800 clamp(.95rem, 2vw, 1.3rem)/1.05 var(--display); }
.orbit .core small { display: block; font: 500 .72rem var(--mono); letter-spacing: .06em; color: #E3B35C; margin-top: 4px; text-transform: uppercase; }
.orbit button.node { position: absolute; transform: translate(-50%, -50%); min-width: 44px; min-height: 44px; max-width: 30%; padding: 10px 14px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font: 700 clamp(.85rem, 1.5vw, 1.02rem)/1.15 var(--body); cursor: pointer; box-shadow: var(--shadow); transition: transform .3s, border-color .3s, background-color .3s; text-align: center; }
.orbit button.node:hover { transform: translate(-50%, -50%) scale(1.05); }
.orbit button.node[aria-pressed="true"] { background: var(--ochre); border-color: var(--ochre); color: #14110A; }
.panel { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow); }
.panel h3 { margin-bottom: 10px; }
.lines { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 6px; padding: 0; list-style: none; }
.lines li { font: 700 .98rem var(--body); padding: 8px 12px; border-radius: 8px; background: var(--river-wash); color: var(--ink); }
.cov { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 880px) { .cov { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.cov div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.cov b { display: block; font: 750 1.22rem/1.25 var(--display); margin-bottom: 4px; letter-spacing: -0.01em; }
.cov span { color: var(--ink-2); }
.tree { font: 500 1rem/1.9 var(--mono); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 22px 26px; box-shadow: var(--shadow); overflow-x: auto; }
.tree ul { list-style: none; margin: 0; padding-left: 22px; border-left: 1px dashed var(--line); }
.tree > ul { border: 0; padding: 0; }
.tree li { position: relative; padding-left: 4px; white-space: nowrap; }
.tree li > b { font-weight: 500; color: var(--ochre-ink); }

/* ---------- AI survey walkthrough ---------- */
.ai { display: grid; gap: 14px; }
.ai .q { font: 750 1.25em/1.25 "Segoe UI", system-ui, sans-serif; color: #0B1430; }
.ai .draft { background: #fff; border: 1px solid #E2E1DA; border-radius: .8em; padding: 1em 1.1em; opacity: .25; transition: opacity .6s, box-shadow .6s; }
.ai .draft.on { opacity: 1; box-shadow: 0 0 0 .25em rgba(195,135,42,.35); }
.ai .src { display: flex; flex-wrap: wrap; gap: .4em; margin-top: .6em; }
.ai .src span { font-size: .9em; padding: .25em .6em; border-radius: .4em; background: #D8E8EE; color: #1D5163; font-weight: 600; }
.ai .conf { display: flex; gap: .6em; align-items: center; margin-top: .8em; opacity: .25; transition: opacity .6s; }
.ai .conf.on { opacity: 1; }
.ai .btnf { padding: .5em 1em; border-radius: .5em; background: #0B1430; color: #fff; font-weight: 700; }
.score { display: flex; align-items: center; gap: 1em; }
.score .bar { flex: 1; height: .8em; background: #E6E5DF; border-radius: 1em; overflow: hidden; }
.score .bar i { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, #C3872A, #2F6B3F); transition: width 1s cubic-bezier(.2,.7,.2,1); }

/* ---------- dashboards ---------- */
.dash-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.dash-tabs button { min-height: 48px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: inherit; font: 700 1.02rem var(--body); cursor: pointer; }
.dash-tabs button[aria-selected="true"] { background: var(--ochre); border-color: var(--ochre); color: #14110A; }
.chart { width: 100%; height: auto; overflow: visible; }
.chart .ax { stroke: var(--line); stroke-width: 1; }
.chart .grid { stroke: var(--line-2); stroke-width: 1; }
.chart text { fill: var(--ink-2); font: 500 13px var(--mono); }
.chart .ttl { fill: var(--ink); font: 750 15px var(--display); }
.chart .val { fill: var(--ink); font: 700 15px var(--body); }
.chart .bar { fill: var(--river); }
.chart .bar.o { fill: var(--ochre); }
.chart .ln { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .draw { stroke-dasharray: var(--len, 2000); stroke-dashoffset: 0; }
.js .chart.pending .draw { stroke-dashoffset: var(--len, 2000); }
.chart .draw { transition: stroke-dashoffset 1.6s cubic-bezier(.3,.6,.2,1); }
.js .chart.pending .bar { transform: scaleY(0); }
.chart .bar { transform-box: fill-box; transform-origin: bottom; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.js .chart.pending .hbar { transform: scaleX(0); }
.chart .hbar { transform-box: fill-box; transform-origin: left; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.figure { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: clamp(18px, 2.6vw, 30px); box-shadow: var(--shadow); }
.figure h3 { margin-bottom: 6px; }
.figure .sub { color: var(--ink-2); font-size: 1.02rem; margin-bottom: 18px; }
.chartkey { display: flex; flex-wrap: wrap; gap: 8px 18px; font: 500 .9rem var(--mono); color: var(--ink-2); margin: 0 0 12px; }
.chartkey i { display: inline-block; width: 18px; height: 4px; border-radius: 2px; margin-right: 8px; vertical-align: middle; }
details.tbl { margin-top: 14px; }
details.tbl summary { cursor: pointer; font: 700 1rem var(--body); color: var(--river); min-height: 44px; display: flex; align-items: center; }
details.tbl table { border-collapse: collapse; width: 100%; font-size: 1rem; margin-top: 8px; }
details.tbl th, details.tbl td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line-2); }
details.tbl td:last-child, details.tbl th:last-child { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- documents / samples ---------- */
.docs { display: grid; gap: clamp(36px, 5vw, 64px); }
.doc { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .doc { grid-template-columns: 1.1fr .9fr; } .doc:nth-child(even) .stack { order: 2; } }
.stack { position: relative; aspect-ratio: 1 / .84; max-height: 600px; display: block; width: 100%; }
.stack-open { position: absolute; inset: 0; z-index: 6; background: transparent; border: 0; cursor: zoom-in; border-radius: 8px; }
.stack img { position: absolute; width: 56%; height: auto; aspect-ratio: 8.5 / 11; object-fit: cover; border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 24px 50px -22px rgba(15,27,59,.55); background: #fff; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.stack img:nth-of-type(1) { left: 2%; top: 7%; z-index: 3; transform: rotate(-2.5deg); }
.stack img:nth-of-type(2) { left: 22%; top: 3%; z-index: 2; transform: rotate(1.5deg); }
.stack img:nth-of-type(3) { left: 42%; top: 10%; z-index: 1; transform: rotate(4deg); }
.stack:hover img:nth-of-type(1) { transform: rotate(-4deg) translateX(-12px); }
.stack:hover img:nth-of-type(3) { transform: rotate(6deg) translateX(16px); }
.stack .sample { position: absolute; z-index: 5; left: 2%; top: 0; background: var(--brand); color: #fff; font: 500 .85rem var(--mono); letter-spacing: .1em; padding: 7px 12px; border-radius: 4px; text-transform: uppercase; }
.doc h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 10px; }
.doc .for { font: 500 .9rem var(--mono); color: var(--ochre-ink); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 12px; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(6,12,17,.94); display: none; align-items: center; justify-content: center; padding: 60px 16px 90px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 100%; max-width: min(100%, 900px); width: auto; border-radius: 4px; box-shadow: 0 30px 80px rgba(0,0,0,.6); background: #fff; }
.lightbox .lb-bar { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; align-items: center; gap: 14px; color: #F4EFE8; }
.lightbox button { min-width: 52px; min-height: 52px; border-radius: 999px; border: 2px solid rgba(255,255,255,.4); background: rgba(255,255,255,.06); color: #fff; font: 700 1.05rem var(--body); cursor: pointer; padding: 0 18px; }
.lightbox .lb-close { position: absolute; right: 16px; top: 14px; }
.lightbox .lb-title { position: absolute; left: 20px; top: 22px; right: 120px; color: #F4EFE8; font: 700 1.1rem var(--display); }

/* ---------- equipment ---------- */
.kit { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 860px) { .kit { grid-template-columns: repeat(2, 1fr); column-gap: 48px; } }
@media (min-width: 1180px) { .kit { grid-template-columns: repeat(3, 1fr); } }
.kit > div { padding: 28px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: start; }
.kit svg { width: 96px; height: 96px; color: var(--ink); }
.kit svg .acc { color: var(--ochre); }
.kit h3 { font-size: 1.3rem; margin-bottom: 6px; }
.kit p { color: var(--ink-2); margin: 0; font-size: 1.05rem; }

/* ---------- family ---------- */
.family { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.family > div { display: grid; gap: 12px 40px; padding: 34px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .family > div { grid-template-columns: 120px 1fr 1.3fr; align-items: start; } }
.family img { width: 92px; height: auto; }
.family .mark { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font: 800 1.6rem var(--display); color: var(--ink); }
.family h3 small { display: block; font: 500 .85rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ochre-ink); margin-bottom: 8px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); max-width: 920px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 26px 0; font: 750 clamp(1.2rem, 2vw, 1.5rem)/1.25 var(--display); letter-spacing: -0.01em; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font: 400 1.6rem/1 var(--body); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); border-color: var(--ochre); }
.faq .ans { padding: 0 0 26px; color: var(--ink-2); max-width: 70ch; }

/* ---------- capabilities ---------- */
.capnav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.capnav a { min-height: 48px; display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; }
.capnav a:hover { border-color: var(--ochre); }
.capgroup { padding: 44px 0; border-top: 2px solid var(--ink); }
.capgroup > h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 8px; }
.capgroup > p { color: var(--ink-2); }
.caps { display: grid; gap: 0; margin-top: 20px; }
@media (min-width: 860px) { .caps { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.caps > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.caps b { display: block; font: 750 1.18rem/1.25 var(--display); }
.caps span { color: var(--ink-2); display: block; margin-top: 4px; }
.caps a { font-weight: 700; font-size: 1rem; }

/* ---------- CTA / footer ---------- */
.cta { text-align: left; }
.cta h2 { font-size: clamp(2.4rem, 6vw, 5.2rem); max-width: 15ch; }
.cta .bigphone { display: inline-block; font: 800 clamp(2rem, 5vw, 3.6rem)/1 var(--display); letter-spacing: -0.03em; color: #E3B35C; text-decoration: none; margin: 30px 0 12px; }
.cta .bigphone:hover { text-decoration: underline; }
.contact-grid { display: grid; gap: 28px; margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line); }
@media (min-width: 860px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-grid b { display: block; font: 500 .85rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ochre-ink); margin-bottom: 8px; }
.contact-grid a, .contact-grid span { font-size: 1.15rem; }
.site-foot { background: var(--night); color: #D6CEC0; padding: 64px 0 40px; font-size: 1.02rem; border-top: 1px solid rgba(255,255,255,.08); }
.site-foot a { color: #F4EFE8; }
.foot-grid { display: grid; gap: 34px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.site-foot h2 { font: 500 .85rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #E3B35C; margin-bottom: 14px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-foot li a { display: inline-flex; min-height: 40px; align-items: center; text-decoration: none; }
.site-foot li a:hover { text-decoration: underline; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .95rem; }
.theme-tg { background: transparent; border: 1px solid rgba(255,255,255,.3); color: inherit; border-radius: 999px; min-height: 44px; padding: 0 16px; font: 700 .95rem var(--body); cursor: pointer; }

/* ---------- motion ---------- */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }
.js .hero .ld { opacity: 0; transform: translateY(22px); animation: ld 1.1s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 0s); }
.js .hero-media img { animation: kb 2.4s cubic-bezier(.2,.7,.2,1) both; }
@keyframes ld { to { opacity: 1; transform: none; } }
@keyframes kb { from { transform: scale(1.12); filter: saturate(.6) brightness(.8); } to { transform: scale(1); filter: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .rv, .js .hero .ld { opacity: 1 !important; transform: none !important; animation: none !important; }
  .js .chart.pending .draw { stroke-dashoffset: 0 !important; } .js .chart.pending .bar, .js .chart.pending .hbar { transform: none !important; }
  .tilt, .tilt:hover { transform: none; }
}

/* ---------- print (nutshell) ---------- */
@media print {
  @page { size: auto; margin: 14mm; }
  body { background: #fff; color: #111; font-size: 11.5pt; }
  .site-head, .site-foot, .noprint, .skip { display: none !important; }
  .sec { padding: 0 !important; }
  .print-page h1 { font-size: 26pt; color: #111; }
  .nut li { padding: 9pt 0; break-inside: avoid; }
  .nut b { font-size: 13.5pt; }
  .nut span { font-size: 10.5pt; color: #333; }
  .dark, .spruce { background: #fff !important; color: #111 !important; }
  a { color: #111; text-decoration: none; }
}

/* ---------- testimonials ---------- */
.ts-q { margin: 0; }
.ts-q blockquote { margin: 0; }
.ts-q blockquote p { font: 700 clamp(1.7rem, 3.6vw, 3rem)/1.18 var(--display); letter-spacing: -0.02em; max-width: 30ch; text-wrap: balance; }
.ts-q blockquote p::before { content: "\201C"; color: var(--ochre); }
.ts-q blockquote p::after { content: "\201D"; color: var(--ochre); }
.ts-q figcaption { display: flex; gap: 16px; align-items: center; margin-top: 24px; color: var(--ink-2); }
.ts-q figcaption img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.ts-q figcaption b { display: block; color: var(--ink); font-size: 1.15rem; }
.ts-stage { min-height: 260px; animation: rise .6s ease; }
.ts-ctl { display: flex; gap: 10px; margin-top: 28px; }
.ts-ctl button { min-width: 52px; min-height: 52px; border-radius: 999px; border: 2px solid var(--line); background: transparent; color: inherit; font: 700 1.05rem var(--body); cursor: pointer; padding: 0 18px; }

/* layout guards */
.sec, .page-hero { overflow-x: clip; }
.contours { overflow: hidden; }
.split > *, .grid > *, .jgrid > *, .pmap > *, .profile > *, .head > * { min-width: 0; }
.site-head .seal-w { display: none; }
.site-head.on-hero .seal-w { display: block; } .site-head.on-hero .seal-c { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-head .seal-w { display: block; } :root:not([data-theme="light"]) .site-head .seal-c { display: none; } }
:root[data-theme="dark"] .site-head .seal-w { display: block; } :root[data-theme="dark"] .site-head .seal-c { display: none; }
.figure .ledger li { grid-template-columns: 1fr; }
.stat b.word { font-size: clamp(1.7rem, 2.8vw, 2.5rem); line-height: 1.08; }

/* Header buttons stay on one line (2026-11-25). */
.site-head .btn { white-space: nowrap; }
.brand span { white-space: nowrap; }
.site-head .brand span { display: none; }

/* ---------- v3: scenes, photo bands, mosaics, icon rows ---------- */
.scene-fig { margin: 0; position: relative; }
.scene { width: 100%; height: auto; display: block; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.scene-fig .illus { position: absolute; right: 12px; bottom: 10px; margin: 0; background: rgba(15,27,59,.72); color: #F4EFE8; padding: 3px 8px; border-radius: 4px; font-size: .78rem; }
@keyframes shimmer { to { stroke-dashoffset: -80; } }
@keyframes dash { to { stroke-dashoffset: -60; } }
@keyframes fly { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.sc-shimmer { animation: shimmer 6s linear infinite; }
.sc-dash { animation: dash 3s linear infinite; }
.sc-drone { offset-path: path('M40 60 L 760 60 L 760 160 L 40 160 L 40 255 L 760 255 L 760 350 L 40 350'); offset-rotate: 0deg; animation: fly 22s linear infinite alternate; }
.sc-tag { animation: rise .8s ease both; }
@media (prefers-reduced-motion: reduce) { .sc-shimmer, .sc-dash, .sc-drone { animation: none !important; } .sc-drone { offset-distance: 30%; } }
.band { position: relative; min-height: clamp(320px, 52vw, 620px); display: flex; align-items: flex-end; color: #F7F7F2; overflow: hidden; isolation: isolate; background: var(--night); }
.band picture, .band > img { position: absolute; inset: 0; z-index: -2; }
.band img { width: 100%; height: 115%; object-fit: cover; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,18,26,0) 35%, rgba(8,18,26,.78) 100%); }
.band .wrap { padding-bottom: clamp(32px, 5vw, 64px); }
.band p { font: 800 clamp(1.8rem, 4.4vw, 3.6rem)/1.05 var(--display); letter-spacing: -0.03em; max-width: 20ch; margin: 0; text-wrap: balance; }
.band small { display: block; margin-top: 12px; font: 500 .85rem var(--mono); letter-spacing: .06em; color: #E6DED0; text-transform: uppercase; }
.mosaic { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
@media (min-width: 900px) { .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; } .mosaic .w2 { grid-column: span 2; } .mosaic .h2 { grid-row: span 2; } }
.mosaic figure { margin: 0; position: relative; overflow: hidden; border-radius: 10px; background: var(--surface-2); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.mosaic figure:hover img { transform: scale(1.04); }
.mosaic figcaption { position: absolute; left: 8px; bottom: 8px; background: rgba(15,27,59,.8); color: #F2F3EE; font: 500 .82rem var(--mono); padding: 4px 8px; border-radius: 4px; }
.icons { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px 28px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .icons { grid-template-columns: repeat(3, 1fr); } .icons.c4 { grid-template-columns: repeat(4, 1fr); } .icons.c6 { grid-template-columns: repeat(6, 1fr); } }
.icons li { display: grid; gap: 6px; align-content: start; }
.icons svg { width: 52px; height: 52px; color: var(--ink); }
.icons svg .acc { color: var(--ochre); stroke: var(--ochre); }
.icons b { font: 750 1.15rem/1.2 var(--display); }
.icons span { color: var(--ink-2); font-size: 1rem; line-height: 1.4; }
.dark .icons svg, .spruce .icons svg { color: #F4EFE8; }
.duo { display: grid; gap: 20px; }
@media (min-width: 860px) { .duo { grid-template-columns: 1fr 1fr; } }
.pcards { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .pcards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pcards { grid-template-columns: repeat(3, 1fr); } }
.pcard2 { border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); display: grid; }
.pcard2 .pm { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.pcard2 .pm img, .pcard2 .pm svg { width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; }
.pcard2 div.t { padding: 18px 20px 22px; }
.pcard2 b { display: block; font: 750 1.25rem var(--display); margin-bottom: 4px; }
.pcard2 span { color: var(--ink-2); }
/* standards map */
.stdmap { display: grid; gap: 18px; }
@media (min-width: 980px) { .stdmap { grid-template-columns: 1.2fr 1fr .8fr; align-items: stretch; } }
.stdcol { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; background: var(--surface); position: relative; }
.stdcol h3 { font-size: 1.15rem; margin-bottom: 12px; }
.stdcol + .stdcol::before { content: "\2192"; position: absolute; left: -16px; top: 50%; transform: translate(-50%, -50%); font: 800 1.4rem var(--display); color: var(--ochre); }
@media (max-width: 979px) { .stdcol + .stdcol::before { content: "\2193"; left: 50%; top: -14px; } }
.badges { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.badge { display: inline-grid; gap: 2px; padding: 8px 12px 9px; border-radius: 10px; border: 2px solid var(--ink); background: var(--bg); min-width: 92px; }
.badge b { font: 800 1.02rem/1 var(--display); letter-spacing: -0.01em; }
.badge span { font: 500 .78rem/1.25 var(--mono); color: var(--ink-2); }
.badge.fund { border-color: var(--ochre); }
.stdgroup { margin-bottom: 14px; }
.stdgroup > small { display: block; font: 500 .8rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ochre-ink); margin-bottom: 8px; }
.stdcol ul.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.stdcol ul.plain li { padding-left: 22px; position: relative; }
.stdcol ul.plain li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--ochre); }
/* water network illustration */
@keyframes nwflow { to { stroke-dashoffset: -96; } }
@keyframes nwin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.nw-flow { animation: nwflow 4s linear infinite; }
.nw-call, .nw-hyd { animation: nwin .7s ease both; transform-box: fill-box; }
@media (prefers-reduced-motion: reduce) { .nw-flow, .nw-call, .nw-hyd { animation: none !important; } }

/* Advertising consent banner (shows only when a Pixel ID is set) */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 720px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; padding: 18px 20px; border-radius: 14px; background: var(--surface, #fff); color: var(--ink, #0F1B3B); border: 1px solid var(--line, rgba(15,27,59,.15)); box-shadow: 0 12px 40px rgba(15,27,59,.22); font-size: 1.05rem; }
.consent p { margin: 0; flex: 1 1 320px; }
.consent div { display: flex; gap: 10px; flex-wrap: wrap; }

/* Integrated wordmark: "Fusion" + block 4 */
.brand img.wm { width: auto; height: 34px; }
.brand-foot { flex-direction: column; align-items: flex-start; gap: 8px; }
.brand-foot img.wm { height: 34px; }
.brand-foot span { display: block; white-space: normal; line-height: 1.5; }
@media (max-width: 520px) { .brand img.wm { height: 26px; } }

/* AIS 1, 2, 3 levels */
.levels { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .levels { grid-template-columns: repeat(3, 1fr); } }
.level { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); border-top: 6px solid var(--lv); }
.lv1 { --lv: #8FA3AE; } .lv2 { --lv: var(--ochre); } .lv3 { --lv: #9A6B3F; }
.level header { display: flex; flex-direction: column; gap: 4px; }
.lv-badge { align-self: flex-start; font: 500 .85rem/1 var(--mono); letter-spacing: .08em; padding: 7px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink); }
.level h3 { margin: 6px 0 0; font: 800 1.7rem/1.1 var(--display); }
.lv-metal { font-size: .95rem; color: var(--ink-2); }
.lv-eff { margin: 6px 0 0; display: flex; align-items: baseline; gap: 10px; }
.lv-eff b { font: 800 2.6rem/1 var(--display); letter-spacing: -.02em; }
.lv-eff span { font-size: 1.05rem; color: var(--ink-2); }
.lv-down b { color: var(--good); } .lv-up b { color: var(--brand); }
.lv-ex { margin: 0; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); font-size: 1rem; }
.level h4 { margin: 8px 0 0; font: 500 .8rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.level ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 1.02rem; }
.moveup { margin-top: 34px; padding: 28px; border-radius: var(--r-lg); background: var(--night); color: var(--on-night); }
.moveup h3 { margin: 0 0 18px; font: 800 1.5rem/1.15 var(--display); }
.moveup ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: mv; }
@media (min-width: 900px) { .moveup ol { grid-template-columns: repeat(4, 1fr); } }
.moveup li { counter-increment: mv; display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 2px solid var(--ochre); }
.moveup li b::before { content: counter(mv) ". "; color: var(--ochre); }
.moveup li b { font-size: 1.15rem; } .moveup li span { color: var(--on-night-2); }
:root[data-theme="dark"] .lv-up b { color: #E8907A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lv-up b { color: #E8907A; } }

/* Rebuild estimate page */
.est { display: grid; gap: 26px; }
.est-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.est-card h2 { margin: 0; font: 800 1.5rem/1.15 var(--display); }
.est-card > p { margin: 0; color: var(--ink-2); }
.est label { display: grid; gap: 6px; font-size: .95rem; color: var(--ink-2); }
.est select, .est input { height: 48px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg); color: var(--ink); padding: 0 12px; font: 400 1.05rem var(--body); min-width: 0; width: 100%; }
.est select:focus-visible, .est input:focus-visible { outline: 3px solid var(--ochre); outline-offset: 1px; }
.est-rows { display: grid; gap: 14px; }
.est-row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; padding: 16px; border-radius: var(--r); background: var(--surface-2); align-items: end; }
@media (min-width: 980px) { .est-row { grid-template-columns: 1.3fr .7fr 1.5fr .9fr 1fr auto; } }
.est-val { display: grid; gap: 6px; } .est-val span { font-size: .95rem; color: var(--ink-2); } .est-val b { font: 800 1.25rem/48px var(--display); }
.est-del { height: 48px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--line); background: transparent; color: var(--ink); font: 600 .95rem var(--body); cursor: pointer; }
.est-total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.est-total b { font: 800 clamp(2rem, 5vw, 3rem)/1 var(--display); letter-spacing: -.02em; }
.est-msg { margin: 0; padding: 14px 16px; border-radius: var(--r); background: var(--surface-2); }
.est-msg.warn { background: var(--ochre-wash); } .est-msg.good { background: var(--river-wash); }
.est-tiers { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.est-tier { display: grid; gap: 6px; padding: 16px; border-radius: var(--r); background: var(--surface-2); }
.est-tier .lv-badge { background: var(--surface); justify-self: start; }
.est-tier b { font: 800 1.8rem/1 var(--display); } .est-tier.down b { color: var(--good); } .est-tier.up b { color: var(--brand); }
:root[data-theme="dark"] .est-tier.up b { color: #E8907A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .est-tier.up b { color: #E8907A; } }

/* Program estimate */
.prog-in { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .prog-in { grid-template-columns: 2fr 1fr; } }
#prog-out { display: grid; gap: 16px; }
.prog-where { margin: 0; color: var(--ink-2); }
.prog-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.prog-head .lv-badge { background: var(--night); color: var(--on-night); }
.prog-band { color: var(--ink-2); font-size: .95rem; }
.prog-total { display: grid; gap: 4px; }
.prog-total span { color: var(--ink-2); }
.prog-total b { font: 800 clamp(2.4rem, 6vw, 3.6rem)/1 var(--display); letter-spacing: -.02em; }
.prog-bar { position: relative; height: 12px; border-radius: 999px; background: linear-gradient(90deg, var(--river-wash), var(--river)); }
.prog-bar i { position: absolute; top: -6px; width: 6px; height: 24px; margin-left: -3px; border-radius: 3px; background: var(--ochre); }
.prog-ends { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: .95rem; color: var(--ink-2); }
.prog-ends span:nth-child(2) { text-align: center; }
.prog-h { margin: 6px 0 0; font: 500 .8rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.prog-lines { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.prog-lines li { padding: 8px 12px; border-radius: 999px; background: var(--surface-2); font-size: .98rem; }

/* Nation to Nation draft */
.n2n-draft { background: var(--ochre); color: #1A1407; font-size: 1rem; padding: 10px 0; position: relative; z-index: 5; }
.n2n-path { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .n2n-path { grid-template-columns: repeat(4, 1fr); } }
.n2n-path li { display: grid; gap: 8px; align-content: start; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-top: 6px solid var(--river); }
.n2n-path li:nth-child(3) { border-top-color: var(--ochre); } .n2n-path li:nth-child(4) { border-top-color: var(--spruce); }
.n2n-name { font: 800 1.45rem/1.1 var(--display); } .n2n-path b { font-size: 1.1rem; } .n2n-path li > span:last-child { color: var(--ink-2); }
.n2n-vs { display: grid; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.n2n-vs-row { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 16px 20px; border-top: 1px solid var(--line); }
.n2n-vs-row:first-child { border-top: 0; }
@media (min-width: 760px) { .n2n-vs-row { grid-template-columns: 1fr 1.3fr 1.3fr; gap: 18px; } }
.n2n-vs-h { background: var(--night); color: var(--on-night); font: 500 .82rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 759px) { .n2n-vs-h { display: none; } .n2n-vs-row span:nth-of-type(1)::before { content: "Today: "; font-weight: 700; } .n2n-vs-row span:nth-of-type(2)::before { content: "With Nation to Nation: "; font-weight: 700; } }
.n2n-vs-row span:nth-of-type(2) { color: var(--good); font-weight: 600; }
.n2n-sub { margin: 40px 0 16px; font: 800 1.4rem/1.15 var(--display); }
.n2n-levels { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; counter-reset: nl; }
@media (min-width: 900px) { .n2n-levels { grid-template-columns: repeat(4, 1fr); } }
.n2n-levels li { counter-increment: nl; display: grid; gap: 6px; align-content: start; padding-top: 14px; border-top: 3px solid var(--ochre); }
.n2n-levels li b::before { content: counter(nl) ". "; color: var(--ochre-ink); }
.n2n-levels.on-dark li b::before { color: var(--ochre); } .n2n-levels.on-dark li span { color: var(--on-night-2); }
.n2n-two { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .n2n-two { grid-template-columns: 1fr 1fr; } }
.n2n-two > div { padding: 22px; border-radius: var(--r-lg); background: var(--surface-2); }
.n2n-two h3 { margin: 0 0 10px; font: 800 1.3rem/1.15 var(--display); } .n2n-two ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.n2n-q { margin: 34px 0 0; padding: 24px 28px; border-left: 6px solid var(--ochre); background: var(--ochre-wash); font: 800 clamp(1.3rem, 3vw, 1.8rem)/1.25 var(--display); border-radius: 0 var(--r-lg) var(--r-lg) 0; }

/* By department */
.dept-key { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ink-2); margin-bottom: 28px; }
.dept-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 0; }
.dept-list li { display: grid; grid-template-columns: 74px 1fr; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.08rem; }
.dept-list .pill { justify-self: start; }

/* Profile: clickable project bars, land claims, population source (Michael review Nov 2026) */
.bars-click .bar-btn { display: grid; grid-template-columns: minmax(130px, 1fr) 2fr 38px; gap: 12px; align-items: center; width: 100%; min-height: 44px; padding: 4px 6px; margin: 0 -6px; font: inherit; font-size: 1rem; color: inherit; text-align: left; background: none; border: 0; border-radius: 8px; cursor: pointer; }
.bars-click .bar-btn:hover, .bars-click .bar-btn[aria-expanded="true"] { background: var(--surface-2); }
.bars-click .bar-btn:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }
.bars-click .bar-btn span:first-child { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.bars-click .bar-btn span:last-child { font: 500 .95rem var(--mono); text-align: right; }
.proj-list { padding: 6px 0 14px 14px; border-left: 3px solid var(--river); margin: 2px 0 8px; }
.proj-list .pl-h { font-weight: 700; margin: 8px 0 4px; }
.proj-list ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.pop-src { font-size: .95rem; color: var(--ink-2); margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kv .wide { grid-column: 1 / -1; }
.nopop { font-size: 1rem; font-weight: 400; }
details.claims { border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; margin-top: 10px; }
details.claims summary { min-height: 48px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }
details.claims ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 0; }
details.claims li { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
details.claims li span { color: var(--ink-2); font-size: .95rem; }
/* Clickable project and claim items */
ul.items, details.claims ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
details.item { border-top: 1px solid var(--line); }
details.claims li { padding: 0; border-top: 0; }
details.item > summary { min-height: 48px; padding: 10px 28px 10px 0; cursor: pointer; list-style: none; position: relative; display: grid; gap: 2px; }
details.item > summary::-webkit-details-marker { display: none; }
details.item > summary::after { content: '+'; position: absolute; right: 4px; top: 10px; font: 700 1.2rem/1 var(--mono); color: var(--ochre-ink, var(--ink-2)); }
details.item[open] > summary::after { content: '\2212'; }
details.item > summary span { color: var(--ink-2); font-size: .95rem; }
details.item > summary:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }
.item-body { padding: 0 0 14px; }
.item-body > p { margin: 0 0 10px; }
.item-body dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px 16px; margin: 0 0 8px; }
.item-body dt { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.item-body dd { margin: 2px 0 0; font-weight: 600; }
.proj-list[hidden] { display: none !important; }
.proj-list .item-body dl > div { display: block; }

/* How the assessment works: layered map + steps */
.layermap { margin: 0; display: grid; gap: 12px; }
.lm-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.lm-btns button { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 700 .95rem var(--body); cursor: pointer; }
.lm-btns button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.lm-btns button:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }
.lm-btns .sw { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.sw-boundary { border: 2px dashed var(--ochre); } .sw-buildings { background: var(--spruce); } .sw-hydrants { background: #C0392B; border-radius: 50% !important; } .sw-drone { border: 2px solid var(--river); } .sw-street { background: var(--ochre); }
.layermap svg { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--line); }
.layermap .land { fill: #ECE5D6; } .layermap .water { fill: var(--river-wash); }
.layermap .roads path { fill: none; stroke: #FFFFFF; stroke-width: 9; stroke-linecap: round; }
.layermap .bound { fill: none; stroke: var(--ochre); stroke-width: 3; stroke-dasharray: 10 7; }
.layermap .b rect { fill: var(--spruce); }
.layermap .b.crit rect { fill: var(--spruce); stroke: var(--ochre); stroke-width: 3; }
.layermap .b.far rect { fill: var(--spruce); }
.layermap.show-hydrants .b.far rect { fill: var(--ochre); stroke: #C0392B; stroke-width: 3; }
.layermap .b text, .layermap .lbl { font: 600 11px var(--body); fill: #0F1B3B; text-anchor: middle; paint-order: stroke; stroke: #ECE5D6; stroke-width: 3px; }
.layermap .lbl { text-anchor: start; }
.layermap .warnl { fill: #8A2A1B; }
.layermap .reach { fill: rgba(35, 98, 122, .14); stroke: var(--river); stroke-width: 1.5; }
.layermap .hyd { fill: #C0392B; stroke: #fff; stroke-width: 2; }
.layermap .flight { fill: none; stroke: var(--river); stroke-width: 2.5; stroke-dasharray: 6 5; }
.layermap .route { fill: none; stroke: var(--ochre); stroke-width: 4; stroke-dasharray: 2 8; stroke-linecap: round; }
.lm-say { min-height: 3em; color: var(--ink-2); margin: 0; }
@media (prefers-reduced-motion: no-preference) { .layermap [data-layer] { transition: opacity .3s; } .layermap .flight { animation: lmdash 1.4s linear infinite; } }
@keyframes lmdash { to { stroke-dashoffset: -22; } }
.asteps { list-style: none; counter-reset: as; margin: 0; padding: 0; display: grid; gap: 0; }
.asteps li { counter-increment: as; display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; padding: 24px 0; border-top: 1px solid var(--line); }
.asteps li::before { content: counter(as); grid-row: span 3; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); font: 700 1.1rem var(--mono); }
.asteps h3 { margin: 0 0 6px; } .asteps p { margin: 0 0 6px; max-width: 65ch; } .asteps .get { color: var(--ink-2); }
.layermap [data-layer][hidden] { display: none; }

/* Home: department pain points */
.dpain { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.dp-card { display: grid; align-content: start; gap: 10px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; box-shadow: var(--shadow); transition: border-color .2s, transform .2s; }
.dp-card:hover { border-color: var(--ochre); }
.dp-card:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) { .dp-card:hover { transform: translateY(-2px); } }
.dp-d { margin: 0; font: 500 .82rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ochre-ink); }
.dp-card q { font: 700 1.15rem/1.35 var(--display); quotes: "\201C" "\201D"; }
.dp-f { margin: 0; padding-top: 10px; border-top: 1px solid var(--line); color: var(--ink-2); }

/* Grouped menu + footer (menu optimisation) */
@media (min-width: 560px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .foot-grid { grid-template-columns: 1.4fr repeat(4, 1fr); } .foot-grid > div:first-child { grid-column: auto; } }
.mp-groups { display: grid; gap: 22px; }
@media (min-width: 760px) { .mp-groups { grid-template-columns: repeat(2, 1fr); column-gap: 40px; } }
@media (min-width: 1100px) { .mp-groups { grid-template-columns: repeat(4, 1fr); } }
.mp-group h2 { font: 500 .85rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #E3B35C; margin: 0 0 4px; }
.mp-group a { font-size: 1.15rem; min-height: 52px; }
.menu-panel a[aria-current="page"] { color: #E3B35C; }
.menu-panel .wrap, .menu-panel > nav, .menu-panel .mp-foot { max-width: var(--max); margin-left: auto; margin-right: auto; }
@media (min-width: 760px) { .menu-panel .mp-foot { grid-template-columns: auto auto; justify-content: start; } }
@media (max-width: 759px) { .mp-groups .mp-group:last-child { order: -1; } }

/* Header: never let the logo shrink; tighten nav pills on mid widths */
.site-head .brand, header .brand { flex: none; }
.brand img.wm { max-width: none; flex: none; }
@media (min-width: 1240px) and (max-width: 1380px) { .navlinks a { padding: 0 9px; font-size: .98rem; } }
@media (max-width: 1380px) { .signin { display: none !important; } }

/* ===== Header + menu polish ===== */
:root { --hh: 80px; }
.site-head { transition: box-shadow .3s, background-color .3s, color .3s, border-color .3s; }
.nav { transition: height .3s cubic-bezier(.2,.7,.2,1); }
.site-head.compact { box-shadow: 0 10px 30px -18px rgba(15,27,59,.45); }
@media (min-width: 760px) { .site-head.compact .nav { height: 66px; } .site-head.compact .brand img.wm { height: 30px; } }
.brand img.wm { transition: height .3s cubic-bezier(.2,.7,.2,1); }
.hd-prog { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ochre); transform-origin: left; transform: scaleX(0); pointer-events: none; }
html.menu-open .hd-prog { opacity: 0; }

/* top links: underline that grows, instead of a grey pill */
.navlinks a { position: relative; border-radius: 0; }
.navlinks a:hover { background: none; }
.navlinks a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; background: var(--ochre); transform: scaleX(0); transform-origin: center; transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.navlinks a:hover::after, .navlinks a:focus-visible::after, .navlinks a[aria-current="page"]::after { transform: scaleX(1); }
.navlinks a[aria-current="page"] { box-shadow: none; }
.navlinks a:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }

/* burger to X */
.burger { position: relative; width: 20px; height: 14px; display: inline-block; }
.burger i { position: absolute; left: 0; right: 0; height: 2.4px; border-radius: 2px; background: currentColor; transition: transform .3s cubic-bezier(.2,.7,.2,1), opacity .2s, top .3s; }
.burger i:nth-child(1) { top: 0; } .burger i:nth-child(2) { top: 6px; } .burger i:nth-child(3) { top: 12px; }
.menu[open] .burger i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu[open] .burger i:nth-child(2) { opacity: 0; }
.menu[open] .burger i:nth-child(3) { top: 6px; transform: rotate(-45deg); }
.menu .m-close { display: none; } .menu[open] .m-close { display: inline; } .menu[open] .m-open { display: none; }
.menu summary { transition: background-color .2s, color .2s; }
.menu summary:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.menu summary:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; }

/* panel: dim the page, lock scroll, slide in, stagger links */
/* scroll lock handled in site.js (overflow:hidden breaks the sticky header) */
html.menu-open body::after { content: ''; position: fixed; inset: 0; z-index: 40; background: rgba(8,16,22,.45); }
.site-head { z-index: 60; }
.menu-panel { inset: var(--hh) 0 auto 0; max-height: calc(100vh - var(--hh)); max-height: calc(100dvh - var(--hh)); overscroll-behavior: contain; padding-top: 26px; }
.site-head.compact .menu-panel { --hh: 66px; }
@media (max-width: 759px) { .site-head.compact .menu-panel { --hh: 80px; } }
.mp-group a span { transition: transform .2s; }
.mp-group a:hover { color: #E3B35C; } .mp-group a:hover span { transform: translateX(4px); }
.mp-group a:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .menu[open] .menu-panel { animation: mpIn .32s cubic-bezier(.2,.7,.2,1) both; }
  .menu[open] .mp-group h2, .menu[open] .mp-group li { animation: mpItem .4s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 18ms + 60ms); }
  html.menu-open body::after { animation: mpFade .25s ease both; }
}
@keyframes mpIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes mpItem { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes mpFade { from { opacity: 0; } to { opacity: 1; } }

/* quick search in the menu */
.mp-find { max-width: var(--max); margin: 0 auto 26px; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.12); display: grid; gap: 10px; }
.mp-find label { font: 500 .85rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #E3B35C; }
.mp-find-row { position: relative; display: flex; gap: 10px; }
.mp-find-row .ico { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: #CFC6B8; pointer-events: none; }
.mp-find input { flex: 1; min-width: 0; min-height: 54px; padding: 0 16px 0 46px; border-radius: 12px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: #F4EFE8; font: 600 1.1rem var(--body); }
.mp-find input::placeholder { color: #9FB0B8; }
.mp-find input:focus { outline: 3px solid var(--ochre); outline-offset: 1px; border-color: transparent; }
.mp-find .btn { min-height: 54px; flex: none; }
@media (max-width: 420px) { .mp-find .btn { padding: 0 16px; } }
html { scrollbar-gutter: stable; }
@media (max-width: 430px) { .nav { gap: 10px; } .nav-cta { gap: 8px; } .menu summary { padding: 0 12px; gap: 7px; } .nav-cta .btn { padding: 10px 14px; } }
/* Anchor offset for the sticky header, on targets only (html scroll-padding made header focus jump the page) */
main [id], section[id] { scroll-margin-top: 88px; }
.site-head [id] { scroll-margin-top: 0; }
@media (max-width: 430px) { .mp-find input { padding-left: 42px; font-size: 1rem; } .mp-find .btn { padding: 0 14px; font-size: .95rem; min-width: 0; } .mp-find-row { gap: 8px; } }

/* ===== Community profile v2 (polish + warmth: land contours, sovereignty note) ===== */
.profile2 { margin-top: 30px; display: grid; gap: 18px; scroll-margin-top: 90px; }
.ph2 { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--spruce); color: #F4EFE8; padding: clamp(24px, 4vw, 44px); isolation: isolate; box-shadow: var(--shadow); }
.ph2::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, rgba(15,27,59,.55) 0%, rgba(15,27,59,0) 55%), linear-gradient(0deg, rgba(35,98,122,.35), rgba(35,98,122,0) 60%); }
.ph-topo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; color: #C9C89A; opacity: .32; }
.ph2-in { position: relative; max-width: 70ch; }
.ph2 .eyebrow { color: #E3B35C; }
.ph2 h3 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.02; letter-spacing: -0.02em; margin: 4px 0 6px; text-wrap: balance; }
.ph2 .alt { color: #E6DDC8; margin: 0 0 6px; font-size: 1.05rem; }
.ph2-chips { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ph2-chips li { display: inline-flex; align-items: baseline; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); font-weight: 700; font-size: .98rem; }
.ph2-chips li span { font: 500 .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #E3B35C; }
.ph2-note { margin: 18px 0 0; color: #EEE7D6; font-size: 1.05rem; max-width: 62ch; }
.tiles { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { position: relative; display: grid; align-content: start; gap: 4px; padding: 20px 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); color: inherit; text-decoration: none; }
.tile h4 { margin: 0 0 6px; font: 500 .8rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ochre-ink); }
.tile-link { transition: border-color .2s, transform .2s; }
.tile-link:hover { border-color: var(--ochre); }
@media (prefers-reduced-motion: no-preference) { .tile-link:hover { transform: translateY(-2px); } }
.tile-link:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; }
.t-num { margin: 0; font: 800 clamp(2rem, 3.4vw, 2.6rem)/1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.t-num.t-none { font-size: 1.5rem; color: var(--ink-2); }
.t-lbl { margin: 0 0 8px; color: var(--ink-2); }
.t-go, .t-act { margin-top: 6px; font-weight: 700; color: var(--river); }
.t-go::after { content: ' \2192'; }
.tile .pop-src { margin-top: 8px; font-size: .88rem; }
.sbar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: var(--surface-2); margin-top: 6px; }
.sbar i { display: block; height: 100%; }
.sbar i:first-child { background: var(--river); } .sbar i:last-child { background: color-mix(in srgb, var(--river) 35%, var(--surface-2)); }
.sbar.proj i:first-child { background: var(--ochre); } .sbar.proj i:last-child { background: var(--spruce); }
.sbar.claims i:first-child { background: var(--brand); } .sbar.claims i:last-child { background: color-mix(in srgb, var(--ink-2) 30%, var(--surface-2)); }
.sbar-key { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 6px 0 0; font-size: .9rem; color: var(--ink-2); }
.sbar-key span { display: inline-flex; align-items: center; gap: 6px; }
.sbar-key b { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sbar.pop + .sbar-key .k1 { background: var(--river); } .sbar.pop + .sbar-key .k2 { background: color-mix(in srgb, var(--river) 35%, var(--surface-2)); }
.sbar.proj + .sbar-key .k1 { background: var(--ochre); } .sbar.proj + .sbar-key .k2 { background: var(--spruce); }
.sbar.claims + .sbar-key .k1 { background: var(--brand); } .sbar.claims + .sbar-key .k2 { background: color-mix(in srgb, var(--ink-2) 30%, var(--surface-2)); }
.pgrid { display: grid; gap: 18px; }
@media (min-width: 1000px) { .pgrid { grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); align-items: start; } .pgrid .would { position: sticky; top: 90px; } }
.pmain { display: grid; gap: 18px; min-width: 0; }
.psec { padding: clamp(20px, 3vw, 30px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); scroll-margin-top: 90px; min-width: 0; }
.psec > h4 { margin: 0 0 6px; font-size: 1.35rem; }
.sovereign { display: grid; gap: 6px; padding: 18px 22px; border-radius: var(--r-lg); border: 1px dashed color-mix(in srgb, var(--spruce) 45%, var(--line)); background: color-mix(in srgb, var(--spruce) 6%, var(--surface)); }
.sovereign p { margin: 0; }
.browse-map { margin-top: 44px; }
.bm-h { margin: 0 0 4px; font-size: 1.3rem; }
.profile-out:empty + .browse-map { margin-top: 30px; }
@media (prefers-reduced-motion: no-preference) {
  .profile2 > * { animation: rise .55s cubic-bezier(.2,.7,.2,1) both; }
  .profile2 > :nth-child(2) { animation-delay: .06s; } .profile2 > :nth-child(3) { animation-delay: .12s; } .profile2 > :nth-child(4) { animation-delay: .18s; }
  .sbar i { animation: grow .8s cubic-bezier(.2,.7,.2,1) both; transform-origin: left; }
}


/* ===== AIS Family brand overrides (Randy brand boards, Nov 2026) ===== */
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.012em; color: var(--head); }
h1 { font-weight: 700; letter-spacing: -0.018em; line-height: 1.02; }
h4 { font-family: var(--body); font-weight: 800; letter-spacing: 0; color: var(--head); }
.hero h1, .sec.dark h1, .sec.dark h2, .sec.dark h3, .sec.spruce h2, .sec.spruce h3, .cta h2, .page-hero.has-photo h1, .ph2 h3, .would h3, .site-foot h2, .menu-panel h2 { color: inherit; }
.ph2 h3, .would h3 { color: #fff; }
a { color: var(--link); }
.eyebrow, .tile h4, .dp-d, .mp-group h2, .site-foot h2, .mp-find label { font-family: var(--mono); font-weight: 700; letter-spacing: .14em; font-size: .8rem; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -12px rgba(139,46,27,.85); }
.btn-primary:hover { background: #7E2E17; }
.sec.dark .btn-primary, .cta .btn-primary, .hero .btn-primary, .would .btn-primary, .menu-panel .btn-primary { background: #C3872A; color: #14110A; box-shadow: 0 10px 24px -12px rgba(195,135,42,.9); }
.sec.dark .btn-primary:hover, .cta .btn-primary:hover, .hero .btn-primary:hover, .would .btn-primary:hover, .menu-panel .btn-primary:hover { background: #D69A3C; }
.navlinks a::after, .hd-prog { background: var(--brand); }
.t-num, .stats b, .num { font-family: var(--display); font-weight: 700; }
.hero .eyebrow, .page-hero.has-photo .eyebrow { color: #E3B35C; }
/* profile header: family ink navy, gold land contours, a little rust warmth */
.ph2 { background: #0F1B3B; }
.ph2::after { background: linear-gradient(115deg, rgba(139,46,27,.38) 0%, rgba(139,46,27,0) 58%), linear-gradient(0deg, rgba(195,135,42,.14), rgba(195,135,42,0) 55%); }
.ph-topo { color: #E3B35C; opacity: .22; }
.ph2 .alt, .ph2-note { color: #E6DDCB; }
.ph2-chips li { background: rgba(244,239,232,.08); border-color: rgba(227,179,92,.3); }
/* family rule: rust, gold, ink (AIS, AERS, the family) under section eyebrows on dark */
.sec.dark .eyebrow, .cta .eyebrow { color: #E3B35C; }
.t-go, .t-act { color: var(--link); }

/* Nation to Nation, richer page (photos + illustrations) */
.n2n-glance .stat b { color: var(--ochre-ink, var(--ochre)); }
.n2n-fig svg { display: block; width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.n2n-fig .illus.on-dark { background: rgba(240,196,107,.18); color: #F4EFE8; }
.n2n-caption { margin: 16px 0 0; font: 800 clamp(1.2rem, 2.4vw, 1.6rem)/1.25 var(--display); max-width: 40ch; text-wrap: balance; }
.n2n-steps { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; counter-reset: ns; }
@media (min-width: 900px) { .n2n-steps { grid-template-columns: repeat(3, 1fr); } }
.n2n-steps li { counter-increment: ns; display: grid; gap: 6px; align-content: start; padding: 22px 22px 22px 74px; position: relative; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.n2n-steps li::before { content: counter(ns); position: absolute; left: 20px; top: 20px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ochre); color: #1A1407; font: 800 1.2rem/1 var(--display); }
.n2n-steps li b { font-size: 1.1rem; } .n2n-steps li span { color: var(--ink-2); }
.n2n-qband blockquote { margin: 0; max-width: 28ch; font: 800 clamp(1.6rem, 3.6vw, 2.9rem)/1.12 var(--display); letter-spacing: -0.02em; text-wrap: balance; padding-left: 22px; border-left: 6px solid var(--ochre); }
.n2n-vs-h span[role="columnheader"] { color: inherit !important; font-weight: 500 !important; }
@media (max-width: 699px) {
  .n2n-fig { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
  .n2n-fig svg { min-width: 660px; }
  .n2n-fig .illus { position: static; display: inline-block; margin-top: 8px; }
}

/* Headings inside dark panels take the panel's light text colour (family CSS sets headings to --head navy) */
.stage-card h4, .sheet-top h3, .moveup h3 { color: inherit; }
.stage-card h4 { color: #FFFFFF; }
