:root {
  --bg: #faf7f7;
  --surface: #ffffff;
  --wine: #65162d;
  --wine-light: #8d3853;
  --dark: #241c20;
  --gray: #766c70;
  --border: #eadcdf;
  --shadow: 0 25px 70px rgba(101, 22, 45, 0.15);
  --transition: 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--bg);
  color: var(--dark);
  font-family: "Outfit", sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  width: 100%;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  color: inherit;
  font: inherit;
}

ul {
  list-style: none;
}

.site-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 30px 6%;
  position: fixed;
  top: 0;
  transition: background 0.35s ease, border-color 0.35s ease, padding 0.35s ease;
  width: 100%;
  z-index: 1000;
}

.site-header.scrolled {
  background: rgba(250, 247, 247, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding-bottom: 21px;
  padding-top: 21px;
}

.logo {
  color: var(--wine);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

#main-nav {
  display: flex;
  gap: 45px;
}

#main-nav a {
  position: relative;
}

#main-nav a::after {
  background: var(--wine);
  bottom: -7px;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
  width: 100%;
}

#main-nav a:hover,
#main-nav a:focus-visible {
  color: var(--wine);
}

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

.menu-button {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: none;
  height: 42px;
  position: relative;
  width: 42px;
  z-index: 2;
}

.menu-button span {
  background: var(--wine);
  height: 1px;
  left: 9px;
  position: absolute;
  transition: transform 0.3s ease, top 0.3s ease;
  width: 24px;
}

.menu-button span:first-child {
  top: 16px;
}

.menu-button span:last-child {
  top: 25px;
}

.menu-button[aria-expanded="true"] span:first-child {
  top: 21px;
  transform: rotate(45deg);
}

.menu-button[aria-expanded="true"] span:last-child {
  top: 21px;
  transform: rotate(-45deg);
}

section {
  margin: auto;
  padding: 150px 0;
  width: min(calc(100% - 48px), 1400px);
}

.eyebrow {
  color: var(--wine);
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  margin-bottom: 20px;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
}

#hero {
  align-items: center;
  display: grid;
  gap: clamp(45px, 6vw, 90px);
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.82fr);
  min-height: 100svh;
  padding-bottom: 90px;
  padding-top: 130px;
}

.hero-content h1 {
  font-size: clamp(3.35rem, 5.4vw, 6.4rem);
  font-weight: 300;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.hero-content h1 > span {
  display: block;
}

.hero-content h1 .accent {
  color: var(--wine);
}

.hero-content p {
  color: var(--gray);
  line-height: 1.85;
  margin-top: 38px;
  max-width: 540px;
}

.hero-content,
.hero-image,
.about-copy,
.project-info,
.gallery {
  min-width: 0;
}

.button {
  align-items: center;
  border-radius: 50px;
  display: inline-flex;
  justify-content: center;
  padding: 18px 44px;
  transition: color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.button-outline {
  border: 1px solid var(--wine);
  color: var(--wine);
  margin-top: 46px;
}

.button-outline:hover,
.button-outline:focus-visible {
  background: var(--wine);
  color: #fff;
  transform: translateY(-4px);
}

.hero-image {
  aspect-ratio: 4 / 5;
  background: #f1ebed;
  border-radius: 35px;
  box-shadow: var(--shadow);
  margin: 0;
  max-height: 760px;
  overflow: hidden;
  position: relative;
}

.hero-image img {
  backface-visibility: hidden;
  height: 100%;
  image-rendering: auto;
  object-fit: cover;
  object-position: center;
  transform: translateZ(0);
  width: 100%;
  position: relative;
  z-index: 1;
}

#about {
  display: grid;
  gap: 100px;
  grid-template-columns: 1fr 1fr;
}

.about-copy p,
.project-info p {
  color: var(--gray);
  line-height: 1.9;
}

.about-copy p {
  margin-bottom: 30px;
}

.section-title {
  margin-bottom: 120px;
}

.project {
  align-items: start;
  display: grid;
  gap: clamp(50px, 6vw, 90px);
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.2fr);
  margin-bottom: 230px;
  position: relative;
}

.project:nth-of-type(odd) {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.85fr);
}

.project:nth-of-type(odd) .project-info {
  order: 2;
}

.project:nth-of-type(odd) .gallery {
  order: 1;
}

.project-info {
  height: max-content;
  position: relative;
}

.project-info h3 {
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 300;
  letter-spacing: -0.055em;
  line-height: 0.95;
  margin: 25px 0;
}

.project-info p,
.project-copy p {
  max-width: 470px;
}

.project-copy {
  display: grid;
  gap: 18px;
}

.project-copy p {
  color: var(--gray);
  line-height: 1.78;
}

.gallery {
  display: grid;
  gap: 15px;
  grid-auto-rows: 180px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-item {
  background: #f1ebed;
  border-radius: 22px;
  line-height: 0;
  margin: 0;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery img,
.gallery video {
  backface-visibility: hidden;
  display: block;
  height: 100%;
  image-rendering: auto;
  margin: 0 auto;
  object-fit: cover;
  object-position: var(--media-position, center);
  transform: translateZ(0);
  transition: transform var(--transition), filter var(--transition);
  width: 100%;
  position: relative;
  z-index: 1;
}

.gallery video {
  background: transparent;
}

.gallery-item:hover img {
  filter: saturate(1.03) contrast(1.015);
}

.gallery-empty {
  border: 1px dashed var(--border);
  border-radius: 22px;
  color: var(--gray);
  line-height: 1.7;
  padding: 45px 35px;
  text-align: center;
}

#services ul {
  display: grid;
  gap: 25px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 70px;
}

#services li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 25px;
  font-size: 1.2rem;
  padding: 45px 35px;
  transition: var(--transition);
}

#services li:hover {
  background: var(--wine);
  box-shadow: var(--shadow);
  color: #fff;
  transform: translateY(-8px);
}

#contact {
  background: linear-gradient(135deg, #3b0917, var(--wine), var(--wine-light));
  border-radius: 45px;
  color: #fff;
  margin-top: 80px;
  overflow: hidden;
  padding: 120px 70px;
  position: relative;
  text-align: center;
}

#contact::before {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  content: "";
  height: 600px;
  position: absolute;
  right: -200px;
  top: -300px;
  width: 600px;
}

#contact .eyebrow {
  color: #e7c7d0;
  position: relative;
  z-index: 1;
}

#contact h2 {
  margin: 30px auto 35px;
  max-width: 900px;
  position: relative;
  z-index: 1;
}

#contact p {
  font-size: 1.15rem;
  line-height: 1.9;
  margin: 0 auto 34px;
  max-width: 650px;
  opacity: 0.85;
  position: relative;
  z-index: 1;
}

.social-links {
  align-items: center;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin: 0 auto 38px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.social-links a {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 52px;
  height: 52px;
  justify-content: center;
  transition: 0.35s ease;
  width: 52px;
}

.social-links svg {
  fill: currentColor;
  height: 23px;
  width: 23px;
}

.social-links a:hover,
.social-links a:focus-visible {
  background: #fff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
  color: var(--wine);
  outline: none;
  transform: translateY(-4px);
}

.button-light {
  background: #fff;
  color: var(--wine);
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.contact-button {
  border: 0;
  cursor: default;
  font: inherit;
}

.button-light:hover,
.button-light:focus-visible {
  background: #b34264;
  color: #f5eff1;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  transform: translateY(-6px);
}

footer {
  color: var(--gray);
  padding: 70px 0;
  text-align: center;
}

.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal {
  transform: translateY(55px);
}

.reveal-left {
  transform: translateX(-45px);
}

.reveal-right {
  transform: translateX(45px);
}

.reveal.show,
.reveal-left.show,
.reveal-right.show {
  opacity: 1;
  transform: none;
}

.gallery-item {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.project.show .gallery-item {
  opacity: 1;
  transform: none;
}

.project.show .gallery-item:nth-child(2) { transition-delay: 0.06s; }
.project.show .gallery-item:nth-child(3) { transition-delay: 0.12s; }
.project.show .gallery-item:nth-child(4) { transition-delay: 0.18s; }
.project.show .gallery-item:nth-child(5) { transition-delay: 0.24s; }
.project.show .gallery-item:nth-child(6) { transition-delay: 0.30s; }
.project.show .gallery-item:nth-child(7) { transition-delay: 0.36s; }
.project.show .gallery-item:nth-child(8) { transition-delay: 0.42s; }
.project.show .gallery-item:nth-child(9) { transition-delay: 0.48s; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--wine-light);
  outline-offset: 5px;
}

@media (max-width: 1100px) {
  .menu-button {
    display: block;
  }

  #main-nav {
    align-items: center;
    background: rgba(250, 247, 247, 0.98);
    flex-direction: column;
    font-size: 1.5rem;
    gap: 28px;
    height: 100vh;
    height: 100dvh;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: 0;
    transform: translateX(100%);
    transition: opacity 0.35s ease, transform 0.35s ease;
    width: min(100%, 430px);
  }

  #main-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  #hero {
    grid-template-columns: 1fr;
    padding-top: 145px;
  }

  .hero-content {
    max-width: 900px;
  }

  .hero-image {
    aspect-ratio: 4 / 5;
    height: auto;
    justify-self: center;
    max-height: none;
    max-width: 720px;
    width: 100%;
  }

  #about {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .project,
  .project:nth-of-type(odd) {
    gap: 50px;
    grid-template-columns: 1fr;
  }

  .project-info {
    position: static;
  }

  .project-info p,
  .project-copy p {
    max-width: 720px;
  }

  .project:nth-of-type(odd) .project-info,
  .project:nth-of-type(odd) .gallery {
    order: initial;
  }

  #services ul {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .site-header.scrolled {
    padding: 18px 20px;
  }

  .logo {
    font-size: 0.74rem;
    letter-spacing: 0.1em;
  }

  section {
    padding: 90px 0;
    width: calc(100% - 32px);
  }

  #hero {
    gap: 58px;
    padding-top: 125px;
  }

  .hero-content h1 {
    font-size: clamp(3rem, 14vw, 4.15rem);
    letter-spacing: -0.06em;
    line-height: 0.96;
  }

  .hero-content p {
    line-height: 1.75;
    margin-top: 30px;
  }

  .desktop-break {
    display: none;
  }

  h2 {
    font-size: clamp(2.55rem, 12vw, 4rem);
    overflow-wrap: anywhere;
  }

  .button {
    padding: 17px 34px;
  }

  .hero-image {
    border-radius: 25px;
  }

  .section-title {
    margin-bottom: 80px;
  }

  .project {
    margin-bottom: 140px;
  }

  .project-info h3 {
    font-size: clamp(2.8rem, 15vw, 4.8rem);
    overflow-wrap: anywhere;
  }

  .gallery {
    gap: 10px;
    grid-auto-rows: 130px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-item {
    border-radius: 14px;
  }

  .gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }

  #services ul {
    grid-template-columns: 1fr;
    margin-top: 50px;
  }

  #services li {
    padding: 32px 24px;
  }

  #contact {
    border-radius: 24px;
    margin-top: 35px;
    padding: 72px 22px;
  }

  #contact::before {
    height: 380px;
    right: -190px;
    top: -210px;
    width: 380px;
  }

  #contact h2 {
    font-size: clamp(2.35rem, 11.5vw, 3.6rem);
    line-height: 1.02;
    margin: 24px auto 28px;
  }

  #contact p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 30px;
  }

  .social-links {
    gap: 12px;
    margin-bottom: 32px;
  }

  .social-links a {
    flex-basis: 48px;
    height: 48px;
    width: 48px;
  }

  .social-links svg {
    height: 21px;
    width: 21px;
  }

  .contact-button {
    max-width: 100%;
  }

  footer {
    padding: 48px 16px;
  }
}

@media (max-width: 380px) {
  .site-header,
  .site-header.scrolled {
    padding-left: 16px;
    padding-right: 16px;
  }

  section {
    width: calc(100% - 24px);
  }

  .hero-content h1 {
    font-size: clamp(2.65rem, 14vw, 3.3rem);
  }

  .gallery {
    grid-auto-rows: 112px;
  }

  #contact {
    padding-left: 16px;
    padding-right: 16px;
  }

  .button {
    padding-left: 26px;
    padding-right: 26px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .gallery-item {
    opacity: 1;
    transform: none;
  }
}
