@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}

:root {
  --ink: #141414;
  --ink-2: #3d3d3d;
  --muted: #6b6b6b;
  --paper: #ffffff;
  --stone: #f4f2ee;
  --line: #e4e0d9;
  --red: #f0360f;          /* from the logo */
  --red-text: #c42a0a;     /* red that passes contrast on white */
  --radius: 6px;
  --wrap: 1180px;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { 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(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.eyebrow {
  font: 600 0.8rem/1 var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-text);
  margin: 0 0 14px;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--red); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  background: var(--ink); color: #fff;
  font: 600 1rem/1 var(--display);
  text-decoration: none; border: 2px solid var(--ink); border-radius: var(--radius);
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--red); border-color: var(--red); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-small { min-height: 40px; padding: 0 16px; font-size: .95rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 50px; height: auto; }
.brand-name { font: 800 1.15rem/1.05 var(--display); letter-spacing: -0.01em; }
.brand-name span { display: block; font-weight: 500; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a:not(.btn) { text-decoration: none; font: 600 .98rem/1 var(--display); color: var(--ink-2); padding: 8px 0; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover { color: var(--ink); border-color: var(--red); }
.nav-toggle { display: none; }

/* Hero */
.hero { background: var(--stone); padding: 72px 0 88px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 34em; margin-bottom: 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo { margin: 0; position: relative; }
.hero-photo::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px;
  background: var(--red); border-radius: var(--radius); z-index: 0;
}
.hero-photo img { position: relative; z-index: 1; border-radius: var(--radius); width: 100%; box-shadow: 0 20px 40px -20px rgba(0,0,0,.35); }

/* About */
.about { padding: 96px 0 72px; }
.about-inner { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.about-copy p { font-size: 1.2rem; color: var(--ink-2); }
.about-copy p:first-child { font: 600 1.45rem/1.4 var(--display); color: var(--ink); }
.values {
  list-style: none; margin: 56px 0 0; padding: 28px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  border-top: 1px solid var(--line);
}
.values li { font: 700 1.05rem/1.3 var(--display); display: flex; align-items: center; gap: 10px; }
.values li::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--red); transform: skewX(-20deg); }

/* Services */
.services { background: var(--ink); color: #fff; padding: 96px 0; }
.services .eyebrow { color: #ff6a47; }
.services h2 { margin-bottom: 44px; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service { background: #1f1f1f; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.service img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-body { padding: 22px 22px 26px; border-top: 3px solid var(--red); flex: 1; }
.service h3 { margin-bottom: 10px; }
.service p { color: #c9c9c9; font-size: .98rem; margin: 0; }

/* Gallery */
.gallery-section { padding: 96px 0; }
.gallery-section h2 { margin-bottom: 40px; }
.gallery { list-style: none; margin: 0; padding: 0; columns: 4 240px; column-gap: 14px; }
.gallery li { break-inside: avoid; margin-bottom: 14px; }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; background: var(--stone); }
.gallery img { width: 100%; transition: transform .35s ease, opacity .2s; }
.gallery a:hover img { transform: scale(1.04); }

/* Lightbox */
.lightbox {
  border: 0; padding: 0; margin: auto; background: transparent; color: #fff;
  max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
}
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox::backdrop { background: rgba(10,10,10,.92); }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); width: auto; border-radius: 4px; }
.lightbox figcaption { font-size: .95rem; color: #ddd; text-align: center; }
.lightbox button {
  background: none; border: 0; color: #fff; cursor: pointer;
  font-size: 2.6rem; line-height: 1; width: 56px; height: 56px; border-radius: 50%;
}
.lightbox button:hover { background: rgba(255,255,255,.12); }
.lb-close { position: absolute; top: 14px; right: 14px; font-size: 2.2rem !important; }

/* Contact */
.contact { background: var(--stone); padding: 96px 0; border-top: 6px solid var(--red); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact h2 { max-width: 14em; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.contact-list li { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: baseline; }
.contact-list li:first-child { padding-top: 4px; }
.contact-list .label { font: 600 .8rem/1.4 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-list a { font: 600 1.25rem/1.4 var(--display); text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--red-text); text-decoration: underline; text-underline-offset: 4px; }

/* Footer */
.site-footer { background: var(--ink); color: #aaa; padding: 32px 0; font-size: .92rem; }
.footer-inner { display: flex; align-items: center; gap: 20px; }
.footer-inner img { width: 44px; }
.footer-inner p { margin: 0; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound h1 { margin-bottom: 16px; }
.notfound .eyebrow { justify-content: center; }

@media (max-width: 1000px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .wrap { padding: 0 16px; }
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px;
    background: none; border: 0; cursor: pointer; margin-right: -8px;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 24px; height: 2px; background: var(--ink); position: relative; transition: transform .2s;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -7px; }
  .nav-toggle-bars::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px; display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 16px; min-height: 48px; }

  .hero { padding: 40px 0 64px; }
  .hero-inner, .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo::before { inset: 14px -10px -14px 14px; }
  .about, .services, .gallery-section, .contact { padding: 64px 0; }
  .values { margin-top: 36px; }
  .gallery { columns: 2; column-gap: 10px; }
  .gallery li { margin-bottom: 10px; }
  .lightbox[open] { grid-template-columns: 44px 1fr 44px; }
  .lightbox button { width: 44px; height: 44px; font-size: 2rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .service-grid { grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
  .brand-name span { letter-spacing: .1em; }
}

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