/* =========================================================
   K&M Woodworkers — styles
   Colors are the original km-woodworkers.com palette.
   ========================================================= */

:root {
  --red: #A50F24;      /* buttons, logo badge (original menu red) */
  --rust: #993300;     /* links, headings (original link color) */
  --brown: #5E331B;    /* wood band */
  --charcoal: #333333; /* frame, header, footer, text */
  --ink: #222222;
  --muted: #555555;
  --gray: #EFEFEF;
  --line: #DDDDDD;
  --peach: #FFD9C7;
  --sand: #EADDD3;
  --white: #FFFFFF;

  --slab: 'Zilla Slab', Georgia, serif;
  --serif: 'Source Serif 4', Georgia, serif;
  --hand: 'Kalam', cursive;

  --container: 1240px;
  --gutter: 24px;
  --header-h: 80px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--rust); }
a:hover { color: var(--brown); }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
section[id] { scroll-margin-top: var(--header-h); }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 3px;
}
.skip-link:focus { top: 12px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }

/* ---------- type helpers ---------- */
.h-xl {
  font-family: var(--slab); font-weight: 700;
  font-size: clamp(36px, 4.4vw, 60px); line-height: 1; letter-spacing: -0.015em;
  color: var(--charcoal);
}
.h-lg {
  font-family: var(--slab); font-weight: 700;
  font-size: clamp(36px, 4vw, 52px); line-height: 1; letter-spacing: -0.015em;
  color: var(--charcoal); margin-bottom: 12px;
}
.h-giant {
  font-family: var(--slab); font-weight: 700;
  font-size: clamp(56px, 7vw, 104px); line-height: .92; letter-spacing: -0.025em;
  color: var(--red); margin-bottom: 24px;
}
.pencil { font-family: var(--hand); }
.pencil-red { color: var(--red); }
.pencil-peach { color: var(--peach); }
.tilt { transform: rotate(-2deg); transform-origin: left; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: var(--white); text-decoration: none;
  border: 0; border-radius: 3px; cursor: pointer;
  font-family: var(--serif); font-weight: 600;
}
.btn:hover { color: var(--white); background: #8C0D1F; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 17px; }
.btn-sm svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-lg { min-height: 54px; padding: 0 28px; font-family: var(--slab); font-size: 21px; }
.btn-shadow { box-shadow: 4px 4px 0 var(--charcoal); }
.btn-shadow-black { box-shadow: 4px 4px 0 #000; }

.icon-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 3px; cursor: pointer; padding: 0;
}
.icon-btn svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn-red { background: var(--red); color: var(--white); border: 2px solid var(--charcoal); }
.icon-btn-light { background: var(--white); color: var(--charcoal); border: 2px solid var(--charcoal); }
.icon-btn-outline { width: 52px; height: 52px; background: var(--white); color: var(--charcoal); border: 2px solid var(--charcoal); }
.icon-btn-lg { width: 52px; height: 52px; border-color: var(--red); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--charcoal); color: var(--white);
  box-shadow: 0 2px 0 rgba(0,0,0,.25);
}
.header-row {
  max-width: var(--container); margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 12px 32px;
}
.logo { display: flex; align-items: center; gap: 14px; color: var(--white); text-decoration: none; }
.logo:hover { color: var(--white); }
.logo-badge {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 14px; background: var(--red); color: var(--white);
  font-family: var(--slab); font-weight: 700; font-size: 22px; letter-spacing: .01em; border-radius: 3px;
}
.logo-badge-sm { height: 44px; padding: 0 12px; font-size: 18px; }
.logo-word { font-family: var(--slab); font-weight: 600; font-size: 24px; letter-spacing: .01em; white-space: nowrap; }

.nav-desktop { flex: 1 1 auto; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 4px 28px; font-size: 17px; }
.nav-desktop a { color: var(--white); text-decoration: none; padding: 10px 0; }
.nav-desktop a:hover { color: var(--peach); }

.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.header-phone { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.header-hours { font-size: 13px; line-height: 1.2; color: #CCCCCC; white-space: nowrap; }

.mobile-only { display: none; }

.menu-btn {
  align-items: center; gap: 12px; height: 48px; padding: 0 16px 0 14px;
  background: transparent; color: var(--white); border: 2px solid var(--white); border-radius: 3px;
  cursor: pointer; font-family: var(--slab); font-weight: 600; font-size: 18px;
}
.burger { position: relative; display: block; width: 22px; height: 16px; }
.burger span {
  position: absolute; left: 0; width: 22px; height: 2px; background: var(--white); border-radius: 2px;
  transition: transform .3s var(--ease-io), opacity .2s ease;
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 7px; }
.burger span:nth-child(3) { top: 14px; }
.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile dropdown */
.menu-backdrop {
  position: fixed; inset: 0; z-index: -1;
  background: rgba(20,20,20,.55); opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
.menu-open .menu-backdrop { opacity: 1; pointer-events: auto; }

.mobile-menu {
  position: absolute; top: 100%; left: 0; right: 0;
  background-color: #2A2A2A;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 24px 24px;
  border-bottom: 4px solid var(--red);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  max-height: calc(100vh - 70px); max-height: calc(100dvh - 70px); overflow-y: auto;
  transition: clip-path .45s var(--ease-io), visibility .45s;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; }
.mobile-menu-inner { padding: 32px var(--gutter) 40px; display: flex; flex-direction: column; gap: 36px; }

.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li {
  border-bottom: 1px solid rgba(255,255,255,.14);
  opacity: 0; transform: translateY(-14px);
  transition: opacity .4s ease, transform .5s var(--ease-out);
}
.menu-open .menu-list li { opacity: 1; transform: none; }
.menu-open .menu-list li:nth-child(1) { transition-delay: 120ms; }
.menu-open .menu-list li:nth-child(2) { transition-delay: 180ms; }
.menu-open .menu-list li:nth-child(3) { transition-delay: 240ms; }
.menu-open .menu-list li:nth-child(4) { transition-delay: 300ms; }
.menu-open .menu-list li:nth-child(5) { transition-delay: 360ms; }
.menu-open .menu-list li:nth-child(6) { transition-delay: 420ms; }
.menu-list a {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 0;
  color: var(--white); text-decoration: none;
}
.menu-label {
  align-self: flex-start;
  font-family: var(--slab); font-weight: 700; font-size: 34px; line-height: 1.05; letter-spacing: -.015em;
  background-image: linear-gradient(var(--red), var(--red));
  background-size: 0% 4px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .3s var(--ease-io);
}
.menu-list a:hover .menu-label, .menu-list a:focus-visible .menu-label { background-size: 100% 4px; }
.menu-note { font-family: var(--hand); font-size: 19px; line-height: 1.3; color: var(--peach); }

.menu-info {
  display: flex; flex-direction: column; gap: 16px;
  opacity: 0; transform: translateY(-14px);
  transition: opacity .4s ease, transform .5s var(--ease-out);
}
.menu-open .menu-info { opacity: 1; transform: none; transition-delay: 300ms; }
.menu-info .pencil { font-size: 22px; }
.menu-phone { font-family: var(--slab); font-weight: 700; font-size: 36px; line-height: 1.05; color: var(--white); text-decoration: none; }
.menu-phone:hover { color: var(--peach); }
.menu-info p { font-size: 17px; line-height: 1.5; color: #CCCCCC; }
.menu-info .btn { align-self: flex-start; }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: 96px 0; }
.section-gray { background: var(--gray); }
.section-brown { background: var(--brown); color: var(--white); }
.section-ruled { border-top: 2px solid var(--charcoal); }

.graph-paper {
  background-color: var(--white);
  background-image:
    linear-gradient(rgba(51,51,51,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51,51,51,.07) 1px, transparent 1px);
  background-size: 24px 24px;
}
.graph-paper-light { background-image:
    linear-gradient(rgba(51,51,51,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51,51,51,.06) 1px, transparent 1px); }

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 48px; margin-bottom: 48px; }
.section-head > div { max-width: 760px; }
.section-head .h-xl { margin-bottom: 16px; }
.section-head p { max-width: 34em; }
.section-head-split { margin-bottom: 56px; }
.section-head-split .h-xl { max-width: 640px; margin-bottom: 0; color: var(--peach); }
.section-head-split p { max-width: 24em; color: var(--sand); font-size: 18px; }

/* ---------- hero ---------- */
.hero { padding: 40px 16px 56px; }
.sheet {
  max-width: var(--container); margin: 0 auto;
  border: 2px solid var(--charcoal); padding: 6px; background: rgba(255,255,255,.55);
}
.sheet-inner { border: 1px solid var(--charcoal); padding: clamp(24px, 4vw, 56px); }
.hero-grid { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: center; }
.hero-copy { flex: 1 1 400px; min-width: 0; }
.hero-kicker { font-size: 24px; margin-bottom: 8px; }
.hero h1 {
  font-family: var(--slab); font-weight: 700;
  font-size: clamp(40px, 5.2vw, 74px); line-height: 1; letter-spacing: -.02em;
  color: var(--charcoal); margin-bottom: 28px;
}
.lede { max-width: 31em; font-size: 21px; line-height: 1.6; margin-bottom: 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.hero-call { font-size: 19px; padding: 10px 0; }

.hero-visual { flex: 1.1 1 460px; min-width: 0; }
.dim { display: flex; align-items: center; gap: 8px; font-family: var(--hand); font-size: 19px; color: var(--charcoal); }
.dim-h { margin-bottom: 8px; padding-right: 44px; }
.dim-h .tick { width: 1px; height: 14px; background: var(--charcoal); }
.dim-h .rule { flex: 1; height: 1px; background: var(--charcoal); }
.dim-label { padding: 0 6px; white-space: nowrap; }
.dim-v { width: 34px; flex-direction: column; }
.dim-v .tick { height: 1px; width: 14px; background: var(--charcoal); }
.dim-v .rule { flex: 1; width: 1px; background: var(--charcoal); }
.dim-v .dim-label { writing-mode: vertical-rl; padding: 6px 0; }
.hero-frame-row { display: flex; gap: 10px; align-items: stretch; }

.hero-slider {
  position: relative; flex: 1; min-width: 0; aspect-ratio: 4 / 3;
  background: var(--gray); border: 1px solid var(--charcoal); overflow: hidden;
}
.hero-slides { display: grid; width: 100%; height: 100%; }
.hero-slide {
  grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.03);
  transition: opacity .5s ease, transform .9s ease;
}
.hero-slide.is-active { opacity: 1; transform: none; }
.hero-controls { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 8px; }
.hero-dots {
  position: absolute; left: 12px; bottom: 12px; display: flex; gap: 2px; padding: 0 6px;
  background: rgba(255,255,255,.92); border: 2px solid var(--charcoal); border-radius: 3px;
}
.hero-dots:empty { display: none; }
.dot-btn { width: 28px; height: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; cursor: pointer; }
.dot-btn span { display: block; width: 8px; height: 6px; background: #999999; border-radius: 3px; transition: width .25s ease, background-color .25s ease; }
.dot-btn[aria-current="true"] span { width: 20px; background: var(--red); }

.hero-note { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0 16px; font-size: 21px; line-height: 1.3; }
.hero-note svg { flex: none; margin-top: -4px; fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.title-block-wrap { margin-top: 48px; display: flex; justify-content: flex-end; }
.title-block {
  margin: 0; flex: 0 1 760px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  border: 2px solid var(--charcoal); background: var(--white);
}
.title-block > div { padding: 10px 14px; border-right: 1px solid var(--charcoal); border-bottom: 1px solid var(--charcoal); margin: 0 -1px -1px 0; }
.title-block dt { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.title-block dd { margin: 2px 0 0; line-height: 1.2; }
.tb-shop { font-family: var(--slab); font-weight: 700; font-size: 20px; color: var(--red); }
.tb-hand { font-family: var(--hand); font-size: 22px; }
.tb-small { font-size: 16px; line-height: 1.3 !important; }
.tb-big { font-family: var(--slab); font-weight: 700; font-size: 24px; }

/* ---------- what we build ---------- */
.work-row { display: grid; gap: 40px 28px; }
.work-row + .work-row { margin-top: 40px; }
.work-row-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.work-row-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.work-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--line); }
.work-card h3 { font-family: var(--slab); font-weight: 700; font-size: 28px; line-height: 1.1; margin: 16px 0 8px; color: var(--rust); }
.work-card-lg h3 { font-size: 34px; line-height: 1.05; margin-top: 18px; }
.work-card p { font-size: 17px; max-width: 32em; }

.woods {
  margin-top: 72px; border-top: 2px solid var(--charcoal); padding-top: 28px;
  display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: baseline;
}
.woods h3 { flex: none; font-family: var(--slab); font-weight: 600; font-size: 22px; color: var(--charcoal); }
.woods p { flex: 1 1 520px; min-width: 0; font-family: var(--slab); font-weight: 700; font-size: clamp(26px, 3vw, 38px); line-height: 1.25; color: var(--rust); }
.woods .pencil { font-weight: 400; font-size: .75em; white-space: nowrap; }
.work-more { margin-top: 40px; }

/* ---------- promise ---------- */
.promise { display: flex; flex-wrap: wrap; gap: 40px 72px; align-items: center; }
.promise-statement {
  flex: 1 1 480px; min-width: 0;
  font-family: var(--slab); font-weight: 700; font-size: clamp(40px, 5vw, 68px); line-height: 1.02; letter-spacing: -.02em;
  color: var(--charcoal);
}
.promise-statement span { color: var(--red); }
.promise-copy { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.callout { padding-left: 20px; border-left: 3px solid var(--red); }
.callout strong { font-weight: 600; }

/* ---------- process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 40px 32px; }
.steps li { border-top: 2px solid var(--peach); padding-top: 18px; }
.step-num { display: block; font-family: var(--slab); font-weight: 700; font-size: 72px; line-height: 1; color: var(--peach); }
.steps h3 { font-family: var(--slab); font-weight: 600; font-size: 28px; line-height: 1.15; margin: 14px 0 8px; }
.steps p { color: var(--sand); font-size: 17px; }

/* ---------- construction ---------- */
.craft { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: flex-start; }
.craft-copy { flex: 1 1 420px; min-width: 0; }
.craft-lede { max-width: 30em; font-size: 20px; margin-bottom: 32px; }
.joint { margin: 0; background: var(--white); border: 1px solid var(--charcoal); padding: 16px; }
.joint svg { display: block; width: 100%; height: auto; }
.spec-list { flex: 1 1 420px; min-width: 0; margin: 0; background: var(--white); border: 2px solid var(--charcoal); }
.spec-list > div { padding: 20px 24px; border-bottom: 1px solid var(--charcoal); }
.spec-list > div:last-child { border-bottom: 0; }
.spec-list dt { font-family: var(--slab); font-weight: 700; font-size: 24px; color: var(--charcoal); }
.spec-list dd { margin: 4px 0 0; font-size: 17px; }

/* ---------- testimonials ---------- */
.reviews { display: flex; flex-wrap: wrap; gap: 32px 72px; align-items: stretch; }
.reviews-rail { flex: 0 1 300px; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.reviews-rail p { font-size: 17px; }
.reviews-controls { display: flex; flex-direction: column; gap: 18px; }
.reviews-buttons { display: flex; align-items: center; gap: 12px; }
.reviews-count { margin-left: 8px; font-family: var(--slab); font-weight: 600; font-size: 20px; color: var(--charcoal); }
.reviews-dots { display: flex; gap: 6px; }
.reviews-dots .dot-btn { width: 44px; height: 44px; }
.reviews-dots .dot-btn span { width: 14px; background: #BBBBBB; }
.reviews-dots .dot-btn[aria-current="true"] span { width: 32px; background: var(--red); }

.reviews-slides { flex: 1 1 520px; min-width: 0; display: grid; border-top: 2px solid var(--charcoal); padding-top: 32px; }
.review {
  grid-area: 1 / 1; margin: 0;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  opacity: 0; visibility: hidden; transform: translateX(24px);
  transition: opacity .35s ease, transform .35s ease, visibility .35s;
}
.review.is-active { opacity: 1; visibility: visible; transform: none; }
.review.leaving-left { transform: translateX(-24px); }
.review blockquote { margin: 0; font-family: var(--slab); font-weight: 600; font-size: clamp(26px, 3vw, 40px); line-height: 1.22; color: var(--charcoal); }
.review figcaption { display: flex; align-items: center; gap: 16px; }
.review figcaption > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.review strong { font-weight: 600; font-size: 19px; }
.review figcaption span span { font-size: 16px; color: var(--muted); }
.avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 52px; height: 52px; border-radius: 50%; background: var(--brown); color: var(--white);
  font-family: var(--slab); font-weight: 700; font-size: 20px;
}

/* ---------- contact ---------- */
.contact { display: flex; flex-wrap: wrap; gap: 48px 72px; }
.contact-info { flex: 1 1 340px; min-width: 0; }
.contact-info .h-xl { font-size: clamp(40px, 4.8vw, 64px); line-height: .98; margin-bottom: 18px; }
.contact-info > p:first-of-type { max-width: 26em; margin-bottom: 36px; }
.contact-phone { display: block; font-family: var(--slab); font-weight: 700; font-size: clamp(34px, 4vw, 48px); line-height: 1.1; color: var(--red); text-decoration: none; margin-bottom: 6px; }
.contact-phone:hover { color: #8C0D1F; }
.contact-hours { font-size: 18px; margin-bottom: 28px; }
.contact-hours strong { font-weight: 600; }
.contact-lines { display: flex; flex-direction: column; gap: 14px; font-size: 18px; }

.contact-form {
  flex: 1.25 1 440px; min-width: 0;
  background: var(--white); padding: 36px;
  display: flex; flex-direction: column; gap: 20px;
  border: 2px solid var(--charcoal); box-shadow: 8px 8px 0 var(--charcoal);
}
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 20px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 17px; font-weight: 600; }
.optional { font-weight: 400; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea {
  min-height: 48px; padding: 0 14px; border: 1px solid #888888; background: var(--white);
  font: inherit; font-weight: 400; border-radius: 3px; color: var(--ink); width: 100%;
}
.contact-form textarea { padding: 12px 14px; resize: vertical; }
.contact-form .btn { align-self: flex-start; }
.contact-form .btn[disabled] { opacity: .7; cursor: progress; }
.hp { display: none !important; }
.form-status { font-size: 17px; }
.form-status:empty { display: none; }
.form-status.is-success { padding: 14px 16px; background: #EEF6EE; border-left: 4px solid #2E6B34; color: #1E4A23; }
.form-status.is-error { padding: 14px 16px; background: #FBECEE; border-left: 4px solid var(--red); color: #6E0A18; }

/* ---------- footer ---------- */
.site-footer { background: var(--charcoal); color: #CCCCCC; }
.footer-row { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; font-size: 16px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }

/* ---------- links that read as "more" ---------- */
.more-link { font-weight: 600; padding: 10px 0; white-space: nowrap; }
.nav-desktop a[aria-current="page"] { color: var(--peach); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* =========================================================
   GALLERY PAGE
   ========================================================= */
.gallery-hero { padding: 64px 0 40px; border-bottom: 2px solid var(--charcoal); }
.gallery-kicker { font-size: 24px; margin-bottom: 6px; }
.gallery-title { margin-bottom: 14px; color: var(--charcoal); }
.gallery-intro { margin-bottom: 32px; }
@media (min-width: 721px) { .gallery-intro { white-space: nowrap; } }

.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-btn {
  min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--charcoal); border: 2px solid var(--charcoal); border-radius: 3px;
  font-family: var(--slab); font-weight: 600; font-size: 18px; cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.filter-btn span { font-family: var(--serif); font-weight: 400; font-size: 15px; color: var(--muted); }
.filter-btn:hover { background: var(--gray); }
.filter-btn[aria-pressed="true"] { background: var(--charcoal); color: var(--white); }
.filter-btn[aria-pressed="true"] span { color: #CCCCCC; }

.gallery-section { padding-top: 56px; }
.gallery-grid { column-count: 3; column-gap: 24px; }
.g-item { break-inside: avoid; margin: 0 0 32px; }
.g-item[hidden] { display: none; }
.g-item a { display: block; position: relative; background: var(--line); overflow: hidden; cursor: zoom-in; }
.g-item img { width: 100%; height: auto; transition: transform .5s var(--ease-out), opacity .3s ease; }
.g-item a:hover img { transform: scale(1.03); }
.g-item a::after {
  content: ''; position: absolute; inset: 0; border: 0 solid var(--red);
  transition: border-width .2s ease; pointer-events: none;
}
.g-item a:hover::after, .g-item a:focus-visible::after { border-width: 4px; }
.g-item figcaption { margin-top: 10px; display: flex; flex-direction: column; line-height: 1.35; }
.g-item figcaption strong { font-family: var(--slab); font-weight: 700; font-size: 21px; color: var(--rust); }
.g-item figcaption span { font-size: 16px; color: var(--muted); }

.gallery-cta { margin-top: 40px; border-top: 2px solid var(--charcoal); padding-top: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.gallery-cta .pencil { font-size: 24px; }

/* lightbox */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #181818; color: var(--white);
}
.lightbox::backdrop { background: rgba(0,0,0,.6); }
.lightbox[open] { animation: lb-in .25s ease; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-inner { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 64px 88px 24px; }
.lb-figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lb-figure img { max-width: 100%; max-height: calc(100vh - 160px); width: auto; height: auto; object-fit: contain; border: 1px solid #555; background: #222; }
.lb-figure figcaption { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.lb-caption { display: flex; flex-direction: column; align-items: center; }
.lb-caption strong { font-family: var(--slab); font-weight: 700; font-size: 22px; line-height: 1.25; }
.lb-caption span { color: #CCCCCC; font-size: 17px; }
.lb-count { font-family: var(--hand); color: var(--peach); font-size: 19px; }
.lb-close { position: absolute; top: 14px; right: 14px; width: 48px; height: 48px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1000px) {
  .gallery-grid { column-count: 2; }
}
@media (min-width: 721px) {
  .menu-backdrop, .mobile-menu { display: none !important; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; --header-h: 72px; }
  body { font-size: 18px; }

  .nav-desktop, .header-phone { display: none; }
  .mobile-only { display: inline-flex; }
  .header-row { padding: 10px var(--gutter); gap: 12px; }
  .header-actions { gap: 8px; }
  .logo { gap: 10px; min-width: 0; }
  .logo-badge { height: 42px; padding: 0 10px; font-size: 19px; flex: none; }
  .logo-word { font-size: 19px; }
  .icon-btn-red.mobile-only { width: 48px; height: 48px; border: 0; }

  .section { padding: 72px 0; }
  .hero { padding: 20px 10px 40px; }
  .hero-kicker { font-size: 21px; }
  .lede { font-size: 19px; }
  .dim-h { padding-right: 40px; }
  .dim-v { width: 30px; }
  .hero-note { margin-left: 4px; font-size: 19px; }
  .title-block-wrap { margin-top: 36px; }

  .contact-form { padding: 24px; box-shadow: 6px 6px 0 var(--charcoal); }
  .reviews-rail { flex-basis: 100%; }

  .footer-row { flex-direction: column; justify-content: center; text-align: center; gap: 20px; }
  .footer-brand { flex-direction: column; gap: 14px; max-width: 22em; }

  .gallery-hero { padding: 40px 0 28px; }
  .gallery-kicker { font-size: 20px; }
  .filters { gap: 8px; }
  .filter-btn { font-size: 16px; padding: 0 12px; }
  .gallery-section { padding-top: 32px; }
  .lb-inner { padding: 72px 12px 96px; }
  .lb-figure img { max-height: calc(100vh - 220px); }
  .lb-nav { top: auto; bottom: 20px; transform: none; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
}

@media (max-width: 560px) {
  .gallery-grid { column-count: 1; }
}

@media (max-width: 400px) {
  .menu-word { display: none; }
  .menu-btn { width: 48px; padding: 0; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
