/* Tokens: see DESIGN.md */
:root {
  --asphalt: #0e0e0e;
  --ink: #1a1a1a;
  --steel: #55585c;
  --slab: #ebeae7;
  --line: #d6d5d1;
  --line-dark: #2c2c2c;
  --orange: #ff6a13;
  --orange-hi: #ff8340;
  --orange-ink: #b54300;
  --font: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --max: 1240px;
  --header: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: #fff; color: var(--ink); font: 400 1.0625rem/1.6 var(--font); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }

h1, h2, h3 { font-family: var(--font); font-weight: 800; margin: 0 0 0.45em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5.2rem); line-height: 0.95; font-stretch: 72%; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1; font-stretch: 75%; letter-spacing: -0.005em; }
h3 { font-size: 1.4rem; line-height: 1.15; font-stretch: 85%; font-weight: 750; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--orange); color: #111; padding: 10px 16px; font-weight: 700; }
.skip:focus { left: 16px; }
.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
section { padding: clamp(64px, 9vw, 120px) 0; }
.slab { background: var(--slab); }
.dark { background: var(--asphalt); color: #fff; }
.lede { font-size: 1.2rem; color: var(--steel); max-width: 60ch; }
.dark .lede { color: #b9b9b6; }
.link { color: var(--orange-ink); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.link:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  border: 2px solid transparent; border-radius: 3px; cursor: pointer; text-decoration: none;
  font: 700 1rem/1 var(--font); letter-spacing: 0.01em;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-orange { background: var(--orange); color: #111; }
.btn-orange:hover { background: var(--orange-hi); }
.btn-light { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn-light:hover { background: #fff; color: #111; border-color: #fff; }
.btn-dark { background: var(--asphalt); color: #fff; }
.btn-dark:hover { background: #333; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--asphalt); color: #fff; }
.nav { height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo svg { width: 52px; height: 52px; }
.logo-text { font: 800 1.5rem/0.95 var(--font); font-stretch: 75%; }
.logo-text small { display: block; font: 500 0.78rem/1.4 var(--font); font-stretch: 100%; color: #a9a9a6; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { display: block; padding: 10px 14px; font-weight: 600; font-size: 0.98rem; text-decoration: none; color: #d8d8d5; transition: color 0.2s; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.nav-links .btn { margin-left: 12px; min-height: 46px; padding: 0 20px; }
.menu-btn { display: none; width: 48px; height: 48px; border: 1px solid #3a3a3a; border-radius: 3px; background: none; color: #fff; cursor: pointer; position: relative; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { position: absolute; left: 12px; width: 22px; height: 2px; background: currentColor; transition: transform 0.3s var(--ease); content: ""; }
.menu-btn span { top: 23px; }
.menu-btn span::before { left: 0; top: -7px; }
.menu-btn span::after { left: 0; top: 7px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* Signature: a tape-measure blade that runs out as you scroll */
.tape {
  position: absolute; left: 0; right: 0; bottom: -7px; height: 7px; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 64px) left top / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, #111 0 1px, transparent 1px 16px) left top / 100% 3px no-repeat,
    var(--orange);
  clip-path: inset(0 calc((1 - var(--p, 0)) * 100%) 0 0);
}

@media (max-width: 960px) {
  .menu-btn { display: block; z-index: 2; }
  .nav-links {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; gap: 6px;
    background: var(--asphalt); opacity: 0; visibility: hidden; transform: translateY(-16px);
    transition: opacity 0.3s, transform 0.4s var(--ease), visibility 0.3s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a:not(.btn) { font: 800 2.1rem/1.1 var(--font); font-stretch: 75%; color: #fff; }
  .nav-links .btn { margin: 20px 0 0; }
  body.menu-open { overflow: hidden; }
}

/* Photo hero */
.hero { padding: 0; position: relative; min-height: min(86svh, 860px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #2a2a2a; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 14, 14, 0.88) 0%, rgba(14, 14, 14, 0.62) 42%, rgba(14, 14, 14, 0.12) 100%),
    linear-gradient(0deg, rgba(14, 14, 14, 0.55), transparent 45%);
}
.hero .container { position: relative; z-index: 1; padding: 96px 0 72px; }
.hero h1 { max-width: 15ch; }
.hero p { font-size: 1.2rem; max-width: 52ch; color: #e6e6e3; }
.hero .btn-row { margin-top: 30px; }
.where { display: inline-block; margin-bottom: 18px; font-weight: 600; color: #fff; border-bottom: 3px solid var(--orange); padding-bottom: 4px; }
.page-hero { min-height: 52svh; }
.page-hero h1 { max-width: 18ch; }
.crumbs { font-size: 0.95rem; color: #cfcfcc; margin-bottom: 14px; }
.crumbs a { color: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .hero > img { animation: settle 1.8s var(--ease) both; }
  .hero h1 { animation: lift 0.9s 0.15s var(--ease) both; }
  .hero h1 + p, .hero .btn-row { animation: lift 0.9s 0.3s var(--ease) both; }
}

/* Section heads: heading and its lede side by side */
.head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px 64px; align-items: end; margin-bottom: 44px; }
.head h2 { margin: 0; }
.head p { margin: 0; color: var(--steel); font-size: 1.12rem; }
.dark .head p { color: #b9b9b6; }
@media (max-width: 860px) { .head { grid-template-columns: 1fr; } }

/* Service photo tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 270px; gap: 12px; }
.tiles .tile:first-child { grid-row: span 2; }
.tiles .tile:last-child { grid-column: span 3; }
.tile { position: relative; overflow: hidden; display: flex; align-items: flex-end; color: #fff; text-decoration: none; background: #333; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.25) 55%, transparent 80%); }
.tile-body { position: relative; z-index: 1; padding: 22px 24px; }
.tile h3 { margin: 0 0 6px; font-size: 1.6rem; }
.tile h3::after { content: ""; display: block; width: 32px; height: 4px; margin-top: 10px; background: var(--orange); transition: width 0.4s var(--ease); }
.tile p { margin: 0; color: #e2e2df; font-size: 0.98rem; max-width: 40ch; }
.tile:hover img { transform: scale(1.05); }
.tile:hover h3::after { width: 72px; }
@media (max-width: 900px) {
  .tiles { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; }
  .tiles .tile:first-child { grid-row: auto; grid-column: span 2; }
  .tiles .tile:last-child { grid-column: span 2; }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: 1fr; }
  .tiles .tile:first-child, .tiles .tile:last-child { grid-column: auto; }
}

/* Two-column feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split > img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.owners { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-weight: 700; }
.owners span { display: block; font-weight: 400; color: var(--steel); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split > img { min-height: 0; height: auto; aspect-ratio: 4 / 3; } }

/* How a job runs: the frame builds with the steps */
.build { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 88px); }
.build-art { position: sticky; top: calc(var(--header) + 40px); align-self: start; }
.build-art svg { width: 100%; height: auto; overflow: visible; }
/* opacity 0 until drawn: square line caps would otherwise show as dots */
.build-art .draw { fill: none; opacity: 0; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.9s var(--ease), opacity 0.1s; transition-delay: calc(var(--d, 0) * 1s); }
.build-art .wood { stroke: var(--orange); stroke-width: 6; stroke-linecap: square; }
.build-art .wood-thin { stroke: #ffa16a; stroke-width: 4; stroke-linecap: square; }
.build-art .dim { stroke: #6f6f6c; stroke-width: 1.5; }
.build-art .ground { stroke: #3d3d3d; stroke-width: 2; }
.build-art .label { fill: #9a9a97; font: 600 13px var(--font); opacity: 0; transition: opacity 0.6s 0.8s; }
.build-art[data-stage="1"] .s1,
.build-art[data-stage="2"] :is(.s1, .s2),
.build-art[data-stage="3"] :is(.s1, .s2, .s3),
.build-art[data-stage="4"] :is(.s1, .s2, .s3, .s4) { stroke-dashoffset: 0; opacity: 1; }
.stage-name { margin: 18px 0 0; color: #9a9a97; font-size: 0.95rem; }
.stage-name b { color: #fff; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; min-height: 46vh; padding: 28px 0; border-top: 1px solid var(--line-dark); color: #8d8d8a; transition: color 0.4s; }
.steps li:last-child { min-height: 0; }
.steps li::before { content: "Step " counter(step); display: block; margin-bottom: 10px; font-weight: 700; color: var(--orange); }
.steps li.active { color: #fff; }
.steps li p { max-width: 46ch; }
.steps li.active p { color: #c9c9c6; }
@media (max-width: 900px) {
  .build { grid-template-columns: 1fr; }
  .build-art { top: var(--header); z-index: 2; background: var(--asphalt); padding: 16px 16px 8px; margin-inline: -16px; }
  .build-art svg { max-height: 30svh; margin-inline: auto; }
  .stage-name { margin-top: 6px; text-align: center; }
  .steps li { min-height: 40vh; }
}

/* Service area */
.areas { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.counties { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 32px; margin-top: 32px; }
.counties h3 { font-size: 1.15rem; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.counties ul { list-style: none; margin: 0; padding: 0; color: var(--steel); }
.counties li { padding: 3px 0; }
.map { width: 100%; aspect-ratio: 1 / 1; border: 0; filter: grayscale(0.35); background: #ddd; }
@media (max-width: 900px) { .areas { grid-template-columns: 1fr; } .map { aspect-ratio: 4 / 3; } }

/* Estimate band */
.estimate { background: var(--orange); color: #111; padding: clamp(48px, 7vw, 88px) 0; }
.estimate .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.estimate h2 { margin: 0 0 8px; }
.estimate p { margin: 0; font-size: 1.15rem; max-width: 52ch; }
.estimate .alt { display: block; margin-top: 12px; font-weight: 600; }
.estimate .alt a { text-underline-offset: 3px; }

/* Services page rows */
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: 56px 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header) + 8px); }
.svc:first-child { border-top: 0; padding-top: 0; }
.svc:nth-child(even) > img { order: 2; }
.svc > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.svc p { color: var(--steel); }
.ticks { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 14px; height: 3px; background: var(--orange); }
@media (max-width: 860px) { .svc { grid-template-columns: 1fr; } .svc:nth-child(even) > img { order: 0; } }

/* About page */
.facts { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; margin: 0; border-top: 2px solid var(--ink); }
.facts dt, .facts dd { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; padding-right: 16px; }
.facts dd { color: var(--steel); }
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 64px; }
.values div { padding: 26px 0; border-top: 1px solid var(--line); }
.values p { color: var(--steel); margin: 0; }
.pair { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.pair img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 700px) { .values, .pair { grid-template-columns: 1fr; } .facts { grid-template-columns: 1fr; } .facts dt { border-bottom: 0; padding-bottom: 0; } }

/* Contact */
.contact { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 8px; font-weight: 700; }
.field label .req { color: var(--orange-ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 14px; border: 1px solid #bdbcb7; border-radius: 3px; background: #fff;
  color: var(--ink); font: 400 1rem/1.4 var(--font); transition: border-color 0.2s, box-shadow 0.2s;
}
.field select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat; padding-right: 42px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 106, 19, 0.45); }
.field small { display: block; margin-top: 6px; color: var(--steel); }
.hp { position: absolute !important; left: -9999px !important; }
.reach { background: var(--slab); padding: clamp(24px, 4vw, 40px); }
.reach h2 { font-size: 1.8rem; }
.reach dl { margin: 0; }
.reach dt { font-weight: 700; margin-top: 18px; }
.reach dt:first-child { margin-top: 0; }
.reach dd { margin: 4px 0 0; color: var(--steel); }
.reach a { color: var(--orange-ink); font-weight: 600; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 700; font-size: 1.15rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 3px solid var(--orange-ink); border-bottom: 3px solid var(--orange-ink); transform: translateY(-70%) rotate(45deg); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--steel); padding-bottom: 12px; }

/* Footer */
.site-footer { background: var(--asphalt); color: #c9c9c6; padding: 64px 0 32px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 64px; padding-bottom: 40px; border-bottom: 1px solid var(--line-dark); }
.footer-top .logo { color: #fff; margin-bottom: 14px; }
.footer-top p { margin: 0; max-width: 40ch; }
.footer-contact { font-size: 1.05rem; line-height: 1.9; }
.footer-contact a { color: #fff; font-weight: 700; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 28px; list-style: none; margin: 0; padding: 28px 0; }
.footer-nav a { text-decoration: none; font-weight: 600; color: #fff; }
.footer-nav a:hover { color: var(--orange); }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 0.9rem; color: #8d8d8a; }

/* Mobile estimate bar */
.quickbar { display: none; }
@media (max-width: 960px) {
  .quickbar {
    position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr auto; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--asphalt); border-top: 1px solid var(--line-dark);
    transform: translateY(110%); transition: transform 0.4s var(--ease);
  }
  .quickbar.show { transform: none; }
  .site-footer { padding-bottom: 100px; }
}

/* Photo reveal: a bottom-up wipe, like sheathing going on. Only hidden when JS runs. */
@media (prefers-reduced-motion: no-preference) {
  .js .wipe { clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
  .js .wipe.in { clip-path: inset(0 0 0 0); }
}

@keyframes settle { from { transform: scale(1.08); } to { transform: none; } }
@keyframes lift { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .build-art .draw { stroke-dashoffset: 0; transition: none; }
  .build-art .label { opacity: 1; transition: none; }
}
