:root {
  --ink: #101010;
  --char: #1a1a1a;
  --paper: #f3eee6;
  --cream: #faf7f2;
  --gold: #c4a05a;
  --gold-deep: #9a7840;
  --muted: #6d665c;
  --line: rgba(16, 16, 16, 0.12);
  --white: #fff;
  --shadow: 0 24px 60px rgba(16, 16, 16, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Source Sans 3", system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.eyebrow {
  display: inline-block;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-deep);
  margin-bottom: 18px;
}
h1, h2, h3, .display {
  font-family: "Barlow Condensed", Impact, sans-serif;
  letter-spacing: -0.01em;
  line-height: 0.88;
  font-weight: 800;
  text-transform: uppercase;
}
h2 { font-size: clamp(2.8rem, 6vw, 5.2rem); margin: 0 0 40px; }
p.lead { font-size: 1.15rem; color: var(--muted); max-width: 58ch; margin: 0 0 8px; line-height: 1.65; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 2px solid #111;
  cursor: pointer;
  padding: 14px 26px;
  background: #fff;
  color: #111;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  border-radius: 4px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { background: #111; color: #fff; }
.btn.ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid #fff;
}
.btn.ghost:hover { background: #fff; color: #111; }
.btn.dark { background: #111; color: #fff; border-color: #111; }
.btn.dark:hover { background: #fff; color: #111; }

/* Header */
header {
  position: sticky; top: 0; z-index: 40;
  background: #000;
  color: var(--white);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 20px;
}
.brand {
  display: flex; align-items: center; gap: 10px; color: var(--white);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 1.15rem;
}
.brand img { height: 42px; width: 42px; object-fit: contain; border-radius: 2px; }
.nav-links { display: flex; gap: 22px; align-items: center; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
.nav-links a { opacity: 0.78; }
.nav-links a:hover { opacity: 1; }
.menu-btn {
  display: none; background: none; border: 0; color: white; font-size: 1.4rem; cursor: pointer;
}

/* Hero */
.hero {
  position: relative; min-height: 100vh;
  display: grid; place-items: end start;
  color: white; overflow: hidden;
}
.hero img.bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 70% 40%; filter: brightness(0.48);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.78) 100%);
}
.hero-copy { position: relative; z-index: 2; padding: 0 0 88px; width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.hero h1 { font-size: clamp(3.8rem, 11vw, 8.4rem); max-width: 10ch; margin: 8px 0 18px; font-style: italic; }
.hero p { max-width: 46ch; font-size: 1.15rem; color: rgba(255,255,255,0.86); margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 36px; display: flex; gap: 28px; flex-wrap: wrap;
  font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold);
}

/* Sections */
section { padding: 88px 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.panel { background: var(--paper); padding: 28px; }
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.stat { border-top: 2px solid var(--gold); padding-top: 12px; }
.stat b { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 2rem; }
.stat span { color: var(--muted); font-size: 0.9rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.card {
  background: white; border: 1px solid var(--line); padding: 26px;
}
.card h3 { font-size: 1.8rem; margin: 10px 0 10px; }
.card p { color: var(--muted); }
.num { color: var(--gold-deep); letter-spacing: 0.16em; font-size: 0.78rem; font-weight: 700; }

.gallery { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; margin-top: 32px; }
.gallery .stack { display: grid; gap: 14px; }
.gallery figure { position: relative; overflow: hidden; background: #111; }
.gallery img { width: 100%; height: 100%; object-fit: cover; min-height: 240px; }
.gallery figcaption {
  position: absolute; left: 16px; bottom: 14px;
  color: white; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700;
}

.process { background: var(--ink); color: var(--paper); }
.process ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; list-style: none; }
.process li { border-top: 1px solid rgba(196,160,90,0.4); padding-top: 16px; }
.process strong { display: block; font-size: 1.4rem; font-family: "Barlow Condensed", sans-serif; margin: 8px 0; }

.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; }
form { display: grid; gap: 12px; }
label { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }
input, select, textarea {
  width: 100%; border: 1px solid var(--line); background: white; padding: 12px 14px;
}
textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.note { font-size: 0.9rem; color: var(--muted); margin-top: 8px; }
.success { display: none; background: #e8f3e4; padding: 14px; border-left: 4px solid #3d7a3a; }
.estimate {
  background: var(--ink);
  color: var(--paper);
  padding: 28px;
}
.estimate h3 { font-size: 2rem; margin-bottom: 10px; }
.est-range {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--gold);
  line-height: 1;
  margin: 8px 0;
}
.est-mid { color: rgba(243,238,230,0.75); margin-bottom: 18px; }
.est-list { list-style: none; display: grid; gap: 10px; margin: 16px 0; }
.est-list li { border-top: 1px solid rgba(196,160,90,0.28); padding-top: 10px; color: #ddd6ca; }
.est-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.est-split div { background: rgba(255,255,255,0.04); padding: 12px; }
.est-split b { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 1.6rem; }

footer {
  background: #0b0b0b; color: #cfc8bc; padding: 40px 0 28px;
}
.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: end; }
.foot small { display: block; margin-top: 8px; opacity: 0.7; }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav-links {
    display: none; position: absolute; top: 78px; left: 0; right: 0;
    background: #111; flex-direction: column; padding: 20px; gap: 16px;
  }
  .nav-links.open { display: flex; }
  .split, .cards, .process ol, .contact-grid, .gallery, .form-row, .stat-row {
    grid-template-columns: 1fr;
  }
  .hero { min-height: 78vh; }
  section { padding: 64px 0; }
}

/* --- Oct 2026 updates --- */
.hero img.bg { object-position: 40% 35%; filter: brightness(0.55); }
.wide-shot { position: relative; overflow: hidden; background: #111; margin-top: 14px; }
.wide-shot img { width: 100%; max-height: 520px; object-fit: cover; }
.wide-shot figcaption {
  position: absolute; left: 16px; bottom: 14px;
  color: white; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}
.gallery figcaption { text-shadow: 0 1px 6px rgba(0,0,0,0.6); }
.about-photo { width: 100%; max-height: 640px; object-fit: cover; object-position: 50% 30%; }
.license { margin-top: 18px; font-size: 0.85rem; color: var(--muted); letter-spacing: 0.02em; }
.unit-tag { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--muted); }
.field-help { display: block; margin-top: 6px; font-size: 0.82rem; color: var(--muted); }

/* Hide the "Powered by Netlify" badge Netlify injects on free-plan sites.
   Permanent fix: Netlify > Project configuration > General > Powered by Netlify badge > Off. */
#nl-badge-frame,
iframe[title="Powered by Netlify"],
#netlify-badge,
.netlify-badge,
[data-netlify-badge] { display: none !important; visibility: hidden !important; }
@media (min-width: 861px) {
  .gallery { height: 560px; }
  .gallery .stack { grid-template-rows: 1fr 1fr; min-height: 0; }
  .gallery figure { min-height: 0; }
  .gallery img { min-height: 0; }
}

/* Extra breathing room: headline -> subtext */
section h2 + p.lead, section h2 + p { margin-top: 0 !important; }
#about h2 { margin-bottom: 32px; }
.process h2 { margin-bottom: 40px; }

.gallery video { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 240px; }
@media (min-width: 861px) { .gallery video { min-height: 0; } }
@media (max-width: 860px) { .gallery video { max-height: 560px; } }

/* Photos of Jeb on crews (About) */
.crew-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 48px; }
.crew-photos figure { position: relative; overflow: hidden; background: #111; }
.crew-photos img { width: 100%; height: 520px; object-fit: cover; object-position: 50% 30%; }
.crew-photos figcaption { position: absolute; left: 16px; bottom: 14px; color: #fff; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; text-shadow: 0 1px 6px rgba(0,0,0,0.7); }
@media (max-width: 860px) { .crew-photos { grid-template-columns: 1fr; } .crew-photos img { height: 420px; } }

@media (min-width: 861px) { .gallery .stack { grid-template-rows: 1fr; } }
.gallery video::-webkit-media-controls { display: none !important; }

/* About photo slider */
.about-slider { position: relative; overflow: hidden; background: #111; }
.about-slider .slides { position: relative; height: 640px; }
.about-slider .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.45s ease; }
.about-slider .slide.active { opacity: 1; }
.about-slider img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.about-slider figcaption { position: absolute; left: 16px; bottom: 40px; color: #fff; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; text-shadow: 0 1px 6px rgba(0,0,0,0.7); }
.slide-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(0,0,0,0.55); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; z-index: 2; }
.slide-btn:hover { background: rgba(0,0,0,0.8); }
.slide-btn.prev { left: 12px; } .slide-btn.next { right: 12px; }
.slide-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.slide-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.45); }
.slide-dots span.on { background: var(--gold); }
@media (max-width: 860px) { .about-slider .slides { height: 460px; } }

/* Gallery fade slider */
.gallery figure.fade-slider { position: relative; }
.fade-slider .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.6s ease; min-height: 0; }
.fade-slider .slide.active { opacity: 1; }
.fade-slider figcaption { z-index: 2; }
@media (max-width: 860px) { .gallery figure.fade-slider { height: 320px; } }

/* Two-tile gallery: fence video + siding slider, equal and balanced */
@media (min-width: 861px) {
  .gallery { grid-template-columns: 1fr 1fr; height: 600px; }
}

/* Stacked full-width gallery: video on top, siding slider below */
.gallery { grid-template-columns: 1fr !important; height: auto !important; gap: 16px; }
.gallery .stack { display: block; }
.gallery > figure, .gallery .stack > figure { height: 640px; }
.gallery video, .gallery img { height: 100%; min-height: 0; object-fit: cover; object-position: 50% 50%; }
@media (max-width: 860px) {
  .gallery > figure, .gallery .stack > figure { height: 460px; }
}

/* --- Mobile polish (phones) --- */
@media (max-width: 860px) {
  html { scroll-padding-top: 72px; }
  .nav-links { top: 100%; padding: 8px 20px 20px; gap: 0; border-top: 1px solid rgba(196,160,90,0.25); box-shadow: 0 18px 30px rgba(0,0,0,0.35); }
  .nav-links a { display: block; width: 100%; text-align: center; padding: 14px 0; opacity: 0.9; }
  .nav-links a.btn { margin-top: 10px; justify-content: center; }
  .menu-btn { width: 44px; height: 44px; display: grid; place-items: center; margin-right: -8px; }
  /* About now has two stats: keep them side by side */
  .stat-row { grid-template-columns: 1fr 1fr; }
  /* Work tiles: show more of each landscape photo instead of a tall narrow crop */
  .gallery > figure, .gallery .stack > figure, .gallery figure.fade-slider { height: auto; aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 64px; }
  .wrap, .hero-copy { width: calc(100% - 36px); }
  .nav { min-height: 64px; }
  .brand { font-size: 1.05rem; }
  .brand img { height: 36px; width: 36px; }
  section { padding: 60px 0; }
  h2 { font-size: clamp(2.3rem, 10.5vw, 2.8rem); line-height: 0.92; }
  p.lead { font-size: 1.08rem; }

  /* Hero */
  .hero { min-height: calc(100svh - 64px); }
  .hero-copy { padding: 48px 0 56px; }
  .hero h1 { font-size: clamp(3rem, 14.5vw, 3.6rem); line-height: 0.9; max-width: none; margin: 6px 0 18px; }
  .hero p { font-size: 1.05rem; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions .btn { width: 100%; justify-content: center; min-height: 52px; }
  .hero-meta { margin-top: 28px; flex-direction: column; gap: 8px; font-size: 0.74rem; }

  /* Services */
  .cards { gap: 12px; margin-top: 28px; }
  .card { padding: 20px 20px 22px; }
  .card h3 { font-size: 1.65rem; margin: 6px 0 8px; }

  /* Work */
  .gallery { gap: 12px; margin-top: 28px; }
  .gallery figcaption { left: 12px; right: 12px; bottom: 12px; font-size: 0.68rem; letter-spacing: 0.1em; line-height: 1.35; }

  /* Process */
  .process ol { gap: 20px; margin-top: 32px; }

  /* About */
  .split { gap: 36px; }
  .about-slider .slides { height: auto; aspect-ratio: 3 / 4; max-height: 520px; }
  .stat b { font-size: 1.8rem; }

  /* Contact + form */
  #contact a[href^="tel"], #contact a[href^="mailto"] { display: inline-block; padding: 10px 0; }
  #contact a[href^="mailto"] { overflow-wrap: anywhere; }
  .contact-grid { gap: 28px; }
  form { gap: 16px; }
  .form-row { gap: 16px; }
  label { display: block; margin-bottom: 6px; }
  input, select, textarea { font-size: 16px; padding: 13px 14px; min-height: 50px; border-radius: 4px; }
  textarea { min-height: 150px; }
  form .btn { width: 100%; justify-content: center; min-height: 54px; font-size: 0.85rem; }
  .estimate { padding: 24px 20px; }
  .est-split { gap: 10px; }
  .est-split b { font-size: 1.4rem; }

  /* Footer */
  .foot { flex-direction: column; align-items: flex-start; gap: 24px; }
  .foot a { display: inline-block; padding: 10px 0; }
}

/* About stats cleanup */
.stat-row { gap: 24px; margin-top: 32px; }
.stat { padding-top: 14px; }
.stat b { line-height: 1; margin-bottom: 6px; }
.stat span { display: block; line-height: 1.35; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; }
.license { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; padding: 8px 14px; border: 1px solid rgba(0,0,0,0.15); border-radius: 999px; font-size: 0.8rem; line-height: 1.2; letter-spacing: 0.06em; text-transform: uppercase; }
.license span { color: var(--gold); font-weight: 600; }
