/* ==========================================================================
   PT Kenny Construction — site styles
   Dark theme, orange accent. Archivo (display) + Manrope (body).
   ========================================================================== */

:root {
  --bg: #0b0b0c;
  --surface: #141416;
  --surface-2: #1c1c1f;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f4f2ef;
  --muted: #a9a59f;
  --orange: #ca3803;
  --orange-hover: #e04408;
  --orange-text: #ff6a2b;
  --white: #ffffff;

  --font-display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1280px;
  --gutter: 24px;
  --gap: 16px;
  --radius: 24px;
  --radius-sm: 14px;
  --pad: clamp(24px, 3.2vw, 40px);
  --header-h: 80px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }
button { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.75rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; line-height: 1.2; }

.hl { color: var(--orange-text); }

:focus-visible { outline: 3px solid var(--orange-text); outline-offset: 3px; border-radius: 6px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--orange); color: var(--white); padding: 12px 18px; border-radius: 10px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section--tight { padding-block: 32px; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px;
  margin-bottom: 32px; flex-wrap: wrap;
}
.section-head h2 { margin-bottom: 0; max-width: 18ch; }
.section-head > p { color: var(--muted); max-width: 44ch; margin: 0; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange-text);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.98rem; line-height: 1.1;
  text-decoration: none; white-space: nowrap; border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--orange); color: var(--white); }
.btn--primary:hover { background: var(--orange-hover); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: rgba(255,255,255,.04); }
.btn--ghost:hover { border-color: var(--text); }
.btn--light { background: var(--white); color: #111; }
.btn--light:hover { background: #f1ece6; }
.btn--dark { background: #111; color: var(--white); }
.btn--dark:hover { background: #000; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--orange-text); text-decoration: none;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link-arrow:hover svg, a:hover > .link-arrow svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 12, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; flex: none; }
.brand img { height: 52px; width: auto; }

.nav__menu { display: flex; align-items: center; gap: 24px; }
.nav__menu > .btn { display: none; }
.nav__links { display: flex; gap: 4px; list-style: none; }
.nav__links a {
  display: block; padding: 10px 14px; border-radius: 999px;
  text-decoration: none; font-weight: 600; color: var(--muted); transition: color .2s, background-color .2s;
}
.nav__links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav__links a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.08); }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__toggle {
  display: none; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: transparent; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav__toggle svg { width: 22px; height: 22px; }

/* ---------- Cards ---------- */
.card {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--pad);
}
.card--orange { background: var(--orange); border-color: transparent; color: var(--white); }
.card--orange .eyebrow { color: var(--white); }
.card--glow::before, .card--glow-tr::before {
  content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(202, 56, 3, 0.28), transparent);
  pointer-events: none;
}
.card--glow::before { left: -220px; bottom: -260px; }
.card--glow-tr::before { right: -240px; top: -260px; }

.card__media { position: absolute; inset: 0; z-index: -2; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,11,12,.15) 0%, rgba(11,11,12,.35) 40%, rgba(11,11,12,.92) 100%),
    linear-gradient(90deg, rgba(11,11,12,.6) 0%, rgba(11,11,12,0) 70%);
}

.lineart {
  position: absolute; z-index: -1; right: -12%; top: 50%; transform: translateY(-50%);
  width: 70%; max-width: 420px; height: auto; color: rgba(255,255,255,.08); pointer-events: none;
}
.card--orange .lineart { color: rgba(255,255,255,.18); }

/* ---------- Home hero (bento) ---------- */
.hero { padding-top: 8px; }
.hero__grid {
  display: grid; gap: var(--gap);
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
}
.hero__main {
  grid-row: span 2; min-height: min(78vh, 680px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(28px, 4vw, 56px); padding-top: 72px;
}
.hero__main h1 { max-width: 14ch; }
.hero__tagline { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin-bottom: .6em; }
.hero__main .lead { color: rgba(244, 242, 239, .82); max-width: 56ch; font-size: 1.08rem; }
.hero__progress { position: absolute; top: 28px; left: clamp(28px, 4vw, 56px); display: flex; gap: 6px; }
.hero__progress span { width: 36px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.25); }
.hero__progress span:first-child { background: var(--orange); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero__cta { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.hero__cta h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin-bottom: .3em; }
.hero__cta p { color: rgba(255,255,255,.88); }
.hero__phone {
  display: inline-block; font-family: var(--font-display); font-stretch: 112%; font-weight: 800;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem); text-decoration: none; line-height: 1.1; margin-bottom: 8px;
}
.hero__accred { display: flex; flex-direction: column; gap: 18px; }
.accred-list { list-style: none; display: grid; gap: 16px; }
.accred-list li { display: flex; align-items: flex-start; gap: 14px; }
.accred-list svg { width: 26px; height: 26px; flex: none; color: var(--orange-text); margin-top: 2px; }
.accred-list strong { display: block; font-weight: 700; line-height: 1.3; }
.accred-list span { display: block; color: var(--muted); font-size: .92rem; }

/* ---------- Page hero ---------- */
.page-hero {
  min-height: clamp(380px, 52vh, 520px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(28px, 4vw, 56px); padding-top: 88px;
}
.page-hero h1 { max-width: 18ch; }
.page-hero > p { max-width: 58ch; color: rgba(244,242,239,.85); font-size: 1.1rem; }
.breadcrumb {
  position: absolute; top: clamp(24px, 3vw, 36px); left: clamp(28px, 4vw, 56px);
  display: flex; flex-wrap: wrap; gap: 6px; list-style: none; font-size: .9rem; color: rgba(244,242,239,.75);
}
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--text); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--text); font-weight: 600; }

/* ---------- Facts ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.fact { display: flex; align-items: center; gap: 16px; padding: 22px 24px; }
.fact__icon {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: rgba(202,56,3,.14); color: var(--orange-text);
}
.fact__icon svg { width: 24px; height: 24px; }
.fact strong { display: block; font-family: var(--font-display); font-weight: 700; line-height: 1.25; }
.fact span:not(.fact__icon) { display: block; color: var(--muted); font-size: .92rem; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--gap); }
.services-grid > * { grid-column: span 2; }
.services-grid > :nth-child(4), .services-grid > :nth-child(5) { grid-column: span 3; }
.service-card {
  display: flex; flex-direction: column; text-decoration: none; min-height: 300px;
  transition: border-color .25s, transform .25s var(--ease), background-color .25s;
}
a.service-card:hover { border-color: rgba(202,56,3,.6); transform: translateY(-3px); }
.service-card__num {
  font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: var(--muted);
  letter-spacing: .08em;
}
.service-card .service-card__num { position: absolute; top: var(--pad); right: var(--pad); }
.service-card__icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  background: rgba(202,56,3,.14); color: var(--orange-text); margin-bottom: 28px;
}
.service-card__icon svg { width: 28px; height: 28px; }
.service-card h3 { margin-top: auto; padding-right: 40px; }
.service-card:not(:has(.service-card__icon)) h3 { margin-top: 40px; }
.service-card p { color: var(--muted); }
.service-card .link-arrow { margin-top: 18px; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.split__media { min-height: 540px; padding: 0; }
.split__body { display: flex; flex-direction: column; justify-content: center; }
.split__body > p { color: var(--muted); max-width: 52ch; }
.badge {
  position: absolute; left: 20px; bottom: 20px; right: 20px; max-width: max-content;
  display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 14px;
  background: rgba(11,11,12,.72); border: 1px solid var(--line-strong); border-radius: 18px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-weight: 600; font-size: .95rem; line-height: 1.35;
}
.badge img { height: 34px; width: auto; flex: none; }

/* ---------- Check lists ---------- */
.checks { list-style: none; display: grid; gap: 20px; margin-top: 28px; }
.checks li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.checks .ic {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(202,56,3,.14); color: var(--orange-text);
}
.checks .ic svg { width: 22px; height: 22px; }
.checks strong { display: block; font-weight: 700; line-height: 1.35; }
.checks span:not(.ic) { display: block; color: var(--muted); font-size: .96rem; }

.tick-list {
  list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin: 24px 0 4px;
}
.tick-list li { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; line-height: 1.4; }
.tick-list svg { width: 18px; height: 18px; flex: none; color: var(--orange-text); margin-top: 2px; }

/* ---------- Tiles / projects ---------- */
.tile {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); text-decoration: none; isolation: isolate;
}
.tile img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transition: transform .6s var(--ease);
}
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11,11,12,0) 40%, rgba(11,11,12,.88) 100%);
}
.tile:hover img { transform: scale(1.04); }
.tile__cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 22px; }
.tile__cap h3, .tile__title { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.25; margin: 0; }
.tile__meta { color: var(--muted); font-size: .9rem; }
.tile__tag {
  display: inline-block; padding: 5px 11px; border-radius: 999px; background: var(--orange); color: var(--white);
  font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}

.projects-bento {
  display: grid; gap: var(--gap); grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px;
}
.projects-bento > :nth-child(1) { grid-column: span 2; grid-row: span 2; }
.projects-bento > :nth-child(2) { grid-column: span 2; }
.projects-bento > :nth-child(5), .projects-bento > :nth-child(6) { grid-column: span 2; }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.work-grid .tile { aspect-ratio: 4 / 3.2; }

/* Projects page filter */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter button {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: transparent; font-weight: 600; cursor: pointer; transition: background-color .2s, border-color .2s;
}
.filter button:hover { border-color: var(--text); }
.filter button[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: var(--white); }
.tile[hidden] { display: none; }

/* ---------- Clients & logos ---------- */
.clients { text-align: center; max-width: 980px; margin-inline: auto; }
.clients .eyebrow { justify-content: center; }
.clients > p { color: var(--muted); max-width: 60ch; margin-inline: auto; }
.logo-row {
  list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap); margin-top: 36px;
}
.logo-row--four { grid-template-columns: repeat(4, 1fr); }
.logo-row li {
  display: grid; place-items: center; height: 112px; padding: 18px 22px;
  background: var(--white); border-radius: var(--radius-sm);
}
.logo-row img { max-height: 72px; width: auto; object-fit: contain; }

.logo-plate {
  display: grid; place-items: center; height: 120px; padding: 18px; border-radius: var(--radius-sm);
  background: var(--white); margin-bottom: 24px;
}
.logo-plate img { max-height: 84px; width: auto; object-fit: contain; }
.logo-plate--dark { background: #000 !important; border: 1px solid var(--line-strong); }

.accred-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.accred-card p { color: var(--muted); }

/* ---------- Prose ---------- */
.prose-card > p { color: var(--muted); max-width: 64ch; }
.prose-card > p.big { color: var(--text); font-size: 1.2rem; line-height: 1.55; }
.prose-card > p a { color: var(--orange-text); }
.prose-card .btn { margin-top: 16px; }

.jump-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.jump-nav a {
  display: inline-flex; align-items: center; min-height: 42px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); text-decoration: none; font-weight: 600; font-size: .95rem;
  transition: border-color .2s, background-color .2s, color .2s;
}
.jump-nav a:hover { border-color: var(--orange); background: rgba(202,56,3,.12); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap); counter-reset: step; }
.step { counter-increment: step; padding: 28px 24px; }
.step::before {
  content: counter(step, decimal-leading-zero); display: block; margin-bottom: 36px;
  font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 2rem; color: var(--orange-text);
}
.step h3 { font-size: 1.15rem; }
.step p { color: var(--muted); font-size: .96rem; }

/* ---------- Service detail (services page) ---------- */
.service-detail {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--gap); margin-bottom: var(--gap);
}
.service-detail:nth-of-type(even) .service-detail__body { order: 2; }
.service-detail__body > p { color: var(--muted); max-width: 60ch; }
.service-detail__num {
  display: block; font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 1rem;
  color: var(--orange-text); letter-spacing: .1em; margin-bottom: 18px;
}
.service-detail__media { min-height: 420px; padding: 0; }
.service-detail__media--icon { display: grid; place-items: center; }
.service-detail__media--icon .lineart {
  position: static; transform: none; width: 60%; max-width: 320px; color: rgba(255,106,43,.55);
}

/* ---------- Scope ---------- */
.scope-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.scope-card .service-card__num { display: block; color: var(--orange-text); margin-bottom: 20px; }
.scope-card p { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { padding-block: 8px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  list-style: none; cursor: pointer; position: relative; padding: 22px 48px 22px 0;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background:
    linear-gradient(var(--orange-text), var(--orange-text)) center / 14px 2px no-repeat,
    linear-gradient(var(--orange-text), var(--orange-text)) center / 2px 14px no-repeat;
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 22px; max-width: 72ch; margin: 0; }
.faq details p a { color: var(--orange-text); }

/* ---------- Links card ---------- */
.links-card { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 48px; }
.links-card h2 { font-size: 1.3rem; margin-bottom: 16px; }

/* ---------- CTA band ---------- */
.cta-band {
  display: grid; grid-template-columns: 1.4fr auto; align-items: center; gap: 28px 48px;
  padding: clamp(32px, 5vw, 64px);
}
.cta-band h2 { max-width: 18ch; }
.cta-band p { max-width: 56ch; color: rgba(255,255,255,.9); font-size: 1.08rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .lineart { right: -6%; width: 46%; max-width: 460px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: var(--gap); }
.contact-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 36px; min-height: 200px;
  text-decoration: none; transition: border-color .25s, transform .25s var(--ease);
}
.contact-card:hover { transform: translateY(-3px); border-color: rgba(202,56,3,.6); }
.contact-card.card--orange:hover { border-color: transparent; }
.contact-card .label { font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.contact-card .value {
  font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.2; overflow-wrap: anywhere;
}
.map { padding: 0; min-height: 440px; }
.map iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  filter: grayscale(1) invert(.9) contrast(.9) brightness(.95);
}

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-block: clamp(64px, 12vw, 140px); }
.notfound .eyebrow { justify-content: center; }
.notfound h1 { margin-inline: auto; max-width: 16ch; }
.notfound p { color: var(--muted); max-width: 52ch; margin-inline: auto; }
.notfound .hero__actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 64px; background: #080809; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.footer__brand img { height: 64px; width: auto; margin-bottom: 20px; }
.footer__brand p { color: var(--muted); font-size: .95rem; max-width: 36ch; }
.footer__accred { display: flex; gap: 10px; margin-top: 20px; }
.footer__accred span {
  display: grid; place-items: center; height: 56px; padding: 8px 12px; border-radius: 10px; background: var(--white);
}
.footer__accred img { max-height: 40px; width: auto; }
.site-footer h2 {
  font-family: var(--font-display); font-size: .82rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text); margin-bottom: 18px;
}
.footer__list { list-style: none; display: grid; gap: 10px; }
.footer__list a, .footer__contact a { color: var(--muted); text-decoration: none; transition: color .2s; }
.footer__list a:hover, .footer__contact a:hover { color: var(--text); }
.footer__contact { display: grid; gap: 10px; font-size: .97rem; }
.footer__contact span { color: var(--muted); }
.footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 56px; padding-block: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem;
}

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  :root { --header-h: 68px; }
  .brand img { height: 44px; }
  .nav__toggle { display: inline-flex; }
  .nav__cta .btn { display: none; }
  .nav__menu {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 20px;
    padding: 20px var(--gutter) 28px; background: var(--bg); border-bottom: 1px solid var(--line);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s;
  }
  .nav__menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s var(--ease); }
  .nav__menu > .btn { display: inline-flex; }
  .nav__links { flex-direction: column; gap: 2px; }
  .nav__links a { padding: 14px 16px; font-size: 1.1rem; border-radius: 12px; }
  .no-js .nav__menu { position: static; opacity: 1; visibility: visible; transform: none; }
  .no-js .nav { flex-wrap: wrap; }
  .no-js .nav__toggle { display: none; }

  .hero__grid { grid-template-columns: 1fr 1fr; }
  .hero__main { grid-column: 1 / -1; grid-row: auto; min-height: 560px; }
  .two-col, .split, .service-detail { grid-template-columns: 1fr; }
  .service-detail:nth-of-type(even) .service-detail__body { order: 0; }
  .service-detail__media { min-height: 320px; }
  .split__media { min-height: 380px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .services-grid > *, .services-grid > :nth-child(4) { grid-column: span 1; }
  .services-grid > :nth-child(5) { grid-column: 1 / -1; }
  .scope-grid, .accred-cards, .work-grid { grid-template-columns: 1fr 1fr; }
  .projects-bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }
  .projects-bento > :nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .projects-bento > :nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .logo-row, .logo-row--four { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid > :last-child { grid-column: 1 / -1; }
  .cta-band { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --gap: 12px; --radius: 20px; }
  body { font-size: 1rem; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__main { min-height: 600px; }
  .facts, .services-grid, .scope-grid, .accred-cards, .work-grid, .steps,
  .contact-grid, .links-card, .tick-list { grid-template-columns: 1fr; }
  .services-grid > :nth-child(n) { grid-column: auto; }
  .service-card { min-height: 0; }
  .projects-bento { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .projects-bento > :nth-child(n) { grid-column: auto; grid-row: auto; }
  .logo-row, .logo-row--four { grid-template-columns: 1fr 1fr; }
  .logo-row li { height: 96px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .section-head { margin-bottom: 24px; }
  .hero__actions .btn, .cta-band__actions .btn { flex: 1 1 auto; }
  .badge { font-size: .88rem; }
  .breadcrumb { right: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Text stand-in where a logo image isn't available */
.logo-plate__text { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--white); letter-spacing: .02em; }
.logo-plate__text span { color: var(--orange-text); }
/* SMAS logo has its own charcoal background, so the plate matches it */
.logo-plate--smas { background: #2b2a29 !important; border: 1px solid var(--line-strong); }

/* ---------- Projects gallery with lightbox ---------- */
.section--gallery { padding-top: 32px; }
.section--flush { padding-top: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter-btn {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text);
  background: transparent; font: inherit; font-weight: 600; cursor: pointer; transition: background-color .2s, border-color .2s;
}
.filter-btn:hover { border-color: var(--text); }
.filter-btn[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: var(--white); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 280px; grid-auto-flow: dense; gap: var(--gap); }
.gallery .tile--wide { grid-column: span 2; }
button.tile { width: 100%; padding: 0; font: inherit; color: var(--text); text-align: left; cursor: zoom-in; }
button.tile:focus-visible { outline: 3px solid var(--orange-text); outline-offset: 3px; }
@media (max-width: 980px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; } }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr; } .gallery .tile--wide { grid-column: auto; } }

.lightbox {
  width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--line-strong);
  border-radius: var(--radius); background: var(--bg); color: var(--text); overflow: hidden;
}
.lightbox::backdrop { background: rgba(0,0,0,.85); }
.lightbox figure { margin: 0; }
.lightbox img { display: block; width: 100%; max-height: calc(100vh - 140px); object-fit: contain; background: #000; }
.lightbox figcaption { padding: 16px 22px; color: var(--muted); }
.lightbox__close {
  position: absolute; top: 12px; right: 12px; z-index: 1; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(11,11,12,.75); color: var(--white); cursor: pointer;
}
.lightbox__close svg { width: 22px; height: 22px; }
