/* =================================================================
   7 STAR CONSTRUCTION — Production stylesheet
   Design system carried over verbatim from the approved mockup,
   extended with responsive layout (>=1024 / 768-1023 / <768),
   clamp() display type, and JS-gated motion start-states.
   ================================================================= */

:root {
  /* Surfaces */
  --cream:        #F2EDE3;
  --cream-2:      #E8E1D2;
  --paper:        #FAF7F1;
  --ink:          #14130F;
  --ink-2:        #2A2823;
  --ink-3:        #56524A;
  --ink-4:        #8B8579;
  --line:         #D9D2C3;

  /* Accents */
  --amber:        #E8A833;
  --amber-deep:   #C58A1D;
  --terracotta:   #C24A2B;
  --moss:         #5C6B3F;
  --sky:          #B9CFD8;

  /* Type */
  --display: "Archivo Black", "Anton", Impact, sans-serif;
  --sans:    "Inter", -apple-system, "Helvetica Neue", sans-serif;
  --mono:    "JetBrains Mono", "SF Mono", ui-monospace, monospace;

  /* Geometry */
  --r-card: 28px;
  --r-pill: 999px;
  --r-tile: 18px;

  /* Layout */
  --maxw: 1440px;
  --gutter: clamp(16px, 3.5vw, 28px);
  --sp-section: clamp(56px, 8vw, 88px);
  --shadow-lift: 0 18px 40px rgba(20,19,15,0.12);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; }
a { color: inherit; }

/* ---------- LAYOUT PRIMITIVES ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { margin-top: var(--sp-section); }
.section--tight { margin-top: clamp(16px, 2.5vw, 24px); }

/* ---------- DISPLAY TYPE (clamped to the mockup px caps) ---------- */
.ss-display {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.88;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}
.ss-heading { font-family: var(--display); letter-spacing: -0.01em; }
.ss-body { color: var(--ink-2); line-height: 1.55; }

/* Sizes chosen so the longest single word of each headline can't outrun
   its container at ANY width (verified 360 → 2560). Pure clamp(), no
   per-breakpoint patches: the narrow end governs the ceiling. */
.d-232 { font-size: clamp(40px, 12.4vw, 212px); }
.d-192 { font-size: clamp(40px, 12vw, 184px); }
.d-168 { font-size: clamp(34px, 8.4vw, 124px); }
.d-120 { font-size: clamp(36px, 7.4vw, 112px); }
.d-96  { font-size: clamp(30px, 6.4vw, 90px); }
.d-88  { font-size: clamp(30px, 5.8vw, 82px); }
.d-80  { font-size: clamp(28px, 5.2vw, 74px); }
.d-64  { font-size: clamp(26px, 4.4vw, 60px); }
.d-56  { font-size: clamp(24px, 3.8vw, 52px); }
.d-48  { font-size: clamp(23px, 3.3vw, 46px); }
.d-44  { font-size: clamp(23px, 3vw, 42px); }

/* ---------- EYEBROW / LABELS ---------- */
.ss-eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ss-eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--amber);
  border-radius: 50%;
  flex-shrink: 0;
}
.ss-eyebrow.on-amber { color: var(--amber); }
.mono { font-family: var(--mono); }

/* ---------- LOGO ---------- */
.ss-logo { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.ss-logo .mark { display: inline-block; width: var(--logo-size, 32px); height: var(--logo-size, 32px); flex-shrink: 0; }
.ss-logo .word {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: 0.04em;
  font-size: var(--logo-text, 18px);
  line-height: 1;
}
.ss-logo .word small {
  display: block;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.45em;
  letter-spacing: 0.18em;
  margin-top: 3px;
  color: var(--ink-3);
}
.ss-logo.dark .word { color: var(--paper); }
.ss-logo.dark .word small { color: var(--ink-4); }

/* ---------- HEADER / NAV ---------- */
/* Fixed from first paint (no layout shift), hidden on scroll-down,
   revealed on scroll-up by toggling .nav-hidden from JS. */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-top: clamp(12px, 1.6vw, 20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.site-header.nav-hidden { transform: translateY(-140%); }
.nav-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 12px 12px 26px;
  background: rgba(250,247,241,0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-link {
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); font-weight: 600; }
.nav-link.active::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--paper);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Mobile slide-in menu (hamburger target; not in the static mock, added for responsive nav) */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--cream);
  transform: translateX(100%);
  transition: transform 0.42s cubic-bezier(0.16,1,0.3,1);
  display: flex;
  flex-direction: column;
  padding: 22px var(--gutter);
  visibility: hidden;
}
.mobile-menu.open { transform: translateX(0); visibility: visible; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu__close {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.mobile-menu__links { display: flex; flex-direction: column; gap: 4px; margin-top: 32px; }
.mobile-menu__links a {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(34px, 11vw, 52px);
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-menu__links a .ss-arrow-circle { opacity: 0; transition: opacity 0.2s; }
.mobile-menu__links a.active { color: var(--amber-deep); }
.mobile-menu__links a.active .ss-arrow-circle { opacity: 1; }
.mobile-menu__foot { margin-top: auto; display: grid; gap: 18px; padding-top: 24px; border-top: 1px solid var(--line); }
.mobile-menu__contact { display: grid; gap: 6px; font-size: 15px; }
.mobile-menu__contact a { text-decoration: none; font-weight: 600; }
.mobile-menu__contact .lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }
.mobile-menu__socials { display: flex; gap: 10px; }
body.menu-open { overflow: hidden; }

/* ---------- BUTTONS ---------- */
.ss-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--sans);
  color: var(--ink);
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}
.ss-btn:hover { transform: translateY(-2px); }
.ss-btn.dark  { background: var(--ink); color: var(--paper); }
.ss-btn.light { background: var(--paper); color: var(--ink); }
.ss-btn.amber { background: var(--amber); color: var(--ink); }
.ss-btn.ghost { background: transparent; color: var(--paper); border: 1px solid var(--ink-2); }
.ss-btn.block { width: 100%; justify-content: space-between; }
.ss-btn .arrow {
  width: 28px; height: 28px;
  background: var(--amber);
  border-radius: 50%;
  display: inline-flex;
  align-items: center; justify-content: center;
  color: var(--ink);
  flex-shrink: 0;
}
.ss-btn.amber .arrow { background: var(--ink); color: var(--amber); }
.ss-btn.dark .arrow,
.ss-btn.light .arrow { background: var(--amber); color: var(--ink); }

/* ---------- ARROW CIRCLES ---------- */
.ss-arrow-circle {
  width: 42px; height: 42px;
  background: var(--amber);
  border-radius: 50%;
  display: inline-flex;
  align-items: center; justify-content: center;
  color: var(--ink);
  flex-shrink: 0;
}
.ss-arrow-circle.lg { width: 56px; height: 56px; }
.ss-arrow-circle.sm { width: 32px; height: 32px; }
.ss-arrow-circle.outline { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.ss-arrow-circle.outline-light { background: transparent; border: 1px solid rgba(250,247,241,0.3); color: var(--paper); }

/* ---------- CARDS ---------- */
.ss-card {
  background: var(--paper);
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  overflow: hidden;
}
.ss-card.amber { background: var(--amber); border-color: var(--amber-deep); }
.ss-card.ink   { background: var(--ink); color: var(--paper); border-color: var(--ink-2); }

/* ---------- COVER IMAGE (replaces prototype background-image) ---------- */
.cover { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--ink-2), var(--ink)); }
.cover > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}
.cover > .overlay { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.cover > .on-image { position: relative; z-index: 2; }

/* ---------- TAGS / DOT / DIVIDER ---------- */
.ss-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--cream-2);
  border-radius: var(--r-pill);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.ss-tag.amber { background: var(--amber); color: var(--ink); border-color: var(--amber-deep); }
.ss-tag.ink   { background: var(--ink); color: var(--paper); border-color: transparent; }
.ss-tag.glass { background: rgba(250,247,241,0.12); color: var(--paper); border-color: rgba(250,247,241,0.25); }
.ss-tag.glass-dark { background: rgba(20,19,15,0.55); color: var(--paper); border-color: transparent; backdrop-filter: blur(6px); }

.ss-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); display: inline-block; flex-shrink: 0; }
.ss-divider { height: 1px; background: var(--line); width: 100%; border: 0; }

.ss-grid-bg {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
}

.social-badge {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-family: var(--mono); color: var(--paper);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.social-badge:hover { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.social-badge.light { border-color: var(--line); color: var(--ink); }

/* =================================================================
   HERO (Home)
   ================================================================= */
.hero-region { position: relative; margin-top: 20px; }
.hero {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  min-height: clamp(520px, 56vw, 820px);
}
.hero .hero-img { z-index: 0; }
.hero-vignette {
  background: linear-gradient(180deg, rgba(20,19,15,0.18) 0%, rgba(20,19,15,0) 30%, rgba(20,19,15,0) 58%, rgba(20,19,15,0.58) 100%);
}
.hero-head {
  position: absolute;
  top: clamp(86px, 9vw, 120px);
  left: clamp(18px, 3vw, 34px);
  right: clamp(18px, 3vw, 34px);
  z-index: 3;
  pointer-events: none;
}
.hero-head h1 { color: rgba(250,247,241,0.97); }
.hero-bottom {
  position: absolute;
  left: clamp(18px, 3vw, 34px);
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(20px, 3vw, 34px);
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.hero-bottom .blurb {
  color: rgba(250,247,241,0.92);
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.45;
  max-width: 460px;
  margin: 0 300px 0 0;
  font-weight: 500;
}
.hero-cta {
  padding: 8px 8px 8px 28px;
}
.hero-cta .arrow { width: 44px; height: 44px; }

/* floating cards */
.hero-cards {
  position: absolute;
  right: clamp(18px, 3vw, 34px);
  top: clamp(108px, 9vw, 130px);
  z-index: 4;
  display: grid;
  gap: 16px;
  width: 268px;
}
.hcard { padding: 18px; position: relative; }
.hcard__top { display: flex; justify-content: space-between; align-items: flex-start; }
.hcard h4 { margin: 8px 0 0; font-size: 18px; font-weight: 700; line-height: 1.15; font-family: var(--display); letter-spacing: -0.01em; }
.hcard .thumb { margin-top: 14px; height: 138px; border-radius: 16px; }
.hcard .dots { display: flex; gap: 6px; margin-top: 12px; }
.hcard .dots span { width: 6px; height: 4px; border-radius: 2px; background: var(--line); }
.hcard .dots span.on { width: 18px; background: var(--ink); }
.hcard--contact { display: flex; align-items: center; gap: 14px; }
.hcard__icon { width: 88px; height: 88px; border-radius: 14px; flex-shrink: 0; background: var(--ink); color: var(--amber); display: inline-flex; align-items: center; justify-content: center; }
.hcard--promise { display: flex; align-items: center; gap: 12px; }
.hcard--promise .lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-2); }
.hcard--promise strong { font-size: 15px; line-height: 1.25; display: block; margin-top: 4px; }

/* =================================================================
   STATS STRIP (Home)
   ================================================================= */
.stats {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  margin-top: clamp(24px, 3vw, 24px);
  padding: 32px 8px;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}
.stats__note p {
  font-family: var(--display);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.15;
  margin: 12px 0 0;
  max-width: 360px;
  letter-spacing: -0.01em;
}
.stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat .num { font-family: var(--display); font-weight: 900; letter-spacing: -0.02em; font-size: clamp(34px, 4vw, 56px); text-transform: uppercase; font-variant-numeric: tabular-nums; }
.stat .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-3); margin-top: 8px; }

/* =================================================================
   SECTION HEADER (shared)
   ================================================================= */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 40px; }
.sec-head__aside { max-width: 320px; padding-bottom: 16px; }
.sec-head h2 { margin-top: 16px; }

/* =================================================================
   SERVICES GRID (Home)
   ================================================================= */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc-card { display: flex; flex-direction: column; transition: transform 0.4s ease, box-shadow 0.4s ease; }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.svc-card .cover { height: 220px; }
.svc-card .cover img { transition: transform 0.6s ease; }
.svc-card:hover .cover img { transform: scale(1.06); }
.svc-card__body { padding: 24px; }
.svc-card__meta { display: flex; justify-content: space-between; align-items: flex-start; }
.svc-card__num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; color: var(--ink-3); }
.svc-card h3 { font-family: var(--display); font-size: clamp(22px, 2.1vw, 26px); font-weight: 800; margin: 14px 0 8px; letter-spacing: -0.01em; }
.svc-card p { font-size: 14px; color: var(--ink-3); margin: 0; line-height: 1.55; }
.svc-card.featured { background: var(--ink); color: var(--paper); border-color: var(--ink-2); }
.svc-card.featured .svc-card__num { color: var(--amber); }
.svc-card.featured .ss-arrow-circle { background: var(--amber); }
.svc-card.featured p { color: #B8B2A5; }

/* =================================================================
   FEATURED PROJECT (Home)
   ================================================================= */
.feat { position: relative; border-radius: var(--r-card); overflow: hidden; display: flex; }
.feat > .cover { position: absolute; inset: 0; }
.feat__grad { background: linear-gradient(90deg, rgba(20,19,15,0.78) 0%, rgba(20,19,15,0.35) 45%, rgba(20,19,15,0.1) 75%, rgba(20,19,15,0) 100%); }
.feat__inner { position: relative; z-index: 2; width: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: clamp(24px, 3.3vw, 48px); min-height: clamp(440px, 42vw, 560px); }
.feat__body { color: var(--paper); max-width: 540px; }
.feat__body h2 { color: var(--paper); margin: 18px 0; }
.feat__body p { font-size: 15px; line-height: 1.6; color: rgba(250,247,241,0.85); max-width: 460px; }
.feat__tags { display: flex; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.feat__foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
}
.feat__stats { display: flex; gap: 32px; flex-wrap: wrap; }
.kv .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; color: rgba(250,247,241,0.5); }
.kv .v { color: var(--paper); font-size: 16px; font-weight: 600; margin-top: 4px; }
.feat__nav { display: flex; gap: 8px; }
.round-btn { width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.round-btn.outline { border: 1px solid rgba(250,247,241,0.3); background: transparent; color: var(--paper); }
.round-btn.solid { border: none; background: var(--paper); color: var(--ink); }

/* =================================================================
   PROCESS (Home)
   ================================================================= */
.process { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.process__intro h2 { margin: 16px 0 24px; }
.process__intro p { font-size: 15px; max-width: 380px; }
.step { display: grid; grid-template-columns: 80px 1fr 40px; gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); align-items: center; }
.steps .step:last-child { border-bottom: 1px solid var(--line); }
.step__n { font-family: var(--display); font-weight: 900; font-size: clamp(34px, 3.6vw, 44px); color: var(--amber); }
.step h4 { margin: 0; font-size: clamp(19px, 1.8vw, 22px); font-weight: 700; letter-spacing: -0.01em; }
.step p { margin: 6px 0 0; color: var(--ink-3); font-size: 14px; line-height: 1.55; }

/* =================================================================
   TESTIMONIAL + SIDE CARDS (Home)
   ================================================================= */
.testi-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.testi { padding: clamp(28px, 3.4vw, 48px); display: flex; flex-direction: column; justify-content: space-between; min-height: 460px; }
.testi__quote-mark { font-family: var(--display); font-size: 120px; line-height: 0.8; color: var(--ink); }
.testi__quote { font-family: var(--display); font-size: clamp(24px, 3.2vw, 38px); line-height: 1.1; letter-spacing: -0.01em; color: var(--ink); margin-top: -32px; text-transform: none; }
.testi__person { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.testi__person .avatar { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.testi__person .name { font-weight: 700; font-size: 16px; }
.testi__person .loc { font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-2); }
.side-stack { display: grid; gap: 16px; }
.side-card { padding: 32px; display: flex; flex-direction: column; justify-content: space-between; min-height: 222px; }
.side-card h3 { font-family: var(--display); font-size: clamp(38px, 4vw, 48px); color: var(--paper); margin: 0 0 8px; text-transform: uppercase; letter-spacing: -0.02em; }
.side-card.ink p { color: #B8B2A5; margin: 0; font-size: 14px; }
.side-card .big-q { font-size: 20px; font-weight: 700; line-height: 1.25; margin: 0 0 16px; }
.side-card .ig-row { display: flex; gap: 8px; align-items: center; }

/* =================================================================
   CTA (Home / Services)
   ================================================================= */
.cta { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 64px); }
.cta__star { position: absolute; right: -40px; top: -40px; opacity: 0.08; z-index: 0; line-height: 0; }
.cta__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.cta__inner h2 { color: var(--paper); margin: 16px 0 24px; }
.cta__inner p { font-size: clamp(15px, 1.4vw, 17px); color: #B8B2A5; max-width: 460px; line-height: 1.55; }
.cta__actions { display: grid; gap: 12px; }
.cta__actions .ss-btn { padding: 20px 24px; font-size: 16px; justify-content: space-between; }
.cta__hours { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--ink-2); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-4); }

/* the slowly-rotating ghost star */
.ghost-spin { transform-origin: 50% 50%; animation: ghost-rotate 60s linear infinite; }

/* =================================================================
   SERVICES PAGE
   ================================================================= */
/* extra top padding clears the fixed header */
.page-hero { padding: clamp(116px, 11vw, 140px) 8px 40px; }
.svc-hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: end; }
.svc-hero h1 { margin: 24px 0 0; line-height: 0.85; }
.svc-hero__aside { padding-bottom: 16px; }
.svc-hero__aside p { font-size: clamp(15px, 1.4vw, 17px); line-height: 1.55; color: var(--ink-2); }
.chip-row { display: flex; gap: 8px; margin-top: 24px; flex-wrap: wrap; }

.svc-rows { display: grid; gap: 16px; }
.svc-row { display: grid; grid-template-columns: 1.2fr 1fr; min-height: 360px; }
.svc-row:nth-child(even) { grid-template-columns: 1fr 1.2fr; }
.svc-row .cover { min-height: 320px; }
.svc-row:nth-child(even) .cover { order: 1; }
.svc-row__body { padding: clamp(28px, 3.4vw, 48px); display: flex; flex-direction: column; justify-content: space-between; }
.svc-row__meta { display: flex; justify-content: space-between; align-items: flex-start; }
.svc-row__num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; color: var(--ink-3); }
.svc-row h2 { margin: 24px 0 4px; }
.svc-row__sub { font-family: var(--mono); font-size: 13px; letter-spacing: 0.05em; color: var(--ink-3); margin-bottom: 24px; }
.svc-row__desc { font-size: 15px; line-height: 1.55; color: var(--ink-3); margin: 0; max-width: 480px; }
.svc-row__bullets { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.svc-row__bullets li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--ink-2); }
.svc-row__bullets li::before { content: ""; margin-top: 6px; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.svc-row.accent { background: var(--ink); color: var(--paper); border-color: var(--ink-2); }
.svc-row.accent .svc-row__num,
.svc-row.accent .svc-row__sub { color: var(--amber); }
.svc-row.accent h2 { color: var(--paper); }
.svc-row.accent .svc-row__desc { color: #B8B2A5; }
.svc-row.accent .svc-row__bullets li { color: #D9D2C3; }

.proc-strip { padding: clamp(28px, 4vw, 48px); }
.proc-strip__grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: center; }
.proc-strip h2 { margin-top: 16px; color: var(--ink); }
.proc-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.proc-card { padding: 20px; background: var(--paper); border-radius: 16px; }
.proc-card .n { font-family: var(--display); font-size: 32px; color: var(--ink); }
.proc-card .t { font-size: 16px; font-weight: 700; margin-top: 12px; }
.proc-card .d { font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }

/* =================================================================
   PORTFOLIO PAGE
   ================================================================= */
.pf-hero h1 { margin: 24px 0 0; line-height: 0.85; }
.pf-hero__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.pf-hero__row p { font-size: clamp(15px, 1.4vw, 17px); line-height: 1.5; max-width: 460px; margin: 0; }
.pf-filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; max-width: 700px; }
.pf-filters .ss-btn { padding: 10px 16px; font-size: 13px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.pf-filters .ss-btn.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pf-filters .ss-btn .muted { opacity: 0.55; }
.mosaic .tile { will-change: transform; }

.pf-featured { position: relative; border-radius: var(--r-card); overflow: hidden; }
.pf-featured .cover { min-height: clamp(380px, 42vw, 600px); }
.pf-featured__grad { background: linear-gradient(180deg, rgba(20,19,15,0.05) 0%, rgba(20,19,15,0) 50%, rgba(20,19,15,0.7) 100%); }
.pf-featured__tags { position: absolute; top: clamp(18px, 2.2vw, 32px); left: clamp(18px, 2.2vw, 32px); display: flex; gap: 8px; z-index: 2; }
.pf-featured__foot { position: absolute; left: clamp(18px, 2.2vw, 32px); right: clamp(18px, 2.2vw, 32px); bottom: clamp(18px, 2.2vw, 32px); color: var(--paper); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; z-index: 2; }
.pf-featured__foot h2 { color: var(--paper); margin: 0; }
.pf-featured__kv { display: flex; gap: 32px; margin-top: 20px; flex-wrap: wrap; }

.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 260px; gap: 16px; }
.tile { position: relative; border-radius: 22px; overflow: hidden; cursor: pointer; grid-column: span 2; }
.tile.wide { grid-column: span 4; }
.tile.tall { grid-row: span 2; }
.tile .cover { position: absolute; inset: 0; }
.tile .cover img { transition: transform 0.7s ease; }
.tile:hover .cover img { transform: scale(1.05); }
.tile__grad { background: linear-gradient(180deg, rgba(20,19,15,0) 50%, rgba(20,19,15,0.75) 100%); }
.tile__cat { position: absolute; top: 14px; left: 14px; z-index: 3; }
.tile__arrow { position: absolute; top: 14px; right: 14px; z-index: 3; }
.tile__foot { position: absolute; left: 16px; right: 16px; bottom: 14px; color: var(--paper); display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; z-index: 3; }
.tile__foot h3 { margin: 0; font-family: var(--display); font-size: 22px; letter-spacing: -0.01em; line-height: 1.05; }
.tile.wide .tile__foot h3 { font-size: clamp(24px, 2.6vw, 32px); }
.tile__loc { font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em; color: rgba(250,247,241,0.7); margin-top: 6px; }
.tile__idx { font-family: var(--mono); font-size: 11px; color: rgba(250,247,241,0.7); }

.pf-numbers { padding: clamp(36px, 5vw, 64px); position: relative; overflow: hidden; }
.pf-numbers h2 { color: var(--paper); margin: 20px 0 48px; }
.num-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.num-cell { padding: 0 32px; border-right: 1px solid var(--ink-2); }
.num-cell:first-child { padding-left: 0; }
.num-cell:last-child { border-right: none; padding-right: 0; }
.num-cell .num { font-family: var(--display); font-size: clamp(48px, 6vw, 88px); color: var(--paper); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.num-cell .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--amber); margin-top: 8px; }

/* =================================================================
   ABOUT PAGE
   ================================================================= */
.about-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; }
.about-hero h1 { margin: 24px 0 0; line-height: 0.85; }
.about-hero__aside .lead { font-size: clamp(16px, 1.5vw, 18px); line-height: 1.55; margin-bottom: 24px; color: var(--ink-2); }
.about-hero__aside p.sub { font-size: 15px; color: var(--ink-3); }

.team-photo { position: relative; border-radius: var(--r-card); overflow: hidden; min-height: clamp(320px, 38vw, 540px); }
.team-photo__badge { position: absolute; left: clamp(16px, 2.2vw, 32px); bottom: clamp(16px, 2.2vw, 32px); background: var(--paper); border-radius: 20px; padding: 20px; display: flex; align-items: center; gap: 16px; max-width: 380px; z-index: 2; }
.team-photo__badge .lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: var(--ink-3); }
.team-photo__badge .v { font-size: 15px; font-weight: 600; margin-top: 4px; line-height: 1.35; }
.team-photo__pin { position: absolute; right: clamp(16px, 2.2vw, 32px); top: clamp(16px, 2.2vw, 32px); background: rgba(20,19,15,0.65); backdrop-filter: blur(8px); padding: 10px 16px; border-radius: 999px; color: var(--paper); font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; z-index: 2; }

.values { display: grid; grid-template-columns: 1fr 2.4fr; gap: 48px; }
.values h2 { margin-top: 16px; }
.values__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.value-card { padding: 32px; }
.value-card .n { font-family: var(--display); font-size: clamp(34px, 3.6vw, 44px); color: var(--amber); }
.value-card h3 { font-size: 22px; font-weight: 700; margin: 16px 0 8px; letter-spacing: -0.01em; }
.value-card p { color: var(--ink-3); font-size: 14px; line-height: 1.55; margin: 0; }

.timeline-card { padding: clamp(28px, 3.6vw, 48px); }
.timeline-card h2 { color: var(--paper); margin: 16px 0 40px; }
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; gap: 0; }
.timeline__line { position: absolute; left: 8px; right: 8px; top: 14px; height: 2px; background: var(--ink-2); }
.tl-item { position: relative; padding-top: 40px; padding-right: 12px; }
.tl-item .dot { position: absolute; left: 0; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); }
.tl-item.now .dot { background: var(--amber); }
.tl-item .yr { font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; color: var(--amber); }
.tl-item .t { font-size: 20px; font-weight: 700; color: var(--paper); margin-top: 6px; }
.tl-item p { color: #B8B2A5; font-size: 13px; line-height: 1.5; margin-top: 8px; max-width: 180px; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.person .cover { height: 280px; }
.person .cover img { transition: transform 0.6s ease; }
.person:hover .cover img { transform: scale(1.05); }
.person__body { padding: 20px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.person__body h4 { margin: 0; font-size: 18px; font-weight: 700; }
.person__body .role { font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; }

.certs { padding: clamp(28px, 3.6vw, 48px); }
.certs__grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: center; }
.certs h2 { margin-top: 16px; }
.cert-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cert { padding: 20px 16px; border: 1px solid var(--line); border-radius: 14px; display: flex; align-items: center; gap: 12px; }
.cert span.t { font-weight: 600; font-size: 14px; }

/* =================================================================
   CONTACT PAGE
   ================================================================= */
.contact-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: end; }
.contact-hero h1 { margin: 24px 0 0; line-height: 0.85; }
.contact-hero p { font-size: clamp(15px, 1.4vw, 17px); line-height: 1.55; color: var(--ink-2); padding-bottom: 16px; }

.contact-card { display: grid; grid-template-columns: 1.5fr 1fr; overflow: hidden; }
.contact-form { padding: clamp(28px, 4vw, 56px); }
.contact-form h2 { margin: 16px 0 32px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--ink-3); margin-bottom: 8px; text-transform: uppercase; }
.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  font-size: 15px;
  font-family: var(--sans);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 120px; border-radius: 16px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-4); }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(232,168,51,0.18); }
.form-block { margin-top: 24px; }
.form-block__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--ink-3); margin-bottom: 12px; text-transform: uppercase; }
.choice-row { display: flex; gap: 8px; flex-wrap: wrap; }
.choice {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.choice:hover { border-color: var(--ink-3); }
.choice.selected { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.form-note { font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-4); margin-top: 16px; text-align: center; }

.contact-side { background: var(--ink); color: var(--paper); padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; gap: 40px; }
.contact-side__star { position: absolute; right: -60px; bottom: -60px; opacity: 0.08; z-index: 0; line-height: 0; }
.contact-side__inner { position: relative; z-index: 2; }
.contact-side__block { margin-top: 32px; display: grid; gap: 24px; }
.contact-side .lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; color: var(--ink-4); }
.contact-side .big { font-size: 22px; font-weight: 700; margin-top: 8px; text-decoration: none; color: var(--paper); display: inline-block; }
.contact-side .med { font-size: 18px; font-weight: 600; margin-top: 8px; word-break: break-word; text-decoration: none; color: var(--paper); display: inline-block; }
.contact-side .sm { font-family: var(--mono); font-size: 11px; color: var(--ink-4); margin-top: 4px; }
.contact-side address { font-style: normal; font-size: 16px; margin-top: 8px; line-height: 1.5; }
.socials-list { display: grid; gap: 8px; margin-top: 16px; }
.social-link { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--ink-2); color: var(--paper); text-decoration: none; transition: border-color 0.2s ease, background 0.2s ease; }
.social-link:hover { border-color: var(--amber); }
.social-link .s { font-weight: 600; font-size: 14px; }
.social-link .h { font-family: var(--mono); font-size: 10px; color: var(--ink-4); letter-spacing: 0.1em; margin-top: 2px; }

.map-card { position: relative; height: 420px; border-radius: var(--r-card); overflow: hidden; }
.map-card svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-pin-card { position: absolute; left: clamp(16px, 2.2vw, 32px); top: clamp(16px, 2.2vw, 32px); background: var(--paper); padding: 16px 20px; border-radius: 16px; box-shadow: 0 8px 24px rgba(20,19,15,0.08); max-width: 280px; }
.map-pin-card .v { font-size: 18px; font-weight: 700; margin-top: 8px; }
.map-pin-card .a { font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-top: 6px; line-height: 1.5; }

.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; }
.faq-grid h2 { margin-top: 16px; }
.faq details { border-top: 1px solid var(--line); padding: 24px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; font-size: clamp(19px, 1.9vw, 22px); font-weight: 700; letter-spacing: -0.01em; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { color: var(--ink-3); margin: 16px 0 0; font-size: 15px; line-height: 1.6; }
.faq details[open] summary .ss-arrow-circle { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.faq summary .icon-plus { transition: transform 0.25s ease; }
.faq details[open] summary .icon-plus { transform: rotate(45deg); }

/* =================================================================
   GALLERY — masonry (columns keep every photo's natural shape, so
   portrait and landscape shots sit together with NO cropping)
   ================================================================= */
/* Columns are real flex children, NOT a CSS multi-column flow. That matters:
   inside `column-count`, browsers don't report intersection for the fragmented
   children — native loading="lazy" and IntersectionObserver both silently stop
   firing. Distributing photos into explicit columns keeps every tile a normal
   block box, so lazy-loading and scroll reveals work. */
.gal-masonry { display: flex; align-items: flex-start; gap: 16px; }
.gal-col { flex: 1 1 0%; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

.gal-item {
  display: block;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  background: var(--cream-2);
  border: 1px solid var(--line);
  cursor: zoom-in;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.gal-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
/* Reveal-on-scroll. `pre-reveal` is added by JS only once the observer
   is confirmed running, so photos stay visible if anything goes wrong. */
.gal-item.pre-reveal { opacity: 0; transform: translateY(22px); }
.gal-item.pre-reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.gal-item img {
  width: 100%;
  height: auto;          /* natural height — nothing is cropped */
  display: block;
  transition: transform 0.6s ease;
}
.gal-item:hover img { transform: scale(1.04); }

/* hover affordance: soft veil + amber expand button */
.gal-item__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,19,15,0) 55%, rgba(20,19,15,0.5) 100%);
  opacity: 0; transition: opacity 0.35s ease; pointer-events: none;
}
.gal-item:hover .gal-item__veil { opacity: 1; }
.gal-item__zoom {
  position: absolute; right: 14px; bottom: 14px;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.gal-item:hover .gal-item__zoom { opacity: 1; transform: translateY(0); }

/* Gallery teaser strip (Portfolio page). Uniform square tiles here on
   purpose — it's a decorative lead-in; the Gallery page itself shows
   every photo uncropped. 6 tiles so the grid is always even: 6/3/2. */
.gal-teaser { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.gal-teaser a {
  position: relative; display: block; aspect-ratio: 1 / 1;
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); background: var(--cream-2);
}
.gal-teaser img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.gal-teaser a:hover img { transform: scale(1.06); }
@media (max-width: 1023px) { .gal-teaser { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 479px)  { .gal-teaser { grid-template-columns: repeat(2, 1fr); } }

/* =================================================================
   LIGHTBOX
   ================================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(20,19,15,0.95);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 48px);
}
.lightbox.open { display: flex; }
.lightbox__stage { position: relative; max-width: 100%; max-height: 100%; display: flex; align-items: center; justify-content: center; }
.lightbox__img {
  max-width: min(92vw, 1400px);
  max-height: 84vh;
  width: auto; height: auto;
  object-fit: contain;
  display: block;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.lightbox__btn {
  position: absolute;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(250,247,241,0.28);
  background: rgba(20,19,15,0.55);
  color: var(--paper);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  z-index: 2;
}
.lightbox__btn:hover { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.lightbox__close { top: clamp(14px, 3vw, 28px); right: clamp(14px, 3vw, 28px); position: fixed; }
.lightbox__prev { left: clamp(10px, 3vw, 32px); top: 50%; transform: translateY(-50%); position: fixed; }
.lightbox__next { right: clamp(10px, 3vw, 32px); top: 50%; transform: translateY(-50%); position: fixed; }
.lightbox__counter {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: clamp(14px, 3vw, 28px);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em;
  color: rgba(250,247,241,0.75);
}
body.lightbox-open { overflow: hidden; }

/* Column COUNT is set in JS (it has to be, to distribute photos evenly);
   these only tune spacing. Keep the JS breakpoints in gallery.html in sync. */
@media (max-width: 767px) {
  .gal-masonry { gap: 12px; }
  .gal-col { gap: 12px; }
  .gal-item { border-radius: 18px; }
  .lightbox__btn { width: 44px; height: 44px; }
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
  .lightbox__img { max-height: 74vh; }
}

/* =================================================================
   FOOTER
   ================================================================= */
.site-footer { background: var(--ink); color: var(--paper); border-radius: 28px 28px 0 0; margin-top: 80px; padding: clamp(40px, 5vw, 64px) var(--gutter) 32px; }
.footer-inner { max-width: var(--maxw); margin-inline: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--ink-2); }
.footer-about p { margin-top: 20px; color: #B8B2A5; max-width: 320px; font-size: 14px; line-height: 1.6; }
.footer-socials { display: flex; gap: 10px; margin-top: 24px; }
.footer-col .ss-eyebrow { color: var(--ink-4); }
.footer-col ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; color: var(--line); font-size: 14px; }
.footer-col ul a { text-decoration: none; color: var(--line); transition: color 0.2s ease; }
.footer-col ul a:hover { color: var(--paper); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.1em; text-transform: uppercase; }
/* Staging disclaimer — small + muted but readable (AA contrast on the dark footer) */
.footer-disclaimer { max-width: 780px; margin: 26px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--ink-4); }

/* =================================================================
   MOTION — start states (only applied when JS is on via .js-anim,
   and disabled entirely under prefers-reduced-motion)
   ================================================================= */
/* Line masks are structural (always block + clipped) so multi-line
   headlines stack correctly even with JS off; only the lift is gated. */
.mask { display: block; overflow: hidden; }
.mask > span { display: block; }
.js-anim .reveal { opacity: 0; transform: translateY(26px); }
.js-anim .reveal-up { opacity: 0; transform: translateY(40px); }
.js-anim .reveal-right { opacity: 0; transform: translateX(48px); }
.js-anim .mask > span { transform: translateY(115%); }
.js-anim .kenburns img { transform: scale(1.08); }

@keyframes ghost-rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-anim .reveal,
  .js-anim .reveal-up,
  .js-anim .reveal-right,
  .js-anim .mask > span { opacity: 1 !important; transform: none !important; }
  .js-anim .kenburns img { transform: none !important; }
  .gal-item.pre-reveal { opacity: 1 !important; transform: none !important; }
  .ghost-spin { animation: none !important; }
  .ss-btn:hover, .svc-card:hover, .tile:hover .cover img,
  .person:hover .cover img, .svc-card:hover .cover img,
  .gal-item:hover, .gal-item:hover img { transform: none !important; }
  * { scroll-behavior: auto !important; }
}

/* =================================================================
   RESPONSIVE — Tablet (768–1023)
   ================================================================= */
@media (max-width: 1023px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header .nav-pill { padding: 10px 10px 10px 18px; }

  /* Home hero cards drop below the hero and stack */
  .hero-cards {
    position: static;
    width: auto;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 16px;
  }
  .hero-bottom .blurb { margin-right: 0; max-width: 360px; }

  .stats { grid-template-columns: repeat(4, 1fr); }
  .stats__note { grid-column: 1 / -1; }
  .stats .stat:nth-child(2) { border-left: none; padding-left: 0; }

  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: 1fr; gap: 28px; }
  .testi-grid { grid-template-columns: 1fr; }
  .testi { min-height: 0; }
  .side-stack { grid-template-columns: 1fr 1fr; }
  .cta__inner { grid-template-columns: 1fr; }

  .svc-hero { grid-template-columns: 1fr; }
  .svc-row, .svc-row:nth-child(even) { grid-template-columns: 1fr; }
  .svc-row .cover, .svc-row:nth-child(even) .cover { order: 0; min-height: 280px; }
  .proc-strip__grid { grid-template-columns: 1fr; gap: 28px; }
  .proc-cards { grid-template-columns: repeat(2, 1fr); }

  .pf-hero__row { flex-direction: column; align-items: flex-start; gap: 24px; }
  .pf-filters { justify-content: flex-start; max-width: none; }
  .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; }
  .tile.wide { grid-column: span 4; }
  .num-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .num-cell:nth-child(2) { border-right: none; padding-right: 0; }
  .num-cell:nth-child(3) { padding-left: 0; }

  .about-hero { grid-template-columns: 1fr; gap: 28px; }
  .values { grid-template-columns: 1fr; gap: 24px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .timeline__line { display: none; }
  .certs__grid { grid-template-columns: 1fr; gap: 28px; }
  .cert-list { grid-template-columns: repeat(2, 1fr); }

  .contact-hero { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 24px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* =================================================================
   RESPONSIVE — Phone (<768) — Home mobile mock is source of truth
   ================================================================= */
@media (max-width: 767px) {
  .hero-bottom { flex-direction: column; align-items: stretch; gap: 16px; }
  .hero-bottom .blurb { max-width: 260px; }
  .hero-cta { width: 100%; justify-content: space-between; }
  .hero-cards { grid-template-columns: 1fr; }

  .stats { grid-template-columns: 1fr 1fr; padding: 20px 8px; gap: 22px 16px; }
  .stats__note { display: none; } /* mobile mock leads with the number stats */
  .stat { padding-left: 0; border-left: none; }

  .sec-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .sec-head__aside { padding-bottom: 0; }

  /* Services become horizontal list cards (mobile mock) */
  .svc-grid { grid-template-columns: 1fr; gap: 12px; }
  .svc-card { flex-direction: row; align-items: center; padding: 14px; gap: 14px; }
  .svc-card .cover { width: 78px; height: 78px; border-radius: 14px; flex: none; }
  .svc-card__body { padding: 0; flex: 1; }
  .svc-card h3 { font-size: 19px; margin: 4px 0 0; }
  .svc-card p { display: none; }
  .svc-card .svc-card__cta { display: none; }

  .feat__body { max-width: none; }
  .feat__inner { min-height: 0; }
  .feat__grad { background: linear-gradient(180deg, rgba(20,19,15,0.22) 0%, rgba(20,19,15,0.05) 38%, rgba(20,19,15,0.82) 100%); }
  .feat__foot { flex-direction: column; align-items: flex-start; gap: 16px; }

  .side-stack { grid-template-columns: 1fr; }
  .cta__hours { flex-direction: column; gap: 8px; }

  .proc-cards { grid-template-columns: 1fr 1fr; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .tile.wide { grid-column: span 2; }
  .tile.tall { grid-row: span 1; }
  .tile__foot h3, .tile.wide .tile__foot h3 { font-size: 18px; }

  .team-grid { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .cert-list { grid-template-columns: 1fr; }

  .field-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; }

  /* Must still clear the fixed header (~78px tall on phones) — the desktop
     clamp above is overridden here, so this value has to stand on its own. */
  .page-hero { padding-top: 104px; }
}

@media (max-width: 420px) {
  .hero-cards { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  /* Tiny screens: keep just the logo + hamburger in the bar; the
     slide-in menu already carries the "Get a Quote" button. */
  .nav-actions .ss-btn { display: none; }
}
