/* ==========================================================================
   Shree Planning & Structural Consultants — spscindia.com
   Hand-written CSS. No framework, no build step.
   Brand: #25669A (logo blue) / #99999A (logo grey)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand — sampled directly from logo.png */
  --brand:        #25669A;
  --brand-deep:   #1B4E77;
  --brand-dark:   #12354F;
  --brand-light:  #4A8BC2;
  --brand-tint:   #E8F0F7;
  --brand-grey:   #99999A;

  /* Ground */
  --ink:          #10161C;
  --ink-2:        #18222B;
  --navy:         #0E2637;
  --paper:        #F6F4F1;
  --paper-2:      #EFEBE6;
  --white:        #FFFFFF;

  /* Text */
  --text:         #1A1F24;
  --text-muted:   #5F676E;
  --text-faint:   #8B9299;
  --text-invert:  #F2EFEA;
  --text-invert-muted: rgba(242,239,234,.66);

  /* Lines */
  --line:         #DFD9D2;
  --line-strong:  #C9C1B8;
  --line-invert:  rgba(255,255,255,.14);

  /* Type */
  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Space */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 24px;  --sp-6: 32px;  --sp-7: 48px;  --sp-8: 64px;
  --sp-9: 96px;  --sp-10: 128px;

  /* Radius */
  --r-sm: 8px;  --r-md: 14px;  --r-lg: 22px;  --r-xl: 32px;  --r-pill: 999px;

  /* Shell */
  --gutter: 24px;
  --maxw: 1400px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

@media (min-width: 900px) {
  :root { --gutter: 40px; }
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

html:focus-within { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: "kern" 1, "liga" 1, "tnum" 1;
}

img, video, svg { display: block; max-width: 100%; height: auto; }
/* Images are wrapped in <picture> for the WebP sources. `display: contents`
   removes the wrapper from the box tree so every existing layout rule still
   applies to the <img> itself. */
picture { display: contents; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }

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

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

.skip-link {
  position: absolute; top: -100px; left: var(--gutter);
  z-index: 999; background: var(--brand); color: #fff;
  padding: 12px 20px; border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-size: .875rem; font-weight: 600;
}
.skip-link:focus { top: 0; }

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

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(56px, 9vw, 120px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--dark { background: var(--ink); color: var(--text-invert); }
.section--navy { background: var(--navy); color: var(--text-invert); }
.section--paper2 { background: var(--paper-2); }

.section--dark .lede,
.section--navy .lede { color: var(--text-invert-muted); }

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.display em { font-style: italic; }

.d-xxl { font-size: clamp(3rem, 11vw, 8.5rem); }
.d-xl  { font-size: clamp(2.6rem, 7.5vw, 5.5rem); }
.d-lg  { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.d-md  { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }

/* Small caps section label with leading dot — from reference */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex: none;
}
.section--dark .eyebrow,
.section--navy .eyebrow { color: var(--text-invert-muted); }
.section--dark .eyebrow::before,
.section--navy .eyebrow::before { background: var(--brand-light); }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--text-muted);
  text-wrap: pretty;
}

.body-copy { color: var(--text-muted); text-wrap: pretty; }
.body-copy + .body-copy { margin-top: 1em; }

.tech-label {
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brand);
}

/* --------------------------------------------------------------------------
   5. Buttons — pill with circular arrow badge (reference)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 7px 7px 7px 26px;
  border-radius: var(--r-pill);
  font-size: .9rem;
  font-weight: 500;
  background: var(--ink);
  color: #fff;
  transition: background .3s var(--ease), transform .3s var(--ease);
  white-space: nowrap;
}
.btn__ico {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  display: grid; place-items: center;
  flex: none;
  transition: transform .35s var(--ease-out);
}
.btn__ico svg { width: 15px; height: 15px; }
.btn:hover { background: var(--brand); }
.btn:hover .btn__ico { transform: translateX(3px); }

.btn--brand { background: var(--brand); }
.btn--brand:hover { background: var(--brand-deep); }

.btn--light { background: #fff; color: var(--ink); }
.btn--light .btn__ico { background: var(--ink); color: #fff; }
.btn--light:hover { background: var(--brand); color: #fff; }
.btn--light:hover .btn__ico { background: #fff; color: var(--brand); }

.btn--ghost {
  background: transparent;
  color: currentColor;
  border: 1px solid var(--line-strong);
  padding-left: 24px;
}
.btn--ghost .btn__ico { background: var(--ink); color: #fff; }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--ghost:hover .btn__ico { background: #fff; color: var(--ink); }

.section--dark .btn--ghost,
.section--navy .btn--ghost { border-color: var(--line-invert); }
.section--dark .btn--ghost .btn__ico,
.section--navy .btn--ghost .btn__ico { background: #fff; color: var(--ink); }
.section--dark .btn--ghost:hover,
.section--navy .btn--ghost:hover { background: #fff; color: var(--ink); }

/* Text link with underline sweep */
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .9rem; font-weight: 500;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: color .25s var(--ease), border-color .25s var(--ease), gap .25s var(--ease);
}
.link-arrow:hover { color: var(--brand); border-color: var(--brand); gap: 13px; }
.link-arrow svg { width: 13px; height: 13px; }

/* --------------------------------------------------------------------------
   6. Header / Nav — floating pill (reference)
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 16px var(--gutter);
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-stuck {
  background: rgba(246,244,241,.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 10px;
}

/* Over a video hero the header floats on the footage: no plate, white type.
   Once scrolled past it, .is-stuck takes over and restores the light bar. */
/* Now the hero images are brighter, the wordmark can land on pale sky —
   a shadow keeps it readable without darkening the photo again. */
.site-header--over-media:not(.is-stuck) .brand__name,
.site-header--over-media:not(.is-stuck) .brand__sub {
  text-shadow: 0 1px 12px rgba(8,12,16,.85), 0 0 4px rgba(8,12,16,.6);
}
.site-header--over-media:not(.is-stuck) .brand__name { color: #fff; }
.site-header--over-media:not(.is-stuck) .brand__sub  { color: rgba(255,255,255,.82); }
.site-header--over-media:not(.is-stuck) .brand img   { filter: brightness(0) invert(1); }
.site-header--over-media:not(.is-stuck) .nav__menu {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
  box-shadow: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-header--over-media:not(.is-stuck) .nav__menu a { color: rgba(255,255,255,.82); }
.site-header--over-media:not(.is-stuck) .nav__menu a:hover {
  color: #fff; background: rgba(255,255,255,.16);
}
.site-header--over-media:not(.is-stuck) .nav__menu a[aria-current="page"] {
  background: #fff; color: var(--ink);
}
.site-header--over-media:not(.is-stuck) .nav__toggle {
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav {
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}

.brand { display: flex; align-items: center; gap: 11px; flex: none; min-width: 0; }
.brand img { width: 38px; height: auto; flex: none; }
.brand__text { line-height: 1.1; min-width: 0; }
.brand__name,
.brand__sub {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(.92rem, 1.5vw, 1.12rem);
  letter-spacing: -.005em;
  white-space: nowrap;
  color: var(--ink);
  transition: color .35s var(--ease);
}
.brand__sub { color: var(--brand); }

/* Very narrow screens: mark only, full name available to assistive tech */
@media (max-width: 419px) {
  .brand__text {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
}

/* Desktop nav pill */
.nav__menu {
  display: none;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0,0,0,.05);
  border-radius: var(--r-pill);
  padding: 5px;
  box-shadow: 0 4px 24px rgba(16,22,28,.07);
}
.nav__menu a {
  padding: 9px 18px;
  border-radius: var(--r-pill);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.nav__menu a:hover { color: var(--ink); background: rgba(0,0,0,.04); }
.nav__menu a[aria-current="page"] { background: var(--ink); color: #fff; }

@media (min-width: 1000px) { .nav__menu { display: flex; } }

.nav__cta { display: none; flex: none; }
@media (min-width: 1000px) { .nav__cta { display: inline-flex; } }

/* Hamburger */
.nav__toggle {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--ink);
  display: grid; place-items: center;
  flex: none;
}
.nav__toggle span {
  display: block; width: 17px; height: 1.5px;
  background: #fff; border-radius: 2px;
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.nav__toggle span + span { margin-top: 4.5px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (min-width: 1000px) { .nav__toggle { display: none; } }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0;
  z-index: 99;
  background: var(--ink);
  color: var(--text-invert);
  padding: 100px var(--gutter) var(--sp-7);
  display: flex; flex-direction: column;
  gap: var(--sp-6);
  transform: translateY(-100%);
  transition: transform .55s var(--ease-out);
  overflow-y: auto;
}
.drawer.is-open { transform: translateY(0); }
.drawer a.drawer__link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 3rem);
  line-height: 1.15;
  border-bottom: 1px solid var(--line-invert);
  padding-block: 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.drawer a.drawer__link:hover { color: var(--brand-light); }
.drawer__meta { margin-top: auto; font-size: .875rem; color: var(--text-invert-muted); }
.drawer__meta a { color: #fff; }
body.nav-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   7. Hero — full-bleed rounded media card (reference)
   -------------------------------------------------------------------------- */
/* Full-bleed: the footage runs edge to edge and all the way to the very top
   of the page, with the header floating over it. */
.hero { padding: 0; max-width: none; margin: 0; }

.hero__frame {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  min-height: 600px;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
}

/* --- Four-up reel: the clips run side by side, equally spaced ------------- */
.hero__reel {
  position: absolute; inset: 0; z-index: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
@media (max-width: 780px) {
  .hero__reel { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); }

  /* In the 2x2 layout the TOP row's captions sit mid-screen, which is exactly
     where the hero copy lands. Drop the supporting paragraph and pull the
     captions down to the tile edge so the two can never collide. */
  .hero__aside { display: none; }
  .reel__meta { padding-bottom: 14px; }
  .reel__cue { top: auto; bottom: 52px; }
  /* Smaller display size here too: on a narrow phone the headline wraps to a
     third line, and at the full clamp that would reach the captions. */
  .hero .d-xxl { font-size: clamp(2.4rem, 9vw, 3.6rem); }
  .hero__body { padding-top: clamp(88px, 11vh, 116px); }
}

.reel {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
  isolation: isolate;
  cursor: pointer;
}
.reel video,
.reel img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out), filter .5s var(--ease);
  filter: saturate(.94) brightness(.9);
}
/* The column being pointed at lifts out of the row. */
.reel.is-playing video,
.reel.is-playing img { filter: saturate(1.04) brightness(1.04); transform: scale(1.03); }

/* Bottom-only gradient: just enough to seat the caption, nothing more. */
.reel::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(8,12,16,.88) 0%, rgba(8,12,16,.3) 22%, rgba(8,12,16,0) 44%);
  pointer-events: none;
  transition: opacity .45s var(--ease);
}
.reel.is-playing::after { opacity: .78; }

.reel__meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 0 clamp(12px, 1.4vw, 20px) clamp(78px, 9vh, 104px);
  color: #fff;
  pointer-events: none;
}
.reel__name {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.35vw, 1.45rem);
  line-height: 1.12;
  letter-spacing: -.01em;
  text-shadow: 0 1px 12px rgba(8,12,16,.8);
}
.reel__loc {
  display: flex; align-items: center; gap: 7px;
  margin-top: 6px;
  font-size: clamp(.66rem, .78vw, .78rem);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  text-shadow: 0 1px 10px rgba(8,12,16,.8);
}
.reel__loc::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--brand-light); flex: none;
}

/* Small play affordance, hidden while that clip is running */
.reel__cue {
  position: absolute; top: clamp(76px, 9vh, 104px); left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(8,12,16,.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  display: grid; place-items: center;
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.reel:hover .reel__cue { opacity: 0; }
.reel.is-playing .reel__cue { opacity: 0; }
@media (hover: none) {
  .reel__cue { opacity: .9; }
  .reel.is-playing .reel__cue { opacity: 0; }
}
.reel__cue svg { width: 14px; height: 14px; margin-left: 2px; }

/* Scrim for the headline: a light wash across the top for the header, plus a
   stronger fade on the left where the type actually sits — so the right-hand
   clips stay bright instead of the whole reel being dimmed. */
.hero__frame::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to bottom, rgba(8,12,16,.6) 0%, rgba(8,12,16,.2) 22%, rgba(8,12,16,0) 44%);
  pointer-events: none;
}
@media (min-width: 1000px) {
  .hero__frame::after {
    background:
      linear-gradient(to bottom, rgba(8,12,16,.55) 0%, rgba(8,12,16,.12) 26%, rgba(8,12,16,0) 48%),
      linear-gradient(to right, rgba(8,12,16,.8) 0%, rgba(8,12,16,.45) 30%, rgba(8,12,16,0) 56%);
  }
}

/* Headline sits over the top of the reel, captions live at the foot of each
   column — so the two never collide. */
.hero__body {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  z-index: 3;
  width: 100%;
  max-width: var(--maxw);
  padding: clamp(104px, 13vh, 150px) var(--gutter) 0;
  color: #fff;
  display: grid;
  gap: var(--sp-4);
  pointer-events: none;
}
.hero__body > * { pointer-events: auto; }
@media (min-width: 1000px) {
  .hero__body {
    grid-template-columns: minmax(0, 60%);
    gap: var(--sp-5);
  }
}

.hero__title { color: #fff; }
.hero__title .line-2 { display: block; padding-left: .12em; }

.hero__aside { max-width: 400px; }
.hero__aside .hero__aside-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.1;
  margin-bottom: 10px;
  color: #fff;
}
.hero__aside p { font-size: .9rem; line-height: 1.55; color: rgba(255,255,255,.76); }

/* Scroll cue pinned to the foot of the hero */
.hero__cue {
  position: absolute; left: 50%; bottom: clamp(20px, 3vh, 32px);
  transform: translateX(-50%);
  z-index: 4;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px; border-radius: var(--r-pill);
  background: rgba(8,12,16,.42);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255,255,255,.9);
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  white-space: nowrap;
}
/* "Hover" is meaningless on a touchscreen — swap the wording by capability,
   not by JavaScript, so it is right from the first paint. */
.cue-tap { display: none; }
@media (hover: none), (pointer: coarse) {
  .cue-hover { display: none; }
  .cue-tap { display: inline; }
}

.hero__cue svg { width: 12px; height: 12px; animation: cue-bob 2.4s var(--ease) infinite; }
@keyframes cue-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .hero__cue svg { animation: none; } }

/* --------------------------------------------------------------------------
   8. Stats
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.stat { background: var(--paper); padding: clamp(24px, 3.5vw, 44px) clamp(16px, 2.5vw, 32px); }
.section--dark .stats, .section--navy .stats { background: var(--line-invert); border-color: var(--line-invert); }
.section--dark .stat { background: var(--ink); }
.section--navy .stat { background: var(--navy); }

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.section--dark .stat__num, .section--navy .stat__num { color: var(--brand-light); }
.stat__label {
  margin-top: 10px;
  font-size: .8rem;
  line-height: 1.4;
  color: var(--text-muted);
}
.section--dark .stat__label, .section--navy .stat__label { color: var(--text-invert-muted); }

/* --------------------------------------------------------------------------
   9. Split header (label left / content right) — reference "About Us"
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  gap: var(--sp-5);
  align-items: start;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 210px 1fr; gap: var(--sp-7); }
}
.split--wide { }
@media (min-width: 900px) { .split--wide { grid-template-columns: 210px 1fr 240px; } }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--sp-5);
  margin-bottom: var(--sp-7);
}
.section-head__text { max-width: 720px; }
.section-head .eyebrow { margin-bottom: var(--sp-4); }

.rule { height: 1px; background: var(--line); border: 0; margin-block: var(--sp-6); }
.section--dark .rule, .section--navy .rule { background: var(--line-invert); }

/* --------------------------------------------------------------------------
   10. Cards / project grid (reference: image, then dot+meta, then title)
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card { display: flex; flex-direction: column; }
.card__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 4 / 3;
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease-out);
}
.card:hover .card__media img { transform: scale(1.045); }

.card__tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  backdrop-filter: blur(6px);
}
.card__tag--live { background: var(--brand); color: #fff; }

.card__meta {
  display: flex; align-items: center; gap: 9px;
  margin-top: 16px;
  font-size: .78rem;
  color: var(--text-muted);
}
.card__meta::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--brand); flex: none;
}
.card__title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  line-height: 1.15;
  margin-top: 5px;
  letter-spacing: -.01em;
}
.card__spec {
  margin-top: 7px;
  font-size: .8rem;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}
.section--dark .card__meta, .section--navy .card__meta { color: var(--text-invert-muted); }
.section--dark .card__spec, .section--navy .card__spec { color: rgba(242,239,234,.45); }
.section--dark .card__media, .section--navy .card__media { background: var(--ink-2); }

/* Feature card — large media with overlaid copy */
.feature {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  min-height: 460px;
  display: flex; align-items: flex-end;
  color: #fff;
  isolation: isolate;
}
.feature img.feature__bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--ease-out);
}
.feature:hover img.feature__bg { transform: scale(1.04); }
.feature::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(8,12,16,.9), rgba(8,12,16,.25) 55%, rgba(8,12,16,.05));
}
.feature__body {
  position: relative; z-index: 2;
  padding: clamp(22px, 3vw, 44px);
  width: 100%;
}
.feature__body .eyebrow { color: rgba(255,255,255,.75); }
.feature__body .eyebrow::before { background: var(--brand-light); }
.feature__title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.8rem);
  line-height: 1.05;
  margin: 12px 0 8px;
}
.feature__spec {
  font-size: .85rem;
  color: rgba(255,255,255,.72);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   11. Services list — numbered rows
   -------------------------------------------------------------------------- */
.svc-list { border-top: 1px solid var(--line); }
.section--dark .svc-list, .section--navy .svc-list { border-color: var(--line-invert); }

.svc {
  display: grid;
  gap: var(--sp-3);
  padding-block: clamp(22px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background .35s var(--ease);
}
.section--dark .svc, .section--navy .svc { border-color: var(--line-invert); }
@media (min-width: 860px) {
  .svc { grid-template-columns: 68px 300px 1fr; gap: var(--sp-6); align-items: center; }
}
.svc__num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.svc__name {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.12;
  letter-spacing: -.01em;
}
.svc__desc { color: var(--text-muted); font-size: .95rem; }
.section--dark .svc__desc, .section--navy .svc__desc { color: var(--text-invert-muted); }

/* --------------------------------------------------------------------------
   12. Process steps
   -------------------------------------------------------------------------- */
.steps { display: grid; gap: var(--sp-5); counter-reset: step; }
@media (min-width: 780px) { .steps { grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); } }
.step { padding-top: var(--sp-4); border-top: 2px solid var(--brand); }
.step__num {
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand); font-weight: 600; margin-bottom: 10px;
}
.step__title { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.15; margin-bottom: 8px; }
.step__desc { font-size: .88rem; color: var(--text-muted); }
.section--dark .step__desc, .section--navy .step__desc { color: var(--text-invert-muted); }

/* --------------------------------------------------------------------------
   13. Partners
   -------------------------------------------------------------------------- */
.partners { display: grid; gap: var(--sp-7); }
@media (min-width: 840px) { .partners { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); } }

.partner__media {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 1 / 1;
  margin-bottom: var(--sp-5);
}
.partner__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.92) contrast(1.04);
  transition: transform .8s var(--ease-out), filter .5s var(--ease);
}
.partner:hover .partner__media img { transform: scale(1.03); filter: saturate(1) contrast(1.06); }
.partner__name { font-family: var(--font-display); font-size: clamp(1.6rem, 2.8vw, 2.1rem); line-height: 1.1; }
.partner__role { color: var(--brand); font-size: .82rem; font-weight: 600; letter-spacing: .06em; margin-top: 6px; }
.partner__quals { margin-top: 14px; font-size: .9rem; color: var(--text-muted); }
.partner__facts { margin-top: var(--sp-4); border-top: 1px solid var(--line); }
.partner__fact {
  display: flex; justify-content: space-between; gap: var(--sp-4);
  padding-block: 11px;
  border-bottom: 1px solid var(--line);
  font-size: .85rem;
}
.partner__fact dt { color: var(--text-faint); }
.partner__fact dd { text-align: right; font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   14. Office cards
   -------------------------------------------------------------------------- */
.office {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.office__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.office__media img { width: 100%; height: 100%; object-fit: cover; }
.office__body { padding: clamp(20px, 2.6vw, 32px); flex: 1; display: flex; flex-direction: column; }
.office__badge {
  display: inline-block;
  font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  padding: 5px 11px; border-radius: var(--r-pill);
  background: var(--brand-tint); color: var(--brand-deep);
  margin-bottom: 14px; align-self: flex-start;
}
.office__badge--branch { background: var(--paper-2); color: var(--text-muted); }
.office__name { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.1; margin-bottom: 10px; }
.office__addr { font-size: .92rem; color: var(--text-muted); font-style: normal; }
.office__contact { margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--line); display: grid; gap: 9px; font-size: .9rem; }
.office__contact a { display: flex; align-items: center; gap: 10px; transition: color .25s var(--ease); }
.office__contact a:hover { color: var(--brand); }
.office__contact svg { width: 15px; height: 15px; color: var(--brand); flex: none; }

/* --------------------------------------------------------------------------
   15. Gallery strip
   -------------------------------------------------------------------------- */
.gallery { display: grid; gap: var(--sp-4); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery figure { margin: 0; }
.gallery__img {
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--paper-2);
}
.gallery__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.gallery figure:hover .gallery__img img { transform: scale(1.05); }
.gallery figcaption { margin-top: 10px; font-size: .78rem; color: var(--text-muted); }
.gallery--wide .gallery__img { aspect-ratio: 4 / 3; }
/* Two-up variant, for sections that only have a pair of images to show —
   better a full row of two than a four-column row with two empty cells. */
.gallery--2 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) {
  .gallery--2 { grid-template-columns: repeat(2, 1fr); }
  .gallery--2 .gallery__img { aspect-ratio: 16 / 10; }
}

/* --------------------------------------------------------------------------
   16. Client logo wall
   -------------------------------------------------------------------------- */
.client-group + .client-group { margin-top: var(--sp-7); }
.client-group__title {
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-faint); font-weight: 600;
  padding-bottom: 12px; margin-bottom: var(--sp-5);
  border-bottom: 1px solid var(--line);
}
.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.logo-wall li {
  background: var(--white);
  display: grid; place-items: center;
  padding: 22px 16px;
  min-height: 104px;
}
.logo-wall img {
  max-height: 46px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .62;
  transition: filter .4s var(--ease), opacity .4s var(--ease), transform .4s var(--ease);
}
.logo-wall li:hover img { filter: grayscale(0); opacity: 1; transform: scale(1.05); }

/* --------------------------------------------------------------------------
   17. Testimonials
   -------------------------------------------------------------------------- */
.quote {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 40px);
  display: flex; flex-direction: column;
}
.quote__mark {
  font-family: var(--font-display);
  font-size: 3.4rem; line-height: .6;
  color: var(--brand);
  opacity: .35;
  margin-bottom: 18px;
}
.quote__text {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  line-height: 1.4;
  letter-spacing: -.005em;
  flex: 1;
}
.quote__by { margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--line); }
.quote__name { font-weight: 600; font-size: .92rem; }
.quote__org { font-size: .82rem; color: var(--text-muted); margin-top: 3px; }

/* --------------------------------------------------------------------------
   18. Data table — project directory
   -------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  -webkit-overflow-scrolling: touch;
}
.data-table { min-width: 640px; font-size: .89rem; }
.data-table caption {
  text-align: left;
  padding: 18px 20px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.data-table th, .data-table td { padding: 13px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.data-table thead th {
  font-size: .68rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--text-faint); font-weight: 600;
  background: var(--paper-2);
  position: sticky; top: 0;
}
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background .2s var(--ease); }
.data-table tbody tr:hover { background: var(--brand-tint); }
.data-table td.num, .data-table th.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table th[scope="row"] { font-weight: 500; }

.status {
  display: inline-block;
  font-size: .68rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  padding: 3px 9px; border-radius: var(--r-pill);
  background: var(--paper-2); color: var(--text-muted);
}
.status--live { background: #E3F2E5; color: #2C6B38; }
.status--ongoing { background: var(--brand-tint); color: var(--brand-deep); }

/* --------------------------------------------------------------------------
   19. Filter chips
   -------------------------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 17px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* --------------------------------------------------------------------------
   20. Credentials
   -------------------------------------------------------------------------- */
.creds { display: grid; gap: var(--sp-4); }
@media (min-width: 720px) { .creds { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .creds { grid-template-columns: repeat(4, 1fr); } }
.cred {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  background: var(--white);
}
.section--dark .cred, .section--navy .cred {
  background: rgba(255,255,255,.04);
  border-color: var(--line-invert);
}
.cred__issuer { font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; color: var(--brand); font-weight: 600; }
.section--dark .cred__issuer, .section--navy .cred__issuer { color: var(--brand-light); }
.cred__no {
  font-family: var(--font-display);
  font-size: 1.5rem; margin-top: 10px;
  font-variant-numeric: tabular-nums;
}
.cred__holder { font-size: .84rem; color: var(--text-muted); margin-top: 6px; }
.section--dark .cred__holder, .section--navy .cred__holder { color: var(--text-invert-muted); }

/* --------------------------------------------------------------------------
   21. ETABS technical showcase
   -------------------------------------------------------------------------- */
.etabs-grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .etabs-grid { grid-template-columns: repeat(4, 1fr); } }
.etabs-fig { margin: 0; }
.etabs-fig__img {
  border-radius: var(--r-md);
  overflow: hidden;
  background: #0A1016;
  border: 1px solid var(--line-invert);
  aspect-ratio: 3 / 4;
  display: grid; place-items: center;
}
.etabs-fig__img img { width: 100%; height: 100%; object-fit: contain; }
.etabs-fig figcaption {
  margin-top: 11px;
  font-size: .76rem;
  color: var(--text-invert-muted);
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   22. Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--sp-4); }
@media (min-width: 700px) { .form__row { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); } }
.field { display: grid; gap: 7px; }
.field label { font-size: .82rem; font-weight: 500; }
.field .hint { font-size: .76rem; color: var(--text-faint); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--white);
  font-size: .94rem;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37,102,154,.16);
}
.field .error { font-size: .78rem; color: #B3261E; display: none; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #B3261E; }
.field.is-invalid .error { display: block; }

.form-note {
  font-size: .82rem; color: var(--text-muted);
  padding: var(--sp-4);
  background: var(--brand-tint);
  border-radius: var(--r-sm);
  border-left: 3px solid var(--brand);
}

.form-status {
  padding: 13px 16px;
  border-radius: var(--r-sm);
  font-size: .89rem;
  border-left: 3px solid var(--line-strong);
  background: var(--paper-2);
  color: var(--text-muted);
}
.form-status[data-kind="ok"]    { background: #E3F2E5; border-color: #2C6B38; color: #23552D; }
.form-status[data-kind="error"] { background: #FBE9E7; border-color: #B3261E; color: #8C1D18; }
.form-status[data-kind="busy"]  { background: var(--brand-tint); border-color: var(--brand); color: var(--brand-deep); }

button[disabled] { opacity: .6; cursor: not-allowed; }

/* --------------------------------------------------------------------------
   23. CTA band
   -------------------------------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band .display { margin-bottom: var(--sp-5); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; margin-top: var(--sp-6); }

/* --------------------------------------------------------------------------
   24. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--text-invert); padding-block: clamp(48px, 7vw, 88px) var(--sp-6); }
.footer-top { display: grid; gap: var(--sp-6); padding-bottom: var(--sp-7); border-bottom: 1px solid var(--line-invert); }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: var(--sp-6); } }

.footer-brand img {
  width: clamp(180px, 20vw, 230px);
  height: auto;
  margin-bottom: var(--sp-5);
  filter: brightness(0) invert(1);
  opacity: .95;
}
.footer-brand p { font-size: .95rem; color: var(--text-invert-muted); max-width: 300px; }

/* Opening hours */
.hours { margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--line); }
.hours__row {
  display: flex; justify-content: space-between; gap: var(--sp-4);
  padding-block: 7px;
  font-size: .88rem;
}
.hours__row dt { color: var(--text-muted); }
.hours__row dd { font-variant-numeric: tabular-nums; }
.hours__row--closed dd { color: var(--text-faint); }
.hours__status {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 12px;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .04em;
}
.hours__status::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--text-faint); flex: none;
}
.hours__status[data-open="true"] { color: #2C6B38; }
.hours__status[data-open="true"]::before { background: #34A853; }
.hours__status[data-open="false"] { color: var(--text-muted); }

.footer-col .hours { border-color: var(--line-invert); }
.footer-col .hours__row dt { color: rgba(255,255,255,.45); }
.footer-col .hours__row dd { color: var(--text-invert-muted); }

/* Social row — sits under the footer strapline */
.social {
  display: flex;
  gap: 10px;
  margin-top: var(--sp-5);
}
.social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-invert);
  color: rgba(242,239,234,.72);
  transition: background .28s var(--ease), color .28s var(--ease),
              border-color .28s var(--ease), transform .28s var(--ease);
}
.social a:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: translateY(-2px);
}
.social svg { width: 17px; height: 17px; }

/* A social account that does not exist yet — still visible, but clearly not
   a live link, and it says so when clicked rather than going nowhere. */
.social a[data-social-pending] { opacity: .45; cursor: default; }
.social a[data-social-pending]:hover {
  background: transparent;
  border-color: var(--line-invert);
  color: rgba(242,239,234,.72);
  transform: none;
}

/* Small toast used for that message */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 14px);
  z-index: 800;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-size: .88rem;
  box-shadow: 0 8px 30px rgba(8,12,16,.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), transform .3s var(--ease-out), visibility .3s;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.is-shown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* Light-background variant, e.g. on the contact page */
.social--light a { border-color: var(--line-strong); color: var(--text-muted); }
.social--light a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

.footer-col h3 {
  font-size: .7rem; letter-spacing: .15em; text-transform: uppercase;
  color: rgba(255,255,255,.45); font-weight: 600; margin-bottom: var(--sp-4);
}
.footer-col li + li { margin-top: 11px; }
.footer-col a, .footer-col address {
  font-size: .88rem; color: var(--text-invert-muted); font-style: normal;
  transition: color .25s var(--ease);
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  padding-top: var(--sp-5);
  display: flex; flex-wrap: wrap; gap: var(--sp-4);
  justify-content: space-between; align-items: center;
  font-size: .8rem; color: rgba(242,239,234,.45);
}
.footer-bottom a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   25. Reveal on scroll
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   26. Page hero (interior pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding-top: clamp(120px, 15vw, 190px);
  padding-bottom: clamp(36px, 5vw, 64px);
  background: var(--ink);
  color: var(--text-invert);
  isolation: isolate;
  overflow: hidden;
}

/* Interior pages carry the same footage as a background, running to the very
   top of the page behind the header. Heavily darkened — this sits under body
   copy, so legibility beats spectacle. */
.page-hero__media { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.page-hero__media video,
.page-hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: brightness(1.12) saturate(1.04);
}
/* Weighted to the foot of the block, where the heading and lede sit, so the
   image reads much brighter up top without costing text contrast. */
.page-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(10,14,19,.88) 0%, rgba(10,14,19,.62) 42%, rgba(10,14,19,.4) 78%, rgba(10,14,19,.5) 100%);
  pointer-events: none;
}
.page-hero > .shell { position: relative; z-index: 2; }
.page-hero .eyebrow { color: var(--text-invert-muted); margin-bottom: var(--sp-4); }
.page-hero .eyebrow::before { background: var(--brand-light); }
.page-hero .lede { color: var(--text-invert-muted); max-width: 640px; margin-top: var(--sp-5); }

.breadcrumb {
  display: flex; gap: 9px;
  font-size: .78rem;
  color: rgba(242,239,234,.72);
  margin-bottom: var(--sp-5);
  text-shadow: 0 1px 10px rgba(8,12,16,.7);
}
.breadcrumb a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   27. Custom cursor — a dot that inverts against whatever is behind it
   `mix-blend-mode: difference` on a white dot gives automatic contrast:
   black on a light ground, white on a dark one, without tracking sections.
   Only on real pointing devices; touch keeps its native behaviour.
   -------------------------------------------------------------------------- */
.cursor-dot,
.cursor-ring { display: none; }

@media (hover: hover) and (pointer: fine) {
  html.has-cursor-dot,
  html.has-cursor-dot * { cursor: none !important; }

  /* Text fields keep their I-beam — losing the caret while typing an enquiry
     is a worse trade than a consistent dot. */
  html.has-cursor-dot input,
  html.has-cursor-dot textarea { cursor: text !important; }
  html.has-cursor-dot select { cursor: pointer !important; }
  html.has-cursor-dot .compare__range { cursor: ew-resize !important; }

  .cursor-dot, .cursor-ring {
    display: block;
    position: fixed;
    top: 0; left: 0;
    z-index: 9999;
    pointer-events: none;
    border-radius: 50%;
    mix-blend-mode: difference;
    will-change: transform;
  }
  .cursor-dot {
    width: 11px; height: 11px;
    background: #fff;
    transition: width .25s var(--ease), height .25s var(--ease);
  }
  .cursor-ring {
    width: 38px; height: 38px;
    border: 1px solid rgba(255,255,255,.55);
    transition: width .3s var(--ease), height .3s var(--ease), opacity .3s var(--ease);
    opacity: 0;
  }
  /* Over anything clickable the dot swells and the ring appears. */
  html.cursor-active .cursor-dot { width: 20px; height: 20px; }
  html.cursor-active .cursor-ring { width: 54px; height: 54px; opacity: 1; }
  html.cursor-down .cursor-dot { width: 8px; height: 8px; }
}

/* --------------------------------------------------------------------------
   28. Media reveal — caption slides up as the tile enters the viewport
   -------------------------------------------------------------------------- */
.tile { position: relative; cursor: pointer; }
.tile .card__media { position: relative; }
.tile__info {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 42px 18px 16px;
  background: linear-gradient(to top, rgba(8,12,16,.92) 0%, rgba(8,12,16,.55) 55%, rgba(8,12,16,0) 100%);
  color: #fff;
  transform: translateY(18px);
  opacity: 0;
  transition: transform .6s var(--ease-out), opacity .6s var(--ease-out);
  pointer-events: none;
}
.tile.is-in .tile__info,
.tile:hover .tile__info,
.tile:focus-visible .tile__info { transform: none; opacity: 1; }

.tile__name {
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.15;
}
.tile__loc {
  display: flex; align-items: center; gap: 8px;
  font-size: .76rem;
  color: rgba(255,255,255,.78);
  margin-top: 5px;
}
.tile__loc::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--brand-light); flex: none;
}
.tile__more {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  display: grid; place-items: center;
  opacity: 0; transform: scale(.8);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.tile:hover .tile__more, .tile:focus-visible .tile__more { opacity: 1; transform: none; }
.tile__more svg { width: 14px; height: 14px; }

/* --------------------------------------------------------------------------
   29. Lightbox / detail modal
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0;
  z-index: 500;
  display: grid; place-items: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(8,12,16,.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox__panel {
  position: relative;
  background: var(--paper);
  border-radius: var(--r-lg);
  max-width: 1040px;
  width: 100%;
  max-height: 92vh;
  overflow: auto;
  transform: translateY(18px) scale(.985);
  transition: transform .4s var(--ease-out);
  -webkit-overflow-scrolling: touch;
}
.lightbox.is-open .lightbox__panel { transform: none; }

.lightbox__close {
  position: absolute; top: 14px; right: 14px; z-index: 4;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  display: grid; place-items: center;
  box-shadow: 0 2px 14px rgba(8,12,16,.22);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.lightbox__close:hover { background: var(--ink); color: #fff; transform: rotate(90deg); }
.lightbox__close svg { width: 16px; height: 16px; }

.lightbox__media { background: var(--ink-2); }
.lightbox__media img {
  width: 100%; max-height: 58vh; object-fit: contain; display: block;
}
.lightbox__body { padding: clamp(20px, 3vw, 36px); }
.lightbox__eyebrow {
  font-size: .7rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--brand); font-weight: 600;
}
.lightbox__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.1;
  margin-top: 10px;
}
.lightbox__spec {
  margin-top: 10px; font-size: .92rem; color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.lightbox__desc { margin-top: var(--sp-4); color: var(--text-muted); }
.lightbox__facts { margin-top: var(--sp-5); border-top: 1px solid var(--line); }
.lightbox__fact {
  display: flex; justify-content: space-between; gap: var(--sp-4);
  padding-block: 11px; border-bottom: 1px solid var(--line); font-size: .88rem;
}
.lightbox__fact dt { color: var(--text-faint); }
.lightbox__fact dd { text-align: right; font-variant-numeric: tabular-nums; }

/* Logo lightbox is a small plate, not a full project panel */
.lightbox__panel--logo { max-width: 460px; text-align: center; }
.lightbox__panel--logo .lightbox__media {
  background: #fff; padding: clamp(32px, 6vw, 64px);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.lightbox__panel--logo .lightbox__media img {
  max-height: 190px; width: auto; margin-inline: auto; object-fit: contain;
}

/* --------------------------------------------------------------------------
   30. Partner flip cards
   -------------------------------------------------------------------------- */
.flip { perspective: 1600px; cursor: pointer; }
.flip__inner {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  transform-style: preserve-3d;
  /* An explicit identity rotation is required: without a transform the 3D
     rendering context is never established, and both backface-hidden faces
     get culled — the card renders as nothing at all. */
  transform: rotateY(0deg);
  transition: transform .85s var(--ease-out);
  border-radius: var(--r-lg);
}
.flip.is-flipped .flip__inner { transform: rotateY(180deg); }

.flip__face {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.flip__face--front { background: var(--paper-2); }
.flip__face--front img { width: 100%; height: 100%; object-fit: cover; }

.flip__face--back {
  transform: rotateY(180deg);
  background: var(--ink);
  color: var(--text-invert);
  padding: clamp(20px, 2.6vw, 32px);
  display: flex; flex-direction: column;
  /* sit the details in the middle of the card rather than pinned to the top */
  justify-content: center;
  overflow-y: auto;
}
.flip__face--back .partner__name { color: #fff; font-size: clamp(1.3rem,2.2vw,1.7rem); }
.flip__face--back .partner__role { color: var(--brand-light); }
.flip__face--back .partner__quals { color: var(--text-invert-muted); }
.flip__face--back .partner__facts { border-color: var(--line-invert); }
.flip__face--back .partner__fact { border-color: var(--line-invert); }
.flip__face--back .partner__fact dt { color: rgba(242,239,234,.5); }
.flip__face--back .partner__fact dd { color: #fff; }
.flip__face--back .partner__fact a:hover { color: var(--brand-light); }

.flip__hint {
  position: absolute; bottom: 14px; right: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.92);
  color: var(--ink);
  font-size: .72rem; font-weight: 500;
  transition: opacity .3s var(--ease);
}
.flip.is-flipped .flip__hint { opacity: 0; pointer-events: none; }
.flip__hint svg { width: 12px; height: 12px; }

.flip__back-btn {
  margin-top: var(--sp-5); padding-top: 0;
  font-size: .78rem; color: var(--brand-light);
  display: inline-flex; align-items: center; gap: 7px;
  align-self: flex-start;
}

@media (prefers-reduced-motion: reduce) {
  .flip__inner { transition: none; }
}

/* --------------------------------------------------------------------------
   31. Before / after compare slider
   -------------------------------------------------------------------------- */
.compare {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--ink-2);
  touch-action: pan-y;
  --pos: 50%;
}
.compare img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  user-select: none; -webkit-user-drag: none;
}
.compare__top {
  position: absolute; inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.compare__bar {
  position: absolute; top: 0; bottom: 0;
  left: var(--pos);
  width: 2px;
  background: #fff;
  transform: translateX(-1px);
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 0 14px rgba(8,12,16,.5);
}
.compare__grip {
  position: absolute; top: 50%; left: var(--pos);
  transform: translate(-50%, -50%);
  z-index: 4;
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff;
  color: var(--ink);
  display: grid; place-items: center;
  box-shadow: 0 3px 18px rgba(8,12,16,.35);
  pointer-events: none;
}
.compare__grip svg { width: 20px; height: 20px; }

.compare__range {
  position: absolute; inset: 0;
  z-index: 5;
  width: 100%; height: 100%;
  margin: 0; padding: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none; appearance: none;
  background: transparent;
}
.compare__range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 46px; height: 100%; cursor: ew-resize;
}
.compare__range::-moz-range-thumb {
  width: 46px; height: 100%; border: 0; background: transparent; cursor: ew-resize;
}
.compare__range:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

.compare__tag {
  position: absolute; bottom: 14px; z-index: 3;
  padding: 7px 14px; border-radius: var(--r-pill);
  background: rgba(8,12,16,.66);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 600;
  pointer-events: none;
}
.compare__tag--a { left: 14px; }
.compare__tag--b { right: 14px; }

/* --------------------------------------------------------------------------
   32. Service banner — the two-block lockup from the firm's signage
   -------------------------------------------------------------------------- */
.svc-banner {
  display: grid;
  gap: 10px;
  margin-top: clamp(24px, 4vw, 40px);
}
@media (min-width: 760px) { .svc-banner { grid-template-columns: repeat(2, 1fr); } }

.svc-banner__block {
  padding: clamp(18px, 2.4vw, 26px) clamp(20px, 2.6vw, 34px);
  border-radius: var(--r-sm);
}
.svc-banner__block--primary { background: var(--brand-deep); }
.svc-banner__block--dark    { background: #2E3238; }

.svc-banner__block li {
  display: flex; align-items: flex-start; gap: 11px;
  color: #fff;
  font-size: clamp(.95rem, 1.5vw, 1.16rem);
  font-weight: 600;
  letter-spacing: -.005em;
  line-height: 1.35;
}
.svc-banner__block li + li { margin-top: 10px; }
.svc-banner__block li::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.85);
  flex: none;
  margin-top: .55em;
}

/* --------------------------------------------------------------------------
   33. Inline feature video (site footage with controls)
   -------------------------------------------------------------------------- */
.filmstrip {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-2);
  aspect-ratio: 16 / 9;
}
.filmstrip video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.filmstrip__cap {
  margin-top: 14px;
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  align-items: baseline;
  font-size: .82rem;
  color: var(--text-muted);
}
.section--dark .filmstrip__cap { color: var(--text-invert-muted); }
.filmstrip__cap strong { color: var(--text); font-weight: 600; }
.section--dark .filmstrip__cap strong { color: #fff; }

/* --------------------------------------------------------------------------
   34. Embedded map
   -------------------------------------------------------------------------- */
.map-embed {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
  aspect-ratio: 16 / 9;
}
@media (max-width: 700px) { .map-embed { aspect-ratio: 4 / 3; } }
.map-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  display: block;
}
.map-embed__note {
  margin-top: 12px;
  font-size: .8rem;
  color: var(--text-faint);
}

/* --------------------------------------------------------------------------
   35. Startup screen
   Shown once per browsing session: logo mark, name, then it lifts away.
   Only ever displayed when JavaScript is running (the .has-startup class is
   set by an inline script), so it can never trap a no-JS visitor.
   -------------------------------------------------------------------------- */
.startup { display: none; }

html.has-startup .startup {
  display: grid;
  place-items: center;
  position: fixed;
  inset: 0;
  z-index: 900;
  background: var(--ink);
  transition: opacity .7s var(--ease), visibility .7s;
}
html.has-startup { overflow: hidden; }
html.startup-done { overflow: auto; }
html.startup-done .startup { opacity: 0; visibility: hidden; pointer-events: none; }

.startup__inner {
  display: grid;
  justify-items: center;
  gap: var(--sp-5);
  padding: var(--gutter);
  text-align: center;
}
.startup__mark {
  width: clamp(84px, 12vw, 118px);
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0;
  transform: translateY(14px) scale(.94);
  animation: startup-in .9s var(--ease-out) .1s forwards;
}
.startup__name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.2vw, 2.6rem);
  line-height: 1.1;
  color: #fff;
  letter-spacing: -.01em;
  opacity: 0;
  transform: translateY(12px);
  animation: startup-in .9s var(--ease-out) .28s forwards;
}
.startup__name em { display: block; font-style: italic; color: var(--brand-light); }
.startup__rule {
  width: min(220px, 52vw);
  height: 2px;
  border-radius: 2px;
  background: rgba(255,255,255,.16);
  overflow: hidden;
  opacity: 0;
  animation: startup-in .6s var(--ease-out) .5s forwards;
}
.startup__rule span {
  display: block; height: 100%;
  background: var(--brand-light);
  transform-origin: left;
  transform: scaleX(0);
  animation: startup-fill 1.25s var(--ease) .55s forwards;
}
@keyframes startup-in  { to { opacity: 1; transform: none; } }
@keyframes startup-fill { to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  .startup__mark, .startup__name, .startup__rule { animation: none; opacity: 1; transform: none; }
  .startup__rule span { animation: none; transform: scaleX(1); }
  html.has-startup .startup { transition: none; }
}

/* --------------------------------------------------------------------------
   36. Floating action stack — WhatsApp, call, mail, portfolio, back to top
   -------------------------------------------------------------------------- */
.fab {
  position: fixed;
  right: clamp(12px, 2.2vw, 24px);
  bottom: clamp(12px, 2.2vw, 24px);
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.fab__btn {
  position: relative;
  width: 50px; height: 50px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 4px 18px rgba(8,12,16,.26);
  transition: background .28s var(--ease), transform .28s var(--ease),
              box-shadow .28s var(--ease), opacity .3s var(--ease);
}
.fab__btn svg { width: 21px; height: 21px; }
.fab__btn:hover, .fab__btn:focus-visible {
  background: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(8,12,16,.32);
}
.fab__btn--wa { background: #25D366; }
.fab__btn--wa:hover, .fab__btn--wa:focus-visible { background: #1EB855; }

/* Label slides out to the left on hover */
.fab__label {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  padding: 7px 13px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-size: .78rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 3px 14px rgba(8,12,16,.24);
  transition: opacity .26s var(--ease), transform .26s var(--ease);
}
.fab__btn:hover .fab__label,
.fab__btn:focus-visible .fab__label { opacity: 1; transform: translateY(-50%) translateX(0); }

/* Back to top only earns its place once you have scrolled */
.fab__btn--top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(.85);
}
.fab__btn--top.is-shown { opacity: 1; visibility: visible; transform: none; }

@media (max-width: 520px) {
  .fab { gap: 8px; }
  .fab__btn { width: 46px; height: 46px; }
  .fab__btn svg { width: 19px; height: 19px; }
  /* Touch has no hover, so the labels would never show — hide them entirely
     rather than leaving dead nodes in the accessibility tree. */
  .fab__label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .fab__btn, .fab__label { transition: none; }
}

/* --------------------------------------------------------------------------
   36. Portfolio download
   -------------------------------------------------------------------------- */
.download-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-5);
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
}
.section--dark .download-card,
.section--navy .download-card {
  background: rgba(255,255,255,.05);
  border-color: var(--line-invert);
}
.download-card__icon {
  width: 54px; height: 54px; flex: none;
  border-radius: var(--r-md);
  background: var(--brand-tint);
  color: var(--brand-deep);
  display: grid; place-items: center;
}
.section--dark .download-card__icon,
.section--navy .download-card__icon { background: rgba(74,139,194,.18); color: var(--brand-light); }
.download-card__icon svg { width: 24px; height: 24px; }
.download-card__text { flex: 1 1 240px; min-width: 0; }
.download-card__title { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.15; }
.download-card__meta { margin-top: 6px; font-size: .84rem; color: var(--text-muted); }
.section--dark .download-card__meta,
.section--navy .download-card__meta { color: var(--text-invert-muted); }

/* --------------------------------------------------------------------------
   37. Mobile scrolling budget
   `backdrop-filter` on a FIXED element is re-computed every frame while the
   page scrolls behind it. On desktop that is free; on a mid-range Android it
   is the single biggest cause of stutter. Swap it for a solid tint below the
   tablet breakpoint — visually near-identical, dramatically cheaper.
   -------------------------------------------------------------------------- */
@media (max-width: 900px), (hover: none) {
  .site-header.is-stuck {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(246,244,241,.97);
  }
  .nav__menu,
  .site-header--over-media:not(.is-stuck) .nav__menu {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .site-header--over-media:not(.is-stuck) .nav__menu { background: rgba(16,22,28,.55); }
  .site-header--over-media:not(.is-stuck) .nav__toggle {
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: rgba(16,22,28,.55);
  }
  .hero__cue, .reel__cue, .compare__tag {
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: rgba(8,12,16,.62);
  }
  .lightbox { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(8,12,16,.94); }

  /* A colour filter on a *playing* video is a per-frame GPU cost. The scrim
     above it already carries the contrast, so drop it on touch devices. */
  .page-hero__media video { filter: none; }
}

/* --------------------------------------------------------------------------
   38. Utilities
   -------------------------------------------------------------------------- */
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.mb-5 { margin-bottom: var(--sp-5); }
.mb-6 { margin-bottom: var(--sp-6); }
.text-center { text-align: center; }
[hidden] { display: none !important; }
