/* ============================================================
   ONPOINT NETWORK (OPNW). Commercial electrical contractors.
   v10. Dark build. Bartlett pass, then the mobile pass at the foot
   of this file: weight, legibility and touch. Desktop is untouched.

   SKIN
   - Ground      #121314 near black, #1B1C1D warmer charcoal
   - Type        #EDEDEA off white, #9A9C9A grey
   - Accent      #53AE47 OnPoint green. The only accent. Used on
                 rules, one word, and hover. Never as a fill field.
   - Light       two moments only, About and the quote form, with
                 the credentials strip leading into them.
   - Face        DM Sans. Weight 300 at display size carries the
                 hierarchy. Small tracked green labels above.

   RULES HELD: squared corners, no numbered decoration, no stat
   counter row, no uniform card grid, photography carries the page,
   62ch measure, one accent.
   ============================================================ */

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

:root {
  /* ---- the accent. One green, four jobs. ---------------------
     --accent        rules, dots, fills, plus icons, borders
     --accent-strong large green type (display words, open rows)
     --accent-text   small green type (tracked labels, kickers)
     --accent-panel  green type on the light panels
     On the dark build all four resolve to the same green, so this
     refactor is a no-op here. A light theme darkens the type ones
     to hold 4.5:1 without dulling the rules. ------------------- */
  --accent: #53AE47;
  --accent-rgb: 83, 174, 71;
  --accent-strong: var(--accent);
  --accent-text: var(--accent);
  --accent-hover: #3E8F36;
  --accent-panel: var(--accent-hover);
  --accent-ink: #0D0E0F;

  /* ---- ground ---- */
  --bg: #121314;
  --bg-alt: #1B1C1D;
  --bg-deep: #0D0E0F;

  /* ---- type on the ground ---- */
  --text: #EDEDEA;
  --text-rgb: 237, 237, 234;
  --grey: #9A9C9A;
  --hair: rgba(var(--text-rgb), 0.12);

  /* ---- the light panels: credentials, about, the quote form ---- */
  --light: #EFEFEB;
  --light-2: #E4E4DE;
  --ink: #16171A;
  --ink-rgb: 22, 23, 26;
  --ink-soft: #55575A;
  --hair-dark: rgba(var(--ink-rgb), 0.16);
  --placeholder: #A6A6A0;
  --err: #A8402F;

  /* ---- scrims. These sit on photography and video, so they stay
     dark in every theme. Never re-point them at the ground. ---- */
  --scrim-rgb: 18, 19, 20;
  --scrim-deep-rgb: 13, 14, 15;
  --scrim-vig-mid: rgba(15, 30, 14, 0.34);
  --scrim-vig-out: rgba(10, 26, 10, 0.72);
  --shadow: rgba(0, 0, 0, 0.55);

  --font: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --wide: 1600px;
  --mid: 1300px;
  --power-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M7.4 5.6a8 8 0 1 0 9.2 0'/%3E%3Cpath d='M12 2.4v7.8'/%3E%3C/svg%3E");
  --head: 78px;
  --pad: clamp(20px, 4.2vw, 64px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: var(--head); }

body {
  font-family: var(--font);
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }

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

/* ---------- shared type ---------- */
.label {
  display: block;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.label-grey { color: var(--grey); }

h1, h2, h3, h4 { font-family: var(--font); font-weight: 300; text-wrap: balance; }

/* the display statement. 44px to 88px, light, tight. */
.stmt {
  font-size: clamp(2.75rem, 5.1vw, 5.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.03;
  color: var(--text);
}
.stmt em { font-style: normal; color: var(--accent-strong); }

.body-copy {
  max-width: 62ch;
  font-size: clamp(0.98rem, 1.1vw, 1.07rem);
  line-height: 1.78;
  color: var(--grey);
  font-weight: 300;
}
.body-copy + .body-copy { margin-top: 18px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 16px 36px;
  border: 1px solid transparent;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}
.btn-green { background: var(--accent); color: var(--accent-ink); }
.btn-green:hover { background: var(--text); }
.btn-ghost-light { color: var(--text); border-color: rgba(var(--text-rgb), 0.4); }
.btn-ghost-light:hover { border-color: var(--accent); color: var(--accent); }

.link {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 44px;
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text);
  transition: color 0.3s ease;
}
.link::after {
  content: ''; width: 40px; height: 1px; background: var(--accent);
  transition: width 0.4s var(--ease);
}
.link:hover { color: var(--accent-text); }
.link:hover::after { width: 62px; }
.link-dark { color: var(--ink); }
.link-dark:hover { color: var(--accent-panel); }

/* ---------- header ---------- */
.head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: transparent;
  border-bottom: 1px solid transparent;
  display: flex; align-items: center; gap: 28px;
  padding: 0 var(--pad);
  height: var(--head);
  transition: background 0.45s ease, border-color 0.45s ease;
}
.head::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--accent); transform: scaleY(0); transform-origin: top;
  transition: transform 0.35s ease;
}
.head.solid { background: var(--bg); border-bottom-color: var(--hair); }
.head.solid::before { transform: scaleY(1); }
.head-logo { display: flex; align-items: center; margin-right: auto; min-height: 44px; }
.head-logo img { height: 28px; width: auto; }
.head-nav { display: flex; gap: clamp(18px, 2.4vw, 40px); }
.head-nav a {
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(var(--text-rgb), 0.78); padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
}
.head-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.head-nav a:hover { color: var(--text); }
.head-nav a:hover::after { transform: scaleX(1); }
.head-call {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 11px 0;
  color: var(--text);
  font-size: 0.78rem; font-weight: 400; letter-spacing: 0.06em;
  white-space: nowrap;
  transition: color 0.3s ease;
}
.head-call:hover { color: var(--accent-text); }
.head-call svg { width: 15px; height: 15px; flex: none; color: var(--accent); }
.head-menu {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; background: none; border: 1px solid rgba(var(--text-rgb), 0.28); cursor: pointer;
}
.head-menu span { display: block; width: 18px; height: 1px; background: var(--text); position: relative; }
.head-menu span::before, .head-menu span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 1px; background: var(--text);
}
.head-menu span::before { top: -6px; }
.head-menu span::after { top: 6px; }

.drawer {
  display: none;
  position: fixed; inset: var(--head) 0 auto 0; z-index: 55;
  background: var(--bg); padding: 10px 22px 26px;
  border-bottom: 1px solid var(--hair);
}
.drawer.open { display: block; }
.drawer a {
  display: block; padding: 18px 0; border-bottom: 1px solid var(--hair);
  font-size: 1.4rem; font-weight: 300; color: var(--text); letter-spacing: -0.01em;
}
.drawer a:last-child { border-bottom: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; height: 100svh; min-height: 600px;
  overflow: hidden; background: var(--bg-deep);
}
.hero-media { position: absolute; inset: 0; }
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 52%;
  opacity: 1;
  background: var(--bg-deep) url("../img/hero-poster.jpg?v=3") center 52% / cover no-repeat;
}
.hero-still { display: none; }

/* heavier grade, then a green tinted vignette at the edges */
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(var(--scrim-rgb), 0.55) 0%,
    rgba(var(--scrim-rgb), 0.62) 45%,
    rgba(var(--scrim-rgb), 0.85) 100%);
}
.hero-scrim::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 78% 70% at 50% 46%,
    rgba(var(--scrim-rgb), 0) 0%,
    var(--scrim-vig-mid) 62%,
    var(--scrim-vig-out) 100%);
}

.hero-inner {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: var(--head) var(--pad) clamp(80px, 12vh, 140px);
}
.hero-mark { width: min(58vw, 460px); height: auto; }
.hero-line {
  margin-top: clamp(22px, 3vw, 34px);
  max-width: 30ch;
  font-weight: 300;
  font-size: clamp(0.95rem, 1.25vw, 1.1rem);
  line-height: 1.7;
  letter-spacing: 0.005em;
  color: rgba(var(--text-rgb), 0.82);
}

/* the thread: a thin green line that draws down to the arrow */
.hero-thread {
  position: relative;
  width: 1px; height: clamp(56px, 10vh, 104px);
  margin-top: clamp(26px, 4vh, 44px);
  background: rgba(var(--accent-rgb), 0.2);
  overflow: hidden;
}
.hero-thread::after {
  content: ''; position: absolute; left: 0; top: -55%;
  width: 1px; height: 55%; background: var(--accent);
  animation: threadRun 2.6s ease-in-out infinite;
}
@keyframes threadRun { to { top: 110%; } }

.hero-arrow {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-top: 6px;
  color: rgba(var(--text-rgb), 0.6);
  transition: color 0.3s ease;
}
.hero-arrow:hover { color: var(--accent); }
.hero-arrow svg { width: 15px; height: 22px; }

.hero-cap {
  position: absolute; left: var(--pad); bottom: clamp(26px, 4vh, 40px); z-index: 3;
  text-align: left;
}
.hero-cap::before {
  content: ''; display: block; width: 22px; height: 1px;
  background: var(--accent); margin-bottom: 12px;
}
.hero-cap span {
  display: block;
  font-size: 0.6rem; font-weight: 400;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(var(--text-rgb), 0.56);
  line-height: 1.9;
}

/* ---------- project ticker: thin strip under the hero ---------- */
.ticker {
  background: var(--bg);
  border-bottom: 1px solid var(--hair);
  overflow: hidden; padding: 15px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: tickerRun 104s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-set { display: flex; align-items: center; }
.ticker-set span {
  display: inline-flex; align-items: center;
  font-size: 0.64rem; font-weight: 400; letter-spacing: 0.26em; text-transform: uppercase;
  color: rgba(var(--text-rgb), 0.42); white-space: nowrap; padding: 0 24px;
}
.ticker-set span::after {
  content: ''; width: 8px; height: 8px; margin-left: 24px; flex: none;
  background: var(--accent); opacity: 0.75;
  -webkit-mask: var(--power-mask) center / contain no-repeat;
  mask: var(--power-mask) center / contain no-repeat;
}
@keyframes tickerRun { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   THE ONPOINT STANDARD. statement left, narrow column right,
   a thin green rule between them.
   ============================================================ */
.standard {
  background: var(--bg);
  padding: clamp(96px, 13vw, 200px) var(--pad);
}
.standard-inner {
  max-width: var(--wide); margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) 1px minmax(0, 0.72fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: start;
}
.standard-rule { background: linear-gradient(to bottom, var(--accent), rgba(var(--accent-rgb), 0)); align-self: stretch; }
.standard .label { margin-bottom: clamp(28px, 4vw, 46px); }
.standard h2 { font-size: clamp(2.5rem, 4.3vw, 5rem); }
.standard-col { padding-top: clamp(0px, 1.6vw, 24px); }
.standard-col .body-copy { color: rgba(var(--text-rgb), 0.72); }
.standard-col .body-copy + .body-copy { color: var(--grey); }
.standard .link { margin-top: 30px; }

/* ============================================================
   WHAT WE DO. accordion, photo pinned right on desktop.
   ============================================================ */
.services { background: var(--bg-alt); padding: clamp(90px, 12vw, 180px) var(--pad); }
.services-head {
  max-width: var(--wide); margin: 0 auto clamp(40px, 5vw, 70px);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap;
}
.services-head .label { margin-bottom: 22px; }
.services-head p { color: var(--grey); font-size: 0.95rem; max-width: 34ch; }
.services-wrap {
  max-width: var(--wide); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.46fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: start;
}
.acc { border-top: 1px solid var(--hair); }
.acc-item { border-bottom: 1px solid var(--hair); }
.acc-btn {
  width: 100%; background: none; border: 0; cursor: pointer;
  font-family: var(--font); color: var(--text); text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(22px, 2.6vw, 34px) 0;
  transition: color 0.3s ease;
}
.acc-btn h3 {
  font-size: clamp(1.5rem, 2.9vw, 2.6rem);
  font-weight: 300; letter-spacing: -0.02em; line-height: 1.1;
  transition: transform 0.5s var(--ease), color 0.3s ease;
}
.acc-item:hover .acc-btn h3,
.acc-item.open .acc-btn h3 { transform: translateX(10px); }
.acc-item.open .acc-btn h3 { color: var(--accent-strong); }
.acc-plus {
  position: relative; flex: none; width: 16px; height: 16px;
  transition: transform 0.45s var(--ease);
}
.acc-plus::before, .acc-plus::after {
  content: ''; position: absolute; background: var(--accent);
  transition: opacity 0.35s ease;
}
.acc-plus::before { left: 0; top: 7.5px; width: 16px; height: 1px; }
.acc-plus::after { top: 0; left: 7.5px; width: 1px; height: 16px; }
.acc-item.open .acc-plus { transform: rotate(90deg); }
.acc-item.open .acc-plus::after { opacity: 0; }
.acc-panel {
  overflow: hidden; max-height: 0;
  transition: max-height 0.55s var(--ease);
}
.acc-item.open .acc-panel { max-height: 340px; }
.acc-panel p {
  max-width: 62ch;
  padding: 0 0 clamp(24px, 3vw, 36px);
  font-size: 0.98rem; line-height: 1.8; color: var(--grey);
}
.acc-figure {
  position: sticky; top: calc(var(--head) + 6vh);
  aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-deep);
}
.acc-figure img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04);
  transition: opacity 0.7s var(--ease), transform 1.2s var(--ease);
  filter: saturate(0.9) brightness(0.9);
}
.acc-figure img.on { opacity: 1; transform: scale(1); }
.acc-figure::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(var(--scrim-rgb), 0.5), rgba(var(--scrim-rgb), 0) 55%);
}

/* ============================================================
   FEATURE PROJECT. full bleed photo, text panel overlapping.
   ============================================================ */
.feature { position: relative; background: var(--bg); padding-bottom: clamp(40px, 5vw, 76px); }
.feature-media { position: relative; height: clamp(340px, 58vw, 720px); overflow: hidden; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.feature-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(var(--scrim-rgb), 0.72) 0%, rgba(var(--scrim-rgb), 0.12) 55%, rgba(var(--scrim-rgb), 0.45) 100%);
}
.feature-panel {
  position: relative; z-index: 2;
  width: min(720px, calc(100% - var(--pad) * 2));
  margin: clamp(-120px, -9vw, -60px) 0 0 var(--pad);
  background: var(--bg-alt);
  border-top: 2px solid var(--accent);
  padding: clamp(30px, 4vw, 56px) clamp(24px, 3.4vw, 54px) clamp(32px, 4vw, 54px);
}
.feature-panel .label { margin-bottom: 20px; }
.feature-panel h2 {
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  letter-spacing: -0.02em; line-height: 1.12; margin-bottom: 22px;
}
.feature-panel .body-copy { color: var(--grey); }

/* ============================================================
   SELECTED PROJECTS. horizontal rail, snap, drag.
   ============================================================ */
.work { background: var(--bg); padding: clamp(90px, 12vw, 180px) 0 clamp(70px, 9vw, 130px); }
.work-head {
  max-width: var(--wide); margin: 0 auto clamp(38px, 4.5vw, 64px);
  padding: 0 var(--pad);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap;
}
.work-head .label { margin-bottom: 22px; }
.work-head h2 { max-width: 15ch; }
.work-head p { max-width: 32ch; font-size: 0.95rem; color: var(--grey); }

.rail {
  display: flex; gap: 14px;
  padding: 0 max(var(--pad), calc((100vw - var(--wide)) / 2 + var(--pad)));
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: max(var(--pad), calc((100vw - var(--wide)) / 2 + var(--pad)));
  scrollbar-width: none;
  cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail.dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.dragging * { pointer-events: none; }
.rail-item {
  position: relative; flex: 0 0 clamp(230px, 24vw, 330px);
  aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-alt);
  scroll-snap-align: start;
}
.rail-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.rail-item:hover img { transform: scale(1.04); }
.rail-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(var(--scrim-deep-rgb), 0.88) 0%, rgba(var(--scrim-deep-rgb), 0.16) 46%, rgba(var(--scrim-deep-rgb), 0) 70%);
}
.rail-body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 22px 20px 20px;
  transition: transform 0.6s var(--ease);
}
.rail-item:hover .rail-body { transform: translateY(-6px); }
.rail-body h3 {
  font-size: 1.06rem; font-weight: 400; letter-spacing: -0.012em; color: var(--text);
  margin-bottom: 7px; line-height: 1.2;
}
.rail-meta {
  font-size: 0.62rem; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(var(--text-rgb), 0.6);
}
.rail-meta .sep { color: var(--accent); padding: 0 7px; }

.rail-prog {
  max-width: var(--wide); margin: clamp(26px, 3vw, 40px) auto 0;
  padding: 0 var(--pad);
}
.rail-prog span { display: block; height: 1px; background: var(--hair); position: relative; }
.rail-prog i {
  position: absolute; left: 0; top: -1px; height: 3px; width: 14%;
  background: var(--accent); transition: width 0.2s linear, left 0.2s linear;
}
.work-note {
  margin: clamp(30px, 3.4vw, 44px) 0 0;
  padding: 0 var(--pad);
  max-width: calc(72ch + var(--pad));
  font-size: 0.88rem; color: var(--grey);
}

/* ============================================================
   THREE MOVES. warmer charcoal, one green line through the tops.
   ============================================================ */
.moves { background: var(--bg-alt); padding: clamp(90px, 12vw, 180px) var(--pad); }
.moves-inner { max-width: var(--wide); margin: 0 auto; }
.moves-head { margin-bottom: clamp(50px, 6vw, 86px); }
.moves-head h2 { max-width: 17ch; }
.moves-head .label { margin-bottom: 24px; }
.moves-head .body-copy { margin-top: 26px; }
.moves-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(26px, 4vw, 70px);
  border-top: 1px solid rgba(var(--accent-rgb), 0.4);
}
.move { padding-top: clamp(24px, 3vw, 40px); position: relative; }
.move::before {
  content: ''; position: absolute; left: 0; top: -2px; width: 3px; height: 3px;
  background: var(--accent);
}
.move h3 {
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  font-weight: 300; letter-spacing: -0.025em; line-height: 1;
  color: var(--text); margin-bottom: 20px;
}
.move p { font-size: 0.95rem; line-height: 1.8; color: var(--grey); max-width: 40ch; }

/* ============================================================
   CREDENTIALS. light strip.
   ============================================================ */
.creds { background: var(--light-2); color: var(--ink); padding: clamp(46px, 6vw, 78px) var(--pad); }
.creds-inner { max-width: var(--wide); margin: 0 auto; }
.creds .label { color: var(--accent-panel); margin-bottom: 28px; }
.creds-row {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: clamp(26px, 5vw, 64px);
  border-top: 1px solid var(--hair-dark); padding-top: clamp(24px, 3.2vw, 38px);
}
.cred-logo {
  height: 90px; width: auto;
  mix-blend-mode: multiply;
  filter: grayscale(1); opacity: 0.62;
  transition: filter 0.45s ease, opacity 0.45s ease;
}
.cred-logo:hover { filter: grayscale(0); opacity: 1; }
.cred-mark {
  font-size: 0.66rem; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-soft); white-space: nowrap;
}
.cred-mark:first-of-type { margin-left: auto; }

/* ============================================================
   ABOUT. light, photo bleeding off the left edge.
   ============================================================ */
.about {
  background: var(--light); color: var(--ink);
  display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: stretch;
}
.about-media { position: relative; overflow: hidden; background: var(--light-2); min-height: 520px; }
.about-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.about-body {
  padding: clamp(64px, 8vw, 130px) clamp(24px, 5.4vw, 100px);
  display: flex; flex-direction: column; justify-content: center;
}
.about-body .label { color: var(--accent-panel); margin-bottom: 24px; }
.about-body h2 { color: var(--ink); max-width: 15ch; margin-bottom: 28px; }
.about-body .body-copy { color: var(--ink-soft); }
.about-facts {
  margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 40px;
  border-top: 1px solid var(--hair-dark); padding-top: 28px;
}
.about-fact dt {
  font-size: 0.62rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent-panel); margin-bottom: 7px;
}
.about-fact dd { font-size: 0.95rem; color: var(--ink); font-weight: 300; line-height: 1.6; }

/* ============================================================
   QUOTE FORM. light, underline only inputs.
   ============================================================ */
.quote { background: var(--light); color: var(--ink); padding: clamp(80px, 10vw, 160px) var(--pad) clamp(90px, 12vw, 180px); }
.quote-grid {
  max-width: var(--mid); margin: 0 auto;
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 100px); align-items: start;
}
.quote-intro .label { color: var(--accent-panel); margin-bottom: 24px; }
.quote-intro h2 { color: var(--ink); margin-bottom: 24px; }
.quote-intro .body-copy { color: var(--ink-soft); }
.quote-direct { margin-top: 36px; border-top: 1px solid var(--hair-dark); padding-top: 26px; }
.quote-direct span {
  display: block; font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 4px;
}
.quote-direct a {
  display: flex; align-items: center; min-height: 44px;
  font-weight: 300; font-size: clamp(1.25rem, 2vw, 1.7rem); color: var(--ink); letter-spacing: -0.02em;
  transition: color 0.3s ease;
}
.quote-direct a:hover { color: var(--accent-panel); }
.quote-direct .second { margin-top: 20px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 26px; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 0.62rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 10px;
}
.field input, .field select, .field textarea {
  font-family: var(--font); font-size: 1rem; font-weight: 300; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--hair-dark);
  border-radius: 0; padding: 10px 0; min-height: 46px; width: 100%;
  -webkit-appearance: none; appearance: none;
  transition: border-color 0.3s ease;
}
.field textarea { min-height: 92px; resize: vertical; line-height: 1.7; }
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 12px) 20px, calc(100% - 7px) 20px;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 10px; }
.form-foot .btn { min-height: 62px; padding: 20px 52px; font-size: 0.74rem; }
.form-foot small { font-size: 0.8rem; color: var(--ink-soft); }

/* ============================================================
   CTA
   ============================================================ */
.cta { position: relative; overflow: hidden; padding: clamp(100px, 13vw, 190px) var(--pad); background: var(--bg); }
.cta-media { position: absolute; inset: 0; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.cta::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to right, rgba(var(--scrim-rgb), 0.94) 0%, rgba(var(--scrim-rgb), 0.78) 58%, rgba(var(--scrim-rgb), 0.88) 100%);
}
.cta-inner { position: relative; z-index: 2; max-width: var(--wide); margin: 0 auto; }
.cta .label { margin-bottom: 26px; }
.cta h2 { max-width: 14ch; margin-bottom: 26px; }
.cta .body-copy { margin-bottom: 42px; color: rgba(var(--text-rgb), 0.76); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-deep); padding: clamp(60px, 8vw, 100px) var(--pad) 36px; }
.footer-top { max-width: var(--wide); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo img { height: 32px; width: auto; margin-bottom: 22px; }
.footer-blurb { color: rgba(var(--text-rgb), 0.45); font-size: 0.88rem; max-width: 32ch; line-height: 1.75; }
.footer-col h4, .footer-col h3 {
  font-size: 0.62rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 18px;
}
.footer-col a, .footer-col p { display: block; font-size: 0.88rem; color: rgba(var(--text-rgb), 0.6); }
.footer-col p { padding: 6px 0; line-height: 1.75; }
.footer-col a { min-height: 42px; display: flex; align-items: center; transition: color 0.3s ease; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: var(--wide); margin: 56px auto 0; padding-top: 24px;
  border-top: 1px solid var(--hair);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.74rem; letter-spacing: 0.06em; color: rgba(var(--text-rgb), 0.38);
}

/* ============================================================
   REVEAL + HERO LOAD
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

.hero-mark, .hero-line, .hero-award, .hero-thread, .hero-arrow, .hero-cap { opacity: 0; }
.hero.lit .hero-mark { animation: heroRise 1.15s var(--ease) both; }
.hero.lit .hero-line { animation: heroRise 1.15s var(--ease) 0.26s both; }
.hero.lit .hero-award { animation: heroRise 1.15s var(--ease) 0.44s both; }
.hero.lit .hero-thread { animation: threadDraw 1s var(--ease) 0.72s both; }
.hero.lit .hero-arrow { animation: heroFade 0.9s ease 1.25s both; }
.hero.lit .hero-cap { animation: heroFade 1s ease 1.1s both; }
@keyframes heroRise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes threadDraw { from { opacity: 0; transform: scaleY(0); transform-origin: top; } to { opacity: 1; transform: none; } }

/* ============================================================
   POWER ON INTRO. the real logo, the green block switches on
   first, then Point rises in.
   ============================================================ */
.boot {
  position: fixed; inset: 0; z-index: 500;
  background: var(--bg-deep);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.85s cubic-bezier(0.76, 0, 0.24, 1), visibility 0.85s;
}
.boot.done { transform: translateY(-100%); visibility: hidden; }
.boot-logo { display: flex; align-items: center; width: clamp(220px, 32vw, 360px); }
.boot-logo img { height: auto; display: block; }
.boot-on {
  width: 38.1%; opacity: 0; transform: scale(0.92); filter: brightness(0.35);
  animation: bootOn 0.9s var(--ease) 0.1s forwards, bootGlow2 1.1s ease-out 0.7s forwards;
}
.boot-point { width: 61.9%; opacity: 0; transform: translateY(14px); animation: bootRise 0.8s var(--ease) 0.75s forwards; }
@keyframes bootOn { to { opacity: 1; transform: scale(1); filter: brightness(1); } }
@keyframes bootGlow2 {
  0% { filter: brightness(1) drop-shadow(0 0 0 rgba(var(--accent-rgb), 0)); }
  35% { filter: brightness(1.15) drop-shadow(0 0 26px rgba(var(--accent-rgb), 0.85)); }
  100% { filter: brightness(1) drop-shadow(0 0 10px rgba(var(--accent-rgb), 0.35)); }
}
@keyframes bootRise { to { opacity: 1; transform: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .standard-inner { grid-template-columns: 1fr; }
  .standard-rule { display: none; }
  .standard-col { padding-top: 26px; border-top: 1px solid rgba(var(--accent-rgb), 0.35); }
  .services-wrap { grid-template-columns: 1fr; }
  .acc-figure { display: none; }
  .about { grid-template-columns: 1fr; }
  .about-media { min-height: 0; aspect-ratio: 4 / 3; }
  .quote-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --head: 64px; }
  .head-nav { display: none; }
  .head-menu { display: flex; }
  .head-call .num { display: none; }
  .head-logo img { height: 24px; }
  .hero-mark { width: min(74vw, 340px); }
  .hero-line { max-width: 26ch; }
  .hero-cap span { font-size: 0.55rem; letter-spacing: 0.24em; }
  .ticker { padding: 12px 0; }
  .ticker-set span { font-size: 0.58rem; padding: 0 15px; }
  .ticker-set span::after { margin-left: 15px; width: 7px; height: 7px; }
  .ticker-track { animation-duration: 76s; }
  .feature-panel { width: calc(100% - var(--pad) * 2); margin-top: -40px; }
  .moves-grid { grid-template-columns: 1fr; gap: 0; }
  .move { border-top: 1px solid rgba(var(--accent-rgb), 0.25); padding-bottom: 34px; }
  .move:first-child { border-top: 0; }
  .moves-grid { border-top: 1px solid rgba(var(--accent-rgb), 0.4); }
  .cred-logo { height: 70px; }
  .cred-mark { white-space: normal; }
  .cred-mark:first-of-type { margin-left: 0; }
  .rail-item { flex: 0 0 68vw; }
  .form-grid { grid-template-columns: 1fr; }
  .form-foot .btn { flex: 1 1 100%; }
  .cta-actions .btn { flex: 1 1 100%; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 420px) {
  .about-facts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .boot { display: none; }
  .ticker-track { animation: none; }
  .hero-video { display: none; }
  .hero-still {
    display: block; position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover; object-position: center 52%;
  }
  .hero-mark, .hero-line, .hero-award, .hero-thread, .hero-arrow, .hero-cap {
    animation: none !important; opacity: 1 !important; transform: none !important;
  }
  .mline { transition: none; }
  .hero-thread::after { animation: none; top: 0; height: 100%; }
  .rail-item img, .rail-body, .acc-figure img, .cred-logo { transition: none; }
}

/* ============================================================
   v7 ADDITIONS. The record, builder to builder, the line,
   sectors, the portal, the crew.
   Same skin: dark ground, DM Sans 300 display, one green.
   ============================================================ */

/* ---------- builder to builder ---------- */
.b2b { background: var(--bg-alt); padding: clamp(90px, 12vw, 180px) var(--pad); }
.b2b-inner { max-width: var(--wide); margin: 0 auto; }
.b2b-head { margin-bottom: clamp(46px, 6vw, 80px); }
.b2b-head .label { margin-bottom: 24px; }
.b2b-head h2 { max-width: 18ch; }
.b2b-head .body-copy { margin-top: 26px; }
.b2b-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 4vw, 64px);
  border-top: 1px solid rgba(var(--accent-rgb), 0.4);
}
.b2b-col { padding-top: clamp(24px, 3vw, 40px); position: relative; }
.b2b-col::before { content: ''; position: absolute; left: 0; top: -2px; width: 3px; height: 3px; background: var(--accent); }
.b2b-col h3 {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 300;
  letter-spacing: -0.022em; line-height: 1.08; color: var(--text); margin-bottom: 22px;
}
.b2b-col p { font-size: 0.95rem; line-height: 1.8; color: var(--grey); max-width: 42ch; }
.b2b-list { margin-top: 20px; }
.b2b-list li {
  display: flex; gap: 12px; align-items: baseline;
  font-size: 0.9rem; line-height: 1.7; color: rgba(var(--text-rgb), 0.74);
  padding: 9px 0; border-top: 1px solid var(--hair);
}
.b2b-list li::before {
  content: ''; flex: none; width: 8px; height: 8px; margin-top: 2px;
  background: var(--accent); opacity: 0.8;
  -webkit-mask: var(--power-mask) center / contain no-repeat;
  mask: var(--power-mask) center / contain no-repeat;
}

/* ---------- drawings to handover: one line, eight stops ---------- */
.flow { background: var(--bg); padding: clamp(90px, 12vw, 170px) 0; overflow: hidden; }
.flow-head { max-width: var(--wide); margin: 0 auto clamp(46px, 5.5vw, 76px); padding: 0 var(--pad); }
.flow-head .label { margin-bottom: 24px; }
.flow-head h2 { max-width: 16ch; }
.flow-head .body-copy { margin-top: 26px; }
.flow-scroll {
  overflow-x: auto; scrollbar-width: none;
  padding: 0 max(var(--pad), calc((100vw - var(--wide)) / 2 + var(--pad)));
}
.flow-scroll::-webkit-scrollbar { display: none; }
.flow-line {
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr));
  min-width: 100%; gap: 0 0;
}
.stop { position: relative; padding: 34px 22px 0 0; }
.stop::before {
  content: ''; position: absolute; left: 0; right: 0; top: 12px; height: 1px;
  background: rgba(var(--accent-rgb), 0.28);
}
.stop:last-child::before { right: 22px; }
.stop::after {
  content: ''; position: absolute; left: 0; top: 8px; width: 9px; height: 9px;
  background: var(--accent);
  -webkit-mask: var(--power-mask) center / contain no-repeat;
  mask: var(--power-mask) center / contain no-repeat;
}
.stop-n {
  display: block; font-size: 0.6rem; letter-spacing: 0.26em;
  color: rgba(var(--accent-rgb), 0.75); margin-bottom: 10px; font-variant-numeric: tabular-nums;
}
.stop h3 {
  font-size: 1.12rem; font-weight: 400; letter-spacing: -0.012em;
  color: var(--text); margin-bottom: 12px; line-height: 1.2;
}
.stop p { font-size: 0.87rem; line-height: 1.75; color: var(--grey); }

/* ============================================================
   THE RECORD. Twenty seven rows, sortable, each one opens.
   ============================================================ */
.ledger { background: var(--bg-alt); padding: clamp(90px, 12vw, 180px) 0 clamp(70px, 9vw, 130px); }
.ledger-head {
  max-width: var(--wide); margin: 0 auto clamp(34px, 4vw, 54px); padding: 0 var(--pad);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap;
}
.ledger-head .label { margin-bottom: 22px; }
.ledger-head h2 { max-width: 14ch; }
.ledger-head > p { max-width: 40ch; font-size: 0.95rem; line-height: 1.8; color: var(--grey); }

.ledger-total {
  max-width: var(--wide); margin: 0 auto clamp(30px, 3.6vw, 48px); padding: 0 var(--pad);
}
.ledger-total span {
  display: block; border-top: 1px solid rgba(var(--accent-rgb), 0.4); padding-top: 22px;
  font-size: clamp(1.1rem, 2vw, 1.6rem); font-weight: 300; letter-spacing: -0.015em;
  color: rgba(var(--text-rgb), 0.86);
}
.ledger-total b { font-weight: 400; color: var(--accent-strong); font-variant-numeric: tabular-nums; }

.ledger-tools {
  max-width: var(--wide); margin: 0 auto 18px; padding: 0 var(--pad);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.tools-label {
  font-size: 0.6rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--grey); margin-right: 6px;
}
.sortbtn, .chip {
  font-family: var(--font); font-size: 0.64rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(var(--text-rgb), 0.62);
  background: none; border: 1px solid var(--hair); border-radius: 0;
  padding: 11px 18px; min-height: 42px; cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.sortbtn:hover, .chip:hover { color: var(--text); border-color: rgba(var(--accent-rgb), 0.6); }
.sortbtn.is-on, .chip.is-on { color: var(--accent-text); border-color: var(--accent); }
.chip i { font-style: normal; opacity: 0.55; margin-left: 8px; font-variant-numeric: tabular-nums; }

.ledger-wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--pad); }
.lgrid { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.35fr) minmax(0, 1.1fr) minmax(0, 0.8fr) minmax(0, 0.95fr) 16px; gap: clamp(12px, 1.8vw, 30px); align-items: baseline; }
.ledger-hrow {
  padding: 0 0 12px; border-bottom: 1px solid rgba(var(--accent-rgb), 0.4);
  font-size: 0.58rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--grey);
}
.ledger-hrow .num { text-align: right; }
.lrow { border-bottom: 1px solid var(--hair); }
.lrow-btn {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font); color: var(--text);
  padding: clamp(16px, 1.7vw, 22px) 0;
  transition: color 0.3s ease;
}
.lrow-btn > span { display: block; min-width: 0; }
.l-name {
  font-size: clamp(1rem, 1.35vw, 1.24rem); font-weight: 400; letter-spacing: -0.015em;
  line-height: 1.25; transition: transform 0.5s var(--ease), color 0.3s ease;
}
.l-name em {
  display: block; font-style: normal; font-size: 0.6rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: rgba(var(--text-rgb), 0.42); margin-top: 6px;
}
.l-client, .l-sector, .l-dur { font-size: 0.84rem; color: var(--grey); line-height: 1.5; }
.l-val {
  text-align: right; font-size: clamp(0.95rem, 1.25vw, 1.16rem); font-weight: 400;
  color: rgba(var(--text-rgb), 0.9); font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
}
.l-plus { position: relative; width: 12px; height: 12px; transition: transform 0.45s var(--ease); }
.l-plus::before, .l-plus::after { content: ''; position: absolute; background: var(--accent); transition: opacity 0.35s ease; }
.l-plus::before { left: 0; top: 5.5px; width: 12px; height: 1px; }
.l-plus::after { top: 0; left: 5.5px; width: 1px; height: 12px; }
.lrow:hover .l-name, .lrow.open .l-name { transform: translateX(8px); }
.lrow.open .l-name { color: var(--accent-strong); }
.lrow.open .l-plus { transform: rotate(90deg); }
.lrow.open .l-plus::after { opacity: 0; }
.lrow-panel { overflow: hidden; max-height: 0; transition: max-height 0.6s var(--ease); }
.lrow.open .lrow-panel { max-height: 900px; }
.lrow-inner {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(20px, 3vw, 48px);
  padding: 6px 0 clamp(28px, 3.2vw, 40px);
}
.lrow-kicker { font-size: 0.58rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 14px; }
.lrow-scope > p { font-size: 0.95rem; color: rgba(var(--text-rgb), 0.82); line-height: 1.6; margin-bottom: 16px; }
.lrow-scope ul li {
  font-size: 0.87rem; line-height: 1.7; color: var(--grey);
  padding: 7px 0 7px 16px; position: relative; border-top: 1px solid var(--hair);
}
.lrow-scope ul li::before { content: ''; position: absolute; left: 0; top: 15px; width: 6px; height: 1px; background: var(--accent); }
.lrow-scope .link { margin-top: 18px; font-size: 0.62rem; }
.lrow-shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; align-content: start; }
.lrow-shots img { aspect-ratio: 4 / 3; width: 100%; height: 100%; object-fit: cover; background: var(--bg-deep); filter: saturate(0.92); }

/* ============================================================
   SECTORS. The chips filter the rail.
   ============================================================ */
.sectors { background: var(--bg); padding: clamp(90px, 12vw, 180px) 0 clamp(70px, 9vw, 130px); }
.sect-head {
  max-width: var(--wide); margin: 0 auto clamp(28px, 3.4vw, 44px); padding: 0 var(--pad);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap;
}
.sect-head .label { margin-bottom: 22px; }
.sect-head h2 { max-width: 14ch; }
.sect-head > p { max-width: 34ch; font-size: 0.95rem; color: var(--grey); }
.sect-chips {
  max-width: var(--wide); margin: 0 auto 16px; padding: 0 var(--pad);
  display: flex; gap: 8px; flex-wrap: wrap;
}
.sect-names {
  max-width: var(--wide); margin: 0 auto clamp(26px, 3vw, 38px); padding: 0 var(--pad);
}
.sect-names p {
  border-top: 1px solid var(--hair); padding-top: 18px;
  font-size: 0.86rem; line-height: 1.85; color: var(--grey); max-width: 92ch;
}
.sect-names b { font-weight: 400; color: rgba(var(--text-rgb), 0.85); font-variant-numeric: tabular-nums; }
.rail-item.hide { display: none; }

/* ============================================================
   THE PORTAL
   ============================================================ */
.portal { background: var(--bg-alt); padding: clamp(80px, 10vw, 150px) var(--pad); }
.portal-inner {
  max-width: var(--wide); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(34px, 5vw, 80px); align-items: center;
}
.portal .label { margin-bottom: 24px; }
.portal h2 { max-width: 13ch; margin-bottom: 26px; }
.portal .body-copy { color: rgba(var(--text-rgb), 0.74); }
.portal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.portal-card {
  border: 1px solid var(--hair); background: var(--bg-deep);
  padding: clamp(24px, 3vw, 40px);
}
.portal-card .lrow-kicker { margin-bottom: 20px; }
.portal-step {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 15px 0; border-top: 1px solid var(--hair);
  font-size: 0.9rem; line-height: 1.65; color: var(--grey);
}
.portal-step:first-of-type { border-top: 0; padding-top: 0; }
.portal-step b {
  flex: none; font-weight: 400; font-size: 0.62rem; letter-spacing: 0.2em;
  color: var(--accent-text); width: 74px; padding-top: 3px; text-transform: uppercase;
}

/* ============================================================
   THE CREW. Reserved for a founder profile, not faked.
   ============================================================ */
.crew { background: var(--bg); padding: clamp(80px, 10vw, 150px) var(--pad); }
.crew-inner {
  max-width: var(--wide); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 76px); align-items: center;
}
.crew-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-alt); }
.crew-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) brightness(0.92); }
.crew-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(var(--scrim-deep-rgb), 0.6), rgba(var(--scrim-deep-rgb), 0) 55%);
}
.crew .label { margin-bottom: 24px; }
.crew h2 { max-width: 13ch; margin-bottom: 26px; }

/* ---------- header client login ---------- */
.head-portal {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 11px 0;
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(var(--text-rgb), 0.62); white-space: nowrap;
  transition: color 0.3s ease;
}
.head-portal::before {
  content: ''; width: 9px; height: 9px; flex: none; background: var(--accent);
  -webkit-mask: var(--power-mask) center / contain no-repeat;
  mask: var(--power-mask) center / contain no-repeat;
}
.head-portal:hover { color: var(--accent-text); }
.head-sep { width: 1px; height: 18px; background: var(--hair); flex: none; }

/* ---------- staggered ledger reveal ---------- */
.lrow.reveal { transform: translateY(14px); }

/* ============================================================
   RESPONSIVE, v7 sections
   ============================================================ */
@media (max-width: 1180px) {
  .b2b-grid { grid-template-columns: 1fr; gap: 0; }
  .b2b-col { border-top: 1px solid rgba(var(--accent-rgb), 0.22); padding-bottom: 30px; }
  .b2b-col:first-child { border-top: 0; }
  .portal-inner, .crew-inner { grid-template-columns: 1fr; }
  .lgrid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.1fr) minmax(0, 0.9fr) minmax(0, 0.9fr) 16px; }
  .ledger-hrow span:nth-child(4) { display: none; }
  .lrow-btn > .l-dur { display: none; }
  .lrow-inner { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .head-portal .txt { display: none; }
  .head-sep { display: none; }
  .lgrid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 14px; gap: 14px; }
  .ledger-hrow span:nth-child(2), .ledger-hrow span:nth-child(3) { display: none; }
  .lrow-btn > .l-client, .lrow-btn > .l-sector { display: none; }
  .l-name em { color: rgba(var(--text-rgb), 0.5); }
  .l-name em.none { display: none; }
  .lrow-shots { grid-template-columns: repeat(2, 1fr); }
  .stop { padding-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .lrow-panel, .l-plus, .l-name { transition: none; }
}

/* the eight stops wrap into rows rather than running off the edge */
@media (max-width: 1500px) {
  .flow-line { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stop { padding-bottom: 36px; }
  .stop:nth-child(4n)::before { right: 22px; }
}
@media (max-width: 780px) {
  .flow-line { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stop:nth-child(2n)::before { right: 22px; }
}


/* ============================================================
   v8 BARTLETT PASS
   The award line, the manifesto, the big numbers, the pull lines.
   Same skin. No new colour, no icons, no gradients.
   ============================================================ */

/* ---------- hero: the award, directly under the H1 ---------- */
.hero-award {
  display: inline-flex; align-items: center; gap: clamp(10px, 1.4vw, 18px);
  margin-top: clamp(16px, 2.2vw, 26px);
  font-size: clamp(0.58rem, 0.74vw, 0.68rem);
  font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--accent); line-height: 1.6; text-wrap: balance;
}
.hero-award::before, .hero-award::after {
  content: ''; flex: none; width: clamp(16px, 2.4vw, 34px); height: 1px;
  background: rgba(var(--accent-rgb), 0.55);
}

/* ---------- the manifesto. black ground, seven lines ---------- */
.manifesto {
  background: var(--bg-deep);
  padding: clamp(110px, 15vw, 220px) var(--pad) clamp(110px, 15vw, 220px);
}
.manifesto-inner { max-width: var(--wide); margin: 0 auto; }
.manifesto .label { margin-bottom: clamp(48px, 6.5vw, 96px); }
.mline {
  font-size: clamp(1.65rem, 3.2vw, 3.4rem);
  font-weight: 300; letter-spacing: -0.028em; line-height: 1.12;
  color: var(--text);
  padding: clamp(20px, 2.4vw, 34px) 0;
  border-top: 1px solid rgba(var(--text-rgb), 0.09);
  text-wrap: balance;
}
.mline:first-of-type { border-top: 0; padding-top: 0; }
.mline em { font-style: normal; color: var(--accent-strong); }
.manifesto .link { margin-top: clamp(40px, 5vw, 70px); }
/* they come in one after another, so the list reads like it is being counted */
.mline:nth-of-type(1) { transition-delay: 0s; }
.mline:nth-of-type(2) { transition-delay: 0.07s; }
.mline:nth-of-type(3) { transition-delay: 0.14s; }
.mline:nth-of-type(4) { transition-delay: 0.21s; }
.mline:nth-of-type(5) { transition-delay: 0.28s; }
.mline:nth-of-type(6) { transition-delay: 0.35s; }
.mline:nth-of-type(7) { transition-delay: 0.42s; }

/* ---------- the big numbers, above the record ---------- */
.bignums {
  max-width: var(--wide); margin: 0 auto clamp(38px, 4.6vw, 66px); padding: 0 var(--pad);
}
.bignums-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 56px);
  border-top: 1px solid rgba(var(--accent-rgb), 0.4);
}
.bignum { padding-top: clamp(22px, 2.8vw, 38px); position: relative; }
.bignum::before {
  content: ''; position: absolute; left: 0; top: -2px; width: 3px; height: 3px; background: var(--accent);
}
.bignum b {
  display: block; font-weight: 300;
  font-size: clamp(2.1rem, 4.6vw, 4.6rem);
  letter-spacing: -0.035em; line-height: 0.98; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.bignum span {
  display: block; margin-top: clamp(14px, 1.6vw, 22px);
  font-size: 0.82rem; line-height: 1.65; color: var(--grey); max-width: 24ch;
}

/* ---------- builder to builder: the pull line ---------- */
.b2b-pull {
  font-size: clamp(1.08rem, 1.5vw, 1.42rem) !important;
  font-weight: 300; line-height: 1.42; letter-spacing: -0.018em;
  color: rgba(var(--text-rgb), 0.9) !important;
  max-width: 24ch !important; margin-bottom: clamp(20px, 2.2vw, 30px);
}
.b2b-pull em { font-style: normal; color: var(--accent); }

@media (max-width: 900px) {
  .bignums-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 22px; }
  .bignum span { max-width: none; }
}
@media (max-width: 860px) {
  .manifesto { padding-top: clamp(84px, 16vw, 130px); padding-bottom: clamp(84px, 16vw, 130px); }
  .mline { padding: 18px 0; }
  .b2b-pull { max-width: none !important; }
}
@media (max-width: 359px) {
  .bignums-grid { grid-template-columns: 1fr; }
}

/* ---------- credentials: the award leads the text marks ---------- */
.creds-marks {
  margin-left: auto; display: flex; flex-direction: column;
  align-items: flex-start; gap: 12px;
}
.creds-marks .cred-mark:first-of-type { margin-left: 0; }
.cred-award { color: var(--accent-panel); font-weight: 500; }
@media (max-width: 1180px) { .creds-marks { margin-left: 0; } }


/* ============================================================
   v9. Capability statement, project pages, the month board,
   the ledger count-up and the row photo preview.
   Same skin: dark ground, DM Sans 300 display, one green.
   ============================================================ */

/* ---------- on the tools this month ---------- */
.board { background: var(--bg-deep); padding: clamp(64px, 8vw, 110px) var(--pad); }
.board-inner { max-width: var(--wide); margin: 0 auto; }
.board-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 18px 34px; margin-bottom: clamp(26px, 3.4vw, 44px); }
.board-head h2 { font-size: clamp(1.6rem, 2.5vw, 2.5rem); letter-spacing: -0.01em; }
.board-head .label { flex: 1 1 100%; margin-bottom: 6px; }
.board-note {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--grey); border: 1px solid var(--hair); padding: 7px 14px;
}
.board-note b { color: var(--accent-text); font-weight: 500; }
.board-list { border-top: 1px solid var(--hair); }
.board-row {
  display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: clamp(12px, 2vw, 30px); align-items: baseline;
  border-bottom: 1px solid var(--hair); padding: 20px 0;
}
.board-proj { font-size: clamp(1rem, 1.4vw, 1.2rem); font-weight: 300; color: var(--text); }
.board-stage { font-size: 0.84rem; color: var(--grey); display: flex; align-items: center; gap: 10px; }
.board-stage::before { content: ''; width: 6px; height: 6px; background: var(--accent); flex: none; }
.board-when { font-size: 0.84rem; color: var(--grey); text-align: right; font-variant-numeric: tabular-nums; }
.board-foot { margin-top: 22px; font-size: 0.84rem; color: var(--grey); display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.board-empty { padding: 22px 0; font-size: 0.9rem; color: var(--grey); }

/* ---------- the ledger: count-up and the row photo preview ---------- */
.l-val { font-variant-numeric: tabular-nums; }
.lrow-peek {
  position: absolute; z-index: 5; width: 190px; pointer-events: none;
  opacity: 0; transform: translateX(-10px);
  transition: opacity 0.3s ease, transform 0.4s var(--ease);
  border: 1px solid var(--hair); background: var(--bg-deep);
}
.lrow-peek img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.lrow-peek.on { opacity: 1; transform: none; }
.ledger-wrap { position: relative; }
@media (max-width: 1180px) { .lrow-peek { display: none; } }
@media (prefers-reduced-motion: reduce) { .lrow-peek { transition: none; } }

/* ---------- form: inline thank-you ---------- */
.form-note { grid-column: 1 / -1; font-size: 0.9rem; line-height: 1.7; }
.form-note.err { color: var(--err); }
.form-done {
  border-top: 2px solid var(--accent-panel); padding-top: 26px;
}
.form-done p.label { color: var(--accent-panel); margin-bottom: 14px; }
.form-done h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); color: var(--ink); font-weight: 300; margin-bottom: 14px; }
.form-done p { color: var(--ink-soft); font-size: 0.95rem; max-width: 46ch; }
.form-done a { color: var(--accent-panel); }
.is-sending { opacity: 0.55; pointer-events: none; }

/* ============================================================
   PROJECT PAGES
   ============================================================ */
.pj-body { padding-top: 0; }
.pj-hero { position: relative; height: clamp(400px, 66vh, 720px); overflow: hidden; background: var(--bg-alt); }
.pj-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.pj-hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(var(--scrim-deep-rgb), 0.94) 0%, rgba(var(--scrim-deep-rgb), 0.55) 42%, rgba(var(--scrim-deep-rgb), 0.35) 100%);
}
.pj-hero-inner {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-width: var(--wide); margin: 0 auto; padding: 0 var(--pad) clamp(34px, 5vw, 70px);
}
.pj-hero-inner .label { margin-bottom: 20px; color: var(--accent); }
.pj-hero-inner .label span { color: rgba(var(--text-rgb), 0.4); padding: 0 6px; }
.pj-back { color: rgba(var(--text-rgb), 0.72); transition: color 0.3s ease; }
.pj-back:hover { color: var(--accent); }
.pj-hero h1 { font-size: clamp(2.4rem, 5vw, 5rem); max-width: 16ch; }
.pj-hero-scope { margin-top: 18px; font-size: 0.95rem; color: rgba(var(--text-rgb), 0.72); }

.pj-facts { background: var(--bg-alt); padding: clamp(34px, 4.4vw, 60px) var(--pad); }
.pj-facts-grid {
  max-width: var(--wide); margin: 0 auto;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 44px);
}
.pj-fact { border-top: 1px solid rgba(var(--accent-rgb), 0.4); padding-top: 16px; }
.pj-fact dt {
  font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 10px;
}
.pj-fact dd { font-size: clamp(0.95rem, 1.3vw, 1.15rem); color: var(--text); font-weight: 300; line-height: 1.5; }

.pj-scope {
  background: var(--bg); padding: clamp(70px, 9vw, 140px) var(--pad);
  max-width: var(--wide); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(30px, 5vw, 90px);
}
.pj-scope-head .label { margin-bottom: 22px; }
.pj-scope-head h2 { font-size: clamp(2rem, 3.4vw, 3.4rem); max-width: 16ch; }
.pj-brief li {
  position: relative; padding: 14px 0 14px 26px;
  border-bottom: 1px solid var(--hair);
  font-size: 0.95rem; line-height: 1.7; color: rgba(var(--text-rgb), 0.8);
}
.pj-brief li::before { content: ''; position: absolute; left: 0; top: 24px; width: 10px; height: 1px; background: var(--accent); }
.pj-src { margin-top: 22px; font-size: 0.82rem; color: var(--grey); max-width: 52ch; }
.pj-scope-body .link { margin-top: 14px; }

.pj-grid {
  padding: 0 var(--pad) clamp(60px, 8vw, 110px);
  max-width: var(--wide); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
}
.pj-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-alt); filter: saturate(0.94); }

.pj-more { background: var(--bg-alt); padding: clamp(70px, 9vw, 130px) var(--pad); }
.pj-more-head { max-width: var(--wide); margin: 0 auto clamp(34px, 4.4vw, 60px); }
.pj-more-head .label { margin-bottom: 22px; }
.pj-more-head h2 { font-size: clamp(2rem, 3.4vw, 3.4rem); }
.pj-rel-grid {
  max-width: var(--wide); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 40px);
}
.pj-rel { display: block; border-top: 1px solid var(--hair); padding-top: 20px; transition: border-color 0.35s ease; }
.pj-rel:hover { border-top-color: var(--accent); }
.pj-rel-sector { display: block; font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 12px; }
.pj-rel-name { display: block; font-size: clamp(1.1rem, 1.7vw, 1.5rem); font-weight: 300; color: var(--text); line-height: 1.25; transition: transform 0.4s var(--ease); }
.pj-rel:hover .pj-rel-name { transform: translateX(8px); }
.pj-rel-meta { display: block; margin-top: 12px; font-size: 0.82rem; color: var(--grey); }
.pj-rel-meta i { font-style: normal; color: var(--accent); padding: 0 6px; }

.pj-steps {
  background: var(--bg); max-width: var(--wide); margin: 0 auto;
  padding: clamp(40px, 5vw, 70px) var(--pad);
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  border-top: 1px solid var(--hair);
}
.pj-step { display: block; transition: color 0.3s ease; }
.pj-step span { display: block; font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 12px; }
.pj-step b { font-size: clamp(1.05rem, 1.6vw, 1.4rem); font-weight: 300; color: var(--text); }
.pj-step-next { text-align: right; }
.pj-step.is-off b { color: var(--grey); }
.pj-step:not(.is-off):hover b { color: var(--accent); }

.pj-cta { background: var(--bg-deep); padding: clamp(70px, 9vw, 130px) var(--pad); }
.pj-cta-inner { max-width: var(--wide); margin: 0 auto; }
.pj-cta .label { margin-bottom: 24px; }
.pj-cta h2 { max-width: 14ch; margin-bottom: 22px; }
.pj-cta .body-copy { margin-bottom: 36px; }

@media (max-width: 1180px) {
  .pj-facts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pj-scope { grid-template-columns: 1fr; }
  .pj-rel-grid { grid-template-columns: 1fr; gap: 0; }
  .pj-rel { padding-bottom: 22px; }
}
@media (max-width: 860px) {
  .pj-facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board-row { grid-template-columns: 1fr; gap: 8px; }
  .board-when { text-align: left; }
  .pj-steps { grid-template-columns: 1fr; }
  .pj-step-next { text-align: left; }
}

/* ============================================================
   CAPABILITY STATEMENT
   Dark on screen. Black on white on paper, green accent only.
   ============================================================ */
.cap-body { background: var(--bg); }
.cap-wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--pad); }
.cap-sec { padding: clamp(52px, 6.5vw, 92px) 0; border-top: 1px solid var(--hair); }
.cap-sec:first-of-type { border-top: 0; }
.cap-sec > .label { margin-bottom: 24px; }
.cap-sec h2 { font-size: clamp(1.8rem, 3vw, 2.9rem); margin-bottom: 26px; }
.cap-sec h3 { font-size: 1.05rem; font-weight: 400; color: var(--text); margin-bottom: 10px; }

.cap-cover { padding: calc(var(--head) + clamp(46px, 7vw, 100px)) 0 clamp(46px, 6vw, 80px); }
.cap-cover img.cap-logo { width: 230px; height: auto; margin-bottom: clamp(34px, 5vw, 62px); }
.cap-cover h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); letter-spacing: -0.02em; line-height: 1.02; margin-bottom: 26px; }
.cap-cover .cap-legal { font-size: clamp(1rem, 1.4vw, 1.2rem); color: var(--text); font-weight: 300; }
.cap-meta {
  margin-top: clamp(30px, 4vw, 52px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 36px);
}
.cap-meta div { border-top: 1px solid rgba(var(--accent-rgb), 0.45); padding-top: 14px; }
.cap-meta dt, .cap-meta b {
  display: block; font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 9px; font-weight: 500;
}
.cap-meta span { display: block; font-size: 0.95rem; color: var(--text); line-height: 1.6; font-weight: 300; }
.cap-actions { margin-top: clamp(30px, 4vw, 46px); display: flex; flex-wrap: wrap; gap: 12px; }

.cap-lede { font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.65; color: var(--text); max-width: 58ch; font-weight: 300; }
.cap-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3.4vw, 56px); margin-top: 30px; }
.cap-cols .body-copy { max-width: none; }

.cap-svc { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 34px); }
.cap-svc div { border-top: 1px solid rgba(var(--accent-rgb), 0.4); padding-top: 18px; }
.cap-svc p { font-size: 0.87rem; line-height: 1.7; color: var(--grey); }

.cap-sectors { border-top: 1px solid var(--hair); }
.cap-sector { border-bottom: 1px solid var(--hair); padding: 18px 0; }
.cap-sector b { display: block; font-size: 1rem; font-weight: 400; color: var(--text); margin-bottom: 6px; }
.cap-sector b em { font-style: normal; color: var(--accent); font-weight: 400; }
.cap-sector span { font-size: 0.88rem; color: var(--grey); line-height: 1.7; }

.cap-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.cap-table th {
  text-align: left; font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); font-weight: 500; padding: 0 12px 12px 0; border-bottom: 1px solid var(--hair);
}
.cap-table th.num, .cap-table td.num { text-align: right; padding-right: 0; font-variant-numeric: tabular-nums; }
.cap-table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--hair); color: var(--grey); vertical-align: top; line-height: 1.55; }
.cap-table td.pn { color: var(--text); font-weight: 400; }
.cap-table tfoot td { border-bottom: 0; border-top: 1px solid var(--accent); color: var(--text); font-weight: 400; padding-top: 16px; }
.cap-table-wrap { overflow-x: auto; }

.cap-creds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 3vw, 48px); align-items: start; }
.cap-cred-list li {
  position: relative; padding: 13px 0 13px 26px; border-bottom: 1px solid var(--hair);
  font-size: 0.95rem; color: rgba(var(--text-rgb), 0.85);
}
.cap-cred-list li::before { content: ''; position: absolute; left: 0; top: 23px; width: 10px; height: 1px; background: var(--accent); }
.cap-cred-logos { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.cap-cred-logos img { height: 78px; width: auto; background: #fff; padding: 8px; }

.cap-stops { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 36px); }
.cap-stop { border-top: 1px solid rgba(var(--accent-rgb), 0.4); padding-top: 16px; }
.cap-stop b { display: block; font-size: 0.6rem; letter-spacing: 0.2em; color: var(--accent); margin-bottom: 10px; font-weight: 500; }
.cap-stop h3 { margin-bottom: 8px; }
.cap-stop p { font-size: 0.84rem; line-height: 1.7; color: var(--grey); }

.cap-contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 46px); }
.cap-contact div { border-top: 1px solid rgba(var(--accent-rgb), 0.45); padding-top: 16px; }
.cap-contact b { display: block; font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; font-weight: 500; }
.cap-contact span, .cap-contact a { display: block; font-size: 0.98rem; color: var(--text); line-height: 1.65; font-weight: 300; }
.cap-contact a:hover { color: var(--accent); }

.cap-print-head { display: none; }
.cap-foot-note { font-size: 0.8rem; color: var(--grey); margin-top: 26px; }

@media (max-width: 1100px) {
  .cap-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cap-svc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cap-stops { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cap-cols, .cap-creds { grid-template-columns: 1fr; }
  .cap-contact { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .cap-svc { grid-template-columns: 1fr; }
  .cap-stops { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------
   PRINT. A4, black on white, green accent only, one section
   per page, the logo running in the header, page numbers via
   CSS counters in browsers that support the margin boxes.
   ------------------------------------------------------------ */
@page {
  size: A4;
  /* the top margin holds the running header, which is pulled up into it */
  margin: 20mm 16mm 18mm;
  @bottom-right { content: counter(page) " / " counter(pages); font-size: 9pt; color: #555; }
}

@media print {
  :root { --pad: 0; }
  html, body {
    background: #fff !important; color: #000 !important;
    font-size: 10.5pt; line-height: 1.5;
    overflow: visible !important;
  }
  body { counter-reset: page; }
  .head, .drawer, .footer, .cap-actions, .boot, .head-menu { display: none !important; }
  a { color: #000 !important; text-decoration: none; }
  .reveal { opacity: 1 !important; transform: none !important; }

  .cap-print-head {
    display: flex !important; align-items: center; justify-content: space-between;
    position: fixed; top: 0; left: 0; right: 0; z-index: 9; background: #fff;
    padding-bottom: 3mm; border-bottom: 0.6pt solid #53AE47;
    font-size: 8pt; letter-spacing: 0.16em; text-transform: uppercase; color: #444;
  }
  .cap-print-head img { height: 9mm; width: auto; }

  .cap-wrap { max-width: none; padding: 0; margin: 0; }
  /* the running header sits in the top 13mm of every page, so every section
     starts below it */
  .cap-sec {
    break-before: page; page-break-before: always;
    break-inside: auto; border-top: 0; padding: 15mm 0 0;
  }
  .cap-cover, .cap-sec:first-of-type { break-before: auto; page-break-before: auto; }
  /* the cover carries the mark at full size, clear of the running header */
  .cap-cover { padding-top: 26mm; }

  .cap-cover h1 { font-size: 30pt; color: #000 !important; margin-bottom: 6mm; }
  .cap-cover img.cap-logo { width: 52mm; margin-bottom: 10mm; }
  .cap-cover .cap-legal { font-size: 12pt; color: #000 !important; }

  h1, h2, h3, .stmt { color: #000 !important; break-after: avoid; page-break-after: avoid; }
  .cap-sec h2 { font-size: 17pt; margin-bottom: 5mm; }
  .label, .cap-meta b, .cap-meta dt, .cap-contact b, .cap-stop b, .cap-fact dt, .cap-rel-sector {
    color: #3E8F36 !important;
  }
  .body-copy, .cap-svc p, .cap-stop p, .cap-sector span, .cap-src, .cap-foot-note { color: #333 !important; }
  .cap-lede { color: #000 !important; font-size: 12pt; margin-bottom: 6mm; }
  .cap-sec .body-copy { margin-bottom: 6mm; }
  .cap-cols { margin-top: 0; }

  .cap-meta div, .cap-fact, .cap-svc div, .cap-stop, .cap-contact div { border-top-color: #53AE47 !important; }
  .cap-meta span, .cap-meta span a { color: #000 !important; }
  .cap-sector, .cap-sectors, .cap-cred-list li { border-color: #CFCFCF !important; }
  .cap-sector b, .cap-cred-list li, .cap-contact span, .cap-contact a { color: #000 !important; }
  .cap-sector b em { color: #3E8F36 !important; }

  .cap-table { font-size: 8.2pt; width: 100%; }
  .cap-table-wrap { overflow: visible; }
  .cap-table th { color: #3E8F36 !important; border-bottom-color: #53AE47 !important; }
  .cap-table td { color: #333 !important; border-bottom-color: #DDD !important; padding: 7pt 12pt 7pt 0; }
  .cap-table td.pn { color: #000 !important; }
  .cap-table tfoot td { color: #000 !important; border-top-color: #53AE47 !important; }
  .cap-table tr { break-inside: avoid; page-break-inside: avoid; }
  /* the column headings repeat on the table's second page, dropped clear of
     the running header by the same 15mm */
  .cap-table thead { display: table-header-group; }
  .cap-table th { padding-top: 15mm; }
  /* the total belongs at the end of the table, not repeated on every page */
  .cap-table tfoot { display: table-row-group; }

  .cap-cred-logos img { height: 22mm; padding: 0; filter: none; }
  .cap-stop, .cap-svc div, .cap-meta div, .cap-contact div, .cap-sector { break-inside: avoid; page-break-inside: avoid; }
}

/* ---------- v9 tie-ins to the existing sections ---------- */
.lrow-peek { right: var(--pad); box-shadow: 0 20px 44px var(--shadow); }
.lrow-scope .link + .link { margin-left: 26px; }
.ledger-cap {
  max-width: var(--wide); margin: clamp(30px, 3.4vw, 46px) auto 0; padding: 0 var(--pad);
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px;
}
.ledger-cap span { font-size: 0.88rem; color: var(--grey); }
.board-proj a { transition: color 0.3s ease; }
.board-proj a:hover { color: var(--accent-strong); }
.form-grid[hidden] { display: none; }


/* ============================================================
   v10. MOBILE PASS.
   Weight, legibility and touch only. Nothing here fires above
   860px, so the desktop build is exactly as it was in v9.
   ============================================================ */

/* ---------- the menu: a full height overlay, not a dropdown ---------- */
@media (max-width: 860px) {
  .drawer {
    inset: var(--head) 0 0 0;
    padding: 14px 22px calc(40px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    border-bottom: 0;
    overscroll-behavior: contain;
  }
  .drawer a { font-size: 1.32rem; padding: 20px 0; }
  html.menu-open, html.menu-open body { overflow: hidden; }
  .head-menu:focus-visible, .drawer a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
}

/* ---------- type: nothing carrying words drops under 13px ---------- */
@media (max-width: 860px) {
  /* the hero statement reads as a sentence, not a caption */
  .hero-line { font-size: 1.09rem; line-height: 1.62; max-width: 24ch; }
  .hero-award { font-size: 0.82rem; letter-spacing: 0.18em; line-height: 1.6; }
  .hero-cap span { font-size: 0.82rem; letter-spacing: 0.16em; line-height: 1.7; }

  .link, .lrow-scope .link { font-size: 0.82rem; letter-spacing: 0.16em; }
  .btn, .form-foot .btn { font-size: 0.82rem; letter-spacing: 0.16em; }
  .form-foot small { font-size: 0.85rem; line-height: 1.6; }

  .ticker-set span { font-size: 0.82rem; letter-spacing: 0.16em; }

  .sortbtn, .chip { font-size: 0.82rem; letter-spacing: 0.12em; }
  .ledger-hrow { font-size: 0.82rem; letter-spacing: 0.14em; }
  .l-name em { font-size: 0.82rem; letter-spacing: 0.14em; }
  .l-client, .l-sector, .l-dur { font-size: 0.86rem; line-height: 1.55; }

  .rail-meta { font-size: 0.82rem; letter-spacing: 0.12em; line-height: 1.55; }
  .stop-n { font-size: 0.82rem; letter-spacing: 0.18em; }
  .board-note { font-size: 0.82rem; letter-spacing: 0.1em; }
  .portal-step b { font-size: 0.82rem; letter-spacing: 0.12em; width: 88px; }
  .cred-mark { font-size: 0.82rem; letter-spacing: 0.12em; line-height: 1.6; }

  .about-fact dt, .quote-direct span, .field label, .footer-col h4, .footer-col h3 {
    font-size: 0.82rem; letter-spacing: 0.14em;
  }
  .footer-bottom { font-size: 0.82rem; line-height: 1.6; }

  /* project pages */
  .pj-fact dt, .pj-rel-sector, .pj-step span { font-size: 0.82rem; letter-spacing: 0.14em; }
  .pj-fact dd { line-height: 1.55; }

  /* capability statement */
  .cap-meta dt, .cap-meta b, .cap-contact b, .cap-stop b, .cap-table th {
    font-size: 0.82rem; letter-spacing: 0.14em;
  }
  .cap-foot-note { font-size: 0.85rem; line-height: 1.6; }

  /* body measure: a little more air between the lines on a phone */
  p, li, dd { line-height: 1.62; }
  .body-copy { font-size: 1rem; line-height: 1.68; }
}

/* ---------- touch: 44px on everything a thumb has to find ---------- */
@media (max-width: 640px) {
  .head { gap: 12px; }
  /* client login is icon only at this width, so it gets a square to sit in */
  .head-portal {
    width: 44px; height: 44px; padding: 0;
    justify-content: center; gap: 0;
  }
  .head-portal::before { width: 15px; height: 15px; }
  /* the call button keeps its own square and stays obviously tappable */
  .head-call {
    min-width: 44px; height: 44px; padding: 0 6px;
    justify-content: center;
    border: 1px solid rgba(var(--accent-rgb), 0.55);
  }
  .head-call svg { width: 18px; height: 18px; }
  .head-menu { width: 44px; height: 44px; }

  .sortbtn, .chip { min-height: 44px; padding: 12px 16px; }
  .footer-col a { min-height: 44px; }
  .link { min-height: 44px; }
  .drawer a { min-height: 44px; }

  /* inline links that were only as tall as their own text */
  .board-proj a,
  .form-done a,
  .pj-back,
  .pj-src a,
  .cap-contact a,
  .cap-meta span a,
  .cap-table td a,
  .cap-cred-list a,
  .cap-sec p a,
  .quote-direct a,
  .footer-bottom a {
    display: inline-flex; align-items: center; min-height: 44px;
  }
  .board-row { padding: 8px 0 16px; }

  .cap-table td { padding-top: 6px; padding-bottom: 6px; }
  .lrow-btn { padding: 16px 0; min-height: 60px; }
  .acc-btn { min-height: 60px; }
  .pj-rel { padding-top: 22px; padding-bottom: 22px; }
  .pj-step { padding: 10px 0; }
  .rail-item { flex: 0 0 78vw; }
}


/* ============================================================
   VERSION PILL. Rose only. Sits above everything so she can
   flick between the four skins. Token driven, so it takes the
   colour of whichever theme sheet is loaded.
   ============================================================ */
.vpill {
  position: fixed; right: 14px; bottom: 14px; z-index: 400;
  display: flex; align-items: center; gap: 11px;
  background: var(--bg-alt); border: 1px solid var(--hair);
  box-shadow: 0 10px 30px var(--shadow);
  padding: 9px 13px;
  font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--grey);
}
.vpill b { font-weight: 500; color: var(--accent-text); }
.vpill a { color: var(--text); opacity: 0.68; transition: opacity 0.3s ease, color 0.3s ease; }
.vpill a:hover { opacity: 1; color: var(--accent-text); }
.vpill a[aria-current="page"] { opacity: 1; color: var(--accent-text); }
@media (max-width: 640px) {
  .vpill { right: 10px; bottom: 10px; gap: 8px; padding: 8px 10px; font-size: 0.6rem; letter-spacing: 0.12em; }
  .vpill b { display: none; }
}
@media print { .vpill { display: none !important; } }
