/* Layout: the crew photo is the hero; below it, sections run like courses of roofing, alternating plain ground and photo-led blocks, ending in a filterable job gallery. Light and airy: pale sky bands, dark text and logo-blue buttons. */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #13202c;
  --muted: #536372;
  --line: #dbe5ef;
  --navy: #0b4f9c;
  --sky: #0b4f9c;
  --deep: #e6eff8;
  --deep-2: #d6e5f3;
  --on-deep: #0c1a28;
  --on-deep-muted: #3f5568;
  --orange: #0b4f9c;
  --orange-ink: #ffffff;
  --link: #0b4f9c;
  --ph: #8a6a1f;
  --ph-bg: #fbf3dc;
  --logo-light: block;
  --logo-dark: none;
  --display: "Archivo", "Arial Black", "Helvetica Neue", sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d151d; --surface: #142130; --ink: #e9f0f6; --muted: #9db0c2; --line: #24364a;
    --navy: #5fa8ec; --sky: #6bbcec; --deep: #08111a; --deep-2: #132233; --on-deep: #eef4f9; --on-deep-muted: #9fb3c6;
    --orange: #5fa8ec; --orange-ink: #06121e; --link: #8cc4f2;
    --ph: #e6c46b; --ph-bg: #2c2615; --logo-light: none; --logo-dark: block; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d151d; --surface: #142130; --ink: #e9f0f6; --muted: #9db0c2; --line: #24364a;
  --navy: #5fa8ec; --sky: #6bbcec; --deep: #08111a; --deep-2: #132233; --on-deep: #eef4f9; --on-deep-muted: #9fb3c6;
  --orange: #5fa8ec; --orange-ink: #06121e; --link: #8cc4f2;
  --ph: #e6c46b; --ph-bg: #2c2615; --logo-light: none; --logo-dark: block; color-scheme: dark;
}

* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
h1, h2, h3 { font-family: var(--display); font-stretch: 112%; line-height: 1.04; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 1180px; margin-inline: auto; padding-inline: 20px; }
.eyebrow { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy); font-weight: 500; }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--orange); color: var(--orange-ink); font-weight: 700; text-decoration: none; padding: 12px 18px; border-radius: 6px; border: 0; font: 700 1rem var(--body); cursor: pointer; }
.btn:hover { filter: brightness(1.06); }

/* draft ribbon */
.draft { background: var(--ph-bg); color: var(--ph); font-size: 0.85rem; padding-block: 8px; border-bottom: 1px dashed var(--ph); }
.draft .wrap { display: flex; gap: 8px; flex-wrap: wrap; }

/* header */
.top { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: 10px; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo img { height: 64px; width: auto; }
.logo .l-light { display: var(--logo-light); }
.logo .l-dark { display: var(--logo-dark); }
.top nav { display: flex; gap: 24px; font-size: 0.93rem; font-weight: 500; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--ink); }
.top .btn { padding: 9px 14px; font-size: 0.92rem; }

/* hero */
.hero { position: relative; background: var(--deep); color: var(--on-deep); display: grid; }
.hero-photo { width: 100%; max-width: 1180px; margin-inline: auto; max-height: 780px; object-fit: contain; }
.hero-photo-wrap { background: #ffffff; }
.hero-shade { display: none; }
.hero-text { padding-block: 56px 44px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px 48px; align-items: end; }
.hero-text .eyebrow, .hero-text h1 { grid-column: 1 / -1; }
.hero-photo-wrap { position: relative; display: grid; }
.hero-photo-wrap > * { grid-area: 1 / 1; }
.hero h1 { font-weight: 900; font-size: clamp(2.4rem, 6vw, 4.8rem); max-width: 18ch; }
.hero h1 em { font-style: normal; color: var(--sky); }
.hero .lede { max-width: 52ch; font-size: 1.12rem; color: var(--on-deep-muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-cta .phone { display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 8px 14px; text-decoration: none; }
.hero-cta .phone small { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.hero-cta .phone b { font-family: var(--display); font-size: 1.35rem; font-variant-numeric: tabular-nums; color: var(--ink); }
.hero-cap { align-self: end; justify-self: end; margin: 0 20px 16px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; color: #e6eef5; background: rgba(8,17,26,0.6); padding: 4px 10px; border-radius: 4px; position: relative; }
@media (max-width: 760px) {
  .hero-text { grid-template-columns: 1fr; padding-block: 40px 28px; }
  .hero-cap { margin: 0 10px 10px; }
}

/* credentials */
.creds { background: var(--surface); border-bottom: 1px solid var(--line); }
.creds ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.creds li { padding: 20px 20px 20px 0; display: grid; gap: 2px; min-width: 0; }
.creds li b { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 1.15rem; }
.creds li span { color: var(--muted); font-size: 0.88rem; }
.tagline { margin: 0; padding-block: 22px; text-align: center; font-family: var(--display); font-stretch: 118%; font-weight: 900; font-size: clamp(1.5rem, 4vw, 2.4rem); letter-spacing: 0.02em; color: var(--ink); }
.tagline span { color: var(--sky); margin-inline: 0.35em; }

section.block { padding-block: 80px; }
.head { display: grid; gap: 12px; margin-bottom: 36px; max-width: 700px; }
.head h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 900; }
.head p { color: var(--muted); }

/* services */
.svc { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.svc article { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.svc img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.svc .body { padding: 20px 22px 24px; display: grid; gap: 8px; align-content: start; }
.svc .tag { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); }
.svc h3 { font-size: 1.45rem; font-weight: 800; }
.svc p { color: var(--muted); font-size: 0.96rem; }

/* before / after */
.ba { background: var(--deep); color: var(--on-deep); }
.ba .head p { color: var(--on-deep-muted); }
.ba .eyebrow { color: var(--sky); }
.pairs { display: grid; gap: 40px; }
.pair { display: grid; gap: 14px; }
.pair h3 { font-size: 1.5rem; font-weight: 800; }
.pair .meta { color: var(--on-deep-muted); font-size: 0.95rem; }
.pair .shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.pair figure { margin: 0; position: relative; min-width: 0; }
.pair figure img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; border-radius: 6px; cursor: zoom-in; }
.pair figcaption { position: absolute; top: 10px; left: 10px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; background: rgba(8,17,26,0.75); color: #fff; }
.pair figure.after figcaption { background: var(--orange); color: var(--orange-ink); }

/* clients */
.names { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.names span { font-family: var(--display); font-stretch: 110%; font-weight: 700; font-size: 1.05rem; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }

/* corey */
.corey { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.corey .photo { position: relative; }
.corey .photo > img { border-radius: 8px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; }
.corey .inset { position: absolute; right: -14px; bottom: -22px; width: 30%; border: 5px solid var(--bg); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.18); }
.corey .inset img { border-radius: 4px; aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.corey .copy-col { display: grid; gap: 16px; color: var(--muted); max-width: 58ch; }
.corey .copy-col b { color: var(--ink); }
.corey h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 900; color: var(--ink); }
.sign { font-family: var(--display); font-stretch: 100%; font-style: italic; font-weight: 700; font-size: 1.4rem; color: var(--ink); }
.finance { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px 20px; display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; color: var(--ink); }
.finance b { font-family: var(--display); font-size: 2rem; font-weight: 900; color: var(--navy); line-height: 1; }
@media (max-width: 860px) { .corey { grid-template-columns: 1fr; } .corey .inset { right: 10px; } }

.crew { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 56px; }
.crew img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; cursor: zoom-in; background: #fff; }
.proof { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 20px; }
.proof figure { margin: 0; display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px; min-width: 0; }
.proof img { width: 110px; height: 130px; object-fit: cover; border-radius: 4px; cursor: zoom-in; }
.proof figcaption { font-size: 0.93rem; color: var(--muted); }
.proof figcaption b { display: block; color: var(--ink); font-family: var(--display); font-stretch: 110%; font-size: 1.1rem; margin-bottom: 4px; }
@media (max-width: 760px) { .crew { grid-template-columns: 1fr 1fr; } .crew img:first-child { grid-column: 1 / -1; } }

/* gallery */
.gal-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { font: 600 0.9rem var(--body); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--surface); }
.chip span { font-family: var(--mono); font-size: 0.78rem; opacity: 0.75; margin-left: 4px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.grid button { all: unset; cursor: zoom-in; position: relative; border-radius: 6px; overflow: hidden; background: var(--line); aspect-ratio: 4 / 3; display: block; }
.grid button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.grid button:hover img { transform: scale(1.04); }
.grid .cap { position: absolute; inset: auto 0 0 0; padding: 22px 10px 8px; font-size: 0.8rem; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(8,17,26,0.82)); }
.more { margin-top: 24px; display: flex; justify-content: center; }
.more .btn { background: var(--navy); color: var(--surface); }

/* lightbox */
dialog.lb { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; }
dialog.lb::backdrop { background: rgba(5,10,16,0.92); }
.lb-inner { height: 100%; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 16px; gap: 10px; }
.lb-inner img { max-height: calc(100vh - 110px); max-width: 100%; width: auto; object-fit: contain; border-radius: 4px; }
.lb-bar { display: flex; gap: 14px; align-items: center; color: #eef4f9; font-size: 0.95rem; flex-wrap: wrap; justify-content: center; }
.lb-bar button { font: 600 0.9rem var(--body); color: #fff; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); border-radius: 6px; padding: 8px 14px; cursor: pointer; }
.lb-bar .count { font-family: var(--mono); font-size: 0.8rem; color: #a9bccd; font-variant-numeric: tabular-nums; }

/* area */
.area-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.area-grid div { padding: 18px 18px 18px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.area-grid h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 6px; }
.area-grid h3 small { font-family: var(--body); font-weight: 500; font-size: 0.8rem; color: var(--muted); }
.area-grid p { color: var(--muted); font-size: 0.95rem; }

/* reviews + placeholders */
.ph { border: 2px dashed var(--ph); background: var(--ph-bg); color: var(--ph); border-radius: 6px; }
.ph-label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; }
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.reviews figure { margin: 0; padding: 22px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.reviews figure.real { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.reviews blockquote { margin: 0; font-size: 1.05rem; }
.reviews figcaption { font-size: 0.85rem; color: var(--muted); }
.reviews .ph figcaption, .reviews .ph blockquote { color: var(--ph); }

/* contact */
.contact { background: var(--surface); border-top: 1px solid var(--line); }
.offices { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.office { border: 1px solid var(--line); border-radius: 8px; padding: 24px; display: grid; gap: 14px; align-content: start; background: var(--bg); min-width: 0; }
.office h3 { font-size: 1.7rem; font-weight: 900; }
.office dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; }
.office dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.office dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.office dd .ph { display: inline-block; padding: 1px 8px; border-width: 1px; font-size: 0.9rem; }
.num { font-family: var(--display); font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; text-decoration: none; color: var(--navy); user-select: all; }
.copy { font: 600 0.78rem var(--body); background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 4px 9px; cursor: pointer; margin-left: 8px; vertical-align: 4px; }

.emerg { background: var(--orange); color: var(--orange-ink); padding-block: 36px; }
.emerg .wrap { display: flex; gap: 20px 40px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.emerg h2 { font-size: clamp(1.8rem, 4.4vw, 2.6rem); font-weight: 900; }
.emerg p { opacity: 0.92; margin-top: 6px; }
.emerg .nums { display: grid; gap: 4px; font-family: var(--display); font-weight: 800; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.emerg .nums a { text-decoration: none; }
.emerg .nums small { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; margin-right: 10px; font-weight: 500; }
footer { background: var(--deep); color: var(--on-deep-muted); padding-block: 32px; font-size: 0.88rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }

.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 6px; font-size: 0.9rem; z-index: 50; }


/* estimate form */
dialog.est { border: 0; padding: 0; border-radius: 10px; width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px); background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,0.25); }
dialog.est::backdrop { background: rgba(12,26,40,0.55); }
.est-inner { padding: 26px 26px 24px; display: grid; gap: 18px; }
.est-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.est-head h2 { font-size: 1.7rem; font-weight: 900; }
.est-head p { color: var(--muted); font-size: 0.95rem; margin-top: 6px; }
.est-x { all: unset; cursor: pointer; font-size: 1.6rem; line-height: 1; color: var(--muted); padding: 4px 8px; border-radius: 4px; }
.est-x:focus-visible { outline: 3px solid var(--orange); }
.est form { display: grid; gap: 14px; }
.est .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.est label, .est legend { font-weight: 600; font-size: 0.9rem; display: block; }
.est label > input:not([type="radio"]), .est label > select, .est label > textarea { display: block; margin-top: 6px; }
.est .req { color: var(--navy); }
.est .opt { color: var(--muted); font-weight: 400; }
.est input[type="text"], .est input[type="tel"], .est input[type="email"], .est select, .est textarea { font: 400 1rem var(--body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; width: 100%; min-width: 0; }
.est textarea { min-height: 110px; resize: vertical; }
.est input:focus, .est select:focus, .est textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
.est input[aria-invalid="true"] { border-color: #c0392b; }
.est .err { color: #c0392b; font-size: 0.82rem; font-weight: 500; }
.est fieldset { border: 0; padding: 0; margin: 0; }
.est .radios { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.est .radios label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.est .radios input { accent-color: var(--navy); margin: 0; }
.est .radios label:has(input:checked) { border-color: var(--navy); background: var(--deep); }
.est .actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.est .ghost { font: 600 0.95rem var(--body); background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 11px 16px; cursor: pointer; text-decoration: none; }
.est pre { margin: 0; white-space: pre-wrap; font: 400 0.9rem/1.55 var(--mono); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 14px; max-height: 260px; overflow: auto; }
.est .addr { font-weight: 700; user-select: all; }
@media (max-width: 560px) { .est .row { grid-template-columns: 1fr; } .est-inner { padding: 20px 18px; } .top .btn { padding: 8px 10px; font-size: 0.82rem; } }

@media (max-width: 760px) {
  .top nav { display: none; }
  .logo img { height: 42px; }
  section.block { padding-block: 56px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { animation: rise 0.7s cubic-bezier(.2,.7,.2,1) both; }
  .hero-text > *:nth-child(2) { animation-delay: 0.06s; }
  .hero-text > *:nth-child(3) { animation-delay: 0.12s; }
  .hero-text > *:nth-child(4) { animation-delay: 0.18s; }
  @keyframes rise { from { transform: translateY(12px); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .grid img { transition: none; } }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
