/* =========================================================
   KG HSE Solutions — stylesheet
   No frameworks, no build step. Edit directly.

   Design language: "engineering-grade". Deep steel navy,
   hi-vis lime taken from the PPE in the photography, technical
   details (crop-mark frames, ghost numerals, hazard stripes),
   Space Grotesk for display type, Inter for reading.
   ========================================================= */

/* ---------- Fonts (self-hosted, no external requests) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin.woff2") format("woff2");
}

/* ---------- Design tokens ---------- */
:root {
  --ink: #081420;
  --ink-800: #0d1d2c;
  --ink-700: #14293a;
  --ink-500: #2a3e4c;
  --slate: #5b707e;
  --slate-light: #8496a1;
  --line: #e2e8ed;
  --line-strong: #cdd7de;
  --tint: #f3f6f8;
  --white: #ffffff;

  /* hi-vis accent, taken from the PPE in the photography */
  --hv: #cbf23f;
  --hv-deep: #93b81a;

  /* on-dark palette */
  --d-line: rgba(255, 255, 255, 0.09);
  --d-text: #a9bbc7;
  --d-text-dim: #7d92a0;

  --font-display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  /* technical micro-copy: system mono, zero download */
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, "Cascadia Mono",
    "Roboto Mono", Menlo, Consolas, monospace;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --shadow-1: 0 1px 2px rgba(8, 20, 32, 0.05),
    0 10px 26px -14px rgba(8, 20, 32, 0.22);
  --shadow-2: 0 2px 6px rgba(8, 20, 32, 0.07),
    0 28px 56px -24px rgba(8, 20, 32, 0.32);

  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 8vw, 7rem);
  --header-h: 4.5rem;

  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-base: clamp(1rem, 0.975rem + 0.12vw, 1.0625rem);
  --t-lg: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --t-xl: clamp(1.25rem, 1.13rem + 0.55vw, 1.5rem);
  --t-2xl: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem);
  --t-3xl: clamp(2.125rem, 1.5rem + 2.8vw, 3.75rem);
  --t-hero: clamp(2.625rem, 1.3rem + 6vw, 5.75rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.65;
  color: var(--ink-500);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

body.is-locked {
  overflow: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a,
button,
summary {
  -webkit-tap-highlight-color: transparent;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--hv-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--hv);
  color: var(--ink);
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: 820px;
}

.section {
  padding-block: var(--section);
}

.section--tint {
  background: var(--tint);
}

/* "technical paper": tint with a faint blueprint grid, the light
   counterpart of the grid on the dark bands */
.section--blueprint {
  background-image: linear-gradient(rgba(8, 20, 32, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 20, 32, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  background-color: var(--tint);
}

.section--dark {
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  background-color: var(--ink);
  color: var(--d-text);
}

.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

/* hazard stripe — thin construction-tape divider on dark bands */
.hazard {
  height: 6px;
  background: repeating-linear-gradient(
    -45deg,
    var(--hv) 0 14px,
    var(--ink) 14px 28px
  );
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-sm);
  transition: top 0.2s var(--ease);
}

.skip-link:focus-visible {
  top: 1rem;
}

.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;
}

/* ---------- Typographic pieces ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0;
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 3px;
  border-radius: 2px;
  background: var(--hv-deep);
  flex: none;
}

.section--dark .eyebrow {
  color: var(--hv);
}

.section--dark .eyebrow::before {
  background: var(--hv);
}

.section-head {
  max-width: 50rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-head > * + * {
  margin-top: 1.125rem;
}

.section-head h2 {
  font-size: var(--t-3xl);
}

.lead {
  font-size: var(--t-lg);
  line-height: 1.6;
  color: var(--slate);
}

.section--dark .lead {
  color: var(--d-text);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--white);
  --btn-bd: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.5rem;
  border: 1px solid var(--btn-bd);
  border-radius: 12px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
    border-color 0.18s var(--ease), color 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-1);
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn svg {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  transition: transform 0.18s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--primary {
  --btn-bg: var(--hv);
  --btn-fg: var(--ink);
  --btn-bd: var(--hv);
}

.btn--primary:hover {
  --btn-bg: #d8f95f;
  --btn-bd: #d8f95f;
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line-strong);
}

.btn--ghost:hover {
  --btn-bd: var(--ink);
}

.btn--on-dark {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  --btn-bd: rgba(255, 255, 255, 0.35);
}

.btn--on-dark:hover {
  --btn-bd: var(--white);
  --btn-bg: rgba(255, 255, 255, 0.08);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: var(--t-sm);
  color: var(--ink);
  border-bottom: 2px solid var(--hv);
  padding-bottom: 2px;
  transition: gap 0.18s var(--ease), border-color 0.18s var(--ease);
}

.link-arrow:hover {
  gap: 0.75rem;
  border-color: var(--ink);
}

.section--dark .link-arrow {
  color: var(--white);
}

/* ---------- Crop-mark frame for photography ---------- */
.frame {
  position: relative;
}

.frame::before,
.frame::after {
  content: "";
  position: absolute;
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid var(--hv);
  pointer-events: none;
  z-index: 2;
}

.frame::before {
  top: -0.5rem;
  left: -0.5rem;
  border-right: 0;
  border-bottom: 0;
}

.frame::after {
  bottom: -0.5rem;
  right: -0.5rem;
  border-left: 0;
  border-top: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-header--overlay {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}

.site-header--overlay .brand-name,
.site-header--overlay .nav-list a,
.site-header--overlay .nav-toggle {
  color: var(--white);
}

.site-header--overlay .brand-mark--dark {
  display: none;
}

.site-header--overlay .brand-mark--light {
  display: block;
}

.site-header--overlay.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--line);
}

.site-header--overlay.is-scrolled .brand-name,
.site-header--overlay.is-scrolled .nav-list a,
.site-header--overlay.is-scrolled .nav-toggle {
  color: var(--ink);
}

.site-header--overlay.is-scrolled .brand-mark--dark {
  display: block;
}

.site-header--overlay.is-scrolled .brand-mark--light {
  display: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
  min-width: 0;
}

.brand img {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  flex: none;
}

.brand-mark--light {
  display: none;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  color: var(--ink);
  font-family: var(--font-display);
}

.brand-name b {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-name span {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.62;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-list a {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-500);
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  background: rgba(8, 20, 32, 0.07);
  color: var(--ink);
}

.site-header--overlay .nav-list a:hover,
.site-header--overlay .nav-list a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.16);
}

.site-header--overlay.is-scrolled .nav-list a:hover,
.site-header--overlay.is-scrolled .nav-list a[aria-current="page"] {
  background: rgba(8, 20, 32, 0.07);
}

/* The header CTA keeps ink-on-lime in EVERY header state. The generic
   `.nav-list a` colour rules are more specific than `.btn--primary`,
   which used to leave this button with white text on lime. */
.nav-cta,
.site-header .nav-list a.nav-cta,
.site-header--overlay .nav-list a.nav-cta,
.site-header--overlay.is-scrolled .nav-list a.nav-cta {
  margin-left: 0.5rem;
  padding: 0.7rem 1.25rem;
  background: var(--hv);
  border-color: var(--hv);
  color: var(--ink);
  box-shadow: 0 6px 20px -6px rgba(203, 242, 63, 0.55);
}

.site-header .nav-list a.nav-cta:hover,
.site-header--overlay .nav-list a.nav-cta:hover,
.site-header--overlay.is-scrolled .nav-list a.nav-cta:hover {
  background: #d8f95f;
  border-color: #d8f95f;
  color: var(--ink);
  box-shadow: 0 8px 24px -6px rgba(203, 242, 63, 0.7);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.5rem;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

.nav-toggle .icon-close {
  display: none;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--ink);
    padding: 2rem var(--gutter) 3rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
      visibility 0.25s;
    overflow-y: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list a,
  .site-header--overlay .nav-list a {
    color: var(--white);
    padding: 1.05rem 0;
    border-radius: 0;
    border-bottom: 1px solid var(--d-line);
    font-size: 1.25rem;
    font-weight: 600;
    font-family: var(--font-display);
  }

  .nav-list a:hover,
  .nav-list a[aria-current="page"],
  .site-header--overlay .nav-list a:hover,
  .site-header--overlay .nav-list a[aria-current="page"] {
    background: none;
    color: var(--hv);
  }

  /* the CTA keeps its button shape inside the mobile panel */
  .nav-list a.nav-cta,
  .site-header--overlay .nav-list a.nav-cta {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 1.75rem 0 0;
    padding: 1rem 1.5rem;
    border: 1px solid var(--hv);
    border-radius: 12px;
    background: var(--hv);
    color: var(--ink);
    font-size: 0.9375rem;
  }

  .nav-list a.nav-cta:hover,
  .site-header--overlay .nav-list a.nav-cta:hover {
    background: #d8f95f;
    color: var(--ink);
  }

  body.nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  body.nav-open .nav-toggle .icon-open {
    display: none;
  }

  body.nav-open .nav-toggle .icon-close {
    display: block;
  }

  body.nav-open .site-header,
  body.nav-open .site-header--overlay {
    background: var(--ink);
    border-bottom-color: var(--d-line);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.nav-open .brand-name,
  body.nav-open .nav-toggle,
  body.nav-open .site-header--overlay .brand-name,
  body.nav-open .site-header--overlay .nav-toggle {
    color: var(--white);
  }

  body.nav-open .brand-mark--dark {
    display: none;
  }

  body.nav-open .brand-mark--light {
    display: block;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 42rem;
  min-height: max(100svh, 42rem);
  padding-top: calc(var(--header-h) + 3rem);
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to top,
      rgba(5, 13, 21, 0.96) 0%,
      rgba(5, 13, 21, 0.72) 30%,
      rgba(5, 13, 21, 0.34) 60%,
      rgba(5, 13, 21, 0.52) 100%
    ),
    linear-gradient(to right, rgba(5, 13, 21, 0.72) 0%, rgba(5, 13, 21, 0) 66%);
}

/* faint engineering grid over the hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 75%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 75%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero__inner {
  max-width: 58rem;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.hero__inner > * + * {
  margin-top: 1.5rem;
}

.hero .eyebrow {
  color: var(--hv);
}

.hero .eyebrow::before {
  background: var(--hv);
}

.hero h1 {
  font-size: var(--t-hero);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.98;
  color: var(--white);
}

/* hi-vis marker stroke behind the key word — the safety-marking swipe */
.mark {
  font-style: normal;
  position: relative;
  z-index: 0;
  color: var(--ink);
  white-space: nowrap;
  padding-inline: 0.08em;
}

.mark::before {
  content: "";
  position: absolute;
  inset: 0.04em -0.22em -0.04em -0.18em;
  z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 70' preserveAspectRatio='none'%3E%3Cpath d='M7 16C60 7 170 4 254 9l-4 49c-88 8-178 8-244 3z' fill='%23cbf23f'/%3E%3Cpath d='M4 22C70 12 190 10 257 16l-2 12C170 22 70 26 6 34z' fill='%23d8f95f' opacity='.7'/%3E%3C/svg%3E")
    center / 100% 100% no-repeat;
  transform: rotate(-1.2deg);
  transform-origin: left center;
  animation: mark-in 0.7s 0.45s var(--ease) both;
}

@keyframes mark-in {
  from {
    transform: rotate(-1.2deg) scaleX(0);
  }
  to {
    transform: rotate(-1.2deg) scaleX(1);
  }
}

.hero__lead {
  max-width: 42rem;
  font-size: var(--t-lg);
  line-height: 1.65;
  color: #ccd8e0;
}

.hero .btn-row {
  padding-top: 0.5rem;
}

/* fact strip pinned to the bottom edge of the hero */
.hero__facts {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(5, 13, 21, 0.72);
}

.hero__facts ul {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.hero__facts li {
  padding: 1.1rem 1.5rem 1.2rem 0;
  display: grid;
  gap: 0.2rem;
}

.hero__facts li + li {
  padding-left: 1.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.hero__facts b {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 0.8rem + 0.7vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--white);
}

.hero__facts span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--d-text-dim);
}

/* On phones the hero is already full — the fact strip became clutter
   there, so it is desktop/tablet only. */
@media (max-width: 720px) {
  .hero__facts {
    display: none;
  }
}

/* ---------- Sector marquee ---------- */
.sectors {
  border-bottom: 1px solid var(--line);
  background: var(--white);
  overflow: hidden;
}

.sectors .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1.35rem;
}

.sectors__label {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-light);
  flex: none;
}

.sectors__viewport {
  overflow: hidden;
  flex: 1;
  min-width: 0;
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.sectors__track {
  display: flex;
  gap: 0.625rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.sectors__viewport:hover .sectors__track {
  animation-play-state: paused;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* typographic ticker: uppercase words with hi-vis "+" survey marks,
   no chip borders — reads like a technical legend */
.sectors ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding-right: 1.75rem;
  flex: none;
}

.sectors li {
  display: inline-flex;
  align-items: center;
  gap: 1.75rem;
  font-family: var(--font-display);
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
  white-space: nowrap;
}

.sectors li::after {
  content: "+";
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--hv-deep);
}

@media (prefers-reduced-motion: reduce) {
  .sectors__track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
  }

  .sectors__track ul[aria-hidden="true"] {
    display: none;
  }

  .sectors__viewport {
    mask-image: none;
    -webkit-mask-image: none;
  }

  .sectors ul {
    flex-wrap: wrap;
  }
}

/* ---------- Services: one dark index panel with editorial rows ----------
   Three texts of very different lengths looked like a staircase as
   side-by-side cards; as full-width rows the lengths stop competing. */
.cards {
  background: linear-gradient(160deg, var(--ink-700), var(--ink) 62%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 26px 60px -30px rgba(8, 20, 32, 0.55);
  counter-reset: card;
}

.card {
  position: relative;
  padding: clamp(1.75rem, 3.5vw, 3rem);
  color: var(--d-text);
  transition: background 0.25s var(--ease);
}

.card + .card {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.card:hover,
.card.is-hot {
  background: rgba(255, 255, 255, 0.03);
}

/* hi-vis edge that grows in on hover */
.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--hv);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s var(--ease);
}

.card:hover::before,
.card.is-hot::before {
  transform: scaleY(1);
}

.card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 14px;
  background: var(--hv);
  color: var(--ink);
  flex: none;
}

.card__icon svg {
  width: 1.6rem;
  height: 1.6rem;
}

/* ghost numeral 01 / 02 / 03 */
.card__top::after {
  counter-increment: card;
  content: "0" counter(card);
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.22);
  transition: -webkit-text-stroke-color 0.25s var(--ease);
}

.card:hover .card__top::after,
.card.is-hot .card__top::after {
  -webkit-text-stroke-color: var(--hv);
}

.card h3 {
  font-size: var(--t-xl);
  color: var(--white);
  margin-top: 1rem;
}

.card p {
  color: var(--d-text);
  margin-top: 1rem;
  max-width: 62ch;
}

/* on wide screens: title block left, running text right */
@media (min-width: 900px) {
  .card {
    display: grid;
    grid-template-columns: minmax(15rem, 0.75fr) 1.6fr;
    column-gap: clamp(2.5rem, 5vw, 5rem);
    align-items: start;
  }

  .card__top {
    grid-column: 1;
  }

  .card h3 {
    grid-column: 1;
    font-size: var(--t-2xl);
  }

  .card p {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-top: 0.25rem;
  }
}

/* ---------- Split (approach) ---------- */
.split {
  display: grid;
  gap: clamp(2.25rem, 5vw, 4.5rem);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1.05fr 1fr;
  }

  .split--reverse .split__media {
    order: 2;
  }
}

.split__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.split__body > * + * {
  margin-top: 1.25rem;
}

.split__body h2 {
  font-size: var(--t-2xl);
}

/* numbered process list — thin rules, mono indices */
.checklist {
  display: grid;
  gap: 0;
  padding-top: 0.75rem;
}

.checklist li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--d-line);
  font-size: var(--t-sm);
}

.checklist li:last-child {
  border-bottom: 0;
}

.checklist i {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  color: var(--hv);
  flex: none;
  width: 2rem;
}

/* ---------- Stats band ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--d-line);
}

@media (min-width: 780px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stats li {
  padding: clamp(1.5rem, 3vw, 2.25rem) 1.25rem 0 0;
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.stats li + li {
  border-left: 1px solid var(--d-line);
  padding-left: 1.25rem;
}

@media (max-width: 779px) {
  .stats li:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
}

.stats b {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.6rem + 3vw, 3.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.stats b i {
  font-style: normal;
  color: var(--hv);
}

/* the label under the number — direct child only, so the
   data-count span inside <b> keeps the display size */
.stats li > span {
  font-size: var(--t-sm);
  color: var(--d-text-dim);
  line-height: 1.45;
}

/* ---------- Projects: dark case-cards ---------- */
.projects {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

.project {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  background: linear-gradient(160deg, var(--ink-700), var(--ink) 60%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--d-text);
  box-shadow: 0 26px 60px -30px rgba(8, 20, 32, 0.55);
  transition: border-color 0.3s var(--ease);
}

.project:hover,
.project.is-hot {
  border-color: rgba(203, 242, 63, 0.35);
}

@media (min-width: 900px) {
  .project {
    grid-template-columns: 1.05fr 1fr;
    align-items: stretch;
  }

  /* explicit placement: photo and text side by side on row 1, the
     expandable block always full-width on row 2. (Doing this with
     `order` made the grid push the photo to an empty zero-height row
     on the mirrored cards.) */
  .project__media {
    grid-row: 1;
    grid-column: 1;
  }

  .project__body {
    grid-row: 1;
    grid-column: 2;
  }

  .project:nth-child(even) .project__media {
    grid-column: 2;
  }

  .project:nth-child(even) .project__body {
    grid-column: 1;
  }

  .more {
    grid-row: 2;
  }
}

.project__media {
  position: relative;
  overflow: hidden;
  background: var(--ink-800);
}

.project__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

@media (min-width: 900px) {
  .project__media {
    min-height: 100%;
  }

  .project__media img {
    position: absolute;
    inset: 0;
    height: 100%;
    aspect-ratio: auto;
  }
}

.project:hover .project__media img,
.project.is-hot .project__media img {
  transform: scale(1.04);
}

/* photo gets a subtle gradient into the card so tag and edge read well */
.project__media::after {
  content: "";
  position: absolute;
  inset: 55% 0 0 0;
  background: linear-gradient(to bottom, transparent, rgba(5, 13, 21, 0.45));
  pointer-events: none;
}

.project__tag {
  position: absolute;
  left: 1.1rem;
  top: 1.1rem;
  z-index: 2;
  padding: 0.45rem 0.8rem;
  border-radius: 6px;
  background: rgba(203, 242, 63, 0.94);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project__body {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.625rem, 3.5vw, 3rem);
}

.project__body > * + * {
  margin-top: 1.125rem;
}

/* huge outlined case number */
.project__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 2.25rem + 3.5vw, 5rem);
  font-weight: 700;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.22);
  user-select: none;
}

.project__body h3 {
  font-size: var(--t-2xl);
  margin-top: 0.5rem;
  color: var(--white);
}

.project__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: var(--t-sm);
  color: var(--d-text-dim);
  font-weight: 500;
}

.project__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.project__meta svg {
  width: 1rem;
  height: 1rem;
  color: var(--hv);
}

.project__body p {
  color: var(--d-text);
}

/* Expandable extra text. Spans the FULL card width (both columns), so
   opening it never stretches the photo column out of proportion. */
.more {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.25rem clamp(1.625rem, 3.5vw, 3rem) clamp(1.5rem, 3vw, 2rem);
}

.more > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  list-style: none;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 9px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--white);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.more > summary:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

.more > summary::-webkit-details-marker {
  display: none;
}

.more > summary svg {
  width: 1.1rem;
  height: 1.1rem;
  transition: transform 0.22s var(--ease);
}

.more[open] > summary svg {
  transform: rotate(180deg);
}

.more__less {
  display: none;
}

.more[open] > summary .more__more {
  display: none;
}

.more[open] > summary .more__less {
  display: inline;
}

.more__content {
  padding-top: 1.25rem;
}

.more__content > * + * {
  margin-top: 1rem;
}

/* on wide screens the extra text reads as two editorial columns */
@media (min-width: 900px) {
  .more__content {
    column-count: 2;
    column-gap: 3rem;
  }

  .more__content > * + * {
    margin-top: 0;
  }

  .more__content p {
    margin-bottom: 1rem;
  }
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: var(--ink);
  color: var(--d-text);
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: auto -10% -60% auto;
  width: 40rem;
  height: 40rem;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(203, 242, 63, 0.13) 0%,
    rgba(203, 242, 63, 0) 62%
  );
  pointer-events: none;
}

/* same faint grid as the hero, mirrored */
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 70%);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 70%);
  pointer-events: none;
}

/* the closing band should invite, not echo — keep it compact */
.cta-band.section {
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.cta-band .container {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .cta-band .container {
    grid-template-columns: 1.4fr auto;
  }
}

.cta-band h2 {
  font-size: var(--t-3xl);
  color: var(--white);
}

.cta-band p {
  margin-top: 0.875rem;
  color: var(--d-text);
  max-width: 34rem;
}

/* ---------- Contact page ---------- */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3rem, 6vw, 5rem));
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  background: var(--ink);
  color: var(--d-text);
  overflow: hidden;
}

.page-hero__media {
  position: absolute;
  inset: 0;
  opacity: 0.32;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.page-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    var(--ink) 12%,
    rgba(8, 20, 32, 0.55) 70%,
    rgba(8, 20, 32, 0.35) 100%
  );
}

.page-hero .container {
  position: relative;
}

/* Photo-less variant for legal/privacy: same dark band, engineering
   grid instead of an image. */
.page-hero--plain::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 85%);
  pointer-events: none;
}

.page-hero h1 {
  font-size: var(--t-3xl);
  color: var(--white);
  margin-top: 1rem;
}

.page-hero p {
  margin-top: 1rem;
  max-width: 38rem;
  font-size: var(--t-lg);
  color: var(--d-text);
}

.contact-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

.contact-list {
  display: grid;
  gap: 0.875rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.375rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}

a.contact-item:hover,
a.contact-item.is-hot {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-1);
}

.contact-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: var(--tint);
  color: var(--ink);
  flex: none;
}

.contact-item__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.contact-item dt,
.contact-item .label {
  display: block;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-light);
}

.contact-item dd,
.contact-item .value {
  display: block;
  margin: 0.15rem 0 0;
  font-size: var(--t-base);
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Form ---------- */
.form-card {
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--tint);
}

.form-grid {
  display: grid;
  gap: 1.125rem;
}

@media (min-width: 640px) {
  .form-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink);
}

.field .req {
  color: var(--hv-deep);
}

.field label > span:not(.req) {
  font-weight: 400;
  color: var(--slate-light);
}

/* Pages without a hero need to clear the fixed header */
.page-top {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 5vw, 4rem));
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: var(--t-base);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(203, 242, 63, 0.45);
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field input:user-invalid,
.field textarea:user-invalid {
  border-color: #c0392b;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--t-sm);
  color: var(--slate);
}

.consent input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.25rem;
  flex: none;
  accent-color: var(--ink);
}

.form-note {
  margin-top: 1rem;
  font-size: var(--t-xs);
  color: var(--slate-light);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: var(--t-sm);
  background: var(--white);
  border: 1px solid var(--line-strong);
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-ok {
  border-color: var(--hv-deep);
  background: rgba(203, 242, 63, 0.18);
  color: var(--ink);
}

/* ---------- Prose (legal pages) ---------- */
.prose > * + * {
  margin-top: 1.25rem;
}

.prose h2 {
  position: relative;
  font-size: var(--t-xl);
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.prose > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* small hi-vis tick on the divider above each heading */
.prose h2::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 2.5rem;
  height: 3px;
  background: var(--hv-deep);
  border-radius: 2px;
}

.prose > h2:first-child::before {
  display: none;
}

.prose h3 {
  font-size: var(--t-lg);
  margin-top: 1.75rem;
}

.prose p,
.prose li {
  color: var(--slate);
}

.prose ul {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 0.625rem;
}

.prose ul li {
  position: relative;
  padding-left: 1.5rem;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--hv);
}

.prose a {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 2px solid var(--hv);
}

.prose a:hover {
  border-color: var(--ink);
}

/* Key-facts card at the top of the legal page */
.fact-card {
  display: grid;
  gap: 0;
  margin: 2rem 0 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-1);
}

@media (min-width: 640px) {
  .fact-card {
    grid-template-columns: 1fr 1fr;
  }
}

.fact-card > div {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.375rem 1.5rem;
  border-top: 1px solid var(--line);
}

.fact-card > div:first-child {
  border-top: 0;
}

@media (min-width: 640px) {
  .fact-card > div:nth-child(2) {
    border-top: 0;
  }

  .fact-card > div:nth-child(even) {
    border-left: 1px solid var(--line);
  }
}

.fact-card .contact-item__icon {
  margin-top: 0.1rem;
}

.fact-card .label {
  display: block;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-light);
}

.fact-card .value {
  display: block;
  margin-top: 0.2rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--d-text-dim);
  padding-block: clamp(2.25rem, 4.5vw, 3.5rem) 1.5rem;
  font-size: var(--t-sm);
  border-top: 1px solid var(--d-line);
}

.footer-top {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--d-line);
}

@media (min-width: 780px) {
  .footer-top {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 3rem;
  }
}

.footer-brand img {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: contain;
}

.footer-brand p {
  margin-top: 1.125rem;
  max-width: 26rem;
  color: var(--d-text-dim);
}

.site-footer h4 {
  color: var(--white);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* Only the nav columns get vertical rhythm — NOT the legal-links row
   at the very bottom, which sits inline (that was the misalignment). */
.footer-top li + li {
  margin-top: 0.6rem;
}

.site-footer a {
  color: var(--d-text-dim);
  transition: color 0.18s var(--ease);
}

.site-footer a:hover {
  color: var(--hv);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 1.5rem;
  font-size: var(--t-xs);
  color: #6f8391;
}

.footer-bottom ul {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
}

.footer-bottom li {
  margin: 0;
  white-space: nowrap;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  transition-delay: calc(var(--reveal-i, 0) * 90ms);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .cta-band,
  .nav-toggle {
    display: none;
  }
}
