/* ==========================================================================
   DPA Technologies — site stylesheet v2
   "Damped Signal" design system:
   DPA Orange #F15C22 · Deep Slate #1B2430 · Cool Grey #6B7280
   Off-white #F7F8FA · Near-black #101720 · Inter
   v2: instrument-grade art direction — oscilloscope hero, graticule +
   grain textures, evidence graphics, scroll reveals, view transitions.
   ========================================================================== */

:root {
  --orange: #F15C22;
  --orange-deep: #C7430F;
  --orange-text: #AD3E10;
  --orange-glow: rgba(241, 92, 34, .22);
  --ink: #1B2430;
  --grey: #6B7280;
  --grey-light: #E5E8ED;
  --bg: #F7F8FA;
  --paper: #FDFCFA;
  --dark: #101720;
  --dark-2: #16202E;
  --white: #FFFFFF;
  --pass: #1E7A3C;
  --warn: #9A6700;
  --fail: #B3261E;
  --radius: 14px;
  --maxw: 1120px;
  --shadow: 0 1px 2px rgba(16, 23, 32, .06), 0 8px 24px rgba(16, 23, 32, .07);
  --shadow-lift: 0 2px 4px rgba(16, 23, 32, .08), 0 18px 44px rgba(16, 23, 32, .16);
  /* 3% grain, inline SVG turbulence */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Cross-document view transitions (Chromium/Safari; ignored elsewhere) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); font-weight: 700; }
h3 { font-size: 1.1875rem; font-weight: 600; }

p { margin: 0 0 1em; }
a { color: var(--orange-text); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--orange-deep); }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
.site-header :focus-visible, .on-dark :focus-visible { outline-color: #FFB38A; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange-text);
  margin-bottom: 14px;
}
/* Brand pulse mark, docked to every eyebrow (colours inline — CSS-proof) */
.eyebrow::before {
  content: "";
  flex: none;
  width: 46px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 18'%3E%3Cpath d='M1,12 H16 L24,2.5 L31,15.5 L37,7 L43,12 H63' fill='none' stroke='%23F15C22' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.on-dark .eyebrow { color: #FF8A50; }

.lead { font-size: 1.1875rem; color: var(--grey); max-width: 44em; }
.on-dark .lead { color: #B9C2CF; }

/* Skip link ------------------------------------------------------------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 18px; z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Dark band texture: graticule grid + grain + vignette ------------------- */
.band-dark {
  background:
    var(--grain),
    repeating-linear-gradient(to right, rgba(255,255,255,.035) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.03) 0 1px, transparent 1px 56px),
    radial-gradient(120% 90% at 70% 10%, var(--dark-2) 0%, var(--dark) 60%);
  background-color: var(--dark);
  color: #fff;
}

/* Header ---------------------------------------------------------------- */
.site-header {
  background: rgba(16, 23, 32, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  view-transition-name: site-header;
}
.site-header .container {
  display: flex; align-items: center; gap: 28px;
  min-height: 76px;
}

/* LOGO SLOT — icon image + Inter wordmark, per the 2026 lockup.
   Swap assets/img/logo-icon.png (and .brand-text) to rebrand. */
.brand {
  display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0;
  text-decoration: none;
}
.brand img { display: block; height: 40px; width: 40px; }
.brand-text { color: #fff; font-size: 1.22rem; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.brand-text span { font-weight: 400; }

.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.site-nav a {
  display: inline-block; padding: 9px 13px;
  color: #D6DBE3; text-decoration: none; font-weight: 500; font-size: .95rem;
  border-radius: 8px;
  transition: background .15s ease, color .15s ease;
}
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.site-nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--orange); border-radius: 8px 8px 0 0; }

.btn {
  display: inline-block; font-weight: 600; text-decoration: none;
  border-radius: 10px; padding: 12px 22px; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--orange); color: #fff !important; box-shadow: 0 4px 16px var(--orange-glow); }
.btn-primary:hover { background: var(--orange-deep); box-shadow: 0 6px 22px var(--orange-glow); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff !important; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .07); }
.btn-ghost-dark { border-color: rgba(27, 36, 48, .35); color: var(--ink) !important; }
.btn-ghost-dark:hover { border-color: var(--ink); }
.site-nav .btn-primary { padding: 10px 18px; margin-left: 8px; }
.site-nav .btn-primary:hover { transform: none; }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid rgba(255, 255, 255, .3); border-radius: 8px;
  padding: 8px 12px; color: #fff; font-size: 1rem; cursor: pointer;
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--dark); border-bottom: 1px solid rgba(255, 255, 255, .1);
    padding: 8px 24px 20px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a { padding: 12px 10px; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--orange); border-radius: 0 8px 8px 0; }
  .site-nav .btn-primary { margin: 10px 0 0; text-align: center; }
}

/* Hero: the instrument ---------------------------------------------------- */
.hero { position: relative; overflow: hidden; }
.hero .container {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px; align-items: center;
  padding-top: 76px; padding-bottom: 88px;
}
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; gap: 44px; padding-top: 56px; padding-bottom: 64px; }
}
.hero h1 { max-width: 13em; }
.hero .lead { margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Oscilloscope layer (behind content) */
.scope {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
}
.scope svg, .scope canvas {
  position: absolute; left: 0; right: 0; bottom: -6%;
  width: 100%; height: 46%;
}
.scope canvas { opacity: 0; transition: opacity .8s ease; }
.scope.live canvas { opacity: 1; }
.scope.live svg { opacity: 0; }
.scope-glow {
  position: absolute; right: -10%; top: -30%;
  width: 70%; height: 90%;
  background: radial-gradient(50% 50% at 50% 50%, var(--orange-glow) 0%, transparent 70%);
  opacity: .5;
}
.scope-readout {
  position: absolute; right: 26px; bottom: 22px; z-index: 3;
  background: rgba(16, 23, 32, .78);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 9px; padding: 8px 14px;
  font-size: .8rem; color: #B9C2CF; letter-spacing: .04em;
  opacity: 0; transform: translateY(6px);
  transition: opacity .6s ease, transform .6s ease;
}
.scope-readout.show { opacity: 1; transform: none; }
.scope-readout strong { color: #7CE08A; font-variant-numeric: tabular-nums; }
@media (max-width: 960px) { .scope-readout { display: none; } }

/* Page hero (inner pages) */
.page-hero { position: relative; overflow: hidden; }
.page-hero .container { padding-top: 64px; padding-bottom: 72px; position: relative; z-index: 2; }
.page-hero .lead { margin-bottom: 0; }
.page-hero .scope svg { height: 54%; bottom: -12%; opacity: .75; }

/* Promise strip ------------------------------------------------------------ */
.promise {
  background: var(--dark-2);
  border-top: 1px solid rgba(255, 255, 255, .07);
  color: #B9C2CF;
  position: relative; z-index: 2;
}
.promise .container {
  display: flex; flex-wrap: wrap; gap: 10px 38px;
  padding-top: 16px; padding-bottom: 16px;
  font-size: .9rem;
}
.promise strong { color: #fff; font-weight: 600; }
.promise > .container > span { display: inline-block; }
.promise .tick {
  display: inline-block; width: 15px; height: 15px; margin-right: 9px; vertical-align: -2px;
  border-radius: 50%;
  background: var(--orange);
  position: relative;
}
.promise .tick::after {
  content: ""; position: absolute; left: 4px; top: 4.5px;
  width: 6px; height: 3.5px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* Sections --------------------------------------------------------------- */
.section { padding: 84px 0; }
.section-tight { padding: 60px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--grey-light); border-bottom: 1px solid var(--grey-light); }
.section-paper { background: var(--paper); border-top: 1px solid #EFEAE2; border-bottom: 1px solid #EFEAE2; }
.section-dark { padding: 84px 0; }
.section-head { max-width: 46em; margin-bottom: 44px; }
.section-head p { color: var(--grey); }
.section-dark .section-head p { color: #B9C2CF; }

/* Cards ------------------------------------------------------------------ */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--grey-light); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card h3 { margin-top: 2px; }
.card p:last-child { margin-bottom: 0; }
.card-note { font-size: .9rem; color: var(--grey); }

/* Waveform-state graphics in cards */
.wave-state { display: block; width: 100%; height: 84px; margin-bottom: 16px; }
.wave-state .ws-grid { stroke: rgba(27, 36, 48, .08); stroke-width: 1; }
.wave-state .ws-trace { stroke: var(--orange); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.wave-state .ws-limit { stroke: var(--fail); stroke-width: 1.5; stroke-dasharray: 5 5; }
.wave-state .ws-flag { fill: var(--fail); }
.wave-state .ws-frame { stroke: var(--pass); stroke-width: 1.6; fill: none; }
.wave-state text { font: 600 9px/1 "Inter", system-ui, sans-serif; letter-spacing: .08em; }

/* Cards overlapping the hero edge */
.pull-up { margin-top: -46px; position: relative; z-index: 3; }
@media (max-width: 960px) { .pull-up { margin-top: 0; } }

/* Steps ------------------------------------------------------------------ */
.steps { counter-reset: step; display: grid; gap: 22px; grid-template-columns: repeat(4, 1fr); position: relative; }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: #fff; border: 1px solid var(--grey-light); border-radius: var(--radius);
  padding: 26px; position: relative; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-size: 1.9rem; font-weight: 700; color: var(--orange);
  letter-spacing: -.02em; margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.step::after {
  content: ""; position: absolute; top: 40px; right: -23px;
  width: 24px; height: 2px; background: var(--grey-light);
}
.step:last-child::after { display: none; }
@media (max-width: 980px) { .step::after { display: none; } }
.step h3 { font-size: 1.05rem; }
.step p { font-size: .95rem; color: var(--grey); margin-bottom: 0; }

/* Checklist -------------------------------------------------------------- */
.checklist { list-style: none; margin: 0 0 1em; padding: 0; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #FDEDE5;
}
.checklist li::after {
  content: ""; position: absolute; left: 5px; top: 10px;
  width: 10px; height: 6px;
  border-left: 2.5px solid var(--orange-deep); border-bottom: 2.5px solid var(--orange-deep);
  transform: rotate(-45deg);
}
.on-dark .checklist li::before, .section-dark .checklist li::before { background: rgba(241, 92, 34, .18); }
.on-dark .checklist li::after, .section-dark .checklist li::after { border-color: #FF8A50; }

/* Split layout ------------------------------------------------------------ */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.split-center { align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 34px; } }

/* Evidence: sample compliance summary document ----------------------------- */
.doc {
  background: #fff; border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,.25), 0 24px 64px rgba(0,0,0,.45);
  overflow: hidden;
  font-size: .72rem;
  max-width: 480px;
  margin-left: auto;
}
@media (max-width: 960px) { .doc { margin: 0 auto; } }
.section .doc { box-shadow: var(--shadow-lift); border: 1px solid var(--grey-light); }
.doc-head {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px; border-bottom: 2px solid var(--ink);
}
.doc-head img { width: 26px; height: 26px; }
.doc-head .doc-title { font-weight: 700; font-size: .8rem; color: var(--ink); letter-spacing: -.01em; }
.doc-head .doc-title small { display: block; font-weight: 500; font-size: .62rem; color: var(--grey); letter-spacing: .06em; text-transform: uppercase; }
.doc-head .doc-no { margin-left: auto; text-align: right; font-size: .62rem; color: var(--grey); }
.doc-meta {
  display: flex; gap: 18px; padding: 10px 18px;
  background: #F4F6F8; font-size: .66rem; color: var(--grey);
}
.doc-meta strong { color: var(--ink); font-weight: 600; }
.doc table { width: 100%; border-collapse: collapse; }
.doc th, .doc td { text-align: left; padding: 7px 10px; border-bottom: 1px solid #EEF1F4; white-space: nowrap; }
.doc th { font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); font-weight: 600; }
.doc th:first-child, .doc td:first-child { padding-left: 18px; }
.doc td { font-variant-numeric: tabular-nums; color: var(--ink); }
.doc .chip {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: .58rem; font-weight: 700; letter-spacing: .06em;
}
.doc .chip-pass { background: #E3F2E7; color: var(--pass); }
.doc .chip-warn { background: #FBF0DA; color: var(--warn); }
.doc .chip-fail { background: #FBE4E2; color: var(--fail); }
.doc-foot {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 18px; background: #F4F6F8;
  font-size: .6rem; color: var(--grey);
}
.doc-foot .seal {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--orange); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.doc-foot .seal svg { width: 18px; height: 12px; }
.doc-foot .seal path { stroke: var(--orange); stroke-width: 2; fill: none; stroke-linecap: round; }

/* Evidence: portal browser vignette ---------------------------------------- */
.browser {
  background: #fff; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--grey-light);
  box-shadow: var(--shadow-lift);
  font-size: .72rem;
}
.band-dark .browser { border-color: rgba(255,255,255,.12); box-shadow: 0 2px 6px rgba(0,0,0,.3), 0 28px 70px rgba(0,0,0,.5); }
.browser-bar {
  display: flex; align-items: center; gap: 7px;
  background: var(--ink); padding: 9px 14px;
}
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.25); }
.browser-bar .url {
  margin-left: 10px; flex: 1;
  background: rgba(255,255,255,.1); color: #B9C2CF;
  border-radius: 6px; padding: 3px 12px; font-size: .62rem; font-style: normal;
}
.browser-bar .lock { color: #7CE08A; font-size: .62rem; }
.portal-ui { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; padding: 14px; background: #F4F6F8; }
.portal-ui .tile {
  background: #fff; border: 1px solid var(--grey-light); border-radius: 9px; padding: 12px;
}
.portal-ui .tile b { display: block; font-size: 1.15rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.portal-ui .tile span { font-size: .6rem; color: var(--grey); letter-spacing: .04em; text-transform: uppercase; }
.portal-ui .tile.accent b { color: var(--orange-deep); }
.portal-rows { grid-column: 1 / -1; background: #fff; border: 1px solid var(--grey-light); border-radius: 9px; overflow: hidden; }
.portal-rows .prow {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-bottom: 1px solid #EEF1F4; color: var(--ink);
}
.portal-rows .prow:last-child { border-bottom: none; }
.portal-rows .prow .chip { margin-left: auto; }
.portal-rows .chip {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: .58rem; font-weight: 700; letter-spacing: .06em;
}
.portal-rows .chip-pass { background: #E3F2E7; color: var(--pass); }
.portal-rows .chip-warn { background: #FBF0DA; color: var(--warn); }

/* Evidence: A(8) gauge ------------------------------------------------------ */
.gauge-card {
  background: #fff; border: 1px solid var(--grey-light); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); text-align: center;
}
.gauge { width: min(340px, 100%); margin: 0 auto; display: block; }
.gauge .g-track { stroke: #EDF0F3; stroke-width: 16; fill: none; }
.gauge .g-safe { stroke: #DDEEE2; stroke-width: 16; fill: none; }
.gauge .g-needle { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.gauge .g-hub { fill: var(--ink); }
.gauge text { font-family: "Inter", system-ui, sans-serif; }
.gauge .g-tick { font-size: 11px; fill: var(--grey); font-weight: 600; }
.gauge .g-label { font-size: 10px; letter-spacing: .1em; font-weight: 700; }
.gauge-caption { font-size: .85rem; color: var(--grey); margin: 14px 0 0; }

/* Coverage graphic ----------------------------------------------------------- */
.coverage {
  position: relative; border-radius: var(--radius); overflow: hidden;
  padding: 30px;
  background:
    var(--grain),
    repeating-linear-gradient(to right, rgba(255,255,255,.04) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.035) 0 1px, transparent 1px 44px),
    radial-gradient(120% 100% at 30% 0%, var(--dark-2) 0%, var(--dark) 65%);
  color: #fff;
}
.coverage svg { display: block; width: 100%; height: auto; }
.coverage .cv-ring { fill: none; stroke: var(--orange); opacity: .35; }
.coverage .cv-base { fill: var(--orange); }
.coverage .cv-city { fill: rgba(255,255,255,.55); }
.coverage .cv-line { stroke: rgba(241,92,34,.5); stroke-width: 1.5; stroke-dasharray: 3 6; fill: none; stroke-linecap: round; }
.coverage text { font-family: "Inter", system-ui, sans-serif; }
.coverage .cv-name { font-size: 12px; font-weight: 600; fill: #fff; }
.coverage .cv-tag { font-size: 9.5px; letter-spacing: .1em; fill: #8D97A5; font-weight: 600; }

/* Photo slot (duotone frame) ------------------------------------------------ */
figure.photo-slot { margin: 0; }
.photo-slot {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--grey-light);
  background: linear-gradient(160deg, var(--dark-2), var(--dark));
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center;
}
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) sepia(.3) hue-rotate(-18deg) saturate(1.7) contrast(1.04) brightness(.97); }
.photo-slot svg { width: 72%; height: auto; opacity: .9; }
.photo-slot .ps-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(16,23,32,.82); color: #B9C2CF;
  border-top: 3px solid var(--orange);
  font-size: .75rem; padding: 7px 14px; letter-spacing: .03em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Photo feature: one large lead + two stacked -------------------------------- */
.photo-feature { display: grid; grid-template-columns: 1.9fr 1fr; grid-auto-rows: 1fr; gap: 22px; }
.photo-feature .photo-slot { aspect-ratio: 16 / 10; }
.photo-feature .photo-slot:first-child { grid-row: 1 / 3; aspect-ratio: auto; }
@media (max-width: 900px) {
  .photo-feature { grid-template-columns: 1fr; }
  .photo-feature .photo-slot:first-child { grid-row: auto; aspect-ratio: 16 / 10; }
}

/* Hero photo layer (behind waveform + content; dropped on small screens) ----- */
.hero-photo {
  position: absolute; inset: 0; z-index: 0;
  background: url("../img/photos/workshop-wide.jpg?v=10") center / cover no-repeat;
  filter: grayscale(1) brightness(.8) contrast(1.12);   /* neutral slate — no sepia in the hero */
}
.hero-veil {
  position: absolute; inset: 0; z-index: 0;
  background:
    repeating-linear-gradient(to right, rgba(255,255,255,.03) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.025) 0 1px, transparent 1px 56px),
    linear-gradient(90deg, rgba(16,23,32,.92) 0%, rgba(16,23,32,.62) 50%, rgba(16,23,32,.28) 100%),
    linear-gradient(180deg, rgba(16,23,32,.4), rgba(16,23,32,.12) 45%, rgba(16,23,32,.8));
}
@media (max-width: 640px) { .hero-photo, .hero-veil { display: none; } }

/* Client portal chooser ------------------------------------------------------ */
.portal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.portal-link {
  display: flex; align-items: center; gap: 18px;
  background: #fff; border: 1px solid var(--grey-light); border-radius: var(--radius);
  padding: 16px 22px; text-decoration: none;
  color: var(--ink); font-weight: 600; font-size: 1.08rem;
  box-shadow: var(--shadow);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.portal-link:hover, .portal-link:focus-visible {
  border-color: var(--orange); transform: translateY(-2px); box-shadow: var(--shadow-lift);
  color: var(--ink);
}
.portal-badge {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  background: #fff; border: 2px solid var(--orange);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.portal-badge img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portal-go { margin-left: auto; color: var(--orange); font-weight: 700; opacity: 0; transform: translateX(-6px); transition: opacity .15s ease, transform .15s ease; }
.portal-link:hover .portal-go, .portal-link:focus-visible .portal-go { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .portal-link, .portal-go { transition: none; }
  .portal-link:hover { transform: none; }
  .portal-go { opacity: 1; transform: none; }
}

/* Stat band ---------------------------------------------------------------- */
.stat-band .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; padding-top: 58px; padding-bottom: 58px; }
@media (max-width: 720px) { .stat-band .container { grid-template-columns: 1fr; gap: 26px; } }
.stat h3 { color: var(--orange); font-size: 1.5rem; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.stat p { color: #B9C2CF; margin: 0; font-size: .95rem; }

/* Tables --------------------------------------------------------------------- */
.info-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--grey-light); border-radius: var(--radius); overflow: hidden; }
.info-table th, .info-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--grey-light); font-size: .97rem; }
.info-table th { background: #F1F3F6; font-weight: 600; }
.info-table tr:last-child td { border-bottom: none; }

/* CTA band ------------------------------------------------------------------ */
.cta-band { position: relative; overflow: hidden; }
.cta-band .container { padding-top: 72px; padding-bottom: 76px; position: relative; z-index: 2; }
.cta-band h2 { max-width: 18em; }
.cta-band p { color: #B9C2CF; max-width: 40em; margin-bottom: 30px; }
.cta-band .scope svg { height: 70%; bottom: -8%; opacity: .65; }

/* Forms ------------------------------------------------------------------------ */
.form-card {
  background: #fff; border: 1px solid var(--grey-light); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; }
.field .req { color: var(--orange-deep); }
.field .opt { color: var(--grey); font-weight: 400; font-size: .8rem; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink);
  border: 1px solid #C9CFD8; border-radius: 9px; padding: 12px 14px; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--orange); outline-offset: 1px; border-color: var(--orange);
}
.form-note { font-size: .85rem; color: var(--grey); margin-top: 16px; }
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* Contact page ------------------------------------------------------------------- */
.office { margin-bottom: 26px; }
.office h3 { margin-bottom: 6px; }
.office p { margin: 0; color: var(--grey); }
.office a { font-weight: 600; }
.contact-direct { border-top: 1px solid var(--grey-light); padding-top: 22px; margin-top: 4px; }

/* Footer ---------------------------------------------------------------------------- */
.site-footer { color: #98A2B0; font-size: .92rem; }
.site-footer .container { padding-top: 62px; padding-bottom: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 38px; padding-bottom: 44px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #C9D0DA; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand .brand img { height: 36px; width: 36px; }
.footer-brand .brand-text { font-size: 1.1rem; }
.footer-brand p { max-width: 26em; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between;
}
.footer-bottom p { margin: 0; }

/* Scroll reveals (JS adds .fx-on to <html> only when motion is allowed;
   without JS or with reduced motion everything is simply visible) ----------- */
.fx-on .fx { opacity: 0; transform: translateY(16px); transition: opacity .65s ease, transform .65s cubic-bezier(.2, .7, .2, 1); }
.fx-on .fx.in { opacity: 1; transform: none; }
.fx-on .fx-d1.in { transition-delay: .08s; }
.fx-on .fx-d2.in { transition-delay: .16s; }
.fx-on .fx-d3.in { transition-delay: .24s; }

/* Gauge needle sweep */
.fx-on .g-needle { transition: transform 1.1s cubic-bezier(.2, .7, .25, 1); }

/* Utility ----------------------------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }

/* Reduced motion: scoped — designed end states remain ------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fx-on .fx { opacity: 1 !important; transform: none !important; transition: none !important; }
  .card, .step, .btn { transition: none; }
  .card:hover, .step:hover, .btn:hover { transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
