:root {
  --ink: #0f0f0f;
  --ink-2: #1a1a1a;
  --paper: #f3f0ea;
  --paper-2: #e8e3da;
  --text: #1c1c1c;
  --muted: #5b5750;          /* 6.3:1 on paper */
  --muted-dark: #b9b3a9;     /* 9.2:1 on ink */
  --accent: #b8844d;         /* timber: use on dark only (5.9:1 on ink) */
  --accent-deep: #8c5a2b;    /* white text on it 5.8:1; on paper 5.1:1 */
  --accent-hover: #744a22;
  --line: rgba(0, 0, 0, 0.12);
  --line-dark: rgba(255, 255, 255, 0.14);
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1.0625rem/1.65 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent-deep); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow { font: 600 0.8rem/1.3 var(--body); text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent); margin-bottom: 1.2em; }
.section:not(.section-dark) .eyebrow { color: var(--accent-deep); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 38em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 1.5em; font: 600 1rem/1 var(--body); text-decoration: none; border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s; }
.btn-accent { background: var(--accent-deep); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost { border-color: currentColor; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); border-bottom: 1px solid var(--line-dark); transition: box-shadow .25s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.header-inner { display: flex; align-items: center; gap: 2rem; min-height: 72px; position: relative; }
.brand img { width: 132px; mix-blend-mode: screen; }
.nav { display: flex; gap: 1.75rem; margin-left: auto; }
.nav a { color: #e9e5dd; text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { border-color: var(--accent); }
.nav a[aria-current] { color: #fff; }
.header-call { min-height: 44px; font-size: 0.95rem; }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; margin-left: auto; }
.bars, .bars::before, .bars::after { display: block; width: 24px; height: 2px; background: #fff; position: relative; margin: 0 auto; transition: transform .2s, background .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
.menu-btn[aria-expanded="true"] .bars { background: transparent; }
.menu-btn[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { background: var(--ink); color: #fff; padding: clamp(48px, 8vw, 96px) 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 72px); align-items: end; }
.hero-copy { padding-bottom: clamp(48px, 8vw, 110px); }
.hero .lead { color: var(--muted-dark); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.hero-media { margin: 0; align-self: stretch; }
.hero-media img { width: 100%; height: 100%; max-height: 640px; object-fit: cover; object-position: center 40%; }

/* Credentials strip */
.creds { background: var(--ink-2); color: #d9d4ca; border-top: 1px solid var(--line-dark); }
.creds-list { display: grid; grid-template-columns: repeat(3, 1fr); }
.creds-list li { padding: 22px 12px; font-size: 0.9rem; text-align: center; border-left: 1px solid var(--line-dark); }
.creds-list li:first-child { border-left: 0; }
.creds-list strong { display: block; font: 800 1.15rem/1.2 var(--head); color: #fff; }

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-intro { color: var(--muted); font-size: 1.1rem; }

.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(32px, 5vw, 80px); counter-reset: svc; }
.services li { counter-increment: svc; padding: 32px 0 28px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 56px 1fr; column-gap: 12px; }
.services li::before { content: counter(svc, decimal-leading-zero); font: 700 0.95rem/1.6 var(--head); color: var(--accent-deep); grid-row: span 2; }
.services p { color: var(--muted); margin: 0; }

.also { margin-top: 48px; padding: 28px 32px; background: var(--paper-2); border-left: 4px solid var(--accent-deep); }
.also h3 { margin-bottom: 0.8em; }
.also p { margin: 14px 0 0; color: var(--muted); font-weight: 500; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 7px 14px; background: var(--paper); border: 1px solid var(--line); font-size: 0.9rem; line-height: 1.3; }

/* Photo band */
.band { position: relative; min-height: clamp(300px, 48vw, 540px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--ink); }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 20%, rgba(0,0,0,.62) 60%, rgba(0,0,0,.82)); }
.band-inner { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(32px, 6vw, 72px); }
.band-quote { text-shadow: 0 2px 12px rgba(0,0,0,.45); font: 800 clamp(1.6rem, 3.6vw, 2.8rem)/1.12 var(--head); letter-spacing: -0.02em; max-width: 18em; margin: 0; text-wrap: balance; }

/* Process */
.section-alt { background: var(--paper-2); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 22px; border-top: 3px solid var(--ink); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font: 800 2.4rem/1 var(--head); color: var(--accent-deep); margin-bottom: 14px; }
.steps p { margin: 0; color: var(--muted); }

/* Gallery */
.section-dark { background: var(--ink); color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery a { display: block; position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink-2); color: #fff; text-decoration: none; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.04); }
.gallery a:focus-visible { outline-offset: -3px; }
.cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 16px 14px; font: 600 0.9rem/1.3 var(--body); background: linear-gradient(transparent, rgba(0,0,0,.6) 40%, rgba(0,0,0,.85)); text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.more { margin: 28px 0 0; color: var(--muted-dark); }
.more a { color: #fff; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 96px); }
.about-grid > div p { color: var(--muted); }
.points li { padding: 22px 0; border-top: 1px solid var(--line); }
.points li:last-child { border-bottom: 1px solid var(--line); }
.points h3 { margin-bottom: 0.3em; }
.points p { margin: 0; color: var(--muted); }

/* Contact */
.contact {
  color: #fff; padding: clamp(80px, 11vw, 136px) 0;
  background: linear-gradient(rgba(15,15,15,.86), rgba(15,15,15,.93)), url("assets/img/cedar-scaffold-1200.jpg") center 35% / cover no-repeat var(--ink);
}
.contact .lead { color: #ddd7cd; }
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 36px 0 24px; max-width: 960px; }
.contact-card { display: block; padding: 28px; background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); color: #fff; text-decoration: none; transition: border-color .2s, background .2s, transform .2s; }
.contact-card:hover { border-color: var(--accent); background: rgba(255,255,255,.1); transform: translateY(-2px); }
.contact-card .label { display: block; font: 600 0.8rem/1 var(--body); text-transform: uppercase; letter-spacing: .16em; color: var(--accent); margin-bottom: 12px; }
.contact-card .value { display: block; font: 800 clamp(1.1rem, 2.2vw, 1.6rem)/1.2 var(--head); overflow-wrap: break-word; }
.include { color: #ddd7cd; margin: 0 0 10px; }
.include strong { color: #fff; }
.area { font-weight: 600; margin: 0; color: #ddd7cd; }

/* Footer */
.site-footer { background: #080808; color: var(--muted-dark); padding: 56px 0; font-size: 0.9rem; border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px 40px; align-items: start; }
.footer-logo { width: 116px; mix-blend-mode: screen; margin-bottom: 14px; }
.site-footer p { margin: 0; line-height: 1.8; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.mobile-call { display: none; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; overflow: hidden; }
html:has(.lightbox[open]) { overflow: hidden; }
.lightbox::backdrop { background: rgba(0,0,0,.92); }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox img { touch-action: pan-y; user-select: none; max-width: min(92vw, 1100px); max-height: calc(100vh - 110px); width: auto; height: auto; object-fit: contain; }
.lb-cap { color: #e9e5dd; font-size: 0.95rem; margin: 14px 0 0; }
.lb-btn { position: fixed; width: 52px; height: 52px; border: 1px solid var(--line-dark); background: rgba(15,15,15,.7); color: #fff; font: 400 2rem/1 var(--body); cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { border-color: var(--accent); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Responsive */
@media (max-width: 960px) {
  .js .menu-btn { display: block; }
  .header-call { display: none; }
  .no-js .header-inner { flex-wrap: wrap; padding-bottom: 12px; }
  .no-js .nav { width: 100%; margin: 0; gap: 1.25rem; flex-wrap: wrap; }
  .js .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--ink); flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--line-dark); }
  .js .nav.open { display: flex; }
  .js .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; }
  .hero-media img { max-height: 480px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
}
@media (max-width: 640px) {
  body { padding-bottom: 60px; }
  .services { grid-template-columns: 1fr; }
  .services li { grid-template-columns: 44px 1fr; }
  .creds-list { grid-template-columns: 1fr; }
  .creds-list li { border-left: 0; border-top: 1px solid var(--line-dark); padding: 14px 4px; text-align: left; }
  .creds-list li:first-child { border-top: 0; }
  .creds-list strong { display: inline; font-size: 1.05rem; margin-right: 6px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery li:last-child { grid-column: span 2; }
  .gallery li:last-child a { aspect-ratio: 16 / 10; }
  .gallery li:last-child img { object-position: center 18%; }
  .cap { font-size: 0.8rem; padding: 36px 10px 10px; }
  .contact-cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .tags li { font-size: 0.85rem; padding: 6px 11px; }
  .also { padding: 22px 20px; }
  .brand img { width: 112px; }
  .footer-grid { grid-template-columns: 1fr; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .lightbox img { max-height: calc(100vh - 170px); }
  .mobile-call { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; min-height: 56px; padding-bottom: env(safe-area-inset-bottom); align-items: center; justify-content: center; background: var(--accent-deep); color: #fff; font: 700 1.05rem/1 var(--body); text-decoration: none; box-shadow: 0 -4px 16px rgba(0,0,0,.25); transition: transform .25s; }
  .mobile-call.hidden { transform: translateY(100%); visibility: hidden; transition: transform .25s, visibility 0s .25s; }
}
@media (max-width: 380px) {
  .contact-card { padding: 22px 20px; }
  .contact-card .value { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .gallery a:hover img, .gallery a:focus-visible img { transform: none; }
}

@media print {
  .site-header, .mobile-call, .lightbox, .skip, .band, .menu-btn { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  .hero, .section-dark, .contact, .site-footer, .creds { background: #fff !important; color: #000 !important; }
  .hero .lead, .contact .lead, .include, .area, .site-footer, .more { color: #333 !important; }
  .contact-card { border: 1px solid #999; background: none; color: #000; }
  .footer-logo, .brand img { mix-blend-mode: normal; filter: invert(1); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  a[href^="tel:"]::after, a[href^="mailto:"]::after { content: ""; }
}
