/* RRD Engr & Constr — site system
   Concrete / façade-ink / logo cyan / hi-vis amber (risk only)
   Archivo (variable width) for structure, Source Serif 4 for reading. */

:root {
  --concrete: #E8ECEF;
  --concrete-2: #DCE2E7;
  --paper: #F7F9FA;
  --white: #FFFFFF;
  --ink: #0B2238;
  --ink-2: #263C52;
  --steel: #56687A;
  --rule: #C5CFD8;
  --rule-soft: #D9E0E6;
  --navy: #0B2238;
  --navy-2: #12304C;
  --navy-3: #1B4064;
  --cyan: #22B8E6;
  --cyan-soft: #BFEAF8;
  --blue: #0C77B3;
  --amber: #F2B200;
  --amber-ink: #6B4E00;
  --amber-soft: #FFF3CC;

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --r-s: 3px;
  --r-m: 6px;
  --shadow: 0 1px 0 rgba(11, 34, 56, .06), 0 10px 30px -12px rgba(11, 34, 56, .25);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  background: var(--concrete);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "kern", "liga", "tnum" 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--cyan-soft); color: var(--ink); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--sans); color: var(--ink); margin: 0; letter-spacing: -.01em; }
.display {
  font-stretch: 72%;
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.02em;
}
.h-xl { font-size: clamp(44px, 7.4vw, 104px); }
.h-l { font-size: clamp(36px, 5vw, 68px); }
.h-m { font-size: clamp(28px, 3.4vw, 44px); }
.h-s { font-size: clamp(21px, 2vw, 26px); font-weight: 700; line-height: 1.15; }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 62ch; }
.kicker { font-size: 15px; font-weight: 600; color: var(--steel); margin: 0 0 14px; }
.kicker b { color: var(--ink); font-weight: 700; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 16px/1 var(--sans);
  padding: 15px 20px 14px;
  border-radius: var(--r-s);
  text-decoration: none;
  border: 2px solid var(--ink);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  cursor: pointer;
}
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.on-dark .btn-solid { background: var(--cyan); border-color: var(--cyan); color: var(--ink); }
.on-dark .btn-solid:hover { background: #fff; border-color: #fff; }
.on-dark .btn-line { color: #fff; border-color: rgba(255,255,255,.6); }
.on-dark .btn-line:hover { background: #fff; color: var(--ink); }
.btn svg { width: 18px; height: 18px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(232, 236, 239, .86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--rule-soft);
}
.site-header .wrap { display: flex; align-items: center; height: var(--header-h); gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand img.mark { width: auto; height: 38px; }
.brand img.word { height: 20px; width: auto; }
.brand span { font-size: 12px; line-height: 1.15; color: var(--steel); border-left: 1px solid var(--rule); padding-left: 10px; font-weight: 500; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 550; font-size: 15px;
  padding: 8px 11px; border-radius: var(--r-s);
}
.nav a:hover, .nav a[aria-current="page"] { background: rgba(11, 34, 56, .07); }
.search-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--rule); background: var(--paper); color: var(--steel);
  font: 500 14px var(--sans); padding: 8px 10px; border-radius: var(--r-s); cursor: pointer;
}
.search-btn kbd { font: 600 11px var(--sans); border: 1px solid var(--rule); border-radius: 3px; padding: 1px 5px; color: var(--steel); background: #fff; }
.search-btn:hover { border-color: var(--ink); color: var(--ink); }
.call { font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.call:hover { color: var(--blue); }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.menu-btn svg { width: 28px; height: 28px; }
.progress { position: absolute; left: 0; bottom: -1px; height: 3px; width: 0; background: var(--cyan); transition: width .1s linear; }

@media (max-width: 1080px) {
  .brand span { display: none; }
  .nav a { padding: 8px 8px; font-size: 14.5px; }
}
@media (max-width: 960px) {
  .nav, .call, .site-header .search-btn { display: none; }
  .menu-btn { display: block; }
  .site-header .wrap { gap: 12px; }
  .m-search { display: inline-flex; margin-left: auto; }
}
.m-search { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; }
.m-search svg { width: 24px; height: 24px; }
@media (max-width: 960px) { .m-search { display: inline-flex; } .menu-btn { margin-left: 0; } }

.drawer {
  position: fixed; inset: 0; z-index: 60; background: var(--navy); color: #fff;
  display: none; flex-direction: column; padding: 18px var(--gut) 32px; overflow-y: auto;
}
.drawer.open { display: flex; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; height: 48px; }
.drawer-top img { height: 18px; width: auto; }
.drawer button.close { background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.drawer nav { display: flex; flex-direction: column; margin-top: 28px; }
.drawer nav a { color: #fff; text-decoration: none; font: 750 34px/1.15 var(--sans); font-stretch: 75%; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.drawer .drawer-call { margin-top: 28px; color: var(--cyan); font-weight: 700; font-size: 20px; text-decoration: none; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--concrete); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); min-height: calc(100vh - var(--header-h)); max-height: 980px; }
.hero-copy { padding: clamp(40px, 7vh, 96px) var(--gut) 56px max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut))); display: flex; flex-direction: column; justify-content: center; }
.hero h1 { margin: 0 0 28px; }
.hero h1 .l2 { display: block; color: var(--blue); }
.hero .lede { margin: 0 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-cred { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--steel); }
.hero-cred b { display: block; color: var(--ink); font-size: 16px; }
.hero-photo { position: relative; min-height: 520px; background: var(--navy); overflow: hidden; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,34,56,.0) 55%, rgba(11,34,56,.55)); pointer-events: none; }
.ropes { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.ropes line { stroke: var(--cyan); stroke-width: 1.5; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: drop 2.2s var(--ease) forwards; }
.ropes line:nth-of-type(2) { animation-delay: .25s; }
.ropes line:nth-of-type(3) { animation-delay: .5s; }
.ropes .tag { opacity: 0; animation: fade .6s ease forwards; }
.ropes .tag:nth-of-type(1) { animation-delay: 1.6s; }
.ropes .tag:nth-of-type(2) { animation-delay: 1.9s; }
.ropes .tag:nth-of-type(3) { animation-delay: 2.2s; }
.ropes text { font: 600 13px var(--sans); fill: #fff; }
.ropes rect { fill: rgba(11,34,56,.78); }
.photo-credit { position: absolute; right: 12px; bottom: 10px; z-index: 3; font-size: 11px; color: rgba(255,255,255,.75); }
.photo-credit a { color: inherit; }
@keyframes drop { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .ropes line { animation: none; stroke-dashoffset: 0; }
  .ropes .tag { animation: none; opacity: 1; }
  * { scroll-behavior: auto !important; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; max-height: none; }
  .hero-copy { padding: 40px var(--gut) 40px; }
  .hero-photo { min-height: 380px; order: 2; }
}

/* ---------- ticker ---------- */
.ticker { background: var(--ink); color: #fff; overflow: hidden; border-top: 3px solid var(--cyan); }
.ticker-track { display: flex; gap: 0; width: max-content; animation: tick 80s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: flex; align-items: baseline; gap: 12px; padding: 16px 34px; border-right: 1px solid rgba(255,255,255,.14); white-space: nowrap; font-size: 15px; }
.ticker-item b { font: 800 22px var(--sans); font-stretch: 75%; color: var(--cyan); }
.ticker-item small { color: rgba(255,255,255,.55); font-size: 12px; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; flex-wrap: wrap; width: auto; } }

/* ---------- sections ---------- */
.sec { padding: clamp(64px, 9vw, 128px) 0; }
.sec-tight { padding: clamp(48px, 6vw, 80px) 0; }
.sec-dark { background: var(--navy); color: #fff; }
.sec-dark h2, .sec-dark h3 { color: #fff; }
.sec-dark .lede { color: rgba(255,255,255,.78); }
.sec-dark .kicker { color: rgba(255,255,255,.6); }
.sec-paper { background: var(--paper); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head .lede { margin: 0; }
@media (max-width: 820px) { .sec-head { grid-template-columns: 1fr; gap: 18px; } }

/* ---------- risk rows ---------- */
.risk { border-top: 1px solid rgba(255,255,255,.16); }
.risk-row { display: grid; grid-template-columns: 340px minmax(0, 1fr) 260px; gap: 40px; padding: 38px 0; border-bottom: 1px solid rgba(255,255,255,.16); align-items: start; }
.risk-word { font: 800 clamp(48px, 5.2vw, 72px)/.85 var(--sans); font-stretch: 70%; color: #fff; display: flex; gap: 14px; align-items: flex-start; }
.risk-word::before { content: ""; width: 10px; height: .8em; flex: none; background: repeating-linear-gradient(-45deg, var(--amber) 0 6px, var(--ink) 6px 12px); margin-top: .06em; }
.risk-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin: 0 0 16px; padding: 0; list-style: none; }
.risk-chain li { position: relative; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); padding: 6px 10px; border-radius: var(--r-s); font-size: 14.5px; }
.risk-chain li + li::before { content: ""; position: absolute; left: -21px; top: 50%; width: 16px; height: 2px; background: var(--amber); }
.risk-chain li + li::after { content: ""; position: absolute; left: -9px; top: calc(50% - 3px); border: 4px solid transparent; border-left-color: var(--amber); }
.risk-body p { margin: 0; color: rgba(255,255,255,.78); max-width: 60ch; }
.risk-fact { border-left: 3px solid var(--amber); padding-left: 16px; }
.risk-fact b { display: block; font: 800 42px/1 var(--sans); font-stretch: 75%; color: var(--amber); }
.risk-fact span { font-size: 14px; color: rgba(255,255,255,.72); display: block; margin-top: 6px; }
.risk-fact a { color: var(--cyan); font-size: 14px; display: inline-block; margin-top: 10px; font-weight: 600; }
@media (max-width: 1100px) { .risk-row { grid-template-columns: 1fr 260px; } .risk-word { grid-column: 1 / -1; } }
@media (max-width: 760px) {
  .risk-row { grid-template-columns: 1fr; gap: 18px; }
  .risk-chain { flex-direction: column; align-items: flex-start; gap: 16px; }
  .risk-chain li + li::before { left: 18px; top: -15px; width: 2px; height: 12px; }
  .risk-chain li + li::after { display: none; }
}

/* ---------- independence diagram ---------- */
.indep { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.indep-fig { position: sticky; top: calc(var(--header-h) + 24px); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-m); padding: clamp(14px, 2.4vw, 28px); }
.indep-fig svg { width: 100%; height: auto; display: block; }
.indep-fig .node rect { fill: #fff; stroke: var(--ink); stroke-width: 1.5; }
.indep-fig .node.owner rect { fill: var(--ink); }
.indep-fig .node.owner text { fill: #fff; }
.indep-fig .node.eng rect { stroke: var(--cyan); stroke-width: 2.5; }
.indep-fig .node.bca rect { fill: var(--concrete); stroke-dasharray: 4 3; }
.indep-fig text { font-family: var(--sans); fill: var(--ink); }
.indep-fig .t1 { font-size: 19px; font-weight: 750; }
.indep-fig .t2 { font-size: 14px; fill: var(--steel); }
.indep-fig .node.owner .t2 { fill: rgba(255,255,255,.7); }
.indep-fig .ln { stroke: var(--ink); stroke-width: 2; fill: none; }
.indep-fig .ln-c { stroke: var(--cyan); stroke-width: 2.5; fill: none; }
.indep-fig .ln-x { stroke: var(--amber); stroke-width: 2; stroke-dasharray: 6 6; fill: none; }
.indep-fig .lbl { font-size: 14px; font-weight: 650; fill: var(--ink-2); }
.indep-fig .lbl-x { font-size: 14px; font-weight: 700; fill: var(--amber-ink); }
.rules { list-style: none; padding: 0; margin: 28px 0 32px; counter-reset: r; }
.rules li { position: relative; padding: 16px 0 16px 0; border-top: 1px solid var(--rule); }
.rules li:last-child { border-bottom: 1px solid var(--rule); }
.rules b { display: block; font-size: 18px; margin-bottom: 3px; }
.rules span { color: var(--ink-2); }
@media (max-width: 960px) { .indep { grid-template-columns: 1fr; } .indep-fig { position: static; } }

/* ---------- services mosaic ---------- */
.svc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.svc a { position: relative; display: block; overflow: hidden; color: #fff; text-decoration: none; background: var(--navy); border-radius: var(--r-m); min-height: 300px; isolation: isolate; }
.svc a img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); z-index: -2; }
.svc a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,34,56,.05) 25%, rgba(11,34,56,.88)); }
.svc a:hover img { transform: scale(1.04); }
.svc .svc-in { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 24px; }
.svc h3 { color: #fff; font: 800 clamp(28px, 2.6vw, 38px)/1 var(--sans); font-stretch: 75%; margin-bottom: 8px; }
.svc p { margin: 0; color: rgba(255,255,255,.85); font-size: 15.5px; max-width: 46ch; }
.svc .s1 { grid-column: span 7; grid-row: span 2; min-height: 620px; }
.svc .s2 { grid-column: span 5; }
.svc .s3 { grid-column: span 5; }
.svc .s4 { grid-column: span 12; min-height: 260px; }
.svc .s4 img { object-position: 50% 60%; }
@media (max-width: 860px) {
  .svc .s1, .svc .s2, .svc .s3, .svc .s4 { grid-column: span 12; grid-row: auto; min-height: 320px; }
}

/* ---------- field guide index ---------- */
.lib { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.lib-col { padding: 22px 20px 26px 0; border-right: 1px solid var(--rule); }
.lib-col + .lib-col { padding-left: 20px; }
.lib-col:last-child { border-right: 0; }
.lib-col h3 { font: 800 26px/1 var(--sans); font-stretch: 75%; margin-bottom: 4px; }
.lib-col h3 a { color: var(--ink); text-decoration: none; }
.lib-col h3 a:hover { color: var(--blue); }
.lib-col .lib-sub { font-size: 13.5px; color: var(--steel); margin: 0 0 16px; }
.lib-col ul { list-style: none; padding: 0; margin: 0; }
.lib-col li { border-top: 1px solid var(--rule-soft); }
.lib-col li a { display: block; padding: 11px 0; color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.3; font-weight: 550; }
.lib-col li a small { display: block; color: var(--steel); font-weight: 450; font-size: 12.5px; margin-top: 3px; }
.lib-col li a:hover { color: var(--blue); }
@media (max-width: 1100px) { .lib { grid-template-columns: repeat(3, minmax(0, 1fr)); } .lib-col:nth-child(3) { border-right: 0; } .lib-col:nth-child(4) { padding-left: 0; } }
@media (max-width: 720px) { .lib { grid-template-columns: 1fr; } .lib-col, .lib-col + .lib-col { padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--rule); } }

/* ---------- tools strip ---------- */
.tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tool-card { display: flex; flex-direction: column; background: var(--navy-2); color: #fff; text-decoration: none; border-radius: var(--r-m); padding: 24px; border: 1px solid rgba(255,255,255,.08); min-height: 280px; transition: border-color .2s; }
.tool-card:hover { border-color: var(--cyan); color: #fff; }
.tool-card .ti { height: 92px; margin-bottom: 18px; }
.tool-card .ti svg { height: 100%; width: auto; }
.tool-card h3 { color: #fff; font-size: 21px; font-weight: 750; line-height: 1.15; margin-bottom: 8px; }
.tool-card p { margin: 0; color: rgba(255,255,255,.72); font-size: 15px; }
.tool-card .go { margin-top: auto; padding-top: 18px; color: var(--cyan); font-weight: 650; font-size: 15px; }
@media (max-width: 1000px) { .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tools { grid-template-columns: 1fr; } }

/* ---------- projects ---------- */
.proj { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 22px; }
.proj figure { margin: 0; }
.proj .ph { display: grid; grid-template-columns: 1.4fr 1fr; gap: 6px; height: 300px; }
.proj .ph img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-s); }
.proj .ph.single { grid-template-columns: 1fr; }
.proj figcaption { padding-top: 14px; }
.proj .sector { font-size: 13px; color: var(--steel); font-weight: 600; }
.proj h3 { font-size: 21px; margin: 2px 0 6px; }
.proj p { margin: 0; font-size: 15px; color: var(--ink-2); }
@media (max-width: 1000px) { .proj { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .proj { grid-template-columns: 1fr; } .proj .ph { height: 260px; } }

/* ---------- credentials ---------- */
.creds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.cred { padding: 24px 20px 24px 0; border-right: 1px solid var(--rule); }
.cred + .cred { padding-left: 20px; }
.cred:last-child { border-right: 0; }
.cred b { display: block; font: 800 46px/1 var(--sans); font-stretch: 72%; }
.cred span { display: block; font-weight: 650; margin-top: 8px; }
.cred small { display: block; color: var(--steel); font-size: 14px; margin-top: 4px; }
@media (max-width: 860px) { .creds { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cred:nth-child(2) { border-right: 0; } .cred:nth-child(3) { padding-left: 0; } .cred { border-bottom: 1px solid var(--rule); } }

/* ---------- CTA band ---------- */
.cta-band { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: center; }
.cta-band .contact-lines { display: grid; gap: 14px; }
.cta-band .contact-lines a { display: block; color: #fff; text-decoration: none; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.18); font-size: 20px; font-weight: 650; }
.cta-band .contact-lines a small { display: block; font-size: 13px; color: rgba(255,255,255,.6); font-weight: 500; }
.cta-band .contact-lines a:hover { color: var(--cyan); }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: #081A2B; color: rgba(255,255,255,.75); padding: 72px 0 36px; font-size: 14.5px; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: var(--cyan); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 36px; }
.foot-grid h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-brand img { height: 22px; width: auto; margin-bottom: 18px; }
.foot-brand p { margin: 0 0 10px; max-width: 34ch; }
.foot-base { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13px; color: rgba(255,255,255,.55); }
.foot-base p { margin: 0; max-width: 80ch; }
@media (max-width: 960px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- page heads ---------- */
.page-head { padding: clamp(40px, 6vw, 84px) 0 clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--rule); }
.page-head h1 { margin: 10px 0 18px; max-width: 18ch; }
.page-head .lede { margin: 0; }
.crumbs { font-size: 14px; color: var(--steel); display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--rule); }
.crumbs a { color: var(--steel); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.page-hero-img { position: relative; height: clamp(240px, 34vw, 440px); overflow: hidden; background: var(--navy); }
.page-hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- guide layout ---------- */
.g-head { padding: clamp(36px, 5vw, 72px) 0 36px; }
.g-head h1 { font: 800 clamp(38px, 5.2vw, 72px)/.95 var(--sans); font-stretch: 74%; letter-spacing: -.02em; margin: 14px 0 22px; max-width: 22ch; }
.g-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--steel); margin-bottom: 26px; }
.g-meta b { color: var(--ink); font-weight: 650; }
.g-short { background: var(--white); border-left: 4px solid var(--cyan); padding: 22px 26px; border-radius: 0 var(--r-m) var(--r-m) 0; max-width: 820px; box-shadow: var(--shadow); }
.g-short p { margin: 0; font: 400 19px/1.55 var(--serif); color: var(--ink); }
.g-short .gs-l { font: 700 13px var(--sans); color: var(--blue); margin-bottom: 8px; display: block; }
.g-cover { height: clamp(200px, 28vw, 380px); overflow: hidden; background: var(--navy); margin-top: 36px; }
.g-cover img { width: 100%; height: 100%; object-fit: cover; }
.wrap.g-wrap { max-width: 1420px; }
.g-body { display: grid; grid-template-columns: 230px minmax(0, 720px) 280px; gap: 44px; justify-content: space-between; padding: 56px 0 40px; }
.g-toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; font-size: 14px; padding-right: 8px; }
.g-toc summary { font-weight: 700; margin: 0 0 10px; list-style: none; cursor: default; }
.g-toc summary::-webkit-details-marker { display: none; }
.g-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rule); }
.g-toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--steel); text-decoration: none; line-height: 1.3; }
.g-toc a:hover { color: var(--ink); }
.g-toc a.active { border-left-color: var(--cyan); color: var(--ink); font-weight: 650; }
.g-side { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; display: grid; gap: 18px; }
.facts { background: var(--navy); color: #fff; border-radius: var(--r-m); padding: 22px; }
.facts h2 { color: #fff; font-size: 16px; margin-bottom: 12px; }
.facts dl { margin: 0; }
.facts dt { font-size: 12.5px; color: rgba(255,255,255,.6); margin-top: 14px; }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: 3px 0 0; font-weight: 650; font-size: 15.5px; line-height: 1.3; }
.facts dd a { color: var(--cyan); font-size: 11px; vertical-align: super; text-decoration: none; margin-left: 2px; }
.side-cta { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-m); padding: 20px; font-size: 14.5px; }
.side-cta b { display: block; font-size: 16px; margin-bottom: 6px; }
.side-cta p { margin: 0 0 12px; color: var(--ink-2); }
.side-cta a.btn { padding: 11px 14px; font-size: 14.5px; }
@media (max-width: 1180px) {
  .g-body { grid-template-columns: 220px minmax(0, 1fr); }
  .g-side { grid-column: 2; position: static; order: -1; }
}
@media (max-width: 900px) {
  .g-body { grid-template-columns: minmax(0, 1fr); padding-top: 32px; gap: 28px; }
  .g-toc { position: static; max-height: none; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-m); padding: 16px; }
  .g-toc details summary { cursor: pointer; font-weight: 700; }
  .g-side { grid-column: 1; }
}

/* ---------- prose ---------- */
.prose { font-family: var(--serif); font-size: 19px; line-height: 1.68; color: #13283D; }
.prose > * { margin-top: 0; }
.prose p { margin: 0 0 1.05em; }
.prose h2 { font: 800 clamp(30px, 3vw, 38px)/1.02 var(--sans); font-stretch: 76%; margin: 2.1em 0 .6em; padding-top: .7em; border-top: 2px solid var(--ink); letter-spacing: -.01em; }
.prose h3 { font: 700 22px/1.2 var(--sans); margin: 1.7em 0 .5em; }
.prose h4 { font: 700 18px/1.25 var(--sans); margin: 1.4em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--blue); }
.prose strong { font-weight: 650; color: var(--ink); }
.prose a { color: var(--blue); }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--rule); color: var(--ink-2); font-style: italic; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2em 0; }
.prose code { font: 500 .85em/1 var(--sans); background: var(--concrete-2); padding: 2px 5px; border-radius: 3px; }
.prose sup { line-height: 0; }
.prose a.footnote-ref, .prose sup a { font: 700 11px var(--sans); text-decoration: none; background: var(--cyan-soft); color: var(--ink); padding: 1px 5px 2px; border-radius: 3px; margin-left: 1px; }
.prose a.footnote-ref:hover { background: var(--cyan); }
.tbl { overflow-x: auto; margin: 1.6em 0 1.8em; border: 1px solid var(--rule); border-radius: var(--r-m); background: #fff; -webkit-overflow-scrolling: touch; }
.prose table { border-collapse: collapse; width: 100%; font: 400 15px/1.45 var(--sans); min-width: 500px; }
.prose th { text-align: left; background: var(--ink); color: #fff; font-weight: 650; padding: 11px 14px; vertical-align: bottom; }
.prose td { padding: 11px 14px; border-top: 1px solid var(--rule-soft); vertical-align: top; }
.prose tr:nth-child(even) td { background: #F7F9FA; }
.prose td:first-child { font-weight: 600; color: var(--ink); }

/* custom blocks */
.blk { font-family: var(--sans); font-size: 16.5px; line-height: 1.58; margin: 2em 0; padding: 22px 24px; border-radius: var(--r-m); }
.blk p:last-child, .blk ul:last-child, .blk ol:last-child { margin-bottom: 0; }
.blk .blk-t { font: 750 18px/1.25 var(--sans); margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
.blk-horror { background: #fff; border: 1px solid var(--rule); padding-top: 30px; position: relative; overflow: hidden; }
.blk-horror::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: repeating-linear-gradient(-45deg, var(--amber) 0 12px, var(--ink) 12px 24px); }
.blk-horror .blk-t::before { content: "Risk"; font: 700 12px var(--sans); background: var(--amber); color: var(--ink); padding: 3px 7px; border-radius: 3px; }
.blk-authority { background: var(--navy); color: rgba(255,255,255,.9); }
.blk-authority .blk-t { color: #fff; }
.blk-authority .blk-t::before { content: ""; width: 22px; height: 22px; flex: none; border: 2px solid var(--cyan); border-radius: 50%; box-shadow: inset 0 0 0 4px var(--navy), inset 0 0 0 7px var(--cyan); }
.blk-authority a { color: var(--cyan); }
.blk-authority sup a, .blk-authority a.footnote-ref { background: rgba(34,184,230,.25); color: #fff; }
.blk-rrd { background: var(--white); border: 1px solid var(--rule); border-left: 4px solid var(--ink); }
.blk-rrd .blk-t::before { content: ""; width: 14px; height: 24px; background: url(/assets/logo-mark.png) center/contain no-repeat; }
.blk-engineer { background: #E9F7FD; border: 1px solid #A9DDF0; }
.blk-engineer .blk-t { color: var(--blue); }
.blk-engineer .blk-t::before { content: "PE"; font: 800 12px var(--sans); color: #fff; background: var(--blue); border-radius: 3px; padding: 3px 6px; }
.blk-checklist { background: var(--white); border: 1px solid var(--rule); }
.blk-checklist ul { list-style: none; padding: 0; margin: 0; }
.blk-checklist li { position: relative; padding: 9px 0 9px 36px; border-top: 1px solid var(--rule-soft); margin: 0; }
.blk-checklist li:first-child { border-top: 0; }
.blk-checklist li input { position: absolute; left: 2px; top: 11px; width: 19px; height: 19px; accent-color: var(--blue); cursor: pointer; }
.blk-checklist li.done { color: var(--steel); text-decoration: line-through; text-decoration-color: var(--rule); }
.blk-checklist .cl-meta { font-size: 13px; color: var(--steel); margin-top: 10px; display: flex; justify-content: space-between; }
.blk-checklist .cl-meta button { background: none; border: 0; color: var(--blue); cursor: pointer; font: 600 13px var(--sans); padding: 0; }
.blk-steps { background: var(--paper); border: 1px solid var(--rule); }
.blk-steps ol { list-style: none; counter-reset: s; padding: 0; margin: 0; }
.blk-steps li { counter-increment: s; position: relative; padding: 0 0 18px 50px; margin: 0; }
.blk-steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 14px/32px var(--sans); text-align: center; }
.blk-steps li::after { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--rule); }
.blk-steps li:last-child { padding-bottom: 0; }
.blk-steps li:last-child::after { display: none; }
.blk-stat { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; align-items: baseline; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); border-radius: 0; padding: 18px 0; }
.blk-stat b { font: 800 clamp(44px, 5vw, 64px)/.9 var(--sans); font-stretch: 70%; color: var(--blue); }
.blk-stat span { font-size: 17px; color: var(--ink-2); }

/* sources */
.sources { margin-top: 3em; padding-top: 1.2em; border-top: 2px solid var(--ink); font-family: var(--sans); }
.sources h2 { font: 800 30px/1 var(--sans); font-stretch: 76%; border: 0; padding: 0; margin: 0 0 6px; }
.sources > p { font-size: 14.5px; color: var(--steel); margin: 0 0 18px; }
.sources ol { list-style: none; counter-reset: f; padding: 0; margin: 0; font-size: 14.5px; line-height: 1.45; }
.sources li { counter-increment: f; display: grid; grid-template-columns: 36px 1fr; gap: 8px; padding: 10px 0; border-top: 1px solid var(--rule-soft); }
.sources li::before { content: counter(f); font-weight: 750; color: var(--blue); }
.sources li:target { background: var(--amber-soft); }
.sources .dom { display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--ink); background: var(--concrete); border: 1px solid var(--rule); border-radius: 3px; padding: 1px 6px; margin-right: 6px; }
.sources .dom.gov { background: var(--ink); color: #fff; border-color: var(--ink); }
.sources a.back { text-decoration: none; margin-left: 4px; font-size: 12px; }
.sources a { word-break: break-word; }

/* faq */
.faq { margin-top: 3em; font-family: var(--sans); }
.faq h2 { font: 800 30px/1 var(--sans); font-stretch: 76%; margin: 0 0 14px; padding-top: .7em; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 650; font-size: 18px; position: relative; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 24px; width: 12px; height: 12px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq details p { margin: 0 0 20px; font: 400 17px/1.65 var(--serif); color: var(--ink-2); max-width: 66ch; }

/* cite box */
.cite { margin-top: 3em; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-m); padding: 20px 22px; font-family: var(--sans); font-size: 14.5px; }
.cite b { display: block; font-size: 16px; margin-bottom: 6px; }
.cite p { margin: 0 0 10px; color: var(--ink-2); }
.cite .cite-text { background: #fff; border: 1px solid var(--rule); padding: 12px 14px; border-radius: var(--r-s); font-size: 14px; color: var(--ink); }
.cite-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; align-items: center; }
.cite-row button { font: 600 14px var(--sans); background: var(--ink); color: #fff; border: 0; padding: 9px 13px; border-radius: var(--r-s); cursor: pointer; }
.cite-row button:hover { background: var(--blue); }
.cite-row a { font-weight: 600; }

/* related */
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.rel { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-m); overflow: hidden; transition: border-color .2s; }
.rel:hover { border-color: var(--ink); color: var(--ink); }
.rel img { height: 150px; width: 100%; object-fit: cover; }
.rel div { padding: 16px 18px 20px; }
.rel small { color: var(--steel); font-weight: 600; font-size: 13px; }
.rel h3 { font-size: 18.5px; line-height: 1.22; margin-top: 4px; }
@media (max-width: 860px) { .related { grid-template-columns: 1fr; } }

/* footnote popover */
.fn-pop { position: absolute; z-index: 70; max-width: 340px; background: var(--ink); color: #fff; font: 400 13.5px/1.45 var(--sans); padding: 12px 14px; border-radius: var(--r-m); box-shadow: var(--shadow); }
.fn-pop a { color: var(--cyan); word-break: break-word; }

/* ---------- hub pages ---------- */
.cluster-list { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.cl-item { display: grid; grid-template-columns: 220px minmax(0, 1fr) 140px; gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); align-items: start; }
.cl-item:hover h3 { color: var(--blue); }
.cl-item img { width: 100%; height: 140px; object-fit: cover; border-radius: var(--r-s); }
.cl-item h3 { font-size: 24px; line-height: 1.15; margin-bottom: 8px; transition: color .2s; }
.cl-item p { margin: 0; color: var(--ink-2); font-size: 16px; max-width: 70ch; }
.cl-item .cl-m { font-size: 14px; color: var(--steel); text-align: right; }
.cl-item .cl-m b { display: block; color: var(--ink); font: 800 30px/1 var(--sans); font-stretch: 75%; }
@media (max-width: 760px) { .cl-item { grid-template-columns: 1fr; gap: 12px; } .cl-item .cl-m { text-align: left; } .cl-item img { height: 180px; } }

.cluster-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; }
.cluster-tabs a { text-decoration: none; color: var(--ink); border: 1px solid var(--rule); background: var(--paper); padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14.5px; }
.cluster-tabs a:hover, .cluster-tabs a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- generic content pages ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.split-img img { width: 100%; border-radius: var(--r-m); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.page-prose { max-width: 720px; }
.svc-detail { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px; }
.svc-detail aside { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
@media (max-width: 960px) { .svc-detail { grid-template-columns: 1fr; } .svc-detail aside { position: static; } }
.scope-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.scope-table th, .scope-table td { text-align: left; padding: 12px 10px; border-top: 1px solid var(--rule); vertical-align: top; }
.scope-table th { width: 32%; font-weight: 650; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gallery img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--r-s); }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gallery img { height: 160px; } }

/* glossary */
.az { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0 8px; position: sticky; top: var(--header-h); background: var(--concrete); padding: 10px 0; z-index: 5; }
.az a { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--rule); border-radius: var(--r-s); text-decoration: none; color: var(--ink); font-weight: 700; font-size: 14px; background: var(--paper); }
.az a:hover { background: var(--ink); color: #fff; }
.gl-filter { width: 100%; max-width: 520px; font: 500 17px var(--sans); padding: 14px 16px; border: 2px solid var(--ink); border-radius: var(--r-s); background: #fff; }
.gl-letter { font: 800 56px/1 var(--sans); font-stretch: 70%; color: var(--blue); margin: 36px 0 6px; padding-top: 10px; border-top: 2px solid var(--ink); }
.gl dl { margin: 0; }
.gl-term { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.gl-term dt { font-weight: 750; font-size: 18px; }
.gl-term dd { margin: 0; font: 400 17px/1.6 var(--serif); color: var(--ink-2); }
.gl-term dd a { font: 600 14px var(--sans); }
@media (max-width: 760px) { .gl-term { grid-template-columns: 1fr; gap: 6px; } }

/* forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 14.5px; }
.form input, .form select, .form textarea { font: 400 16px var(--sans); padding: 13px 14px; border: 1.5px solid var(--rule); border-radius: var(--r-s); background: #fff; color: var(--ink); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--cyan-soft); }
.form textarea { min-height: 140px; resize: vertical; }
.form .hint { font-weight: 400; color: var(--steel); font-size: 13px; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* ---------- tools ---------- */
.tool { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 36px; align-items: start; }
.tool-panel { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-m); padding: 24px; }
.tool-panel h2 { font-size: 18px; margin-bottom: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 650; font-size: 14.5px; display: flex; justify-content: space-between; gap: 8px; }
.field label output { font-variant-numeric: tabular-nums; color: var(--blue); }
.field input[type="number"], .field input[type="text"], .field select { font: 500 16px var(--sans); padding: 11px 12px; border: 1.5px solid var(--rule); border-radius: var(--r-s); width: 100%; background: #fff; }
.field input[type="range"] { width: 100%; accent-color: var(--blue); }
.field small { color: var(--steel); font-size: 13px; }
.seg { display: inline-flex; border: 1.5px solid var(--ink); border-radius: var(--r-s); overflow: hidden; }
.seg button { font: 600 14.5px var(--sans); padding: 9px 14px; background: #fff; border: 0; cursor: pointer; color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.out { background: var(--navy); color: #fff; border-radius: var(--r-m); padding: clamp(22px, 3vw, 34px); position: sticky; top: calc(var(--header-h) + 20px); }
.out h2 { color: #fff; font-size: 16px; font-weight: 650; color: rgba(255,255,255,.7); margin-bottom: 6px; }
.out .big { font: 800 clamp(48px, 6vw, 80px)/.95 var(--sans); font-stretch: 70%; color: var(--cyan); font-variant-numeric: tabular-nums; }
.out .big.amber { color: var(--amber); }
.out-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); }
.out-grid div b { display: block; font: 800 30px/1 var(--sans); font-stretch: 75%; font-variant-numeric: tabular-nums; }
.out-grid div span { font-size: 13.5px; color: rgba(255,255,255,.65); }
.out p { color: rgba(255,255,255,.8); font-size: 15px; margin: 18px 0 0; }
.out a { color: var(--cyan); }
.bars { margin-top: 22px; display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 150px 1fr auto; gap: 12px; align-items: center; font-size: 14px; }
.bar-track { height: 14px; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--cyan); transition: width .4s var(--ease); }
.bar-fill.amber { background: var(--amber); }
.chart { width: 100%; height: auto; margin-top: 16px; background: rgba(255,255,255,.03); border-radius: var(--r-s); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13.5px; margin-top: 10px; color: rgba(255,255,255,.8); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.nav-items { display: grid; gap: 8px; }
.nav-item { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; padding: 12px; border: 1.5px solid var(--rule); border-radius: var(--r-s); cursor: pointer; background: #fff; }
.nav-item:hover { border-color: var(--ink-2); }
.nav-item input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--blue); }
.nav-item b { display: block; font-size: 15px; line-height: 1.3; }
.nav-item small { color: var(--steel); font-size: 13px; }
.nav-item:has(input:checked) { border-color: var(--blue); background: #F0F9FE; }
.outcome { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-m); padding: 16px 18px; margin-top: 12px; }
.outcome .auth { display: inline-block; font: 750 12px var(--sans); background: var(--cyan); color: var(--ink); padding: 3px 7px; border-radius: 3px; margin-bottom: 8px; }
.outcome .auth.warn { background: var(--amber); }
.outcome h3 { color: #fff; font-size: 17px; margin-bottom: 6px; }
.outcome dl { display: grid; grid-template-columns: 70px 1fr; gap: 4px 10px; margin: 8px 0 0; font-size: 14px; }
.outcome dt { color: rgba(255,255,255,.55); }
.outcome dd { margin: 0; color: rgba(255,255,255,.88); }
.empty { color: rgba(255,255,255,.7); font-size: 16px; }
.tool-note { font-size: 14px; color: var(--steel); margin-top: 18px; max-width: 70ch; }
@media (max-width: 960px) { .tool { grid-template-columns: 1fr; } .out { position: static; } .bar { grid-template-columns: 110px 1fr auto; } }

/* ---------- command palette ---------- */
.pal { position: fixed; inset: 0; z-index: 80; background: rgba(8, 26, 43, .55); display: none; align-items: flex-start; justify-content: center; padding: 10vh 16px 16px; backdrop-filter: blur(3px); }
.pal.open { display: flex; }
.pal-box { width: 100%; max-width: 680px; background: #fff; border-radius: 10px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); overflow: hidden; }
.pal-in { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--rule); }
.pal-in svg { width: 22px; height: 22px; color: var(--steel); flex: none; }
.pal-in input { flex: 1; border: 0; font: 500 19px var(--sans); padding: 20px 0; outline: none; color: var(--ink); background: transparent; }
.pal-in kbd { font: 600 11px var(--sans); border: 1px solid var(--rule); border-radius: 3px; padding: 2px 6px; color: var(--steel); }
.pal-res { max-height: 56vh; overflow-y: auto; padding: 8px; margin: 0; list-style: none; }
.pal-res li a { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 11px 12px; border-radius: var(--r-m); text-decoration: none; color: var(--ink); }
.pal-res li a small.k { font: 700 11.5px var(--sans); color: var(--steel); padding-top: 3px; }
.pal-res li a b { display: block; font-size: 16px; font-weight: 650; line-height: 1.3; }
.pal-res li a span { display: block; font-size: 13.5px; color: var(--steel); line-height: 1.35; margin-top: 2px; }
.pal-res li a.sel, .pal-res li a:hover { background: var(--concrete); }
.pal-empty { padding: 26px 20px; color: var(--steel); font-size: 15px; }
.pal-foot { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--rule); font-size: 12.5px; color: var(--steel); }

/* misc */
.note { font-size: 14px; color: var(--steel); }
.pill { display: inline-block; font: 650 12.5px var(--sans); padding: 3px 9px; border-radius: 999px; background: var(--concrete-2); color: var(--ink); }
.two-col-list { columns: 2; column-gap: 40px; }
@media (max-width: 640px) { .two-col-list { columns: 1; } }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--ink); }
.timeline li { position: relative; padding: 0 0 26px 28px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); border: 2px solid var(--ink); }
.timeline b { display: block; font-size: 18px; }
.timeline span { color: var(--ink-2); }

@media print {
  .site-header, .site-footer, .g-toc, .g-side, .cite, .related, .drawer, .pal, .ticker { display: none !important; }
  .g-body { display: block; }
  body { background: #fff; }
  .prose { font-size: 12pt; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}

.field select#ov-bench-sel { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.note-d { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); }
.note-d summary { cursor: pointer; color: var(--blue); font-weight: 600; }
.note-d p { margin: 8px 0 0; line-height: 1.5; }
.facts .btn-solid { background: var(--cyan); border-color: var(--cyan); color: var(--ink); }
.facts .btn-solid:hover { background: #fff; border-color: #fff; color: var(--ink); }
.rel img { background: var(--concrete-2); border-bottom: 1px solid var(--rule); }
@media (max-width: 900px) { .g-side { order: 3; } }
.sources li { grid-template-columns: 36px minmax(0, 1fr); }
.sources a, .fn-pop a { overflow-wrap: anywhere; }
.sources li > div { min-width: 0; overflow-wrap: anywhere; }

/* WhatsApp QR — shown on desktop only; phones get the tap-to-chat link */
.qr { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.qr img { background: #fff; padding: 6px; border-radius: 6px; flex: none; }
.qr span { font-size: 13.5px; line-height: 1.4; color: rgba(255,255,255,.75); max-width: 30ch; }
.qr span b { color: #fff; font-size: 15px; }
.qr-foot { margin-top: 18px; }
.qr-foot:hover span { color: var(--cyan); }
.cta-band .qr-big { padding-top: 16px; }
@media (max-width: 860px), (hover: none) and (pointer: coarse) { .qr { display: none !important; } }
.foot-brand .qr img { width: 92px; height: 92px; margin: 0; }

/* hero: Singapore facade + real RRD photo hung on ropes */
.hero-photo img { object-position: 30% 50%; }
.hang { position: absolute; z-index: 3; left: 12%; bottom: 13%; width: min(52%, 330px); margin: 0; background: #fff; padding: 8px 8px 10px; border-radius: 4px; box-shadow: 0 24px 50px -18px rgba(11,34,56,.65); animation: lower 1.6s var(--ease) both .2s; }
.hang img { position: static !important; width: 100%; height: auto; aspect-ratio: 731 / 712; object-fit: cover; border-radius: 2px; }
.hang::before, .hang::after { content: ""; position: absolute; bottom: 100%; width: 2px; height: 1600px; background: var(--cyan); }
.hang::before { left: 22%; }
.hang::after { right: 22%; }
.hang figcaption { font-size: 13px; color: var(--steel); padding: 8px 4px 0; line-height: 1.35; }
.hang figcaption b { display: block; color: var(--ink); font-size: 14.5px; }
@keyframes lower { from { transform: translateY(-115%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .hang { animation: none; } }
.hero .lede b { color: var(--ink); font-weight: 650; }

/* contractor map */
.cmap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.cmap-fig { margin: 0; }
.cmap-fig svg { width: 100%; height: auto; display: block; }
.cm-ax { font: 700 15px var(--sans); fill: var(--ink); }
.cm-ax2 { font: 500 13px var(--sans); fill: var(--steel); }
.cm-zone { font: 700 13px var(--sans); fill: var(--ink); opacity: .55; }
.cm-pt { cursor: pointer; outline: none; }
.cm-pt circle { fill: #fff; stroke: var(--ink); stroke-width: 2.5; transition: r .2s; }
.cm-pt text { font: 650 14.5px var(--sans); fill: var(--ink); paint-order: stroke; stroke: rgba(255,255,255,.85); stroke-width: 4px; }
.cm-pt:hover circle, .cm-pt:focus circle, .cm-pt.on circle { fill: var(--ink); }
.cm-rrd circle { fill: var(--blue); stroke: var(--blue); }
.cm-rrd text { font: 800 17px var(--sans); fill: var(--blue); }
.cm-you { transition: transform .6s var(--ease), opacity .3s; }
.cm-you circle { fill: var(--amber); stroke: var(--ink); stroke-width: 2.5; }
.cm-you text { font: 800 11px var(--sans); fill: var(--ink); }
.cmap-side { display: grid; gap: 18px; }
.cmap-card { background: var(--navy); color: #fff; border-radius: var(--r-m); padding: 22px 24px; min-height: 200px; }
.cmap-card h3 { color: #fff; font: 800 28px/1.05 var(--sans); font-stretch: 76%; margin: 4px 0 10px; }
.cmap-card p { margin: 0; color: rgba(255,255,255,.82); font-size: 15.5px; }
.cmap-card .cm-card-k { font-size: 13px; color: var(--cyan); font-weight: 650; }
.cmap-card dl { display: grid; grid-template-columns: 112px 1fr; gap: 6px 12px; margin: 14px 0 0; font-size: 14.5px; }
.cmap-card dt { color: rgba(255,255,255,.55); }
.cmap-card dd { margin: 0; color: rgba(255,255,255,.9); }
.cmap-quiz { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-m); padding: 20px 22px; }
.cmap-quiz h3 { font-size: 19px; margin-bottom: 4px; }
.cmap-quiz .note { margin: 0 0 10px; }
.cmap-quiz label { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--rule-soft); font-size: 15px; line-height: 1.35; cursor: pointer; }
.cmap-quiz input { width: 18px; height: 18px; accent-color: var(--blue); margin-top: 1px; }
.cm-result { margin: 12px 0 0; padding: 12px 14px; background: var(--concrete); border-radius: var(--r-s); font-size: 15px; font-weight: 550; }
@media (max-width: 960px) { .cmap { grid-template-columns: 1fr; } }

/* glossary auto-links with hover definition */
.prose a.gl { color: inherit; text-decoration: underline dotted; text-decoration-color: var(--blue); text-decoration-thickness: 1.5px; text-underline-offset: 4px; position: relative; }
.prose a.gl:hover { color: var(--blue); }
@media (hover: hover) {
  .prose a.gl:hover::after { content: attr(data-def); position: absolute; left: 0; bottom: calc(100% + 8px); width: 300px; z-index: 40;
    background: var(--ink); color: #fff; font: 400 13.5px/1.45 var(--sans); padding: 10px 12px; border-radius: 6px; box-shadow: var(--shadow); pointer-events: none; }
}
.ans-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 40px; }
.ans-list li { break-inside: avoid; border-top: 1px solid var(--rule-soft); }
.ans-list a { display: block; padding: 11px 0; color: var(--ink); text-decoration: none; font-weight: 550; line-height: 1.35; }
.ans-list a:hover { color: var(--blue); }
.split .ans-list { columns: 1; }
@media (max-width: 760px) { .ans-list { columns: 1; } }
.st-src { font-size: 13px; }
.st-src .dom { display: inline-block; font-size: 11px; font-weight: 700; background: var(--concrete); border: 1px solid var(--rule); border-radius: 3px; padding: 0 5px; color: var(--ink); }
.st-src .dom.gov { background: var(--ink); color: #fff; border-color: var(--ink); }

/* six topics: 3 x 2 library */
.lib { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 0; gap: 0 28px; }
.lib-col, .lib-col + .lib-col { padding: 22px 0 26px; border-right: 0; border-top: 2px solid var(--ink); }
@media (max-width: 1000px) { .lib { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .lib { grid-template-columns: 1fr; } }

/* certificates: never cropped */
.certs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.certs a { display: block; background: #fff; border: 1px solid var(--rule); border-radius: var(--r-m); padding: 10px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .2s var(--ease); }
.certs a:hover { transform: translateY(-2px); }
.certs img { width: 100%; height: auto; object-fit: contain; }
.certs span { display: block; font-size: 13.5px; font-weight: 650; padding: 8px 2px 0; }

/* project photos: whole picture, masonry */
.gallery.masonry { display: block; columns: 3; column-gap: 8px; }
.gallery.masonry a { display: block; margin: 0 0 8px; break-inside: avoid; border-radius: var(--r-s); overflow: hidden; cursor: zoom-in; }
.gallery.masonry img { width: 100%; height: auto; object-fit: initial; border-radius: 0; }
@media (max-width: 640px) { .gallery.masonry { columns: 2; } }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(8,26,43,.92); display: none; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lb.open { display: flex; }
.lb img { max-width: min(1100px, 100%); max-height: 88vh; width: auto; height: auto; border-radius: 4px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); background: #fff; }
.lb button { position: absolute; top: 14px; right: 16px; background: none; border: 0; color: #fff; font: 600 15px var(--sans); cursor: pointer; padding: 8px; }
.home-wettrade { object-position: 50% 35%; }
