.seo-page {
  background: var(--paper);
}

.seo-page .site-header {
  max-width: 78rem;
}

.seo-page .desktop-nav a[aria-current="page"] {
  color: #fff;
  opacity: 1;
}

.page-hero {
  position: relative;
  display: flex;
  min-height: min(53rem, 88svh);
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  background: #151514;
}

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

.page-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgb(10 10 9 / 0.88) 0%, rgb(10 10 9 / 0.58) 47%, rgb(10 10 9 / 0.16) 78%),
    linear-gradient(0deg, rgb(10 10 9 / 0.5), transparent 48%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  width: min(82rem, 90vw);
  margin: 0 auto;
  padding: 10rem 0 6.5rem;
}

.breadcrumbs {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 1.8rem;
  color: rgb(255 255 255 / 0.72);
  font-family: var(--feature-font);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.breadcrumbs a:hover {
  color: #fff;
}

.page-hero h1 {
  max-width: 12ch;
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(4rem, 7.4vw, 7rem);
  font-weight: 660;
  letter-spacing: -0.06em;
  line-height: 0.9;
  text-wrap: balance;
}

.page-hero h1 em {
  display: block;
}

.page-hero-copy {
  max-width: 35rem;
  margin: 2.15rem 0 2rem;
  color: rgb(255 255 255 / 0.84);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.65;
}

.page-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.content-wrap {
  width: min(78rem, 90vw);
  margin: 0 auto;
}

.page-section {
  padding: clamp(5.5rem, 9vw, 9rem) 0;
  content-visibility: auto;
  contain-intrinsic-size: auto 48rem;
}

.page-section + .page-section {
  border-top: 1px solid rgb(16 16 15 / 0.12);
}

.section-intro {
  max-width: 48rem;
  margin-bottom: 4rem;
}

.section-intro h2,
.content-split h2,
.page-cta h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(3rem, 5.2vw, 5.1rem);
  font-weight: 650;
  letter-spacing: -0.052em;
  line-height: 0.94;
  text-wrap: balance;
}

.section-intro p,
.content-split p {
  max-width: 40rem;
  margin: 1.6rem 0 0;
  color: #5a554f;
  font-size: 1.05rem;
  line-height: 1.75;
}

.service-directory {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
}

.service-link {
  position: relative;
  min-height: 31rem;
  overflow: hidden;
  border-radius: 1.5rem;
  color: #fff;
  background: #1b1b19;
}

.service-link:first-child {
  grid-row: span 2;
  min-height: 63.25rem;
}

.service-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.service-link::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgb(8 8 7 / 0.84), transparent 65%);
}

.service-link-content {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  padding: clamp(1.6rem, 3vw, 2.6rem);
}

.service-link h2 {
  margin: 0 0 0.7rem;
  font-family: var(--display-font);
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  font-weight: 640;
  letter-spacing: -0.05em;
  line-height: 0.94;
}

.service-link p {
  max-width: 31rem;
  margin: 0 0 1.25rem;
  color: rgb(255 255 255 / 0.78);
  line-height: 1.6;
}

.service-link strong {
  font-family: var(--feature-font);
  font-size: 0.84rem;
  font-weight: 720;
  letter-spacing: 0.06em;
}

.service-link:hover img {
  transform: scale(1.025);
}

.content-split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
}

.content-split.reverse .content-media {
  order: 2;
}

.content-media img {
  width: 100%;
  height: clamp(29rem, 52vw, 43rem);
  object-fit: cover;
  border-radius: 1.5rem;
  box-shadow: 0 1.4rem 4rem rgb(65 54 43 / 0.16);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 3rem;
  margin-top: 2.8rem;
  border-top: 1px solid rgb(16 16 15 / 0.18);
}

.detail-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgb(16 16 15 / 0.18);
}

.detail-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.detail-item p {
  margin: 0;
  color: #625d56;
  font-size: 0.94rem;
  line-height: 1.65;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: 1.5rem;
  background: rgb(16 16 15 / 0.14);
}

.step {
  min-height: 17rem;
  padding: 2.2rem;
  background: #ebe6df;
}

.step span {
  color: #9b3e12;
  font-family: var(--feature-font);
  font-size: 0.78rem;
  font-weight: 760;
}

.step h3 {
  margin: 4.2rem 0 0.65rem;
  font-family: var(--display-font);
  font-size: 1.65rem;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.step p {
  margin: 0;
  color: #625d56;
  line-height: 1.65;
}

.faq-stack {
  border-top: 1px solid rgb(16 16 15 / 0.18);
}

.faq-stack details {
  border-bottom: 1px solid rgb(16 16 15 / 0.18);
}

.faq-stack summary {
  cursor: pointer;
  padding: 1.6rem 0;
  font-family: var(--display-font);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 620;
  letter-spacing: -0.025em;
}

.faq-stack details p {
  max-width: 46rem;
  padding: 0 0 1.8rem;
  color: #5a554f;
  line-height: 1.75;
}

.page-cta {
  position: relative;
  display: flex;
  min-height: 38rem;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  content-visibility: auto;
  contain-intrinsic-size: auto 38rem;
}

.page-cta > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-cta::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgb(8 8 7 / 0.84), rgb(8 8 7 / 0.18));
}

.page-cta-content {
  position: relative;
  z-index: 1;
  width: min(78rem, 90vw);
  margin: 0 auto;
  padding: 5rem 0;
}

.page-cta p {
  max-width: 34rem;
  margin: 1.4rem 0 2rem;
  color: rgb(255 255 255 / 0.8);
  font-size: 1.05rem;
}

.seo-page footer {
  border-top: 0;
}

@media (max-width: 1000px) {
  .service-directory {
    grid-template-columns: 1fr 1fr;
  }

  .service-link:first-child {
    grid-row: auto;
    grid-column: 1 / -1;
    min-height: 38rem;
  }

  .content-split {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .content-split.reverse .content-media {
    order: 0;
  }
}

@media (max-width: 760px) {
  .page-hero {
    min-height: 42rem;
  }

  .page-hero::after {
    background: linear-gradient(0deg, rgb(10 10 9 / 0.9), rgb(10 10 9 / 0.2));
  }

  .page-hero-content {
    width: calc(100% - 2.75rem);
    padding: 7.75rem 0 4rem;
  }

  .page-hero h1 {
    max-width: 10ch;
    font-size: clamp(2.95rem, 13.5vw, 3.8rem);
    line-height: 0.94;
  }

  .page-hero-copy {
    margin-top: 1.7rem;
    font-size: 1rem;
  }

  .page-actions {
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }

  .page-actions .button {
    width: min(100%, 20rem);
    min-width: 0;
  }

  .content-wrap,
  .page-cta-content {
    width: calc(100% - 2.5rem);
  }

  .page-section {
    padding: 4.75rem 0;
  }

  .section-intro {
    margin-bottom: 2.75rem;
  }

  .section-intro h2,
  .content-split h2,
  .page-cta h2 {
    font-size: clamp(2.55rem, 11.5vw, 3.3rem);
    line-height: 0.98;
  }

  .section-intro p,
  .content-split p {
    margin-top: 1.25rem;
    font-size: 0.98rem;
    line-height: 1.68;
  }

  .service-directory,
  .detail-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .service-link,
  .service-link:first-child {
    grid-column: auto;
    min-height: 31rem;
  }

  .content-media img {
    height: 25rem;
  }

  .steps {
    gap: 1px;
  }

  .step {
    min-height: 12rem;
    padding: 1.6rem;
  }

  .step h3 {
    margin-top: 2rem;
  }

  .page-cta {
    min-height: 34rem;
  }

  .page-cta-content {
    padding: 4rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-link img {
    transition: none;
  }
}

/* Each destination keeps the Davis system but uses a distinct composition. */
.page-interior .page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: stretch;
  min-height: 52rem;
}

.page-interior .page-hero::after,
.page-exterior .page-hero::after,
.page-about .page-hero::after {
  display: none;
}

.page-interior .page-hero > img {
  position: static;
  grid-column: 2;
  grid-row: 1;
  height: 100%;
  object-position: center;
}

.page-interior .page-hero-content {
  grid-column: 1;
  grid-row: 1;
  width: auto;
  margin: 0;
  padding: 11rem 6vw 6rem;
  align-self: center;
}

.page-interior .page-hero h1 {
  font-size: clamp(4rem, 6.4vw, 6.4rem);
}

.page-interior .content-split {
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
}

.page-interior .content-media img {
  height: clamp(34rem, 58vw, 48rem);
}

.page-exterior .page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: center;
  min-height: 52rem;
  padding: 8.5rem 5vw 4.5rem;
  color: var(--ink);
  background: #e7eaec;
}

.page-exterior .page-hero > img {
  position: static;
  grid-column: 2;
  grid-row: 1;
  height: min(42rem, 72vh);
  border-radius: 1.75rem;
  box-shadow: 0 1.6rem 4.5rem rgb(42 48 53 / 0.2);
}

.page-exterior .page-hero-content {
  grid-column: 1;
  grid-row: 1;
  width: auto;
  margin: 0;
  padding: 2rem 0;
}

.page-exterior .breadcrumbs,
.page-about .breadcrumbs {
  color: #655f58;
}

.page-exterior .page-hero-copy,
.page-about .page-hero-copy {
  color: #55514c;
}

.page-exterior .page-hero .text-link,
.page-about .page-hero .text-link {
  color: var(--ink);
  border-color: rgb(16 16 15 / 0.28);
}

.page-exterior .page-hero h1 {
  font-size: clamp(3.8rem, 6.1vw, 6.1rem);
}

.page-about .page-hero {
  display: grid;
  grid-template-rows: auto 31rem;
  align-items: stretch;
  min-height: auto;
  padding: 7.5rem 5vw 0;
  color: var(--ink);
  background: var(--paper);
}

.page-about .page-hero > img {
  position: static;
  grid-row: 2;
  width: min(84rem, 100%);
  height: 31rem;
  margin: 0 auto;
  border-radius: 1.75rem 1.75rem 0 0;
  object-position: center 42%;
}

.page-about .page-hero-content {
  grid-row: 1;
  width: min(68rem, 100%);
  margin: 0 auto;
  padding: 4rem 0 5rem;
  text-align: center;
}

.page-about .breadcrumbs,
.page-about .page-actions {
  justify-content: center;
}

.page-about .page-hero h1,
.page-about .page-hero-copy {
  margin-right: auto;
  margin-left: auto;
}

.page-about .page-hero h1 {
  max-width: 13ch;
}

.page-full .page-hero-content {
  text-align: center;
}

.page-full .breadcrumbs,
.page-full .page-actions {
  justify-content: center;
}

.page-full .page-hero h1,
.page-full .page-hero-copy {
  margin-right: auto;
  margin-left: auto;
}

.page-full .page-hero::after {
  background:
    radial-gradient(circle at 50% 52%, transparent 0, rgb(8 8 7 / 0.24) 34%, rgb(8 8 7 / 0.72) 88%),
    linear-gradient(0deg, rgb(8 8 7 / 0.62), transparent 58%);
}

.steps {
  gap: 0.8rem;
  overflow: visible;
  background: transparent;
}

.step {
  border: 1px solid rgb(16 16 15 / 0.1);
  border-radius: 1.25rem;
  transition:
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1),
    background-color 260ms ease,
    box-shadow 320ms ease;
}

.step span {
  display: inline-grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border: 1px solid rgb(155 62 18 / 0.28);
  border-radius: 50%;
  transition:
    color 260ms ease,
    background-color 260ms ease,
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.step:hover {
  z-index: 1;
  background: #fff;
  transform: translateY(-0.55rem);
  box-shadow: 0 1.2rem 3.2rem rgb(65 54 43 / 0.14);
}

.step:hover span {
  color: #fff;
  background: #9b3e12;
  transform: rotate(-6deg) scale(1.08);
}

.page-about .steps {
  display: block;
  border-top: 1px solid rgb(16 16 15 / 0.16);
}

.page-about .step {
  display: grid;
  grid-template-columns: 4rem minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  min-height: auto;
  padding: 1.8rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgb(16 16 15 / 0.16);
  border-radius: 0;
}

.page-about .step h3,
.page-about .step p {
  margin: 0;
}

.page-about .step:hover {
  padding-right: 1.25rem;
  padding-left: 1.25rem;
  background: rgb(255 255 255 / 0.52);
  transform: translateX(0.45rem);
  box-shadow: none;
}

@media (max-width: 760px) {
  .page-interior .page-hero,
  .page-exterior .page-hero,
  .page-about .page-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .page-interior .page-hero {
    grid-template-rows: 24rem auto;
  }

  .page-interior .page-hero > img {
    grid-column: 1;
    grid-row: 1;
    height: 24rem;
  }

  .page-interior .page-hero-content {
    grid-column: 1;
    grid-row: 2;
    padding: 3rem 1.25rem 4rem;
  }

  .page-exterior .page-hero {
    grid-template-rows: auto 24rem;
    gap: 2rem;
    padding: 7rem 1.25rem 1.5rem;
  }

  .page-exterior .page-hero-content {
    grid-column: 1;
    grid-row: 1;
  }

  .page-exterior .page-hero > img {
    grid-column: 1;
    grid-row: 2;
    height: 24rem;
  }

  .page-about .page-hero {
    grid-template-rows: auto 21rem;
    padding: 6.75rem 1.25rem 0;
  }

  .page-about .page-hero-content {
    padding: 2.5rem 0 3.5rem;
  }

  .page-about .page-hero > img {
    height: 21rem;
  }

  .page-about .page-actions {
    align-items: center;
  }

  .page-about .step {
    grid-template-columns: 3rem 1fr;
    gap: 1rem;
  }

  .page-about .step p {
    grid-column: 2;
  }

  .page-about .step:hover {
    padding-right: 0;
    padding-left: 0;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .step,
  .step span {
    transition: none;
  }
}
