/* Avendale Construction Group: one-screen home in the business card's colors (black ground, silver type, brass line-art icons).
   Stars on the map open job photos; the grid opens short pitches. Pop-ups are a sheet that slides up on phones
   and a centered panel on computers and sideways phones. No inline styles anywhere (the CSP in _headers blocks them). */
:root {
  --bg: #050505; --bg-img: none; --panel: #101012; --ink: #D4D7DB; --ink-dim: #8E949B; --hair: rgba(212, 215, 219, .16);
  --brass: #CFA862; --brass-hi: #E9CC92; --brass-line: rgba(207, 168, 98, .4); --brass-wash: rgba(207, 168, 98, .1);
  --glow: drop-shadow(0 0 5px rgba(207, 168, 98, .4)); --glow-hi: drop-shadow(0 0 10px rgba(233, 204, 146, .75));
  --spark-glow: drop-shadow(0 0 3px rgba(233, 204, 146, .9)); --links: rgba(212, 215, 219, .42); --halo: rgba(207, 168, 98, .09);
  --name: linear-gradient(180deg, #FFFFFF 0%, #D4D7DB 55%, #9097A0 100%); --level: rgba(212, 215, 219, .55); --grab: rgba(212, 215, 219, .3);
  --f: "Archivo", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background-color: var(--bg); transition: background-color .3s ease; }
body { color: var(--ink); background-image: var(--bg-img); font: 400 15px/1.45 var(--f); -webkit-font-smoothing: antialiased; overflow: hidden; }
button { font: inherit; color: inherit; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; }
.screen {
  height: 100%; height: 100dvh; max-width: 1180px; margin: 0 auto; padding: 14px 18px 18px;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto minmax(0, 1.4fr); gap: 10px;
  grid-template-areas: "top" "map" "brand" "tabs";
}
.top { grid-area: top; display: flex; align-items: center; justify-content: space-between; }
.badge {
  border: 0; padding: 0; cursor: pointer;
  position: relative; overflow: hidden; width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 1px, rgba(0, 0, 0, 0) 1px 3px),
              linear-gradient(160deg, #F3F4F6 0%, #B9BEC4 38%, #E6E8EB 60%, #9AA0A7 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 6px 18px -8px rgba(0, 0, 0, .9);
}
.badge svg { width: 30px; height: 34px; position: relative; z-index: 1; }
.badge::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; width: 40%; left: -60%; z-index: 2;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .75), rgba(255, 255, 255, 0));
  transform: skewX(-12deg); transition: left .7s ease;
}
.badge:hover::after { left: 130%; }
.badge.shine::after { animation: sweep .9s ease .6s 1 backwards; }
@keyframes sweep { from { left: -60%; } to { left: 130%; } }
.call { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--brass); border: 1px solid var(--brass-line); text-decoration: none; transition: border-color .2s ease, color .2s ease; }
.call:hover { border-color: var(--brass); color: var(--brass-hi); }
.call svg { width: 20px; height: 20px; }
.mapwrap { grid-area: map; position: relative; min-height: 0; }
.mapwrap::before { content: ""; position: absolute; inset: 10% 15%; background: radial-gradient(closest-side, var(--halo), rgba(0, 0, 0, 0)); pointer-events: none; }
.map { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.links { fill: none; stroke: var(--links); stroke-width: .9; }
.star { cursor: pointer; outline: none; }
.star .hit { fill: transparent; }
.star .ring { fill: none; stroke: var(--brass-hi); stroke-width: .8; opacity: 0; transform-box: fill-box; transform-origin: center; }
.star .tw { transform-box: fill-box; transform-origin: center; animation: tw 3.6s ease-in-out infinite; }
.star:nth-of-type(2) .tw { animation-delay: -.7s; } .star:nth-of-type(3) .tw { animation-delay: -1.5s; }
.star:nth-of-type(4) .tw { animation-delay: -2.2s; } .star:nth-of-type(5) .tw { animation-delay: -2.9s; }
@keyframes tw { 0%, 100% { transform: scale(1); opacity: .82; } 50% { transform: scale(1.14); opacity: 1; } }
.star .spark { fill: var(--brass-hi); filter: var(--spark-glow); transform-box: fill-box; transform-origin: center; transition: transform .25s ease; }
.star.hot .spark, .star:focus-visible .spark { transform: scale(1.35); }
.star.hot .ring, .star:focus-visible .ring { animation: ping 1.4s ease-out infinite; }
@keyframes ping { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.8); } }
.town { fill: var(--ink-dim); font: 500 9.5px var(--f); letter-spacing: .06em; transition: fill .2s ease; }
.town.hot { fill: var(--brass-hi); }
.peek {
  position: absolute; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--hair); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6); pointer-events: none; white-space: nowrap;
  opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease;
}
.peek.on { opacity: 1; transform: none; }
.peek .thumbs { display: flex; }
.peek img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--brass); }
.peek img + img { margin-left: -10px; }
.peek b { display: block; font-weight: 600; color: var(--ink); font-size: 14px; }
.peek span { display: block; color: var(--ink-dim); font-size: 13px; }
.brand { grid-area: brand; text-align: center; }
.name { margin: 0; font-size: 1em; font-weight: 400; }
.name-main {
  display: block; margin: 0; font: 700 clamp(30px, 10.5vw, 46px)/1 var(--f); font-stretch: 125%; letter-spacing: .16em; padding-left: .16em; text-transform: uppercase;
  background: var(--name);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--ink);
}
.sub { display: block; text-transform: uppercase; margin: 8px 0 0; font: 600 clamp(9.5px, 2.6vw, 12px)/1 var(--f); font-stretch: 112%; letter-spacing: .38em; padding-left: .38em; color: var(--brass); }
.level { display: block; width: 214px; height: auto; margin: 12px auto 0; overflow: visible; }
.level .bub { transform-box: fill-box; transform-origin: center; animation: settle 1.8s cubic-bezier(.25, 1.35, .45, 1) .9s both; }
@keyframes settle { from { transform: translateX(-5px); } to { transform: none; } }
[hidden] { display: none !important; }
.tabs { grid-area: tabs; min-height: 0; animation: fade .35s ease; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 4px 6px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.tab {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; min-height: 0; min-width: 0;
  padding: 4px 2px; border: 0; border-radius: 14px; background: none; cursor: pointer; font-weight: 500; font-size: 14px; line-height: 1.15; text-align: center;
}
.ti { width: clamp(38px, 11.5vw, 48px); height: clamp(38px, 11.5vw, 48px); color: var(--brass); filter: var(--glow); transition: transform .25s ease, filter .25s ease, color .25s ease; flex: none; }
.tl { display: block; min-height: 2.3em; color: var(--ink); transition: color .25s ease; }
.tl > span { position: relative; display: inline-block; }
.tl > span::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: -6px; height: 1px; background: var(--brass); transition: left .25s ease, right .25s ease; }
.tab:active .ti { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) {
  .tab:hover .ti { transform: translateY(-4px); color: var(--brass-hi); filter: var(--glow-hi); }
  .tab:hover .tl { color: var(--brass-hi); }
  .tab:hover .tl > span::after { left: 15%; right: 15%; }
}

/* tablets held upright: same stack, bigger pieces */
@media (orientation: portrait) and (min-width: 700px) {
  .screen { max-width: 820px; padding: 24px 32px 32px; }
  .name-main { font-size: 68px; } .sub { font-size: 15px; margin-top: 12px; }
  .ti { width: 64px; height: 64px; } .tab { font-size: 18px; gap: 14px; }
  .level { width: 270px; margin-top: 16px; }
}
/* sideways phones and computers: map and name on the left, tabs on the right */
@media (orientation: landscape), (min-width: 1000px) {
  .screen {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas: "top top" "map tabs" "brand tabs"; column-gap: clamp(16px, 4vw, 64px); padding-block: 10px 14px;
  }
  .name-main { font-size: clamp(24px, 3.8vw, 58px); }
  .sub { font-size: clamp(9px, 1vw, 13px); }
}
@media (orientation: landscape) and (max-height: 500px) {
  .tab { gap: 5px; font-size: 12.5px; }
  .ti { width: 30px; height: 30px; }
  .level { width: 168px; margin-top: 8px; }
}
@media (orientation: landscape) and (max-height: 330px) {
  .tl { display: none; }
}
@media (min-width: 1000px) and (min-height: 600px) {
  .screen { padding-block: 28px 36px; grid-template-rows: auto minmax(0, 1fr) auto auto minmax(0, 1fr);
            grid-template-areas: "top top" ". tabs" "map tabs" "brand tabs" ". tabs"; }
  .mapwrap { height: min(50vh, 34vw); }
  .tabs { grid-template-rows: repeat(3, auto); align-content: center; row-gap: clamp(28px, 6vh, 60px); }
  .ti { width: 56px; height: 56px; }
  .tab { font-size: 16px; gap: 14px; }
  .level { width: 250px; margin-top: 16px; }
  .town { font-size: 8.5px; }
}

/* ---------- pop-up: bottom sheet on phones, centered panel on computers ---------- */
.sheet { padding: 0; border: 0; background: transparent; color: var(--ink); max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; overflow: hidden; }
.sheet::backdrop { background: rgba(0, 0, 0, 0); transition: background-color .3s ease; }
.sheet.in::backdrop { background: rgba(0, 0, 0, .72); }
.scrim { position: absolute; inset: 0; }
.card {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: calc(100% - 28px); display: flex; flex-direction: column; overflow: hidden;
  background: var(--panel); border-top: 1px solid var(--hair); border-radius: 22px 22px 0 0;
  padding: 10px 18px calc(22px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -12px 40px -20px rgba(0, 0, 0, .7);
  transform: translateY(100%); transition: transform .34s cubic-bezier(.2, .8, .2, 1);
}
.sheet.in .card { transform: none; }
.body { min-height: 0; overflow: auto; overscroll-behavior: contain; }
.grab { flex: none; width: 40px; height: 4px; border-radius: 2px; background: var(--grab); margin: 0 auto 12px; }
.x { position: absolute; top: 12px; right: 12px; z-index: 3; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--hair); background: var(--panel); color: var(--ink); cursor: pointer; }
.x svg { width: 18px; height: 18px; }
.x:hover { border-color: var(--brass); color: var(--brass-hi); }
.gal-wrap { color: #D4D7DB; }
.gal-wrap { position: relative; margin-top: 4px; }
.gal { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 14px; background: #000; }
.gal::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 4 / 3; margin: 0; }
.slide img, .slide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.cap, .count {
  position: absolute; z-index: 2; padding: 6px 12px; border-radius: 999px; font-size: 13px; line-height: 1.2;
  background: rgba(5, 5, 5, .62); border: 1px solid rgba(212, 215, 219, .16); color: #D4D7DB;
}
.cap { left: 10px; bottom: 10px; }
.count { left: 10px; top: 10px; font-variant-numeric: tabular-nums; }
.nav { position: absolute; top: 50%; z-index: 3; margin-top: -20px; width: 40px; height: 40px; border-radius: 50%; display: none; place-items: center; border: 1px solid rgba(212, 215, 219, .16); background: rgba(5, 5, 5, .62); color: #D4D7DB; cursor: pointer; }
.nav svg { width: 18px; height: 18px; }
.nav.prev { left: 10px; } .nav.next { right: 10px; }
.nav:hover { border-color: #CFA862; color: #E9CC92; }
@media (hover: hover) and (pointer: fine) { .gal-wrap.many .nav { display: grid; } }
.info { padding-top: 16px; }
.back { display: inline-flex; align-items: center; gap: 2px; margin: 0 0 10px -8px; padding: 6px 14px 6px 4px; min-height: 36px; border: 0; border-radius: 999px; background: none; color: var(--ink-dim); font-size: 14px; font-weight: 600; cursor: pointer; }
.back svg { width: 18px; height: 18px; }
.back:hover { color: var(--brass-hi); }
.job + .job { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--hair); }
.town-head { margin-bottom: 14px; }
.town-head .sum { margin-top: 4px; }
.incl { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 9px; }
.incl li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink); }
.incl svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--brass); }
.pitch .acts { margin-top: 20px; }
.motto { margin: 6px 0 0; color: var(--brass); font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.about .sum { margin-top: 14px; }
.about .note { margin: 12px 0 0; color: var(--ink); }
.nudge {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 8px; padding: 9px 15px 9px 12px; border-radius: 999px; white-space: nowrap;
  background: var(--panel); border: 1px solid rgba(207, 168, 98, .5); color: var(--ink); font-size: 13.5px; font-weight: 500; pointer-events: none;
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, .9), 0 0 22px -8px rgba(207, 168, 98, .45);
  opacity: 0; transform: translateY(6px) scale(.96); transition: opacity .35s ease, transform .35s cubic-bezier(.2, .8, .2, 1);
}
.nudge.on { opacity: 1; transform: none; }
.nudge svg { width: 12px; height: 12px; flex: none; color: var(--brass-hi); filter: var(--spark-glow); }
.nudge::before { content: ""; position: absolute; top: -6px; left: var(--ax, 20px); width: 10px; height: 10px; background: var(--panel);
  border: solid rgba(207, 168, 98, .5); border-width: 1px 0 0 1px; transform: rotate(45deg); }
.nudge.above::before { top: auto; bottom: -6px; border-width: 0 1px 1px 0; }
.star.ping .ring { animation: ping 1.1s ease-out 1; }
.star.lead .spark { transform: scale(1.3); }
.star.lead .ring { animation: ping 1.4s ease-out infinite; }
.meta { margin: 0; color: var(--brass); font-size: 14px; font-weight: 500; }
.ttl { margin: 4px 0 0; font: 400 clamp(24px, 6.4vw, 32px)/1.1 var(--f); font-stretch: 118%; letter-spacing: -.01em; color: var(--ink); padding-right: 48px; }
.sum { margin: 10px 0 0; color: var(--ink-dim); }
.ask {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; min-height: 46px; padding: 10px 20px; border-radius: 999px;
  border: 1px solid var(--brass-line); color: var(--brass-hi); text-decoration: none; font-weight: 600; font-size: 15px;
}
.ask:hover { background: var(--brass-wash); }
.ask svg { width: 18px; height: 18px; }
.steps { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; }
.steps .si { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--brass-hi); border: 1px solid var(--brass-line); }
.steps .si svg { width: 22px; height: 22px; }
.steps b { display: block; color: var(--ink); font-weight: 600; }
.steps span { color: var(--ink-dim); }
.acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn { border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 10px 20px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; }
.btn svg { width: 18px; height: 18px; }
.btn-brass { color: #1C1408; background: linear-gradient(180deg, var(--brass-hi), var(--brass) 55%, #B58C47); }
.btn-line { color: var(--ink); border: 1px solid var(--hair); }
.btn-line:hover { border-color: var(--brass); color: var(--brass-hi); }
.rows { display: grid; gap: 10px; margin-top: 16px; }
.row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--hair); color: var(--ink); text-decoration: none; background: none; cursor: pointer; text-align: left; width: 100%; }
.row:hover { border-color: var(--brass-line); }
.row svg { width: 26px; height: 26px; color: var(--brass); flex: none; }
.row img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--brass); flex: none; }
.row b { display: block; font-weight: 600; }
.row span { display: block; color: var(--ink-dim); font-size: 14px; }
@media (orientation: landscape), (min-width: 1000px) {
  .card {
    left: 50%; top: 50%; right: auto; bottom: auto; width: min(1100px, calc(100% - 40px)); max-height: calc(100% - 40px);
    border: 1px solid var(--hair); border-radius: 22px; padding: 22px; transform: translate(-50%, -48%) scale(.97); opacity: 0;
    transition: transform .26s cubic-bezier(.2, .8, .2, 1), opacity .26s ease;
  }
  .sheet.in .card { transform: translate(-50%, -50%); opacity: 1; }
  .card:not(.has-gal) { width: min(540px, calc(100% - 40px)); }
  .grab { display: none; }
  .card.has-gal .job { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 26px; align-items: start; }
  .card.has-gal .job .info { padding-top: 6px; }
  .card.has-gal .back { margin-bottom: 8px; }
  .town-head { padding-top: 0; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .card { padding: 16px; max-height: calc(100% - 24px); }
  .card.has-gal .job { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; }
  .slide { aspect-ratio: auto; height: calc(100vh - 60px); height: calc(100dvh - 60px); }
  .ttl { font-size: 22px; } .sum { font-size: 14px; } .ask { margin-top: 12px; }
}
@media (min-width: 1600px) and (min-height: 860px) {
  .screen { max-width: 1440px; }
  .mapwrap { height: min(52vh, 32vw); }
  .name-main { font-size: 70px; } .sub { font-size: 15px; margin-top: 12px; }
  .ti { width: 66px; height: 66px; } .tab { font-size: 18px; }
  .level { width: 290px; }
  .badge, .call { width: 52px; height: 52px; } .badge svg { width: 36px; height: 40px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .card:not(.has-gal) { width: min(780px, calc(100% - 40px)); }
  .pitch { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; padding-top: 4px; }
  .pitch .p-b .incl { margin-top: 26px; }
  .incl { gap: 6px; margin-top: 12px; }
}
/* About: service area and common questions */
.coverage { margin: 14px 0 0; padding-left: 12px; border-left: 2px solid var(--brass-line); color: var(--ink-dim); font-size: 14px; }
.about .acts { margin-top: 20px; }
.faq-h { margin: 26px 0 0; color: var(--brass); font-size: 14px; font-weight: 500; }
.faq { margin-top: 8px; border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 48px; padding: 10px 2px; cursor: pointer; color: var(--ink); font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 16px; height: 16px; flex: none; color: var(--brass); transition: transform .2s ease; }
.faq details[open] summary svg { transform: rotate(90deg); }
.faq p { margin: 0 2px 14px; color: var(--ink-dim); }
@media (hover: hover) and (pointer: fine) { .faq summary:hover { color: var(--brass-hi); } }

/* Start a project: email shown in plain view with a Copy button (mail links do nothing for people without a mail app) */
.mailline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 18px 0 0; color: var(--ink-dim); font-size: 14px; }
.addr { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.addr:hover { color: var(--brass-hi); }
.copy { min-height: 36px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--hair); background: none; color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; }
.copy:hover { border-color: var(--brass); color: var(--brass-hi); }
.copy.ok { border-color: var(--brass-line); color: var(--brass-hi); }
.fine { margin: 10px 0 0; color: var(--brass); font-size: 13px; font-weight: 500; }

/* without JavaScript the pop-ups can't open: show the contact line */
.nojs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; margin: 0; padding: 12px 16px; text-align: center; background: var(--panel); border-top: 1px solid var(--hair); font-size: 14px; }
.nojs a { color: var(--brass-hi); }

/* 404 page */
.nf { height: 100%; overflow: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 20px; }
.nf-mark { width: 64px; height: 74px; flex: none; }
.nf-name { margin-top: 18px; font-size: clamp(26px, 8vw, 40px); }
.nf-title { margin: 24px 0 0; font: 400 clamp(22px, 5.6vw, 30px)/1.15 var(--f); font-stretch: 118%; color: var(--ink); }
.nf-text { margin: 10px 0 0; color: var(--ink-dim); max-width: 34em; }
.nf-acts { justify-content: center; margin-top: 24px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; } }
