:root {
  --ink: #18231d;
  --forest: #1c3026;
  --forest-light: #294235;
  --paper: #f3efe6;
  --paper-deep: #e8e0d2;
  --white: #fbf9f4;
  --clay: #005a9d;
  --clay-dark: #00477b;
  --sand: #d4c3a5;
  --line: rgba(24, 35, 29, 0.18);
  --line-light: rgba(251, 249, 244, 0.18);
  --font-body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --container: 1260px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

::selection {
  background: var(--clay);
  color: var(--white);
}

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

a {
  color: inherit;
}

button {
  color: inherit;
  font: inherit;
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 12px 18px;
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  color: var(--white);
  transition: background-color 280ms ease, color 280ms ease, box-shadow 280ms ease;
}

.site-header__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 124px;
  transition: min-height 280ms ease;
}

.site-header.is-scrolled {
  background: rgba(243, 239, 230, 0.94);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(24, 35, 29, 0.12);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled .site-header__inner {
  min-height: 104px;
}

.site-header.nav-open {
  background: transparent;
  color: var(--white);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.brand {
  display: inline-grid;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.brand__logo {
  grid-area: 1 / 1;
  display: block;
  width: auto;
  height: 90px;
  transition: opacity 260ms ease, transform 300ms var(--ease), filter 300ms ease;
}

.brand__logo--light {
  opacity: 1;
  filter: drop-shadow(0 2px 9px rgba(0, 0, 0, 0.26));
}

.brand__logo--color {
  opacity: 0;
  filter: none;
}

.brand:hover .brand__logo {
  transform: translateY(-1px) scale(1.012);
}

.site-header.is-scrolled .brand__logo--light {
  opacity: 0;
}

.site-header.is-scrolled .brand__logo--color {
  opacity: 1;
}

.site-header.nav-open .brand__logo--light {
  opacity: 1;
}

.site-header.nav-open .brand__logo--color {
  opacity: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 42px);
  margin-left: auto;
  margin-right: clamp(28px, 4vw, 64px);
}

.site-nav > a {
  position: relative;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

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

.site-nav > a:not(.site-nav__phone):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav__phone {
  display: none;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color 220ms ease, border-color 220ms ease;
}

.header-phone svg {
  width: 16px;
  height: 16px;
}

.header-phone:hover {
  background: rgba(255, 255, 255, 0.1);
}

.site-header.is-scrolled .header-phone:hover {
  background: rgba(24, 35, 29, 0.06);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 17px;
  height: 1.5px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 220ms ease;
}

.nav-open .menu-toggle span:first-child {
  transform: translateY(2.75px) rotate(45deg);
}

.nav-open .menu-toggle span:last-child {
  transform: translateY(-2.75px) rotate(-45deg);
}

/* Typography helpers */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.165em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 34px;
  height: 1px;
  flex-shrink: 0;
  background: var(--clay);
}

.eyebrow--light {
  color: rgba(251, 249, 244, 0.78);
}

.eyebrow--light > span {
  background: var(--sand);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 54px;
  padding: 0 25px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.055em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease, transform 220ms var(--ease);
}

.button svg {
  width: 18px;
  height: 18px;
  transition: transform 220ms var(--ease);
}

.button:hover svg {
  transform: translateX(3px);
}

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

.button--primary:hover {
  background: var(--clay-dark);
  border-color: var(--clay-dark);
  transform: translateY(-2px);
}

.button--ghost {
  border-color: rgba(251, 249, 244, 0.52);
  color: var(--white);
}

.button--ghost:hover {
  background: rgba(251, 249, 244, 0.1);
  border-color: var(--white);
}

.button--dark {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--white);
}

.button--dark:hover {
  background: var(--forest-light);
  border-color: var(--forest-light);
  transform: translateY(-2px);
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  min-height: max(740px, 100svh);
  flex-direction: column;
  overflow: hidden;
  background: var(--forest);
  color: var(--white);
}

.hero__media,
.hero__media img,
.hero__grain,
.hero::after {
  position: absolute;
  inset: 0;
}

.hero__media {
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
  animation: hero-zoom 16s ease-out both;
}

@keyframes hero-zoom {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}

.hero::after {
  content: "";
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(12, 22, 16, 0.88) 0%, rgba(12, 22, 16, 0.62) 38%, rgba(12, 22, 16, 0.3) 65%, rgba(12, 22, 16, 0.42) 100%),
    linear-gradient(0deg, rgba(12, 22, 16, 0.82) 0%, rgba(12, 22, 16, 0.06) 43%, rgba(12, 22, 16, 0.35) 100%);
}

.hero__grain {
  z-index: 2;
  pointer-events: none;
  opacity: 0.2;
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), rgba(255, 255, 255, 0.12) 25%);
  mix-blend-mode: soft-light;
}
.hero__brandmark {
  position: absolute;
  right: 2vw;
  bottom: clamp(112px, 14vh, 170px);
  z-index: 2;
  width: clamp(360px, 43vw, 700px);
  opacity: 0.2;
  pointer-events: none;
}

.hero__brandmark img {
  width: 100%;
  height: auto;
}

.hero__inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-top: 160px;
  padding-bottom: 60px;
}

.hero h1 {
  max-width: 940px;
  margin-bottom: 28px;
  font-family: var(--font-display);
  font-size: clamp(54px, 7.1vw, 96px);
  font-weight: 500;
  letter-spacing: -0.052em;
  line-height: 0.99;
}

.hero h1 em {
  color: var(--sand);
  font-weight: 400;
}

.hero__lead {
  max-width: 585px;
  margin-bottom: 36px;
  color: rgba(251, 249, 244, 0.79);
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__foot {
  position: relative;
  z-index: 3;
  display: flex;
  gap: clamp(26px, 5vw, 70px);
  padding-top: 25px;
  padding-bottom: 31px;
  border-top: 1px solid rgba(251, 249, 244, 0.22);
}

.hero__fact {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(251, 249, 244, 0.74);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.115em;
  text-transform: uppercase;
}

.hero__dot {
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 0 0 4px rgba(184, 91, 53, 0.16);
}

/* Intro */

.intro {
  padding: clamp(88px, 10vw, 140px) 0 clamp(78px, 9vw, 120px);
}

.intro__grid {
  display: grid;
  grid-template-columns: minmax(140px, 0.28fr) minmax(0, 1fr);
  gap: 40px;
}

.intro__content h2 {
  max-width: 890px;
  margin-bottom: 44px;
  font-family: var(--font-display);
  font-size: clamp(45px, 5.7vw, 76px);
  font-weight: 500;
  letter-spacing: -0.047em;
  line-height: 1.02;
}

.intro__content h2 em,
.section-heading h2 em,
.contact h2 em {
  color: var(--clay);
  font-weight: 400;
}

.intro__copy {
  display: grid;
  max-width: 890px;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(26px, 4vw, 60px);
}

.intro__copy p {
  margin-bottom: 0;
  color: #4d574f;
  font-size: 15px;
  line-height: 1.8;
}

.intro__facts {
  display: grid;
  margin-top: clamp(64px, 8vw, 108px);
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.fact {
  padding: 28px clamp(20px, 3vw, 44px) 0 0;
}

.fact + .fact {
  padding-left: clamp(20px, 3vw, 44px);
  border-left: 1px solid var(--line);
}

.fact__label {
  display: block;
  margin-bottom: 11px;
  color: var(--clay);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.fact p {
  max-width: 280px;
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.65;
}

/* Section headings */

.section-heading {
  display: grid;
  margin-bottom: clamp(50px, 6vw, 82px);
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.55fr);
  gap: 60px;
  align-items: end;
}

.section-heading h2 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(46px, 5.3vw, 72px);
  font-weight: 500;
  letter-spacing: -0.048em;
  line-height: 1;
}

.section-heading__lead {
  max-width: 390px;
  margin-bottom: 4px;
  justify-self: end;
  color: #566058;
  font-size: 14px;
  line-height: 1.75;
}

.section-heading--light .section-heading__lead {
  color: rgba(251, 249, 244, 0.66);
}

/* Services */

.services {
  position: relative;
  overflow: hidden;
  padding: clamp(88px, 10vw, 135px) 0 clamp(75px, 8vw, 105px);
  background:
    radial-gradient(circle at 86% 0%, rgba(90, 122, 100, 0.24), transparent 33%),
    var(--forest);
  color: var(--white);
}

.services::before {
  content: "";
  position: absolute;
  top: -35%;
  right: -8%;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(251, 249, 244, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.services .container {
  position: relative;
  z-index: 1;
}

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

.service-card {
  display: flex;
  min-height: 345px;
  flex-direction: column;
  padding: clamp(27px, 3vw, 39px);
  border: 1px solid rgba(251, 249, 244, 0.15);
  background: rgba(251, 249, 244, 0.025);
  transition: background-color 280ms ease, border-color 280ms ease, transform 280ms var(--ease);
}

.service-card:hover {
  border-color: rgba(251, 249, 244, 0.28);
  background: rgba(251, 249, 244, 0.055);
  transform: translateY(-5px);
}

.service-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: auto;
}

.service-card__num {
  color: var(--sand);
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
}

.service-card__icon {
  width: 51px;
  height: 51px;
  color: var(--sand);
  opacity: 0.9;
}

.service-card h3 {
  margin-top: 52px;
  margin-bottom: 13px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.service-card p {
  max-width: 320px;
  margin-bottom: 0;
  color: rgba(251, 249, 244, 0.63);
  font-size: 13.5px;
  line-height: 1.72;
}

.services__note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(38px, 4vw, 58px);
  padding-top: 25px;
  border-top: 1px solid var(--line-light);
  font-size: 12px;
}

.services__note > span {
  color: rgba(251, 249, 244, 0.56);
}

.services__note a {
  color: var(--white);
  text-decoration: none;
}

.services__note a span {
  display: inline-block;
  margin-left: 7px;
  color: var(--sand);
  transition: transform 220ms var(--ease);
}

.services__note a:hover span {
  transform: translate(2px, -2px);
}

/* Work */

.work {
  padding: clamp(90px, 10vw, 142px) 0 clamp(90px, 10vw, 140px);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 2vw, 24px);
  align-items: start;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 1px;
  background: var(--paper-deep);
  cursor: zoom-in;
  isolation: isolate;
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(10, 18, 13, 0.68) 0%, transparent 42%);
  opacity: 0.7;
  transition: opacity 300ms ease;
}

.gallery-card:hover::after {
  opacity: 1;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease), filter 500ms ease;
}

.gallery-card:hover img {
  transform: scale(1.035);
  filter: saturate(1.05);
}

.gallery-card--a {
  grid-column: 1 / 7;
  aspect-ratio: 4 / 5;
}

.gallery-card--b {
  grid-column: 7 / 13;
  margin-top: clamp(45px, 8vw, 105px);
  aspect-ratio: 4 / 5;
}

.gallery-card--c {
  grid-column: 1 / 5;
  margin-top: 20px;
  aspect-ratio: 3 / 4;
}

.gallery-card--d {
  grid-column: 5 / 9;
  margin-top: clamp(55px, 9vw, 125px);
  aspect-ratio: 4 / 3;
}

.gallery-card--e {
  grid-column: 9 / 13;
  margin-top: 20px;
  aspect-ratio: 3 / 4;
}

.gallery-card__meta {
  position: absolute;
  right: 20px;
  bottom: 17px;
  left: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--white);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
}

.gallery-card__meta > span:first-child {
  color: var(--sand);
  font-family: var(--font-display);
  font-size: 13px;
  font-style: italic;
  letter-spacing: 0;
}

/* Process */

.process {
  position: relative;
  overflow: hidden;
  padding: clamp(88px, 10vw, 136px) 0;
  background: var(--paper-deep);
}

.process::after {
  content: "";
  position: absolute;
  right: -3%;
  bottom: -22px;
  width: clamp(440px, 58vw, 900px);
  aspect-ratio: 1200 / 397;
  background: url("images/logo-color.png") center / contain no-repeat;
  opacity: 0.09;
  pointer-events: none;
}

.process__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(60px, 9vw, 130px);
}

.process__intro h2 {
  max-width: 510px;
  margin-bottom: 26px;
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 65px);
  font-weight: 500;
  letter-spacing: -0.048em;
  line-height: 1.02;
}

.process__intro > p:not(.eyebrow) {
  max-width: 370px;
  margin-bottom: 34px;
  color: #566058;
  font-size: 14px;
  line-height: 1.78;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 33px 0 35px;
  border-top: 1px solid rgba(24, 35, 29, 0.22);
}

.step:last-child {
  border-bottom: 1px solid rgba(24, 35, 29, 0.22);
}

.step__num {
  color: var(--clay);
  font-family: var(--font-display);
  font-size: 15px;
  font-style: italic;
}

.step h3 {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: clamp(23px, 2.3vw, 29px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.step p {
  max-width: 460px;
  margin-bottom: 0;
  color: #586159;
  font-size: 13.5px;
  line-height: 1.72;
}

/* Contact */

.contact {
  padding: clamp(90px, 10vw, 140px) 0;
  background: var(--paper);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.7fr);
  gap: clamp(60px, 9vw, 140px);
  align-items: start;
}

.contact__main h2 {
  max-width: 690px;
  margin-bottom: 25px;
  font-family: var(--font-display);
  font-size: clamp(47px, 5.8vw, 77px);
  font-weight: 500;
  letter-spacing: -0.052em;
  line-height: 0.99;
}

.contact__lead {
  max-width: 485px;
  margin-bottom: 34px;
  color: #566058;
  font-size: 15px;
  line-height: 1.75;
}

.contact__phone {
  display: inline-block;
  margin-bottom: 28px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  text-decoration: none;
  transition: color 200ms ease, border-color 200ms ease;
}

.contact__phone:hover {
  border-color: var(--clay);
  color: var(--clay);
}

.contact__details {
  padding-top: 10px;
}

.contact-block {
  padding: 0 0 29px;
  border-bottom: 1px solid var(--line);
}

.contact-block + .contact-block {
  padding-top: 27px;
}

.contact-block__label {
  display: block;
  margin-bottom: 12px;
  color: var(--clay);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.145em;
  text-transform: uppercase;
}

.contact-block address {
  margin-bottom: 13px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 25px);
  font-style: normal;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.contact-block p {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.7;
}

.contact-block p + p {
  margin-top: 2px;
}

.contact-block p a {
  text-decoration: none;
}

.contact-block p a:hover {
  color: var(--clay);
}

.contact-block__muted {
  color: #667068;
  font-size: 14px !important;
}

.contact-block--note {
  border-bottom: 0;
}

.contact-block--note p {
  max-width: 300px;
  color: #566058;
  font-size: 14px;
  line-height: 1.7;
}

.text-link {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.075em;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link span {
  display: inline-block;
  margin-left: 5px;
  color: var(--clay);
  transition: transform 220ms var(--ease);
}

.text-link:hover span {
  transform: translate(2px, -2px);
}

/* Footer */

.site-footer {
  padding: clamp(58px, 7vw, 86px) 0 27px;
  background: var(--forest);
  color: var(--white);
}

.site-footer__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
  padding-bottom: clamp(52px, 7vw, 82px);
  border-bottom: 1px solid var(--line-light);
}

.brand--footer .brand__logo {
  height: 130px;
}

.site-footer__statement {
  margin-bottom: 0;
  color: var(--sand);
  font-family: var(--font-display);
  font-size: clamp(24px, 2.7vw, 35px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.25;
  text-align: right;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 27px;
  color: rgba(251, 249, 244, 0.52);
  font-size: 10px;
}

.site-footer__bottom p {
  margin-bottom: 0;
}

.site-footer__links {
  display: flex;
  gap: 25px;
}

.site-footer__links a {
  color: rgba(251, 249, 244, 0.72);
  text-decoration: none;
  transition: color 200ms ease;
}

.site-footer__links a:hover {
  color: var(--white);
}

/* Lightbox */

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
}

.lightbox::backdrop {
  background: rgba(9, 15, 11, 0.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.lightbox__topbar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(20px, 4vw, 48px);
}

.lightbox__counter {
  color: rgba(251, 249, 244, 0.6);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.lightbox__close,
.lightbox__arrow {
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(251, 249, 244, 0.25);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  place-items: center;
  transition: background-color 200ms ease, border-color 200ms ease;
}

.lightbox__close:hover,
.lightbox__arrow:hover {
  border-color: rgba(251, 249, 244, 0.55);
  background: rgba(251, 249, 244, 0.08);
}

.lightbox__close svg,
.lightbox__arrow svg {
  width: 21px;
  height: 21px;
}

.lightbox__stage {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  gap: clamp(15px, 3vw, 42px);
  padding: 78px clamp(20px, 4vw, 46px) 35px;
}

.lightbox__figure {
  display: flex;
  max-width: min(1000px, 80vw);
  max-height: 82vh;
  margin: 0;
  flex-direction: column;
  align-items: center;
}

.lightbox__figure img {
  width: auto;
  max-width: 100%;
  max-height: calc(82vh - 40px);
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
}

.lightbox__figure figcaption {
  margin-top: 17px;
  color: rgba(251, 249, 244, 0.65);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-align: center;
  text-transform: uppercase;
}

.lightbox__arrow {
  flex-shrink: 0;
}

/* Responsive */

@media (max-width: 1050px) {
  .site-nav {
    gap: 24px;
    margin-right: 28px;
  }

  .header-phone span {
    display: none;
  }

  .header-phone {
    width: 48px;
    justify-content: center;
    padding: 0;
  }

  .intro__content h2 {
    max-width: 750px;
  }

  .gallery-card--a,
  .gallery-card--b {
    aspect-ratio: 3 / 4;
  }

  .contact__grid {
    gap: 60px;
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 96px;
  }

  .site-header__inner {
    min-height: 96px;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 110px var(--gutter) 40px;
    background:
      radial-gradient(circle at 90% 12%, rgba(95, 128, 105, 0.25), transparent 32%),
      var(--forest);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-24px);
    transition: opacity 300ms ease, transform 350ms var(--ease), visibility 0s linear 350ms;
  }

  .site-nav::before {
    content: "Custom crates. Built around what matters.";
    max-width: 380px;
    margin-bottom: 28px;
    color: var(--sand);
    font-family: var(--font-display);
    font-size: 19px;
    font-style: italic;
    line-height: 1.35;
  }

  .site-nav > a {
    padding: 17px 0;
    border-bottom: 1px solid rgba(251, 249, 244, 0.15);
    font-family: var(--font-display);
    font-size: clamp(31px, 6vw, 42px);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1.1;
  }

  .site-nav > a::after {
    display: none;
  }

  .site-nav__phone {
    display: block;
    margin-top: 27px;
    padding: 0 !important;
    border-bottom: 0 !important;
    color: var(--sand);
    font-family: var(--font-body) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.09em !important;
    text-transform: uppercase;
  }

  .nav-open .site-nav {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .menu-toggle {
    display: block;
  }

  .hero__inner {
    padding-top: 130px;
  }

  .hero h1 {
    max-width: 700px;
  }

  .intro__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .intro__content h2 {
    margin-bottom: 34px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section-heading__lead {
    max-width: 520px;
    justify-self: start;
  }

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

  .service-card {
    min-height: 260px;
  }

  .service-card h3 {
    margin-top: 48px;
  }

  .service-card p {
    max-width: 500px;
  }

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

  .gallery-card--a,
  .gallery-card--b,
  .gallery-card--c,
  .gallery-card--d,
  .gallery-card--e {
    grid-column: auto;
    margin-top: 0;
    aspect-ratio: 3 / 4;
  }

  .gallery-card--a {
    grid-column: 1 / -1;
    aspect-ratio: 4 / 3;
  }

  .gallery-card--d {
    aspect-ratio: 4 / 3;
  }

  .process__grid {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .process__intro h2 {
    max-width: 600px;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .contact__details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 32px;
  }

  .contact-block {
    padding-bottom: 25px;
  }

  .contact-block--note {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    padding-top: 25px;
  }

  .site-footer__top {
    align-items: flex-start;
  }

  .site-footer__statement {
    text-align: left;
  }
}

@media (max-width: 620px) {
  .hero__brandmark {
    display: none;
  }

  .brand__logo {
    height: 62px;
  }

  .brand--footer .brand__logo {
    height: 92px;
  }

  .site-header__actions {
    gap: 8px;
  }

  .hero {
    min-height: max(680px, 100svh);
  }

  .hero__inner {
    padding-top: 120px;
    padding-bottom: 42px;
  }

  .hero h1 {
    margin-bottom: 22px;
    font-size: clamp(45px, 12.7vw, 64px);
  }

  .hero__lead {
    margin-bottom: 28px;
    font-size: 15px;
    line-height: 1.65;
  }

  .hero__actions {
    width: 100%;
    flex-direction: column;
  }

  .hero__actions .button {
    width: 100%;
    flex: none;
    padding: 0 16px;
  }

  .hero__foot {
    display: grid;
    gap: 10px;
    padding-top: 19px;
    padding-bottom: 24px;
  }

  .hero__fact {
    font-size: 9px;
  }

  .intro__copy {
    grid-template-columns: 1fr;
    gap: 19px;
  }

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

  .fact {
    padding: 22px 0;
  }

  .fact + .fact {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .fact p {
    max-width: 330px;
  }

  .services__note {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

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

  .gallery-card--a,
  .gallery-card--b,
  .gallery-card--c,
  .gallery-card--d,
  .gallery-card--e {
    grid-column: auto;
    aspect-ratio: 4 / 5;
  }

  .gallery-card--d {
    aspect-ratio: 4 / 3;
  }

  .step {
    grid-template-columns: 38px 1fr;
    gap: 14px;
  }

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

  .contact-block--note {
    grid-column: auto;
  }

  .contact__main .button {
    width: 100%;
  }

  .site-footer__top {
    flex-direction: column;
    gap: 34px;
  }

  .site-footer__statement {
    font-size: 26px;
  }

  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .site-footer__links {
    flex-wrap: wrap;
    gap: 18px;
  }

  .lightbox__stage {
    gap: 8px;
    padding-inline: 12px;
  }

  .lightbox__figure {
    max-width: calc(100vw - 100px);
  }

  .lightbox__close,
  .lightbox__arrow {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 380px) {
  .header-phone {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
