/* Veteran Fence & Deck. Lumber grade-stamp system.
   All colors live here as tokens. Swap Dan's brand colors in by editing :root only. */
:root {
  --char: #221813;        /* oklch(0.22 0.018 50) charred cedar */
  --char-2: #342923;      /* oklch(0.29 0.02 50) raised dark surface */
  --lime: #efede3;        /* oklch(0.945 0.013 100) Texas limestone, main canvas */
  --lime-2: #e0ddce;      /* oklch(0.895 0.02 95) limestone panel */
  --rule: #c8c4b7;        /* oklch(0.82 0.018 90) hairlines on light */
  --muted: #61564d;       /* oklch(0.46 0.02 60) secondary text on light */
  --on-char: #c5bdb0;     /* oklch(0.80 0.02 80) secondary text on dark */
  --cedar: #d07940;       /* oklch(0.66 0.13 52) fresh-cut cedar, buttons + marks */
  --cedar-deep: #994920;  /* oklch(0.50 0.12 45) cedar text/links on light */
  --focus: #d07940;
  --destructive: #DC2626;

  --display: "Hepta Slab", "Rockwell", "Roboto Slab", Georgia, serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 144px;
  --pad: clamp(20px, 4.5vw, 64px);
  --max: 1320px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);      /* ease-out-expo */
  --ease-q: cubic-bezier(0.25, 1, 0.5, 1);    /* ease-out-quart */
  --callbar: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--lime); color: var(--char);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.6;
  font-variant-numeric: tabular-nums; padding-bottom: var(--callbar);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--cedar-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--char); color: var(--lime); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(2.5rem, 1.4rem + 3.6vw, 4.75rem); line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-weight: 800; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.5rem); line-height: 1.05; letter-spacing: -0.015em; }
h3 { font-weight: 700; font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); line-height: 1.2; }
p { margin: 0 0 var(--s4); max-width: 62ch; }
.lede { font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.3rem); line-height: 1.55; }
.thin { font-weight: 200; }
/* The stamp: small spaced caps, like a mill grade stamp on a board */
.stamp {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cedar-deep);
}
.stamp::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.on-char .stamp, .stamp.light { color: var(--cedar); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border: 2px solid transparent; border-radius: 3px;
  font-family: var(--display); font-weight: 700; font-size: 1.0625rem; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .25s var(--ease-q), color .25s var(--ease-q), border-color .25s var(--ease-q), transform .25s var(--ease-q);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-call { background: var(--cedar); color: var(--char); }
.btn-call:hover { background: #df8a52; }
.btn-call:active { transform: translateY(1px); }
.btn-line { border-color: currentColor; color: var(--char); background: transparent; }
.btn-line:hover { background: var(--char); color: var(--lime); border-color: var(--char); }
.on-char .btn-line { color: var(--lime); }
.on-char .btn-line:hover { background: var(--lime); color: var(--char); border-color: var(--lime); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.tlink { font-family: var(--display); font-weight: 700; color: var(--cedar-deep); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.tlink svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.tlink:hover svg { transform: translateX(4px); }
.on-char .tlink { color: var(--cedar); }

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 40; background: var(--char); color: var(--lime); }
.hdr-in { display: flex; align-items: center; gap: var(--s5); min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--lime); text-decoration: none; margin-right: auto; }
.brand:visited { color: var(--lime); }
.brand svg { width: 38px; height: 46px; flex: none; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: clamp(0.82rem, 3.8vw, 1.05rem); letter-spacing: 0.03em; line-height: 1.08; display: block; }
@media (min-width: 1200px) { .brand-name { white-space: nowrap; } }
.brand-sub { display: block; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-char); margin-top: 4px; }
.nav { display: none; }
.nav a { color: var(--lime); text-decoration: none; font-weight: 600; font-size: 0.9rem; white-space: nowrap; padding: 8px 2px; border-bottom: 2px solid transparent; transition: border-color .25s var(--ease-q), color .25s; }
.nav a:visited { color: var(--lime); }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--cedar); }
.hdr .btn-call { min-height: 46px; padding: 0 16px; font-size: 0.95rem; display: none; white-space: nowrap; }
.menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; background: transparent; color: var(--lime); border: 2px solid var(--char-2); border-radius: 3px; font: 600 0.9375rem var(--body); cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }
.mnav { display: none; background: var(--char); border-top: 1px solid var(--char-2); }
.mnav.is-open { display: block; }
.mnav ul { list-style: none; margin: 0; padding: var(--s3) var(--pad) var(--s5); }
.mnav a { display: block; padding: 14px 0; color: var(--lime); font-family: var(--display); font-weight: 700; font-size: 1.25rem; text-decoration: none; border-bottom: 1px solid var(--char-2); }
.mnav a:visited { color: var(--lime); }
@media (min-width: 1200px) {
  .nav { display: flex; gap: 16px; }
  .hdr .btn-call { display: inline-flex; }
  .menu-btn, .mnav, .mnav.is-open { display: none; }
}

/* ---------- Mobile call bar ---------- */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: 3fr 2fr; background: var(--char); border-top: 1px solid var(--char-2); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 8px; }
.callbar .btn { min-height: 50px; padding: 0 10px; font-size: 1rem; }
.callbar .btn-line { color: var(--lime); }
@media (max-width: 1199px) { :root { --callbar: 70px; } }
@media (min-width: 1200px) { .callbar { display: none; } }

/* ---------- Hero: 70/30 split ---------- */
.hero { display: grid; background: var(--char); color: var(--lime); }
.hero-photo { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--char-2); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 55%; }
.hero-panel { padding: var(--s7) var(--pad) var(--s8); display: flex; flex-direction: column; justify-content: center; gap: var(--s5); }
.hero-panel h1 { color: var(--lime); }
.hero-panel h1 .thin { display: block; }
.hero-panel p { color: var(--on-char); margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.875rem; color: var(--on-char); border-top: 1px solid var(--char-2); padding-top: var(--s4); }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--cedar); }
.caption-tag { position: absolute; left: 12px; bottom: 12px; background: rgb(34 24 19 / .82); color: var(--lime); font-size: 0.75rem; padding: 4px 8px; border-radius: 2px; letter-spacing: 0.02em; }
@media (min-width: 1200px) {
  .hero { grid-template-columns: 7fr 3fr; min-height: clamp(620px, calc(100svh - 72px), 880px); }
  .hero-photo { aspect-ratio: auto; height: auto; }
  .hero-photo img, .phero .hero-photo img { position: absolute; inset: 0; }
  .hero-panel { padding: var(--s8) var(--s7); }
  .hero-panel h1 { font-size: clamp(2.5rem, 0.8rem + 2.5vw, 4rem); }
}

/* Page hero (inner pages): photo strip + title block, 70/30 again */
.phero { display: grid; background: var(--char); color: var(--lime); }
.phero .hero-photo { aspect-ratio: 16 / 9; }
.phero-panel { padding: var(--s7) var(--pad); display: flex; flex-direction: column; justify-content: flex-end; gap: var(--s4); }
.phero-panel p { color: var(--on-char); margin: 0; }
@media (min-width: 1200px) {
  .phero { grid-template-columns: 3fr 7fr; min-height: clamp(480px, 62vh, 620px); }
  .phero .hero-photo { aspect-ratio: auto; height: auto; order: 2; }
  .phero-panel { padding: var(--s8) var(--s7); }
}

/* ---------- Sections ---------- */
.sec { padding: var(--s9) 0; }
.sec-tight { padding: var(--s8) 0; }
.sec-panel { background: var(--lime-2); }
.on-char { background: var(--char); color: var(--lime); }
.on-char p { color: var(--on-char); }
.on-char h2, .on-char h3 { color: var(--lime); }
.sec-head { display: grid; gap: var(--s4); margin-bottom: var(--s7); }
@media (min-width: 900px) {
  .sec-head.split { grid-template-columns: 7fr 5fr; align-items: end; gap: var(--s7); }
  .sec-head.split p { margin: 0; }
}

/* Grade-stamp spec strip */
.spec { border-top: 2px solid var(--char); border-bottom: 1px solid var(--rule); }
.spec ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); }
.spec li { padding: var(--s5) var(--s4) var(--s5) 0; border-bottom: 1px solid var(--rule); }
.spec li:nth-child(odd) { padding-right: var(--s4); }
.spec b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); line-height: 1.1; }
.spec span { font-size: 0.875rem; color: var(--muted); }
@media (min-width: 900px) {
  .spec ul { grid-template-columns: repeat(4, 1fr); }
  .spec li { border-bottom: 0; border-right: 1px solid var(--rule); padding: var(--s6) var(--s5); }
  .spec li:first-child { padding-left: 0; }
  .spec li:last-child { border-right: 0; }
}

/* Fence styles: one big feature + a ruled list (no card grid) */
.styles { display: grid; gap: var(--s7); }
.feature-style { display: grid; gap: var(--s5); }
.feature-style figure { margin: 0; position: relative; }
.feature-style img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.style-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--char); }
.style-list li { border-bottom: 1px solid var(--rule); }
.style-list a { display: grid; grid-template-columns: 96px 1fr auto; gap: var(--s4); align-items: center; padding: var(--s4) 0; text-decoration: none; color: var(--char); }
.style-list a:visited { color: var(--char); }
.style-list img { width: 96px; height: 72px; object-fit: cover; }
.style-list h3 { font-size: 1.25rem; }
.style-list p { margin: 4px 0 0; font-size: 0.9375rem; color: var(--muted); }
.style-list svg { width: 22px; height: 22px; color: var(--cedar-deep); transition: transform .3s var(--ease); }
.style-list a:hover svg { transform: translateX(5px); }
.style-list a:hover h3 { color: var(--cedar-deep); }
@media (min-width: 1000px) {
  .styles { grid-template-columns: 7fr 5fr; align-items: start; }
}

/* Steps: horizontal ruled timeline on desktop */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 0; }
.steps li { counter-increment: s; padding: var(--s5) 0; border-top: 1px solid var(--char-2); display: grid; grid-template-columns: 64px 1fr; gap: var(--s4); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--display); font-weight: 200; font-size: 2.5rem; line-height: 1; color: var(--cedar); }
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; }
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: var(--s6); }
  .steps li { grid-template-columns: 1fr; border-top: 2px solid var(--cedar); padding-top: var(--s5); }
}

/* Built to last: asymmetric photo + detail column */
.last { display: grid; gap: var(--s6); }
.last-photos { display: grid; grid-template-columns: 3fr 2fr; gap: var(--s3); }
.last-photos figure { margin: 0; }
.last-photos img { width: 100%; height: 100%; object-fit: cover; }
.last-photos figure:first-child { grid-row: span 2; }
.last-photos figure:first-child img { aspect-ratio: 4 / 5; }
.last-photos figure:not(:first-child) img { aspect-ratio: 1 / 1; }
.points { list-style: none; margin: 0; padding: 0; }
.points li { padding: var(--s4) 0 var(--s4) 34px; border-bottom: 1px solid var(--rule); position: relative; }
.points li svg { position: absolute; left: 0; top: 19px; width: 22px; height: 22px; color: var(--cedar-deep); }
.points b { font-family: var(--display); font-weight: 700; display: block; font-size: 1.125rem; }
.points span { color: var(--muted); font-size: 0.9375rem; }
.on-char .points li { border-color: var(--char-2); }
.on-char .points span { color: var(--on-char); }
.on-char .points li svg { color: var(--cedar); }
@media (min-width: 1000px) { .last { grid-template-columns: 6fr 5fr; gap: var(--s8); align-items: center; } }

/* Gallery teaser: staggered mosaic */
.mosaic { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
.mosaic a { display: block; overflow: hidden; position: relative; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; transition: transform .9s var(--ease); }
.mosaic a:hover img { transform: scale(1.04); }
@media (min-width: 900px) {
  .mosaic { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 150px; }
  .mosaic img { aspect-ratio: auto; }
  .mosaic a:nth-child(1) { grid-column: span 3; grid-row: span 3; }
  .mosaic a:nth-child(2) { grid-column: span 3; grid-row: span 2; }
  .mosaic a:nth-child(3) { grid-column: span 2; grid-row: span 2; }
  .mosaic a:nth-child(4) { grid-column: span 1; grid-row: span 2; }
  .mosaic a:nth-child(5) { grid-column: span 2; grid-row: span 2; }
  .mosaic a:nth-child(6) { grid-column: span 4; grid-row: span 2; }
}

/* Areas: town list as a ruled index */
.areas { display: grid; gap: var(--s6); }
.towns { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: var(--s5); }
.towns li { break-inside: avoid; padding: 12px 0; border-bottom: 1px solid var(--rule); font-family: var(--display); font-weight: 700; font-size: 1.25rem; display: flex; gap: 10px; align-items: baseline; }
.towns li small { font-family: var(--body); font-weight: 500; font-size: 0.8125rem; color: var(--muted); }
@media (min-width: 1000px) { .areas { grid-template-columns: 5fr 7fr; gap: var(--s8); } .towns { columns: 2; } }

/* FAQ */
.faq { border-top: 2px solid var(--char); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: var(--s5) 44px var(--s5) 0; position: relative; font-family: var(--display); font-weight: 700; font-size: 1.1875rem; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; border-right: 2px solid var(--cedar-deep); border-bottom: 2px solid var(--cedar-deep); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq .ans { padding: 0 0 var(--s5); }
.faq .ans p { margin: 0; }
@media (min-width: 1000px) { .faq-wrap { display: grid; grid-template-columns: 4fr 8fr; gap: var(--s8); } }

/* Call band */
.band { background: var(--char); color: var(--lime); padding: var(--s9) 0; position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .06; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.band-in { display: grid; gap: var(--s6); position: relative; z-index: 1; }
.band h2 { color: var(--lime); }
.band .big-phone { white-space: nowrap; font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 1rem + 3.4vw, 3.9rem); line-height: 1; color: var(--cedar); text-decoration: none; letter-spacing: -0.01em; }
.band .big-phone:visited { color: var(--cedar); }
.band .big-phone:hover { color: #df8a52; }
.band p { color: var(--on-char); }
@media (min-width: 1000px) { .band-in { grid-template-columns: 7fr 5fr; align-items: end; } }

/* ---------- Service pages ---------- */
.prose h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.6rem); margin: 0 0 var(--s4); }
.prose h3 { margin: var(--s6) 0 var(--s3); }
.prose ul { padding-left: 1.2em; margin: 0 0 var(--s4); max-width: 62ch; }
.prose li { margin-bottom: 8px; }
.two { display: grid; gap: var(--s7); }
@media (min-width: 1000px) { .two { grid-template-columns: 7fr 5fr; gap: var(--s8); } .two.flip { grid-template-columns: 5fr 7fr; } }
.photo-col { display: grid; gap: var(--s3); align-content: start; }
.photo-col figure { margin: 0; position: relative; }
.photo-col img { width: 100%; object-fit: cover; }
.opt-table { width: 100%; border-collapse: collapse; margin: var(--s4) 0 var(--s5); font-size: 0.9375rem; }
.opt-table th, .opt-table td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.opt-table th { font-family: var(--display); font-weight: 700; width: 34%; }
.pair { display: grid; grid-template-columns: 1fr; gap: var(--s3); }
.pair figure { margin: 0; position: relative; }
.pair img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.pair figcaption { position: absolute; left: 0; top: 0; background: var(--char); color: var(--lime); font-family: var(--display); font-weight: 700; font-size: 0.8125rem; letter-spacing: .14em; text-transform: uppercase; padding: 6px 12px; }
@media (min-width: 760px) { .pair { grid-template-columns: 1fr 1fr; } }
.more { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 2px solid var(--char); }
.more a { display: flex; justify-content: space-between; align-items: center; padding: var(--s4) 0; border-bottom: 1px solid var(--rule); font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--char); text-decoration: none; }
.more a:visited { color: var(--char); }
.more a:hover { color: var(--cedar-deep); }
.more svg { width: 22px; height: 22px; color: var(--cedar-deep); }
@media (min-width: 900px) { .more { grid-template-columns: repeat(2, 1fr); column-gap: var(--s7); } }

/* ---------- Gallery (signature: filter by style) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s6); }
.filters button {
  min-height: 44px; padding: 0 16px; border-radius: 3px; border: 2px solid var(--char);
  background: transparent; color: var(--char); font: 700 0.9375rem var(--display); cursor: pointer;
  transition: background-color .25s var(--ease-q), color .25s var(--ease-q);
}
.filters button:hover { background: var(--lime-2); }
.filters button[aria-pressed="true"] { background: var(--char); color: var(--lime); }
.filters button .n { font-family: var(--body); font-weight: 500; font-size: 0.8125rem; opacity: .7; margin-left: 4px; }
.gal-status { font-size: 0.875rem; color: var(--muted); margin: -12px 0 var(--s5); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
.gallery .g { margin: 0; position: relative; overflow: hidden; background: var(--lime-2); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.gallery .g[hidden] { display: none; }
.gallery .g.is-in { animation: gin .6s var(--ease) both; }
@keyframes gin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.gallery button { all: unset; display: block; cursor: zoom-in; width: 100%; height: 100%; }
.gallery button:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .9s var(--ease); }
.gallery .tall img { aspect-ratio: 4 / 5; }
.gallery .g:hover img { transform: scale(1.035); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; background: linear-gradient(to top, rgb(34 24 19 / .85), rgb(34 24 19 / 0)); color: var(--lime); font-size: 0.8125rem; line-height: 1.35; pointer-events: none; }
.gallery figcaption b { display: block; font-family: var(--display); font-size: 0.9375rem; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) {
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; }
  .gallery .wide { grid-column: span 2; }
  .gallery .wide img { aspect-ratio: 8 / 5; }
  .gallery .tall { grid-row: span 2; }
  .gallery .tall img { aspect-ratio: auto; height: 100%; }
}
.lightbox { border: 0; padding: 0; max-width: min(1400px, 96vw); width: 100%; background: transparent; color: var(--lime); }
.lightbox::backdrop { background: rgb(22 15 11 / .92); }
.lightbox[open] { animation: lb .45s var(--ease); }
@keyframes lb { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
.lb-img { width: 100%; max-height: 80vh; object-fit: contain; background: var(--char); }
.lb-bar { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.lb-cap { margin-right: auto; font-size: 0.9375rem; }
.lb-cap b { font-family: var(--display); display: block; }
.lb-bar button { min-width: 48px; min-height: 48px; border: 2px solid var(--char-2); background: var(--char); color: var(--lime); border-radius: 3px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lb-bar button:hover { border-color: var(--cedar); }
.lb-bar svg { width: 22px; height: 22px; }

/* ---------- Form ---------- */
.form { display: grid; gap: var(--s5); max-width: 720px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-family: var(--display); font-weight: 700; font-size: 1rem; }
.field .hint { font-size: 0.875rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 2px solid var(--char); border-radius: 3px;
  background: #f8f7f1; color: var(--char); font: 400 1rem var(--body);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.field input:user-invalid, .field select:user-invalid { border-color: var(--destructive); }
.row2 { display: grid; gap: var(--s5); }
@media (min-width: 700px) { .row2 { grid-template-columns: 1fr 1fr; } }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 4px; }
.choices label { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border: 2px solid var(--rule); border-radius: 3px; font: 600 0.9375rem var(--body); cursor: pointer; background: #f8f7f1; transition: border-color .2s; }
.choices label:hover { border-color: var(--char); }
.choices input { width: 20px; height: 20px; min-height: 0; accent-color: var(--cedar-deep); margin: 0; }
.choices label:has(input:checked) { border-color: var(--cedar-deep); background: #f5e6d9; }
.form-preview-note { padding: var(--s4); border: 2px solid var(--char); background: var(--lime-2); margin: 0; max-width: none; }
.form-preview-note.is-ok { border-color: var(--cedar-deep); }
.side-card { background: var(--char); color: var(--lime); padding: var(--s6); }
.side-card p { color: var(--on-char); }

/* ---------- Footer ---------- */
.ftr { background: var(--char); color: var(--on-char); padding: var(--s8) 0 var(--s6); border-top: 1px solid var(--char-2); font-size: 0.9375rem; }
.ftr a { color: var(--lime); text-decoration: none; }
.ftr a:visited { color: var(--lime); }
.ftr a:hover { color: var(--cedar); }
.ftr-grid { display: grid; gap: var(--s6); }
.ftr h2 { font-size: 0.8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cedar); margin-bottom: var(--s3); font-weight: 600; }
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li { padding: 4px 0; }
.ftr .fine { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--char-2); display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 0.8125rem; }
.ftr .fine p { margin: 0; max-width: none; }
@media (min-width: 900px) { .ftr-grid { grid-template-columns: 4fr 2fr 2fr 3fr; } }

/* Pending content (filled when Dan confirms) */
[data-email-pending] { font-style: normal; }

/* ---------- Motion: calm and slow, one moment per view ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-photo img.settle { animation: settle 2.2s var(--ease) both; }
  @keyframes settle { from { transform: scale(1.07); } to { transform: none; } }
  .hero-panel > * { animation: rise .9s var(--ease) both; }
  .hero-panel > *:nth-child(2) { animation-delay: .08s; }
  .hero-panel > *:nth-child(3) { animation-delay: .16s; }
  .hero-panel > *:nth-child(4) { animation-delay: .24s; }
  .hero-panel > *:nth-child(5) { animation-delay: .32s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .js .reveal { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease); }
  .js .reveal.is-shown { clip-path: inset(0 0 0 0); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Legal + 404 */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.5rem; margin: var(--s6) 0 var(--s3); }
.nf { min-height: 60vh; display: grid; align-content: center; gap: var(--s5); }


/* ---------- Gallery v2: sections by kind of work, a few photos per style, lightbox for the rest ---------- */
.gnav { position: sticky; top: 72px; z-index: 30; background: var(--lime); border-bottom: 1px solid var(--rule); }
.gnav-in { display: flex; gap: 8px; overflow-x: auto; max-width: var(--max); margin: 0 auto; padding: 12px var(--pad); scrollbar-width: none; scroll-snap-type: x proximity; }
.gnav-in::-webkit-scrollbar { display: none; }
.gnav a { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 2px solid var(--char); border-radius: 3px; background: transparent; color: var(--char); font-family: var(--display); font-weight: 700; font-size: 0.9375rem; text-decoration: none; white-space: nowrap; scroll-snap-align: start; transition: background-color .25s var(--ease-q), color .25s var(--ease-q); }
.gnav a:visited { color: var(--char); }
.gnav a:hover { background: var(--lime-2); }
.gnav a[aria-current="true"] { background: var(--char); color: var(--lime); }
.gnav a .n { font-family: var(--body); font-weight: 500; font-size: 0.8125rem; opacity: .7; }
.ggroup { padding: var(--s9) 0 var(--s7); scroll-margin-top: 150px; }
.ggroup:nth-of-type(even) { background: var(--lime-2); }
.ggroup-head { display: grid; gap: var(--s3); margin-bottom: var(--s7); max-width: 62ch; }
.ggroup-head h2 { margin: 0; }
.ggroup-head p { margin: 0; }
.gstyle { display: grid; gap: var(--s5); padding: var(--s7) 0; border-top: 1px solid var(--rule); }
.gstyle-copy h3 { margin: 0 0 var(--s2); }
.gstyle-copy p { margin: 0 0 var(--s3); color: var(--muted); font-size: 1rem; }
.gstyle-copy .gcount { font-family: var(--display); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cedar-deep); }
.gviewall { margin-top: var(--s4); }
.gviewall button { all: unset; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; min-height: 44px; font-family: var(--display); font-weight: 700; color: var(--cedar-deep); }
.gviewall button:hover { text-decoration: underline; }
.gviewall button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.gviewall svg { width: 18px; height: 18px; }
.gtiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s2); }
.gt { margin: 0; position: relative; overflow: hidden; background: var(--lime-2); }
.gt[hidden] { display: none; }
.gt button { all: unset; display: block; cursor: zoom-in; width: 100%; height: 100%; position: relative; }
.gt button:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.gt img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .9s var(--ease); }
.gt:hover img { transform: scale(1.04); }
.gt-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(34 24 19 / .62); color: var(--lime); font-family: var(--display); font-weight: 800; font-size: 1.25rem; }
.gt-5 .feat, .gt-3 .feat { grid-column: 1 / -1; }
.gt-5 .feat img, .gt-3 .feat img { aspect-ratio: 4 / 3; }
.gt-1 { grid-template-columns: 1fr; }
@media (min-width: 1000px) {
  .gstyle { grid-template-columns: 4fr 8fr; gap: var(--s7); }
  .gstyle-copy { position: sticky; top: 150px; align-self: start; }
  .gt-5 { grid-template-columns: repeat(4, 1fr); }
  .gt-5 .feat { grid-column: span 2; grid-row: span 2; }
  .gt-5 .feat img { aspect-ratio: auto; }
  .gt-3 { grid-template-columns: repeat(3, 1fr); }
  .gt-3 .feat { grid-column: span 2; grid-row: span 2; }
  .gt-3 .feat img { aspect-ratio: auto; }
  .gt-4 { grid-template-columns: repeat(4, 1fr); }
  .gt-2 { grid-template-columns: repeat(2, 1fr); }
  .gt-1 { grid-template-columns: 1fr; max-width: 60%; }
}
@media (max-width: 999px) { .gnav { top: 72px; } .ggroup { padding-top: var(--s8); } }
@media (prefers-reduced-motion: reduce) { .gt img { transition: none; } }
.lb-count { opacity: .7; font-size: 0.8125rem; margin-top: 2px; display: block; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* small source photos stay at natural size in the viewer instead of stretching */
.lb-img { width: auto; max-width: 100%; margin: 0 auto; }
