/* ==========================================================================
   Evoheat — warm editorial: ivory/cream foundations, espresso feature
   sections, Evoheat green + sun-gold logo accents used sparingly.
   Type: Fraunces (display serif) + Archivo (UI/body).
   Radius system: cards/media 16px, inputs 10px, buttons pill
   ========================================================================== */

:root {
  /* Foundations */
  --bg: #f5f0e7;            /* warm ivory page */
  --bg-alt: #ede4d6;        /* soft cream alternate section */
  --surface: #faf6ee;       /* elevated card surface */
  --surface-dark: #30221d;  /* espresso feature sections */
  --charcoal: #211e1b;      /* warm charcoal (footer) */
  /* Text */
  --text: #2b211b;
  --text-secondary: #55463c;
  --text-muted: #7a695c;
  --text-on-dark: #f2ebdf;
  --text-muted-dark: #c4b4a4;
  /* Borders */
  --line: rgba(48, 34, 29, 0.14);
  --line-strong: rgba(48, 34, 29, 0.3);
  --line-dark: rgba(245, 240, 231, 0.16);
  /* Evoheat brand accents (from the logo family) */
  --brand: #2e7a44;         /* deep green — links, CTAs, focus (AA on ivory) */
  --brand-bright: #55b168;  /* lighter green — decorative, dark surfaces */
  --sun: #e3a82b;           /* logo sun gold — small details only */
  --accent-hover: #245f36;
  /* States */
  --error: #a94436;
  --error-soft: #c05b4c;
  --success: #2e7a44;
  /* System */
  --radius-card: 16px;
  --radius-input: 10px;
  --font: "Archivo", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h1, h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 520;
  letter-spacing: -0.01em;
  line-height: 1.08;
  text-wrap: balance;
}

h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }

h3 { margin: 0; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; text-wrap: balance; }

p { margin: 0; }

a { color: inherit; text-decoration: none; }

.icon { width: 1.05em; height: 1.05em; flex-shrink: 0; }

::selection { background: var(--brand); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 200;
  background: var(--brand);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6em 1.2em;
  border-radius: 999px;
  transform: translateY(-300%);
  transition: transform 0.25s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* Anchor targets clear the fixed header */
section[id], main[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* Grain overlay (fixed, non-scrolling, cheap) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease-out), background 0.25s var(--ease-out),
              border-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.btn:active { transform: scale(0.98); }
.btn-solid { background: var(--brand); color: #f7f3ea; }
.btn-solid:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(46, 122, 68, 0.28);
}
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.btn-wide { justify-content: center; width: 100%; }
/* Arrow micro-interaction: nudges right on hover, in from the parent so links/buttons both work */
.btn .btn-arrow { transition: transform 0.3s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  color: var(--text-on-dark); /* sits over the dark hero imagery until scrolled */
  transition: background 0.35s ease, box-shadow 0.35s ease, color 0.35s ease;
}
.site-header.scrolled {
  background: rgba(48, 34, 29, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-dark);
  color: var(--text-on-dark);
}
.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  font-variation-settings: "wdth" 112;
}
.wordmark-text span { color: var(--brand-bright); }
.wordmark-sun {
  width: 46px;
  height: 46px;
  object-fit: contain;
}
/* Nav links: bordered pills with a liquid rise-fill on hover
   (adapted from uiverse.io/cssbuttons-io/calm-tiger-42, MIT) */
.main-nav {
  display: flex;
  gap: 0.45rem;
  margin-left: auto;
  font-size: 0.9rem;
}
.main-nav a {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 0.5em 1.1em;
  border: 1px solid rgba(242, 235, 223, 0.32);
  border-radius: 999px;
  color: rgba(242, 235, 223, 0.85);
  transition: color 0.2s ease-in, border-color 0.2s ease-in;
}
.main-nav a::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 100%;
  width: 140%;
  height: 180%;
  border-radius: 50%;
  background: rgba(46, 122, 68, 0.25);
  transform: translateX(-50%) scaleY(1) scaleX(1.25);
  transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
}
.main-nav a::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 55%;
  top: 180%;
  width: 160%;
  height: 190%;
  border-radius: 50%;
  background: var(--brand);
  transform: translateX(-50%) scaleY(1) scaleX(1.45);
  transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
}
.main-nav a:hover,
.main-nav a.active {
  color: #f7f3ea;
  border-color: var(--brand);
}
.main-nav a:hover::before,
.main-nav a.active::before {
  top: -35%;
  background: var(--brand);
  transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}
.main-nav a:hover::after,
.main-nav a.active::after {
  top: -45%;
  background: var(--brand);
  transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}
.header-call { font-size: 0.88rem; padding: 0.65em 1.35em; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px; height: 44px;
  background: none;
  border: 1px solid currentColor;
  border-radius: 999px;
  cursor: pointer;
  padding: 0 11px;
  color: inherit;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.nav-toggle.open span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle.open span:last-child { transform: translateY(-4px) rotate(-45deg); }
/* Instant flip (no transition): the cream menu panel appears under the header,
   so the header text must be readable immediately */
body.menu-open .site-header {
  color: var(--text);
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: none;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(245, 240, 231, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}
.mobile-menu .btn { margin-top: 1rem; font-size: 1rem; }

/* ===== Hero: full-bleed sliding backdrop ===== */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 2rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 7vh, 5.5rem);
  background: var(--charcoal);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.07);
  transition: opacity 1.4s ease;
  will-change: transform, opacity;
}
.hero-bg img.active {
  opacity: 1;
  transform: scale(1);
  transition: opacity 1.4s ease, transform 9s linear; /* slow Ken Burns settle */
}
/* Warm scrim keeps ivory copy legible over any backdrop */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(33, 30, 27, 0.82) 0%, rgba(33, 30, 27, 0.32) 45%, rgba(33, 30, 27, 0.3) 100%),
    linear-gradient(100deg, rgba(33, 30, 27, 0.5) 0%, transparent 55%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
}
.hero-copy { max-width: 44rem; color: var(--text-on-dark); }
.hero .eyebrow { color: var(--sun); }
.hero-title {
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  font-weight: 480;
  letter-spacing: -0.015em;
  line-height: 1.05;
  color: var(--text-on-dark);
}
.hero-title em {
  font-style: italic;
  color: var(--sun);
  line-height: 1.1;
  padding-bottom: 0.06em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero-title .line > span { display: block; }
.hero-sub {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(242, 235, 223, 0.85);
}
.hero-ctas {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.hero-ctas .btn-ghost {
  border-color: rgba(242, 235, 223, 0.45);
  color: var(--text-on-dark);
}
.hero-ctas .btn-ghost:hover { border-color: var(--sun); color: var(--sun); }
.hero-trust {
  margin-top: 1.9rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: rgba(242, 235, 223, 0.66);
}

/* ===== Trust strip ===== */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 2.6rem clamp(1.25rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.trust-item { display: flex; flex-direction: column; gap: 0.3rem; }
.trust-num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 540;
  font-variant-numeric: tabular-nums;
  color: var(--brand);
  letter-spacing: -0.01em;
}
.trust-label { font-size: 0.88rem; color: var(--text-muted); max-width: 15rem; }

/* ===== Sections shared ===== */
section { position: relative; }
.section-head {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 8rem) clamp(1.25rem, 4vw, 3rem) clamp(2.2rem, 4vw, 3.5rem);
}
.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ===== Who we help: dual pathways ===== */
.paths-grid {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.path-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(1.8rem, 3vw, 2.6rem);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease-out), border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.path-card:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 122, 68, 0.45);
  box-shadow: 0 18px 44px rgba(48, 34, 29, 0.1);
}
.path-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 1rem;
}
.path-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 540;
}
.path-card p { margin-top: 1rem; color: var(--text-secondary); font-size: 0.97rem; }
.path-ctas {
  margin-top: auto;
  padding-top: 1.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.paths-note {
  max-width: 46rem;
  margin: clamp(2.2rem, 4vw, 3.2rem) auto 0;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* ===== Services at a glance: drawn line icons ===== */
.glance-head .section-intro {
  margin-top: 1.3rem;
  max-width: 34rem;
  color: var(--text-secondary);
}
.glance-grid {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(2.8rem, 5vw, 4rem) 2rem;
}
.glance-item { text-align: center; }
.glance-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 1.1rem;
  color: var(--brand);
  transition: transform 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.glance-icon svg { width: 64px; height: 64px; display: block; overflow: visible; }
.glance-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0; /* default: drawn (safe if the reveal observer never fires) */
}
.glance-item h3 { font-size: 1.05rem; }
.glance-item p {
  margin: 0.55rem auto 0;
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.55;
  max-width: 240px;
}
.glance-item:hover .glance-icon { transform: translateY(-4px); color: var(--sun); }

/* draw the strokes in (Vivus-style) when the item scrolls into view */
.glance-item.in .glance-icon path { animation: drawIcon 0.9s var(--ease-out) both; }
.glance-item.in .glance-icon path:nth-child(2) { animation-delay: 0.12s; }
.glance-item.in .glance-icon path:nth-child(3) { animation-delay: 0.24s; }
.glance-item.in .glance-icon path:nth-child(4) { animation-delay: 0.36s; }
.glance-item.in .glance-icon path:nth-child(5) { animation-delay: 0.48s; }
@keyframes drawIcon { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ===== Services ===== */
.services-group-label {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem) 1.1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  font-weight: 600;
}
.services-group-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.services-lead + .services-group-label,
.services-grid + .services-group-label { padding-top: clamp(2.6rem, 5vw, 4rem); }

.services-lead {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 122, 68, 0.45);
  box-shadow: 0 18px 44px rgba(48, 34, 29, 0.1);
}
/* Cursor spotlight (desktop, driven by JS via --mx / --my) */
@media (hover: hover) and (pointer: fine) {
  .service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(227, 168, 43, 0.09), transparent 65%);
    transition: opacity 0.35s ease;
  }
  .service-card:hover::before { opacity: 1; }
}
.service-card-lg .service-img { aspect-ratio: 16 / 9; overflow: hidden; }
.service-card-lg .service-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.service-card-lg:hover .service-img img { transform: scale(1.04); }
.service-body, .service-card > h3 { padding: 1.6rem 1.6rem 0; }
.service-card-lg .service-body { padding: 1.7rem 1.8rem 1.9rem; }
.service-card-lg h3 { font-size: 1.45rem; padding: 0; }
.service-body p { margin-top: 0.7rem; color: var(--text-muted); font-size: 0.97rem; }
.service-card > p {
  padding: 0.6rem 1.6rem 1.6rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.services-grid {
  max-width: 1320px;
  margin: 1.4rem auto 0;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(210px, auto);
  gap: 1.4rem;
}
.services-grid .service-card { display: flex; flex-direction: column; justify-content: flex-start; }
.service-card-img { position: relative; min-height: 300px; }
.service-card-img img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.service-overlay {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 1.6rem;
  background: linear-gradient(to top, rgba(33, 30, 27, 0.92) 30%, rgba(33, 30, 27, 0.55) 75%, transparent);
  color: var(--text-on-dark);
}
.service-overlay h3 { padding: 0; }
.service-overlay p { margin-top: 0.5rem; color: rgba(242, 235, 223, 0.85); font-size: 0.93rem; }

/* ===== About ===== */
.about {
  background:
    radial-gradient(900px 500px at 8% 15%, rgba(227, 168, 43, 0.07), transparent 60%),
    var(--bg-alt);
  margin-top: clamp(4.5rem, 9vw, 8rem);
}
.about-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(4.5rem, 8vw, 7rem) clamp(1.25rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 5vw, 5.5rem);
  align-items: center;
}
.about-media img {
  border-radius: var(--radius-card);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  box-shadow: 0 24px 60px rgba(48, 34, 29, 0.18);
}
.about-copy p {
  margin-top: 1.3rem;
  color: var(--text-secondary);
  max-width: 38rem;
}
.about-copy h2 + p { margin-top: 1.8rem; }
.pull-quote {
  margin: 2.4rem 0 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--sun);
}
.pull-quote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text);
  font-style: italic;
  line-height: 1.55;
}
.pull-quote cite {
  display: block;
  margin-top: 0.9rem;
  font-style: normal;
  font-family: var(--font);
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ===== Process ===== */
.process-steps {
  list-style: none;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.4rem;
  counter-reset: step;
}
.process-step {
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  position: relative;
}
.process-step::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 2.4rem;
  height: 1.5px;
  background: var(--sun);
}
.process-num {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.process-step h3 { margin-top: 0.9rem; font-size: 1.08rem; }
.process-step p { margin-top: 0.6rem; font-size: 0.9rem; color: var(--text-muted); }

/* ===== Work gallery: card fan carousel ===== */
.work { overflow: hidden; }
.fan-stage {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1rem clamp(1.25rem, 4vw, 3rem) 0;
}
.fan-deck {
  position: relative;
  height: clamp(330px, 52vw, 470px);
  touch-action: pan-y;
}
.fan-card {
  --fan-w: clamp(190px, 24vw, 320px);
  position: absolute;
  left: 50%;
  top: 0;
  width: var(--fan-w);
  margin-left: calc(var(--fan-w) / -2);
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 0;
  background: var(--surface);
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  /* pivot well below the deck so cards fan like a hand of playing cards */
  transform-origin: 50% 165%;
  box-shadow: 0 24px 60px rgba(48, 34, 29, 0.24);
  will-change: transform;
}
.fan-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
/* Cards behind the front one dim slightly so the active photo reads first */
.fan-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(48, 34, 29, 0.4);
  opacity: var(--fan-dim, 0);
  transition: opacity 0.4s var(--ease-out);
  pointer-events: none;
}
.fan-card.is-front { cursor: zoom-in; }
.fan-caption {
  text-align: center;
  margin-top: 1.8rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  min-height: 1.5em;
}
.fan-nav {
  margin-top: 1.1rem;
  display: flex;
  justify-content: center;
  gap: 0.8rem;
}
.fan-nav button {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s var(--ease-out);
}
.fan-nav button:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.fan-nav .icon { width: 1.1rem; height: 1.1rem; }

/* ===== Case studies ===== */
.cases-list {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}
.case-row {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2.2rem, 4vw, 3.2rem) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.cases-list .case-row:last-child { border-bottom: 1px solid var(--line); }
.case-stat { display: flex; flex-direction: column; gap: 0.35rem; }
.case-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 540;
  font-variant-numeric: tabular-nums;
  color: var(--brand);
  letter-spacing: -0.02em;
  line-height: 1;
}
.case-num small { font-size: 0.45em; font-weight: 500; color: var(--text-muted); }
.case-metric { font-size: 0.88rem; color: var(--text-muted); }
.case-body h3 { font-size: 1.3rem; }
.case-body p { margin-top: 0.8rem; color: var(--text-secondary); max-width: 44rem; }

/* ===== Testimonials (espresso feature section) ===== */
.testimonials {
  background:
    radial-gradient(800px 460px at 88% 80%, rgba(227, 168, 43, 0.07), transparent 60%),
    var(--surface-dark);
  color: var(--text-on-dark);
  margin-top: clamp(4.5rem, 9vw, 8rem);
  padding: clamp(4.5rem, 8vw, 7rem) clamp(1.25rem, 4vw, 3rem);
}
.testimonial-stage {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.testimonial-slides { position: relative; min-height: 12.5rem; transition: height 0.4s var(--ease-out); }
.testimonial {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: translateY(12px);
  filter: blur(6px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), filter 0.6s var(--ease-out);
  pointer-events: none;
}
.testimonial.active { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.testimonial p {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.8rem);
  font-weight: 440;
  line-height: 1.45;
  letter-spacing: -0.005em;
}
.testimonial cite {
  display: block;
  margin-top: 1.4rem;
  font-style: normal;
  font-size: 0.92rem;
  color: var(--brand-bright);
}
.testimonial-nav {
  margin-top: 2.2rem;
  display: flex;
  justify-content: center;
  gap: 0.8rem;
}
.testimonial-nav button {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  background: none;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--text-on-dark);
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s var(--ease-out);
}
.testimonial-nav button:hover { border-color: var(--sun); color: var(--sun); transform: translateY(-1px); }
.testimonial-nav .icon { width: 1.1rem; height: 1.1rem; }

/* ===== FAQs ===== */
.faq-list {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}
.faqs .section-head { max-width: 880px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-list .faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.4rem 2.5rem 1.4rem 0;
  font-weight: 600;
  font-size: 1.05rem;
  position: relative;
  transition: color 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--brand);
  transition: transform 0.3s var(--ease-out);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { color: var(--brand); }
.faq-answer { overflow: hidden; }
.faq-answer p {
  padding: 0 0 1.5rem;
  color: var(--text-secondary);
  max-width: 46rem;
}

/* ===== Contact ===== */
.contact {
  background: radial-gradient(1000px 560px at 92% 10%, rgba(227, 168, 43, 0.06), transparent 62%);
}
.contact-inner {
  max-width: 1320px;
  margin: clamp(4.5rem, 9vw, 8rem) auto 0;
  padding: clamp(4rem, 7vw, 6rem) clamp(1.25rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  border-top: 1px solid var(--line);
}
.contact-lead { margin-top: 1.4rem; color: var(--text-secondary); max-width: 26rem; }
.contact-list {
  list-style: none;
  margin: 2.4rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.contact-list li { display: flex; flex-direction: column-reverse; gap: 0.15rem; }
.contact-list a, .contact-list address {
  font-style: normal;
  font-size: 1.15rem;
  font-weight: 600;
  transition: color 0.2s ease;
}
.contact-list a:hover { color: var(--brand); }
.contact-list span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}
.areas { margin-top: 2.6rem; }
.areas-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  font-weight: 600;
}
.areas-copy { margin-top: 0.7rem; font-size: 0.92rem; color: var(--text-muted); max-width: 26rem; }
.area-chips {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.area-chips li {
  font-size: 0.84rem;
  padding: 0.35em 0.9em;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  color: var(--text-secondary);
}

.accreditations {
  margin-top: 2.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.badge-chip {
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
  transition: transform 0.25s var(--ease-out);
}
.badge-chip:hover { transform: translateY(-2px); }
.badge-chip img { width: auto; height: 58px; object-fit: contain; }
.badge-chip-wide { padding: 0.55rem 1rem; }
.badge-chip-wide img { height: 22px; }

/* Partner brand row inside a service card (e.g. Viessmann) */
.brand-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.brand-row span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.brand-row img {
  height: 17px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}
.service-card:hover .brand-row img { opacity: 1; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  box-shadow: 0 24px 60px rgba(48, 34, 29, 0.08);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-field { display: flex; flex-direction: column; gap: 0.45rem; }
.form-field label { font-size: 0.88rem; font-weight: 600; }
.form-field input, .form-field textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  padding: 0.8rem 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.97rem;
  transition: border-color 0.2s ease;
}
.form-field input:focus, .form-field textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}
.form-field textarea { resize: vertical; }
.form-field.invalid input, .form-field.invalid textarea { border-color: var(--error); }
.form-error {
  font-size: 0.82rem;
  color: var(--error);
  min-height: 0;
}
.form-note { font-size: 0.88rem; color: var(--success); min-height: 1.2em; }
.form-privacy { font-size: 0.8rem; color: var(--text-muted); }
.label-optional {
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: 0.3em;
}
.form-field select {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  padding: 0.8rem 2.4rem 0.8rem 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.97rem;
  transition: border-color 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237a695c' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}
.form-field select:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}
/* Honeypot: moved off-screen rather than display:none so bots still fill it */
.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.btn[disabled] { opacity: 0.6; pointer-events: none; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(33, 30, 27, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem clamp(1rem, 4vw, 4rem);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox.open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox-stage {
  margin: 0;
  max-width: min(1100px, 88vw);
  text-align: center;
}
.lightbox-stage img {
  max-height: 78dvh;
  max-width: 100%;
  width: auto;
  margin: 0 auto;
  border-radius: var(--radius-card);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}
.lightbox-stage figcaption {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--text-muted-dark);
}
.lightbox-close, .lightbox-arrow {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  background: rgba(48, 34, 29, 0.85);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--text-on-dark);
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s var(--ease-out);
  flex-shrink: 0;
}
.lightbox-close { position: absolute; top: 1.25rem; right: 1.25rem; }
.lightbox-close:hover, .lightbox-arrow:hover { border-color: var(--sun); color: var(--sun); transform: translateY(-1px); }
.lightbox .icon { width: 1.15rem; height: 1.15rem; }
@media (max-width: 640px) {
  .lightbox { padding: 1rem; }
  .lightbox-arrow {
    position: absolute;
    bottom: 1.25rem;
    top: auto;
  }
  .lightbox-prev { left: 1.25rem; }
  .lightbox-next { right: 1.25rem; }
  .lightbox-stage img { max-height: 66dvh; }
}

/* ===== Footer (warm charcoal) ===== */
.site-footer {
  margin-top: clamp(4rem, 8vw, 7rem);
  background: var(--charcoal);
  color: var(--text-on-dark);
}
.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 3.5rem clamp(1.25rem, 4vw, 3rem) 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 2.5rem;
}
.footer-logo { width: 96px; height: 96px; object-fit: contain; }
.footer-brand p { margin-top: 0.9rem; color: var(--text-muted-dark); font-size: 0.92rem; }
.footer-nav, .footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.92rem;
  color: var(--text-muted-dark);
}
.footer-nav a:hover, .footer-meta a:hover { color: var(--brand-bright); }
.footer-copyright {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem) 2rem;
  font-size: 0.82rem;
  color: var(--text-muted-dark);
}

/* ===== Mobile sticky contact bar ===== */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  padding: 0.7rem clamp(1rem, 4vw, 1.25rem) calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(245, 240, 231, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  gap: 0.7rem;
  transform: translateY(0);
  transition: transform 0.35s var(--ease-out);
}
.mobile-cta.hidden, body.menu-open .mobile-cta { transform: translateY(110%); }
.mobile-cta .btn { flex: 1; justify-content: center; font-size: 0.92rem; padding: 0.8em 1em; }
.mobile-cta .btn-ghost { background: var(--surface); }

/* ===== Reveal (JS adds .in) ===== */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .main-nav { display: none; }
}
@media (max-width: 900px) {
  .process-steps { grid-template-columns: 1fr 1fr; }
  .trust-inner { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  .services-lead { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .paths-grid { grid-template-columns: 1fr; }
  .glance-grid { grid-template-columns: 1fr 1fr; gap: 2.6rem 1.4rem; }
  .about-inner { grid-template-columns: 1fr; }
  .case-row { grid-template-columns: 1fr; gap: 1rem; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 640px) {
  .header-call { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .main-nav { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; gap: 1.8rem; }
  .form-row { grid-template-columns: 1fr; }
  .hero { min-height: 88dvh; padding-top: calc(var(--header-h) + 1rem); }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .testimonial-slides { min-height: 17rem; }
  .mobile-cta { display: flex; }
  /* Keep the last content clear of the fixed bar */
  .site-footer { padding-bottom: 4.6rem; }
}
@media (min-width: 641px) {
  .nav-toggle { display: none; }
}
@media (max-width: 1024px) and (min-width: 641px) {
  .nav-toggle { display: flex; margin-left: auto; }
  .header-call { margin-left: auto; }
  .nav-toggle { margin-left: 0; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-bg img { transform: none; }
  .glance-item.in .glance-icon path { animation: none; stroke-dashoffset: 0; }
}
