/* ============================================================
   PACIFIC HOME EXTERIORS — Built to Protect. Built to Last.
   Bright, sunny California design system
   ============================================================ */

:root {
  /* Brand palette (from brand guidelines) */
  --navy: #0D2A5C;
  --navy-deep: #081E45;
  --red: #B3121F;
  --red-bright: #D8202F;
  --white: #FFFFFF;
  --slate: #5A6B82;
  --gray-soft: #8B99AD;

  /* Light surfaces */
  --bg: #F7FAFD;
  --bg-alt: #EEF4FA;
  --bg-warm: #FDF9F1;
  --card: #FFFFFF;
  --line: rgba(13, 42, 92, 0.10);
  --line-strong: rgba(13, 42, 92, 0.16);

  /* Glass (light) */
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.85);

  /* Type */
  --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-body: "Montserrat", "Helvetica Neue", sans-serif;

  --header-h: 76px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 24px 60px rgba(13, 42, 92, 0.12);
  --shadow-card: 0 10px 34px rgba(13, 42, 92, 0.10);
  --shadow-lift: 0 18px 44px rgba(13, 42, 92, 0.16);
}

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

html { scroll-behavior: smooth; background-color: var(--navy-deep); }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

body {
  background: var(--bg);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--red); color: var(--white); }

/* ---------- Typography ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: var(--navy);
}

h1 { font-size: clamp(3.4rem, 9.5vw, 8.2rem); }
h2 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: 0.04em; }

.accent { color: var(--red-bright); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 22px;
}
.kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--red);
}

.lede {
  color: var(--slate);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 500;
  max-width: 56ch;
}

.muted { color: var(--gray-soft); }

/* ---------- Layout ---------- */
.container {
  width: min(1220px, calc(100% - 48px));
  margin-inline: auto;
}

section { position: relative; padding: clamp(90px, 12vh, 150px) 0; }

.section-head { max-width: 780px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }
.section-head.center .kicker::before { display: none; }
.section-head.center .lede { margin-inline: auto; }
.section-head h2 { margin-bottom: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 34px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s, background 0.35s, border-color 0.35s, color 0.35s;
  white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; flex: none; }

.btn-primary {
  background: linear-gradient(140deg, var(--red-bright), var(--red) 60%);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(179, 18, 31, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(216, 32, 47, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(13, 42, 92, 0.22);
  color: var(--navy);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: var(--navy);
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(13, 42, 92, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}
.brand img { height: 62px; width: auto; filter: drop-shadow(0 3px 10px rgba(13, 42, 92, 0.18)); }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.42rem;
  letter-spacing: 0.06em;
  line-height: 0.9;
  color: var(--navy);
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--slate);
  margin-top: 4px;
}

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.75;
  position: relative;
  padding: 6px 0;
  transition: opacity 0.3s;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--red-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.main-nav a:hover { opacity: 1; }
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  color: var(--navy);
  transition: color 0.3s;
  white-space: nowrap;
}
.phone-link svg { width: 16px; height: 16px; color: var(--red-bright); }
.phone-link:hover { color: var(--red-bright); }
.header-actions .btn { padding: 13px 26px; font-size: 0.72rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px; height: 40px;
  position: relative;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  margin: 6px auto;
  transition: transform 0.3s, opacity 0.3s;
}
.site-header.nav-open {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border-bottom-color: transparent;
  transition: none;
}
.site-header.nav-open .nav-toggle span { background: var(--navy); }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero (full-bleed photography) ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 40px) 0 0;
  overflow: hidden;
  background: var(--navy-deep);
}

.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(75deg, rgba(4, 10, 24, 0.78) 0%, rgba(4, 10, 24, 0.44) 38%, rgba(4, 10, 24, 0.05) 68%),
    linear-gradient(180deg, rgba(4, 10, 24, 0.35) 0%, transparent 22%, transparent 62%, rgba(4, 10, 24, 0.62) 100%);
}

.hero-inner {
  position: relative;
  z-index: 3;
  padding-bottom: clamp(110px, 18vh, 190px);
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 20px 9px 12px;
  border-radius: 999px;
  background: rgba(8, 20, 44, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 34px;
}
.hero-badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 10px rgba(216, 32, 47, 0.8);
}

.hero h1 { color: var(--white); text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35); }
.hero h1 .accent { color: var(--red-bright); }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; }

.hero .lede {
  margin: 30px 0 42px;
  max-width: 52ch;
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.hero .btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.22); border-color: var(--white); box-shadow: none; }

/* Header over the hero photo (before scroll) */
.site-header.over-hero:not(.scrolled) .brand-name,
.site-header.over-hero:not(.scrolled) .main-nav a,
.site-header.over-hero:not(.scrolled) .phone-link { color: var(--white); }
.site-header.over-hero:not(.scrolled) .brand-name small { color: rgba(255, 255, 255, 0.7); }
.site-header.over-hero:not(.scrolled) .nav-toggle span { background: var(--white); }
.site-header.over-hero.nav-open .main-nav a { color: var(--navy); }
.site-header.over-hero.nav-open .nav-toggle span { background: var(--navy); }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}
.hero-scroll .wheel {
  width: 22px; height: 36px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  position: relative;
}
.hero-scroll .wheel::after {
  content: "";
  position: absolute;
  top: 7px; left: 50%;
  width: 3px; height: 7px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: var(--red-bright);
  animation: wheel 2.2s ease-in-out infinite;
}
@keyframes wheel {
  0%, 100% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(11px); opacity: 0; }
}

/* ---------- Trust bar ---------- */
.trust-strip {
  border-block: 1px solid var(--line);
  background: var(--navy);
  padding: 26px 0;
  overflow: hidden;
}
.trust-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.trust-track span {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.95);
  display: inline-flex;
  align-items: center;
  gap: 64px;
  white-space: nowrap;
}
.trust-track .star { color: var(--red-bright); font-size: 0.95rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Problem / Solution ---------- */
.problem {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}

.fail-list { display: grid; gap: 14px; }
.fail-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 26px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(13, 42, 92, 0.05);
}
.fail-item .x {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(179, 18, 31, 0.09);
  color: var(--red-bright);
  font-weight: 700;
  font-size: 0.9rem;
}
.fail-item strong { display: block; font-size: 0.95rem; letter-spacing: 0.02em; color: var(--navy); }
.fail-item p { font-size: 0.86rem; color: var(--slate); margin-top: 3px; }

.standard-card {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(36px, 4vw, 56px);
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  color: var(--white);
}
.standard-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 260px at 20% 0%, rgba(255, 255, 255, 0.1), transparent 60%);
  pointer-events: none;
}
.standard-card .kicker { color: var(--red-bright); }
.standard-card .kicker::before { background: var(--red-bright); }
.standard-card h3 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); margin-bottom: 20px; color: var(--white); }
.standard-card .lede { font-size: 1rem; margin-bottom: 28px; color: rgba(255, 255, 255, 0.82); }
.pledge { display: grid; gap: 16px; }
.pledge li {
  list-style: none;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
}
.pledge .check {
  flex: none;
  width: 22px; height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(216, 32, 47, 0.28);
}
.pledge .check svg { width: 11px; height: 11px; color: var(--red-bright); }

/* ---------- Services ---------- */
.services { overflow: clip; background: var(--bg); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.service-card {
  position: relative;
  display: block;
  padding: 26px 22px 22px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(13, 42, 92, 0.05);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s, box-shadow 0.4s;
  cursor: pointer;
  overflow: hidden;
}
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px 180px at 85% -10%, rgba(216, 32, 47, 0.06), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.service-card:hover, .service-card.active {
  transform: translateY(-5px);
  border-color: rgba(216, 32, 47, 0.45);
  box-shadow: var(--shadow-lift);
}
.service-card:hover::after, .service-card.active::after { opacity: 1; }
.service-card .icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(13, 42, 92, 0.06);
  border: 1px solid var(--line);
  margin-bottom: 18px;
}
.service-card .icon svg { width: 22px; height: 22px; color: var(--red); }
.service-card h4 {
  font-family: var(--font-display);
  font-size: 1.32rem;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  color: var(--navy);
}
.service-card p { font-size: 0.83rem; color: var(--slate); line-height: 1.6; }

/* ---------- Service page sub-grid ---------- */
.sub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* ---------- Process ---------- */
.process {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}
.process-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.step {
  position: relative;
  padding: 34px 24px 30px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(13, 42, 92, 0.05);
  transition: border-color 0.4s, transform 0.4s, box-shadow 0.4s;
}
.step:hover { border-color: rgba(216, 32, 47, 0.4); transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.step .num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(216, 32, 47, 0.7);
  display: block;
  margin-bottom: 16px;
}
.step h4 {
  font-family: var(--font-display);
  font-size: 1.36rem;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  color: var(--navy);
}
.step p { font-size: 0.82rem; color: var(--slate); }
.step.final {
  background: linear-gradient(160deg, var(--navy), var(--navy-deep));
  border-color: var(--navy);
}
.step.final h4 { color: var(--white); }
.step.final p { color: rgba(255, 255, 255, 0.8); }
.step.final .num { -webkit-text-stroke-color: var(--red-bright); }

/* ---------- Advisor ---------- */
.advisor { overflow: hidden; background: var(--bg); }
.advisor-card {
  position: relative;
  border-radius: calc(var(--radius) + 10px);
  padding: clamp(50px, 7vw, 100px) clamp(28px, 6vw, 90px);
  text-align: center;
  background: linear-gradient(170deg, var(--navy) 0%, var(--navy-deep) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  color: var(--white);
}
.advisor-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(800px 400px at 50% -10%, rgba(255, 255, 255, 0.1), transparent 70%);
  pointer-events: none;
}
.advisor-card .shield {
  width: 64px; height: 64px;
  margin: 0 auto 28px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: rgba(216, 32, 47, 0.22);
  border: 1px solid rgba(255, 123, 133, 0.4);
}
.advisor-card .shield svg { width: 30px; height: 30px; color: var(--red-bright); }
.advisor-card .kicker { color: var(--red-bright); }
.advisor-quote {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  max-width: 20ch;
  margin: 0 auto 26px;
  text-transform: uppercase;
  color: var(--white);
}
.advisor-quote .accent { color: var(--red-bright); }
.advisor-card .lede { color: rgba(255, 255, 255, 0.82); }
.advisor-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}
.advisor-tags span {
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

/* ---------- Full-bleed photo banner ---------- */
.banner {
  position: relative;
  padding: 0;
  min-height: clamp(420px, 62vh, 640px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-deep);
}
.banner img.banner-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 10, 24, 0.45), rgba(4, 10, 24, 0.12) 40%, rgba(4, 10, 24, 0.55));
}
.banner.banner-plain::after { background: none; }
.banner .container { position: relative; z-index: 2; text-align: center; }
.banner h2 {
  color: var(--white);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
  max-width: 18ch;
  margin-inline: auto;
}
.banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 18px;
}

/* ---------- Projects / work slider ---------- */
.projects { background: var(--bg-alt); border-block: 1px solid var(--line); }
.work-wrap { position: relative; }
.work-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 6px;
  margin: -6px;
  cursor: grab;
}
.work-slider::-webkit-scrollbar { display: none; }
.work-slider.dragging { cursor: grabbing; scroll-snap-type: none; }
.work-slide {
  flex: 0 0 min(680px, 86%);
  scroll-snap-align: start;
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow-card);
  background: var(--navy-deep);
}
.work-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.work-slide:hover img { transform: scale(1.04); }
.work-slide::after {
  content: "";
  position: absolute;
  inset: 55% 0 0 0;
  background: linear-gradient(180deg, transparent, rgba(4, 10, 24, 0.62));
  pointer-events: none;
}
.work-slide figcaption {
  position: absolute;
  left: 22px;
  bottom: 18px;
  z-index: 2;
  color: var(--white);
}
.work-slide figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.work-slide figcaption span {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
.work-nav {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

/* Full uncropped photo, centered */
.photo-figure {
  margin: 0 auto;
  max-width: 900px;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.photo-figure img { width: 100%; height: auto; display: block; }

/* ---------- Page gallery ---------- */
.page-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 18px;
}
.gal-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-card);
  background: var(--navy-deep);
}
.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.gal-item:hover img { transform: scale(1.04); }

/* ---------- Testimonials ---------- */
.testimonials { overflow: hidden; background: var(--bg); }
.t-carousel { position: relative; }
.t-viewport { overflow: hidden; border-radius: var(--radius); }
.t-track {
  display: flex;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.t-slide { flex: 0 0 100%; padding: 4px; }
.t-card {
  border-radius: var(--radius);
  padding: clamp(36px, 5vw, 64px);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  text-align: center;
}
.t-stars { color: #E8A70C; letter-spacing: 5px; font-size: 1.05rem; margin-bottom: 22px; }
.t-quote {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.65;
  font-weight: 500;
  color: var(--navy);
  max-width: 62ch;
  margin: 0 auto 28px;
}
.t-who { display: flex; align-items: center; justify-content: center; gap: 14px; }
.t-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  background: var(--navy);
  color: var(--white);
}
.t-who .name { font-weight: 700; font-size: 0.9rem; display: block; text-align: left; color: var(--navy); }
.t-who .loc { font-size: 0.74rem; color: var(--slate); display: block; text-align: left; }
.t-google {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
}
.t-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}
.t-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--navy);
  display: grid;
  place-items: center;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}
.t-btn:hover { border-color: var(--red-bright); background: rgba(216, 32, 47, 0.06); color: var(--red-bright); }
.t-btn svg { width: 16px; height: 16px; }
.t-dots { display: flex; gap: 8px; }
.t-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(13, 42, 92, 0.18);
  transition: background 0.3s, transform 0.3s;
}
.t-dots button.active { background: var(--red-bright); transform: scale(1.3); }

/* ---------- Founder teaser ---------- */
.founder { background: var(--bg-warm); border-block: 1px solid var(--line); }
.founder .split { align-items: center; }
.founder .hero-photo-card { justify-self: center; }

/* Text intro and quote block share the left column on desktop; on mobile the
   portrait slots between them (after "Family operated.", before the quote). */
.founder-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-areas:
    "intro photo"
    "more  photo";
  column-gap: clamp(48px, 6vw, 96px);
  align-content: center;
}
.founder-intro { grid-area: intro; align-self: end; }
.founder-more { grid-area: more; align-self: start; }
.founder-layout .founder-photo { grid-area: photo; align-self: center; }

@media (max-width: 940px) {
  .founder-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "photo"
      "more";
  }
  .founder-layout .founder-photo { margin-top: 34px; }
  .founder-more { margin-top: 30px; }
  .founder-more .founder-quote { margin-top: 0; }
}

.founder-quote {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  letter-spacing: 0.03em;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--navy);
  margin-top: 28px;
}

/* ---------- Founder signature ---------- */
.founder-sig {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 26px 0 30px;
}
.founder-quote + .founder-sig { margin-top: 10px; color: var(--slate); }

/* ---------- Careers ---------- */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.mv-card {
  padding: clamp(34px, 4vw, 54px);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.mv-label {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 16px;
}
.mv-card h3 { color: var(--white); margin-bottom: 14px; }
.mv-card p { font-size: 0.92rem; color: rgba(255, 255, 255, 0.82); }

.values-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }

.job-card {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(28px, 4vw, 60px);
  padding: clamp(30px, 4vw, 56px);
  border-radius: calc(var(--radius) + 6px);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  align-items: center;
}
.job-tag {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(216, 32, 47, 0.08);
  border: 1px solid rgba(216, 32, 47, 0.3);
  color: var(--red);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.job-card h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 14px; }
.job-points { display: grid; gap: 12px; margin-top: 22px; }
.job-points li {
  list-style: none;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.9rem;
  color: var(--slate);
  font-weight: 500;
}
.job-points .check {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(216, 32, 47, 0.09);
}
.job-points .check svg { width: 11px; height: 11px; color: var(--red-bright); }
.job-apply {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  text-align: center;
}
.job-apply h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}
.job-apply p { font-size: 0.84rem; color: var(--slate); margin-bottom: 20px; }

/* ---------- Service areas ---------- */
.areas { background: var(--bg); }
.areas-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px, 4vw, 56px);
  align-items: center;
}
.areas-map {
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  background: var(--card);
}
.areas-map svg { display: block; width: 100%; height: auto; }
.areas-layout .areas-grid { grid-template-columns: 1fr 1fr; }
.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.area-card {
  padding: 30px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 4px 16px rgba(13, 42, 92, 0.05);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s, box-shadow 0.4s;
}
.area-card:hover { transform: translateY(-4px); border-color: rgba(216, 32, 47, 0.4); box-shadow: var(--shadow-lift); }
.area-card .pin { color: var(--red-bright); margin-bottom: 14px; }
.area-card .pin svg { width: 20px; height: 20px; }
.area-card h4 { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 0.05em; color: var(--navy); }
.area-card p { font-size: 0.78rem; color: var(--slate); margin-top: 5px; }
.areas-note {
  margin-top: 26px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--slate);
}

/* ---------- Financing ---------- */
.financing { background: var(--bg-alt); border-block: 1px solid var(--line); }
.fin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fin-card {
  padding: 38px 32px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(13, 42, 92, 0.05);
  text-align: center;
  transition: border-color 0.4s, transform 0.4s, box-shadow 0.4s;
}
.fin-card:hover { border-color: rgba(216, 32, 47, 0.4); transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.fin-card .big {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--red-bright);
  display: block;
  margin-bottom: 10px;
  line-height: 1;
}
.fin-card h4 { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.06em; margin-bottom: 10px; color: var(--navy); }
.fin-card p { font-size: 0.83rem; color: var(--slate); }
.fin-note { text-align: center; margin-top: 24px; font-size: 0.75rem; color: var(--gray-soft); }

/* ---------- FAQ ---------- */
.faq { background: var(--bg); }
.faq-list { max-width: 860px; margin-inline: auto; display: grid; gap: 14px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(13, 42, 92, 0.05);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.35rem;
  line-height: 1;
  color: var(--red-bright);
  flex: none;
  transition: transform 0.3s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 24px 22px; color: var(--slate); font-size: 0.92rem; }

/* ---------- Final CTA ---------- */
.final-cta { padding-bottom: clamp(110px, 14vh, 180px); background: var(--bg); }
.cta-card {
  position: relative;
  border-radius: calc(var(--radius) + 10px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(900px 500px at 15% -20%, rgba(216, 32, 47, 0.25), transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 75%);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(30px, 5vw, 70px);
  padding: clamp(40px, 6vw, 80px);
  color: var(--white);
}
.cta-card .kicker { color: var(--red-bright); }
.cta-card .kicker::before { background: var(--red-bright); }
.cta-card h2 { margin-bottom: 20px; color: var(--white); }
.cta-card .lede { color: rgba(255, 255, 255, 0.82); }
.cta-includes { display: grid; gap: 14px; margin-top: 30px; }
.cta-includes li {
  list-style: none;
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
}
.cta-includes .check {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(216, 32, 47, 0.3);
  border: 1px solid rgba(255, 123, 133, 0.45);
}
.cta-includes .check svg { width: 12px; height: 12px; color: var(--red-bright); }

.lead-form {
  align-self: center;
  min-width: 0;
  padding: clamp(28px, 3vw, 40px);
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 60px rgba(4, 12, 30, 0.35);
  color: var(--navy);
}
.lead-form h3 { margin-bottom: 6px; color: var(--navy); }
.lead-form .sub { font-size: 0.8rem; color: var(--slate); margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 8px;
}
.field input, .field select {
  width: 100%;
  padding: 15px 18px;
  border-radius: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--line-strong);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
  appearance: none;
}
.field input::placeholder { color: var(--gray-soft); }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--slate) 50%), linear-gradient(135deg, var(--slate) 50%, transparent 50%); background-position: calc(100% - 21px) 50%, calc(100% - 16px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--white); }
.field input:focus, .field select:focus {
  border-color: rgba(216, 32, 47, 0.6);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(216, 32, 47, 0.08);
}
.lead-form .btn { width: 100%; margin-top: 8px; }
.form-note { font-size: 0.68rem; color: var(--gray-soft); text-align: center; margin-top: 14px; }
.form-or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 14px;
  color: var(--gray-soft);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.form-or::before, .form-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-strong);
}
.call-now {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 20px;
  border-radius: 10px;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}
.call-now svg { width: 17px; height: 17px; color: var(--red-bright); flex: none; transition: color 0.3s; }
.call-now:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }
.call-now:hover svg { color: var(--white); }
.form-success {
  display: none;
  text-align: center;
  padding: 30px 10px;
}
.form-success.show { display: block; }
.form-success .big-check {
  width: 60px; height: 60px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(216, 32, 47, 0.1);
  border: 1px solid rgba(216, 32, 47, 0.35);
}
.form-success .big-check svg { width: 26px; height: 26px; color: var(--red-bright); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--navy-deep);
  padding: 70px 0 36px;
  color: var(--white);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand img { width: 295px; max-width: 100%; height: auto; margin-bottom: 18px; }
.footer-brand p { font-size: 0.82rem; color: rgba(255, 255, 255, 0.65); max-width: 34ch; }
.footer-col h5 {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a, .footer-col li { font-size: 0.86rem; color: rgba(255, 255, 255, 0.78); transition: color 0.3s; }
.footer-col a:hover { color: var(--white); }
.social-row { display: flex; gap: 12px; margin-top: 20px; }
.social-row a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.8);
  transition: border-color 0.3s, color 0.3s, transform 0.3s;
}
.social-row a:hover { border-color: var(--red-bright); color: var(--white); transform: translateY(-2px); }
.social-row svg { width: 16px; height: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer-bottom .flag { color: var(--red-bright); }
.footer-verse { flex: 0 0 100%; text-align: center; margin: 0; font-style: italic; }

/* ---------- Sticky CTA ---------- */
.sticky-cta {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  transform: translateY(140%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta.visible.footer-near { transform: translateY(160%); }
.sticky-cta .btn { box-shadow: 0 16px 40px rgba(179, 18, 31, 0.4); }

/* ---------- Reveal defaults ---------- */
.reveal { opacity: 0; transform: translateY(40px); }
html.no-js .reveal, html.no-gsap .reveal { opacity: 1; transform: none; }

/* ---------- About page ---------- */
.page-hero {
  min-height: 72svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 70px) 0 80px;
  background:
    radial-gradient(1000px 560px at 85% 0%, rgba(255, 224, 138, 0.5), transparent 60%),
    linear-gradient(180deg, #9CC8EE 0%, #D3E8F9 55%, var(--bg) 100%);
  overflow: hidden;
}
.page-hero h1 { font-size: clamp(2.8rem, 7vw, 6rem); }
.page-hero .role {
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 18px 0 22px;
}
.page-hero .split { align-items: center; gap: clamp(40px, 5vw, 80px); }
.page-hero .lede { color: #33486B; }



.hero-photo-card {
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  border: 6px solid var(--white);
  box-shadow: 0 30px 70px rgba(13, 42, 92, 0.25);
  max-height: 460px;
}
.hero-photo-card img { width: 100%; height: 100%; object-fit: cover; }

/* Founder portrait: no frame, full uncropped photo */
.hero-photo-card.portrait-full {
  border: none;
  max-height: none;
}
.hero-photo-card.portrait-full img { height: auto; object-fit: contain; }
.page-hero .hero-scroll {
  color: rgba(13, 42, 92, 0.55);
}
.page-hero .hero-scroll .wheel { border-color: rgba(13, 42, 92, 0.35); }

.timeline { position: relative; max-width: 860px; margin-inline: auto; }
.timeline::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(216, 32, 47, 0.4) 12%, rgba(216, 32, 47, 0.4) 88%, transparent);
}
.t-item {
  position: relative;
  padding: 0 0 56px 88px;
}
.t-item:last-child { padding-bottom: 0; }
.t-marker {
  position: absolute;
  left: 0;
  top: 2px;
  width: 53px; height: 53px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--card);
  border: 1px solid rgba(216, 32, 47, 0.35);
  box-shadow: 0 0 0 6px var(--bg), var(--shadow-card);
}
.t-marker svg { width: 22px; height: 22px; color: var(--red-bright); }
.t-item .era {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 8px;
}
.t-item h3 { margin-bottom: 12px; }
.t-item p { color: var(--slate); font-size: 0.95rem; max-width: 58ch; }
.t-item .means { margin-top: 16px; font-weight: 600; color: var(--navy); }

.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.value-card {
  padding: 34px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 4px 16px rgba(13, 42, 92, 0.05);
  transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.value-card:hover { transform: translateY(-4px); border-color: rgba(216, 32, 47, 0.4); box-shadow: var(--shadow-lift); }
.value-card .icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(216, 32, 47, 0.08);
  margin-bottom: 18px;
}
.value-card .icon svg { width: 22px; height: 22px; color: var(--red); }
.value-card h4 { font-family: var(--font-display); font-size: 1.32rem; letter-spacing: 0.06em; margin-bottom: 8px; color: var(--navy); }
.value-card p { font-size: 0.82rem; color: var(--slate); }

/* ---------- Responsive ---------- */
/* Larger brand mark on desktop; mobile keeps the base 62px logo */
@media (min-width: 1151px) {
  :root { --header-h: 102px; }
  .brand img { height: 88px; }
}
@media (min-width: 941px) and (max-width: 1150px) {
  :root { --header-h: 90px; }
  .brand img { height: 74px; }
}

@media (max-width: 1150px) {
  .main-nav { gap: 20px; }
  .header-actions { gap: 12px; }
  .header-actions .btn { padding: 12px 18px; }
}

@media (max-width: 1080px) {
  .sub-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .process-track { grid-template-columns: repeat(2, 1fr); }
  .step.final { grid-column: 1 / -1; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .values-grid, .values-grid.cols-5 { grid-template-columns: repeat(2, 1fr); }
  .values-grid.cols-5 > :last-child { grid-column: 1 / -1; }
  .mv-grid { grid-template-columns: 1fr; }
  .job-card { grid-template-columns: 1fr; }
}

@media (max-width: 940px) {
  .split, .cta-card, .areas-layout { grid-template-columns: 1fr; }
  .areas-map { max-width: 520px; margin-inline: auto; }
  .hero-photo-card { max-width: 460px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav {
    position: fixed;
    inset: 0;
    background: #fff;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
    z-index: 105;
  }
  .main-nav a { font-size: 1.05rem; opacity: 1; }
  .main-nav.open { opacity: 1; pointer-events: auto; }
  .nav-toggle { display: block; }
  .header-actions .btn { display: none; }
}

@media (max-width: 640px) {
  section { padding: 80px 0; }
  .container { width: calc(100% - 40px); }
  .sub-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .fin-grid { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .values-grid, .values-grid.cols-5 { grid-template-columns: 1fr; }
  .phone-link .phone-text { display: none; }
  .hero-ctas .btn { width: 100%; }
  .btn { white-space: normal; }
  .cta-card { padding: 34px 20px; }
  .lead-form { padding: 24px 18px; }
  .brand-name { display: none; }
  .sticky-cta { right: 16px; bottom: 16px; left: 16px; }
  .sticky-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
