:root {
  color-scheme: dark;
  --ink: #121212;
  --iron: #1d1b1a;
  --steel: #2b2a28;
  --panel: #f5f1ea;
  --paper: #fffaf1;
  --muted: #cbc3b6;
  --muted-dark: #665f56;
  --line: rgba(255, 250, 241, 0.16);
  --line-dark: rgba(18, 18, 18, 0.16);
  --red: #c7201d;
  --red-dark: #8f1714;
  --amber: #d6a25a;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Barlow", Arial, sans-serif;
  background: var(--ink);
  color: var(--paper);
  line-height: 1.5;
}

body.nav-open,
body.lightbox-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 12px max(20px, calc((100vw - var(--container)) / 2));
  background: rgba(18, 18, 18, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  background: rgba(18, 18, 18, 0.96);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border: 1px solid rgba(199, 32, 29, 0.9);
  background: var(--ink);
  box-shadow: 0 0 0 1px rgba(255, 250, 241, 0.08), 0 10px 22px rgba(0, 0, 0, 0.28);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.1rem;
  line-height: 1;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 13px;
  color: var(--muted);
  font-weight: 600;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--white);
  border-color: var(--red);
  outline: 0;
}

.header-call,
.btn,
.contact-link,
.strip-grid a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.header-call {
  justify-self: end;
  min-height: 44px;
  padding: 0 16px;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(199, 32, 29, 0.28);
}

.header-call svg,
.btn svg,
.contact-link svg,
.strip-grid svg,
.service-card svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  color: var(--white);
  border: 1px solid var(--line);
}

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/work/hero-roof-frame.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(18, 18, 18, 0.92) 0%, rgba(18, 18, 18, 0.72) 43%, rgba(18, 18, 18, 0.22) 100%),
    linear-gradient(0deg, rgba(18, 18, 18, 0.98) 0%, rgba(18, 18, 18, 0) 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.62fr);
  gap: 42px;
  align-items: end;
  padding: 124px 0 46px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3.3rem, 8vw, 7.4rem);
  line-height: 0.88;
  font-weight: 800;
}

h2 {
  margin-bottom: 18px;
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 4.2rem);
  line-height: 1;
  font-weight: 800;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
  line-height: 1.1;
}

.hero-text {
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid transparent;
  color: var(--white);
  font-weight: 800;
}

.btn-primary {
  background: var(--red);
  box-shadow: 0 14px 32px rgba(199, 32, 29, 0.34);
}

.btn-secondary {
  background: var(--paper);
  color: var(--ink);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.btn:hover,
.header-call:hover,
.strip-grid a:hover,
.contact-link:hover,
.filter-btn:hover {
  transform: translateY(-2px);
}

.btn,
.header-call,
.strip-grid a,
.contact-link,
.filter-btn,
.gallery-item,
.nav-toggle {
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.hero-panel {
  align-self: end;
  background: rgba(18, 18, 18, 0.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-panel img {
  width: 100%;
  height: 86px;
  object-fit: fill;
  object-position: center;
  background: #050505;
  border-bottom: 1px solid var(--line);
}

.hero-panel dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.hero-panel div {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.hero-panel div:last-child {
  border-bottom: 0;
}

.hero-panel dt {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-panel dd {
  margin: 0;
  color: var(--paper);
  font-weight: 600;
}

.quick-strip {
  background: var(--red-dark);
  border-block: 1px solid rgba(255, 255, 255, 0.16);
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.strip-grid a {
  min-height: 96px;
  padding: 18px 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.strip-grid a:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.strip-grid svg {
  flex: 0 0 auto;
}

.strip-grid strong,
.strip-grid span span {
  display: block;
}

.strip-grid strong {
  color: var(--white);
}

.strip-grid span {
  color: rgba(255, 255, 255, 0.82);
}

.section {
  padding: 96px 0;
}

.intro-section,
.services-section,
.gallery-section {
  background: var(--paper);
  color: var(--ink);
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 60px;
  align-items: start;
}

.intro-grid h2,
.services-section h2,
.gallery-section h2 {
  color: var(--ink);
}

.intro-grid p:last-child {
  max-width: 680px;
  color: var(--muted-dark);
  font-size: 1.18rem;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(18, 18, 18, 0.1);
  box-shadow: 0 10px 30px rgba(18, 18, 18, 0.08);
}

.service-card img {
  width: 100%;
  height: 210px;
  flex: 0 0 210px;
  object-fit: cover;
}

.service-card > div {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  padding: 22px;
  background: var(--white);
}

.service-card svg {
  margin-bottom: 18px;
  color: var(--red);
}

.service-card h3 {
  color: var(--ink);
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted-dark);
}

.proof-section {
  position: relative;
  background:
    linear-gradient(90deg, rgba(18, 18, 18, 0.94), rgba(18, 18, 18, 0.78)),
    url("assets/work/gate-leaf-pattern.jpg") center / cover fixed;
}

.proof-grid {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 54px;
  align-items: center;
}

.proof-copy p:not(.eyebrow) {
  max-width: 600px;
  color: var(--muted);
  font-size: 1.1rem;
}

.proof-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.proof-list div {
  min-height: 152px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.proof-list strong,
.proof-list span {
  display: block;
}

.proof-list strong {
  margin-bottom: 10px;
  font-size: 1.32rem;
}

.proof-list span {
  color: var(--muted);
}

.gallery-head {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}

.gallery-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter-btn {
  min-height: 40px;
  padding: 0 14px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line-dark);
  font-weight: 800;
  cursor: pointer;
}

.filter-btn.active {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
  gap: 14px;
}

.gallery-item {
  position: relative;
  min-height: 270px;
  padding: 0;
  overflow: hidden;
  background: var(--ink);
  border: 0;
  cursor: zoom-in;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item.is-hidden {
  display: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.gallery-item span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 8px 10px;
  background: rgba(18, 18, 18, 0.76);
  color: var(--white);
  font-weight: 800;
  text-align: left;
}

.gallery-item:hover img {
  transform: scale(1.045);
}

.process-section {
  background: var(--iron);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.process-grid article {
  padding: 30px;
  min-height: 248px;
  background: #24211f;
  border: 1px solid var(--line);
}

.process-grid span {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--amber);
  font-weight: 800;
  font-size: 0.92rem;
}

.process-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.contact-section {
  background: var(--paper);
  color: var(--ink);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 40px;
  align-items: stretch;
}

.contact-copy h2 {
  color: var(--ink);
}

.contact-copy > p {
  max-width: 620px;
  color: var(--muted-dark);
  font-size: 1.12rem;
}

.contact-actions {
  margin-top: 30px;
  flex-direction: column;
}

.contact-link {
  width: min(100%, 520px);
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line-dark);
  color: var(--ink);
}

.contact-link svg {
  flex: 0 0 auto;
  color: var(--red);
}

.contact-link strong,
.contact-link span span {
  display: block;
}

.contact-link span {
  color: var(--muted-dark);
}

.contact-link strong {
  margin-bottom: 2px;
  color: var(--ink);
}

.map-panel {
  min-height: 470px;
  overflow: hidden;
  border: 1px solid rgba(18, 18, 18, 0.22);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(18, 18, 18, 0.1);
}

.map-panel iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 470px;
  border: 0;
}

.site-footer {
  padding: 26px 0;
  background: var(--ink);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.footer-grid strong,
.footer-grid span {
  display: block;
}

.footer-grid span,
.footer-grid p {
  margin: 0;
  color: var(--muted);
}

.footer-credit {
  color: rgba(255, 250, 241, 0.62);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.footer-credit:hover,
.footer-credit:focus-visible {
  color: var(--white);
  outline: 0;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 58px 22px 22px;
  background: rgba(0, 0, 0, 0.88);
}

.lightbox.is-open {
  display: grid;
}

.lightbox img {
  max-width: min(1120px, 96vw);
  max-height: 86vh;
  object-fit: contain;
  box-shadow: var(--shadow);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  cursor: pointer;
}

.lightbox-close svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: auto auto auto;
  }

  .site-nav {
    gap: 0;
  }

  .header-call span {
    display: none;
  }

  .hero-content,
  .proof-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 620px;
  }

  .service-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .site-header {
    min-height: 68px;
    padding-inline: 14px;
    grid-template-columns: auto 1fr auto auto;
    gap: 8px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    font-size: 1rem;
  }

  .brand small {
    font-size: 0.68rem;
  }

  .nav-toggle {
    display: grid;
    justify-self: end;
    grid-column: 3;
    grid-row: 1;
  }

  .site-nav {
    position: fixed;
    inset: 68px 0 auto;
    display: grid;
    gap: 0;
    width: 100%;
    justify-self: stretch;
    padding: 12px 14px 18px;
    background: rgba(18, 18, 18, 0.98);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform 220ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
  }

  .site-nav a {
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
  }

  .header-call {
    grid-column: 4;
    grid-row: 1;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    justify-content: center;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    background-position: 58% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(18, 18, 18, 0.92), rgba(18, 18, 18, 0.56)),
      linear-gradient(0deg, rgba(18, 18, 18, 0.98) 0%, rgba(18, 18, 18, 0.08) 72%);
  }

  .hero-content {
    padding: 116px 0 32px;
    gap: 26px;
  }

  h1 {
    font-size: clamp(3.1rem, 16vw, 4.8rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3.05rem);
  }

  .hero-actions .btn {
    flex: 1 1 158px;
    justify-content: center;
  }

  .hero-panel {
    display: none;
  }

  .strip-grid {
    grid-template-columns: 1fr;
  }

  .strip-grid a,
  .strip-grid a:last-child {
    min-height: 82px;
    padding-inline: 14px;
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .section {
    padding: 68px 0;
  }

  .intro-grid,
  .service-grid,
  .proof-list,
  .process-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .intro-grid {
    gap: 16px;
  }

  .gallery-head {
    align-items: start;
    flex-direction: column;
  }

  .gallery-controls {
    justify-content: flex-start;
  }

  .gallery-item,
  .gallery-item.wide {
    grid-column: auto;
    min-height: 245px;
  }

  .proof-section {
    background-attachment: scroll;
  }

  .footer-grid {
    display: grid;
  }
}

@media (max-width: 430px) {
  .brand small {
    display: none;
  }

  .brand {
    gap: 8px;
  }

  .hero-actions {
    display: grid;
  }

  .btn {
    justify-content: center;
  }

  .gallery-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .filter-btn {
    width: 100%;
  }
}
