/* ==========================================================================
   Eagle Electricals — design system
   Structure & motion modelled on hylight.aero
   Palette anchored to Eagle's own green (#004500) with a mint accent
   ========================================================================== */

/* Fonts (Archivo, Source Serif 4) are linked from each page's <head>, not
   @imported here: an @import makes the browser wait for this file before it
   even starts asking Google for the fonts. */

:root {
  /* ink */
  --ink:        #080808;
  --ink-deep:   #040510;
  --ink-soft:   #141414;

  /* paper */
  --paper:      #ffffff;
  --paper-soft: #f5f7f6;
  --paper-mute: #ebeeec;

  /* brand green — Eagle's own, kept */
  --green-deep: #004500;
  --green-mid:  #195e37;
  --green:      #2f8f52;
  --mint:       #59de92;
  --mint-soft:  #9ae6bb;

  /* type */
  --grey:       #9e9e9e;
  --grey-dark:  #5c5c5c;
  --grey-line:  rgba(8, 8, 8, 0.10);
  --grey-line-d:rgba(255, 255, 255, 0.14);

  /* Archivo sets headings and all UI chrome — a sturdy, slightly condensed
     grotesque with flat terminals and tight apertures, so it reads engineered
     rather than friendly. Source Serif carries the reading copy. */
  /* Three roles. Headings take a transitional serif, which reads as formal and
     institutional rather than startup-ish. Body keeps the same serif at a
     lighter weight. Archivo stays on nav, buttons, labels and tables, where a
     serif at 12px would be hard work. */
  --font-head: 'Source Serif 4', ui-serif, Georgia, 'Times New Roman', serif;
  --font-body: 'Source Serif 4', ui-serif, Georgia, 'Times New Roman', serif;
  --font: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --gut:   clamp(20px, 5vw, 80px);
  --maxw:  1320px;
  --ease:  cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- type scale ---------- */
/* every heading rides the serif; tracking eased back because a serif does not
   want the tight negative spacing a grotesque can carry */
h1, h2, h3, h4,
.h-hero, .h-stack, .h-sec,
.hero-lead, .card h3, .cap-panel h3, .tl-panel h3, .feat h3,
.pr-panel h3, .pr-slide h3, .tl-now, .tl-year,
.foot-word, .pride-word, .clients-box-body h3, .empty b,
.office p, .stat b, .pr-num span, .pr-dots ~ * h3 {
  font-family: var(--font-head);
}

.h-hero {
  font-size: clamp(42px, 6.4vw, 92px);
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.06;
  margin: 0;
}
.h-stack {
  font-size: clamp(38px, 5.6vw, 76px);
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.08;
  margin: 0;
}
.h-sec {
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.14;
  margin: 0;
}
.lede {
  font-size: clamp(19px, 1.7vw, 27px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.42;
  margin: 0;
}
.body-l { font-size: clamp(16px, 1.15vw, 18px); line-height: 1.6; }

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-dark);
  margin: 0 0 22px;
}
.eyebrow--d { color: var(--grey); }

/* centred section opener — eyebrow over a two-line headline */
.wrap.mid { text-align: center; }
.wrap.mid .h-stack { margin-inline: auto; max-width: 18ch; }
.eyebrow--plain {
  font-size: clamp(15px, 1.25vw, 18px); font-weight: 400;
  letter-spacing: 0; text-transform: none; color: var(--grey-dark);
  margin-bottom: clamp(14px, 1.6vw, 22px);
}

.hl   { color: var(--green-mid); }
.hl-d { color: var(--mint); }

/* reading copy carries the serif; nav, buttons, labels, tags and tables stay grotesque */
.lede,
.prose p, .prose li,
.card p,
.cap-panel p,
.tl-panel p,
.hero-note,
.office address,
.spec td,
.empty p,
.clients-box-body p,
.feat-body, .feat-list li,
.st-beat {
  font-family: var(--font-body);
  letter-spacing: 0;
}
.lede, .st-beat { line-height: 1.5; }
.prose p, .prose li { line-height: 1.72; }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
section { position: relative; }
.pad   { padding: clamp(84px, 11vw, 170px) 0; }
.pad-s { padding: clamp(56px, 7vw, 104px) 0; }

.dark { background: var(--ink); color: var(--paper); }
.dark .eyebrow { color: var(--grey); }
.soft { background: var(--paper-soft); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 18px 0 auto; z-index: 100;
  display: flex; justify-content: center;
  padding: 0 var(--gut);
  pointer-events: none;
}
/* Three separate capsules rather than one wide bar. A 1fr-auto-1fr grid
   keeps the links capsule optically centred whatever the brand and the
   button either side happen to measure. */
.nav-bar {
  width: 100%; max-width: var(--maxw);
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 12px;
}
.nav-cap {
  pointer-events: auto;
  background: rgba(8, 8, 8, 0.80);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border: 1px solid var(--grey-line-d);
  border-radius: 999px;
  transition: background .4s var(--ease);
}
.nav-bar > .brand     { justify-self: start; }
.nav-bar > .lm        { justify-self: center; }
.nav-end {
  justify-self: end; pointer-events: auto;
  display: flex; align-items: center; gap: 10px;
}

.brand { display: flex; align-items: center; flex: none; padding: 10px 22px; }
.brand img {
  display: block; width: auto;
  height: clamp(22px, 2.1vw, 28px);
}

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font);
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .3s var(--ease), background .3s, color .3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-mint { background: var(--mint); color: var(--ink); }
.btn-mint:hover { background: var(--mint-soft); }
.btn-glass {
  background: rgba(255,255,255,.10); color: var(--paper);
  border: 1px solid var(--grey-line-d);
  backdrop-filter: blur(12px);
}
.btn-glass:hover { background: rgba(255,255,255,.18); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--green-deep); }
.btn .arw { transition: transform .3s var(--ease); }
.btn:hover .arw { transform: translateX(3px); }

/* Contact button: the label rides up and out while a second copy rises from
   below, behind a skewed green fill that wipes up over it. */
.btn-wipe {
  position: relative; overflow: hidden; padding: 0;
  height: 44px; display: inline-flex; align-items: stretch;
}
.btn-wipe:hover { transform: none; }                /* the wipe is the motion */
.btn-wipe .wipe-a,
.btn-wipe .wipe-b {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 100%; padding: 0 22px; white-space: nowrap;
  transition: transform .5s var(--ease);
}
.btn-wipe .wipe-a { color: var(--ink); }
.btn-wipe:hover .wipe-a { transform: translateY(-150%); }

.btn-wipe .wipe-b {
  position: absolute; inset: 0; transform: translateY(100%); color: var(--paper);
}
.btn-wipe:hover .wipe-b { transform: translateY(0); }

/* the fill itself — skewed so the leading edge arrives on a diagonal */
.btn-wipe .wipe-b i {
  position: absolute; inset: 0; display: block;
  background: var(--green-deep);
  transform: translateY(100%) skewY(12deg) scaleY(0);
  transition: transform .5s var(--ease);
}
.btn-wipe:hover .wipe-b i { transform: translateY(0) skewY(12deg) scaleY(1.5); }

.btn-wipe .wipe-b > span {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 9px;
}
.btn-wipe:hover .arw { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .btn-wipe .wipe-a, .btn-wipe .wipe-b, .btn-wipe .wipe-b i { transition: none; }
}

/* ---------- liquid morph menu ----------
   The centre capsule is a single "Menu" pill. Opening it grows the pill into
   a panel while a mint flood pours down from the top edge, then the links
   fade in one after another. Each link's letters roll up on hover: every
   character is stacked over a copy of itself and slides up by one line, so
   when it snaps back the swap is invisible. */
.lm {
  --lm-w0: 136px; --lm-h0: 48px;          /* closed pill */
  --lm-w1: 300px;                          /* open panel */
  position: relative; width: var(--lm-w0); height: var(--lm-h0);
}
.nav .lm-box {
  position: absolute; top: 0; left: 50%;
  width: var(--lm-w0); height: var(--lm-h0);
  border-radius: 24px; overflow: hidden;
  transform: translateX(-50%);
  /* closing: the height drops fast, the width follows on the long ease */
  transition: width .8s var(--ease), height .15s var(--ease), border-radius .8s var(--ease),
              transform .25s var(--ease), background .4s var(--ease), border-color .3s var(--ease);
}
.nav .lm-box:not(.is-open):hover { transform: translateX(-50%) scale(1.05); }
.nav .lm-box.is-open {
  width: var(--lm-w1); border-radius: 22px; border-color: var(--mint);
  transition: width .8s var(--ease), height .8s var(--ease), border-radius .8s var(--ease),
              transform .25s var(--ease), background .4s var(--ease), border-color .1s var(--ease);
}

/* the flood: an ellipse twice the box, parked just above it, that drops in */
.lm-flood {
  position: absolute; top: 0; left: 50%;
  width: 200%; height: 200%; border-radius: 50%;
  background: var(--mint); pointer-events: none;
  transform: translate(-50%, -100%);
  transition: transform .8s var(--ease);
}
.is-open .lm-flood { transform: translate(-50%, -10%); transition-delay: .1s; }

.lm-bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  height: calc(var(--lm-h0) - 2px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; background: none; border: 0; cursor: pointer;
  font-family: var(--font); font-size: 14px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--paper);
  transition: padding .8s var(--ease), color .3s var(--ease);
}
.is-open .lm-bar { padding: 0 24px; color: var(--ink); }
.lm-icon { position: relative; width: 24px; height: 24px; flex: none; }
.lm-icon i {
  position: absolute; left: 3px; top: 11.25px;
  width: 18px; height: 1.5px; border-radius: 2px; background: currentColor;
  transition: transform .4s var(--ease);
}
.lm-icon i:first-child { transform: translateY(-3px); }
.lm-icon i:last-child  { transform: translateY(3px); }
.is-open .lm-icon i:first-child { transform: rotate(45deg); }
.is-open .lm-icon i:last-child  { transform: rotate(-45deg); }

/* laid out at the open width all the time, so it can be measured and the
   growing box simply uncovers it */
.lm-panel {
  position: absolute; top: calc(var(--lm-h0) - 2px); left: 50%; z-index: 2;
  width: calc(var(--lm-w1) - 2px); transform: translateX(-50%);
  max-height: calc(100svh - 36px - var(--lm-h0)); overflow-y: auto;
  padding: 10px 28px 26px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  visibility: hidden;
}
.is-open .lm-panel { visibility: visible; }
.lm-link { opacity: 0; transition: opacity .4s var(--ease); }
.is-open .lm-link { opacity: 1; transition-delay: calc(.4s + .06s * var(--i, 0)); }
.lm-link {
  display: block; padding: 12px 0;
  font-family: var(--font); font-weight: 600; font-size: 26px; line-height: 1;
  text-transform: uppercase; letter-spacing: -0.02em; color: var(--ink);
}
.lm-link.here::after {
  content: ''; display: block; width: 22px; height: 2px;
  margin: 6px auto 0; background: currentColor;
}
.lm-sm { display: none; }

.lm-roll { display: inline-flex; }
.lm-ch { display: inline-block; height: 1em; overflow: hidden; }
.lm-ch > span { display: flex; flex-direction: column; transition: transform 0s; }
.lm-ch > span > span { display: block; height: 1em; line-height: 1em; }
.lm-link.roll .lm-ch > span {
  transform: translateY(-50%);
  transition: transform .8s var(--ease) calc(30ms * var(--c, 0));
}
.lm-bar:focus-visible { outline: 2px solid var(--mint); outline-offset: -4px; border-radius: 20px; }
.lm-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- interior page header ---------- */
.pagehead {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink); color: var(--paper);
  /* Top padding only has to clear the fixed nav (~78px) plus breathing
     room; at 19vh the band grew with the window and ran to 75% of the
     viewport, most of it empty. */
  padding: clamp(104px, 12vh, 150px) 0 clamp(44px, 4.5vw, 64px);
  border-bottom: 1px solid var(--grey-line-d);
}
.pagehead .wrap { position: relative; z-index: 2; }

/* photo behind the header band, held well back so the type stays crisp */
.pagehead-bg { position: absolute; inset: 0; z-index: 0; }
.pagehead-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 55%;
  opacity: 1;
}
/* flat tint, not a gradient */
.pagehead.has-bg::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: rgba(8, 8, 8, .56);
}
.pagehead.has-bg .lede { color: rgba(255,255,255,.82); }
.crumb { font-size: 13px; letter-spacing: .04em; color: var(--grey); margin-bottom: 26px; }
.crumb a { color: rgba(255,255,255,.72); }
.crumb a:hover { color: var(--mint); }
.crumb i { font-style: normal; margin: 0 9px; color: rgba(255,255,255,.3); }
.pagehead .lede { margin-top: 24px; max-width: 58ch; color: rgba(255,255,255,.7); }
.pagehead .h-hero { max-width: 18ch; }

/* ---------- long-form content ---------- */
.prose { max-width: 70ch; }
.prose h2 {
  font-size: clamp(24px, 2.6vw, 36px); font-weight: 500; letter-spacing: -0.03em;
  margin: clamp(44px, 5vw, 70px) 0 18px; line-height: 1.15;
}
.prose h3 {
  font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; letter-spacing: -0.02em;
  margin: 32px 0 10px;
}
.prose p { margin: 0 0 18px; font-size: 17px; line-height: 1.68; color: var(--grey-dark); }
.prose p.first { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.5; color: var(--ink); }
.prose ul { margin: 0 0 20px; padding-left: 20px; }
.prose li { font-size: 16.5px; line-height: 1.66; color: var(--grey-dark); margin-bottom: 8px; }
.prose a { color: var(--green-mid); border-bottom: 1px solid rgba(25,94,55,.3); }
.prose a:hover { border-color: var(--green-mid); }

.spec { width: 100%; border-collapse: collapse; margin: 8px 0 26px; }
.spec th, .spec td {
  text-align: left; padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--grey-line); font-size: 15.5px; vertical-align: top;
}
.spec th { font-weight: 500; color: var(--ink); width: 34%; }
.spec td { color: var(--grey-dark); }

.sidebar { border-left: 1px solid var(--grey-line); padding-left: clamp(20px, 2.4vw, 36px); }
.sidebar h4 {
  margin: 0 0 14px; font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--green-mid); font-weight: 500;
}
.sidebar ul { list-style: none; margin: 0 0 30px; padding: 0; }
.sidebar li { border-bottom: 1px solid var(--grey-line); }
.sidebar li a {
  display: block; padding: 12px 0; font-size: 15.5px; color: var(--ink);
  transition: padding-left .3s var(--ease), color .3s;
}
.sidebar li a:hover { padding-left: 8px; color: var(--green-mid); }
.sidebar li a.here { color: var(--green-mid); font-weight: 500; }

/* ---------- cta band ---------- */
.cta-band { background: var(--ink); color: var(--paper); padding: clamp(60px, 8vw, 108px) 0; }
.cta-band .inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { margin: 0; max-width: 20ch; }

/* ---------- empty state ---------- */
.empty {
  border: 1px dashed var(--grey-line); padding: clamp(40px, 6vw, 78px);
  text-align: center; color: var(--grey-dark);
}
.empty b { display: block; font-size: 20px; font-weight: 500; color: var(--ink); margin-bottom: 10px; }

/* ---------- client logo grid ---------- */
.logo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1px; background: var(--grey-line); border: 1px solid var(--grey-line);
}
.logo-grid div { background: var(--paper); aspect-ratio: 3/2; display: grid; place-items: center; padding: 18px; }
.logo-grid img { max-width: 100%; max-height: 100%; width: auto; object-fit: contain; }

@media (max-width: 980px) {
  .sidebar { border-left: 0; border-top: 1px solid var(--grey-line); padding: 28px 0 0; }
}

/* ---------- hero ---------- */
/* hero stays pinned; everything after it scrolls up over the top */
.hero {
  position: sticky; top: 0; z-index: 0;
  height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(112px, 14vh, 168px) 0 clamp(44px, 6vh, 68px);
  background: var(--ink); overflow: hidden;
}
.after-hero {
  position: relative; z-index: 1;
  background: var(--paper);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .95;
  filter: brightness(1.42) contrast(.97) saturate(1.06);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    /* just enough scrim at top and bottom to hold the type, open through the middle */
    linear-gradient(180deg, rgba(8,8,8,.52) 0%, rgba(8,8,8,.06) 30%, rgba(8,8,8,.14) 58%, rgba(8,8,8,.82) 100%),
    radial-gradient(135% 90% at 50% 44%, transparent 46%, rgba(4,5,16,.40) 100%);
}
.hero .wrap { position: relative; z-index: 2; width: 100%; }
/* The headline is sized to fill the band between the nav and the CTA row,
   so there is little slack left to distribute -- space-between handles the
   remainder. The bottom margin keeps the type off the buttons. */
.hero .hero-head { margin-bottom: clamp(24px, 3.6vh, 48px); }

.hero-word {
  font-size: clamp(66px, 13.5vw, 210px);
  font-weight: 600; letter-spacing: -0.055em; line-height: .9;
  color: #f7f9f8;
  margin: 0;
}
.hero-lead {
  margin: 0; max-width: 20ch;
  /* Scales off the viewport WIDTH for measure and the HEIGHT for fit: the
     vh term is what stops a short window from overflowing the hero, which
     has overflow:hidden and would silently clip the CTA row. */
  font-size: clamp(34px, min(7.3vw, calc((100svh - 270px) / 6.3)), 108px);
  font-weight: 600;
  letter-spacing: -0.014em; line-height: 1.04; color: var(--paper);
  text-shadow: 0 2px 34px rgba(4, 5, 16, .6), 0 1px 4px rgba(4, 5, 16, .35);
}
.hero-lead em { font-style: normal; color: var(--mint); }
.hero-note {
  margin: 0; max-width: 28ch; align-self: flex-end;
  font-size: clamp(15px, 1.15vw, 18px); font-weight: 400;
  letter-spacing: -0.005em; line-height: 1.5;
  color: rgba(255, 255, 255, .82);
  text-shadow: 0 1px 14px rgba(4, 5, 16, .65);
}

.hero-foot {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}

.scroll-cue {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.scroll-cue i {
  width: 1px; height: 30px; background: linear-gradient(var(--mint), transparent);
  animation: cue 2s var(--ease) infinite;
}
@keyframes cue { 0%,100% { opacity:.25; transform: scaleY(.5); transform-origin: top; } 50% { opacity:1; transform: scaleY(1); } }

/* ---------- trust ---------- */
.trust-copy { max-width: 22ch; }
.sectors {
  margin-top: 30px; font-size: 13px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--grey-dark);
}

/* ---------- marquee ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.marquee-row { display: flex; width: max-content; animation: slide 46s linear infinite; }
.marquee:hover .marquee-row { animation-play-state: paused; }
.marquee-row > * { flex: none; }
@keyframes slide { to { transform: translateX(-50%); } }
.logo-cell {
  /* block, not grid: a percentage height on a centred grid item does not
     resolve in Chrome, which left the taller logos at natural size */
  display: block;
  width: clamp(150px, 15vw, 210px); height: clamp(96px, 9vw, 124px);
  margin: 0 clamp(10px, 1.4vw, 22px);
  padding: 13px 20px; overflow: hidden;
  background: var(--paper); border: 1px solid var(--grey-line); border-radius: 0;
}
.logo-cell img {
  display: block;
  width: 100%; height: 100%;
  object-fit: contain; object-position: center;   /* whole mark, never cropped */
  transition: transform .35s var(--ease);
}
.logo-cell:hover img { transform: scale(1.06); }

/* the same cell, laid out as a wall on the clients page */
.logo-wall {
  display: grid; gap: clamp(10px, 1.2vw, 16px);
  grid-template-columns: repeat(auto-fill, minmax(clamp(132px, 13vw, 180px), 1fr));
}
.logo-wall .logo-cell { width: auto; margin: 0; height: clamp(84px, 7.5vw, 108px); }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .09s } .rv-d2 { transition-delay: .18s }
.rv-d3 { transition-delay: .27s } .rv-d4 { transition-delay: .36s }

/* word-stack headline */
.stack { margin: 0; }
.stack span { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.stack span > i {
  display: block; font-style: normal;
  transform: translateY(105%); transition: transform 1s var(--ease);
}
.stack.in span > i { transform: none; }
.stack span:nth-child(2) > i { transition-delay: .07s }
.stack span:nth-child(3) > i { transition-delay: .14s }
.stack span:nth-child(4) > i { transition-delay: .21s }
.stack span:nth-child(5) > i { transition-delay: .28s }
.stack span:nth-child(6) > i { transition-delay: .35s }

/* ---------- scrollytell: pinned terrain stage ---------- */
.scrollytell { height: 820vh; position: relative; }
.st-stage {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: grid; place-items: center;
}
.st-terrain { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.st-beats {
  position: relative; z-index: 2; width: 100%; height: 100%;
  pointer-events: none;
}
.st-beat {
  position: absolute; top: clamp(72px, 14vh, 150px);
  left: 0; width: min(560px, 76vw);
  margin: 0; padding: 0 var(--gut);
  font-size: clamp(21px, 2.3vw, 34px); font-weight: 400;
  letter-spacing: -0.025em; line-height: 1.26; color: var(--ink);
  opacity: 0; will-change: transform, opacity;
}
/* All beats sit up in the sky, which is graded to the page colour, so the
   type reads exactly as it does everywhere else on the site. They alternate
   sides tower by tower, opposite the drone. */
.st-beat:nth-child(even) { left: auto; right: 0; text-align: right; }

.st-progress {
  position: absolute; left: var(--gut); right: var(--gut); bottom: clamp(26px, 4vh, 44px);
  height: 1px; background: rgba(8,8,8,.12); z-index: 3;
}
.st-progress i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--green-mid), var(--mint));
  transition: width .1s linear;
}

@media (max-width: 720px) {
  .scrollytell { height: 640vh; }
  .st-beat { width: 88vw; font-size: clamp(19px, 5.4vw, 26px); }
}

@media (prefers-reduced-motion: reduce) {
  /* no pinning, no flow — just read the four lines in order */
  .scrollytell { height: auto; }
  .st-stage { position: static; height: auto; padding: clamp(48px,7vw,96px) 0; display: block; }
  .st-terrain { display: none; }
  .st-beats { height: auto; display: grid; gap: 28px; }
  .st-beat { position: static; opacity: 1; transform: none; width: min(60ch, 92vw); }
  .st-beat:nth-child(even) { bottom: auto; right: auto; text-align: left; }
  .st-progress { display: none; }
}

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 90px); align-items: center; }
.split-top { align-items: start; }

/* ---------- capability list ---------- */
.cap { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(30px, 5vw, 76px); align-items: start; }
.cap-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--grey-line-d); }
.cap-item {
  display: flex; align-items: baseline; gap: 20px;
  padding: 22px 6px; border-bottom: 1px solid var(--grey-line-d);
  cursor: pointer; background: none; border-left: 0; border-right: 0; border-top: 0;
  width: 100%; text-align: left; font-family: var(--font); color: rgba(255,255,255,.52);
  transition: color .35s var(--ease), padding-left .35s var(--ease);
}
.cap-item:hover { color: rgba(255,255,255,.82); padding-left: 14px; }
.cap-item.on { color: var(--paper); }
.cap-num { font-size: 13px; font-weight: 500; color: var(--mint); min-width: 22px; }
.cap-name { font-size: clamp(20px, 2.1vw, 30px); font-weight: 500; letter-spacing: -0.025em; }
.cap-panel {
  position: sticky; top: 120px;
  border: 1px solid var(--grey-line-d); border-radius: 0;
  background: var(--ink-deep);
  min-height: 390px; overflow: hidden; isolation: isolate;
}
/* the photo sits behind the copy, held back far enough to stay legible */
.cap-shot {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  opacity: 0; transform: scale(1.06);
  transition: opacity .7s var(--ease), transform 1.4s var(--ease);
}
.cap-shot.on { opacity: 1; transform: scale(1); }
/* flat tint, not a gradient — just enough to carry white text over a bright photo */
.cap-panel::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: rgba(6, 8, 10, .58);
}
.cap-body {
  position: relative; z-index: 2;
  padding: clamp(26px, 3.4vw, 46px);
}
.cap-panel h3 {
  text-shadow: 0 1px 18px rgba(4,5,16,.7); font-size: clamp(22px, 2.3vw, 32px); font-weight: 500; letter-spacing: -0.03em; margin: 0 0 16px; }
.cap-panel p  { color: rgba(255,255,255,.78); text-shadow: 0 1px 14px rgba(4,5,16,.7); margin: 0 0 22px; font-size: 16px; line-height: 1.62; }
.cap-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.cap-tags li {
  font-size: 12.5px; letter-spacing: .02em; padding: 7px 13px; border-radius: 999px;
  background: rgba(89,222,146,.10); color: var(--mint-soft); border: 1px solid rgba(89,222,146,.22);
}
.cap-fade { animation: fade .5s var(--ease); }

/* tags sitting on a light card, not the dark panel */
.card .cap-tags li {
  background: rgba(25, 94, 55, .07);
  color: var(--green-mid);
  border-color: rgba(25, 94, 55, .20);
}
@keyframes fade { from { opacity: 0; transform: translateY(10px); } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.4vw, 40px); }
.stat { border-top: 1px solid var(--grey-line-d); padding-top: 22px; }
.stat b {
  display: block; font-size: clamp(44px, 6vw, 86px); font-weight: 500;
  letter-spacing: -0.05em; line-height: 1; color: var(--paper);
}
.stat b em { font-style: normal; color: var(--mint); }
.stat span { display: block; margin-top: 10px; font-size: 14px; color: var(--grey); letter-spacing: .01em; }

/* ---------- cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 1.8vw, 26px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 1.8vw, 26px); }
.card {
  border: 1px solid var(--grey-line); border-radius: 0; padding: clamp(24px, 2.6vw, 38px);
  background: var(--paper); transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
  display: flex; flex-direction: column; gap: 14px;
}
.card:hover { transform: translateY(-5px); border-color: rgba(8,8,8,.2); box-shadow: 0 22px 54px -26px rgba(8,8,8,.3); }
.card h3 { font-size: clamp(19px, 1.7vw, 24px); font-weight: 500; letter-spacing: -0.025em; margin: 0; }
.card p  { margin: 0; color: var(--grey-dark); font-size: 15.5px; line-height: 1.62; }
.card-k  { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--green-mid); font-weight: 500; }
/* Text sitting directly on the section: keeps the card's stacking and
   typography, drops the chrome. .card is used widely, so this is a
   modifier rather than a change to the base. */
.card--bare { border: 0; background: none; padding: 0; }
.card--bare:hover { transform: none; box-shadow: none; border-color: transparent; }

.card--media { padding: 0; overflow: hidden; }
.card--media .shot { aspect-ratio: 16/10; overflow: hidden; background: var(--ink); }
.card--media .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card--media:hover .shot img { transform: scale(1.05); }
.card--media .card-in { padding: clamp(22px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 12px; }

/* ---------- product catalogue grid ----------
   Pale panel behind each product, contained not cropped, so instruments of
   very different proportions still line up on a common baseline. */
.pcat { margin-bottom: clamp(38px, 4.5vw, 64px); }
.pcat:last-of-type { margin-bottom: 0; }
.pcat .eyebrow { margin: 0 0 16px; }

/* Rules drawn per cell, not as a background behind 1px gaps: a category with
   three products would otherwise leave a solid grey block in the fourth
   column, which reads as a missing image. */
.pgrid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--grey-line);
  border-left: 1px solid var(--grey-line);
}
.pcard {
  background: var(--paper); display: flex; flex-direction: column;
  border-right: 1px solid var(--grey-line);
  border-bottom: 1px solid var(--grey-line);
}
.pcard-shot {
  aspect-ratio: 1/1; background: var(--paper-mute);
  display: grid; place-items: center; padding: 14%;
}
.pcard-shot img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform .6s var(--ease);
}
.pcard:hover .pcard-shot img { transform: scale(1.05); }
.pcard-in { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 7px; }
.pcard-code {
  font-family: var(--font); font-size: 14.5px; font-weight: 600;
  letter-spacing: -.01em; color: var(--ink);
}
.pcard-in p {
  margin: 0; font-family: var(--font-body);
  font-size: 14px; line-height: 1.5; color: var(--grey-dark);
}
.pcat-note { margin: clamp(30px,3.5vw,46px) 0 0; max-width: 62ch; color: var(--grey-dark); font-size: 16px; line-height: 1.65; }

@media (max-width: 980px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pgrid { grid-template-columns: 1fr; } }

/* ---------- service feature rows ----------
   Name over a green underline, a hairline, then a lettered code beside the
   detail column; image sits opposite. */
.feats { display: flex; flex-direction: column; }
.feat {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 86px); align-items: start;
  padding: clamp(44px, 6vw, 86px) 0;
}
.feat:first-child { padding-top: 0; }
.feat:nth-child(even) .feat-copy { order: 2; }

.feat-copy { display: flex; flex-direction: column; align-items: stretch; }

/* The underline hugs the words rather than the column, so the inline span
   carries the border instead of the heading block. */
.feat-title { margin: 0; line-height: 1.02; }
.feat-title span {
  display: inline-block;
  font-family: var(--font); font-weight: 700;
  font-size: clamp(34px, 4.4vw, 62px); letter-spacing: -.035em;
  color: var(--ink);
  border-bottom: 5px solid var(--mint);
  padding-bottom: 4px;
}
.feat-rule { height: 1px; background: var(--grey-line); margin: clamp(26px,3vw,42px) 0 clamp(22px,2.6vw,34px); }

.feat-grid { display: grid; grid-template-columns: 90px 1fr; gap: 10px; align-items: start; }
.feat-code {
  font-family: var(--font); font-size: 14px; font-weight: 400;
  letter-spacing: .02em; color: var(--grey-dark); padding-top: 2px;
}
.feat-detail { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }

.feat-lead {
  margin: 0; font-family: var(--font); font-weight: 700;
  font-size: clamp(17px, 1.45vw, 20px); line-height: 1.3;
  letter-spacing: -.01em; color: var(--ink); max-width: 24ch;
}
.feat-body {
  margin: 0; font-size: clamp(15.5px, 1.15vw, 17px); line-height: 1.6;
  color: var(--grey-dark); max-width: 46ch;
}
.feat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.feat-list li {
  position: relative; padding-left: 20px;
  font-size: clamp(15px, 1.1vw, 16.5px); line-height: 1.5; color: var(--grey-dark);
}
.feat-list li::before {
  content: '\2022'; position: absolute; left: 4px; top: -1px;
  color: var(--grey-dark); font-size: 15px;
}

.feat-shot { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--ink); }
.feat-shot > img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.feat:hover .feat-shot > img { transform: scale(1.04); }

@media (max-width: 860px) {
  .feat { grid-template-columns: 1fr; gap: 28px; }
  .feat:nth-child(even) .feat-copy { order: 0; }
  .feat-grid { grid-template-columns: 56px 1fr; }
}
}

/* ---------- figure ---------- */
.fig { border-radius: 0; overflow: hidden; background: var(--ink); position: relative; }
.fig img { width: 100%; height: 100%; object-fit: cover; }
.fig-tall { aspect-ratio: 4/5; }
.fig-wide { aspect-ratio: 16/9; }
.fig-cap {
  position: absolute; left: 20px; bottom: 18px; z-index: 2;
  font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.88); background: rgba(8,8,8,.52);
  backdrop-filter: blur(10px); padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--grey-line-d);
}

/* placeholder where a real photograph should go — deliberately empty rather
   than filled with a generated stand-in */
.fig.is-blank { background: var(--paper-soft); border: 1px dashed var(--grey-line); }

/* ---------- 360 spin viewer ----------
   A turntable video scrubbed by drag rather than played. The video is never
   shown with controls: horizontal pointer movement maps to currentTime, so
   one full drag across the stage is one full revolution of the product. */
.spin {
  position: relative; background: var(--paper); overflow: hidden;
  aspect-ratio: 1/1; border-radius: 0;
  touch-action: pan-y;            /* keep vertical page scroll, claim horizontal */
  cursor: grab; user-select: none; -webkit-user-select: none;
}
.spin.is-drag { cursor: grabbing; }
.spin video {
  width: 100%; height: 100%; object-fit: cover;
  display: block; pointer-events: none;
  opacity: 0; transition: opacity .5s var(--ease);
}
.spin.is-ready video { opacity: 1; }

/* Loading state — a slow sweep rather than a spinner, so it reads as the
   product arriving rather than as an error. */
.spin::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg,
    transparent 30%, rgba(8, 8, 8, .055) 50%, transparent 70%);
  background-size: 220% 100%;
  animation: spin-wait 1.7s linear infinite;
  transition: opacity .4s var(--ease);
}
.spin.is-ready::before { opacity: 0; animation: none; }
@keyframes spin-wait { from { background-position: 120% 0 } to { background-position: -120% 0 } }

.spin-hint {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  z-index: 3; pointer-events: none;
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font); font-size: 11.5px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
  background: rgba(8, 8, 8, .5); backdrop-filter: blur(10px);
  border: 1px solid var(--grey-line-d); padding: 9px 16px;
  opacity: 0; transition: opacity .45s var(--ease);
}
.spin.is-ready .spin-hint { opacity: 1; }
.spin.is-touched .spin-hint { opacity: 0; }
.spin-hint i {
  width: 16px; height: 1px; background: var(--mint); position: relative;
  animation: spin-nudge 2.4s var(--ease) infinite;
}
.spin-hint i::before, .spin-hint i::after {
  content: ''; position: absolute; top: -2.5px; width: 5px; height: 5px;
  border-top: 1px solid var(--mint); border-right: 1px solid var(--mint);
}
.spin-hint i::before { left: -1px; transform: rotate(-135deg); }
.spin-hint i::after  { right: -1px; transform: rotate(45deg); }
@keyframes spin-nudge {
  0%, 100% { transform: translateX(-3px) } 50% { transform: translateX(3px) }
}

/* The caption and the drag hint both sat along the bottom edge and collided
   at narrower widths; the caption moves up out of its way. */
.spin .fig-cap { top: 18px; bottom: auto; }

.spin:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .spin::before { animation: none; }
  .spin-hint i { animation: none; }
}
.fig-blank {
  width: 100%; height: 100%; display: grid; place-items: center; text-align: center;
  padding: 24px;
}
.fig-blank span {
  font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--grey-dark);
}
.fig-blank em {
  display: block; margin-top: 10px; font-style: normal; font-size: 13px;
  font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--grey);
  font-family: var(--font-body);
}
.dark .fig.is-blank { background: rgba(255,255,255,.02); border-color: var(--grey-line-d); }

/* ---------- readout (thermal panel) ---------- */
.readout {
  border: 1px solid var(--grey-line-d); border-radius: 0; overflow: hidden;
  background: rgba(255,255,255,.03);
}
.readout-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 20px; border-bottom: 1px solid var(--grey-line-d);
  font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); display: inline-block; margin-right: 9px; animation: pulse 2.2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(89,222,146,.5); } 50% { opacity: .55; box-shadow: 0 0 0 7px rgba(89,222,146,0); } }
.readout-rows { padding: 6px 20px 16px; }
.ro {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 15px;
}
.ro:last-child { border-bottom: 0; }
.ro span { color: rgba(255,255,255,.66); }
.ro b { font-weight: 500; font-size: 17px; letter-spacing: -0.01em; }
.ro .crit { color: #ff9d6b; }
.ro .ok   { color: var(--mint); }

/* ---------- home: link through to the full client list ---------- */
.clients-box {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  margin-top: clamp(36px, 4.5vw, 62px);
  max-width: 760px; padding: clamp(26px, 3vw, 40px);
  border: 1px solid var(--grey-line); background: var(--paper);
  transition: transform .45s var(--ease), border-color .45s, box-shadow .45s;
}
.clients-box:hover {
  transform: translateY(-4px); border-color: rgba(8,8,8,.26);
  box-shadow: 0 22px 54px -28px rgba(8,8,8,.3);
}
.clients-box-body h3 {
  margin: 10px 0 12px; font-size: clamp(20px, 2vw, 27px);
  font-weight: 500; letter-spacing: -0.025em; line-height: 1.2;
}
.clients-box-body p {
  margin: 0; font-size: 15px; line-height: 1.6; color: var(--grey-dark);
}
.clients-box-go {
  flex: none; display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--mint); color: var(--ink); font-size: 20px;
  transition: transform .4s var(--ease), background .4s;
}
.clients-box:hover .clients-box-go { transform: translateX(5px); background: var(--mint-soft); }

@media (max-width: 620px) {
  .clients-box { flex-direction: column; align-items: flex-start; gap: 22px; }
}

/* ---------- Karnataka project map ---------- */
.has-kmap { position: relative; overflow: hidden; }
.kmap {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  display: flex; justify-content: flex-end; align-items: center;
}
.kmap-inner {
  position: relative;
  height: min(88vh, 1060px);         /* bounded — not tied to section height */
  aspect-ratio: 760 / 1207;
  margin-right: clamp(10px, 4vw, 70px);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 68%, transparent 97%);
  mask-image: radial-gradient(ellipse at 50% 50%, #000 68%, transparent 97%);
}
.kmap-inner > img {
  width: 100%; height: 100%; object-fit: contain;
  opacity: .62;            /* fade the dots only, so pins stay full strength */
}

.kpin { position: absolute; transform: translate(-50%, -50%); }
.kpin i {
  display: block; width: 14px; height: 14px; border-radius: 50%;
  background: var(--green-deep); box-shadow: 0 0 0 5px rgba(0,69,0,.15), 0 2px 10px rgba(0,69,0,.3);
}
.kpin i::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--green);
  animation: kping 3.2s cubic-bezier(.22,1,.36,1) infinite;
}
.kpin i::after { animation-delay: var(--d, 0s); }
@keyframes kping {
  0%   { transform: scale(.6); opacity: .9 }
  70%  { transform: scale(2.6); opacity: 0 }
  100% { transform: scale(2.6); opacity: 0 }
}
.kpin b {
  position: absolute; left: 23px; top: 50%;
  transform: translateY(calc(-50% + var(--ly, 0px)));
  font-size: 16px; font-weight: 600; letter-spacing: -.015em;
  color: var(--ink); white-space: nowrap;
  /* soft paper halo so names stay legible over the dot field */
  text-shadow: 0 0 7px var(--paper), 0 0 14px var(--paper), 0 0 3px var(--paper);
}
.kpin b em {
  display: block; font-style: normal; font-size: 13px;
  font-weight: 500; color: #333; margin-top: 3px;
  text-shadow: 0 0 7px var(--paper), 0 0 14px var(--paper), 0 0 3px var(--paper);
}
/* pins near the right edge label inward instead */
.kpin--left b { left: auto; right: 23px; text-align: right; }

@media (max-width: 1100px) {
  .kmap-inner { height: min(62vh, 640px); margin-right: clamp(6px, 2vw, 24px); }
  .kmap-inner > img { opacity: .5; }
  .kpin b { display: none; }
}
@media (prefers-reduced-motion: reduce) { .kpin i::after { animation: none; opacity: 0 } }

/* ---------- PRIDE: values travel sideways ---------- */
.pride { position: relative; height: 520vh; background: var(--paper-soft); }
.pride-stage {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(96px, 14vh, 160px) 0 clamp(54px, 8vh, 96px);
}
.pride-head {
  max-width: var(--maxw); width: 100%; margin: 0 auto clamp(26px, 4vh, 54px);
  padding: 0 var(--gut);
}
.pride-head .eyebrow { margin: 0 0 10px; }
.pride-word {
  margin: 0; font-size: clamp(30px, 3.6vw, 50px); font-weight: 700;
  letter-spacing: .06em; color: var(--ink);
}

/* the track slides left as you scroll down */
.pr-track {
  display: flex; align-items: flex-start;
  will-change: transform;
}
.pr-slide {
  flex: none; width: min(560px, 74vw);
  padding: 0 clamp(26px, 4vw, 70px);
  border-left: 1px solid var(--grey-line);
  opacity: .32; transition: opacity .5s var(--ease);
}
.pr-slide.on { opacity: 1; }
.pr-num {
  display: flex; align-items: baseline; gap: 12px; margin: 0 0 18px;
}
.pr-num b {
  font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--green-mid);
}
.pr-num span {
  font-size: clamp(30px, 3.4vw, 46px); font-weight: 700;
  letter-spacing: -.02em; color: rgba(8,8,8,.16); line-height: 1;
}
.pr-slide.on .pr-num span { color: var(--green-deep); }
.pr-slide h3 {
  margin: 0 0 14px; font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 600; letter-spacing: -.03em; line-height: 1.12;
}
.pr-body {
  margin: 0; font-family: var(--font-body); letter-spacing: 0;
  font-size: clamp(15px, 1.2vw, 18px); line-height: 1.65; color: var(--grey-dark);
}

/* progress dots */
.pr-dots {
  display: flex; gap: 9px; margin: clamp(30px, 5vh, 60px) auto 0;
  max-width: var(--maxw); width: 100%; padding: 0 var(--gut);
}
.pr-dots i {
  width: 34px; height: 3px; background: rgba(8,8,8,.13);
  transition: background .4s var(--ease);
}
.pr-dots i.on { background: var(--green-deep); }

@media (max-width: 760px) {
  .pride { height: 440vh; }
  .pr-slide { width: 86vw; padding: 0 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .pride { height: auto; }
  .pride-stage { position: static; height: auto; display: block; padding: clamp(48px,7vw,90px) 0; }
  .pr-track { flex-direction: column; transform: none !important; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
  .pr-slide { width: auto; opacity: 1; border-left: 0; padding: 0 0 40px; }
  .pr-slide .pr-num span { color: var(--green-deep); }
  .pr-dots { display: none; }
}

/* ---------- history arc (modelled on hylight.aero/about-us) ---------- */
.tl { position: relative; height: 620vh; background: var(--ink); color: var(--paper); }
.tl-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; z-index: 2; margin-top: -100svh; }

/* The banded ring lives outside the clipped stage so it can break out of the
   dark section and ride up over the light one above it, the way hylight's does.
   clip-path with a negative top inset lets it bleed upward while still being
   cut off cleanly at the section's bottom edge. */
.tl-band {
  position: sticky; top: 0; height: 100svh; z-index: 1;
  clip-path: inset(-44vh 0 0 0);
  pointer-events: none;
}
/* the section above gets matching clear space, so the ring rides over
   whitespace rather than over the copy */
.tl-lead { padding-bottom: calc(44vh + clamp(30px, 4vw, 70px)) !important; }

.tl-band i {
  position: absolute; border-radius: 50%; top: 50%; left: 0;
  transform: translateY(-50%);
}
/* Four concentric discs stacked largest-first give three visible bands:
   near-black, a wide mid-grey, then dark again. All fills are opaque so the
   ring reads the same over the white section as over the dark one. */
.tl-band .b1 { background: #080808; border: 1px solid rgba(255,255,255,.20); }
.tl-band .b2 { background: #1d1d1d; }
.tl-band .b3 { background: #0e0e0e; }
.tl-band .b4 { background: #080808; border: 1px solid rgba(255,255,255,.14); }

.tl-arc { position: absolute; inset: 0; }

/* years ride an inner radius, rotated along the arc */
.tl-year {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  font-size: clamp(20px, 2.1vw, 30px); font-weight: 600; letter-spacing: -.02em;
  color: rgba(255,255,255,.17);
  transform-origin: center; will-change: transform, opacity;
}
/* square markers sit on the band's outer edge */
.tl-dot {
  position: absolute; left: 0; top: 0; width: 8px; height: 8px;
  background: rgba(255,255,255,.55);
  transform-origin: center; will-change: transform, background;
}
.tl-dot.on { background: var(--mint); width: 13px; height: 13px; }

/* green rule from the upright year across to the active marker */
.tl-rule {
  position: absolute; top: 50%; height: 2px; background: var(--mint);
  transform: translateY(-50%); transform-origin: left center;
}

/* the active year, upright and white, at a fixed point on the left */
.tl-now {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: clamp(28px, 2.9vw, 42px); font-weight: 600; letter-spacing: -.025em;
  color: var(--paper); white-space: nowrap;
}

/* right-hand panel */
.tl-panels {
  position: absolute; top: 50%; transform: translateY(-50%);
  right: clamp(20px, 5.5vw, 100px); width: min(44%, 660px);
}
.tl-panel {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  transform: translateY(16px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.tl-panel.on { opacity: 1; transform: none; position: relative; pointer-events: auto; }
.tl-panel h3 {
  margin: 0 0 16px; font-size: clamp(26px, 3.3vw, 46px);
  font-weight: 600; letter-spacing: -.03em; line-height: 1.1;
}
.tl-panel p {
  margin: 0 0 26px; font-size: clamp(15px, 1.25vw, 18.5px);
  line-height: 1.6; color: rgba(255,255,255,.7); max-width: 44ch;
}
.tl-shot { aspect-ratio: 16/9; overflow: hidden; background: var(--ink-deep); }
.tl-shot img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  /* no room for the ring beside the panel — keep the year, marker and copy */
  .tl { height: 480vh; }
  .tl-arc, .tl-band, .tl-rule { display: none; }
  .tl-now { top: 15%; left: 6% !important; transform: none; font-size: clamp(30px, 9vw, 46px); }
  .tl-panels { right: auto; left: 6%; width: 88%; top: 27%; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tl { height: auto; }
  .tl-stage { position: static; height: auto; padding: clamp(48px,7vw,90px) 0; }
  .tl-arc, .tl-band, .tl-now, .tl-rule { display: none; }
  .tl-panels { position: static; transform: none; width: min(60ch, 88%); margin: 0 auto; }
  .tl-panel { position: static; opacity: 1; transform: none; margin-bottom: 56px; }
}

/* ---------- client wall: a ring of every customer that opens into the grid ----------
   Static, it is just the logo wall. With script (.cw--live) the run becomes a
   tall scroll track with a pinned stage, and app.js flies each card from its
   place on the ring to its cell in the grid. */
.cw { padding-top: clamp(56px, 7vw, 104px); }
.cw-intro { margin-bottom: clamp(28px, 3.5vw, 44px); }
.cw-stage { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut) clamp(56px, 7vw, 104px); }
.cw-label { display: none; }
.cw-vh { position: absolute; top: 0; left: 0; width: 0; height: 100svh; visibility: hidden; }   /* measures a screen */

/* The stage is as tall as the finished grid (--cw-grid-h, set by app.js), at
   least a screen; the run adds a long track on top so the opening is unhurried.
   Sticky at top: 0, a stage taller than the screen pins with its top showing,
   and the rest of the grid scrolls into view once the run ends. */
.cw--live .cw-run { height: calc(max(100svh, var(--cw-grid-h, 100svh)) + 350svh); }
.cw--live .cw-stage {
  position: sticky; top: 0; height: max(100svh, var(--cw-grid-h, 100svh));
  max-width: none; padding: 0; overflow: hidden;
}
.cw--live .cw-cards { display: block; position: absolute; inset: 0; }
.cw--live .cw-card {
  position: absolute; left: 0; top: 0; margin: 0;
  transform-origin: 50% 50%; will-change: transform;
}
.cw--live .cw-label {
  display: block; position: absolute; left: 0; right: 0; margin: 0;
  transform: translateY(-50%); text-align: center; pointer-events: none;
  font-family: var(--font); font-weight: 600; letter-spacing: -.035em; line-height: 1;
  font-size: clamp(26px, 3.4vw, 46px); color: var(--ink);
}

@media (max-width: 620px) { .cw .logo-cell { padding: 7px 9px; } }   /* small cells: give the logo the room */

/* ---------- client groups ---------- */
.cg { border-top: 1px solid var(--grey-line); padding: 26px 0; display: grid; grid-template-columns: 0.42fr 1fr; gap: clamp(16px, 3vw, 48px); }
.cg h4 { margin: 0; font-size: 14px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--green-mid); }
.cg ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.cg li { font-size: 15.5px; color: var(--ink); background: var(--paper); border: 1px solid var(--grey-line); padding: 7px 14px; border-radius: 999px; }

/* ---------- contact ---------- */
.offices { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 44px); }
.office {
  border: 1px solid var(--grey-line-d); border-radius: 0;
  padding: clamp(24px, 2.8vw, 38px);
  display: flex; flex-direction: column;     /* so the map can sit at the foot */
}
.office .ln { align-self: flex-start; }
/* pushed to the bottom of the block, so both maps align however much
   contact detail sits above them */
.office-map-wrap { margin-top: auto; padding-top: clamp(22px, 3vw, 32px); }
.office h4 { margin: 0 0 6px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--mint); font-weight: 500; }
.office address { font-style: normal; color: rgba(255,255,255,.72); line-height: 1.68; font-size: 16px; margin: 14px 0 18px; }
.office a.ln { color: var(--paper); border-bottom: 1px solid rgba(255,255,255,.28); padding-bottom: 2px; font-size: 15.5px; transition: border-color .3s, color .3s; }
.office a.ln:hover { color: var(--mint); border-color: var(--mint); }

/* office map: one clickable panel that opens Google Maps */
.office-map {
  position: relative; display: block;
  aspect-ratio: 16/10; overflow: hidden;
  background: var(--paper-mute);
  border: 1px solid var(--grey-line);
  transition: border-color .35s, transform .4s var(--ease);
}
.office-map:hover { border-color: rgba(8,8,8,.3); transform: translateY(-2px); }
.office-map iframe {
  width: 100%; height: 100%; border: 0; display: block;
  pointer-events: none;                 /* the panel is the link, not the map */
}
.office-map-go {
  position: absolute; left: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; background: var(--paper); color: var(--ink);
  font-size: 12.5px; font-weight: 500; letter-spacing: -.01em;
  box-shadow: 0 6px 18px -8px rgba(8,8,8,.45);
}
.office-map-go svg { width: 11px; height: 11px; }
.office-map:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* the home page's contact block is dark */
.dark .office-map { background: #111; border-color: var(--grey-line-d); }
.dark .office-map:hover { border-color: rgba(255,255,255,.3); }

.mailgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--grey-line-d); border: 1px solid var(--grey-line-d); border-radius: 0; overflow: hidden; }
.mailgrid div { background: var(--ink); padding: 22px; }
.mailgrid span { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); margin-bottom: 8px; }
.mailgrid a { font-size: 15px; color: rgba(255,255,255,.88); word-break: break-all; }
.mailgrid a:hover { color: var(--mint); }

/* ---------- footer ---------- */
/* logo.png is the supplied GIF with its white background keyed out */
.foot-logo {
  display: inline-block; margin: 0 0 clamp(26px, 4vw, 44px);
  transition: transform .4s var(--ease);
}
.foot-logo:hover { transform: translateY(-2px); }
.foot-logo img {
  display: block; width: auto; height: clamp(38px, 3.8vw, 52px);
}

.foot-word {
  font-size: clamp(42px, 8.6vw, 142px); font-weight: 600;
  letter-spacing: -0.055em; line-height: .96; margin: 0;
  color: rgba(245,247,246,.9);
}
.foot-word em { font-style: normal; color: var(--green); }
.foot-cols {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 48px);
  margin-top: clamp(48px, 7vw, 92px); padding-top: clamp(34px, 4vw, 54px);
  border-top: 1px solid var(--grey-line-d);
}
.foot-cols h5 {
  margin: 0 0 16px; font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--mint); font-weight: 500;
}
.foot-cols a {
  display: block; font-size: 15px; color: rgba(255,255,255,.7);
  padding: 5px 0; transition: color .25s, padding-left .25s var(--ease);
}
.foot-cols a:hover { color: var(--mint); padding-left: 5px; }
.foot-cols p { margin: 0 0 12px; font-size: 15px; color: rgba(255,255,255,.55); line-height: 1.6; }

.article-grid { grid-template-columns: 1.6fr 0.8fr; }
@media (max-width: 980px) {
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 560px) { .foot-cols { grid-template-columns: 1fr; } }

.foot-bar {
  margin-top: clamp(30px, 4vw, 48px); padding-top: 26px;
  border-top: 1px solid var(--grey-line-d);
  display: flex; justify-content: space-between; gap: 22px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--grey);
}
.foot-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-made { color: rgba(255,255,255,.45); }
.foot-nav a:hover { color: var(--mint); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .split, .cap, .offices { grid-template-columns: 1fr; }
  .cap-panel { position: relative; min-height: 300px; }   /* relative, not static — the photo is absolutely positioned inside it */
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .mailgrid { grid-template-columns: repeat(2, 1fr); }
  .cg { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 620px) {
  .grid-3, .grid-2, .stats, .mailgrid { grid-template-columns: 1fr; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  /* On a narrow screen the 20ch cap never binds -- the viewport does -- so
     the line count climbs and the desktop vw scale leaves the headline tiny
     with a void beneath it. Scale harder off width here, still capped by the
     available height (divided by the larger line count narrow screens give). */
  .hero-lead {
    max-width: none;
    font-size: clamp(32px, min(16vw, calc((100svh - 250px) / 9.3)), 72px);
  }
  .scroll-cue { display: none; }
  .brand { padding: 9px 16px; }
  /* no room for three capsules: Contact moves into the menu, and the pill
     sits at the right edge and opens leftwards */
  .nav-end { display: none; }
  .nav-bar > .lm { grid-column: 3; justify-self: end; }
  .lm { --lm-w1: min(300px, calc(100vw - 2 * var(--gut))); }
  .nav .lm-box, .nav .lm-box:not(.is-open):hover { left: auto; right: 0; transform: none; }
  .lm-panel { left: auto; right: 0; transform: none; }
  .lm-sm { display: block; }
  .btn { font-size: 14px; padding: 11px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
  .stack span > i { transform: none; }
}
