/* =========================================================
   ARTISAN DESIGN REMODEL — Design System
   Palette + type sourced from client Brand Foundation & Style
   Guide (Consulting Edition, Aug 2026). See handoff notes for
   the color/font decision — the intake spec's default navy/gold
   values were overridden in favor of this brief.
   ========================================================= */

:root {
  /* ---- Color: Warm Modernism, expressed with restraint ---- */
  --ink: #20211F;        /* Midnight Ink — headlines, nav, authority */
  --ivory: #FAF7F2;      /* Warm Ivory — primary canvas (brightened) */
  --sand: #EDE2D5;       /* Desert Sand — soft section breaks (brightened) */
  --taupe: #B9A99B;      /* Architectural Taupe — rules, metadata */
  --gold: #B6A26A;       /* Artisan Gold — signature accent, sparing */

  --ink-70: rgba(32,33,31,0.7);
  --ink-45: rgba(32,33,31,0.45);
  --ivory-92: rgba(250,247,242,0.92);
  --gold-15: rgba(182,162,106,0.15);
  --gold-35: rgba(182,162,106,0.35);

  /* ---- Type ---- */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* ---- Layout ---- */
  --container: 1400px;
  --container-narrow: 1160px;
  --gutter: clamp(24px, 5vw, 72px);
  --radius: 2px;

  /* ---- Spacing scale ---- */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 32px;
  --space-lg: 64px;
  --space-xl: 112px;
  --space-2xl: 118px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---- Typography scale ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  letter-spacing: 0.005em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.08; font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.18; }
h3 { font-size: clamp(1.4rem, 2vw, 1.7rem); line-height: 1.3; }
h4 { font-size: 1.15rem; line-height: 1.4; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-70);
  max-width: 68ch;
}

.rule {
  border: none;
  border-top: 1px solid var(--taupe);
  opacity: 0.4;
  margin: 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--ivory);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--ivory); }

.btn-inverse {
  background: var(--ivory);
  color: var(--ink);
  border-color: var(--ivory);
}
.btn-inverse:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* ---- Placeholder / flag styling (visible in proof, removable at launch) ---- */
.needs-info {
  border: 1px dashed var(--gold);
  background: var(--gold-15);
  color: var(--ink);
  padding: 3px 10px;
  font-size: 0.78em;
  border-radius: var(--radius);
  display: inline-block;
}
.needs-info-block {
  border: 1px dashed var(--gold);
  background: var(--gold-15);
  padding: var(--space-md);
  text-align: center;
  color: var(--ink-70);
  font-size: 0.9rem;
}

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(32,33,31,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(182,162,106,0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 16px var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}

.logo {
  display: inline-block;
  line-height: 0;
}
.logo img {
  height: 58px;
  width: 75px;
  max-width: none;
  display: block;
}
.site-header .logo {
  line-height: 0;
}
.site-header .logo img { height: 84px; width: 109px; max-width: none; }

nav.primary-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a,
.nav-links > li > button {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  background: none;
  border: none;
  color: var(--ivory);
  cursor: pointer;
  padding: 8px 0;
  font-family: var(--font-body);
  white-space: nowrap;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ivory);
  border: 1px solid rgba(185,169,155,0.4);
  box-shadow: 0 18px 40px rgba(32,33,31,0.12);
  padding: 24px 28px;
  min-width: 300px;
  display: none;
  flex-direction: column;
}
.nav-links > li:hover .dropdown { display: flex; }

.dropdown-group { padding: 12px 0; }
.dropdown-group + .dropdown-group { border-top: 1px solid var(--sand); margin-top: 4px; padding-top: 18px; }

.dropdown-group h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 9px;
}
.dropdown-group h4::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
  flex-shrink: 0;
}

.dropdown-group details summary {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  list-style: none;
  padding: 4px 0;
}
.dropdown-group details summary a {
  flex: 1;
  color: var(--ink);
  text-align: left;
}
.dropdown-group details summary a:hover { color: var(--gold); }
.dropdown-group details summary::-webkit-details-marker { display: none; }
.dropdown-group details summary::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
  flex-shrink: 0;
  margin-right: 9px;
}
.dropdown-group details summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--gold);
  flex-shrink: 0;
}
.dropdown-group details[open] summary::after { content: "\2212"; }
.dropdown-group details[open] summary { margin-bottom: 12px; }

.dropdown-group ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0 23px;
  border-left: 1px solid var(--sand);
  display: grid;
  gap: 10px;
}

.dropdown-group a {
  font-size: 0.87rem;
  color: var(--ink-70);
}
.dropdown-group a:hover { color: var(--gold); }

.header-cta { display: flex; align-items: center; gap: 18px; }
.header-cta .btn { padding: 13px 26px; font-size: 0.75rem; }
.header-cta .btn-outline {
  color: var(--ivory);
  border-color: rgba(247,243,237,0.5);
}
.header-cta .btn-outline:hover { background: var(--ivory); color: var(--ink); }
.header-cta .btn:not(.btn-outline) {
  background: var(--ivory);
  color: var(--ink);
  border-color: var(--ivory);
}
.header-cta .btn:not(.btn-outline):hover { background: var(--gold); border-color: var(--gold); }

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.mobile-menu-toggle span {
  width: 24px;
  height: 1px;
  background: var(--ivory);
  display: block;
}

/* Mobile nav panel — deliberately kept OUTSIDE header for stacking-context safety */
#mobile-nav-panel {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ivory);
  overflow-y: auto;
  padding: 100px var(--gutter) 60px;
}
#mobile-nav-panel.open { display: block; }
#mobile-nav-panel .close-mobile {
  position: absolute;
  top: 28px;
  right: var(--gutter);
  background: none;
  border: none;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
#mobile-nav-panel details { border-bottom: 1px solid var(--sand); padding: 18px 0; }
#mobile-nav-panel summary { font-size: 1rem; cursor: pointer; }
#mobile-nav-panel ul { list-style: none; padding: 14px 0 0 0; margin: 0; display: grid; gap: 14px; }
#mobile-nav-panel a { font-size: 0.95rem; color: var(--ink-70); }
#mobile-nav-panel > a.top-link { display: block; padding: 18px 0; border-bottom: 1px solid var(--sand); font-size: 1rem; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img,
.hero-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.6s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide.kenburns { animation: heroZoom 6.5s ease-out forwards; }

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.07); }
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(32,33,31,0.55) 0%, rgba(32,33,31,0.35) 45%, rgba(32,33,31,0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-xl) var(--gutter) var(--space-lg);
  width: 100%;
  color: var(--ivory);
}
.hero-content .eyebrow { color: var(--gold); }
.hero-content .eyebrow::before { background: var(--gold); }
.hero-content h1 { color: var(--ivory); max-width: 16ch; margin: 22px 0 24px; }
.hero-content .lede { color: rgba(247,243,237,0.82); font-size: 1.2rem; max-width: 42ch; }
.hero-content .lede-brand { font-style: italic; }
.hero-actions { margin-top: var(--space-md); display: flex; gap: 18px; flex-wrap: wrap; }

/* =========================================================
   TRUST STRIP
   ========================================================= */
.trust-strip {
  background: var(--ink);
  color: var(--ivory);
  border-top: 1px solid rgba(182,162,106,0.25);
}
.trust-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-md) var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust-item {
  text-align: center;
  padding: var(--space-sm) var(--space-sm);
  border-left: 1px solid rgba(182,162,106,0.2);
}
.trust-item:first-child { border-left: none; }
.trust-item .value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  display: block;
  margin-bottom: 4px;
}
.trust-item .label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247,243,237,0.65);
}

/* =========================================================
   SECTION SHELL
   ========================================================= */
.section { padding: var(--space-2xl) 0; }
.section-sand { background: var(--sand); }
.section-header { max-width: 640px; margin-bottom: var(--space-lg); }
.section-header.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-header h2 { margin-top: 18px; }

/* =========================================================
   SERVICES GRID
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 34px;
}
.service-card {
  background: var(--ivory);
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(32,33,31,0.07), 0 24px 48px rgba(32,33,31,0.09);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, background 0.25s ease;
  overflow: hidden;
}
.service-card:hover {
  background: var(--ivory-92);
  transform: translateY(-10px);
  box-shadow: 0 16px 28px rgba(32,33,31,0.1), 0 36px 64px rgba(32,33,31,0.16);
}
.service-photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--sand);
  position: relative;
}
.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover .service-photo img { transform: scale(1.08); }
.service-photo-pending {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm);
  text-align: center;
}
.service-card-body {
  padding: 36px 34px 34px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
.service-card .num {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
}
.service-card .num::after {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
  display: inline-block;
}
.service-card h3 { font-size: 1.55rem; line-height: 1.25; }
.service-card h3 a { border-bottom: 1px solid transparent; }
.service-card h3 a:hover { border-bottom-color: var(--gold); }
.service-card p { color: var(--ink-70); font-size: 1rem; line-height: 1.55; }
.service-card .more {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: auto;
  display: inline-block;
  transition: transform 0.3s ease;
}
.service-card:hover .more { transform: translateX(4px); }

.capability-strip {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--taupe);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.capability-strip p { color: var(--ink-70); }
.capability-strip a { color: var(--gold); font-weight: 600; }

/* =========================================================
   OUR APPROACH
   ========================================================= */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.approach-card {
  text-align: center;
  padding: 0 12px;
}
.approach-num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}
.approach-card h3 { margin-bottom: 14px; }
.approach-card p { color: var(--ink-70); font-size: 0.95rem; }

/* =========================================================
   CASE STUDY PREVIEW
   ========================================================= */
.case-preview {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}
.case-preview img {
  border-radius: 6px;
  width: 100%;
  aspect-ratio: 4 / 3.1;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(32,33,31,0.08), 0 32px 64px rgba(32,33,31,0.14);
}
.case-copy .eyebrow { margin-bottom: 18px; }
.case-copy h2 { margin-bottom: 18px; }
.case-copy p { color: var(--ink-70); }
.case-copy .btn { margin-top: var(--space-sm); }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonial-block {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.testimonial-block blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-style: italic;
  color: var(--ink);
  margin: 0 0 24px;
  line-height: 1.4;
}
.testimonial-block cite {
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}
.promise-note {
  font-size: 0.85rem;
  color: var(--ink-70);
}
.reviews-pending-note {
  display: block;
  text-align: center;
  max-width: 480px;
  margin: var(--space-md) auto 0;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.review-card {
  background: var(--ivory-92);
  border: 1px solid var(--taupe);
  border-radius: 12px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review-stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 3px;
}
.review-card blockquote {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-style: italic;
  color: var(--ink);
  margin: 0;
  line-height: 1.55;
  flex: 1;
}
.review-card cite {
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
}
.review-card .review-date {
  color: var(--ink-70);
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
}

/* =========================================================
   PROCESS
   ========================================================= */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}
.process-step { padding-top: var(--space-sm); border-top: 1px solid var(--gold); }
.process-step .num { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold); display: block; margin-bottom: 10px; }
.process-step h3 { margin-bottom: 10px; }
.process-step p { color: var(--ink-70); font-size: 0.95rem; }

/* =========================================================
   FAQ
   ========================================================= */
.faq-list { display: grid; gap: 0; }
.faq-item { border-bottom: 1px solid var(--taupe); padding: var(--space-md) 0; }
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.15rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.3rem;
  color: var(--gold);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin-top: 14px; color: var(--ink-70); max-width: 68ch; }
.faq-more { margin-top: var(--space-md); }

/* =========================================================
   CTA SECTION
   ========================================================= */
.cta-section {
  background: var(--ink);
  color: var(--ivory);
  text-align: center;
  padding: var(--space-2xl) 0;
}
.cta-section .eyebrow { justify-content: center; }
.cta-section h2 { color: var(--ivory); margin: 18px auto 16px; max-width: 20ch; }
.cta-section .lede { color: rgba(247,243,237,0.75); margin: 0 auto var(--space-md); }
.cta-form-placeholder {
  max-width: 480px;
  margin: var(--space-md) auto 0;
  border: 1px dashed var(--gold);
  background: rgba(182,162,106,0.08);
  padding: var(--space-md);
  font-size: 0.85rem;
  color: rgba(247,243,237,0.8);
}
.cta-form-embed {
  max-width: 640px;
  margin: var(--space-md) auto 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--ivory);
}
.cta-form-embed iframe { display: block; width: 100%; border: none; }
.contact-form-area .cta-form-embed {
  margin: 0;
  max-width: none;
  box-shadow: 0 10px 24px rgba(32,33,31,0.08), 0 32px 64px rgba(32,33,31,0.12);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--ink); color: rgba(247,243,237,0.75); padding-top: var(--space-xl); }
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter) var(--space-lg);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-md);
}
.footer-brand .logo img { height: 64px; width: 83px; max-width: none; }
.footer-brand p { margin-top: 16px; font-size: 0.9rem; max-width: 30ch; color: rgba(247,243,237,0.6); }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a, .footer-col address { font-size: 0.9rem; color: rgba(247,243,237,0.75); font-style: normal; }
.footer-col a:hover { color: var(--gold); }
.footer-map { margin: 0 var(--gutter); }
.footer-map .needs-info-block { border-color: var(--gold); color: rgba(247,243,237,0.7); background: rgba(182,162,106,0.1); }
.footer-map-embed { position: relative; width: 100%; padding-bottom: 32%; min-height: 260px; border-radius: 6px; overflow: hidden; }
.footer-map-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.footer-bottom {
  max-width: var(--container);
  margin: var(--space-lg) auto 0;
  padding: var(--space-md) var(--gutter);
  border-top: 1px solid rgba(182,162,106,0.2);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(247,243,237,0.5);
}
.footer-bottom a { color: rgba(247,243,237,0.5); }
.footer-bottom a:hover { color: var(--gold); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-list { grid-template-columns: repeat(2, 1fr); }
  .approach-grid { grid-template-columns: 1fr; gap: 32px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .case-gallery { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  .founder-block { grid-template-columns: 1fr; }
  .founder-photo { position: static; max-width: 340px; margin: 0 auto; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-left: none; }
  .case-preview { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  nav.primary-nav .nav-links { display: none; }
  .header-cta { display: none; }
  .mobile-menu-toggle { display: flex; }
  .header-inner { justify-content: space-between; }
  .services-grid { grid-template-columns: 1fr; }
  .case-gallery { grid-template-columns: 1fr; }
  .blog-card { grid-template-columns: 1fr; } /* superseded by !important rule at file end due to earlier ordering issue */
  .blog-thumb { aspect-ratio: 16/10; }
  .process-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-left: none !important; border-top: 1px solid rgba(182,162,106,0.2); }
  .trust-item:first-child { border-top: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-content h1 { max-width: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Visible keyboard focus */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* =========================================================
   SERVICE / LOCATION PAGE EXTRAS
   ========================================================= */
.service-hero-photo {
  margin-top: var(--space-lg);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(32,33,31,0.08), 0 32px 64px rgba(32,33,31,0.12);
}
.service-hero-photo img {
  width: 100%;
  max-height: 680px;
  object-fit: cover;
  display: block;
}
.service-hero-photo.service-icon-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sand);
  padding: 48px;
  box-shadow: none;
}
.service-hero-photo.service-icon-tile img {
  width: 100%;
  max-width: 280px;
  max-height: 280px;
  height: auto;
  object-fit: contain;
}

/* Icon tile on homepage service cards (square aspect, matches photo cards) */
.service-icon-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sand);
  padding: var(--space-md);
}
.service-icon-tile img {
  width: 65%;
  height: 65%;
  object-fit: contain;
}
.service-hero-photo.service-photo-pending {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sand);
  box-shadow: none;
  padding: var(--space-md);
  text-align: center;
}
.scope-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.scope-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-70);
  font-size: 1rem;
}
.scope-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 14px;
  height: 1px;
  background: var(--gold);
}

/* Case study story blocks */
.case-story { display: grid; gap: var(--space-lg); }
.case-story-block .eyebrow { margin-bottom: 14px; }
.case-story-block h2 { margin-bottom: 16px; }
.case-story-block p { color: var(--ink-70); font-size: 1.02rem; max-width: 68ch; }

.case-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.case-gallery img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(32,33,31,0.06), 0 18px 36px rgba(32,33,31,0.08);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(182,162,106,0.25);
}
.stat-item { text-align: center; }
.stat-value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold);
  display: block;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247,243,237,0.65);
}

/* FAQ page groups */
.faq-group { margin-bottom: var(--space-lg); }
.faq-group:last-child { margin-bottom: 0; }
.faq-group-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  font-weight: 600;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--space-lg);
}
.contact-info h3 { margin-bottom: 16px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 1rem; }

/* Founder section */
.founder-block {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-lg);
  align-items: start;
}
.founder-photo {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(32,33,31,0.08), 0 28px 56px rgba(32,33,31,0.12);
  position: sticky;
  top: 120px;
}
.founder-photo img { width: 100%; display: block; }
.founder-copy .eyebrow { margin-bottom: 14px; }
.founder-copy h2 { margin-bottom: 8px; }
.founder-title {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 20px;
}
.founder-copy p { color: var(--ink-70); font-size: 1.02rem; margin-bottom: 18px; }
.founder-contact {
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--taupe);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  font-size: 0.92rem;
}
.founder-contact a { color: var(--ink); font-weight: 500; }
.founder-contact a:hover { color: var(--gold); }
.founder-contact span { color: var(--ink-70); }

.about-video {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(32,33,31,0.08), 0 32px 64px rgba(32,33,31,0.12);
}
.about-video video {
  width: 100%;
  display: block;
  background: var(--ink);
}

/* Blog */
.blog-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 32px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  text-align: center;
}
.blog-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(32,33,31,0.08), 0 24px 44px rgba(32,33,31,0.1);
  margin-bottom: 22px;
}
.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.blog-card:hover .blog-thumb img { transform: scale(1.05); }
.blog-thumb-pending {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sand);
  padding: var(--space-sm);
  text-align: center;
}

.blog-sort {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}
.blog-sort-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-70);
}
.sort-btn {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--taupe);
  border-radius: 999px;
  padding: 8px 18px;
  color: var(--ink-70);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.sort-btn:hover { border-color: var(--gold); color: var(--ink); }
.sort-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ivory);
}
.blog-card-body { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.blog-card h3 {
  order: -1;
  margin: 0 0 10px;
  font-size: 1.4rem;
  line-height: 1.3;
  max-width: 32ch;
}
.blog-card h3 a:hover { color: var(--gold); }
.blog-date { font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-70); }
.blog-card p { color: var(--ink-70); font-size: 0.95rem; max-width: 34ch; margin-top: 8px; }
.blog-card .more { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); margin-top: 10px; }

/* Blog post cards specifically (not case studies, which share .blog-card) hide
   the excerpt/link to match the reference layout: photo, title, date only. */
.blog-post-card p { display: none; }
.blog-post-card .more { display: none; }

.blog-post-body p { color: var(--ink-70); font-size: 1.05rem; margin-bottom: 20px; max-width: 78ch; }
.blog-post-body h2 { margin: 40px 0 16px; }
.blog-post-body h3 { margin: 28px 0 12px; }
.table-scroll { overflow-x: auto; margin: 24px 0; -webkit-overflow-scrolling: touch; }
.blog-post-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.95rem; }
.table-scroll table { margin: 0; min-width: 560px; }
.blog-post-body th, .blog-post-body td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--taupe); }
.blog-post-body th { color: var(--ink); font-family: var(--font-body); font-weight: 600; }

/* Blog article components: callout, comparison boxes, percentage bar */
.callout-box {
  background: var(--sand);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  padding: 24px 28px;
  margin: 8px 0 28px;
}
.callout-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
  font-weight: 600;
}
.callout-box p { margin-bottom: 0; }

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 20px 0 28px;
}
.compare-box {
  border: 1px solid var(--taupe);
  border-radius: 8px;
  padding: 26px 28px;
}
.compare-box h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
  font-weight: 600;
}
.compare-price {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--ink);
  display: block;
  margin-bottom: 16px;
}
.compare-box ul {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.compare-box ul li {
  font-size: 0.95rem;
  color: var(--ink-70);
  padding-left: 16px;
  position: relative;
}
.compare-box ul li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: var(--gold);
}
.compare-note { font-size: 0.9rem; font-weight: 600; color: var(--ink); margin-bottom: 0; }

.gap-bar {
  display: flex;
  border-radius: 4px;
  overflow: hidden;
  margin: 20px 0 24px;
}
.gap-seg {
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--ivory);
}
.gap-seg-1 { background: #6b5a33; }
.gap-seg-2 { background: var(--gold); }
.gap-seg-3 { background: #c9b98a; color: var(--ink); }
.gap-seg-4 { background: var(--sand); color: var(--ink); }
.gap-pct { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.gap-label { font-size: 0.78rem; letter-spacing: 0.04em; }
.gap-legend {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
  margin-bottom: 28px;
}
.gap-legend p { font-size: 0.92rem; color: var(--ink-70); margin-bottom: 0; }

/* Horizontal ROI comparison bars */
.roi-bars {
  display: grid;
  gap: 18px;
  margin: 24px 0 28px;
}
.roi-bar-row {
  display: grid;
  grid-template-columns: 200px 1fr 140px;
  align-items: center;
  gap: 16px;
}
.roi-bar-label {
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 600;
}
.roi-bar-track {
  background: var(--sand);
  border-radius: 999px;
  height: 14px;
  overflow: hidden;
}
.roi-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #8a6f3f);
  border-radius: 999px;
}
.roi-bar-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}
.roi-bar-note {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ink-70);
}
.blog-inline-photo {
  width: 100%;
  border-radius: 6px;
  margin: 8px 0 28px;
  box-shadow: 0 4px 14px rgba(32,33,31,0.06), 0 18px 36px rgba(32,33,31,0.08);
}
.blog-hero-photo {
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: var(--space-md);
  box-shadow: 0 10px 24px rgba(32,33,31,0.08), 0 28px 56px rgba(32,33,31,0.12);
}
.blog-hero-photo img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}
.blog-excerpt {
  font-style: italic;
  color: var(--ink-70);
  font-size: 1.15rem;
  margin: 0 0 32px;
}

/* =========================================================
   SCROLL REVEAL — progressive enhancement
   Content is visible by default; only animates once `.js`
   is present on <html> (set inline, before paint) AND
   prefers-reduced-motion is not set.
   ========================================================= */
html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Staggered reveal for grid children */
html.js .services-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
html.js .services-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
html.js .services-grid .reveal:nth-child(4) { transition-delay: 0.04s; }
html.js .services-grid .reveal:nth-child(5) { transition-delay: 0.12s; }
html.js .services-grid .reveal:nth-child(6) { transition-delay: 0.2s; }
html.js .process-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
html.js .process-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
html.js .process-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
html.js .faq-list .reveal:nth-child(2) { transition-delay: 0.06s; }
html.js .faq-list .reveal:nth-child(3) { transition-delay: 0.12s; }
html.js .faq-list .reveal:nth-child(4) { transition-delay: 0.18s; }
html.js .faq-list .reveal:nth-child(5) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Blog card mobile fix — appended last to win source-order cascade */
@media (max-width: 760px) {
  .blog-card { grid-template-columns: 1fr !important; }
  .blog-thumb { aspect-ratio: 16/10; }
}

/* Founder section mobile fix — appended last to win source-order cascade */
@media (max-width: 760px) {
  .founder-block { grid-template-columns: 1fr !important; }
  .founder-photo {
    position: static !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
}

/* Blog list mobile fix — appended last to win source-order cascade */
@media (max-width: 760px) {
  .blog-list { grid-template-columns: 1fr !important; }
}

/* Blog/case-study list column fixes — appended last to win source-order cascade */
@media (max-width: 980px) {
  .blog-list { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 760px) {
  .blog-list { grid-template-columns: 1fr !important; }
}

/* Blog article component mobile fixes */
@media (max-width: 760px) {
  .compare-grid { grid-template-columns: 1fr !important; }
  .gap-bar { flex-wrap: wrap; }
  .gap-seg { flex: 1 1 50%; }
  .gap-legend { grid-template-columns: 1fr !important; }
}

/* Case gallery mobile fix — appended last to win source-order cascade */
@media (max-width: 760px) {
  .case-gallery { grid-template-columns: 1fr !important; }
}

/* ROI bars mobile fix */
@media (max-width: 760px) {
  .roi-bar-row { grid-template-columns: 1fr !important; gap: 6px !important; }
  .roi-bar-value { text-align: left !important; }
}

/* Contact grid mobile fix — source-order bug: base .contact-grid rule
   defined later in the file was overriding the earlier mobile override */
@media (max-width: 980px) {
  .contact-grid { grid-template-columns: 1fr !important; }
}
