/* ============================================================
   AIF CONSTRUCTION INC — Design System
   Bold architectural: cool near-black, crisp neutrals, sky-blue accent
   Type: Archivo (grotesque display+body) + Space Mono (technical labels)
   ============================================================ */

:root {
  /* Color — cool architectural neutrals (matches black+glass logo) */
  --ink:        oklch(0.17 0.006 255);   /* cool near-black */
  --ink-2:      oklch(0.23 0.008 255);
  --ink-3:      oklch(0.31 0.009 255);
  --paper:      oklch(0.985 0.002 255);  /* crisp near-white */
  --paper-2:    oklch(0.955 0.004 250);
  --stone:      oklch(0.90 0.006 250);
  --stone-2:    oklch(0.80 0.008 250);
  --muted:      oklch(0.48 0.012 252);
  --muted-on-dark: oklch(0.72 0.012 250);
  --line:       oklch(0.88 0.006 250);
  --line-dark:  oklch(0.32 0.009 255);

  /* Accent — sky-blue glass (from logo curtain wall) */
  --accent:       oklch(0.76 0.095 232);
  --accent-deep:  oklch(0.53 0.12 242);
  --accent-soft:  oklch(0.93 0.04 232);

  /* Type */
  --display: "Archivo", system-ui, sans-serif;
  --body:    "Archivo", system-ui, sans-serif;
  --mono:    "Space Mono", ui-monospace, monospace;

  /* Spacing rhythm — tightened for a practical contractor cadence */
  --section-y: clamp(56px, 6.5vw, 116px);
  --gutter: clamp(20px, 5vw, 88px);
  --maxw: 1320px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: 18px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }

/* ---------- Premium micro-details ---------- */
.nw { white-space: nowrap; }
a[href^="tel:"], a[href^="sms:"] { white-space: nowrap; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: 2px;
}
html { scrollbar-color: var(--stone-2) var(--paper); scrollbar-width: thin; }
body::-webkit-scrollbar { width: 10px; }
body::-webkit-scrollbar-track { background: var(--paper); }
body::-webkit-scrollbar-thumb {
  background: var(--stone-2);
  border-radius: 5px;
  border: 2px solid var(--paper);
}
section[id] { scroll-margin-top: 76px; }
main#top { scroll-margin-top: 76px; } /* skip-link jump lands below the sticky nav */
#quote { scroll-margin-top: 96px; }
@media (max-width: 620px) { #quote { scroll-margin-top: 84px; } }

/* ---------- Type primitives ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow.center::before { display: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.display {
  font-size: clamp(2.9rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.035em;
}
.h-section {
  font-size: clamp(2.1rem, 4.6vw, 4.2rem);
  letter-spacing: -0.03em;
  line-height: 1.06;
}
.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
  max-width: 56ch;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); position: relative; }
.section--paper2 {
  background:
    radial-gradient(120% 90% at 50% -10%, oklch(0.99 0.003 250) 0%, transparent 55%),
    linear-gradient(180deg, var(--paper-2) 0%, oklch(0.965 0.005 250) 100%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 1.05em 1.6em;
  border-radius: 2px;
  transition: transform .35s var(--ease), background .25s, color .25s, box-shadow .25s;
  position: relative;
  white-space: nowrap;
  justify-content: center;
  text-align: center;
}
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn:active { transform: scale(0.98); }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: var(--accent-deep); color: var(--paper); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--ink-2); }
.btn--ghost {
  border: 1.5px solid currentColor;
  color: var(--ink);
}
.btn--ghost.on-dark { color: var(--paper); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--ghost.on-dark:hover { background: var(--paper); color: var(--ink); }
.btn--lg { padding: 1.25em 2em; font-size: 1.05rem; }

/* ---------- Image placeholders ---------- */
.ph {
  --grid: oklch(0.84 0.008 250 / 0.6);
  --mark: oklch(0.46 0.02 250);
  position: relative;
  background:
    /* fine blueprint grid */
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 100% 34px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 34px 100%,
    /* soft diagonal sheen for depth */
    linear-gradient(120deg, oklch(0.94 0.006 250) 0%, var(--stone) 42%, oklch(0.86 0.01 250) 100%);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
/* corner crop-marks — architectural spec framing */
.ph::before {
  content: "";
  position: absolute;
  inset: 16px;
  pointer-events: none;
  background:
    linear-gradient(var(--mark), var(--mark)) left  top    / 18px 1.5px no-repeat,
    linear-gradient(var(--mark), var(--mark)) left  top    / 1.5px 18px no-repeat,
    linear-gradient(var(--mark), var(--mark)) right top    / 18px 1.5px no-repeat,
    linear-gradient(var(--mark), var(--mark)) right top    / 1.5px 18px no-repeat,
    linear-gradient(var(--mark), var(--mark)) left  bottom / 18px 1.5px no-repeat,
    linear-gradient(var(--mark), var(--mark)) left  bottom / 1.5px 18px no-repeat,
    linear-gradient(var(--mark), var(--mark)) right bottom / 18px 1.5px no-repeat,
    linear-gradient(var(--mark), var(--mark)) right bottom / 1.5px 18px no-repeat;
  opacity: 0.5;
}
.ph.on-dark {
  --grid: oklch(0.40 0.012 250 / 0.5);
  --mark: oklch(0.72 0.04 240);
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 100% 34px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 34px 100%,
    linear-gradient(120deg, oklch(0.26 0.01 252) 0%, var(--ink-2) 45%, oklch(0.2 0.008 255) 100%);
}
.ph::after {
  content: attr(data-label);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: oklch(0.985 0.002 255 / 0.9);
  backdrop-filter: blur(3px);
  padding: 7px 11px;
  margin: 16px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  max-width: calc(100% - 32px);
}
.ph.on-dark::after {
  color: var(--muted-on-dark);
  background: oklch(0.17 0.006 255 / 0.85);
  border-color: var(--line-dark);
  border-left-color: var(--accent);
}

/* ---------- Placeholder media drop-in ----------
   Images cover-fill the slot; the blueprint grid, crop marks and spec label
   hide automatically. Add class="has-media" as a fallback for browsers
   without :has() support. */
.ph > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.ph:has(> img)::before, .ph:has(> img)::after,
.ph.has-media::before, .ph.has-media::after { display: none; }

/* ============================================================
   TOP BAR + NAV
   ============================================================ */
.utility {
  background: var(--ink);
  color: var(--muted-on-dark);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}
.utility .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-block: 7px;
}
.utility-left { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.utility-left > span + span { border-left: 1px solid var(--line-dark); padding-left: 22px; }
@media (max-width: 1280px) {
  .utility-left .util-tagline { display: none; }
  .utility-left > span + span { border-left: none; padding-left: 0; }
}
.utility a:hover,
.utility a:focus-visible { color: var(--accent); }
.utility-right a { gap: 0.65em; }
.utility .dot { color: var(--accent); }

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(0.975 0.004 250 / 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.nav.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -22px oklch(0.18 0.006 255 / 0.5);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand .logo-mark {
  height: 38px;
  width: auto;
}
.brand-text {
  line-height: 1.05;
  padding-left: 13px;
  border-left: 1px solid var(--line);
}
.brand-text strong {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  display: block;
  white-space: nowrap;
}
.brand-text small {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  margin-right: 6px;
  flex-shrink: 0;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 2px;
  position: relative;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color .2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 4px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-phone {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.nav-phone:hover { color: var(--accent-deep); }
/* The Spanish phone label is substantially longer than the English action.
   Keep the primary quote CTA in the header and surface both numbers in the
   Spanish contact/menu surfaces instead of letting this auxiliary action
   force the desktop row outside its content edges. */
html[lang^="es"] .nav-phone { display: none; }
.nav-toggle { display: none; }

/* mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 28px var(--gutter);
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  transition: transform .5s var(--ease);
  visibility: hidden;
  /* the menu is taller than short viewports (landscape phones, 800px
     laptops) — it must scroll internally since body scroll is locked */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu.open { transform: translateY(0); visibility: visible; }
.mobile-menu .mm-top { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu .mm-top .brand .logo-mark { height: 40px; }
.mobile-menu nav {
  margin-top: 8vh;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mobile-menu nav a {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 9vw, 3.2rem);
  letter-spacing: -0.03em;
  padding-block: 10px;
  border-bottom: 1px solid var(--line-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-menu nav a .n { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); font-weight:400; }
.mm-foot { margin-top: auto; font-family: var(--mono); font-size: 0.75rem; color: var(--muted-on-dark); letter-spacing: 0.06em; }
.mm-foot a { color: var(--accent); }
.mobile-menu .mm-foot {
  max-width: 100%;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.mobile-menu .mm-foot a[href^="tel:"] { white-space: normal; }
.icon-x, .icon-burger { width: 26px; height: 26px; }
/* short viewports: compact the menu so everything fits without scrolling */
@media (max-height: 740px) {
  .mobile-menu nav { margin-top: 4vh; gap: 4px; }
  .mobile-menu nav a { font-size: clamp(1.4rem, 5.5vh, 2.4rem); padding-block: 7px; }
  .mm-quote { margin-top: 3vh; padding: 12px 18px; font-size: 1.15rem; }
  .mm-foot { padding-top: 14px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  /* fill one viewport minus a generous header budget, so the
     headline, CTA and trust strip stay visible without scrolling.
     Slightly conservative so the stat labels never clip. */
  min-height: min(850px, calc(100svh - 120px));
  display: flex;
  flex-direction: column;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media .ph { position: absolute; inset: 0; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(15 19 22 / 0.85), rgb(15 19 22 / 0.45) 60%, rgb(15 19 22 / 0.12)),
    linear-gradient(0deg, rgb(15 19 22 / 0.88), transparent 55%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  padding-top: clamp(40px, 5vw, 72px);
  padding-bottom: clamp(36px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero .eyebrow { color: var(--accent); }.hero h1 {
  margin-top: 24px;
  max-width: 18ch;
  font-size: clamp(2.65rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 1.04;
}
.legal-hero .eyebrow,
.cta .eyebrow {
  color: var(--accent);
}
.hero h1 .thin { font-weight: 400; opacity: 0.92; }
.hero-sub {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 30px;
  max-width: 760px;
}
.hero-sub p { font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: var(--stone); max-width: 47ch; line-height: 1.65; }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-clarifier { margin-top: 16px; font-size: 0.95rem; line-height: 1.5; color: var(--stone); max-width: 54ch; }

/* hero stat strip — glass scrim keeps stats legible over the tower */
.hero-stats {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line-dark);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: linear-gradient(180deg, oklch(0.17 0.006 255 / 0.35), oklch(0.17 0.006 255 / 0.62));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hero-stats .stat {
  padding: clamp(16px, 1.5vw, 22px) 20px;
  border-right: 1px solid var(--line-dark);
}
.hero-stats .stat:last-of-type { border-right: none; }
.stat .num {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.55rem, 2.5vw, 2.3rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--paper);
  font-variant-numeric: tabular-nums; /* steady width while counters run */
}
.stat .num .accent { color: var(--accent); }
.hero-rating {
  display: inline-flex;
  align-items: baseline;
  gap: 0.18em;
}
.hero-rating .rating-star { font-size: 0.82em; }
.google-maps-attribution {
  font-family: var(--body);
  font-style: normal;
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  color: #5e5e5e;
}
/* attribution sits at the caption's own weight — no brightness spike */
.hero-stats .google-maps-attribution {
  color: inherit;
  font-size: inherit;
  letter-spacing: inherit;
}
.hero-stats-source {
  grid-column: 1 / -1;
  margin: 0;
  padding: 6px 14px 7px;
  border-top: 1px solid var(--line-dark);
  color: oklch(0.62 0.01 250); /* ~4.8:1 on --ink: quiet but still AA */
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-align: right;
}
.stat .lbl {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  margin-top: 7px;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.sec-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: end;
  margin-bottom: clamp(34px, 4vw, 60px);
}
.sec-head .lede { justify-self: start; }
@media (max-width: 820px) { .sec-head { grid-template-columns: 1fr; gap: 20px; } }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
.about-media {
  position: relative;
  min-width: 0;
}
.about-media .ph.main { aspect-ratio: 4/3; }
.about-copy { min-width: 0; }
.about-media .badge {
  position: absolute;
  right: -18px;
  bottom: -18px;
  background: var(--accent);
  color: var(--ink);
  width: clamp(240px, 22vw, 270px);
  max-width: calc(100% - 16px);
  padding: 22px 24px;
  border-radius: 2px;
  box-shadow: 0 12px 30px -24px oklch(0.18 0.006 255 / 0.4);
}
.about-media .badge .big {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.5rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow-wrap: normal;
}
.about-media .badge .cap {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 8px;
  line-height: 1.3;
}
.about-copy h2 { margin: 18px 0 22px; font-size: clamp(2.1rem, 4vw, 3.6rem); }
.about-copy .lede { margin-bottom: 22px; }
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 30px 0;
  border-top: 1px solid var(--line);
}
.feature-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
}
.feature-list .fi-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent-deep);
  font-weight: 700;
}
.feature-list .google-maps-attribution { font-size: inherit; color: inherit; }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .about-media .ph.main { aspect-ratio: 16/10; }
}
@media (max-width: 560px) {
  .about-media .badge {
    right: 0;
    width: min(210px, calc(100% - 16px));
    max-width: none;
    padding: 16px;
  }
  .about-media .badge .big {
    font-size: 1.9rem;
  }
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service {
  background: var(--paper);
  padding: clamp(26px, 2.6vw, 40px);
  min-height: 264px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background .4s var(--ease), color .4s var(--ease);
  overflow: hidden;
}
.service .s-num {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  transition: color .4s;
  position: relative;
  z-index: 1;
}
.service h3 {
  font-size: 1.7rem;
  margin: 18px 0 16px; /* fixed offset so titles align across each row */
  line-height: 1;
  transition: color .4s;
  position: relative;
  z-index: 1;
}
.service p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 22px;
  transition: color .4s;
}
.service:hover { background: var(--ink); }
.service:hover .s-num { color: var(--accent); }
.service:hover h3 { color: var(--paper); }
.service:hover p { color: var(--stone); }
.service .s-glyph {
  position: absolute;
  right: 4px; top: -8px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 5.4rem;
  color: rgba(0, 0, 0, 0.05) !important;
  line-height: 1;
  letter-spacing: -0.05em;
  transition: color .4s;
  pointer-events: none;
}
.service:hover .s-glyph { color: rgba(255, 255, 255, 0.16) !important; }
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } .service{min-height:260px;} }

/* ============================================================
   PROJECTS / GALLERY
   ============================================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(150px, 16vw, 220px);
  gap: 14px;
}
.g-item { position: relative; overflow: hidden; border-radius: 2px; }
.g-item { transition: box-shadow .35s var(--ease); }
.g-item:hover { box-shadow: 0 18px 40px -26px oklch(0.35 0.02 250 / 0.5); }
.g-item .ph { position: absolute; inset: 0; transition: transform .8s var(--ease); }
.g-item:hover .ph { transform: scale(1.05); }
.g-item .meta {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background: linear-gradient(180deg, transparent 38%, oklch(0.18 0.006 255 / 0.82));
  opacity: 1;
  transition: opacity .4s;
}
/* Keep gallery labels above the fallback media treatment. */
.g-item .ph::after { display: none; }
.g-item .meta .cat {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.g-item .meta .ttl {
  font-family: var(--display);
  font-weight: 700;
  color: var(--paper);
  font-size: 1.25rem;
  margin-top: 4px;
}
.g-item .meta .g-scope {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  color: var(--stone-2);
  margin-top: 7px;
}
.g-a { grid-column: span 7; grid-row: span 2; }
.g-b { grid-column: span 5; grid-row: span 2; }
.g-c { grid-column: span 4; }
.g-d { grid-column: span 4; }
.g-e { grid-column: span 4; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .g-a, .g-b, .g-c, .g-d, .g-e { grid-row: auto; }
  .g-a, .g-b { grid-column: span 2; aspect-ratio: 16 / 10; }
  .g-c, .g-d, .g-e { grid-column: span 1; aspect-ratio: 4 / 5; }
  .g-item .meta { padding: 16px; }
}
@media (max-width: 460px) {
  .gallery { grid-template-columns: 1fr; gap: 12px; }
  .g-a, .g-b, .g-c, .g-d, .g-e { grid-column: span 1; aspect-ratio: 16 / 10; }
}

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews-top {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}
.rating-block { display: flex; align-items: center; gap: 18px; }
.rating-block .score { font-family: var(--display); font-weight: 800; font-size: 3rem; line-height: 1; letter-spacing: -0.03em; }
.stars { display: flex; gap: 3px; color: var(--accent-deep); }
.hero .stars { color: var(--accent); }
.stars svg { width: 20px; height: 20px; }
.rating-block .meta-r { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--muted); }
.rating-block .meta-r b { color: var(--ink); }

.reviews-track-wrap {
  position: relative;
  /* soft right-edge fade hints that the rail scrolls */
  -webkit-mask-image: linear-gradient(90deg, black 0%, black 93%, transparent 100%);
          mask-image: linear-gradient(90deg, black 0%, black 93%, transparent 100%);
}
.reviews-track {
  display: flex;
  gap: 18px;
  padding-bottom: 4px;
  /* scrollable in CSS so the rail works without JS */
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.reviews-track::-webkit-scrollbar { display: none; }
.reviews-track:focus-visible {
  /* The rail sits inside a masked fade, so its keyboard indicator must stay
     inside its own painted box instead of relying on a clipped outline. */
  outline: none;
  box-shadow: inset 0 0 0 3px var(--accent-deep);
  border-radius: 3px;
}
.reviews-track-wrap:has(.reviews-track:focus-visible) {
  -webkit-mask-image: none;
          mask-image: none;
}
.review-card { scroll-snap-align: start; }
.review-card {
  flex: 0 0 clamp(280px, 33.33%, 420px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 30px;
  display: flex;
  flex-direction: column;
}
.section--paper2 .review-card { background: var(--paper); }
.review-card .stars { margin-bottom: 16px; }
.review-card .quote {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink-2);
  flex: 1;
}
.review-card .quote::before { content: "“"; }
.review-card .quote::after { content: "”"; }
.review-card .who {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 13px;
}
.review-card .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  flex: none;
}
.review-card .who .nm { font-family: var(--display); font-weight: 700; font-size: 1rem; }
.review-card .who h3.nm { line-height: 1.25; letter-spacing: -0.01em; }
.review-card .who .dt { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); letter-spacing: 0.05em; }
.review-disclosure {
  margin: -18px 0 18px;
  max-width: 74ch;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}
.reviews-nav { display: flex; gap: 10px; }
/* The rail remains directly scrollable without JavaScript; script-only arrow
   controls appear only after their handlers initialize. */
html:not(.reviews-ready) .reviews-nav { display: none; }
.rnav {
  width: 52px; height: 52px;
  border: 1px solid var(--line);
  border-radius: 2px;
  display: grid;
  place-items: center;
  transition: background .25s, color .25s, border-color .25s;
}
.rnav:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.rnav svg { width: 22px; height: 22px; }
.rnav[disabled] { opacity: 0.35; cursor: default; }
.rnav[disabled]:hover { background: none; color: inherit; border-color: var(--line); }

/* ============================================================
   CTA
   ============================================================ */
.cta {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.cta-media { position: absolute; inset: 0; z-index: 0; }
.cta-media .ph { position: absolute; inset: 0; }
.cta-media::after { content:""; position:absolute; inset:0; background: oklch(0.18 0.006 255 / 0.82); }
.cta-inner { position: relative; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta-inner h2 { max-width: 18ch; margin: 22px 0; }
.cta-inner .lede { color: var(--stone); text-align: center; margin-inline: auto; }
/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: oklch(0.14 0.006 255); color: var(--muted-on-dark); padding-top: clamp(60px, 7vw, 96px); }
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 0.85fr 1.15fr 1.2fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-top > * { min-width: 0; }
.footer .brand .logo-mark { height: 40px; }
.footer .brand-text { border-left-color: var(--line-dark); }
.footer .brand-text small { color: var(--muted-on-dark); }
.footer-blurb { margin-top: 20px; max-width: 38ch; font-size: 0.98rem; line-height: 1.6; }
.footer .footer-h { font-family: var(--mono); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone-2); margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a:hover, .footer-contact a:hover { color: var(--accent); }
.footer-contact { display: flex; flex-direction: column; gap: 12px; font-size: 0.98rem; }
.footer-contact a[href^="tel:"] { white-space: normal; }
.footer-contact .big { font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--paper); }
.footer-visit { display: flex; flex-direction: column; gap: 11px; font-size: 0.95rem; line-height: 1.45; }
.footer-visit .fv-line b { color: var(--stone-2); font-weight: 700; }
.footer-visit .fv-pay { color: var(--stone-2); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding-block: 28px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}
.footer-bottom .lic { display: inline-flex; gap: 10px; align-items: center; }
.footer-bottom .lic b { color: var(--accent); }
.footer-bottom a:hover { color: var(--accent); }
.footer-bottom a[href^="tel:"] { white-space: normal; }
@media (max-width: 1120px){ .footer-top{grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);} .footer .brand-col{grid-column:1/-1;} }
@media (max-width: 560px){ .footer-top{grid-template-columns:1fr;} }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
/* Reveal-on-scroll: hidden state applies only after that enhancement has
   initialized. Content remains visible if the behavior bundle fails. */
html.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
html.reveal-ready .reveal.in { opacity: 1; transform: none; }
html.reveal-ready .reveal[data-d="1"] { transition-delay: .08s; }
html.reveal-ready .reveal[data-d="2"] { transition-delay: .16s; }
html.reveal-ready .reveal[data-d="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html.reveal-ready .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE NAV
   ============================================================ */
/* The header runs on a wider canvas than the sections. Its four links,
   phone, and CTA fit at 1280px and above; the hamburger takes over on
   narrower viewports. */
.utility .wrap, .nav .wrap { max-width: 1560px; }
.nav .wrap { gap: 14px; }
.nav-links { margin-right: 0; }
.nav-links a { padding: 8px 9px; font-size: 0.92rem; }
.nav-links a::after { left: 9px; right: 9px; }
@media (max-width: 1279px) {
  html:not(.nav-ready) .nav .wrap { flex-wrap: wrap; }
  html:not(.nav-ready) .nav-links {
    display: flex;
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  html:not(.nav-ready) .nav-links a { white-space: nowrap; }
  html.nav-ready .nav-links { display: none; }
  html.nav-ready .nav-toggle {
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    border: 1px solid var(--line);
    border-radius: 2px;
  }
  .utility-left .util-tagline { display: none; }
  .utility-left > span + span { border-left: none; padding-left: 0; }
}
/* Spanish navigation labels and actions need a wider compact range. The
   complete desktop row returns at 1440px, where it fits without clipping. */
@media (max-width: 1439px) {
  html[lang^="es"]:not(.nav-ready) .nav .wrap { flex-wrap: wrap; }
  html[lang^="es"]:not(.nav-ready) .nav-links {
    display: flex;
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  html[lang^="es"]:not(.nav-ready) .nav-links a { white-space: nowrap; }
  html[lang^="es"].nav-ready .nav-links { display: none; }
  html[lang^="es"].nav-ready .nav-toggle {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 2px;
  }
}
@media (max-width: 820px) {
  .nav-phone { display: none; }
  .nav .brand-text small { display: none; }
}
@media (max-width: 760px) {
  .nav-cta .btn--accent { display: none; }
}
@media (max-width: 620px) {
  /* Proper mobile header: logo left, hamburger right — nothing else */
  .nav .wrap { padding-block: 10px; }
  .brand .logo-mark { height: 34px; }
  .nav-phone { display: none; }
  .brand-text small { display: none; }
  .util-licdesc { display: none; }
  .utility { font-size: 0.7rem; }
  .utility .wrap { padding-block: 6px; }
}
@media (max-width: 390px) {
  .utility .wrap {
    flex-wrap: nowrap;
    gap: 10px;
  }
  .utility-left {
    min-width: 0;
    flex-wrap: nowrap;
  }
  .utility .util-lic,
  .utility-right,
  .utility-right a { white-space: nowrap; }
  .utility-right { flex: none; }
  .utility-right a > span:first-child,
  .utility-right .dot { display: none; }
}
@media (max-width: 350px) {
  .nav .brand-text { display: none; }
}

/* ============================================================
   MOBILE STICKY ACTION BAR
   ============================================================ */
.mobile-cta-bar { display: none; }
@media (max-width: 760px), (max-height: 500px) and (pointer: coarse) {
  .mobile-cta-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 150;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.6fr);
    gap: 1px;
    background: var(--line-dark);
    border-top: 1px solid var(--line-dark);
    box-shadow: 0 -10px 30px -16px oklch(0.17 0.006 255 / 0.7);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .mcb {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 60px;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--display);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.01em;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
    line-height: 1.2;
  }
  .mcb svg { width: 19px; height: 19px; }
  .mcb--quote {
    flex-direction: row;
    gap: 8px;
    background: var(--accent);
    color: var(--ink);
    font-size: 0.95rem;
    white-space: normal;
  }
  .mcb--quote:active { background: var(--accent-deep); color: var(--paper); }
  /* two-action variant (ES page: Llamar / Cotización) */
  .mobile-cta-bar--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
  /* keep the footer / last section clear of the fixed bar —
     only on pages that actually have the bar */
  body:has(.mobile-cta-bar) { padding-bottom: 60px; }
  body:has(.mobile-cta-bar) .mobile-menu { padding-bottom: calc(28px + 60px); }
}
@media (max-width: 560px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats .stat:nth-child(2){ border-right: none; }
  .hero-stats .stat { padding-bottom: 18px; border-bottom: 1px solid var(--line-dark); }
  .reviews-top { flex-direction: column; align-items: flex-start; }
  /* mobile hero — surface proof above the fold, single dominant CTA */
  .hero-clarifier { display: none; }
  /* …except where the clarifier is essential relationship or language context */
  .hero-clarifier--keep { display: block; font-size: 0.9rem; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-actions .btn--ghost { display: inline-flex; }
  .hero h1 { font-size: clamp(2.55rem, 10.3vw, 3.3rem); }
  .reviews-actions { width: 100%; }
  .reviews-actions .btn { width: 100%; justify-content: center; }
  .reviews-duo + .reveal {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .reviews-duo + .reveal .btn {
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }
}
@media (max-width: 360px) {
  .btn--lg {
    padding-inline: 1rem;
    font-size: 0.9rem;
  }
}

/* ============================================================
   POP — blue glass curtain-wall accents (echoes the logo)
   ============================================================ */

/* Hero: glazed curtain-wall tower — the AIF logo motif, built with depth.
   Layered backgrounds = vertical mullions + horizontal floor plates +
   glass gradient; a perspective tilt + reflection sweep read it as a
   real glazed facade rather than a flat blue rectangle. */
.hero-glass {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  top: -12%;
  bottom: -12%;
  right: clamp(2%, 6vw, 9%);
  width: clamp(170px, 19vw, 290px);
  clip-path: polygon(0 0, 100% 4%, 100% 96%, 0 100%);
  background:
    /* bright accent floor plates every 5th floor */
    repeating-linear-gradient(0deg, oklch(0.92 0.06 225 / 0.4) 0 2px, transparent 2px 320px),
    /* standard floor plates */
    repeating-linear-gradient(0deg, oklch(1 0 0 / 0.16) 0 1px, transparent 1px 64px),
    /* vertical mullions */
    repeating-linear-gradient(90deg, oklch(1 0 0 / 0.18) 0 1px, transparent 1px 32px),
    /* glass body — sky reflection top, deep blue base */
    linear-gradient(158deg,
      oklch(0.9 0.07 222 / 0.95) 0%,
      oklch(0.7 0.11 234 / 0.85) 38%,
      oklch(0.52 0.13 244 / 0.8) 72%,
      oklch(0.4 0.12 248 / 0.82) 100%);
  box-shadow:
    0 40px 120px -20px oklch(0.5 0.13 245 / 0.7),
    0 0 130px -8px oklch(0.7 0.12 235 / 0.5),
    inset 0 0 70px -12px oklch(1 0 0 / 0.35),
    inset 2px 0 0 0 oklch(1 0 0 / 0.4);
  transform: perspective(1500px) rotateY(-9deg);
  transform-origin: right center;
  opacity: 0.36; /* softer brand echo; the project photo remains primary */
  animation: none;
}
/* sky-reflection band near the top + a couple of lit floors */
.hero-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, oklch(1 0 0 / 0.28) 0%, transparent 18%),
    linear-gradient(180deg, transparent 0, transparent 100%);
  pointer-events: none;
}
/* diagonal reflection sweep — the glint that sells the glass */
.hero-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg,
    transparent 30%,
    oklch(1 0 0 / 0.3) 44%,
    oklch(1 0 0 / 0.05) 50%,
    transparent 58%,
    transparent 80%,
    oklch(1 0 0 / 0.12) 92%);
  mix-blend-mode: screen;
}
@keyframes glassFloat {
  from { transform: perspective(1500px) rotateY(-9deg) translateY(0); }
  to   { transform: perspective(1500px) rotateY(-9deg) translateY(-16px); }
}
@media (max-width: 980px) { .hero-glass { opacity: 0.27; right: -6%; } }
@media (max-width: 820px) { .hero-glass { display: none; } }
/* Below the tower breakpoint the hero background is a flat dark panel, so
   the tall min-height + vertical centering just produces dead space on
   taller phones/tablets. Let the hero be content-driven instead. */
@media (max-width: 820px) {
  .hero { min-height: 0; }
  .hero-inner {
    flex: 0 0 auto;
    justify-content: flex-start;
    padding-top: clamp(22px, 5vw, 40px);
    padding-bottom: clamp(24px, 5vw, 38px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-glass { animation: none; transform: perspective(1500px) rotateY(-9deg); }
}

.hero h1 .hl {
  color: var(--accent);
}

/* All hero stat numbers in glass blue for pop */
.hero-stats .stat .num { color: var(--accent); }

/* Primary buttons: glass glow */
.btn--accent {
  box-shadow: none;
}
.btn--accent:hover {
  box-shadow: 0 8px 24px -16px rgb(0 0 0 / 0.3);
  transform: translateY(-2px);
}

/* Blueprint grid texture across the dark contact section. */
.cta { position: relative; overflow: hidden; }
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right,  oklch(0.76 0.095 232 / 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(0.76 0.095 232 / 0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(120% 90% at 80% 20%, black, transparent 75%);
          mask-image: radial-gradient(120% 90% at 80% 20%, black, transparent 75%);
}
/* Eyebrow accent glow on dark sections */
.hero .eyebrow::before,
.cta .eyebrow::before { box-shadow: 0 0 12px oklch(0.7 0.12 235 / 0.8); }

/* Gallery: blue glint on featured + hover ring */
.g-item { transition: box-shadow .4s var(--ease); }
.g-item:hover { box-shadow: 0 0 0 2px var(--accent), 0 24px 50px -24px oklch(0.66 0.12 238 / 0.5); }
.g-item .meta .cat { text-shadow: 0 0 18px oklch(0.7 0.12 235 / 0.8); }

/* CTA blue glow needs to sit above the grid texture */
.cta::before { z-index: 0; }
.cta-media { z-index: 0; }
/* Service: blue top reveal on hover */
.service::before {
  content: "";
  position: absolute;
  left: 0; top: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.service:hover::before { transform: scaleX(1); }

/* Section eyebrow: small glass square bullet on light sections */
.s-num, .fi-num { text-shadow: 0 0 14px oklch(0.7 0.12 235 / 0.25); }

/* ============================================================
   CONTACT CARDS + QUOTE FORM (in CTA)
   ============================================================ */
.contact-layout {
  width: 100%;
  max-width: 1060px;
  margin: clamp(36px, 4vw, 56px) auto 0;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(18px, 2.2vw, 28px);
  text-align: left;
  align-items: start; /* cards size to content — no stretched hollow middles */
}
.contact-layout > *,
.quote-form > *,
.qf-grid2 > *,
.qf-more-body,
.qf-choice,
.qf-opts,
.qf-opts label { min-width: 0; }
.contact-roles { display: flex; flex-direction: column; gap: 16px; }
.cc {
  background: oklch(0.19 0.012 255 / 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.cc--accent {
  border-color: oklch(0.76 0.095 232 / 0.55);
}
.cc-role {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}
.cc--accent .cc-role { color: var(--accent); }
.cc-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin: 7px 0 3px;
}
.cc-sub {
  font-size: 0.92rem;
  color: var(--stone);
  line-height: 1.35;
  margin-bottom: 13px;
}
.cc--accent .cc-sub { margin-bottom: 7px; }
.cc-intake {
  font-size: 0.86rem;
  color: var(--stone);
  line-height: 1.35;
  margin-bottom: 14px;
}
.cc-lines { display: flex; flex-direction: column; gap: 3px; margin-top: auto; }
.cc-line {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--paper);
  transition: color .2s;
}
.cc-line.sm { font-size: 0.92rem; font-weight: 600; color: var(--stone); }
.cc-line:not(.sm) {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.cc-line.sm { display: block; overflow-wrap: anywhere; }
.qf-phone-link { color: var(--accent); font-weight: 600; text-decoration: underline; }
.qf-head .qf-phone-link { white-space: normal; }
.qf-phone-link:hover { color: var(--paper); }
.qf-required {
  margin-left: 0.35em;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.cc-line:hover { color: var(--accent); }
.cc-tag {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}

/* quote form */
.quote-form {
  background: oklch(0.18 0.012 255 / 0.97);
  backdrop-filter: none;
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  padding: clamp(22px, 2.4vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.qf-head h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.qf-head p { font-size: 0.92rem; color: var(--stone); margin-top: 8px; line-height: 1.5; }
.qf-success {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  padding: 28px 0;
  scroll-margin-block: 110px;
}
.qf-success:focus { outline: none; }
.qf-success-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 1.8rem;
}
.qf-success h3 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; color: var(--paper); }
.qf-success p { max-width: 42ch; color: var(--stone); line-height: 1.65; }

.qf-field { display: flex; flex-direction: column; gap: 6px; }
.qf-field > span, .qf-choice legend {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}
.qf-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--paper);
  background: oklch(0.16 0.008 255 / 0.85);
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  padding: 11px 13px;
  transition: border-color .2s, box-shadow .2s;
}
.quote-form textarea { resize: vertical; min-height: 70px; }
.quote-form select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 18px) center, calc(100% - 13px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
.quote-form input::placeholder,
.quote-form textarea::placeholder { color: var(--muted-on-dark); }
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px oklch(0.66 0.12 238 / 0.25);
}
.qf-choice { min-inline-size: 0; border: none; padding: 0; }
.qf-opts { display: flex; gap: 8px; margin-top: 7px; flex-wrap: wrap; }
.qf-opts label {
  position: relative;
  flex: 1;
  min-width: 64px;
}
.qf-opts input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.qf-opts span {
  display: block;
  text-align: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--stone);
  padding: 9px 6px;
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  background: oklch(0.16 0.008 255 / 0.7);
  transition: all .2s;
  cursor: pointer;
}
.qf-opts input:checked + span {
  color: var(--ink);
  background: var(--accent);
  border-color: var(--accent);
}
.qf-opts input:focus-visible + span { box-shadow: 0 0 0 3px oklch(0.66 0.12 238 / 0.3); }
.qf-submit { margin-top: 4px; justify-content: center; }
.qf-consent {
  font-family: var(--mono);
  font-size: 0.62rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--muted-on-dark);
  text-align: center;
}
.qf-consent a { color: var(--accent); text-decoration: underline; font-weight: 700; }
.qf-hp { position: absolute !important; left: -9999px !important; opacity: 0 !important; pointer-events: none; }
.qf-note.ok { color: var(--accent); }
.qf-note.err { color: oklch(0.72 0.15 35); }
.qf-note {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--accent);
  line-height: 1.45;
  min-height: 0;
}
.qf-note.show { margin-top: 2px; }
@media (max-width: 860px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .contact-layout .quote-form { order: -1; }
  .contact-layout .contact-roles { order: 0; }
}
@media (min-width: 861px) and (max-width: 1100px) {
  .qf-grid2:has(> .qf-choice) { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .qf-grid2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 360px) {
  .cc,
  .quote-form { padding-inline: 18px; }
  .cc-line:not(.sm) { font-size: 0.84rem; }
}

/* ============================================================
   CAPABILITIES — TWO DIVISIONS
   ============================================================ */
.service-visuals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 14px);
  margin-bottom: clamp(44px, 6vw, 76px);
}
.service-visual {
  position: relative;
  min-width: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 3px;
  background: var(--ink);
}
.service-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.service-visual:hover img { transform: scale(1.05); }
.service-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, oklch(0.13 0.008 255 / .86));
  pointer-events: none;
}
.service-visual figcaption {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
  bottom: 16px;
  font-family: var(--display);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 700;
  color: var(--paper);
}
.service-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  background: var(--line);
}
.service-summary-grid article {
  min-width: 0;
  position: relative;
  padding: clamp(22px, 2.6vw, 34px);
  background: var(--paper);
  transition: background .3s var(--ease);
}
.service-summary-grid article::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.service-summary-grid article:hover { background: var(--paper-2); }
.service-summary-grid article:hover::after { transform: scaleX(1); }
.service-summary-grid .s-num {
  display: block;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--accent-deep);
}
.service-summary-grid h3 {
  margin-bottom: 10px;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}
.service-summary-grid p {
  color: var(--muted);
  line-height: 1.55;
}
@media (max-width: 920px) {
  .service-visuals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .service-summary-grid { grid-template-columns: minmax(0, 1fr); }
  .service-visuals { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 32px; }
  .service-visual { aspect-ratio: 4 / 5; }
  .service-visual figcaption { left: 12px; right: 12px; bottom: 12px; line-height: 1.35; }
}
/* ============================================================
   FOOTER — blueprint grid accent (motif)
   ============================================================ */
.footer { position: relative; overflow: hidden; }
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right,  oklch(0.76 0.095 232 / 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(0.76 0.095 232 / 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(100% 80% at 12% 0%, black, transparent 70%);
          mask-image: radial-gradient(100% 80% at 12% 0%, black, transparent 70%);
}
.footer .wrap { position: relative; z-index: 1; }

/* ============================================================
   LEGAL / PRIVACY PAGE
   ============================================================ */
.legal-hero {
  background: var(--ink);
  color: var(--paper);
  padding-top: clamp(40px, 6vw, 70px);
  padding-bottom: clamp(40px, 6vw, 70px);
  position: relative;
  overflow: hidden;
}
.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right,  oklch(0.76 0.095 232 / 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(0.76 0.095 232 / 0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(120% 90% at 85% 15%, black, transparent 75%);
          mask-image: radial-gradient(120% 90% at 85% 15%, black, transparent 75%);
}
.legal-hero .wrap { position: relative; z-index: 1; }
.legal-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.03em; margin-top: 16px; }
.legal-hero .updated { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-on-dark); margin-top: 16px; }
.legal-body { padding-block: clamp(48px, 6vw, 88px); }
.legal-body .wrap { max-width: 800px; }
.legal-body h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  letter-spacing: -0.02em;
  margin: 44px 0 14px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { font-size: 1.02rem; line-height: 1.65; color: var(--ink-2); }
.legal-body p { margin-bottom: 16px; }
.legal-body ul { margin: 0 0 18px; padding-left: 0; display: flex; flex-direction: column; gap: 9px; }
.legal-body li { position: relative; padding-left: 22px; }
.legal-body li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 7px; height: 7px;
  background: var(--accent);
  transform: rotate(45deg);
}
.legal-body a { color: var(--accent-deep); font-weight: 600; }
.legal-body a:hover { color: var(--accent-deep); text-decoration-thickness: 2px; }
.legal-body a.btn--accent { color: var(--ink); }
.legal-body a.btn--accent:hover { color: var(--paper); }
.legal-body a.btn--ink,
.legal-body a.btn--ink:hover { color: var(--paper); }
.legal-body a.btn--ghost { color: var(--ink); }
.legal-body a.btn--ghost:hover { color: var(--paper); }
.legal-hero .lede { color: var(--stone); }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ============================================================
   AUDIT POLISH PASS — added components & utilities
   ============================================================ */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 400; }
.skip-link:focus { left: 16px; top: 16px; background: var(--accent); color: var(--ink); padding: 10px 16px; border-radius: 3px; font-family: var(--display); font-weight: 700; text-decoration: none; }

/* mobile menu primary CTA */
.mm-quote { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 5vh; padding: 16px 20px; background: var(--accent); color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.4rem; border-radius: 3px; text-decoration: none; }
.mm-quote .n { color: var(--ink); font-family: var(--display); }
.mm-quote:active { background: var(--accent-deep); color: var(--paper); }

/* quote form — reassurance + progressive disclosure */
.qf-reassure { margin-top: 8px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.02em; color: var(--accent-deep); }
.qf-hint { margin: 4px 0 2px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.02em; color: var(--muted-on-dark); }
.legal-body .qf-hint { color: var(--muted-on-dark); }
.cc-elabel { display: block; color: var(--muted-on-dark); font-weight: 700; }
.qf-more { margin: 2px 0; border: 1px solid var(--line-dark); border-radius: 4px; background: oklch(0.16 0.008 255 / 0.7); }
.qf-more > summary { cursor: pointer; list-style: none; padding: 13px 16px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone); display: flex; align-items: center; gap: 10px; }
.qf-more > summary::-webkit-details-marker { display: none; }
.qf-more > summary::before { content: "+"; font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--accent); line-height: 1; }
.qf-more[open] > summary::before { content: "\2013"; }
.qf-more-tag { margin-left: auto; color: var(--accent); }
/* Smooth the optional-details expansion so the section (and its cover
   photo) grows fluidly instead of jumping. Browsers without
   interpolate-size keep the instant toggle. */
@supports (interpolate-size: allow-keywords) {
  .qf-more { interpolate-size: allow-keywords; }
  .qf-more::details-content {
    block-size: 0;
    overflow-y: clip;
    transition: block-size .45s var(--ease), content-visibility .45s allow-discrete;
  }
  .qf-more[open]::details-content { block-size: auto; }
  @media (prefers-reduced-motion: reduce) {
    .qf-more::details-content { transition: none; }
  }
}
.qf-more-body { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 14px; }

/* reviews actions row */
.reviews-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* mobile sticky bar — smooth hide with locally wrapping labels */
.mobile-cta-bar { transition: transform .35s cubic-bezier(.4,0,.2,1); }
.mobile-cta-bar.hide-bar { transform: translateY(110%); }
.mcb--quote { white-space: normal; }

/* ============================================================
   PORTFOLIO PAGE (projects.html)
   ============================================================ */
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after { transform: scaleX(1); }
.pf-hero .wrap { max-width: var(--maxw); }
.pf-hero h1 { max-width: 16ch; }
.pf-lede {
  margin-top: 20px;
  font-size: clamp(1.02rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--stone);
  max-width: 58ch;
}
.pf-body { padding-top: clamp(36px, 4.5vw, 64px); }
.pf-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 12px;
}
/* All project cards remain readable when the filter bundle is unavailable. */
html:not(.portfolio-ready) .pf-bar { display: none; }
.pf-chip {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink-2);
  background: var(--paper);
  transition: border-color .25s, color .25s, background .25s;
}
.pf-chip:hover { border-color: var(--accent); color: var(--accent-deep); }
.pf-chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
/* Mosaic: six tracks, dense packing; cards claim 2 or 4 tracks wide and
   4 or 6 rows tall, so filtering reflows without holes. */
.pf-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 74px;
  grid-auto-flow: dense;
  gap: 18px;
}
.pf-card {
  display: flex;
  flex-direction: column;
  grid-column: span 2;
  grid-row: span 4;
}
.pf-card--tall { grid-row: span 6; }
.pf-card--wide { grid-column: span 4; }
.pf-card--feature { grid-column: span 4; grid-row: span 6; }
.pf-card .ph {
  flex: 1;
  min-height: 0;
  border-radius: 2px;
  transition: box-shadow .35s var(--ease);
}
.pf-card:hover .ph {
  box-shadow: 0 18px 40px -26px oklch(0.35 0.02 250 / 0.5);
}
.pf-card .ph > img { transition: transform .8s var(--ease); }
.pf-card:hover .ph > img { transform: scale(1.04); }
.pf-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 2px 0;
}
.pf-title { font-family: var(--display); font-weight: 700; font-size: 1.04rem; letter-spacing: -0.01em; }
.pf-cat {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 700;
  white-space: nowrap;
}
.pf-cta { padding-block: clamp(64px, 8vw, 110px); }
main[tabindex="-1"]:focus { outline: none; }
@media (max-width: 980px) {
  .pf-grid { grid-template-columns: repeat(4, 1fr); }
  .pf-card--wide, .pf-card--feature { grid-row: span 6; }
}
@media (max-width: 560px) {
  .pf-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    padding-bottom: 8px;
  }
  .pf-chip {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
  .pf-grid { grid-template-columns: 1fr; grid-auto-rows: auto; grid-auto-flow: row; }
  .pf-card, .pf-card--tall, .pf-card--wide, .pf-card--feature {
    grid-column: auto;
    grid-row: auto;
  }
  .pf-card .ph { flex: none; aspect-ratio: 4 / 3; }
  .pf-card--tall .ph { aspect-ratio: 4 / 5; }
  .pf-card--wide .ph, .pf-card--feature .ph { aspect-ratio: 16 / 10; }
}

/* ============================================================
   AUDIT REMEDIATION — legibility floor, touch targets, states
   ============================================================ */
/* Utility and metadata copy never drops below 12 CSS pixels. */
.brand-text small,
.eyebrow,
.ph::after,
.stat .lbl,
.about-media .badge .cap,
.feature-list .fi-num,
.service .s-num,
.g-item .meta .cat,
.g-item .meta .g-scope,
.rating-block .meta-r,
.review-card .who .dt,
.footer .footer-h,
.footer-bottom,
.cc-role,
.qf-required,
.cc-tag,
.qf-field > span,
.qf-choice legend,
.legal-hero .updated,
.legal-back,
.qf-reassure,
.qf-hint,
.qf-more > summary,
.pf-chip,
.pf-cat,
.qf-err,
.qf-next,
.qf-trust,
.rev-src {
  font-size: 0.75rem;
}
.qf-consent { font-size: 0.75rem; }

/* Compact links have a 24px floor; primary actions retain 44px. */
.utility a,
a.legal-back,
.footer-col a:not(.brand),
.footer-bottom a,
.cc-line {
  min-height: 24px;
}
.utility a,
a.legal-back,
.footer-col a:not(.brand),
.footer-bottom a,
.cc-line {
  display: inline-flex;
  align-items: center;
}
.btn,
.nav-phone,
.nav-toggle,
#navClose,
.mm-quote,
.mcb,
.qf-submit {
  min-width: 44px;
  min-height: 44px;
}
#navClose { display: grid; place-items: center; }
.pf-chip { min-height: 44px; }
.qf-opts span { min-height: 44px; display: flex; align-items: center; justify-content: center; }
/* Preserve an explicit selected and keyboard-focus state when Windows high
   contrast mode suppresses the authored chip colors. */
@media (forced-colors: active) {
  :focus-visible {
    outline-color: Highlight;
  }
  .pf-chip,
  .mcb,
  .hero-stats a.stat,
  .qf-opts span {
    color: ButtonText;
    background: Canvas;
    border: 2px solid ButtonText;
  }
  .qf-opts input:checked + span {
    color: HighlightText;
    background: Highlight;
    border-color: Highlight;
  }
  .qf-opts input:focus-visible + span {
    outline: 2px solid Highlight;
    outline-offset: 2px;
    box-shadow: none;
  }
  .pf-chip.active {
    color: HighlightText;
    background: Highlight;
    border-color: Highlight;
  }
  .pf-chip:focus-visible,
  .mcb:focus-visible,
  .hero-stats a.stat:focus-visible {
    outline: 2px solid Highlight;
    outline-offset: -4px;
    box-shadow: none;
  }
}

/* Gallery items are now anchors */
.g-item { display: block; }

/* Portfolio metadata can wrap when the category label is long. */
.pf-meta { flex-wrap: wrap; }

/* Quote form — per-field inline errors + next-step line */
.qf-err { display: block; margin-top: 2px; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.02em; color: oklch(0.78 0.15 35); line-height: 1.4; }
.qf-err:empty { display: none; }
.quote-form input[aria-invalid="true"] { border-color: oklch(0.62 0.17 30); box-shadow: 0 0 0 3px oklch(0.62 0.17 30 / 0.22); }
.qf-next { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.02em; line-height: 1.55; color: var(--stone); text-align: center; }
.legal-body .qf-next { color: var(--stone); }
.qf-next a { min-height: 24px; color: var(--accent); font-weight: 700; overflow-wrap: anywhere; }

/* Visible result feedback also remains an aria-live announcement. */
.pf-status {
  margin-bottom: clamp(28px, 3.5vw, 44px);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.pf-empty { margin-top: 6px; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.03em; color: var(--muted); }
.pf-empty a { color: var(--accent-deep); font-weight: 700; border-bottom: 1px solid currentColor; }

/* ============================================================
   PRODUCTION PASS — trust row, ES review pair, no-JS note
   ============================================================ */
/* micro trust row inside the quote form, just above submit */
.qf-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 16px;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  text-align: center;
}
.qf-trust b { color: var(--accent); font-weight: 700; }

/* links inside form status notes (incl. the <noscript> fallback) */
.qf-note a { color: inherit; text-decoration: underline; font-weight: 700; }

/* two-review teaser grid (ES page) */
.reviews-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 34px;
}
@media (max-width: 680px) { .reviews-duo { grid-template-columns: 1fr; } }
.rev-src { margin-top: 12px; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.04em; color: var(--muted); }

/* ============================================================
   PRODUCTION READINESS — relationship clarity and legibility
   ============================================================ */
.hero-sub a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.16em; }
.about-copy .lede a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 0.16em; }
.qf-reassure,
.qf-hint,
.qf-err,
.qf-next,
.qf-trust,
.qf-consent,
.cc-intake,
.cc-tag {
  font-size: 0.78rem;
  line-height: 1.55;
}
.qf-reassure { color: var(--accent); }
.qf-reassure, .qf-hint, .qf-next, .qf-consent { font-family: var(--body); letter-spacing: normal; }
.qf-reassure, .qf-hint, .qf-next { font-size: 0.875rem; }
.qf-field > span, .qf-choice legend { letter-spacing: 0.08em; }
.qf-next { color: var(--stone-2); }
.review-card .who .dt { font-size: 0.75rem; line-height: 1.45; }
.mm-quote { margin-top: 24px; }
.mobile-menu .mm-quote + nav { margin-top: 24px; }

/* Keep long hero labels inside the page without hiding root overflow. */
.hero-actions { min-width: 0; }
@media (max-width: 560px) {
  .hero-actions .btn,
  .legal-body .btn {
    max-width: 100%;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
  }
}

/* Edge-aligned controls keep their complete keyboard indicator inside the
   component-owned scrollport or decorative boundary. */
.pf-chip:focus-visible,
.hero-stats a.stat:focus-visible,
.mcb:focus-visible {
  outline: 0;
  box-shadow: inset 0 0 0 3px var(--accent-deep);
}

@media (forced-colors: active) {
  .pf-chip:focus-visible,
  .hero-stats a.stat:focus-visible,
  .mcb:focus-visible {
    outline: 2px solid Highlight;
    outline-offset: -4px;
    box-shadow: none;
  }
}

/* On very small, short phones the headline, local category and primary
   action stay in the initial viewport; supporting copy remains available on
   ordinary portrait phones and every larger breakpoint. */
@media (max-width: 420px) and (max-height: 700px) {
  .hero-inner { padding-top: 16px; padding-bottom: 18px; }
  .hero-sub { margin-top: 18px; }
  .hero h1 { margin-top: 18px; font-size: clamp(2.3rem, 10vw, 2.65rem); }
  .hero-actions { margin-top: 16px; }
  .hero-actions .btn { padding-block: 0.9em; }
}

/* Project conversations and full-size photography. */
.contact-process { padding: 24px 8px; }
.contact-process > h3 { font-size: 1.35rem; color: var(--paper); }
.contact-process ol { list-style: none; padding: 0; margin-top: 12px; }
.contact-process li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 18px;
  padding-block: 24px;
  border-bottom: 1px solid var(--line-dark);
}
.contact-process .step-number { font-family: var(--mono); font-size: 0.78rem; color: var(--accent); }
.contact-process h4 { font-size: 1.12rem; color: var(--paper); line-height: 1.4; }
.contact-process p { margin-top: 8px; color: var(--muted-on-dark); font-size: 0.98rem; line-height: 1.6; }
.qf-opts input:disabled + span { opacity: 0.45; cursor: not-allowed; }
.qf-more > summary { flex-wrap: wrap; }
.footer-bottom .lic { flex-wrap: wrap; }
.pf-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.pf-card { min-width: 0; }
.photo-link { display: block; cursor: zoom-in; }
.photo-link:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 4px; }
.photo-link .photo-expand {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: rgb(15 19 22 / 0.76);
  color: white;
  border: 1px solid rgb(255 255 255 / 0.4);
  font-size: 1.2rem;
  pointer-events: none;
}
.photo-viewer {
  margin: auto;
  padding: 24px;
  width: min(1200px, calc(100% - 48px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  border: 1px solid var(--line-dark);
  background: var(--ink);
  color: var(--paper);
  overflow-y: auto;
}
.photo-viewer::backdrop { background: rgb(9 12 15 / 0.92); }
.photo-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 16px; }
.photo-count { color: var(--muted-on-dark); font-family: var(--mono); font-size: 0.8rem; }
.photo-close { padding: 10px 14px; border: 1px solid var(--line-dark); min-height: 44px; font-size: 0.95rem; }
.photo-stage { display: grid; place-items: center; background: #101214; height: min(66dvh, 740px); touch-action: pan-y pinch-zoom; }
.photo-stage img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.photo-caption { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 20px; }
.photo-caption h2 { font-size: clamp(1.1rem, 2vw, 1.5rem); line-height: 1.3; }
.photo-caption p { color: var(--muted-on-dark); font-size: 0.9rem; margin-top: 6px; }
.photo-controls { display: flex; gap: 10px; flex-shrink: 0; }
.photo-controls button { min-width: 48px; min-height: 48px; border: 1px solid var(--line-dark); font-size: 1.2rem; }
.photo-controls button:hover, .photo-close:hover { background: var(--ink-3); }
body:has(.photo-viewer[open]) { overflow: hidden; }

@media (max-width: 980px) {
  .pf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .mobile-cta-bar--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
  .mobile-cta-bar .mcb { min-height: 60px; padding: 8px 12px; white-space: normal; }
  body:has(.mobile-cta-bar) { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 560px) {
  .pf-grid { grid-template-columns: minmax(0, 1fr); }
  .hero .eyebrow { letter-spacing: 0.12em; font-size: 0.7rem; }
  .hero .eyebrow::before { flex: 0 0 20px; }
  .hero-stats .stat { padding: 16px 14px; }
  .hero-stats .lbl { letter-spacing: 0.07em; }
  .photo-viewer { width: calc(100% - 24px); padding: 16px; max-height: calc(100dvh - 24px); }
  .photo-stage { height: 56dvh; }
  .photo-caption { align-items: flex-start; flex-wrap: wrap; gap: 16px; }
  .photo-controls { margin-left: auto; }
}

/* Reduced-motion mode keeps every navigation and disclosure state change
   immediate and prevents smooth scrolling in both the page and review rail. */
@media (prefers-reduced-motion: reduce) {
  html,
  .reviews-track { scroll-behavior: auto !important; }
  .nav,
  .mobile-menu,
  .mobile-cta-bar {
    transition: none !important;
  }
}

/* Quote first; direct contacts are a compact alternative below the form. */
.cta--focused::before { content: none; }
.cta--focused .cta-inner > h2 { font-size: clamp(2.25rem, 5vw, 3.7rem); }
.cta--focused .cta-inner > .lede { margin-top: 16px; max-width: 46ch; }
.cta--focused .contact-layout {
  max-width: 700px;
  margin-top: 32px;
  grid-template-columns: minmax(0, 1fr);
}
.cta--focused .quote-form {
  --paper: #19232b;
  --stone: #4c5863;
  --muted-on-dark: #4c5863;
  --accent: #216489;
  --line-dark: #87939b;
  background: #f5f5f1;
  color: var(--paper);
  border: 0;
  border-top: 3px solid #70bcdd;
  gap: 16px;
}
.cta--focused .quote-form input,
.cta--focused .quote-form select,
.cta--focused .quote-form textarea,
.cta--focused .qf-more,
.cta--focused .qf-opts span { background-color: #fff; }
.cta--focused .qf-opts input:checked + span { color: #fff; background-color: var(--accent); }
.cta--focused .qf-submit { background: #70bcdd; color: #10232e; }
.cta--focused .qf-submit:hover { background: #246586; color: #fff; }
.cta--focused .qf-err,
.cta--focused .qf-note.err { color: #a33424; }
.cta--focused .qf-field > span:first-child,
.cta--focused .qf-choice legend {
  font-family: var(--body);
  font-size: 0.9rem;
  letter-spacing: normal;
  text-transform: none;
  color: var(--paper);
}
.cta--focused .qf-hint { margin-top: -4px; }
.cta--focused .qf-more > summary { font-family: var(--body); font-size: 0.875rem; letter-spacing: normal; text-transform: none; }
.cta--focused .qf-consent { font-size: 0.8rem; }
.contact-alternatives { width: 100%; max-width: 700px; margin: 38px auto 0; }
.contact-alternatives > h3 { font-family: var(--body); font-size: 1rem; font-weight: 500; color: var(--stone); }
.contact-alternatives .contact-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 20px; text-align: left; }
.contact-alternatives .contact-roles--single { grid-template-columns: minmax(0, 1fr); text-align: center; }
.contact-alternatives .contact-roles--single .cc-line { justify-content: center; }
.contact-alternatives .cc { background: none; backdrop-filter: none; border: none; padding: 0; gap: 4px; }
.contact-alternatives .cc-name { font-size: 1.2rem; margin: 2px 0; }
.contact-alternatives .cc-role { font-size: 0.68rem; }
.contact-alternatives .cc-line:not(.sm) { font-size: 1.1rem; }
.contact-alternatives .cc-line.sm { font-family: var(--body); font-size: 0.83rem; font-weight: 400; }
.contact-attachments { margin-top: 24px; border-top: 1px solid var(--line-dark); padding-top: 20px; color: var(--stone); font-size: 0.85rem; line-height: 1.6; }
.contact-attachments a { color: var(--accent); text-decoration: underline; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .contact-alternatives .contact-roles { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .contact-alternatives .cc-line { justify-content: center; }
  .cta--focused .quote-form { padding: 22px 18px; }
}

/* Let the project photographs stay bright; captions sit beneath them. */
.gallery .g-item { display: flex; flex-direction: column; background: #fff; }
.gallery .g-item .ph { position: relative; inset: auto; flex: 1; min-height: 0; overflow: hidden; }
.gallery .g-item:hover .ph { transform: none; }
.gallery .g-item .ph > img { transition: transform .6s var(--ease); }
.gallery .g-item:hover .ph > img { transform: scale(1.035); }
.gallery .g-item .meta { position: static; flex: none; padding: 16px 20px 18px; background: none; }
.gallery .g-item .meta .cat { color: var(--accent-deep); text-shadow: none; }
.gallery .g-item .meta .ttl { color: var(--ink); line-height: 1.25; }
.gallery .g-item .meta .g-scope { color: var(--muted); font-family: var(--body); font-size: 0.85rem; letter-spacing: normal; }
.about-media .ph.main > img { object-position: 50% 65%; }
@media (min-width: 761px) {
  .gallery .g-c, .gallery .g-d, .gallery .g-e { grid-row: span 2; }
}
@media (max-width: 760px) {
  .gallery .g-item { aspect-ratio: auto; }
  .gallery .g-item .ph { flex: none; aspect-ratio: 4 / 3; }
  .gallery .g-c .ph, .gallery .g-d .ph { aspect-ratio: 4 / 5; }
  .gallery .g-item .meta { padding: 14px 16px 16px; }
}
