/* OptimoGov North America. Civic Editorial design system. v2 */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  --ink: #14161D;
  --ink-2: #454955;
  --ink-3: #5E6270;
  --slate: #3C4053;
  --slate-deep: #262938;
  --brand: #FDD800;
  --brand-deep: #E6C400;
  --white: #FFFFFF;
  --paper: #F6F5F1;
  --paper-2: #EEEDE7;
  --rule: #E3E2DD;
  --rule-strong: #C9C8C2;
  --on-dark: #FFFFFF;
  --on-dark-2: rgba(255,255,255,0.72);
  --font: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1280px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section: clamp(5rem, 9vw, 8.5rem);
  --r: 8px;
  --r-lg: 22px;
}

/* ---------- 2. Reset and base ------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; color: var(--ink); text-wrap: balance; }
p { text-wrap: pretty; }
strong { font-weight: 600; }
::selection { background: var(--brand); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: -9999px; top: 0.5rem; z-index: 100; background: var(--ink); color: var(--white); padding: 0.6rem 1rem; border-radius: var(--r); }
.skip:focus { left: 0.5rem; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.section--paper { background: var(--paper); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

/* ---------- 3. Type ------------------------------------------------------ */
.eyebrow { display: inline-flex; align-items: center; gap: 0.7rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow::before { content: ""; width: 1.6rem; height: 3px; background: var(--brand); border-radius: 2px; flex: none; }
.d1 { font-size: clamp(1.9rem, 9.6vw, 4.4rem); line-height: 1.0; letter-spacing: -0.035em; font-weight: 600; }
@media (min-width: 1101px) { .d1 { font-size: clamp(2rem, 5.2vw - 0.25rem, 4.4rem); } }
.d2 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.06; letter-spacing: -0.03em; font-weight: 600; }
.d3 { font-size: clamp(1.5rem, 2.4vw, 2.05rem); line-height: 1.18; letter-spacing: -0.025em; font-weight: 600; }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--ink-2); }
.small { font-size: 0.9375rem; color: var(--ink-2); }
.micro { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; font-weight: 500; color: var(--ink-3); letter-spacing: 0.02em; font-size: 0.85rem; }
.measure { max-width: 34rem; }
.measure-wide { max-width: 44rem; }
.head { display: grid; gap: 1.1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.head .lede { max-width: 40rem; }
.head--split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: end; gap: 2rem 4rem; }
.head--split .lede { margin-bottom: 0.3rem; }
@media (max-width: 860px) { .head--split { grid-template-columns: 1fr; } }

/* ---------- 4. Buttons and links ---------------------------------------- */
.b { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 3.1rem; padding: 0.8rem 1.4rem; border-radius: var(--r); font-weight: 600; font-size: 0.97rem; line-height: 1; text-decoration: none; border: 1.5px solid transparent; transition: transform 220ms var(--ease), background-color 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease), box-shadow 220ms var(--ease); white-space: nowrap; }
.b:hover { transform: translateY(-1px); }
.b:active { transform: translateY(0); }
.b-primary { background: var(--brand); color: var(--ink); box-shadow: 0 10px 24px -14px rgba(253,216,0,0.9); }
.b-primary:hover { background: var(--brand-deep); }
.b-dark { background: var(--ink); color: var(--white); }
.b-dark:hover { background: var(--slate); }
.b-ghost { border-color: var(--rule-strong); color: var(--ink); background: transparent; }
.b-ghost:hover { border-color: var(--ink); }
.b-light { background: var(--white); color: var(--ink); }
.b-light:hover { background: var(--paper); }
.b-outline-light { border-color: rgba(255,255,255,0.35); color: var(--white); }
.b-outline-light:hover { border-color: var(--white); }
.b-sm { min-height: 2.6rem; padding: 0.55rem 1.05rem; font-size: 0.9rem; }
.b .arr { width: 1rem; height: 1rem; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 220ms var(--ease); }
.b:hover .arr { transform: translateX(3px); }
.btns { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.link { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--brand); padding-bottom: 1px; transition: border-color 200ms var(--ease); }
.link:hover { border-color: var(--ink); }
.link .arr { width: 1rem; height: 1rem; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 220ms var(--ease); }
.link:hover .arr { transform: translateX(3px); }

/* ---------- 5. Header --------------------------------------------------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color 250ms var(--ease), box-shadow 250ms var(--ease); }
.top.is-scrolled { border-color: var(--rule); box-shadow: 0 12px 32px -28px rgba(20,22,29,0.35); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.75rem; transition: min-height 250ms var(--ease); }
.top.is-scrolled .wrap { min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.85rem; text-decoration: none; }
.brand img { height: 34px; width: auto; transition: height 250ms var(--ease); }
.top.is-scrolled .brand img { height: 30px; }
.brand .region { white-space: nowrap; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); border-left: 1px solid var(--rule-strong); padding-left: 0.85rem; line-height: 1; }
.nav { display: flex; gap: 0.25rem; }
.nav a { display: inline-block; white-space: nowrap; padding: 0.55rem 0.85rem; font-size: 0.93rem; font-weight: 500; color: var(--ink-2); text-decoration: none; border-radius: 6px; transition: color 200ms var(--ease), background-color 200ms var(--ease); }
.nav a:hover { color: var(--ink); background: var(--paper); }
.top-actions { display: flex; align-items: center; gap: 1rem; }
.top-actions .tel { white-space: nowrap; font-size: 0.9rem; font-weight: 500; color: var(--ink-2); text-decoration: none; font-variant-numeric: tabular-nums; }
.top-actions .tel:hover { color: var(--ink); }
.menu { display: none; width: 2.75rem; height: 2.75rem; border-radius: var(--r); border: 1.5px solid var(--rule-strong); place-items: center; }
.menu span { position: relative; width: 1.15rem; height: 2px; background: var(--ink); display: block; transition: transform 250ms var(--ease), background-color 250ms var(--ease); }
.menu span::before, .menu span::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: var(--ink); transition: transform 250ms var(--ease); }
.menu span::before { top: -6px; } .menu span::after { top: 6px; }
.menu[aria-expanded="true"] span { background: transparent; }
.menu[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
.sheet { display: none; position: fixed; inset: 4.75rem 0 0 0; background: var(--white); z-index: 49; padding: 2rem var(--gutter) 3rem; overflow: auto; }
.sheet.is-open { display: block; }
.sheet ul { display: grid; }
.sheet li a { display: block; padding: 1rem 0; font-size: clamp(1.6rem, 6vw, 2.2rem); font-weight: 600; letter-spacing: -0.025em; text-decoration: none; border-bottom: 1px solid var(--rule); }
.sheet .btns { margin-top: 2rem; }
.sheet .btns .b { flex: 1 1 12rem; }
@media (max-width: 1240px) { .brand .region, .top-actions .tel { display: none; } .nav a { padding: 0.55rem 0.65rem; } }
@media (max-width: 1000px) {
  .nav, .top-actions .tel, .top-actions .b { display: none; }
  .menu { display: grid; }
  .brand .region { display: none; }
}
body.menu-open { overflow: hidden; }

/* ---------- 6. Progress reveal system ----------------------------------- */
.rv { --d: 0ms; }
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--ease) var(--d), transform 800ms var(--ease) var(--d); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv--fade { transform: none; }
.shape { position: absolute; pointer-events: none; background: var(--brand); }
.js .shape { transform: scale(0); transition: transform 1100ms var(--ease) 150ms; }
.js .shape.in { transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv, .js .shape { opacity: 1 !important; transform: none !important; transition: none !important; } }

/* ---------- 7. Hero ----------------------------------------------------- */
.hero { position: relative; overflow: clip; background: var(--white); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 6.5fr) minmax(0, 5.5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(3.5rem, 7vw, 6.5rem) clamp(2rem, 4vw, 3rem); position: relative; z-index: 1; }
.hero-copy { display: grid; gap: 1.5rem; }
.hero-copy .d1 { margin-top: 0.4rem; }
.hero-copy .lede { max-width: 32rem; }
.hero-copy .note { font-size: 0.9rem; color: var(--ink-3); }
.line { display: block; overflow: hidden; }
.line > span { display: block; white-space: nowrap; }
.js .line > span { transform: translateY(112%); transition: transform 900ms var(--ease); }
.js .in .line:nth-child(1) > span { transition-delay: 60ms; }
.js .in .line:nth-child(2) > span { transition-delay: 160ms; }
.js .in .line:nth-child(3) > span { transition-delay: 260ms; }
.js .in .line > span { transform: none; }
.hero-shape { right: -18vw; bottom: -30%; width: clamp(420px, 52vw, 820px); aspect-ratio: 1; border-radius: 50%; transform-origin: 70% 70%; z-index: 0; opacity: 0.95; }
@media (max-width: 1100px) { .hero .wrap { grid-template-columns: 1fr; gap: 3rem; } .hero-shape { right: -30vw; bottom: -12%; width: clamp(360px, 90vw, 640px); } }
@media (min-width: 1101px) and (max-width: 1280px) { .hero .console-side { display: none; } .hero .console { grid-template-columns: 1fr; } }

/* Console frame: an HTML illustration of the booking diary. Generic labels, no prices or dates. */
.frame { position: relative; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: 0 40px 80px -48px rgba(20,22,29,0.45), 0 2px 0 rgba(255,255,255,0.7) inset; overflow: hidden; }
.frame-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--rule); background: var(--paper); font-size: 0.75rem; color: var(--ink-3); font-weight: 500; }
.frame-bar strong { color: var(--ink); font-weight: 600; }
.frame-bar .pills { display: flex; gap: 0.3rem; }
.frame-bar .pills span { padding: 0.2rem 0.55rem; border-radius: 100px; border: 1px solid var(--rule-strong); font-size: 0.66rem; }
.frame-bar .pills span.on { background: var(--ink); color: var(--white); border-color: var(--ink); }
.console { display: grid; grid-template-columns: 11.5rem minmax(0, 1fr); min-height: 25rem; font-size: 0.74rem; }
.console-side { border-right: 1px solid var(--rule); padding: 0.9rem 0; background: var(--white); }
.console-side .micro { padding: 0 1rem 0.55rem; font-size: 0.6rem; }
.console-side li { display: flex; align-items: center; gap: 0.55rem; padding: 0.5rem 1rem; color: var(--ink-2); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.console-side li i { width: 0.5rem; height: 0.5rem; border-radius: 2px; background: var(--rule-strong); flex: none; }
.console-side li.on { background: var(--paper); color: var(--ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--brand); }
.console-side li.on i { background: var(--brand); }
.console-side li b { margin-left: auto; font-weight: 600; font-size: 0.62rem; color: var(--ink-3); background: var(--paper-2); padding: 0.05rem 0.4rem; border-radius: 100px; }
.console-grid { display: grid; grid-template-columns: 2.4rem repeat(5, minmax(0, 1fr)); grid-auto-rows: 2.15rem; position: relative; }
.console-grid .dayh { grid-row: 1; padding: 0.55rem 0.35rem; text-align: center; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.console-grid .dayh:first-child { border-left: 0; }
.console-grid .hr { grid-column: 1; font-size: 0.6rem; color: var(--ink-3); text-align: right; padding: 0.25rem 0.4rem 0 0; border-top: 1px solid var(--rule); }
.console-grid .cell { border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.console-grid .cell:nth-child(6n+2) { border-left: 0; }
.ev { position: absolute; left: calc(2.4rem + (100% - 2.4rem) / 5 * var(--c) + 3px); width: calc((100% - 2.4rem) / 5 - 6px); top: calc(2.15rem * var(--t) + 2px); height: calc(2.15rem * var(--h) - 4px); border-radius: 6px; padding: 0.35rem 0.5rem; background: var(--paper-2); border-left: 3px solid var(--slate); font-weight: 600; color: var(--ink); font-size: 0.66rem; line-height: 1.25; overflow: hidden; }
.ev small { display: block; font-weight: 500; color: var(--ink-3); font-size: 0.6rem; margin-top: 0.15rem; }
.ev.ok { background: #FFF6BF; border-left-color: var(--brand-deep); }
.ev.hold { background: var(--white); border: 1px dashed var(--rule-strong); border-left: 3px solid var(--rule-strong); color: var(--ink-2); }
.ev.dark { background: var(--slate); border-left-color: var(--ink); color: var(--white); }
.ev.dark small { color: var(--on-dark-2); }
.js .ev { opacity: 0; transform: translateY(6px); animation: evin 600ms var(--ease) forwards; animation-delay: calc(700ms + var(--i) * 110ms); }
@keyframes evin { to { opacity: 1; transform: none; } }
.console-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 1rem; border-top: 1px solid var(--rule); background: var(--paper); font-size: 0.68rem; color: var(--ink-3); }
.console-foot .chip { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; color: var(--ink); }
.console-foot .chip i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--brand); }
@media (max-width: 560px) { .console { grid-template-columns: 1fr; } .console-side { display: none; } .console-grid { grid-template-columns: 2rem repeat(5, minmax(0, 1fr)); } .ev { left: calc(2rem + (100% - 2rem) / 5 * var(--c) + 2px); width: calc((100% - 2rem) / 5 - 4px); font-size: 0.58rem; padding: 0.25rem 0.3rem; } .ev small { display: none; } }
.hero-visual { position: relative; }
.hero-visual .stamp { margin-top: 1rem; display: inline-grid; gap: 0.15rem; grid-template-columns: auto 1fr; column-gap: 0.9rem; align-items: center; background: var(--ink); color: var(--white); padding: 0.8rem 1.1rem; border-radius: 12px; font-size: 0.78rem; line-height: 1.35; box-shadow: 0 24px 40px -28px rgba(20,22,29,0.8); }
.hero-visual .stamp em, .hero-visual .stamp strong { grid-column: 1; }
.hero-visual .stamp span { grid-column: 2; grid-row: 1 / span 2; color: var(--on-dark-2); border-left: 1px solid rgba(255,255,255,0.18); padding-left: 0.9rem; max-width: 18rem; }
.hero-visual .stamp strong { font-size: 0.95rem; white-space: nowrap; }
.hero-visual .stamp em { font-style: normal; color: var(--brand); font-weight: 600; font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; }
@media (max-width: 560px) { .hero-visual .stamp { grid-template-columns: 1fr; } .hero-visual .stamp span { grid-column: 1; grid-row: auto; border-left: 0; padding-left: 0; margin-top: 0.3rem; } }

/* Trust strip */
.trust { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--white); }
.trust .wrap { padding-block: clamp(2rem, 4vw, 3rem); display: grid; gap: 1.75rem; }
.trust .micro { text-align: center; max-width: 52rem; margin-inline: auto; line-height: 1.7; }
.logos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.25rem 2rem; align-items: center; justify-items: center; }
.logos img { height: 52px; width: auto; max-width: 100%; object-fit: contain; filter: brightness(0) saturate(100%) invert(22%) sepia(9%) saturate(900%) hue-rotate(195deg) brightness(92%) contrast(90%); opacity: 0.9; transition: opacity 200ms var(--ease); }
.logos img:hover { opacity: 1; }
@media (max-width: 900px) { .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } .logos img { height: 32px; } }
.creds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 2rem; padding-top: 1.75rem; border-top: 1px solid var(--rule); }
.creds div { display: grid; gap: 0.35rem; }
.creds strong { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
@media (max-width: 860px) { .creds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 8. Problem -------------------------------------------------- */
.problem .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.problem .sticky { position: sticky; top: 6.5rem; display: grid; gap: 1.25rem; }
.problem .sticky .d2 { position: relative; padding-left: 1.5rem; }
.problem .sticky .d2 .shape { left: 0; top: 0.2em; width: 6px; height: calc(100% - 0.4em); border-radius: 3px; transform-origin: top; }
.index { display: grid; }
.index li { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 1rem; padding: 1.75rem 0; border-top: 1px solid var(--rule); align-content: start; }
.index li:last-child { border-bottom: 1px solid var(--rule); }
.index .num { font-size: 0.85rem; padding-top: 0.45rem; }
.index h3 { font-size: 1.25rem; margin-bottom: 0.45rem; }
.index p { color: var(--ink-2); font-size: 0.98rem; }
@media (max-width: 900px) { .problem .wrap { grid-template-columns: minmax(0, 1fr); } .problem .sticky { position: static; } }

/* ---------- 9. Who we serve --------------------------------------------- */
.serve { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.serve li { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 1.6rem 1.35rem 1.75rem; display: grid; gap: 0.85rem; align-content: start; transition: background-color 250ms var(--ease); position: relative; }
.serve li:hover { background: var(--paper); }
.serve .ic { width: 2.6rem; height: 2.6rem; border-radius: 10px; background: var(--brand); display: grid; place-items: center; }
.serve .ic svg { width: 1.3rem; height: 1.3rem; stroke: var(--ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.serve h3 { font-size: 1.02rem; line-height: 1.3; }
.serve p { font-size: 0.9rem; color: var(--ink-2); }
@media (max-width: 1100px) { .serve { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .serve { grid-template-columns: repeat(2, minmax(0, 1fr)); } .serve li { padding: 1.25rem 1rem; } }

/* ---------- 10. Portfolio: isometric city ------------------------------- */
.portfolio .wrap { display: block; }
.cityframe { position: relative; }
.cityframe .shape { left: -8%; top: -10%; width: 42%; aspect-ratio: 1; border-radius: 50%; z-index: 0; transform-origin: center; opacity: 0.9; }
.cityplan { position: relative; z-index: 1; width: 100%; height: auto; display: block; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 1rem 0.75rem 0.5rem; box-shadow: 0 40px 80px -56px rgba(20,22,29,0.5); overflow: visible; }
.isocity .top    { fill: #FFFFFF; transition: fill 300ms var(--ease); }
.isocity .side-l { fill: #E7E6E1; transition: fill 300ms var(--ease); }
.isocity .side-r { fill: #D2D1CB; transition: fill 300ms var(--ease); }
.isocity .roof   { fill: #F3E9C8; }
.isocity .shade  { fill: rgba(38,41,56,0.10); }
.isocity .win    { fill: rgba(60,64,83,0.16); stroke: none; }
.isocity .door   { fill: #3C4053; stroke: none; }
.isocity .roofcap { fill: #F5E48A; stroke: #3C4053; stroke-width: 1; }
.isocity .marquee { fill: var(--brand); stroke: #3C4053; stroke-width: 1; }
.isocity .ring   { fill: none; stroke: var(--brand); stroke-width: 0; opacity: 0; transition: opacity 300ms var(--ease), stroke-width 300ms var(--ease); }
.isocity .lbl-s  { font-family: var(--font); font-size: 10px; font-weight: 500; fill: var(--ink-3); text-transform: uppercase; letter-spacing: 0.1em; }
.isocity .plate rect { fill: #FFFFFF; stroke: #D4D3CD; stroke-width: 1; filter: drop-shadow(0 6px 10px rgba(38,41,56,0.16)); }
.isocity .plate .lbl { font-family: var(--font); font-size: 11px; font-weight: 600; fill: var(--ink); }
.isocity .plate .lbl-s { font-size: 8.5px; font-weight: 600; letter-spacing: 0.06em; }
.isocity .plate .leader { stroke: var(--slate); stroke-width: 1; stroke-dasharray: 2 2; opacity: 0.7; }
.isocity .plate .anchor { fill: var(--slate); stroke: #FFFFFF; stroke-width: 1.5; }
.isocity .hot { cursor: pointer; outline: none; }
.isocity .hot:hover .top { fill: #FFF7CC; }
.isocity .hot.is-active .top    { fill: var(--brand); }
.isocity .hot.is-active .side-l { fill: #E9C600; }
.isocity .hot.is-active .side-r { fill: #C9AB00; }
.isocity .hot.is-active .win    { fill: rgba(38,41,56,0.22); }
.isocity .hot.is-active .ring   { opacity: 1; stroke-width: 3; }
.isocity .hot.is-active .plate rect { fill: var(--ink); stroke: var(--ink); }
.isocity .hot.is-active .plate .lbl { fill: #FFFFFF; }
.isocity .hot.is-active .plate .lbl-s { fill: var(--brand); }
.isocity .hot.is-active .plate .leader { stroke: var(--ink); opacity: 1; stroke-dasharray: none; stroke-width: 1.5; }
.isocity .hot.is-active .plate .anchor { fill: var(--brand); stroke: var(--ink); }
.isocity .hot:focus-visible .ring { opacity: 1; stroke-width: 3; stroke-dasharray: 5 4; }
.js .isocity .bld { transform-box: fill-box; transform-origin: 50% 100%; opacity: 0; transform: translateY(18px) scaleY(0.6); }
.js .isocity.in .bld { animation: riseb 700ms var(--ease) forwards; }
.js .isocity.in .bld:nth-of-type(1) { animation-delay: 150ms; } .js .isocity.in .bld:nth-of-type(2) { animation-delay: 260ms; }
.js .isocity.in .bld:nth-of-type(3) { animation-delay: 370ms; } .js .isocity.in .bld:nth-of-type(4) { animation-delay: 480ms; }
.js .isocity.in .bld:nth-of-type(5) { animation-delay: 590ms; } .js .isocity.in .bld:nth-of-type(6) { animation-delay: 700ms; }
@keyframes riseb { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .js .isocity .bld { opacity: 1 !important; transform: none !important; animation: none !important; } }
.spacenav { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1.5rem 0 1.75rem; }
.spacenav button { padding: 0.5rem 0.95rem; border-radius: 100px; border: 1.5px solid var(--rule-strong); font-size: 0.86rem; font-weight: 500; color: var(--ink-2); transition: all 200ms var(--ease); }
.spacenav button:hover { border-color: var(--ink); color: var(--ink); }
.spacenav button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.spacepanel { position: relative; min-height: 20rem; }
.spacecard { display: grid; gap: 0.9rem; animation: cardin 400ms var(--ease); }
.spacecard[hidden] { display: none; }
@keyframes cardin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.spacecard .ic { width: 2.6rem; height: 2.6rem; border-radius: 10px; background: var(--brand); display: grid; place-items: center; }
.spacecard .ic svg { width: 1.3rem; height: 1.3rem; stroke: var(--ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.spacecard h3 { font-size: 1.4rem; }
.kv { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0.6rem 1.25rem; font-size: 0.95rem; }
.kv dt { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); padding-top: 0.25rem; }
.kv dd { color: var(--ink-2); }

@media (max-width: 520px) { .kv { grid-template-columns: 1fr; gap: 0.2rem 0; } .kv dd { margin-bottom: 0.6rem; } }

/* ---------- 11. Cards (why choose, outcomes, security) ------------------ */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 1000px) { .grid3, .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid3, .grid4 { grid-template-columns: 1fr; } }
.card { position: relative; background: var(--white); border: 1px solid var(--rule); border-radius: 16px; padding: 1.75rem 1.6rem 1.7rem; display: grid; gap: 0.8rem; align-content: start; transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), border-color 300ms var(--ease); overflow: hidden; }
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform 400ms var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: 0 30px 50px -40px rgba(20,22,29,0.4); border-color: var(--rule-strong); }
.card:hover::before { transform: scaleX(1); }
.card .num { font-size: 0.8rem; }
.card h3 { font-size: 1.15rem; line-height: 1.3; }
.card p { font-size: 0.95rem; color: var(--ink-2); }
.card .k { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.section--paper .card { border-color: transparent; }

/* ---------- 12. Permitting and stepper ---------------------------------- */
.permit .wrap.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.permit .lead { display: grid; gap: 1.25rem; position: sticky; top: 6.5rem; }
.checks { display: grid; }
.checks li { position: relative; padding: 1.1rem 0 1.1rem 2rem; border-top: 1px solid var(--rule); font-size: 0.98rem; color: var(--ink-2); }
.checks li:last-child { border-bottom: 1px solid var(--rule); }
.checks li::before { content: ""; position: absolute; left: 0; top: 1.55rem; width: 0.7rem; height: 0.7rem; border-radius: 2px; background: var(--brand); }
.checks strong { color: var(--ink); display: block; margin-bottom: 0.15rem; }
@media (max-width: 900px) { .permit .wrap.split { grid-template-columns: minmax(0, 1fr); } .permit .lead { position: static; } }
.steps-wrap { margin-top: clamp(4rem, 8vw, 7rem); padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem); background: var(--paper); border-radius: var(--r-lg); position: relative; overflow: hidden; }
.steps-wrap .shape { right: -6rem; top: -6rem; width: 18rem; height: 18rem; border-radius: 50%; opacity: 0.85; transform-origin: center; }
.steps-wrap .head { margin-bottom: 2.5rem; position: relative; z-index: 1; }
.steps { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; z-index: 1; }
.steps::before { content: ""; position: absolute; left: 1.4rem; right: 1.4rem; top: 1.35rem; height: 2px; background: var(--rule-strong); }
.steps::after { content: ""; position: absolute; left: 1.4rem; right: 1.4rem; top: 1.35rem; height: 2px; background: var(--ink); transform: none; transform-origin: left; transition: transform 1600ms var(--ease) 300ms; }
.steps.in::after { transform: scaleX(1); }
.steps li { display: grid; gap: 0.7rem; align-content: start; }
.steps .dot { width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--white); border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 600; font-size: 0.85rem; position: relative; z-index: 1; transition: background-color 300ms var(--ease), color 300ms var(--ease); }
.steps li:nth-child(n) .dot { transition-delay: calc(300ms + var(--i, 0) * 260ms); }
.steps.in .dot { background: var(--brand); }
.steps h3 { font-size: 1.05rem; }
.steps p { font-size: 0.88rem; color: var(--ink-2); }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1rem; } .steps::before, .steps::after { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; gap: 0; } .steps li { grid-template-columns: 2.75rem minmax(0, 1fr); grid-template-areas: "dot title" "dot text"; column-gap: 1rem; padding-bottom: 1.5rem; position: relative; } .steps li::before { content: ""; position: absolute; left: calc(1.375rem - 1px); top: 2.75rem; bottom: 0; width: 2px; background: var(--rule-strong); } .steps li:last-child::before { display: none; } .steps .dot { grid-area: dot; } .steps h3 { grid-area: title; padding-top: 0.55rem; } .steps p { grid-area: text; } }

/* ---------- 13. Two experiences ----------------------------------------- */
.exp .row { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.exp .row + .row { margin-top: clamp(4rem, 8vw, 7rem); }
.exp .row--flip > :first-child { order: 2; }
.exp h3.d3 { margin-bottom: 1.5rem; }
.flow { display: grid; }
.flow li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--rule); }
.flow li:last-child { border-bottom: 1px solid var(--rule); }
.flow .ic { width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--white); border: 1px solid var(--rule-strong); display: grid; place-items: center; }
.section--paper .flow .ic { background: var(--white); }
.flow .ic svg { width: 1.05rem; height: 1.05rem; stroke: var(--ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flow h4 { font-size: 1rem; margin-bottom: 0.2rem; }
.flow p { font-size: 0.92rem; color: var(--ink-2); }
.portalwrap { position: relative; display: grid; justify-items: center; padding: 1rem 0; }
.portalwrap .shape { left: 8%; top: 4%; width: 60%; aspect-ratio: 1; border-radius: 50%; transform-origin: center; opacity: 0.9; }
.portal { position: relative; z-index: 1; width: min(22rem, 100%); background: var(--white); border: 1px solid var(--rule); border-radius: 26px; box-shadow: 0 50px 90px -56px rgba(20,22,29,0.55); overflow: hidden; font-size: 0.8rem; }
.portal-head { background: var(--ink); color: var(--white); padding: 1.4rem 1.3rem 1.1rem; display: grid; gap: 0.15rem; }
.portal-head .k { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.65); }
.portal-head strong { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.portal-body { padding: 1.2rem 1.3rem 1.3rem; display: grid; gap: 1rem; }
.portal .ok { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 0.85rem; align-items: center; }
.portal .ok i { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--brand); display: grid; place-items: center; }
.portal .ok svg { width: 1.2rem; height: 1.2rem; stroke: var(--ink); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.portal .ok strong { display: block; font-size: 0.95rem; }
.portal .ok span { color: var(--ink-3); font-size: 0.74rem; }
.portal .rows { display: grid; border-top: 1px solid var(--rule); }
.portal .rows div { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.portal .rows b { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.22rem 0.55rem; border-radius: 100px; background: var(--paper-2); color: var(--ink); }
.portal .rows b.y { background: var(--brand); }
.portal .b { width: 100%; }
.shot { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--paper-2); border: 1px solid var(--rule); box-shadow: 0 40px 80px -56px rgba(20,22,29,0.5); }
.shot img { width: 100%; height: auto; display: block; }
.shot figcaption { padding: 0.8rem 1.1rem; font-size: 0.78rem; color: var(--ink-3); border-top: 1px solid var(--rule); background: var(--white); }
@media (max-width: 900px) { .exp .row { grid-template-columns: 1fr; } .exp .row--flip > :first-child { order: 0; } }

/* ---------- 14. Outcomes: dark slab ------------------------------------- */
.slab { position: relative; background: var(--slate-deep); color: var(--on-dark); border-radius: var(--r-lg); padding: clamp(3rem, 6vw, 5.5rem) clamp(1.5rem, 5vw, 5rem); overflow: hidden; }
.slab .shape { right: -9rem; top: -9rem; width: 26rem; height: 26rem; border-radius: 50%; background: transparent; border: 2.6rem solid var(--brand); transform-origin: center; }
.slab .eyebrow { color: rgba(255,255,255,0.7); }
.slab h2, .slab h3 { color: var(--on-dark); }
.slab .lede { color: var(--on-dark-2); }
.slab .head { position: relative; z-index: 1; max-width: 46rem; }
.slab .grid3 { position: relative; z-index: 1; }
.slab .card { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }
.slab .card:hover { box-shadow: none; border-color: rgba(255,255,255,0.22); }
.slab .card .k { color: var(--brand); }
.slab .card p { color: var(--on-dark-2); }
.slab .btns { margin-top: 2.5rem; position: relative; z-index: 1; }

/* ---------- 15. In writing: comparison ---------------------------------- */
.compare { border-top: 1px solid var(--ink); }
.compare .row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr); gap: 1.5rem; padding: 1.3rem 0; border-bottom: 1px solid var(--rule); font-size: 0.95rem; }
.compare .row--h { padding: 0.8rem 0; }
.compare .row--h .micro { color: var(--ink-3); }
.compare .item { font-weight: 600; }
.compare .us, .compare .them { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); gap: 0.7rem; align-items: start; color: var(--ink-2); }
.compare .us svg, .compare .them svg { width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; }
.compare .us svg { stroke: var(--ink); fill: var(--brand); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.compare .them svg { stroke: var(--ink-3); fill: none; stroke-width: 1.6; }
.compare .them { color: var(--ink-3); }
@media (max-width: 760px) { .compare .row { grid-template-columns: 1fr; gap: 0.6rem; } .compare .row--h { display: none; } .compare .us::before { content: "OptimoGov"; } .compare .them::before { content: "Typical"; } .compare .us::before, .compare .them::before { grid-column: 1 / -1; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); } .compare .us, .compare .them { grid-template-columns: 1.25rem minmax(0, 1fr); } }

/* ---------- 16. Integrations wall --------------------------------------- */
.intwall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.intgroup { background: var(--white); border-radius: 16px; padding: 1.4rem 1.35rem 1.1rem; display: grid; gap: 0.9rem; align-content: start; border: 1px solid var(--rule); }
.intgroup h3 { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.intgroup ul { display: grid; gap: 0.25rem; }
.intgroup li { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0.55rem; border-radius: 10px; font-size: 0.93rem; font-weight: 500; transition: background-color 160ms var(--ease); }
.intgroup li:hover { background: var(--paper); }
.int-ic { width: 2.5rem; height: 2.5rem; flex: none; border-radius: 10px; background: var(--paper); border: 1px solid var(--rule); display: inline-grid; place-items: center; }
.int-ic img { width: 1.45rem; height: 1.45rem; max-width: none; }
.mono-ic { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.02em; color: var(--slate); }
.footnote { margin-top: 1.5rem; font-size: 0.82rem; color: var(--ink-3); max-width: 60rem; }
@media (max-width: 1000px) { .intwall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .intwall { grid-template-columns: 1fr; } }

/* ---------- 17. ADA and dates ------------------------------------------- */
.ada { margin-top: clamp(3rem, 6vw, 5rem); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: start; padding-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--rule); }
.ada .lead { display: grid; gap: 1.25rem; }
.dates { display: grid; gap: 1rem; }
.date { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1.25rem; align-items: start; padding: 1.5rem 0; border-top: 1px solid var(--rule); }
.date:last-child { border-bottom: 1px solid var(--rule); }
.date .big { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.date .big small { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.4rem; }
.date p { color: var(--ink-2); font-size: 0.95rem; }
.date--y { background: var(--brand); border: 0 !important; border-radius: 14px; padding: 1.5rem 1.4rem; }
.date--y .big small, .date--y p { color: var(--ink); }
@media (max-width: 900px) { .ada { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .date { grid-template-columns: 1fr; gap: 0.6rem; } }

/* ---------- 18. Implementation timeline --------------------------------- */
.tl { display: grid; gap: 1.5rem; margin-top: 1rem; }
.tl-scale { display: flex; justify-content: space-between; gap: 1rem; }
.tl-bar { position: relative; height: 8px; background: var(--paper-2); border-radius: 100px; overflow: hidden; }
.tl-bar::after { content: ""; position: absolute; inset: 0; background: var(--brand); border-radius: 100px; transform-origin: left; transform: none; transition: transform 1600ms var(--ease) 200ms; }
.tl.in .tl-bar::after { transform: scaleX(1); }
.tl-stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; counter-reset: stage; }
.tl-stages li { display: grid; gap: 0.45rem; align-content: start; padding-top: 1.1rem; border-top: 2px solid var(--rule); position: relative; }
.tl-stages li::before { counter-increment: stage; content: counter(stage, decimal-leading-zero); position: absolute; top: -0.8rem; left: 0; background: var(--paper); padding-right: 0.6rem; font-size: 0.78rem; font-weight: 600; color: var(--ink-3); letter-spacing: 0.06em; }
.tl-stages h3 { font-size: 1.15rem; }
.tl-stages p { font-size: 0.93rem; color: var(--ink-2); }
.tl-note { font-size: 0.85rem; color: var(--ink-3); max-width: 46rem; }
@media (max-width: 860px) { .tl-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tl-scale { display: grid; gap: 0.25rem; } .tl-scale span:nth-child(n+2)::before { content: "\2192\00a0"; } }
@media (max-width: 520px) { .tl-stages { grid-template-columns: 1fr; } }

/* ---------- 19. Partner ------------------------------------------------- */
.partner .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.partner .lead { display: grid; gap: 1.25rem; }
.partnercard { background: var(--paper); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.5rem); display: grid; gap: 1.75rem; }
.partnercard .marks { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; }
.partnercard .marks img { height: 36px; width: auto; }
.partnercard .marks img[alt="Invorg"] { height: 56px; }
.partnercard .marks .plus { font-size: 1.4rem; color: var(--ink-3); font-weight: 300; }
.partnercard .kv { grid-template-columns: 7.5rem minmax(0, 1fr); font-size: 0.93rem; }
.partnercard a { color: var(--ink); }
@media (max-width: 900px) { .partner .wrap { grid-template-columns: 1fr; } }

/* ---------- 20. FAQ ----------------------------------------------------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.faq-grid .lead { display: grid; gap: 1.25rem; position: sticky; top: 6.5rem; }
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 2rem; gap: 1.5rem; align-items: center; padding: 1.35rem 0; font-size: clamp(1.05rem, 1.4vw, 1.25rem); font-weight: 600; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { width: 2rem; height: 2rem; border-radius: 50%; border: 1.5px solid var(--rule-strong); display: grid; place-items: center; position: relative; transition: background-color 250ms var(--ease), border-color 250ms var(--ease), transform 300ms var(--ease); }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; background: var(--ink); width: 0.85rem; height: 2px; }
.faq summary .plus::after { transform: rotate(90deg); transition: transform 300ms var(--ease); }
.faq details[open] summary .plus { background: var(--brand); border-color: var(--brand); }
.faq details[open] summary .plus::after { transform: rotate(0deg); }
.faq details p { padding: 0 3.5rem 1.5rem 0; color: var(--ink-2); font-size: 0.98rem; max-width: 46rem; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } .faq-grid .lead { position: static; } .faq details p { padding-right: 0; } }

/* ---------- 21. CTA slab ------------------------------------------------ */
.cta { background: var(--brand); position: relative; overflow: hidden; }
.cta .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem 4rem; align-items: center; padding-block: clamp(4rem, 8vw, 7rem); position: relative; z-index: 1; }
.cta .d2 { color: var(--ink); }
.cta p { color: var(--ink); font-size: 1.05rem; max-width: 34rem; margin-top: 1rem; }
.cta .btns { justify-content: flex-end; }
.cta .ring { position: absolute; right: -8rem; top: -10rem; width: 34rem; height: 34rem; border-radius: 50%; border: 5rem solid rgba(20,22,29,0.06); pointer-events: none; }
@media (max-width: 900px) { .cta .wrap { grid-template-columns: 1fr; } .cta .btns { justify-content: flex-start; } }

/* ---------- 22. Footer -------------------------------------------------- */
.foot { background: var(--white); border-top: 1px solid var(--rule); padding-block: clamp(3.5rem, 6vw, 5.5rem) 2rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 2.5rem 2rem; }
.foot-brand { display: grid; gap: 1rem; align-content: start; }
.foot-brand img { height: 30px; width: auto; }
.foot-brand address { font-style: normal; font-size: 0.88rem; color: var(--ink-2); line-height: 1.7; }
.foot-brand address a { text-decoration: none; }
.foot-brand .small { font-size: 0.85rem; color: var(--ink-3); max-width: 20rem; }
.foot h3 { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1rem; }
.foot nav ul { display: grid; gap: 0.5rem; }
.foot nav a { font-size: 0.9rem; color: var(--ink-2); text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.foot-news { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: center; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.foot-news h4 { font-size: 1.05rem; }
.foot-news p { font-size: 0.88rem; color: var(--ink-2); margin-top: 0.25rem; }
.newsform { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.newsform input { font: inherit; font-size: 0.95rem; flex: 1 1 12rem; min-width: 0; border: 1.5px solid var(--rule-strong); border-radius: var(--r); padding: 0.8rem 1rem; }
.newsform input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(253,216,0,0.5); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); font-size: 0.82rem; color: var(--ink-3); }
.foot-base ul { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.foot-base a { color: var(--ink-2); text-decoration: none; }
.foot-base a:hover { color: var(--ink); }
.foot-base .social a { font-weight: 600; color: var(--ink); }
@media (max-width: 1000px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 760px) { .foot-news { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 23. Print --------------------------------------------------- */
@media print { .top, .sheet, .cta, .foot-news, .menu { display: none !important; } .js .rv, .js .shape, .js .line > span, .js .ev { opacity: 1 !important; transform: none !important; animation: none !important; } .slab { background: none; color: var(--ink); border: 1px solid var(--rule); } .slab h2, .slab h3, .slab .lede, .slab .card p { color: var(--ink); } }

/* ---------- 24. Inner pages --------------------------------------------- */
.phero { position: relative; overflow: clip; background: var(--white); }
.phero .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(3rem, 6vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); position: relative; z-index: 1; }
.phero--solo .wrap { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.phero--form .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
.phero-copy { display: grid; gap: 1.4rem; }
.phero .d1 { font-size: clamp(2.1rem, 4.2vw, 3.9rem); line-height: 1.04; letter-spacing: -0.03em; }
.phero .lede { max-width: 36rem; }
.phero .note { font-size: 0.9rem; color: var(--ink-3); }
.phero .note a { color: var(--ink); }
.phero-shape { right: -10vw; bottom: -28%; width: clamp(360px, 40vw, 640px); aspect-ratio: 1; border-radius: 50%; transform-origin: 70% 70%; z-index: 0; }
.phero--form .phero-shape { bottom: auto; top: 45%; right: -14vw; }
.phero--solo .phero-shape { right: -8vw; bottom: -70%; }
.phero-visual { position: relative; }
.phero-visual .shape { display: none; }
.phero-visual .shot, .phero-visual .planframe { position: relative; z-index: 1; }
@media (max-width: 1000px) { .phero .wrap, .phero--solo .wrap, .phero--form .wrap { grid-template-columns: 1fr; gap: 3rem; } .phero-shape { right: -30vw; bottom: -20%; width: clamp(360px, 90vw, 640px); } .phero--solo .phero-shape { display: none; } }
.creds--solo { border-top: 0; padding-top: 0; }
.trust--facts .wrap { padding-block: clamp(1.75rem, 3vw, 2.5rem); }

/* library floor plan */
.planframe { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 1rem; box-shadow: 0 40px 80px -56px rgba(20,22,29,0.5); }
.plan { width: 100%; height: auto; display: block; }
.plan .block { fill: var(--paper-2); }
.plan .street { stroke: var(--rule-strong); stroke-width: 6; stroke-linecap: round; fill: none; }
.plan .space { fill: var(--white); stroke: var(--ink); stroke-width: 2; }
.plan .lead .space { fill: var(--brand); stroke-width: 2.5; }
.plan .lbl { font-family: var(--font); font-size: 12px; font-weight: 600; fill: var(--ink); }
.plan .lbl-s { font-family: var(--font); font-size: 10px; font-weight: 500; fill: var(--ink-3); text-transform: uppercase; letter-spacing: 0.1em; }
.js .plan .space, .js .plan .lbl, .js .plan .lbl-s { opacity: 0; }
.js .in .plan .space { animation: popin 500ms var(--ease) forwards; }
.js .in .plan .lbl, .js .in .plan .lbl-s { animation: fadein 500ms var(--ease) forwards; }
.plan .d1 { animation-delay: 300ms !important; } .plan .d2 { animation-delay: 420ms !important; } .plan .d3 { animation-delay: 540ms !important; } .plan .d4 { animation-delay: 660ms !important; } .plan .d5 { animation-delay: 780ms !important; } .plan .d6 { animation-delay: 900ms !important; }
@keyframes popin { from { opacity: 0; transform: scale(0.88); transform-box: fill-box; transform-origin: center; } to { opacity: 1; transform: none; } }
@keyframes fadein { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .js .plan .space, .js .plan .lbl, .js .plan .lbl-s { opacity: 1 !important; animation: none !important; } }

/* split text + list */
.split2 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.split2 .lead { display: grid; gap: 1.25rem; position: sticky; top: 6.5rem; }
.split2--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.split2--even .lead { position: static; }
@media (max-width: 900px) { .split2, .split2--even { grid-template-columns: minmax(0, 1fr); } .split2 .lead { position: static; } }
.index--wide li { grid-template-columns: 3.5rem minmax(0, 1fr); }
.index h3.big { font-size: 1.45rem; }
.index p.long { max-width: 62ch; }

/* ledger */
.ledger { border-top: 1px solid var(--ink); }
.ledger li { display: grid; grid-template-columns: 10.5rem 8.5rem minmax(0, 1fr); gap: 1.25rem; padding: 1.4rem 0; border-bottom: 1px solid var(--rule); align-items: start; }
.ledger h3 { font-size: 1.05rem; }
.ledger p { font-size: 0.93rem; color: var(--ink-2); }
.ledger p a { color: var(--ink); }
.tag { display: inline-flex; align-items: center; justify-content: center; padding: 0.3rem 0.7rem; border-radius: 100px; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.tag--ok { background: var(--brand); color: var(--ink); }
.tag--no { background: var(--paper-2); color: var(--ink-3); }
.tag--note { border: 1.5px solid var(--rule-strong); color: var(--ink-2); }
@media (max-width: 860px) { .ledger li { grid-template-columns: minmax(0, 1fr) auto; } .ledger p { grid-column: 1 / -1; } }
.callout { border-left: 4px solid var(--brand); background: var(--paper); padding: 1.25rem 1.5rem; border-radius: 0 14px 14px 0; display: grid; gap: 0.4rem; }
.callout .k { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.callout h3 { font-size: 1.1rem; }
.callout p { font-size: 0.93rem; color: var(--ink-2); }
.section--paper .callout { background: var(--white); }

/* tables */
.tblwrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 16px; background: var(--white); }
.tbl { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 40rem; }
.tbl caption { text-align: left; padding: 1.1rem 1.35rem 0.6rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.tbl th { text-align: left; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); padding: 0.85rem 1.35rem; border-bottom: 2px solid var(--ink); }
.tbl td { padding: 1rem 1.35rem; border-bottom: 1px solid var(--rule); color: var(--ink-2); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td:first-child { font-weight: 600; color: var(--ink); }
.tbl-note { margin-top: 1rem; font-size: 0.85rem; color: var(--ink-3); max-width: 60rem; }

/* terms */
.terms { display: grid; border-top: 1px solid var(--ink); }
.terms div { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 1.25rem; padding: 1.15rem 0; border-bottom: 1px solid var(--rule); font-size: 0.95rem; }
.terms dt { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); padding-top: 0.3rem; }
.terms dd { color: var(--ink-2); }
.terms dd strong { color: var(--ink); }
@media (max-width: 560px) { .terms div { grid-template-columns: 1fr; gap: 0.3rem; } }

/* stages on white */
.tl-stages--white li::before { background: var(--white); }
.stages { margin-top: 0; }

/* forms */
.formcard { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: 0 40px 80px -56px rgba(20,22,29,0.5); position: relative; z-index: 1; }
.form { display: grid; gap: 1.1rem; }
.form .row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.1rem; }
@media (max-width: 560px) { .form .row2 { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 0.4rem; font-size: 0.82rem; font-weight: 600; color: var(--ink-2); }
.form label .opt { font-weight: 400; color: var(--ink-3); }
.form input, .form select, .form textarea { font: inherit; font-size: 0.95rem; color: var(--ink); background: var(--white); border: 1.5px solid var(--rule-strong); border-radius: var(--r); padding: 0.75rem 0.9rem; width: 100%; min-width: 0; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(253,216,0,0.5); }
.form textarea { min-height: 6.5rem; resize: vertical; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.form legend { font-size: 0.82rem; font-weight: 600; color: var(--ink-2); margin-bottom: 0.35rem; }
.form .checks-inline { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.form .checks-inline label { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 500; font-size: 0.88rem; color: var(--ink); border: 1.5px solid var(--rule-strong); border-radius: 100px; padding: 0.45rem 0.85rem; cursor: pointer; transition: all 200ms var(--ease); }
.form .checks-inline input { width: auto; margin: 0; accent-color: var(--ink); }
.form .checks-inline label:has(input:checked) { background: var(--brand); border-color: var(--brand); }
.form .fine { font-size: 0.8rem; color: var(--ink-3); }
.form .fine a { color: var(--ink); }
.form .b { justify-self: start; }
.hero-sub { display: grid; gap: 1rem; }
.hero-sub .checks li { padding-top: 0.9rem; padding-bottom: 0.9rem; }
.hero-sub .checks li::before { top: 1.35rem; }

/* dark slab list */
.slab .checks li { color: var(--on-dark-2); border-color: rgba(255,255,255,0.12); }
.slab .checks strong { color: var(--on-dark); }
.slab .split2 .lead { position: static; }
.slab .lede { color: var(--on-dark-2); }
.slab .b-dark { background: var(--white); color: var(--ink); }
.slab .b-dark:hover { background: var(--paper); }

/* pricing models */
.models .card { padding-top: 1.6rem; }
.models .card h3 { font-size: 1.3rem; }
@media (max-width: 420px) { .b { white-space: normal; text-align: center; line-height: 1.25; } .btns .b { flex: 1 1 auto; } }

/* slab with a split layout: the yellow accent is a bar, so it never sits behind text */
.slab--split .shape { left: 0; top: clamp(3rem, 6vw, 5.5rem); right: auto; bottom: auto; width: 6px; height: 9rem; border-radius: 0 3px 3px 0; border: 0; background: var(--brand); transform-origin: top; }

/* ---------- 25. Hero city and spaces tabs ------------------------------- */
.hero-visual .cityframe { position: relative; }
.hero .cityplan { padding: 1.25rem 1rem 0.75rem; border-radius: var(--r-lg); box-shadow: 0 50px 90px -56px rgba(20,22,29,0.5); }
.hero .wrap.deptrow { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; padding-block: 0 clamp(2.5rem, 5vw, 4rem); position: relative; z-index: 1; }
.heronav { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.heronav button { padding: 0.5rem 0.95rem; border-radius: 100px; border: 1.5px solid var(--rule-strong); background: var(--white); font-size: 0.86rem; font-weight: 500; color: var(--ink-2); transition: all 220ms var(--ease); }
.heronav button:hover { border-color: var(--ink); color: var(--ink); }
.heronav button.is-live { background: var(--ink); border-color: var(--ink); color: var(--white); }
.spaces-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.spacenav--stack { display: grid; gap: 0.35rem; margin: 0; }
.spacenav--stack button { display: grid; gap: 0.1rem; text-align: left; padding: 0.95rem 1.1rem; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--ink-2); }
.spacenav--stack button strong { font-size: 1rem; font-weight: 600; color: var(--ink); }
.spacenav--stack button span { font-size: 0.82rem; color: var(--ink-3); }
.spacenav--stack button:hover { background: var(--white); border-color: var(--rule); color: var(--ink); }
.spacenav--stack button[aria-selected="true"] { background: var(--white); border-color: var(--rule); box-shadow: inset 4px 0 0 var(--brand), 0 20px 40px -32px rgba(20,22,29,0.35); color: var(--ink); }
.spacenav--stack button[aria-selected="true"] strong, .spacenav--stack button[aria-selected="true"] span { color: inherit; }
.spaces-grid .spacepanel { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.5rem); min-height: 0; }
.spaces-grid .spacecard h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); }
.spaces-grid .kv { font-size: 1rem; gap: 0.9rem 1.5rem; }
@media (max-width: 900px) { .spaces-grid { grid-template-columns: minmax(0, 1fr); } .spacenav--stack { display: flex; flex-wrap: wrap; gap: 0.45rem; } .spacenav--stack button { padding: 0.5rem 0.95rem; border-radius: 100px; border: 1.5px solid var(--rule-strong); } .spacenav--stack button span { display: none; } .spacenav--stack button strong { font-size: 0.86rem; font-weight: 500; color: inherit; } .spacenav--stack button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); box-shadow: none; } }

/* permit engine card (illustration, generic labels) */
.permitcard { position: relative; z-index: 1; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: 0 50px 90px -56px rgba(20,22,29,0.5); overflow: hidden; font-size: 0.85rem; }
.permitcard-head { background: var(--ink); color: var(--white); padding: 1.25rem 1.4rem 1.05rem; display: grid; gap: 0.15rem; }
.permitcard-head .k { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.65); }
.permitcard-head strong { font-size: 1.05rem; letter-spacing: -0.01em; }
.permitcard-rows { display: grid; }
.permitcard-rows li { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; gap: 0.9rem; align-items: center; padding: 0.95rem 1.4rem; border-bottom: 1px solid var(--rule); }
.permitcard-rows .n { width: 2rem; height: 2rem; border-radius: 50%; background: var(--brand); display: grid; place-items: center; font-weight: 600; font-size: 0.78rem; }
.permitcard-rows strong { display: block; font-size: 0.93rem; }
.permitcard-rows div span { color: var(--ink-3); font-size: 0.78rem; }
.permitcard-foot { padding: 0.9rem 1.4rem; background: var(--paper); font-size: 0.8rem; color: var(--ink-2); font-weight: 500; }
.js .permitcard-rows li { opacity: 0; transform: translateY(6px); animation: evin 600ms var(--ease) forwards; }
.js .permitcard-rows li:nth-child(1) { animation-delay: 600ms; } .js .permitcard-rows li:nth-child(2) { animation-delay: 750ms; } .js .permitcard-rows li:nth-child(3) { animation-delay: 900ms; } .js .permitcard-rows li:nth-child(4) { animation-delay: 1050ms; } .js .permitcard-rows li:nth-child(5) { animation-delay: 1200ms; }
@media (max-width: 480px) { .permitcard-rows li { grid-template-columns: 2rem minmax(0, 1fr); } .permitcard-rows .tag { grid-column: 2; justify-self: start; } }

/* ---------- 26. Utility bar and mega-menu navigation -------------------- */
.util { background: var(--ink); color: rgba(255,255,255,.72); font-size: .78rem; }
.util .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.35rem; }
.util .region { font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .64rem; color: rgba(255,255,255,.6); display: inline-flex; align-items: center; gap: .5rem; }
.util .region::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: var(--brand); }
.util ul { display: flex; gap: 1.25rem; }
.util a { color: rgba(255,255,255,.78); text-decoration: none; font-variant-numeric: tabular-nums; }
.util a:hover { color: #fff; }
@media (max-width: 700px) { .util ul li:nth-child(n+2) { display: none; } }
.top { top: 0; }
.nav > li { position: relative; }
.nav > li > a { display: inline-flex; align-items: center; gap: .3rem; }
.nav .chev { width: .85rem; height: .85rem; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .5; transition: transform 220ms var(--ease); }
.nav > li > a[aria-current="page"] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
.mega { position: absolute; left: 50%; transform: translate(-50%, 6px); top: calc(100% + .35rem); z-index: 60; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 200ms var(--ease), transform 200ms var(--ease); background: var(--white); border: 1px solid var(--rule); border-radius: 18px; box-shadow: 0 40px 80px -40px rgba(20,22,29,.4); padding: 1.5rem; }
.hasmega:hover .mega, .hasmega:focus-within .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.hasmega:hover > a .chev, .hasmega:focus-within > a .chev { transform: rotate(180deg); }
.hasmega:hover > a, .hasmega:focus-within > a { color: var(--ink); }
.megagrid { width: auto; margin: 0; display: grid; gap: 1.5rem 2rem; }
.mega--wide .megagrid { grid-template-columns: repeat(4, 15rem); }
.mega--one .megagrid { grid-template-columns: 20rem; }
.megak { font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .55rem; padding-bottom: .5rem; border-bottom: 1px solid var(--rule); }
.megacol ul { display: grid; gap: .1rem; }
.megacol a { display: block; padding: .45rem .6rem; border-radius: 9px; text-decoration: none; transition: background-color 160ms var(--ease); }
.megacol a:hover { background: var(--paper); }
.megacol a strong { display: block; font-size: .87rem; font-weight: 600; line-height: 1.3; }
.megacol a span { display: block; font-size: .76rem; color: var(--ink-3); line-height: 1.35; margin-top: .1rem; }
@media (max-width: 1240px) { .mega--wide .megagrid { grid-template-columns: repeat(3, 14rem); } }
@media (max-width: 1000px) { .mega { display: none; } }
/* mobile sheet groups */
.sheet { inset: 7.1rem 0 0 0; padding-top: 1.5rem; }
.sheet .wrap { width: min(1280px, 100% - 2.5rem); }
.sheet details { border-bottom: 1px solid var(--rule); }
.sheet summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; font-size: 1.32rem; font-weight: 600; letter-spacing: -.02em; }
.sheet summary::-webkit-details-marker { display: none; }
.sheet summary .plus { width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 1.5px solid var(--rule-strong); display: grid; place-items: center; position: relative; flex: none; }
.sheet summary .plus::before, .sheet summary .plus::after { content: ""; position: absolute; background: var(--ink); width: .7rem; height: 2px; }
.sheet summary .plus::after { transform: rotate(90deg); transition: transform 260ms var(--ease); }
.sheet details[open] summary .plus { background: var(--brand); border-color: var(--brand); }
.sheet details[open] summary .plus::after { transform: rotate(0); }
.sheetgroup { padding: 0 0 1.1rem; }
.sheetgroup .sk { font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: .85rem 0 .35rem; }
.sheetgroup ul { display: grid; gap: .1rem; }
.sheetgroup a { display: block; padding: .45rem 0; font-size: .97rem; color: var(--ink-2); text-decoration: none; }
.sheet a.sheetlink { display: block; padding: 1rem 0; font-size: 1.32rem; font-weight: 600; letter-spacing: -.02em; text-decoration: none; border-bottom: 1px solid var(--rule); }
.sheetgroup li a { display: block; padding: .5rem 0; font-size: .97rem; font-weight: 500; color: var(--ink-2); text-decoration: none; border: 0; }
.sheetgroup li a:hover { color: var(--ink); }

/* ---------- 27. Article, blog and index pages --------------------------- */
.arthead { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem); }
.artmeta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.25rem; font-size: .82rem; color: var(--ink-3); }
.artmeta b { color: var(--ink); font-weight: 600; }
.cat { display: inline-flex; padding: .3rem .7rem; border-radius: 100px; background: var(--brand); color: var(--ink); font-size: .64rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; text-decoration: none; }
.cat--q { background: var(--paper-2); color: var(--ink-2); }
.prose { max-width: 40rem; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { font-size: clamp(1.3rem, 2vw, 1.65rem); margin-top: 2.5rem; }
.prose h3 { font-size: 1.12rem; margin-top: 1.9rem; }
.prose p { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { display: grid; gap: .55rem; }
.prose ul li, .prose ol li { position: relative; padding-left: 1.5rem; color: var(--ink-2); }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .58em; width: .45rem; height: .45rem; border-radius: 1px; background: var(--brand); }
.prose ol { counter-reset: pi; }
.prose ol li { padding-left: 2rem; }
.prose ol li::before { counter-increment: pi; content: counter(pi); position: absolute; left: 0; top: .05em; font-size: .78rem; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.prose blockquote { border-left: 4px solid var(--brand); padding: .3rem 0 .3rem 1.25rem; font-size: 1.1rem; color: var(--ink); }
.prose .pullnote { background: var(--paper); border-radius: 14px; padding: 1.25rem 1.4rem; }
.prose .pullnote p { margin: 0; font-size: .95rem; }
.prose .pullnote .k { font-size: .64rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); display: block; margin-bottom: .35rem; }
.artgrid { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.artside { position: sticky; top: 6.5rem; display: grid; gap: 1.25rem; }
.artside .card { padding: 1.4rem; }
@media (max-width: 900px) { .artgrid { grid-template-columns: minmax(0, 1fr); } .artside { position: static; } }
/* post and story cards */
.postgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.postgrid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1000px) { .postgrid, .postgrid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .postgrid, .postgrid--2 { grid-template-columns: minmax(0, 1fr); } }
.post { display: grid; gap: .7rem; align-content: start; background: var(--white); border: 1px solid var(--rule); border-radius: 16px; padding: 1.5rem 1.4rem; text-decoration: none; transition: transform 280ms var(--ease), box-shadow 280ms var(--ease), border-color 280ms var(--ease); }
.post:hover { transform: translateY(-3px); box-shadow: 0 30px 50px -40px rgba(20,22,29,.4); border-color: var(--rule-strong); }
.post h3 { font-size: 1.1rem; line-height: 1.3; }
.post p { font-size: .9rem; color: var(--ink-2); }
.post .when { font-size: .76rem; color: var(--ink-3); margin-top: auto; }
.post .cat { align-self: start; }
.post--lead { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2rem; align-items: center; padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--paper); border-color: transparent; }
.post--lead h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -.025em; }
.post--lead .lede { font-size: 1.02rem; }
@media (max-width: 800px) { .post--lead { grid-template-columns: minmax(0, 1fr); } }
.catbar { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 2rem; }
.catbar a { padding: .45rem .9rem; border-radius: 100px; border: 1.5px solid var(--rule-strong); font-size: .85rem; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.catbar a:hover { border-color: var(--ink); color: var(--ink); }
.catbar a.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- 28. Contact routes, about, guides --------------------------- */
.routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 760px) { .routes { grid-template-columns: minmax(0, 1fr); } }
.route { border: 1px solid var(--rule); border-radius: 16px; padding: 1.6rem 1.5rem; display: grid; gap: .6rem; align-content: start; }
.route h3 { font-size: 1.08rem; }
.route p { font-size: .93rem; color: var(--ink-2); }
.route .big { font-size: 1.15rem; font-weight: 600; letter-spacing: -.015em; }
.route .big a { text-decoration: none; border-bottom: 2px solid var(--brand); }
.route .k { font-size: .64rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.route--y { background: var(--brand); border-color: var(--brand); }
.route--y p, .route--y .k { color: var(--ink); }
.milestones { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.milestones > div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 1.5rem; padding: 1.35rem 0; border-bottom: 1px solid var(--rule); }
.milestones dt { font-size: 1.05rem; font-weight: 600; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.milestones dd { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 560px) { .milestones > div { grid-template-columns: minmax(0, 1fr); gap: .3rem; } }
.gate { background: var(--paper); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.5rem); display: grid; gap: 1rem; align-content: start; }
.gate h3 { font-size: 1.25rem; }
.gate p { font-size: .95rem; color: var(--ink-2); }
.toc { display: grid; gap: .45rem; }
.toc li { font-size: .93rem; color: var(--ink-2); padding-left: 1.4rem; position: relative; }
.toc li::before { content: ""; position: absolute; left: 0; top: .55em; width: .45rem; height: .45rem; border-radius: 1px; background: var(--brand); }
/* confirmation pages */
.done { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: clamp(3rem, 8vw, 6rem); }
.done .inner { max-width: 42rem; display: grid; gap: 1.25rem; justify-items: center; }
.done .tick { width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--brand); display: grid; place-items: center; }
.done .tick svg { width: 2.1rem; height: 2.1rem; stroke: var(--ink); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.done .steps-min { text-align: left; display: grid; gap: .6rem; margin-top: .5rem; }
.done .steps-min li { padding-left: 1.5rem; position: relative; color: var(--ink-2); font-size: .95rem; }
.done .steps-min li::before { content: ""; position: absolute; left: 0; top: .58em; width: .45rem; height: .45rem; border-radius: 1px; background: var(--brand); }

/* ---------- 29. Business area spec panel -------------------------------- */
.specpanel { position: relative; z-index: 1; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: 0 50px 90px -56px rgba(20,22,29,.5); overflow: hidden; }
.specpanel-head { background: var(--ink); color: var(--white); padding: 1.05rem 1.4rem; font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.specrows { display: grid; }
.specrows > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1.1rem; padding: 1rem 1.4rem; border-bottom: 1px solid var(--rule); }
.specrows > div:last-child { border-bottom: 0; }
.specrows dt { font-size: .66rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); padding-top: .2rem; }
.specrows dd { font-size: .92rem; color: var(--ink-2); }
@media (max-width: 520px) { .specrows > div { grid-template-columns: minmax(0, 1fr); gap: .3rem; } }

/* ---------- 30. Business area list rows --------------------------------- */
.arealist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.arearow { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t a" "d d"; gap: .2rem .9rem; align-items: center; background: var(--white); border: 1px solid var(--rule); border-radius: 14px; padding: 1.15rem 1.25rem; text-decoration: none; transition: transform 260ms var(--ease), box-shadow 260ms var(--ease), border-color 260ms var(--ease); }
.arearow strong { grid-area: t; font-size: 1.02rem; font-weight: 600; letter-spacing: -.015em; }
.arearow span { grid-area: d; font-size: .88rem; color: var(--ink-2); }
.arearow .arr { grid-area: a; width: 1.1rem; height: 1.1rem; stroke: var(--ink-3); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 240ms var(--ease), stroke 240ms var(--ease); }
.arearow:hover { transform: translateY(-2px); border-color: var(--rule-strong); box-shadow: 0 26px 46px -38px rgba(20,22,29,.42); }
.arearow:hover .arr { transform: translateX(3px); stroke: var(--ink); }
@media (max-width: 760px) { .arealist { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 31. Homepage business area chips ---------------------------- */
.areachips { display: flex; flex-wrap: wrap; gap: .5rem; }
.areachip { display: inline-flex; align-items: center; padding: .6rem 1.05rem; border-radius: 100px; border: 1.5px solid var(--rule-strong); background: var(--white); font-size: .92rem; font-weight: 500; color: var(--ink); text-decoration: none; transition: all 200ms var(--ease); }
.areachip:hover { border-color: var(--ink); background: var(--ink); color: #fff; transform: translateY(-1px); }

/* wide mega-menu anchors to the header, not to its link, so no column falls off screen */
.top .wrap { position: relative; }
.nav > li:has(.mega--wide) { position: static; }
.mega--wide { left: 0; right: 0; transform: translateY(6px); max-width: 100%; }
.hasmega:hover .mega--wide, .hasmega:focus-within .mega--wide { transform: translateY(0); }
.mega--wide .megagrid { grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
@media (max-width: 1240px) { .mega--wide .megagrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; } .megacol a span { font-size: .73rem; } }
.mega .megagrid { display: grid; align-items: start; width: 100%; margin: 0; }

/* buttons and headings inside narrow cards must wrap */
.artside .b, .card .b, .gate .b, .route .b { white-space: normal; text-align: center; line-height: 1.3; height: auto; }
.artside h3, .card h3, .post h3 { overflow-wrap: break-word; }
.artside .card { overflow: hidden; }

/* the six-item nav plus mega chevrons needs more room than 1024 gives it */
@media (max-width: 1100px) {
  .nav, .top-actions .tel, .top-actions .b { display: none; }
  .menu { display: grid; }
  .brand .region { display: none; }
  .mega { display: none; }
}


/* ---------- Launch fixes, September 2026 audit ------------------------- */
/* UX-01 visible focus on dark surfaces */
.util :focus-visible, .slab :focus-visible, .band :focus-visible { outline-color: var(--brand); }
/* UX-03 decorative ring hidden on phones so it never covers text */
@media (max-width: 720px) { .slab .shape { display: none; } }
/* UX-06 bars only start empty when the reveal script runs */
.js .steps::after, .js .tl-bar::after { transform: scaleX(0); }
.js .steps.in::after, .js .tl.in .tl-bar::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .js .steps::after, .js .tl-bar::after { transform: none !important; } }
/* UX-07 ADA card stacks and uses a card-sized heading */
.date--y { grid-template-columns: 1fr; gap: 0.6rem; }
.date--y .big { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }
/* UX-15 optional hint stays on the label line */
.form label .opt { display: inline; }
/* Form feedback (forms.js) */
.form [aria-invalid="true"], .newsform [aria-invalid="true"] { border-color: #B4232A; }
.form-error { color: #B4232A; font-size: 0.85rem; margin-top: 0.35rem; }
