/* Muhfy Maju Resources — page styles.
   Tokens and component classes (.btn, .card, .blueprint, .corner, .table, .tag)
   come from design-system.css; this file only holds the layout built on top. */

/* ── base ─────────────────────────────────────────────────────────────── */
body {
  margin: 0;
  background: var(--color-bg);
  font-family: var(--font-body);
  color: var(--color-text);
}
a { color: var(--color-accent-700); text-decoration: none; }
a:hover { color: var(--color-accent-800); }
h1, h2, h3, h4 { font-family: var(--font-heading); margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }
img { display: block; max-width: 100%; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* Small caps label used above most headings. */
.kicker {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent-700);
  margin-bottom: 16px;
}
.kicker--light { color: var(--color-accent-300); }

.link-arrow {
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 44px;
}

.lede { font-size: 16px; color: var(--color-neutral-700); margin: 0 0 36px; }

/* ── reveal on scroll ─────────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal="up"]   { transform: translateY(18px); }
[data-reveal="left"] { transform: translateX(-24px); }
[data-reveal].is-revealed { opacity: 1; transform: none; }

@keyframes mm-sweep    { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes mm-fade-out { 0% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@keyframes mm-pulse    { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes mm-marquee  { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── splash ───────────────────────────────────────────────────────────── */
.splash {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--color-accent-900);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  animation: mm-fade-out 0.5s ease 1.1s forwards;
}
.splash img { height: 110px; width: auto; }
.splash-bar { width: 220px; height: 2px; background: rgba(255, 255, 255, 0.2); overflow: hidden; }
.splash-bar > i { display: block; width: 100%; height: 100%; background: #fff; animation: mm-sweep 1.1s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
.splash-label {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

/* ── header ───────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(10px);
  transition: background 0.35s ease, border-color 0.35s ease;
}
/* Solid once scrolled off the hero, or on any page without a hero. */
.site-header.is-solid {
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  border-bottom-color: var(--color-divider);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  color: inherit;
  transition: padding 0.35s ease;
}
.brand img { height: 76px; width: auto; transition: height 0.35s ease; }
.site-header.is-compact .brand { padding: 8px 0; }
.site-header.is-compact .brand img { height: 52px; }

/* Two logo lockups; the header swaps them as it goes solid. */
.brand .logo-light { display: block; }
.brand .logo-dark  { display: none; }
.site-header.is-solid .brand .logo-light { display: none; }
.site-header.is-solid .brand .logo-dark  { display: block; }

.nav { display: flex; align-items: stretch; }
.nav a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 18px;
  font-family: var(--font-heading);
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--color-accent-500); }
.nav a.is-active { color: #fff; }
.nav a .rule {
  position: absolute;
  left: 18px; right: 18px; bottom: 14px;
  height: 2px;
  background: transparent;
  transition: background 0.25s ease;
}
.nav a.is-active .rule { background: #fff; }
.site-header.is-solid .nav a { color: var(--color-neutral-700); }
.site-header.is-solid .nav a:hover { color: var(--color-accent-500); }
.site-header.is-solid .nav a.is-active { color: var(--color-text); }
.site-header.is-solid .nav a.is-active .rule { background: var(--color-accent); }

/* Mobile nav toggle — hidden until the breakpoint. */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
  background: none;
  border: 0;
  cursor: pointer;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.site-header.is-solid .nav-toggle { color: var(--color-text); }

/* ── page shell ───────────────────────────────────────────────────────── */
.page { min-height: 100vh; background: var(--color-bg); position: relative; }
.page-inner { padding-top: 96px; }        /* clears the fixed header */
.page-inner--home { padding-top: 0; }     /* the hero sits under it */

.page-head { padding: 64px 0 44px; border-bottom: 1px solid var(--color-divider); }
.page-head h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1; }

/* ── hero ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  background: var(--color-accent-900);
}
@supports (height: 100svh) { .hero { height: 100svh; } }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(29, 45, 61, 0.92) 0%, rgba(29, 45, 61, 0.72) 45%, rgba(29, 45, 61, 0.3) 100%);
}
.hero-mesh {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
}
.hero-inner {
  position: relative;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 32px 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}
.hero-eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.hero-eyebrow i { width: 40px; height: 1px; background: rgba(255, 255, 255, 0.5); }
.hero-eyebrow span {
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.hero h1 {
  font-size: clamp(44px, 7.5vw, 96px);
  line-height: 0.94;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-bottom: 28px;
}
.hero-lede {
  font-size: 19px;
  line-height: 1.6;
  max-width: 54ch;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 40px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s ease;
}
.btn-hero-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.scroll-hint { position: absolute; bottom: 28px; left: 0; right: 0; }
.scroll-hint > div {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.scroll-hint span:first-child { animation: mm-pulse 2s ease-in-out infinite; }
.scroll-hint i { width: 60px; height: 1px; background: rgba(255, 255, 255, 0.35); }

/* ── stats ────────────────────────────────────────────────────────────── */
.stats-band { border-bottom: 1px solid var(--color-divider); background: var(--color-neutral-100); }
/* 1px grid gap over a divider-coloured bed draws the hairlines between cells. */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--color-divider);
  margin: 0 -28px;
}
.stat { background: var(--color-neutral-100); padding: 40px 28px; }
.stat-n { font-family: var(--font-heading); font-size: 46px; line-height: 1; color: var(--color-accent-800); }
.stat-label {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-neutral-700);
  margin-top: 10px;
}

/* ── divisions ────────────────────────────────────────────────────────── */
.section { padding: 88px 0; }
.section h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1; }

.division-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.division {
  padding: 30px 26px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  transition: opacity 0.7s ease, transform 0.7s ease, background 0.3s ease;
}
.division:hover { background: var(--color-accent-100); }
.division-no { font-family: var(--font-heading); font-size: 13px; letter-spacing: 0.2em; color: var(--color-accent-600); }
.division h3 { font-size: 30px; margin: 12px 0; }
.division p { font-size: 15px; line-height: 1.6; color: var(--color-neutral-800); margin: 0; }

/* ── split (image + copy on dark) ─────────────────────────────────────── */
.split { background: var(--color-accent-900); color: #fff; }
.split-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: stretch;
}
.split-media { min-width: 0; min-height: 460px; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-body { padding: 80px 0 80px 64px; }
.split-body h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.05; margin-bottom: 26px; max-width: 24ch; }
.split-body p { font-size: 17px; line-height: 1.7; max-width: 54ch; color: rgba(255, 255, 255, 0.8); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.chip {
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── client marquee ───────────────────────────────────────────────────── */
.marquee { position: relative; overflow: hidden; border: 1px solid var(--color-divider); background: #fff; }
.marquee-track { display: flex; width: max-content; animation: mm-marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  flex: 0 0 auto;
  width: 240px;
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-right: 1px solid var(--color-divider);
}
.marquee-item img { max-height: 100%; max-width: 100%; object-fit: contain; }
.marquee-fade { position: absolute; top: 0; bottom: 0; width: 90px; pointer-events: none; }
.marquee-fade--l { left: 0; background: linear-gradient(90deg, #fff, transparent); }
.marquee-fade--r { right: 0; background: linear-gradient(270deg, #fff, transparent); }

/* ── CTA ──────────────────────────────────────────────────────────────── */
.cta { border-top: 1px solid var(--color-divider); background: var(--color-neutral-100); }
.cta-inner { max-width: 1280px; margin: 0 auto; padding: 90px 32px; }
.cta h2 { font-size: clamp(36px, 5.5vw, 62px); line-height: 1.02; max-width: 26ch; margin-bottom: 40px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ── about ────────────────────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; padding: 56px 0; }
.prose { font-size: 17px; line-height: 1.7; display: flex; flex-direction: column; gap: 20px; }
.prose p { margin: 0; }
.about-side { display: flex; flex-direction: column; gap: 26px; }
.about-photo { height: 270px; overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

.mission { background: var(--color-accent-900); color: #fff; }
.mission-inner { max-width: 1280px; margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.mission-col { padding: 72px 0; }
.mission-col p { font-family: var(--font-heading); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25; margin: 0; }

.org-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--color-divider);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}
.org-row {
  background: var(--color-bg);
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 24px 0;
}
.org-no { font-family: var(--font-heading); font-size: 22px; color: var(--color-accent-600); }
.org-role {
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-neutral-700);
}
.org-name { font-family: var(--font-heading); font-size: 24px; }

/* ── services ─────────────────────────────────────────────────────────── */
.svc-row {
  display: grid;
  grid-template-columns: 60px minmax(0, 4fr) minmax(0, 6fr);
  gap: 32px;
  padding: 44px 0;
  border-bottom: 1px solid var(--color-divider);
}
.svc-no { font-family: var(--font-heading); font-size: 22px; color: var(--color-accent-600); }
.svc-row h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.05; }
.svc-row p { font-size: 17px; line-height: 1.7; margin: 0 0 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

.gallery-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-divider);
  margin-bottom: 22px;
}
.gallery-head h3 { font-size: clamp(24px, 3vw, 32px); }
.gallery-no { font-family: var(--font-heading); font-size: 18px; letter-spacing: 0.16em; color: var(--color-accent-600); }
.gallery-count {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-neutral-700);
}
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.shot { display: block; min-width: 0; height: 215px; overflow: hidden; background: var(--color-neutral-200); }
.shot img { width: 100%; height: 100%; object-fit: cover; }

.video-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.video { min-width: 0; aspect-ratio: 9 / 16; background: #000; }
.video video { width: 100%; height: 100%; object-fit: contain; background: #000; }

.svc-columns { columns: 3; column-gap: 48px; }
.svc-columns > div {
  break-inside: avoid;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-divider);
  font-size: 15px;
  line-height: 1.45;
}

/* ── projects ─────────────────────────────────────────────────────────── */
.project-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 26px; }
.project { min-width: 0; }
.project-thumb { height: 195px; margin-bottom: 18px; overflow: hidden; background: var(--color-neutral-200); }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-kind {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent-700);
}
.project h3 { font-size: 21px; line-height: 1.2; margin: 8px 0; }
.project-loc { font-size: 14px; color: var(--color-neutral-700); }

.records { display: flex; flex-direction: column; }
.record {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr) 120px;
  gap: 32px;
  padding: 26px 0;
  border-top: 1px solid var(--color-divider);
}
.record-client { font-family: var(--font-heading); font-size: 22px; line-height: 1.2; }
.record-work { font-size: 15px; line-height: 1.65; color: var(--color-neutral-800); }
.record-year {
  font-family: var(--font-heading);
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--color-accent-700);
  text-align: right;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-divider);
  border: 1px solid var(--color-divider);
}
.client-cell {
  background: #fff;
  min-width: 0;
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.client-cell img { height: 96px; width: auto; max-width: 100%; object-fit: contain; }
.client-name { font-family: var(--font-heading); font-size: 15px; letter-spacing: 0.06em; color: var(--color-neutral-800); }

/* ── certificates ─────────────────────────────────────────────────────── */
.certs-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; }
.doc-list { display: flex; flex-direction: column; gap: 1px; background: var(--color-divider); border-top: 1px solid var(--color-divider); }
.doc { background: var(--color-bg); padding: 20px 0; }
.doc-title { font-family: var(--font-heading); font-size: 20px; }
.doc-meta { font-size: 14px; color: var(--color-neutral-700); margin-top: 4px; }

/* Certificate pages, rendered from the source PDF and shown inline. */
.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px; max-width: 900px; }
.cert-frame {
  display: block;
  background: #fff;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cert-frame:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cert-frame img { width: 100%; height: auto; }
.cert-label { font-size: 13px; color: var(--color-neutral-700); margin-top: 12px; }
.biz-columns { columns: 3; column-gap: 48px; }
.biz-columns > div {
  break-inside: avoid;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-divider);
  font-size: 14px;
  line-height: 1.45;
}

/* ── contact ──────────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}
.contact-cell { background: var(--color-bg); padding: 46px 32px; }
.contact-cell:first-child { padding-left: 0; }
.contact-cell:last-child { padding-right: 0; }
.contact-label {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-neutral-700);
  margin-bottom: 14px;
}
.contact-value { font-family: var(--font-heading); font-size: clamp(22px, 2.6vw, 34px); overflow-wrap: break-word; }
.contact-hours { font-size: 17px; line-height: 1.6; }
/* auto-fit so the layout stays balanced whatever the number of addresses */
.address-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.address { padding: 28px 26px; }
.address-body { font-size: 17px; line-height: 1.65; }
.contact-banner { background: var(--color-accent-900); color: #fff; }
.contact-banner h2 { font-size: clamp(32px, 5vw, 56px); line-height: 1.05; max-width: 26ch; }

/* ── lightbox ─────────────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(29, 45, 61, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
}
.lightbox img { max-width: 100%; max-height: 78vh; object-fit: contain; }
.lightbox-bar { display: flex; align-items: center; gap: 26px; margin-top: 28px; color: #fff; }
.lightbox-bar a, .lightbox-close {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.lightbox-bar a:hover, .lightbox-close:hover { color: var(--color-accent-300); }
.lightbox-count { font-family: var(--font-heading); font-size: 14px; letter-spacing: 0.16em; opacity: 0.65; }
.lightbox-close { position: absolute; top: 28px; right: 32px; }
body.is-locked { overflow: hidden; }

/* ── WhatsApp button ──────────────────────────────────────────────────── */
.wa-fab {
  position: fixed;
  z-index: 90;
  right: 26px;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--color-accent-800);
  color: #fff;
  box-shadow: var(--shadow-lg);
  font-family: var(--font-heading);
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.25s ease, transform 0.25s ease;
}
.wa-fab:hover { background: var(--color-accent-900); color: #fff; transform: translateY(-2px); }
.wa-fab svg { display: block; }

/* ── footer ───────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--color-divider); background: var(--color-neutral-100); }
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 32px 104px;   /* bottom clears the WhatsApp button */
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: space-between;
  align-items: center;
}
.site-footer img { height: 96px; width: auto; }
.footer-meta { font-size: 13px; line-height: 1.7; color: var(--color-neutral-700); text-align: right; }
.footer-meta > div + div { margin-top: 3px; }
.footer-address { max-width: 46ch; margin-left: auto; }

/* Any image that fails to load falls back to a hatched placeholder image
   (see PLACEHOLDER in app.js), so a missing file never disturbs the layout. */

/* ── responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .project-grid { grid-template-columns: repeat(3, 1fr); }
  .video-grid   { grid-template-columns: repeat(4, 1fr); }
  .split-body   { padding: 64px 0 64px 44px; }
}

@media (max-width: 980px) {
  .wrap, .header-inner, .hero-inner, .split-inner, .mission-inner, .cta-inner, .footer-inner, .scroll-hint > div { padding-left: 24px; padding-right: 24px; }
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  /* Open state drops the links into a full-width sheet below the bar. */
  .site-header.is-open .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-divider);
    padding: 8px 24px 20px;
  }
  .site-header.is-open .nav a { color: var(--color-neutral-700); padding: 14px 0; }
  .site-header.is-open .nav a.is-active { color: var(--color-text); }
  .site-header.is-open .nav a .rule { left: 0; right: auto; width: 22px; bottom: 8px; }

  .stats { grid-template-columns: repeat(2, 1fr); margin: 0; }
  .division-grid { grid-template-columns: repeat(2, 1fr); }
  .split-inner { grid-template-columns: 1fr; }
  .split-media { min-height: 320px; }
  .split-body { padding: 56px 0; }
  .mission-inner { grid-template-columns: 1fr; gap: 0; }
  .mission-col { padding: 48px 0; }
  .about-grid, .certs-grid { grid-template-columns: 1fr; gap: 40px; }
  .svc-row { grid-template-columns: 44px 1fr; }
  .svc-row > div:last-child { grid-column: 2; }
  .svc-columns, .biz-columns { columns: 2; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-cell { padding: 32px 0; }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  /* Odd count would leave a bare divider-coloured cell — let the last one span. */
  .client-cell:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .record { grid-template-columns: 1fr; gap: 8px; }
  .record-year { text-align: left; }
  .org-row { grid-template-columns: 44px 1fr; row-gap: 4px; }
  .org-name { grid-column: 2; }
  .section { padding: 64px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 32px; }
  .footer-inner { justify-content: flex-start; gap: 20px; }
  .footer-meta { text-align: left; }
  .footer-address { margin-left: 0; max-width: none; }
}

@media (max-width: 640px) {
  .wrap, .header-inner, .hero-inner, .split-inner, .mission-inner, .cta-inner, .footer-inner, .scroll-hint > div { padding-left: 18px; padding-right: 18px; }
  .brand img { height: 54px; }
  .site-header.is-compact .brand img { height: 44px; }
  .stats { grid-template-columns: 1fr; }
  .division-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .shot { height: 150px; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: 1fr; }
  .svc-columns, .biz-columns { columns: 1; }
  /* Keep two columns: one-per-row made this section endlessly long. */
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .client-cell { padding: 18px 12px; gap: 12px; align-items: center; text-align: center; }
  .client-cell img { height: 52px; }
  .client-name { font-size: 12px; line-height: 1.35; }
  .site-footer img { height: 64px; }
  .footer-inner { padding-bottom: 92px; }
  .hero-inner { padding-top: 104px; padding-bottom: 72px; }
  .lightbox { padding: 20px; }
  .lightbox-bar { gap: 16px; }
  .wa-fab { right: 16px; bottom: 16px; padding: 12px 16px; font-size: 13px; }
  .site-footer img { height: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .scroll-hint span:first-child { animation: none; opacity: 0.8; }
  .splash { animation-duration: 0.01ms; }
  .splash-bar > i { animation: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
