:root {
  --ink: #171514;
  --soft-ink: #3a3430;
  --muted: #716863;
  --paper: #fbfaf8;
  --milk: #f5f1ec;
  --rose: #e7d8d3;
  --clay: #9f4f3f;
  --clay-dark: #7c382e;
  --moss: #3e5148;
  --blue: #244a61;
  --line: #ddd6cf;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(23, 21, 20, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

body.is-locked {
  overflow: hidden;
}

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

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

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

button {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 32px;
  color: var(--white);
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(251, 250, 248, 0.92);
  border-bottom-color: rgba(23, 21, 20, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.brand-text {
  font-size: 0.98rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 650;
}

.site-nav a {
  position: relative;
}

.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  padding: 10px 16px;
  color: var(--white);
  background: var(--clay);
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 6px auto;
  background: currentColor;
  transition: transform 180ms ease;
}

.site-header.is-open .nav-toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.site-header.is-open .nav-toggle span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero-media {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.05fr 1fr 0.92fr 0.95fr;
  gap: 8px;
  opacity: 0.92;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 88svh;
  object-fit: cover;
}

.hero-media img:nth-child(1) {
  object-position: 52% 30%;
}

.hero-media img:nth-child(2) {
  object-position: 42% 32%;
}

.hero-media img:nth-child(3) {
  object-position: 52% 46%;
}

.hero-media img:nth-child(4) {
  object-position: 45% 50%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 15, 14, 0.86), rgba(18, 15, 14, 0.36) 44%, rgba(18, 15, 14, 0.18)),
    linear-gradient(0deg, rgba(18, 15, 14, 0.72), rgba(18, 15, 14, 0.04) 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
  padding: 156px 0 132px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: currentColor;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1,
.intro-grid h2,
.section-heading h2,
.experience-copy h2,
.contact-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 0.98;
}

.hero h1 {
  font-size: 5.2rem;
}

.hero-lead {
  max-width: 560px;
  margin: 24px 0 0;
  font-size: 1.28rem;
  color: rgba(255, 255, 255, 0.86);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 760;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--clay);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--clay-dark);
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.08);
}

.button-light {
  color: var(--ink);
  border-color: rgba(23, 21, 20, 0.24);
  background: rgba(255, 255, 255, 0.42);
}

.hero-facts {
  position: absolute;
  right: 32px;
  bottom: 28px;
  z-index: 2;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 720px;
}

.hero-facts span {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(15, 13, 12, 0.28);
  backdrop-filter: blur(12px);
  font-size: 0.84rem;
  font-weight: 700;
}

.intro-band {
  padding: 86px 0 78px;
  background: var(--milk);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 64px;
  align-items: start;
}

.section-kicker {
  color: var(--clay);
}

.intro-grid h2,
.section-heading h2,
.experience-copy h2,
.contact-copy h2 {
  font-size: 3rem;
}

.intro-grid p:not(.section-kicker),
.experience-copy p,
.contact-copy p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.services,
.portfolio,
.experience {
  padding: 104px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(280px, 1fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 40px;
}

.section-heading .section-kicker {
  align-self: start;
}

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

.service-card {
  min-height: 270px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.service-card:nth-child(2) {
  background: var(--moss);
  color: var(--white);
  border-color: var(--moss);
}

.service-card:nth-child(3) {
  background: var(--rose);
}

.service-number,
.steps span {
  display: inline-block;
  margin-bottom: 54px;
  color: var(--clay);
  font-size: 0.82rem;
  font-weight: 850;
}

.service-card:nth-child(2) .service-number {
  color: rgba(255, 255, 255, 0.72);
}

.service-card h3,
.steps h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

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

.service-card:nth-child(2) p {
  color: rgba(255, 255, 255, 0.76);
}

.portfolio {
  background: var(--soft-ink);
  color: var(--white);
}

.portfolio .section-kicker {
  color: var(--rose);
}

.gallery-grid {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 10px;
}

.gallery-item {
  position: relative;
  grid-column: span 2;
  aspect-ratio: 1 / 1.1;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #241f1c;
  color: var(--white);
  cursor: pointer;
}

.gallery-wide {
  grid-column: span 3;
  aspect-ratio: 1.4 / 1;
}

.gallery-tall {
  grid-row: span 2;
  aspect-ratio: 0.72 / 1.36;
}

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

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.04);
  opacity: 0.78;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(18, 15, 14, 0.64), transparent 48%);
  opacity: 0.84;
}

.gallery-item span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  text-align: left;
}

.experience {
  background: var(--paper);
}

.experience-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 72px;
}

.steps {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.steps article {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.steps span {
  margin: 0;
  color: var(--blue);
}

.contact-band {
  padding: 96px 0;
  background: linear-gradient(90deg, var(--rose), var(--milk));
}

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

.contact-image {
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-copy {
  max-width: 640px;
}

.site-footer {
  padding: 42px 0;
  background: var(--ink);
  color: var(--white);
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.site-footer p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.66);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
  color: rgba(255, 255, 255, 0.78);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--white);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 72px 84px;
  background: rgba(10, 9, 8, 0.92);
  color: var(--white);
}

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

.lightbox figure {
  width: min(880px, 100%);
  margin: 0;
}

.lightbox img {
  max-height: 78svh;
  width: 100%;
  object-fit: contain;
}

.lightbox figcaption {
  margin-top: 14px;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.lightbox-close {
  top: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  width: 52px;
  height: 68px;
  border-radius: 999px;
  transform: translateY(-50%);
  font-size: 3rem;
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

@media (max-width: 980px) {
  .site-header {
    padding: 0 24px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 12px 24px 24px;
    color: var(--ink);
    background: rgba(251, 250, 248, 0.96);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform 220ms ease;
  }

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

  .site-nav a {
    padding: 15px 0;
  }

  .nav-cta {
    width: fit-content;
    margin-top: 8px;
    padding: 10px 18px !important;
  }

  .hero-media {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 4rem;
  }

  .hero-lead {
    font-size: 1.16rem;
  }

  .hero-content {
    padding-bottom: 148px;
  }

  .hero-facts {
    left: 24px;
    right: 24px;
    justify-content: flex-start;
  }

  .intro-grid,
  .section-heading,
  .experience-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

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

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

@media (max-width: 680px) {
  .container,
  .gallery-grid {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    min-height: 68px;
    padding: 0 16px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .site-nav {
    top: 68px;
  }

  .hero {
    min-height: 90svh;
  }

  .hero-media,
  .hero-media img {
    min-height: 90svh;
  }

  .hero-content {
    width: min(100% - 28px, 760px);
    padding: 124px 0 164px;
  }

  .hero h1 {
    font-size: 3.1rem;
  }

  .hero-lead {
    font-size: 1.04rem;
  }

  .button {
    width: 100%;
  }

  .hero-facts {
    bottom: 18px;
    left: 14px;
    right: 14px;
  }

  .hero-facts span {
    font-size: 0.76rem;
    padding: 8px 10px;
  }

  .intro-band {
    padding: 64px 0 58px;
  }

  .services,
  .portfolio,
  .experience {
    padding: 74px 0;
  }

  .intro-grid h2,
  .section-heading h2,
  .experience-copy h2,
  .contact-copy h2 {
    font-size: 2.18rem;
  }

  .service-card {
    min-height: auto;
    padding: 24px;
  }

  .service-number {
    margin-bottom: 36px;
  }

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

  .gallery-item,
  .gallery-wide,
  .gallery-tall {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 5;
  }

  .steps article {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contact-band {
    padding: 68px 0;
  }

  .footer-layout {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .lightbox {
    padding: 72px 16px 34px;
  }

  .lightbox-nav {
    top: auto;
    bottom: 18px;
    width: 48px;
    height: 48px;
    transform: none;
    font-size: 2rem;
  }

  .lightbox-prev {
    left: 18px;
  }

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

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