:root {
  color-scheme: light;
  --paper: #f4f1e9;
  --ink: #171714;
  --muted: #55534c;
  --accent: #ff6600;
  --accent-hover: #f35e00;
  --accent-text: #ac4200;
  --line: #d6d1c6;
  --display: Impact, Haettenschweiler, "Arial Narrow", "Franklin Gothic Condensed", sans-serif;
  --text: "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(1.25rem, 5.3vw, 5.5rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.6 var(--text);
}

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

a {
  color: inherit;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

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

h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.02;
}

h2 {
  font-size: clamp(2.6rem, 4.6vw, 4.625rem);
  letter-spacing: -0.015em;
}

.container {
  width: min(100% - 2 * var(--gutter), 87rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 2;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  background: white;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner,
.site-nav,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-inner {
  min-height: 5.25rem;
  gap: 1rem;
}

.brand {
  display: block;
  flex: 0 1 auto;
}

.brand img {
  width: 9.5rem;
  height: auto;
  mix-blend-mode: multiply;
}

.site-nav {
  gap: clamp(1.25rem, 2.7vw, 2.75rem);
}

.nav-link {
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--accent-text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.125rem;
  padding: 0.65rem 1.2rem;
  border: 1px solid transparent;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button-primary {
  background: var(--accent);
  color: var(--ink);
}

.button-primary:hover {
  background: var(--accent-hover);
}

.button-primary:focus-visible {
  outline-color: var(--accent-text);
}

.button-outline {
  border-color: var(--ink);
}

.button-outline:hover {
  background: var(--ink);
  color: var(--paper);
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--paper);
}

.hero-copy {
  align-self: center;
  padding: clamp(3.5rem, 7vw, 7rem) clamp(2rem, 3vw, 4.25rem);
  padding-left: max(var(--gutter), calc((100vw - 87rem) / 2));
}

.hero h1 {
  font-size: clamp(3.35rem, 5.75vw, 6.9rem);
  letter-spacing: -0.018em;
}

.hero h1 span {
  color: var(--accent-text);
}

.hero-description {
  max-width: 29rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.85rem;
}

.hero-photo {
  position: relative;
  min-height: clamp(30rem, 42vw, 42rem);
  margin: 0;
  overflow: hidden;
  background: #302f29;
}

.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
}

.hero-photo figcaption {
  position: absolute;
  bottom: 1.1rem;
  left: 1.1rem;
  max-width: calc(100% - 2.2rem);
  padding: 0.4rem 0.75rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.875rem;
  font-weight: 650;
}

.section {
  padding-block: clamp(3.25rem, 6vw, 6rem);
}

.services,
.site-footer {
  background: var(--ink);
  color: var(--paper);
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: clamp(1rem, 2.4vw, 2.5rem);
  margin-top: 2rem;
}

.service-grid article {
  padding-top: 1.15rem;
  border-top: 2px solid #67645b;
}

.service-grid article:nth-child(-n+2) {
  border-color: var(--accent);
}

.service-grid h3 {
  font-size: 1.125rem;
  line-height: 1.25;
}

.service-grid p {
  margin-top: 0.6rem;
  color: #cfcbc1;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.7rem 1.5rem;
  margin-bottom: 1.8rem;
}

.text-link {
  font-weight: 700;
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
}

.work .text-link {
  color: var(--accent-text);
}

.text-link:hover {
  text-decoration-thickness: 2px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 2rem);
}

.photo-card {
  display: block;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.photo-frame {
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: #d5d0c5;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 54%;
  transition: transform 220ms ease;
}

.photo-card:hover img {
  transform: scale(1.04);
}

.photo-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding-block: 0.7rem;
  font-weight: 700;
  line-height: 1.3;
}

.photo-expand {
  display: grid;
  flex: 0 0 1.75rem;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  border: 1px solid var(--line);
  font-weight: 500;
}

.photo-card:hover .photo-expand {
  background: var(--ink);
  color: var(--paper);
}

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

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  align-items: center;
  gap: clamp(1.5rem, 6vw, 6rem);
}

.contact p {
  max-width: 29rem;
  font-size: 1.125rem;
}

.contact-actions {
  display: grid;
  justify-items: start;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.phone-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem 1rem;
  width: min(100%, 26rem);
  padding: 0.85rem 1rem;
  background: var(--ink);
  color: var(--paper);
}

.phone-number {
  display: grid;
  gap: 0.15rem;
  line-height: 1.2;
  text-decoration: none;
}

.phone-number span {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
}

.phone-number strong {
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  font-variant-numeric: tabular-nums;
}

.phone-number:hover strong {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.phone-text {
  min-height: 2.75rem;
  padding-inline: 0.85rem;
}

.phone-text:focus-visible {
  outline-color: var(--paper);
}

.footer-inner {
  gap: 1rem;
  padding-block: 1.6rem;
}

.site-footer .brand img {
  width: 8rem;
  filter: invert(1);
  mix-blend-mode: screen;
}

.footer-location {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
}

.footer-location img {
  width: 3.75rem;
  height: auto;
}

.gallery-dialog {
  width: min(92vw, 62rem);
  max-height: 94dvh;
  padding: 1rem;
  border: 1px solid #5a574f;
  background: var(--ink);
  color: var(--paper);
}

.gallery-dialog::backdrop {
  background: rgb(0 0 0 / 82%);
}

.gallery-top,
.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.gallery-top {
  font-weight: 700;
}

.gallery-photo {
  display: grid;
  height: min(69dvh, 54rem);
  margin-block: 0.75rem;
  place-items: center;
  background: #0b0b0a;
}

.gallery-photo img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.gallery-button {
  min-height: 2.75rem;
  padding-inline: 0.8rem;
  border-color: #7b786e;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.gallery-button:hover {
  background: var(--paper);
  color: var(--ink);
}

body:has(.gallery-dialog[open]) {
  overflow: hidden;
}

@media (max-width: 64rem) {
  .hero-actions .button {
    padding-inline: 0.9rem;
  }
}

@media (max-width: 56rem) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 3.3rem var(--gutter);
  }

  .hero h1 {
    font-size: clamp(2.8rem, 10.1vw, 5.65rem);
  }

  .hero-photo {
    min-height: clamp(19rem, 66vw, 29rem);
  }

  .service-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 1.5rem;
  }
}

@media (max-width: 36rem) {
  .header-inner {
    min-height: 4.5rem;
  }

  .brand img {
    width: 7.75rem;
  }

  .site-nav .nav-link {
    display: none;
  }

  .site-nav .button {
    min-height: 2.75rem;
    padding-inline: 0.7rem;
    font-size: 0.875rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .photo-grid,
  .contact-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 25rem) {
  .hero h1 {
    font-size: clamp(2.35rem, 11.65vw, 2.9rem);
  }

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

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