:root {
  color-scheme: light;
  --paper: #f7f5ef;
  --paper-strong: #fffdfa;
  --ink: #151515;
  --muted: #66605a;
  --line: #ded8ce;
  --red: #d63a2d;
  --teal: #0f766e;
  --yellow: #efb13d;
  --olive: #6f7f3c;
  --shadow: 0 22px 60px rgba(21, 21, 21, 0.14);
  --header-height: 76px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 1rem;
  line-height: 1.55;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 10px;
  transform: translateY(-180%);
  padding: 10px 14px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--paper-strong);
}

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

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 32px;
  border-bottom: 1px solid rgba(21, 21, 21, 0.1);
  background: rgba(247, 245, 239, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 182px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 6px;
  color: #2b2925;
  font-size: 0.95rem;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(214, 58, 45, 0.1);
  outline: none;
}

.hero {
  position: relative;
  min-height: 650px;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 80px 32px 96px;
  background: #171613;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(16, 15, 13, 0.92) 0%, rgba(16, 15, 13, 0.72) 44%, rgba(16, 15, 13, 0.36) 100%),
    linear-gradient(0deg, rgba(16, 15, 13, 0.36), rgba(16, 15, 13, 0));
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: grid;
  grid-template-columns: 1.05fr 0.8fr 0.9fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  transform: scale(1.02);
  opacity: 0.92;
}

.hero-art img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.04);
}

.hero-art img:nth-child(1) {
  grid-row: 1 / span 2;
}

.hero-art img:nth-child(2) {
  object-fit: contain;
  background: #ffffff;
}

.hero-art img:nth-child(5) {
  grid-column: 2 / span 2;
}

.hero-copy {
  width: min(100%, 940px);
  margin: 0 auto;
  color: #fffdfa;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffcf66;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: 4.6rem;
}

.hero-lede {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 253, 250, 0.9);
  font-size: 1.35rem;
  line-height: 1.45;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.button-primary {
  border-color: var(--red);
  background: var(--red);
  color: #fffdfa;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #b92f25;
  outline: none;
}

.button-secondary {
  border-color: rgba(255, 253, 250, 0.6);
  color: #fffdfa;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 253, 250, 0.12);
  outline: none;
}

.intro-band {
  padding: 26px 32px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-strong);
}

.intro-grid {
  width: min(100%, 1180px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 36px;
  align-items: center;
}

.intro-grid > p {
  margin: 0;
  color: #24211f;
  font-size: 1.16rem;
  line-height: 1.5;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.facts div {
  min-width: 0;
  padding-left: 14px;
  border-left: 3px solid var(--red);
}

.facts div:nth-child(2) {
  border-color: var(--teal);
}

.facts div:nth-child(3) {
  border-color: var(--yellow);
}

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

.facts dd {
  margin: 2px 0 0;
  font-weight: 800;
  line-height: 1.25;
}

.section {
  padding: 86px 32px;
}

.section-light {
  background: var(--paper);
}

.section-portfolio {
  background: #ffffff;
}

.section-heading {
  width: min(100%, 1180px);
  margin: 0 auto 34px;
}

.section-heading h2,
.about-copy h2,
.contact-copy h2 {
  max-width: 760px;
  font-size: 3rem;
}

.heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.service-grid {
  width: min(100%, 1180px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  position: relative;
  min-height: 245px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
}

.service-card h3 {
  margin-top: 44px;
  font-size: 1.35rem;
}

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

.service-marker {
  position: absolute;
  top: 22px;
  left: 24px;
  width: 36px;
  height: 12px;
  border-radius: 999px;
}

.marker-red {
  background: var(--red);
}

.marker-teal {
  background: var(--teal);
}

.marker-yellow {
  background: var(--yellow);
}

.marker-ink {
  background: var(--ink);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #d8d0c4;
  border-radius: 999px;
  background: #fffdfa;
  color: #302d29;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 800;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fffdfa;
  outline: none;
}

.portfolio-grid {
  width: min(100%, 1180px);
  margin: 0 auto;
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.portfolio-card {
  min-width: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #ece7dd;
}

.portfolio-card.is-hidden {
  display: none;
}

.portfolio-card.is-featured {
  grid-column: span 2;
  grid-row: span 2;
}

.portfolio-card.tall {
  grid-row: span 2;
}

.portfolio-trigger {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 260px;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
  text-align: left;
}

.portfolio-card.is-featured .portfolio-trigger,
.portfolio-card.tall .portfolio-trigger {
  min-height: 534px;
}

.portfolio-trigger img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 240ms ease;
}

.portfolio-card.tall .portfolio-trigger img {
  aspect-ratio: 1 / 2;
}

.portfolio-trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21, 21, 21, 0) 34%, rgba(21, 21, 21, 0.78) 100%);
  opacity: 0.88;
}

.portfolio-trigger:hover img,
.portfolio-trigger:focus-visible img {
  transform: scale(1.035);
}

.portfolio-trigger:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: -3px;
}

.portfolio-meta {
  position: absolute;
  z-index: 1;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: grid;
  gap: 3px;
  color: #fffdfa;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.34);
}

.portfolio-meta span {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.portfolio-meta strong {
  font-size: 1.08rem;
  line-height: 1.18;
}

.section-about {
  background: var(--paper);
}

.about-layout,
.contact-layout {
  width: min(100%, 1180px);
  margin: 0 auto;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: 48px;
  align-items: center;
}

.tagline {
  margin: 18px 0 0;
  color: var(--teal);
  font-size: 1.35rem;
  font-weight: 800;
}

.about-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 34px;
}

.about-columns h3 {
  font-size: 1.25rem;
}

.about-columns p {
  margin: 12px 0 0;
  color: var(--muted);
}

.about-images {
  position: relative;
  min-height: 560px;
}

.about-images img {
  position: absolute;
  border: 10px solid #fffdfa;
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.about-image-one {
  top: 0;
  left: 0;
  width: 70%;
  aspect-ratio: 0.86;
}

.about-image-two {
  right: 0;
  bottom: 0;
  width: 66%;
  aspect-ratio: 1.05;
}

.section-contact {
  background: #191816;
  color: #fffdfa;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.38fr) minmax(220px, 0.34fr);
  gap: 34px;
  align-items: center;
}

.contact-copy p {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 253, 250, 0.78);
  font-size: 1.16rem;
}

.contact-details {
  display: grid;
  gap: 6px;
  font-style: normal;
  line-height: 1.35;
}

.contact-details strong {
  font-size: 1.2rem;
}

.contact-details span {
  color: rgba(255, 253, 250, 0.78);
}

.contact-figure {
  justify-self: end;
  width: min(100%, 230px);
  border-radius: 8px;
  background: #fffdfa;
}

.site-footer {
  padding: 42px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #11100f;
  color: #fffdfa;
}

.footer-main,
.legal-grid {
  width: min(100%, 1180px);
  margin: 0 auto;
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-main img {
  width: 148px;
  filter: invert(1) grayscale(1) contrast(1.6);
}

.footer-main p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 253, 250, 0.72);
  text-align: right;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

details {
  border-top: 1px solid rgba(255, 253, 250, 0.18);
}

summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 800;
}

details p {
  margin: 0 0 14px;
  color: rgba(255, 253, 250, 0.72);
  font-size: 0.92rem;
}

.lightbox {
  width: min(94vw, 1160px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: visible;
  background: transparent;
  color: #fffdfa;
}

.lightbox::backdrop {
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(8px);
}

.lightbox figure {
  margin: 0;
  display: grid;
  gap: 12px;
}

.lightbox img {
  width: 100%;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 8px;
  background: #fffdfa;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.46);
}

.lightbox figcaption {
  min-height: 24px;
  text-align: center;
  font-weight: 800;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 253, 250, 0.5);
  border-radius: 50%;
  background: rgba(21, 21, 21, 0.72);
  color: #fffdfa;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-close {
  top: -54px;
  right: 0;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: -58px;
}

.lightbox-next {
  right: -58px;
}

.lightbox-close:hover,
.lightbox-close:focus-visible,
.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  border-color: var(--yellow);
  outline: none;
}

@media (max-width: 1020px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    min-height: 600px;
  }

  h1 {
    font-size: 3.4rem;
  }

  .section-heading h2,
  .about-copy h2,
  .contact-copy h2 {
    font-size: 2.35rem;
  }

  .intro-grid,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

  .heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-bar {
    justify-content: flex-start;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-figure {
    justify-self: start;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }
}

@media (max-width: 700px) {
  :root {
    --header-height: 112px;
  }

  .site-header,
  .hero,
  .intro-band,
  .section,
  .site-footer {
    padding-right: 20px;
    padding-left: 20px;
  }

  .brand img {
    width: 154px;
  }

  .main-nav a {
    padding-right: 10px;
    padding-left: 10px;
    font-size: 0.86rem;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 2px 4px;
    overflow: visible;
  }

  .hero {
    min-height: 560px;
    padding-top: 68px;
    padding-bottom: 76px;
  }

  .hero-art {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }

  .hero-art img:nth-child(1),
  .hero-art img:nth-child(5) {
    grid-column: auto;
    grid-row: auto;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(16, 15, 13, 0.88) 0%, rgba(16, 15, 13, 0.66) 100%),
      linear-gradient(90deg, rgba(16, 15, 13, 0.72), rgba(16, 15, 13, 0.2));
  }

  h1 {
    font-size: 2.72rem;
  }

  .hero-lede,
  .intro-grid > p,
  .contact-copy p {
    font-size: 1.04rem;
  }

  .facts,
  .service-grid,
  .portfolio-grid,
  .about-columns,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-card.is-featured,
  .portfolio-card.tall {
    grid-column: auto;
    grid-row: auto;
  }

  .portfolio-trigger,
  .portfolio-card.is-featured .portfolio-trigger,
  .portfolio-card.tall .portfolio-trigger {
    min-height: 320px;
  }

  .portfolio-trigger img,
  .portfolio-card.tall .portfolio-trigger img {
    aspect-ratio: 1 / 1;
  }

  .about-images {
    min-height: 440px;
  }

  .about-image-one {
    width: 74%;
  }

  .about-image-two {
    width: 72%;
  }

  .footer-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-main p {
    text-align: left;
  }

  .lightbox {
    width: 92vw;
  }

  .lightbox-close {
    top: -52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
