:root {
  color-scheme: dark;
  --background: #000000;
  --text: #fff;
  --accent: #23b7d7;
  --rule: rgb(255 255 255 / 23%);
  --gutter: clamp(20px, 5vw, 80px);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; }
.shell { width: min(1440px, 100% - 2 * var(--gutter)); margin-inline: auto; }

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

.header { min-height: 108px; border-bottom: 1px solid var(--rule); }
.brand img { width: clamp(120px, 14vw, 174px); height: auto; filter: brightness(0) invert(1); }
.phone, .footer a { text-decoration: none; }
.phone { font-size: .92rem; text-align: right; line-height: 1.4; }
.phone span { white-space: nowrap; }
.footer span { margin-left: .35em; color: var(--accent); }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
  max-width: 1600px;
  margin-inline: auto;
}

.hero-copy {
  align-self: center;
  padding: clamp(36px, 6vw, 96px) clamp(20px, 3vw, 48px) clamp(36px, 6vw, 96px) var(--gutter);
}

.hero-media {
  position: relative;
  min-height: clamp(360px, 39vw, 610px);
}

.eyebrow, .services, figcaption, .footer {
  font-size: .73rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow { color: var(--accent); margin: 0 0 24px; line-height: 1.6; }
.eyebrow span { margin-inline: .35em; }
h1, h2 { margin: 0; font-weight: 400; }
h1 { font-size: clamp(2rem, 4.25vw, 4.6rem); line-height: 1.03; letter-spacing: -.052em; }
.intro { max-width: 45ch; margin: 24px 0 30px; color: var(--text); line-height: 1.65; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 49px;
  padding: 10px 22px;
  border: 1px solid rgb(255 255 255 / 55%);
  font-size: .9rem;
  text-decoration: none;
}

.primary { background: var(--text); border-color: var(--text); color: var(--background); }
.button:hover { background: var(--accent); border-color: var(--accent); color: var(--background); }
.hero-photo, .gallery img { width: 100%; object-fit: cover; }
.hero-photo {
  position: absolute;
  inset: 0;
  height: 100%;
  object-position: center 54%;
  mask: url("assets/paint.png") center / 100% 100% no-repeat;
}

.work, .contact, .footer { border-top: 1px solid var(--rule); }
.services { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 22px 0; margin: 0; list-style: none; color: var(--text); }
.services li + li { border-left: 1px solid var(--rule); padding-left: 24px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 28px); padding-bottom: 38px; }
figure { margin: 0; }
.gallery img { aspect-ratio: 5 / 4; height: auto; object-position: center 63%; }
figcaption { display: flex; gap: 12px; margin-top: 14px; }
figcaption span { color: var(--accent); }

.contact { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding-block: clamp(30px, 5vw, 64px); }
h2 { font-size: clamp(1.6rem, 3.1vw, 2.8rem); letter-spacing: -.035em; margin-bottom: 18px; }
.contact a { display: table; margin-top: 9px; }
address { color: var(--text); font-style: normal; line-height: 1.65; }
.footer { color: var(--text); min-height: 72px; }
.footer small { font: inherit; }

@media (max-width: 760px) {
  .header { min-height: 84px; }
  .hero-inner { grid-template-columns: 1fr; }
  h1 { font-size: clamp(1.95rem, 8.35vw, 4rem); }
  .hero-copy { padding-inline: var(--gutter); padding-bottom: 12px; }
  .hero-media { min-height: 0; aspect-ratio: 4 / 3; max-height: 420px; }
  .hero-photo { mask: none; }
  .services { gap: 10px 20px; }
  .services li + li { border: 0; padding: 0; }
}

@media (max-width: 520px) {
  .gallery, .contact { grid-template-columns: 1fr; }
  .gallery { gap: 26px; }
}

.gallery-photo { display: block; cursor: zoom-in; }
.gallery-photo:hover img { filter: brightness(1.09); }

.lightbox {
  max-width: calc(100% - 32px);
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}

.lightbox::backdrop { background: rgb(0 0 0 / 90%); }
.lightbox img { max-height: calc(100dvh - 32px); width: auto; height: auto; object-fit: contain; }

.lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(255 255 255 / 73%);
  border-radius: 50%;
  background: #000000;
  color: #fff;
  font: 28px/1 Arial, sans-serif;
  cursor: pointer;
}

.lightbox-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
