/* BrainBuilders — site styles
   Visual grammar used everywhere: solid lines and filled markers = exists today;
   dashed lines and hollow markers = proposed / subject to approval;
   square markers = tenant-dependent. */

:root {
  --graphite: #0B1018;
  --midnight: #142033;
  --midnight-2: #1B2A42;
  --blue: #318BFF;
  --blue-soft: rgba(49, 139, 255, .14);
  --white: #F5F8FC;
  --steel: #A7B4C5;
  --steel-dim: #6F7E92;
  --rule: rgba(167, 180, 197, .18);
  --rule-strong: rgba(167, 180, 197, .34);

  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;

  --max: 1240px;
  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(72px, 10vw, 140px);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--graphite);
  color: var(--white);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); color: var(--graphite); padding: 8px 14px; z-index: 100; font-weight: 600; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; margin: 0; letter-spacing: -0.02em; }
.display {
  font-size: clamp(2.9rem, 7.6vw, 6.6rem);
  line-height: .95;
  letter-spacing: -0.035em;
  font-weight: 600;
}
h2, .h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: 1.02; letter-spacing: -0.03em; }
h3, .h3 { font-size: clamp(1.3rem, 1.9vw, 1.6rem); line-height: 1.18; }
.lede { font-size: clamp(1.12rem, 1.6vw, 1.32rem); color: var(--steel); max-width: 54ch; line-height: 1.55; }
.muted { color: var(--steel); }
.small { font-size: .9rem; }
.measure { max-width: 64ch; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 16, 24, .82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand svg { width: 34px; height: 34px; }
.brand-word { font-family: var(--display); font-weight: 600; font-size: 1.12rem; letter-spacing: -0.01em; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a {
  text-decoration: none; color: var(--steel); font-size: .95rem;
  padding: 8px 12px; border-radius: var(--radius);
}
.nav a:hover { color: var(--white); }
.nav a[aria-current="page"] { color: var(--white); }
.nav .btn { margin-left: 10px; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }
.menu-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--rule-strong); color: var(--white);
  font: inherit; font-size: .95rem; padding: 8px 14px; border-radius: var(--radius); cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px;
  font-family: var(--body); font-weight: 600; font-size: 1rem;
  border-radius: var(--radius); border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #4C9BFF; }
.btn-ghost { border-color: var(--rule-strong); color: var(--white); background: transparent; }
.btn-ghost:hover { border-color: var(--white); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { color: var(--white); text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 5px; text-decoration-thickness: 2px; font-weight: 600; }
.text-link:hover { color: var(--blue); }

/* ---------- Sections ---------- */
section { padding: var(--section) 0; }
.band { background: var(--midnight); }
.rule-top { border-top: 1px solid var(--rule); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head p { margin: 0; }

/* ---------- Status markers ---------- */
.status { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--steel); white-space: nowrap; }
.status::before { content: ""; width: 10px; height: 10px; flex: none; }
.status.existing::before { background: var(--blue); border-radius: 50%; }
.status.planned::before { border: 1.5px dashed var(--steel); border-radius: 50%; }
.status.tenant::before { border: 1.5px solid var(--white); border-radius: 1px; }
.status.pending::before { height: 0; border-top: 1.5px solid var(--steel-dim); width: 10px; }
.status-legend { display: flex; flex-wrap: wrap; gap: 10px 26px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 8vw, 112px) 0 clamp(64px, 8vw, 104px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero .display { margin-bottom: 28px; }
.hero .lede { margin-bottom: 36px; }
.hero-place { margin-top: 40px; color: var(--steel); font-size: .95rem; display: flex; align-items: center; gap: 10px; }
.hero-place svg { width: 16px; height: 16px; }

.sld { width: 100%; height: auto; }
.sld .wire { fill: none; stroke: var(--blue); stroke-width: 2; }
.sld .wire-planned { fill: none; stroke: var(--steel); stroke-width: 1.6; stroke-dasharray: 6 6; }
.sld .node { fill: var(--graphite); stroke: var(--blue); stroke-width: 2; }
.sld .node-planned { fill: var(--graphite); stroke: var(--steel); stroke-width: 1.6; stroke-dasharray: 5 5; }
.sld .lbl { fill: var(--white); font-family: var(--body); font-size: 13px; font-weight: 600; }
.sld .sub { fill: var(--steel); font-family: var(--body); font-size: 11.5px; }
.sld .flow { fill: none; stroke: #9CC8FF; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 2 18; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .sld .flow { opacity: 1; animation: flow 1.6s linear infinite; }
  .sld .build { stroke-dasharray: 600; stroke-dashoffset: 600; animation: build 1.8s cubic-bezier(.5,0,.2,1) .2s forwards; }
}
@keyframes flow { to { stroke-dashoffset: -40; } }
@keyframes build { to { stroke-dashoffset: 0; } }

/* ---------- Metrics ---------- */
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule-strong); }
.metric { padding: 36px 32px 8px 0; }
.metric + .metric { border-left: 1px solid var(--rule); padding-left: 32px; }
.metric-value { white-space: nowrap; font-family: var(--display); font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 1; letter-spacing: -0.04em; font-weight: 500; margin-bottom: 14px; }
.metric-value small { font-size: .42em; letter-spacing: 0; color: var(--steel); margin-left: 6px; font-weight: 500; }
.metric.is-planned .metric-value { color: transparent; -webkit-text-stroke: 1.2px var(--white); }
.metric p { color: var(--steel); margin: 10px 0 0; max-width: 30ch; }
.qualifier { margin-top: 36px; padding: 18px 22px; border: 1px dashed var(--rule-strong); border-radius: var(--radius); color: var(--steel); max-width: 78ch; font-size: .95rem; }
.qualifier strong { color: var(--white); font-weight: 600; }

.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .reveal:nth-child(2) { transition-delay: .12s; }
  .js .reveal:nth-child(3) { transition-delay: .24s; }
}

/* ---------- Cross-section ---------- */
.xs-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.xs-figure { background: var(--graphite); border: 1px solid var(--rule); border-radius: 6px; padding: clamp(14px, 2vw, 24px); }
.xs svg text { font-family: var(--body); }
.xs .zone { transition: opacity .35s ease, fill .35s ease, stroke .35s ease; }
.xs[data-view="provider"] .z-tenant { opacity: .32; }
.xs[data-view="tenant"] .z-provider { opacity: .32; }
.xs[data-view="provider"] .z-provider .hl,
.xs[data-view="tenant"] .z-tenant .hl { stroke: var(--blue); }
.toggle { display: inline-flex; border: 1px solid var(--rule-strong); border-radius: var(--radius); padding: 3px; margin-bottom: 26px; flex-wrap: wrap; }
.toggle button {
  font: inherit; font-size: .95rem; font-weight: 600; color: var(--steel);
  background: transparent; border: 0; border-radius: 3px; padding: 9px 16px; cursor: pointer;
}
.toggle button[aria-pressed="true"] { background: var(--white); color: var(--graphite); }
.resp { margin: 0 0 28px; padding: 0; list-style: none; }
.resp li { padding: 13px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline; }
.resp li:first-child { border-top: 1px solid var(--rule); }
.resp-panel[hidden] { display: none; }

/* ---------- Map ---------- */
.place-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.map { background: var(--midnight); border: 1px solid var(--rule); border-radius: 6px; padding: 12px; }
.map text { font-family: var(--body); }
.facts { margin: 28px 0 32px; padding: 0; list-style: none; }
.facts li { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.facts li:first-child { border-top: 1px solid var(--rule); }

/* ---------- Audience ---------- */
.audiences { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule-strong); }
.audience { padding: 32px 28px 36px 0; display: flex; flex-direction: column; text-decoration: none; }
.audience + .audience { padding-left: 28px; border-left: 1px solid var(--rule); }
.audience svg { width: 44px; height: 44px; margin-bottom: 40px; color: var(--blue); }
.audience h3 { margin-bottom: 12px; }
.audience p { color: var(--steel); flex: 1; }
.audience .go { font-weight: 600; font-size: .95rem; text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.audience:hover h3 { color: var(--blue); }

/* ---------- Configurator ---------- */
.config { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.q { border: 0; margin: 0 0 30px; padding: 0; }
.q legend, .q > label.qlabel { font-family: var(--display); font-weight: 600; font-size: 1.15rem; margin-bottom: 14px; padding: 0; display: block; }
.q .hint { color: var(--steel); font-size: .92rem; margin: -8px 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px;
  border: 1px solid var(--rule-strong); border-radius: var(--radius);
  color: var(--white); font-weight: 500; font-size: .98rem; cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.chip input:hover + span { border-color: var(--steel); }
.chip input:checked + span { border-color: var(--blue); background: var(--blue-soft); }
.chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.summary {
  position: sticky; top: 96px;
  background: var(--graphite); border: 1px solid var(--rule-strong); border-radius: 6px;
  padding: 26px;
}
.band .summary { background: var(--graphite); }
.summary h3 { margin-bottom: 18px; }
.summary dl { margin: 0 0 22px; }
.summary dt { color: var(--steel); font-size: .86rem; }
.summary dd { margin: 2px 0 14px; font-weight: 600; }
.summary dd.empty { color: var(--steel-dim); font-weight: 400; }
.summary .note { color: var(--steel); font-size: .88rem; margin: 16px 0 0; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; }
.field .opt { color: var(--steel); font-weight: 400; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  font: inherit; color: var(--white);
  background: var(--midnight); border: 1px solid var(--rule-strong); border-radius: var(--radius);
  padding: 12px 14px; min-height: 50px; width: 100%;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--steel) 50%), linear-gradient(135deg, var(--steel) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--blue); flex: none; }
.form-status { margin: 14px 0 0; min-height: 1.5em; font-weight: 600; }
.form-status.err { color: #FF8A8A; }
.form-status.ok { color: #9CC8FF; }

/* ---------- Final CTA ---------- */
.final { text-align: left; }
.final .display { font-size: clamp(2.6rem, 6.4vw, 5.6rem); max-width: 14ch; margin-bottom: 24px; }
.final .lede { margin-bottom: 36px; }

/* ---------- Inner pages ---------- */
.page-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--rule); }
.page-hero .display { font-size: clamp(2.6rem, 6.2vw, 5.4rem); max-width: 16ch; margin-bottom: 24px; }
.crumb { color: var(--steel); font-size: .95rem; margin-bottom: 26px; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--white); }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 88px); }
.prose h2 { margin-bottom: 20px; }
.prose h3 { margin: 36px 0 12px; }
.prose p, .prose li { color: var(--steel); }
.prose strong { color: var(--white); font-weight: 600; }
.prose ul { padding-left: 1.15em; }
.prose li { margin: 6px 0; }

table.matrix { width: 100%; border-collapse: collapse; font-size: .98rem; }
.matrix th, .matrix td { text-align: left; padding: 15px 16px 15px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.matrix thead th { color: var(--steel); font-weight: 500; font-size: .9rem; border-bottom-color: var(--rule-strong); }
.matrix tbody th { font-weight: 600; width: 30%; }
.matrix td { color: var(--steel); }
.matrix td .status { margin-top: 2px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.spec-group { margin-bottom: 56px; }
.spec-group h3 { margin-bottom: 18px; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 0; }
.steps > li { counter-increment: s; display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.steps > li:first-child { border-top: 1px solid var(--rule); }
.steps > li::before { content: counter(s, decimal-leading-zero); font-family: var(--display); font-size: 1.5rem; color: var(--blue); font-weight: 500; }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--steel); margin: 0; max-width: 60ch; }

.usecase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(28px, 5vw, 88px); padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--rule); scroll-margin-top: 80px; }
.usecase svg { width: 56px; height: 56px; color: var(--blue); margin-bottom: 28px; }
.usecase h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.kv { margin: 0; display: grid; grid-template-columns: 180px minmax(0, 1fr); }
.kv dt, .kv dd { padding: 14px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.kv dt { color: var(--steel); font-size: .95rem; padding-right: 18px; }
.kv dt:first-of-type, .kv dd:first-of-type { border-top: 1px solid var(--rule); }

.article { max-width: 70ch; }
.article h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin: 48px 0 16px; }
.article p, .article li { color: #C9D3DF; font-size: 1.1rem; line-height: 1.75; }
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { border-top: 1px solid var(--rule); }
.post-list li:last-child { border-bottom: 1px solid var(--rule); }
.post-list a { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; padding: 30px 0; text-decoration: none; }
.post-list a:hover h3 { color: var(--blue); }
.post-list p { color: var(--steel); margin: 8px 0 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: 64px 0 40px; color: var(--steel); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 56px; }
.footer-grid h4 { font-family: var(--body); font-size: .9rem; font-weight: 600; color: var(--white); margin-bottom: 14px; letter-spacing: 0; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 8px 0; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--white); }
.footer-legal { border-top: 1px solid var(--rule); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: .86rem; }
.footer-legal p { margin: 0; max-width: 80ch; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--graphite); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 20px;
  }
  .nav.open a { padding: 14px 0; border-bottom: 1px solid var(--rule); border-radius: 0; font-size: 1.05rem; }
  .nav.open .btn { margin: 16px 0 0; border-bottom: 0; justify-content: center; }
}
@media (max-width: 960px) {
  .hero-grid, .xs-grid, .place-grid, .config, .two-col, .usecase, .section-head { grid-template-columns: 1fr; }
  .section-head { align-items: start; }
  .audiences { grid-template-columns: 1fr 1fr; }
  .audience:nth-child(3) { padding-left: 0; border-left: 0; }
  .audience:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .metrics { grid-template-columns: 1fr; }
  .metric, .metric + .metric { padding: 28px 0 8px; border-left: 0; }
  .metric + .metric { border-top: 1px solid var(--rule); }
  .audiences { grid-template-columns: 1fr; }
  .audience, .audience + .audience { padding: 28px 0 32px; border-left: 0; }
  .audience + .audience { border-top: 1px solid var(--rule); }
  .audience svg { margin-bottom: 22px; }
  .fields { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
  .steps > li { grid-template-columns: 48px minmax(0, 1fr); }
  .steps > li .status { grid-column: 2; }
  .kv { grid-template-columns: 1fr; }
  .kv dt { border-bottom: 0; padding-bottom: 0; }
  .kv dd { padding-top: 4px; }
  .kv dd:first-of-type { border-top: 0; }
  .post-list a { grid-template-columns: 1fr; gap: 6px; }
  .footer-grid { grid-template-columns: 1fr; }
  .facts li { flex-direction: column; gap: 4px; }
}

/* ---------- Site plan (development) ---------- */
.plan svg text { font-family: var(--body); }
.plan .prop { transition: opacity .4s ease; }
.plan[data-view="current"] .prop { opacity: 0; }
.plan[data-view="proposed"] .prop { opacity: 1; }

/* ---------- Markets ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.markets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule-strong); }
.markets li { padding: 36px 24px 8px 0; display: flex; flex-direction: column; gap: 14px; }
.markets li + li { border-left: 1px solid var(--rule); padding-left: 28px; }
.market-name { font-family: var(--display); font-weight: 500; white-space: nowrap; font-size: clamp(1.6rem, 2.9vw, 2.5rem); line-height: 1; letter-spacing: -0.03em; }
@media (max-width: 760px) {
  .markets { grid-template-columns: 1fr; }
  .markets li, .markets li + li { border-left: 0; padding: 26px 0 18px; }
  .markets li + li { border-top: 1px solid var(--rule); }
}

/* ---------- Region selector ---------- */
.region {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: flex; flex-direction: column; gap: 14px; width: 100%;
  padding: 32px 24px 26px 0; position: relative;
}
.markets li { padding: 0; }
.markets li + li { padding-left: 0; }
.markets li + li .region { padding-left: 28px; }
.region::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: transparent; transition: background-color .2s ease; }
.markets li + li .region::before { left: 0; }
.region .market-name { transition: color .2s ease; }
.region:hover .market-name { color: #9CC8FF; }
.region.is-selected::before { background: var(--blue); }
.region.is-selected .market-name { color: var(--white); }
.region:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.markets:has(.is-selected) .region:not(.is-selected) .market-name { color: var(--steel-dim); }
.markets:has(.is-selected) .region:not(.is-selected):hover .market-name { color: #9CC8FF; }
.region-hint { margin: 28px 0 0; }
.region-panel { padding-top: clamp(48px, 6vw, 80px); scroll-margin-top: 90px; }
.region-cta { max-width: 640px; }
.region-cta .lede { margin: 16px 0 28px; }
@media (max-width: 760px) {
  .markets li + li .region { padding-left: 0; }
  .region { padding: 24px 0 20px; }
}

/* ---------- Language switch ---------- */
.nav a.lang-switch {
  margin-left: 6px; padding: 6px 10px; min-height: 0;
  border: 1px solid var(--rule-strong); border-radius: var(--radius);
  font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--steel);
}
.nav a.lang-switch:hover { color: var(--white); border-color: var(--steel); }
.lang-long { display: none; }
@media (max-width: 1080px) {
  .nav.open a.lang-switch { border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; margin: 0; padding: 14px 0; font-size: 1.05rem; font-weight: 400; letter-spacing: 0; }
  .nav.open .lang-short { display: none; }
  .nav.open .lang-long { display: inline; }
}

/* French runs longer; give display type a little more room */
:lang(fr) .display { font-size: clamp(2.3rem, 5.3vw, 4.8rem); }
:lang(fr) .page-hero .display, :lang(fr) .final .display { font-size: clamp(2.2rem, 5vw, 4.5rem); }
:lang(fr) .metric-value { font-size: clamp(2.2rem, 4.4vw, 3.8rem); }
