:root {
  --ink: #171513;
  --muted: #6d625a;
  --ivory: #f8f5ef;
  --paper: #fffdf9;
  --stone: #d8d0c4;
  --taupe: #a8927f;
  --mocha: #5d4638;
  --sage: #63735f;
  --sage-dark: #324238;
  --bronze: #b0844f;
  --shadow: 0 22px 70px rgba(35, 29, 24, 0.16);
  --radius: 8px;
  --panel-top: clamp(116px, 13vh, 146px);
  --panel-bottom: clamp(44px, 7vh, 72px);
  --header-height: 104px;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: Inter, Montserrat, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
}

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

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

:where(a, button):focus-visible {
  outline: 3px solid var(--bronze);
  outline-offset: 3px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 16px clamp(18px, 4vw, 54px);
  color: var(--paper);
  transition: background 220ms ease, box-shadow 220ms ease, color 220ms ease;
  max-width: 100vw;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 253, 249, 0.94);
  box-shadow: 0 10px 38px rgba(37, 29, 22, 0.1);
  backdrop-filter: blur(16px);
}

.brand {
  position: relative;
  display: block;
  width: clamp(128px, 12vw, 160px);
  aspect-ratio: 309 / 162;
  flex: 0 0 auto;
  overflow: hidden;
}

.brand img {
  position: absolute;
  top: -96.91%;
  left: -32.36%;
  width: 161.82%;
  max-width: none;
  height: auto;
  filter: brightness(1.55) saturate(0.9) drop-shadow(0 2px 7px rgba(23, 21, 19, 0.28));
  transition: filter 220ms ease;
}

.site-header.is-scrolled .brand img {
  filter: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 32px);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  opacity: 0.88;
}

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

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

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: clip;
  background: var(--ink);
}

.hero__image,
.hero__veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  object-fit: cover;
}

.hero__veil {
  background:
    linear-gradient(90deg, rgba(18, 15, 12, 0.72) 0%, rgba(18, 15, 12, 0.42) 42%, rgba(18, 15, 12, 0.12) 100%),
    linear-gradient(0deg, rgba(18, 15, 12, 0.3), rgba(18, 15, 12, 0.08));
}

.hero__content {
  position: relative;
  width: min(760px, calc(100% - 36px));
  margin: 0 auto;
  padding: calc(var(--header-height) + 24px) 0 clamp(54px, 10vh, 108px);
  color: var(--paper);
  transform: translateX(calc((100vw - min(1180px, calc(100vw - 36px))) / -2));
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--bronze);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 0.98;
}

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(3.7rem, 9vw, 8.4rem);
  text-wrap: balance;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.1rem, 5vw, 5.4rem);
}

h3 {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.05;
}

.tab-panel:not(.hero) h2 {
  font-size: clamp(2rem, 4.4vw, 4.8rem);
}

.hero__copy {
  max-width: 560px;
  margin-bottom: 30px;
  color: rgba(255, 253, 249, 0.9);
  font-size: clamp(1rem, 1.5vw, 1.24rem);
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 13px 22px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
  touch-action: manipulation;
}

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

.button--primary {
  border-color: var(--sage-dark);
  color: var(--paper);
  background: var(--sage-dark);
}

.button--primary:hover,
.button--primary:focus-visible {
  border-color: var(--bronze);
  background: var(--bronze);
}

.button--ghost {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.08);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  color: var(--ink);
  background: var(--paper);
}

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

.tab-shell {
  min-height: 100svh;
  scroll-margin-top: 0;
  background: var(--paper);
  max-width: 100%;
}

.tab-list {
  position: static;
  display: flex;
  max-width: min(920px, calc(100vw - 260px));
  gap: 8px;
  overflow-x: auto;
  padding: 3px 2px;
  scrollbar-width: none;
  min-width: 0;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pinch-zoom;
}

.tab-list::-webkit-scrollbar {
  display: none;
}

.tab-link {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(93, 70, 56, 0.18);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--mocha);
  background: rgba(255, 255, 255, 0.64);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
  touch-action: manipulation;
}

.site-header:not(.is-scrolled) .tab-link {
  border-color: rgba(255, 253, 249, 0.28);
  color: var(--paper);
  background: rgba(255, 253, 249, 0.1);
}

.site-header:not(.is-scrolled) .tab-link.is-active {
  border-color: var(--paper);
  color: var(--sage-dark);
  background: var(--paper);
}

.tab-link:hover,
.tab-link:focus-visible {
  border-color: rgba(99, 115, 95, 0.46);
  color: var(--sage-dark);
  transform: translateY(-1px);
}

.tab-link.is-active {
  border-color: var(--sage-dark);
  color: var(--paper);
  background: var(--sage-dark);
}

.tab-panels {
  position: relative;
  min-height: 100svh;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}

.tab-panel {
  min-height: 100svh;
  min-width: 0;
  max-width: 100%;
  opacity: 1;
  transform: none;
}

.tab-panel.is-active {
  opacity: 1;
  transform: translateY(0);
}

.tab-panel[hidden] {
  display: none !important;
}

.section-arrow {
  position: fixed;
  right: clamp(18px, 3vw, 42px);
  bottom: clamp(18px, 3vw, 38px);
  z-index: 12;
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 253, 249, 0.48);
  border-radius: 50%;
  color: var(--paper);
  background: rgba(50, 66, 56, 0.92);
  box-shadow: 0 18px 42px rgba(23, 21, 19, 0.2);
  cursor: pointer;
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease, background 180ms ease, border-color 180ms ease;
  touch-action: manipulation;
}

.section-arrow:hover,
.section-arrow:focus-visible {
  border-color: var(--bronze);
  background: var(--bronze);
  transform: translateY(-2px);
}

.section-arrow span {
  font-size: 1.4rem;
  line-height: 1;
}

.section-arrow.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.section {
  scroll-margin-top: 0;
  padding: max(var(--panel-top), calc(var(--header-height) + 24px)) clamp(18px, 4vw, 54px) var(--panel-bottom);
}

.section__heading {
  width: min(1180px, 100%);
  margin: 0 auto clamp(22px, 4vw, 44px);
}

.section__heading h2 {
  max-width: 870px;
}

.section__heading--wide h2 {
  max-width: 1040px;
}

.intro {
  display: grid;
  grid-template-areas:
    "heading media"
    "body media";
  grid-template-columns: minmax(0, 0.9fr) minmax(400px, 1fr);
  column-gap: clamp(36px, 6vw, 80px);
  row-gap: clamp(24px, 3vw, 36px);
  align-items: center;
  align-content: center;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.intro .section__heading {
  grid-area: heading;
  margin: 0;
}

.intro__body {
  grid-area: body;
  color: var(--muted);
  font-size: 1.05rem;
}

.about-media {
  grid-area: media;
  min-width: 0;
}

.about-media__frame {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--stone);
  box-shadow: var(--shadow);
}

.about-media__frame::after {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 38%;
  background: linear-gradient(transparent, rgba(23, 21, 19, 0.5));
  content: "";
  pointer-events: none;
}

.about-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1200ms ease;
}

.about-slide.is-active {
  z-index: 1;
  opacity: 1;
}

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

.about-media__label {
  position: absolute;
  right: 20px;
  bottom: 18px;
  left: 20px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--paper);
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
}

.intro__details,
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.intro__details span,
.pill-list span {
  border: 1px solid rgba(99, 115, 95, 0.32);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--sage-dark);
  background: rgba(99, 115, 95, 0.08);
  font-size: 0.82rem;
  font-weight: 650;
}

.services {
  background: var(--ivory);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  width: min(1240px, 100%);
  margin: 0 auto;
}

.service-card {
  display: grid;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(93, 70, 56, 0.14);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 18px 48px rgba(57, 45, 35, 0.08);
}

.service-card--wide {
  grid-column: span 1;
}

.service-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.service-card div {
  padding: 16px;
}

.service-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--bronze);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.service-card h3 {
  font-size: 1.35rem;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.experience {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: max(var(--panel-top), calc(var(--header-height) + 24px)) 0 var(--panel-bottom);
}

.experience__media {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.experience__media img {
  width: 100%;
  aspect-ratio: 1.28;
  object-fit: cover;
}

.experience__copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.interiors {
  background: var(--sage-dark);
  color: var(--paper);
}

.interiors .eyebrow {
  color: #d9b27f;
}

.interior-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.interior-strip figure {
  margin: 0;
}

.interior-strip img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  object-fit: cover;
}

.interior-strip figcaption {
  margin-top: 12px;
  color: rgba(255, 253, 249, 0.78);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

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

.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

blockquote {
  margin: 0;
  border-left: 3px solid var(--bronze);
  padding: 28px;
  background: var(--ivory);
}

blockquote p {
  margin-bottom: 20px;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 2.4rem);
  line-height: 1.15;
}

cite {
  color: var(--sage-dark);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.gallery {
  background: #ede9e0;
}

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

.gallery-grid img {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  object-fit: cover;
}

.gallery-grid img:nth-child(1),
.gallery-grid img:nth-child(2) {
  grid-column: auto;
  min-height: 0;
}

.gallery-grid img:nth-child(n + 3) {
  grid-column: auto;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 0.36fr);
  gap: clamp(28px, 6vw, 90px);
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: max(var(--panel-top), calc(var(--header-height) + 24px)) 0 var(--panel-bottom);
}

.contact p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
}

address {
  display: grid;
  gap: 12px;
  align-content: start;
  color: var(--sage-dark);
  font-style: normal;
  font-weight: 700;
  overflow-wrap: anywhere;
}

address a:hover,
address a:focus-visible {
  color: var(--bronze);
}

.site-footer {
  position: relative;
  z-index: 13;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 54px);
  color: rgba(255, 253, 249, 0.76);
  background: var(--ink);
  font-size: 0.86rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--paper);
  font-weight: 700;
}

@media (max-width: 980px) {
  .site-header {
    display: grid;
    gap: 12px;
    align-items: center;
  }

  .tab-list {
    width: 100%;
    max-width: 100%;
  }

  .hero {
    min-height: 100svh;
  }

  .hero__content {
    transform: none;
  }

  .intro,
  .experience,
  .contact {
    grid-template-columns: 1fr;
  }

  .intro {
    grid-template-areas:
      "heading"
      "body"
      "media";
    align-items: start;
    align-content: start;
  }

  .about-media {
    width: min(760px, 100%);
  }

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

  .service-card--wide {
    grid-column: span 1;
  }

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

}

@media (max-width: 720px) {
  :root {
    --panel-top: 148px;
    --panel-bottom: 44px;
  }

  body {
    font-size: 15px;
  }

  .site-header {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .brand {
    width: 128px;
  }

  .hero {
    min-height: 100svh;
  }

  h1 {
    font-size: clamp(3rem, 14vw, 4.2rem);
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__copy {
    max-width: 320px;
    font-size: 0.98rem;
  }

  .about-media__label {
    right: 14px;
    bottom: 12px;
    left: 14px;
  }

  .section {
    padding-top: max(var(--panel-top), calc(var(--header-height) + 24px));
    padding-bottom: var(--panel-bottom);
  }

  .tab-shell {
    scroll-margin-top: 88px;
  }

  .tab-list {
    gap: 8px;
    padding: 3px 2px;
  }

  .tab-link {
    min-height: 44px;
    padding: 9px 13px;
    font-size: 0.7rem;
  }

  .tab-panel:not(.hero) h2 {
    max-width: 100%;
    overflow-wrap: break-word;
    font-size: clamp(1.75rem, 8vw, 2.85rem);
    line-height: 1.02;
  }

  .section__heading,
  .section__heading--wide {
    width: 100%;
    max-width: calc(100vw - 36px);
  }

  .services .section__heading h2,
  .gallery .section__heading h2 {
    width: min(100%, 330px);
    font-size: clamp(1.7rem, 7.6vw, 2.65rem);
  }

  .service-grid,
  .interior-strip,
  .quote-grid,
  .gallery-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    overflow: visible;
    padding-bottom: 0;
    scroll-snap-type: none;
  }

  .service-card--wide,
  .gallery-grid img:nth-child(1),
  .gallery-grid img:nth-child(2),
  .gallery-grid img:nth-child(n + 3) {
    grid-column: auto;
  }

  .service-card,
  .interior-strip figure,
  .quote-grid blockquote,
  .gallery-grid img {
    min-width: 0;
    scroll-snap-align: none;
  }

  .gallery-grid img,
  .gallery-grid img:nth-child(1),
  .gallery-grid img:nth-child(2) {
    height: auto;
    min-height: 0;
  }

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

  .section-arrow {
    width: 50px;
    height: 50px;
  }
}

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

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

  .about-slide {
    transition: none;
  }
}
