:root {
  --ink: #2f2a25;
  --brown: #3b342e;
  --taupe: #bba28d;
  --sand: #e8ddd0;
  --cream: #f4eee6;
  --paper: #fbf8f2;
  --white: #fffdf9;
  --serif: "Italiana", "Times New Roman", serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
}

body.menu-open {
  overflow: hidden;
}

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

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

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.skip-link:focus {
  z-index: 100;
  width: auto;
  height: auto;
  padding: 1rem;
  clip: auto;
  background: white;
}

.announcement {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  min-height: 42px;
  padding: 0.65rem 4rem;
  color: var(--ink);
  background: var(--taupe);
  font-family: var(--serif);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
}

.announcement p {
  margin: 0;
}

.announcement a {
  border-bottom: 1px solid currentColor;
}

.announcement button {
  position: absolute;
  right: 1.3rem;
  border: 0;
  color: inherit;
  background: transparent;
  font-size: 1.1rem;
  cursor: pointer;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 115px;
  padding: 1.25rem 4vw;
  background: var(--cream);
}

.brand {
  width: 210px;
}

.brand img {
  width: 100%;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2.2rem);
  font-family: var(--serif);
  font-size: 0.97rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-header nav a {
  position: relative;
}

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

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

.site-header nav a span {
  color: #bd4a79;
  font-size: 0.7rem;
}

.instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
}

.instagram svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: min(78vw, 930px);
  margin: 0 4vw;
  overflow: hidden;
  color: var(--white);
}

.hero > img {
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 40%, rgba(35, 30, 26, 0.54) 100%),
    linear-gradient(0deg, rgba(35, 30, 26, 0.16), transparent 55%);
}

.hero-content {
  position: absolute;
  top: 50%;
  right: 7%;
  width: min(37%, 470px);
  transform: translateY(-45%);
}

.eyebrow {
  margin: 0 0 1rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.philosophy h2,
.closing h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.02;
}

.hero h1 {
  font-size: clamp(2.7rem, 5vw, 5.3rem);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 2.2rem;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 55px;
  padding: 0.9rem 1.8rem;
  border: 1px solid var(--brown);
  border-radius: 100px;
  color: var(--white);
  background: var(--brown);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: 180ms ease;
}

.button:hover,
.button:focus-visible {
  color: var(--brown);
  background: transparent;
}

.button-light {
  border-color: var(--white);
  color: var(--brown);
  background: var(--white);
}

.button-light:hover,
.button-light:focus-visible {
  color: var(--white);
}

.text-link {
  margin-top: 0.5rem;
  border-bottom: 1px solid currentColor;
  font-family: var(--serif);
}

.services {
  padding: 9rem 5vw 10rem;
}

.section-heading {
  max-width: 770px;
  margin-bottom: 5rem;
}

.services .section-heading {
  max-width: 1120px;
}

.services .section-heading h2 {
  white-space: nowrap;
}

.section-heading h2,
.philosophy h2,
.closing h2 {
  font-size: clamp(3rem, 6vw, 6.8rem);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 -1.5rem;
  border-top: 1px solid rgba(47, 42, 37, 0.35);
}

.service-grid article {
  min-height: 310px;
  padding: 1.5rem;
  border-right: 1px solid rgba(47, 42, 37, 0.35);
  border-bottom: 1px solid rgba(47, 42, 37, 0.35);
}

.service-grid article:nth-child(3n) {
  border-right: 0;
}

.service-grid span {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.service-grid h3 {
  max-width: 380px;
  margin: 4rem 0 1rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.2vw, 3.6rem);
  font-weight: 400;
  line-height: 1.05;
}

.service-grid p {
  max-width: 380px;
  line-height: 1.65;
}

.services-button {
  margin-top: 3rem;
}

.philosophy {
  display: grid;
  grid-template-columns: 1.55fr 0.65fr;
  gap: 9vw;
  align-items: end;
  padding: 10rem 6vw;
  color: var(--white);
  background: var(--brown);
}

.philosophy p:last-child {
  margin: 0 0 0.8rem;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  line-height: 1.45;
}

.testimonials {
  padding: 7rem 6vw;
  background: var(--paper);
}

.testimonials .section-heading {
  max-width: 720px;
  margin-bottom: 3rem;
}

.testimonials .section-heading h2 {
  font-size: clamp(3rem, 5vw, 5.8rem);
  line-height: 0.95;
}

.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.testimonial-stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1120px) auto;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}

.testimonial-track {
  min-height: 360px;
}

.testimonial {
  display: none;
  margin: 0;
  text-align: center;
}

.testimonial.active {
  display: block;
  animation: reveal 420ms ease;
}

.testimonial blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.2vw, 4.4rem);
  line-height: 1.12;
}

.testimonial figcaption {
  margin-top: 2.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.slider-control {
  width: 48px;
  height: 48px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2.5rem;
}

.slider-dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--taupe);
  cursor: pointer;
  opacity: 0.4;
}

.slider-dots button.active {
  opacity: 1;
  transform: scale(1.5);
}

.closing {
  padding: 10rem 6vw;
  color: var(--white);
  background: var(--taupe);
  text-align: center;
}

.closing .button {
  margin-top: 3rem;
}

footer {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 4rem;
  padding: 6rem 5vw 2rem;
  color: var(--white);
  background: var(--brown);
}

.footer-brand {
  align-self: start;
}

footer h2 {
  margin: 0 0 1.5rem;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
}

footer p,
footer a {
  display: block;
  margin: 0 0 0.8rem;
  line-height: 1.6;
}

.copyright {
  grid-column: 1 / -1;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .site-header {
    min-height: 90px;
  }

  .brand {
    width: 175px;
  }

  .menu-toggle {
    z-index: 20;
    display: grid;
    gap: 7px;
    width: 44px;
    padding: 10px 6px;
    border: 0;
    background: transparent;
  }

  .menu-toggle span:not(.sr-only) {
    height: 1px;
    background: var(--ink);
    transition: transform 180ms ease;
  }

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

  .menu-open .menu-toggle span:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
  }

  .site-header nav {
    position: fixed;
    z-index: 10;
    inset: 0;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    background: var(--cream);
    font-size: 1.8rem;
  }

  .menu-open .site-header nav {
    display: flex;
  }

  .hero {
    min-height: 880px;
  }

  .hero-shade {
    background: linear-gradient(0deg, rgba(35, 30, 26, 0.7), transparent 70%);
  }

  .hero-content {
    top: auto;
    right: 2rem;
    bottom: 3rem;
    left: 2rem;
    width: auto;
    transform: none;
  }

  .services .section-heading h2 {
    white-space: normal;
  }

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

  .service-grid article:nth-child(3n) {
    border-right: 1px solid rgba(47, 42, 37, 0.35);
  }

  .service-grid article:nth-child(2n) {
    border-right: 0;
  }

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

@media (max-width: 640px) {
  .announcement {
    padding: 0.65rem 3rem 0.65rem 1rem;
    font-size: 0.74rem;
  }

  .announcement p {
    display: none;
  }

  .site-header {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  .hero {
    min-height: 730px;
    margin: 0;
  }

  .hero > img {
    object-position: 43% center;
  }

  .hero-content {
    right: 1.25rem;
    bottom: 2rem;
    left: 1.25rem;
  }

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

  .services,
  .testimonials,
  .closing {
    padding: 6rem 1.25rem;
  }

  .section-heading {
    margin-bottom: 3.5rem;
  }

  .section-heading h2,
  .philosophy h2,
  .closing h2 {
    font-size: 3rem;
  }

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

  .service-grid article,
  .service-grid article:nth-child(3n) {
    min-height: 260px;
    border-right: 0;
  }

  .philosophy {
    padding: 6rem 1.25rem;
  }

  .testimonial-stage {
    grid-template-columns: 1fr;
  }

  .testimonial-track {
    min-height: 430px;
  }

  .slider-control {
    position: absolute;
    margin-top: 520px;
  }

  .slider-control.previous {
    left: calc(50% - 58px);
  }

  .slider-control.next {
    right: calc(50% - 58px);
  }

  .slider-dots {
    margin-top: 5.5rem;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 5rem 1.25rem 2rem;
  }

  .copyright {
    grid-column: auto;
  }
}

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

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