/*
 * styles.css — Innogrity IT Solutions
 * Concept: "The Seven-Day Strip". The marigold delivery-window block is the
 * site's only graphic unit; it measures days, hours, months and years.
 * Flat fields, no radius, no shadows, no gradients, no icon cards.
 */

/* ============================================================
   Design Tokens
   ============================================================ */
:root {
  --color-primary: #0B5654;
  --color-secondary: #F2A71B;
  --color-accent: #C23B22;
  --color-bg: #F4F1EA;
  --color-surface: #FBF9F4;
  --color-text: #15181B;
  --color-text-secondary: #4B5157;
  --color-border: #D8D2C4;
  --font-primary: 'Archivo', 'Arial Narrow', sans-serif;
  --font-secondary: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --font-size-base: 17px;
  --spacing-base: 8px;
  --motion-duration: 220ms;
  --motion-duration-slow: 520ms;
  --motion-ease: cubic-bezier(0.3, 0.0, 0.1, 1);

  /* Named roles */
  --teal: #0B5654;          /* Corridor Teal — dominant field */
  --marigold: #F2A71B;      /* Delivery Marigold — secondary field / the window */
  --vermilion: #C23B22;     /* Day Marker Vermilion — ticks, one CTA, focus */
  --paper: #F4F1EA;         /* Warm Paper — light ground */
  --form-paper: #FBF9F4;
  --graphite: #15181B;      /* dark ground */
  --slate: #4B5157;
  --rule: #D8D2C4;
  --teal-wash: #DCE7E3;

  --nav-h: 72px;
  --nav-h-condensed: 60px;
  --gap: clamp(12px, 2vw, 24px);
  --pad-x: clamp(16px, 2.4vw, 32px);
  --section-y: clamp(72px, 10vw, 144px);
}

/* ============================================================
   Base Reset
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size-base, 16px);
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-secondary);
  background-color: var(--paper);
  color: var(--graphite);
  line-height: 1.6;
  padding-bottom: 42px; /* required */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--teal);
}

ul, ol { list-style: none; }

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

/* Focus states — WCAG AA required */
:focus-visible {
  outline: 3px solid var(--vermilion);
  outline-offset: 2px;
}

/* Skip navigation link — WCAG 2.4.1 (managed by fix_ada_safe.py) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--color-surface, #ffffff);
  color: var(--color-accent, #005fcc);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--color-accent, #005fcc);
  border-radius: 0 0 4px 0;
}
.skip-link:focus {
  left: 0;
}

main:focus { outline: none; }

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

/* Reveal-gating floor — base state VISIBLE; hidden only when JS is confirmed.
   (The motion signature here is "the window lands once"; no section uses
   scroll reveals, but the gate is kept so any future .reveal is safe.) */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
html.js .reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   Type system
   ============================================================ */
h1, h2, h3 {
  font-family: var(--font-primary);
  font-weight: 800;
  font-variation-settings: 'wdth' 75;
  letter-spacing: -0.01em;
  line-height: 0.95;
  text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 5.2vw, 5rem); }
h2 { font-size: clamp(2rem, 3.4vw, 3.25rem); font-weight: 700; line-height: 1; }
h3 { font-size: 1.5rem; font-weight: 700; font-variation-settings: 'wdth' 100; line-height: 1.15; }

p { max-width: 62ch; }
.lead { font-size: clamp(1.2rem, 1.6vw, 1.4rem); line-height: 1.45; max-width: 34ch; }

/* Oversized numeral opener */
.num {
  display: block;
  font-family: var(--font-primary);
  font-weight: 800;
  font-variation-settings: 'wdth' 62;
  line-height: 0.82;
  letter-spacing: -0.02em;
  font-feature-settings: 'tnum' 1, 'lnum' 1;
}

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}

/* ============================================================
   Layout — the bleed grid
   Tracks: [margin] 12 × content [margin]. Column n → line n+1.
   ============================================================ */
.grid {
  display: grid;
  grid-template-columns: minmax(var(--pad-x), 1fr) repeat(12, minmax(0, 96px)) minmax(var(--pad-x), 1fr);
  column-gap: var(--gap);
}
.grid > * { min-width: 0; }

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

.ground-light { background: var(--paper); color: var(--graphite); }
.ground-dark { background: var(--graphite); color: var(--paper); }
.ground-teal { background: var(--teal); color: var(--paper); }
.ground-marigold { background: var(--marigold); color: var(--graphite); }

.ground-dark p, .ground-teal p { color: rgba(244, 241, 234, 0.86); }

/* Edge-bleed images fill their plane */
.plane { position: relative; min-width: 0; }
.plane img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   Buttons & links
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95rem 1.5rem;
  background: var(--vermilion);
  color: var(--paper);
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background-color var(--motion-duration) var(--motion-ease);
}
.btn:hover { background: #A83019; }
.btn i { font-size: 1.1em; }

/* Vermilion never touches marigold: the chip is paper */
.chip {
  display: inline-block;
  background: var(--paper);
  padding: 10px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
  border-bottom: 2px solid currentColor;
  padding-bottom: 3px;
  transition: border-color var(--motion-duration) var(--motion-ease);
}
.text-link--marigold { color: var(--marigold); }
.text-link:hover { border-color: var(--vermilion); }
.text-link--marigold:hover { border-color: var(--paper); }

.mono-link {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 241, 234, 0.5);
  padding-bottom: 2px;
}
.mono-link:hover { border-bottom-color: var(--marigold); }

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  overflow: visible;
  border-bottom: 1px solid transparent;
  transition: border-color var(--motion-duration) var(--motion-ease);
}
.site-header.is-condensed { border-bottom-color: var(--rule); }

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
  height: var(--nav-h);
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  overflow: visible;
  transition: height var(--motion-duration) var(--motion-ease);
}
.site-header.is-condensed .nav { height: var(--nav-h-condensed); }

.nav__brand { flex: 0 0 auto; display: block; line-height: 0; }
.nav__brand img {
  height: 44px;      /* judged: logo-treatment-final.json — never shrinks on condense */
  width: auto;
  max-width: 240px;
}

.nav__links {
  display: flex;
  gap: 36px;
  margin-left: auto;
  font: 500 15px/1 var(--font-secondary);
}
.nav__links a {
  display: inline-block;
  color: var(--graphite);
  text-decoration: none;
  padding: 8px 0 6px;
  white-space: nowrap;
  background: linear-gradient(var(--teal), var(--teal)) 0 100% / 0 2px no-repeat;
  transition: background-size var(--motion-duration) var(--motion-ease);
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { background-size: 100% 2px; }

.clocks {
  display: flex;
  gap: 14px;
  font: 500 13px/1 var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--slate);
  white-space: nowrap;
}
.clock__time { font-feature-settings: 'tnum' 1; }
.clock__time:empty { display: none; }

.nav__cta {
  font: 600 15px/1 var(--font-secondary);
  color: var(--teal);
  text-decoration: none;
  border-bottom: 2px solid var(--vermilion);
  padding: 8px 0 4px;
  white-space: nowrap;
}
.nav__cta:hover { color: var(--graphite); }
.nav__cta[aria-current="page"] { color: var(--graphite); }

.nav__toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  border-bottom: 2px solid var(--teal);
  padding: 8px 0 4px;
  font: 600 15px/1 var(--font-secondary);
  color: var(--graphite);
  cursor: pointer;
}

/* Drawer — full-height teal panel (JS). Without JS it renders inline. */
.nav-drawer {
  display: none;
  background: var(--teal);
  color: var(--paper);
  padding: 32px var(--pad-x) 40px;
}
.nav-drawer ul { display: grid; gap: 4px; }
.nav-drawer a {
  display: block;
  color: var(--paper);
  text-decoration: none;
  font: 600 22px/1.3 var(--font-secondary);
  padding: 10px 0;
  border-bottom: 1px solid rgba(244, 241, 234, 0.18);
}
.nav-drawer a[aria-current="page"] { color: var(--marigold); }
.nav-drawer .clocks { color: var(--paper); margin-top: 32px; font-size: 14px; }
.nav-drawer__close {
  display: none;
  margin-left: auto;
  background: none; border: 0; color: var(--paper);
  font: 600 15px/1 var(--font-secondary);
  gap: 8px; align-items: center; cursor: pointer;
  border-bottom: 2px solid var(--marigold);
  padding: 8px 0 4px;
}

@media (max-width: 1180px) {
  .nav { gap: 24px; }
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav .clocks-wrap { margin-left: auto; }
  .nav__toggle { display: inline-flex; margin-left: 0; }
  .nav-drawer { display: block; }
  html.js .nav-drawer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    overflow-y: auto;
    padding-top: 20px;
  }
  html.js .nav-drawer.is-open { display: flex; flex-direction: column; }
  html.js .nav-drawer__close { display: inline-flex; }
}
@media (max-width: 900px) {
  :root { --nav-h: 60px; }
  .nav { padding: 0 var(--pad-x); }
}
@media (max-width: 560px) {
  .nav .clocks-wrap { display: none; }
  .nav__toggle { margin-left: auto; }
}

/* ============================================================
   Footer — graphite; the window rule runs from "day 3" to the edge
   ============================================================ */
.site-footer {
  position: relative;
  background: var(--graphite);
  color: rgba(244, 241, 234, 0.8);
  font-size: 15px;
  padding-top: 88px;
}
.footer__rule {
  position: absolute;
  top: 0;
  left: calc(100% * 2 / 7);
  right: 0;
  height: 6px;
  background: var(--marigold);
}
.footer__rule::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 4px; height: 28px;
  background: var(--vermilion);
}
.footer__grid { row-gap: 48px; padding-bottom: 64px; }
.footer__brand { grid-column: 2 / 5; grid-row: 1; line-height: 0; align-self: start; justify-self: start; }
.footer__brand img { height: 44px; width: auto; max-width: 160px; }
.footer__line { grid-column: 2 / 5; margin-top: 76px; grid-row: 1; max-width: 30ch; color: rgba(244, 241, 234, 0.8); }
.footer__offices {
  grid-column: 5 / 10;
  grid-row: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
.office__city {
  font-family: var(--font-primary);
  font-weight: 700;
  font-variation-settings: 'wdth' 75;
  font-size: 1.25rem;
  line-height: 1.1;
  color: var(--paper);
  margin-bottom: 8px;
}
.office__clock { margin-top: 12px; }
.office__clock .clocks { display: inline-flex; }
.office__clock .clocks { color: var(--marigold); font-size: 14px; }
.footer__nav { grid-column: 10 / 14; grid-row: 1; }
.footer__nav ul { display: grid; gap: 8px; }
.footer__nav ul ul { gap: 4px; margin: 6px 0 6px 14px; }
.footer__nav ul ul a { font-size: 14px; }
.site-footer a {
  color: var(--paper);
  text-decoration: none;
  background: linear-gradient(var(--marigold), var(--marigold)) 0 100% / 0 2px no-repeat;
  transition: background-size var(--motion-duration) var(--motion-ease);
  padding-bottom: 2px;
}
.site-footer a:hover { background-size: 100% 2px; }
.site-footer .footer__brand { background: none; }
.footer__base {
  border-top: 1px solid rgba(244, 241, 234, 0.14);
  padding-block: 24px;
}
.footer__base .row {
  grid-column: 2 / 14;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 14px;
}

@media (max-width: 900px) {
  .footer__brand, .footer__line, .footer__offices, .footer__nav { grid-column: 2 / -2; }
  .footer__brand, .footer__offices, .footer__nav { grid-row: auto; }
  .footer__line { grid-row: auto; margin-top: -24px; }
}
@media (max-width: 480px) {
  .footer__offices { grid-template-columns: 1fr; }
}

/* ============================================================
   The ruler — the site's single graphic unit
   --n: number of cells. Window/segments use --a / --b (cell edges).
   ============================================================ */
.ruler {
  position: relative;
  background: var(--graphite);
  color: var(--paper);
  font: 500 13px/1 var(--font-mono);
  letter-spacing: 0.04em;
}
.ruler__track {
  position: relative;
  min-height: 64px;
}
.ruler__scale {
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  height: 64px;
}
.ruler__scale li {
  border-left: 1px solid rgba(244, 241, 234, 0.28);
  padding: 9px 0 0 8px;
  white-space: nowrap;
}
.ruler__scale li:first-child { border-left-color: transparent; }
.ruler__window,
.ruler__seg,
.ruler__band {
  position: absolute;
  left: calc(var(--a) / var(--n) * 100%);
  width: calc((var(--b) - var(--a)) / var(--n) * 100%);
}
.ruler__window,
.ruler__seg {
  bottom: 0;
  height: 34px;
  background: var(--marigold);
  color: var(--graphite);
  display: flex;
  align-items: center;
  padding: 0 12px;
  white-space: nowrap;
  overflow: visible;
  transition: left var(--motion-duration) var(--motion-ease), width var(--motion-duration) var(--motion-ease);
}
.ruler__window span, .ruler__seg span { overflow: hidden; text-overflow: clip; }
/* Vermilion day markers rise from the window's ends into the photographs */
.tick {
  position: absolute;
  bottom: 0;
  width: 4px;
  height: calc(100% + 40px);
  background: var(--vermilion);
  left: calc(var(--at) / var(--n) * 100% - 2px);
  z-index: 2;
}
.tick--end { left: auto; right: 0; }
.ruler__seg { border-right: 8px solid var(--graphite); }
.ruler__seg--off { border-right: 0; }
.ruler__seg--off { width: auto; right: 0; }           /* runs off the edge — no end tick */
.ruler__band {
  bottom: 34px;
  height: 14px;
  display: flex; align-items: center;
  padding-left: 8px;
  font-size: 11px;
  color: var(--paper);
}
.ruler__band--a { background: rgba(244, 241, 234, 0.26); }
.ruler--bands .ruler__scale, .ruler--bands .ruler__track { height: 84px; min-height: 84px; }
.ruler__band--b { background: rgba(244, 241, 234, 0.18); }

/* The window lands once — JS-scoped, end state is the natural state */
html.js .ruler__window,
html.js .week__window {
  animation: window-land var(--motion-duration-slow) var(--motion-ease) 180ms both;
}
html.js .ruler__seg { animation: seg-land 360ms var(--motion-ease) both; }
html.js .ruler__seg:nth-of-type(2) { animation-delay: 170ms; }
html.js .ruler__seg:nth-of-type(3) { animation-delay: 340ms; }
@keyframes window-land {
  from { clip-path: inset(-60px var(--land-from, 80%) 0 0); }
  to   { clip-path: inset(-60px 0 0 0); }
}
@keyframes seg-land {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}
@media (prefers-reduced-motion: reduce) {
  html.js .ruler__window, html.js .week__window, html.js .ruler__seg { animation: none; }
}

/* Mini ruler (services wall, staffing sections, contact rows) */
.mini-ruler {
  --track: rgba(244, 241, 234, 0.2);
  margin-top: 16px;
}
.mini-ruler__track {
  position: relative;
  height: 10px;
  background: var(--track);
}
.mini-ruler__seg {
  position: absolute;
  top: 0; bottom: 0;
  left: calc(var(--a) / var(--n) * 100%);
  width: calc((var(--b) - var(--a)) / var(--n) * 100%);
  background: var(--marigold);
  transition: filter var(--motion-duration) var(--motion-ease);
}
.mini-ruler__label {
  display: block;
  margin-top: 8px;
  font: 500 13px/1.2 var(--font-mono);
  letter-spacing: 0.04em;
}
.mini-ruler--light { --track: rgba(21, 24, 27, 0.12); }
.mini-ruler--light .mini-ruler__label { color: var(--slate); }
.mini-ruler--lanes .mini-ruler__lane + .mini-ruler__lane { margin-top: 14px; }

/* ============================================================
   Teal plate — the only "scrim" on photographs
   ============================================================ */
.plate {
  background: var(--teal);
  color: var(--paper);
  padding: 48px;
}
.plate p { color: rgba(244, 241, 234, 0.9); }

/* ============================================================
   HOME — Hero: the week strip
   ============================================================ */
.week { position: relative; background: var(--paper); }
.week__strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-template-rows: 1fr 56px;
  column-gap: 3px;
  height: min(88vh, 900px);
  min-height: 560px;
  background: var(--paper);
}
.week__day {
  position: relative;
  grid-row: 1 / 3;
  grid-column: var(--col);
  margin: 0;
  overflow: hidden; /* image crop only — no text inside except the chip */
  background: var(--graphite);
}
.week__day img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 30%);
  transition: filter var(--motion-duration) var(--motion-ease);
}
.week__chip {
  position: absolute;
  top: 16px; left: 12px;
  z-index: 1;
  background: var(--paper);
  color: var(--graphite);
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.05em;
  padding: 7px 8px 6px;
  white-space: nowrap;
  transition: background-color var(--motion-duration) var(--motion-ease);
  pointer-events: none;
}
.week__day--face img { transform: scale(1.2); transform-origin: 50% 100%; }
.week__day:hover img { filter: grayscale(0.04) saturate(0.96); }
.week__day:hover .week__chip { background: var(--marigold); }

.week__window {
  grid-row: 2;
  grid-column: 3 / 8;
  position: relative;
  z-index: 2;
  background: var(--marigold);
  color: var(--graphite);
  display: flex;
  align-items: center;
  padding: 0 20px;
  font: 500 14px/1 var(--font-mono);
  letter-spacing: 0.06em;
  white-space: nowrap;
  --land-from: 80%;
}
.week__window::before,
.week__window::after {
  content: "";
  position: absolute;
  bottom: 100%;
  width: 4px;
  height: 40px;
  background: var(--vermilion);
}
.week__window::before { left: 0; }
.week__window::after { right: 0; }

.week__plate {
  position: absolute;
  z-index: 3;
  left: 0;
  bottom: 56px;
  width: calc((100% - 18px) * 4 / 7 + 9px);
  padding: 40px 48px 36px;
}
.week__plate h1 {
  font-size: clamp(2.5rem, 4.1vw, 4.25rem);
  color: var(--paper);
  max-width: 19ch;
}
.week__plate .lead { margin-top: 16px; color: rgba(244, 241, 234, 0.9); max-width: 52ch; font-size: clamp(1.05rem, 1.25vw, 1.2rem); }
.week__actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

@media (max-width: 1100px) {
  .week__plate { width: calc((100% - 18px) * 5 / 7 + 12px); padding: 36px; }
}
@media (max-width: 760px) {
  .week__strip {
    grid-template-columns: repeat(7, 44vw);
    grid-template-rows: 1fr 56px;
    height: 62vh;
    min-height: 420px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-top: 0;
  }
  .week__strip::-webkit-scrollbar { display: none; }
  .week__day { scroll-snap-align: start; }
  .week__window::before, .week__window::after { height: 28px; }
  .week__plate {
    position: static;
    width: auto;
    padding: 32px var(--pad-x) 40px;
  }
  .week__plate h1 { font-size: clamp(2.5rem, 11vw, 3.4rem); }
}

/* ============================================================
   HOME — Six services wall
   ============================================================ */
.wall { padding-block: var(--section-y); }
.wall__rail { grid-column: 2 / 5; align-self: start; position: sticky; top: 96px; }
.wall__num { color: var(--marigold); font-size: 12vw; white-space: nowrap; }
.wall__rail h2 { margin-top: 20px; color: var(--paper); max-width: 11ch; }
.wall__rail p { margin-top: 20px; max-width: 30ch; }
.wall__blocks {
  grid-column: 5 / 14;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(12, 96px);
  gap: 2px;
  background: rgba(244, 241, 234, 0.2);
  border: 2px solid rgba(244, 241, 234, 0.2);
}
.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--teal);
  color: var(--paper);
  text-decoration: none;
  min-width: 0;
}
.svc:nth-child(1) { grid-column: 1; grid-row: 1 / 8; }
.svc:nth-child(2) { grid-column: 2; grid-row: 1 / 6; }
.svc:nth-child(3) { grid-column: 3; grid-row: 1 / 6; }
.svc:nth-child(4) { grid-column: 1; grid-row: 8 / 13; }
.svc:nth-child(5) { grid-column: 2; grid-row: 6 / 13; }
.svc:nth-child(6) { grid-column: 3; grid-row: 6 / 11; }
.svc__img {
  position: relative;
  flex: 0 0 45%;
  background: var(--teal);
  overflow: hidden;
}
.svc__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  opacity: 0.88;
  transition: opacity var(--motion-duration) var(--motion-ease), mix-blend-mode 0s;
}
.svc:nth-child(even) .svc__img { order: 2; }
.svc__body { flex: 1 1 auto; padding: 22px 22px 24px; display: flex; flex-direction: column; }
.svc__num { font-size: 4rem; color: var(--paper); }
.svc h3 { margin-top: 12px; color: var(--paper); font-size: 1.5rem; }
.svc p { margin-top: 8px; font-size: 0.95rem; line-height: 1.5; color: rgba(244, 241, 234, 0.85); }
.svc .mini-ruler { margin-top: auto; padding-top: 16px; }
.svc:hover .svc__img img, .svc:focus-visible .svc__img img { mix-blend-mode: normal; opacity: 1; }
.svc:hover .mini-ruler__seg, .svc:focus-visible .mini-ruler__seg { filter: brightness(1.12) saturate(1.1); }

@media (max-width: 1180px) {
  .wall__num { font-size: 10vw; }
  .wall__blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: auto; }
  .svc:nth-child(n) { grid-column: auto; grid-row: auto; min-height: 420px; }
  .svc:nth-child(1), .svc:nth-child(5) { min-height: 500px; }
}
@media (max-width: 760px) {
  .wall__rail {
    grid-column: 1 / -1;
    position: sticky; top: 60px; z-index: 5;
    background: var(--teal);
    padding: 12px var(--pad-x) 16px;
    margin-bottom: 16px;
    border-bottom: 2px solid rgba(244, 241, 234, 0.2);
  }
  .wall__num { font-size: 18vw; }
  .wall__rail h2 { font-size: 1.6rem; margin-top: 8px; max-width: none; }
  .wall__rail p { display: none; }
  .wall__blocks { grid-column: 1 / -1; grid-template-columns: 1fr; border-inline: 0; }
  .svc:nth-child(n) { min-height: 0; }
  .svc__img { flex-basis: auto; aspect-ratio: 16 / 9; }
  .svc:nth-child(1) .svc__img, .svc:nth-child(5) .svc__img { aspect-ratio: 4 / 3; }
}

/* ============================================================
   HOME — The seven days (Gantt)
   ============================================================ */
.days__head { grid-column: 1 / 14; display: flex; align-items: flex-start; gap: clamp(16px, 2vw, 32px); }
.days__seven {
  font-size: 22vw;
  color: var(--teal);
  margin-left: -2vw;
  margin-top: -0.06em;
  flex: 0 0 auto;
}
.days__head h2 { padding-top: 2.2vw; max-width: 12ch; font-size: clamp(2.2rem, 4.4vw, 4.25rem); }
.days__head .lead { margin-top: 20px; color: var(--slate); max-width: 40ch; }

.gantt {
  grid-column: 2 / -1;           /* runs to the right viewport edge */
  margin-top: clamp(40px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr)) minmax(0, 1.6fr);
  grid-template-rows: 40px repeat(6, 44px);
  row-gap: 10px;
  position: relative;
}
.gantt__col {
  grid-row: 1 / -1;
  border-left: 1px solid var(--graphite);
  font: 500 13px/1 var(--font-mono);
  letter-spacing: 0.04em;
  padding: 6px 0 0 8px;
  color: var(--slate);
}
.gantt__col--mark { border-left: 3px solid var(--vermilion); color: var(--vermilion); }
.gantt__window {
  grid-column: 3 / 8;
  grid-row: 1 / -1;
  background: rgba(242, 167, 27, 0.25);
  z-index: 0;
}
.gantt__label {
  grid-column: 3 / 8;
  grid-row: 7;
  align-self: center;
  justify-self: end;
  padding: 0 10px 6px;
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--graphite);
  z-index: 1;
}
.bar {
  grid-column: var(--c1) / var(--c2);
  grid-row: var(--r);
  z-index: 1;
  background: var(--graphite);
  color: var(--paper);
  font: 600 14px/1.1 var(--font-secondary);
  display: flex;
  align-items: center;
  padding: 0 10px;
  margin-right: 2px;
  white-space: normal;
  min-width: 0;
}
.bar small { display: none; font: 500 12px/1 var(--font-mono); letter-spacing: 0.04em; }
.bar--off { margin-right: 0; }

.days__plane { grid-column: 9 / -1; margin-top: clamp(48px, 6vw, 88px); aspect-ratio: 3 / 2; }
.days__copy { grid-column: 2 / 8; margin-top: clamp(48px, 6vw, 88px); align-self: center; }
.days__copy p + p { margin-top: 1em; }
.days__steps { margin-top: 28px; display: grid; gap: 14px; }
.days__steps li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 0.97rem; }
.days__steps .mono { color: var(--teal); padding-top: 3px; }

@media (max-width: 900px) {
  .days__plane { grid-column: 5 / -1; }
  .days__copy { grid-column: 2 / -2; grid-row: auto; }
}
@media (max-width: 900px) {
  .days__head { grid-column: 1 / -1; flex-direction: column; gap: 0; padding-right: var(--pad-x); }
  .days__seven { font-size: 58vw; margin-left: -3vw; line-height: 0.78; }
  .days__head h2 { padding: 0 0 0 var(--pad-x); font-size: 2.3rem; }
  .days__head .lead { padding-left: var(--pad-x); }
  /* Rotated: days run down a left ruler, each bar is a horizontal span */
  .gantt {
    grid-column: 2 / -1;
    display: block;
    border-left: 3px solid var(--graphite);
    padding: 8px 0 0 0;
  }
  .gantt__col, .gantt__window, .gantt__label { display: none; }
  .bar {
    position: relative;
    display: block;
    background: none;
    color: var(--graphite);
    white-space: normal;
    padding: 14px 0 34px 14px;
    margin: 0;
  }
  .bar::before {
    content: ""; position: absolute; left: 14px; right: 0; bottom: 14px; height: 12px;
    background: repeating-linear-gradient(90deg, rgba(21,24,27,.10) 0 calc(100% / 8 - 2px), transparent calc(100% / 8 - 2px) calc(100% / 8));
  }
  .bar::after {
    content: ""; position: absolute; bottom: 14px; height: 12px;
    left: calc(14px + (100% - 14px) * (var(--c1) - 1) / 8);
    width: calc((100% - 14px) * (var(--c2) - var(--c1)) / 8);
    background: var(--graphite);
  }
  .bar--win::after { background: var(--teal); }
  .bar--off::after { width: auto; right: 0; }
  .bar small { color: var(--teal); display: block; margin: 6px 0 0; }
  .days__plane { grid-column: 3 / -1; }
}

/* ============================================================
   Photo bands (full-bleed) with docked plates
   ============================================================ */
.band {
  position: relative;
  min-height: 78vh;
  display: grid;
  grid-template-columns: minmax(var(--pad-x), 1fr) repeat(12, minmax(0, 96px)) minmax(var(--pad-x), 1fr);
  column-gap: var(--gap);
  background: var(--graphite);
}
.band > * { min-width: 0; }
.band__img { position: absolute; inset: 0; }
.band__img img { width: 100%; height: 100%; object-fit: cover; }
.band .plate { position: relative; z-index: 1; }

/* Home GCC band */
.gccband { min-height: max(78vh, calc(100vw * 9 / 21)); }
.gccband .band__img img { object-position: 30% 40%; }
.gccband .plate {
  grid-column: 9 / -1;
  grid-row: 1;
  align-self: start;
  margin-top: 12vh;
  max-width: 640px;
  justify-self: end;
  width: 100%;
}
.plate__rule { height: 2px; background: var(--marigold); margin-bottom: 24px; }
.gccband .plate h2 { color: var(--paper); }
.gccband .plate p { margin-top: 16px; }
.gccband .plate .text-link { margin-top: 24px; color: var(--paper); }
.segs {
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: end;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 6fr 12fr 8fr;
  gap: 8px;
  margin-top: 20vh;
  margin-bottom: 7vh;
}
.segs li {
  background: var(--marigold);
  color: var(--graphite);
  font: 500 14px/1 var(--font-mono);
  letter-spacing: 0.06em;
  padding: 20px 16px;
  white-space: nowrap;
}
.segs li:first-child { margin-left: var(--pad-x); }
.segs .typical { grid-column: 1 / -1; background: none; padding: 0 0 0 var(--pad-x); color: var(--paper); font-size: 12px; }
@media (max-width: 900px) {
  .gccband { display: flex; flex-direction: column; min-height: 0; background: var(--paper); }
  .gccband .band__img { position: relative; aspect-ratio: 4 / 3; }
  .gccband .segs {
    position: absolute; left: 0; right: 0; top: 0;
    aspect-ratio: 4 / 3; margin: 0;
    grid-template-columns: 1fr; align-content: end; padding: 0 var(--pad-x) 16px;
    gap: 6px;
  }
  .segs li:first-child { margin-left: 0; }
  .segs li { padding: 11px 12px; font-size: 12px; white-space: normal; }
  .segs li:nth-child(1) { width: 58%; }
  .segs li:nth-child(2) { width: 78%; margin-left: 22%; }
  .segs li:nth-child(3) { margin-left: 42%; }
  .segs .typical { display: none; }
  .gccband .plate { margin: 0; max-width: none; padding: 36px var(--pad-x) 44px; }
}

/* ============================================================
   HOME — Industries word stack (marigold field)
   ============================================================ */
.stack__list {
  grid-column: 2 / 11;
  font-family: var(--font-primary);
  font-weight: 800;
  font-variation-settings: 'wdth' 62;
  font-size: clamp(3.5rem, 11vw, 11rem);
  line-height: 0.88;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-left: calc(-1 * var(--gap) / 2);
}
.stack__list a {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.12em;
  color: var(--graphite);
  text-decoration: none;
  white-space: nowrap;
}
.stack__img {
  display: inline-block;
  width: 1.3em;
  height: 0.8em;
  margin-top: 0.02em;
  overflow: hidden;
  flex: 0 0 auto;
  transition: width var(--motion-duration) var(--motion-ease);
}
.stack__img img { width: 100%; height: 100%; object-fit: cover; }
.stack__list a:hover .stack__img,
.stack__list a:focus-visible .stack__img { width: 3.2em; }
.stack__list a:hover .stack__word { text-decoration: underline; text-decoration-thickness: 0.05em; text-underline-offset: 0.08em; }
.stack__aside {
  grid-column: 11 / 14;
  grid-row: 1;
  margin-top: calc(2 * 0.88 * clamp(3.5rem, 11vw, 11rem));
  max-width: 34ch;
}
.stack__aside p + p { margin-top: 1em; }
.stack__aside .text-link { margin-top: 24px; }
@media (max-width: 1180px) {
  .stack__list { grid-column: 2 / -2; font-size: clamp(3.5rem, 12.5vw, 11rem); }
  .stack__aside { grid-column: 2 / 11; grid-row: auto; margin-top: 48px; }
}
@media (max-width: 700px) {
  .stack__list { font-size: 14vw; }
  .stack__img { height: 0.7em; }
  .stack__list a:hover .stack__img { width: 2.2em; }
}

/* ============================================================
   HOME — The first call (graphite)
   ============================================================ */
.firstcall { padding-block: 0 var(--section-y); }
.firstcall__plane {
  grid-column: 9 / -1;
  grid-row: 1 / 3;
  margin-top: -64px;
  aspect-ratio: 4 / 5;
  z-index: 2;
  max-height: 900px;
}
.firstcall__copy { grid-column: 3 / 8; grid-row: 1; padding-top: var(--section-y); }
.rubric {
  display: block;
  font: 500 14px/1 var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--marigold);
  margin-bottom: 22px;
}
.rubric .clocks { color: var(--marigold); font-size: 14px; display: inline-flex; gap: 0; }
.rubric .clock + .clock::before { content: "\00a0\00b7\00a0"; }
.firstcall h2 { color: var(--paper); font-size: clamp(2.2rem, 4vw, 3.75rem); max-width: 16ch; }
.firstcall p { margin-top: 1.1em; }
.firstcall .text-link { margin-top: 28px; }
@media (max-width: 900px) {
  .firstcall__plane { grid-column: 1 / -1; grid-row: 1; margin-top: 0; aspect-ratio: 4 / 3; }
  .firstcall__copy { grid-column: 2 / -2; grid-row: 2; padding-top: 48px; }
}

/* ============================================================
   Plain-fact ledger
   ============================================================ */
.terms__inner { grid-column: 3 / 11; }
.terms h2 { margin-bottom: 40px; }
.ledger {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) 1fr;
  max-width: 52rem;
  border-bottom: 1px solid var(--rule);
}
.ledger dt {
  font: 500 13px/1.3 var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate);
  padding: 20px 16px 20px 0;
  border-top: 1px solid var(--rule);
}
.ledger dd {
  margin: 0;
  font: 400 1.125rem/1.4 var(--font-secondary);
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}
.ledger dd.ledger__final {
  font-family: var(--font-primary);
  font-weight: 800;
  font-variation-settings: 'wdth' 62;
  font-size: 5rem;
  line-height: 0.9;
  color: var(--vermilion);
  padding: 14px 0 10px;
}
.ledger dt.ledger__final-label { padding-top: 34px; color: var(--graphite); }
.terms .btn { margin-top: 40px; }
@media (max-width: 900px) { .terms__inner { grid-column: 2 / -2; } }
@media (max-width: 520px) {
  .ledger { grid-template-columns: 1fr; }
  .ledger dd { border-top: 0; padding-top: 0; }
  .ledger dd.ledger__final { font-size: 4.25rem; }
}

/* Dark / teal ledgers */
.ledger--dark { border-bottom-color: rgba(244, 241, 234, 0.16); }
.ledger--dark dt, .ledger--dark dd { border-top-color: rgba(244, 241, 234, 0.16); }
.ledger--dark dt { color: rgba(244, 241, 234, 0.7); }
.ledger--dark dd { color: var(--paper); }
.tag {
  display: inline-block;
  margin-left: 10px;
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.05em;
  color: var(--graphite);
  background: var(--marigold);
  padding: 5px 7px 4px;
  white-space: nowrap;
  vertical-align: 2px;
}

/* ============================================================
   Interior hero — adapted edge-bleed split with a time ruler
   ============================================================ */
.hsplit {
  display: grid;
  grid-template-columns: 58fr 42fr;
  grid-template-rows: 1fr auto;
  min-height: calc(78vh - var(--nav-h));
  background: var(--paper);
}
.hsplit--tall { min-height: calc(80vh - var(--nav-h)); }
.hsplit--short { min-height: calc(64vh - var(--nav-h)); }
.hsplit__img { grid-row: 1; grid-column: 1; position: relative; min-height: 420px; overflow: hidden; }
.hsplit__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hsplit__plate {
  grid-row: 1; grid-column: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px clamp(28px, 4vw, 64px) 56px;
  min-width: 0;
}
.hsplit__plate h1 { color: var(--paper); max-width: 16ch; font-size: clamp(2.5rem, 4.2vw, 4.25rem); }
.hsplit__plate .lead { margin-top: 20px; }
.hsplit .ruler { grid-column: 1 / -1; grid-row: 2; }
.hsplit .ruler__scale li:first-child { padding-left: var(--pad-x); }

.plate-note { margin-top: 24px; color: var(--marigold); font-size: 12px; }
.anchor-index { margin-top: 32px; display: grid; gap: 0; border-top: 1px solid rgba(244, 241, 234, 0.25); }
.anchor-index a {
  display: grid;
  grid-template-columns: 2.4rem 1fr auto;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid rgba(244, 241, 234, 0.25);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
}
.anchor-index .mono { color: var(--marigold); }
.anchor-index a:hover { color: var(--marigold); }

@media (max-width: 900px) {
  .hsplit { grid-template-columns: 1fr; grid-template-rows: auto auto auto; min-height: 0; }
  .hsplit__img { grid-row: 1; height: 56vh; min-height: 320px; }
  .hsplit .ruler { grid-row: 2; }
  .hsplit__plate { grid-row: 3; grid-column: 1; padding: 36px var(--pad-x) 48px; }
  .hsplit__plate h1 { font-size: clamp(2.5rem, 10vw, 3.5rem); }
  /* Rulers keep 13px labels and scroll inside their strip */
  .hsplit .ruler { overflow-x: auto; scrollbar-width: thin; }
  .hsplit .ruler__track { min-width: calc(var(--n) * 68px); }
  .hsplit .tick { height: 100%; }
}

/* ============================================================
   Interior sections — shared composition bits
   ============================================================ */
.idx { color: var(--teal); font-size: 14vw; }
.idx--marigold { color: var(--marigold); }
.idx--graphite { color: var(--graphite); }
.sla-line {
  display: inline-block;
  margin-top: 24px;
  font: 500 13px/1 var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--graphite);
  background: var(--marigold);
  padding: 8px 10px 7px;
}
.copy h2 { margin-bottom: 22px; }
.copy p + p { margin-top: 1em; }
.copy ul.dash { margin-top: 20px; display: grid; gap: 8px; }
.copy ul.dash li { position: relative; padding-left: 28px; }
.copy ul.dash li i { position: absolute; left: 0; top: 0.28em; color: var(--teal); }
.ground-teal .copy ul.dash li i, .ground-dark .copy ul.dash li i { color: var(--marigold); }

/* Staffing 01 */
.s01__num { grid-column: 2 / 5; align-self: start; }
.s01__copy { grid-column: 5 / 10; align-self: center; padding-block: 24px; }
.s01__plane { grid-column: 10 / -1; aspect-ratio: 4 / 5; max-height: 820px; }
/* Staffing 02 (mirrored, teal) */
.s02__plane { grid-column: 1 / 7; grid-row: 1 / 3; aspect-ratio: 3 / 4; max-height: 900px; }
.s02__num { grid-column: 8 / 10; grid-row: 1; align-self: end; }
.s02__copy { grid-column: 8 / 14; grid-row: 2; padding-top: 24px; }
.s02__copy h2 { color: var(--paper); }
/* Staffing 03 datasheet */
.opener-rule { grid-column: 2 / 14; position: relative; height: 2px; background: var(--marigold); margin-bottom: 40px; }
.opener-rule .n {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  background: var(--graphite);
  padding-right: 18px;
  font-family: var(--font-primary); font-weight: 800; font-variation-settings: 'wdth' 62;
  font-size: 3rem; line-height: 1; color: var(--marigold);
}
.ground-light .opener-rule .n { background: var(--paper); }
.ground-marigold .opener-rule { background: var(--graphite); }
.s03__copy { grid-column: 2 / 8; }
.s03__copy h2 { color: var(--paper); margin-bottom: 20px; }
.s03__doc { grid-column: 9 / 14; align-self: start; border: 1px solid rgba(244, 241, 234, 0.2); padding: 10px; }
.s03__doc img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.s03__doc figcaption { font: 500 12px/1.4 var(--font-mono); letter-spacing: 0.04em; color: rgba(244, 241, 234, 0.7); padding: 10px 2px 2px; }
.s03__copy .ledger { margin-top: 32px; }

/* Staffing 04 — seam band */
.seamband { min-height: max(72vh, calc(100vw * 9 / 16 * 0.8)); }
.seamband .band__img img { object-position: 50% 40%; }
.seam {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 3px; margin-left: -1.5px;
  background: var(--marigold);
  z-index: 1;
}
.seam__chip {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--paper);
  color: var(--graphite);
  padding: 10px 14px;
  white-space: nowrap;
  font: 500 13px/1 var(--font-mono);
  letter-spacing: 0.05em;
}
.seam__chip .clocks { color: var(--graphite); gap: 0; }
.seam__chip .clock + .clock::before { content: "\00a0|\00a0"; }
.seamband .plate {
  grid-column: 1 / 7;
  grid-row: 1;
  align-self: end;
  z-index: 2;
  padding-left: calc(var(--pad-x) + 16px);
}
.seamband .plate h2 { color: var(--paper); margin-top: 12px; }
.seamband .plate p { margin-top: 14px; }
.seamband .plate .pull { font-family: var(--font-primary); font-weight: 700; font-variation-settings: 'wdth' 75; font-size: 1.35rem; color: var(--marigold); line-height: 1.2; }
.num-sm { font-size: 4.5rem; color: var(--marigold); }
@media (max-width: 900px) {
  .seamband { display: flex; flex-direction: column; min-height: 0; }
  .seamband .band__img { position: relative; aspect-ratio: 16 / 10; }
  .seamband .seam { bottom: auto; height: calc(100vw * 10 / 16); }
  .seamband .plate { padding: 36px var(--pad-x) 44px; }
}

/* AI screening — two columns of one ledger */
.ai__head { grid-column: 2 / 8; }
.ai__rows { grid-column: 2 / 9; margin-top: 40px; }
.ai__plane { grid-column: 10 / 14; grid-row: 1 / 3; align-self: start; margin-top: 6px; aspect-ratio: 4 / 3; }
.ai__plane img { object-position: 50% 45%; }
.cmp { display: grid; grid-template-columns: 2.5rem 1fr 1fr; column-gap: 20px; }
.cmp > div { display: contents; }
.cmp .h { font: 500 12px/1.2 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); padding-bottom: 12px; }
.cmp .cell { padding: 16px 0; border-top: 1px solid var(--rule); font-size: 0.98rem; line-height: 1.5; }
.cmp .cell--n { font: 500 13px/1.6 var(--font-mono); color: var(--teal); }
.cmp .cell--human { font-weight: 600; }
@media (max-width: 900px) {
  .ai__plane { grid-column: 4 / -1; grid-row: auto; margin-top: 40px; }
  .ai__head, .ai__rows { grid-column: 2 / -2; }
}
@media (max-width: 560px) {
  .cmp { grid-template-columns: 2rem 1fr; }
  .cmp .h:nth-child(3) { display: none; }
  .cmp .h:nth-child(2) { grid-column: 2; }
  .cmp .cell--ai { grid-column: 2; }
  .cmp .cell--human { grid-column: 2; border-top: 0; padding-top: 0; }
  .cmp .cell--human::before { content: "Recruiter: "; font: 500 12px var(--font-mono); color: var(--teal); }
}

/* Lead form sections */
.formsec__lead { grid-column: 2 / 7; align-self: start; }
.formsec__lead .idx { font-size: 16vw; line-height: 0.8; }
.formsec__lead .runover { display: block; margin-top: 12px; font-family: var(--font-primary); font-weight: 700; font-variation-settings: 'wdth' 75; font-size: clamp(1.6rem, 2.6vw, 2.5rem); line-height: 1.05; max-width: 14ch; }
.formsec__lead p { margin-top: 20px; max-width: 36ch; }
.formsec__panel { grid-column: 7 / 14; background: var(--form-paper); padding: 48px; color: var(--graphite); }
.formsec__panel h2 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); margin-bottom: 8px; }
@media (max-width: 900px) {
  .formsec__lead, .formsec__panel { grid-column: 2 / -2; }
  .formsec__lead .idx { font-size: 34vw; }
  .formsec__panel { margin-top: 40px; padding: 32px 24px; }
}

/* ============================================================
   Forms — paper, bottom rules, no boxes
   ============================================================ */
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; margin-top: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font: 600 14px/1.3 var(--font-secondary); color: var(--graphite); }
.field label .opt { font-weight: 400; color: var(--slate); }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--form-paper);
  border: 0;
  border-bottom: 2px solid var(--graphite);
  border-radius: 0;
  padding: 10px 8px 9px;
  font-size: 1rem;
  color: var(--graphite);
  transition: background-color var(--motion-duration) var(--motion-ease), border-color var(--motion-duration) var(--motion-ease);
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--graphite) 50%), linear-gradient(135deg, var(--graphite) 50%, transparent 50%);
  background-position: calc(100% - 16px) 55%, calc(100% - 11px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--vermilion);
  background-color: var(--teal-wash);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--vermilion);
  outline-offset: 2px;
}
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 6px; }
.form-note { font-size: 0.9rem; color: var(--slate); max-width: 40ch; }
@media (max-width: 560px) { .contact-form { grid-template-columns: 1fr; } }

/* ============================================================
   Managed services
   ============================================================ */
.scope__num { grid-column: 2 / 7; grid-row: 1; }
.scope__num .idx { font-size: 14vw; }
.scope__num h2 { margin-top: 16px; max-width: 12ch; }
.scope__plane { grid-column: 1 / 6; grid-row: 2; margin-top: 48px; aspect-ratio: 3 / 4; max-height: 760px; }
.scope__ledger { grid-column: 7 / 14; grid-row: 1 / 3; align-self: start; padding-top: 12px; }
.runbook { border-bottom: 1px solid var(--rule); }
.runbook li {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 13rem) 1fr;
  gap: 16px;
  padding: 22px 12px;
  border-top: 1px solid var(--rule);
  transition: background-color var(--motion-duration) var(--motion-ease);
}
.runbook li:hover { background: var(--teal-wash); }
.runbook .mono { color: var(--teal); padding-top: 4px; }
.runbook strong { font-weight: 600; font-size: 1.05rem; }
.runbook p { font-size: 0.98rem; color: var(--slate); }
@media (max-width: 900px) {
  .scope__num, .scope__ledger { grid-column: 2 / -2; grid-row: auto; }
  .scope__ledger { margin-top: 40px; }
  .scope__plane { grid-column: 1 / -4; grid-row: auto; }
  .scope__num .idx { font-size: 26vw; }
}
@media (max-width: 560px) {
  .runbook li { grid-template-columns: 2.2rem 1fr; }
  .runbook li p { grid-column: 2; }
}

.handoff { padding-block: 0; }
.handoff__grid { display: grid; grid-template-columns: 1fr 3px 1fr; min-height: 86vh; }
.handoff__seam { background: var(--marigold); position: relative; }
.handoff__seam .seam__chip { top: 84%; }
.handoff__col { position: relative; display: flex; flex-direction: column; min-width: 0; }
.handoff__col--ind { flex-direction: row; }
.handoff__plane { flex: 0 0 48%; position: relative; }
.handoff__plane img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.handoff__text { padding: var(--section-y) clamp(24px, 3.5vw, 56px); display: flex; flex-direction: column; min-width: 0; }
.handoff__text h2 { color: var(--paper); margin: 0 0 18px; font-size: clamp(1.8rem, 2.8vw, 2.6rem); }
.handoff__text .rubric { margin-bottom: 18px; }
.handoff__over { margin-top: 24px; font: 500 13px/1.5 var(--font-mono); letter-spacing: 0.04em; color: var(--marigold); }
.handoff__col--den .handoff__text { justify-content: space-between; height: 100%; }
.pullline {
  font-family: var(--font-primary);
  font-weight: 700;
  font-variation-settings: 'wdth' 75;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.02;
  color: var(--paper);
  max-width: 12ch;
  margin-top: 48px;
}
@media (max-width: 900px) {
  .handoff__grid { grid-template-columns: 1fr; min-height: 0; }
  .handoff__seam { height: 3px; }
  .handoff__seam .seam__chip { top: 50%; }
  .handoff__col--ind { flex-direction: column; }
  .handoff__plane { flex: none; aspect-ratio: 4 / 3; margin-right: 12vw; }
  .handoff__text { padding: 48px var(--pad-x); }
}

/* Texture bands — the material graded to teal */
.texband {
  position: relative;
  min-height: max(46vh, calc(100vw * 9 / 21 * 0.8));
  background: var(--teal);
  color: var(--paper);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.texband--44 { min-height: 44vh; align-items: center; }
.texband__img { position: absolute; inset: 0; z-index: -2; }
.texband__img img { width: 100%; height: 100%; object-fit: cover; }
.texband::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--teal);
  mix-blend-mode: multiply;
  opacity: 0.7;
}
.texband__inner {
  width: 100%;
  padding: 56px 8vw;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
}
.texband__line {
  font-family: var(--font-primary);
  font-weight: 700;
  font-variation-settings: 'wdth' 75;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.02;
  color: var(--paper);
  max-width: 22ch;
  text-wrap: balance;
}
.texband--44 .texband__line { font-size: clamp(1.9rem, 3.2vw, 2.75rem); }

/* SLA close (marigold) */
.slaclose__copy { grid-column: 2 / 8; align-self: center; }
.slaclose__copy h2 { margin-bottom: 28px; }
.facts { display: grid; gap: 0; border-bottom: 1px solid rgba(21, 24, 27, 0.25); }
.facts li { display: grid; grid-template-columns: 12rem 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid rgba(21, 24, 27, 0.25); }
.facts .mono { text-transform: uppercase; padding-top: 3px; }
.slaclose__copy .chip { margin-top: 36px; }
.slaclose__plane { grid-column: 9 / -1; aspect-ratio: 4 / 3; }
@media (max-width: 900px) {
  .slaclose__copy { grid-column: 2 / -2; }
  .slaclose__plane { grid-column: 3 / -1; margin-top: 48px; }
}
@media (max-width: 520px) { .facts li { grid-template-columns: 1fr; gap: 4px; } }

/* ============================================================
   GCC phases
   ============================================================ */
.phasebar {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  margin-bottom: 36px;
}
.phasebar__seg {
  height: 40px;
  background: var(--marigold);
  color: var(--graphite);
  font: 500 13px/40px var(--font-mono);
  letter-spacing: 0.06em;
  padding: 0 14px;
  white-space: nowrap;
}
.phasebar--build .phasebar__seg { grid-column: 1 / 3; margin-left: var(--pad-x); }
.phasebar--operate .phasebar__seg { grid-column: 3 / 7; }
.phasebar--transfer .phasebar__seg { grid-column: 7 / -1; }
.phase-word {
  font-family: var(--font-primary);
  font-weight: 800;
  font-variation-settings: 'wdth' 62;
  font-size: 10vw;
  line-height: 0.82;
  letter-spacing: -0.02em;
}
.build__copy { grid-column: 2 / 8; }
.build__copy p { margin-top: 1em; }
.build__copy .phase-word { margin-bottom: 24px; }
.build__plane { grid-column: 9 / -1; aspect-ratio: 4 / 5; max-height: 780px; }
.operate { min-height: max(76vh, calc(100vw * 9 / 21)); grid-template-rows: auto 1fr; }
.operate .band__img img { object-position: 25% 45%; }
.operate .phasebar { grid-row: 1; position: relative; z-index: 1; margin: 0; }
.operate .phasebar__seg { grid-column: 3 / 7; }
.operate .plate { grid-column: 9 / -1; grid-row: 2; align-self: end; }
.operate .plate h2 { color: var(--paper); font-family: var(--font-primary); font-variation-settings: 'wdth' 62; font-weight: 800; font-size: clamp(3.5rem, 6vw, 6rem); line-height: .85; margin-bottom: 18px; }
.operate .plate p + p { margin-top: 1em; }
.transfer .phasebar { margin-bottom: 48px; }
.transfer__copy { grid-column: 2 / 8; }
.transfer__copy h2 { color: var(--paper); margin-bottom: 24px; }
.transfer__copy p + p { margin-top: 1em; }
.transfer__plane { grid-column: 9 / -1; aspect-ratio: 3 / 4; max-height: 760px; }
.scaffold__copy { grid-column: 2 / 9; }
.scaffold__copy h2 { color: var(--paper); margin-bottom: 32px; }
.scaffold__plane { grid-column: 10 / 14; align-self: center; aspect-ratio: 4 / 3; }
.formsec--gcc .formsec__lead { grid-column: 1 / 7; }
.formsec--gcc .formsec__lead .plane { aspect-ratio: 4 / 5; max-height: 640px; }
.formsec--gcc .formsec__lead h2 { padding-left: var(--pad-x); margin-top: 28px; font-size: clamp(2.6rem, 5vw, 4.5rem); }
.formsec--gcc .formsec__lead p { padding-left: var(--pad-x); }
@media (max-width: 900px) {
  .phasebar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .phasebar--build .phasebar__seg { grid-column: 1 / 3; }
  .phasebar--operate .phasebar__seg, .operate .phasebar__seg { grid-column: 2 / 4; }
  .phasebar--transfer .phasebar__seg { grid-column: 3 / -1; }
  .build__copy, .transfer__copy, .scaffold__copy { grid-column: 2 / -2; }
  .build__plane, .transfer__plane { grid-column: 4 / -1; margin-top: 40px; }
  .scaffold__plane { grid-column: 2 / -3; margin-top: 40px; }
  .phase-word { font-size: 22vw; }
  .operate { display: flex; flex-direction: column; min-height: 0; background: var(--paper); }
  .operate .band__img { position: relative; aspect-ratio: 16 / 10; }
  .operate .phasebar { position: absolute; top: 0; left: 0; right: 0; }
  .operate .plate { padding: 36px var(--pad-x) 44px; }
  .formsec--gcc .formsec__lead { grid-column: 1 / -2; }
}

/* ============================================================
   Industries
   ============================================================ */
.hsplit__plate--stack { justify-content: center; }
.hstack {
  font-family: var(--font-primary);
  font-weight: 800;
  font-variation-settings: 'wdth' 62;
  font-size: clamp(2.75rem, 5.4vw, 6rem);
  line-height: 0.88;
  text-transform: uppercase;
}
.hstack a { color: var(--paper); text-decoration: none; display: inline-block; transition: color var(--motion-duration) var(--motion-ease); }
.hstack a:hover, .hstack a:focus-visible, .hstack a.is-active { color: var(--marigold); }
.hstack-lead { margin-top: 24px; }

.inline-head {
  grid-column: 2 / -2;
  font-family: var(--font-primary);
  font-weight: 800;
  font-variation-settings: 'wdth' 62;
  font-size: clamp(3.4rem, 7vw, 8rem);
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--paper);
}
.inline-head .ii {
  display: inline-block;
  width: 1.3em; height: 0.78em;
  vertical-align: -0.02em;
  overflow: hidden;
  margin: 0 0.06em;
}
.inline-head .ii img { width: 100%; height: 100%; object-fit: cover; }
.gam__copy { grid-column: 2 / 8; margin-top: 56px; }
.gam__copy p + p { margin-top: 1em; }
.roles { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.roles li { font: 500 13px/1 var(--font-mono); letter-spacing: 0.04em; color: var(--marigold); border: 1px solid rgba(242, 167, 27, 0.5); padding: 8px 10px 7px; }
.gam__pair { grid-column: 9 / -1; position: relative; margin-top: 56px; padding-bottom: 96px; }
.gam__pair .big { width: 78%; aspect-ratio: 4 / 5; margin-left: auto; }
.gam__pair .small { position: absolute; left: 0; bottom: 0; width: 48%; aspect-ratio: 4 / 5; transform: translateY(0); border: 6px solid var(--graphite); }
.pair__img { overflow: hidden; }
.pair__img img { width: 100%; height: 100%; object-fit: cover; }

.bank__pair { grid-column: 1 / 7; position: relative; padding-bottom: 120px; }
.bank__pair .big { width: 100%; aspect-ratio: 4 / 3; }
.bank__pair .small { position: absolute; right: 6%; bottom: 0; width: 38%; aspect-ratio: 4 / 5; border: 6px solid var(--paper); }
.bank__copy { grid-column: 8 / 14; align-self: center; }
.bank__copy .idx { font-size: 12vw; margin-bottom: 20px; }
.bank__copy h2 { margin-bottom: 20px; }
.bank__copy p + p { margin-top: 1em; }

.healthband { min-height: max(70vh, calc(100vw * 9 / 16 * 0.75)); }
.healthband .band__img img { object-position: 30% 40%; }
.healthband .plate { grid-column: 8 / -1; grid-row: 1; align-self: end; padding-right: calc(var(--pad-x) + 16px); }
.healthband .plate h2 { color: var(--paper); margin: 12px 0 16px; }

.ai-sec { overflow: clip; }
.ai__big {
  grid-column: 1 / 8;
  font-family: var(--font-primary);
  font-weight: 800;
  font-variation-settings: 'wdth' 62;
  font-size: 24vw;
  line-height: 0.78;
  color: var(--paper);
  margin-left: -0.14em;
  letter-spacing: -0.02em;
}
.ai__copy { grid-column: 8 / 14; }
.ai__copy .idx { font-size: 8rem; margin-bottom: 12px; }
.ai__copy p + p { margin-top: 1em; }
.ai__macro { grid-column: 9 / 13; margin-top: 48px; aspect-ratio: 4 / 5; max-height: 600px; }

@media (max-width: 900px) {
  .inline-head { font-size: 13vw; }
  .gam__copy, .bank__copy, .ai__copy { grid-column: 2 / -2; }
  .gam__pair { grid-column: 2 / -1; }
  .bank__pair { grid-column: 1 / -2; }
  .bank__copy { margin-top: 48px; }
  .bank__copy .idx { font-size: 22vw; }
  .ai__big { grid-column: 1 / -1; font-size: 52vw; }
  .ai__macro { grid-column: 4 / -1; }
  .healthband { display: flex; flex-direction: column; min-height: 0; }
  .healthband .band__img { position: relative; aspect-ratio: 16 / 11; }
  .healthband .plate { padding: 36px var(--pad-x) 44px; }
}

/* ============================================================
   About
   ============================================================ */
.values__intro { grid-column: 2 / 10; margin-bottom: 40px; }
.values__intro p + p { margin-top: 1em; }
.values__row { display: contents; }
.values__rule { grid-column: 2 / 14; height: 2px; background: var(--graphite); margin-top: 28px; }
.values__word { grid-column: 2 / 9; margin-top: 22px; font-family: var(--font-primary); font-weight: 800; font-variation-settings: 'wdth' 62; font-size: 8vw; line-height: 0.82; letter-spacing: -0.01em; color: var(--teal); }
.values__def { grid-column: 9 / 14; align-self: end; padding-bottom: 0.4vw; }
.values__def p { font-size: 1.1rem; }
.values__row--img .values__plane { grid-column: 1 / 6; margin-top: 22px; aspect-ratio: 4 / 5; max-height: 640px; }
.values__row--img .values__word { grid-column: 6 / 11; align-self: start; }
.values__row--img .values__def { grid-column: 11 / 14; align-self: start; margin-top: 30px; }
@media (max-width: 900px) {
  .values__intro, .values__rule, .values__word, .values__def,
  .values__row--img .values__word, .values__row--img .values__def { grid-column: 2 / -2; }
  .values__def, .values__row--img .values__def { margin-top: 14px; }
  .values__word { font-size: 19vw; }
  .values__row--img .values__plane { grid-column: 1 / -4; }
}

.offices { padding: 4vw; background: var(--paper); }
.offices__frame { border: 2px solid var(--graphite); display: grid; grid-template-columns: 1fr 3px 1fr; min-height: 82vh; }
.house { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; }
.house > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.house__label { position: relative; z-index: 1; background: var(--paper); margin: 0 24px 24px; padding: 22px 24px; max-width: 420px; }
.house__city { font-family: var(--font-primary); font-weight: 700; font-variation-settings: 'wdth' 75; font-size: 2rem; line-height: 1; }
.house__label .clocks { color: var(--teal); margin: 10px 0 12px; font-size: 14px; }
.house__label p { font-size: 0.98rem; }
.offices__seam { background: var(--marigold); }
@media (max-width: 760px) {
  .offices__frame { grid-template-columns: 1fr; min-height: 0; }
  .offices__seam { height: 3px; }
  .house { min-height: 72vh; }
}

.reasons__head { grid-column: 2 / 10; margin-bottom: 48px; }
.reasons__list { grid-column: 2 / 14; }
.reason { display: grid; grid-template-columns: 7rem minmax(0, 1fr) minmax(0, 1.3fr); column-gap: var(--gap); padding: 28px 0; border-top: 2px solid var(--graphite); align-items: start; }
.reason__n { font-family: var(--font-primary); font-weight: 800; font-variation-settings: 'wdth' 62; font-size: 6rem; line-height: 0.8; }
.reason h3 { font-size: 1.75rem; font-variation-settings: 'wdth' 75; }
.reason p { font-size: 1.05rem; }
.reason--img { grid-template-columns: 7rem minmax(0, 1fr) minmax(0, 1.3fr); row-gap: 24px; }
.reason--img .reason__plane { grid-column: 2 / -1; aspect-ratio: 16 / 9; max-width: 720px; }
@media (max-width: 760px) {
  .reason, .reason--img { grid-template-columns: 4.5rem 1fr; row-gap: 10px; }
  .reason p { grid-column: 2; }
  .reason__n { font-size: 4.5rem; grid-row: 1 / 3; }
  .reason--img .reason__plane { grid-column: 1 / -1; }
}

/* ============================================================
   Contact
   ============================================================ */
.cmain__form { grid-column: 2 / 9; }
.cmain__form h2 { max-width: 16ch; }
.cmain__form .intro { margin-top: 16px; color: var(--slate); }
.cmain__form .contact-form { margin-top: 32px; background: var(--form-paper); padding: 40px; }
.cmain__facts { grid-column: 10 / 14; }
.cmain__facts .plane { aspect-ratio: 4 / 5; max-height: 440px; }
.cmain__facts .plane img { object-position: 50% 25%; }
.cmain__facts .ledger { grid-template-columns: 1fr; margin-top: 28px; }
.cmain__facts .ledger dt { padding: 16px 0 4px; }
.cmain__facts .ledger dd { border-top: 0; padding: 0 0 16px; }
.cmain__facts .ledger dd.none { font-family: var(--font-primary); font-weight: 800; font-variation-settings: 'wdth' 62; font-size: 2.6rem; line-height: 1; color: var(--vermilion); }
@media (max-width: 900px) {
  .cmain__form, .cmain__facts { grid-column: 2 / -2; }
  .cmain__facts { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
  .cmain__facts .ledger { margin-top: 0; }
  .cmain__form .contact-form { padding: 28px 20px; }
}
@media (max-width: 520px) { .cmain__facts { grid-template-columns: 1fr; } }

.ways__head { grid-column: 2 / 9; margin-bottom: 40px; }
.ways__head h2 { color: var(--paper); }
.ways__list { grid-column: 2 / 9; }
.ways__plane { grid-column: 10 / -1; grid-row: 1 / 3; align-self: stretch; min-height: 520px; }
.way {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr) minmax(0, 13rem);
  gap: 20px;
  align-items: center;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-top: 1px solid rgba(244, 241, 234, 0.25);
  color: var(--paper);
  padding: 22px 0;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--motion-duration) var(--motion-ease);
}
.ways__list li:last-child .way { border-bottom: 1px solid rgba(244, 241, 234, 0.25); }
.way:hover { background: rgba(244, 241, 234, 0.06); }
.way__n { font-family: var(--font-primary); font-weight: 800; font-variation-settings: 'wdth' 62; font-size: 4.5rem; line-height: 0.8; color: var(--marigold); }
.way__t { display: block; font-family: var(--font-primary); font-weight: 700; font-variation-settings: 'wdth' 75; font-size: 1.6rem; line-height: 1.05; }
.way__d { display: block; margin-top: 6px; color: rgba(244, 241, 234, 0.86); font-size: 0.98rem; }
.way__go { display: inline-flex; gap: 6px; align-items: center; margin-top: 10px; font: 500 12px/1 var(--font-mono); letter-spacing: .05em; color: var(--marigold); }
.way .mini-ruler { margin-top: 0; }
@media (max-width: 900px) {
  .ways__head, .ways__list { grid-column: 2 / -2; }
  .ways__plane { grid-column: 4 / -1; grid-row: auto; min-height: 0; aspect-ratio: 4 / 3; margin-top: 48px; }
}
@media (max-width: 560px) {
  .way { grid-template-columns: 3.6rem 1fr; }
  .way .mini-ruler { grid-column: 2; }
  .way__n { font-size: 3.6rem; }
}

.nextband { min-height: max(60vh, calc(100vw * 9 / 16 * 0.66)); grid-template-rows: auto 1fr auto; }
.nextband .band__img img { object-position: 50% 42%; }
.nextband .plate { grid-column: 2 / 7; grid-row: 1; align-self: start; margin-top: 48px; padding: 28px 32px; }
.nextband .plate h2 { color: var(--paper); }
.nextband .ruler { grid-column: 1 / -1; grid-row: 3; position: relative; z-index: 1; }
.nextband .ruler__scale li { padding-top: 10px; padding-right: 8px; white-space: normal; line-height: 1.35; }
.nextband .ruler__scale { height: auto; min-height: 88px; }
.nextband .ruler__track { min-height: 88px; }
@media (max-width: 900px) {
  .nextband { display: flex; flex-direction: column; min-height: 0; }
  .nextband .band__img { position: relative; aspect-ratio: 16 / 10; }
  .nextband .plate { position: absolute; top: 0; left: 0; margin: 0; padding: 18px var(--pad-x); }
  .nextband .ruler { overflow-x: auto; }
  .nextband .ruler__track { min-width: 860px; }
  .nextband .ruler__scale li { white-space: nowrap; }
  .nextband .tick { height: 100%; }
}

/* ============================================================
   Gallery lightbox — scaffolded shared mechanism (binding default)
   Inert until a data-lightbox group container exists on the page.
   Restyle this chrome freely to match the brand; do not remove
   the mechanism. (frontend-design.md § "Gallery lightbox")
   ============================================================ */
.lightbox-zoomable {
  cursor: zoom-in;
  object-position: 50% 85%;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2.5rem);
}
.lightbox.is-open {
  display: flex;
  animation: lightbox-in var(--motion-duration) var(--motion-ease);
}
@keyframes lightbox-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox.is-open { animation: none; }
}
.lightbox__scrim {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--color-text) 85%, transparent);
}
.lightbox__frame {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(1200px, 92vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.lightbox__img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 24px 80px -16px color-mix(in srgb, var(--color-text) 60%, transparent);
}
.lightbox__caption {
  font-family: var(--font-secondary, inherit);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-bg);
  text-align: center;
  max-width: 60ch;
}
.lightbox__counter {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  font-family: var(--font-secondary, inherit);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--color-bg);
}
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  z-index: 2;
  width: 2.6rem;
  height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  background: var(--color-bg);
  color: var(--color-text);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--color-text) 25%, transparent);
  font-size: 1.15rem;
  line-height: 1;
}
.lightbox__close:hover,
.lightbox__close:focus-visible,
.lightbox__prev:hover,
.lightbox__prev:focus-visible,
.lightbox__next:hover,
.lightbox__next:focus-visible {
  color: var(--color-accent);
}
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev  { left: 1rem;  top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__caption[hidden],
.lightbox__counter[hidden],
.lightbox__prev[hidden],
.lightbox__next[hidden] {
  display: none;
}


/* Lightbox chrome — brand restyle: graphite scrim, flat paper controls, mono counter */
.lightbox__scrim { background: rgba(21, 24, 27, 0.92); }
.lightbox__img { box-shadow: none; }
.lightbox__caption { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.03em; color: var(--paper); }
.lightbox__counter { font-family: var(--font-mono); background: var(--marigold); color: var(--graphite); padding: 6px 8px 5px; }
.lightbox__close, .lightbox__prev, .lightbox__next { background: var(--paper); color: var(--graphite); box-shadow: none; border-radius: 0; }
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover,
.lightbox__close:focus-visible, .lightbox__prev:focus-visible, .lightbox__next:focus-visible { background: var(--marigold); color: var(--graphite); }

/* 404 */
.nf { min-height: 70vh; }
.nf__num { grid-column: 2 / 9; font-size: 26vw; color: var(--teal); }
.nf__copy { grid-column: 9 / 14; align-self: end; padding-bottom: 3vw; }
.nf__copy p { margin: 16px 0 28px; }
.nf__links { display: grid; gap: 8px; margin-top: 24px; }
@media (max-width: 760px) { .nf__num, .nf__copy { grid-column: 2 / -2; } .nf__num { font-size: 60vw; } }

@media (max-width: 900px) {
  .band .band__img { overflow: hidden; }
  .band .band__img img { position: absolute; inset: 0; }
}

/* Numerals gain weight on phones */
@media (max-width: 700px) {
  .idx { font-size: 22vw; }
  .num-sm { font-size: 18vw; }
  .way__n { font-size: 18vw; }
}

/* ============================================================
   Responsive — common single-column moves
   ============================================================ */
@media (max-width: 900px) {
  .s01__num, .s01__copy { grid-column: 2 / -2; }
  .s01__num .idx { font-size: 26vw; }
  .s01__plane { grid-column: 4 / -1; margin-top: 32px; }
  .s02__plane { grid-column: 1 / -4; grid-row: auto; }
  .s02__num, .s02__copy { grid-column: 2 / -2; grid-row: auto; }
  .s02__num { margin-top: 40px; }
  .s03__copy, .s03__doc { grid-column: 2 / -2; }
  .s03__doc { margin-top: 40px; }
  .formsec__lead .runover { max-width: none; }
}

/* ============================================================
   Self-hosted Google Fonts (localized by 20_performance_sweep)
   ============================================================ */
/* vietnamese */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/fonts/k3kQo8UDI-1M0wlSfdboLmvDIaK18A.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/fonts/k3kQo8UDI-1M0wlSfdfoLmvDIaK18A.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/fonts/k3kQo8UDI-1M0wlSfdnoLmvDIaI.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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/-F6qfjptAgt5VM-kVkqdyU8n3twJwl1FgsAXHNlYzg.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/-F6qfjptAgt5VM-kVkqdyU8n3twJwlRFgsAXHNlYzg.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/-F6qfjptAgt5VM-kVkqdyU8n3twJwl9FgsAXHNlYzg.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/-F6qfjptAgt5VM-kVkqdyU8n3twJwl5FgsAXHNlYzg.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/-F6qfjptAgt5VM-kVkqdyU8n3twJwlBFgsAXHNk.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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxTKYbSB4ZhRNU.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxaKYbSB4ZhRNU.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxdKYbSB4ZhRNU.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxRKYbSB4ZhRNU.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxQKYbSB4ZhRNU.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxeKYbSB4Zh.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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxTKYbSB4ZhRNU.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxaKYbSB4ZhRNU.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxdKYbSB4ZhRNU.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxRKYbSB4ZhRNU.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxQKYbSB4ZhRNU.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxeKYbSB4Zh.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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxTKYbSB4ZhRNU.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxaKYbSB4ZhRNU.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxdKYbSB4ZhRNU.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxRKYbSB4ZhRNU.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxQKYbSB4ZhRNU.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/zYXzKVElMYYaJe8bpLHnCwDKr932-G7dytD-Dmu1syxeKYbSB4Zh.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;
}
