/* =========================================================
   Sam Construction Birmingham Ltd: Home page styles
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Neutrals */
  --ink-950: #15171b;
  --ink-900: #1d2026;
  --ink-700: #3a3f48;
  --ink-400: #9aa0aa;
  --ink-300: #c3c7ce;
  --ink-100: #eef0f3;
  --white:   #ffffff;

  /* One accent, taken from the warm side of the logo */
  --accent:       #f26a2e;
  --accent-hover: #ff7d45;

  /* Functional status colours */
  --ok:   #3ecf72;
  --shut: #9aa0aa;

  /* Type */
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: 0.8125rem;   /* 13px */
  --fs-sm: 0.875rem;    /* 14px */

  /* Spacing + layout */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius-pill: 999px;

  /* Motion (same family across the site) */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-hover: 0.25s;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

/* anchor jumps land below the sticky navbar */
html { scroll-padding-top: 72px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
ul { margin: 0; padding: 0; list-style: none; }

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

.icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

/* =========================================================
   1. TOPBAR
   Effects used:
   - D07 Live status badge pulse (status dot)
   - D08 Live local time chip (UK time, blinking colon)
   - G05 Underline animation (email link, desktop hover)
   ========================================================= */
.topbar {
  background: var(--ink-950);
  color: var(--ink-300);
  font-size: var(--fs-xs);
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 44px;
}

.topbar__info {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
}

.topbar__item {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.topbar__item .icon { color: var(--ink-400); }

/* G05: underline grows left → right, exits to the right */
.topbar__link {
  position: relative;
  transition: color var(--dur-hover) var(--ease);
}
.topbar__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.topbar__link:hover { color: var(--white); }
.topbar__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

/* D07 + D08: status chip */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px 4px 9px;
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 0.05);
  border: 1px solid rgb(255 255 255 / 0.08);
  color: var(--ink-300);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.status-chip__dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
}
.status-chip__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--ok);
  animation: ping 2.2s var(--ease) infinite;
}
.status-chip[data-state="closed"] .status-chip__dot,
.status-chip[data-state="closed"] .status-chip__dot::after { background: var(--shut); }
.status-chip[data-state="closed"] .status-chip__dot::after { animation: none; opacity: 0; }

.status-chip__label { color: var(--white); font-weight: 500; }
.status-chip__sep { color: var(--ink-700); }

.status-chip__time .colon { animation: blink 2s steps(1) infinite; }

@keyframes ping {
  0%   { transform: scale(1);   opacity: 0.6; }
  80%, 100% { transform: scale(2.8); opacity: 0; }
}
@keyframes blink {
  50% { opacity: 0.25; }
}

/* Phone: the one accent placement in the topbar */
.topbar__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  transition: color var(--dur-hover) var(--ease);
}
.topbar__phone .icon { color: var(--accent); }
.topbar__phone:hover { color: var(--accent-hover); }

.topbar__social {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--ink-300);
  background: rgb(255 255 255 / 0.05);
  transition: background-color var(--dur-hover) var(--ease), color var(--dur-hover) var(--ease);
}
.topbar__social svg { width: 14px; height: 14px; fill: currentColor; }
.topbar__social:hover { background: #1877f2; color: var(--white); }
.topbar__socials { display: flex; align-items: center; gap: 8px; }

/* Social links come from Site Settings: brand colour on hover per platform */
.topbar__social[data-platform="instagram"]:hover,
.footer__fb[data-platform="instagram"]:hover { background: #e1306c; }
.topbar__social[data-platform="tiktok"]:hover,
.footer__fb[data-platform="tiktok"]:hover { background: #000000; }
.topbar__social[data-platform="youtube"]:hover,
.footer__fb[data-platform="youtube"]:hover { background: #ff0000; }
.topbar__social[data-platform="linkedin"]:hover,
.footer__fb[data-platform="linkedin"]:hover { background: #0a66c2; }
.topbar__social[data-platform="x"]:hover,
.footer__fb[data-platform="x"]:hover { background: #000000; }
.topbar__social[data-platform="whatsapp"]:hover,
.footer__fb[data-platform="whatsapp"]:hover { background: #25d366; }

/* Topbar: responsive */
@media (max-width: 1024px) {
  .topbar__item--address { display: none; }
}
@media (max-width: 720px) {
  .topbar__info { display: none; }
  .topbar__inner { justify-content: space-between; }
  .topbar__actions { width: 100%; justify-content: space-between; gap: 12px; }
}
@media (max-width: 380px) {
  .status-chip__sep,
  .status-chip__time { display: none; }
}

/* =========================================================
   2. NAVBAR
   Effects used:
   - N01 Frosted glass nav + N09 Shrinking sticky header (on scroll)
   - N04 Sliding hover indicator (desktop menu)
   - N06 Hamburger → X morph (mobile menu)
   ========================================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink-900);
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.35s var(--ease);
}

/* Hidden while scrolling down; slides back in on scroll up */
.navbar.is-hidden { transform: translateY(-100%); box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  .navbar { transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease); }
}

/* N01: frosted once the page scrolls */
.navbar.is-scrolled {
  background: rgb(29 32 38 / 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.04), 0 10px 30px -12px rgb(0 0 0 / 0.5);
}

.navbar__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 84px;
  transition: height 0.4s var(--ease);
}
/* N09: header compresses */
.navbar.is-scrolled .navbar__inner { height: 66px; }

.navbar__logo { display: block; flex-shrink: 0; }
.navbar__logo img {
  display: block;
  width: auto;
  height: 46px;
  transform-origin: left center;
  transition: transform 0.4s var(--ease);
}
.navbar.is-scrolled .navbar__logo img { transform: scale(0.82); }

.navbar__nav { margin-left: auto; }

.navbar__menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar__link {
  position: relative;
  z-index: 1;
  display: block;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  color: var(--ink-300);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--dur-hover) var(--ease);
}
.navbar__link:hover,
.navbar__link.is-active { color: var(--white); }

/* Active page marker: small accent dot under the link */
.navbar__link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent);
}

/* N04: one pill that glides to the hovered link */
.navbar__indicator {
  position: absolute;
  top: var(--y, 0);
  left: 0;
  height: var(--h, 100%);
  width: var(--w, 0);
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 0.07);
  transform: translateX(var(--x, 0));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s var(--ease), width 0.4s var(--ease), opacity 0.2s ease;
}
.navbar__menu.has-hover .navbar__indicator { opacity: 1; }

/* Buttons (shared) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color var(--dur-hover) var(--ease), transform var(--dur-hover) var(--ease);
}
.btn .icon { width: 16px; height: 16px; transition: transform var(--dur-hover) var(--ease); }
.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--accent:hover .icon { transform: translateX(3px); }
.btn--accent:active { transform: translateY(1px); }

.navbar__cta { flex-shrink: 0; }

.navbar__mobile-extra { display: none; }

/* N06: hamburger */
.navbar__toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.navbar__toggle span {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform 0.35s var(--ease), opacity 0.2s ease;
}
.navbar__toggle span:nth-child(1) { top: 15px; }
.navbar__toggle span:nth-child(2) { top: 21px; }
.navbar__toggle span:nth-child(3) { top: 27px; }
.navbar__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.navbar__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navbar__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Navbar: responsive */
@media (max-width: 1100px) {
  .navbar__link { padding: 9px 12px; }
  .navbar__inner { gap: 20px; }
}

@media (max-width: 960px) {
  .navbar__inner { height: 70px; }
  .navbar.is-scrolled .navbar__inner { height: 62px; }
  .navbar__logo img { height: 38px; }
  .navbar__cta { display: none; }
  .navbar__toggle { display: block; }
  .navbar__indicator { display: none; }

  /* Mobile menu panel slides down under the bar */
  .navbar__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 12px var(--gutter) 24px;
    background: var(--ink-900);
    border-bottom: 1px solid rgb(255 255 255 / 0.08);
    box-shadow: 0 24px 40px -20px rgb(0 0 0 / 0.6);
    max-height: calc(100dvh - 62px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }
  .navbar.is-open .navbar__nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.3s var(--ease), transform 0.4s var(--ease), visibility 0s;
  }

  .navbar__menu { flex-direction: column; align-items: stretch; gap: 0; }
  .navbar__link {
    padding: 15px 4px;
    border-radius: 0;
    font-size: 1.0625rem;
    border-bottom: 1px solid rgb(255 255 255 / 0.06);
  }
  .navbar__link.is-active::after { left: auto; right: 6px; top: 50%; bottom: auto; margin: -2px 0 0; }

  .navbar__mobile-extra { display: block; margin-top: 20px; }
  .navbar__mobile-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 8px;
    background: var(--accent);
    color: var(--white);
    font-weight: 600;
  }
}

body.menu-open { overflow: hidden; }

/* ---------- Mega menus (Services, Projects) ----------
   Desktop: full-width panel under the bar, opens on hover / click / keyboard.
   Mobile: the same markup becomes an accordion inside the slide-down menu. */
.navbar__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  font-family: inherit;
  line-height: inherit;
  cursor: pointer;
}
.navbar__chev {
  width: 14px;
  height: 14px;
  opacity: 0.7;
  transition: transform 0.35s var(--ease), opacity var(--dur-hover) var(--ease);
}
.navbar__trigger[aria-expanded="true"] { color: var(--white); }
.navbar__trigger[aria-expanded="true"] .navbar__chev { transform: rotate(180deg); opacity: 1; color: var(--accent); }

.mega__eyebrow {
  margin: 0 0 14px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-400);
}

/* Services: thumbnail grid (grayscale → colour on hover, same as the services section) */
.mega-svc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mega-svc__item {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: 12px;
  transition: background-color var(--dur-hover) var(--ease);
}
.mega-svc__item:hover,
.mega-svc__item:focus-visible { background: rgb(255 255 255 / 0.05); }
.mega-svc__thumb {
  display: block;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--ink-700);
}
.mega-svc__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.7);
  transform: scale(1.04);
  transition: filter 0.4s var(--ease), transform 0.6s var(--ease);
}
.mega-svc__item:hover img,
.mega-svc__item:focus-visible img { filter: none; transform: scale(1.14); }
.mega-svc__num { display: block; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; color: var(--accent); }
.mega-svc__name { display: block; margin-top: 1px; color: var(--white); font-size: 0.9375rem; font-weight: 600; line-height: 1.3; }
.mega-svc__desc { display: block; margin-top: 3px; color: var(--ink-400); font-size: var(--fs-xs); line-height: 1.45; }

/* Services: quote card */
.mega-cta {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 14px;
  background: var(--ink-950);
}
.mega-cta__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.mega-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgb(21 23 27 / 0.96) 25%, rgb(21 23 27 / 0.25));
}
.mega-cta__body { padding: 22px; }
.mega-cta__kicker { margin: 0; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.mega-cta__title { margin: 6px 0 6px; color: var(--white); font-size: 1.25rem; font-weight: 600; line-height: 1.25; }
.mega-cta__text { margin: 0 0 16px; color: var(--ink-300); font-size: var(--fs-sm); line-height: 1.5; }
.mega-cta .btn { width: 100%; }
.mega-cta__phone {
  display: block;
  margin-top: 10px;
  color: var(--ink-300);
  font-size: var(--fs-sm);
  text-align: center;
  transition: color var(--dur-hover) var(--ease);
}
.mega-cta__phone:hover { color: var(--white); }

/* Projects: category list */
.mega-proj { display: flex; flex-direction: column; gap: 2px; }
.mega-proj__cat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 10px;
  color: var(--ink-300);
  font-weight: 500;
  transition: background-color var(--dur-hover) var(--ease), color var(--dur-hover) var(--ease);
}
.mega-proj__cat:hover,
.mega-proj__cat.is-current { background: rgb(255 255 255 / 0.05); color: var(--white); }
.mega-proj__count {
  margin-left: auto;
  min-width: 28px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 0.07);
  font-size: 0.75rem;
  text-align: center;
  transition: background-color var(--dur-hover) var(--ease);
}
.mega-proj__cat.is-current .mega-proj__count { background: var(--accent); color: var(--white); }
.mega-proj__arrow {
  color: var(--accent);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--dur-hover) var(--ease), transform var(--dur-hover) var(--ease);
}
.mega-proj__cat.is-current .mega-proj__arrow { opacity: 1; transform: none; }

/* Projects: live preview, crossfades to the hovered category */
.mega-proj__preview {
  position: relative;
  overflow: hidden;
  min-height: 290px;
  border-radius: 14px;
  background: var(--ink-950);
}
.mega-proj__shot { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 0.5s var(--ease); }
.mega-proj__shot.is-on { opacity: 1; }
.mega-proj__shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.2s var(--ease);
}
.mega-proj__shot.is-on img { transform: scale(1); }
.mega-proj__shot figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgb(21 23 27 / 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.mega-proj__shot figcaption span {
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Desktop panel */
@media (min-width: 961px) {
  /* the panel spans the whole bar, so it is positioned against .navbar, not the menu */
  .navbar__menu { position: static; }

  .navbar.has-mega,
  .navbar.has-mega:not(.is-scrolled):not(.is-open) { background: var(--ink-900); }

  /* Light panel under the dark bar */
  .mega {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    color: var(--ink-900);
    border-bottom: 1px solid var(--ink-100);
    box-shadow: 0 40px 70px -30px rgb(21 23 27 / 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }
  .navbar__item--mega.is-open > .mega {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.3s var(--ease), transform 0.4s var(--ease), visibility 0s;
  }

  .mega__inner { display: grid; gap: 32px; padding-block: 28px 32px; }

  /* light-panel colours (mobile keeps the dark menu colours above) */
  .mega__eyebrow { color: var(--ink-700); }
  .mega-svc__item:hover,
  .mega-svc__item:focus-visible { background: var(--ink-100); }
  .mega-svc__thumb { background: var(--ink-100); }
  .mega-svc__num { color: #c4521f; }
  .mega-svc__name { color: var(--ink-950); }
  .mega-svc__desc { color: var(--ink-700); }
  .mega-proj__cat { color: var(--ink-700); }
  .mega-proj__cat:hover,
  .mega-proj__cat.is-current { background: var(--ink-100); color: var(--ink-950); }
  .mega-proj__count { background: rgb(21 23 27 / 0.07); }
  .mega-proj__preview { background: var(--ink-100); }
  .mega__inner--services { grid-template-columns: 1fr 290px; }
  .mega__inner--projects { grid-template-columns: 320px 1fr; }

  /* items stagger in when the panel opens */
  .mega-svc > li,
  .mega-proj > li {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
  }
  .navbar__item--mega.is-open .mega-svc > li,
  .navbar__item--mega.is-open .mega-proj > li {
    opacity: 1;
    transform: none;
    transition-delay: calc(var(--i, 0) * 35ms + 60ms);
  }
}

@media (min-width: 961px) and (max-width: 1100px) {
  .mega-svc { grid-template-columns: repeat(2, 1fr); }
  .mega__inner--services { grid-template-columns: 1fr 250px; }
}

/* Mobile: accordion inside the slide-down menu */
@media (max-width: 960px) {
  .navbar__trigger { display: flex; width: 100%; justify-content: space-between; text-align: left; }
  .navbar__chev { width: 18px; height: 18px; }
  .navbar__trigger.is-active::after { right: 32px; }

  .mega {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s var(--ease);
  }
  .navbar__item--mega.is-open > .mega { grid-template-rows: 1fr; }
  .mega__clip {
    min-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: visibility 0s linear 0.35s;
  }
  .navbar__item--mega.is-open .mega__clip { visibility: visible; transition: visibility 0s; }

  .mega__inner { padding: 14px 0 18px; }
  .mega__eyebrow { margin-bottom: 8px; }
  .mega-svc { grid-template-columns: 1fr; gap: 2px; }
  .mega-svc__item { grid-template-columns: 48px 1fr; gap: 12px; padding: 8px; }
  .mega-svc__thumb { width: 48px; height: 48px; border-radius: 8px; }
  .mega-svc__thumb img { filter: none; }

  /* the menu already has a call button; keep the accordion short */
  .mega-cta,
  .mega-proj__preview { display: none; }
  .mega-proj__cat { padding: 12px 8px; }
  .mega-proj__arrow { display: none; }
}

@media (min-width: 600px) and (max-width: 960px) {
  .mega-svc { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .mega,
  .mega-svc > li,
  .mega-proj > li,
  .mega-proj__shot img { transition: none !important; transform: none !important; }
}

/* Shared buttons (used across sections) */
.btn--lg { min-height: 52px; padding: 0 26px; font-size: 1rem; }
.btn--ghost {
  color: var(--ink-950);
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgb(21 23 27 / 0.14), 0 1px 2px rgb(21 23 27 / 0.06);
}
.btn--ghost:hover { background: var(--ink-100); }

/* =========================================================
   3. HERO (full-screen slider, navbar sits on top of it)
   Effects used:
   - C08 Fade carousel (auto, 6s, pause button, pauses on hover/focus)
   - M02 Ken Burns slow pan on the active slide
   - T01 Split text reveal (headline words slide up per slide)
   ========================================================= */
/* Navbar overlays the hero until the page scrolls */
.navbar {
  margin-bottom: -84px;
}
.navbar:not(.is-scrolled):not(.is-open) {
  background: transparent;
  border-bottom-color: rgb(255 255 255 / 0.12);
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: max(640px, calc(100svh - 44px));
  overflow: hidden;
  background: var(--ink-950);
  color: var(--white);
}

.hero__slides { position: absolute; inset: 0; z-index: -2; }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.hero__slide.is-active { opacity: 1; }
.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
}
/* M02: slow zoom + drift while a slide is showing */
.hero__slide.is-active img { animation: kenburns 9s linear forwards; }
.hero__slide:nth-child(2).is-active img { animation-name: kenburns2; }
@keyframes kenburns  { from { transform: scale(1.12) translate(0, 0); } to { transform: scale(1.02) translate(-1.5%, -1%); } }
@keyframes kenburns2 { from { transform: scale(1.04) translate(0, 1%); } to { transform: scale(1.14) translate(1%, -1%); } }

/* Dark cinematic overlay (like the old site) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgb(12 13 16 / 0.7) 0%, rgb(12 13 16 / 0.2) 28%, rgb(12 13 16 / 0.35) 55%, rgb(12 13 16 / 0.9) 100%),
    linear-gradient(90deg, rgb(12 13 16 / 0.65) 0%, rgb(12 13 16 / 0.15) 70%);
}

.hero__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 140px;
  padding-bottom: clamp(32px, 5vw, 56px);
}

.hero__content { max-width: 52rem; }
.hero__kicker {
  margin: 0 0 22px;
  color: rgb(255 255 255 / 0.8);
  font-size: var(--fs-sm);
  font-weight: 500;
}

.hero__title {
  margin: 0;
  min-height: 2em;
  font-size: clamp(2.75rem, 7.4vw, 6.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.hero__line { display: block; }

/* T01: words slide up from behind a mask */
.hero__line .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.hero__line .w > span {
  display: inline-block;
  transform: translateY(105%);
  animation: wordUp 0.9s var(--ease) forwards;
  animation-delay: calc(var(--wi, 0) * 0.07s + 0.1s);
}
@keyframes wordUp { to { transform: translateY(0); } }

.hero__text {
  max-width: 34rem;
  margin: 26px 0 0;
  color: rgb(255 255 255 / 0.8);
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* Controls row */
.hero__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(40px, 7vh, 80px);
  padding-top: 22px;
  border-top: 1px solid rgb(255 255 255 / 0.16);
}
.hero__counter {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: var(--fs-sm);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.hero__total { color: rgb(255 255 255 / 0.55); }
.hero__progress {
  position: relative;
  width: 120px;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: rgb(255 255 255 / 0.22);
}
.hero__progress span {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(0);
}
.hero__progress span.is-running { animation: heroBar var(--dur, 6s) linear forwards; }
.hero.is-paused .hero__progress span { animation-play-state: paused; }
@keyframes heroBar { to { transform: scaleX(1); } }

.hero__buttons { display: flex; gap: 8px; }
.hero__btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgb(255 255 255 / 0.28);
  border-radius: 50%;
  background: rgb(255 255 255 / 0.04);
  color: var(--white);
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color var(--dur-hover) var(--ease), border-color var(--dur-hover) var(--ease), color var(--dur-hover) var(--ease);
}
.hero__btn:hover { background: var(--white); border-color: var(--white); color: var(--ink-950); }
.hero__btn .icon { width: 18px; height: 18px; }
.hero__icon-play { display: none; }
.hero.is-paused .hero__icon-pause { display: none; }
.hero.is-paused .hero__icon-play { display: block; }

/* Hero: responsive */
@media (max-width: 960px) {
  .navbar { margin-bottom: -70px; }
  .hero__inner { padding-top: 120px; }
}
@media (max-width: 560px) {
  .hero { min-height: max(600px, calc(100svh - 44px)); }
  .hero__title { min-height: 3em; font-size: clamp(2.5rem, 11vw, 3.25rem); }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__progress { width: 72px; }
  .hero__btn { width: 44px; height: 44px; }
  .hero::before {
    background: linear-gradient(180deg, rgb(12 13 16 / 0.7) 0%, rgb(12 13 16 / 0.35) 30%, rgb(12 13 16 / 0.6) 60%, rgb(12 13 16 / 0.92) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide img, .hero__slide.is-active img { animation: none; transform: none; }
  .hero__line .w > span { animation: none; transform: none; }
}

/* =========================================================
   Shared section pieces
   ========================================================= */
.section-title {
  margin: 0;
  color: var(--ink-950);
  font-size: clamp(2rem, 3.6vw, 2.875rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

/* G04: arrow exits right, a new one slides in from the left */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink-950);
  font-weight: 600;
}
.text-link__arrows {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--ink-950);
  color: var(--white);
}
.text-link__arrows .icon {
  position: absolute;
  width: 15px;
  height: 15px;
  transition: transform 0.4s var(--ease);
}
.text-link__arrows .icon + .icon { transform: translateX(-28px); }
.text-link:hover .text-link__arrows .icon:first-child { transform: translateX(28px); }
.text-link:hover .text-link__arrows .icon + .icon { transform: translateX(0); }

/* Small section label (used sparingly: max 1 per 3 sections) */
.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-size: var(--fs-sm);
  font-weight: 600;
}
.label__dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

/* =========================================================
   4. ABOUT (dark)
   Effects used:
   - S17 Word-by-word colour fill (lead paragraph, scroll-linked)
   - M11 Curtain wipe image reveal (three photos)
   - S05 Stagger animation (bento cells)
   - T06 Marquee text with edge fade (services strip)
   ========================================================= */
.about {
  position: relative;
  overflow: hidden;
  padding-block: clamp(72px, 9vw, 120px) clamp(40px, 5vw, 64px);
  background: var(--ink-950);
  color: var(--ink-300);
}

/* Header */
.about__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.about .label { color: var(--ink-300); }
.about__title {
  max-width: 14ch;
  color: var(--white);
  font-size: clamp(2.25rem, 4.4vw, 3.5rem);
  line-height: 1.04;
}

.about__lead {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
/* S17: words start dim and fill as they scroll past */
.about__lead .w {
  opacity: var(--o, 0.22);
  transition: opacity 0.2s linear;
}
.about__text {
  margin: 18px 0 0;
  color: var(--ink-400);
  font-size: 1rem;
  line-height: 1.65;
}

/* Bento grid */
.about__bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(230px, auto));
  grid-template-areas:
    "a a b b"
    "a a c d"
    "e f g g";
  gap: 14px;
}
.bento--a { grid-area: a; }
.bento--b { grid-area: b; }
.bento--c { grid-area: c; }
.bento--d { grid-area: d; }
.bento--e { grid-area: e; }
.bento--f { grid-area: f; }
.bento--g { grid-area: g; }

.bento {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
}

/* Photo cells */
.bento--photo { background: var(--ink-900); }
.bento--photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bento--a { border-radius: 16px; }
.bento--a img { object-position: 50% 30%; }
.bento--photo:hover img { transform: scale(1.04); }

.bento__tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  padding: 7px 12px;
  border-radius: 8px;
  background: rgb(21 23 27 / 0.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--white);
  font-size: var(--fs-xs);
  font-weight: 500;
}

/* Text cells */
.bento--card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 2.4vw, 30px);
  background: var(--ink-900);
  border: 1px solid rgb(255 255 255 / 0.07);
}
.bento__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgb(255 255 255 / 0.06);
  color: var(--white);
}
.bento__icon .icon { width: 21px; height: 21px; stroke-width: 1.7; }
.bento--card h3 {
  margin: 0;
  color: var(--white);
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.bento--card p {
  margin: 8px 0 0;
  max-width: 34ch;
  color: var(--ink-400);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* "One team" card: wider, icon + text side by side, chips at bottom */
.bento--b {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr auto;
  column-gap: 18px;
  align-content: space-between;
}
.bento--b .bento__chips { grid-column: 1 / -1; }
.bento__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.bento__chips li {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgb(255 255 255 / 0.12);
  color: var(--ink-300);
  font-size: var(--fs-xs);
  font-weight: 500;
}

/* Local card: faint blueprint grid behind */
.bento--map::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(circle at 85% 15%, #000, transparent 70%);
  mask-image: radial-gradient(circle at 85% 15%, #000, transparent 70%);
  pointer-events: none;
}
.bento--map > * { position: relative; }

/* Call card: the section's one accent block */
.bento--call {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(22px, 2.4vw, 28px);
  background: var(--accent);
  color: var(--white);
  transition: background-color var(--dur-hover) var(--ease);
}
.bento--call:hover { background: var(--accent-hover); }
.bento__call-label { font-size: var(--fs-sm); font-weight: 600; opacity: 0.9; }
.bento__call-number {
  margin-top: auto;
  font-size: clamp(1.5rem, 2.1vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.bento__call-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgb(255 255 255 / 0.3);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.bento__call-arrow {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--white);
  color: var(--accent);
  transition: transform 0.35s var(--ease);
}
.bento__call-arrow .icon { width: 16px; height: 16px; }
.bento--call:hover .bento__call-arrow { transform: rotate(45deg); }

/* M11: dark curtain slides off each photo */
.curtain::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--ink-700);
  transform-origin: right center;
  transform: scaleX(1);
  transition: transform 1s var(--ease) calc(var(--i, 0) * 0.08s + 0.1s);
}
.curtain img {
  transform: scale(1.15);
  transition: transform 1.5s var(--ease) calc(var(--i, 0) * 0.08s + 0.1s);
}
.curtain.is-in::after { transform: scaleX(0); }
.curtain.is-in img { transform: scale(1); }
.bento--photo.is-in:hover img { transform: scale(1.04); transition-delay: 0s; transition-duration: 0.8s; }

/* S05: text cells rise in one after another */
.about__bento .bento--card,
.about__bento .bento--call {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), background-color var(--dur-hover) var(--ease);
  transition-delay: calc(var(--i, 0) * 0.08s), calc(var(--i, 0) * 0.08s), 0s;
}
.about__bento .bento--card.is-in,
.about__bento .bento--call.is-in { opacity: 1; transform: none; }

/* T06: services marquee */
.marquee {
  margin-top: clamp(48px, 6vw, 80px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span {
  color: transparent;
  -webkit-text-stroke: 1px rgb(255 255 255 / 0.35);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}
.marquee span:hover { color: var(--white); }
.marquee i {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--accent);
  transform: rotate(45deg);
}
@keyframes marquee {
  to { transform: translateX(calc(-50% - clamp(20px, 3vw, 40px) / 2)); }
}

/* No-JS safety: show everything */
.no-js .curtain::after { display: none; }
.no-js .curtain img { transform: none; }
.no-js .about__bento .bento--card,
.no-js .about__bento .bento--call { opacity: 1; transform: none; }

/* About: responsive */
@media (max-width: 1100px) {
  .about__bento { grid-template-rows: repeat(3, minmax(210px, auto)); }
}

@media (max-width: 960px) {
  .about__head { grid-template-columns: 1fr; align-items: start; }
  .about__title { max-width: 18ch; }
  .about__bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: minmax(220px, auto);
    grid-template-areas:
      "a a"
      "b b"
      "c d"
      "e f"
      "g g";
  }
  .bento--a { min-height: 420px; }
}

@media (max-width: 600px) {
  .about__bento {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    grid-template-areas: "a" "b" "d" "c" "e" "f" "g";
    gap: 12px;
  }
  .bento--a { min-height: 380px; }
  .bento--c, .bento--g { min-height: 230px; }
  .bento--b { grid-template-columns: 1fr; row-gap: 18px; }
  .bento--call { min-height: 190px; }
  .marquee span { -webkit-text-stroke-width: 0.8px; }
}

@media (prefers-reduced-motion: reduce) {
  .curtain::after { display: none; }
  .curtain img { transform: none; }
  .about__bento .bento--card,
  .about__bento .bento--call { opacity: 1; transform: none; }
  .about__lead .w { opacity: 1; }
  .marquee__track { animation: none; }
}

/* =========================================================
   5. SERVICES
   Effects used:
   - C10 Expanding flex panels (hover / tap / keyboard)
   - M08 Grayscale → colour (inactive panels are muted)
   - T03 Text mask reveal (section title)
   ========================================================= */
.services {
  padding-block: clamp(72px, 9vw, 128px);
  background: #f7f7f5;
}

.services__head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(24px, 5vw, 80px);
  margin-bottom: clamp(36px, 4.5vw, 56px);
}
.services__title {
  font-size: clamp(2.5rem, 5.4vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
.services__intro p {
  margin: 0 0 24px;
  max-width: 34rem;
  color: var(--ink-700);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.btn--dark { background: var(--ink-950); color: var(--white); }
.btn--dark:hover { background: var(--ink-700); }
.btn--dark:hover .icon { transform: translateX(3px); }

/* T03: each line rises from behind a mask */
.mask-reveal__line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.mask-reveal__line > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1s var(--ease);
}
.mask-reveal__line + .mask-reveal__line > span { transition-delay: 0.1s; }
.mask-reveal.is-in .mask-reveal__line > span { transform: none; }
.no-js .mask-reveal__line > span { transform: none; }

/* C10: the panel strip */
.svc {
  display: flex;
  gap: 10px;
  height: clamp(520px, 72vh, 680px);
}

.svc__panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  border-radius: 14px;
  background: var(--ink-900);
  cursor: pointer;
  transition: flex-grow 0.75s var(--ease);
}
.svc__panel.is-active { flex-grow: 5.2; cursor: default; }

.svc__panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* M08: muted until active */
  filter: grayscale(1) brightness(0.62);
  transform: scale(1.06);
  transition: filter 0.7s var(--ease), transform 1.2s var(--ease);
}
.svc__panel:hover img { filter: grayscale(0.4) brightness(0.7); }
.svc__panel.is-active img { filter: none; transform: scale(1); }

/* Shade so white text always reads */
.svc__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(21 23 27 / 0) 35%, rgb(21 23 27 / 0.88) 100%);
  pointer-events: none;
}

/* Collapsed label (vertical on desktop) */
.svc__tab {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 22px 0;
  border: 0;
  background: none;
  color: var(--white);
  font: inherit;
  cursor: pointer;
  transition: opacity 0.3s var(--ease);
}
.svc__panel.is-active .svc__tab { opacity: 0; pointer-events: none; }
.svc__tab .svc__name {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.svc__tab:focus-visible { outline-offset: -4px; border-radius: 14px; }

.svc__num {
  font-size: var(--fs-xs);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  opacity: 0.75;
}

/* Expanded content: fixed width so text never reflows while the panel grows */
.svc__body {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  width: min(460px, 100%);
  padding: clamp(24px, 3vw, 40px);
  color: var(--white);
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.svc__panel.is-active .svc__body {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition: opacity 0.6s var(--ease) 0.3s, transform 0.7s var(--ease) 0.3s;
}
.svc__body .svc__num { display: block; margin-bottom: 14px; }
.svc__body h3 {
  margin: 0;
  font-size: clamp(1.625rem, 2.4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.svc__body p {
  margin: 12px 0 22px;
  color: rgb(255 255 255 / 0.8);
  font-size: 1rem;
  line-height: 1.6;
}
.svc__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background-color var(--dur-hover) var(--ease);
}
.svc__link .icon { width: 16px; height: 16px; transition: transform var(--dur-hover) var(--ease); }
.svc__link:hover { background: var(--accent-hover); }
.svc__link:hover .icon { transform: translateX(3px); }

/* Services: responsive */
@media (max-width: 1100px) {
  .svc { gap: 8px; }
  .svc__panel.is-active { flex-grow: 4.2; }
}

@media (max-width: 900px) {
  .services__head { grid-template-columns: 1fr; align-items: start; }

  /* Becomes a vertical accordion */
  .svc { flex-direction: column; height: auto; gap: 8px; }
  .svc__panel {
    flex: none;
    height: 84px;
    border-radius: 12px;
    transition: height 0.6s var(--ease);
  }
  .svc__panel.is-active { height: clamp(400px, 62vh, 480px); }
  .svc__panel::after { background: linear-gradient(180deg, rgb(21 23 27 / 0.35) 0%, rgb(21 23 27 / 0.88) 100%); }

  .svc__tab {
    flex-direction: row;
    justify-content: flex-start;
    gap: 16px;
    padding: 0 22px;
  }
  .svc__tab .svc__name { writing-mode: horizontal-tb; transform: none; font-size: 1.0625rem; }
  .svc__tab::after {
    content: "";
    width: 10px;
    height: 10px;
    margin-left: auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-3px);
    opacity: 0.8;
  }
  .svc__body { width: 100%; }
}

@media (max-width: 480px) {
  .svc__body { padding: 22px; }
  .svc__link { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .mask-reveal__line > span { transform: none; }
  .svc__panel img { transform: none; }
}

/* =========================================================
   6. PROJECTS (dark)
   Effects used:
   - C11 Filterable grid with animated reordering (FLIP)
   - M15 Lightbox zoom from thumbnail
   - H04 "View project" cursor pill (desktop only)
   - M01 Image hover zoom (small, inside each tile)
   ========================================================= */
.projects {
  position: relative;
  padding-block: clamp(72px, 9vw, 128px);
  background: var(--ink-950);
  color: var(--ink-300);
}

.projects__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 48px;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.projects__title {
  color: var(--white);
  font-size: clamp(2.25rem, 4.6vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
.projects__intro {
  max-width: 30rem;
  margin: 16px 0 0;
  color: var(--ink-400);
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* Filter chips */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filters__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-300);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--dur-hover) var(--ease), color var(--dur-hover) var(--ease), border-color var(--dur-hover) var(--ease);
}
.filters__btn span {
  color: var(--ink-400);
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
}
.filters__btn:hover { border-color: rgb(255 255 255 / 0.35); color: var(--white); }
.filters__btn.is-active { background: var(--white); border-color: var(--white); color: var(--ink-950); }
.filters__btn.is-active span { color: var(--ink-700); }

/* Grid: dense packing, mixed tile sizes */
.proj {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 210px;
  grid-auto-flow: dense;
  gap: 12px;
}
.proj__item { position: relative; min-width: 0; }
.proj__item[hidden] { display: none; }
.proj__item--tall { grid-row: span 2; }
.proj__item--feature { grid-column: span 2; grid-row: span 2; }

.proj__btn {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: var(--ink-900);
  cursor: pointer;
}
.proj__item--feature .proj__btn { border-radius: 14px; }
.proj__btn img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
/* M01 */
.proj__btn:hover img { transform: scale(1.06); }

.proj__btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgb(21 23 27 / 0.6) 72%, rgb(21 23 27 / 0.92));
  opacity: 0.9;
  transition: opacity 0.4s var(--ease);
}
.proj__btn:hover::after { opacity: 1; }

.proj__cap {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: left;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 12px rgb(0 0 0 / 0.45);
}
.proj__cat {
  color: rgb(255 255 255 / 0.7);
  font-size: var(--fs-xs);
  font-weight: 500;
}
.proj__item--feature .proj__cap { left: 22px; bottom: 20px; font-size: 1.125rem; }
.proj__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* H04: cursor pill */
.cursor-pill {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--white);
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  transform-origin: 0 0;
  scale: 0.6;
  transition: opacity 0.25s var(--ease), scale 0.25s var(--ease);
  will-change: translate, scale;
}
.cursor-pill .icon { width: 15px; height: 15px; }
.cursor-pill.is-on { opacity: 1; scale: 1; }
.has-cursor-pill .proj__btn { cursor: none; }

/* M15: lightbox */
.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(12 13 16 / 0.94);
  color: var(--white);
  overflow: hidden;
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; place-items: center; animation: lbFade 0.3s var(--ease); }
@keyframes lbFade { from { background-color: rgb(12 13 16 / 0); } }

.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0;
  max-width: min(1200px, calc(100vw - 160px));
}
.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 140px);
  width: auto;
  height: auto;
  border-radius: 8px;
  transform-origin: top left;
}
.lightbox__cap {
  display: flex;
  gap: 16px;
  align-items: baseline;
  font-size: var(--fs-sm);
  font-weight: 500;
}
.lightbox__count { color: var(--ink-400); font-variant-numeric: tabular-nums; }

.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 50%;
  background: rgb(255 255 255 / 0.06);
  color: var(--white);
  cursor: pointer;
  transition: background-color var(--dur-hover) var(--ease);
}
.lightbox__btn:hover { background: rgb(255 255 255 / 0.16); }
.lightbox__btn .icon { width: 20px; height: 20px; }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 24px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 24px; top: 50%; translate: 0 -50%; }

/* Projects: responsive */
@media (max-width: 1100px) {
  .proj { grid-auto-rows: 180px; }
}
@media (max-width: 900px) {
  .projects__head { flex-direction: column; align-items: flex-start; }
  .proj { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; gap: 10px; }
  /* tall tiles leave gaps in a 2-column grid; keep only the wide features */
  .proj__item--tall { grid-row: auto; }
}
@media (max-width: 560px) {
  .proj { grid-auto-rows: 140px; gap: 8px; }
  .proj__cap { left: 12px; right: 12px; bottom: 10px; font-size: 0.8125rem; }
  .proj__item--feature .proj__cap { left: 14px; bottom: 14px; font-size: 1rem; }
  /* chips scroll sideways instead of wrapping into many rows */
  .filters { flex-wrap: nowrap; overflow-x: auto; width: calc(100% + var(--gutter) * 2); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters__btn { flex-shrink: 0; }
  .lightbox__figure { max-width: calc(100vw - 24px); }
  .lightbox__img { max-height: calc(100dvh - 180px); }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 24px; translate: none; }
  .lightbox__prev { left: calc(50% - 60px); }
  .lightbox__next { right: calc(50% - 60px); }
  .lightbox__close { top: 12px; right: 12px; }
}

/* =========================================================
   7. PROCESS
   Effects used:
   - P02 Light beam along the process path (scroll-linked)
   - T07 Outline → fill numbers (as the beam reaches each step)
   - S05 Stagger animation (steps)
   ========================================================= */
.process {
  padding-block: clamp(72px, 9vw, 128px);
  background: var(--white);
}

.process__head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(20px, 5vw, 80px);
  margin-bottom: clamp(48px, 6vw, 80px);
}
.process__title {
  max-width: 16ch;
  font-size: clamp(2.25rem, 4.6vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.process__intro {
  margin: 0;
  max-width: 28rem;
  color: var(--ink-700);
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* Track: line runs between the first and last node centres */
.process__track { position: relative; }
.process__line {
  position: absolute;
  top: 9px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  border-radius: 2px;
  background: rgb(21 23 27 / 0.1);
}
.process__beam {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgb(242 106 46 / 0.2), var(--accent));
  transform-origin: left center;
  transform: scaleX(var(--p));
}
/* glowing head of the beam */
.process__beam::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 14px;
  height: 14px;
  margin: -7px -7px 0 0;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgb(242 106 46 / 0.18), 0 0 24px 4px rgb(242 106 46 / 0.55);
  transform: scaleX(calc(1 / max(var(--p), 0.001)));
  opacity: calc(var(--p) * 40);
}

.process__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-inline: 8px;
}
.step__node {
  position: relative;
  z-index: 1;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: inset 0 0 0 2px rgb(21 23 27 / 0.18);
  transition: box-shadow 0.4s var(--ease), background-color 0.4s var(--ease);
}
.step.is-lit .step__node {
  background: var(--accent);
  box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 6px rgb(242 106 46 / 0.15);
}

/* T07: outline number fills when its step is lit */
.step__num {
  margin: 28px 0 6px;
  color: transparent;
  -webkit-text-stroke: 1.5px rgb(21 23 27 / 0.22);
  font-size: clamp(3.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  transition: color 0.5s var(--ease), -webkit-text-stroke-color 0.5s var(--ease);
}
.step.is-lit .step__num { color: var(--ink-950); -webkit-text-stroke-color: var(--ink-950); }

.step h3 {
  margin: 10px 0 0;
  color: var(--ink-950);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.step p {
  max-width: 26ch;
  margin: 8px 0 0;
  color: var(--ink-700);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* S05 */
.process__steps .step {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.1s);
}
.process__steps.is-in .step { opacity: 1; transform: none; }
.no-js .process__steps .step { opacity: 1; transform: none; }
.no-js .step .step__num { color: var(--ink-950); }

/* Promise strip */
.process__promise {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: clamp(56px, 7vw, 88px);
  padding: 22px 24px 22px 28px;
  border-radius: 14px;
  background: #f7f7f5;
  box-shadow: inset 0 0 0 1px rgb(21 23 27 / 0.06);
}
.process__promise-text {
  display: flex;
  align-items: center;
  gap: 14px;
}
.process__promise-text .icon { width: 24px; height: 24px; color: var(--accent); stroke-width: 1.8; }
.process__promise-text p { margin: 0; color: var(--ink-700); font-size: 1rem; line-height: 1.5; }
.process__promise-text strong { color: var(--ink-950); font-weight: 600; }
.process__promise-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Process: responsive — vertical timeline */
@media (max-width: 900px) {
  .process__head { grid-template-columns: 1fr; align-items: start; }

  .process__line {
    top: 10px;
    left: 9px;
    right: auto;
    width: 2px;
    /* exact distance from first to last node, measured in script.js */
    height: var(--line-len, calc(100% - 20px));
  }
  .process__beam {
    background: linear-gradient(180deg, rgb(242 106 46 / 0.2), var(--accent));
    transform-origin: center top;
    transform: scaleY(var(--p));
  }
  .process__beam::after {
    top: auto;
    bottom: 0;
    right: 50%;
    margin: 0 -7px -7px 0;
    transform: scaleY(calc(1 / max(var(--p), 0.001)));
  }

  .process__steps { grid-template-columns: 1fr; gap: 40px; }
  .step {
    display: grid;
    grid-template-columns: 20px 1fr;
    column-gap: 24px;
    align-items: start;
    text-align: left;
    padding: 0;
  }
  .step__node { grid-row: 1 / span 3; }
  .step__num { grid-column: 2; margin: -4px 0 4px; font-size: 3rem; }
  .step h3, .step p { grid-column: 2; }
  .step h3 { margin-top: 0; }
  .step p { max-width: 40ch; }
}

@media (max-width: 560px) {
  .process__promise { padding: 20px; }
  .process__promise-actions { width: 100%; }
  .process__promise-actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .process__steps .step { opacity: 1; transform: none; }
}

/* =========================================================
   8. CTA BANNER (full-bleed photo)
   Effects used:
   - S01 Parallax background image
   - H02 Cursor spotlight (desktop only)
   - G02 Button fill sweep
   ========================================================= */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(88px, 12vw, 160px);
  background: var(--ink-950);
  color: var(--white);
}

/* S01: image is taller than the section and drifts slower than the page */
.cta__bg {
  position: absolute;
  inset: -18% 0;
  z-index: -2;
}
.cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(15 16 19 / 0.92) 0%, rgb(15 16 19 / 0.72) 50%, rgb(15 16 19 / 0.55) 100%),
    linear-gradient(0deg, rgb(15 16 19 / 0.5), transparent 40%);
}

/* H02: soft light that follows the cursor */
.cta__spot {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 50%), rgb(255 230 210 / 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.cta:hover .cta__spot { opacity: 1; }

.cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.cta__label { color: rgb(255 255 255 / 0.85); }
.cta__title {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(2.5rem, 5.6vw, 4.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.cta__text {
  max-width: 32rem;
  margin: 24px 0 0;
  color: rgb(255 255 255 / 0.75);
  font-size: 1.125rem;
  line-height: 1.6;
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* G02: colour sweeps across from the left, text inverts */
.btn--sweep {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.btn--sweep::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.5s var(--ease);
}
.btn--sweep:hover::before { transform: scaleX(1); transform-origin: left center; }
.btn--sweep:hover .icon { transform: translateX(3px); }

.btn--sweep-accent { background: var(--accent); color: var(--white); }
.btn--sweep-accent::before { background: var(--white); }
.btn--sweep-accent:hover { color: var(--ink-950); }

.btn--sweep-light {
  background: rgb(255 255 255 / 0.06);
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-variant-numeric: tabular-nums;
}
.btn--sweep-light::before { background: var(--white); }
.btn--sweep-light:hover { color: var(--ink-950); box-shadow: inset 0 0 0 1px var(--white); }
.btn--sweep-light:hover .icon { transform: none; }

/* Values panel */
.cta__values {
  display: grid;
  gap: 0;
  padding: 8px 28px;
  border-radius: 16px;
  background: rgb(21 23 27 / 0.45);
  border: 1px solid rgb(255 255 255 / 0.12);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.cta__values li {
  display: flex;
  gap: 18px;
  padding: 22px 0;
}
.cta__values li + li { border-top: 1px solid rgb(255 255 255 / 0.1); }
.cta__vnum {
  flex-shrink: 0;
  width: 28px;
  padding-top: 3px;
  color: var(--accent);
  font-size: var(--fs-sm);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cta__values h3 {
  margin: 0;
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.cta__values p {
  margin: 6px 0 0;
  color: rgb(255 255 255 / 0.68);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* CTA: responsive */
@media (max-width: 960px) {
  .cta__inner { grid-template-columns: 1fr; }
  .cta__values { max-width: 40rem; }
  .cta::before { background: linear-gradient(180deg, rgb(15 16 19 / 0.85), rgb(15 16 19 / 0.78)); }
}
@media (max-width: 560px) {
  .cta__actions .btn { flex: 1 1 100%; }
  .cta__values { padding: 4px 20px; }
  .cta__values li { padding: 18px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cta__bg img { transform: none; }
}

/* =========================================================
   9. CONTACT / QUOTE
   Effects used:
   - F01 Floating labels
   - F02 Focus glow ring + shake on error
   - F05 Submit button → spinner → checkmark
   ========================================================= */
.contact {
  padding-block: clamp(72px, 9vw, 128px);
  background: #f7f7f5;
}
.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.contact__title {
  font-size: clamp(2.25rem, 4.6vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
.contact__intro {
  max-width: 32rem;
  margin: 20px 0 0;
  color: var(--ink-700);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.contact__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 24px;
  margin: 36px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid rgb(21 23 27 / 0.1);
}
.contact__list li { display: flex; gap: 14px; min-width: 0; }
.contact__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgb(21 23 27 / 0.08);
  color: var(--ink-950);
}
.contact__icon .icon { width: 18px; height: 18px; }
.contact__k {
  display: block;
  color: var(--ink-700);
  font-size: var(--fs-xs);
  font-weight: 500;
}
.contact__v {
  display: block;
  margin-top: 2px;
  color: var(--ink-950);
  font-size: 0.9375rem;
  font-weight: 600;
  font-style: normal;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
a.contact__v:hover { color: var(--accent); }

.contact__get {
  margin-top: 32px;
  padding: 22px 24px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgb(21 23 27 / 0.06);
}
.contact__get h3 { margin: 0 0 12px; font-size: 1rem; font-weight: 600; color: var(--ink-950); }
.contact__get ul { display: grid; gap: 8px; }
.contact__get li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-700);
  font-size: 0.9375rem;
}
.contact__get li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.32em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.contact__map {
  margin-top: 16px;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  background: var(--ink-100);
  box-shadow: inset 0 0 0 1px rgb(21 23 27 / 0.06);
}
.contact__map iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(0.4) contrast(1.05); }

/* Form card */
.quote {
  position: sticky;
  top: 88px;
}
.quote__form {
  padding: clamp(24px, 3.4vw, 44px);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 1px 2px rgb(21 23 27 / 0.04), 0 24px 60px -28px rgb(21 23 27 / 0.28);
}
.quote__head h3 {
  margin: 0;
  color: var(--ink-950);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.quote__head p { margin: 6px 0 28px; color: var(--ink-700); font-size: 0.9375rem; }

.quote__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field--full { grid-column: 1 / -1; }

/* F01: floating label inputs */
.field { position: relative; }
.field__input {
  width: 100%;
  min-height: 56px;
  padding: 24px 16px 8px;
  border: 1px solid rgb(21 23 27 / 0.16);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink-950);
  font: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.25s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field__input--area { min-height: 120px; padding-top: 28px; resize: vertical; line-height: 1.5; }
.field__label {
  position: absolute;
  left: 17px;
  top: 18px;
  color: var(--ink-700);
  font-size: 1rem;
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.22s var(--ease), color 0.22s var(--ease);
}
.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label,
.field--select .field__label {
  transform: translateY(-10px) scale(0.78);
}
/* select: label always sits on top; the first option acts as the placeholder */
.field--select .field__input:invalid { color: var(--ink-700); }
.field--select option { color: var(--ink-950); }
.field__input:focus + .field__label { color: var(--accent); }

/* F02: focus glow ring */
.field__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgb(242 106 46 / 0.15);
}
.field.is-invalid .field__input { border-color: #d64532; }
.field.is-invalid .field__input:focus { box-shadow: 0 0 0 4px rgb(214 69 50 / 0.15); }
.field.is-shake { animation: shake 0.4s var(--ease); }
@keyframes shake {
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}
.field__error {
  display: block;
  min-height: 0;
  margin-top: 6px;
  color: #c03b2a;
  font-size: var(--fs-xs);
  font-weight: 500;
}
.field__error:empty { display: none; }

/* select arrow */
.field--select::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 24px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--ink-700);
  border-bottom: 2px solid var(--ink-700);
  transform: rotate(45deg);
  pointer-events: none;
}
.field--select .field__input { padding-right: 44px; cursor: pointer; }

/* radios */
.radios {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  border: 0;
}
.radios legend {
  width: 100%;
  margin-bottom: 10px;
  color: var(--ink-950);
  font-size: 0.9375rem;
  font-weight: 500;
}
.radios legend span { color: var(--ink-700); font-weight: 400; }
.radio { position: relative; cursor: pointer; }
.radio input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgb(21 23 27 / 0.16);
  border-radius: var(--radius-pill);
  color: var(--ink-950);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.radio input:checked + span { background: var(--ink-950); border-color: var(--ink-950); color: var(--white); }
.radio input:focus-visible + span { box-shadow: 0 0 0 4px rgb(242 106 46 / 0.25); }

/* F05: submit → spinner → checkmark */
.submit {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 56px;
  margin-top: 24px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--white);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), border-radius 0.4s var(--ease), width 0.45s var(--ease);
}
.submit:hover { background: var(--accent-hover); }
.submit > * { grid-area: 1 / 1; }
.submit__spinner {
  width: 22px;
  height: 22px;
  border: 2.5px solid rgb(255 255 255 / 0.35);
  border-top-color: var(--white);
  border-radius: 50%;
  opacity: 0;
  animation: spin 0.8s linear infinite;
}
.submit__check {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--white);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  opacity: 0;
}
.submit.is-loading, .submit.is-done { width: 56px; border-radius: 50%; margin-inline: auto; cursor: default; }
.submit.is-loading .submit__text, .submit.is-done .submit__text { opacity: 0; }
.submit.is-loading .submit__spinner { opacity: 1; }
.submit.is-done { background: #2f9e5b; }
.submit.is-done .submit__check { opacity: 1; animation: draw 0.5s var(--ease) 0.15s forwards; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

.quote__status {
  min-height: 1.4em;
  margin: 14px 0 0;
  color: #2f7a4d;
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: center;
}
.quote__status.is-error { color: #c0392b; }
/* spam trap field: off-screen for people, still in the form for bots */
.quote__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.quote__small { margin: 4px 0 0; color: var(--ink-700); font-size: var(--fs-sm); text-align: center; }
.quote__small a { color: var(--ink-950); font-weight: 600; }

/* Contact: responsive */
@media (max-width: 1100px) {
  .contact__list { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .contact__inner { grid-template-columns: 1fr; }
  .quote { position: static; order: -1; }  /* form first on tablet/mobile */
  .contact__info { order: 0; }
  .contact__list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .quote__grid { grid-template-columns: 1fr; }
  .contact__list { grid-template-columns: 1fr; }
  .quote__form { border-radius: 14px; }
  .contact__map { aspect-ratio: 4 / 3; }
}

/* =========================================================
   10. FOOTER (dark)
   Effects used:
   - P06 Curtain reveal footer (desktop, when it fits the viewport)
   - N08 Back-to-top with scroll progress ring
   - G05 Underline animation (links)
   ========================================================= */
main {
  position: relative;
  z-index: 1;
  background: var(--white);
}
/* P06: footer sits fixed behind the page; main gets a bottom margin of the footer's height */
.has-curtain .footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 0; }
.has-curtain main { margin-bottom: var(--footer-h, 0px); box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.5); }

.footer {
  padding-top: clamp(56px, 7vw, 96px);
  background: #101114;
  color: var(--ink-400);
  font-size: 0.9375rem;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.1fr 1fr;
  gap: 40px;
}
.footer__brand img { width: 180px; height: auto; }
.footer__brand p { max-width: 30ch; margin: 18px 0 20px; line-height: 1.6; }
.footer__fb {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.06);
  color: var(--ink-300);
  transition: background-color var(--dur-hover) var(--ease), color var(--dur-hover) var(--ease);
}
.footer__fb svg { width: 16px; height: 16px; fill: currentColor; }
.footer__fb:hover { background: #1877f2; color: var(--white); }
.footer__socials { display: flex; flex-wrap: wrap; gap: 10px; }

.footer__col h3 {
  margin: 4px 0 18px;
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 600;
}
.footer__col ul { display: grid; gap: 12px; }
.footer__contact address { font-style: normal; line-height: 1.6; }

/* G05: underline grows left → right, exits right */
.ulink {
  position: relative;
  color: var(--ink-300);
  transition: color var(--dur-hover) var(--ease);
}
.ulink::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.ulink:hover { color: var(--white); }
.ulink:hover::after { transform: scaleX(1); transform-origin: left; }

/* Big wordmark */
.footer__word {
  margin: clamp(48px, 6vw, 80px) 0 0;
  color: transparent;
  -webkit-text-stroke: 1px rgb(255 255 255 / 0.12);
  font-size: clamp(2.25rem, 9.4vw, 8.5rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
  white-space: nowrap;
  text-align: center;
  user-select: none;
  overflow: hidden;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 28px;
  padding-block: 24px;
  border-top: 1px solid rgb(255 255 255 / 0.08);
  font-size: var(--fs-sm);
}
.footer__bottom p { margin: 0; }
.footer__sep { margin: 0 10px; color: var(--ink-700); }

/* N08: back to top */
.totop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ink-950);
  color: var(--white);
  box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
}
.totop.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s; }
.totop .icon { width: 18px; height: 18px; }
.totop__ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.totop__ring circle { fill: none; stroke-width: 2.5; }
.totop__track { stroke: rgb(255 255 255 / 0.12); }
.totop__bar {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 138.2;
  stroke-dashoffset: calc(138.2 * (1 - var(--sp, 0)));
}
.totop:hover { background: var(--ink-700); }

/* Footer: responsive */
@media (max-width: 1000px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; padding-bottom: 84px; } /* room for the back-to-top button */
  .totop { right: 14px; bottom: 14px; width: 48px; height: 48px; }
}

/* =========================================================
   Under construction page (placeholder for child pages not built yet)
   ========================================================= */
.uc {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 32px var(--gutter);
  background:
    radial-gradient(900px 480px at 80% -10%, rgb(242 106 46 / 0.16), transparent 60%),
    radial-gradient(700px 420px at 0% 110%, rgb(255 255 255 / 0.05), transparent 60%),
    var(--ink-950);
  color: var(--ink-300);
}
.uc__card { width: min(560px, 100%); text-align: center; }
.uc__logo { display: inline-block; margin-bottom: 36px; }
.uc__logo img { display: block; width: auto; height: 44px; }
.uc__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  border-radius: 20px;
  background: rgb(242 106 46 / 0.12);
  border: 1px solid rgb(242 106 46 / 0.35);
  color: var(--accent);
}
.uc__icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.uc__kicker { margin: 0 0 8px; font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.uc__title { margin: 0; color: var(--white); font-size: clamp(1.75rem, 5vw, 2.5rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.uc__text { margin: 16px auto 0; max-width: 460px; font-size: 1.0625rem; line-height: 1.6; }
.uc__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.uc__call { color: var(--white); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.25); }
.uc__call:hover { background: rgb(255 255 255 / 0.08); }
.uc__small { margin: 22px 0 0; font-size: var(--fs-sm); }
.uc__small a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.uc__small a:hover { color: var(--accent-hover); }

/* =========================================================
   Page Header (shared dark banner for all child pages)
   ========================================================= */
.pheader {
  position: relative;
  background: var(--ink-950);
  color: var(--white);
  padding-top: clamp(120px, 14vw, 160px);
  padding-bottom: clamp(48px, 6vw, 68px);
  overflow: hidden;
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
}
.pheader::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 80% 20%, rgb(242 106 46 / 0.12), transparent 45%),
    linear-gradient(180deg, rgb(12 13 16 / 0.75) 0%, rgb(12 13 16 / 0.95) 100%);
  pointer-events: none;
}
.pheader__inner {
  position: relative;
  z-index: 1;
}
.pheader__crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  font-size: var(--fs-xs);
  color: var(--ink-400);
}
.pheader__crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--ink-600);
}
.pheader__crumbs a {
  color: var(--ink-300);
  transition: color var(--dur-hover) var(--ease);
}
.pheader__crumbs a:hover {
  color: var(--accent);
}
.pheader__crumbs [aria-current="page"] {
  color: var(--accent);
  font-weight: 500;
}
.pheader__kicker {
  margin: 0 0 8px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.pheader__title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
}
.pheader__lead {
  margin: 14px 0 0;
  max-width: 620px;
  font-size: clamp(1rem, 1.8vw, 1.1875rem);
  line-height: 1.6;
  color: var(--ink-300);
}

/* =========================================================
   Page content & Prose typography (Child pages)
   ========================================================= */
.page-section {
  padding-block: clamp(56px, 7vw, 96px);
  background: var(--white);
}
.page-section--alt {
  background: #f7f7f5;
}
.page-section__head {
  max-width: 680px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.prose {
  max-width: 820px;
  margin-inline: auto;
  color: var(--ink-800);
  font-size: 1.0625rem;
  line-height: 1.75;
}
.prose h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--ink-950);
  margin-top: 40px;
  margin-bottom: 16px;
  letter-spacing: -0.015em;
}
.prose h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.4rem);
  font-weight: 600;
  color: var(--ink-950);
  margin-top: 28px;
  margin-bottom: 12px;
}
.prose p {
  margin-top: 0;
  margin-bottom: 16px;
}
.prose ul, .prose ol {
  margin-top: 0;
  margin-bottom: 20px;
  padding-left: 24px;
}
.prose li {
  margin-bottom: 8px;
}
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose a:hover {
  color: var(--accent-hover);
}
.prose strong {
  color: var(--ink-950);
  font-weight: 600;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--ink-200);
  margin: 40px 0;
}

/* Contact & Info page cards */
.contact-cta-card {
  margin-top: 32px;
  padding: 28px;
  background: var(--ink-950);
  color: var(--white);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.contact-cta-card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  color: var(--white);
}
.contact-cta-card p {
  margin: 0 0 20px;
  color: var(--ink-300);
  font-size: 0.95rem;
  line-height: 1.55;
}
.hours-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.hours-list li {
  display: flex;
  justify-content: space-between;
  padding-block: 8px;
  border-bottom: 1px dashed rgb(0 0 0 / 0.1);
  font-size: var(--fs-sm);
}
.hours-list li:last-child {
  border-bottom: none;
}
.hours-list .day {
  font-weight: 500;
  color: var(--ink-900);
}
.hours-list .time {
  color: var(--ink-600);
}

/* =========================================================
   Services Index & Detail Page Styles
   ========================================================= */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: clamp(24px, 3vw, 36px);
}
.svc-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgb(0 0 0 / 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgb(0 0 0 / 0.04);
  transition: transform var(--dur-hover) var(--ease), box-shadow var(--dur-hover) var(--ease);
}
.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.08);
}
.svc-card__img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ink-950);
}
.svc-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.svc-card:hover .svc-card__img img {
  transform: scale(1.05);
}
.svc-card__num {
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--ink-950);
  color: var(--accent);
  font-size: var(--fs-xs);
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid rgb(255 255 255 / 0.15);
}
.svc-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}
.svc-card__body h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  color: var(--ink-950);
}
.svc-card__body p {
  margin: 0 0 20px;
  color: var(--ink-700);
  font-size: 0.95rem;
  line-height: 1.55;
  flex: 1;
}
.svc-card__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Service Detail Layout */
.svc-detail__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.svc-detail__img {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgb(0 0 0 / 0.12);
}
.svc-detail__img img {
  width: 100%;
  height: auto;
  display: block;
}
.svc-detail__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-block: 40px;
}
.svc-feature {
  padding: 24px;
  background: #f7f7f5;
  border-radius: 10px;
  border-left: 3px solid var(--accent);
}
.svc-feature h4 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--ink-950);
}
.svc-feature p {
  margin: 0;
  color: var(--ink-700);
  font-size: 0.925rem;
  line-height: 1.5;
}
@media (max-width: 900px) {
  .svc-detail__hero {
    grid-template-columns: 1fr;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
