/* =========================================================
   Excavation Frenna — Global Styles
   Design system: quiet industrial-premium
   Warm paper, deep ink, Frenna red as a scarce signal.
   Type: Archivo (expanded display) + IBM Plex Mono (labels/data)
   ========================================================= */

:root {
  /* palette */
  --paper: #faf9f7;
  --ink: #141517;
  --ink-2: #1d1f22;
  --red: #c8202a;
  --red-dark: #9c171f;
  --red-light: #e23a44;
  --white: #ffffff;
  --grey-50: #f3f2ef;
  --grey-100: #eae8e4;
  --grey-200: #dcdad4;
  --grey-400: #a3a19b;
  --grey-600: #63615c;
  --line: #e7e5e0;
  --line-ink: rgba(255, 255, 255, 0.12);
  --text: #1b1c1e;
  --muted: #6d6b66;

  /* structure */
  --maxw: 1240px;
  --radius: 2px;
  --shadow: 0 1px 2px rgba(20, 21, 23, 0.04), 0 12px 32px rgba(20, 21, 23, 0.07);
  --shadow-lg: 0 2px 4px rgba(20, 21, 23, 0.05), 0 28px 64px rgba(20, 21, 23, 0.12);

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --transition: 0.3s var(--ease);

  /* type */
  --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

/* ---------- Reset / base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.7;
  font-size: 16.5px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: var(--red); color: #fff; }
::-moz-selection { background: var(--red); color: #fff; }

/* slim, quiet scrollbar */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb {
  background: var(--grey-200);
  border: 3px solid var(--paper);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover { background: var(--grey-400); }

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 640;
  font-stretch: 112%;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.7rem, 6.2vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.32rem); line-height: 1.25; font-stretch: 108%; }
p { color: var(--text); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

section { position: relative; }
.section-pad { padding: clamp(72px, 10vw, 140px) 0; }

/* ---------- Utility: diamond motif ---------- */
.diamond {
  display: inline-block;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: var(--red);
  flex: 0 0 auto;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 22px;
}
.kicker::before {
  content: "";
  width: 7px; height: 7px;
  flex: 0 0 auto;
  transform: rotate(45deg);
  background: var(--red);
}
.section-head { max-width: 680px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin-top: 18px; max-width: 58ch; }
.section-head.center p { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
  font-size: 0.78rem;
  padding: 18px 30px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease),
              background-color 0.35s var(--ease), transform 0.18s var(--ease);
  will-change: transform;
}
.btn::after {
  content: "→";
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 0.35s var(--ease);
}
.btn:hover::after { transform: translateX(5px); }
.btn:active { transform: scale(0.975); }

.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--red); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-ghost-light:hover { border-color: #fff; background: #fff; color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 247, 0.85);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s ease, background-color 0.4s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(250, 249, 247, 0.92);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
  transition: height 0.4s var(--ease);
}
.site-header.is-scrolled .nav { height: 64px; }
.brand img { height: 30px; width: auto; transition: transform 0.35s var(--ease); }
.brand:hover img { transform: translateY(-1px); }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 32px);
  margin-left: auto;
}
.nav-links a {
  font-family: var(--font-body);
  letter-spacing: 0.01em;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--muted);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
  transition: color var(--transition);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-links a.active { color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: 16px; }
.lang-toggle {
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--grey-200);
  padding: 8px 13px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}
.lang-toggle:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.nav-phone::after {
  content: "";
  position: absolute;
  left: 0; bottom: 2px;
  width: 100%; height: 1px;
  background: currentColor;
  opacity: 0.25;
  transition: opacity var(--transition);
}
.nav-phone:hover::after { opacity: 1; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
}
.hamburger span {
  width: 24px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.25s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  will-change: transform;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transform-origin: 50% 40%;
}
body.is-loaded .hero-media img { animation: hero-zoom 18s var(--ease) forwards; }
@keyframes hero-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(20, 21, 23, 0) 55%, rgba(20, 21, 23, 0.55) 100%),
    linear-gradient(90deg, rgba(20, 21, 23, 0.96) 0%, rgba(20, 21, 23, 0.82) 38%, rgba(20, 21, 23, 0.38) 72%, rgba(20, 21, 23, 0.18) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  z-index: 1;
  background: linear-gradient(90deg, var(--red) 0 120px, var(--line-ink) 120px 100%);
  transform: scaleX(0);
  transform-origin: left;
}
body.is-loaded .hero::after { animation: hero-line 1.3s var(--ease) 0.5s both; }
@keyframes hero-line { to { transform: scaleX(1); } }
.hero-inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(84px, 13vw, 170px) clamp(64px, 9vw, 110px);
  max-width: 820px;
}
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--red-light); }
.h1-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}
.h1-line-in { display: block; }
body.is-loaded .h1-line-in { animation: h1-rise 0.9s var(--ease) both; }
body.is-loaded .h1-line:nth-child(2) .h1-line-in { animation-delay: 0.14s; }
@keyframes h1-rise {
  from { transform: translateY(112%); }
  to   { transform: translateY(0); }
}
body.is-loaded .hero .kicker     { animation: hero-up 0.7s var(--ease) 0.05s both; }
body.is-loaded .hero-inner > p   { animation: hero-up 0.8s var(--ease) 0.42s both; }
body.is-loaded .hero-cta         { animation: hero-up 0.8s var(--ease) 0.55s both; }
body.is-loaded .hero-trust       { animation: hero-up 0.8s var(--ease) 0.7s both; }
body.is-loaded .hero-proof-panel { animation: hero-up 0.8s var(--ease) 0.85s both; }
@keyframes hero-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.14rem;
  line-height: 1.75;
  margin: 28px 0 40px;
  max-width: 54ch;
}
.hero .kicker { color: rgba(255, 255, 255, 0.55); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: 26px;
  border-top: 1px solid var(--line-ink);
}
.hero-trust div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 560;
  font-stretch: 105%;
  font-size: 0.73rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}
.hero-trust .diamond { width: 5px; height: 5px; }

.hero-proof-panel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 820px;
  margin-top: 40px;
  border: 1px solid var(--line-ink);
  background: rgba(20, 21, 23, 0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  counter-reset: proof;
}
.hero-proof-panel a,
.hero-proof-panel div {
  position: relative;
  min-height: 118px;
  padding: 22px;
  color: #fff;
  transition: background-color 0.35s var(--ease);
}
.hero-proof-panel a + a { border-left: 1px solid var(--line-ink); }
.hero-proof-panel a::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 100%; height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.hero-proof-panel a:hover { background: rgba(255, 255, 255, 0.05); }
.hero-proof-panel a:hover::before { transform: scaleX(1); }
.hero-proof-panel a { counter-increment: proof; }
.hero-proof-panel a::after {
  content: "0" counter(proof);
  position: absolute;
  top: 18px; right: 18px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.28);
  transition: color 0.35s var(--ease);
}
.hero-proof-panel a:hover::after { color: var(--red-light); }
.hero-proof-panel strong {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-head);
  font-stretch: 108%;
  font-weight: 620;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  margin-bottom: 9px;
  transition: transform 0.4s var(--ease);
}
.hero-proof-panel a:hover strong { transform: translateX(3px); }
.hero-proof-panel strong::after {
  content: "→";
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--red-light);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease);
}
.hero-proof-panel a:hover strong::after { opacity: 1; transform: translateX(0); }
.hero-proof-panel span {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.85rem;
  line-height: 1.55;
  transition: color 0.35s var(--ease);
}
.hero-proof-panel a:hover span { color: rgba(255, 255, 255, 0.8); }

/* ---------- Flagship split ---------- */
.flagship-intro { background: var(--paper); }
.flagship-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.flagship-copy { max-width: 600px; }
.flagship-copy h2 { margin-bottom: 24px; }
.flagship-copy p { color: var(--muted); margin-bottom: 18px; max-width: 58ch; }
.flagship-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.photo-stack {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  grid-template-rows: 216px 216px;
  gap: 12px;
  align-items: stretch;
}
.photo-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
}
.photo-stack img:hover { transform: scale(1.015); filter: brightness(1.05); }
.photo-stack img:first-child { grid-row: 1 / span 2; }
.photo-stack__caption {
  grid-column: 1 / -1;
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 16px 2px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}
.photo-stack__caption strong {
  color: var(--ink);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 500;
  white-space: nowrap;
}

/* ---------- Dark method band ---------- */
.method-band {
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.method-band h2, .method-band h3 { color: #fff; }
.method-band p { color: rgba(255, 255, 255, 0.62); }
.method-band .kicker { color: rgba(255, 255, 255, 0.5); }
.foundation-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

/* strata — each layer a shade deeper, like a real cross-section */
.foundation-layers { display: grid; gap: 1px; background: var(--line-ink); border: 1px solid var(--line-ink); }
.foundation-layer {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: center;
  padding: 20px 24px;
  background: var(--ink);
  transition: background-color 0.35s ease, padding-left 0.35s var(--ease);
}
.foundation-layer:nth-child(1) { background: #26282c; }
.foundation-layer:nth-child(2) { background: #202225; }
.foundation-layer:nth-child(3) { background: #1b1c1f; }
.foundation-layer:nth-child(4) { background: #16171a; }
.foundation-layer::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--red);
  transform: scaleY(0);
  transition: transform 0.4s var(--ease);
}
.foundation-layer:hover { padding-left: 32px; }
.foundation-layer:hover::before { transform: scaleY(1); }
.foundation-layer b {
  font-family: var(--font-mono);
  font-weight: 500;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
}
.foundation-layer span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.9rem;
  line-height: 1.6;
}
.process-mini {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line-ink);
}
.method-band .process-mini .process-step {
  background: transparent;
  border: 0;
  padding: 0;
  min-height: 0;
}
.method-band .process-mini .process-step h3 { color: #fff; }
.method-band .process-mini .process-step p { color: rgba(255, 255, 255, 0.55); }
.method-band .process-mini .step-num { color: rgba(255, 255, 255, 0.28); }

/* ---------- Image service cards ---------- */
.image-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.image-service-card {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
}
.image-service-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  transform: scale(1.02);
  transition: transform 0.9s var(--ease), opacity 0.6s ease;
}
.image-service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,21,23,0.05) 30%, rgba(20,21,23,0.9));
}
.image-service-card:hover img { transform: scale(1.07); opacity: 0.85; }
.image-service-card__body {
  position: relative;
  z-index: 2;
  padding: 26px;
  color: #fff;
}
.image-service-card__body h3 { color: #fff; margin-bottom: 10px; }
.image-service-card__body p { color: rgba(255,255,255,0.7); font-size: 0.92rem; }
.image-service-card__body .more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: #fff;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}

/* ---------- Signature panel ---------- */
.service-signature { overflow: hidden; }
.service-signature .container {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.signature-panel {
  padding: clamp(32px, 4.5vw, 52px);
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.signature-panel::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -90px;
  width: 220px;
  height: 220px;
  transform: rotate(45deg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
}
.signature-panel h2 { color: #fff; margin-bottom: 18px; }
.signature-panel p { color: rgba(255, 255, 255, 0.62); }
.signature-panel .kicker { color: rgba(255, 255, 255, 0.5); }
.signature-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.signature-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  align-items: start;
  padding: 24px 4px;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.35s var(--ease);
}
.signature-list li:hover { padding-left: 14px; }
.signature-list b {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--red);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.signature-list strong {
  display: block;
  font-family: var(--font-head);
  font-stretch: 108%;
  font-weight: 620;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 5px;
}
.signature-list span { color: var(--muted); font-size: 0.94rem; }

.service-quote-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.service-quote-strip > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid var(--grey-200);
  border-radius: 100px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  color: var(--grey-600);
  background: transparent;
  transition: var(--transition);
}
.service-quote-strip > span:hover { border-color: var(--ink); color: var(--ink); }
.service-quote-strip .diamond { width: 5px; height: 5px; }

.project-planner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.planner-card {
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--red);
  border-radius: var(--radius);
}
.planner-card h3 { margin-bottom: 12px; }
.planner-card p { color: var(--muted); }
.gallery-note {
  max-width: 880px;
  margin: 0 auto clamp(36px, 5vw, 52px);
  padding: 22px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 2px solid var(--red);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.96rem;
}
.gallery-note strong {
  display: block;
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 500;
  margin-bottom: 6px;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: var(--ink);
  color: #fff;
  padding: clamp(64px, 9vw, 120px) 0;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--red) 0 120px, var(--line-ink) 120px 100%);
}
.page-hero h1 { color: #fff; }
.page-hero p {
  color: rgba(255, 255, 255, 0.68);
  max-width: 56ch;
  margin-top: 22px;
  font-size: 1.08rem;
  line-height: 1.75;
}
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 26px;
  text-transform: uppercase;
}
.breadcrumb a { transition: color var(--transition); }
.breadcrumb a:hover { color: #fff; }

.page-hero.has-photo {
  background:
    linear-gradient(90deg, rgba(20,21,23,0.96) 0%, rgba(20,21,23,0.8) 50%, rgba(20,21,23,0.45) 100%),
    var(--page-hero-image);
  background-size: cover;
  background-position: center;
}
.page-hero.has-photo .container { position: relative; z-index: 2; }
.hero-excavation { --page-hero-image: url("../images/excavation.webp"); }
.hero-pave { --page-hero-image: url("../images/pave-finished-montreal.webp"); }
.hero-asphalte { --page-hero-image: url("../images/asphalte.webp"); }
.hero-murs { --page-hero-image: url("../images/murs.webp"); }
.page-hero.hero-murs { background-position: center 45%; }
.hero-gazon { --page-hero-image: url("../images/gazon.webp"); }
.hero-about { --page-hero-image: url("../images/hero-pave-montreal.webp"); }
.hero-transport { --page-hero-image: url("../images/transport-mack-quebec.webp"); }

/* ---------- Service cards ---------- */
.grid { display: grid; gap: 14px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: border-color 0.35s ease, box-shadow 0.45s var(--ease), transform 0.45s var(--ease);
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.service-card:hover {
  border-color: var(--grey-200);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  margin-bottom: 26px;
  color: var(--ink);
  transition: var(--transition);
}
.service-card:hover .service-icon {
  color: var(--red);
  border-color: var(--red);
  transform: rotate(-4deg);
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { margin-bottom: 12px; }
.service-card p { color: var(--muted); font-size: 0.96rem; flex: 1; }
.service-card .more {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px;
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--ink);
  transition: color var(--transition);
}
.service-card .more::after {
  content: "→";
  font-family: var(--font-body);
  transition: transform 0.35s var(--ease);
}
.service-card .more svg { display: none; }
.service-card:hover .more { color: var(--red); }
.service-card:hover .more::after { transform: translateX(5px); }

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.blog-card {
  min-height: 100%;
}
.blog-card .kicker {
  margin-bottom: 18px;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
}
.blog-card h2,
.blog-card h3 {
  margin-bottom: 14px;
}
.blog-card time {
  display: block;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-600);
}
.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(38px, 6vw, 76px);
  align-items: start;
}
.article-body {
  max-width: 780px;
}
.article-body > * + * {
  margin-top: 22px;
}
.article-body h2 {
  margin-top: 52px;
  font-size: clamp(1.55rem, 2.8vw, 2.3rem);
}
.article-body h3 {
  margin-top: 34px;
  font-size: clamp(1.1rem, 1.7vw, 1.32rem);
}
.article-body p,
.article-body li {
  color: var(--muted);
}
.article-body ul,
.article-body ol {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.article-body li {
  position: relative;
  padding-left: 22px;
}
.article-body li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: var(--red);
}
.article-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.article-aside {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
}
.article-aside .service-card {
  padding: 28px 24px;
}
.article-aside h3 {
  font-size: 1.05rem;
}
.article-aside ul {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.article-aside a {
  color: var(--muted);
  transition: color var(--transition);
}
.article-aside a:hover {
  color: var(--red);
}
.faq-block {
  border-top: 1px solid var(--line);
  margin-top: 42px;
  padding-top: 10px;
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.faq-item h3 {
  margin: 0 0 10px;
}
.article-cta {
  margin-top: 54px;
  padding: 34px;
  border: 1px solid var(--line);
  background: var(--white);
}
.article-cta h2 {
  margin: 0 0 14px;
}
.article-cta p {
  margin: 0 0 24px;
}

/* generic .more links outside cards */
.more {
  transition: color var(--transition);
}
.more svg { width: 15px; height: 15px; transition: transform 0.35s var(--ease); }
.more:hover svg { transform: translateX(4px); }

/* ---------- Alternating feature rows ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
  margin-bottom: clamp(64px, 9vw, 110px);
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse .feature-media { order: 2; }
.feature-media {
  border-radius: var(--radius);
  min-height: 380px;
  position: relative;
  overflow: hidden;
}
.feature-text h2 { margin-bottom: 22px; }
.feature-text p { color: var(--muted); margin-bottom: 18px; max-width: 56ch; }
.feature-list { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 6px; }
.feature-list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
  transition: padding-left 0.3s var(--ease);
}
.feature-list li:hover { padding-left: 10px; }
.feature-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 6px; height: 6px;
  transform: rotate(45deg) translateY(-1px);
  background: var(--red);
}

/* image placeholder (swap for real photos) */
.ph {
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 26px),
    linear-gradient(135deg, #24262a, #141517);
  display: grid; place-items: center;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.76rem;
  text-align: center;
  padding: 20px;
}
.ph.red {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: rgba(255,255,255,0.85);
}

img.feature-media {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  min-height: 0;
  transition: transform 0.8s var(--ease), filter 0.8s var(--ease);
}
img.feature-media:hover { transform: scale(1.01); filter: brightness(1.04); }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Stats band ---------- */
.band-dark { background: var(--ink); color: #fff; }
.band-dark h2 { color: #fff; }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: left;
}
.stat {
  padding: 10px 0 10px clamp(20px, 3vw, 40px);
  border-left: 1px solid var(--line-ink);
}
.stat .num {
  font-family: var(--font-head);
  font-stretch: 118%;
  font-size: clamp(2.8rem, 5.5vw, 4.4rem);
  font-weight: 640;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat .label {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); }
.why-item {
  position: relative;
  padding: 28px 0 0;
  border-top: 1px solid var(--ink);
}
.why-item::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 48px; height: 2px;
  background: var(--red);
  transition: width 0.5s var(--ease);
}
.why-item:hover::before { width: 100%; }
.why-item h3 { margin-bottom: 12px; }
.why-item p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Process ---------- */
.process-section { background: var(--grey-50); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.process-step {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--grey-200);
  border-radius: 0;
  padding: 24px 0 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}
.process-step::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.5s var(--ease);
}
.process-step:hover::before { width: 100%; }
.process-step .step-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--red);
  letter-spacing: 0.1em;
  margin-bottom: 40px;
  background: none;
  width: auto; height: auto;
  display: block;
  border-radius: 0;
}
.process-step h3 { margin-bottom: 10px; }
.process-step p { color: var(--muted); font-size: 0.94rem; }
.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(40px, 6vw, 64px);
  justify-content: center;
}
.proof-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--grey-200);
  border-radius: 100px;
  background: transparent;
  color: var(--grey-600);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  transition: var(--transition);
}
.proof-pill:hover { border-color: var(--ink); color: var(--ink); }
.proof-pill .diamond { width: 5px; height: 5px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 72px; height: 2px;
  background: var(--red);
}
.cta-band h2 {
  color: #fff;
  position: relative;
  z-index: 2;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}
.cta-band p {
  color: rgba(255, 255, 255, 0.62);
  max-width: 46ch;
  margin: 20px auto 36px;
  position: relative;
  z-index: 2;
  font-size: 1.06rem;
}
.cta-band .hero-cta { justify-content: center; position: relative; z-index: 2; }
.cta-band .btn-dark { background: var(--red); }
.cta-band .btn-dark:hover { background: #fff; color: var(--ink); }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: default;
  background: var(--ink);
}
.gallery-item.tall { grid-row: span 2; aspect-ratio: 4 / 6; }
.gallery-item .ph { height: 100%; width: 100%; }
.gallery-item img { transition: transform 0.9s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .tag {
  position: absolute;
  left: 0; bottom: 0; right: 0;
  background: linear-gradient(180deg, transparent, rgba(20, 21, 23, 0.82) 45%);
  color: #fff;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  padding: 40px 16px 14px;
  z-index: 2;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.45s var(--ease);
}
.gallery-item:hover .tag { opacity: 1; transform: translateY(0); }
@media (hover: none) {
  .gallery-item .tag { opacity: 1; transform: none; }
}
.gallery-item.pop { animation: gallery-pop 0.5s var(--ease) both; }
@keyframes gallery-pop {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(32px, 5vw, 48px);
  justify-content: center;
}
.filter-btn {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  padding: 10px 20px;
  border: 1px solid var(--grey-200);
  background: transparent;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--grey-600);
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Transport specs ---------- */
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.spec {
  text-align: left;
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.35s ease, box-shadow 0.45s var(--ease), transform 0.45s var(--ease);
}
.spec:hover { border-color: var(--grey-200); box-shadow: var(--shadow); transform: translateY(-3px); }
.spec .icon { color: var(--ink); margin-bottom: 18px; display: flex; justify-content: flex-start; transition: color var(--transition); }
.spec:hover .icon { color: var(--red); }
.spec .icon svg { width: 30px; height: 30px; }
.spec h3 { font-size: 1.02rem; }
.spec p { color: var(--muted); font-size: 0.92rem; margin-top: 8px; }

.material-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.material-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: transparent;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--ink);
  transition: padding-left 0.3s var(--ease);
}
.material-list li:hover { padding-left: 14px; }
.material-list li .diamond { width: 6px; height: 6px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 72px); align-items: start; }
.contact-info .info-item { display: flex; gap: 18px; margin-bottom: 30px; align-items: flex-start; }
.contact-info .info-item .ic {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--grey-200);
  color: var(--ink);
  border-radius: var(--radius);
  transition: var(--transition);
}
.contact-info .info-item:hover .ic { border-color: var(--red); color: var(--red); }
.contact-info .info-item .ic svg { width: 20px; height: 20px; }
.contact-info h3 { font-size: 1rem; margin-bottom: 5px; }
.contact-info a, .contact-info p { color: var(--muted); }
.contact-info a { transition: color var(--transition); }
.contact-info a:hover { color: var(--red); }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.66rem;
  font-weight: 500;
  margin-bottom: 9px;
  color: var(--grey-600);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.98rem;
  background: var(--paper);
  transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  color: var(--text);
  caret-color: var(--red);
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--grey-400); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 0 0 var(--red);
}
.field textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: 0.84rem; color: var(--muted); margin-top: 12px; }
.form-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 26px;
}
.form-trust span {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  background: var(--grey-50);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}
.form-trust .diamond { width: 5px; height: 5px; }

.map-embed {
  border: 0;
  width: 100%;
  height: 380px;
  border-radius: var(--radius);
  filter: grayscale(1) contrast(1.04);
  transition: filter 0.6s ease;
}
.map-embed:hover { filter: grayscale(0.15); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.62);
  padding: clamp(64px, 8vw, 96px) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: clamp(48px, 6vw, 72px);
}
.site-footer .brand img { height: 26px; margin-bottom: 22px; filter: brightness(0) invert(1); }
.site-footer p { color: rgba(255, 255, 255, 0.5); font-size: 0.92rem; max-width: 34ch; }
.footer-col h4 {
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.68rem;
  margin-bottom: 22px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.footer-col ul li { margin-bottom: 12px; }
.footer-col a {
  position: relative;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: color var(--transition), background-size 0.4s var(--ease);
  padding-bottom: 2px;
}
.footer-col a:hover { color: #fff; background-size: 100% 1px; }
.footer-contact li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.92rem;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.6);
}
.footer-contact .diamond { width: 5px; height: 5px; margin-top: 9px; }
.footer-bottom {
  border-top: 1px solid var(--line-ink);
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

/* ---------- Mobile conversion bar ---------- */
.mobile-cta-bar { display: none; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3, .why-grid, .gallery-grid, .spec-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .image-service-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.reverse .feature-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .flagship-split,
  .foundation-grid,
  .service-signature .container,
  .article-shell,
  .project-planner { grid-template-columns: 1fr; }
  .flagship-copy { max-width: none; }
  .process-mini { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .article-aside { position: static; }
}
@media (max-width: 720px) {
  body { padding-bottom: 76px; }
  /* Copy spans the full width on small screens, so the scrim can't open up as much on the right */
  .hero::before {
    background:
      linear-gradient(180deg, rgba(20, 21, 23, 0) 55%, rgba(20, 21, 23, 0.55) 100%),
      linear-gradient(90deg, rgba(20, 21, 23, 0.94) 0%, rgba(20, 21, 23, 0.84) 45%, rgba(20, 21, 23, 0.6) 100%);
  }
  .nav-links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 24px 26px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-130%);
    transition: transform 0.45s var(--ease);
    margin-left: 0;
    height: auto;
    z-index: 99;
  }
  .site-header:not(.is-scrolled) .nav-links { top: 76px; }
  .nav-links.open { transform: translateY(0); }
  .nav-links a {
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.02rem;
  }
  .hamburger { display: flex; }
  .nav-phone span.full { display: none; }
  .grid-3, .grid-2, .why-grid, .gallery-grid, .spec-grid, .blog-grid, .material-list, .form-row,
  .process-grid, .form-trust, .image-service-grid, .hero-proof-panel, .process-mini {
    grid-template-columns: 1fr;
  }
  .hero-proof-panel a + a { border-left: 0; border-top: 1px solid var(--line-ink); }
  .gallery-item.tall { grid-row: span 1; aspect-ratio: 4/3; }
  .stats { grid-template-columns: 1fr 1fr; gap: 40px 0; }
  .stat { padding-left: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero p { font-size: 1.04rem; }
  .kicker { font-size: 0.62rem; letter-spacing: 0.24em; }
  .form-card { padding: 26px 20px; }
  .process-step { min-height: 0; }
  .hero-proof-panel a, .hero-proof-panel div { min-height: 0; }
  .photo-stack { grid-template-columns: 1fr; grid-template-rows: auto; }
  .photo-stack img, .photo-stack img:first-child { grid-row: auto; aspect-ratio: 4 / 3; }
  .foundation-layer { grid-template-columns: 1fr; gap: 6px; }
  .signature-list li { grid-template-columns: 44px 1fr; gap: 16px; padding: 20px 2px; }
  .image-service-card { min-height: 280px; }
  .article-cta { padding: 26px 20px; }
  .mobile-cta-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 120;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(250, 249, 247, 0.92);
    border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
  .mobile-cta-bar a {
    min-height: 48px;
    padding: 12px;
    font-size: 0.72rem;
  }
}
@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
}

/* ---------- Page loader ---------- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--paper);
  transition:
    opacity 0.65s var(--ease-io),
    visibility 0s linear 0.65s;
}
.page-loader::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  transform-origin: left;
  animation: loader-line 1.4s var(--ease-io) both;
}
@keyframes loader-line {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.page-loader.loaded .loader-inner {
  transform: translateY(-14px);
  opacity: 0;
}
.loader-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 4.5vw, 44px);
  padding: 0 28px;
  transition:
    opacity 0.4s ease,
    transform 0.55s var(--ease);
}
.loader-logo {
  position: relative;
  width: clamp(200px, 40vw, 380px);
  line-height: 0;
  animation: loader-logo-in 0.9s var(--ease) both;
}
.loader-logo img { display: block; width: 100%; height: auto; }
.loader-logo__shine { display: none; }
@keyframes loader-logo-in {
  0%   { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* loading indicator — the logo's three diamonds, pulsing in sequence */
.loader-mark {
  width: clamp(40px, 6.5vw, 52px);
  height: auto;
  overflow: visible;
  margin-top: 4px;
}
.ld-dia {
  transform-box: fill-box;
  transform-origin: center;
  animation: diamond-pulse 1.5s var(--ease-io) infinite;
  stroke-width: 2;
  stroke-linejoin: round;
}
.ld-dia--black { fill: var(--ink); stroke: var(--ink); }
.ld-dia--red { fill: var(--red); stroke: var(--red); }
.ld-dia--top { animation-delay: 0s; }
.ld-dia--left { animation-delay: 0.16s; }
.ld-dia--bottom { animation-delay: 0.32s; }
@keyframes diamond-pulse {
  0%, 50%, 100% { opacity: 1; transform: scale(1); }
  22%           { opacity: 0.3; transform: scale(0.8); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .page-loader { transition: opacity 0.3s ease, visibility 0s linear 0.3s; }
  .ld-dia { animation: none; opacity: 1; transform: none; }
  body.is-loaded .h1-line-in,
  body.is-loaded .hero .kicker,
  body.is-loaded .hero-inner > p,
  body.is-loaded .hero-cta,
  body.is-loaded .hero-trust,
  body.is-loaded .hero-proof-panel,
  body.is-loaded .hero::after,
  body.is-loaded .hero-media img { animation: none; }
  .hero::after { transform: none; }
  .hero-media { will-change: auto; }
}
