@charset "UTF-8";

/* ==========================================================================
   M3 Consulting
   Palette is sampled from the supplied photography, which sits in a deep
   petrol blue range rather than neutral black. Brand red is unchanged.
   ========================================================================== */

/* Self-hosted variable Open Sans, Latin subset, weights 300-800.
   Replaces the previous Google Fonts dependency. */
@font-face {
  font-family: "Open Sans Variable";
  src: url("../fonts/opensans-latin-var.woff2") format("woff2-variations");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Surfaces */
  --ink:        #0a1519;   /* deepest, nav and hero scrim base */
  --ink-2:      #12232b;   /* raised dark surface */
  --ink-3:      #1c333d;   /* dark surface borders */
  --contact-bg: #2f2f2f;   /* retained from the existing identity */
  --paper:      #ffffff;
  --mist:       #f3f6f7;   /* cool light band, tuned to the petrol palette */
  --line:       #e2e8ea;

  /* Type colours */
  --text:       #14212a;
  --text-soft:  #4d616c;
  --text-dim:   #7b8c95;
  --on-dark:        #ffffff;
  --on-dark-soft:   rgba(255, 255, 255, 0.76);
  --on-dark-dim:    rgba(255, 255, 255, 0.55);

  /* Brand */
  --red:      #cf2e2e;
  --red-dark: #b02525;
  --red-tint: rgba(207, 46, 46, 0.10);

  /* Metrics */
  --nav-h:    100px;
  --max:      1440px;
  --measure:  68ch;
  --gutter:   clamp(1.25rem, 6vw, 7.5rem);
  --radius:   4px;
  --ease:     cubic-bezier(0.2, 0.7, 0.3, 1);

  /* Fluid type scale */
  --fs-display: clamp(2.125rem, 1.35rem + 3.4vw, 4rem);
  --fs-h2:      clamp(1.625rem, 1.2rem + 1.8vw, 2.5rem);
  --fs-h3:      clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --fs-lede:    clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
  --fs-body:    1.0625rem;
  --fs-small:   0.9375rem;
  --fs-label:   0.75rem;
}

/* ---------------------------------------------------------------- Reset */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Open Sans Variable", "Open Sans", system-ui, -apple-system,
               "Segoe UI", Roboto, sans-serif;
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, figure, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
address { font-style: normal; }

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

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: -9999px;
  z-index: 300;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--text);
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}
.skip-link:focus { left: 0.5rem; }

/* ---------------------------------------------------------------- Layout */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section-mist { background: var(--mist); }

/* ---------------------------------------------------------------- Type */

.tag {
  display: inline-block;
  margin-bottom: 0.875rem;
  color: var(--red);
  font-size: var(--fs-label);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.2;
}
.tag-on-dark { color: #ff8a8a; }

h1, .h1 {
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

h2, .h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

h3, .h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.lede {
  max-width: 56ch;
  font-size: var(--fs-lede);
  font-weight: 300;
  line-height: 1.55;
  color: var(--text-soft);
}

.prose > p { max-width: var(--measure); }
.prose > p + p { margin-top: 1.125rem; }
.prose { color: var(--text-soft); }

/* --------------------------------------------------------- Spacing utilities
   These exist because inline style="" attributes are blocked by our CSP
   (style-src 'self', no 'unsafe-inline'). Inline styles were being silently
   dropped, so spacing collapsed to 0. Do not reintroduce style="" attributes
   without adding 'unsafe-inline' to style-src, which is not worth it. */
.mt-4  { margin-top: 1rem; }
.mt-6  { margin-top: 1.25rem; }
.mt-block { margin-top: clamp(2.5rem, 5vw, 4rem); }
.measure-60 { max-width: 60ch; }

/* ---------------------------------------------------------------- Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 50px;
  padding-inline: 1.75rem;
  border-radius: 46px;
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
              background-color 0.18s var(--ease);
}
.btn::after {
  content: "";
  width: 7px; height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { transform: rotate(45deg) translate(2px, -2px); }

.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); box-shadow: 0 10px 26px rgba(207, 46, 46, 0.34); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24); }

.btn-ghost {
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.34);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

.btn-outline {
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn-outline:hover { background: var(--mist); box-shadow: inset 0 0 0 1.5px #cfd9dc; }

/* Error page sits below the fixed nav rather than under a hero. */
.section-404 { padding-top: calc(var(--nav-h) + clamp(3rem, 7vw, 5.5rem)); }

/* ---------------------------------------------------------------- Nav */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  background: rgba(10, 21, 25, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.nav.scrolled {
  background: rgba(8, 17, 20, 0.96);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  max-width: var(--max);
  min-height: var(--nav-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nav-logo { flex: none; }
.nav-logo img { width: 80px; height: auto; }

.nav-links {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  color: var(--on-dark-soft);
  font-size: var(--fs-small);
  font-weight: 600;
  transition: color 0.16s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.15rem;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease);
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active { color: #fff; font-weight: 700; }
.nav-link.active::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 42px;
  padding-inline: 1.125rem;
  border-radius: 42px;
  background: #fff;
  color: var(--ink);
  font-size: var(--fs-small);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.nav-cta svg { width: 20px; height: 20px; color: var(--red); }
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.nav-check {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
#navCheck:focus-visible ~ .nav .nav-toggle {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: var(--radius);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.16s var(--ease);
}
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
#navCheck:checked ~ .nav .nav-toggle .icon-open { display: none; }
#navCheck:checked ~ .nav .nav-toggle .icon-close { display: block; }
.nav-toggle:hover { background: rgba(255, 255, 255, 0.12); }

/* Mobile menu: a compact panel that drops beneath the nav bar with the page
   dimmed behind it, replacing the full-screen takeover (owner feedback: too
   big). The scrim is a <label> for the checkbox, so tapping outside closes
   the menu with zero JavaScript. */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
}
#navCheck:checked ~ .drawer { display: block; }

.drawer-scrim {
  position: absolute;
  inset: 0;
  background: rgba(6, 14, 18, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  cursor: pointer;
}

.drawer-panel {
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  padding: 0.375rem var(--gutter) 1.1rem;
  background: #0b181d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.45);
  animation: panel-drop 0.22s var(--ease) both;
}
@keyframes panel-drop {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

.drawer a {
  display: block;
  padding: 0.8rem 0.125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--on-dark-soft);
  font-size: 1.0625rem;
  font-weight: 600;
}
.drawer li:last-child a { border-bottom: 0; }
.drawer a:hover { color: #fff; }
.drawer a.active {
  color: #fff;
  box-shadow: inset 3px 0 0 var(--red);
  padding-left: 0.75rem;
}
.drawer-cta {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
  padding: 0.65rem 1.375rem !important;
  border-bottom: 0 !important;
  border-radius: 42px;
  background: #fff;
  color: var(--ink) !important;
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
  box-shadow: inset 0 0 0 0 transparent !important;
}
.drawer-cta svg { width: 18px; height: 18px; color: var(--red); }

/* Background must not scroll behind the open overlay. :has() covers the
   no-JS case; the JS-applied class covers engines without :has(). */
html.drawer-open, html.drawer-open body,
html:has(#navCheck:checked), html:has(#navCheck:checked) body {
  overflow: hidden;
}

/* ---------------------------------------------------------------- Hero */

/* Heroes run full bleed beneath the translucent fixed nav, so <main> carries
   no top padding. Hero content is inset by the nav height instead. */
.hero {
  position: relative;
  display: grid;
  align-items: end;
  isolation: isolate;
  min-height: 650px;
  background: var(--ink);
  overflow: hidden;
}
.hero-short { min-height: 460px; }

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  will-change: transform;   /* parallax target; img keeps the settle anim */
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Scrim weighted to the left so overlay copy holds contrast regardless of
   where the photograph's own light falls. */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg,
      rgba(6, 14, 18, 0.94) 0%,
      rgba(6, 14, 18, 0.82) 34%,
      rgba(6, 14, 18, 0.42) 66%,
      rgba(6, 14, 18, 0.30) 100%),
    linear-gradient(to top,
      rgba(6, 14, 18, 0.66) 0%,
      rgba(6, 14, 18, 0) 55%);
}
/* The value hero photograph is considerably brighter than the others. */
.hero-bright .hero-scrim {
  background:
    linear-gradient(100deg,
      rgba(6, 14, 18, 0.95) 0%,
      rgba(6, 14, 18, 0.88) 40%,
      rgba(6, 14, 18, 0.62) 72%,
      rgba(6, 14, 18, 0.48) 100%),
    linear-gradient(to top,
      rgba(6, 14, 18, 0.7) 0%,
      rgba(6, 14, 18, 0) 55%);
}

.hero-body {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem)) var(--gutter)
           clamp(3rem, 6vw, 5rem);
  color: var(--on-dark);
}
.hero-body h1 { max-width: 21ch; }
.hero-body .lede {
  margin-top: 1.5rem;
  max-width: 58ch;
  color: var(--on-dark-soft);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 2.25rem;
}

/* Page-title hero: the large light/heavy weight pairing is the type signature */
.hero-title h1 { max-width: 24ch; }
.hero-title .h1-light { display: block; font-weight: 300; color: var(--on-dark-soft); }
.hero-title .hero-body { align-self: end; }

.hero-crumbs {
  margin-bottom: 1rem;
  /* Not --on-dark-dim: at 0.55 alpha these fall below WCAG AA over the
     lighter areas of the hero photographs. Measured 4.12:1 on the contact
     hero, against 4.5 required for text this size. */
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--fs-small);
}
.hero-crumbs a {
  display: inline-block;
  padding-block: 0.25rem;
  min-height: 26px;
}
.hero-crumbs a:hover { color: #fff; text-decoration: underline; }
.hero-crumbs span { padding-inline: 0.4rem; }

/* ---------------------------------------------------------------- Intro grid */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split-media img { width: 100%; border-radius: var(--radius); }

/* Supplied dot artwork, used once as a quiet accent behind the intro. */
.dot-accent { position: relative; overflow: hidden; }
.dot-accent::before {
  content: "";
  position: absolute;
  top: -3rem;
  right: -6rem;
  width: 30rem;
  height: 30rem;
  background: url("../img/shared/dots-800.webp") no-repeat center / contain;
  opacity: 0.16;
  pointer-events: none;
}

/* ---------------------------------------------------------------- Panels */

.panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel { padding: 1.75rem; background: var(--paper); }
.panel .p-label {
  color: var(--text-dim);
  font-size: var(--fs-label);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.panel .p-value {
  margin-top: 0.5rem;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.panel .p-note {
  margin-top: 0.5rem;
  color: var(--text-soft);
  font-size: var(--fs-small);
}

/* ---------------------------------------------------------------- Features */

.feature + .feature { margin-top: clamp(3.5rem, 7vw, 6rem); }
.feature .split-media { order: -1; }
.feature.reverse .split-media { order: 2; }

/* ---------------------------------------------------------------- Register
   Capabilities as a numbered register. Security practitioners navigate by
   control reference, so the numbering carries meaning rather than decoration.
   ---------------------------------------------------------------- */

.register {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.entry {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease),
              border-color 0.24s var(--ease);
}
.entry:hover {
  transform: translateY(-4px);
  border-color: #cfd9dc;
  box-shadow: 0 18px 40px rgba(10, 21, 25, 0.13);
}

.entry-media { position: relative; background: var(--ink-2); }
.entry-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.entry-no {
  position: absolute;
  bottom: 0; left: 0;
  min-width: 3.75rem;
  padding: 0.4rem 0.9rem 0.35rem;
  background: var(--red);
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.entry-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(1.5rem, 2.5vw, 2rem);
}
.entry-body h3 { margin-bottom: 0.75rem; }
.entry-body > p { color: var(--text-soft); }

.entry-points {
  margin-top: 1.375rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.entry-points li {
  position: relative;
  padding-left: 1.375rem;
  color: var(--text-soft);
  font-size: var(--fs-small);
  line-height: 1.5;
}
.entry-points li + li { margin-top: 0.625rem; }
.entry-points li::before {
  content: "";
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 8px; height: 2px;
  background: var(--red);
}

/* ---------------------------------------------------------------- Value rows */

.vrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.vrow + .vrow {
  margin-top: clamp(3rem, 6vw, 5.5rem);
  padding-top: clamp(3rem, 6vw, 5.5rem);
  border-top: 1px solid var(--line);
}
.vrow-media img { width: 100%; border-radius: var(--radius); }
.vrow.reverse .vrow-media { order: 2; }

/* Red line icons from the supplied set, in a bordered seal */
.seal {
  display: grid;
  place-items: center;
  width: 68px; height: 68px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--red-tint);
}
.seal img { width: 36px; height: 36px; }

/* ---------------------------------------------------------------- Cross-link */

.crosslink {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  background: var(--mist);
}
.crosslink p { max-width: 60ch; color: var(--text-soft); }
.crosslink h2 { font-size: var(--fs-h3); margin-bottom: 0.375rem; }

/* ---------------------------------------------------------------- Contact */

.contact-section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  background: var(--contact-bg);
  color: #fff;
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
}
.contact-grid.teaser { grid-template-columns: minmax(0, 1fr); }
.contact-info h2 { margin-bottom: 1rem; }
.contact-info .lede { color: var(--on-dark-soft); }
.contact-info .btn { margin-top: 2rem; }

.contact-details { margin-top: 2.25rem; }
.contact-details li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  padding-block: 0.875rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.contact-details li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.c-label {
  color: var(--on-dark-dim);
  font-size: var(--fs-label);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-top: 0.28em;
}
.contact-details a { font-weight: 600; font-variant-numeric: tabular-nums; }
.contact-details a:hover { color: #ff9a9a; text-decoration: underline; }

/* ---------------------------------------------------------------- Form */

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--on-dark-soft);
  font-size: var(--fs-small);
  font-weight: 600;
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease);
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:hover,
.field textarea:hover { border-color: rgba(255, 255, 255, 0.36); }
.field input:focus,
.field textarea:focus {
  border-color: var(--red);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  box-shadow: 0 0 0 3px rgba(207, 46, 46, 0.28);
}
.field.error input,
.field.error textarea { border-color: #ff8080; }
.err {
  margin-top: 0.4rem;
  color: #ff9a9a;
  font-size: var(--fs-small);
  font-weight: 600;
}
.turnstile-field { min-height: 65px; }
.form .btn { margin-top: 0.5rem; }
.form-note {
  margin-top: 1rem;
  color: var(--on-dark-dim);
  font-size: var(--fs-small);
}

/* Honeypot: off-screen rather than display:none, since some bots skip
   fields that are not rendered at all. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.banner {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border-left: 3px solid;
  font-size: var(--fs-small);
}
.banner.success {
  border-color: #4ec97f;
  background: rgba(78, 201, 127, 0.14);
}
.banner.error {
  border-color: #ff8080;
  background: rgba(255, 128, 128, 0.14);
}

/* ---------------------------------------------------------------- Footer */

.footer {
  padding-top: clamp(3rem, 6vw, 4.5rem);
  background: var(--ink);
  color: var(--on-dark-soft);
  font-size: var(--fs-small);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.footer-brand img { width: 92px; height: auto; margin-bottom: 1.25rem; }
.footer-brand p { max-width: 34ch; color: var(--on-dark-dim); }
.footer-col h2 {
  margin-bottom: 1rem;
  color: #fff;
  font-size: var(--fs-label);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer-col li + li { margin-top: 0.15rem; }
/* Padded to clear the 24px minimum target size in WCAG 2.2 SC 2.5.8.
   Measured at 20px before this, which failed. */
.footer-col a {
  display: inline-block;
  padding-block: 0.3rem;
  min-height: 26px;
}
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer address a {
  display: inline-block;
  padding-block: 0.3rem;
  min-height: 26px;
  font-variant-numeric: tabular-nums;
}
.footer address span { color: var(--on-dark-dim); }
.footer-legal {
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--on-dark-dim);
  font-size: 0.8125rem;
}

/* ------------------------------------------------------------- Animations
   All entrance animation is gated on .js so content is never hidden for a
   visitor without JavaScript. prefers-reduced-motion is intentionally not
   honoured (owner decision): motion runs for everyone. */

/* Hero image settles from a slight zoom; the scrim hides the edges. */
.js .hero-media img {
  animation: hero-settle 1.8s var(--ease) both;
}
@keyframes hero-settle {
  from { transform: scale(1.05); }
  to   { transform: scale(1); }
}

/* Hero copy rises in sequence. */
.js .hero-body > * {
  opacity: 0;
  animation: rise 0.75s var(--ease) forwards;
}
.js .hero-body > *:nth-child(1) { animation-delay: 0.10s; }
.js .hero-body > *:nth-child(2) { animation-delay: 0.22s; }
.js .hero-body > *:nth-child(3) { animation-delay: 0.34s; }
.js .hero-body > *:nth-child(4) { animation-delay: 0.46s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* Capability card images ease in on hover. */
.entry-media { overflow: hidden; }
.entry-media img {
  transition: transform 0.5s var(--ease);
}
.entry:hover .entry-media img { transform: scale(1.045); }

/* Value row images get the same treatment. */
.vrow-media { overflow: hidden; border-radius: var(--radius); }
.vrow-media img { transition: transform 0.6s var(--ease); }
.vrow:hover .vrow-media img { transform: scale(1.03); }

/* The dot artwork drifts very slowly; barely perceptible, deliberately so. */
.js .dot-accent::before {
  animation: dot-drift 26s ease-in-out infinite alternate;
}
@keyframes dot-drift {
  from { transform: translate(0, 0); }
  to   { transform: translate(-1.75rem, 1.25rem); }
}

/* Images are not draggable and not selectable; pairs with the JS
   context-menu block. A deterrent, not a control. */
img {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}

/* --------------------------------------------------------------- Polish */

/* Brand-red text selection: a small detail that reads as intentional. */
::selection { background: var(--red); color: #fff; }

/* Section eyebrows get a short red rule, anchoring each section opening. */
.tag::before {
  content: "";
  display: inline-block;
  width: 22px; height: 2px;
  margin-right: 0.6rem;
  vertical-align: middle;
  background: currentColor;
}

/* Nav condenses slightly once scrolled: more content, still branded. */
.nav-inner { transition: min-height 0.25s var(--ease); }
.nav.scrolled .nav-inner { min-height: 84px; }

/* Stat panels: red keyline rises on hover, echoing the entry numbers. */
.panel {
  position: relative;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.panel:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(10,21,25,0.10); }
.panel:hover::before { transform: scaleX(1); }
.panel .p-value { color: var(--red); font-weight: 400; }

/* Crosslink band deepens on hover so it reads as one large affordance. */
.crosslink { transition: box-shadow 0.24s var(--ease), border-color 0.24s var(--ease); }
.crosslink:hover { box-shadow: 0 16px 36px rgba(10,21,25,0.10); border-color: #cfd9dc; }

/* Footer links slide right a touch on hover. */
.footer-col a { transition: color 0.16s var(--ease), transform 0.16s var(--ease); }
.footer-col a:hover { transform: translateX(3px); }

/* Hero: a soft gradient seam into the page below, replacing the hard cut. */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 90px;
  background: linear-gradient(to top, rgba(6,14,18,0.55), rgba(6,14,18,0));
  pointer-events: none;
}

/* Section headings breathe a little more against their eyebrow. */
.section h2 { margin-top: 0.25rem; }

/* ---- Signature motion set ---- */

/* Reading progress: a thin red line pinned above the nav. Scaled by JS via
   the CSSOM; without JS it stays at zero width and is invisible. */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 210;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--red), #ff6b6b);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* Scan line: one pass down the hero on load, like a scanner sweep. Runs
   inside the hero's overflow:hidden so it can never cause page overflow. */
.js .hero-media::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -3px;
  height: 2px;
  background: linear-gradient(90deg,
    rgba(207,46,46,0), rgba(207,46,46,0.85) 30%,
    rgba(255,120,120,0.95) 50%, rgba(207,46,46,0.85) 70%, rgba(207,46,46,0));
  box-shadow: 0 0 14px rgba(207, 46, 46, 0.55);
  animation: scan-sweep 1.7s cubic-bezier(0.3, 0, 0.4, 1) 0.45s both;
  pointer-events: none;
}
@keyframes scan-sweep {
  0%   { transform: translateY(0);      opacity: 0; }
  8%   { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateY(102vh);  opacity: 0; }
}

/* Content images wipe in from the side as their row reveals; reversed rows
   wipe from the opposite edge so motion always travels toward the text. */
.js [data-reveal] .split-media img,
.js [data-reveal] .vrow-media img,
.js .entry[data-reveal] .entry-media img {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.9s var(--ease) 0.12s,
              transform 0.5s var(--ease);
}
.js [data-reveal].reverse .split-media img,
.js [data-reveal].reverse .vrow-media img {
  clip-path: inset(0 0 0 100%);
}
.js [data-reveal].in .split-media img,
.js [data-reveal].in .vrow-media img,
.js .entry[data-reveal].in .entry-media img {
  clip-path: inset(0 0 0 0);
}

/* Value seals pop with a small rotation as the row lands. */
.js [data-reveal] .seal {
  opacity: 0;
  transform: scale(0.55) rotate(-10deg);
  transition: opacity 0.5s var(--ease) 0.25s, transform 0.5s var(--ease) 0.25s;
}
.js [data-reveal].in .seal { opacity: 1; transform: none; }

/* Eyebrow rules draw in rather than appearing. */
.js [data-reveal] .tag::before {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease) 0.3s;
}
.js [data-reveal].in .tag::before { transform: scaleX(1); }

/* ---------------------------------------------------------------- Reveal */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- Responsive */

@media (max-width: 1040px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  :root { --nav-h: 76px; }
  .nav.scrolled .nav-inner { min-height: 76px; }
  .nav-cta, .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-inner { justify-content: space-between; }
  .register { grid-template-columns: 1fr; }
  .panels { grid-template-columns: 1fr; }
  .hero { min-height: 560px; }
  .hero-short { min-height: 400px; }
}

@media (max-width: 820px) {
  .split, .vrow, .contact-grid { grid-template-columns: 1fr; }
  .feature .split-media,
  .feature.reverse .split-media,
  .vrow.reverse .vrow-media { order: -1; }
  .dot-accent::before { width: 20rem; height: 20rem; opacity: 0.1; }
}

@media (max-width: 600px) {
  /* Touch viewports get comfortable targets rather than the bare minimum. */
  .footer-col a, .footer address a { padding-block: 0.5rem; min-height: 40px; }
  .footer-col li + li { margin-top: 0; }
  .contact-details a { display: inline-block; padding-block: 0.35rem; min-height: 34px; }
  .nav-logo img { width: 64px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .contact-details li { grid-template-columns: 1fr; gap: 0.25rem; }
  .c-label { padding-top: 0; }
  .hero { min-height: 520px; }
  .crosslink { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .entry-body { padding: 1.25rem; }
  .btn { padding-inline: 1.375rem; }
}

/* ---------------------------------------------------------------- A11y */

/* prefers-reduced-motion is deliberately NOT honoured, per owner decision.
   Animations run for every visitor regardless of OS or browser setting. */

@media (prefers-contrast: more) {
  :root { --text-soft: #2b3b44; --on-dark-soft: #fff; }
  .entry { border-color: #9aa8ad; }
}

/* ---------------------------------------------------------------- Print */

@media print {
  .nav, .drawer, .skip-link, .form, .hero-media, .hero-scrim,
  .dot-accent::before, .btn { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .hero, .contact-section, .footer {
    min-height: 0 !important;
    background: #fff !important;
    color: #000 !important;
  }
  .hero-body { padding: 0 0 1rem !important; color: #000 !important; }
  .hero-body .lede, .contact-info .lede,
  .c-label, .footer, .footer-brand p, .footer address span { color: #000 !important; }
  .entry { break-inside: avoid; border-color: #999; }
  .section { padding-block: 1rem; }
  a[href^="http"]::after, a[href^="mailto"]::after, a[href^="tel"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
  }
}
