/* =========================================================
   APEX FINISH — Redesign
   Palette: #1B1B1B (graphite) · #D00000 (apex red) · #EFF0F2 (light)
   Type: Montserrat (titles) · Inter (paragraphs)
   Scale: H1 56 · H2 48 · H3 32 · H4 21 · p 18
   ========================================================= */

:root {
  /* Brand palette */
  --c-dark: #1B1B1B;
  --c-red: #D00000;
  --c-light: #EFF0F2;

  /* Semantic tokens */
  --bg: var(--c-dark);
  --bg-deep: #141414;
  --surface: #222222;
  --surface-2: #2A2A2A;
  --text: var(--c-light);
  --text-muted: rgba(239, 240, 242, 0.72);
  --text-faint: rgba(239, 240, 242, 0.5);
  --line: rgba(239, 240, 242, 0.12);
  --line-strong: rgba(239, 240, 242, 0.24);
  --accent: var(--c-red);
  --accent-hover: #E50000;
  --on-accent: #FFFFFF;

  /* Type */
  --font-title: "Montserrat", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-h1: clamp(2.5rem, 1.6rem + 3.6vw, 3.5rem);     /* 56px */
  --fs-h2: clamp(2rem, 1.4rem + 2.6vw, 3rem);          /* 48px */
  --fs-h3: clamp(1.5rem, 1.25rem + 1vw, 2rem);         /* 32px */
  --fs-h4: 1.3125rem;                                  /* 21px */
  --fs-p: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);     /* 18px */
  --fs-sm: 0.875rem;
  --fs-xs: 0.75rem;

  /* Spacing (8pt) */
  --s-1: 0.5rem; --s-2: 1rem; --s-3: 1.5rem; --s-4: 2rem;
  --s-5: 3rem; --s-6: 4rem; --s-7: 6rem; --s-8: 8rem;

  --container: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 76px;

  --radius: 2px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
  --t-fast: 180ms;
  --t-med: 320ms;
  --t-slow: 700ms;

  /* z-index scale */
  --z-header: 100;
  --z-menu: 90;
  --z-skip: 1000;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-p);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
[hidden] { display: none !important; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
p { margin: 0 0 var(--s-2); }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.2; }
h4 { font-size: var(--fs-h4); font-weight: 600; line-height: 1.3; }

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

.icon {
  width: 1.25em; height: 1.25em;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute; left: var(--s-2); top: -100px;
  z-index: var(--z-skip);
  background: var(--accent); color: var(--on-accent);
  padding: var(--s-1) var(--s-2);
  font-weight: 600;
}
.skip-link:focus { top: var(--s-2); }

/* ---------- Shared bits ---------- */
.accent { color: var(--accent); }
.accent-block { display: block; color: var(--text-muted); font-weight: 600; }
.muted { color: var(--text-faint); font-weight: 600; }
.slash { color: var(--accent); font-weight: 800; letter-spacing: -0.08em; margin-right: 0.35em; }

.eyebrow {
  font-family: var(--font-title);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--s-2);
}

.section { padding-block: clamp(4.5rem, 3rem + 6vw, 8rem); }
.section-head { margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head-split {
  display: grid;
  gap: var(--s-3);
  align-items: end;
}
.section-intro { color: var(--text-muted); max-width: 42ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-title);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease,
              color var(--t-fast) ease, transform var(--t-fast) ease;
}
.btn .icon { transition: transform var(--t-med) var(--ease-out); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost { border-color: var(--line-strong); color: var(--text); background: rgba(27, 27, 27, 0.35); }
.btn-ghost:hover { border-color: var(--text); background: rgba(239, 240, 242, 0.06); }

.btn-sm { min-height: 44px; padding: 0.625rem 1.25rem; font-size: 0.75rem; }
.btn-block { width: 100%; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: var(--z-header);
  height: var(--header-h);
  transition: background-color var(--t-med) ease, border-color var(--t-med) ease, backdrop-filter var(--t-med) ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
body.menu-open .site-header {
  background: rgba(20, 20, 20, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.header-inner {
  height: 100%;
  display: flex; align-items: center; gap: var(--s-4);
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: auto; height: 52px; }

.nav-desktop { display: none; margin-left: auto; }
.nav-desktop ul { display: flex; gap: var(--s-4); }
.nav-desktop a {
  position: relative;
  display: inline-block;
  padding-block: 0.5rem;
  font-family: var(--font-title);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--t-fast) ease;
}
.nav-desktop a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-med) var(--ease-out);
}
.nav-desktop a:hover, .nav-desktop a.is-active { color: var(--text); }
.nav-desktop a:hover::after, .nav-desktop a.is-active::after { transform: scaleX(1); }

.header-cta { display: none; }

/* Hamburger */
.menu-toggle {
  margin-left: auto;
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color var(--t-fast) ease, background-color var(--t-fast) ease;
}
.menu-toggle:hover { border-color: var(--text); }
.menu-toggle[aria-expanded="true"] { border-color: var(--accent); background: rgba(208, 0, 0, 0.12); }
.menu-toggle-box { position: relative; width: 22px; height: 14px; }
.menu-toggle-box span {
  position: absolute; left: 0;
  height: 2px; background: var(--text);
  transition: transform var(--t-med) var(--ease-out), opacity var(--t-fast) ease, width var(--t-med) var(--ease-out), top var(--t-med) var(--ease-out);
}
.menu-toggle-box span:nth-child(1) { top: 0; width: 100%; }
.menu-toggle-box span:nth-child(2) { top: 6px; width: 70%; background: var(--accent); }
.menu-toggle-box span:nth-child(3) { top: 12px; width: 100%; }
.menu-toggle[aria-expanded="true"] .menu-toggle-box span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-box span:nth-child(2) { opacity: 0; width: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-box span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* =========================================================
   MOBILE MENU — premium overlay
   Diagonal "//" wipe (red, then graphite) → staggered reveal
   ========================================================= */
.mobile-menu {
  --mm-ease: cubic-bezier(0.76, 0, 0.24, 1);
  position: fixed; inset: 0;
  z-index: var(--z-menu);
  overflow: hidden;
  visibility: hidden;
  transition: visibility 0s linear 560ms;
}
.mobile-menu.is-open { visibility: visible; transition: visibility 0s; }

/* wipe layers */
.mm-layer {
  position: absolute; top: 0; bottom: 0;
  left: -60%; width: 220%;
  transform: translateX(100%) skewX(-14deg);
  transition: transform 460ms var(--mm-ease);
  will-change: transform;
}
.mm-layer-red { background: var(--accent); transition-delay: 70ms; }
.mm-layer-dark {
  background:
    radial-gradient(circle at 78% 4%, rgba(208, 0, 0, 0.22), transparent 42%),
    linear-gradient(to right, rgba(239, 240, 242, 0.04) 1px, transparent 1px) 0 0 / 25% 100%,
    var(--bg-deep);
  transition-delay: 0ms;
}
.mobile-menu.is-open .mm-layer { transform: translateX(0) skewX(-14deg); transition-duration: 680ms; }
.mobile-menu.is-open .mm-layer-red { transition-delay: 0ms; }
.mobile-menu.is-open .mm-layer-dark { transition-delay: 120ms; }

/* content */
.mm-inner {
  position: relative; z-index: 1;
  height: 100%;
  overflow-y: auto;
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-5);
  padding: calc(var(--header-h) + var(--s-4)) var(--gutter) max(var(--s-4), env(safe-area-inset-bottom));
}
.mm-watermark {
  position: absolute; right: -0.08em; bottom: -0.18em;
  font-family: var(--font-title); font-weight: 800;
  font-size: 70vw; line-height: 1; letter-spacing: -0.14em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(208, 0, 0, 0.28);
  pointer-events: none; user-select: none;
  opacity: 0; transform: translateX(8%);
  transition: opacity 300ms ease, transform 300ms ease;
}
.mobile-menu.is-open .mm-watermark {
  opacity: 1; transform: none;
  transition: opacity 900ms ease 380ms, transform 1200ms var(--ease-out) 380ms;
}

.mm-eyebrow {
  display: flex; justify-content: space-between;
  font-family: var(--font-title); font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-faint);
  padding-bottom: var(--s-2);
  margin-bottom: 0;
  border-bottom: 1px solid var(--line);
}

.mobile-links li { position: relative; }
.mobile-links li::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--line);
  transform: scaleX(0); transform-origin: left;
  transition: transform 200ms ease;
}
.mobile-links a {
  display: grid;
  grid-template-columns: 2.75rem 1fr auto;
  align-items: center;
  min-height: 64px;
  padding: 0.9rem 0;
  font-family: var(--font-title);
  font-size: clamp(1.875rem, 1rem + 6vw, 2.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  -webkit-tap-highlight-color: transparent;
}
.mobile-links .idx {
  align-self: start;
  padding-top: 0.25rem;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.16em;
  color: var(--accent);
  opacity: 0;
  transition: opacity 200ms ease;
}
.mm-word { display: block; overflow: hidden; padding-block: 0.06em; }
.mm-word-inner {
  display: block;
  transform: translateY(110%);
  transition: transform 260ms var(--ease-in), color var(--t-fast) ease;
}
.mm-arrow {
  width: 28px; height: 28px;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
  color: var(--text-faint);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity var(--t-med) ease, transform var(--t-med) var(--ease-out), color var(--t-fast) ease;
}

.mobile-menu.is-open .mobile-links li::after {
  transform: scaleX(1);
  transition: transform 900ms var(--ease-out) calc(380ms + var(--i, 0) * 70ms);
}
.mobile-menu.is-open .mm-word-inner {
  transform: none;
  transition: transform 800ms var(--ease-out) calc(360ms + var(--i, 0) * 70ms), color var(--t-fast) ease;
}
.mobile-menu.is-open .mobile-links .idx {
  opacity: 1;
  transition: opacity 600ms ease calc(520ms + var(--i, 0) * 70ms);
}
.mobile-menu.is-open .mm-arrow {
  opacity: 0.5; transform: none;
  transition: opacity 600ms ease calc(560ms + var(--i, 0) * 70ms), transform 700ms var(--ease-out) calc(560ms + var(--i, 0) * 70ms), color var(--t-fast) ease;
}

.mobile-links a:hover .mm-word-inner,
.mobile-links a:focus-visible .mm-word-inner,
.mobile-links a:active .mm-word-inner { color: var(--accent); }
.mobile-links a:hover .mm-arrow,
.mobile-links a:focus-visible .mm-arrow { opacity: 1; color: var(--accent); transform: translateX(4px); }
.mobile-links a.is-current .mm-word-inner,
.mobile-links a[aria-current="page"] .mm-word-inner { color: var(--accent); }
.mobile-links a.is-current .mm-arrow,
.mobile-links a[aria-current="page"] .mm-arrow { color: var(--accent); opacity: 1; }
.mobile-links a:focus-visible { outline-offset: -2px; }

/* footer of the menu */
.mobile-menu-foot {
  display: grid; gap: var(--s-3);
  opacity: 0; transform: translateY(16px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.mobile-menu.is-open .mobile-menu-foot {
  opacity: 1; transform: none;
  transition: opacity 700ms ease 720ms, transform 900ms var(--ease-out) 720ms;
}
.mobile-contact {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
}
.mobile-contact a { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; padding-block: 0.25rem; font-size: var(--fs-sm); font-weight: 500; }
.mobile-contact small {
  font-family: var(--font-title); font-size: 0.625rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint);
}
.mobile-contact a span { overflow-wrap: anywhere; transition: color var(--t-fast) ease; }
.mobile-contact a:hover span { color: var(--accent); }
.mm-note {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-faint);
  margin: 0;
}
.mm-note::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(208, 0, 0, 0.2);
  animation: mmPulse 2.4s ease-in-out infinite;
}
@keyframes mmPulse { 50% { box-shadow: 0 0 0 7px rgba(208, 0, 0, 0); } }

/* header sits cleanly on top of the overlay */
body.menu-open .site-header {
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  isolation: isolate;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -1; background: #000; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,20,20,0.75) 0%, rgba(20,20,20,0.15) 30%, rgba(20,20,20,0.35) 60%, var(--bg) 100%),
    linear-gradient(90deg, rgba(20,20,20,0.85) 0%, rgba(20,20,20,0.2) 65%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(239,240,242,0.05) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}

.hero-content {
  padding-top: calc(var(--header-h) + var(--s-250));
  padding-bottom: var(--s-250);
}
.hero-title {
  display: flex; flex-direction: column;
  font-size: var(--fs-h1);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.02;
  margin-bottom: var(--s-3);
}
.hero-title span { display: block; }
.hero-lead {
  max-width: 46ch;
  color: var(--text-muted);
  font-size: var(--fs-p);
  margin-bottom: var(--s-4);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }

.hero-spec { border-top: 1px solid var(--line); background: rgba(20, 20, 20, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-spec-inner {
  display: grid;
  grid-template-columns: 1fr;
}
.spec {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-2);
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.spec:last-of-type { border-bottom: 0; }
.spec-k {
  font-family: var(--font-title);
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-faint);
}
.spec-v { font-size: var(--fs-sm); font-weight: 500; color: var(--text); text-align: right; }
.scroll-cue { display: none; }

/* =========================================================
   SERVICES (merged with "It's engineering")
   ========================================================= */
.services { position: relative; overflow: hidden; }
.services-watermark {
  position: absolute; right: -0.04em; top: 0.1em;
  font-family: var(--font-title); font-weight: 800;
  font-size: clamp(12rem, 32vw, 30rem);
  line-height: 1; letter-spacing: -0.12em;
  color: rgba(208, 0, 0, 0.06);
  pointer-events: none; user-select: none;
}
.services-intro {
  position: relative;
  display: grid; gap: var(--s-4);
  margin-bottom: clamp(3rem, 2rem + 3vw, 5rem);
}
.services-title {
  font-size: var(--fs-h2);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.02;
}
.services-kicker {
  display: block;
  font-size: var(--fs-h4);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
  margin-bottom: var(--s-1);
}
.services-aside > p { color: var(--text-muted); max-width: 50ch; margin-bottom: var(--s-3); }
.services-specs { border-top: 1px solid var(--line); }
.services-specs li {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-2);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.services-specs span {
  font-family: var(--font-title); font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint);
}
.services-specs strong { font-weight: 500; font-size: var(--fs-sm); }

/* Premium service cards */
.svc-grid { position: relative; display: grid; gap: var(--s-2); }
.svc {
  --frame: rgba(239, 240, 242, 0.35);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 520px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--t-med) ease;
}
/* glossy sheen sweep */
.svc::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.10) 48%, rgba(255, 255, 255, 0.02) 54%, transparent 62%);
  transform: translateX(-120%);
  transition: transform 1.1s var(--ease-out);
  pointer-events: none;
}
/* red base line */
.svc::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  height: 3px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-slow) var(--ease-out);
}
.svc:hover, .svc:focus-within { border-color: rgba(208, 0, 0, 0.5); }
.svc:hover::before { transform: translateX(120%); }
.svc:hover::after, .svc:focus-within::after { transform: scaleX(1); }

.svc-media { position: absolute; inset: 0; z-index: -2; }
.svc-media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02);
  filter: brightness(0.82) saturate(0.85);
  transition: transform 1.2s var(--ease-out), filter var(--t-slow) ease;
}
.svc:hover .svc-media img { transform: scale(1.08); filter: brightness(0.95) saturate(1); }
.svc-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20,20,20,0.7) 0%, rgba(20,20,20,0) 28%, rgba(20,20,20,0.25) 50%, rgba(20,20,20,0.97) 100%);
}
/* corner brackets */
.svc-frame {
  position: absolute; inset: 14px; z-index: 0;
  pointer-events: none;
  color: var(--frame);
  background:
    linear-gradient(currentColor, currentColor) top left / 22px 1px no-repeat,
    linear-gradient(currentColor, currentColor) top left / 1px 22px no-repeat,
    linear-gradient(currentColor, currentColor) top right / 22px 1px no-repeat,
    linear-gradient(currentColor, currentColor) top right / 1px 22px no-repeat,
    linear-gradient(currentColor, currentColor) bottom left / 22px 1px no-repeat,
    linear-gradient(currentColor, currentColor) bottom left / 1px 22px no-repeat,
    linear-gradient(currentColor, currentColor) bottom right / 22px 1px no-repeat,
    linear-gradient(currentColor, currentColor) bottom right / 1px 22px no-repeat;
  transition: inset var(--t-med) var(--ease-out), color var(--t-med) ease;
}
.svc:hover .svc-frame, .svc:focus-within .svc-frame { inset: 10px; color: var(--accent); }

.svc-head {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: var(--s-4) var(--s-4) 0;
}
.svc-num {
  font-family: var(--font-title); font-weight: 800;
  font-size: 2.75rem; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(239, 240, 242, 0.7);
  transition: color var(--t-med) ease, -webkit-text-stroke-color var(--t-med) ease;
}
.svc:hover .svc-num { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.svc-cat {
  font-family: var(--font-title); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.45rem 0.8rem;
  background: rgba(20, 20, 20, 0.55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong);
}
.svc-content {
  position: relative; z-index: 1;
  padding: 0 var(--s-4) var(--s-4);
}
.svc-icon {
  width: 52px; height: 52px; padding: 13px;
  margin-bottom: var(--s-2);
  fill: none; stroke: var(--text); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
  background: rgba(20, 20, 20, 0.5);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong);
  transition: background-color var(--t-med) ease, border-color var(--t-med) ease;
}
.svc:hover .svc-icon { background: var(--accent); border-color: var(--accent); }
.svc h3 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem); line-height: 1.15; }
.svc-sub {
  display: inline-block; vertical-align: middle;
  margin-left: 0.35em; padding: 0.15em 0.5em;
  font-size: 0.5em; font-weight: 700; letter-spacing: 0.12em;
  color: var(--on-accent); background: var(--accent);
}

.svc-reveal {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows var(--t-slow) var(--ease-out);
}
.svc-reveal-inner { overflow: hidden; min-height: 0; }
.svc-reveal-inner > :first-child { margin-top: var(--s-2); }
.svc-reveal p { color: var(--text-muted); font-size: 1rem; }
.svc .tags { margin-top: var(--s-2); padding-top: 0; }
.svc .tags li { background: rgba(20, 20, 20, 0.45); }
.svc-link {
  display: inline-flex; align-items: center; gap: 0.5em;
  min-height: 44px; margin-top: var(--s-2);
  font-family: var(--font-title); font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--accent);
}
.svc-link .icon { color: var(--accent); transition: transform var(--t-med) var(--ease-out); }
.svc-link:hover .icon { transform: translateX(4px); }

/* desktop pointer: hide details until hover / focus */
@media (hover: hover) and (min-width: 900px) {
  .svc-reveal { grid-template-rows: 0fr; }
  .svc-reveal-inner { opacity: 0; transform: translateY(8px); transition: opacity var(--t-med) ease, transform var(--t-slow) var(--ease-out); }
  .svc:hover .svc-reveal, .svc:focus-within .svc-reveal { grid-template-rows: 1fr; }
  .svc:hover .svc-reveal-inner, .svc:focus-within .svc-reveal-inner { opacity: 1; transform: none; transition-delay: 80ms; }
}

/* =========================================================
   PROCESS
   ========================================================= */
.process { background: var(--bg-deep); border-block: 1px solid var(--line); }
.steps { display: grid; border-top: 1px solid var(--line); counter-reset: step; }
.step {
  position: relative;
  padding: var(--s-4) 0 var(--s-4) 0;
  border-bottom: 1px solid var(--line);
  display: grid; gap: var(--s-1);
}
.step-num {
  font-family: var(--font-title); font-weight: 800;
  font-size: var(--fs-h3);
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  line-height: 1;
  margin-bottom: var(--s-1);
  transition: -webkit-text-stroke-color var(--t-med) ease, color var(--t-med) ease;
}
.step:hover .step-num { -webkit-text-stroke-color: var(--accent); color: rgba(208, 0, 0, 0.15); }
.step h4 { font-size: var(--fs-h4); }
.step p { color: var(--text-muted); font-size: 1rem; max-width: 34ch; }
.step::before {
  content: "";
  position: absolute; left: 0; top: -1px;
  width: 0; height: 2px; background: var(--accent);
  transition: width var(--t-slow) var(--ease-out);
}
.step:hover::before { width: 100%; }

/* =========================================================
   PORTFOLIO
   ========================================================= */
.portfolio-intro h4 { margin-bottom: var(--s-1); }
.portfolio-intro h4::before { content: "// "; color: var(--accent); }
.portfolio-intro p { color: var(--text-muted); }

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-1);
}
.g-item { position: relative; overflow: hidden; background: var(--surface); aspect-ratio: 1 / 1; }
.g-a, .g-f { grid-column: span 2; aspect-ratio: 16 / 10; }
.g-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out), filter var(--t-slow) ease;
}
.g-item::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 0 var(--accent);
  transition: box-shadow var(--t-med) var(--ease-out);
  pointer-events: none;
}
.g-item:hover img { transform: scale(1.05); }
.g-item:hover::after { box-shadow: inset 0 0 0 2px var(--accent); }

/* ---------- Before / After slider ---------- */
.ba { margin-bottom: clamp(3.5rem, 2.5rem + 3vw, 5rem); }
.ba-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  user-select: none;
  -webkit-user-select: none;
}
.ba-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity var(--t-med) ease;
}
.ba-stage.is-swapping .ba-img { opacity: 0; }
.ba-before {
  position: absolute; inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
/* simulated "before" condition: dull, oxidised, swirled */
.ba-before .ba-img { filter: grayscale(0.5) sepia(0.3) brightness(0.66) contrast(0.78) saturate(0.8); }
.ba-before::after {
  content: "";
  position: absolute; inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .32 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    repeating-radial-gradient(circle at 42% 58%, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 7px),
    repeating-radial-gradient(circle at 78% 40%, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 9px);
  mix-blend-mode: screen;
  pointer-events: none;
}
.ba-handle {
  position: absolute; top: 0; bottom: 0;
  left: var(--pos);
  width: 2px; margin-left: -1px;
  background: var(--c-light);
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
.ba-knob {
  position: absolute; top: 50%; left: 50%;
  width: 56px; height: 56px;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  background: var(--accent);
  border: 2px solid var(--c-light);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: transform var(--t-fast) ease;
}
.ba-knob svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ba-stage:active .ba-knob { transform: translate(-50%, -50%) scale(0.94); }
.ba-stage:focus-within .ba-knob { outline: 2px solid var(--c-light); outline-offset: 4px; }
.ba-range {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
  -webkit-appearance: none; appearance: none;
}
.ba-label {
  position: absolute; top: var(--s-2);
  padding: 0.45rem 0.85rem;
  font-family: var(--font-title); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  background: rgba(20, 20, 20, 0.6);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong);
  pointer-events: none;
}
.ba-label-before { left: var(--s-2); }
.ba-label-after { right: var(--s-2); border-color: var(--accent); }

.ba-meta {
  display: grid; gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
}
.ba-count {
  display: inline-block; margin-bottom: 0.35rem;
  font-family: var(--font-title); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: 0.16em; color: var(--accent);
}
.ba-info h4 { margin-bottom: 0.35rem; }
.ba-info p { color: var(--text-muted); font-size: 1rem; max-width: 52ch; }
.ba-controls { display: flex; align-items: center; gap: var(--s-1); }
.ba-nav {
  width: 48px; height: 48px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color var(--t-fast) ease, background-color var(--t-fast) ease;
}
.ba-nav:hover { border-color: var(--accent); background: var(--accent); }
.ba-thumbs { display: flex; gap: var(--s-1); flex: 1; justify-content: center; }
.ba-thumb {
  position: relative;
  width: 64px; height: 44px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  opacity: 0.5;
  transition: opacity var(--t-fast) ease, border-color var(--t-fast) ease;
}
.ba-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ba-thumb:hover { opacity: 0.85; }
.ba-thumb.is-active { opacity: 1; border: 2px solid var(--accent); }

.gallery-title { margin-bottom: var(--s-3); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 15% 30%, rgba(208, 0, 0, 0.10), transparent 55%),
    var(--bg);
}
.about-bgword {
  position: absolute; left: 50%; bottom: -0.22em;
  transform: translateX(-50%);
  font-family: var(--font-title); font-weight: 800;
  font-size: clamp(8rem, 26vw, 24rem);
  line-height: 1; letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(239, 240, 242, 0.06);
  pointer-events: none; user-select: none;
  white-space: nowrap;
}
.about-grid { position: relative; display: grid; gap: var(--s-6); align-items: center; }

/* image composition */
.about-visual { position: relative; padding: 0 12% 14% 0; }
.about-main { position: relative; }
.about-main img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius);
  filter: saturate(0.9);
}
.about-main::before {
  content: "";
  position: absolute; left: -14px; top: -14px;
  width: 38%; height: 38%;
  border-left: 2px solid var(--accent); border-top: 2px solid var(--accent);
  pointer-events: none;
}
.about-main::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(20, 20, 20, 0.55));
  border-radius: var(--radius);
  pointer-events: none;
}
.about-inset {
  position: absolute; right: 0; bottom: 0;
  width: 52%;
  border: 8px solid var(--bg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
  background: var(--bg);
}
.about-inset img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-tag {
  position: absolute; left: var(--s-2); bottom: calc(14% + var(--s-2));
  padding: 0.6rem 1rem;
  background: rgba(20, 20, 20, 0.7);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong);
  font-family: var(--font-title); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.about-stamp {
  position: absolute; right: 4%; top: -4%;
  width: 104px; height: 104px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 16px 40px rgba(208, 0, 0, 0.35);
}
.about-stamp svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  animation: stampSpin 22s linear infinite;
}
.about-stamp text {
  fill: #fff;
  font-family: var(--font-title); font-size: 8.5px; font-weight: 700;
  letter-spacing: 1px;
}
.about-stamp-core {
  font-family: var(--font-title); font-weight: 800; font-style: italic;
  font-size: 1.75rem; color: #fff; line-height: 1;
}
@keyframes stampSpin { to { transform: rotate(360deg); } }

/* copy */
.about-body h2 { margin-bottom: var(--s-3); }
.about-lead { color: var(--text-muted); max-width: 52ch; }
.about-quote {
  position: relative;
  margin: var(--s-4) 0;
  padding: var(--s-3) var(--s-3) var(--s-3) var(--s-4);
  background: linear-gradient(90deg, rgba(208, 0, 0, 0.12), rgba(208, 0, 0, 0) 85%);
  border-left: 3px solid var(--accent);
}
.about-quote::before {
  content: "“";
  position: absolute; right: var(--s-2); top: -0.15em;
  font-family: var(--font-title); font-weight: 800;
  font-size: 6rem; line-height: 1;
  color: rgba(208, 0, 0, 0.35);
}
.about-quote p {
  position: relative;
  font-family: var(--font-title); font-weight: 600;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.45;
  color: var(--text);
}
.about-quote strong { color: var(--accent); font-weight: 700; }

.pillars { display: grid; border-top: 1px solid var(--line); }
.pillar {
  position: relative;
  display: grid; grid-template-columns: 3.5rem 1fr; gap: var(--s-2);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
}
.pillar::before {
  content: "";
  position: absolute; left: 0; bottom: -1px;
  height: 1px; width: 0; background: var(--accent);
  transition: width var(--t-slow) var(--ease-out);
}
.pillar:hover::before { width: 100%; }
.pillar-num {
  font-family: var(--font-title); font-weight: 800;
  font-size: 2rem; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  transition: color var(--t-med) ease, -webkit-text-stroke-color var(--t-med) ease;
}
.pillar:hover .pillar-num { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.pillar h4 { margin-bottom: 0.35rem; }
.pillar p { color: var(--text-muted); font-size: 1rem; margin: 0; }
.about-link { margin-top: var(--s-4); }

@media (max-width: 639px) {
  .about-stamp { width: 84px; height: 84px; }
  .about-stamp-core { font-size: 1.375rem; }
  .about-tag { display: none; }
}

/* =========================================================
   CTA
   ========================================================= */
.cta {
  position: relative;
  isolation: isolate;
  padding-block: clamp(6rem, 4rem + 8vw, 10rem);
  overflow: hidden;
  text-align: center;
}
.cta-media { position: absolute; inset: 0; z-index: -1; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; }
.cta-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(27,27,27,0.65) 0%, rgba(27,27,27,0.92) 70%),
    linear-gradient(180deg, var(--bg) 0%, transparent 25%, transparent 75%, var(--bg-deep) 100%);
}
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta h2 { max-width: 16ch; margin-bottom: var(--s-3); }
.cta h2 .accent { display: block; }
.cta-lead { max-width: 52ch; color: var(--text-muted); margin-bottom: var(--s-4); }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: center; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding-top: var(--s-6); }
.footer-grid { display: grid; gap: var(--s-5); padding-bottom: var(--s-5); }
.footer-brand img { width: 150px; height: auto; margin-bottom: var(--s-2); }
.footer-brand p {
  font-family: var(--font-title); font-weight: 600;
  font-size: var(--fs-sm); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-faint);
}
.footer-h {
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--s-2);
}
.footer-nav ul { display: grid; gap: 0.25rem; }
.footer-nav a {
  display: inline-block; padding-block: 0.4rem;
  font-family: var(--font-title); font-weight: 600;
  transition: color var(--t-fast) ease;
}
.footer-nav a:hover { color: var(--accent); }
.footer-contact ul { display: grid; gap: var(--s-1); margin-bottom: var(--s-3); }
.footer-contact li { display: flex; align-items: center; gap: 0.75rem; }
.footer-contact li .icon { color: var(--accent); }
.footer-contact a { padding-block: 0.3rem; transition: color var(--t-fast) ease; }
.footer-contact a:hover { color: var(--accent); }
.footer-note {
  font-size: var(--fs-sm); color: var(--text-muted);
  padding: var(--s-2);
  border: 1px dashed var(--line-strong);
  max-width: 40ch;
}
.footer-note strong { color: var(--text); }

.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3);
  padding-block: var(--s-3);
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--text-faint);
}
.footer-bottom p { margin: 0; }
.to-top {
  margin-left: auto;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color var(--t-fast) ease, background-color var(--t-fast) ease;
}
.to-top:hover { border-color: var(--accent); background: var(--accent); }

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (min-width: 640px) {
  .hero-spec-inner { grid-template-columns: repeat(3, 1fr); }
  .spec {
    flex-direction: column; align-items: flex-start; gap: 0.25rem;
    padding: var(--s-3) var(--s-3) var(--s-3) 0;
    border-bottom: 0;
  }
  .spec + .spec { padding-left: var(--s-3); border-left: 1px solid var(--line); }
  .spec-v { text-align: left; }

  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(odd) { padding-right: var(--s-4); border-right: 1px solid var(--line); }
  .step:nth-child(even) { padding-left: var(--s-4); }

  .gallery { grid-template-columns: repeat(3, 1fr); }
  .g-a { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .g-f { grid-column: span 1; aspect-ratio: 1 / 1; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (min-width: 900px) {
  .services-intro { grid-template-columns: 1.15fr 1fr; gap: var(--s-6); align-items: end; }
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .svc { min-height: 600px; }
  .svc:nth-child(2) { margin-top: var(--s-5); }

  .ba-stage { aspect-ratio: 16 / 9; }
  .ba-meta { grid-template-columns: 1fr auto; align-items: center; }
  .ba-thumb { width: 84px; height: 56px; }

  .section-head-split { grid-template-columns: 1.1fr 1fr; gap: var(--s-6); }

  .about-grid { grid-template-columns: 1fr 1.05fr; gap: var(--s-7); }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1.4fr; }
  .footer-brand { grid-column: auto; }
}

@media (min-width: 1024px) {
  :root { --header-h: 88px; }
  .brand img { height: 60px; }
  .nav-desktop { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
  .mobile-menu { display: none !important; }

  /* centre the hero copy in the space above the spec strip */
  .hero-content {
    flex: 1;
    display: flex; flex-direction: column; justify-content: center;
    padding-bottom: var(--s-6);
  }
  .hero-title { font-size: 3.5rem; }

  .hero-spec-inner { grid-template-columns: repeat(3, 1fr) auto; }
  .scroll-cue {
    display: inline-flex; align-items: center; justify-content: center;
    align-self: center;
    width: 48px; height: 48px;
    margin-left: var(--s-3);
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    transition: border-color var(--t-fast) ease, background-color var(--t-fast) ease;
  }
  .scroll-cue:hover { border-color: var(--accent); background: var(--accent); }
  .scroll-cue .icon { animation: nudge 2.2s var(--ease-out) infinite; }

  .steps { grid-template-columns: repeat(4, 1fr); }
  .step, .step:nth-child(odd), .step:nth-child(even) {
    padding: var(--s-4) var(--s-3);
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }
  .step:first-child { padding-left: 0; }
  .step:last-child { border-right: 0; padding-right: 0; }

  .gallery { grid-template-columns: repeat(4, 1fr); gap: var(--s-2); }
  .g-a { grid-column: span 2; grid-row: span 2; }
  .g-f { grid-column: span 4; aspect-ratio: 3 / 1; }
}

@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* Hover only on devices that support it */
@media (hover: none) {
  .svc:hover .svc-media img, .g-item:hover img { transform: scale(1.02); }
}

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

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 72vh;
  min-height: 72svh;
  display: flex; align-items: flex-end;
}
.page-hero-content {
  padding-top: calc(var(--header-h) + var(--s-6));
  padding-bottom: var(--s-6);
}
.page-title {
  font-size: var(--fs-h1);
  text-transform: uppercase;
  line-height: 1.02;
  margin-bottom: var(--s-3);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: var(--s-3); }
.breadcrumb li {
  font-family: var(--font-title); font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint);
}
.breadcrumb li + li::before { content: "//"; color: var(--accent); margin-right: 0.5rem; font-weight: 800; }
.breadcrumb a { color: var(--text-muted); transition: color var(--t-fast) ease; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb [aria-current] { color: var(--text); }

.quick-contact { display: grid; gap: var(--s-1); margin-top: var(--s-2); }
.quick-contact a {
  display: flex; align-items: center; gap: var(--s-2);
  min-height: 56px;
  padding: 0.75rem 1rem;
  background: rgba(20, 20, 20, 0.6);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color var(--t-fast) ease, background-color var(--t-fast) ease;
}
.quick-contact a:hover { border-color: var(--accent); background: rgba(208, 0, 0, 0.12); }
.quick-contact .icon { color: var(--accent); }
.quick-contact span { display: flex; flex-direction: column; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.quick-contact small {
  font-family: var(--font-title); font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint);
}

/* Layout */
.contact-grid { display: grid; gap: var(--s-4); align-items: start; }

/* Form card */
.form-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
}
.form-card-head { margin-bottom: var(--s-4); }
.form-card-head h2 { margin-bottom: var(--s-2); }
.form-intro { color: var(--text-muted); max-width: 52ch; }

.contact-form { display: grid; gap: var(--s-3); }
.field-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.field-legend, .field label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-title); font-size: var(--fs-sm); font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  padding: 0;
}
.req { color: var(--accent); }
.opt { color: var(--text-faint); font-weight: 500; }

.field input, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1rem;
  font: inherit; font-size: 1rem;
  color: var(--text);
  background: var(--bg-deep);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: rgba(239, 240, 242, 0.42); }
.field input:hover, .field textarea:hover { border-color: rgba(239, 240, 242, 0.4); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--c-light);
  box-shadow: 0 0 0 3px rgba(239, 240, 242, 0.12);
}
.field.has-error input, .field.has-error textarea { border-color: #FF4D4D; box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.15); }
.field-error {
  display: none;
  align-items: center; gap: 0.4rem;
  margin: 0.5rem 0 0;
  font-size: var(--fs-sm); font-weight: 500;
  color: #FF6B6B;
}
.field-error::before {
  content: "!";
  display: inline-grid; place-items: center;
  width: 1.1rem; height: 1.1rem; flex-shrink: 0;
  border-radius: 50%;
  background: #FF4D4D; color: #fff;
  font-size: 0.7rem; font-weight: 700;
}
.field.has-error .field-error { display: flex; }
.field-help { margin: 0.5rem 0 0; font-size: var(--fs-sm); color: var(--text-faint); }

/* Service chips */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-1); }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center;
  min-height: 44px;
  padding: 0.6rem 1rem;
  font-size: var(--fs-sm); font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  transition: border-color var(--t-fast) ease, background-color var(--t-fast) ease, color var(--t-fast) ease;
}
.chip:hover span { border-color: rgba(239, 240, 242, 0.5); color: var(--text); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip input:focus-visible + span { outline: 2px solid var(--c-light); outline-offset: 3px; }

.form-foot { display: grid; gap: var(--s-2); align-items: center; padding-top: var(--s-1); }
.form-note { font-size: var(--fs-sm); color: var(--text-faint); margin: 0; }
.btn-submit { width: 100%; }
.btn-submit .spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.btn-submit.is-loading { pointer-events: none; opacity: 0.85; }
.btn-submit.is-loading .spinner { display: inline-block; }
.btn-submit.is-loading .icon { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-errors {
  margin-bottom: var(--s-3);
  padding: var(--s-2) var(--s-3);
  border: 1px solid rgba(255, 77, 77, 0.5);
  border-left: 3px solid #FF4D4D;
  background: rgba(255, 77, 77, 0.08);
}
.form-errors-title { font-weight: 600; margin-bottom: 0.4rem; }
.form-errors ul { list-style: disc; padding-left: 1.2rem; }
.form-errors a { color: #FF8A8A; text-decoration: underline; text-underline-offset: 3px; }

.form-success { text-align: center; padding: var(--s-5) 0 var(--s-2); }
.form-success h3 { margin-bottom: var(--s-2); }
.form-success p { color: var(--text-muted); max-width: 42ch; margin: 0 auto var(--s-4); }
.success-icon {
  display: inline-grid; place-items: center;
  width: 72px; height: 72px; margin-bottom: var(--s-3);
  border-radius: 50%;
  background: var(--accent);
  animation: pop var(--t-slow) var(--ease-out) both;
}
.success-icon svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* Aside */
.contact-aside { display: grid; gap: var(--s-3); }
.info-card, .next-card {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s-4) var(--s-3);
}
.info-title { font-size: var(--fs-h4); margin-bottom: var(--s-3); }
.info-title::before { content: "// "; color: var(--accent); }
.info-list { display: grid; }
.info-list li {
  display: flex; gap: var(--s-2); align-items: flex-start;
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--line);
}
.info-list li:first-child { padding-top: 0; }
.info-list .icon { color: var(--accent); margin-top: 0.2rem; }
.info-list div { display: flex; flex-direction: column; min-width: 0; }
.info-list small {
  font-family: var(--font-title); font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint);
}
.info-list a, .info-list span { font-weight: 500; overflow-wrap: anywhere; }
.info-list a { transition: color var(--t-fast) ease; }
.info-list a:hover { color: var(--accent); }
.info-note { margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--text-muted); }
.info-note strong { color: var(--text); }

.next-steps { display: grid; gap: var(--s-3); }
.next-steps li { display: flex; gap: var(--s-2); }
.next-steps li > span {
  font-family: var(--font-title); font-weight: 800; font-size: 1.5rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--accent);
  min-width: 2.5rem;
}
.next-steps strong { display: block; font-family: var(--font-title); font-weight: 600; margin-bottom: 0.2rem; }
.next-steps p { font-size: var(--fs-sm); color: var(--text-muted); margin: 0; }

/* Map */
.map-section { padding-bottom: clamp(4.5rem, 3rem + 6vw, 8rem); }
.map-head { margin-bottom: var(--s-4); }
.map-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.map-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
  filter: grayscale(1) invert(0.92) contrast(0.9) brightness(0.9);
}
.map-link {
  position: absolute; left: var(--s-2); bottom: var(--s-2);
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 44px; padding: 0.6rem 1rem;
  font-family: var(--font-title); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--accent); color: var(--on-accent);
  transition: background-color var(--t-fast) ease;
}
.map-link:hover { background: var(--accent-hover); }

@media (min-width: 640px) {
  .contact-form { grid-template-columns: 1fr 1fr; }
  .field-group, .field-full { grid-column: 1 / -1; }
  .form-foot { grid-template-columns: 1fr auto; }
  .btn-submit { width: auto; }
  .quick-contact { grid-template-columns: repeat(3, auto); justify-content: start; }
  .map-frame { aspect-ratio: 16 / 7; }
}
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1.55fr 1fr; gap: var(--s-5); }
  .contact-aside { position: sticky; top: calc(var(--header-h) + var(--s-3)); }
}

/* =========================================================
   HERO — MOBILE REFINEMENTS
   ========================================================= */
@media (max-width: 639px) {
  /* shorter hero on phones: no forced full-screen height */
  .hero { min-height: 0; }
  .hero-content { padding-top: calc(var(--header-h) + 8rem); padding-bottom: var(--s-5); }

  /* longest word ("PERFORMANCE.") must fit the viewport */
  .hero-title, .page-title {
    font-size: min(var(--fs-h1), 9.2vw);
    letter-spacing: 0;
    overflow-wrap: anywhere;
  }
  .hero .eyebrow { font-size: 0.6875rem; letter-spacing: 0.14em; }
  .hero-lead { font-size: 1rem; max-width: 34ch; margin-bottom: var(--s-3); }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }

  /* secondary info is repeated in Services — keep the first screen clean */
  .hero-spec { display: none; }

  .hero-video { object-position: 62% center; }
  .hero-shade {
    background: linear-gradient(180deg,
      rgba(20, 20, 20, 0.65) 0%,
      rgba(20, 20, 20, 0.25) 30%,
      rgba(20, 20, 20, 0.75) 62%,
      var(--bg) 100%);
  }
  .hero-grid { background-size: 25% 100%; }

  .page-hero { min-height: auto; }
  .page-hero-content { padding-top: calc(var(--header-h) + var(--s-5)); padding-bottom: var(--s-5); }
}

/* phones in landscape: don't force a full-height hero */
@media (max-height: 520px) and (orientation: landscape) {
  .hero, .page-hero { min-height: auto; }
  .hero-content, .page-hero-content { padding-top: calc(var(--header-h) + var(--s-3)); padding-bottom: var(--s-4); }
  .hero-spec { display: none; }
}
