@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --ink: #191614;
  --panel: #24201d;
  --border: #463c36;
  --paper: #f5f3ec;
  --muted: #c3b9b0;
  --accent: #e8a57b;
  --pad: max(5vw, calc((100vw - 1440px) / 2));
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 16px/1.55 "DM Sans", Arial, sans-serif; }
h1, h2, h3, p { margin: 0; }
p { color: var(--muted); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
h1, h2 { font-family: "Archivo Black", Arial, sans-serif; line-height: 1; letter-spacing: -.055em; }
h2 { font-size: clamp(2.35rem, 5vw, 4.65rem); }
.eyebrow { margin-bottom: 15px; color: var(--accent); font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 18px var(--pad); border-bottom: 1px solid var(--border); }
.logo { display: block; flex: 0 0 auto; }
.logo img { width: clamp(138px, 13vw, 172px); height: auto; }
nav { display: flex; align-items: center; }
nav { gap: clamp(12px, 2vw, 30px); font-size: .88rem; font-weight: 600; }
nav a:hover, .contact a:hover { text-decoration: underline; text-underline-offset: 4px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 46px; padding: 11px 17px; border: 1px solid var(--accent); background: var(--accent); color: var(--ink); font-size: .9rem; font-weight: 700; }
.button:hover { background: #f5c3a3; text-decoration: none; }
.button.light { background: transparent; border-color: var(--border); color: var(--paper); }
.button.light:hover { border-color: var(--paper); }
.hero { padding: clamp(36px, 5vw, 76px) var(--pad) 26px; }
.hero-copy { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px clamp(24px, 5vw, 90px); align-items: end; margin-bottom: 28px; }
h1 { font-size: clamp(2.4rem, 6vw, 6.4rem); }
.lead { max-width: 37ch; margin-bottom: 17px; font-size: clamp(.98rem, 1.45vw, 1.25rem); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-project { position: relative; display: block; height: clamp(280px, 44vw, 585px); overflow: hidden; border: 1px solid var(--border); background: var(--panel); }
.hero-project img { width: 100%; height: 100%; object-fit: cover; object-position: center 53%; }
.photo-caption { position: absolute; inset: auto auto 18px 18px; display: grid; gap: 3px; padding: 11px 15px; border-left: 3px solid var(--accent); background: #191614f2; }
.photo-caption span { color: var(--accent); font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; }
.photo-caption strong { font-size: clamp(1rem, 2.25vw, 1.7rem); }
.ticker { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 20px; padding: 16px var(--pad); background: var(--accent); color: var(--ink); font-size: .78rem; font-weight: 700; letter-spacing: .08em; }
section { padding: clamp(52px, 8vw, 108px) var(--pad); }
.section-top { display: grid; grid-template-columns: 1.22fr .78fr; gap: 24px; align-items: end; margin-bottom: 32px; }
.section-top p { max-width: 52ch; }
#services { background: var(--ink); border-top: 1px solid var(--border); }
#services .service h3 { color: var(--accent); }
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.service { padding: clamp(18px, 2vw, 30px); border: 1px solid var(--border); background: var(--panel); }
.number { color: var(--accent); font-size: .72rem; font-weight: 700; }
.service h3 { margin: 0 0 10px; font-size: clamp(1.14rem, 2vw, 1.55rem); line-height: 1.15; }
.number + h3 { margin-top: 13px; }
.service ul { margin: 16px 0 0; padding: 12px 0 0 19px; border-top: 1px solid #c8c9c3; font-size: .9rem; }
.metalfab { border-bottom: 1px solid var(--border); }
.metalfab-note { margin: 20px 0; font-size: .9rem; }
#projects { background: #201b18; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.gallery-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { padding: 8px 12px; background: transparent; color: var(--paper); border: 1px solid var(--border); }
.filters button span { margin-left: 5px; font-size: .76rem; }
.filters button[aria-pressed="true"] { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.project-card { padding: 0; min-width: 0; text-align: left; color: var(--paper); background: var(--ink); border: 1px solid var(--border); }
.project-card:hover { border-color: var(--accent); }
.project-image { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--photo-position, center);
  filter: brightness(var(--photo-light, 1)) contrast(var(--photo-contrast, 1));
}
.project-image--railings { --photo-position: center 62%; --photo-light: 1.05; }
.project-image--stair-detail { --photo-position: center 56%; --photo-contrast: 1.07; }
.project-image--branches { --photo-position: center 62%; --photo-light: 1.10; }
.project-image--leaves { --photo-position: center 51%; --photo-contrast: 1.05; }
.project-image--stair-frame { --photo-position: center 60%; --photo-light: 1.08; }
.project-image--column { --photo-position: center 62%; --photo-light: 1.07; }
.project-image--components { --photo-position: center 48%; --photo-light: 1.08; }
.project-image--assembly { --photo-position: center 49%; }
.project-image--fire { --photo-position: center 43%; }

.enlarge { position: absolute; bottom: 10px; right: 10px; background: var(--ink); padding: 5px 8px; font-size: .72rem; }
.project-caption { display: grid; gap: 3px; padding: 13px; }
.project-caption span, .album-empty { color: var(--muted); font-size: .83rem; }
.album-empty { margin-top: 14px; }

.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(22px, 5vw, 74px); background: var(--ink); border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary { padding: 16px 0; cursor: pointer; font-size: 1.05rem; font-weight: 700; }
.faq summary::marker { color: var(--accent); }
.faq p { padding: 0 0 16px; max-width: 58ch; }
@media (max-width: 630px) { .faq { grid-template-columns: 1fr; } }

.quote { display: grid; grid-template-columns: .8fr 1.2fr; align-items: start; gap: clamp(20px, 5vw, 80px); background: #29231f; border-top: 1px solid var(--border); }
.quote h2 + p { margin: 20px 0; }
.contact { display: grid; justify-items: start; gap: 7px; margin-top: 18px; }
.contact .phone { font-size: 1.25rem; font-weight: 700; }
.fine { font-size: .82rem; }
form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: clamp(16px, 3vw, 35px); background: var(--ink); border: 1px solid var(--border); }
.field { display: grid; gap: 6px; font-size: .88rem; }
.field input, .field select, .field textarea { min-width: 0; width: 100%; padding: 10px; background: var(--panel); border: 1px solid #6d5b50; color: var(--paper); }
.field textarea { min-height: 120px; resize: vertical; }
.full { grid-column: 1 / -1; }
.form-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.status:empty { display: none; }
.copy { justify-self: start; padding: 0; border: 0; background: none; color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 24px var(--pad); color: var(--muted); font-size: .84rem; }
.lightbox { width: min(1000px, 94vw); max-width: 94vw; max-height: 95dvh; padding: 0; border: 1px solid var(--border); background: var(--ink); color: var(--paper); }
.lightbox::backdrop { background: #100d0be8; }
.lightbox img { width: 100%; height: 69dvh; object-fit: contain; }
.lightbox-header, .lightbox-footer { display: flex; align-items: center; justify-content: space-between; padding: 10px; gap: 10px; }
.lightbox button { background: var(--panel); color: var(--paper); border: 1px solid var(--border); padding: 8px; }
@media (max-width: 900px) {

  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  nav a[href^="tel:"] { display: none; }
}
@media (max-width: 630px) {
  .hero-copy { grid-template-columns: 1fr; }
  .photo-caption { inset: auto auto 10px 10px; }
  header { flex-wrap: wrap; gap: 13px; }
  nav { width: 100%; flex-wrap: wrap; }
  nav .button { min-height: 36px; padding: 6px 9px; }
  .section-top, .services, .quote, form { grid-template-columns: 1fr; }
  .project-grid { gap: 9px; }
  .project-caption { padding: 8px; }
  .project-caption strong { font-size: .87rem; }
  .lightbox img { height: 60dvh; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}

.slideshow-controls { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 8px; }
.slideshow-controls span { font-size: .8rem; }

.gallery-slideshow { margin-bottom: 22px; background: var(--ink); border: 1px solid var(--border); }
.slideshow-photo { display: block; position: relative; padding: 0; width: 100%; background: var(--ink); color: var(--paper); border: 0; }
.slideshow-photo img { width: 100%; height: clamp(230px, 45vw, 560px); object-fit: contain; }
.slideshow-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 15px; }
#slide-position { margin-left: 8px; color: var(--muted); font-size: .85rem; white-space: nowrap; }

.slideshow-thumbnails { display: flex; gap: 8px; overflow-x: auto; padding: 8px 15px 12px; }
.slide-thumbnail { flex: 0 0 68px; padding: 2px; border: 2px solid transparent; background: var(--panel); }
.slide-thumbnail[aria-current="true"], .slide-thumbnail:hover { border-color: var(--accent); }
.slide-thumbnail:focus-visible { outline-offset: -2px; }
.slide-thumbnail img { width: 100%; height: 46px; object-fit: cover; }

#services .service { display: flex; flex-direction: column; }
#services .service p { flex: 1; }
.service-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
.service-links a { font-size: .86rem; font-weight: 700; color: var(--accent); }
.service-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
#quote-guidance { color: var(--muted); font-size: .82rem; }
