/* =========================================================
   Shah Builders: site styles
   Palette from the workshop: mill-scale steel, red-oxide
   primer, galvanised zinc. Light and dark themes share one
   set of tokens; switch with [data-theme] on <html>.
   ========================================================= */

:root {
  /* Fixed colours (same in both themes) */
  --oxide: #a1402a;          /* red-oxide primer: the one accent */
  --oxide-dk: #84321f;
  --wa: #1fa855;             /* WhatsApp buttons only */
  --night-900: #1b2127;      /* image overlays, hero, lightbox */
  --night-800: #232b33;
  --night-400: #93a0ab;

  /* Type */
  --f-display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Space and motion */
  --gutter: clamp(20px, 4vw, 48px);
  --max: 1280px;
  --section: clamp(72px, 10vw, 136px);
  --header-h: 76px;
  --radius: 2px;
  --ease: cubic-bezier(.7, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Light theme (default) ---------- */
:root, [data-theme="light"] {
  color-scheme: light;
  --bg: #f4f5f6;
  --bg-alt: #e8ebed;
  --bg-raised: #ffffff;
  --bg-deep: #dde2e5;
  --text: #1b2127;
  --text-2: #3b4650;
  --muted: #5b6874;
  --line: #d3d9dd;
  --line-strong: #1b2127;
  --accent-line: #a1402a;
  --field-bg: #f4f5f6;
  --field-line: #b2bcc4;
  --header-bg: rgba(244, 245, 246, .88);
  --focus: #1f5fbf;
  --gate-bg: #cfd5da;
  --gate-bar: #b3bcc4;
  --gate-rail: #9ea9b2;
  --gate-art: #1b2127;
  --map-filter: grayscale(.85) contrast(1.05);
}

/* ---------- Dark theme ---------- */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1b2127;
  --bg-alt: #212930;
  --bg-raised: #28313a;
  --bg-deep: #151a1f;
  --text: #f1f3f4;
  --text-2: #c9d0d6;
  --muted: #93a0ab;
  --line: #35404a;
  --line-strong: #c9d0d6;
  --accent-line: #d0573b;
  --field-bg: #1b2127;
  --field-line: #4a5661;
  --header-bg: rgba(27, 33, 39, .86);
  --focus: #8cc2ff;
  --gate-bg: #232b33;
  --gate-bar: #2f3943;
  --gate-rail: #3a4550;
  --gate-art: #eef1f3;
  --map-filter: grayscale(1) invert(.9) contrast(.9);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .35s ease, color .35s ease;
}
img, video, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.02; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
figure { margin: 0; }
ul, ol.process { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--oxide); color: #fff; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.hero, .page-hero, .video-band, .cta-band, .lightbox, .notfound { --focus: #8cc2ff; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 500;
  background: var(--bg-raised); color: var(--text); padding: 10px 16px; font-weight: 600;
  text-decoration: none; border-radius: var(--radius); transition: top .2s;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Type scale ---------- */
.display, h1, h2 { font-family: var(--f-display); letter-spacing: -.005em; }
.h1 { font-size: clamp(3.1rem, 8.6vw, 7.4rem); line-height: .9; font-weight: 800; }
.h2 { font-size: clamp(2.4rem, 5.2vw, 4.25rem); line-height: .95; font-weight: 800; }
.h3 { font-family: var(--f-body); font-size: clamp(1.2rem, 1.6vw, 1.4rem); line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.55; max-width: 38em; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--oxide); --btn-fg: #fff; --btn-bd: var(--oxide);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 1.5em;
  font-family: var(--f-body); font-weight: 600; font-size: 1rem; line-height: 1;
  text-decoration: none; white-space: nowrap;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 2px solid var(--btn-bd); border-radius: var(--radius);
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { --btn-bg: var(--oxide-dk); --btn-bd: var(--oxide-dk); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--ghost { --btn-bg: transparent; --btn-fg: currentColor; --btn-bd: currentColor; }
.btn--ghost:hover { --btn-bg: color-mix(in srgb, currentColor 10%, transparent); --btn-bd: currentColor; }
.btn--light { --btn-bg: #fff; --btn-fg: #1b2127; --btn-bd: #fff; }
.btn--light:hover { --btn-bg: #e9ecee; --btn-bd: #e9ecee; }
.btn--wa { --btn-bg: var(--wa); --btn-bd: var(--wa); }
.btn--wa:hover { --btn-bg: #178a45; --btn-bd: #178a45; }
.btn--sm { min-height: 44px; padding: 0 1.1em; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link {
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: .25em; text-decoration-color: var(--accent-line);
  transition: text-decoration-color .2s;
}
.link:hover { text-decoration-color: currentColor; }

/* ---------- Scroll progress (a weld seam along the top) ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 160; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--oxide), #e2704f); transform-origin: left; transform: scaleX(0); }

/* ---------- Loader: the gate opens (first page per visit) ---------- */
.gate { position: fixed; inset: 0; z-index: 400; display: flex; pointer-events: none; }
.gate__leaf {
  position: relative; flex: 1; overflow: hidden;
  background-color: var(--gate-bg);
  background-image:
    linear-gradient(180deg, transparent 0 46px, var(--gate-rail) 46px 60px, transparent 60px calc(100% - 22px), var(--gate-rail) calc(100% - 22px)),
    linear-gradient(180deg, var(--gate-bg) 0 27px, transparent 27px),
    repeating-linear-gradient(90deg, transparent 0 22px, var(--gate-bar) 22px 29px, transparent 29px 52px);
  animation: gate-open-l 1.1s var(--ease) 1.15s forwards;
}
.gate__leaf--r { animation-name: gate-open-r; }
/* spear-point finials along the top of every bar */
.gate__leaf::before {
  content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 18px; background: var(--gate-bar);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='18'%3E%3Cpath d='M25.5 0 31 12.5 25.5 9.5 20 12.5Z'/%3E%3Crect x='22' y='11' width='7' height='7'/%3E%3C/svg%3E") 0 0 / 52px 18px repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='18'%3E%3Cpath d='M25.5 0 31 12.5 25.5 9.5 20 12.5Z'/%3E%3Crect x='22' y='11' width='7' height='7'/%3E%3C/svg%3E") 0 0 / 52px 18px repeat-x;
}
/* the stile where the two leaves meet */
.gate__leaf::after { content: ""; position: absolute; top: 0; bottom: 0; width: 14px; background: var(--gate-rail); z-index: 1; }
.gate__leaf--l::after { right: 0; }
.gate__leaf--r::after { left: 0; }
.gate__art {
  position: absolute; top: 0; bottom: 0; width: 100vw; z-index: 2;
  display: grid; place-items: center; color: var(--gate-art);
}
.gate__leaf--l .gate__art { left: 0; }
.gate__leaf--r .gate__art { right: 0; }
.gate__plate {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 30px clamp(28px, 6vw, 56px) 26px; background: var(--gate-bg);
  border: 3px solid var(--gate-rail); outline: 1px solid var(--gate-bar); outline-offset: 5px;
  animation: plate-in .55s var(--ease-out) both;
}
.gate__logo { width: clamp(96px, 22vw, 150px); height: auto; overflow: visible; }
.gate__logo .mk-tips { color: var(--accent-line); }
.gate__logo .mk-bars rect { transform-box: fill-box; transform-origin: 50% 100%; animation: bar-rise .5s var(--ease-out) both; }
.gate__logo .mk-bars rect:nth-child(1) { animation-delay: .18s; }
.gate__logo .mk-bars rect:nth-child(2) { animation-delay: .26s; }
.gate__logo .mk-bars rect:nth-child(3) { animation-delay: .1s; }
.gate__logo .mk-bars rect:nth-child(4) { animation-delay: .26s; }
.gate__logo .mk-bars rect:nth-child(5) { animation-delay: .18s; }
.gate__logo .mk-tips > * { transform-box: fill-box; transform-origin: 50% 100%; animation: tip-pop .4s var(--ease-out) .55s both; }
.gate__name { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.4rem, 7vw, 4.2rem); line-height: .95; white-space: nowrap; animation: fade-up .5s var(--ease-out) .35s both; }
.gate__tag { font-size: .95rem; color: inherit; opacity: .72; animation: fade-up .5s var(--ease-out) .45s both; }
.gate__seam {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; z-index: 3;
  background: linear-gradient(180deg, transparent, #ffd2b8 15%, #ff7a45 50%, #ffd2b8 85%, transparent);
  box-shadow: 0 0 18px 4px rgba(255, 120, 60, .55);
  transform: scaleY(0); transform-origin: top; opacity: 0;
  animation: seam .5s ease-out .72s forwards;
}
@keyframes gate-open-l { to { transform: translateX(-101%); } }
@keyframes gate-open-r { to { transform: translateX(101%); } }
@keyframes plate-in { from { opacity: 0; transform: scale(.94); } }
@keyframes bar-rise { from { transform: scaleY(0); } }
@keyframes tip-pop { from { opacity: 0; transform: translateY(6px) scale(.6); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } }
@keyframes seam { 0% { opacity: 0; transform: scaleY(0); } 40% { opacity: 1; } 75% { opacity: 1; transform: scaleY(1); } 100% { opacity: 0; transform: scaleY(1); } }
.no-gate .gate { display: none; }

/* ---------- Header ---------- */
.site-header {
  --h-fg: #fff; --h-line: rgba(255, 255, 255, .32);
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  color: var(--h-fg); transition: background-color .3s, box-shadow .3s, color .3s;
}
.site-header.is-scrolled, .menu-open .site-header {
  --h-fg: var(--text); --h-line: var(--line);
  background: var(--header-bg); box-shadow: 0 1px 0 var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header.is-scrolled, .menu-open .site-header { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
}
.menu-open .site-header { background: var(--bg); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; flex: none; }
.brand__mark { width: 40px; height: 34px; flex: none; }
.mk-tips { color: var(--accent-line); }
.site-header:not(.is-scrolled) .brand__mark .mk-tips { color: #e2704f; }
.menu-open .site-header .brand__mark .mk-tips { color: var(--accent-line); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; letter-spacing: .005em; white-space: nowrap; }
.brand__sub { font-size: .76rem; opacity: .68; letter-spacing: .02em; margin-top: 4px; white-space: nowrap; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a { position: relative; padding: 10px 14px; font-weight: 500; text-decoration: none; opacity: .84; transition: opacity .2s; }
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--oxide); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; padding: 8px; }
.header-phone svg { width: 18px; height: 18px; opacity: .7; }

.icon-btn {
  width: 44px; height: 44px; flex: none; border: 1px solid var(--h-line); border-radius: var(--radius);
  background: transparent; color: var(--h-fg); display: inline-grid; place-items: center;
  transition: background-color .2s, border-color .2s;
}
.icon-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }

/* Theme toggle: sun in dark mode, moon in light mode */
.theme-toggle svg { grid-area: 1 / 1; width: 20px; height: 20px; transition: transform .5s var(--ease-out), opacity .3s; }
.theme-toggle .i-sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
[data-theme="dark"] .theme-toggle .i-sun { opacity: 1; transform: none; }
[data-theme="dark"] .theme-toggle .i-moon { opacity: 0; transform: rotate(90deg) scale(.5); }

/* Hamburger: three bars of different lengths that fold into an X */
.menu-toggle { display: none; width: 48px; height: 48px; }
.burger { position: relative; width: 22px; height: 14px; display: block; }
.burger i { position: absolute; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .4s var(--ease-out), opacity .2s, width .3s var(--ease-out), top .3s var(--ease-out); }
.burger i:nth-child(1) { top: 0; width: 22px; }
.burger i:nth-child(2) { top: 6px; width: 14px; }
.burger i:nth-child(3) { top: 12px; width: 18px; }
.menu-toggle:hover .burger i { width: 22px; }
.menu-toggle[aria-expanded="true"] .burger i:nth-child(1) { top: 6px; width: 22px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; transform: translateX(10px); }
.menu-toggle[aria-expanded="true"] .burger i:nth-child(3) { top: 6px; width: 22px; transform: rotate(-45deg); }

@media (max-width: 1080px) { .header-phone span { display: none; } }
@media (max-width: 900px) {
  .nav, .header-phone, .header-quote { display: none; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: inline-grid; }
}
@media (max-width: 380px) { .brand__name { font-size: 1.4rem; } .brand__mark { width: 34px; height: 29px; } }

/* Mobile menu: a shutter that rolls down under the header */
.menu {
  position: fixed; inset: 0; z-index: 90; padding-top: var(--header-h);
  background: var(--bg); color: var(--text);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .6s var(--ease), visibility 0s linear .6s;
  overflow-y: auto; overscroll-behavior: contain;
}
.menu::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background: repeating-linear-gradient(180deg, transparent 0 15px, var(--line) 15px 16px);
  -webkit-mask: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
          mask: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .6s var(--ease), visibility 0s; }
.menu__panel { position: relative; min-height: 100%; display: flex; flex-direction: column; padding: 12px var(--gutter) 28px; }
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a {
  position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 14px 0 14px 0; border-bottom: 1px solid var(--line); text-decoration: none;
  opacity: 0; transform: translateY(18px);
  transition: opacity .45s var(--ease-out), transform .55s var(--ease-out), padding-left .35s var(--ease);
}
.menu__nav a span { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.5rem, 11vw, 3.4rem); line-height: 1; }
.menu__nav a small { font-size: .9rem; color: var(--muted); text-align: right; }
.menu__nav a::before {
  content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 5px; background: var(--oxide);
  transform: scaleY(0); transition: transform .35s var(--ease);
}
.menu__nav a[aria-current="page"] { padding-left: 20px; }
.menu__nav a[aria-current="page"]::before { transform: scaleY(1); }
.menu__foot { margin-top: auto; padding-top: 28px; display: grid; gap: 12px; opacity: 0; transform: translateY(18px); transition: opacity .45s var(--ease-out), transform .55s var(--ease-out); }
.menu__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.menu__foot .btn { width: 100%; }
.menu__meta { color: var(--muted); font-size: .92rem; margin: 6px 0 0; }
.menu__meta a { color: var(--text); }
.menu.is-open .menu__nav a, .menu.is-open .menu__foot { opacity: 1; transform: none; transition-delay: calc(.18s + var(--i, 0) * .06s); }
html.menu-open { overflow: hidden; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--night-900); overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; background: var(--night-800); transform: scale(calc(1 + var(--hero-p, 0) * .08)); }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__media video { position: absolute; inset: 0; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(20,25,30,.92) 0%, rgba(20,25,30,.72) 42%, rgba(20,25,30,.25) 100%),
    linear-gradient(0deg, rgba(20,25,30,.9) 0%, rgba(20,25,30,0) 45%);
}
.hero__content {
  padding-top: calc(var(--header-h) + 48px); padding-bottom: clamp(32px, 6vh, 64px);
  transform: translateY(calc(var(--hero-p, 0) * -70px)); opacity: calc(1 - var(--hero-p, 0) * 1.1);
}
.hero__title { max-width: 7em; }
.hero__lede { margin-top: 24px; color: #d6dce1; max-width: 34em; }
.hero .btn-row { margin-top: 32px; }
.hero__facts { border-top: 1px solid rgba(255,255,255,.18); display: grid; grid-template-columns: repeat(3, 1fr); }
.hero__facts li { padding: 20px 24px 28px 0; }
.hero__facts li + li { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.18); }
.hero__facts strong { display: block; font-family: var(--f-display); font-size: 1.9rem; font-weight: 800; line-height: 1; }
.hero__facts span { display: block; margin-top: 6px; font-size: .95rem; color: #c3cbd2; }
.hero__facts strong span { display: inline; margin: 0; font-size: inherit; color: inherit; }
@media (max-width: 720px) {
  .hero__facts { grid-template-columns: 1fr; }
  .hero__facts li, .hero__facts li + li { padding: 14px 0; border-left: 0; }
  .hero__facts li + li { border-top: 1px solid rgba(255,255,255,.14); }
  .hero__facts strong { font-size: 1.5rem; }
}

.media-toggle {
  position: absolute; right: var(--gutter); bottom: 20px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4);
  background: rgba(20,25,30,.5); color: #fff; display: inline-flex; align-items: center; justify-content: center;
}
.media-toggle svg { width: 16px; height: 16px; }
.media-toggle .i-play { display: none; }
.media-toggle.is-paused .i-play { display: block; }
.media-toggle.is-paused .i-pause { display: none; }
.hero .media-toggle { top: calc(var(--header-h) + 16px); bottom: auto; }

/* Hero entrance after the gate opens */
.intro { animation: rise .9s var(--ease-out) both; animation-delay: calc(var(--intro, 1.75s) + var(--d, 0s)); }
.no-gate { --intro: .1s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; min-height: 64vh; min-height: 64svh; color: #fff; isolation: isolate;
  display: flex; align-items: flex-end; background: var(--night-800); overflow: hidden;
}
.page-hero .page-hero__media { position: absolute; inset: 0; z-index: -2; transform: scale(calc(1 + var(--hero-p, 0) * .08)); }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(20,25,30,.95) 0%, rgba(20,25,30,.55) 55%, rgba(20,25,30,.45) 100%);
}
.page-hero .container { padding-top: calc(var(--header-h) + 64px); padding-bottom: clamp(40px, 7vh, 80px); }
.page-hero .lede { margin-top: 20px; color: #d6dce1; }
.crumbs { display: flex; gap: 8px; font-size: .92rem; color: #aeb8c1; margin-bottom: 18px; }
.crumbs a { text-decoration: none; color: #e4e8eb; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); position: relative; background: var(--bg); color: var(--text); transition: background-color .35s ease; }
.section--alt { background: var(--bg-alt); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .lede { color: var(--text-2); }
.section-head--stack { grid-template-columns: 1fr; max-width: 760px; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] {
  transition: opacity .8s var(--ease-out), transform 1s var(--ease-out), clip-path 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal="up"] { opacity: 0; transform: translateY(40px); }
.js [data-reveal="mask"] { clip-path: inset(-10% 100% -10% 0); transform: translateX(-14px); }
.js [data-reveal="shutter"] { clip-path: inset(100% 0 0 0); }
.js [data-reveal="shutter"] img { transform: scale(1.12); transition: transform 1.4s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; clip-path: inset(-10% -10% -10% -10%); }
.js [data-reveal="shutter"].is-in { clip-path: inset(0 0 0 0); }
.js [data-reveal="shutter"].is-in img { transform: none; }

/* ---------- Image fallback (if a remote image fails, show steel, not a broken icon) ---------- */
.media {
  position: relative; overflow: hidden; background-color: var(--night-800);
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 14px);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
img.is-broken { visibility: hidden; }

/* ---------- Services selector (home) ---------- */
.svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.svc-list { border-top: 1px solid var(--line); }
.svc-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0 14px 20px; border: 0; border-bottom: 1px solid var(--line); background: transparent;
  text-align: left; color: var(--muted); position: relative;
  font-family: var(--f-display); font-weight: 800; font-size: clamp(1.7rem, 2.7vw, 2.35rem); line-height: 1.05;
  transition: color .25s, padding-left .35s var(--ease);
}
.svc-btn::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 5px; background: var(--oxide);
  transform: scaleY(0); transition: transform .35s var(--ease);
}
.svc-btn:hover { color: var(--text); }
.svc-btn[aria-selected="true"] { color: var(--text); padding-left: 28px; }
.svc-btn[aria-selected="true"]::before { transform: scaleY(1); }
.svc-btn small { font-family: var(--f-body); font-size: .85rem; font-weight: 500; color: var(--muted); white-space: nowrap; }

.svc-stage { position: sticky; top: calc(var(--header-h) + 24px); display: grid; }
.svc-panel { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .45s, visibility .45s; }
.svc-panel.is-active { opacity: 1; visibility: visible; }
.svc-panel .media { aspect-ratio: 4 / 3.4; border-radius: var(--radius); }
.svc-panel .media img { transform: scale(1.04); transition: transform 1.2s var(--ease); }
.svc-panel.is-active .media img { transform: scale(1); }
.svc-panel__body { padding-top: 22px; display: grid; gap: 14px; }
.svc-panel__title { display: none; }
.svc-panel__body p { color: var(--text-2); max-width: 36em; }
.svc-panel__body .link { justify-self: start; }

@media (max-width: 900px) {
  .svc { grid-template-columns: 1fr; gap: 0; }
  .svc-list { display: none; }
  .svc-stage {
    position: static; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-bottom: 8px;
    scrollbar-width: thin; scroll-padding-inline: var(--gutter);
  }
  .svc-panel { flex: 0 0 82%; max-width: 380px; opacity: 1; visibility: visible; scroll-snap-align: start; }
  .svc-panel__title { display: block; }
  .svc-panel .media img { transform: none; }
}

/* ---------- Work grid (home) ---------- */
.work-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.work-item { position: relative; margin: 0; min-width: 0; }
.work-item:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.work-item:nth-child(2), .work-item:nth-child(3) { grid-column: span 5; }
.work-item:nth-child(4), .work-item:nth-child(5) { grid-column: span 6; }
.work-item .media { height: 100%; min-height: 260px; border-radius: var(--radius); }
.work-item:nth-child(1) .media { min-height: 540px; }
@media (max-width: 860px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-item:nth-child(n) { grid-column: span 1; grid-row: auto; }
  .work-item:nth-child(1) { grid-column: span 2; }
  .work-item:nth-child(1) .media { min-height: 340px; }
  .work-item .media { min-height: 220px; }
}
@media (max-width: 520px) {
  .work-grid { grid-template-columns: minmax(0, 1fr); }
  .work-item:nth-child(1) { grid-column: span 1; }
}

/* An image that opens in the lightbox */
.tile { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; text-align: left; color: #fff; position: relative; }
.tile .media { display: block; }
.tile .media img { transition: transform .8s var(--ease); }
.tile:hover .media img, .tile:focus-visible .media img { transform: scale(1.04); }
.tile__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 20px 18px;
  background: linear-gradient(0deg, rgba(20,25,30,.9), rgba(20,25,30,0));
}
.tile__cap strong { display: block; font-weight: 600; font-size: 1.08rem; line-height: 1.3; }
.tile__cap span { display: block; font-size: .9rem; color: #c9d0d6; margin-top: 2px; }
.work-foot { margin-top: 40px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Materials tabs ---------- */
.mat-tabs { display: flex; border-bottom: 2px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.mat-tabs::-webkit-scrollbar { display: none; }
.mat-tab {
  flex: none; padding: 14px 22px; border: 0; background: transparent; color: var(--muted);
  font-weight: 600; font-size: 1rem; margin-bottom: -2px; border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.mat-tab:hover { color: var(--text); }
.mat-tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent-line); }
.mat-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 72px; padding-top: 48px; }
.mat-panel[hidden] { display: none; }
.mat-panel.is-showing { animation: fade-up .5s var(--ease-out); }
.mat-panel h3 { font-family: var(--f-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 16px; }
.mat-panel p { color: var(--text-2); max-width: 34em; }
.spec { border-top: 1px solid var(--line); margin: 0; }
.spec div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--muted); font-size: .95rem; }
.spec dd { margin: 0; font-weight: 500; }
.meter { display: inline-flex; gap: 4px; vertical-align: middle; margin-right: 10px; }
.meter i { width: 18px; height: 10px; background: var(--line); }
.meter i.on { background: var(--accent-line); }
@media (max-width: 860px) { .mat-panel { grid-template-columns: 1fr; padding-top: 32px; } }
@media (max-width: 420px) { .spec div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Process (a real sequence, so it's numbered) ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; position: relative; }
.process::before { content: ""; position: absolute; left: 0; right: 0; top: 30px; height: 2px; background: var(--line); z-index: 0; }
.process::after {
  content: ""; position: absolute; left: 0; right: 0; top: 30px; height: 2px; background: var(--oxide); z-index: 0;
  transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease);
}
.process.is-drawn::after { transform: scaleX(1); }
.step { position: relative; z-index: 1; }
.step__num {
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-alt); border: 2px solid var(--line); position: relative; z-index: 1;
  font-family: var(--f-display); font-weight: 800; font-size: 1.6rem;
  transition: border-color .4s, background-color .4s, color .4s;
}
.process.is-drawn .step__num { border-color: var(--oxide); }
.step h3 { margin: 24px 0 10px; }
.step p { color: var(--muted); font-size: .98rem; }
@media (max-width: 960px) {
  .process { grid-template-columns: 1fr; gap: 0; }
  .process::before, .process::after { left: 30px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .process::after { transform: scaleY(0); transform-origin: top; }
  .process.is-drawn::after { transform: scaleY(1); }
  .step { display: grid; grid-template-columns: 62px 1fr; gap: 0 24px; padding-bottom: 36px; }
  .step:last-child { padding-bottom: 0; }
  .step h3 { margin: 14px 0 6px; }
  .step > :not(.step__num) { grid-column: 2; }
  .step__num { grid-row: span 2; }
}

/* ---------- Video band ---------- */
.video-band { position: relative; min-height: 70vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; isolation: isolate; background: var(--night-800); }
.video-band video, .video-band > .media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.video-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(20,25,30,.88), rgba(20,25,30,.1) 60%); }
.video-band .container { padding-block: 56px; }
.video-band h2 { max-width: 14ch; }
.video-band p { color: #d6dce1; max-width: 34em; margin-top: 16px; }

/* ---------- CTA band: red-oxide primer coat ---------- */
.cta-band { background: var(--oxide); color: #fff; padding-block: clamp(64px, 9vw, 112px); position: relative; overflow: hidden; }
.cta-band .container { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; }
.cta-band h2 { max-width: 16ch; }
.cta-band p { color: #f6dcd4; margin-top: 16px; max-width: 32em; }
.cta-band .btn-row { justify-content: flex-end; }
.cta-band__mark { position: absolute; right: -40px; bottom: -30px; width: 380px; height: auto; color: rgba(255,255,255,.08); pointer-events: none; }
.cta-band__mark .mk-tips { color: rgba(255,255,255,.12); }
@media (max-width: 860px) {
  .cta-band .container { grid-template-columns: 1fr; }
  .cta-band .btn-row { justify-content: flex-start; }
}

/* ---------- About ---------- */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px 80px; align-items: center; }
.story__text p { color: var(--text-2); font-size: 1.08rem; max-width: 34em; }
.story__text h2 { margin-bottom: 28px; }
.story__imgs { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: end; }
.story__imgs .media { border-radius: var(--radius); }
.story__imgs .media:first-child { aspect-ratio: 3 / 4; }
.story__imgs .media:last-child { aspect-ratio: 4 / 5; margin-bottom: 48px; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }

/* Dimension line, drawn like a fabrication drawing */
.dim { margin-top: clamp(56px, 8vw, 96px); color: var(--text); }
.dim__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; }
.dim__end { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.2rem, 5.6vw, 4.4rem); line-height: 1; white-space: nowrap; }
.dim__line { position: relative; height: 56px; display: grid; place-items: center; }
.dim__line::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--line-strong); transform-origin: center; transition: transform 1.2s var(--ease) .2s; }
.dim__line i { position: absolute; top: 12px; bottom: 12px; width: 2px; background: var(--line-strong); }
.dim__line i:first-child { left: 0; }
.dim__line i:last-of-type { right: 0; }
.dim__line i::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -6px; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.dim__line i:first-child::after { left: 2px; border-right: 12px solid var(--line-strong); }
.dim__line i:last-of-type::after { right: 2px; border-left: 12px solid var(--line-strong); }
.dim__label { position: relative; background: var(--bg); padding: 0 16px; font-weight: 600; font-size: clamp(1rem, 1.6vw, 1.2rem); white-space: nowrap; transition: background-color .35s; }
.dim__note { margin-top: 12px; color: var(--muted); font-size: .95rem; }
.js .dim[data-reveal] .dim__line::before { transform: scaleX(0); }
.js .dim[data-reveal].is-in .dim__line::before { transform: scaleX(1); }
@media (max-width: 560px) { .dim__row { gap: 10px; } .dim__label { padding: 0 8px; font-size: .9rem; white-space: normal; text-align: center; max-width: 8.5em; line-height: 1.25; } }

.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.value { padding: 36px 40px 40px 0; border-bottom: 1px solid var(--line); }
.value:nth-child(even) { padding-left: 40px; padding-right: 0; border-left: 1px solid var(--line); }
.value h3 { font-family: var(--f-display); font-size: clamp(1.7rem, 2.6vw, 2.2rem); font-weight: 800; margin-bottom: 12px; }
.value p { color: var(--muted); max-width: 32em; }
@media (max-width: 760px) {
  .values { grid-template-columns: 1fr; }
  .value, .value:nth-child(even) { padding: 28px 0; border-left: 0; }
}

.clients { border-top: 2px solid var(--line-strong); }
.client-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px 48px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.client-row h3 { font-family: var(--f-display); font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; }
.client-row p { color: var(--text-2); }
@media (max-width: 720px) { .client-row { grid-template-columns: 1fr; } }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 36px; }
.filter {
  min-height: 44px; padding: 0 18px; border: 1px solid var(--line); background: var(--bg-raised); color: var(--text);
  border-radius: 999px; font-weight: 500; transition: background-color .2s, color .2s, border-color .2s;
}
.filter:hover { border-color: var(--line-strong); }
.filter[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.filter-count { margin-left: auto; color: var(--muted); font-size: .95rem; }
@media (max-width: 640px) { .filter-count { width: 100%; margin-left: 0; } }

.folio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 20px; }
.folio-item[hidden] { display: none; }
.folio-item .tile { color: var(--text); height: auto; }
.folio-item .media { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.folio-item figcaption { padding-top: 14px; }
.folio-item figcaption strong { display: block; font-weight: 600; font-size: 1.08rem; line-height: 1.3; }
.folio-item figcaption span { display: block; font-size: .93rem; color: var(--muted); margin-top: 2px; }
.folio-item.is-entering { animation: fade-up .45s ease both; }
@media (max-width: 960px) { .folio { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .folio { grid-template-columns: 1fr; gap: 32px; } }

.reels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.reel { position: relative; aspect-ratio: 9 / 13; border-radius: var(--radius); overflow: hidden; background: var(--night-800); border: 0; padding: 0; color: #fff; text-align: left; }
.reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,25,30,.85), rgba(20,25,30,0) 50%); pointer-events: none; }
.reel__cap { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.reel__cap strong { font-weight: 600; line-height: 1.3; }
.reel__icon { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); }
.reel__icon svg { width: 16px; height: 16px; }
.reel .i-pause { display: none; }
.reel.is-playing .i-pause { display: block; }
.reel.is-playing .i-play { display: none; }
@media (max-width: 860px) {
  .reels { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .reel { scroll-snap-align: start; }
}

/* ---------- Lightbox (always dark: it's a photo viewer) ---------- */
.lightbox {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(15,19,23,.97); color: #fff;
}
.lightbox::backdrop { background: rgba(0,0,0,.6); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: fade-up .3s ease; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 12px var(--gutter); }
.lightbox__count { color: var(--night-400); font-size: .95rem; }
.lightbox__stage { position: relative; display: grid; place-items: center; padding: 0 72px; min-height: 0; }
.lightbox__stage img { max-height: min(100%, calc(100vh - 190px)); max-width: 100%; width: auto; object-fit: contain; border-radius: var(--radius); }
.lightbox__cap { padding: 16px var(--gutter) 24px; text-align: center; }
.lightbox__cap strong { display: block; font-weight: 600; font-size: 1.1rem; }
.lightbox__cap span { color: var(--night-400); }
.lb-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06); color: #fff; display: inline-flex; align-items: center; justify-content: center; transition: background-color .2s; }
.lb-btn:hover { background: rgba(255,255,255,.16); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
@media (max-width: 640px) {
  .lightbox__stage { padding: 0 8px; }
  .lb-prev, .lb-next { top: auto; bottom: -64px; transform: none; }
  .lb-prev { left: var(--gutter); }
  .lb-next { right: var(--gutter); }
  .lightbox__cap { padding-inline: 76px; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px 80px; align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.methods { border-top: 2px solid var(--line-strong); }
.method { display: grid; grid-template-columns: 48px 1fr; gap: 4px 18px; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.method__icon { grid-row: span 2; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-raised); border: 1px solid var(--line); color: var(--accent-line); transition: background-color .2s, color .2s, border-color .2s; }
.method__icon svg { width: 20px; height: 20px; }
a.method:hover .method__icon { background: var(--oxide); color: #fff; border-color: var(--oxide); }
.method strong { font-weight: 600; font-size: 1.1rem; overflow-wrap: anywhere; }
.method span { color: var(--muted); font-size: .95rem; }

.form { background: var(--bg-raised); padding: clamp(24px, 4vw, 48px); border-radius: var(--radius); border: 1px solid var(--line); transition: background-color .35s, border-color .35s; }
.form h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-bottom: 8px; }
.form > p { color: var(--muted); margin-bottom: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--field-line); border-radius: var(--radius);
  background: var(--field-bg); color: var(--text); font-size: 1rem; transition: border-color .2s, background-color .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .8; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--line-strong); background: var(--bg-raised); outline: 3px solid color-mix(in srgb, var(--focus) 40%, transparent); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: #c2362c; }
.field__error { color: #c2362c; font-size: .9rem; font-weight: 500; }
[data-theme="dark"] .field__error { color: #ff8a80; }
[data-theme="dark"] .field [aria-invalid="true"] { border-color: #ff8a80; }
.field__error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form-note { font-size: .9rem; color: var(--muted); margin-top: 14px; }
.form-status { margin-top: 18px; padding: 14px 16px; border-radius: var(--radius); font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-ok { background: #e7f4ec; color: #14532d; border: 1px solid #a7d8b8; }
.form-status.is-err { background: #fdecea; color: #8a1c14; border: 1px solid #f1b5ae; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .form-actions .btn { width: 100%; } }

.map { border: 0; width: 100%; height: clamp(320px, 45vw, 460px); filter: var(--map-filter); background: var(--bg-alt); }

.faq { border-top: 2px solid var(--line-strong); max-width: 880px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative; font-weight: 600; font-size: 1.12rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -10px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .3s var(--ease), margin .3s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 48px 24px 0; color: var(--text-2); max-width: 42em; }
.faq details[open] > div { animation: fade-up .35s var(--ease-out); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); color: var(--text); padding-top: clamp(64px, 8vw, 96px); transition: background-color .35s; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 56px; }
.footer-grid h2 { font-family: var(--f-body); font-size: 1rem; font-weight: 600; color: var(--muted); margin-bottom: 16px; letter-spacing: 0; }
.footer-grid li + li { margin-top: 10px; }
.footer-grid a { text-decoration: none; color: var(--text-2); overflow-wrap: anywhere; }
.footer-grid a:hover { color: var(--text); text-decoration: underline; }
.footer-about p { color: var(--muted); margin-top: 18px; max-width: 26em; }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--muted); font-size: .9rem; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wa); color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.28); transition: transform .25s var(--ease), background-color .2s;
}
.wa-float:hover { transform: scale(1.06); background: #178a45; }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- 404 (always on dark steel, so the header reads) ---------- */
.notfound { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: calc(var(--header-h) + 40px) var(--gutter) 64px; background: var(--night-900); color: #fff; }
.notfound .h1 { margin-bottom: 20px; }
.notfound .muted { color: var(--night-400); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gate, .progress { display: none; }
  .intro { animation: none; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .hero__media, .hero__content, .page-hero .page-hero__media { transform: none !important; opacity: 1 !important; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
