:root {
  --dark: #171200;
  --cream: #fffeed;
  --gold: #847539;
  --muted: #ada37c;
  --stone: #666558;
  --card: #2c2713;
  --white: #ffffff;
  --black: #000000;
  --ease: cubic-bezier(0.645, 0.045, 0.355, 1);
  --font: "Work Sans", sans-serif;
  --font-alt: "Figtree", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --fs-display: clamp(40px, 5.156vw, 96px);
  --fs-xl: clamp(32px, 3.75vw, 64px);
  --fs-lg: clamp(24px, 2.344vw, 40px);
  --fs-md: clamp(20px, 1.875vw, 32px);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 200;
  color: var(--dark);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
  font-weight: inherit;
  font-size: inherit;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--cream);
  color: var(--dark);
}

.skip-link:focus {
  left: 10px;
  top: 10px;
}

/* ---------- Type ---------- */

.label {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
}

.display {
  font-weight: 600;
  font-size: var(--fs-display);
  line-height: 1.2;
}

.title-xl {
  font-weight: 200;
  font-size: var(--fs-xl);
  line-height: 1.2;
}

.title-lg {
  font-weight: 200;
  font-size: var(--fs-lg);
  line-height: 1.4;
}

.title-md {
  font-weight: 600;
  font-size: var(--fs-md);
  line-height: 1.2;
}

.body {
  font-weight: 200;
  font-size: 18px;
  line-height: 1.4;
}

.body-alt {
  font-family: var(--font-alt);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--black);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  min-width: 180px;
  padding: 0 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn .icon {
  width: 14px;
  height: 14px;
  flex: none;
  fill: currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.btn:hover .icon,
.btn:focus-visible .icon {
  transform: rotate(-43deg);
}

.btn--dark { background: var(--dark); color: var(--cream); }
.btn--dark:hover { background: var(--gold); color: var(--cream); }

.btn--dark-white { background: var(--dark); color: var(--white); }
.btn--dark-white:hover { background: var(--gold); color: var(--cream); }

.btn--cream { background: var(--cream); color: var(--dark); }
.btn--cream:hover { background: var(--black); color: var(--white); }

.btn--white { background: var(--white); color: var(--dark); }
.btn--white:hover { background: var(--gold); color: var(--white); }

.btn--stone { background: var(--stone); color: var(--cream); }
.btn--stone:hover { background: var(--cream); color: var(--dark); }

.btn--phone { background: var(--dark); color: var(--cream); padding: 0 18px; gap: 12px; }
.btn--phone .icon { transform: none; width: 13px; height: 13px; }
.btn--phone:hover { background: var(--cream); color: var(--dark); }
.btn--phone:hover .icon { transform: rotate(-12deg); }

.btn--footer { background: var(--cream); color: var(--dark); justify-content: flex-start; padding: 0 19px; }
.btn--footer:hover { background: var(--dark); color: var(--white); }

.btn--pill {
  height: 43px;
  min-width: 142px;
  padding: 0 20px 0 14px;
  border-radius: 300px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-alt);
  font-weight: 400;
  font-size: 14px;
  gap: 12px;
}

.btn--pill .icon-circle {
  width: 20px;
  height: 20px;
  flex: none;
  transition: transform 0.3s ease;
}

.btn--pill:hover { background: var(--gold); }
.btn--pill:hover .icon-circle { transform: translateX(3px); }

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 50;
  height: 111px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3.472%;
  background: var(--black);
  color: var(--cream);
}

.site-header--overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  justify-content: flex-end;
}

.site-header__logo {
  max-width: 260px;
  font-weight: 600;
  font-size: var(--fs-md);
  line-height: 1.2;
  color: var(--cream);
}

.site-header__right {
  display: flex;
  align-items: center;
  gap: 40px;
}

.site-nav ul {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  font-weight: 200;
  font-size: 16px;
  line-height: 19px;
  color: var(--cream);
  text-underline-offset: 3px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--cream);
}

.menu-toggle span {
  display: block;
  width: 32px;
  height: 2px;
  margin: 8px auto;
  background: currentColor;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  background: var(--dark);
  color: var(--cream);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-weight: 200;
  font-size: 28px;
}

.mobile-menu a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.mobile-menu__close {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--cream);
}

.mobile-menu__close::before,
.mobile-menu__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 2px;
  background: currentColor;
}

.mobile-menu__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.mobile-menu__close::after { transform: translate(-50%, -50%) rotate(-45deg); }

body.menu-open {
  overflow: hidden;
}

/* ---------- Home: hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 100px 3.9% 100px 6.111%;
  background: var(--dark);
  color: var(--cream);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.hero__content {
  position: relative;
  width: 48.15%;
}

.hero__sub {
  margin-top: 17px;
}

.hero__content .btn {
  margin-top: 26px;
  min-width: 314px;
  padding: 0 24px 0 9px;
  justify-content: flex-start;
  gap: 24px;
}

.hero__text {
  margin-top: 23px;
}

.hero__logo {
  position: relative;
  margin-left: auto;
  width: 44.21%;
  aspect-ratio: 1;
  object-fit: cover;
}

/* ---------- Home: about ---------- */

.about-intro {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 815px;
  padding: 0 2.7% 0 8.958%;
  background: var(--cream);
}

.about-intro__text {
  width: 26.42%;
  flex: none;
}

.about-intro__text .btn {
  justify-content: flex-start;
}

.about-intro__text h3 {
  margin-top: 18px;
  max-width: 336px;
  line-height: 1.4;
}

.about-intro__text p {
  margin-top: 17px;
  max-width: 318px;
}

.about-intro__text .btn {
  margin-top: 33px;
}

.about-intro__media {
  margin-left: auto;
  width: 65.25%;
  aspect-ratio: 1;
  margin-block: -15px;
}

.about-intro__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---------- Home: recent projects strip ---------- */

.projects-strip {
  padding: 80px 0 56px;
  background: var(--dark);
  color: var(--white);
}

.projects-strip__head {
  padding: 0 3.472%;
}

.projects-strip__head h2 {
  width: 83.66%;
}

.projects-strip__head p {
  margin-top: 20px;
}

.projects-strip__head .btn {
  margin-top: 38px;
  min-width: 190px;
  padding: 0 24px 0 4px;
  justify-content: flex-start;
}

.projects-strip .slider {
  margin-top: 97px;
}

/* ---------- Slider ---------- */

.slider {
  position: relative;
}

.slider__track {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 3.264%;
  scroll-padding: 0 3.264%;
}

.slider__track::-webkit-scrollbar {
  display: none;
}

.slider__item {
  position: relative;
  flex: none;
  width: 19.79vw;
  min-width: 220px;
  aspect-ratio: 285 / 380;
  border-radius: 10px;
  overflow: hidden;
  scroll-snap-align: start;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
}

.slider__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.slider__arrow svg {
  width: 16px;
  height: 16px;
}

.slider__arrow--prev { left: 3.472%; }
.slider__arrow--next { right: 3.472%; }

.slider__arrow[hidden] {
  display: none;
}

/* Mosaic slider (services page) */

.mosaic .slider__track {
  gap: 0;
  padding: 0 3.472%;
  scroll-padding: 0 3.472%;
  scroll-snap-type: x mandatory;
}

.mosaic__group {
  flex: none;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  width: 93.06vw;
  height: min(871px, 60.5vw);
  scroll-snap-align: start;
}

.mosaic__group > :first-child {
  grid-row: span 2;
}

.mosaic .slider__item {
  width: auto;
  min-width: 0;
  aspect-ratio: auto;
  border-radius: 0;
  scroll-snap-align: none;
}

.mosaic .slider__arrow--next { right: 4.86%; margin-top: -25px; width: 50px; height: 50px; }
.mosaic .slider__arrow--prev { left: 4.86%; margin-top: -25px; width: 50px; height: 50px; }

/* ---------- Gallery items (shared hover) ---------- */

.g-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 2.2s cubic-bezier(0.14, 0.4, 0.09, 0.99);
}

.g-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(23, 18, 0, 0.4);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.g-item:hover img,
.g-item:focus-visible img {
  transform: scale(1.1);
}

.g-item:hover::after,
.g-item:focus-visible::after {
  opacity: 1;
}

.g-item--shrink img {
  transition: transform 0.4s ease;
}

.g-item--shrink:hover img,
.g-item--shrink:focus-visible img {
  transform: scale(0.985);
}

.g-item--shrink::after {
  display: none;
}

/* ---------- Home: services grid ---------- */

.services-grid {
  padding: 65px 0 11px;
  background: var(--white);
}

.services-grid > h2 {
  text-align: center;
}

.services-grid__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 40px;
  row-gap: 40px;
  width: 74.93%;
  max-width: 1079px;
  margin: 53px auto 0;
}

.service-card {
  min-height: 646px;
  text-align: center;
}

.service-card__img {
  aspect-ratio: 333 / 435;
  border-radius: 10px;
  overflow: hidden;
}

.service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.service-card p:first-of-type {
  margin-top: 19px;
}

.services-grid__more {
  display: flex;
  justify-content: center;
  margin-top: -9px;
}

/* ---------- Home: why choose ---------- */

.why {
  padding: 120px 20px 71px;
  background: var(--dark);
  color: var(--cream);
  text-align: center;
}

.why h3 {
  max-width: 752px;
  margin: 31px auto 0;
}

.why__text {
  max-width: 687px;
  margin: 22px auto 0;
  font-size: 18px;
  line-height: 1.33;
}

.why__call {
  margin-top: 42px;
}

.why__phone {
  margin-top: 1px;
  color: var(--muted);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--cream);
  color: var(--dark);
}

.site-footer__main {
  position: relative;
  display: grid;
  grid-template-columns: 25.4% 30.03% 23.62% 1fr;
  grid-template-rows: auto 1fr;
  min-height: 450px;
  padding: 80px 3.4% 40px 3.4%;
}

.site-footer__logo {
  grid-column: 1 / -1;
  max-width: 266px;
  margin-left: 3.4%;
  font-weight: 600;
  font-size: var(--fs-md);
  line-height: 1.2;
}

.site-footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 29px;
  margin: 43px 0 0;
  padding: 0;
  list-style: none;
}

.site-footer__nav a {
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
}

.site-footer__nav a:hover,
.site-footer__nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__col {
  font-size: 16px;
  line-height: 1.3;
  text-transform: uppercase;
}

.site-footer__col--serving {
  padding-top: 35px;
}

.site-footer__col--serving p:nth-child(2) {
  margin-top: 39px;
}

.site-footer__col--quotes {
  max-width: 240px;
  padding-top: 31px;
}

.site-footer__col--quotes p:nth-child(4) {
  margin-top: 21px;
}

.site-footer__col--cta {
  padding-top: 100px;
}

.site-footer__bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 60px;
  padding: 0 3.472%;
  background: var(--dark);
  color: var(--cream);
  font-size: 16px;
}

/* ---------- Page intro (inner pages) ---------- */

.page-intro {
  padding: 102px 3.89% 80px;
  background: var(--dark);
  color: var(--white);
}

.page-intro p {
  margin-top: 29px;
}

/* ---------- Projects page ---------- */

.project-gallery {
  padding: 10px 3.472% 80px;
  background: var(--dark);
}

.project-gallery__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 30px;
  row-gap: 30px;
}

.project-gallery__item {
  padding-bottom: 81px;
}

.project-gallery__item .g-item {
  aspect-ratio: 655 / 491;
}

/* ---------- Services page ---------- */

.services-intro {
  padding: 38px 4.375% 57px;
  background: var(--white);
}

.services-intro p {
  max-width: 1254px;
}

.services-intro p:first-of-type {
  margin-top: 27px;
}

.service-rows {
  background: var(--white);
}

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

.service-row__img {
  aspect-ratio: 720 / 450;
  overflow: hidden;
}

.service-row__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-row__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 8% 40px 15.28%;
}

.service-row__text h2 {
  max-width: 500px;
  text-align: center;
}

.service-row__text p {
  max-width: 501px;
  margin-top: 25px;
}

.service-row__text .body-alt {
  font-size: 18px;
  line-height: 1.6;
}

.services-strip {
  padding: 90px 0 261px;
  background: var(--cream);
}

/* ---------- About page ---------- */

.about-hero {
  display: flex;
  align-items: flex-start;
  padding: 100px 3.472% 128px 9.236%;
  background: var(--cream);
}

.about-hero__text {
  width: 44.95%;
  flex: none;
}

.about-hero__text .title-xl {
  margin-top: 1px;
}

.about-hero__text .body {
  max-width: 433px;
}

.about-hero__text .about-hero__lead {
  margin-top: 65px;
}

.about-hero__text em {
  display: block;
  margin-top: 25px;
  font-style: italic;
}

.about-hero__text .about-hero__last {
  margin-top: 50px;
}

.about-hero__media {
  width: 52.19%;
  margin-left: auto;
  aspect-ratio: 656 / 664;
}

.about-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.features {
  position: relative;
  padding: 21px 0 80px;
  background: var(--dark);
  color: var(--cream);
  border-bottom: 1px solid rgba(255, 254, 237, 0.25);
}

.marquee {
  margin: 0 3.472%;
  overflow: hidden;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 4.297vw, 72px);
  line-height: 1.2;
  color: var(--white);
  white-space: nowrap;
}

.marquee__track {
  display: inline-flex;
  animation: marquee 23.48s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__unit {
  display: inline-flex;
  align-items: center;
}

.marquee__unit svg {
  width: 0.97em;
  height: 0.73em;
  margin: 0 0.5em;
  fill: var(--gold);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 24.17vw);
  column-gap: 7.64vw;
  row-gap: 0;
  padding: 0 0 0 5.833vw;
  margin-top: 56px;
}

.feature h2 {
  padding-left: 4px;
}

.feature p {
  margin-top: 57px;
  font-size: 20px;
  line-height: 1.4;
}

.feature--offset {
  margin-top: -14px;
}

.feature-img {
  margin-top: 178px;
  aspect-ratio: 330 / 220;
  width: 94.8%;
}

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

.feature--bottom {
  margin-top: 204px;
}

.feature-img--right {
  justify-self: start;
}

.testimonials {
  padding: 101px 0 0;
  background: var(--dark);
  color: var(--cream);
  text-align: center;
}

.testimonials > p {
  margin-top: 30px;
  padding: 0 32px;
}

.testimonials__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 54px;
}

.testimonial {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 317px;
  padding-bottom: 81px;
}

.testimonial svg {
  width: 123px;
  height: 28px;
  fill: var(--cream);
}

.testimonial p {
  margin-top: 29px;
  font-size: 16px;
  line-height: 1.4;
}

/* ---------- Quote page ---------- */

.quote {
  display: flex;
  align-items: flex-start;
  padding: 90px 3.472% 90px 3.472%;
  background: var(--cream);
}

.quote__text {
  width: 44.7%;
  flex: none;
}

.quote__text h2 {
  max-width: 556px;
  margin-top: 14px;
}

.quote__text > p {
  max-width: 499px;
  margin-top: 20px;
  font-size: 20px;
  line-height: 1.5;
}

.quote-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 32px;
  row-gap: 57px;
  max-width: 572px;
  margin: 104px 0 0 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.field label {
  font-size: 14px;
  line-height: 1.4;
}

.field input,
.field select,
.select__button {
  width: 100%;
  height: 40px;
  padding: 8px 2px 8px 0;
  border: 0;
  border-bottom: 1px solid rgba(23, 18, 0, 0.6);
  border-radius: 0;
  background: transparent;
  font-size: 16px;
  line-height: 24px;
  outline: none;
  transition: border-color 0.2s ease;
}

.field input:hover,
.field input:focus,
.select__button:hover,
.select__button:focus {
  border-bottom-color: var(--dark);
}

.field input::placeholder {
  color: rgba(23, 18, 0, 0.6);
}

.field input[type="date"] {
  font-family: var(--font);
}

.field input:user-invalid {
  border-bottom-color: #c3282d;
}

.select {
  position: relative;
}

.select__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  height: 41px;
  cursor: pointer;
  text-align: left;
}

.select__button svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

.select.is-open .select__button svg {
  transform: rotate(180deg);
}

.select__list {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 260px;
  margin: 0;
  padding: 8px 0;
  overflow-y: auto;
  list-style: none;
  background: var(--white);
  border: 1px solid rgba(23, 18, 0, 0.6);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: none;
}

.select.is-open .select__list {
  display: block;
}

.select__list li {
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
}

.select__list li:hover,
.select__list li[aria-selected="true"],
.select__list li.is-active {
  background: rgba(23, 18, 0, 0.06);
}

.quote-form__date {
  grid-column: 1 / 2;
}

.quote-form__submit {
  grid-column: 1 / 2;
  height: 39px;
  border: 0;
  border-radius: 10px;
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-alt);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.quote-form__submit:hover {
  background: var(--gold);
}

.quote-form__status {
  grid-column: 1 / -1;
  font-size: 14px;
}

.quote-form__captcha {
  grid-column: 1 / -1;
  min-height: 65px;
  margin-bottom: -33px;
}

.quote-form__submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.quote-form__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.quote__media {
  width: 46.27%;
  margin-left: auto;
  aspect-ratio: 620 / 1061;
  overflow: hidden;
}

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

.contact {
  padding: 51px 3.472% 101px;
  background: var(--white);
}

.contact__card {
  padding-top: 79px;
  border-radius: 10px;
  background: var(--card);
  color: var(--cream);
  text-align: center;
  overflow: hidden;
}

.contact__card > h2 {
  color: var(--white);
}

.contact__card > p {
  margin-top: 23px;
  padding: 0 20px;
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 36px;
  border-top: 1px solid var(--dark);
}

.contact__cell {
  min-height: 273px;
  padding: 44px 20px 40px;
  font-size: 16px;
  line-height: 1.3;
}

.contact__cell + .contact__cell {
  border-left: 1px solid var(--dark);
}

.contact__cell--address {
  text-align: left;
  padding-left: 40px;
}

.contact__cell > p:first-child {
  margin-bottom: 29px;
}

.contact__cell--address .contact__value {
  font-size: 18px;
  line-height: 1.4;
}

.contact__value a:hover {
  text-decoration: underline;
}

.contact__email {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: calc(100% - 160px);
  max-height: calc(100% - 80px);
  object-fit: contain;
}

.lightbox button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--dark);
  cursor: pointer;
}

.lightbox button svg {
  width: 26px;
  height: 26px;
}

.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; margin-top: -24px; }
.lightbox__next { right: 20px; top: 50%; margin-top: -24px; }

.lightbox__count {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 14px;
  color: var(--dark);
}

/* ---------- Entrance animations ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js [data-anim] {
    opacity: 0;
  }

  .js [data-anim].is-in {
    opacity: 1;
    animation-duration: 800ms;
    animation-timing-function: var(--ease);
    animation-fill-mode: both;
    animation-delay: var(--delay, 0ms);
  }

  .js [data-anim="slide-left"].is-in { animation-name: slide-left; }
  .js [data-anim="slide-up"].is-in { animation-name: slide-up; }
  .js [data-anim="reveal"].is-in { animation-name: reveal; }
  .js [data-anim="flip"].is-in { animation-name: flip; }
}

@keyframes slide-left {
  from {
    opacity: 0;
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    transform: translateX(-100%);
  }
  to {
    opacity: 1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transform: none;
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transform: none;
  }
}

@keyframes reveal {
  from {
    opacity: 1;
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  }
  to {
    opacity: 1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}

@keyframes flip {
  from {
    opacity: 0;
    transform: perspective(800px) rotateY(-90deg);
  }
  to {
    opacity: 1;
    transform: perspective(800px) rotateY(0);
  }
}

/* ---------- Tablet ---------- */

@media (max-width: 1100px) {
  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .site-header--inner .btn {
    display: none;
  }

  .site-header__right {
    gap: 30px;
  }
}

@media (max-width: 1000px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 48px;
    padding: 140px 6% 80px;
  }

  .hero__content,
  .hero__title,
  .hero__content > p {
    width: 100%;
    max-width: none;
  }

  .hero__logo {
    width: min(100%, 520px);
    margin: 0 auto;
  }

  .about-intro,
  .about-hero,
  .quote {
    flex-direction: column;
    align-items: stretch;
    gap: 48px;
    padding: 80px 6%;
  }

  .about-intro__text,
  .about-hero__text,
  .quote__text {
    width: 100%;
  }

  .about-intro__text h3,
  .about-intro__text p {
    max-width: 520px;
  }

  .about-intro__media,
  .about-hero__media,
  .quote__media {
    width: 100%;
    margin: 0;
  }

  .about-intro__media {
    aspect-ratio: 1198 / 756;
  }

  .quote__media {
    aspect-ratio: 4 / 5;
  }

  .quote-form {
    margin: 64px 0 0;
    max-width: none;
  }

  .services-grid__list {
    grid-template-columns: repeat(2, 1fr);
    width: 88%;
  }

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

  .slider__item {
    width: 32vw;
  }

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

  .service-row--flip .service-row__img {
    order: -1;
  }

  .service-row__text {
    padding: 56px 6%;
    align-items: center;
  }

  .service-row__text p {
    max-width: 600px;
  }

  .services-strip {
    padding: 80px 0;
  }

  .mosaic__group {
    width: 93.06vw;
    height: 90vw;
  }

  .features__grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 6%;
    row-gap: 56px;
    padding: 0 6%;
  }

  .feature--offset,
  .feature--bottom,
  .feature-img {
    margin-top: 0;
  }

  .feature-img {
    width: 100%;
  }

  .feature p {
    margin-top: 24px;
  }

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

  .contact__cell:nth-child(3) {
    border-left: 0;
  }

  .contact__cell:nth-child(n + 3) {
    border-top: 1px solid var(--dark);
  }

  .site-footer__main {
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
    padding: 64px 6% 48px;
  }

  .site-footer__logo {
    margin-left: 0;
  }

  .site-footer__col,
  .site-footer__col--cta {
    padding-top: 0;
  }

  .site-footer__nav ul {
    margin-top: 0;
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 750px) {
  .site-header {
    height: 80px;
    padding: 0 20px;
  }

  .site-header__logo {
    max-width: 200px;
    font-size: 20px;
  }

  .site-header--overlay .btn--phone {
    min-width: 0;
    height: 44px;
    padding: 0 16px;
    font-size: 14px;
  }

  .hero {
    padding: 120px 20px 64px;
  }

  .hero__content .btn {
    min-width: 0;
    width: 100%;
    white-space: normal;
  }

  .about-intro,
  .about-hero,
  .quote {
    padding: 64px 20px;
  }

  .projects-strip {
    padding: 64px 0 48px;
  }

  .projects-strip__head {
    padding: 0 20px;
  }

  .projects-strip__head h2 {
    width: 100%;
  }

  .projects-strip .slider {
    margin-top: 48px;
  }

  .slider__track {
    gap: 16px;
    padding: 0 20px;
    scroll-padding: 0 20px;
  }

  .slider__item {
    width: 70vw;
  }

  .slider__arrow--prev { left: 12px; }
  .slider__arrow--next { right: 12px; }

  .services-grid__list {
    grid-template-columns: 1fr;
    width: calc(100% - 40px);
  }

  .why {
    padding: 80px 20px 64px;
  }

  .page-intro {
    padding: 64px 20px 56px;
  }

  .project-gallery {
    padding: 10px 20px 56px;
  }

  .project-gallery__grid {
    grid-template-columns: 1fr;
    row-gap: 20px;
  }

  .project-gallery__item {
    padding-bottom: 0;
  }

  .services-intro {
    padding: 40px 20px 48px;
  }

  .mosaic .slider__track {
    padding: 0 20px;
    scroll-padding: 0 20px;
  }

  .mosaic__group {
    width: calc(100vw - 40px);
    height: 110vw;
  }

  .features__grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
    row-gap: 40px;
  }

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

  .testimonial {
    height: auto;
    padding: 40px 0;
  }

  .quote-form {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }

  .quote-form__date,
  .quote-form__submit {
    grid-column: auto;
  }

  .contact {
    padding: 40px 20px 64px;
  }

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

  .contact__cell,
  .contact__cell--address {
    min-height: 0;
    padding: 32px 20px;
    text-align: center;
    border-left: 0 !important;
  }

  .contact__cell + .contact__cell {
    border-top: 1px solid var(--dark);
  }

  .site-footer__main {
    grid-template-columns: 1fr;
    padding: 56px 20px 40px;
  }

  .site-footer__bar {
    justify-content: center;
    padding: 16px 20px;
    text-align: center;
  }

  .lightbox__img {
    max-width: calc(100% - 24px);
    max-height: calc(100% - 140px);
  }

  .lightbox__prev,
  .lightbox__next {
    top: auto;
    bottom: 12px;
    margin-top: 0;
  }
}
