/* Skyscraper Sdn Bhd
   Layout: "site HUD". Survey-grid night zones (header, heroes, bands, footer) alternate with
   paper-white reading zones. A laser-level red line marks progress, focus and the one load sequence;
   photos sit in instrument frames with corner marks; interactive parts answer every tap. */
:root {
  color-scheme: light;
  /* paper zones */
  --bg: #FFFFFF;
  --surface: #F2F4F6;
  --surface-2: #E7EAEE;
  --card: #FFFFFF;
  --ink: #1E2329;
  --ink-2: #3A424C;
  --muted: #5B6370;
  --line: #DFE3E7;
  --line-strong: #BAC1C9;
  --grid: rgba(30, 35, 41, 0.055);
  --grid-major: rgba(30, 35, 41, 0.09);
  --hud: rgba(30, 35, 41, 0.6);
  --wash: rgba(30, 35, 41, 0.05);
  --accent: #E01E25;
  --accent-hover: #C8161D;
  --accent-text: #C8171E;
  --accent-display: #C8171E;
  --accent-soft: rgba(224, 30, 37, 0.16);
  --on-accent: #FFFFFF;
  --btn-hi: rgba(255, 255, 255, 0.2);
  --focus: #1E2329;
  --shadow: 0 1px 2px rgba(20, 24, 29, 0.06), 0 16px 36px -12px rgba(20, 24, 29, 0.22);
  --show-light: block;
  --show-dark: none;
  /* night zones: the same in both themes */
  --n-bg: #15191E;
  --n-surface: #1C2127;
  --n-surface-2: #252B33;
  --n-ink: #EEF1F4;
  --n-ink-2: #C3C9D0;
  --n-muted: #959EA9;
  --n-line: #2A3139;
  --n-line-strong: #424B56;
  --n-grid: rgba(238, 241, 244, 0.045);
  --n-grid-major: rgba(238, 241, 244, 0.075);
  --n-hud: rgba(238, 241, 244, 0.55);
  --n-wash: rgba(238, 241, 244, 0.07);
  --n-accent-text: #FF5C61;
  --n-accent-display: #F2353C;
  --n-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 40px -14px rgba(0, 0, 0, 0.75);
  --glass: rgba(21, 25, 30, 0.86);
  --glass-strong: rgba(21, 25, 30, 0.97);
  --glass-line: rgba(238, 241, 244, 0.1);
  --scrim-0: rgba(21, 25, 30, 0);
  --scrim-1: rgba(21, 25, 30, 0.8);
  --develop: rgba(21, 25, 30, 0.62);
  --laser: #FF2E35;
  --laser-glow: rgba(255, 46, 53, 0.5);
  --laser-ring: rgba(255, 46, 53, 0.18);
  --lb-bg: rgba(10, 12, 15, 0.94);
  --bar-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.55);

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --maxw: 1240px;
  --header-h: 76px;
  --gl: max(16px, env(safe-area-inset-left, 0px));
  --gr: max(16px, env(safe-area-inset-right, 0px));
  --r-btn: 10px;
  --r-chip: 7px;
  --r-card: 14px;
  --r-panel: 18px;
  --ease-out: cubic-bezier(0.22, 0.8, 0.24, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #1A1F25;
    --surface: #20262D;
    --surface-2: #29303A;
    --card: #20262D;
    --ink: #EEF1F4;
    --ink-2: #C3C9D0;
    --muted: #9AA3AE;
    --line: #2D343D;
    --line-strong: #454E59;
    --grid: rgba(238, 241, 244, 0.04);
    --grid-major: rgba(238, 241, 244, 0.07);
    --hud: rgba(238, 241, 244, 0.55);
    --wash: rgba(238, 241, 244, 0.06);
    --accent-text: #FF5C61;
    --accent-display: #F2353C;
    --focus: #EEF1F4;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 40px -14px rgba(0, 0, 0, 0.7);
    --show-light: none;
    --show-dark: block;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1A1F25;
  --surface: #20262D;
  --surface-2: #29303A;
  --card: #20262D;
  --ink: #EEF1F4;
  --ink-2: #C3C9D0;
  --muted: #9AA3AE;
  --line: #2D343D;
  --line-strong: #454E59;
  --grid: rgba(238, 241, 244, 0.04);
  --grid-major: rgba(238, 241, 244, 0.07);
  --hud: rgba(238, 241, 244, 0.55);
  --wash: rgba(238, 241, 244, 0.06);
  --accent-text: #FF5C61;
  --accent-display: #F2353C;
  --focus: #EEF1F4;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 40px -14px rgba(0, 0, 0, 0.7);
  --show-light: none;
  --show-dark: block;
}
@media (min-width: 720px) {
  :root {
    --gl: max(32px, env(safe-area-inset-left, 0px));
    --gr: max(32px, env(safe-area-inset-right, 0px));
  }
}
@media (max-width: 1179px) {
  :root { --header-h: 64px; }
}

/* Night zones: header, heroes, bands, footer, menu, viewer */
.zone-dark {
  color-scheme: dark;
  --bg: var(--n-bg);
  --surface: var(--n-surface);
  --surface-2: var(--n-surface-2);
  --card: var(--n-surface);
  --ink: var(--n-ink);
  --ink-2: var(--n-ink-2);
  --muted: var(--n-muted);
  --line: var(--n-line);
  --line-strong: var(--n-line-strong);
  --grid: var(--n-grid);
  --grid-major: var(--n-grid-major);
  --hud: var(--n-hud);
  --wash: var(--n-wash);
  --accent-text: var(--n-accent-text);
  --accent-display: var(--n-accent-display);
  --focus: var(--n-ink);
  --shadow: var(--n-shadow);
  --show-light: none;
  --show-dark: block;
  background-color: var(--bg);
  color: var(--ink);
}
.grid-bg {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: center top;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.menu-open, html.lb-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (min-width: 1024px) { body { font-size: 1.0625rem; } }
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 70;
  background: var(--n-bg);
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); color: var(--ink); text-wrap: balance; }
p { margin: 0; }
::selection { background: var(--accent); color: var(--on-accent); }
section[id] { scroll-margin-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 8px); }
a, button, summary, .filter, input, select, textarea { touch-action: manipulation; }
img.is-loading { opacity: 0; }

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap {
    padding-left: max(32px, env(safe-area-inset-left, 0px));
    padding-right: max(32px, env(safe-area-inset-right, 0px));
  }
}

.on-light { display: var(--show-light); }
.on-dark { display: var(--show-dark); }
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

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

.skip {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--r-btn);
  background: var(--n-ink);
  color: var(--n-bg);
  font-weight: 600;
}
.skip:focus { top: calc(8px + env(safe-area-inset-top, 0px)); }

/* ---------- Type ---------- */
h2 {
  font-size: clamp(1.875rem, 1.25rem + 2.4vw, 3.25rem);
  font-weight: 800;
  font-stretch: 110%;
  line-height: 1.03;
  letter-spacing: -0.022em;
}
h3 { font-weight: 700; font-stretch: 104%; line-height: 1.22; letter-spacing: -0.005em; }
.lede {
  max-width: 36em;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.55;
}
.label {
  display: block;
  margin: 0 0 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
}
.section-intro { color: var(--ink-2); font-size: 1.0625rem; max-width: 38em; }

/* ---------- Buttons, links, tap feedback ---------- */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: transform 0.25s var(--ease-out), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.3s ease;
}
.btn .icon { width: 19px; height: 19px; transition: transform 0.3s var(--ease-out); }
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: inset 0 1px 0 var(--btn-hi), 0 8px 22px -10px var(--laser-glow);
}
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-lg { min-height: 56px; padding: 0 26px; font-size: 1.0625rem; }
.btn:active { transform: scale(0.965); transition-duration: 0.12s; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--accent-hover); box-shadow: inset 0 1px 0 var(--btn-hi), 0 12px 30px -10px var(--laser-glow); }
  .btn-ghost:hover { border-color: var(--ink); background: var(--wash); }
  .btn:hover .i-arrow { transform: translateX(4px); }
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(var(--accent), var(--accent)) left bottom / 100% 2px no-repeat;
  transition: background-size 0.4s var(--ease-out);
}
.text-link .icon { width: 17px; height: 17px; transition: transform 0.3s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .text-link:hover { background-size: 40% 2px; }
  .text-link:hover .i-arrow { transform: translateX(4px); }
  .text-link:hover .i-out { transform: translate(2px, -2px); }
}

.ripple {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: currentColor;
  pointer-events: none;
  transform: scale(0);
  opacity: 0;
  animation: ripple 0.65s var(--ease-out) forwards;
}
@keyframes ripple {
  0% { transform: scale(0); opacity: 0.22; }
  100% { transform: scale(1); opacity: 0; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--n-bg);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid transparent;
  transition: transform 0.45s var(--ease-out), background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  view-transition-name: site-header;
}
.site-header.is-scrolled { background: var(--glass); border-bottom-color: var(--glass-line); box-shadow: var(--bar-shadow); }
.site-header.is-hidden { transform: translateY(calc(-100% - env(safe-area-inset-top, 0px) - 4px)); box-shadow: none; }
.menu-open .site-header { background: var(--glass-strong); }
.header-row {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
  transition: min-height 0.35s var(--ease-out);
}
@media (min-width: 1180px) {
  .site-header.is-scrolled .header-row { min-height: 64px; }
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; text-decoration: none; }
.brand .mark { width: 50px; }
.brand-text { display: flex; flex-direction: column; gap: 5px; }
.brand-text .wordmark { width: 205px; }
.brand-text .jawi { width: 150px; }

.primary-nav { position: relative; display: flex; gap: 2px; margin-left: auto; }
.primary-nav a {
  position: relative;
  padding: 10px 13px;
  border-radius: 8px;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.primary-nav a:hover { color: var(--ink); background: var(--wash); }
.primary-nav a[aria-current] { color: var(--ink); }
.nav-laser {
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--laser);
  box-shadow: 0 0 12px var(--laser-glow);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s var(--ease-out), width 0.5s var(--ease-out), opacity 0.25s ease;
}
.nav-laser.no-anim, .filter-ind.no-anim { transition: none; }
.header-cta { min-height: 44px; padding: 0 18px; font-size: 0.95rem; }
.lang-link {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 46px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.lang-link:hover { border-color: var(--ink); background: var(--wash); }

.menu-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 15px 0 13px;
  margin-left: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  background: transparent;
  color: var(--ink);
  font: 600 0.95rem/1 var(--font-body);
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), border-color 0.2s ease;
}
.menu-btn:active { transform: scale(0.95); }
.menu-icon { position: relative; display: block; width: 18px; height: 12px; }
.menu-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.4s var(--ease-out), top 0.4s var(--ease-out);
}
.menu-icon span:first-child { top: 1px; }
.menu-icon span:last-child { top: 9px; }
.menu-btn[aria-expanded="true"] { border-color: var(--ink); }
.menu-btn[aria-expanded="true"] .menu-icon span:first-child { top: 5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon span:last-child { top: 5px; transform: rotate(-45deg); }

.header-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; pointer-events: none; }
.header-progress span {
  display: block;
  height: 100%;
  background: var(--laser);
  box-shadow: 0 0 10px var(--laser-glow);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

@media (max-width: 1179px) {
  .primary-nav, .header-cta, .header-row > .lang-link { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 520px) {
  .header-row { gap: 12px; }
  .brand { gap: 10px; }
  .brand .mark { width: 42px; }
  .brand-text { gap: 4px; }
  .brand-text .wordmark { width: 164px; }
  .brand-text .jawi { width: 120px; }
}
@media (max-width: 380px) {
  .menu-btn .menu-label { display: none; }
  .menu-btn { padding: 0 13px; }
  .brand-text .wordmark { width: 150px; }
  .brand-text .jawi { width: 110px; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  z-index: 55;
  top: calc(env(safe-area-inset-top, 0px) + var(--header-h));
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.42s var(--ease-in-out);
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); transition: clip-path 0.55s var(--ease-out); }
.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-height: 100%;
  padding-top: 12px;
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
}
.mobile-nav { display: flex; flex-direction: column; }
.mobile-nav a {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 110%;
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-decoration: none;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out), color 0.2s ease;
}
.mobile-nav a .icon { width: 22px; height: 22px; color: var(--muted); transition: transform 0.3s var(--ease-out), color 0.2s ease; }
.mobile-nav a[aria-current] { color: var(--accent-display); }
.mobile-nav a:active .icon { transform: translateX(4px); color: var(--ink); }
.mobile-menu.is-open .mobile-nav a { opacity: 1; transform: none; transition: opacity 0.5s ease, transform 0.6s var(--ease-out), color 0.2s ease; }
.mobile-menu.is-open .mobile-nav a:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.is-open .mobile-nav a:nth-child(2) { transition-delay: 0.12s; }
.mobile-menu.is-open .mobile-nav a:nth-child(3) { transition-delay: 0.16s; }
.mobile-menu.is-open .mobile-nav a:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.is-open .mobile-nav a:nth-child(5) { transition-delay: 0.24s; }
.mobile-menu.is-open .mobile-nav a:nth-child(6) { transition-delay: 0.28s; }
.mobile-menu.is-open .mobile-nav a:nth-child(7) { transition-delay: 0.32s; }
.mobile-menu-foot {
  display: flex;
  flex-direction: column;
  gap: 18px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.25s ease, transform 0.3s var(--ease-out);
}
.mobile-menu.is-open .mobile-menu-foot { opacity: 1; transform: none; transition: opacity 0.5s ease 0.34s, transform 0.6s var(--ease-out) 0.34s; }
.mobile-menu-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mobile-menu-actions .btn { padding: 0 12px; }
.mobile-menu-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.menu-lang {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 4px;
  color: var(--ink-2);
  font-weight: 600;
  text-decoration: none;
}
.lang-badge {
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}
.menu-social { display: flex; gap: 8px; }
.menu-social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
}
.menu-social .icon { width: 20px; height: 20px; }
@media (min-width: 1180px) {
  .mobile-menu { display: none !important; }
}

/* ---------- Contact bar (phones and tablets) and WhatsApp button (desktop) ---------- */
.action-bar {
  position: fixed;
  z-index: 50;
  left: calc(10px + env(safe-area-inset-left, 0px));
  right: calc(10px + env(safe-area-inset-right, 0px));
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 6px;
  max-width: 560px;
  margin-inline: auto;
  padding: 6px;
  border: 1px solid var(--glass-line);
  border-radius: 20px;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: var(--bar-shadow);
  transition: transform 0.45s var(--ease-out), opacity 0.3s ease;
  view-transition-name: action-bar;
}
.bar-item {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 54px;
  padding: 0 6px;
  border-radius: 14px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition: transform 0.25s var(--ease-out), background-color 0.2s ease;
}
.bar-item .icon { width: 21px; height: 21px; }
.bar-item:active { transform: scale(0.94); background: var(--wash); }
.bar-primary {
  flex-direction: row;
  gap: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.9375rem;
  box-shadow: inset 0 1px 0 var(--btn-hi), 0 8px 20px -10px var(--laser-glow);
}
.bar-primary:active { background: var(--accent-hover); }
.is-typing .action-bar, .menu-open .action-bar, .lb-open .action-bar {
  transform: translateY(calc(100% + 24px + env(safe-area-inset-bottom, 0px)));
  opacity: 0;
}
.wa-fab { display: none; }
@media (min-width: 900px) {
  .action-bar { display: none; }
  .wa-fab {
    position: fixed;
    z-index: 50;
    right: calc(22px + env(safe-area-inset-right, 0px));
    bottom: calc(22px + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    height: 58px;
    padding: 0 17px;
    border-radius: 29px;
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 600;
    text-decoration: none;
    box-shadow: inset 0 1px 0 var(--btn-hi), 0 14px 34px -10px var(--laser-glow), var(--bar-shadow);
    transition: transform 0.3s var(--ease-out), background-color 0.2s ease;
    view-transition-name: wa-fab;
  }
  .wa-fab .icon { width: 24px; height: 24px; }
  .wa-fab-label {
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    white-space: nowrap;
    transition: max-width 0.45s var(--ease-out), opacity 0.3s ease, margin 0.45s var(--ease-out);
  }
  .wa-fab:hover, .wa-fab:focus-visible { background: var(--accent-hover); }
  .wa-fab:hover .wa-fab-label, .wa-fab:focus-visible .wa-fab-label { max-width: 8rem; opacity: 1; margin-left: 10px; }
  .wa-fab:active { transform: scale(0.95); }
}

/* ---------- Photo frames: corner marks, readout caption ---------- */
.hud { position: relative; margin: 0; min-width: 0; }
.hud::before {
  content: "";
  position: absolute;
  inset: -8px;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(var(--hud), var(--hud)) left top / 16px 1.5px no-repeat,
    linear-gradient(var(--hud), var(--hud)) left top / 1.5px 16px no-repeat,
    linear-gradient(var(--hud), var(--hud)) right top / 16px 1.5px no-repeat,
    linear-gradient(var(--hud), var(--hud)) right top / 1.5px 16px no-repeat,
    linear-gradient(var(--hud), var(--hud)) left bottom / 16px 1.5px no-repeat,
    linear-gradient(var(--hud), var(--hud)) left bottom / 1.5px 16px no-repeat,
    linear-gradient(var(--hud), var(--hud)) right bottom / 16px 1.5px no-repeat,
    linear-gradient(var(--hud), var(--hud)) right bottom / 1.5px 16px no-repeat;
}
.hud-media { position: relative; overflow: hidden; background: var(--surface-2); }
.hud-media img { display: block; width: 100%; height: auto; object-fit: cover; transition: opacity 0.5s ease; }
.hud-cap {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: calc(100% - 24px);
  padding: 7px 12px;
  border: 1px solid var(--glass-line);
  border-radius: 8px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--n-ink);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.6875rem;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hud-cap span + span::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 2px;
  margin: 0 9px 0 10px;
  vertical-align: 3px;
  background: var(--laser);
}

/* ---------- Home hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-block: 0 clamp(48px, 7vw, 72px); }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 128px 128px, 128px 128px, 32px 32px, 32px 32px;
  -webkit-mask-image: radial-gradient(120% 85% at 30% 10%, black 35%, transparent 85%);
  mask-image: radial-gradient(120% 85% at 30% 10%, black 35%, transparent 85%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
.hero-copy { position: relative; z-index: 2; min-width: 0; margin-top: -8.5rem; }
.hero-photo {
  order: -1;
  margin-left: calc(-1 * var(--gl));
  margin-right: calc(-1 * var(--gr));
}
.hero-photo::before, .hero-photo .hud-cap { display: none; }
.hero-photo .hud-media img { aspect-ratio: 4 / 5; max-height: min(66svh, 620px); object-position: 50% 26%; }
.hero-photo .hud-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, var(--scrim-0) 0%, var(--scrim-0) 36%, var(--scrim-1) 76%, var(--bg) 100%);
}
.hero-loc {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8125rem;
  line-height: 1.35;
  letter-spacing: 0.04em;
}
.laser-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--laser);
  box-shadow: 0 0 0 4px var(--laser-ring), 0 0 14px var(--laser-glow);
}
.hero h1 {
  margin-top: 16px;
  font-size: clamp(2.25rem, 1.5rem + 3.4vw, 4.125rem);
  font-weight: 800;
  font-stretch: 114%;
  line-height: 0.99;
  letter-spacing: -0.03em;
}
.hero h1 > span { display: block; }
.hero h1 .h1-b { margin-top: 0.12em; color: var(--accent-display); }
.hero .lede { margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-facts {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(32px, 4vw, 48px) 0 0;
  border-top: 1px solid var(--line-strong);
}
.hero-facts::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 72px;
  height: 2px;
  background: var(--laser);
  box-shadow: 0 0 12px var(--laser-glow);
  transform-origin: 0 50%;
}
.hero-facts > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 16px 12px 0 0; }
.hero-facts > div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.hero-facts dd {
  order: -1;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 112%;
  font-size: clamp(1.25rem, 1rem + 1.1vw, 2rem);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.hero-facts dt { color: var(--muted); font-size: 0.8125rem; line-height: 1.35; }
@media (max-width: 600px) {
  .hero .hero-actions .btn { flex: 1 1 100%; }
}
@media (min-width: 1024px) {
  .hero { padding-block: clamp(40px, 5vw, 80px) clamp(64px, 6vw, 104px); }
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(48px, 6vw, 96px); align-items: center; }
  .hero-copy { margin-top: 0; }
  .hero-photo { order: 0; margin: 0; }
  .hero-photo::before { display: block; }
  .hero-photo .hud-cap { display: flex; }
  .hero-photo .hud-media::before { display: none; }
  .hero-photo .hud-media img { aspect-ratio: 4 / 5; max-height: none; object-position: 50% 50%; }
  .hero-photo::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: -26px;
    width: 10px;
    pointer-events: none;
    background:
      repeating-linear-gradient(to bottom, var(--hud) 0 1px, transparent 1px 64px) left top / 10px 100% no-repeat,
      repeating-linear-gradient(to bottom, var(--line-strong) 0 1px, transparent 1px 16px) left top / 5px 100% no-repeat;
  }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 5vw + 36px, 128px); }
.section-alt { background-color: var(--surface); }
.section-head { margin-bottom: clamp(28px, 2.5vw + 16px, 56px); }
.section-head > h2 + .section-intro { margin-top: 16px; }
.split-head { display: grid; gap: 18px 56px; }
.split-head .section-intro { margin-top: 0; }
.head-side { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
@media (min-width: 1024px) {
  .split-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
  .head-side { align-items: flex-start; }
}
.block-h2, .split h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  font-stretch: 108%;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.block-head { margin-bottom: 28px; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 40px; grid-template-areas: "copy" "photo"; }
.about-copy { grid-area: copy; min-width: 0; }
.about-photo { grid-area: photo; }
.about-photo .hud-media img { aspect-ratio: 4 / 3; object-position: 50% 72%; }
.about-copy h2 { margin-bottom: 24px; }
.about-copy > p { max-width: 36em; color: var(--ink-2); }
.about-copy > p + p { margin-top: 16px; }
.trades { margin-top: 32px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-chip);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.25;
}
.pillars {
  list-style: none;
  margin: clamp(48px, 5vw, 88px) 0 0;
  padding: 0;
  display: grid;
  gap: 28px 40px;
  grid-template-columns: minmax(0, 1fr);
}
.pillars li { position: relative; display: grid; align-content: start; gap: 8px; min-width: 0; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.pillars li::before { content: ""; position: absolute; top: -1px; left: 0; width: 44px; height: 2px; background: var(--accent); }
.pillars h3 { font-size: 1.25rem; }
.pillars p { color: var(--ink-2); }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); grid-template-areas: "photo copy"; gap: clamp(48px, 6vw, 104px); align-items: center; }
  .about-photo .hud-media img { aspect-ratio: 4 / 5; object-position: 50% 50%; }
  .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--card);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.25s ease;
}
.card-media { position: relative; overflow: hidden; background: var(--surface-2); }
.card-media img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.8s var(--ease-out), opacity 0.5s ease; }
.card-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--laser);
  box-shadow: 0 0 12px var(--laser-glow);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.55s var(--ease-out);
}
.card-body { display: flex; flex: 1; flex-direction: column; gap: 8px; min-width: 0; padding: 18px 20px 20px; }
.card h2 a, .card h3 a { color: inherit; text-decoration: none; }
.card h2 a::after, .card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 4; }
.card a:focus-visible { outline: none; }
.card:has(a:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.card.is-link { cursor: pointer; }
.card.is-link:active { transform: scale(0.982); transition-duration: 0.15s; }
@media (hover: hover) and (pointer: fine) {
  .card.is-link:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
  .card.is-link:hover .card-media img { transform: scale(1.05); }
  .card.is-link:hover .card-media::after { transform: scaleX(1); }
  .card.is-link:hover .more .icon { transform: translateX(4px); }
}
.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9375rem;
}
.more .icon { width: 16px; height: 16px; color: var(--accent-text); transition: transform 0.3s var(--ease-out); }

/* Services */
.service-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service h3 { font-size: 1.1875rem; }
.service .card-body > p { color: var(--ink-2); font-size: 0.95rem; line-height: 1.55; }
@media (min-width: 1100px) {
  .service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 759px) {
  .service-grid:not(.rail) { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .service-grid:not(.rail) .service { display: grid; grid-template-columns: 112px minmax(0, 1fr); }
  .service-grid:not(.rail) .card-media img { height: 100%; min-height: 112px; aspect-ratio: auto; }
  .service-grid:not(.rail) .card-body { gap: 6px; padding: 14px 16px 16px; }
  .service-grid:not(.rail) .service h3 { font-size: 1.0625rem; }
  .service-grid:not(.rail) .card-body > p { font-size: 0.925rem; line-height: 1.5; }
  .service-grid:not(.rail) .more { display: none; }
  .service-grid:not(.rail) .card-media::after { display: none; }
}

/* Articles */
.post-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.post-meta { color: var(--muted); font-family: var(--font-mono); font-weight: 500; font-size: 0.78rem; line-height: 1.4; letter-spacing: 0.02em; }
.post-card h2, .post-card h3 { font-size: 1.1875rem; font-weight: 700; font-stretch: 104%; line-height: 1.25; letter-spacing: -0.005em; }
.post-card .card-body > p:last-child { color: var(--ink-2); font-size: 0.95rem; line-height: 1.55; }
@media (min-width: 760px) {
  .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .post-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-grid.cols-2 .post-card h2 { font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem); }
}

/* Projects */
.project-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project { gap: 12px; padding: 22px 22px 20px; }
.project-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  line-height: 1.2;
  letter-spacing: 0.03em;
}
.project-tag.gov::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--laser); box-shadow: 0 0 8px var(--laser-glow); }
.project h3 { font-size: 1.25rem; }
.where { display: flex; gap: 8px; align-items: flex-start; color: var(--ink); font-weight: 500; font-size: 0.95rem; line-height: 1.45; }
.where .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--accent-text); }
.scope { color: var(--ink-2); font-size: 0.95rem; line-height: 1.55; }
.client { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line-strong); color: var(--muted); font-size: 0.875rem; line-height: 1.45; }
.client strong { color: var(--ink); font-weight: 600; }
@media (min-width: 1100px) {
  .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}

/* ---------- Swipe rows on phones ---------- */
@media (max-width: 759px) {
  .rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-left: calc(-1 * var(--gl));
    margin-right: calc(-1 * var(--gr));
    padding-top: 2px;
    padding-bottom: 6px;
    padding-left: var(--gl);
    padding-right: var(--gr);
    scroll-padding-left: var(--gl);
    scroll-padding-right: var(--gr);
  }
  .rail::-webkit-scrollbar { display: none; }
  .rail > li { flex: 0 0 min(82%, 340px); scroll-snap-align: start; }
}
.rail-meter { display: none; }
@media (max-width: 759px) {
  .rail-meter { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
  .rail-meter.is-idle { display: none; }
}
.rail-track { position: relative; flex: 1; height: 2px; overflow: hidden; border-radius: 2px; background: var(--line); }
.rail-thumb { position: absolute; top: 0; left: 0; width: 20%; height: 100%; border-radius: 2px; background: var(--accent); }
.rail-count { color: var(--muted); font-family: var(--font-mono); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }

/* ---------- Gallery ---------- */
.filters {
  position: relative;
  display: flex;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 28px;
  padding: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}
.filters::-webkit-scrollbar { display: none; }
.filter-ind {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 0;
  height: 0;
  border-radius: 9px;
  background: var(--ink);
  pointer-events: none;
  transition: transform 0.5s var(--ease-out), width 0.5s var(--ease-out), height 0.5s var(--ease-out);
}
.filter {
  position: relative;
  z-index: 1;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-height: 42px;
  padding: 0 15px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-2);
  font: 500 0.95rem/1.2 var(--font-body);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.25s var(--ease-out);
}
.filter:hover { color: var(--ink); }
.filter:active { transform: scale(0.95); }
.filter .count { font-family: var(--font-mono); font-size: 0.75rem; opacity: 0.7; font-variant-numeric: tabular-nums; }
.filter[aria-pressed="true"] { color: var(--bg); }
.filters:not(.has-ind) .filter[aria-pressed="true"] { background: var(--ink); }
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-grid li { min-width: 0; }
.tile { position: relative; display: flex; flex-direction: column; gap: 10px; color: var(--ink); text-decoration: none; }
.tile-media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface-2);
  transition: transform 0.3s var(--ease-out);
}
.tile-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; cursor: zoom-in; transition: transform 0.8s var(--ease-out), opacity 0.5s ease; }
.tile-media::after {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.35s ease, transform 0.5s var(--ease-out);
  background:
    linear-gradient(var(--n-ink), var(--n-ink)) left top / 14px 1.5px no-repeat,
    linear-gradient(var(--n-ink), var(--n-ink)) left top / 1.5px 14px no-repeat,
    linear-gradient(var(--n-ink), var(--n-ink)) right top / 14px 1.5px no-repeat,
    linear-gradient(var(--n-ink), var(--n-ink)) right top / 1.5px 14px no-repeat,
    linear-gradient(var(--n-ink), var(--n-ink)) left bottom / 14px 1.5px no-repeat,
    linear-gradient(var(--n-ink), var(--n-ink)) left bottom / 1.5px 14px no-repeat,
    linear-gradient(var(--n-ink), var(--n-ink)) right bottom / 14px 1.5px no-repeat,
    linear-gradient(var(--n-ink), var(--n-ink)) right bottom / 1.5px 14px no-repeat;
}
.tile-cap { font-weight: 500; font-size: 0.95rem; line-height: 1.35; }
.tile:active .tile-media { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .tile:hover .tile-media img { transform: scale(1.06); }
  .tile:hover .tile-media::after { opacity: 1; transform: none; }
}
.tile:focus-visible { outline: none; }
.tile:focus-visible .tile-media { outline: 2px solid var(--focus); outline-offset: 3px; }
.gallery-more { display: flex; justify-content: center; margin-top: 36px; }
@media (min-width: 760px) {
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; }
}
@media (min-width: 1100px) {
  .gallery-grid:not(.cols-3) { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 18px; }
}
@media (max-width: 599px) {
  .tile { gap: 8px; }
  .tile-cap { font-size: 0.875rem; }
  .filters { margin-bottom: 20px; }
}

/* ---------- Finished projects photo wall (homepage) ---------- */
.showcase {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: clamp(140px, 36vw, 230px);
  grid-template-areas: "a a" "a a" "b b" "c d" "e e" "f g" "h i" "j j";
  gap: 10px;
}
.showcase li { min-width: 0; }
.showcase .sc-a { grid-area: a; }
.showcase .sc-b { grid-area: b; }
.showcase .sc-c { grid-area: c; }
.showcase .sc-d { grid-area: d; }
.showcase .sc-e { grid-area: e; }
.showcase .sc-f { grid-area: f; }
.showcase .sc-g { grid-area: g; }
.showcase .sc-h { grid-area: h; }
.showcase .sc-i { grid-area: i; }
.showcase .sc-j { grid-area: j; }
.showcase .tile { display: block; height: 100%; }
.showcase .tile-media { height: 100%; border-radius: 12px; }
.showcase .tile-media img { height: 100%; aspect-ratio: auto; }
.showcase .tile-cap {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  max-width: calc(100% - 20px);
  padding: 6px 10px;
  border: 1px solid var(--glass-line);
  border-radius: 8px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--n-ink);
  font-size: 0.8125rem;
  line-height: 1.3;
}
.showcase .sc-a .tile-cap { left: 14px; bottom: 14px; font-size: 0.9375rem; padding: 8px 12px; }
@media (min-width: 900px) {
  .showcase {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: clamp(180px, 17vw, 250px);
    grid-template-areas: "a a b b" "a a c d" "e e f g" "h i j j";
    gap: 14px;
  }
}

/* ---------- Photo viewer ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--lb-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}
.lightbox.is-open { opacity: 1; }
.lightbox::backdrop { background: transparent; }
.lb-inner {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  padding-top: max(12px, env(safe-area-inset-top, 0px));
  padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; }
.lb-count { color: var(--muted); font-family: var(--font-mono); font-weight: 500; font-size: 0.8125rem; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.lb-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 0;
  margin: 0;
  padding-inline: 72px;
  touch-action: pan-y pinch-zoom;
}
.lb-stage { display: grid; place-items: center; min-height: 0; max-width: 100%; }
.lb-stage img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 190px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: var(--n-shadow);
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  transform: scale(0.94);
  transition: transform 0.5s var(--ease-out);
}
.lightbox.is-open .lb-stage img { transform: none; }
.lb-figure figcaption { max-width: 60ch; color: var(--ink); text-align: center; font-size: 1rem; line-height: 1.45; }
.lb-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--wash);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), border-color 0.2s ease;
}
.lb-btn:hover { border-color: var(--ink); }
.lb-btn:active { transform: scale(0.92); }
.lb-btn .icon { width: 22px; height: 22px; }
.lb-prev, .lb-next { position: absolute; top: 50%; margin-top: -24px; }
.lb-prev:active, .lb-next:active { transform: scale(0.92); }
.lb-prev { left: max(14px, env(safe-area-inset-left, 0px)); }
.lb-next { right: max(14px, env(safe-area-inset-right, 0px)); }
@media (max-width: 719px) {
  .lb-figure { padding-inline: 0; padding-bottom: 72px; }
  .lb-stage img { max-height: calc(100dvh - 240px); }
  .lb-prev, .lb-next { top: auto; margin-top: 0; bottom: max(18px, env(safe-area-inset-bottom, 0px)); }
  .lb-prev { left: max(18px, env(safe-area-inset-left, 0px)); }
  .lb-next { right: max(18px, env(safe-area-inset-right, 0px)); }
}

/* ---------- How we work ---------- */
.steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; }
.steps li { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); align-content: start; gap: 0 20px; min-width: 0; padding-bottom: 34px; }
.steps li:last-child { padding-bottom: 0; }
.steps::before, .steps::after { content: ""; position: absolute; pointer-events: none; }
.steps::before { left: 23.5px; top: 24px; bottom: 24px; width: 1px; background: var(--line-strong); }
.steps::after {
  left: 23px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: var(--laser);
  box-shadow: 0 0 12px var(--laser-glow);
  transform-origin: 50% 0;
}
.step-no {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--laser);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 6px var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 112%;
  font-size: 1.0625rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.step-text { padding-top: 10px; min-width: 0; }
.steps h3 { margin-bottom: 6px; font-size: 1.1875rem; }
.steps p { color: var(--ink-2); font-size: 0.975rem; line-height: 1.55; }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 28px; }
  .steps li { grid-template-columns: minmax(0, 1fr); padding-bottom: 0; }
  .steps::before { left: 24px; right: 0; top: 23.5px; bottom: auto; width: auto; height: 1px; }
  .steps::after { left: 24px; right: 0; top: 23px; bottom: auto; width: auto; height: 2px; transform-origin: 0 50%; }
  .step-text { padding-top: 22px; }
}

/* ---------- Credentials ---------- */
.cred-grid { display: grid; gap: 36px; }
.cred-grid .section-head { margin-bottom: 0; }
.cred-grid .text-link { margin-top: 26px; }
.cred-list { margin: 0; border-top: 1px solid var(--line-strong); }
.cred-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cred-row dt { color: var(--muted); font-family: var(--font-mono); font-weight: 500; font-size: 0.8125rem; line-height: 1.4; letter-spacing: 0.02em; }
.cred-row dd { margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cred-no {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 106%;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.cred-meta { color: var(--ink-2); font-size: 0.95rem; line-height: 1.5; }
.cat-list { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cat-list li {
  padding: 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-chip);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.2;
}
@media (min-width: 640px) {
  .cred-row { grid-template-columns: 12rem minmax(0, 1fr); gap: 6px 28px; }
  .cred-row dt { padding-top: 6px; }
}
@media (min-width: 1024px) {
  .cred-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(48px, 6vw, 96px); align-items: start; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 48px; }
.contact-grid .section-head { margin-bottom: 28px; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list li:first-child { border-top: 1px solid var(--line); }
.icon-box {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--accent-text);
}
.icon-box .icon { width: 21px; height: 21px; }
.contact-list .label { margin: 0 0 2px; }
.contact-list a { color: var(--ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.contact-list address { font-style: normal; color: var(--ink-2); line-height: 1.55; }
.contact-list .map-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 0.95rem; }
.contact-list .map-link .icon { width: 15px; height: 15px; }
.phones { display: flex; flex-wrap: wrap; column-gap: 18px; row-gap: 4px; }
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.25s var(--ease-out);
}
.social a:hover { border-color: var(--ink); background: var(--wash); }
.social a:active { transform: scale(0.96); }
.social .icon { width: 19px; height: 19px; }

.enquiry {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: var(--card);
  box-shadow: var(--shadow);
}
.enquiry h3 { font-size: 1.5rem; font-stretch: 108%; }
.form-note { margin-top: -8px; color: var(--ink-2); }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label { color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.3s var(--ease-out);
}
.field input, .field textarea { -webkit-appearance: none; appearance: none; }
.field textarea { min-height: 136px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--accent-soft); }
.field [aria-invalid="true"] { border-color: var(--accent); }
.field-row { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.form-error {
  padding: 11px 14px;
  border: 1px solid var(--accent);
  border-radius: var(--r-btn);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.95rem;
  font-weight: 500;
}
.form-error.shake { animation: shake 0.45s var(--ease-out); }
@keyframes shake {
  0%, 100% { transform: none; }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(2px); }
}
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-actions .btn { flex: 1 1 200px; }
.form-hint { color: var(--muted); font-size: 0.875rem; }
@media (min-width: 520px) {
  .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(48px, 6vw, 96px); align-items: start; }
}

/* ---------- Footer ---------- */
.site-footer { padding-block: clamp(56px, 6vw, 88px) 36px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 36px 32px; grid-template-columns: minmax(0, 1fr); }
.footer-brand img { width: min(100%, 340px); }
.footer-brand p { margin-top: 16px; color: var(--muted); font-size: 0.875rem; }
.site-footer .label { margin-bottom: 14px; color: var(--muted); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--ink-2); font-size: 0.95rem; text-decoration: none; overflow-wrap: anywhere; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}
.footer-bottom a { color: var(--ink-2); }
.to-top {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.25s var(--ease-out);
}
.footer-bottom .to-top { color: var(--ink); }
.to-top .icon { width: 17px; height: 17px; transition: transform 0.3s var(--ease-out); }
.to-top:hover { border-color: var(--ink); }
.to-top:hover .icon { transform: translateY(-3px); }
.to-top:active { transform: scale(0.95); }
@media (min-width: 460px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1080px) {
  .footer-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.15fr) minmax(0, 0.8fr) minmax(0, 1.3fr) minmax(0, 0.7fr); }
  .footer-brand { grid-column: auto; }
}
@media (max-width: 899px) {
  .site-footer { padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Page heroes (services, blog, articles) ---------- */
.page-hero, .post-head, .cta-band { position: relative; isolation: isolate; overflow: hidden; }
.page-hero { padding-block: clamp(28px, 3vw, 48px) clamp(48px, 5vw, 88px); }
.page-hero-grid { display: grid; gap: 28px; }
.page-hero-copy { min-width: 0; }
.page-hero h1 {
  font-size: clamp(2.125rem, 1.4rem + 3vw, 3.75rem);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.page-hero .lede { margin-top: 20px; }
.page-hero .hero-actions { margin-top: 28px; }
.page-hero-simple .lede { max-width: 40em; }
.page-photo .hud-media img { aspect-ratio: 16 / 10; }
@media (max-width: 899px) {
  .page-hero.has-photo { padding-top: 0; }
  .page-photo { order: -1; margin-left: calc(-1 * var(--gl)); margin-right: calc(-1 * var(--gr)); }
  .page-photo::before { display: none; }
}
@media (max-width: 600px) {
  .page-hero .hero-actions .btn { flex: 1 1 100%; }
}
@media (min-width: 900px) {
  .page-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
  .page-photo .hud-media img { aspect-ratio: 3 / 2; }
}

.crumbs { margin-bottom: 20px; }
.crumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.78rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.crumbs li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.crumbs li + li::before { content: ""; width: 12px; height: 1px; background: var(--line-strong); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 599px) {
  .crumbs li[aria-current]:nth-child(n+3) { display: none; }
}

/* ---------- Service pages ---------- */
.split { display: grid; gap: 40px; }
.split-copy > p { margin-top: 20px; max-width: 40em; color: var(--ink-2); }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--line-strong); }
.ticks li { position: relative; padding: 14px 0 14px 30px; border-bottom: 1px solid var(--line); color: var(--ink); line-height: 1.5; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 21px;
  width: 11px;
  height: 11px;
  background: var(--accent);
  clip-path: polygon(0 0, 0 100%, 100% 100%);
}
.callout { margin-top: 28px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.callout h3 { margin-bottom: 8px; font-size: 1.125rem; }
.callout p { color: var(--ink-2); }
.callout p + p { margin-top: 10px; }
.callout a, .faq .answer a, .prose a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--ink-2); }
.plain strong { color: var(--ink); }
.kv { margin: 14px 0 0; display: grid; gap: 12px; }
.kv div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 16px; }
.kv dt { padding-top: 3px; color: var(--muted); font-family: var(--font-mono); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.02em; }
.kv dd { margin: 0; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
@media (min-width: 520px) {
  .kv div { grid-template-columns: 12rem minmax(0, 1fr); }
}
.side-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface); }
.side-card h2 { font-size: 1.25rem; font-stretch: 106%; letter-spacing: -0.01em; }
.mini-steps { list-style: none; margin: 16px 0 0; padding: 0; counter-reset: step; }
.mini-steps li { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); column-gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.mini-steps li::before {
  counter-increment: step;
  content: counter(step);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1;
}
.mini-steps strong, .mini-steps span { grid-column: 2; }
.mini-steps strong { color: var(--ink); font-family: var(--font-display); font-weight: 700; }
.mini-steps span { color: var(--ink-2); font-size: 0.95rem; line-height: 1.45; }
.side-card .btn { width: 100%; margin-top: 18px; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(48px, 6vw, 96px); align-items: start; }
  .side-card { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 24px); }
}

.faq-wrap { max-width: 52rem; }
.faq { margin-top: 24px; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 6px;
  border-radius: 8px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 104%;
  font-size: 1.125rem;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
@media (hover: hover) and (pointer: fine) {
  .faq summary:hover { background: var(--wash); }
}
.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  transition: transform 0.45s var(--ease-out), background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  margin: -0.75px 0 0 -6px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.45s var(--ease-out);
}
.faq-icon::after { transform: rotate(90deg); }
.faq details[open]:not(.is-closing) .faq-icon { transform: rotate(180deg); border-color: var(--ink); background: var(--ink); color: var(--bg); }
.faq details[open]:not(.is-closing) .faq-icon::after { transform: rotate(0deg); }
.faq .answer { overflow: hidden; }
.faq .answer > p { max-width: 44em; padding: 0 6px 22px; color: var(--ink-2); }

.related-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.related-link {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 10px 16px 10px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.25s ease;
}
.related-media { display: block; overflow: hidden; border-radius: 9px; background: var(--surface-2); }
.related-media img { display: block; width: 88px; height: 64px; object-fit: cover; transition: transform 0.7s var(--ease-out), opacity 0.5s ease; }
.related-link strong { font-family: var(--font-display); font-weight: 700; font-stretch: 104%; font-size: 1rem; line-height: 1.3; }
.related-link .icon { width: 18px; height: 18px; color: var(--accent-text); transition: transform 0.3s var(--ease-out); }
.related-link:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  .related-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
  .related-link:hover img { transform: scale(1.08); }
  .related-link:hover .icon { transform: translateX(4px); }
}
@media (min-width: 900px) {
  .related-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}

/* ---------- Call-to-action band ---------- */
.cta-band { padding-block: clamp(56px, 5vw + 24px, 104px); }
.cta-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--laser) 25%, var(--laser) 75%, transparent);
  opacity: 0.8;
}
.cta-band .wrap { display: grid; gap: 28px; }
.cta-copy { min-width: 0; }
.cta-band h2 { font-size: clamp(1.75rem, 1.25rem + 1.8vw, 2.75rem); }
.cta-band p { margin-top: 14px; max-width: 38em; color: var(--ink-2); }
.cta-band .hero-actions { margin-top: 0; }
@media (max-width: 600px) {
  .cta-band .hero-actions .btn { flex: 1 1 100%; }
}
@media (min-width: 1024px) {
  .cta-band .wrap { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px; }
}

/* ---------- Articles ---------- */
.wrap.narrow { max-width: calc(46rem + 64px); }
.post-head { padding-block: clamp(28px, 3vw, 48px) clamp(112px, 12vw, 192px); }
.post-head h1 {
  margin-top: 12px;
  font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem);
  font-weight: 800;
  font-stretch: 110%;
  line-height: 1.05;
  letter-spacing: -0.022em;
}
.post-head .lede { margin-top: 20px; max-width: none; }
.post-hero-wrap { position: relative; margin-top: calc(-1 * clamp(88px, 10vw, 168px)); }
.post-hero { max-width: 64rem; margin-inline: auto; }
.post-hero .hud-media { border-radius: 4px; }
.post-hero .hud-media img { aspect-ratio: 3 / 2; }
.prose {
  padding-block: clamp(32px, 4vw, 56px) clamp(32px, 4vw, 48px);
  color: var(--ink-2);
  font-size: 1.0625rem;
  line-height: 1.75;
}
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; font-size: clamp(1.375rem, 1.15rem + 0.8vw, 1.75rem); font-stretch: 106%; line-height: 1.2; letter-spacing: -0.012em; }
.prose h2 + * { margin-top: 0.75em; }
.prose ul, .prose ol { margin-bottom: 0; padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--muted); }
.prose strong { color: var(--ink); }
.prose .note { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); font-size: 0.975rem; line-height: 1.6; }
.prose .checklist { list-style: none; padding: 0; border-top: 1px solid var(--line-strong); }
.prose .checklist li { position: relative; margin: 0; padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line); color: var(--ink); line-height: 1.5; }
.prose .checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 19px;
  width: 11px;
  height: 11px;
  background: var(--accent);
  clip-path: polygon(0 0, 0 100%, 100% 100%);
}
.prose .sources { padding-left: 1.1em; font-size: 0.9rem; line-height: 1.55; }
.prose .sources a { font-weight: 500; }
.post-cta { margin-bottom: clamp(48px, 5vw, 88px); padding: 26px; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface); }
.post-cta h2 { font-size: 1.375rem; font-stretch: 106%; letter-spacing: -0.01em; }
.post-cta p { margin-top: 8px; color: var(--ink-2); }
.post-cta .hero-actions { margin-top: 18px; }

/* ---------- Page transitions (supporting browsers) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
::view-transition-old(root) { animation: vt-out 0.24s var(--ease-in) both; }
::view-transition-new(root) { animation: vt-in 0.45s var(--ease-out) both; }
::view-transition-group(*) { animation-duration: 0.5s; animation-timing-function: var(--ease-out); }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }
.vt-svc-new { view-transition-name: svc-new; }
.vt-svc-reno { view-transition-name: svc-reno; }
.vt-svc-porch { view-transition-name: svc-porch; }
.vt-svc-ceiling { view-transition-name: svc-ceiling; }
.vt-svc-paint { view-transition-name: svc-paint; }
.vt-svc-roof { view-transition-name: svc-roof; }
.vt-svc-external { view-transition-name: svc-external; }
.vt-svc-gov { view-transition-name: svc-gov; }
.vt-post-roof { view-transition-name: post-roof; }
.vt-post-porch { view-transition-name: post-porch; }
.vt-post-approval { view-transition-name: post-approval; }
.vt-post-check { view-transition-name: post-check; }

/* ---------- Motion: one load sequence on the homepage, scroll-linked laser lines ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-loc, .hero .h1-a, .hero .h1-b, .hero .lede, .hero .hero-actions, .hero-facts { animation: rise 0.9s var(--ease-out) both; }
  .hero .h1-a { animation-delay: 0.08s; }
  .hero .h1-b { animation-delay: 0.18s; }
  .hero .lede { animation-delay: 0.28s; }
  .hero .hero-actions { animation-delay: 0.36s; }
  .hero-facts { animation-delay: 0.44s; }
  .hero-facts::before { animation: laser-x 0.9s 0.85s var(--ease-out) both; }
  .hero-photo .hud-media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    border-top: 2px solid var(--laser);
    background: var(--develop);
    -webkit-backdrop-filter: grayscale(1);
    backdrop-filter: grayscale(1);
    box-shadow: 0 -6px 24px var(--laser-glow);
    animation: develop 1.35s 0.2s var(--ease-in-out) both;
  }
  .hero-photo::before { animation: hud-in 0.7s 1.1s var(--ease-out) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes laser-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes develop { from { transform: translateY(0); } to { transform: translateY(102%); } }
@keyframes hud-in { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .header-progress span { animation: laser-x linear both; animation-timeline: scroll(root block); }
  }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .steps { view-timeline-name: --steps; view-timeline-axis: block; }
    .steps::after { animation: laser-y linear both; animation-timeline: --steps; animation-range: cover 50vh cover calc(100% - 50vh); }
    .step-no { animation: node-on linear both; animation-timeline: view(); animation-range: cover 50vh cover calc(50vh + 24px); }
  }
  @media (prefers-reduced-motion: no-preference) and (min-width: 1024px) {
    .steps::after { animation-name: laser-x; animation-range: cover 20% cover 50%; }
    .step-no { animation: none; }
  }
}
@keyframes laser-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes node-on {
  from { border-color: var(--line-strong); color: var(--muted); }
  to { border-color: var(--laser); color: var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .ripple { display: none; }
}

@media print {
  .site-header, .mobile-menu, .action-bar, .wa-fab, .lightbox, .skip { display: none !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
