/* =========================================================
   ONYX Scientific Inc — main stylesheet
   Type:  Eurostile  → headlines & primary subheads only
          Arial      → body copy, captions, secondary subheads
   Motif: chamfered corners (from Eurostile's squared geometry)
          + onyx "strata" banding lines
   ========================================================= */

:root {
  /* Palette */
  --onyx:      #0c1116;   /* polished onyx */
  --onyx-2:    #141c23;   /* banded layer */
  --slate:     #22303b;
  --mineral:   #8795a1;   /* grey band */
  --mist:      #eef1f3;   /* light section */
  --paper:     #ffffff;
  --ink:       #18222b;   /* body text on light */
  --ink-soft:  #4a5864;
  /* Brand accent — overridden at runtime from the logo (see includes/config.php) */
  --accent:     #1cade4;  /* OSI blue */
  --accent-hi:  #56c4ee;  /* on dark backgrounds */
  --accent-ink: #0b6e96;  /* text on light backgrounds (AA) */
  --on-accent:  #0c1116;  /* text on accent fills */
  --accent-rgb: 28,173,228;
  --accent-soft: rgba(var(--accent-rgb), .12);
  --line:      #d7dde2;
  --line-dark: rgba(255,255,255,.14);

  /* Type */
  --f-ext:  "Eurostile Extended", "eurostile-extended", "Eurostile Extd", "Michroma", Arial, Helvetica, sans-serif;
  --f-head: "Eurostile", "eurostile", "Saira", Arial, Helvetica, sans-serif;
  --f-body: Arial, Helvetica, sans-serif;

  /* Layout */
  --wrap: 1240px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --sec: clamp(4rem, 9vw, 7.5rem);
  --c: 16px;          /* chamfer size */
  --c-lg: 44px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.65;
  color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }

:root { --focus: var(--accent-ink); }
.hero, .page-hero, .cta, .projects, .past, .stats, .site-header, .site-footer, .map-band, .people--dark,
.unit--dark, .spotlight, .contact-box, .nav, .video-modal { --focus: var(--accent-hi); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
main:focus, [tabindex="-1"]:focus:not(:focus-visible) { outline: none; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .7rem 1rem; background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none; }
.skip:focus { top: 1rem; }
.hp { position: absolute; left: -9999px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }

/* ---------- Type ---------- */
.h2 {
  font-family: var(--f-head); font-weight: 700; font-size: clamp(1.85rem, 3.6vw, 2.9rem);
  line-height: 1.08; letter-spacing: -.005em; margin-bottom: 1.1rem; text-wrap: balance;
}
.h2--sm { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.h3 { font-family: var(--f-head); font-weight: 700; font-size: 1.35rem; line-height: 1.2; margin-bottom: .6rem; }
.lead { font-size: 1.14rem; line-height: 1.7; color: var(--ink-soft); max-width: 62ch; }
.label {
  font-family: var(--f-body); font-style: italic; font-size: .98rem; color: var(--accent-ink);
  margin-bottom: .8rem;
}
.prose { max-width: 70ch; }
.prose h2 { font-family: var(--f-head); font-weight: 700; font-size: 1.6rem; line-height: 1.2; margin: 2.4rem 0 .8rem; }
.prose a { color: var(--accent-ink); text-underline-offset: 3px; }
.prose p { color: var(--ink-soft); }

/* ---------- Chamfer motif ---------- */
.cut {
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
}
.cut--lg { --c: var(--c-lg); }
img.cut { width: 100%; object-fit: cover; background: var(--slate); }

/* ---------- Buttons ---------- */
.btn {
  --bc: 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: .8rem 1.7rem;
  font-family: var(--f-body); font-weight: 700; font-size: 1rem; letter-spacing: .01em;
  text-decoration: none; line-height: 1.2;
  clip-path: polygon(var(--bc) 0, 100% 0, 100% calc(100% - var(--bc)), calc(100% - var(--bc)) 100%, 0 100%, 0 var(--bc));
  transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:focus-visible { outline: 3px solid currentColor; outline-offset: -6px; }
.btn--sm { min-height: 44px; padding: .6rem 1.2rem; font-size: .95rem; }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: var(--accent-hi); color: var(--onyx); }
.btn--dark { background: var(--onyx); color: #fff; }
.btn--dark:hover { background: var(--slate); }
.btn--ghost { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--accent); color: var(--accent-hi); }
.btn--outline { color: var(--onyx); box-shadow: inset 0 0 0 2px var(--onyx); }
.btn--outline:hover { background: var(--onyx); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

.link-arrow {
  font-weight: 700; color: var(--onyx); text-decoration: none;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 2px no-repeat;
  padding-bottom: 2px; transition: background-size .25s var(--ease);
}
.link-arrow:hover { background-size: 100% 100%; }

.ic { width: 1.2em; height: 1.2em; flex: none; }
.ic--flip { transform: scaleX(-1); }
.stars { display: inline-flex; gap: 2px; color: var(--accent); }
.ic--star { width: 1rem; height: 1rem; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 1.2rem; }
.tags li { font-size: .82rem; padding: .25rem .7rem; border: 1px solid var(--line); color: var(--ink-soft); }
.tags--light li { border-color: rgba(255,255,255,.3); color: rgba(255,255,255,.85); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12,17,22,.92); color: #fff;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s;
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header.is-scrolled { background: rgba(12,17,22,.98); border-bottom-color: var(--line-dark); }
.site-header__inner { display: flex; align-items: center; gap: 2rem; min-height: 84px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: #fff; flex: none; }
.brand img { height: 86px; width: auto; }
.brand__text { font-family: var(--f-ext); font-weight: 700; font-size: 1.4rem; letter-spacing: .04em; }
.brand__text small { display: block; font-family: var(--f-body); font-weight: 400; font-size: .7rem; letter-spacing: .08em; color: var(--mineral); }

.nav { margin-left: auto; }
.nav__list { list-style: none; display: flex; gap: .2rem; }
.nav__list a {
  position: relative; display: block; padding: .6rem .8rem; font-size: .95rem;
  color: rgba(255,255,255,.78); text-decoration: none; transition: color .2s;
}
.nav__list a::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav__list a:hover, .nav__list a[aria-current="page"] { color: #fff; }
.nav__list a:hover::after, .nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.nav__mobile-extra { display: none; }

.site-header__actions { display: flex; align-items: center; gap: 1rem; }
.header-phone { display: inline-flex; align-items: center; gap: .45rem; color: #fff; text-decoration: none; font-size: .95rem; font-weight: 700; }
.header-phone .ic { color: var(--accent); }
.nav-toggle { display: none; width: 46px; height: 46px; align-items: center; justify-content: center; color: #fff; }
.nav-toggle .ic { width: 26px; height: 26px; }
.nav-toggle .ic--close { display: none; }
.nav-toggle[aria-expanded="true"] .ic--open { display: none; }
.nav-toggle[aria-expanded="true"] .ic--close { display: block; }

/* ---------- Strata ---------- */
.strata { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.strata__line { fill: none; stroke: #6f7f8c; stroke-width: 1; }
.strata__line--accent { stroke: var(--accent); stroke-width: 1.2; }

/* ---------- Home hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--onyx); color: #fff;
  padding: clamp(3rem, 7vw, 6rem) 0 0;
}
.hero .strata { z-index: -1; opacity: .9; }
.hero__title {
  font-family: var(--f-ext); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2rem, 8vw, 7rem); line-height: .98; letter-spacing: .01em;
  font-synthesis: none; margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.hero__title span { display: block; }
.hero__grid > .hero__title { grid-column: 1 / -1; margin-bottom: 0; }
.hero__grid {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
}
.hero__lead { font-size: 1.15rem; line-height: 1.75; color: rgba(255,255,255,.78); max-width: 58ch; margin-bottom: 2rem; }
.hero__media { position: relative; }

/* Hero video plays inline. Source clips are vertical (9:16), so the frame is portrait
   and capped in width, then centred in the column. */
.hero__video {
  position: relative; width: min(100%, 360px); margin-inline: auto;
  aspect-ratio: 9 / 16; background: #000; overflow: hidden;
}
/* The clip is 1080x1920, the same 9:16 as the frame — "contain" keeps the whole picture
   visible, so nothing is cropped even if a replacement clip has a different shape. */
.hero__video video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; background: #000; border: 0; pointer-events: none;
}
.hero__video-link { position: absolute; inset: 0; display: grid; place-items: center; padding: 1rem; color: #fff; text-align: center; }
.hero__media--video .hero__caption { text-align: center; }
/* left — the chamfer cuts the bottom-right corner */
.video-controls { position: absolute; left: .9rem; bottom: .9rem; z-index: 2; display: flex; gap: .5rem; }
.video-toggle {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(12,17,22,.6); color: #fff; backdrop-filter: blur(4px);
  opacity: .75; transition: opacity .25s var(--ease), background .25s var(--ease);
}
.video-toggle:hover, .video-toggle:focus-visible { opacity: 1; background: var(--accent); color: var(--on-accent); }
.video-toggle .ic { width: 20px; height: 20px; }
.video-toggle .ic--play { display: none; }
.video-toggle[aria-pressed="true"] .ic--pause { display: none; }
.video-toggle[aria-pressed="true"] .ic--play { display: block; }
/* Sound button: pressed means the sound is on, so the speaker swaps for the crossed-out one */
.video-toggle--sound .ic--sound { display: none; }
.video-toggle--sound[aria-pressed="true"] .ic--muted { display: none; }
.video-toggle--sound[aria-pressed="true"] .ic--sound { display: block; }
.video-toggle--sound[aria-pressed="true"] { opacity: 1; background: var(--accent); color: var(--on-accent); }

.video-card {
  position: relative; display: block; width: 100%; padding: 0; text-align: left; color: #fff;
  --c: var(--c-lg);
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
}
.video-card img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; clip-path: none; transition: transform .6s var(--ease); }
.video-card:hover img { transform: scale(1.03); }
.video-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(12,17,22,.85));
  pointer-events: none;
}
.video-card__play {
  position: absolute; left: 50%; top: 45%; translate: -50% -50%; z-index: 1;
  display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 0 0 10px rgba(var(--accent-rgb),.25);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.video-card__play .ic { width: 30px; height: 30px; margin-left: 4px; }
.video-card:hover .video-card__play { transform: scale(1.06); box-shadow: 0 0 0 16px rgba(var(--accent-rgb),.2); }
.video-card__cap {
  position: absolute; left: 1.6rem; bottom: 1.4rem; z-index: 1;
  font-family: var(--f-head); font-weight: 700; font-size: 1.3rem;
}
.video-card:focus-visible { outline: 3px solid var(--accent); outline-offset: -8px; }
/* Video standing in for a section image: no caption, softer scrim, centred play button */
.video-card--media::after { background: linear-gradient(180deg, rgba(12,17,22,.18), rgba(12,17,22,.42)); }
.video-card--media .video-card__play { top: 50%; }
.review-chip {
  position: absolute; right: -.5rem; top: -1.2rem;
  display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem;
  background: var(--paper); color: var(--ink); font-size: .9rem; font-weight: 700;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.disciplines {
  list-style: none; display: flex; flex-wrap: wrap;
  margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line-dark);
}
.disciplines li {
  flex: 1 1 180px; padding: 1.4rem 1.2rem 1.6rem 0; font-size: .95rem; color: rgba(255,255,255,.72);
  border-right: 1px solid var(--line-dark); margin-right: 1.2rem;
}
.disciplines li:last-child { border-right: 0; }

/* ---------- Page hero ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--onyx); color: #fff;
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 4.5rem);
}
.page-hero .strata { z-index: -1; opacity: .75; }
.page-hero__title {
  font-family: var(--f-ext); font-weight: 700; text-transform: uppercase; font-synthesis: none;
  font-size: clamp(1.8rem, 5.2vw, 4.4rem); line-height: 1.02; max-width: 20ch; margin-bottom: 1.4rem;
  text-wrap: balance;
}
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; font-size: .95rem; color: rgba(255,255,255,.7); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--accent); }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Sections ---------- */
.section { padding: var(--sec) 0; }
.section--mist { background: var(--mist); }
.section-head { margin-bottom: clamp(2rem, 4vw, 3.2rem); max-width: 760px; }
.section-head--split {
  max-width: none; display: grid; gap: 1.2rem 4rem; align-items: end;
}
.section-head--split > p, .section-head--split > div:last-child > p { color: var(--ink-soft); max-width: 56ch; }
.section-head--split .btn { margin-top: .4rem; }

/* ---------- About ---------- */
.about__grid { display: grid; gap: 3.5rem; align-items: center; }
.about__media { position: relative; padding-bottom: 2.5rem; }
.about__img { aspect-ratio: 5 / 5.4; }
.about__call {
  position: absolute; left: 1.2rem; bottom: 0; display: flex; align-items: center; gap: .9rem;
  padding: 1.1rem 1.4rem; background: var(--onyx); color: #fff; text-decoration: none;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.about__call .ic { width: 2rem; height: 2rem; color: var(--accent); }
.about__call strong { display: block; font-size: .85rem; font-weight: 400; color: var(--mineral); }
.about__call span { font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
.about__years {
  position: absolute; right: -.5rem; top: 2rem; padding: 1.2rem 1.4rem; background: var(--accent); color: var(--on-accent);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.about__years-num, .about__years-plus { font-family: var(--f-ext); font-weight: 700; font-size: 2.6rem; line-height: 1; font-synthesis: none; }
.about__years-label { display: block; font-size: .85rem; font-weight: 700; margin-top: .3rem; }
.about__copy p:not(.label) { color: var(--ink-soft); }
.about__copy .btn { margin-top: 1rem; }

/* ---------- Stats ---------- */
.stats { background: var(--onyx-2); color: #fff; padding: clamp(2.8rem, 5vw, 4rem) 0; }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
.stat { border-left: 2px solid var(--accent); padding-left: 1.1rem; }
.stat__num {
  font-family: var(--f-ext); font-weight: 700; font-synthesis: none;
  font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1; margin-bottom: .6rem; color: var(--accent);
}
.stat__label { font-size: .95rem; color: rgba(255,255,255,.72); max-width: 24ch; }

/* ---------- Services ---------- */
.service-card { display: flex; flex-direction: column; padding: 0 !important; }
.service-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--mist); display: grid; place-items: center; }
.service-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.service-card__img img[src$=".webp"] { object-fit: contain; padding: .8rem; background: #fff; }
.service-card:hover .service-card__img img { transform: scale(1.04); }
.service-card__body { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.service-card__body .link-arrow { margin-top: auto; align-self: flex-start; }
.services { background: var(--mist); }
.service-grid { list-style: none; display: grid; gap: 1.25rem; }
.service-card {
  position: relative; background: var(--paper); padding: 2rem 1.8rem 1.9rem;
  --c: 22px;
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
  border-top: 3px solid var(--onyx);
  transition: border-color .25s;
}
.service-card:hover, .service-card:focus-within { border-top-color: var(--accent); }
.service-card p { color: var(--ink-soft); font-size: 1rem; }

/* ---------- Why ---------- */
.why__grid { display: grid; gap: 3.5rem; align-items: center; }
.why__items { display: grid; gap: 1.5rem; margin: 2rem 0 2.2rem; }
.why__item { padding-left: 1.2rem; border-left: 2px solid var(--accent); }
.why__item p { color: var(--ink-soft); font-size: 1rem; }
.why__media img { aspect-ratio: 5 / 6; }
.why__media .video-card img { aspect-ratio: 5 / 6; }

/* ---------- Projects ---------- */
.projects { background: var(--onyx); color: #fff; }
.projects .label { color: var(--accent-hi); }
.projects .btn--outline { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
.projects .btn--outline:hover { background: #fff; color: var(--onyx); }
.projects__rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(82vw, 400px); gap: 1.4rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 0 var(--gutter) 1.5rem;
  scrollbar-color: var(--accent) transparent;
}
@media (min-width: 1320px) {
  .projects__rail { padding-inline: calc((100vw - var(--wrap)) / 2); scroll-padding-inline: calc((100vw - var(--wrap)) / 2); }
}
.project { position: relative; scroll-snap-align: start; }
.project img { aspect-ratio: 4 / 5; --c: 28px; }
.project__body {
  position: absolute; inset: auto 0 0 0; padding: 1.6rem;
  background: linear-gradient(180deg, transparent, rgba(12,17,22,.95) 38%);
}
.project__body p { font-size: .95rem; color: rgba(255,255,255,.8); }
.project__body .tags { margin: 0 0 .9rem; }

/* ---------- Steps ---------- */
.step-list { list-style: none; display: grid; gap: 1.5rem; counter-reset: s; }
.step { position: relative; padding: 2.2rem 1.8rem; background: var(--mist); --c: 22px;
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
.step__num {
  display: block; font-family: var(--f-ext); font-weight: 700; font-size: 3.2rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--onyx); margin-bottom: 1.4rem; font-synthesis: none;
}
.step p { color: var(--ink-soft); font-size: 1rem; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; background: var(--onyx); color: #fff; padding: clamp(4rem, 8vw, 6.5rem) 0; }
.cta .strata { z-index: -1; opacity: .6; }
.cta__inner { display: grid; gap: 2rem 4rem; align-items: end; }
.cta__title {
  font-family: var(--f-ext); font-weight: 700; font-synthesis: none;
  font-size: clamp(1.6rem, 3.6vw, 3rem); line-height: 1.12; text-wrap: balance;
}
.cta__side p { color: rgba(255,255,255,.75); margin-bottom: 1.6rem; max-width: 46ch; }

/* ---------- People ---------- */
.people__grid { list-style: none; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.person {
  padding: 2rem 1.6rem; background: var(--mist); --c: 20px;
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
}
.person__mark {
  display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 1.6rem;
  font-family: var(--f-ext); font-weight: 700; font-size: 1.3rem; font-synthesis: none;
  background: var(--onyx); color: var(--accent);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.person__name { font-family: var(--f-head); font-weight: 700; font-size: 1.25rem; line-height: 1.25; margin-bottom: .35rem; }
.person__role { font-size: .95rem; color: var(--ink-soft); }
.people--dark { background: var(--onyx-2); color: #fff; }
.people--dark .label { color: var(--accent-hi); }
.people--dark .person { background: var(--slate); }
.people--dark .person__role { color: rgba(255,255,255,.7); }
.people--dark .person__mark { background: var(--accent); color: var(--on-accent); }

/* ---------- FAQ ---------- */
.faq { background: var(--mist); }
.faq__grid { display: grid; gap: 3rem; align-items: start; }
.faq__media img { aspect-ratio: 6 / 5; margin-top: 1.5rem; }
.accordion { display: grid; gap: .8rem; }
.acc { background: var(--paper); border-left: 3px solid transparent; transition: border-color .2s; }
.acc[open] { border-left-color: var(--accent); }
.acc summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.4rem; cursor: pointer; list-style: none;
  font-family: var(--f-body); font-weight: 700; font-size: 1.05rem;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:focus-visible { outline-offset: -3px; }
.acc__ic { width: 1.4rem; height: 1.4rem; color: var(--accent-ink); transition: transform .25s var(--ease); }
.acc[open] .acc__ic { transform: rotate(45deg); }
.acc__body { padding: 0 1.4rem 1.4rem; color: var(--ink-soft); }

/* ---------- Testimonials ---------- */
.quotes__rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(86vw, 420px); gap: 1.25rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 0 var(--gutter) 1.5rem; scroll-padding-inline: var(--gutter);
  scrollbar-color: var(--accent) transparent;
}
@media (min-width: 1320px) {
  .quotes__rail { padding-inline: calc((100vw - var(--wrap)) / 2); scroll-padding-inline: calc((100vw - var(--wrap)) / 2); }
}
.quote {
  margin: 0; scroll-snap-align: start; padding: 2rem 1.8rem; border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 1.2rem;
}
.quote blockquote { margin: 0; font-size: 1.08rem; line-height: 1.7; flex: 1; }
.quote figcaption { font-family: var(--f-head); font-weight: 700; font-size: 1.15rem; }
.rail-ctrl { display: flex; gap: .6rem; justify-self: end; }
.rail-btn {
  width: 52px; height: 52px; display: grid; place-items: center; background: var(--onyx); color: #fff;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.rail-btn:hover { background: var(--accent); color: var(--on-accent); }
.rail-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: -6px; }

/* ---------- Blog ---------- */
.blog-teaser .section-head--split .btn { margin-top: 1rem; }
.post-grid { list-style: none; display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.post-card img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; margin-bottom: 1.2rem; transition: transform .5s var(--ease); }
.post-card__img { display: block; overflow: hidden; --c: 18px;
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); margin-bottom: 1.2rem; }
.post-card__img img { margin: 0; }
.post-card:hover img { transform: scale(1.04); }
.post-card time { display: block; font-size: .9rem; color: var(--accent-ink); margin-bottom: .4rem; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.post-card p { color: var(--ink-soft); font-size: 1rem; }

.post { max-width: 900px; }
.post__img { aspect-ratio: 2 / 1; margin-bottom: 1.4rem; }
.post__meta { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; color: var(--ink-soft); margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.post__meta a { color: var(--accent-ink); }
.share { display: flex; align-items: center; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.share__h { font-family: var(--f-body); font-size: 1rem; }

/* ---------- Detail / Products ---------- */
.detail { display: grid; gap: 3rem; }
.detail__aside { display: grid; gap: 1.5rem; align-content: start; }
.side-nav { background: var(--mist); padding: 1.8rem; }
.side-nav__h, .contact-box__h { font-family: var(--f-head); font-weight: 700; font-size: 1.3rem; margin-bottom: 1rem; }
.side-nav ul { list-style: none; display: grid; gap: .5rem; }
.side-nav a {
  display: block; padding: .85rem 1rem; background: var(--paper); text-decoration: none; font-weight: 700; font-size: .98rem;
  border-left: 3px solid transparent; transition: border-color .2s, background-color .2s;
}
.side-nav a:hover { border-left-color: var(--accent); }
.side-nav a[aria-current="page"] { background: var(--onyx); color: #fff; border-left-color: var(--accent); }
.contact-box { background: var(--onyx); color: #fff; padding: 1.8rem; --c: 22px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%); }
.contact-box p { color: rgba(255,255,255,.75); }
.contact-box__phone { display: inline-flex; align-items: center; gap: .5rem; margin-top: .6rem; color: var(--accent); font-weight: 700; text-decoration: none; }
.detail__main > img { aspect-ratio: 16 / 9; margin-bottom: 2rem; }
.detail__head { display: flex; align-items: center; gap: 1rem; margin-bottom: .6rem; }
.detail__head .h2 { margin: 0; }
.step-mini { padding-left: 1.3rem; display: grid; gap: .7rem; color: var(--ink-soft); }
.lead.ast { max-width: none; margin-bottom: 2.4rem; }

.units { display: grid; gap: 1.25rem; margin-bottom: 1.25rem; }
.unit { position: relative; padding: 2rem 1.8rem; background: var(--mist); overflow: hidden; }
.unit__code {
  position: absolute; right: 1.2rem; top: .6rem; margin: 0;
  font-family: var(--f-ext); font-weight: 700; font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1; font-synthesis: none;
  color: transparent; -webkit-text-stroke: 1px rgba(12,17,22,.18);
}
.unit .h2 { position: relative; max-width: 22ch; }
.unit__sub { font-family: var(--f-body); font-weight: 700; font-size: 1rem; margin: 0 0 .8rem; color: var(--accent-ink); }
.unit--dark { background: var(--onyx); color: #fff; }
.unit--dark p { color: rgba(255,255,255,.75); }
.unit--dark .unit__sub { color: var(--accent); }
.unit--dark .unit__code { color: transparent; -webkit-text-stroke-color: rgba(255,255,255,.16); }

.check-list { list-style: none; display: grid; gap: .6rem; margin-bottom: 1.6rem; }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; }
.check-list .ic { color: var(--accent-ink); margin-top: .2rem; }
.unit--dark .check-list .ic { color: var(--accent); }

.spotlight { background: var(--onyx); color: #fff; --c: 36px;
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
.spotlight img { clip-path: none; aspect-ratio: 16 / 9; }
.spotlight__body { padding: clamp(1.8rem, 4vw, 2.8rem); }
.spotlight__body p { color: rgba(255,255,255,.78); margin-bottom: 1.8rem; }
.products-line__grid { display: grid; gap: 3rem; align-items: start; }
.products-line p:not(.label) { color: var(--ink-soft); }
.products-line .lead a { color: var(--accent-ink); }
.unit-list { list-style: none; display: grid; gap: 0; margin-top: 2rem; border-top: 1px solid var(--line); }
.unit-list li { display: flex; align-items: baseline; gap: 1.4rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.unit-list strong { font-family: var(--f-ext); font-weight: 700; font-size: 1.1rem; min-width: 4.5rem; font-synthesis: none; }

/* ---------- Team intro ---------- */
.team-intro__grid { display: grid; gap: 3rem; align-items: center; }
.team-intro img { aspect-ratio: 5 / 5.6; }

/* ---------- Contact ---------- */
.info-cards { list-style: none; display: grid; gap: 1.25rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.info-card { padding: 1.8rem; background: var(--mist); border-top: 3px solid var(--accent); }
.info-card .ic { width: 2rem; height: 2rem; color: var(--accent-ink); margin-bottom: 1rem; }
.info-card__h { font-family: var(--f-body); font-weight: 700; font-size: 1.05rem; margin-bottom: .3rem; }
.info-card a { color: var(--ink); font-size: 1.05rem; word-break: break-word; }
.contact__grid { display: grid; gap: 3rem; align-items: start; }
.contact__img { aspect-ratio: 4 / 5; }

.form { display: grid; gap: 1.1rem 1.2rem; margin-top: 1.5rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 700; font-size: .95rem; }
.opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--mist);
  border: 1px solid var(--line); border-bottom: 2px solid var(--onyx);
  padding: .85rem 1rem; border-radius: 0;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.35); background: #fff; }
.field [aria-invalid="true"] { border-bottom-color: #b3261e; }
.field__err { color: #b3261e; font-size: .9rem; margin: 0; }
.form-note { padding: .9rem 1.1rem; font-weight: 700; margin-top: 1rem; }
.form-note--ok { background: #e3f3e8; color: #14532d; border-left: 3px solid #1f8a4c; }
.form-note--err { background: #fdecea; color: #7f1d1d; border-left: 3px solid #b3261e; }

.map-band { background: var(--onyx); color: #fff; padding: var(--sec) 0; }
.map-band__grid { display: grid; gap: 2.5rem; align-items: center; }
.map-band p { color: rgba(255,255,255,.75); margin-bottom: 1.8rem; max-width: 48ch; }
.map-frame { --c: 30px; aspect-ratio: 16 / 10; background: var(--slate); }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--accent); color: var(--on-accent); padding: 1.1rem 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee span {
  font-family: var(--f-ext); font-weight: 700; font-size: clamp(1.1rem, 2.2vw, 1.7rem); font-synthesis: none;
  white-space: nowrap; padding-right: 3rem; display: inline-flex; align-items: center; gap: 3rem;
}
.marquee span::after { content: ""; width: 12px; height: 12px; background: currentColor; transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--onyx); color: rgba(255,255,255,.75); padding: clamp(3.5rem, 7vw, 5.5rem) 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
.site-footer__grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
.site-footer__brand .brand img { height: 104px; margin-bottom: 1.2rem; }
.footer-h { font-family: var(--f-body); font-weight: 700; font-size: 1.05rem; color: #fff; margin-bottom: 1.1rem; }
.footer-links { list-style: none; display: grid; gap: .55rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-links--dark a { color: var(--ink); text-decoration: underline; }
.contact-list { list-style: none; display: grid; gap: .6rem; margin-top: 1.2rem; }
.contact-list a { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: #fff; word-break: break-word; }
.contact-list .ic { color: var(--accent); }
.newsletter { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.newsletter input {
  flex: 1 1 200px; min-height: 52px; padding: .8rem 1rem; font: inherit; color: #fff;
  background: var(--onyx-2); border: 1px solid var(--line-dark); border-radius: 0;
}
.newsletter input::placeholder { color: rgba(255,255,255,.72); }
.newsletter input:focus { outline: 3px solid var(--accent); outline-offset: 0; }
.site-footer .form-note--ok { background: rgba(31,138,76,.2); color: #b9f0cd; }
.site-footer .form-note--err { background: rgba(179,38,30,.25); color: #ffd4cf; }
.site-footer__base {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.5rem 0; border-top: 1px solid var(--line-dark); font-size: .92rem;
}
.site-footer__base p { margin: 0; }
/* Designer credit — sits with the copyright line, a notch quieter than it */
.site-footer__credit { color: inherit; opacity: .72; text-decoration: none; }
.site-footer__credit::before { content: "·"; margin: 0 .5ch; opacity: .6; }
.site-footer__credit:hover { opacity: 1; color: var(--accent-hi); text-decoration: underline; }
.social { list-style: none; display: flex; gap: .5rem; }
.social a {
  display: grid; place-items: center; width: 42px; height: 42px; color: #fff; background: var(--onyx-2);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.social a:hover { background: var(--accent); color: var(--on-accent); }
.social a:focus-visible { outline: 3px solid var(--accent); outline-offset: -5px; }
.social--dark a { background: var(--onyx); }

/* ---------- Video modal ---------- */
.video-modal { width: min(92vw, 1100px); padding: 0; border: 0; background: #000; overflow: visible; }
.video-modal::backdrop { background: rgba(6,9,12,.86); }
.video-modal__frame { aspect-ratio: 16 / 9; }
.video-modal__frame iframe,
.video-modal__frame video { display: block; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }
/* Vertical clips — portrait player instead of a letterboxed 16:9 box */
.video-modal--portrait { width: fit-content; max-width: 92vw; }
.video-modal--portrait .video-modal__frame { aspect-ratio: 9 / 16; height: min(78vh, 760px); max-width: 92vw; }
.video-modal__close { position: absolute; right: 0; top: -52px; width: 44px; height: 44px; display: grid; place-items: center; color: #fff; }
.video-modal__close .ic { width: 28px; height: 28px; }

/* ---------- Entrance (one orchestrated moment: hero load) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero .strata__line { stroke-dasharray: 2200; stroke-dashoffset: 2200; animation: draw 2.4s var(--ease) forwards; animation-delay: calc(var(--i) * 60ms); }
  .page-hero .strata__line, .cta .strata__line { stroke-dasharray: 2200; stroke-dashoffset: 2200; animation: draw 2s var(--ease) forwards; animation-delay: calc(var(--i) * 40ms); }
  .hero__title span { animation: rise .9s var(--ease) both; }
  .hero__title span + span { animation-delay: .12s; }
  .hero__lead, .hero .btn-row { animation: rise .9s var(--ease) .25s both; }
  .hero__media { animation: rise 1s var(--ease) .35s both; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

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

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .info-cards { grid-template-columns: repeat(3, 1fr); }
  .form { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
  .step-list { grid-template-columns: repeat(3, 1fr); }
  .check-list--2 { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1fr 1.05fr; align-items: center; gap: 4rem; }
  .section-head--split { grid-template-columns: 1.1fr 1fr; }
  .section-head--split > div:first-child .h2 { margin-bottom: 0; }
  .about__grid { grid-template-columns: .95fr 1.05fr; gap: 5rem; }
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
  .why__grid { grid-template-columns: 1.05fr .95fr; gap: 5rem; }
  .cta__inner { grid-template-columns: 1.3fr 1fr; }
  .faq__grid { grid-template-columns: .9fr 1.1fr; gap: 4rem; }
  .faq__media { position: sticky; top: 110px; }
  .detail { grid-template-columns: 320px 1fr; gap: 3.5rem; }
  .detail__aside { position: sticky; top: 110px; }
  .units { grid-template-columns: 1fr 1fr; }
  .unit--wide { grid-column: 1 / -1; }
  .products-line__grid { grid-template-columns: 1fr 1.1fr; gap: 4.5rem; }
  .team-intro__grid { grid-template-columns: 1.1fr .9fr; gap: 5rem; }
  .contact__grid { grid-template-columns: .85fr 1.15fr; gap: 4rem; }
  .map-band__grid { grid-template-columns: 1fr 1.3fr; gap: 4rem; }
  .site-footer__grid { grid-template-columns: 1.4fr .8fr .9fr 1.4fr; }
  .service-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1100px) {
  .service-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1280px) {
  .header-phone span { display: none; }
}
@media (max-width: 1140px) {
  .nav-toggle { display: inline-flex; }
  .site-header__actions .btn { display: none; }
  .header-phone { display: none; }
  .site-header__actions { margin-left: auto; }
  .nav {
    position: fixed; inset: 84px 0 0 0; margin: 0; padding: 1.5rem var(--gutter) 2rem;
    background: var(--onyx); overflow-y: auto;
    opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { padding: 1rem 0; font-family: var(--f-head); font-weight: 700; font-size: 1.5rem; color: #fff; border-bottom: 1px solid var(--line-dark); }
  .nav__list a::after { left: 0; right: auto; width: 40px; bottom: -1px; }
  .nav__mobile-extra { display: grid; gap: 1.2rem; margin-top: 2rem; justify-items: start; }
  .nav__phone { display: inline-flex; gap: .5rem; align-items: center; color: #fff; text-decoration: none; font-weight: 700; }
  .nav__phone .ic { color: var(--accent); }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 899px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639px) {
  .service-grid { grid-template-columns: 1fr; }
  .review-chip { right: .5rem; }
  .about__years { right: .5rem; }
  .disciplines li { flex-basis: 50%; margin-right: 0; padding-right: .8rem; border-right: 0; }
  .rail-ctrl { justify-self: start; }
  .brand img { height: 38px; }
}

/* ---------- v2: OSI technology content ---------- */
.hero__caption { margin: .9rem 0 0; font-size: .88rem; font-style: italic; color: rgba(255,255,255,.62); }
.stat__suf { font-size: .5em; margin-left: .15em; }
.ic--down { transform: rotate(90deg); }

.past { background: var(--onyx-2); color: #fff; padding: var(--sec) 0; }
.past__grid { display: grid; gap: 3rem; align-items: center; }
.past img { aspect-ratio: 4 / 3; }
.past .label { color: var(--accent-hi); }
.past .lead { color: rgba(255,255,255,.78); margin-bottom: 2rem; }

.detail__hero { aspect-ratio: 16 / 9; margin-bottom: 2rem; background: #fff; }
.detail__hero[src$=".webp"], .detail__hero[src*="collector-sizes"] { object-fit: contain; background: #fff; border: 1px solid var(--line); }
.detail__lead { max-width: none; font-size: 1.2rem; color: var(--ink); }
.detail__p { color: var(--ink-soft); max-width: 72ch; }
.detail__h { margin-top: 3rem; }

.spec-table { margin: 0; border-top: 2px solid var(--onyx); }
.spec-table > div { display: grid; grid-template-columns: minmax(140px, 32%) 1fr; gap: 1rem; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.spec-table dt { font-weight: 700; }
.spec-table dd { margin: 0; color: var(--ink-soft); }

.process-list { list-style: none; counter-reset: p; display: grid; gap: .2rem; }
.process-list li { counter-increment: p; position: relative; padding: .9rem 0 .9rem 3.4rem; border-bottom: 1px solid var(--line); }
.process-list li::before {
  content: counter(p); position: absolute; left: 0; top: .75rem; width: 2.2rem; height: 2.2rem; display: grid; place-items: center;
  font-family: var(--f-ext); font-weight: 700; font-size: .9rem; font-synthesis: none; background: var(--onyx); color: var(--accent-hi);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.diagram { margin: 2.5rem 0 0; padding: 1rem; border: 1px solid var(--line); background: #fff; }
.diagram img { width: 100%; }
.diagram figcaption, .gallery figcaption { font-size: .9rem; font-style: italic; color: var(--ink-soft); margin-top: .7rem; }

.gallery { list-style: none; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--mist); --c: 12px;
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
.gallery img[src*="diagram"], .gallery img[src*="section"], .gallery img[src*="sieve.jpg"], .gallery img[src*="generator"],
.gallery img[src*="sizes"], .gallery img[src*="weather"], .gallery img[src*="storage-tank"] { object-fit: contain; background: #fff; border: 1px solid var(--line); }

.sheet-link {
  display: flex; align-items: center; gap: .8rem; padding: 1.1rem 1.3rem; background: var(--accent-soft);
  border-left: 3px solid var(--accent); color: var(--ink); font-weight: 700; text-decoration: none; font-size: .95rem;
}
.sheet-link .ic { color: var(--accent-ink); }
.sheet-link:hover { background: rgba(var(--accent-rgb), .22); }

.feature-list { list-style: none; display: grid; gap: 1.2rem; margin-bottom: 1.5rem; }
.feature { display: grid; grid-template-columns: 1fr; gap: 1.2rem; padding: 1.2rem; border: 1px solid var(--line); }
.feature img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--mist); }
.feature img[src$=".webp"] { object-fit: contain; background: #fff; }
.feature p { color: var(--ink-soft); }
@media (min-width: 640px) { .feature { grid-template-columns: 220px 1fr; align-items: center; } }

.spotlight { position: relative; overflow: hidden; }
.spotlight .unit__code { -webkit-text-stroke-color: rgba(255,255,255,.16); color: transparent; }

.specialists { list-style: none; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.specialist { background: var(--paper); padding: 1.8rem; border-top: 3px solid var(--accent); display: grid; gap: .45rem; align-content: start; }
.specialist__name { font-family: var(--f-head); font-weight: 700; font-size: 1.25rem; }
.specialist__role { color: var(--ink-soft); margin-bottom: .4rem; }
.specialist a { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); text-decoration: none; word-break: break-word; }
.specialist a:hover { color: var(--accent-ink); text-decoration: underline; }
.specialist .ic { color: var(--accent-ink); }

@media (min-width: 900px) {
  .past__grid { grid-template-columns: 1fr 1.1fr; gap: 5rem; }
}

/* ---------- Accessibility (WCAG 2.1 AA) ---------- */
.marquee { position: relative; }
.marquee__toggle {
  position: absolute; right: .6rem; top: 50%; translate: 0 -50%; width: 44px; height: 44px;
  display: grid; place-items: center; background: var(--onyx); color: #fff; border-radius: 50%;
}
.marquee__toggle:focus-visible { outline: 3px solid var(--onyx); outline-offset: 2px; }
.marquee__icon { width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.marquee.is-paused .marquee__track { animation-play-state: paused; }
.marquee.is-paused .marquee__icon { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent currentColor; margin-left: 3px; }

.req { color: #b3261e; font-weight: 700; }
.form-hint { font-size: .95rem; color: var(--ink-soft); margin-top: 1rem; }
.error-summary { font-weight: 400; }
.error-summary__h { font-family: var(--f-body); font-size: 1.05rem; margin-bottom: .4rem; }
.error-summary ul { padding-left: 1.2rem; }
.error-summary a { color: #7f1d1d; font-weight: 700; }
.newsletter input { border-color: rgba(255,255,255,.55); }
.contact-list--light a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.contact-list--light .ic { color: var(--accent-ink); }
.footer-links a, .crumbs a { display: inline-block; padding: .15rem 0; min-height: 24px; }
.prose .check-list { margin: 1rem 0 1.5rem; }
.prose .check-list li { color: var(--ink-soft); }
.prose h2:first-child { margin-top: 0; }

/* Windows High Contrast / forced colours */
@media (forced-colors: active) {
  .btn, .rail-btn, .social a, .marquee__toggle, .person__mark { border: 2px solid ButtonText; }
  .cut, .btn, .service-card, .step, .person, .spotlight, .contact-box { clip-path: none !important; }
  .strata { display: none; }
}
.products-line .spotlight p:not(.unit__code) { color: rgba(255,255,255,.8); }
