/* Willamette Valley Low Voltage: styles
   Edit the tokens in :root to re-skin the whole site. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand palette (from WVLV-Color-Palette.png). #6d7a6d is the main color. */
  --brand: #6d7a6d;        /* main color: header, hero, footer, primary buttons */
  --sage: #a4b28d;         /* accent: borders, highlights */
  --cream: #e3dfd2;        /* accent: tinted section background, light button */
  --slate: #4b4e56;        /* accent: info bar, headings */

  /* Derived (not in the supplied palette; tweak or remove if you prefer) */
  --brand-dark: #5b675b;   /* hover state for brand buttons (white text 5.7:1) */
  --ink: #2f3137;          /* body text: slate darkened for readability */
  --paper: #f3f1ea;        /* page background: cream lightened */
  --white: #ffffff;        /* text on the brand color: the only light text that passes contrast on #6d7a6d (4.5:1) */

  --text: var(--ink);
  --muted: var(--slate);
  --error: #a8231b;
  --success: #2f5a2f;
  --focus: #4b4e56;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 68rem;
  --radius: 4px;

  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }

a { color: var(--slate); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.on-brand :focus-visible, .on-dark :focus-visible, .infobar :focus-visible { outline-color: var(--white); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 10;
  background: var(--cream);
  color: var(--ink);
  padding: 0.6rem 1rem;
  font-weight: 700;
  border-radius: var(--radius);
}
.skip-link:focus { top: 0.75rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  background: var(--brand);
  border: 0;
  border-radius: var(--radius);
  padding: 0.9rem 1.6rem;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--brand-dark); }
.btn[disabled] { opacity: 0.75; cursor: progress; }

/* Light button for use on the brand-colored hero */
.btn-light, .hero .btn { background: var(--cream); color: var(--ink); }
.btn-light:hover, .hero .btn:hover { background: var(--white); }

/* ---------- Header: info bar + hero ---------- */
.infobar { background: var(--slate); color: var(--cream); font-size: 0.9375rem; }
.infobar .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.15rem 1.75rem;
  padding-block: 0.55rem;
}
.infobar-contact, .infobar-meta { display: flex; flex-wrap: wrap; gap: 0.15rem 1.75rem; }
.infobar-item { display: inline-flex; align-items: center; gap: 0.5rem; padding-block: 0.15rem; margin: 0; }
.infobar a { color: var(--cream); text-decoration: none; }
.infobar a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 0.25em; }
.infobar svg { width: 1.05rem; height: 1.05rem; flex: none; }

/* Phones: center the contact bar items instead of hugging the left edge */
@media (max-width: 40rem) {
  .infobar .wrap, .infobar-contact, .infobar-meta { justify-content: center; }
}

/* Hero: background video (img/hero-video.mp4, still frame img/hero-poster.jpg) under a dark overlay.
   See the .hero-feature rules further down. */
.hero {
  position: relative;
  background: #2a2c32;
  color: var(--white);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 30, 35, 0.84), rgba(28, 30, 35, 0.74));
}
.infobar { position: relative; z-index: 1; }
.hero .wrap { position: relative; z-index: 1; }

.topnav { padding-block: 1rem 0; }
.nav-list {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  padding-block: 0.4rem;
  display: inline-block;
}
.nav-list a:hover { text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 2px; }

.hero-body {
  text-align: center;
  padding-block: clamp(1.25rem, 3vw, 2rem) clamp(3rem, 6vw, 4.5rem);
}
.hero-logo { filter: brightness(0) invert(1); /* the logo file is dark; this renders it white on the photo */ display: block; width: clamp(17rem, 72vw, 30rem); height: auto; margin: 0 auto clamp(1.75rem, 4vw, 2.75rem); }
.hero h1 {
  font-size: clamp(1.625rem, 3.7vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--white);
  max-width: 26ch;
  margin-inline: auto;
  text-wrap: balance;
}
.lede {
  margin: 1rem auto 1.75rem;
  max-width: 36rem;
  font-size: 1.1875rem;
  color: var(--white);
  text-wrap: pretty;
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section-tint { background: var(--cream); }
.section h2 {
  font-size: clamp(1.625rem, 3.4vw, 2.125rem);
  font-weight: 700;
  color: var(--slate);
}
#services h2 { text-align: center; }

/* Services */
.services {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* a short last row is centered */
  gap: 1.25rem 2rem;
}
@media (min-width: 56rem) { .services { gap: 2rem; } }
.services > .service { flex: 0 1 100%; }
@media (min-width: 36rem) { .services > .service { flex-basis: calc((100% - 2rem) / 2); } }

/* Each service is its own card (all screen sizes) */
.service {
  background: var(--white);
  border: 1px solid #b8b3a2;
  border-top: 4px solid var(--slate);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem 1.5rem;
  box-shadow: 0 2px 6px rgba(47, 49, 55, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
@media (min-width: 56rem) { .service { padding: 1.75rem 1.75rem 1.9rem; } }
/* Lift on hover, only for mouse/trackpad users who have not asked their device to reduce motion */
@media (min-width: 56rem) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  .service:hover { transform: translateY(-6px); box-shadow: 0 10px 24px rgba(47, 49, 55, 0.16); }
}
.icon { width: 2rem; height: 2rem; color: var(--slate); display: block; margin-bottom: 0.9rem; }
.service h3 { font-size: 1.1875rem; font-weight: 700; margin-bottom: 0.5rem; }
.service p { color: var(--muted); font-size: 1rem; line-height: 1.55; }

/* Slate strip: the kinds of projects we take on, plus the cabling note and call to action */
.services-strip {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  background: var(--slate);
  color: var(--white);
  padding-block: 1.6rem;
  text-align: center;
}
/* The banner runs edge to edge, so the section's bottom padding moves below it */
#services { padding-bottom: 0; }
.project-types {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0;
  font-weight: 700;
  font-size: 1.125rem;
}
.project-types li + li::before { content: "\2022" / ""; margin-inline: 0.9rem; color: var(--sage); }
.strip-note {
  margin: 0.75rem auto 0;
  padding-top: 0.75rem;
  max-width: 42rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  text-wrap: balance;
}
@media (max-width: 30rem) {
  /* Too narrow for one line: stack the three project types instead of leaving a stray bullet */
  .project-types { flex-direction: column; align-items: center; }
  .project-types li + li::before { content: none; }
}
.services-strip a { color: var(--white); text-decoration: underline; text-underline-offset: 0.2em; font-weight: 600; }
.services-strip a:hover { text-decoration-thickness: 2px; }
.services-strip :focus-visible { outline-color: var(--white); }

/* About */
.about { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 52rem) { .about { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 3.5rem; } }
.about.about-solo { grid-template-columns: minmax(0, 1fr); max-width: 40rem; text-align: center; }
.about-solo .about-text { max-width: none; }
.about-photo { margin: 0; }
.about-photo img { display: block; width: 100%; height: auto; border-radius: var(--radius); background: var(--cream); }
.about-text { max-width: 36rem; }
.about-text p { margin-top: 1rem; }
.about-text h2 + p { margin-top: 1.25rem; }
.placeholder-note { color: var(--muted); font-style: italic; }

/* Contact */
.contact { display: grid; gap: 2rem; }
@media (min-width: 56rem) { .contact { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 4rem; align-items: start; } }
.contact-intro p { margin-top: 1rem; color: var(--muted); max-width: 30rem; }

.form { display: grid; gap: 1.25rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.hint { font-weight: 400; color: var(--muted); font-size: 0.9375rem; }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--slate);
  border-radius: var(--radius);
  padding: 0.7rem 0.8rem;
}
textarea { min-height: 9rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
[aria-invalid="true"] { border-color: var(--error); border-width: 2px; }

.error { margin-top: 0.4rem; color: var(--error); font-size: 0.9375rem; font-weight: 500; }
.error[hidden] { display: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { min-height: 65px; display: flex; justify-content: center; }
@media (min-width: 56rem) { .turnstile { justify-content: flex-start; } } /* reserves space so the widget doesn't shift the layout when it loads */

.status { padding: 0.8rem 1rem; border-left: 4px solid; border-radius: 2px; font-weight: 500; }
.status:empty { display: none; }
.status[data-state="success"] { background: #e4ecd9; color: #23421f; border-color: var(--success); }
.status[data-state="error"] { background: #fbebe9; color: #76150f; border-color: var(--error); }

.form .btn { justify-self: center; }
@media (min-width: 56rem) { .form .btn { justify-self: start; } }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--slate); color: var(--white); padding-block: 2.5rem 2rem; font-size: 0.9375rem; }
/* Decorative ridgeline above the footer; its bottom layer is the footer's slate, so the two join seamlessly */
.footer::before {
  content: "";
  position: absolute;
  inset: auto 0 100% 0;
  height: clamp(3.5rem, 9vw, 6.5rem);
  background: url("img/ridge.svg") bottom / 100% 100% no-repeat;
  pointer-events: none;
}
.footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 1.25rem; align-items: center; }
.footer-logo { width: clamp(6.5rem, 34vw, 8.5rem); height: auto; display: block; }
@media (min-width: 40rem) { .footer-grid { align-items: start; } .footer-logo { width: 8.5rem; } }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.875rem;
}

/* ---------- Simple text pages (privacy) ---------- */
.prose { max-width: 40rem; padding-block: 3rem 4rem; }
.prose h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); margin-bottom: 1.25rem; }
.prose p { margin-top: 1rem; }
.prose h2 { font-size: 1.25rem; margin-top: 2rem; }
.prose ul { margin: 1rem 0 0 1.25rem; padding: 0; }
.prose li + li { margin-top: .4rem; }
.prose a { text-decoration: underline; }

/* ==========================================================
   WVLV design refinement • October 2026
   A restrained, consistent visual system using the four
   approved brand colors. No contact-form behavior is changed.
   ========================================================== */
:root {
  --brand: #6d7a6d;
  --sage: #a4b28d;
  --cream: #e3dfd2;
  --slate: #4b4e56;
  --brand-dark: #506050;
  --ink: #34383c;
  --paper: #faf9f5;
  --wrap: 72rem;
  --radius: 12px;
  --radius-card: 20px;
  --shadow-card: 0 12px 36px rgba(41, 48, 42, .075);
}
body { font-size: 1.125rem; line-height: 1.68; }
h1,h2,h3 { letter-spacing: -.035em; line-height: 1.16; }
.section { padding-block: clamp(4.25rem, 8vw, 7rem); }
.section h2 { font-size: clamp(2rem, 3.7vw, 3rem); font-weight: 750; line-height: 1.16; letter-spacing: -.045em; }
.btn { border-radius: 10px; padding: 1.08rem 1.85rem; font-size: 1.035rem; transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
@media (hover:hover) and (prefers-reduced-motion:no-preference) { .btn:hover { transform: translateY(-2px); box-shadow: 0 7px 20px rgba(0,0,0,.15); } }
.infobar { font-size: .95rem; background: var(--slate); }
.infobar .wrap { padding-block: .65rem; }
.hero { background-position: 66% center; }
.hero::before { background: linear-gradient(90deg, rgba(30,36,36,.92) 0%, rgba(33,42,40,.81) 48%, rgba(33,42,40,.6) 100%); }
.topnav { padding-block: 1.3rem 0; }
.nav-list { gap: clamp(1.3rem,3vw,2.75rem); }
.nav-list a { font-size: 1rem; font-weight: 650; }
.hero-body { padding-block: clamp(2.5rem,5vw,4.5rem) clamp(5rem,8vw,7.5rem); }
.hero-logo { width: clamp(17rem,67vw,27rem); margin-bottom: clamp(1.8rem,4vw,2.6rem); }
.hero h1 { font-size: clamp(2.35rem,5.2vw,4.35rem); font-weight: 800; line-height: 1.08; letter-spacing: -.05em; max-width: 19ch; }
.lede { font-size: clamp(1.125rem,1.65vw,1.35rem); max-width: 43rem; line-height: 1.6; margin: 1.6rem auto 2rem; }
.hero .btn { padding: 1.12rem 2.2rem; box-shadow: 0 8px 26px rgba(0,0,0,.16); }
#services { background: var(--paper); }
#services h2 { margin-bottom: .7rem; }
.section-intro { max-width: 43rem; margin: 0 auto; text-align: center; color: var(--muted); font-size: 1.16rem; line-height: 1.65; }
.services { gap: 1.5rem; margin-top: 2.7rem; align-items: stretch; }
.services > .service { flex: 0 1 100%; }
@media (min-width: 36rem) { .services > .service { flex-basis: calc((100% - 1.5rem)/2); } }
.service { border: 1px solid rgba(75,78,86,.12); border-top: 1px solid rgba(75,78,86,.12); border-radius: var(--radius-card); padding: clamp(1.65rem,3.5vw,2.35rem); box-shadow: var(--shadow-card); background: #fff; }
@media (min-width:56rem) { .service { padding: 2.3rem; } }
.icon { width: 3.25rem; height: 3.25rem; color: var(--brand-dark); padding: .65rem; border-radius: 14px; background: rgba(164,178,141,.25); margin-bottom: 1.5rem; }
.service h3 { font-size: clamp(1.3rem,2vw,1.55rem); margin-bottom: .75rem; color: var(--slate); line-height: 1.3; letter-spacing: -.028em; }
.service p { font-size: 1.0625rem; line-height: 1.7; color: #50545a; }
@media (min-width:56rem) and (hover:hover) and (prefers-reduced-motion:no-preference) { .service:hover { transform: translateY(-5px); box-shadow: 0 18px 42px rgba(41,48,42,.13); } }
.services-strip { margin-top: clamp(4rem,6vw,5.5rem); padding-block: 2rem; }
.project-types { font-size: 1.15rem; }
.strip-note { max-width: 50rem; font-size: 1.04rem; line-height: 1.6; }
.section-tint { background: var(--cream); }
.about.about-solo { max-width: 58rem; }
.about-text { max-width: none; }
.about-text p { font-size: 1.12rem; line-height: 1.77; }
.about-text h2 + p { margin-top: 1.7rem; }
.about-text p + p { margin-top: 1.25rem; }
.contact { gap: clamp(2rem,5vw,5rem); }
.contact-intro p { font-size: 1.15rem; line-height: 1.7; margin-top: 1.25rem; }
.form { gap: 1.3rem; background: #fff; padding: clamp(1.4rem,3.5vw,2.5rem); border-radius: var(--radius-card); border: 1px solid rgba(75,78,86,.12); box-shadow: var(--shadow-card); }
.field label { font-size: 1.025rem; margin-bottom: .48rem; font-weight: 650; }
input[type="text"],input[type="email"],input[type="tel"],select,textarea { border-color: #bfc3bc; padding: .85rem 1rem; border-radius: 9px; background: #fff; }
input[type="text"]:hover,input[type="email"]:hover,input[type="tel"]:hover,select:hover,textarea:hover { border-color: var(--brand); }
.hint { font-size: .91rem; }
.footer { font-size: 1rem; padding-block: 3rem 2rem; }
.footer-legal { font-size: .94rem; }
.prose { max-width: 49rem; padding-block: 4rem 5rem; }
.prose h1 { font-size: clamp(2.25rem,4vw,3rem); }
.prose h2 { font-size: 1.55rem; }
@media (max-width: 40rem) {
  .wrap { width: min(100% - 2rem,var(--wrap)); }
  .nav-list { gap: 1.1rem; flex-wrap: wrap; }
  .nav-list a { font-size: .95rem; }
  .hero { background-position: 62% center; }
  .hero::before { background: linear-gradient(180deg,rgba(30,36,36,.86),rgba(30,36,36,.79)); }
  .hero-body { padding-block: 2.65rem 5rem; }
  .hero h1 { font-size: clamp(2.2rem,8.6vw,3.25rem); }
  .section { padding-block: 4rem; }
  #services { padding-bottom: 0; }
  .service { padding: 1.65rem; }
  .form { padding: 1.5rem; }
}


/* WVLV Preview v2: separated navigation, project pathways and owners image */
.infobar { z-index: 2; }
.site-navigation { background: #fff; color: var(--slate); border-bottom: 1px solid rgba(75,78,86,.12); position: relative; z-index: 3; }
.navigation-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 106px; padding-block: .8rem; }
.site-brand { display: flex; align-items: center; flex: 0 1 245px; min-width: 155px; padding-block: .3rem; }
.site-brand img { width: 100%; height: auto; display: block; }
.site-navigation .topnav { padding: 0; }
.site-navigation .nav-list { gap: clamp(1.4rem,2.5vw,2.5rem); }
.site-navigation .nav-list a { color: var(--slate); font-weight: 700; padding-block: .8rem; }
.site-navigation .nav-list a:hover { color: var(--brand-dark); }
.nav-quote { color: white; background: var(--brand-dark); text-decoration: none; white-space: nowrap; padding: .75rem 1.15rem; border-radius: 9px; font-size: .95rem; font-weight: 700; }
.nav-quote:hover { background: var(--slate); color: white; }
.hero-feature { min-height: 545px; display: flex; align-items: center; background-position: center 53%; }
.hero-feature .wrap { width: min(100% - 2.5rem,var(--wrap)); }
.hero-feature .hero-body { padding-block: clamp(5rem,9vw,9rem); text-align: left; }
.hero-feature h1 { max-width: 15ch; margin-inline: 0; }
.hero-feature .lede { margin-inline: 0; max-width: 39rem; }
.hero-feature::before { background: linear-gradient(90deg,rgba(27,34,33,.89) 0%,rgba(30,38,35,.77) 45%,rgba(30,38,35,.23) 100%); }
.services-strip { padding-block: clamp(3.8rem,6vw,5.25rem); }
.services-strip .strip-title { color: #fff; text-align: center; max-width: 23ch; margin: 0 auto 3rem; font-size: clamp(1.8rem,3.4vw,2.65rem); }
.project-types { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; text-align: left; margin: 0 0 2.7rem; }
.project-types li { display: flex; flex-direction: column; background: rgba(255,255,255,.085); border: 1px solid rgba(255,255,255,.19); padding: clamp(1.3rem,2.5vw,2rem); border-radius: 14px; min-width: 0; }
.project-types li + li::before { content: none; }
.project-types strong { color: white; font-size: clamp(1.18rem,1.7vw,1.45rem); line-height: 1.3; }
.project-detail { display: block; color: #e5e7e1; font-size: 1.01rem; line-height: 1.6; font-weight: 400; margin-top: .7rem; }
.strip-note { border: 0; padding: 0; margin-top: 2rem; }
.about { grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: clamp(2rem,5vw,5rem); text-align: left; }
.about-photo-placeholder { position: relative; min-height: 420px; aspect-ratio: 4/4.5; width: 100%; border-radius: 20px; background: linear-gradient(150deg,#a4b28d 0%,#849580 58%,#687966 100%); border: 1px solid rgba(75,78,86,.11); overflow: hidden; box-shadow: 0 16px 45px rgba(45,54,45,.13); }
.about-photo-placeholder::before { content: ''; position: absolute; width: 70%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.23); border-radius: 50%; top: -25%; right: -24%; }
.about-photo-placeholder::after { content: ''; position: absolute; width: 65%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; bottom: -30%; left: -18%; }
.photo-placeholder-inner { position: absolute; inset: 0; padding: 2.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; z-index: 1; }
.photo-placeholder-inner svg { width: 68px; height: 68px; margin-bottom: 1.5rem; opacity: .82; }
.photo-placeholder-label { font-size: clamp(1.4rem,2.2vw,1.9rem); line-height: 1.25; font-weight: 750; max-width: 17ch; }
.photo-placeholder-sub { font-size: .98rem; margin-top: .8rem; color: #f3f1ea; }
@media (max-width: 52rem) {
 .navigation-inner { min-height: 90px; gap: 1rem; padding-block: .7rem; }
 .site-brand { flex-basis: 195px; }
 .nav-quote { display: none; }
 .about { grid-template-columns: 1fr; }
 .about-photo-placeholder { aspect-ratio: 5/3; min-height: 280px; }
}
@media (max-width: 40rem) {
 .navigation-inner { flex-direction: column; padding-block: .85rem 1rem; gap: .45rem; }
 .site-brand { flex-basis: auto; width: 175px; }
 .site-navigation .nav-list { gap: 1.5rem; }
 .hero-feature { min-height: auto; background-position: 64% center; }
 .hero-feature::before { background: linear-gradient(90deg,rgba(27,34,33,.92),rgba(27,34,33,.65)); }
 .hero-feature .hero-body { padding-block: 4.5rem 5rem; }
 .project-types { grid-template-columns: 1fr; }
 .project-types li { padding: 1.5rem; }
 .about-photo-placeholder { aspect-ratio: 4/3; min-height: 260px; }
}

/* v5 header: purpose-built desktop and mobile layouts */
.site-navigation { background: #fff; border-bottom: 1px solid rgba(75,78,86,.13); }
.site-navigation .navigation-inner {
  display: grid; grid-template-columns: minmax(190px, 250px) minmax(0,1fr);
  align-items: center; column-gap: clamp(2rem,4vw,5rem);
  padding-block: 1.1rem; min-height: 145px;
}
.site-navigation .site-brand { display: block; width: 100%; min-width: 0; padding: .35rem 0; }
.site-navigation .site-brand img { display: block; width: 100%; height: auto; }
.navigation-right { min-width: 0; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 1.05rem; }
.header-contact { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; column-gap: clamp(.9rem,1.6vw,1.5rem); row-gap: .4rem; font-size: .78rem; line-height: 1.35; }
.header-contact a { display: inline-flex; align-items: center; gap: .35rem; color: var(--slate); text-decoration: none; font-weight: 650; white-space: nowrap; }
.header-contact a:hover { color: var(--brand-dark); text-decoration: underline; }
.header-contact .hc-icon { width: 1rem; height: 1rem; flex: none; color: var(--brand-dark); }
.header-meta { color: #656b65; white-space: nowrap; }
.header-links { display: flex; align-items: center; justify-content: flex-end; gap: clamp(1.5rem,3vw,3rem); min-width: 0; }
.site-navigation .topnav { width: auto; padding: 0; }
.site-navigation .nav-list { display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-end; gap: clamp(1.15rem,2.3vw,2.2rem); }
.site-navigation .nav-list a { padding: .35rem 0; font-size: 1rem; color: var(--slate); font-weight: 700; white-space: nowrap; }
.site-navigation .nav-quote { display: inline-flex; flex: none; align-items: center; justify-content: center; margin: 0; color: #fff; font-size: .94rem; padding: .75rem 1.15rem; }
@media (max-width: 1050px) {
  .site-navigation .navigation-inner { grid-template-columns: minmax(165px,215px) minmax(0,1fr); column-gap: 2rem; }
  .header-contact { font-size: .78rem; gap: .4rem 1rem; }
  .header-meta { display: none; }
}
@media (max-width: 720px) {
  .site-navigation .navigation-inner { grid-template-columns: minmax(115px,165px) minmax(0,1fr); column-gap: clamp(.8rem,3vw,1.3rem); row-gap: .65rem; padding-block: 1rem; min-height: 0; }
  .site-navigation .site-brand { grid-column: 1; grid-row: 1; align-self: center; }
  .navigation-right { display: contents; }
  .header-contact { grid-column: 2; grid-row: 1; flex-direction: column; align-items: flex-end; justify-content: center; gap: .3rem; font-size: clamp(.69rem,2.3vw,.83rem); }
  .header-contact a { gap: .25rem; }
  .header-links { grid-column: 1 / -1; grid-row: 2; display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: .75rem; border-top: 1px solid #e9e8e3; padding-top: .75rem; }
  .site-navigation .nav-list { gap: clamp(.65rem,2.6vw,1.25rem); justify-content: flex-start; flex-wrap: nowrap; }
  .site-navigation .nav-list a { font-size: clamp(.8rem,2.5vw,.96rem); }
  .site-navigation .nav-quote { display: inline-flex; font-size: .82rem; padding: .65rem .85rem; }
}
@media (max-width: 370px) {
  .site-navigation .navigation-inner { grid-template-columns: 108px minmax(0,1fr); }
  .header-contact { font-size: .67rem; }
  .site-navigation .nav-list { gap: .65rem; }
  .site-navigation .nav-list a { font-size: .78rem; }
  .site-navigation .nav-quote { padding: .55rem .65rem; font-size: .75rem; }
}

/* v6: Keep the unified header visible while scrolling. */
.site-navigation {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 3px 14px rgba(29, 36, 33, .09);
}
/* Allow anchored section headings to clear the sticky header. */
#main, #services, #about, #contact {
  scroll-margin-top: 175px;
}
@media (max-width: 720px) {
  #main, #services, #about, #contact { scroll-margin-top: 195px; }
}

/* v7: Desktop retains its sticky header; mobile gets a complete, non-sticky layout. */
@media (max-width: 720px) {
  .site-navigation { position: relative; top: auto; box-shadow: none; }
  .site-navigation .navigation-inner {
    display: flex; flex-direction: column; align-items: stretch;
    width: min(100% - 2rem, var(--wrap));
    padding-block: 1.1rem 1.25rem; gap: 1rem;
  }
  .site-navigation .site-brand { width: min(225px, 62vw); align-self: center; padding: 0; }
  .navigation-right { display: flex; flex-direction: column; gap: 1rem; width: 100%; }
  .header-contact {
    display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    align-items: center; justify-content: stretch; gap: .7rem .7rem;
    padding: .85rem .75rem; border-radius: 11px;
    background: #f5f4ef; font-size: clamp(.7rem,2.65vw,.84rem);
    line-height: 1.4;
  }
  .header-contact a, .header-contact .header-meta { display: inline-flex; min-width: 0; align-items: center; justify-content: center; text-align: center; white-space: normal; overflow-wrap: anywhere; }
  .header-contact a { gap: .28rem; }
  .header-contact .header-meta { color: var(--slate); font-weight: 600; }
  .header-links { display: flex; flex-direction: column; gap: .8rem; padding: 0; border: 0; }
  .site-navigation .topnav { width: 100%; }
  .site-navigation .nav-list { justify-content: space-around; gap: .5rem; }
  .site-navigation .nav-list a { font-size: .98rem; padding: .3rem .45rem; }
  .site-navigation .nav-quote { display: flex; width: 100%; padding: .82rem 1rem; font-size: 1rem; }
  #main, #services, #about, #contact { scroll-margin-top: 1.5rem; }
}
@media (max-width: 370px) {
  .site-navigation .navigation-inner { width: min(100% - 1.5rem,var(--wrap)); }
  .header-contact { font-size: .69rem; gap: .6rem .3rem; padding: .75rem .45rem; }
  .site-navigation .nav-list { justify-content: space-between; }
  .site-navigation .nav-list a { font-size: .88rem; }
}

/* WVLV v8: paired owner portraits and simplified project strip */
.services-strip { padding-block: clamp(2.4rem, 4.5vw, 3.6rem); }
.project-types { margin-bottom: 2rem; }
.strip-note { margin-top: 0; }
.owners-portraits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  width: 100%;
  aspect-ratio: 4 / 4.2;
  overflow: hidden;
  border-radius: 20px;
  background: #a4b28d;
  box-shadow: 0 16px 45px rgba(45,54,45,.13);
}
.owners-portraits img {
  width: 100%; height: 100%; min-width: 0; min-height: 0;
  object-fit: cover; object-position: center center;
  border-radius: 0;
  background: #a4b28d;
}
@media (max-width: 52rem) { .owners-portraits { aspect-ratio: 5 / 3; } }
@media (max-width: 40rem) { .owners-portraits { aspect-ratio: 4 / 3; gap: .35rem; } }


/* v9: video hero, retaining a still fallback and high-contrast text */
.hero-feature { isolation: isolate; background: #2a2c32 url("img/hero-poster.jpg") center / cover no-repeat; }
.hero-background-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center center;
  z-index: 0; pointer-events: none;
}
.hero-feature::before { z-index: 1; pointer-events: none; }
.hero-feature .wrap { position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) {
  .hero-background-video { display: none; }
}
@media (max-width: 40rem) {
  .hero-background-video { object-position: center center; }
}

/* WVLV v10: photo-backed service cards */
#services .services { align-items: stretch; }
#services .services > .service {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(290px, 32vw, 385px);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px;
  background-color: #363d3b;
  background-size: cover;
  background-position: center;
  box-shadow: 0 13px 32px rgba(37,45,40,.16);
}
#services .services > .service:nth-child(1) { background-image: linear-gradient(0deg,rgba(20,29,29,.93),rgba(20,29,29,.60) 56%,rgba(20,29,29,.12)),url('img/service-access.webp'); background-position: center, 100% center; }
#services .services > .service:nth-child(2) { background-image: linear-gradient(0deg,rgba(20,29,29,.94),rgba(20,29,29,.57) 56%,rgba(20,29,29,.12)),url('img/service-security.webp'); background-position: center, 60% center; }
#services .services > .service:nth-child(3) { background-image: linear-gradient(0deg,rgba(20,29,29,.95),rgba(20,29,29,.58) 56%,rgba(20,29,29,.12)),url('img/service-cabling.webp'); background-position: center, 56% center; }
#services .services > .service:nth-child(4) { background-image: linear-gradient(0deg,rgba(20,29,29,.95),rgba(20,29,29,.60) 56%,rgba(20,29,29,.12)),url('img/service-networking.webp'); background-position: center, 68% center; }
#services .service .icon {
  flex: 0 0 auto;
  width: 3.3rem;
  height: 3.3rem;
  color: #fff;
  background: rgba(109,122,109,.75);
  border-radius: 13px;
  margin-bottom: 1.3rem;
}
#services .service h3 { color: #fff; font-size: clamp(1.34rem,2vw,1.62rem); text-wrap: balance; }
#services .service p { color: #f2f1ed; font-size: clamp(1rem,1.3vw,1.075rem); line-height: 1.6; max-width: 48ch; }
@media (max-width: 35.99rem) {
  #services .services > .service { min-height: 310px; padding: 1.65rem; }
  #services .service h3 { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  #services .services > .service { transition: none; }
}


/* v11: Keep the reader and keycard visible on narrow/mobile service cards.
   The original photo is wide, so 'cover' cropped out the right-hand subject. */
@media (max-width: 47.99rem) {
  #services .services > .service:nth-child(1) {
    background-color: #202a29;
    background-size: 100% 100%, 100% auto;
    background-repeat: no-repeat;
    background-position: center, center top;
    background-image:
      linear-gradient(to bottom, rgba(20,29,29,.04) 0%, rgba(20,29,29,.30) 36%, rgba(20,29,29,.88) 71%, rgba(20,29,29,.98) 100%),
      url('img/service-access.webp');
  }
}

/* Desktop: header slims down once the page is scrolled (class added by main.js). */
@media (min-width: 721px) {
  .site-navigation { position: fixed; top: 0; left: 0; right: 0; }
  .site-navigation + .hero { margin-top: var(--header-h, 152px); }
  .site-navigation .navigation-inner { transition: min-height .25s ease, padding .25s ease, grid-template-columns .25s ease; }
  .site-navigation.is-scrolled .navigation-inner { min-height: 0; padding-block: .55rem; grid-template-columns: minmax(120px, 150px) minmax(0, 1fr); }
  .site-navigation.is-scrolled .header-contact { display: none; }
  #main, #services, #about, #contact { scroll-margin-top: 100px; }
}
@media (prefers-reduced-motion: reduce) { .site-navigation .navigation-inner { transition: none; } }
