/* ============================================================
   EXECUTIVE BUILDING SYSTEMS INC.
   One stylesheet, zero build.
   Palette: white / stone surfaces with deep slate ink and the
   steel-blue taken from the company logo. Light-first, so the
   dark tones only ever carry photography and the footer.
   Motion: opacity + transform only, one ease family, entrance
   keyed on a single body gate class (is-in). Every JS-dependent
   hidden state is scoped :where(html.js) so content can never be
   trapped invisible without JS.
   ============================================================ */

:root {
  --paper: #FFFFFF;
  --cream: #F7F6F4;         /* warm stone, the wall the logo sits on */
  --sand: #E8E5E1;
  --ink: #1B2635;           /* deep slate (AA 15.3:1 on paper) */
  --ink-2: #24344B;         /* logo navy */
  --accent: #8FA3BC;        /* steel, small marks on dark (AA 5.9:1) */
  --accent-warm: #B7C6D8;   /* steel text on dark (AA 8.8:1) */
  --accent-deep: #2E4767;   /* steel text on light (AA 8.8:1 on cream) */
  --btn-ink: #FFFFFF;       /* label on the slate button (AA 15.3:1) */

  --line: rgba(20, 37, 57, 0.14);
  --line-dark: rgba(255, 255, 255, 0.15);
  --muted: rgba(20, 37, 57, 0.76);
  --muted-dark: rgba(255, 255, 255, 0.78);

  --ease: cubic-bezier(0.22, 0.62, 0.18, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-1: 0.6s;
  --t-2: 0.85s;
  --t-3: 1.1s;

  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --r-xl: 32px;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1280px;
  --gut: clamp(20px, 4vw, 48px);
  --nav-h: 76px;

  --shadow-s: 0 1px 3px rgba(20, 37, 57, 0.07), 0 6px 18px rgba(20, 37, 57, 0.06);
  --shadow-m: 0 2px 8px rgba(20, 37, 57, 0.08), 0 18px 44px rgba(20, 37, 57, 0.10);
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin-400-900.woff2") format("woff2");
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  touch-action: manipulation;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #FFFFFF;
  padding: 10px 18px; z-index: 300; font-weight: 700; border-radius: 999px;
}
.skip:focus { left: 12px; top: 12px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap--narrow { max-width: 940px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- type ---------- */
.display { font-weight: 800; letter-spacing: -0.025em; line-height: 1.04; }
.h1 { font-size: clamp(2.4rem, 6.4vw, 5rem); }
.h2 { font-size: clamp(1.7rem, 3.8vw, 2.85rem); }
.h3 { font-size: clamp(1.08rem, 2vw, 1.35rem); font-weight: 700; letter-spacing: -0.012em; }
.lede { font-size: clamp(1.04rem, 1.9vw, 1.22rem); line-height: 1.58; max-width: 40em; }
.small { font-size: 0.875rem; }
.kicker { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.muted { color: var(--muted); }
.on-dark .muted, .band--ink .muted, .band--ink2 .muted { color: var(--muted-dark); }
.accent { color: var(--accent-deep); }
.band--ink .accent, .band--ink2 .accent, .hero .accent, .page-head .accent { color: var(--accent-warm); }

/* ============================================================
   ENTRANCE, one gate (body.is-in), one authority
   ============================================================ */
:where(html.js) [data-rv] {
  opacity: 0; transform: translateY(26px);
  transition: opacity var(--t-2) var(--ease), transform var(--t-2) var(--ease);
  transition-delay: var(--d, 0s);
}
:where(html.js) [data-rv="fade"] { transform: none; }
body.is-in [data-rv] { opacity: 1; transform: none; }

.hl-line { display: block; overflow: clip; }
.hl-inner { display: inline-block; }
:where(html.js) .hl-inner {
  transform: translateY(112%);
  transition: transform var(--t-3) var(--ease);
  transition-delay: var(--d, 0s);
}
body.is-in .hl-inner { transform: translateY(0); }

:where(html.js) .hero-media-inner {
  transform: scale(1.09);
  transition: transform 1.6s var(--ease-out);
}
body.is-in .hero-media-inner { transform: scale(1); }

.rule-line { display: none; }
.rule-fill { position: absolute; inset: 0; background: var(--accent); transform-origin: left center; transform: scaleX(1); }
:where(html.js) .rule-fill { transform: scaleX(0); transition: transform var(--t-3) var(--ease) 0.45s; }
body.is-in .rule-fill { transform: scaleX(var(--rule-base, 0.4)); }
body.is-in .rule-fill.bound { transition: none; }

/* scroll reveals */
:where(html.js) [data-io] {
  opacity: 0; transform: translateY(26px);
  transition: opacity var(--t-2) var(--ease), transform var(--t-2) var(--ease);
  transition-delay: var(--d, 0s);
}
:where(html.js) [data-io][data-fx="fade"] { transform: none; }
:where(html.js) [data-io][data-fx="left"] { transform: translateX(-28px); }
:where(html.js) [data-io][data-fx="right"] { transform: translateX(28px); }
:where(html.js) [data-io][data-fx="zoom"] { transform: scale(0.94); }
:where(html.js) [data-io][data-fx="draw"] { transform: scaleX(0); transform-origin: left center; opacity: 1; }
[data-io].in { opacity: 1; transform: none; }
[data-io][data-fx="draw"].in { transform: scaleX(1); }
body.js-fallback [data-io] { opacity: 1; transform: none; }
body.js-fallback [data-io][data-fx="draw"] { transform: scaleX(1); }

/* ============================================================
   HEADER + SERVICES DROPDOWN
   ============================================================ */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 200; color: #FFFFFF; }
.nav-bg {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10, 20, 32, 0.94), rgba(10, 20, 32, 0.66));
  opacity: 0.62;
  transition: opacity 0.35s var(--ease);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.nav.scrolled .nav-bg, body.menu-open .nav-bg, body.drop-open .nav-bg { background: var(--ink); opacity: 1; }
html:not(.js) .nav-bg { background: var(--ink); opacity: 1; }
.nav-inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  height: var(--nav-h);
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut);
}
.nav-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; min-height: 46px; }
.nav-logo .lg-mark { height: 38px; width: auto; flex: none; }
.lg-words { display: block; }
.lg-name {
  display: block; font-weight: 800; font-size: 1.06rem; line-height: 1;
  letter-spacing: -0.012em; text-transform: uppercase;
}
.lg-sub {
  display: block; font-weight: 600; font-size: 0.56rem; line-height: 1;
  letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.8; margin-top: 5px;
}
.footer .nav-logo .lg-mark { height: 50px; }
.footer .lg-name { font-size: 1.3rem; }
.footer .lg-sub { font-size: 0.64rem; margin-top: 6px; }
@media (max-width: 400px) {
  .nav-logo { gap: 9px; }
  .nav-logo .lg-mark { height: 32px; }
  .lg-name { font-size: 0.94rem; }
  .lg-sub { font-size: 0.5rem; letter-spacing: 0.16em; }
}

.nav-links { display: none; }
.nav-tools { display: none; }
.nav-phone {
  display: none; align-items: center; gap: 8px; white-space: nowrap;
  font-weight: 700; text-decoration: none; font-size: 0.94rem; min-height: 44px;
}
.nav-phone svg { width: 17px; height: 17px; flex: none; }
.nav-phone:hover { color: var(--accent-warm); }
/* the header sits on ink once scrolled, so its CTA inverts to stay visible */
.nav-tools .btn { background: #FFFFFF; border-color: #FFFFFF; color: var(--ink); }
.nav-tools .btn:hover { background: var(--accent-warm); border-color: var(--accent-warm); color: var(--ink); }

.nav-burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
  width: 48px; height: 46px; align-items: center;
}
.nav-burger span {
  display: block; width: 24px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
body.menu-open .nav-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* desktop dropdown */
.nav-item { position: relative; }
.nav-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 0.92rem; padding: 12px 2px; white-space: nowrap;
}
.nav-trigger svg { width: 13px; height: 13px; transition: transform 0.3s var(--ease); }
.nav-item.open .nav-trigger svg { transform: rotate(180deg); }
.nav-drop {
  position: absolute; top: calc(100% + 14px); left: 50%;
  width: min(680px, calc(100vw - 2 * var(--gut)));
  transform: translateX(-50%);
  background: var(--paper); color: var(--ink);
  border-radius: var(--r-l); box-shadow: var(--shadow-m);
  padding: 18px; z-index: 210;
}
:where(html.js) .nav-drop {
  opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(-8px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0s linear 0.28s;
}
.nav-item.open .nav-drop {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0s;
}
.nav-drop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.nav-drop a {
  display: grid; grid-template-columns: 34px 1fr; gap: 2px 10px; align-items: center;
  padding: 10px 12px; border-radius: var(--r-m); text-decoration: none;
  transition: background 0.2s var(--ease);
}
.nav-drop a:hover { background: var(--cream); }
.nav-drop a .dn { grid-row: span 2; font-weight: 800; font-size: 0.8rem; color: var(--accent-deep); }
.nav-drop a b { font-weight: 700; font-size: 0.93rem; }
.nav-drop a span { font-size: 0.8rem; color: var(--muted); line-height: 1.35; }
.nav-drop-foot {
  margin-top: 10px; padding: 12px 14px; border-radius: var(--r-m);
  background: var(--cream); display: flex; flex-wrap: wrap; gap: 8px 16px;
  align-items: center; justify-content: space-between; font-size: 0.88rem;
}
.nav-drop-foot a { display: inline-flex; padding: 0; font-weight: 700; color: var(--accent-deep); }

/* mobile panel */
.nav-panel {
  position: fixed; inset: 0; z-index: 190;
  background: var(--ink); color: #FFFFFF;
  padding: calc(var(--nav-h) + 26px) var(--gut) 40px;
  display: flex; flex-direction: column;
  overflow-y: auto; overscroll-behavior: contain;
}
:where(html.js) .nav-panel {
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s linear 0.35s;
}
body.menu-open .nav-panel {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s;
}
html:not(.js) .nav-panel { position: static; display: none; }
html:not(.js) .nav-burger { display: none; }
html:not(.js) .nav-links { display: flex; gap: 16px; overflow-x: auto; font-size: 0.8rem; }
html:not(.js) .nav-links a { text-decoration: none; white-space: nowrap; padding: 10px 0; }
.nav-panel > nav > a, .nav-acc-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; text-align: left; text-decoration: none;
  font-weight: 700; font-size: 1.2rem; padding: 13px 0;
  border-bottom: 1px solid var(--line-dark);
}
.nav-panel > nav > a[aria-current="page"] { color: var(--accent-warm); }
.nav-acc-btn svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.nav-acc.open .nav-acc-btn svg { transform: rotate(180deg); }
.nav-acc-list { display: grid; }
:where(html.js) .nav-acc-list { display: none; }
:where(html.js) .nav-acc.open .nav-acc-list { display: grid; }
.nav-acc-list a {
  display: flex; gap: 10px; padding: 11px 0 11px 14px; text-decoration: none;
  font-size: 1rem; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.nav-acc-list a .dn { color: var(--accent-warm); font-size: 0.78rem; font-weight: 800; }
.nav-acc-list a[aria-current="page"] { color: var(--accent-warm); }
.nav-panel-foot { margin-top: auto; padding-top: 24px; display: grid; gap: 2px; }
.nav-panel-foot a, .nav-panel-foot span {
  display: inline-flex; align-items: center; min-height: 42px; font-size: 0.98rem; font-weight: 600;
}
.nav-panel-foot .npf-addr { font-weight: 400; color: var(--muted-dark); min-height: 0; padding-top: 6px; }
body.menu-open { overflow: hidden; }

@media (min-width: 1080px) {
  .nav-burger, .nav-panel { display: none; }
  .nav-links { display: flex; gap: clamp(12px, 1.6vw, 26px); align-items: center; }
  .nav-links > a, .nav-links .nav-trigger {
    position: relative; text-decoration: none; font-weight: 600; font-size: 0.92rem;
    padding: 12px 2px; white-space: nowrap;
  }
  .nav-links > a::after, .nav-item > .nav-trigger::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px;
    border-radius: 2px; background: var(--accent);
    transform: scaleX(0); transform-origin: left center;
    transition: transform 0.3s var(--ease);
  }
  .nav-links > a:hover::after, .nav-links > a[aria-current="page"]::after,
  .nav-item.open > .nav-trigger::after, .nav-item.is-section > .nav-trigger::after { transform: scaleX(1); }
  .nav-tools { display: flex; align-items: center; gap: 15px; flex: none; }
  .nav-phone { display: inline-flex; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 52px; padding: 14px 28px;
  font-weight: 700; font-size: 0.97rem; text-decoration: none;
  border: 2px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: var(--btn-ink);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn .mag-in { display: inline-flex; align-items: center; gap: 9px; }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: currentColor; }
.band--cream .btn--ghost:hover, .band--sand .btn--ghost:hover { background: rgba(20,37,57,.05); color: var(--ink); }
.btn--sm { min-height: 44px; padding: 10px 20px; font-size: 0.9rem; }
.btn:hover .arrow { transform: translateX(4px); }
.arrow { display: inline-block; transition: transform 0.3s var(--ease); }

/* ============================================================
   HERO, cinematic, layered, scroll-scrubbed
   ============================================================ */
.hero {
  position: relative; overflow: clip;
  min-height: 94vh; min-height: 94svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #FFFFFF; background: var(--ink);
  padding-top: calc(var(--nav-h) + 26px);
}
.hero--lite { min-height: 66vh; min-height: 66svh; }
.hero-media { position: absolute; inset: 0; z-index: 1; }
.hero-media-inner { position: absolute; inset: -2%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(10, 20, 32, 0.62), rgba(10, 20, 32, 0.38) 40%, rgba(10, 20, 32, 0.94) 97%);
}
.hero-grain {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 30%, transparent 40%, rgba(10, 20, 32, 0.45) 100%);
}
.hero-content { position: relative; z-index: 3; width: 100%; padding-bottom: clamp(26px, 4vh, 48px); }
.hero-kicker { display: flex; align-items: center; gap: 11px; margin-bottom: clamp(12px, 2vh, 20px); }
.hero .h1 { margin-bottom: clamp(16px, 2.4vh, 24px); max-width: 16em; text-shadow: 0 2px 30px rgba(6, 14, 24, 0.35); }
.hero-sub {
  font-size: clamp(1.02rem, 2vw, 1.24rem); font-weight: 500;
  color: rgba(255, 255, 255, 0.9); max-width: 44em; margin-bottom: clamp(20px, 3vh, 30px);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
/* over photography the solid slate button reads as a hole, so it inverts */
.hero .hero-ctas .btn:not(.btn--ghost), .page-head .hero-ctas .btn:not(.btn--ghost) {
  background: #FFFFFF; border-color: #FFFFFF; color: var(--ink);
}
.hero .hero-ctas .btn:not(.btn--ghost):hover,
.page-head .hero-ctas .btn:not(.btn--ghost):hover {
  background: var(--accent-warm); border-color: var(--accent-warm); color: var(--ink);
}

.trust { position: relative; z-index: 3; background: rgba(10, 20, 32, 0.9); border-top: 1px solid var(--line-dark); }
.trust-grid { display: grid; gap: 1px; max-width: var(--wrap); margin-inline: auto; grid-template-columns: repeat(2, 1fr); }
.trust-item {
  display: flex; align-items: center; gap: 11px; padding: 15px var(--gut);
  color: #FFFFFF; font-weight: 600; font-size: 0.88rem; line-height: 1.3;
}
.trust-item svg { width: 21px; height: 21px; flex: none; color: var(--accent-warm); }
@media (min-width: 900px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .trust-item { padding-inline: clamp(14px, 2vw, 26px); }
  .trust-item:first-child { padding-left: var(--gut); }
  .trust-item:last-child { padding-right: var(--gut); }
}

.page-head {
  position: relative; overflow: clip; background: var(--ink); color: #FFFFFF;
  padding: calc(var(--nav-h) + clamp(52px, 9vh, 96px)) 0 clamp(36px, 6vh, 62px);
}
.page-head::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(90% 120% at 15% 0%, rgba(255, 255, 255, 0.07), transparent 60%);
}
.page-head .wrap { position: relative; }
.page-head .rule-line { margin-top: clamp(16px, 2.5vh, 26px); max-width: 300px; }
.page-head .hero-sub { margin-top: 16px; margin-bottom: 0; }

/* ============================================================
   BANDS + SECTION HEADS
   ============================================================ */
.band { padding-block: clamp(58px, 9vh, 112px); position: relative; }
.band--cream { background: var(--cream); }
.band--sand { background: var(--sand); }
.band--ink { background: var(--ink); color: #FFFFFF; }
.band--ink2 { background: var(--ink-2); color: #FFFFFF; }
.band--tight { padding-block: clamp(40px, 6vh, 70px); }

.shead { margin-bottom: clamp(28px, 5vh, 52px); max-width: 48em; }
.shead-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.shead-eyebrow .kicker { color: var(--accent-deep); }
.band--ink .shead-eyebrow .kicker, .band--ink2 .shead-eyebrow .kicker { color: var(--accent-warm); }
.shead p { margin-top: 15px; color: var(--muted); }
.band--ink .shead p, .band--ink2 .shead p { color: var(--muted-dark); }
.shead--center { margin-inline: auto; text-align: center; }
.shead--center .shead-eyebrow { justify-content: center; }

/* ============================================================
   FLIP CARDS (services)
   ============================================================ */
.flip-grid { display: grid; gap: 18px; }
@media (min-width: 680px) { .flip-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .flip-grid { grid-template-columns: repeat(3, 1fr); } }

.flip { perspective: 1400px; content-visibility: auto; contain-intrinsic-size: auto 330px; }
.flip-inner {
  position: relative; height: 100%; min-height: 310px;
  transition: transform 0.75s var(--ease);
  transform-style: preserve-3d; -webkit-transform-style: preserve-3d;
}
.flip:hover .flip-inner, .flip:focus-within .flip-inner, .flip.flipped .flip-inner { transform: rotateY(180deg); }
.flip-face {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: var(--r-l); overflow: hidden; overflow: clip;
  display: flex; flex-direction: column;
}
.flip-front { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-s); }
.flip-front img { width: 100%; height: 62%; object-fit: cover; }
.flip-front .ff-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.flip-front .ff-num { font-size: 0.74rem; font-weight: 800; color: var(--accent-deep); letter-spacing: 0.08em; }
.flip-back {
  transform: rotateY(180deg);
  background: var(--ink); color: #FFFFFF; padding: 22px 22px 20px;
  gap: 10px; justify-content: space-between;
}
.flip-back ul { display: grid; gap: 7px; margin-top: 4px; }
.flip-back li { display: flex; gap: 9px; font-size: 0.9rem; color: var(--muted-dark); line-height: 1.4; }
.flip-back li::before { content: ""; width: 5px; height: 5px; border-radius: 999px; background: var(--accent-warm); flex: none; margin-top: 9px; }
.flip-go { font-weight: 700; font-size: 0.92rem; color: var(--accent-warm); display: inline-flex; align-items: center; gap: 8px; }
.flip-hint {
  position: absolute; right: 12px; top: 12px; z-index: 2;
  width: 30px; height: 30px; border-radius: 999px;
  background: rgba(20, 32, 48, 0.74); color: #fff;
  display: grid; place-items: center; font-size: 0.8rem; font-weight: 700;
}
.flip-hint svg { width: 15px; height: 15px; }

/* ============================================================
   SERVICE LIST CARDS (non-flip)
   ============================================================ */
.cards { display: grid; gap: 18px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  display: flex; flex-direction: column; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-l);
  overflow: hidden; overflow: clip; text-decoration: none; box-shadow: var(--shadow-s);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-m); }
.card-media { position: relative; overflow: hidden; overflow: clip; }
.card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.7s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-num {
  position: absolute; left: 12px; top: 12px; background: rgba(20,37,57,.92); color: #FFFFFF;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; padding: 5px 12px; border-radius: 999px;
}
.card-body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card-body p { color: var(--muted); font-size: 0.95rem; }
.card-go { margin-top: auto; padding-top: 12px; font-weight: 700; font-size: 0.9rem; color: var(--accent-deep); display: inline-flex; align-items: center; gap: 7px; }
.card:hover .card-go .arrow { transform: translateX(4px); }

/* ============================================================
   CINEMATIC SCROLL PANEL
   ============================================================ */
.cine { position: relative; overflow: clip; background: var(--ink); color: #FFFFFF; }
.cine-media { position: absolute; inset: -8% 0; will-change: transform; }
.cine-media img { width: 100%; height: 100%; object-fit: cover; }
.cine::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(12, 20, 32, 0.9), rgba(12, 20, 32, 0.55) 60%, rgba(12, 20, 32, 0.75));
}
.cine-inner { position: relative; z-index: 2; padding-block: clamp(84px, 16vh, 190px); }
.cine-inner .h2 { max-width: 15em; }
.cine-inner p { margin-top: 16px; color: rgba(255, 255, 255, 0.85); }

/* ============================================================
   STATS / COUNTERS
   ============================================================ */
.stats { display: grid; gap: 16px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-dark); border-radius: var(--r-m); padding: 22px; }
.stat-num { font-weight: 800; font-size: clamp(2.1rem, 4.6vw, 2.9rem); line-height: 1; font-variant-numeric: tabular-nums; }
.stat-title { font-weight: 700; margin: 9px 0 5px; font-size: 0.98rem; }
.stat-copy { color: var(--muted-dark); font-size: 0.9rem; }

/* ============================================================
   CHECK LIST / SPLIT
   ============================================================ */
.split { display: grid; gap: clamp(28px, 4vw, 60px); align-items: center; }
@media (min-width: 920px) { .split { grid-template-columns: 1fr 1fr; } }
.split--wide-media { grid-template-columns: 1fr; }
@media (min-width: 920px) { .split--wide-media { grid-template-columns: 1.15fr 1fr; } }
.split-media img { width: 100%; border-radius: var(--r-l); }
.checks { display: grid; gap: 15px; margin-top: 22px; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check svg { width: 21px; height: 21px; flex: none; color: var(--accent-deep); margin-top: 3px; }
.band--ink .check svg, .band--ink2 .check svg, .on-dark .check svg { color: var(--accent-warm); }
.check b { display: block; font-weight: 700; }
.check span { color: var(--muted); font-size: 0.95rem; }
.band--ink .check span, .band--ink2 .check span { color: var(--muted-dark); }

/* ============================================================
   SCOPE LIST
   ============================================================ */
.scope { display: grid; border-top: 1px solid var(--line); }
.band--ink .scope, .band--ink2 .scope { border-color: var(--line-dark); }
.scope-item {
  display: grid; grid-template-columns: 46px 1fr; gap: 5px 16px;
  padding: clamp(15px, 2.3vh, 24px) 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.band--ink .scope-item, .band--ink2 .scope-item { border-color: var(--line-dark); }
.scope-num { font-weight: 800; color: var(--accent-deep); font-variant-numeric: tabular-nums; }
.band--ink .scope-num, .band--ink2 .scope-num { color: var(--accent-warm); }
.scope-name { font-weight: 700; font-size: clamp(1rem, 1.9vw, 1.18rem); }
.scope-copy { grid-column: 2; color: var(--muted); max-width: 56em; }
.band--ink .scope-copy, .band--ink2 .scope-copy { color: var(--muted-dark); }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee { overflow: clip; border-block: 1px solid var(--line-dark); padding-block: 15px; background: var(--ink-2); color: #FFFFFF; }
.mq-track { display: flex; width: max-content; }
:where(html.js) .marquee.mq-on .mq-track { animation: mq 42s linear infinite; }
.marquee:hover .mq-track, .marquee:focus-within .mq-track { animation-play-state: paused; }
.mq-seg {
  display: flex; gap: 22px; padding-right: 22px;
  font-weight: 700; text-transform: uppercase; white-space: nowrap;
  font-size: clamp(0.82rem, 1.5vw, 0.98rem); letter-spacing: 0.1em;
}
.mq-seg .dot { color: var(--accent-warm); }
@keyframes mq { to { transform: translateX(-50%); } }

/* ============================================================
   TILES / GALLERY / FILTERS
   ============================================================ */
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { position: relative; display: block; border-radius: var(--r-m); overflow: hidden; overflow: clip; }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.7s var(--ease); }
.tile:hover img { transform: scale(1.06); }
.tile-veil { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,20,32,.78), rgba(10,20,32,0) 55%); opacity: 0.85; pointer-events: none; }
.tile-tag {
  position: absolute; left: 12px; bottom: 11px; right: 12px;
  color: #FFFFFF; font-size: 0.8rem; font-weight: 600; line-height: 1.3;
}
.tile-loc { display: block; font-size: 0.72rem; font-weight: 600; color: var(--accent-warm); }
.pgrid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .pgrid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1060px) { .pgrid { grid-template-columns: repeat(4, 1fr); } }
.pgrid .tile[hidden] { display: none; }
/* initial cap: applied by the stylesheet so it is in force before any
   transition starts. Without JS every tile stays visible. */
.pgrid.capped .tile:nth-child(n+25) { display: none; }
.pgrid.capped2 .tile:nth-child(n+49) { display: none; }
html:not(.js) .pgrid.capped .tile:nth-child(n+25),
html:not(.js) .pgrid.capped2 .tile:nth-child(n+49) { display: block; }
.pgrid .tile { content-visibility: auto; contain-intrinsic-size: auto 240px; }
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: clamp(22px, 4vh, 36px); }
.fbtn {
  min-height: 44px; padding: 9px 19px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); font-weight: 600; font-size: 0.9rem;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.fbtn:hover { border-color: var(--accent-deep); color: var(--accent-deep); }
.fbtn[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.fbtn .fx { color: var(--accent-deep); font-weight: 700; }
.fbtn[aria-pressed="true"] .fx { color: var(--accent-warm); }
.pcount { margin-top: 18px; font-size: 0.9rem; color: var(--muted); }
.more-wrap { margin-top: 26px; display: flex; justify-content: center; }

/* ============================================================
   VIDEO CARDS
   ============================================================ */
.vids { display: grid; gap: 18px; }
@media (min-width: 800px) { .vids { grid-template-columns: repeat(3, 1fr); } }
.vid { content-visibility: auto; contain-intrinsic-size: auto 300px; border: 1px solid var(--line-dark); border-radius: var(--r-m); overflow: hidden; overflow: clip; background: rgba(255,255,255,.04); }
.vid video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.vid figcaption { padding: 13px 16px 15px; font-size: 0.9rem; font-weight: 600; }

/* ============================================================
   DRAG SCROLLER
   ============================================================ */
.drag { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.drag::-webkit-scrollbar { display: none; }
.drag.drag-live { cursor: grab; }
.drag.drag-live.dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.drag-track { display: flex; gap: 16px; width: max-content; padding-inline: var(--gut); }
.drag.drag-live img { pointer-events: none; }
.tx-card { flex: none; width: clamp(240px, 62vw, 380px); }
.tx-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: var(--r-m); }
.tx-card figcaption { padding-top: 10px; font-size: 0.9rem; font-weight: 600; }
.band--ink .tx-card figcaption { color: var(--muted-dark); }
.drag-hint { font-size: 0.8rem; margin-top: 15px; }

/* ============================================================
   PROCESS RAIL (pinned, scrubbed)
   ============================================================ */
.rail-panels { display: grid; gap: 20px; }
.rail-panel img { width: 100%; object-fit: cover; aspect-ratio: 4 / 3; border-radius: var(--r-m); }
.rail-panel figcaption { padding-top: 12px; }
.rail-step-num { font-weight: 800; color: var(--accent-warm); margin-right: 9px; }
.rail-step-title { font-weight: 700; }
.rail-step-copy { color: var(--muted-dark); margin-top: 5px; max-width: 38em; }
.rail-bar { display: none; }
.rail-inner {
  display: grid; gap: clamp(20px, 3.6vw, 54px);
  width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut);
  padding-block: clamp(58px, 9vh, 112px);
}
.rail:not(.rail-live) .rail-steps { display: none; }
:where(html.js) .rail.rail-live { height: 360vh; height: 360svh; }
:where(html.js) .rail-live .rail-stick {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  overflow: clip; display: flex; align-items: center; align-items: safe center;
}
:where(html.js) .rail-live .rail-inner { padding-block: 0; grid-template-columns: 1fr; align-items: center; max-height: 100%; }
:where(html.js) .rail-live .rail-panels {
  position: relative; aspect-ratio: 4 / 3; max-height: 50vh; max-height: 50svh;
  border-radius: var(--r-m); overflow: hidden; overflow: clip;
}
:where(html.js) .rail-live .rail-panel { position: absolute; inset: 0; opacity: 0; }
:where(html.js) .rail-live .rail-panel img { height: 100%; border-radius: 0; }
:where(html.js) .rail-live .rail-panel:first-child { opacity: 1; }
:where(html.js) .rail-live .rail-panel figcaption { display: none; }
:where(html.js) .rail-live .rail-steps { display: grid; gap: clamp(10px, 1.8vh, 20px); }
:where(html.js) .rail-live .rail-step { opacity: 0.4; transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
:where(html.js) .rail-live .rail-step.on { opacity: 1; transform: translateX(6px); }
:where(html.js) .rail-live .rail-bar {
  display: block; height: 3px; border-radius: 2px; background: rgba(255,255,255,.16);
  position: relative; overflow: clip; margin-top: 18px;
}
:where(html.js) .rail-live .rail-fill { position: absolute; inset: 0; background: var(--accent-warm); transform: scaleX(0); transform-origin: left center; }
@media (min-width: 900px) {
  :where(html.js) .rail-live .rail-inner { grid-template-columns: 1.1fr 1fr; }
  .rail-panels { grid-template-columns: repeat(2, 1fr); }
  :where(html.js) .rail-live .rail-panels { grid-template-columns: 1fr; }
}
@media (max-width: 899px), (max-height: 640px) {
  :where(html.js) .rail-live .rail-panels { max-height: 36vh; max-height: 36svh; }
  :where(html.js) .rail-live .rail-side .h2 { font-size: 1.4rem; margin-bottom: 10px; }
  :where(html.js) .rail-live .rail-steps { gap: 8px; }
  :where(html.js) .rail-live .rail-step-copy { display: none; }
  :where(html.js) .rail-live .rail-step.on .rail-step-copy { display: block; }
}
.rail-side .h2 { margin-bottom: 18px; }

/* ============================================================
   CONTACT / FORM / FOOTER / CALLBAR
   ============================================================ */
.info-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 26px; box-shadow: var(--shadow-s); display: grid; gap: 16px; align-content: start;
}
.info-row { display: grid; gap: 3px; }
.info-row .kicker { color: var(--accent-deep); }
.info-row a, .info-row address, .info-row span:not(.kicker) {
  font-style: normal; font-weight: 700; font-size: 1.04rem; text-decoration: none;
  display: inline-flex; align-items: center; min-height: 30px;
}
.info-row a:hover { color: var(--accent-deep); }

.contact-lines { display: grid; gap: 4px; margin-block: 18px; }
.contact-lines a, .contact-lines address {
  display: inline-flex; align-items: center; gap: 10px; font-style: normal;
  font-weight: 700; font-size: clamp(1.06rem, 2.4vw, 1.42rem); text-decoration: none; min-height: 44px;
}
.contact-lines svg { width: 20px; height: 20px; flex: none; color: var(--accent-deep); }
.contact-lines a:hover { color: var(--accent-warm); }

.form { display: grid; gap: 14px; }
.form label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; display: grid; gap: 6px; }
.form input, .form textarea, .form select {
  font: inherit; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--r-s);
  background: var(--paper); color: var(--ink); width: 100%;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--accent-deep); outline-offset: 0; }
.form-status { font-weight: 600; }
.hp { position: absolute; left: -9999px; }

.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 180;
  display: grid; grid-template-columns: 1fr 1fr; background: var(--ink);
  border-top: 1px solid var(--line-dark); border-radius: var(--r-m) var(--r-m) 0 0;
  overflow: hidden; overflow: clip; padding-bottom: env(safe-area-inset-bottom);
}
.callbar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; text-decoration: none; font-weight: 700; font-size: 0.94rem; color: #FFFFFF;
}
.callbar a.cb-bid { background: #FFFFFF; color: var(--ink); }
body.has-callbar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
@media (min-width: 1080px) { .callbar { display: none; } body.has-callbar { padding-bottom: 0; } }

.footer { background: var(--ink); color: #FFFFFF; padding: clamp(46px, 7vh, 76px) 0 30px; }
.footer-grid { display: grid; gap: 32px; margin-bottom: 36px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.1fr; } }
.footer h3 { font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,.66); margin-bottom: 10px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--accent-warm); }
.footer-brand p { color: var(--muted-dark); max-width: 32em; margin-top: 12px; font-size: 0.95rem; }
.footer-nav { display: grid; }
.footer-nav a { padding-block: 8px; font-size: 0.95rem; }
.footer-contact { display: grid; gap: 2px; font-weight: 600; }
.footer-contact a, .footer-contact address { padding-block: 8px; font-style: normal; display: block; font-size: 0.95rem; }
.footer-contact address { font-weight: 400; color: var(--muted-dark); }
.footer-legal {
  border-top: 1px solid var(--line-dark); padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between;
  font-size: 0.82rem; color: rgba(255,255,255,.62);
}

/* ============================================================
   TOUCH / REDUCED MOTION
   ============================================================ */
@media (hover: none) {
  .card:hover { transform: none; box-shadow: var(--shadow-s); }
  .card:hover .card-media img, .tile:hover img { transform: none; }
  .flip:hover .flip-inner { transform: none; }
  .flip.flipped .flip-inner { transform: rotateY(180deg); }
  .card-go .arrow, .arrow { transform: none !important; }
  .nav-links a::after { transition: none; }
}
@media (hover: hover) and (pointer: fine) { .flip-hint { display: none; } }

@media (prefers-reduced-motion: reduce) {
  :where(html.js) [data-rv],
  :where(html.js) [data-io],
  :where(html.js) .hl-inner,
  :where(html.js) .hero-media-inner,
  :where(html.js) .rule-fill {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
  :where(html.js) .mq-track { animation: none !important; }
  .nav-bg, .arrow, .card, .card-media img, .tile img, .tile-veil,
  .nav-burger span, .nav-panel, .nav-drop, .fbtn, .nav-links a::after,
  .nav-trigger svg, .nav-acc-btn svg, .btn {
    transition: none !important;
  }
  /* flip cards fall back to a stacked, fully readable card */
  .flip-inner { transform: none !important; transition: none !important; min-height: 0; }
  .flip-face { position: static; backface-visibility: visible; -webkit-backface-visibility: visible; }
  .flip-back { transform: none !important; border-radius: 0 0 var(--r-l) var(--r-l); }
  .flip-front { border-radius: var(--r-l) var(--r-l) 0 0; border-bottom: 0; }
  .flip-hint { display: none; }
  html { scroll-behavior: auto; }
}
