/* =========================================================
   WCleaning — Editorial + Blueprint design system
   Navy + Gold. Serif headings. Mono technical annotations.
   ========================================================= */

:root {
  /* Dynamic colors injected from client_data.json via index.php */
  /* DM Sans is the project's single typeface — used for body, UI,
     buttons, navigation, editorial headings, AND every technical /
     CAD-style annotation. The --serif and --mono tokens are kept as
     aliases pointing at DM Sans so existing selectors don't need a
     sweeping rename. IBM Plex Mono and Playfair Display are no longer
     loaded — see the Google Fonts <link> in index.php. */
  --sans: "DM Sans", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: "DM Sans", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Sans", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* Gold accent (sits on top of the navy/paper theme tokens from JSON) */
  --gold: #d4a93a;
  --gold-soft: #e7c66a;

  --maxw: 1440px;
  --gutter: 32px;

  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ============================================================
   SLIDE DECK — every viewport turns each section into a 100vh
   slide that flips via JS scroll-hijack. Single swipe / wheel
   tick advances one slide. The contact slide is internally
   scrollable so the footer underneath it is reached via native
   scroll (slideCanScroll() in app.js gates the flip).
   ============================================================ */
html, body {
  height: 100vh;
  overflow: hidden;
  overscroll-behavior: none;
}
#deck {
  position: relative;
  width: 100%;
  height: 100vh;
  transition: transform 805ms cubic-bezier(.2, .7, .1, 1);
  will-change: transform;
  backface-visibility: hidden;
}
#deck.no-anim { transition: none; }
#deck > section,
#deck > footer {
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  position: relative;
}
@media (prefers-reduced-motion: reduce) {
  #deck { transition: none; }
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img { display: block; max-width: 100%; }

/* ----- Type ----- */
.mono { font-family: var(--mono); font-feature-settings: "ss01"; letter-spacing: 0.02em; }
.kicker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker .dot { display: inline-block; width: 6px; height: 6px; background: currentColor; margin-right: 10px; transform: translateY(-2px); }
.kicker.ink { color: var(--ink); }
.kicker.paper { color: var(--paper); opacity: .7; }

h1, h2, h3, h4, h5, p { margin: 0; }

.h-display {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(48px, 7.4vw, 116px);
  line-height: 0.96;
  letter-spacing: -0.015em;
}
.h-section {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(36px, 4.8vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.012em;
}
.h-card {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(22px, 1.8vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.005em;
}

.lead {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60ch;
}
.body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
}

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

section { position: relative; }

/* Persistent blueprint vertical grid behind everything */
.bp-grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: calc((100vw - 64px) / 12) 100%;
  background-position: 32px 0;
  mask-image: linear-gradient(to bottom, black, black);
}

/* ----- Header ----- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 88px;
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 0;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.header.is-dark {
  color: var(--paper);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-mark {
  height: 56px;
  width: auto;
  transition: opacity .25s var(--ease);
}
.brand-logo-white { display: none !important; }
.brand-logo-dark { display: block !important; }

.header.is-dark .brand-logo-white { display: block !important; }
.header.is-dark .brand-logo-dark { display: none !important; }
/* Menu is now light/white — force the dark logo and dark text while the overlay is open */
.header.is-menu-open .brand-logo-white { display: none !important; }
.header.is-menu-open .brand-logo-dark { display: block !important; }
.header.is-menu-open {
  background: var(--paper) !important;
  color: var(--ink) !important;
  border-bottom-color: transparent !important;
}
.brand-meta {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--muted);
  border-left: 1px solid var(--rule);
  padding-left: 14px;
}
.header.is-dark .brand-meta { color: rgba(255,255,255,0.6); border-left-color: rgba(255,255,255,0.18); }

.header-right {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding-top: 88px;
}
.hero-photo {
  position: absolute;
  inset: 0;
  background: var(--ink);
  overflow: hidden;
}
.hero-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 1;
  border-radius: 16px;
}
.hero-photo-img.active {
  opacity: 1;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Hero dark overlay — raise the alpha (last value, 0–1) for a darker hero,
     lower it for a brighter, more visible video background. */
  background: rgba(0, 0, 0, 0.45);
  z-index: 2;
}
/* Placeholder annotation in the corner of hero photo */
.hero-photo-label {
  position: absolute;
  bottom: 32px;
  right: 32px;
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255,255,255,0.42);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: right;
  line-height: 1.5;
  z-index: 3;
}
.hero-photo-label .ph-tag {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,0.25);
  margin-bottom: 8px;
}

/* Hero copy */
.hero-inner {
  position: relative;
  z-index: 5;
  height: calc(100vh - 88px);
  min-height: 640px;
  display: grid;
  grid-template-rows: 1fr auto auto;
  padding: 48px 0 56px;
}
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.hero-top .col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-top .col strong {
  color: var(--paper);
  font-weight: 500;
}

.hero-body {
  align-self: end;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 1200px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.hero-eyebrow::before {
  content: "";
  width: 56px;
  height: 1px;
  background: rgba(255,255,255,0.5);
  display: inline-block;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(44px, 6.6vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.012em;
  max-width: 18ch;
}
.hero-title em {
  font-style: italic;
  font-weight: 600;
  color: var(--gold);
}
.hero-sub-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: end;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 24px;
}
.hero-sub {
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
  max-width: 52ch;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 22px;
  border: 1px solid currentColor;
  border-radius: 999px;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn .arr { display: inline-block; transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--ink); }
.btn-ghost { color: var(--paper); border-color: rgba(255,255,255,0.4); }
.btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.btn-ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-ink:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-ink-ghost { color: var(--ink); border-color: var(--ink); }
.btn-ink-ghost:hover { background: var(--ink); color: var(--paper); }

/* Corner ticks (blueprint registration marks) */
.bp-corners > * {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid currentColor;
  opacity: 0.5;
}
.bp-corners .tl { top: 16px; left: 16px; border-right: 0; border-bottom: 0; }
.bp-corners .tr { top: 16px; right: 16px; border-left: 0; border-bottom: 0; }
.bp-corners .bl { bottom: 16px; left: 16px; border-right: 0; border-top: 0; }
.bp-corners .br { bottom: 16px; right: 16px; border-left: 0; border-top: 0; }

/* ----- Section frame ----- */
.section {
  padding: 120px 0;
  position: relative;
  z-index: 2;
  background: var(--paper);
}
.section.dark {
  background: var(--ink);
  color: var(--paper);
}
.section.alt {
  background: var(--paper-2);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 80px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}
.section.dark .section-head { border-bottom-color: rgba(255,255,255,0.12); }
.section-head .left { display: flex; flex-direction: column; gap: 24px; }
.section-head .right { color: var(--muted); max-width: 48ch; }
.section.dark .section-head .right { color: rgba(255,255,255,0.62); }

.section-index {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.section.dark .section-index { color: rgba(255,255,255,0.55); }
.section-index .num { color: var(--gold); font-weight: 600; }
.section.dark .section-index .num { color: var(--gold-soft); }

/* ----- Stats band ----- */
.stats {
  background: var(--ink);
  color: var(--paper);
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  opacity: 0.7;
}
.stats-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 56px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  position: relative;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.stat {
  padding: 8px 28px 8px 0;
  border-left: 1px solid rgba(255,255,255,0.12);
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .num {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(48px, 5.2vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.stat .num .suffix {
  font-size: 0.35em;
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.55);
  align-self: center;
}
.stat .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  line-height: 1.4;
}
.stat .desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255,255,255,0.55);
  max-width: 28ch;
}

/* ----- About ----- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 96px;
  align-items: start;
}
.about-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
}
.about-visual .ph-label {
  position: absolute;
  bottom: 16px; left: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.about-visual .corner-coords {
  position: absolute;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted-2);
  letter-spacing: 0.1em;
}
.about-visual .cc-tl { top: 10px; left: 12px; }
.about-visual .cc-tr { top: 10px; right: 12px; }
.about-visual .cc-bl { bottom: 10px; left: 12px; }
.about-visual .cc-br { bottom: 10px; right: 12px; }

.about-text { display: flex; flex-direction: column; gap: 32px; }
.about-text .h-section { max-width: 16ch; }
.about-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--ink);
  max-width: 28ch;
  font-weight: 400;
}
.about-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.about-meta dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.about-meta dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

/* ----- Services (horizontal scroll) ----- */
.services {
  background: var(--paper-2);
  padding: 120px 0 80px;
}
.services-head { padding: 0 var(--gutter); max-width: var(--maxw); margin: 0 auto 56px; }
.services-rail-wrap {
  position: relative;
  overflow: hidden;
  padding-bottom: 56px;
}
.services-rail {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 16px var(--gutter) 28px;
  scrollbar-width: none;
}
.services-rail::-webkit-scrollbar { display: none; }
.services-rail > .spacer-end { flex: 0 0 max(0px, calc((100vw - var(--maxw)) / 2 + var(--gutter))); }

.service-card {
  flex: 0 0 clamp(340px, 32vw, 460px);
  scroll-snap-align: start;
  background: var(--paper);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  cursor: pointer;
  min-height: 540px;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: 0 12px 40px -16px rgba(0,0,0,0.18);
}
.service-card .sc-thumb {
  position: relative;
  aspect-ratio: 16 / 11;
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.service-card .sc-thumb svg.bp,
.service-card .sc-thumb img.bp {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--ink);
  transition: transform 0.6s var(--ease);
}
.service-card .sc-thumb img.bp { object-fit: cover; }
.service-card:hover .sc-thumb img.bp { transform: scale(1.05); }
.service-card .sc-meta {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  gap: 14px;
}
.service-card .sc-meta .num { color: var(--ink); font-weight: 500; }
.service-card .sc-body {
  padding: 28px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
.service-card .sc-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin-top: 4px;
}
.service-card .sc-summary {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.service-card .sc-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}
.service-card .sc-more {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.service-card .sc-more .arr { transition: transform .25s var(--ease); }
.service-card:hover .sc-more .arr { transform: translateX(4px); }
.service-card .sc-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.rail-controls {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}
.rail-progress {
  height: 1px;
  background: var(--rule);
  flex: 1;
  margin: 0 28px;
  position: relative;
}
.rail-progress .bar {
  position: absolute;
  top: -1px; left: 0;
  height: 3px;
  background: var(--ink);
  transition: width .25s var(--ease), left .25s var(--ease);
}
.rail-btn {
  width: 48px;
  height: 48px;
  border: 1px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s var(--ease), color .2s var(--ease), opacity .2s var(--ease);
}
.rail-btn:hover { background: var(--ink); color: var(--paper); }
.rail-btn:disabled { opacity: 0.25; cursor: not-allowed; }
.rail-btn:disabled:hover { background: transparent; color: var(--ink); }
.rail-count {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ============================================================
   SERVICE SLIDES (one full-viewport slide per service)
   Each carries --svc-bg / --svc-fg via inline style. The slide
   itself is transparent — the color is painted on a fixed
   layer behind #deck (.deck-color-layer) that JS tweens
   between adjacent service slides in HSL space.
   ============================================================ */
.deck-color-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--paper);
}
#deck { position: relative; z-index: 1; }
.service-slide {
  position: relative;
  /* No background — the .deck-color-layer behind the deck is what
     shows through here, and JS tweens its color in HSL so adjacent
     service slides blend through intermediate hues during a flip. */
  background: transparent;
  color: var(--svc-fg);
  overflow: hidden;
}
.service-slide .service-slide-shell {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 48px;
}
.service-slide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  width: 100%;
}
/* Default (odd services, --reverse OFF): text on the LEFT, media on RIGHT.
   `--reverse` flips it (text right, media left). DOM order is media→text,
   so we use `order` to flip without touching the markup. */
.service-slide-text  { order: 1; }
.service-slide-media { order: 2; }
.service-slide--reverse .service-slide-text  { order: 2; }
.service-slide--reverse .service-slide-media { order: 1; }

/* --- Media (video) frame --- */
.service-slide-media {
  position: relative;
}
.service-video-frame {
  position: relative;
  aspect-ratio: 16 / 11;
  background: rgba(0, 0, 0, 0.18);
  border: 8px solid #f3f3f3;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.service-slide[data-theme="dark"] .service-video-frame,
.service-slide[data-theme="light"] .service-video-frame {
  border-color: #f3f3f3;
}
.service-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.2);
}
.service-video-tag,
.service-video-num {
  position: absolute;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  z-index: 2;
}
.service-video-tag { top: 14px; left: 14px; }
.service-video-num { bottom: 14px; right: 14px; }

/* --- Text block --- */
.service-slide-text {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 56ch;
}
.service-slide-kicker {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.78;
  padding-bottom: 18px;
  border-bottom: 1px solid currentColor;
}
.service-slide-kicker .num { font-weight: 700; opacity: 1; }
.service-slide[data-theme="dark"] .service-slide-kicker { border-bottom-color: rgba(255, 255, 255, 0.28); }
.service-slide[data-theme="light"] .service-slide-kicker { border-bottom-color: rgba(0, 0, 0, 0.28); }
.service-slide-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(36px, 4.6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.012em;
  color: inherit;
}
.service-slide-summary {
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.55;
  opacity: 0.86;
  max-width: 52ch;
}
.service-slide-tag {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
  padding: 8px 12px;
  border: 1px solid currentColor;
  align-self: flex-start;
}
.service-slide[data-theme="dark"] .service-slide-tag { border-color: rgba(255, 255, 255, 0.45); }
.service-slide[data-theme="light"] .service-slide-tag { border-color: rgba(0, 0, 0, 0.45); }
.service-slide-actions { margin-top: 8px; }
.service-slide-cta {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}
.service-slide[data-theme="dark"] .service-slide-cta:hover {
  background: var(--paper);
  color: var(--svc-bg);
  border-color: var(--paper);
}
.service-slide[data-theme="light"] .service-slide-cta:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ----- Service modal ----- */
.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
}
.modal-back.open { opacity: 1; pointer-events: auto; }
.modal {
  width: min(720px, 92vw);
  background: var(--paper);
  height: 100vh;
  overflow-y: auto;
  transform: translateX(40px);
  transition: transform .4s var(--ease);
  display: flex;
  flex-direction: column;
}
.modal-back.open .modal { transform: translateX(0); }

.modal-head {
  position: sticky;
  top: 0;
  background: var(--paper);
  padding: 24px 40px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}
.modal-close {
  width: 36px; height: 36px;
  border: 1px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.modal-close:hover { background: var(--ink); color: var(--paper); }
.modal-body { padding: 48px 40px 64px; }
.modal-hero {
  aspect-ratio: 16 / 9;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 16px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.modal-hero svg { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--ink); }
.modal-eyebrow {
  display: flex;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.modal h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin-bottom: 24px;
  max-width: 18ch;
}
.modal-content p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 16px;
}
.modal-content .features {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  border-top: 1px solid var(--rule);
}
.modal-content .features li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14.5px;
  line-height: 1.55;
}
.modal-content .features li .idx {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding-top: 2px;
}
.modal-content .features li strong { display: block; font-weight: 600; margin-bottom: 2px; }

/* ----- Contact ----- */
.contact {
  background: #0b1e3f;
  color: #ffffff;
  padding: 0;
}
.contact-shell {
  padding-top: 120px;
  padding-bottom: 80px;
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
}
.contact-col-text {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vh, 44px);
  min-width: 0;
}
.contact-col-map {
  position: relative;
  min-height: 100%;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}
.contact-col-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) invert(0.92) contrast(0.95);
}
.contact-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 20px;
  max-width: none;
  margin: 0;
}
.contact-kicker {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.contact-kicker .num {
  color: var(--gold, #d4c896);
  font-weight: 600;
}
.contact-title {
  font-family: var(--serif);
  font-size: clamp(36px, 4.2vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}
.contact-lead {
  font-size: 16.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  max-width: 56ch;
  margin: 0;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 0;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 24px;
  min-height: 180px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  color: inherit;
  text-decoration: none;
  transition: background 0.22s var(--ease), border-color 0.22s var(--ease), transform 0.22s var(--ease);
}
a.contact-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}
.contact-card-lbl {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.contact-card-val {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 500;
  color: #ffffff;
  /* Let long values (emails, URLs, long phone numbers) break inside the card
     instead of pushing the card — and the whole column — wider than the viewport. */
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}
.contact-card-meta {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.contact-actions {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.contact-actions .btn-primary {
  background: var(--gold, #d4c896);
  color: #0b1e3f;
  border-color: var(--gold, #d4c896);
}
.contact-actions .btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}
.contact-actions .btn-ghost:hover {
  background: #ffffff;
  color: #0b1e3f;
  border-color: #ffffff;
}

.contact-map-strip {
  position: relative;
  height: clamp(280px, 38vh, 420px);
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.contact-map-strip iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) invert(0.92) contrast(0.95);
}
.contact-map-pin {
  position: absolute;
  top: 24px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(11, 30, 63, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  z-index: 2;
}
.contact-map-pin-dot {
  width: 8px;
  height: 8px;
  background: var(--gold, #d4c896);
  border-radius: 50%;
  position: relative;
}
.contact-map-pin-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid var(--gold, #d4c896);
  border-radius: 50%;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ----- Footer (dark band on top with floating graphic + white card below) ----- */
.footer {
  --footer-logo-h: clamp(180px, 26vh, 260px);
  background: var(--ink);
  color: var(--ink);
  padding: 60px 0 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.footer-logo-overflow {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 0 var(--gutter);
  margin-bottom: calc(var(--footer-logo-h) / -2);
  position: relative;
  z-index: 2;
}
.footer-logo-overflow img {
  width: auto;
  height: var(--footer-logo-h);
  max-width: 100%;
  object-fit: contain;
}
.footer-card {
  background: var(--paper);
  color: var(--ink);
  position: relative;
  z-index: 1;
  padding: calc(var(--footer-logo-h) / 2 + 32px) 0 0;
  margin: 0 clamp(20px, 4vw, 64px) clamp(20px, 4vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-radius: 24px;
  overflow: hidden;
}
.footer-card-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter) 36px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.footer-logo img {
  width: auto;
  height: 56px;
  border-radius: 50%;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px;
}
.footer-nav a {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.01em;
  transition: color .2s var(--ease);
}
.footer-nav a:hover { color: var(--gold); }
.footer-social {
  display: flex;
  gap: 14px;
  justify-content: center;
}
.footer-social-btn {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: var(--paper);
  transition: border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), background-color .2s var(--ease);
}
.footer-social-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.footer-contact-line {
  font-family: var(--sans);
  font-size: 13.5px;
  letter-spacing: 0.01em;
  color: rgba(11, 30, 63, 0.78);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 18px;
  text-align: center;
  margin: 4px 0 0;
}
.footer-contact-line a {
  color: inherit;
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.footer-contact-line a:hover {
  color: var(--ink);
  border-bottom-color: var(--rule);
}
.footer-contact-line .sep {
  color: rgba(11, 30, 63, 0.25);
}
.footer-bar {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--gutter);
  border-top: 1px solid var(--rule-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: rgba(11, 30, 63, 0.55);
}
.footer-bar-links {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-bar-links a {
  color: rgba(11, 30, 63, 0.7);
  transition: color .2s var(--ease);
}
.footer-bar-links a:hover { color: var(--ink); }
.footer-bar-links .sep { color: rgba(11, 30, 63, 0.25); }
.footer-bar-meta {
  letter-spacing: 0.08em;
  color: rgba(11, 30, 63, 0.45);
}

/* ----- Scroll reveal (re-fires every time a slide is entered) ----- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.04s var(--ease), transform 1.04s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.04s var(--ease), transform 1.04s var(--ease);
  transition-delay: calc(var(--i, 0) * 105ms);
}
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }

/* ----- Misc ticks ----- */
.tick-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

/* ----- Mobile menu toggle (hamburger) ----- */
.menu-toggle {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  margin-right: -10px;
  position: relative;
  z-index: 60;
  color: inherit;
}
.menu-icon {
  position: relative;
  width: 32px;
  height: 22px;
  display: inline-block;
}
.menu-icon > span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .2s var(--ease), top .3s var(--ease);
}
.menu-icon > span:nth-child(1) { top: 0; }
.menu-icon > span:nth-child(2) { top: 10px; }
.menu-icon > span:nth-child(3) { top: 20px; }
.menu-icon.is-open > span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.menu-icon.is-open > span:nth-child(2) { opacity: 0; }
.menu-icon.is-open > span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* ----- Primary menu overlay -----
   Mobile (<= 767px): fullscreen takeover.
   Desktop (>= 768px): drop-down sheet covering top ~30% of viewport.
*/
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;       /* dynamic viewport so it ignores mobile URL-bar height changes */
  background: var(--paper);
  color: var(--ink);
  z-index: 45;          /* below the header (z-index: 50) so logo + lang + X stay visible on top */
  display: none;
  flex-direction: column;
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.25);
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(.2, .7, .1, 1);
  will-change: transform;
}
@media (min-width: 768px) {
  .mobile-menu {
    height: clamp(280px, 32vh, 380px);
  }
}
.mobile-menu.open { transform: translateY(0); }
.primary-menu-inner {
  position: relative;
  padding: 100px var(--gutter) 0;    /* top padding clears the 88px header */
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 1;
}
.primary-nav {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px clamp(16px, 3vw, 56px);
  align-items: end;
  padding: 18px 0 12px;
}
.primary-nav-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  color: var(--ink);
  position: relative;
  padding-bottom: 12px;
  /* Default hidden state — used both before reveal and after hide */
  opacity: 0;
  transform: translateX(-32px);
  transition:
    opacity 250ms cubic-bezier(.2, .7, .1, 1),
    transform 250ms cubic-bezier(.2, .7, .1, 1);
}
/* Reveal: forward stagger — link 1 first, then 2, 3, 4 */
.mobile-menu.items-in .primary-nav-item {
  opacity: 1;
  transform: translateX(0);
}
.mobile-menu.items-in .primary-nav-item:nth-child(1) { transition-delay:   0ms; }
.mobile-menu.items-in .primary-nav-item:nth-child(2) { transition-delay: 250ms; }
.mobile-menu.items-in .primary-nav-item:nth-child(3) { transition-delay: 500ms; }
.mobile-menu.items-in .primary-nav-item:nth-child(4) { transition-delay: 750ms; }
/* Hide: reverse stagger — link 4 first, then 3, 2, 1 */
.mobile-menu.items-out .primary-nav-item {
  opacity: 0;
  transform: translateX(-32px);
}
.mobile-menu.items-out .primary-nav-item:nth-child(4) { transition-delay:   0ms; }
.mobile-menu.items-out .primary-nav-item:nth-child(3) { transition-delay: 250ms; }
.mobile-menu.items-out .primary-nav-item:nth-child(2) { transition-delay: 500ms; }
.mobile-menu.items-out .primary-nav-item:nth-child(1) { transition-delay: 750ms; }
.primary-nav-eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.005em;
  color: var(--muted);
}
.primary-nav-title {
  font-family: var(--sans);
  font-size: clamp(23.8px, 3.64vw, 53.2px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-transform: lowercase;
}
/* Brand-gold underline grows L→R on hover over 0.5s */
.primary-nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .5s cubic-bezier(.2, .7, .1, 1);
}
.primary-nav-item:hover::after,
.primary-nav-item:focus-visible::after { transform: scaleX(1); }
.primary-menu-foot {
  border-top: 1px solid var(--rule-soft);
  padding: 22px var(--gutter);
  margin: 0 calc(var(--gutter) * -1);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 18px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--muted);
  text-align: center;
}
.primary-menu-foot a {
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.primary-menu-foot a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.primary-menu-foot .sep { color: var(--rule); }

/* Legacy .mm-foot-row rule kept so footer-row a-tags inside any leftover markup
   still resolve; harmless if the markup no longer exists. */
.mm-foot-row a, .mm-foot-row span:not(.mm-foot-lbl) {
  color: var(--ink);
  font-weight: 500;
}

/* (Older dark-overlay header overrides removed; new light-overlay rules live up
   beside the .brand-logo-* declarations near the top of the file.) */

/* ----- Services Dropdown (Desktop) ----- */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-trigger {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 10px 14px;
  cursor: pointer;
  opacity: 0.78;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity .2s var(--ease);
}

.nav-dropdown:hover .nav-dropdown-trigger {
  opacity: 1;
}

.nav-dropdown-trigger .chevron {
  display: inline-block;
  font-size: 9px;
  transition: transform .25s var(--ease);
}

.nav-dropdown:hover .nav-dropdown-trigger .chevron {
  transform: translateY(2px);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  width: 380px;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  text-align: left;
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--ink);
  transition: background .2s var(--ease), color .2s var(--ease);
  border-bottom: 1px solid var(--rule-soft);
  width: 100%;
  cursor: pointer;
}

.nav-dropdown-item:last-child {
  border-bottom: 0;
}

.nav-dropdown-item .item-num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
  min-width: 18px;
}

.nav-dropdown-item .item-title {
  font-weight: 500;
  line-height: 1.35;
}

.nav-dropdown-item:hover {
  background: var(--paper-2);
}

.nav-dropdown-item:hover .item-num {
  color: var(--ink);
}

/* Dark theme support for header dropdown menu */
.header.is-dark .nav-dropdown-menu {
  background: var(--ink);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.6);
}

.header.is-dark .nav-dropdown-item {
  color: var(--paper);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.header.is-dark .nav-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.header.is-dark .nav-dropdown-item .item-num {
  color: rgba(255, 255, 255, 0.4);
}

.header.is-dark .nav-dropdown-item:hover .item-num {
  color: var(--paper);
}

/* ----- Mobile Menu Collapsible drawer & Close button ----- */
.mm-close {
  position: absolute;
  top: 24px;
  right: var(--gutter);
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
  cursor: pointer;
  z-index: 60;
}

.mm-close:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--paper);
  transform: scale(1.04);
}

.mm-collapsible {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mm-collapsible-trigger {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: baseline;
  gap: 20px;
  padding: 22px 0;
  text-align: left;
  width: 100%;
  color: inherit;
  cursor: pointer;
}

.mm-collapsible-trigger .mm-num {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.5);
}

.mm-collapsible-trigger .mm-label {
  font-size: clamp(28px, 7vw, 40px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.mm-collapsible-trigger .chevron {
  font-size: 16px;
  opacity: 0.5;
  transition: transform .3s var(--ease);
  margin-right: 8px;
}

.mm-collapsible.is-expanded .mm-collapsible-trigger .chevron {
  transform: rotate(180deg);
}

.mm-collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease), padding-bottom .4s var(--ease);
  display: flex;
  flex-direction: column;
  padding-left: 56px;
}

.mm-collapsible.is-expanded .mm-collapsible-content {
  max-height: 520px;
  padding-bottom: 24px;
}

.mm-sub-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.7);
  transition: color .2s var(--ease), padding-left .2s var(--ease);
}

.mm-sub-link:last-child {
  border-bottom: 0;
}

.mm-sub-link:hover {
  color: var(--paper);
  padding-left: 8px;
}

.mm-sub-num {
  font-family: var(--sans);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
}

.mm-sub-label {
  font-weight: 500;
  line-height: 1.3;
}

/* ----- Responsive ----- */
@media (max-width: 960px) {
  .brand-meta { display: none; }

  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 56px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  /* Shrink the email/phone value on narrow screens so it never out-sizes the card. */
  .contact-card-val { font-size: 15.5px; }
  .contact-col-map { min-height: clamp(260px, 40vh, 380px); }
  .contact-cards { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .contact-shell { padding-top: 88px; padding-bottom: 56px; }
  .contact-head { gap: 18px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hero-sub-row { grid-template-columns: 1fr; gap: 24px; }
  .hero-actions { justify-content: flex-start; flex-wrap: wrap; }
  .section { padding: 80px 0; }

  /* Override the inline 50px paddings the user applied for desktop only */
  .hero-inner { height: auto !important; min-height: calc(100vh - 88px); padding: 32px 24px 48px !important; grid-template-rows: auto 1fr; gap: 40px; }
  .hero-body { align-self: start; }
  .hero-top { height: auto !important; gap: 12px; flex-direction: column; align-items: flex-start; }
  .hero-top .col,
  .hero-top .col[style] { padding: 0 !important; align-items: flex-start !important; text-align: left !important; }
  .hero-top .col:nth-child(2) { display: none; }
  .hero-title,
  .hero-title[style] { padding: 0 !important; font-size: clamp(32px, 8vw, 64px) !important; word-break: break-word; hyphens: auto; }
  .hero-sub,
  .hero-sub[style] { padding: 0 !important; }

  .hero-photo-label { bottom: 16px; right: 16px; font-size: 9px; max-width: 60vw; }

  /* Modal: from side-drawer to full screen */
  .modal { width: 100vw; }
  .modal-back { justify-content: stretch; }

  /* About visual is tall on mobile — limit it */
  .about-visual { aspect-ratio: 4 / 3.6; }
  .about-meta { grid-template-columns: 1fr; gap: 20px; }

  /* Section head smaller */
  .section-head { padding-bottom: 20px; }

  /* Contact: collapse cards to a single column on small screens */
  .contact-card { min-height: 0; padding: 22px 20px; }
  .contact-actions { flex-direction: column; align-items: stretch; }
  .contact-actions .btn { justify-content: center; }
  .contact-map-strip { height: clamp(220px, 32vh, 320px); }

  /* Services rail: smaller cards (legacy, still here in case referenced) */
  .service-card { flex: 0 0 78vw; min-height: 480px; }
  .services-rail { gap: 16px; }
  .rail-controls { justify-content: center; }
  .services-rail > .spacer-end { display: none; }

  /* Service slides — stack media on top, text below (consistent on mobile) */
  .service-slide .service-slide-shell { padding-top: 88px; padding-bottom: 48px; }
  .service-slide-grid {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }
  .service-slide-media,
  .service-slide--reverse .service-slide-media { order: 1; }
  .service-slide-text,
  .service-slide--reverse .service-slide-text  { order: 2; }
  .service-slide-title { font-size: clamp(32px, 8vw, 48px); }

  /* Stats head row */
  .stats-head { margin-bottom: 32px; }
  .stat .num { font-size: clamp(40px, 9vw, 64px); }
}

@media (max-width: 600px) {
  :root { --gutter: 18px; }
  /* Asymmetric gutter to clear the right-edge dot nav */
  .shell { padding: 0 36px 0 18px; }
  /* Service slides (A.03–A.07) — beat the deck-mode override at line 2274 */
  #deck > .service-slide > .service-slide-shell {
    padding-left: 18px !important;
    padding-right: 36px !important;
  }
  .header { height: 64px; }
  .hero { padding-top: 64px; }
  .hero-inner { min-height: calc(100vh - 64px); padding: 24px 36px 32px 18px !important; }
  .brand-mark { height: 32px; }

  .hero-title,
  .hero-title[style] { font-size: clamp(36px, 10vw, 52px); line-height: 1.0; }
  .hero-top { font-size: 9.5px; }
  .hero-top .col strong { font-size: 9.5px; }

  .stats { padding: 48px 0 56px; }
  .stats-grid { grid-template-columns: 1fr; row-gap: 0; }
  .stat {
    border-left: 0 !important;
    padding-left: 0 !important;
    padding-top: 16px;
    padding-bottom: 16px;
    border-top: 1px solid rgba(255,255,255,0.12);
    gap: 0;
    flex-direction: row;
    align-items: center;
  }
  .stat:first-child { border-top: 0; padding-top: 0; }
  .stat:last-child { padding-bottom: 0; }
  .stat::after { display: none !important; }
  .stat .num {
    font-size: clamp(32px, 9vw, 46px);
    flex: 0 0 auto;
    padding-right: 20px;
    border-right: 2px solid var(--gold, #d4c896);
    margin-right: 20px;
  }
  .stat .label {
    font-size: 10.5px;
    flex: 1;
  }
  .stat .desc { display: none; }

  .footer { padding: 72px 0 28px; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; padding-bottom: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .footer-mono-row { flex-wrap: wrap; gap: 16px; }

  .modal-body { padding: 32px 20px 48px; }
  .modal-head { padding: 16px 20px; }
  .modal h2 { font-size: clamp(26px, 7vw, 36px); }
  .modal-content .features li { grid-template-columns: 44px 1fr; gap: 12px; }

  .service-card { flex: 0 0 84vw; min-height: 460px; }
  .service-card .sc-body { padding: 22px 22px 22px; }
  .service-card .sc-title { font-size: 19px; }

  .rail-controls { padding: 0 var(--gutter); }
  .rail-btn { width: 44px; height: 44px; }

  /* Section paddings tighter */
  .section { padding: 64px 0; }
  .services { padding: 80px 0 64px; }

  /* About visual aspect a bit shorter */
  .about-visual { aspect-ratio: 4 / 3.2; }

  /* Hero btn group stacks better */
  .hero-actions .btn { padding: 12px 16px; font-size: 11px; }

  /* Mobile menu — slightly smaller labels on tiny screens */
  .mm-nav a { padding: 18px 0; grid-template-columns: 44px 1fr; gap: 14px; }
  .mm-nav .mm-label { font-size: clamp(26px, 8vw, 34px); }
  .mobile-menu-inner { padding: 88px var(--gutter) 28px; }
}

/* Notch / iOS safe area */
@supports (padding: max(0px)) {
  .header-inner { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
  .mobile-menu-inner {
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
    padding-bottom: max(32px, env(safe-area-inset-bottom));
  }
}

/* =========================================================
   CUSTOM PRELOADER (BLUEPRINT / TECHNICAL CAD STYLE)
   ========================================================= */
#preloader {
  position: fixed;
  inset: 0;
  background: #fefefe;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.6s var(--ease);
}
#preloader img {
  max-width: 420px;
  width: 70vmin;
  height: auto;
  display: block;
}
.preloader-progress {
  width: min(360px, 56vmin);
  height: 3px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border-radius: 2px;
}
.preloader-progress-fill {
  width: 0%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  animation: preloader-fill 4000ms cubic-bezier(.4, 0, .2, 1) forwards;
}
@keyframes preloader-fill {
  from { width: 0%; }
  to   { width: 100%; }
}
#preloader.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Language Switcher Styling */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.lang-btn {
  padding: 6px 4px;
  opacity: 0.55;
  font-weight: 500;
  transition: opacity .2s var(--ease), color .2s var(--ease), font-weight .2s var(--ease);
  cursor: pointer;
}
.lang-btn:hover { opacity: 0.85; }
.lang-btn.active {
  opacity: 1;
  font-weight: 700;
}
.lang-sep {
  opacity: 0.35;
}
.header.is-dark .lang-sep {
  color: var(--paper);
}
.mm-lang-switcher {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.mm-lang-btn {
  font-family: var(--sans);
  font-size: 12px;
  background: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

/* ----- Section Navigator (right-side dots) ----- */
.section-nav {
  position: fixed;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 18px;
  pointer-events: none;
}
.section-nav-dot {
  position: relative;
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  background: transparent;
  /* Default to white so the dots paint correctly during the initial hero render
     (which is always data-theme="dark"). The data-theme attribute set by JS will
     override this to navy when the dot is over a light section. */
  color: var(--paper);
  cursor: pointer;
  pointer-events: auto;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.section-nav-dot:hover { transform: scale(1.2); }
.section-nav-dot.is-active { background: currentColor; }
.section-nav-dot[data-theme="dark"] { color: var(--paper); }
.section-nav-dot[data-theme="light"] { color: var(--ink); }
.section-nav-dot .section-nav-label {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(4px);
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  background: var(--ink);
  color: var(--paper);
}
.section-nav-dot[data-theme="dark"] .section-nav-label {
  background: var(--paper);
  color: var(--ink);
}
.section-nav-dot[data-theme="light"] .section-nav-label {
  background: var(--ink);
  color: var(--paper);
}
.section-nav-dot:hover .section-nav-label,
.section-nav-dot:focus-visible .section-nav-label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
@media (max-width: 640px) {
  .section-nav { right: 12px; gap: 14px; }
  .section-nav-dot { width: 10px; height: 10px; }
}

/* ============================================================
   DECK-MODE SECTION SIZING (all viewports)
   Each section is forced to 100vh. Internals are vertically
   centered and clipped if they would otherwise overflow.
   ============================================================ */
@media (min-width: 0) {
  /* Hero: kill the inline height: 600px on .hero-inner so it fills the slide */
  #deck > .hero .hero-inner {
    height: calc(100vh - 88px) !important;
    min-height: 0 !important;
    padding: 48px 0 56px !important;
  }
  @media (max-width: 767px) {
    #deck > .hero .hero-inner {
      padding: 32px 24px 48px !important;
    }
  }
  @media (max-width: 480px) {
    #deck > .hero .hero-inner {
      padding: 24px 20px 32px !important;
    }
  }

  /* Sections (About / Instagram / Contact) center their .shell in 100vh */
  #deck > .section {
    padding: 0 !important;
    display: flex;
    align-items: center;
  }
  #deck > .section > .shell {
    width: 100%;
    padding-top: 96px;
    padding-bottom: 32px;
    max-height: 100vh;
    overflow: hidden;
  }
  #deck > .section .section-head {
    margin-bottom: 40px;
    padding-bottom: 20px;
  }

  /* Services slide */
  #deck > .services {
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  #deck > .services .services-head {
    padding-top: 96px;
    margin-bottom: 24px;
  }
  #deck > .services .services-head .section-head { margin-bottom: 0; padding-bottom: 16px; }
  #deck > .services .services-rail-wrap { padding-bottom: 32px; }
  #deck > .services .service-card { min-height: 0; height: clamp(360px, 56vh, 540px); }

  /* Stats slide — oversized editorial numbers */
  #deck > .stats {
    padding: 0 !important;
    display: flex;
    align-items: center;
  }
  #deck > .stats > .shell {
    width: 100%;
    padding-top: 96px;
    padding-bottom: 48px;
  }
  #deck > .stats .stats-head { margin-bottom: 48px; padding-bottom: 18px; }
  #deck > .stats .stats-title {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(36px, 4.8vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.012em;
    margin: 20px 0 56px;
    max-width: 18ch;
  }
  #deck > .stats .stat .num {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(60px, 11.2vw, 176px);
    line-height: 0.92;
    letter-spacing: -0.04em;
  }
  #deck > .stats .stat .num .suffix {
    font-size: 0.28em;
    color: var(--gold-soft);
    font-family: var(--mono);
    font-weight: 400;
  }
  #deck > .stats .stat::after {
    content: "";
    display: block;
    width: 32px;
    height: 2px;
    background: var(--gold);
    margin: 14px 0 4px;
    order: 2;
  }
  #deck > .stats .stat { gap: 0; }
  #deck > .stats .stat .num   { order: 1; }
  #deck > .stats .stat .label { order: 3; margin-top: 4px; }
  #deck > .stats .stat .desc  { order: 4; margin-top: 8px; }

  /* About slide — standardized centered head + balanced 2-col body */
  #deck > #about .section-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    margin-bottom: 40px;
    padding-bottom: 22px;
  }
  #deck > #about .section-head .left { gap: 14px; align-items: center; }
  #deck > #about .section-head .right {
    max-width: 60ch;
    color: var(--muted);
    margin: 0 auto;
  }
  #deck > #about .h-section {
    max-width: 18ch;
    font-size: clamp(34px, 4.2vw, 56px);
    line-height: 1.05;
  }
  #deck > #about .about-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: center;
  }
  #deck > #about .about-visual {
    aspect-ratio: 1 / 1;
    max-height: calc(100vh - 380px);
    margin: 0 auto;
    width: 100%;
    max-width: 380px;
  }
  #deck > #about .about-text { gap: 20px; max-width: 56ch; }
  #deck > #about .about-quote { font-size: clamp(18px, 1.4vw, 22px); max-width: 32ch; }
  #deck > #about .about-meta { padding-top: 16px; gap: 14px 28px; }

  /* Mobile: collapse to single column, shrink everything, hide body + meta to fit 100vh */
  @media (max-width: 767px) {
    #deck > #about .section-head {
      margin-bottom: 14px;
      padding-bottom: 0;
      border-bottom: 0;
      gap: 10px;
    }
    #deck > #about .section-head .right { display: none; }
    #deck > #about .h-section {
      font-size: clamp(22px, 6.5vw, 32px);
      max-width: 14ch;
    }
    #deck > #about .about-grid {
      grid-template-columns: 1fr;
      gap: 16px;
    }
    #deck > #about .about-visual {
      aspect-ratio: 1 / 1;
      max-width: 55.2%;
      max-height: 31.68vh;
      margin: 0 auto;
    }
    #deck > #about .about-text { gap: 14px; align-items: center; text-align: center; }
    #deck > #about .about-quote {
      font-size: clamp(15px, 4vw, 18px);
      max-width: 28ch;
      margin: 0 auto;
    }
    #deck > #about .about-text .body { display: none; }
    #deck > #about .about-meta { display: none; }
  }
  /* Strip badge frame + CAD overlays on every viewport */
  #deck > #about .about-visual {
    border: 0;
    background: transparent !important;
  }
  #deck > #about .about-visual .corner-coords,
  #deck > #about .about-visual .ph-label,
  #deck > #about .about-visual .bp-corners {
    display: none;
  }

  /* Instagram slide — tighter head + tighter embed cap so the feed grid isn't clipped mid-row */
  #deck > #instagram .section-head { margin-bottom: 24px; padding-bottom: 14px; }
  #instagram .ig-head { grid-template-columns: 1fr; }
  #instagram .ig-head .h-section { white-space: nowrap; }
  /* Desktop only — the 64px grid gap meant for two columns left a big gap once
     stacked to 1fr; tighten just the row gap between title and description. */
  @media (min-width: 768px) {
    #instagram .ig-head { row-gap: 16px; }
  }
  /* On narrow phones the headline would clip the viewport — allow it to wrap. */
  @media (max-width: 767px) {
    #instagram .ig-head .h-section { white-space: normal; }
  }
  #deck > #instagram .ig-frame {
    max-height: calc(100vh - 340px);
    overflow: hidden;
    position: relative;
  }
  #deck > #instagram .ig-frame::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--paper));
    pointer-events: none;
  }

  /* Service slides — each lives as its own 100vh slide */
  #deck > .service-slide {
    padding: 0 !important;
    display: flex;
    align-items: center;
  }
  #deck > .service-slide > .service-slide-shell {
    padding-top: 96px;
    padding-bottom: 48px;
    max-width: var(--maxw);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }
  #deck > .service-slide .service-video-frame {
    max-height: calc(100vh - 220px);
  }

  /* Contact slide (last deck slide) — release internal overflow so the footer
     below the contact-grid is reachable via natural scroll, not a deck flip.
     Scrollbar hidden so it doesn't fight with the right-edge dot navigator. */
  #deck > #contact {
    overflow-y: auto !important;
    overflow-x: hidden;
    padding: 0 !important;
    display: block;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  #deck > #contact::-webkit-scrollbar { width: 0; height: 0; }
  #deck > #contact .contact-scroll {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  #deck > #contact .contact-scroll > .contact-shell {
    padding-top: 96px;
    padding-bottom: 48px;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  /* Footer riding inside the contact slide — no extra height cap */
  #deck > #contact .footer { flex: 0 0 auto; }
}

/* Primary menu — responsive collapse */
@media (max-width: 960px) {
  .primary-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px clamp(16px, 4vw, 40px);
    padding: 24px 0 32px;
  }
  .primary-nav-title { font-size: clamp(32px, 8vw, 56px); }
}
@media (max-width: 767px) {
  /* Fullscreen mobile menu — single column, scrollable if needed */
  .primary-menu-inner {
    padding: 100px var(--gutter) 24px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .primary-nav {
    grid-template-columns: 1fr;
    grid-auto-rows: min-content;       /* rows shrink to content, no stretching */
    align-content: start;              /* stack rows to the top, no row distribution */
    align-items: start;
    gap: 22px;
    padding: 12px 0 24px;
    flex: 0 0 auto;                    /* don't let the grid grow to fill its flex parent */
  }
  .primary-nav-item {
    gap: 4px;
    padding-bottom: 6px;
  }
  .primary-nav-title {
    font-size: clamp(40px, 11vw, 64px);
    line-height: 1;
  }
  .primary-nav-eyebrow { font-size: 14px; }
  /* Address / phone / email stack vertically on mobile, address on top */
  .primary-menu-foot {
    margin-top: 40px;                  /* trim the empty gap below the nav */
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 6px;
    font-size: 13px;
    padding: 22px 0;
    margin-left: 0;
    margin-right: 0;
  }
  .primary-menu-foot .sep { display: none; }
}

/* Mobile-only: keep everything legible without forcing slides */
@media (max-width: 767px) {
  #deck > .stats .stats-title {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(28px, 8vw, 44px);
    line-height: 1.05;
    margin: 16px 0 32px;
  }
  #deck > #instagram .ig-frame { overflow: visible; }

  /* Footer / contact slide — stack the bottom bar so links don't collide on narrow screens */
  .footer { padding: 48px 0 24px; }
  .footer { --footer-logo-h: clamp(140px, 36vw, 200px); }
  .footer-nav { gap: 22px 28px; font-size: 14px; }
  .footer-contact-line { font-size: 13px; gap: 6px 14px; }
  .footer-contact-line .sep { display: none; }
  .footer-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
}

/* =========================================================
   DM SANS overrides on previously-mono service-slide bits.
   These used to ride on the `.mono` utility class in markup
   (now removed) — pin the font explicitly so future markup
   tweaks don't reintroduce IBM Plex Mono on them.
   ========================================================= */
.service-video-tag,
.service-video-num,
.service-slide-kicker,
.service-slide-cat {
  font-family: var(--sans);
}

/* Mono-row inside footer-bottom and footer-mono-row stays sans now */
.footer-mono-row {
  font-family: var(--sans);
}

/* =========================================================
   CLICKABLE SERVICE-SLIDE MEDIA
   Whole media block acts as a button — clicking opens the modal,
   same as the "Learn more" CTA. Add a subtle hover state.
   ========================================================= */
.service-slide-media-trigger {
  cursor: pointer;
  transition: transform .35s var(--ease);
}
.service-slide-media-trigger:hover {
  transform: translateY(-3px);
}
.service-slide-media-trigger:hover .service-video-frame {
  border-color: currentColor;
}
.service-slide-media-trigger:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 6px;
}
.service-slide-media-trigger .service-video-frame {
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.service-slide-media-trigger:hover .service-video-frame {
  box-shadow: 0 18px 48px -22px rgba(0, 0, 0, 0.5);
}

/* =========================================================
   SERVICE MODAL GALLERY
   6-up grid placed below the modal body / CTA buttons.
   Clicking any tile opens the lightbox.
   ========================================================= */
.modal-gallery-block {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.modal-gallery-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.modal-gallery-kicker {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.modal-gallery-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0;
}
.modal-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.modal-gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s var(--ease), transform .35s var(--ease);
}
.modal-gallery-item:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.modal-gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease), filter .25s var(--ease);
}
.modal-gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(0.94);
}
.modal-gallery-item::after {
  content: "↗";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 30, 63, 0.85);
  color: var(--paper);
  font-size: 12px;
  opacity: 0;
  transition: opacity .25s var(--ease);
  pointer-events: none;
}
.modal-gallery-item:hover::after { opacity: 1; }
.modal-gallery-item:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .modal-gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .modal-gallery-block { margin-top: 40px; padding-top: 24px; }
}

/* =========================================================
   LIGHTBOX
   Full-viewport black overlay with a single image and prev/next
   buttons. Lives outside the modal stack so it draws on top.
   ========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 10, 18, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-figure {
  margin: 0;
  max-width: min(92vw, 1200px);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transform: scale(0.97);
  transition: transform .35s var(--ease);
}
.lightbox.open .lightbox-figure { transform: scale(1); }
.lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  background: var(--ink);
}
.lightbox-counter {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--paper);
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { top: 50%; left: 24px; transform: translateY(-50%); }
.lightbox-next { top: 50%; right: 24px; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.05); }

@media (max-width: 600px) {
  .lightbox-close { top: 14px; right: 14px; width: 40px; height: 40px; }
  .lightbox-prev { left: 10px; width: 40px; height: 40px; }
  .lightbox-next { right: 10px; width: 40px; height: 40px; }
  .lightbox-figure { max-width: 96vw; }
}
