/* ============================================================
   GREAT LAKES DESIGN & RENOVATIONS — Site Styles
   Aesthetic: Warm craft editorial. Like a well-worn workshop
   meets a Michigan field guide. Honest, local, specific.
   ============================================================ */

/* ── Self-hosted fonts (woff2, latin subset) ──────────────────
   Served from this origin — no fonts.googleapis.com / gstatic
   round-trips. Body: Libre Franklin (variable). Headings: Lora
   (variable, roman + true italic).
   ──────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/libre-franklin-var-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/lora-var-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/lora-italic-var-latin.woff2') format('woff2');
}

/* ── Tokens — original GLDR palette ── */
:root {
  /* Core colors — unchanged from original */
  --ink:       #1e1c1a;
  --ink-mid:   #2e2c29;
  --ink-soft:  #6b6560;
  --cream:     #ffffff;
  --cream-mid: #eef1f8;
  --cream-alt: #e3e8f5;
  --warm:      #1a4fb0;   /* "amber" in original = slate blue */
  --warm-light:#4b5eb5;
  --warm-pale: #e9ebf6;
  --slate:     #10316d;
  --slate-mid: #1e328c;
  --sand:      #c3cce8;
  --border:    rgba(30,28,26,.12);
  --border-mid:rgba(30,28,26,.22);
  --shadow-sm: 0 2px 8px rgba(30,28,26,.06);
  --shadow-md: 0 8px 28px rgba(30,28,26,.10);
  --shadow-lg: 0 20px 56px rgba(30,28,26,.13);
  --r:         6px;
  --r-lg:      12px;
  --r-xl:      20px;
  --serif:     'Lora', Georgia, serif;
  --sans:      'Libre Franklin', system-ui, -apple-system, sans-serif;
  --max:       1160px;
  --gap:       clamp(1.5rem, 4vw, 2.5rem);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ── Skip link ── */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--warm); color: #fff;
  padding: .5rem 1rem; border-radius: var(--r);
  font-size: .875rem; z-index: 9999;
  transition: top .15s;
}
.skip-link:focus { top: 1rem; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

/* ── Typography ── */
h1,h2,h3,h4 { font-family: var(--serif); line-height: 1.2; font-weight: 500; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
h4 { font-size: 1rem; font-weight: 600; font-family: var(--sans); letter-spacing: .02em; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: .75rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--sans); font-size: .925rem; font-weight: 500;
  text-decoration: none; border: none; border-radius: var(--r);
  padding: .825rem 1.75rem; cursor: pointer;
  transition: all .2s cubic-bezier(.16,1,.3,1);
  line-height: 1;
}
.btn-primary {
  background: var(--warm); color: #fff;
  box-shadow: 0 1px 3px rgba(47,63,78,.25);
}
.btn-primary:hover {
  background: var(--warm-light);
  box-shadow: 0 4px 16px rgba(47,63,78,.3);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--border-mid);
}
.btn-outline:hover {
  background: var(--ink); color: var(--cream);
  border-color: var(--ink);
  transform: translateY(-1px);
}
.btn-outline-white {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,.45);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.7);
}

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: .875rem;
}
.brand {
  display: flex; align-items: center; gap: 1rem;
  text-decoration: none;
}
.brand-mark {
  width: 54px; height: 54px;
  flex-shrink: 0;
  display: block;
}
.brand-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
  display: block;
}
.brand-tagline {
  font-size: .72rem;
  color: var(--ink-soft);
  letter-spacing: .06em;
  text-transform: uppercase;
  display: block;
  font-family: var(--sans);
}
.site-nav {
  display: flex; align-items: center; gap: .25rem;
}
.site-nav a {
  font-family: var(--sans); font-size: .9rem; font-weight: 400;
  color: var(--ink-mid); text-decoration: none;
  padding: .5rem .875rem; border-radius: var(--r);
  transition: color .15s, background .15s;
}
.site-nav a:hover { color: var(--ink); background: var(--cream-mid); }
.site-nav a.active { color: var(--warm); }
.site-nav .btn { margin-left: .5rem; padding: .65rem 1.35rem; font-size: .875rem; }
.site-nav .btn-primary { color: #fff; }
.site-nav .btn-primary:hover { color: #fff; background: var(--warm-light); }

.nav-toggle {
  display: none;
  background: none; border: 1.5px solid var(--border-mid);
  border-radius: var(--r); padding: .45rem .75rem;
  font-size: .85rem; font-weight: 500; color: var(--ink);
}

/* ── Hero ── */
.hero {
  position: relative;
  padding-block: clamp(4rem, 10vw, 7rem);
  overflow: hidden;
  background: var(--ink);
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('images/hero-kitchen.webp');
  background-size: cover; background-position: center 40%;
  opacity: .25;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(30,28,26,.82) 0%, rgba(30,28,26,.55) 55%, rgba(30,28,26,.25) 100%);
}
.hero-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: .6;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: center;
}
.hero-eyebrow { color: rgba(255,255,255,.72); letter-spacing: .16em; }
.hero h1 {
  color: #fff;
  font-style: italic;
  margin-block: .5rem 1.25rem;
  line-height: 1.1;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.hero h1 em { font-style: normal; color: #fff; }
.hero-text {
  color: rgba(255,255,255,.88);
  font-size: 1.1rem;
  max-width: 52ch;
  margin-bottom: 2rem;
  line-height: 1.75;
  text-shadow: 0 1px 8px rgba(0,0,0,.3);
}
.hero-actions { display: flex; gap: .875rem; flex-wrap: wrap; }

.hero-sidebar {
  background: rgba(245,240,232,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-xl);
  padding: 1.75rem;
  backdrop-filter: blur(8px);
}
.hero-stat {
  padding-block: 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.hero-stat:last-child { border-bottom: none; padding-bottom: 0; }
.hero-stat:first-child { padding-top: 0; }
.hero-stat-value {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: #fff;
  font-weight: 500;
}
.hero-stat-label {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  letter-spacing: .04em;
  margin-top: .15rem;
  font-family: var(--sans);
  color: rgba(255,255,255,.88);
}

/* ── Service strip ── */
.services-strip {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,.06);
  padding-block: .875rem;
  overflow: hidden;
}
.services-scroll {
  display: flex; gap: 2rem; align-items: center;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.services-scroll:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.service-chip {
  display: flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; color: rgba(255,255,255,.75);
  white-space: nowrap;
  font-family: var(--sans);
}
.service-chip .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--warm);
  flex-shrink: 0;
}

/* ── Sections ── */
.section {
  padding-block: clamp(4rem, 8vw, 6rem);
}
.section-tight {
  padding-block: clamp(2rem, 4vw, 3rem);
}
/* No more abrupt background switches — all sections on the same canvas.
   section-alt gets a very subtle warm tint; section-dark kept for
   intentional dark moments (what-to-expect, CTA) but separated by
   generous padding so they feel deliberate rather than striped. */
.section-alt { background: transparent; }
.section-dark {
  background: var(--ink);
  color: #fff;
}
.section-slate {
  background: var(--slate);
  color: #fff;
}

.section-heading {
  max-width: 680px;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.section-heading p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-top: .875rem;
  line-height: 1.75;
}
.section-heading.centered { text-align: center; margin-inline: auto; }
.section-heading.on-dark p { color: #fff; }
.section-heading.on-dark h2 { color: #fff; }
.section-heading.on-dark .eyebrow { color: rgba(255,255,255,.72); letter-spacing: .16em; }

/* ── Grid helpers ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }

/* ── Project fit chooser ── */
.fit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.fit-card {
  display: block; text-decoration: none;
  padding: 1.5rem 1.25rem;
  background: var(--cream-mid);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  transition: all .2s cubic-bezier(.16,1,.3,1);
  cursor: pointer;
}
.fit-card:hover {
  border-color: var(--warm);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.fit-card span {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: .5rem;
}
.fit-card small {
  font-size: .85rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ── Value cards ── */
.value-card {
  padding: 1.75rem;
  background: linear-gradient(135deg, #1a4fb0, #10316d);
  border: 1px solid #10316d;
  border-radius: var(--r-lg);
  box-shadow: 0 6px 22px rgba(16,32,80,.18);
}
.value-card h3 { font-size: 1.1rem; margin-bottom: .6rem; color:#ffffff; }
.value-card p { font-size: .95rem; color: #ffffff; line-height: 1.65; }
.value-card .value-icon { color:#ffffff; }
.value-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: block;
}

/* ── Work mosaic ── */
.work-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: .75rem;
}
.mosaic-item {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  background: none; border: none; padding: 0; cursor: zoom-in;
}
.mosaic-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.16,1,.3,1);
  display: block;
}
.mosaic-item:hover img { transform: scale(1.04); }
.mosaic-a { grid-column: 1/8; grid-row: 1; aspect-ratio: 16/9; }
.mosaic-b { grid-column: 8/13; grid-row: 1; aspect-ratio: 4/3; }
.mosaic-c { grid-column: 1/5; grid-row: 2; aspect-ratio: 4/3; }
.mosaic-d { grid-column: 5/9; grid-row: 2; aspect-ratio: 4/3; }
.mosaic-e { grid-column: 9/13; grid-row: 2; aspect-ratio: 4/3; }
.mosaic-f { grid-column: 1/6; grid-row: 3; aspect-ratio: 16/9; }
.mosaic-g { grid-column: 6/13; grid-row: 3; aspect-ratio: 16/9; }

.mosaic-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.25rem 1rem .875rem;
  background: linear-gradient(to top, rgba(26,23,16,.75) 0%, transparent 100%);
  color: #fff; text-align: left; pointer-events: none;
}
.mosaic-caption strong { display: block; font-size: .9rem; font-family: var(--serif); font-weight: 500; }
.mosaic-caption span { display: block; font-size: .78rem; opacity: .75; margin-top: .15rem; line-height: 1.45; }

/* ── Before/After slider ── */
.ba-slider-wrap {
  position: relative; border-radius: var(--r-xl);
  overflow: hidden; cursor: ew-resize;
  touch-action: none;
  aspect-ratio: 16/9;
  box-shadow: var(--shadow-lg);
}
.ba-slider-wrap img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
}
.ba-after { clip-path: inset(0 50% 0 0); }
.ba-handle {
  position: absolute; top: 0; bottom: 0;
  left: 50%; transform: translateX(-50%);
  width: 5px; background: #1a4fb0;
  box-shadow: 0 0 0 1px rgba(255,255,255,.55), 0 0 18px rgba(16,49,109,.35);
  display: flex; align-items: center; justify-content: center;
}
.ba-handle-pill {
  width: 60px; height: 60px;
  background: #1a4fb0;
  border: 2px solid rgba(255,255,255,.92);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 5px 20px rgba(16,49,109,.45), 0 0 0 6px rgba(26,79,176,.14);
  font-size: 1.25rem; letter-spacing: -.5px; color: #fff;
  font-weight: 700; user-select: none;
  touch-action: none;
}
.ba-label {
  position: absolute; bottom: 1rem;
  padding: .35rem .875rem;
  background: rgba(26,23,16,.65);
  color: #fff; border-radius: 100px;
  font-size: .78rem; font-weight: 500; letter-spacing: .04em;
  pointer-events: none;
  font-family: var(--sans);
  transition: opacity .2s ease;
}
.ba-label-before { left: 1rem; }
.ba-label-after { right: 1rem; }



/* ── Stat bar ── */
.stat-bar {
  display: flex; gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.stat-item {
  flex: 1; padding: 1.75rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-value {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: .8rem; color: var(--ink-soft);
  margin-top: .4rem; letter-spacing: .04em;
  font-family: var(--sans);
}

/* ── Process steps ── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.process-step {
  padding: 2rem 1.75rem;
  border-right: 1px solid var(--border);
  position: relative;
}
.process-step:last-child { border-right: none; }
.step-num {
  font-family: var(--serif);
  font-size: 2.5rem;
  color: var(--warm);
  opacity: .45;
  line-height: 1;
  margin-bottom: .75rem;
  font-weight: 500;
}
.process-step h3 { font-size: 1rem; margin-bottom: .6rem; }
.process-step p { font-size: .9rem; color: var(--ink-soft); line-height: 1.65; }

/* ── Testimonials / expect ── */
.testimonial-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg);
  padding: 1.75rem;
}
.testimonial-text {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  color: rgba(255,255,255,.88);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.testimonial-byline { font-size: .85rem; color: rgba(255,255,255,.75); }
.testimonial-name { color: rgba(255,255,255,.75); font-weight: 500; }

.expect-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.expect-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg);
  padding: 1.5rem;
}
.expect-card h3 { font-size: 1rem; color: #fff; margin-bottom: .5rem; }
.expect-card p { font-size: .9rem; color: #fff; line-height: 1.65; }

/* ── FAQ accordion ── */
.faq-accordion details {
  border-bottom: 1px solid var(--border);
}
.faq-accordion details:first-child { border-top: 1px solid var(--border); }
.faq-accordion summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 0;
  font-weight: 500; cursor: pointer;
  font-size: 1rem; list-style: none;
  user-select: none;
}
.faq-accordion summary::-webkit-details-marker { display: none; }
.faq-accordion summary::after {
  content: '+'; font-size: 1.25rem; color: var(--warm);
  flex-shrink: 0; transition: transform .2s; margin-left: 1rem;
}
.faq-accordion details[open] summary::after { transform: rotate(45deg); }
.faq-accordion details > *:not(summary) {
  padding-bottom: 1.25rem;
  color: var(--ink-soft); font-size: .95rem; line-height: 1.7;
}

/* ── CTA Panel ── */
.cta-panel {
  background: var(--ink);
  border-radius: var(--r-xl);
  padding: clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-panel::before {
  content: '';
  position: absolute; top: -40%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(201,87,14,.2) 0%, transparent 70%);
  pointer-events: none;
}
.cta-panel h2 { color: #fff; }
.cta-panel p { color: rgba(255,255,255,.65); margin-top: .75rem; font-size: 1rem; }
.cta-actions { display: flex; gap: .875rem; flex-wrap: wrap; margin-top: 1.75rem; }
.cta-aside {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg);
  padding: 1.75rem;
}
.cta-aside h3 { color: #fff; font-size: 1rem; margin-bottom: .875rem; }
.cta-aside p { color: #fff; font-size: .9rem; line-height: 1.65; }
.cta-aside p + p { margin-top: .5rem; color: rgba(255,255,255,.88); font-size: .85rem; }

/* ── Team cards ── */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.team-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.team-card:hover { box-shadow: var(--shadow-md); }
.team-image {
  width: 100%; aspect-ratio: 1;
  object-fit: cover; object-position: center top;
  display: block;
}
.team-initials {
  background: var(--cream-alt);
  display: flex; align-items: center; justify-content: center;
}
.team-initials-text {
  font-family: var(--serif); font-size: 2.5rem; color: var(--ink-soft); font-weight: 500;
}
.team-body { padding: 1.5rem; }
.team-body h3 { font-size: 1.15rem; margin-bottom: .2rem; }
.team-role {
  font-size: .8rem; color: var(--warm);
  font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  font-family: var(--sans); margin-bottom: .875rem;
}
.team-body p { font-size: .9rem; color: var(--ink-soft); line-height: 1.65; margin-bottom: 1rem; }
.team-email {
  display: flex; align-items: center; gap: .5rem;
  font-size: .85rem; color: var(--ink-mid);
}
.team-email a { text-decoration: none; }
.team-email a:hover { color: var(--warm); text-decoration: underline; }

/* ── Project cards ── */
.project-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.project-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.project-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.project-card a { text-decoration: none; color: inherit; display: block; }
.project-card-img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  display: block;
  transition: transform .4s cubic-bezier(.16,1,.3,1);
}
.project-card:hover .project-card-img { transform: scale(1.04); }
.project-card-body { padding: 1.25rem 1.375rem; }
.project-card-body h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.project-card-body p { font-size: .875rem; color: var(--ink-soft); line-height: 1.6; }
.project-card-link {
  display: flex; align-items: center; gap: .35rem;
  font-size: .85rem; font-weight: 500; color: var(--warm);
  margin-top: .875rem; text-decoration: none;
}
.project-card-link:hover { text-decoration: underline; }

/* ── Page hero (inner pages) ── */
.page-hero {
  padding-block: clamp(3rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--border);
  background: var(--cream);
}
.page-hero h1 { font-style: italic; }
.page-hero p {
  font-size: 1.1rem; color: var(--ink-soft);
  max-width: 56ch; margin-top: .875rem; line-height: 1.75;
}

/* ── Project detail pages ── */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}
.project-gallery img {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--r-lg);
}
.project-gallery .wide {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

/* ── Contact form ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}
.contact-form-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(2rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-sm);
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: .85rem; font-weight: 500;
  color: var(--ink-mid);
  margin-bottom: .4rem;
}
.form-group label span { color: var(--warm); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--sans); font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--border-mid);
  border-radius: var(--r);
  padding: .75rem 1rem;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--warm);
  box-shadow: 0 0 0 3px rgba(201,87,14,.12);
}
.form-group textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-hint { font-size: .8rem; color: var(--ink-soft); margin-top: .3rem; }

.contact-aside {}
.contact-aside-block {
  background: var(--cream-mid);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.375rem;
  margin-bottom: 1.25rem;
}
.contact-aside-block h3 { font-size: 1rem; margin-bottom: .6rem; }
.contact-aside-block p { font-size: .875rem; color: var(--ink-soft); line-height: 1.65; }
.contact-info { margin-top: .625rem; }
.contact-info a {
  display: block; font-size: .9rem; color: var(--ink-mid);
  text-decoration: none; margin-bottom: .25rem;
  transition: color .15s;
}
.contact-info a:hover { color: var(--warm); }

/* ── About page ── */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-split img {
  border-radius: var(--r-xl);
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
}

/* ── How We Work ── */
.hww-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding-block: 2.5rem;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.hww-step:last-child { border-bottom: none; }
.hww-num {
  font-family: var(--serif);
  font-size: 3.5rem;
  color: var(--warm);
  opacity: .55;
  font-weight: 500;
  line-height: 1;
  text-align: center;
}
.hww-step h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.hww-step p { color: var(--ink-soft); font-size: 1rem; line-height: 1.75; }

/* ── Vendor cards ── */
.vendor-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.vendor-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.vendor-card h3 { font-size: 1rem; margin-bottom: .4rem; }
.vendor-card p { font-size: .875rem; color: var(--ink-soft); line-height: 1.6; }
.vendor-tag {
  display: inline-block; margin-top: .625rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--warm);
  background: var(--warm-pale); border-radius: 100px;
  padding: .2rem .65rem;
}

/* ── Footer ── */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.6);
  padding-block: clamp(2rem, 3.5vw, 2.75rem) 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-tagline { color: rgba(255,255,255,.55); }
.footer-tagline { font-size: .875rem; line-height: 1.65; max-width: 26ch; color: #fff; }

.footer-col-label {
  display: block; font-size: .72rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.65); margin-bottom: 1rem;
  font-family: var(--sans);
}
.footer-links { display: flex; flex-direction: column; gap: .15rem; }
.footer-links a {
  font-size: .9rem; text-decoration: none; color: #fff;
  transition: color .15s;
  padding-block: .12rem;
  min-height: 28px; display: flex; align-items: center;
}
.footer-links a:hover { color: #fff; }

.footer-contact { display: flex; flex-direction: column; gap: .5rem; }
.footer-contact a {
  font-size: .9rem; text-decoration: none; color: #fff;
  transition: color .15s;
}
.footer-contact a:hover { color: #fff; }
.footer-contact p { font-size: .875rem; line-height: 1.6; margin-top: .25rem; color: rgba(255,255,255,.88); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1.75rem;
  font-size: .8rem; color: rgba(255,255,255,.88);
  flex-wrap: wrap; gap: .75rem;
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: rgba(255,255,255,.88); text-decoration: none; }
.footer-bottom-links a:hover { color: rgba(255,255,255,.90); }
.footer-credit { color: rgba(255,255,255,.88); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(255,255,255,.4); }
.footer-credit:hover { text-decoration-color: rgba(255,255,255,.9); }

/* ── Mobile sticky CTA ── */
.mobile-sticky-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: .65rem 1rem calc(.65rem + env(safe-area-inset-bottom));
  display: flex; gap: .6rem; z-index: 99;
}
.sticky-call,
.sticky-quote {
  flex: 1; text-align: center;
  padding: .65rem; border-radius: var(--r);
  font-family: var(--sans); font-size: .85rem; font-weight: 500;
  text-decoration: none; transition: all .15s;
}
.sticky-call {
  background: rgba(255,255,255,.1); color: #fff;
  border: 1px solid rgba(255,255,255,.2);
}
.sticky-quote {
  background: var(--warm); color: #fff;
}

/* ── Count-up ── */
.count-up { display: inline; }

/* ── Accessibility ── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
*:focus-visible {
  outline: 2px solid var(--warm);
  outline-offset: 3px;
}

/* ── Utilities ── */
.text-center { text-align: center; }
.mt-sm { margin-top: .875rem; }
.mt-md { margin-top: 1.5rem; }
.mt-lg { margin-top: 2.5rem; }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s cubic-bezier(.16,1,.3,1), transform .55s cubic-bezier(.16,1,.3,1);
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-sidebar { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step:nth-child(2) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-aside { order: -1; }
}

@media (max-width: 768px) {
  .project-gallery { grid-template-columns: 1fr; }
  .project-gallery .wide { grid-column: 1; aspect-ratio: 16/9; }
  .site-nav { display: none; }
  .site-nav.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(255,255,255,.98);
    border-bottom: 1px solid var(--border);
    padding: .75rem 1.25rem 1.25rem;
    gap: .25rem;
    z-index: 99;
  }
  .site-nav.open a { padding: .85rem .875rem; min-height: 44px; display: flex; align-items: center; }
  .site-nav.open .btn { margin: .5rem 0 0; text-align: center; }
  .nav-toggle { display: flex; }
  .header-inner { position: relative; }

  .hero h1 { font-size: clamp(2rem, 7vw, 3rem); }
  .work-mosaic {
    grid-template-columns: 1fr 1fr;
  }
  .mosaic-a,.mosaic-b,.mosaic-c,.mosaic-d,.mosaic-e,.mosaic-f,.mosaic-g {
    grid-column: auto; grid-row: auto; aspect-ratio: 4/3;
  }
  .mosaic-a { grid-column: 1/-1; aspect-ratio: 16/9; }
  .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; border-radius: 0; }
  .process-step { border-right: none; border-bottom: 1px solid var(--border); }
  .process-step:last-child { border-bottom: none; }
  .cta-panel { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .project-cards { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-bar { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
  .mobile-sticky-cta { display: flex; }
  .about-split { grid-template-columns: 1fr; }
  .expect-grid,.vendor-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  body { padding-bottom: 70px; }
}

@media (max-width: 480px) {
  .project-cards { grid-template-columns: 1fr; }
  .fit-grid { grid-template-columns: 1fr 1fr; }
  .work-mosaic { grid-template-columns: 1fr; }
  .mosaic-a,.mosaic-b,.mosaic-c,.mosaic-d,.mosaic-e,.mosaic-f,.mosaic-g {
    grid-column: 1/-1; aspect-ratio: 16/9;
  }
}
@media (hover: none) {
  /* Touch devices: captions always visible */
  .mosaic-caption { opacity: 1; }
}

/* ── Page background ── */
body { background: #fff; overflow-x: hidden; }

/* ── Section dividers — centered, medium width ──────────────────────
   Used as an explicit .section-divider element so there's no
   contrast issue from CSS-generated content. */
.section-divider {
  display: flex;
  justify-content: center;
  padding-block: 0;
  margin: 0;
}
.section-divider::after {
  content: '';
  display: block;
  width: min(280px, 40vw);
  height: 1px;
  background: var(--sand);
  border-radius: 1px;
}



@media print {
  .mobile-sticky-cta,
  .site-header,
  .skip-link,
  .back-top { display: none !important; }
  body { padding-bottom: 0; }
  .reveal { opacity: 1 !important; transform: none !important; }
  a[href]::after { content: " (" attr(href) ")"; font-size: .8em; color: #666; }
  .btn { border: 1px solid #333 !important; }
}

/* ── Back to top ──────────────────────────────────────────────────── */
.back-top {
  position: fixed;
  right: 1.25rem;
  bottom: 5.5rem; /* above mobile sticky CTA */
  opacity: 0; pointer-events: none;
  border: 1.5px solid var(--border-mid);
  border-radius: 100px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  color: var(--ink-mid);
  padding: .5rem .875rem;
  font-family: var(--sans);
  font-size: .8rem; font-weight: 500;
  cursor: pointer;
  transition: opacity .2s, transform .2s, box-shadow .2s;
  z-index: 98;
  box-shadow: var(--shadow-sm);
}
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--warm); color: var(--warm); }
@media (min-width: 769px) {
  .back-top { bottom: 1.5rem; } /* no sticky bar on desktop */
}
@media print { .back-top { display: none; } }

/* ── Page load fade ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  body { animation: pageFade .3s ease-out; }
  @keyframes pageFade { from { opacity: 0; } to { opacity: 1; } }
}

/* ── Eyebrow inside dark CTA panel ────────────────────────────────── */
.cta-panel .eyebrow {
  color: rgba(255,255,255,.72);
  letter-spacing: .16em;
}

/* ── All links inside dark CTA panels — solid white, no opacity ────────
   Replaces all inline color styles so WAVE always sees #fff on dark bg */
.cta-panel a,
.cta-aside a,
.section-dark a {
  color: #fff;
}
.cta-panel a:hover,
.cta-aside a:hover,
.section-dark a:hover {
  color: #fff;
  opacity: .8;
}



/* value-cards are blue-filled, so give them a brighter outer glow instead of inner */
.value-card {
  box-shadow: 0 0 0 1px rgba(35,59,165,.35), 0 6px 26px rgba(35,59,165,.30), 0 0 26px rgba(35,59,165,.20) !important;
}


/* ===== ANIMATED CONIC GLOW BORDER ON CARDS (from Lab element library) ===== */
@property --ang { syntax:'<angle>'; initial-value:0deg; inherits:false; }

.value-card,
.fit-card,
.home-service-card,
.home-why-card,
.contact-aside-block,
.team-card,
.project-card,
.vendor-card {
  position: relative;
  border: none !important;
  box-shadow: 0 4px 18px rgba(22,32,79,.07) !important;
  isolation: isolate;
}
.value-card::before,
.fit-card::before,
.home-service-card::before,
.home-why-card::before,
.contact-aside-block::before,
.team-card::before,
.project-card::before,
.vendor-card::before {
  content:"";
  position:absolute; inset:0;
  border-radius: inherit;
  padding:2px;
  background: conic-gradient(from var(--ang,0deg),
    #4f7fe0, #1a4fb0, #10316d, #1a4fb0, #4f7fe0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: gl-spin 5s linear infinite;
  pointer-events:none;
  z-index:0;
}
@keyframes gl-spin { to { --ang:360deg; } }
@media (prefers-reduced-motion: reduce) {
  .value-card::before,.fit-card::before,.home-service-card::before,
  .home-why-card::before,.contact-aside-block::before,
  .team-card::before,.project-card::before,.vendor-card::before { animation:none; }
}

/* ===== PHOTOS COMING SOON PLACEHOLDER ===== */
.photos-coming-soon {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .6rem; text-align: center;
  min-height: 280px; padding: 2.5rem 1.5rem;
  border-radius: 14px;
  background:
    linear-gradient(rgba(16,49,109,.04), rgba(16,49,109,.04)),
    repeating-linear-gradient(45deg, rgba(16,49,109,.05) 0 14px, transparent 14px 28px);
  border: 2px dashed rgba(16,49,109,.28);
  color: #10316d;
}
.photos-coming-soon .pcs-icon {
  width: 44px; height: 44px; opacity: .55;
}
.photos-coming-soon h3 {
  margin: 0; font-size: 1.15rem; font-family: var(--sans); color: #10316d;
}
.photos-coming-soon p {
  margin: 0; max-width: 42ch; color: #44506b; font-size: .95rem; line-height: 1.5;
}

/* card-level coming soon (projects hub) */
.project-card-soon {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1366 / 768; width: 100%;
  background:
    linear-gradient(rgba(16,49,109,.05), rgba(16,49,109,.05)),
    repeating-linear-gradient(45deg, rgba(16,49,109,.06) 0 14px, transparent 14px 28px);
  color: #10316d; font-family: var(--sans); font-weight: 600;
  font-size: .9rem; letter-spacing: .04em; text-transform: uppercase;
}

/* ===== V10: PREFERRED VENDORS NAV + PAGE REFINEMENTS ===== */
.site-nav a[href="preferred-vendors.html"] { white-space: nowrap; }

@media (max-width: 1100px) and (min-width: 901px) {
  .brand { gap: .7rem; }
  .brand-name { font-size: .95rem; }
  .site-nav { gap: .1rem; }
  .site-nav a { font-size: .82rem; padding: .45rem .55rem; }
  .site-nav .btn { margin-left: .2rem; padding: .6rem 1rem; font-size: .82rem; }
}

/* Switch to the mobile menu before the full Preferred Vendors label crowds the brand. */
@media (max-width: 900px) {
  .site-nav { display: none; }
  .site-nav.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(255,255,255,.98);
    border-bottom: 1px solid var(--border);
    padding: .75rem 1.25rem 1.25rem;
    gap: .25rem;
    z-index: 99;
  }
  .site-nav.open a { padding: .85rem .875rem; min-height: 44px; display: flex; align-items: center; }
  .site-nav.open .btn { margin: .5rem 0 0; text-align: center; justify-content: center; }
  .nav-toggle { display: flex; }
  .header-inner { position: relative; }
}

/* ===== V10: SIDE-BY-SIDE PROJECT COMPARISONS ===== */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.comparison-card {
  margin: 0;
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.comparison-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.comparison-card figcaption {
  display: flex;
  flex-direction: column;
  gap: .38rem;
  padding: 1.25rem 1.35rem 1.4rem;
}
.comparison-label {
  color: var(--warm);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.comparison-card figcaption strong {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--ink);
}
.comparison-card figcaption > span:last-child {
  color: var(--ink-soft);
  font-size: .9rem;
  line-height: 1.6;
}

/* Even, flexible galleries for pages with a fuller set of project photos. */
.project-gallery.project-gallery-even {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.project-gallery.project-gallery-even img,
.project-gallery.project-gallery-even .wide {
  grid-column: auto;
  aspect-ratio: 4 / 3;
}

/* ===== V10: PREFERRED VENDOR CARDS ===== */
.vendor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}
.vendor-card {
  padding: 0;
  overflow: hidden;
  border-radius: var(--r-xl);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.vendor-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  background: var(--cream-alt);
}
.vendor-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.35rem 1.35rem 1.45rem;
}
.vendor-card h3 {
  font-size: 1.15rem;
  margin: 0 0 .45rem;
}
.vendor-business {
  display: inline-flex;
  align-items: baseline;
  width: fit-content;
  color: var(--warm);
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
  margin-bottom: .9rem;
}
.vendor-business:hover { text-decoration: underline; }
.vendor-specialty {
  color: var(--ink-soft);
  font-size: .88rem;
  line-height: 1.65;
  margin: 0 0 1.1rem;
}
.vendor-contact-links {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-top: auto;
  padding-top: .95rem;
  border-top: 1px solid var(--border);
}
.vendor-contact-links a {
  color: var(--ink-mid);
  font-size: .8rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-decoration: none;
}
.vendor-contact-links a:hover { color: var(--warm); text-decoration: underline; }

@media (max-width: 1040px) {
  .vendor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .comparison-grid,
  .project-gallery.project-gallery-even,
  .vendor-grid { grid-template-columns: 1fr; }
}

/* V10 correction: keep the sticky contact bar mobile-only. */
.mobile-sticky-cta { display: none; }
@media (max-width: 900px) {
  .mobile-sticky-cta { display: flex; }
}

/* V10 correction: the comparison reads Before on the left, Finished on the right. */
.ba-after { clip-path: inset(0 0 0 50%); }

/* ============================================================
   V11 — project presentation, vendor hierarchy, image quality
   ============================================================ */

/* Project-detail pages: quieter cards and a more intentional rhythm. */
.project-detail .page-hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(26,79,176,.08), transparent 32%),
    linear-gradient(180deg, #fff 0%, var(--cream) 100%);
}
.project-detail .section-heading { max-width: 760px; }
.project-detail .grid-2 { gap: 1rem; }
.project-detail .value-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 1.55rem 1.65rem;
  box-shadow: 0 8px 28px rgba(16,32,80,.08) !important;
}
.project-detail .value-card h3 {
  color: var(--ink);
  font-size: 1.08rem;
  margin-bottom: .5rem;
}
.project-detail .value-card p {
  color: var(--ink-soft);
  font-size: .93rem;
  line-height: 1.7;
}
.project-detail .value-card::before { opacity: .72; }

/* Side-by-side project comparisons read as a designed story, not loose images. */
.project-detail .comparison-grid {
  gap: 1.4rem;
  align-items: stretch;
}
.project-detail .comparison-card {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(16,32,80,.11);
}
.project-detail .comparison-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--cream-alt);
}
.project-detail .comparison-card figcaption {
  padding: 1.25rem 1.35rem 1.45rem;
  min-height: 155px;
}
.project-detail .comparison-label {
  width: fit-content;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: rgba(26,79,176,.09);
  color: #1a4fb0;
}
.project-detail .comparison-card figcaption strong {
  font-size: 1.12rem;
  line-height: 1.35;
}

/* Formatted project-photo mosaics with captions. */
.project-gallery-v11 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}
.project-photo-card {
  grid-column: span 6;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(16,32,80,.10);
  border: 1px solid rgba(16,49,109,.09);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.project-photo-card--feature { grid-column: span 7; }
.project-photo-card--side { grid-column: span 5; }
.project-photo-card--third { grid-column: span 4; }
.project-photo-card--half { grid-column: span 6; }
.project-photo-card--wide { grid-column: 1 / -1; }
.project-photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--cream-alt);
}
.project-photo-card--wide img { aspect-ratio: 16 / 7; }
.project-photo-card figcaption {
  display: flex;
  flex-direction: column;
  gap: .28rem;
  padding: .95rem 1.05rem 1.05rem;
  border-top: 1px solid rgba(16,49,109,.08);
  flex: 1;
}
.project-photo-card figcaption strong {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
}
.project-photo-card figcaption span {
  color: var(--ink-soft);
  font-size: .84rem;
  line-height: 1.55;
}

/* Better empty-category presentation. */
.project-detail .photos-coming-soon {
  max-width: 760px;
  min-height: 340px;
  margin-inline: auto;
  border-radius: 22px;
  border: 1px dashed rgba(26,79,176,.34);
  background:
    radial-gradient(circle at 50% 0%, rgba(26,79,176,.08), transparent 42%),
    #fff;
  box-shadow: 0 12px 36px rgba(16,32,80,.08);
  padding: 3rem 2rem;
}

/* Vendor cards: two-column horizontal cards with clear hierarchy. */
.vendor-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
  align-items: stretch;
}
.vendor-card {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
  padding: 1rem;
  overflow: visible;
  background: #fff;
  border-radius: 20px;
  min-height: 250px;
  box-shadow: 0 10px 30px rgba(16,32,80,.09) !important;
}
.vendor-card::before { opacity: .8; }
.vendor-photo {
  width: 154px;
  height: 100%;
  min-height: 218px;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center top;
  border-radius: 14px;
  background: var(--cream-alt);
}
.vendor-body {
  padding: .3rem .25rem .25rem 0;
  min-width: 0;
}
.vendor-card h3 {
  order: 0;
  margin: 0 0 .35rem;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.vendor-business {
  order: 1;
  display: inline-flex;
  width: fit-content;
  margin: 0 0 .75rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.32;
}
.vendor-business span { color: #1a4fb0; font-family: var(--sans); font-size: .82em; }
.vendor-specialty {
  order: 2;
  margin: 0 0 .95rem;
  font-size: .87rem;
  line-height: 1.6;
}
.vendor-contact-links {
  order: 3;
  gap: .55rem;
  padding-top: .8rem;
  margin-top: auto;
}
.vendor-contact-links a {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr);
  gap: .55rem;
  align-items: start;
  font-size: .79rem;
  line-height: 1.45;
}
.vendor-contact-links a::before {
  color: #1a4fb0;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding-top: .08rem;
}
.vendor-contact-links a[href^="tel:"]::before { content: "Phone"; }
.vendor-contact-links a[href^="mailto:"]::before { content: "Email"; }
.vendor-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  width: min(100%, 640px);
  justify-self: center;
}

@media (max-width: 980px) {
  .project-photo-card--feature,
  .project-photo-card--side,
  .project-photo-card--third,
  .project-photo-card--half { grid-column: span 6; }
  .vendor-grid { grid-template-columns: 1fr; }
  .vendor-card:last-child:nth-child(odd) { grid-column: auto; width: 100%; }
}

@media (max-width: 700px) {
  .project-gallery-v11 { grid-template-columns: 1fr; }
  .project-photo-card,
  .project-photo-card--feature,
  .project-photo-card--side,
  .project-photo-card--third,
  .project-photo-card--half,
  .project-photo-card--wide { grid-column: 1; }
  .project-photo-card--wide img { aspect-ratio: 4 / 3; }
  .project-detail .comparison-card figcaption { min-height: 0; }
  .vendor-card {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: .9rem;
    min-height: 0;
    padding: .85rem;
  }
  .vendor-photo {
    width: 108px;
    min-height: 150px;
    height: 100%;
  }
  .vendor-business { font-size: 1rem; }
  .vendor-contact-links a { grid-template-columns: 39px minmax(0,1fr); }
}

@media (max-width: 480px) {
  .vendor-card {
    grid-template-columns: 1fr;
  }
  .vendor-photo {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .vendor-body { padding: .25rem .35rem .4rem; }
}


/* ============================================================
   V12 — targeted image, project navigation, and vendor fixes
   ============================================================ */

/* Groundworks is a logo rather than a portrait. Keep the entire mark visible
   without changing the crop treatment on the other vendor photos. */
.vendor-photo.vendor-photo--logo {
  object-fit: contain;
  object-position: center;
  padding: 1rem;
  background: #fff;
}

/* A three-image Living Spaces gallery: two project views followed by one
   intentionally centered detail, rather than an unmatched "before" image. */
.project-photo-card--centered {
  grid-column: 1 / -1;
  width: min(100%, 820px);
  justify-self: center;
}

/* Cross-category project navigation on every project detail page. */
.project-switcher-section {
  padding: clamp(1.25rem, 3vw, 2.25rem) 0 .5rem;
  background: #fff;
}
.project-switcher {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1.1rem 1.5rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(16,49,109,.11);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(26,79,176,.045), rgba(255,255,255,.96));
  box-shadow: 0 8px 26px rgba(16,32,80,.07);
}
.project-switcher-label {
  color: var(--ink-mid);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .11em;
  line-height: 1.35;
  text-transform: uppercase;
  white-space: nowrap;
}
.project-switcher-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .55rem;
}
.project-switcher-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: .58rem .82rem;
  border: 1px solid rgba(16,49,109,.18);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-mid);
  font-size: .78rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}
a.project-switcher-link:hover {
  transform: translateY(-1px);
  border-color: #1a4fb0;
  color: #1a4fb0;
  box-shadow: 0 5px 14px rgba(26,79,176,.10);
}
.project-switcher-link.is-current {
  border-color: #1a4fb0;
  background: #1a4fb0;
  color: #fff;
  cursor: default;
}

@media (max-width: 900px) {
  .project-switcher {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .project-switcher-links { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .project-switcher { padding: 1rem; }
  .project-switcher-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .project-switcher-link { width: 100%; padding-inline: .55rem; }
}
@media (max-width: 380px) {
  .project-switcher-links { grid-template-columns: 1fr; }
}


/* ============================================================
   V14 — mobile vendor legibility and About image refinement
   ============================================================ */

.about-split .about-photo {
  aspect-ratio: 4 / 3;
  object-position: center;
}

@media (max-width: 700px) {
  .vendor-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: .85rem;
    align-items: start;
  }
  .vendor-photo {
    width: 96px;
    height: 96px;
    min-height: 0;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
  }
  .vendor-photo.vendor-photo--logo {
    object-fit: contain;
    object-position: center;
    padding: .65rem;
  }
  .vendor-body {
    min-width: 0;
    padding: .05rem 0 .25rem;
  }
  .vendor-contact-links a {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: .45rem;
    overflow-wrap: anywhere;
  }
  .vendor-contact-links a::before {
    white-space: nowrap;
    letter-spacing: .04em;
  }
}

@media (max-width: 480px) {
  .vendor-card {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: .75rem;
  }
  .vendor-photo {
    width: 88px;
    height: 88px;
    min-height: 0;
    aspect-ratio: 1 / 1;
  }
  .vendor-body { padding: 0 0 .2rem; }
  .vendor-contact-links a {
    grid-template-columns: 48px minmax(0, 1fr);
  }
}

/* ============================================================
   V15 — definitive mobile vendor card fix
   ============================================================ */

@media (max-width: 600px) {
  /* Give portraits room to breathe and show the complete source image. */
  .vendor-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem;
  }

  .vendor-photo,
  .vendor-photo.vendor-photo--logo {
    display: block;
    width: 152px;
    height: 152px;
    min-height: 0;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    padding: 0;
    object-fit: contain;
    object-position: center;
    border-radius: 14px;
    background: var(--cream-alt);
  }

  .vendor-photo.vendor-photo--logo {
    padding: .85rem;
  }

  .vendor-body {
    width: 100%;
    min-width: 0;
    padding: 0 .15rem .2rem;
  }

  .vendor-card h3,
  .vendor-business,
  .vendor-specialty {
    text-align: center;
    margin-inline: auto;
  }

  .vendor-contact-links {
    width: 100%;
  }

  .vendor-contact-links a {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: .7rem;
    align-items: start;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .vendor-contact-links a::before {
    display: block;
    width: auto;
    min-width: max-content;
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
    letter-spacing: .04em;
  }
}

@media (max-width: 360px) {
  .vendor-photo,
  .vendor-photo.vendor-photo--logo {
    width: 136px;
    height: 136px;
  }

  .vendor-card {
    padding: .9rem;
  }

  .vendor-contact-links a {
    column-gap: .55rem;
    font-size: .76rem;
  }
}


/* V17 — vendor website-only contact row for Phillip Wiegand. */
.vendor-contact-links a[href^="http"]::before { content: "Web"; }
.vendor-contact-links a[target="_blank"]::after {
  content: " ↗";
  color: #1a4fb0;
  font-size: .9em;
}


/* V21 — Phillip's source image has been rebuilt with balanced whitespace.
   Keep the card crop neutral so CSS does not fight the corrected image. */
.vendor-photo--phillip { object-position: center top; }
