:root {
  --paper: #f7f8fb;
  --paper-raised: #ffffff;
  --ink: #0b1838;
  --muted: #65708a;
  --line: #cbd3e3;
  --accent: #1747d1;
  --accent-soft: #e2eaff;
  --accent-contrast: #ffffff;
  --display: 'Manrope', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --body: 'Manrope', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --brand: 'Michroma', 'Manrope', ui-sans-serif, system-ui, sans-serif;
  --radius: 2px;
  --max: 1360px;
  --pad: clamp(24px, 4vw, 64px);
  --shadow: 0 28px 80px rgba(23, 71, 209, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  transition: color .35s ease, background-color .35s ease;
}
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }

.review-bar {
  position: sticky;
  z-index: 100;
  top: 0;
  min-height: 48px;
  padding: 6px max(18px, calc((100vw - var(--max)) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  color: #f5f7ff;
  background: #11151c;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.review-bar__label, .theme-switcher { display: flex; align-items: center; }
.review-bar__label { gap: 10px; }
.review-dot { width: 7px; height: 7px; border-radius: 50%; background: #9df2c7; box-shadow: 0 0 0 4px rgba(157,242,199,.12); }
.theme-switcher { gap: 3px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.07); }
.theme-button, .review-info {
  border: 0;
  cursor: pointer;
  color: #c5cad4;
  background: transparent;
}
.theme-button { padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.theme-button span { margin-right: 6px; opacity: .55; }
.theme-button:hover, .theme-button.is-active { color: #fff; background: rgba(255,255,255,.13); }
.review-info { justify-self: end; padding: 8px 0; }
.review-info:hover { color: white; }

.site-header {
  width: min(var(--max), 100%);
  margin: 0 auto;
  min-height: 104px;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; width: max-content; }
.brand-mark { display: inline-grid; width: 42px; height: 42px; place-items: center; color: var(--accent); }
.brand-mark__svg { grid-area: 1 / 1; width: 40px; height: 40px; stroke: currentColor; stroke-width: 1.75; vector-effect: non-scaling-stroke; opacity: 0; transform: scale(.8); transition: opacity .25s, transform .25s; }
.brand-word { font-family: var(--brand); font-size: 17px; font-weight: 400; letter-spacing: .035em; }
.brand-word span { color: var(--accent); }
.main-nav { display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: 13px; }
.main-nav a, .header-contact { transition: color .2s; }
.main-nav a:hover, .header-contact:hover { color: var(--accent); }
.header-contact { justify-self: end; display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 650; }
.menu-toggle { display: none; border: 0; background: transparent; }

main { overflow: clip; }
.hero {
  width: min(var(--max), 100%);
  min-height: calc(100svh - 104px);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 148px) var(--pad) 42px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 64px 8vw;
}
.eyebrow { margin: 0 0 24px; color: var(--accent); font-size: 11px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, p { text-wrap: pretty; }
h1, h2 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -.052em; line-height: .94; }
h1 { max-width: 760px; font-size: clamp(54px, 5.3vw, 84px); }
.hero-slogan { display: block; margin-bottom: .3em; color: var(--accent); font-family: var(--body); font-size: .27em; font-weight: 700; letter-spacing: .01em; line-height: 1.1; text-transform: uppercase; }
h2 { font-size: clamp(42px, 5vw, 72px); }
h3 { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.hero-lede { max-width: 660px; margin: 38px 0 0; color: var(--muted); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 42px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; font-size: 13px; font-weight: 700; }
.button--primary { min-width: 250px; padding: 16px 18px; color: var(--accent-contrast); background: var(--accent); border-radius: var(--radius); }
.button--text { padding: 14px 0; border-bottom: 1px solid var(--line); }
.hero-visual { position: relative; align-self: center; height: 620px; min-height: 620px; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.visual-caption { position: absolute; z-index: 2; top: 24px; left: 28px; display: flex; gap: 16px; color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.visual-caption span { color: var(--accent); }
.system-map { width: 100%; height: 100%; min-height: 520px; }
.network-field { fill: none; stroke: var(--accent); stroke-width: .65; opacity: .055; }
.network-routes { fill: none; stroke: var(--accent); stroke-width: 1.35; stroke-dasharray: 4 7; opacity: .52; animation: route-flow 12s linear infinite; }
.bridge-structure { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.bridge-deck { stroke: var(--ink); stroke-width: 3; }
.bridge-arc { stroke: url(#bridgeGlow); stroke-width: 3.4; }
.bridge-arc--inner { stroke-width: 1.2; opacity: .55; }
.bridge-hangers { stroke: var(--accent); stroke-width: 1.1; opacity: .38; }
.bridge-pillars { stroke: var(--ink); stroke-width: 2.4; }
.bridge-points circle { fill: var(--paper-raised); stroke: var(--accent); stroke-width: 3; }
.bridge-points .bridge-point--core { fill: var(--accent); stroke: var(--paper-raised); stroke-width: 4; }
.network-node rect { fill: var(--paper-raised); stroke: var(--line); stroke-width: 1; }
.network-node circle { fill: var(--accent); }
.network-node text { fill: var(--ink); font-family: var(--body); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.network-node .node-sub { fill: var(--muted); font-size: 6.5px; font-weight: 650; letter-spacing: .11em; }
.bridge-label text { fill: var(--accent); font-family: var(--body); font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.bridge-label path { stroke: var(--accent); stroke-width: 1; opacity: .35; }
@keyframes route-flow { to { stroke-dashoffset: -110; } }
.visual-note { position: absolute; right: 28px; bottom: 24px; max-width: 290px; margin: 0; color: var(--muted); font-size: 12px; text-align: right; }
.hero-meta { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.hero-meta span::before { content: '•'; margin-right: 10px; color: var(--accent); }

.capabilities { width: min(var(--max), 100%); margin: 0 auto; padding: clamp(100px, 13vw, 190px) var(--pad); }
.section-heading { display: grid; grid-template-columns: .7fr 1.5fr 1fr; gap: 6vw; align-items: end; margin-bottom: 80px; }
.section-heading .eyebrow { align-self: start; }
.section-heading > p:last-child { margin: 0; color: var(--muted); line-height: 1.75; }
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.capability-card { position: relative; min-height: 300px; padding: 28px; display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.17); transition: background .25s, transform .25s; }
.capability-card:hover { z-index: 2; background: var(--paper-raised); transform: translateY(-4px); box-shadow: var(--shadow); }
.card-number { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.capability-card h3 { margin-top: auto; }
.capability-card p { max-width: 350px; margin: 16px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.card-symbol { position: absolute; top: 22px; right: 24px; color: var(--accent); font-family: var(--display); font-size: 23px; }

.focus-section { position: relative; width: min(var(--max), 100%); margin: 0 auto; padding: clamp(90px, 10vw, 150px) var(--pad); display: grid; grid-template-columns: .65fr 1.05fr 1.3fr; gap: 6vw; border-top: 1px solid var(--line); }
.focus-number { color: var(--accent-soft); font-family: var(--display); font-size: clamp(220px, 25vw, 390px); line-height: .72; letter-spacing: -.1em; }
.focus-copy p:last-child { margin: 32px 0 0; color: var(--muted); line-height: 1.75; }
.principles-list { border-top: 1px solid var(--line); }
.principles-list article { display: grid; grid-template-columns: 42px 1fr; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.principles-list article > span { color: var(--accent); font-size: 11px; letter-spacing: .1em; }
.principles-list p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

.manifesto { width: min(var(--max), 100%); margin: 0 auto; padding: clamp(110px, 16vw, 230px) var(--pad); text-align: center; border-top: 1px solid var(--line); }
.manifesto-kicker { color: var(--accent); font-size: 11px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
blockquote { max-width: 1000px; margin: 44px auto 0; font-family: var(--display); font-size: clamp(46px, 6.4vw, 92px); font-weight: 800; line-height: .98; letter-spacing: -.055em; }
.notice { max-width: 860px; margin: 0 auto; padding: 22px 28px; color: var(--muted); background: var(--accent-soft); border-radius: var(--radius); font-size: 13px; line-height: 1.7; }
.notice strong { color: var(--ink); }

.brand-lab { width: min(var(--max), 100%); margin: 0 auto; padding: clamp(90px, 11vw, 160px) var(--pad); border-top: 1px solid var(--line); }
.section-heading--compact { grid-template-columns: .7fr 1.4fr 1fr; margin-bottom: 64px; }
.logo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.logo-card { min-height: 330px; padding: 22px; display: flex; flex-direction: column; text-align: left; cursor: pointer; color: var(--ink); background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s, border-color .2s, box-shadow .2s; }
.logo-card:hover, .logo-card.is-selected { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow); }
.logo-card__top { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.logo-lockup { display: flex; align-items: center; gap: 16px; margin: auto 0; }
.logo-lockup svg { width: 54px; height: 54px; stroke: currentColor; stroke-width: 1.65; }
.logo-lockup > span { font-size: clamp(23px, 2.4vw, 34px); letter-spacing: -.04em; }
.logo-lockup--civic { color: #2f6b54; font-family: Georgia, serif; font-weight: 700; }
.logo-lockup--system { color: #1747d1; font-family: Arial, sans-serif; font-weight: 800; }
.logo-lockup--editorial { color: #8e352b; font-family: Georgia, serif; font-weight: 500; }
.logo-card__note { color: var(--muted); font-size: 12px; }

.contact-section { width: min(var(--max), 100%); margin: 0 auto; padding: clamp(90px, 11vw, 160px) var(--pad); display: grid; grid-template-columns: 1.2fr .8fr; gap: 10vw; border-top: 1px solid var(--line); }
.contact-details { align-self: end; }
.contact-details p { color: var(--muted); line-height: 1.75; }
.contact-details a { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; padding: 18px 0; border-bottom: 1px solid var(--ink); font-family: var(--display); font-size: clamp(25px, 3vw, 42px); font-weight: 700; letter-spacing: -.04em; }
.copy-email { margin-top: 16px; padding: 0; cursor: pointer; color: var(--muted); background: none; border: 0; border-bottom: 1px solid var(--line); font-size: 12px; }

.site-footer { width: min(var(--max), 100%); margin: 0 auto; padding: 64px var(--pad) 24px; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 50px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-brand p { max-width: 320px; margin: 18px 0 0; line-height: 1.65; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-column strong { margin-bottom: 8px; color: var(--ink); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.footer-column a:hover { color: var(--accent); }
.footer-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; padding-top: 38px; margin-top: 28px; border-top: 1px solid var(--line); }
.toast { position: fixed; z-index: 200; left: 50%; bottom: 26px; padding: 12px 18px; color: white; background: #11151c; border-radius: 999px; font-size: 12px; transform: translate(-50%, 90px); opacity: 0; transition: transform .25s, opacity .25s; }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

body[data-theme="final"] .brand-mark__svg--editorial { opacity: 1; transform: scale(1); }

/* Concept 02 — Operating system */
body[data-theme="system"] {
  --paper: #f7f8fb;
  --paper-raised: #ffffff;
  --ink: #0b1838;
  --muted: #65708a;
  --line: #cbd3e3;
  --accent: #1747d1;
  --accent-soft: #e2eaff;
  --display: Arial, Helvetica, sans-serif;
  --radius: 14px;
  --shadow: 0 26px 70px rgba(23, 71, 209, .12);
  background-image: linear-gradient(rgba(23,71,209,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(23,71,209,.035) 1px, transparent 1px);
  background-size: 48px 48px;
}
body[data-theme="system"] .brand-mark__svg--system { opacity: 1; transform: scale(1); }
body[data-theme="system"] h1, body[data-theme="system"] h2 { font-weight: 760; line-height: .94; }
body[data-theme="system"] .hero { grid-template-columns: minmax(0, 1.2fr) minmax(400px, .8fr); }
body[data-theme="system"] .hero-visual { transform: rotate(1.25deg); }
body[data-theme="system"] .capability-grid { gap: 14px; border: 0; }
body[data-theme="system"] .capability-card { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.82); }
body[data-theme="system"] .focus-number { font-family: Arial, sans-serif; font-weight: 800; }
body[data-theme="system"] .manifesto { text-align: left; }
body[data-theme="system"] blockquote { margin-left: 0; max-width: 1100px; }
body[data-theme="system"] .notice { margin-left: 0; }

/* Concept 03 — Quiet authority */
body[data-theme="editorial"] {
  --paper: #f7f1eb;
  --paper-raised: #fffaf4;
  --ink: #2b1d1a;
  --muted: #786862;
  --line: #d9cbc1;
  --accent: #8e352b;
  --accent-soft: #efe0d8;
  --display: 'Iowan Old Style', 'Baskerville', Georgia, serif;
  --radius: 999px;
  --shadow: 0 30px 90px rgba(70, 34, 27, .10);
}
body[data-theme="editorial"] .brand-mark__svg--editorial { opacity: 1; transform: scale(1); }
body[data-theme="editorial"] .site-header { grid-template-columns: auto 1fr auto; }
body[data-theme="editorial"] .main-nav { justify-self: center; }
body[data-theme="editorial"] .hero { grid-template-columns: 1fr; text-align: center; }
body[data-theme="editorial"] .hero-copy { max-width: 1050px; margin: 0 auto; }
body[data-theme="editorial"] .hero-lede { margin-left: auto; margin-right: auto; }
body[data-theme="editorial"] .hero-actions { justify-content: center; }
body[data-theme="editorial"] .hero-visual { width: min(760px, 100%); min-height: 460px; margin: 20px auto 0; border-radius: 48% 48% 20px 20px; box-shadow: none; }
body[data-theme="editorial"] .system-map { min-height: 460px; }
body[data-theme="editorial"] .hero-meta { margin-top: 36px; }
body[data-theme="editorial"] .section-heading { grid-template-columns: 1fr; max-width: 880px; text-align: center; margin-left: auto; margin-right: auto; }
body[data-theme="editorial"] .capability-grid { grid-template-columns: repeat(2, 1fr); border: 0; gap: 14px; }
body[data-theme="editorial"] .capability-card { min-height: 250px; border: 1px solid var(--line); border-radius: 28px; }
body[data-theme="editorial"] .focus-section { grid-template-columns: .6fr 1fr 1.1fr; }
body[data-theme="editorial"] .manifesto { border-radius: 80px; background: var(--paper-raised); }
body[data-theme="editorial"] .notice { border-radius: 24px; }

@media (max-width: 1080px) {
  .review-bar { grid-template-columns: auto 1fr; }
  .review-info { display: none; }
  .theme-switcher { justify-self: end; }
  .site-header { grid-template-columns: 1fr auto; }
  .main-nav { position: fixed; z-index: 90; inset: 104px 0 auto; padding: 32px; flex-direction: column; align-items: flex-start; color: var(--ink); background: var(--paper-raised); border-bottom: 1px solid var(--line); transform: translateY(-140%); transition: transform .25s; }
  .main-nav.is-open { transform: translateY(0); }
  .header-contact { display: none; }
  .menu-toggle { display: flex; width: 42px; height: 42px; align-items: center; justify-content: center; flex-direction: column; gap: 7px; }
  .menu-toggle span { width: 23px; height: 1px; background: var(--ink); }
  .hero, body[data-theme="system"] .hero { grid-template-columns: 1fr; }
  .hero-visual { height: 520px; min-height: 520px; }
  .section-heading, .section-heading--compact { grid-template-columns: 1fr; max-width: 850px; }
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .focus-section, body[data-theme="editorial"] .focus-section { grid-template-columns: .5fr 1.5fr; }
  .principles-list { grid-column: 1 / -1; }
  .site-footer { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .review-bar { position: relative; padding: 10px 14px; grid-template-columns: 1fr; }
  .review-bar__label { display: none; }
  .theme-switcher { width: 100%; justify-self: stretch; overflow-x: auto; }
  .theme-button { flex: 0 0 auto; padding: 8px 11px; }
  .site-header { min-height: 78px; }
  .brand-mark { width: 35px; height: 35px; }
  .brand-mark__svg { width: 34px; height: 34px; }
  .brand-word { font-size: 21px; }
  .main-nav { inset: 78px 0 auto; }
  .main-nav.is-open { transform: translateY(0); }
  .hero { min-height: 0; padding-top: 72px; gap: 54px; }
  h1 { font-size: clamp(42px, 12vw, 58px); overflow-wrap: break-word; }
  h2 { font-size: 42px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-visual, body[data-theme="editorial"] .hero-visual { height: 430px; min-height: 430px; border-radius: 0; }
  .system-map, body[data-theme="editorial"] .system-map { min-height: 430px; transform: scale(.96); }
  .visual-note { display: none; }
  .hero-meta { grid-template-columns: 1fr; }
  .capabilities, .focus-section, .manifesto, .brand-lab, .contact-section { padding-top: 90px; padding-bottom: 90px; }
  .capability-grid, body[data-theme="editorial"] .capability-grid { grid-template-columns: 1fr; }
  .capability-card { min-height: 230px; }
  .focus-section, body[data-theme="editorial"] .focus-section { grid-template-columns: 1fr; }
  .focus-number { font-size: 170px; }
  blockquote { margin-top: 34px; margin-bottom: 54px; font-size: 45px; }
  .logo-grid { grid-template-columns: 1fr; }
  .contact-section { grid-template-columns: 1fr; }
  .contact-details a { overflow-wrap: anywhere; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

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