/* Layout: a viewfinder hero, then a single 1080px column of plain sections */
:root {
  --bg: #F1F4F2;
  --surface: #FFFFFF;
  --ink: #15201B;
  --muted: #56645D;
  --line: #D3DBD6;
  --sage: #2E5A3E;
  --signal: #8A6536;
  --brand: #22402B;
  --logo-green: #263F29;
  --nav-h: 64px;
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1412; --surface: #151D1A; --ink: #E5ECE8; --muted: #93A29A; --line: #26322D;
    --sage: #8FC0A0; --signal: #D4AC74; --brand: #E5ECE8;
    --logo-green: #9CC3A2;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
/* Anchor jumps stop below the sticky nav instead of underneath it */
html { scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-text-size-adjust: 100%; }
img, video, svg { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; line-height: 1.05; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); font-variation-settings: "wdth" 75; font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.25rem; font-weight: 700; font-variation-settings: "wdth" 90; }
p { margin: 0; }
a { color: var(--sage); }
.label { font: 600 .75rem/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--signal); }
.lede { color: var(--muted); max-width: 60ch; }
section { padding-block: clamp(56px, 9vw, 104px); border-top: 1px solid var(--line); }
main > section:first-child { border-top: 0; }
.head { display: grid; gap: 14px; margin-bottom: 40px; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

/* Nav */
nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--nav-h); padding-block: 10px; }
.brand { color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px; min-height: 44px; }
.brand picture { flex: none; display: flex; }
.brand .emblem { height: 38px; width: auto; flex: none; }
.brand .brand-name { font: 700 1.35rem/1 "Cinzel", Georgia, serif; letter-spacing: .08em; color: var(--brand); }
.brand-name small { white-space: nowrap; }
nav .btn { white-space: nowrap; }
@media (max-width: 420px) {
  .brand .emblem { height: 26px; }
  .brand .brand-name { font-size: 1.05rem; }
  .brand .brand-name small { font-size: .6rem; letter-spacing: .16em; }
  .brand { gap: 8px; }
  nav .btn { padding: 10px 12px; font-size: .88rem; }
  .navcta { gap: 8px; }
  .menu-btn { width: 40px; height: 40px; }
}
/* On the narrowest phones the quote button lives in the menu instead of the bar */
@media (max-width: 359px) { nav .navcta .btn { display: none; } }
nav .menu-only { display: none; }
@media (max-width: 359px) { nav.open .menu-only { display: block; } }
.brand-name { display: grid; gap: 3px; }
.brand-name small { font: 600 .66rem/1 var(--mono); letter-spacing: .28em; color: var(--signal); }
nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; font-weight: 600; font-size: .95rem; }
nav ul a { color: var(--muted); text-decoration: none; }
nav ul a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 .95rem/1 var(--body); padding: 12px 18px; border-radius: 4px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--sage); border-color: var(--sage); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.navcta { display: flex; align-items: center; gap: 16px; }
/* Phone and tablet menu: the section links drop down under the nav bar */
.menu-btn { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; flex: none; }
.menu-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-btn .x { display: none; }
nav.open .menu-btn .bars { display: none; }
nav.open .menu-btn .x { display: block; }
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  nav ul { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: 6px 0 10px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(0,0,0,.12); }
  nav.open ul { display: flex; }
  nav ul a { display: block; padding: 13px max(16px, env(safe-area-inset-left, 0px)); font-size: 1.05rem; color: var(--ink); }
  nav ul a:active { background: var(--surface); }
}

/* Hero viewfinder */
/* The hero keeps one light-on-dark look in both themes */
.hero { --signal: #D4AC74; position: relative; overflow: hidden; color: #F4F7F5; background: radial-gradient(120% 140% at 85% 20%, #2A4A33 0%, #13261A 55%, #0B1710 100%); }
/* An aerial of a client's home sits behind the hero, darkened so the text stays readable */
.hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 42%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(9,20,14,.94) 0%, rgba(9,20,14,.82) 45%, rgba(9,20,14,.55) 100%); }
@media (max-width: 820px) { .hero::after { background: linear-gradient(180deg, rgba(9,20,14,.92) 0%, rgba(9,20,14,.84) 60%, rgba(9,20,14,.7) 100%); } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(20px, 4vw, 48px); align-items: center; margin-block: 0; }
.hero-text { min-width: 0; }
.hero-text h1 { margin-top: 0; }
.hero-photo { margin: 0; position: relative; }
.hero-photo img { display: block; width: 100%; height: auto; max-width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border: 1px solid rgba(244,247,245,.18); }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } .hero-photo img { aspect-ratio: 1 / 1; object-position: 50% 8%; } }
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(20px, 3.5vw, 44px); }
.hero h1, .hero p.lede { text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.hero .btn { background: #F4F7F5; border-color: #F4F7F5; color: #15201B; }
.hero .btn:hover { background: #D4AC74; border-color: #D4AC74; }
.hero .btn.ghost { background: transparent; color: #F4F7F5; border-color: rgba(244,247,245,.7); }
.hero .btn.ghost:hover { background: #F4F7F5; color: #15201B; }
.finder { position: relative; padding: clamp(22px, 3.5vw, 40px); }
.finder::before, .finder::after, .finder span.c3, .finder span.c4 { content: ""; position: absolute; width: 28px; height: 28px; border: 2px solid var(--signal); }
.finder::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.finder::after { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.finder span.c3 { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.finder span.c4 { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 5.25rem); font-weight: 900; font-variation-settings: "wdth" 68; text-transform: uppercase; letter-spacing: -.01em; margin-block: 20px 14px; max-width: 14ch; }
.hero h1 em { font-style: normal; color: #D4AC74; }
.hero .label { color: #D4AC74; }
.hero p.lede { font-size: 1.1rem; color: #F4F7F5; opacity: .92; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* Services */
.grid3 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid3 > .svc { grid-column: span 3; }
.grid3 > .svc.feature { grid-column: span 2; }
@media (max-width: 860px) { .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid3 > .svc, .grid3 > .svc.feature { grid-column: span 1; } .grid3 > .svc:first-child { grid-column: span 2; } }
@media (max-width: 560px) { .grid3 { grid-template-columns: 1fr; } .grid3 > .svc:first-child { grid-column: span 1; } }
.svc { background: var(--bg); padding: 28px 24px; display: grid; gap: 10px; align-content: start; }
.svc .label { color: var(--muted); }
.svc-icon { width: 52px; height: 52px; fill: none; stroke: var(--sage); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }
.svc-icon .ic-c { stroke: var(--signal); stroke-linecap: square; }
.svc-icon .ic-lot { stroke-width: 1.25; stroke-dasharray: 2 3; }
.svc p { color: var(--muted); font-size: .98rem; }
.svc.feature { background: var(--surface); }
.svc.feature .label { color: var(--signal); }

/* Pilot */
.prose { display: grid; gap: 16px; max-width: 60ch; }
.pilot { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
@media (max-width: 820px) { .pilot { grid-template-columns: 1fr; } }
.pilot-body { display: grid; gap: 32px; min-width: 0; }
/* Flight card: the pilot's credentials and gear, framed like a viewfinder */
.specs { position: relative; margin: 0; background: var(--surface); border: 1px solid var(--line); padding: 24px 28px 8px; }
.specs::before, .specs::after, .specs span.c3, .specs span.c4 { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid var(--signal); }
.specs::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.specs::after { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.specs span.c3 { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.specs span.c4 { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.specs-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; padding-bottom: 14px; }
.specs-head .label { color: var(--signal); white-space: nowrap; }
.specs-head span:last-child { font: 400 .75rem var(--mono); letter-spacing: .08em; color: var(--muted); }
.specs dl { margin: 0; }
.specs dl div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 14px; align-items: baseline; padding-block: 14px; border-top: 1px solid var(--line); }
.specs dt { font: 600 .72rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 0; font-size: 1rem; line-height: 1.4; text-wrap: pretty; }
@media (max-width: 420px) { .specs { padding-inline: 20px; } .specs dl div { grid-template-columns: 1fr; gap: 4px; } }

/* Packages */
.pkgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pkgs.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .pkgs, .pkgs.two { grid-template-columns: 1fr; } }
.pkg { position: relative; border: 1px solid var(--line); padding: 28px 24px; display: grid; gap: 16px; align-content: start; background: var(--bg); }
.pkg.pop { border-color: var(--ink); background: var(--surface); }
.price { font: 800 2.6rem/1 var(--display); font-variation-settings: "wdth" 75; font-variant-numeric: tabular-nums; }
.price small { font: 400 .9rem var(--body); color: var(--muted); }
.pkg ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: .97rem; }
.pkg li { padding-left: 20px; position: relative; }
.pkg li::before { content: "+"; position: absolute; left: 0; color: var(--sage); font-family: var(--mono); font-weight: 600; }
.pkgcat { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 48px 0 16px; padding-top: 16px; border-top: 2px solid var(--ink); }
.head + .pkgcat { margin-top: 0; }
.pkgcat h3 { font-size: 1.5rem; font-variation-settings: "wdth" 80; font-weight: 800; }
.pkgcat span { font: 400 .78rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tag { position: absolute; top: 0; left: 24px; transform: translateY(-50%); padding: 4px 8px; background: var(--ink); color: var(--bg); font: 600 .72rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; border-radius: 3px; white-space: nowrap; }
.addons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; }
@media (max-width: 640px) { .addons { grid-template-columns: 1fr; } }
.addons div { display: flex; justify-content: space-between; gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.addons dt { color: var(--ink); }
.addons dd { margin: 0; font: 600 .95rem var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Logo green accents */
main h2 { color: var(--logo-green); }
.note { margin-top: 20px; font-size: .9rem; color: var(--muted); }

/* Recent work gallery */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
.gallery .ph.big { grid-column: span 2; grid-row: span 2; }
.gallery.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .gallery, .gallery.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gallery.three .ph:first-child { grid-column: span 2; } }
.ph { display: block; padding: 0; border: 0; background: var(--line); cursor: zoom-in; overflow: hidden; border-radius: 3px; }
.ph img { display: block; width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s ease; }
.ph:hover img { transform: scale(1.04); }
#lightbox { padding: 0; border: 0; background: transparent; max-width: min(1400px, 94vw); max-height: 92vh; }
#lightbox::backdrop { background: rgba(6,12,10,.88); }
#lightbox img { display: block; max-width: 100%; max-height: 92vh; width: auto; height: auto; border-radius: 3px; }
.lb-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .ph img { transition: none; } }

/* Video row */
.videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
.videos.vertical { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vid { margin: 0; position: relative; min-width: 0; }
.vid video { display: block; width: 100%; height: 100%; object-fit: cover; background: #0B1710; border-radius: 3px; }
.vid.wide video { aspect-ratio: 16 / 9; }
.vid.tall video { aspect-ratio: 9 / 16; }
.vid figcaption { position: absolute; left: 10px; top: 10px; padding: 5px 8px; border-radius: 3px; background: rgba(0,0,0,.55); color: #fff; font: 600 .72rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; pointer-events: none; }
@media (max-width: 760px) { .videos { grid-template-columns: 1fr; } .videos.vertical { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vid figcaption { font-size: .62rem; } }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; list-style: none; padding: 0; margin: 0; counter-reset: s; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: s; display: grid; gap: 8px; border-top: 2px solid var(--ink); padding-top: 16px; }
.steps li::before { content: "WPT " counter(s, decimal-leading-zero); font: 600 .75rem var(--mono); letter-spacing: .12em; color: var(--signal); }
.steps p { color: var(--muted); font-size: .97rem; }

/* Area */
.area { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 72px); align-items: center; }
@media (max-width: 820px) { .area { grid-template-columns: 1fr; } }
.area-text { min-width: 0; }
.area .head { margin-bottom: 24px; }
.towns { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.towns li { display: flex; justify-content: space-between; gap: 12px; padding-block: 9px; border-bottom: 1px solid var(--line); font-size: .97rem; }
.towns li span:last-child { font: 400 .85rem var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.area-map { margin: 0; min-width: 0; }
.radius { display: block; width: 100%; max-width: 480px; height: auto; margin-inline: auto; overflow: visible; }
.radius .ring { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 3 6; }
.radius .ring.edge { fill: color-mix(in srgb, var(--sage) 7%, transparent); stroke: var(--signal); stroke-width: 2; stroke-dasharray: none; }
.radius .cross { stroke: var(--line); stroke-width: 1; }
.radius .ringlabel { font: 500 13px var(--mono); fill: var(--muted); }
.radius .ringlabel.edge { fill: var(--signal); font-weight: 600; }
.radius .town { fill: var(--sage); }
.radius .home { fill: var(--signal); stroke: var(--bg); stroke-width: 3; }
.radius .homelabel { font: 700 16px var(--body); fill: var(--ink); }
.radius .labels text { font: 400 14px var(--body); fill: var(--ink); }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
/* The whole row is the tap target, not just the text line */
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding-block: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--signal); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: -6px; padding-bottom: 18px; max-width: 65ch; }

/* Quote */
.quote { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 64px); }
@media (max-width: 820px) { .quote { grid-template-columns: 1fr; } }
.quote > * { min-width: 0; }
form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font: 600 .75rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { font: 400 1rem var(--body); padding: 11px 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 3px; width: 100%; }
.field textarea { min-height: 96px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .row2 { grid-template-columns: 1fr; } }
.out { border: 1px solid var(--line); background: var(--surface); padding: 20px; display: grid; gap: 14px; align-content: start; }
.field.missing input { border-color: #C0392B; box-shadow: 0 0 0 1px #C0392B; }
.status.warn { color: #C0392B; }
.contact { display: grid; gap: 6px; font-family: var(--mono); font-size: .92rem; }
.contact a { color: var(--ink); user-select: all; display: inline-block; padding-block: 4px; }
.sendrow { display: flex; flex-wrap: wrap; gap: 10px; }
.status { font-size: .88rem; color: var(--sage); min-height: 1.3em; }

footer { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .95rem; }
footer .foot { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; padding-block: 44px 28px; }
@media (max-width: 760px) { footer .foot { grid-template-columns: 1fr; } }
footer .foot > div { display: grid; gap: 4px; align-content: start; min-width: 0; justify-items: start; }
footer .footlogo { width: 200px; height: auto; max-width: 100%; margin-bottom: 4px; }
footer a { color: var(--ink); text-decoration: none; padding-block: 6px; overflow-wrap: anywhere; }
footer a:hover { color: var(--sage); }
footer .fine { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding-block: 18px 28px; border-top: 1px solid var(--line); font-size: .85rem; }

/* City landing pages */
.hero-grid.single { grid-template-columns: minmax(0, 1fr); }
.hero-grid.single .hero-text { max-width: 60ch; }
.specs dd a, .prose a, .note a, .citylinks a { color: var(--sage); }
.citylinks { font-weight: 600; }
.citylinks strong { color: var(--sage); }
.towns li a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.towns li a:hover { color: var(--sage); border-color: var(--sage); }
#cta .cta { margin-top: 0; }

/* Highlight reel on the home page and the full portfolio page */
.cta.more { justify-content: center; margin-top: 36px; }
.lede a { color: var(--sage); }
main > section.portfolio { border-top: 0; }
#cta .cta { margin-top: 0; }
