@import url("https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap");
:root {
  color-scheme: dark;
  --black: #0c0c0c;
  --panel: #181818;
  --paper: #f4f4f4;
  --muted: #c1c1c1;
  --line: #484848;
  --gutter: max(5vw, calc((100vw - 1280px) / 2));
  --display: "Chakra Petch", "Arial Narrow", Impact, sans-serif;
  --label: "IBM Plex Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--black); color: var(--paper); font-family: Arial, sans-serif; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 12px var(--gutter);
  background: #000;
  border-bottom: 1px solid var(--line);
}
.brand-logo { display: block; width: 156px; flex: none; }
.brand-logo img { display: block; width: 100%; height: auto; }
nav, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
nav a, .btn, .textlink, .eyebrow, .num, .gallery-item span, .video-toggle {
  font: 600 0.875rem/1.4 var(--label);
  text-transform: uppercase;
}
nav a, .btn { text-decoration: none; }
nav a:hover, .textlink:hover { text-decoration: underline; text-underline-offset: 5px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 20px;
  background: var(--paper);
  color: #101010;
  border: 1px solid var(--paper);
}
.btn:hover { background: #d0d0d0; text-decoration: none; }
.hero {
  isolation: isolate;
  position: relative;
  display: flex;
  align-items: end;
  min-height: clamp(540px, 76svh, 820px);
  padding: 100px var(--gutter) 120px;
  background: #121212 url("assets/tree-fall-poster.jpg") center / cover no-repeat;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% top;
  filter: saturate(.62);
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, #0b0b0b 1%, #0b0b0b20 88%), linear-gradient(90deg, #000b, transparent 84%);
}
.hero p { color: var(--paper); max-width: 460px; margin-bottom: 24px; }
.video-toggle {
  position: absolute;
  bottom: 24px;
  right: var(--gutter);
  padding: 10px 14px;
  border: 1px solid #999;
  background: #101010;
  color: white;
  cursor: pointer;
}
h1, h2, h3 { font-family: var(--display); text-transform: uppercase; margin: 0; }
h1 { font-size: clamp(2.35rem, 7.2vw, 6.9rem); font-weight: 600; line-height: .9; margin: 18px 0; }
h2 { font-size: clamp(2.4rem, 6vw, 5.5rem); font-weight: 700; line-height: .95; }
h3 { font-size: clamp(1.35rem, 2.8vw, 2rem); line-height: 1.05; }
p { color: var(--muted); font-size: 1rem; line-height: 1.6; }
.section, .contact { padding: clamp(54px, 8vw, 110px) var(--gutter); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 18px 32px; margin-bottom: 32px; }
.section-head p { max-width: 310px; margin: 0; }
.eyebrow { margin-bottom: 12px; letter-spacing: .07em; }
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.service { background: var(--panel); padding: clamp(16px, 2vw, 30px); }
.service p, .steps p { margin-bottom: 0; }
.gallery-section { background: var(--panel); border-block: 1px solid var(--line); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gallery-item { border: 1px solid var(--line); padding: 0; text-align: left; background: var(--black); color: var(--paper); cursor: pointer; overflow: hidden; }
.gallery-item img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-item span { display: block; padding: 10px 12px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 32px; }
.steps article { border-top: 1px solid var(--line); padding-top: 18px; }
.num { display: block; margin-bottom: 12px; color: var(--muted); }
.contact { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 32px; background: var(--paper); color: #111; }
.contact p { color: #444; }
.contact .btn { background: #111; color: white; border-color: #111; }
.contact .btn:hover { background: #333; }
.contact-panel { padding: clamp(16px, 3vw, 36px); border: 1px solid #888; }
.contact-panel ul { padding-left: 20px; line-height: 1.7; }
.phone { display: block; width: fit-content; margin: 20px 0; font: 700 clamp(1.5rem, 5vw, 3rem)/1 var(--display); }
.contact-icon { width: 20px; height: 20px; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
footer { padding: 25px var(--gutter); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: .875rem; color: var(--muted); }
.logo { font: 700 1.5rem/1 var(--display); text-transform: uppercase; color: white; }
dialog { border: 1px solid var(--line); padding: 0; background: var(--black); color: white; width: min(960px, 95vw); max-height: 94vh; }
dialog::backdrop { background: #000e; }
.viewer-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px; }
.viewer-controls { display: flex; gap: 6px; }
.viewer-controls button { background: white; color: black; border: 0; padding: 10px; cursor: pointer; }
.viewer-image { display: block; max-width: 100%; max-height: 78vh; margin: auto; }
@media (min-width: 901px) { .hero-video { object-position: center; } }
@media (max-width: 900px) {
  .services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 650px) {
  header { flex-wrap: wrap; justify-content: center; }
  .brand-logo { width: 125px; }
  nav { justify-content: center; gap: 8px 14px; }
  nav .btn { min-height: 40px; padding: 8px 10px; }
  .hero { min-height: 530px; padding-top: 70px; padding-bottom: 94px; }
  .section-head { display: grid; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps, .contact { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-video, .video-toggle { display: none; }
}
