/* ==========================================================================
   Bay Vista Construction - shared site styles
   One stylesheet for every page (no build step). Pages add small
   page-specific <style> blocks only when a section is unique to them.
   Palette mirrors the BVC brand; type mirrors bayvistapm.com
   (Libre Baskerville + DM Sans) so the two sister sites read as one family.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Grayscale ramp (light to dark). a11y.css depends on --c1..--c5. */
  --c1: #f6f7f6;
  --c2: #c6ccd2;
  --c3: #5c646d;
  --c4: #2a3138;
  --c5: #14171a;

  --paper: #ffffff;
  --line: #e4e6e8;
  --muted: #9ba3ad;
  --footer-bg: #101214;

  --serif: 'Libre Baskerville', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;

  --pad-x: clamp(1.25rem, 4vw, 3.5rem);
  --header-h: 76px;
  --radius: 2px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--c1);
  color: var(--c5);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--c5); color: var(--c1); }

img { max-width: 100%; }

/* ── SKIP LINK ── */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--c5); color: var(--c1);
  padding: 0.75rem 1.25rem; font-size: 0.875rem; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ── ANNOUNCEMENT BAR ── */
.announce {
  background: var(--c4);
  color: var(--c2);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 0.55rem 1.25rem;
}
.announce a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── HEADER / NAV (mirrored with bayvistapm.com) ── */
.site-header {
  position: sticky; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
  padding: 0 var(--pad-x);
  background: var(--c5);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -12px rgba(0,0,0,0.5); }
.nav-logo {
  display: inline-flex; align-items: center; gap: 0.85rem;
  color: var(--c1); text-decoration: none;
}
.nav-logo-icon { height: 44px; width: 44px; object-fit: contain; display: block; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav-logo-title {
  font-family: var(--serif); font-size: 1.05rem; font-weight: 400;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--c1);
  white-space: nowrap;
}
.nav-logo-sub {
  font-family: var(--sans); font-size: 0.575rem; font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.125rem); }
.nav-links a {
  font-family: var(--sans); font-size: 0.875rem; font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(248,249,250,0.6); text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--c1); }
.nav-cta {
  font-family: var(--sans); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.75rem 1.375rem;
  background: var(--c1); color: var(--c5);
  border: none; border-radius: var(--radius); cursor: pointer;
  text-decoration: none; transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--c2); }
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  width: 38px;
  height: 38px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-left: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--c1);
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}
.site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── TYPE ── */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; }
h1 em, h2 em { font-style: italic; color: var(--c3); }
.on-dark h1 em, .on-dark h2 em, .band-dark h1 em, .band-dark h2 em { color: var(--muted); }

.section-label {
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--c3); margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.section-label::before { content: ''; width: 24px; height: 1px; background: var(--c2); display: block; }
.section-label.center { justify-content: center; }
.section-label.center::after { content: ''; width: 24px; height: 1px; background: var(--c2); display: block; }
.section-label.on-dark { color: var(--muted); }
.section-label.on-dark::before, .section-label.center.on-dark::after { background: rgba(248,249,250,0.15); }

.section-headline {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  line-height: 1.18;
}
.page-title {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.12;
  margin-bottom: 1rem;
}
.lead {
  color: var(--c3); font-size: 1rem; line-height: 1.75;
  max-width: 60ch; text-wrap: pretty;
}

/* ── LAYOUT PRIMITIVES ── */
.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.section { padding-top: clamp(4rem, 8vw, 6.75rem); padding-bottom: clamp(4rem, 8vw, 6.75rem); }
.section-tight { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.band-dark { background: var(--c5); color: var(--c1); }
.band-paper { background: var(--paper); }
.split-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.75rem;
}
.text-link {
  color: var(--c5); font-size: 0.875rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  border-bottom: 1px solid var(--c5); padding-bottom: 4px;
  transition: color 0.2s, border-color 0.2s;
}
.text-link:hover { color: var(--c3); border-color: var(--c3); }
.text-link.on-dark { color: var(--c1); border-color: var(--c1); }
.text-link.on-dark:hover { color: var(--c2); border-color: var(--c2); }

/* ── BUTTONS ── */
.btn-primary, .btn-outline, .btn-dark {
  display: inline-block;
  font-family: var(--sans); font-size: 0.875rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 1.05rem 1.9rem; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; border: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn-primary { background: var(--c1); color: var(--c5); }
.btn-primary:hover { background: var(--c2); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--c1);
  border: 1px solid rgba(255,255,255,0.45); font-weight: 500;
  padding: calc(1.05rem - 1px) calc(1.9rem - 1px);
}
.btn-outline:hover { border-color: var(--c1); background: rgba(255,255,255,0.08); }
.btn-dark { background: var(--c5); color: #fff; }
.btn-dark:hover { background: var(--c4); }

/* ── HOME HERO ── */
.hero {
  position: relative;
  height: min(88vh, 860px);
  min-height: 560px;
  overflow: hidden;
  background: var(--c5);
  display: flex;
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform-origin: center;
  animation: bv-zoom 22s ease-out forwards;
}
@keyframes bv-zoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,18,20,0.45) 0%, rgba(16,18,20,0.30) 40%, rgba(16,18,20,0.68) 65%, rgba(16,18,20,0.90) 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  width: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(1.75rem, 5vw, 4.5rem) var(--pad-x);
  animation: bv-fade-up 0.9s ease-out both;
}
@keyframes bv-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-kicker {
  color: var(--c2); font-size: 0.8rem; letter-spacing: 0.28em;
  text-transform: uppercase; margin-bottom: 1.1rem;
}
.hero-headline {
  color: #fff;
  font-size: clamp(2.15rem, 5.2vw, 4.35rem);
  line-height: 1.12; letter-spacing: -0.02em;
  max-width: 17ch; text-wrap: balance;
}
.hero-headline em { font-style: italic; color: rgba(248,249,250,0.55); }
.hero-cta-wrap { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: 2.1rem; align-items: center; }

/* ── PAGE HERO (inner pages) ── */
.page-hero { padding-top: clamp(3rem, 6vw, 5rem); }

/* ── TRUST STRIP ── */
.trust-strip { border-bottom: 1px solid var(--line); background: var(--c1); }
.trust-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  padding-top: 2.1rem; padding-bottom: 2.1rem;
}
.trust-item { display: flex; flex-direction: column; gap: 0.25rem; }
.trust-item strong {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem); letter-spacing: -0.02em;
}
.trust-item span { color: var(--c3); font-size: 0.845rem; letter-spacing: 0.04em; }

/* ── HAIRLINE TILE GRID (services overview, values) ── */
.tile-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.tile {
  display: flex; flex-direction: column; gap: 0.85rem;
  background: var(--c1);
  padding: 2.1rem 1.75rem 2.5rem;
  text-decoration: none; color: var(--c5);
  transition: background 0.2s;
}
a.tile:hover { background: var(--paper); }
.tile-num { font-family: ui-monospace, 'SF Mono', monospace; font-size: 0.75rem; color: var(--muted); }
.tile h3 { font-size: 1.1rem; line-height: 1.3; letter-spacing: -0.01em; }
.tile p { color: var(--c3); font-size: 0.9rem; line-height: 1.65; text-wrap: pretty; }
.tile.paper { background: var(--paper); }

/* ── BEFORE / AFTER SLIDER ── */
.ba-wrap {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, #23282d 0 12px, #1b1f23 12px 24px);
  --ba: 62%;
}
.ba-wrap img { display: block; }
.ba-before { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-after-clip { position: absolute; inset: 0; width: var(--ba); overflow: hidden; }
.ba-after-clip img {
  position: absolute; top: 0; left: 0;
  height: 100%; aspect-ratio: 4 / 3; width: auto; max-width: none;
  object-fit: cover;
}
.ba-divider {
  position: absolute; top: 0; bottom: 0; left: var(--ba);
  width: 2px; background: #fff; transform: translateX(-1px);
  pointer-events: none;
}
.ba-tag {
  position: absolute; bottom: 12px;
  background: rgba(16,18,20,0.75); color: #fff;
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 10px; border-radius: var(--radius);
}
.ba-tag.before { right: 14px; color: var(--muted); }
.ba-tag.after { left: 14px; }
.ba-range {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; margin: 0;
}

/* ── PROJECT CARDS ── */
.project-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}
.project-card { display: flex; flex-direction: column; gap: 0.875rem; text-decoration: none; color: var(--c5); }
.project-photo {
  aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius);
}
.project-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s ease;
}
.project-card:hover .project-photo img { transform: scale(1.04); }
.project-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.project-thumbs.two { grid-template-columns: repeat(2, 1fr); }
.project-thumbs img, .project-thumbs .thumb-wrap img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius);
}
.thumb-wrap { position: relative; }
.thumb-badge {
  position: absolute; left: 8px; bottom: 8px;
  background: rgba(16,18,20,0.75); color: #fff;
  font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 8px; border-radius: var(--radius);
}
.thumb-badge.before { color: var(--c2); }
.project-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.project-title { font-family: var(--serif); font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1.3; }
.project-year { font-family: ui-monospace, 'SF Mono', monospace; font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
.project-meta { color: var(--c3); font-size: 0.845rem; letter-spacing: 0.05em; }
.project-desc { color: var(--c3); font-size: 0.9rem; line-height: 1.65; text-wrap: pretty; }
.project-placeholder {
  aspect-ratio: 4 / 3; border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, #eceeef 0 12px, #f1f2f3 12px 24px);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
}
.project-placeholder span { font-family: ui-monospace, 'SF Mono', monospace; font-size: 0.75rem; color: var(--muted); }

/* ── FILTERS ── */
.filter-row { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 2.25rem; }
.filter-btn {
  font-family: var(--sans); cursor: pointer;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.6rem 1.1rem; border-radius: var(--radius);
  border: 1px solid var(--c2); background: transparent; color: var(--c3);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.filter-btn:hover { border-color: var(--c5); color: var(--c5); }
.filter-btn[aria-pressed="true"] { background: var(--c5); color: #fff; border-color: var(--c5); }

/* ── TESTIMONIAL BAND ── */
.quote-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.quote-band-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.quote-text {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.8rem); line-height: 1.55;
  letter-spacing: -0.005em; text-wrap: balance;
  margin-bottom: 1.6rem;
}
.quote-cite { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c3); font-style: normal; }

/* ── PROCESS ── */
.process-list { display: flex; flex-direction: column; }
.process-row {
  display: flex; gap: 1.25rem; align-items: baseline;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line);
}
.process-row .p-num { font-family: ui-monospace, 'SF Mono', monospace; font-size: 0.8rem; color: var(--muted); min-width: 28px; }
.process-row .p-title { font-weight: 600; font-size: 1rem; min-width: 200px; }
.process-row .p-short { color: var(--c3); font-size: 0.875rem; line-height: 1.5; text-wrap: pretty; }

/* ── CTA BAND ── */
.cta-band { background: var(--c5); color: #fff; }
.cta-band-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.75rem;
}
.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.25;
  letter-spacing: -0.02em; max-width: 24ch; text-wrap: balance;
}

/* ── SERVICE DETAIL ROWS ── */
.service-rows {
  display: flex; flex-direction: column; gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.service-row {
  background: var(--c1);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.25rem, 4vw, 3.5rem);
  padding: clamp(2rem, 4vw, 3.25rem) 0;
}
.service-row-head { display: flex; gap: 1.375rem; align-items: baseline; }
.service-row-head .s-num { font-family: ui-monospace, 'SF Mono', monospace; font-size: 0.8rem; color: var(--muted); }
.service-row-head h2 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); letter-spacing: -0.01em; margin-bottom: 0.5rem; }
.service-row-head .s-range { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.service-row-body { display: flex; flex-direction: column; gap: 1rem; }
.service-row-body p { color: var(--c3); font-size: 0.95rem; line-height: 1.7; text-wrap: pretty; }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  font-size: 0.78rem; letter-spacing: 0.06em; color: var(--c3);
  border: 1px solid #d6d9dc; padding: 0.35rem 0.75rem; border-radius: 999px;
}

/* ── CONTACT FORM (light surface) ── */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.cf-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.1rem; }
.cf-group { display: flex; flex-direction: column; gap: 0.45rem; }
.cf-group label {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--c3);
}
.cf-group input, .cf-group select, .cf-group textarea {
  font-family: var(--sans); font-size: 0.95rem; color: var(--c5);
  padding: 0.85rem 1rem;
  border: 1px solid #d6d9dc; border-radius: var(--radius);
  background: var(--paper);
  outline: none; transition: border-color 0.2s;
  width: 100%;
}
.cf-group input:focus, .cf-group select:focus, .cf-group textarea:focus { border-color: var(--c5); }
.cf-group input::placeholder, .cf-group textarea::placeholder { color: var(--muted); }
.cf-group textarea { resize: vertical; }
.cf-submit {
  align-self: flex-start;
  font-family: var(--sans); font-size: 0.875rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 1.05rem 2.1rem;
  background: var(--c5); color: #fff;
  border: none; border-radius: var(--radius); cursor: pointer;
  transition: background 0.2s;
}
.cf-submit:hover { background: var(--c4); }
.info-stack {
  display: flex; flex-direction: column; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.info-cell { background: var(--paper); padding: 1.6rem 1.75rem; display: flex; flex-direction: column; gap: 0.3rem; }
.info-cell .info-label { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; }
.info-cell a { color: var(--c5); text-decoration: none; font-size: 1.1rem; font-weight: 500; }
.info-cell a:hover { text-decoration: underline; text-underline-offset: 3px; }
.info-cell p { color: var(--c5); font-size: 0.95rem; line-height: 1.55; }
.info-cell .info-note { color: var(--c3); font-size: 0.875rem; line-height: 1.6; }

/* ── PROSE (privacy policy) ── */
.prose { display: flex; flex-direction: column; gap: 1.1rem; color: #3a4149; font-size: 0.97rem; line-height: 1.75; }
.prose h2 { margin-top: 1.75rem; font-size: 1.35rem; color: var(--c5); letter-spacing: -0.01em; line-height: 1.35; }
.prose ul { padding-left: 1.375rem; display: flex; flex-direction: column; gap: 0.375rem; }
.prose a { color: var(--c5); }
.prose strong { color: var(--c5); }

/* ── FOOTER ── */
footer {
  background: var(--footer-bg);
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-top: clamp(3rem, 6vw, 4.5rem); padding-bottom: 2.5rem;
}
.footer-brand { display: flex; flex-direction: column; gap: 1rem; }
.footer-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.footer-logo img { height: 40px; width: 40px; object-fit: contain; }
.footer-logo .nav-logo-title { font-size: 0.95rem; }
.footer-logo .nav-logo-sub { color: var(--c3); }
.footer-brand p { font-size: 0.875rem; max-width: 36ch; text-wrap: pretty; }
.footer-col-heading {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(248,249,250,0.85);
  margin-bottom: 1.1rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-links a, .footer-contact a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-bottom-bar { border-top: 1px solid #23282d; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.25rem; padding-bottom: 1.25rem;
  font-size: 0.76rem; color: var(--c3);
}

/* ── SCROLL REVEAL ── */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; transition-delay: var(--d, 0s); }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── FORM STATUS (written by forms.js) ── */
.form-status { font-size: 0.85rem; line-height: 1.5; }

/* ── RESPONSIVE: tablet and below ── */
@media (max-width: 960px) {
  .site-header { padding: 0 1.25rem; }
  .nav-toggle { display: flex; }
  .nav-cta { font-size: 0.72rem; padding: 0.6rem 0.9rem; margin-left: auto; }
  .nav-logo-icon { height: 38px; width: 38px; }
  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--c5);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding: 0 1.25rem;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }
  .site-header.is-open .nav-links {
    max-height: 380px;
    padding: 0.5rem 1.25rem 1rem;
  }
  .nav-links a {
    padding: 0.85rem 0;
    font-size: 0.95rem;
    color: rgba(248,249,250,0.75);
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a.active { color: var(--c1); }

  .hero { min-height: 480px; height: min(78vh, 700px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .process-row { flex-wrap: wrap; row-gap: 0.2rem; }
  .process-row .p-short { flex-basis: 100%; padding-left: calc(28px + 1.25rem); }
}

/* ── RESPONSIVE: phones ── */
@media (max-width: 640px) {
  .announce { font-size: 0.72rem; padding: 0.5rem 1rem; }
  .nav-logo { gap: 0.6rem; }
  .nav-logo-title { font-size: 0.85rem; letter-spacing: 0.18em; }
  .nav-logo-sub { font-size: 0.5rem; letter-spacing: 0.24em; }
  .nav-logo-icon { height: 34px; width: 34px; }
  .hero { min-height: 440px; }
  .hero-headline { font-size: clamp(1.9rem, 8.2vw, 2.4rem); }
  .btn-primary, .btn-outline, .btn-dark { width: 100%; text-align: center; }
  .hero-cta-wrap { margin-top: 1.6rem; }
  .split-head { margin-bottom: 1.75rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.35rem; }
  .project-thumbs { gap: 6px; }
  .process-row .p-title { min-width: 0; }
  .service-row { padding: 1.75rem 0; }
  .cf-submit { width: 100%; }
}

/* ── RESPONSIVE: wide screens ── */
@media (min-width: 1600px) {
  .wrap { max-width: 1320px; }
  .hero { height: min(86vh, 940px); }
}

/* ── REDUCED MOTION (system preference; the a11y widget adds tool-noanim) ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg, .hero-inner { animation: none !important; }
  .fade-up { opacity: 1 !important; transform: none !important; transition: none !important; }
  .project-card:hover .project-photo img { transform: none; }
}

@media print {
  .announce, .site-header, .a11y-fab, .a11y-panel, .a11y-backdrop, .reading-guide, .footer-bottom-bar { display: none !important; }
}
