/* Layout: the page reads like a drawing set. A plan sheet with a CAD-style layer panel opens it,
   practices carry their layer codes, process steps use detail tags, and the footer is a title block.
   Light theme = printed vellum sheet; dark theme = CAD model space. */
:root {
  --paper: #F3F5F7;
  --sheet: #FFFFFF;
  --ink: #0B2035;
  --ink-2: #4B5B6C;
  --rule: #CBD3DC;
  --grid: #E4E9EE;
  --navy: #031B33;
  --navy-2: #0A2A4A;
  --yellow: #FEC10E;
  --sky: #7CBEE1;
  --accent: #946A00;
  --on-accent: #031B33;
  --red: #C0392B;
  --duct: #2B78B4;
  --wlan: #1F7A4A;
  --safe: #A87600;

  --f-display: "Raleway", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Raleway", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Raleway", "Helvetica Neue", Arial, sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.4rem, 2.4vw, 1.75rem);
  --fs-2xl: clamp(1.9rem, 4vw, 2.75rem);
  --fs-hero: clamp(2.35rem, 6vw, 4.4rem);
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #021226;
    --sheet: #06213D;
    --ink: #E8EEF4;
    --ink-2: #A3B3C4;
    --rule: #1E3B58;
    --grid: #0B2A47;
    --accent: #FEC10E;
    --red: #FF7A6B;
    --duct: #7CBEE1;
    --wlan: #52D08C;
    --safe: #FEC10E;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #021226;
  --sheet: #06213D;
  --ink: #E8EEF4;
  --ink-2: #A3B3C4;
  --rule: #1E3B58;
  --grid: #0B2A47;
  --accent: #FEC10E;
  --red: #FF7A6B;
  --duct: #7CBEE1;
  --wlan: #52D08C;
  --safe: #FEC10E;
  color-scheme: dark;
}
/* Navy bands (top of page, footer) keep the original site's look in both themes */
.navy-band + .section { border-top: 0; }
.navy-band {
  --paper: #031B33;
  --sheet: #031B33;
  --ink: #FFFFFF;
  --ink-2: #B7C5D3;
  --rule: rgba(255, 255, 255, 0.18);
  --accent: #FEC10E;
  background: var(--navy);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
}
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; line-height: 1.12; font-variant-numeric: lining-nums; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--f-mono); }
.label {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ---------- header ---------- */
.topbar { background: #EDEDED; color: #2A2F35; font-size: 0.8rem; }
.topbar .wrap { display: flex; justify-content: flex-end; gap: 10px; padding-block: 7px; }
.topbar a { text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}
.header-row { display: flex; align-items: center; gap: 24px; padding-block: 14px; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand img { display: block; height: 62px; width: auto; }
.brand-word { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; line-height: 1; }
.brand-word b, .z { color: var(--yellow); font-weight: inherit; }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 0.92rem; font-weight: 500; letter-spacing: 0.05em; color: #FFFFFF; }
.nav a:hover { color: var(--yellow); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 var(--fs-sm)/1 var(--f-body);
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 14px 22px;
  border-radius: 0;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-red { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.btn-red:hover { background: var(--sky); border-color: var(--sky); color: var(--navy); }
.btn-sky { background: var(--sky); border-color: var(--sky); color: #0E4A6E; font-weight: 500; }
.btn-sky:hover { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.header-row .btn { padding: 13px 22px; }
@media (max-width: 960px) {
  .nav { display: none; }
  .header-row .btn { margin-left: auto; }
}
@media (max-width: 420px) {
  .brand img { height: 38px; }
  .header-row .btn { padding: 11px 12px; font-size: 0.75rem; }
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(48px, 8vw, 104px) clamp(40px, 6vw, 72px); }
.hero .label { color: var(--yellow); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: none; }
.plan { padding-top: clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.hero-text { display: grid; gap: 22px; min-width: 0; }
.hero h1 { font-size: var(--fs-hero); font-weight: 700; letter-spacing: -0.01em; line-height: 1.06; }
.lede { font-size: var(--fs-lg); line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.lede strong { color: var(--ink); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--yellow); margin: 0; }
.fact { padding: 14px 14px 16px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 4px; align-content: start; }
.fact:nth-child(odd) { border-right: 1px solid var(--rule); }
.fact:nth-child(even) { padding-left: 16px; }
.fact dt { font-family: var(--f-display); font-weight: 700; font-size: 1.55rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.fact dd { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.45; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- plan sheet ---------- */
.plan { padding-bottom: clamp(56px, 8vw, 104px); }
.sheet {
  border: 1.5px solid var(--rule);
  background: var(--sheet);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
}
.sheet-strip {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-2);
}
.sheet-strip span:first-child { color: var(--ink); font-weight: 700; }
.drawing { padding: clamp(10px, 2vw, 22px); min-width: 0; border-right: 1px solid var(--ink); }
.drawing svg { display: block; width: 100%; height: auto; max-width: 100%; }
.layers { display: flex; flex-direction: column; }
.layers-head { padding: 14px 16px 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.linkbtn {
  font: 600 var(--fs-xs)/1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase;
  background: none; border: 0; padding: 4px 0; color: var(--accent); cursor: pointer;
}
.layer {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 4px 12px;
  text-align: left;
  width: 100%;
  padding: 14px 16px;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--rule);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition: background-color .15s, opacity .2s;
}
.layer:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.swatch {
  width: 18px; height: 18px; border: 2px solid var(--c); border-radius: 2px; margin-top: 2px;
  display: grid; place-items: center;
}
.swatch::after { content: ""; width: 8px; height: 8px; background: var(--c); border-radius: 1px; transition: transform .15s; }
.layer[aria-pressed="false"] .swatch::after { transform: scale(0); }
.layer[aria-pressed="false"] .layer-body { opacity: 0.5; }
.layer-body { display: grid; gap: 3px; min-width: 0; }
.layer-top { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.layer-name { font-weight: 700; font-size: 1rem; }
.layer-code { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--c); }
.layer-note { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.5; }
[data-c="m"] { --c: var(--duct); }
[data-c="w"] { --c: var(--wlan); }
[data-c="i"] { --c: var(--red); }
[data-c="s"] { --c: var(--safe); }
.practice[data-c="s"] { border-top-color: var(--yellow); }
@media (max-width: 900px) {
  .sheet { grid-template-columns: 1fr; }
  .drawing { border-right: 0; border-bottom: 1px solid var(--ink); }
}

/* svg drawing styles */
.gridline { fill: none; stroke: var(--grid); stroke-width: 1; }
.wall-ext { fill: none; stroke: var(--ink); stroke-width: 6; }
.wall-int { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: square; }
.door { fill: none; stroke: var(--ink-2); stroke-width: 1; }
.gap { fill: var(--sheet); }
.room { font-family: var(--f-mono); font-size: 8.5px; letter-spacing: 0.06em; fill: var(--ink-2); text-anchor: middle; }
.duct { fill: color-mix(in srgb, var(--duct) 12%, transparent); stroke: var(--duct); stroke-width: 1.4; }
.ahu { fill: var(--sheet); stroke: var(--duct); stroke-width: 1.6; }
.diff { fill: var(--sheet); stroke: var(--duct); stroke-width: 1.4; }
.flow { fill: none; stroke: var(--duct); stroke-width: 1.4; }
.tag { font-family: var(--f-mono); font-size: 8px; letter-spacing: 0.03em; }
.tag-m { fill: var(--duct); }
.tag-w { fill: var(--wlan); }
.tag-s { fill: var(--safe); }
.tag-i { fill: var(--red); font-weight: 700; text-anchor: middle; }
.mid { text-anchor: middle; }
.end { text-anchor: end; }
.cov0 { stop-color: var(--wlan); stop-opacity: 0.38; }
.cov1 { stop-color: var(--wlan); stop-opacity: 0.14; }
.cov2 { stop-color: var(--wlan); stop-opacity: 0; }
.ap-ring { fill: var(--sheet); stroke: var(--wlan); stroke-width: 2; }
.ap-dot { fill: var(--wlan); }
.contour { fill: none; stroke: var(--wlan); stroke-width: 1.2; stroke-dasharray: 4 3; }
.cloud { fill: none; stroke: var(--red); stroke-width: 1.6; stroke-linejoin: round; }
.delta { fill: var(--sheet); stroke: var(--red); stroke-width: 1.4; }
.hatchline { stroke: var(--safe); stroke-width: 1.5; }
.pit { fill: url(#hatch); stroke: var(--safe); stroke-width: 1.6; }
.lg { transition: opacity .25s ease; }
.lg.off { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .lg, .layer, .btn { transition: none; } }

/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--rule); }
.section-head { display: grid; gap: 14px; max-width: 46em; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -0.015em; }
.section-head p { color: var(--ink-2); font-size: 1.125rem; }

/* services */
.practices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.practice {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--c);
  padding: clamp(20px, 3vw, 30px);
  display: grid;
  gap: 16px;
  align-content: start;
  min-width: 0;
}
.practice-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.practice-code { font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.06em; color: var(--c); }
.practice h3 { font-size: var(--fs-xl); font-weight: 700; }
.practice > p { color: var(--ink-2); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ticks li { padding: 9px 0 9px 22px; border-top: 1px solid var(--rule); position: relative; font-size: 0.98rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 10px; height: 1.5px; background: var(--c); }
.practice-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; padding-top: 4px; }
.sectors { font-size: var(--fs-sm); color: var(--ink-2); }
.sectors b { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.08em; font-weight: 400; text-transform: uppercase; margin-right: 6px; }
.ticks.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
@media (max-width: 520px) { .ticks.cols { grid-template-columns: 1fr; } }
.practice-wide { grid-column: 1 / -1; }
.count { font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--ink-2); letter-spacing: 0.06em; }
.callout { font-size: var(--fs-sm); background: color-mix(in srgb, var(--c) 9%, transparent); padding: 12px 14px; border-radius: 2px; }
@media (max-width: 820px) { .practices { grid-template-columns: 1fr; } }

/* approach */
.approach-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.quote { display: grid; gap: 16px; }
.quote blockquote {
  margin: 0;
  font-family: var(--f-display);
 
  font-weight: 600;
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.quote blockquote em { font-style: normal; color: var(--accent); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.step { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 16px; align-items: start; }
.dtag {
  width: 46px; height: 46px; border: 1.5px solid var(--ink); border-radius: 50%;
  display: grid; grid-template-rows: 1fr 1fr; overflow: hidden;
  font-family: var(--f-mono); font-size: 0.72rem; text-align: center; line-height: 1;
}
.dtag span { display: grid; place-items: center; }
.dtag span:first-child { border-bottom: 1px solid var(--ink); font-weight: 700; font-size: 0.85rem; }
.dtag span:last-child { color: var(--ink-2); font-size: 0.62rem; }
.step h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.step p { color: var(--ink-2); font-size: 0.98rem; }
@media (max-width: 900px) { .approach-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* survey */
.survey-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.survey-copy { display: grid; gap: 18px; }
.survey-copy h2 { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -0.015em; }
.survey-copy p { color: var(--ink-2); font-size: 1.075rem; }
.form-sheet { border: 1.5px solid var(--ink); background: var(--sheet); min-width: 0; }
.form-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; border-bottom: 1.5px solid var(--ink); }
.form-head > div { padding: 10px 14px; display: grid; gap: 2px; }
.form-head > div + div { border-left: 1px solid var(--ink); }
.form-head .v { font-family: var(--f-mono); font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.03em; }
.form-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fgroup { padding: 16px 16px 18px; border-bottom: 1px solid var(--rule); min-width: 0; }
.fgroup:nth-child(odd) { border-right: 1px solid var(--rule); }
.fgroup:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
.fgroup h3 { font-family: var(--f-mono); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; color: var(--wlan); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checks li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; font-size: 0.95rem; line-height: 1.45; }
.checks li::before { content: ""; width: 12px; height: 12px; border: 1.5px solid var(--ink-2); margin-top: 4px; }
@media (max-width: 900px) { .survey-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .form-body { grid-template-columns: 1fr; }
  .fgroup:nth-child(odd) { border-right: 0; }
  .form-head { grid-template-columns: 1fr 1fr; }
  .form-head > div:nth-child(2) { grid-column: 1 / -1; grid-row: 1; border-left: 0; border-bottom: 1px solid var(--ink); }
  .form-head > div:nth-child(3) { border-left: 1px solid var(--ink); }
}

/* team */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.person { display: grid; gap: 12px; align-content: start; padding-top: 20px; border-top: 1.5px solid var(--ink); min-width: 0; }
.mono-mark {
  width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--ink);
  display: grid; place-items: center; font-family: var(--f-mono); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.04em;
}
.person h3 { font-size: 1.3rem; font-weight: 700; }
.creds { font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.06em; color: var(--accent); }
.role { font-weight: 600; font-size: 0.98rem; }
.person p.bio { color: var(--ink-2); font-size: 0.98rem; }
@media (max-width: 860px) { .team { grid-template-columns: 1fr; } }

/* name */
.name-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.dim-word { display: flex; gap: 0.05em; font-family: var(--f-display); font-weight: 800; font-size: clamp(4.2rem, 13vw, 9.5rem); line-height: 0.9; letter-spacing: -0.02em; }
.dim-part { display: flex; flex-direction: column; align-items: stretch; }
.dim-glyphs { padding-inline: 0.02em; }
.dim-part:last-child .dim-glyphs::first-letter { color: var(--yellow); }
.dim-word { font-stretch: normal !important; font-weight: 800; }
.dim-line { position: relative; height: 1px; background: var(--ink-2); margin-top: 0.22em; }
.dim-line::before, .dim-line::after { content: ""; position: absolute; top: -6px; width: 1px; height: 13px; background: var(--ink-2); }
.dim-line::before { left: 0; }
.dim-line::after { right: 0; }
.dim-label { font-family: var(--f-mono); font-size: 0.75rem; font-weight: 400; letter-spacing: 0.14em; text-align: center; color: var(--ink-2); margin-top: 10px; line-height: 1.2; }
.name-copy { display: grid; gap: 14px; max-width: 34em; }
.name-copy h2 { font-size: var(--fs-xl); font-weight: 700; }
.name-copy p { color: var(--ink-2); font-size: 1.075rem; }
@media (max-width: 860px) { .name-grid { grid-template-columns: 1fr; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-copy { display: grid; gap: 22px; }
.contact-copy h2 { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -0.015em; }
.contact-copy > p { color: var(--ink-2); font-size: 1.1rem; }
.detail { display: grid; gap: 6px; padding-top: 16px; border-top: 1px solid var(--rule); }
.detail-row { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; justify-content: space-between; }
.detail .v { font-size: 1.15rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--rule); }
.office { padding: 14px 14px 14px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 2px; font-size: var(--fs-sm); color: var(--ink-2); min-width: 0; }
.office:nth-child(odd) { border-right: 1px solid var(--rule); }
.office:nth-child(even) { padding-left: 14px; }
.office b { color: var(--ink); font-size: 1rem; font-weight: 700; }
.office .hq { font-family: var(--f-mono); font-size: 0.65rem; letter-spacing: 0.08em; color: var(--accent); margin-left: 6px; font-weight: 400; }
@media (max-width: 420px) { .offices { grid-template-columns: 1fr; } .office:nth-child(odd) { border-right: 0; } .office:nth-child(even) { padding-left: 0; } }
.copy { font: 600 0.7rem/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--rule); background: var(--sheet); color: var(--ink); padding: 7px 9px; border-radius: 2px; cursor: pointer; }
.copy:hover { border-color: var(--ink); }
form.req { background: var(--sheet); border: 1.5px solid var(--ink); padding: clamp(20px, 3vw, 30px); display: grid; gap: 18px; min-width: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field legend { font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); padding: 0; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 11px 12px;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.field textarea { min-height: 110px; resize: vertical; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-block; padding: 8px 12px; border: 1px solid var(--rule); border-radius: 2px;
  font-size: var(--fs-sm); cursor: pointer; background: var(--paper); user-select: none;
}
.chip input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-foot { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.status { font-size: var(--fs-sm); color: var(--ink-2); min-height: 1.4em; }
.status.ok { color: var(--wlan); }
.status.err { color: var(--red); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }

/* footer title block */
.site-footer { padding-block: 40px 48px; margin-top: 0; }
.tb-brand img { height: 40px; width: auto; display: block; margin-block: 2px; }
.titleblock { border: 1.5px solid var(--rule); background: var(--sheet); display: grid; grid-template-columns: 1.6fr 1.3fr 1fr 1fr; }
.tb { padding: 12px 14px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: grid; gap: 4px; align-content: start; min-width: 0; }
.tb:nth-child(4n) { border-right: 0; }
.tb:nth-last-child(-n+4) { border-bottom: 0; }
.tb .v { font-size: var(--fs-sm); font-weight: 600; }
.tb .v a { text-decoration: none; }
.tb .v a:hover { text-decoration: underline; }
.tb-brand .brand-word { font-size: 1.35rem; }
.tb-links { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .titleblock { grid-template-columns: 1fr 1fr; }
  .tb { border-bottom: 1px solid var(--rule) !important; border-right: 1px solid var(--rule) !important; }
  .tb:nth-child(2n) { border-right: 0 !important; }
  .tb:nth-last-child(-n+2) { border-bottom: 0 !important; }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* =========================================================
   Inner pages (services, guides, hubs)
   ========================================================= */
.skip { position: absolute; left: -9999px; top: 0; background: var(--yellow); color: var(--navy); padding: 10px 14px; z-index: 50; font-weight: 700; }
.skip:focus { left: 12px; top: 12px; }
.nav a[aria-current="page"] { color: var(--yellow); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* mobile menu */
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; align-content: center; gap: 5px; padding: 0 10px; border: 1px solid rgba(255,255,255,.35); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; height: 2px; background: #fff; }
.menu[open] summary { border-color: var(--yellow); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); background: var(--navy); border: 1px solid rgba(255,255,255,.2); min-width: 240px; padding: 8px 0; display: grid; box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.menu-panel a { color: #fff; text-decoration: none; padding: 11px 18px; font-weight: 500; }
.menu-panel a.sub { padding-left: 32px; font-size: .92rem; color: #B7C5D3; }
.menu-panel a:hover { background: rgba(255,255,255,.06); color: var(--yellow); }
@media (max-width: 960px) { .menu { display: block; } }
@media (max-width: 520px) { .header-row .btn-sky { display: none; } .menu { margin-left: auto; } }

/* title band */
.page-hero { padding-block: clamp(32px, 5vw, 56px) clamp(34px, 5vw, 60px); }
.page-hero .wrap { display: grid; gap: 14px; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 700; letter-spacing: -0.01em; max-width: 22em; }
.page-hero .label { color: var(--yellow); text-transform: none; letter-spacing: .04em; font-size: .85rem; }
.page-lede { color: var(--ink-2); font-size: var(--fs-lg); max-width: 40em; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 8px; font-size: .82rem; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--yellow); }

/* article + sidebar */
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 5vw, 64px); padding-block: clamp(36px, 5vw, 64px); align-items: start; }
.page-grid.wide { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 900px) { .page-grid { grid-template-columns: minmax(0, 1fr); } }
.prose { max-width: 46rem; min-width: 0; font-size: 1.075rem; line-height: 1.7; }
.page-grid.wide .prose { max-width: none; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); font-weight: 700; margin-top: 2em; padding-top: .2em; }
.prose h3 { font-size: 1.2rem; font-weight: 700; margin-top: 1.6em; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose p.lead { font-size: 1.25rem; line-height: 1.6; color: var(--ink); border-left: 3px solid var(--c); padding-left: 18px; }
.prose a { color: var(--duct); text-underline-offset: 3px; }
.prose a:hover { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--c); font-weight: 700; }
.prose ul.checklist { list-style: none; padding-left: 0; border-top: 1px solid var(--rule); }
.prose ul.checklist li { position: relative; padding: 10px 0 10px 32px; margin: 0; border-bottom: 1px solid var(--rule); }
.prose ul.checklist li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 14px; height: 14px; border: 1.5px solid var(--c); }
.prose ul.checklist li::after { content: ""; position: absolute; left: 6px; top: 17px; width: 5px; height: 8px; border: solid var(--c); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.prose .note { background: var(--sheet); border: 1px solid var(--rule); border-left: 4px solid var(--yellow); padding: 16px 18px; font-size: 1rem; }
.prose .note p + p { margin-top: .6em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .96rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.prose th { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); border-bottom: 2px solid var(--ink); }
.prose details.faq { border-top: 1px solid var(--rule); padding: 4px 0; }
.prose details.faq:last-of-type { border-bottom: 1px solid var(--rule); }
.prose details.faq summary { cursor: pointer; font-weight: 700; padding: 12px 28px 12px 0; position: relative; list-style: none; }
.prose details.faq summary::-webkit-details-marker { display: none; }
.prose details.faq summary::after { content: "+"; position: absolute; right: 4px; top: 8px; font-size: 1.4rem; font-weight: 500; color: var(--c); }
.prose details.faq[open] summary::after { content: "\2212"; }
.prose details.faq p { padding-bottom: 14px; color: var(--ink-2); }
.prose details.faq + details.faq { margin-top: 0; }

.side { display: grid; gap: 18px; position: sticky; top: 110px; }
@media (max-width: 900px) { .side { position: static; } }
.side-card { background: var(--sheet); border: 1px solid var(--rule); border-top: 3px solid var(--c, var(--yellow)); padding: 20px; display: grid; gap: 10px; font-size: .95rem; color: var(--ink-2); }
.side-title { font-size: 1.15rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.side-title:hover { color: var(--duct); }
.cta-card { --c: var(--yellow); }
.cta-card .btn { justify-self: start; }
.side-phone a { font-weight: 700; color: var(--ink); text-decoration: none; }

/* card lists (related reading, hubs) */
.related { padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--rule); }
.related .label { margin-bottom: 18px; }
.card-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card-list a { display: grid; gap: 6px; height: 100%; padding: 18px 18px 20px; background: var(--sheet); border: 1px solid var(--rule); border-top: 3px solid var(--c); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.card-list a:hover { border-color: var(--c); transform: translateY(-2px); }
.card-title { font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.card-desc { font-size: .92rem; color: var(--ink-2); line-height: 1.5; }
@media (prefers-reduced-motion: reduce) { .card-list a { transition: none; } .card-list a:hover { transform: none; } }

/* hub pages */
.hub-section + .hub-section { margin-top: clamp(40px, 6vw, 64px); }
.hub-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px 20px; margin-bottom: 18px; border-bottom: 2px solid var(--c); padding-bottom: 10px; }
.hub-head h2 { font-size: var(--fs-xl); font-weight: 700; }
.hub-head p { color: var(--ink-2); max-width: 40em; }
.hub-head a { color: var(--duct); font-weight: 600; font-size: .95rem; }
.sitemap-cols { columns: 2 320px; column-gap: 40px; }
.sitemap-cols section { break-inside: avoid; margin-bottom: 28px; }
.sitemap-cols h2 { font-size: 1.1rem; margin-bottom: 8px; }
.sitemap-cols ul { margin: 0; padding-left: 1.1em; }
.sitemap-cols li { margin: 4px 0; }
.sitemap-cols a { color: var(--ink); }

/* call-to-action band */
.cta-band { padding-block: clamp(40px, 6vw, 64px); }
.cta-band-row { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.cta-band h2 { font-size: var(--fs-xl); font-weight: 700; margin-bottom: 8px; }
.cta-band p { color: var(--ink-2); max-width: 38em; }

/* footer link columns */
.footer-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding-bottom: 32px; }
.footer-links ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 7px; font-size: .9rem; }
.footer-links a { color: #DDE5EE; text-decoration: none; }
.footer-links a:hover { color: var(--yellow); }
.footer-links a.more { color: var(--yellow); font-weight: 600; }
.footer-links .label { color: var(--yellow); }
@media (max-width: 900px) { .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .footer-links { grid-template-columns: 1fr; } }
.site-footer a { color: inherit; }

/* form messages */
.form-ok { border: 1px solid var(--wlan); background: color-mix(in srgb, var(--wlan) 10%, transparent); padding: 14px 16px; display: grid; gap: 4px; }
.form-err { border: 1px solid var(--red); background: color-mix(in srgb, var(--red) 9%, transparent); padding: 12px 16px; color: var(--ink); }
.field-err { color: var(--red); font-size: .88rem; }
.field [aria-invalid="true"] { border-color: var(--red); }

/* home: service cards link out */
.practice h3 a { color: inherit; text-decoration: none; }
.practice h3 a:hover { color: var(--duct); }
.ticks a { color: inherit; text-decoration: none; }
.ticks a:hover { color: var(--duct); text-decoration: underline; }
.practice-more { font-weight: 600; color: var(--duct); font-size: .95rem; }
.cta-band + .site-footer, .site-footer { border-top: 1px solid rgba(255,255,255,.14); padding-top: clamp(36px, 5vw, 56px); }
@media (max-width: 600px) { .prose p.lead { font-size: 1.1rem; padding-left: 14px; } .prose { font-size: 1.02rem; } }
