/* ==========================================================================
   KENDAL VENTURES INC. — kendalventures.ca
   Hand-coded stylesheet. No frameworks, no build step.

   Token system (locked):
     Benchland White #F6F5F0 — page base
     Ink             #1D1D1B — text & structure
     Flagging Orange #E4571B — CTAs / highlights only (flagging tape)
     Slate           #5C5E60 — secondary text
   Green is never used in UI chrome; it appears only inside content imagery.
   ========================================================================== */

/* ------------------------------------------------------- self-hosted fonts */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('../assets/fonts/archivo-400-800-normal-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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/ibm-plex-mono-400-normal-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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/ibm-plex-mono-500-normal-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: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/source-sans-3-400-normal-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: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/source-sans-3-600-normal-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;
}

:root {
  --paper: #F6F5F0;
  --ink: #1D1D1B;
  --flag: #E4571B;
  --flag-text: #C04508; /* darker flagging orange — AA-compliant as text on paper/white */
  --flag-on-ink: #EE6B1E; /* lighter flagging orange — AA-compliant as small text on the band-ink cards */
  --slate: #5C5E60;

  /* functional derivations of the locked tokens */
  --hairline: rgba(92, 94, 96, 0.30);
  --hairline-soft: rgba(92, 94, 96, 0.18);
  --hairline-paper: rgba(246, 245, 240, 0.22);
  --paper-dim: rgba(246, 245, 240, 0.76);
  --tint: #ECE9E0;            /* recessed neutral surface */
  --card: #FFFFFF;            /* lifted neutral surface  */
  --cinema: #0E0E0D;          /* true black — staged "dark room" moments only */
  --cinema-dim: rgba(246,245,240,0.66); /* muted paper text on cinema */

  /* motion tokens (Stripe-discipline: obey everywhere) */
  --ease-out: cubic-bezier(.2,.7,.2,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);
  --dur-1: 180ms; --dur-2: 320ms; --dur-3: 480ms;
  /* hover grammar: interactive cards lift translateY(-3px) over var(--dur-1) var(--ease-out).
     Documented exceptions: 0.15-0.16s ease micro colour/border fades on buttons and
     controls; media-zoom image scales run longer (0.45s / var(--dur-3)); kv-ping and
     cue-bob keep their own symmetric curves. */

  /* depth tokens (hairlines + one shadow each; never glows) */
  --lift: 0 10px 30px rgba(29,29,27,.08);
  --lift-cinema: 0 30px 80px rgba(0,0,0,.5);

  /* radius ramp: --r-1 chips/badges/small ui, --r-2 media frames/cards/embeds */
  --r-1: 2px;
  --r-2: 4px;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-hero: clamp(2.85rem, 6vw + 0.5rem, 6rem); /* 360px: 45.6px / 1440px: 94.4px / cap 96px */
  --fs-h2: clamp(2rem, 3vw + 0.7rem, 3.4rem);
  --fs-h3: clamp(1.3rem, 1vw + 1rem, 1.7rem);
  --fs-lede: clamp(1.12rem, 0.6vw + 1rem, 1.34rem);
  --fs-display-xl: clamp(2.7rem, 5.5vw, 5.75rem);  /* dark-room headlines, calm */

  --space-section: clamp(64px, 9vw, 118px);
  --space-tight: clamp(44px, 6.5vw, 78px);
  --space-head: clamp(28px, 4vw, 56px);
  --header-h: 64px;
}

/* ----------------------------------------------------------- base / reset */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;            /* contain full-bleed .room breakouts (100vw + scrollbar) */
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: clip;            /* belt-and-suspenders with html: kill residual 100vw breakout scroll */
}

img, svg { display: block; max-width: 100%; }
picture { display: contents; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-hero); font-weight: 700; font-stretch: 115%; line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); font-weight: 700; font-stretch: 112%; line-height: 1.05; letter-spacing: -0.022em; }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.18; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-color: var(--flag); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2.5px; }

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

::selection { background: var(--flag); color: var(--paper); }

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 10px 16px;
  text-decoration: none;
  transition: top 0.15s var(--ease-out);
}
.skip-link:focus { top: 12px; }

[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

.container {
  position: relative;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

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

/* ------------------------------------------------- cartographic vernacular */

/* contour-line backdrops: decorative geospatial texture, never content.
   Only painted at >=720px — phones see a sliver at best, and skipping the
   image keeps it out of the mobile critical path. */
.has-contours { position: relative; }
@media (min-width: 720px) {
  .has-contours::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../assets/img/contours-paper.svg") no-repeat right -220px top -160px / 900px auto;
    pointer-events: none;
  }
  .has-contours.contours-left::before {
    background-position: left -260px bottom -200px;
  }
  .band-ink.has-contours::before {
    background-image: url("../assets/img/contours-ink.svg");
  }
}
.has-contours > .container { z-index: 1; }

/* framed capture: image + mono data bar — real metadata under real imagery */
.figure-frame {
  margin: 0;
  border: 1px solid var(--ink);
  border-radius: var(--r-2);
  overflow: hidden;
  background: var(--ink);
}
.figure-frame img { width: 100%; height: auto; }
.data-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 18px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.data-bar strong { color: var(--paper); font-weight: 500; }
@media (max-width: 479px) {
  .data-bar { font-size: 0.68rem; letter-spacing: 0.06em; min-height: 58px; align-content: center; }
}
.data-bar .tick-sq {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--flag);
  margin-right: 10px;
  vertical-align: baseline;
}
/* live-dot: pulsing orange indicator used in the security-monitoring hero databar */
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e85c0d;
  margin-right: 7px;
  vertical-align: middle;
  position: relative;
  top: -1px;
  flex-shrink: 0;
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes kv-ping {
    0%   { transform: scale(1);    opacity: 1; }
    70%  { transform: scale(2.2);  opacity: 0; }
    100% { transform: scale(2.2);  opacity: 0; }
  }
  .live-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #e85c0d;
    animation: kv-ping 1.6s cubic-bezier(.4,0,.6,1) infinite; /* exception: symmetric pulse */
  }
}

/* stat band — real numbers, mono-set, hairline separated */
.stat-band {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.stat-band .container {
  display: grid;
  gap: 0;
}
.stat {
  padding: clamp(22px, 3vw, 34px) 8px;
  text-align: center;
}
.stat + .stat { border-top: 1px solid var(--hairline-soft); }
.stat .stat-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 112%;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.stat .stat-label {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}
@media (min-width: 600px) and (max-width: 979px) {
  .stat-band .container { grid-template-columns: 1fr 1fr; }
  .stat + .stat { border-top: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--hairline-soft); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--hairline-soft); }
}
@media (min-width: 980px) {
  .stat-band .container { grid-template-columns: repeat(4, 1fr); }
  .stat + .stat { border-top: 0; border-left: 1px solid var(--hairline-soft); }
}

/* corner registration ticks for featured frames */
.reg-marks { position: relative; }
.reg-marks::before,
.reg-marks::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 0 solid var(--ink);
  pointer-events: none;
  z-index: 2;
}
.reg-marks::before { top: -7px; left: -7px; border-top-width: 2px; border-left-width: 2px; }
.reg-marks::after { bottom: -7px; right: -7px; border-bottom-width: 2px; border-right-width: 2px; }

/* mono metadata chips — signature element */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  border: 1px solid var(--hairline);
  padding: 5px 10px;
  border-radius: var(--r-1);
  white-space: nowrap;
}
.chip--flag { border-color: var(--flag); }
.band-ink .chip { color: var(--paper-dim); border-color: var(--hairline-paper); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 18px;
}
.kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--flag);
  flex: none;
}

.lede {
  font-size: var(--fs-lede);
  line-height: 1.55;
  color: var(--ink);
  max-width: 34em;
}
.muted { color: var(--slate); }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 15px 24px;
  border: 1px solid var(--ink);
  border-radius: var(--r-1);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.btn--primary { background: var(--flag); color: var(--ink); }
.btn--primary:hover { background: var(--ink); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.band-ink .btn--ghost { border-color: var(--paper); color: var(--paper); }
.band-ink .btn--ghost:hover { background: var(--paper); color: var(--ink); }
/* ghost button stays visible over dark cinematic / film heroes */
.hero--cinematic .btn--ghost, .hero--film .btn--ghost { border-color: var(--paper); color: var(--paper); }
.hero--cinematic .btn--ghost:hover, .hero--film .btn--ghost:hover { background: var(--paper); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: var(--header-h);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 122%;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark .tick {
  width: 10px;
  height: 10px;
  background: var(--flag);
  flex: none;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 1px solid var(--ink);
  border-radius: var(--r-1);
  padding: 9px 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle .bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}
.menu-toggle .bars span {
  width: 16px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.18s var(--ease-out), opacity 0.18s var(--ease-out);
}
.menu-toggle[aria-expanded="true"] .bars span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars span:last-child { transform: translateY(-3px) rotate(-45deg); }

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
  box-shadow: 0 18px 32px rgba(29, 29, 27, 0.14);
  padding: 10px clamp(20px, 5vw, 40px) 22px;
  display: none;
}
.site-nav.open {
  display: block;
  /* the expanded Services accordion can outgrow a phone screen; the panel
     itself scrolls so every link and the CTA stay reachable (C-01) */
  max-height: calc(100dvh - 65px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.site-nav ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.site-nav li + li { border-top: 1px solid var(--hairline-soft); }
.site-nav a:not(.btn) {
  display: block;
  padding: 13px 2px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
}
.site-nav a:not(.btn):hover { color: var(--flag-text); }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 3px 0 0 var(--flag);
  padding-left: 12px;
}

@media (min-width: 960px) {
  .menu-toggle { display: none; }
  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 14px;
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .site-nav ul {
    display: flex;
    gap: 14px;
    margin: 0;
  }
  .site-nav li + li { border: 0; }
  .site-nav a:not(.btn) {
    padding: 4px 0;
    font-size: 0.95rem;
    white-space: nowrap;
  }
  .site-nav a[aria-current="page"] {
    box-shadow: inset 0 -2px 0 var(--flag);
    padding-left: 0;
  }
  .nav-cta { padding: 10px 16px; font-size: 0.9rem; white-space: nowrap; flex: none; }
}

/* ------------------------------------------ Section dropdown nav (editorial mega-panel) */
.has-sub { position: relative; }
.sub-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
  color: inherit;
  flex: none;
}
.sub-toggle .caret {
  display: block;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 0.2s var(--ease-out);
}
.sub-toggle[aria-expanded="true"] .caret { transform: rotate(-135deg) translate(-1px, 1px); }
.subnav { list-style: none; }
.mp-list { list-style: none; margin: 0; padding: 0; }
.subnav a:not(.btn) { font-family: var(--font-display); text-decoration: none; }
/* the active vertical lights the parent in the section colour */
.site-nav a.is-section { color: var(--ink); }

/* below the 1024px bar break: disclosure accordion inside the slide-down panel */
@media (max-width: 959.98px) {
  .has-sub { display: flex; flex-wrap: wrap; align-items: center; }
  .has-sub > a { flex: 1 1 auto; }
  .has-sub > a.is-section { box-shadow: inset 3px 0 0 var(--flag); padding-left: 12px; }
  /* 45x45px caret hit area (7px caret + 19px padding); negative margins keep
     the accordion row geometry, since the 46px-tall link sets the row height */
  .sub-toggle { padding: 19px; margin: -10px -8px -10px -4px; }
  .megapanel {
    flex-basis: 100%;
    width: 100%;
    margin: 0 0 4px;
    padding: 2px 0 8px 14px;
    display: none;
  }
  .has-sub .sub-toggle[aria-expanded="true"] ~ .megapanel { display: block; }
  .mp-media { display: none; }                       /* feature image is desktop-only */
  .mp-list a { display: block; padding: 10px 2px; }
  .mp-list li + li { border-top: 1px solid var(--hairline-soft); }
  .mp-head {
    margin: 4px 0;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--slate);
  }
  .mp-name { display: block; font-size: 0.98rem; font-weight: 600; }
  .mp-blurb {
    display: block;
    margin-top: 2px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    line-height: 1.4;
    color: var(--slate);
  }
  .mp-soon {
    font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600;
    letter-spacing: 0.06em; margin-left: 7px; padding: 1px 5px;
    border: 1px solid var(--hairline); color: var(--slate); border-radius: var(--r-1);
  }
  .mp-list a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--flag); padding-left: 12px; }
}

/* desktop: hover-intent / focus / click reveal — editorial two-zone panel */
@media (min-width: 960px) {
  .has-sub { display: inline-flex; align-items: center; }
  .sub-toggle { display: none; }      /* desktop opens on hover + focus; caret is mobile-only */
  .has-sub > a.is-section { box-shadow: inset 0 -2px 0 var(--flag); }
  .site-nav .megapanel {
    position: absolute;
    top: calc(100% + 16px);
    left: -16px;
    display: grid;
    grid-template-columns: minmax(232px, 1fr) 264px;
    gap: 26px;
    margin: 0;
    padding: 22px;
    width: max-content;
    max-width: 660px;
    background: var(--paper);
    border: 1px solid var(--ink);
    box-shadow: 0 28px 64px rgba(29, 29, 27, 0.20);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
    z-index: 120;
  }
  /* invisible bridge across the gap so the pointer doesn't drop the panel */
  .has-sub::after {
    content: "";
    position: absolute;
    top: 100%;
    left: -16px;
    right: -16px;
    height: 20px;
  }
  .has-sub:focus-within .megapanel,
  .sub-toggle[aria-expanded="true"] ~ .megapanel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .mp-list a {
    display: block;
    position: relative;
    padding: 12px 12px 12px 18px;
    border-radius: var(--r-1);
    transition: background var(--dur-1) var(--ease-out);
  }
  .mp-list li + li { margin-top: 1px; }
  .mp-head {
    margin: 0 0 12px 18px;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--slate);
  }
  .mp-name {
    display: block;
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.18;
    color: var(--ink);
    white-space: nowrap;
    transition: color 0.16s ease;
  }
  .mp-blurb {
    display: block;
    margin-top: 5px;
    font-family: var(--font-mono);
    font-size: 0.69rem;
    letter-spacing: 0.01em;
    line-height: 1.4;
    color: var(--slate);
    white-space: normal;
    max-width: 32ch;
  }
  .mp-soon {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    vertical-align: 2px;
    margin-left: 8px;
    padding: 2px 6px;
    border: 1px solid var(--hairline);
    color: var(--slate);
    border-radius: var(--r-1);
  }
  /* the single orange accent — an active / hover left bar, used once */
  .mp-list a::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: var(--flag);
    opacity: 0;
    transition: opacity 0.16s ease;
  }
  .mp-list a:hover,
  .mp-list a:focus-visible { background: var(--tint); }
  .mp-list a:hover::before,
  .mp-list a:focus-visible::before,
  .mp-list a[aria-current="page"]::before { opacity: 1; }
  .mp-list a:hover .mp-name,
  .mp-list a:focus-visible .mp-name,
  .mp-list a[aria-current="page"] .mp-name { color: var(--flag-text); }
  /* media zone — crossfading feature images, lazy-built on first open */
  .mp-media {
    position: relative;
    align-self: stretch;
    min-height: 196px;
    overflow: hidden;
    background: var(--tint);
    border-radius: var(--r-2);
  }
  .mp-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.28s var(--ease-out);
  }
  .mp-img.is-active { opacity: 1; }
  /* the panel lives inside .site-nav, so re-assert its layout over the bar's
     own `ul { display:flex }` and `a { padding }` rules (higher specificity) */
  .site-nav .mp-list { display: block; }
  .site-nav .mp-list a { padding: 12px 12px 12px 18px; white-space: normal; }
  .site-nav .mp-list .mp-name { white-space: nowrap; }
  .site-nav .mp-list a[aria-current="page"] { box-shadow: none; }
  /* the single Services panel: four column groups, no media zone */
  .site-nav .megapanel--wide {
    grid-template-columns: repeat(4, minmax(176px, 1fr));
    gap: 4px 30px;
    max-width: min(1060px, calc(100vw - 40px));
  }
  .site-nav .megapanel--wide .mp-head { margin-left: 14px; }
  .site-nav .megapanel--wide .mp-list a { padding: 8px 10px 8px 14px; }
  .site-nav .megapanel--wide .mp-list a::before { top: 8px; bottom: 8px; }
  .site-nav .megapanel--wide .mp-list .mp-name { white-space: normal; font-size: 0.92rem; }
}

/* respect reduced motion — instant, no slide or crossfade */
@media (prefers-reduced-motion: reduce) {
  .site-nav .megapanel { transition: none; }
  .mp-img { transition: none; }
}

/* -------------------------------------- in-section service strip (sub-nav)
   Injected by main.js on section + service pages; mirrors the dropdown so a
   visitor who lands mid-branch can still see every service in that section. */
.svc-strip { border-bottom: 1px solid var(--hairline-soft); background: var(--paper); }
.svc-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 9px 24px;
  padding-block: 14px;
}
.svc-strip-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}
.svc-strip a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 3px;
  position: relative;
  white-space: nowrap;
  transition: color 0.16s ease;
}
.svc-strip a:hover,
.svc-strip a:focus-visible { color: var(--flag-text); }
.svc-strip a[aria-current="page"] { color: var(--flag-text); }
.svc-strip a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--flag);
}
@media (max-width: 700px) {
  .svc-strip-inner { flex-wrap: nowrap; overflow-x: auto; gap: 9px 18px; }
}

/* ------------------------------------------------------------------ hero */

.hero { padding-block: clamp(56px, 8vw, 104px); overflow: hidden; }
.hero h1 { letter-spacing: -0.022em; }

@media (prefers-reduced-motion: no-preference) {
  [data-rise] {
    animation: rise 0.65s var(--ease-out) both;
    animation-delay: calc(var(--d, 0) * 95ms);
  }
  @keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
  }
  /* transform-only entrance for LCP imagery — no opacity fade, so the
     browser counts the paint immediately */
  [data-rise-move] {
    animation: rise-move 0.65s var(--ease-out) both;
    animation-delay: calc(var(--d, 0) * 95ms);
  }
  @keyframes rise-move {
    from { transform: translateY(16px); }
    to { transform: none; }
  }
}

/* -------------------------------------------------------- interior page head */

.page-head {
  padding-block: clamp(52px, 7vw, 92px) clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--hairline-soft);
}
.page-head .lede { margin-top: 6px; }
.page-head .chips { margin-top: 30px; }

/* ----------------------------------------------------------------- cards */

.grid-2, .grid-3 { display: grid; gap: 18px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 880px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-2);
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card h3 { margin: 0; }
.card p { color: var(--slate); font-size: 0.99rem; margin: 0; }

.card-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--flag-text);
}
.band-ink .card-num { color: var(--flag-on-ink); }

a.card {
  text-decoration: none;
  transition: border-color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}
a.card:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(29, 29, 27, 0.07);
}
.card-arrow {
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--ink);
  text-align: right;
  transition: transform var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
a.card:hover .card-arrow { color: var(--flag-text); transform: translateX(4px); }
.band-ink a.card:hover .card-arrow { color: var(--flag); }
@media (prefers-reduced-motion: reduce) {
  a.card:hover .card-arrow { transform: none; }
}

.section-head { margin-bottom: clamp(30px, 4vw, 48px); }
.section-head .section-link { white-space: nowrap; }
@media (min-width: 720px) {
  .section-head--split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
  }
  .section-head--split h2 { margin-bottom: 0; }
}

/* ------------------------------------------------------------- ink bands */

.band-ink {
  background: var(--ink);
  color: var(--paper-dim);
}
.band-ink h2, .band-ink h3, .band-ink .lede, .band-ink strong { color: var(--paper); }
.band-ink .kicker { color: var(--paper-dim); }
.band-ink .card {
  background: rgba(246, 245, 240, 0.045);
  border-color: var(--hairline-paper);
}
.band-ink .card p { color: var(--paper-dim); }
.band-ink .value p { color: var(--paper-dim); }
/* .svc process lists are legible on a dark band too (mirror of the light styles) */
.band-ink .svc p { color: var(--paper-dim); }
.band-ink .svc .svc-deliver { color: var(--paper); }
.band-ink .svc-num { color: var(--flag-on-ink); }
.band-ink .card-arrow { color: var(--paper); }
.band-ink a.card:hover { border-color: var(--paper); box-shadow: none; }

/* ------------------------------------------------------------ trust strip */

.trust-strip {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding-block: 18px;
}
.trust-strip ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 0;
}
.trust-strip li {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--slate);
}
.trust-strip li + li::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--flag);
  margin-inline: 18px;
  flex: none;
}
@media (max-width: 719px) {
  .trust-strip ul { flex-direction: column; gap: 12px; }
  .trust-strip li { text-align: center; }
  .trust-strip li + li::before { content: none; margin: 0; }
}

/* --------------------------------------------------------------- CTA band */

.cta-band { text-align: center; }
.cta-band h2 { max-width: 17em; margin-inline: auto; }
.cta-band .lede { margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 32px; }
.cta-band .cta-note {
  margin-top: 18px;
  font-size: 0.95rem;
  color: var(--slate);
}
.band-ink .cta-note { color: var(--paper-dim); }

/* -------------------------------------------------- aerial service blocks */

.svc-list { border-top: 1px solid var(--hairline); }
.svc {
  display: grid;
  gap: 8px 36px;
  padding-block: clamp(26px, 4vw, 40px);
  border-bottom: 1px solid var(--hairline);
}
.svc-num {
  font-family: var(--font-mono);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--flag-text);
  letter-spacing: 0.06em;
}
.svc h3 { margin-bottom: 8px; }
.svc p { color: var(--slate); max-width: 62ch; }
.svc .svc-deliver {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 10px;
}
@media (min-width: 760px) {
  .svc { grid-template-columns: 84px 1fr; }
  .svc > * { grid-column: 2; }
  .svc .svc-num { grid-column: 1; grid-row: 1 / span 3; }
}

/* --------------------------------------------------------------- spec sheet */

.spec-sheet { border-top: 1px solid var(--hairline-paper); margin: 0; }
.spec-row {
  display: grid;
  gap: 2px 28px;
  padding-block: 16px;
  border-bottom: 1px solid var(--hairline-paper);
}
.spec-row dt {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}
.spec-row dd { margin: 0; color: var(--ink); font-size: 1.02rem; }
/* dark bands keep the original paper treatment */
.band-ink .spec-row dt { color: var(--paper-dim); }
.band-ink .spec-row dd { color: var(--paper); }
.spec-row { border-bottom-color: var(--hairline); }
.band-ink .spec-row { border-bottom-color: var(--hairline-paper); }
@media (min-width: 720px) {
  .spec-row { grid-template-columns: 240px 1fr; align-items: baseline; }
}

/* --------------------------------------------------- capability index */

.cap-index { border-top: 1px solid var(--hairline); margin: 0; }
.cap-row {
  display: grid;
  gap: 10px 28px;
  padding-block: 20px;
  border-bottom: 1px solid var(--hairline);
}
.cap-row dt {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}
.cap-row dd { margin: 0; }
@media (min-width: 720px) {
  .cap-row { grid-template-columns: 240px 1fr; align-items: baseline; }
}

/* --------------------------------------------------- report page strip */

.report-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(118px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
}
.report-strip .media-zoom {
  scroll-snap-align: start;
  border: 1px solid var(--hairline);
  border-radius: var(--r-2);
  overflow: hidden;
  background: var(--card);
  transition: border-color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.report-strip .media-zoom:hover { border-color: var(--ink); transform: translateY(-3px); }
.report-strip img { width: 100%; height: auto; display: block; }
.report-page-num {
  display: block;
  padding: 7px 9px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  border-top: 1px solid var(--hairline-soft);
  text-align: left;
}

/* ------------------------------------------------------ portfolio gallery */

.portfolio-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.portfolio-card .media { position: relative; overflow: hidden; }
.portfolio-card .media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.45s var(--ease-out); /* media zoom: slower duration by design */
}
button.media-zoom:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) {
  button.media-zoom:hover img { transform: none; }
}
.portfolio-meta {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--hairline-soft);
}
.portfolio-meta h3 { font-size: 1.12rem; margin: 0; }
.portfolio-meta .desc { color: var(--slate); font-size: 0.95rem; margin: 0; }

/* ------------------------------------------------------ before/after slider */

.ba-slider {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: var(--r-2);
  background: var(--tint);
}
.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
}
.ba-top { clip-path: inset(0 calc(100% - var(--cut, 50%)) 0 0); }
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--cut, 50%);
  width: 2px;
  margin-left: -1px;
  background: var(--ink);
  pointer-events: none;
  z-index: 2;
}
.ba-handle::after {
  content: "\2194";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--flag);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--r-1);
  font-size: 1.05rem;
  font-weight: 700;
}
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  touch-action: none;
  opacity: 0;
  cursor: ew-resize;
  z-index: 3;
}
.ba-slider:focus-within .ba-handle::after {
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink);
}
.ba-tag {
  position: absolute;
  top: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  background: var(--ink);
  color: var(--paper);
  padding: 5px 10px;
  border-radius: var(--r-1);
}
.ba-tag--left { left: 12px; }
.ba-tag--right { right: 12px; }

/* index switcher under the comparison slider */
.ba-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.ba-mode-btn {
  appearance: none;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-1);
  padding: 7px 12px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.ba-mode-btn:hover { border-color: var(--ink); color: var(--ink); }
.ba-mode-btn[aria-pressed="true"] {
  background: var(--flag);
  border-color: var(--flag);
  color: var(--ink);
}
.ba-mode-btn:focus-visible { outline: 2px solid var(--flag); outline-offset: 2px; }

/* ---------------------------------------------------------------- lightbox */

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(1080px, 94vw);
  width: 100%;
}
.lightbox::backdrop { background: rgba(29, 29, 27, 0.85); }
.lightbox figure {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--r-2);
  overflow: hidden;
}
.lightbox img { width: 100%; height: auto; max-height: 78vh; object-fit: contain; background: var(--tint); }
.lightbox figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  border-top: 1px solid var(--hairline-soft);
}
.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--r-1);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: var(--flag); }

button.media-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

/* ------------------------------------------------------ digital twin lab */

.seg-control {
  display: flex;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--hairline-paper);
  border-radius: var(--r-1);
  margin-bottom: 18px;
}
.seg {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--paper-dim);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 18px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.seg + .seg { border-left: 1px solid var(--hairline-paper); }
.seg:hover { color: var(--paper); }
.seg[aria-selected="true"] { background: var(--flag); color: var(--ink); }
.seg:focus-visible { outline: 2px solid var(--flag); outline-offset: -3px; }
@media (max-width: 719px) {
  .seg-control { width: 100%; flex-wrap: wrap; }
  .seg {
    flex: 1 1 50%;
    padding: 13px 6px;
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    text-align: center;
  }
  .seg:nth-child(n+3) { border-top: 1px solid var(--hairline-paper); }
  .seg:nth-child(3) { border-left: 0; }
}

.twin-pane[hidden] { display: none; }

.pc-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--r-2);
  overflow: hidden;
}
.pc-embed > picture img,
.pc-embed > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pc-embed .kv3d-canvas { position: absolute; inset: 0; display: block; cursor: grab; }
.pc-embed .kv3d-canvas:active { cursor: grabbing; }

.pano-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--r-2);
  overflow: hidden;
}
.pano-embed > picture img,
.pano-embed > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pano-embed .kv360-canvas { position: absolute; inset: 0; display: block; cursor: grab; touch-action: none; }
.pano-embed .kv360-canvas:active { cursor: grabbing; }

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--r-2);
  overflow: hidden;
}
.video-embed video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--r-2);
  overflow: hidden;
}
.map-embed > picture img,
.map-embed > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map-embed .kvmap { position: absolute; inset: 0; background: var(--ink); }
.map-embed .leaflet-container {
  background: var(--ink);
  font-family: var(--font-mono);
}
.map-embed .leaflet-bar a {
  background: var(--ink);
  color: var(--paper);
  border-color: rgba(246, 245, 240, 0.25);
}
.map-embed .leaflet-bar a:hover { background: var(--flag); color: var(--ink); }
.map-embed .leaflet-control-attribution {
  background: rgba(29, 29, 27, 0.8);
  color: var(--paper-dim);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.map-embed .kvmap-reset {
  display: block;
  width: auto;
  padding: 0 9px;
  height: 30px;
  line-height: 30px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-align: center;
  text-decoration: none;
  border: 1px solid rgba(246, 245, 240, 0.25);
  border-radius: var(--r-1);
}
.map-embed .kvmap-reset:hover { background: var(--flag); color: var(--ink); }
.map-embed .leaflet-control-scale-line {
  background: rgba(29, 29, 27, 0.7);
  color: var(--paper);
  border-color: rgba(246, 245, 240, 0.4);
  font-family: var(--font-mono);
  font-size: 0.6rem;
}
@media (max-width: 719px) {
  .figure-frame .map-embed { aspect-ratio: 4 / 3; }
}

.pc-modes {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  gap: 8px;
}
.pc-modes[hidden] { display: none; }
.pc-mode-btn {
  appearance: none;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-dim);
  background: rgba(29, 29, 27, 0.82);
  border: 1px solid var(--hairline-paper);
  border-radius: var(--r-1);
  padding: 7px 12px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.pc-mode-btn[aria-pressed="true"] {
  background: var(--flag);
  border-color: var(--flag);
  color: var(--ink);
}
.pc-mode-btn:focus-visible { outline: 2px solid var(--flag); outline-offset: 2px; }

.twin-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 36px;
  margin: 24px 0 0;
  padding: 0;
}
@media (min-width: 600px) and (max-width: 959px) {
  .twin-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
  }
}
.twin-stats li {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-dim);
}
.twin-stats li strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 112%;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--paper);
  margin-bottom: 4px;
}

@media (max-width: 719px) {
  .figure-frame .twin-embed, .figure-frame .pc-embed { aspect-ratio: 4 / 3; }
}

/* ----------------------------------------- lazy interactive 3D slots */

.sf-embed,
.twin-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--r-2);
  overflow: hidden;
}
.sf-embed > img,
.sf-embed > picture > img,
.twin-embed > img,
.twin-embed > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sf-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* taller frame for the live vigor viewer: the embedded instrument needs room
   for its control row + map + legend; on phones a fixed ratio starves it */
.sf-embed--tall { aspect-ratio: 16 / 10; }
@media (max-width: 719px) { .sf-embed--tall { aspect-ratio: auto; height: min(78vh, 560px); } }
.twin-embed model-viewer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--ink);
  --poster-color: transparent;
}
.sf-load {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 2;
  white-space: nowrap;
}

/* -------------------------------------------- browser frame (digital proof) */

.browser-frame {
  border: 1px solid var(--ink);
  border-radius: var(--r-2);
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 18px 40px rgba(29, 29, 27, 0.16);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--ink);
}
.browser-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--paper-dim);
  opacity: 0.45;
}
.browser-bar span:first-child { background: var(--flag); opacity: 1; }
.browser-bar em {
  margin-left: 12px;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--paper-dim);
}
.browser-body { padding: clamp(18px, 3vw, 30px); display: grid; gap: 12px; }
.browser-body .bf-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0;
}
.browser-body .bf-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--flag);
  flex: none;
}
.browser-body .bf-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 112%;
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  max-width: 14em;
}
.browser-body .bf-cta {
  justify-self: start;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  background: var(--flag);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--r-1);
  padding: 8px 14px;
}
.browser-body img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border: 1px solid var(--hairline);
}

/* ------------------------------------------------------------------- forms */

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}
.field .hint { font-size: 0.85rem; color: var(--slate); }
input, select, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--slate);
  border-radius: var(--r-1);
  padding: 12px 14px;
}
textarea { min-height: 150px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  border-color: var(--ink);
  outline: 2px solid var(--flag);
  outline-offset: 2px;
}
.form-grid-2 { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid-2 { grid-template-columns: 1fr 1fr; } }

/* honeypot — hidden from people, present for bots */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink);
}
.form-status:empty { display: none; }
.form-status.is-error { border-left: 3px solid var(--flag); padding-left: 12px; }
.form-status.is-success { border-left: 3px solid #2E7D32; padding-left: 12px; font-weight: 600; }

/* ---------------------------------------------------------------- contact */

.contact-grid { display: grid; gap: clamp(36px, 5vw, 64px); }
@media (min-width: 920px) { .contact-grid { grid-template-columns: 1.05fr 0.95fr; align-items: start; } }

.contact-aside > * + * { margin-top: 30px; }
.contact-block h3 { font-size: 1.05rem; margin-bottom: 8px; }

/* ------------------------------------------------------------------ about */

.about-grid { display: grid; gap: clamp(36px, 5vw, 60px); }
@media (min-width: 880px) { .about-grid { grid-template-columns: 1.1fr 0.9fr; align-items: start; } }
.about-portrait { margin: 0; max-width: 420px; }
.about-portrait img { width: 100%; height: auto; }
.about-portrait figcaption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}

.values { display: grid; gap: 18px; }
@media (min-width: 760px) { .values { grid-template-columns: repeat(3, 1fr); } }
.value {
  border-top: 2px solid var(--ink);
  padding-top: 16px;
}
.value h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.value h3::before { content: ""; width: 9px; height: 9px; background: var(--flag); flex: none; }
.value p { color: var(--slate); font-size: 0.98rem; }

/* ----------------------------------------------------------------- footer */

.site-footer {
  background: var(--ink);
  color: var(--paper-dim);
  padding-block: clamp(44px, 6vw, 72px) 28px;
  font-size: 0.97rem;
}
.site-footer .wordmark { color: var(--paper); }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 880px) { .footer-grid { grid-template-columns: 1.4fr 0.9fr 1fr 0.9fr; } }
.footer-tag { max-width: 30em; margin-top: 14px; }
.site-footer h2 {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--flag); text-underline-offset: 3px; }
/* links inside running text must not rely on colour alone */
.footer-legal a { text-decoration: underline; text-decoration-color: var(--flag); text-underline-offset: 3px; }
.footer-legal {
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 22px;
  border-top: 1px solid var(--hairline-paper);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
}
.footer-legal p { margin: 0; font-size: 0.88rem; }
.footer-coord {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: var(--paper-dim);
}
.footer-area {
  margin-top: clamp(32px, 4vw, 48px);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--paper-dim);
}

/* ------------------------------------------------------------ faq disclosure */

.faq-list { border-top: 1px solid var(--hairline); }
.faq-list details { border-bottom: 1px solid var(--hairline); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 2px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--flag-text);
  font-size: 1.15rem;
  flex: none;
}
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list summary:focus-visible { outline: 2px solid var(--flag); outline-offset: 3px; }
.faq-list .faq-a { padding: 0 2px 20px; max-width: 56em; color: var(--slate); }
.faq-list .faq-a p { margin: 0 0 10px; }

/* ----------------------------------------------------------- hero video */

.hero-media { position: relative; }
.hero-media .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s var(--ease-out);
}
.hero-media.video-in .hero-video { opacity: 1; }

/* ---------------------------------------------------------- placeholders
   Build-time only: a labeled box where a not-yet-captured photo/video goes.
   data-asset="KV-..." is grepped pre-launch — none may ship. */

.ph {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-align: center;
  padding: 30px 24px;
  min-height: 200px;
  color: var(--paper);
  background:
    repeating-linear-gradient(135deg, rgba(246, 245, 240, 0.022) 0 2px, transparent 2px 11px),
    radial-gradient(120% 130% at 50% 0%, rgba(228, 87, 27, 0.12), transparent 62%),
    var(--ink);
  border: 1px solid var(--hairline-paper);
  border-radius: var(--r-2);
  overflow: hidden;
}
.ph::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--flag);
  margin-bottom: 4px;
  flex: none;
}
.ph[data-ratio="16-9"] { aspect-ratio: 16 / 9; }
.ph[data-ratio="4-3"] { aspect-ratio: 4 / 3; }
.ph[data-ratio="3-2"] { aspect-ratio: 3 / 2; }
.ph[data-ratio="1-1"] { aspect-ratio: 1 / 1; }
.ph .ph-id {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--flag);
}
.ph .ph-spec { max-width: 32em; font-size: 0.95rem; color: var(--paper-dim); }
.ph .ph-tag {
  margin-top: 4px;
  padding: 4px 11px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--paper-dim);
  border: 1px solid var(--hairline-paper);
  border-radius: 999px;
}

/* ------------------------------------------------ sticky mobile CTA dock */
.cta-dock { display: none; }
@media (max-width: 719px) {
  body { padding-bottom: 60px; }
  .cta-dock {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 200;
    display: flex;
    gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(29, 29, 27, 0.96);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--hairline-paper);
    box-shadow: 0 -10px 30px rgba(29, 29, 27, 0.28);
  }
  .cta-dock a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 14px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--r-1);
  }
  .cta-dock .cta-dock-primary { flex: 1 1 auto; background: var(--flag); color: var(--ink); font-weight: 600; }
}

/* ------------------------------------------------------ buyer-world cards */

.vert-grid { display: grid; gap: 18px; }
@media (min-width: 720px) { .vert-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .vert-grid { grid-template-columns: repeat(3, 1fr); } }
/* a two-card pairing (e.g. the cross-vertical strip) — stays 2-up, centred */
.vert-grid--pair { max-width: 920px; margin-inline: auto; }
@media (min-width: 720px) { .vert-grid--pair { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .vert-grid--pair { grid-template-columns: repeat(2, 1fr); } }
.vert-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--hairline);
  background: var(--paper);
  overflow: hidden;
  border-radius: var(--r-2);
  transition: border-color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.vert-card:hover { border-color: var(--flag); transform: translateY(-3px); }
.vert-card:focus-visible { outline: 2px solid var(--flag); outline-offset: 3px; }
.vert-card .vert-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.vert-card .vert-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vert-card .vert-body { display: block; padding: 22px 24px 26px; }
.vert-card .vert-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--flag-text);
}
.vert-card h3 { margin: 8px 0 6px; }
.vert-card .vert-body p { margin: 0; color: var(--slate); }
.vert-card .vert-arrow { display: inline-block; margin-top: 14px; color: var(--flag-text); }

/* ----------------------------------------------------------- count-up */

.countup { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------- comparison table */

.cmp { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.cmp th, .cmp td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.cmp thead th { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); }
.cmp tbody th { font-weight: 600; }
.cmp .cmp-us { background: rgba(228, 87, 27, 0.06); }
.cmp .cmp-us, .cmp thead .cmp-us { color: var(--ink); }

/* ------------------------------------------------- cross-page view transition */

@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* ------------------------------------------------------------ scroll reveal */

html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
html.js .reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------ prose (insights / articles) */

.prose { max-width: 70ch; }
.prose > * + * { margin-top: 1.15em; }
.prose p { color: var(--ink); }
.prose h2 { margin-top: 1.9em; margin-bottom: 0.1em; }
.prose h3 { margin-top: 1.5em; margin-bottom: 0.1em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 0.4em; }
.prose a { color: var(--flag-text); }
.prose blockquote {
  margin: 1.4em 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--flag);
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--ink);
}
.post-meta {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}

/* in-text links carry an underline so they're distinguishable without relying
   on colour alone (WCAG 1.4.1) — buttons and whole-element link cards excluded */
.prose a,
main p a:not(.btn),
.faq-a a,
.footer-area a {
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 1px;
}

/* ---------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
  [data-rise] { animation: none; }
  [data-rise-move] { animation: none; }
}

/* ==========================================================================
   WORLD-CLASS ELEVATION (2026-06-23)
   Light "field-notes editorial" body + staged cinematic dark-room moments.
   Transform/opacity/clip-path only; reduced-motion guarded; one accent.
   ========================================================================== */

::selection { background: var(--flag); color: #fff; }

/* --- film grain: matte texture so media never reads flat/plastic --- */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9990; pointer-events: none;
  opacity: 0.055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}

/* --- DEVELOP HERO: an ortho that resolves from blueprint contour to colour --- */
.hero--develop {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding-block: clamp(112px, 16vh, 184px);
}
.hero-plate { position: absolute; inset: 0; z-index: 0; }
.hero-plate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-contour {
  position: absolute; inset: 0;
  background: var(--paper) url("../assets/img/contours-ink.svg") center/120% no-repeat;
  opacity: 0;
}
.hero-scrim {
  position: absolute; inset: 0;
  /* left-anchored wash: dense behind the headline column, clearing to the right so the real capture reads rich */
  background:
    linear-gradient(101deg, rgba(246,245,240,.90) 0%, rgba(246,245,240,.80) 30%, rgba(246,245,240,.58) 52%, rgba(246,245,240,.30) 74%, rgba(246,245,240,.14) 100%),
    linear-gradient(0deg, rgba(246,245,240,.34) 0%, rgba(246,245,240,0) 22%);
}
/* develop-light: ink type rides the left paper scrim for contrast — NO text glow at all
   (any paper-coloured shadow reads as a tacky halo). The scrim does the legibility work. */
.hero--develop .hero-inner .kicker,
.hero--develop .hero-title,
.hero--develop .hero-inner .lede {
  text-shadow: none;
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-title { margin: 0 0 0.42em; max-width: 16ch; }
.hero--develop .lede { max-width: 46ch; }
.hero-databar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  margin: 0; border-radius: 0; border-left: 0; border-right: 0;
}
.hero-cue {
  position: absolute; left: 50%; bottom: 18px; z-index: 3; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: .8rem; color: var(--paper); text-decoration: none;
  letter-spacing: .2em;
}
/* Phones: the fixed CTA dock owns the bottom edge, so the decorative hero
   databar and scroll cue hide entirely (hero content can exceed the viewport
   slot on any page, which makes a bottom-pinned bar impossible to keep clear
   of the dock reliably). The hero also fits the viewport minus the in-flow
   header so first paint frames it whole. */
@media (max-width:719px) {
  .hero--develop { min-height: calc(100svh - 65px); }
  .hero-databar { display: none; }
  .hero-cue { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-plate img { animation: develop-settle 1.6s var(--ease-out) both; }
  /* the contour line-art scans away top->bottom, resolving the colour photo beneath */
  .hero-contour { opacity: .94; animation: develop-scan 1.5s var(--ease-out) both; }
  .hero-cue { animation: cue-bob 1.8s ease-in-out 1.7s infinite; } /* exception: sinusoidal bob */
}
@keyframes develop-settle { from { transform: scale(1.05); } to { transform: scale(1); } }
@keyframes develop-scan { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(100% 0 0 0); } }
@keyframes cue-bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,5px); } }

/* --- DARK-ROOM: a full-bleed cinema moment that breaks out of the page --- */
.room {
  position: relative; isolation: isolate; overflow: hidden;
  width: 100vw; margin-inline: calc(50% - 50vw);
  background: var(--cinema); color: var(--paper);
  min-height: min(72vh, 680px); display: flex; align-items: center;
  padding-block: clamp(72px, 12vh, 132px);
}
.room-media { position: absolute; inset: 0; z-index: 0; }
.room-media img, .room-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.room-veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(96deg, rgba(14,14,13,.82) 0%, rgba(14,14,13,.55) 46%, rgba(14,14,13,.20) 100%);
}
.room > .container { position: relative; z-index: 2; }
.room-title { margin: 0 0 0.4em; font-size: var(--fs-display-xl); line-height: 0.98; font-stretch: 120%; letter-spacing: -0.035em; color: var(--paper); }
.room .lede { color: var(--cinema-dim); max-width: 42ch; }
.room .kicker { color: var(--flag-on-ink); }
.room .data-bar { background: rgba(255,255,255,.05); border-color: var(--hairline-paper); color: var(--paper-dim); }
.room .data-bar strong { color: var(--paper); }
/* authored seam: the light page melts into the dark room top and bottom */
.room::before, .room::after { content: ""; position: absolute; left: 0; right: 0; height: 110px; z-index: 1; pointer-events: none; }
.room::before { top: 0; background: linear-gradient(var(--paper), rgba(14,14,13,0)); }
.room::after  { bottom: 0; background: linear-gradient(rgba(14,14,13,0), var(--paper)); }
.room--seamless-top::before { display: none; }
.room--center { text-align: center; }
.room--center .room-veil { background: linear-gradient(rgba(14,14,13,.55), rgba(14,14,13,.78)); }
.room--center .lede { margin-inline: auto; }

/* a dark room that frames an interactive asset (twin lab) rather than copy */
.room--stage { display: block; padding-block: clamp(64px, 10vh, 116px); }
.room--stage .room-veil { background: radial-gradient(120% 90% at 50% 30%, rgba(14,14,13,.40), rgba(14,14,13,.92)); }
.room--stage .section-head { text-align: center; }

/* darken an existing band-ink section to true cinema black (twin lab screening room) */
.band-ink.section--cinema { background: var(--cinema); }
.section--cinema .twin-pane .figure-frame { box-shadow: var(--lift-cinema); }

/* --- "who we fly for" as full-bleed gallery doors (home feature grid) --- */
.vert-grid--doors .vert-card {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden;
  border: 1px solid var(--hairline); border-radius: var(--r-2); box-shadow: var(--lift);
  transition: transform var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}
.vert-grid--doors .vert-card:hover { transform: translateY(-3px); box-shadow: 0 20px 48px rgba(29,29,27,.20); }
.vert-grid--doors .vert-media { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; margin: 0; border-radius: 0; }
.vert-grid--doors .vert-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-3) var(--ease-out); }
.vert-grid--doors .vert-card:hover .vert-media img { transform: scale(1.05); }
.vert-grid--doors .vert-body {
  position: absolute; inset: auto 0 0 0; z-index: 1; padding: clamp(20px, 2.6vw, 34px);
  background: linear-gradient(rgba(14,14,13,0) 0%, rgba(14,14,13,.28) 34%, rgba(14,14,13,.88) 100%);
}
.vert-grid--doors .vert-body h3 { color: var(--paper); margin-bottom: 6px; }
.vert-grid--doors .vert-body p { color: var(--paper-dim); }
.vert-grid--doors .vert-kicker { color: var(--flag-on-ink); }
.vert-grid--doors .vert-arrow { color: var(--paper); }

/* --- /work showreel: one continuous cinema strip, chapters rotating across every job --- */
.workreel { background: var(--cinema); width: 100vw; margin-inline: calc(50% - 50vw); }
.work-room { position: relative; min-height: min(80vh, 840px); display: flex; align-items: flex-end; overflow: clip; }
.work-room + .work-room { border-top: 1px solid rgba(255,255,255,.07); }
.work-room .room-media { position: absolute; inset: -7% 0; will-change: transform; }
.work-room .room-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.07); transition: transform 1.5s var(--ease-out); }
.work-room.in .room-media img { transform: scale(1); }
.work-room .room-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,14,13,.12) 0%, rgba(14,14,13,.28) 44%, rgba(14,14,13,.9) 100%); }
.work-room .container { position: relative; z-index: 2; width: 100%; padding-top: clamp(48px,8vh,110px); padding-bottom: clamp(34px,6vh,76px); }
.work-tag { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; color: var(--flag-on-ink); margin: 0 0 12px; }
.work-room .room-title { color: var(--paper); margin: 0 0 12px; max-width: 16ch; }
.work-room .lede { color: rgba(246,245,240,.82); max-width: 40ch; }
.work-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 20px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--flag); padding-bottom: 4px; transition: gap var(--dur-2) var(--ease-out); }
.work-room .work-link, .band-ink .work-link { color: var(--paper); }
.work-link:hover { gap: 15px; }
.work-link .arr { transition: transform var(--dur-2) var(--ease-out); }
.work-link:hover .arr { transform: translateX(3px); }
@media (max-width:719px){ .work-room { min-height: 70vh; } }

/* dark editorial rooms get the same scroll-parallax headroom as /work chapters (clipped by .room overflow) */
.room > .room-media { inset: -6% 0; will-change: transform; }

/* --- registration-reticle cursor (fine-pointer only; additive, never hides native) --- */
.reticle { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity .25s var(--ease-out); will-change: transform; }
.reticle.is-on { opacity: 1; }
.reticle.is-mute { opacity: 0 !important; }
.reticle-ring { position: absolute; left: 0; top: 0; width: 26px; height: 26px; transform: translate(-50%,-50%); border: 1px solid rgba(255,255,255,.78); border-radius: 50%; mix-blend-mode: difference; transition: width .22s var(--ease-out), height .22s var(--ease-out); }
.reticle-ring::before, .reticle-ring::after { content: ""; position: absolute; left: 50%; top: 50%; background: rgba(255,255,255,.85); }
.reticle-ring::before { width: 1px; height: 9px; transform: translate(-50%,-50%); }
.reticle-ring::after { height: 1px; width: 9px; transform: translate(-50%,-50%); }
.reticle.is-active .reticle-ring { width: 50px; height: 50px; }
.reticle-label { position: absolute; left: 0; top: 32px; transform: translateX(-50%); font-family: var(--font-mono); font-size: .62rem; letter-spacing: .16em; color: var(--flag-text); white-space: nowrap; opacity: 0; transition: opacity .2s var(--ease-out); }
.reticle.is-active .reticle-label { opacity: 1; }

/* --- home: thin "also flying" breadth strip under the 3 vertical doors --- */
.more-verticals { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 22px; margin-top: clamp(26px,4vh,44px); padding-top: 22px; border-top: 1px solid rgba(29,29,27,.14); font-family: var(--font-mono); font-size: .82rem; letter-spacing: .03em; }
.more-verticals-lead { text-transform: uppercase; letter-spacing: .16em; font-size: .7rem; color: var(--slate); }
.more-verticals a { color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; padding-bottom: 2px; transition: border-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out); }
.more-verticals a:hover, .more-verticals a:focus-visible { color: var(--flag-text); border-bottom-color: var(--flag); }
.more-verticals a:last-child { color: var(--flag-text); }

/* --- fleet / the-aircraft page: two-column kit blocks --- */
.kit-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px,5vw,76px); align-items: center; }
.kit-grid.kit-grid--rev .kit-media { order: 2; }
.kit-media .ph, .kit-media img { width: 100%; border-radius: var(--r-2); display: block; }
.kit-media img { box-shadow: var(--lift-cinema); }
.kit-role { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; color: var(--flag-on-ink); }
.pipeline-steps { list-style: none; margin: 0; padding: 0; counter-reset: pl; }
.pipeline-steps li { position: relative; padding: 0 0 18px 44px; counter-increment: pl; color: var(--paper); }
.pipeline-steps li::before { content: counter(pl,decimal-leading-zero); position: absolute; left: 0; top: 1px; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .1em; color: var(--flag-on-ink); }
.pipeline-steps li:last-child { padding-bottom: 0; }
.pipeline-steps strong { display: block; font-weight: 600; }
.pipeline-steps span { color: var(--cinema-dim); font-size: .96rem; }
@media (max-width: 860px) { .kit-grid { grid-template-columns: 1fr; gap: 28px; } .kit-grid.kit-grid--rev .kit-media { order: 0; } }

/* --- per-line kinetic cascade (hero + room titles resolve line-by-line) --- */
html.js .kln-reveal .kln { display: block; clip-path: inset(0 0 114% 0); transition: clip-path var(--dur-3) var(--ease-out); transition-delay: calc(var(--ln, 0) * 95ms); }
html.js .kln-reveal.in .kln { clip-path: inset(0 0 -14% 0); }
@media (prefers-reduced-motion: reduce) { html.js .kln-reveal .kln { clip-path: none; } }

/* --- stagger the feature doors as they scroll in --- */
html.js .vert-grid--doors .vert-card.reveal { transition-delay: calc(var(--d, 0) * 90ms); }

/* --- kinetic headline reveal: lines mask up on scroll-in --- */
@media (prefers-reduced-motion: no-preference) {
  html.js .kinetic { clip-path: inset(0 0 110% 0); opacity: 0; transform: translateY(14px); transition: clip-path var(--dur-3) var(--ease-out), opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out); }
  html.js .kinetic.in { clip-path: inset(0 0 -10% 0); opacity: 1; transform: none; }
}

/* =========================================================================
   PER-PAGE MOOD — each vertical keeps the brand but earns its own soul.
   ESTATE = cinematic: the home emerges from black, light type, grand pace.
   ========================================================================= */
.hero--cinematic .hero-contour { display: none; }   /* pure film still, no blueprint develop */
.hero--cinematic .hero-scrim {
  background:
    linear-gradient(180deg, rgba(14,14,13,.60) 0%, rgba(14,14,13,.20) 30%, rgba(14,14,13,.34) 58%, rgba(14,14,13,.90) 100%),
    linear-gradient(101deg, rgba(14,14,13,.80) 0%, rgba(14,14,13,.34) 46%, rgba(14,14,13,0) 82%);
}
.hero--cinematic .hero-inner .kicker { color: var(--flag-on-ink); text-shadow: 0 1px 10px rgba(14,14,13,.85); }
.hero--cinematic .hero-title,
.hero--cinematic .hero-inner .lede { color: var(--paper); text-shadow: 0 2px 32px rgba(14,14,13,.66), 0 1px 6px rgba(14,14,13,.85); }
.hero--cinematic .chips .chip { color: var(--paper-dim); border-color: var(--hairline-paper); background: rgba(246,245,240,.05); text-shadow: 0 1px 8px rgba(14,14,13,.7); }
.hero--cinematic .hero-databar { color: var(--paper-dim); }
.hero--cinematic .hero-databar strong { color: var(--paper); }
.hero--cinematic .hero-cue { color: var(--paper); }
@media (prefers-reduced-motion: no-preference) {
  /* slow continuous push — the estate breathes and pulls the eye in */
  .hero--cinematic .hero-plate img { animation: kb-estate 26s var(--ease-in-out) infinite alternate both; }
}
@keyframes kb-estate { from { transform: scale(1.05); } to { transform: scale(1.13); } }

/* autoplay flythrough video filling a dark room (camera glides through the estate) */
.room-media .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s var(--ease-out); z-index: 0; }
.room-media.video-in .hero-video { opacity: 1; }

/* autoplay cinematic aerial filling the HERO plate — real footage behind the headline.
   Layering inside the plate: poster img (0) < video (1) < scrim (2) < headline (hero-inner z2). */
.hero-plate .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.1s var(--ease-out); z-index: 1; }
.hero-plate.video-in .hero-video { opacity: 1; }
.hero--film .hero-scrim { z-index: 2; }
/* the film hero leans a touch darker bottom + left so the headline holds over moving footage */
.hero--film .hero-scrim {
  background:
    linear-gradient(180deg, rgba(14,14,13,.52) 0%, rgba(14,14,13,.12) 26%, rgba(14,14,13,.30) 60%, rgba(14,14,13,.88) 100%),
    linear-gradient(101deg, rgba(14,14,13,.84) 0%, rgba(14,14,13,.40) 48%, rgba(14,14,13,.04) 84%);
}
/* film hero: light type with a soft DARK shadow (not the paper edge) — crisp over moving footage */
.hero--film .hero-contour { display: none; }
.hero--film .hero-title,
.hero--film .hero-inner .lede { color: var(--paper); text-shadow: 0 2px 28px rgba(14,14,13,.66), 0 1px 6px rgba(14,14,13,.9); }
.hero--film .hero-inner .kicker { color: var(--flag-on-ink); text-shadow: 0 1px 10px rgba(14,14,13,.9); }

/* =========================================================================
   ESTATES — DARK LUXURY (body.mood-lux): the whole page rides ONE deep,
   faintly-warm black. Imagery glows, the cartographic chrome recedes, type
   breathes. Restraint is the luxury — fewer labels, more space, bigger photos.
   ========================================================================= */
body.mood-lux { background: #0b0a09; color: var(--paper); }
body.mood-lux .section, body.mood-lux .cta-band,
body.mood-lux .room, body.mood-lux .band-ink, body.mood-lux .section--cinema { background: #0b0a09; }
/* room seams melt to the same black instead of flashing paper */
body.mood-lux .room::before { background: linear-gradient(#0b0a09, rgba(11,10,9,0)); }
body.mood-lux .room::after  { background: linear-gradient(rgba(11,10,9,0), #0b0a09); }
/* type — luxury reads lighter and airier */
body.mood-lux h1, body.mood-lux h2, body.mood-lux h3, body.mood-lux .room-title { color: var(--paper); }
body.mood-lux p, body.mood-lux .lede { color: #cbc6bc; }
body.mood-lux .muted { color: #948f85; }
body.mood-lux .kicker { color: var(--flag-on-ink); letter-spacing: .26em; }
body.mood-lux a:not(.btn):not(.wordmark) { color: #e7d9c7; }
body.mood-lux a:not(.btn):not(.wordmark):hover { color: var(--paper); }
/* the paper header and its menu keep ink links under mood-lux */
body.mood-lux .site-header a:not(.btn) { color: var(--ink); }
body.mood-lux .site-header a:not(.btn):hover { color: var(--flag-text); }
/* slower, grander pacing */
body.mood-lux .section { padding-block: clamp(86px, 13vh, 176px); }
/* declutter: drop the small status chips, keep only the honest flag; recede data-bars */
body.mood-lux .chip:not(.chip--flag) { display: none; }
body.mood-lux .chip--flag { background: transparent; border-color: rgba(228,87,27,.45); color: var(--flag-on-ink); }
body.mood-lux .data-bar { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.10); color: #b8b3a9; }
body.mood-lux .data-bar strong { color: var(--paper); }
body.mood-lux .cta-note { color: #948f85; }
/* cards — quiet glass on black */
body.mood-lux .card { background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.08); }
body.mood-lux .card h3 { color: var(--paper); }
body.mood-lux .card p { color: #b8b3a9; }
body.mood-lux .card-num { color: var(--flag-on-ink); }
/* FAQ + frames on black */
body.mood-lux .faq-list details { border-color: rgba(255,255,255,.12); }
body.mood-lux .faq-list summary { color: var(--paper); }
body.mood-lux .faq-a p { color: #b8b3a9; }
body.mood-lux .figure-frame { border-color: rgba(255,255,255,.08); }

/* WINERY = warm: a golden-hour cast over the same cartographic bones */
body.mood-warm .hero-scrim {
  background:
    linear-gradient(101deg, rgba(247,241,230,.90) 0%, rgba(248,236,214,.66) 32%, rgba(249,227,192,.34) 62%, rgba(250,221,176,.12) 100%),
    linear-gradient(0deg, rgba(247,237,216,.30) 0%, rgba(247,237,216,0) 22%);
}
body.mood-warm .room { background: #1c1409; }
body.mood-warm .room-veil { background: linear-gradient(180deg, rgba(40,26,10,.32) 0%, rgba(26,17,6,.80) 100%); }
body.mood-warm .room--center .room-veil { background: radial-gradient(120% 92% at 50% 32%, rgba(40,26,10,.28), rgba(24,15,5,.88)); }
body.mood-warm .band-ink { background: #20160c; }

/* dark-room muted text must stay AA on cinema / band-ink / warm backgrounds */
.room .muted, .band-ink .muted, .section--cinema .muted { color: var(--paper-dim); }

/* CONSTRUCTION = technical: a faint engineering grid + cool precision over the LIGHT body only */
@media (min-width: 720px) {
  body.mood-technical .section.has-contours:not(.band-ink):not(.room) { position: relative; }
  body.mood-technical .section.has-contours:not(.band-ink):not(.room)::after {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image:
      repeating-linear-gradient(0deg, transparent 0 47px, rgba(29,29,27,.05) 47px 48px),
      repeating-linear-gradient(90deg, transparent 0 47px, rgba(29,29,27,.05) 47px 48px);
    mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  }
  body.mood-technical .section.has-contours:not(.band-ink):not(.room) > .container { position: relative; z-index: 1; }
}

/* =========================================================================
   HERO TREATMENT PALETTE — each page picks the ONE that sells what it offers,
   so no two heroes read the same. develop-light (the paper "develop", ag/home),
   cinematic-dark (estate) and warm (winery) are defined above; these add
   image-forward, cool-technical and focused. All are MODIFIERS on .hero--develop.
   ========================================================================= */

/* IMAGE-FORWARD — the real capture dominates full-bleed; only a bottom wash for
   legibility, text anchored low. For pages where the photo itself is the pitch:
   roofs, property records, golf, location pages, stockpiles. */
.hero--image .hero-contour { display: none; }   /* it's a photograph, not a map develop */
.hero--image { align-items: flex-end; }
.hero--image .hero-scrim {
  background:
    linear-gradient(0deg, rgba(14,14,13,.90) 0%, rgba(14,14,13,.60) 22%, rgba(14,14,13,.18) 48%, rgba(14,14,13,0) 70%),
    linear-gradient(180deg, rgba(14,14,13,.40) 0%, rgba(14,14,13,0) 20%);
}
.hero--image .hero-inner .kicker { color: var(--flag-on-ink); text-shadow: 0 1px 10px rgba(14,14,13,.9); }
.hero--image .hero-title,
.hero--image .hero-inner .lede { color: var(--paper); text-shadow: 0 2px 26px rgba(14,14,13,.62), 0 1px 5px rgba(14,14,13,.9); }
.hero--image .hero-databar { color: var(--paper-dim); }
.hero--image .hero-databar strong { color: var(--paper); }
.hero--image .hero-cue { color: var(--paper); }
@media (prefers-reduced-motion: no-preference) {
  /* a calm settle — let the capture breathe, no blueprint scan */
  .hero--image .hero-plate img { animation: develop-settle 1.8s var(--ease-out) both; }
}

/* COOL-TECHNICAL — a cool steel cast with a faint measured grid: engineering
   precision. For construction's hero (distinct from estate's warm cinematic). */
.hero--technical .hero-contour { display: none; }
.hero--technical .hero-scrim {
  background:
    linear-gradient(101deg, rgba(10,14,18,.92) 0%, rgba(12,17,22,.64) 40%, rgba(14,20,26,.26) 72%, rgba(14,20,26,.06) 100%),
    repeating-linear-gradient(0deg, transparent 0 47px, rgba(176,202,224,.05) 47px 48px),
    repeating-linear-gradient(90deg, transparent 0 47px, rgba(176,202,224,.05) 47px 48px);
}
.hero--technical .hero-inner .kicker { color: var(--flag-on-ink); text-shadow: 0 1px 10px rgba(8,12,16,.92); }
.hero--technical .hero-title,
.hero--technical .hero-inner .lede { color: var(--paper); text-shadow: 0 2px 26px rgba(8,12,16,.72), 0 1px 5px rgba(8,12,16,.92); }
.hero--technical .hero-databar { color: var(--paper-dim); }
.hero--technical .hero-databar strong { color: var(--paper); }
.hero--technical .hero-cue { color: var(--paper); }
@media (prefers-reduced-motion: no-preference) {
  .hero--technical .hero-plate img { animation: develop-settle 1.6s var(--ease-out) both; }
}

/* FOCUSED/ALERT — a vignette that concentrates attention; operational, watchful.
   For site security & monitoring. */
.hero--focus .hero-contour { display: none; }
.hero--focus .hero-scrim {
  background:
    radial-gradient(132% 104% at 68% 42%, rgba(14,14,13,0) 0%, rgba(14,14,13,.28) 50%, rgba(14,14,13,.84) 100%),
    linear-gradient(101deg, rgba(14,14,13,.84) 0%, rgba(14,14,13,.42) 50%, rgba(14,14,13,.06) 100%);
}
.hero--focus .hero-inner .kicker { color: var(--flag-on-ink); text-shadow: 0 1px 10px rgba(14,14,13,.92); }
.hero--focus .hero-title,
.hero--focus .hero-inner .lede { color: var(--paper); text-shadow: 0 2px 26px rgba(14,14,13,.72), 0 1px 5px rgba(14,14,13,.92); }
.hero--focus .hero-databar { color: var(--paper-dim); }
.hero--focus .hero-databar strong { color: var(--paper); }
.hero--focus .hero-cue { color: var(--paper); }


/* ------------------------------------------------ promoted inline patterns
   The four most-recurring style="" attributes, promoted to classes (2026-07-01).
   Selectors are doubled on purpose: the inline attribute they replace outranked
   component rules like .site-footer ul { margin: 0 } and .footer-legal p, so the
   promoted rule needs 0,2,0 specificity to keep rendering identical. */
.section-note.section-note { margin-top: 18px; max-width: 52em; }
.u-mt-8.u-mt-8 { margin-top: 8px; }
.u-mt-14.u-mt-14 { margin-top: 14px; }
.u-mt-16.u-mt-16 { margin-top: 16px; }
/* ==========================================================================
   Signature motion (perfection loop): sections breathe as they arrive.
   Everything keys off the existing .reveal IntersectionObserver state and
   is fully disabled under prefers-reduced-motion below. */

/* figures develop as their section reveals: a soft wipe up + settle */
html.js .reveal .figure-frame img,
html.js .reveal .figure-frame video {
  clip-path: inset(0 0 16% 0);
  transform: scale(1.028);
  transition: clip-path 0.9s var(--ease-out) 0.1s, transform 1.15s var(--ease-out) 0.1s;
}
html.js .reveal.in .figure-frame img,
html.js .reveal.in .figure-frame video {
  clip-path: inset(0 0 0 0);
  transform: scale(1);
}

/* the capability grid cascades in card by card */
html.js .cap-cards.reveal > .card {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
html.js .cap-cards.reveal.in > .card { opacity: 1; transform: none; }
html.js .cap-cards.reveal.in > .card:nth-child(2) { transition-delay: 70ms; }
html.js .cap-cards.reveal.in > .card:nth-child(3) { transition-delay: 140ms; }
html.js .cap-cards.reveal.in > .card:nth-child(4) { transition-delay: 210ms; }
html.js .cap-cards.reveal.in > .card:nth-child(5) { transition-delay: 280ms; }
html.js .cap-cards.reveal.in > .card:nth-child(6) { transition-delay: 350ms; }
html.js .cap-cards.reveal.in > .card:nth-child(7) { transition-delay: 420ms; }
html.js .cap-cards.reveal.in > .card:nth-child(8) { transition-delay: 490ms; }
/* the grid is 8 cards today; anything beyond joins the last beat */
html.js .cap-cards.reveal.in > .card:nth-child(n+9) { transition-delay: 490ms; }

/* dark bands feel quietly alive: the contour backdrop drifts, near-imperceptibly */
@media (prefers-reduced-motion: no-preference) {
  .band-ink.has-contours::before {
    animation: contour-drift 90s ease-in-out infinite alternate;
    will-change: transform;
  }
  @keyframes contour-drift {
    from { transform: scale(1) translate3d(0, 0, 0); }
    to   { transform: scale(1.05) translate3d(-1.2%, 0.8%, 0); }
  }
}

/* reduced motion: everything above appears instantly, nothing moves */
@media (prefers-reduced-motion: reduce) {
  html.js .reveal .figure-frame img,
  html.js .reveal .figure-frame video { clip-path: none; transform: none; transition: none; }
  html.js .cap-cards.reveal > .card { opacity: 1; transform: none; transition: none; }
  .band-ink.has-contours::before { animation: none; }
}

/* mood-lux keeps its tan links on dark rooms, but the light svc-strip needs ink */
body.mood-lux .svc-strip a:not(.btn) { color: var(--ink); }

/* mood-warm must not wash out an image hero: keep the dark text-side scrim */
body.mood-warm .hero--image .hero-scrim {
  background:
    linear-gradient(0deg, rgba(14,14,13,.90) 0%, rgba(14,14,13,.60) 22%, rgba(14,14,13,.18) 48%, rgba(14,14,13,0) 70%),
    linear-gradient(180deg, rgba(14,14,13,.40) 0%, rgba(14,14,13,0) 20%);
}

/* the estates page keeps its grand cinematic scale (owner call) */
body.mood-lux { --fs-display-xl: clamp(3.2rem, 9vw, 9rem); }
body.mood-lux .room { min-height: min(100vh, 920px); }
