/* Homepage-only continuation of the cinematic hero language. */
html body[data-page-type="homepage"] main > .section {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-block: clamp(104px, 10vw, 154px);
  padding-inline: max(30px, calc((100vw - 1180px) / 2));
}

html body[data-page-type="homepage"] main > .section .section-heading {
  margin-bottom: clamp(52px, 6vw, 78px);
}

html body[data-page-type="homepage"] main > .section .section-heading h2 {
  font-size: clamp(3rem, 4.6vw, 5.4rem);
  line-height: 0.96;
}

html body[data-page-type="homepage"] .home-conversion-band {
  background:
    radial-gradient(circle at 92% 4%, rgba(200, 149, 108, 0.09), transparent 24%),
    #141210;
}

html body[data-page-type="homepage"] .home-conversion-band .conversion-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  border: 0;
  background: transparent;
}

html body[data-page-type="homepage"] .home-conversion-band .conversion-card,
html body[data-page-type="homepage"] .home-conversion-band .conversion-card:first-child,
html body[data-page-type="homepage"] .home-conversion-band .conversion-card:hover,
html body[data-page-type="homepage"] .home-conversion-band .conversion-card:first-child:hover {
  min-height: 280px;
  padding: 40px 36px;
  border: 1px solid rgba(200, 149, 108, 0.11) !important;
  border-radius: 16px;
  background: #181512;
  transition: transform 420ms cubic-bezier(.2, .7, .2, 1), border-color 420ms ease, box-shadow 420ms ease;
}

html body[data-page-type="homepage"] .home-conversion-band .conversion-card::before {
  content: "";
  width: 38px;
  height: 1px;
  margin-bottom: auto;
  background: #c8956c;
  opacity: 0.8;
}

html body[data-page-type="homepage"] .home-conversion-band .conversion-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 149, 108, 0.28) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

html body[data-page-type="homepage"] .home-cinematic-divider {
  position: relative;
  width: 100%;
  height: clamp(440px, 62vh, 720px);
  overflow: hidden;
  border-top: 1px solid rgba(200, 149, 108, 0.08);
  border-bottom: 1px solid rgba(200, 149, 108, 0.08);
  background: #0c0a09;
}

html body[data-page-type="homepage"] .home-cinematic-divider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  filter: saturate(0.62) brightness(0.72) contrast(1.06);
  transform: scale(1.015);
}

html body[data-page-type="homepage"] .home-cinematic-divider span {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 10, 9, 0.46), rgba(12, 10, 9, 0.02) 48%, rgba(12, 10, 9, 0.42)),
    linear-gradient(180deg, rgba(12, 10, 9, 0.18), transparent 40%, rgba(12, 10, 9, 0.42));
}

html body[data-page-type="homepage"] .traveler-entry-section {
  background:
    radial-gradient(circle at 7% 4%, rgba(107, 143, 113, 0.09), transparent 21%),
    #141210;
}

html body[data-page-type="homepage"] .traveler-entry-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 340px;
  gap: 20px;
}

html body[data-page-type="homepage"] .traveler-entry-card,
html body[data-page-type="homepage"] .traveler-entry-card:nth-child(3),
html body[data-page-type="homepage"] .traveler-entry-card:nth-child(4),
html body[data-page-type="homepage"] .traveler-entry-card:nth-child(6) {
  grid-column: span 1;
  grid-row: span 1;
  min-height: 0;
  border-radius: 16px;
  transition: transform 520ms cubic-bezier(.2, .7, .2, 1), box-shadow 520ms ease, background-size 700ms cubic-bezier(.2, .7, .2, 1);
}

html body[data-page-type="homepage"] .traveler-entry-card:nth-child(1) {
  background-image: url("./pic/generated/suzhou-garden.webp");
  background-position: center;
}

html body[data-page-type="homepage"] .traveler-entry-card:nth-child(2) {
  background-image: url("./pic/generated/mini-tea-set.webp");
  background-position: center 58%;
}

html body[data-page-type="homepage"] .traveler-entry-card:nth-child(3) {
  background-image: url("./pic/generated/pattern-light.webp");
  background-position: center 54%;
}

html body[data-page-type="homepage"] .traveler-entry-card:nth-child(4) {
  grid-column: span 2;
  background-image: url("./pic/generated/wukang-mansion-cw.webp");
  background-position: center 48%;
}

html body[data-page-type="homepage"] .traveler-entry-card:nth-child(5) {
  background-image: url("./pic/generated/solo-lantern.webp");
  background-position: center 38%;
}

html body[data-page-type="homepage"] .traveler-entry-card:nth-child(6) {
  grid-column: 1 / -1;
  background-image: url("./pic/generated/hongcun-village.webp");
  background-position: center 45%;
}

html body[data-page-type="homepage"] .traveler-entry-card:hover {
  transform: translateY(-6px);
  background-size: 106%;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

html body[data-page-type="homepage"] .traveler-entry-card h3 {
  font-size: clamp(2rem, 3vw, 3.25rem);
}

html body[data-page-type="homepage"] .home-trust-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  column-gap: clamp(64px, 9vw, 126px);
  align-items: start;
  background: #181512;
}

html body[data-page-type="homepage"] .home-trust-section .section-heading {
  display: block;
  grid-column: 1;
  margin: 0;
  padding: 0;
  border: 0;
}

html body[data-page-type="homepage"] .home-trust-section .section-heading h2 {
  max-width: 9ch;
  font-style: italic;
}

html body[data-page-type="homepage"] .home-trust-section .section-heading > p {
  max-width: 44ch;
  margin-top: 28px;
  line-height: 1.85;
}

html body[data-page-type="homepage"] .home-trust-section .trust-strip {
  grid-column: 2;
  display: block;
  border: 0;
  border-top: 1px solid rgba(200, 149, 108, 0.13);
}

html body[data-page-type="homepage"] .home-trust-section .trust-card,
html body[data-page-type="homepage"] .home-trust-section .trust-card:nth-child(2) {
  min-height: 0;
  padding: 28px 0 30px;
  border: 0;
  border-right: 0;
  border-bottom: 1px solid rgba(200, 149, 108, 0.13);
}

html body[data-page-type="homepage"] .home-trust-section .trust-card h3 {
  color: #d4a87c;
  font-size: 1.6rem;
}

html body[data-page-type="homepage"] .home-trust-section .trust-card p {
  max-width: 55ch;
  margin-top: 8px;
}

html body[data-page-type="homepage"] .home-trust-section .trust-actions {
  grid-column: 2;
  justify-content: flex-start;
  margin-top: 34px;
}

html body[data-page-type="homepage"] .journeys {
  background: #141210;
}

html body[data-page-type="homepage"] .journeys .journey-grid {
  gap: 20px;
  border: 0;
  background: transparent;
}

html body[data-page-type="homepage"] .journeys .journey-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(200, 149, 108, 0.12);
  border-radius: 16px;
  background-position: center;
  background-size: cover;
  isolation: isolate;
  transition: transform 520ms cubic-bezier(.2, .7, .2, 1), box-shadow 520ms ease, background-size 700ms cubic-bezier(.2, .7, .2, 1);
}

html body[data-page-type="homepage"] .journeys .journey-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(12, 10, 9, 0.16), rgba(12, 10, 9, 0.92));
}

html body[data-page-type="homepage"] .journeys .journey-card:nth-child(1) {
  background-image: url("./pic/generated/cultural-teahouse.webp");
}

html body[data-page-type="homepage"] .journeys .journey-card:nth-child(2) {
  background-image: url("./pic/generated/hutong-lane.webp");
  background-position: center 42%;
}

html body[data-page-type="homepage"] .journeys .journey-card:nth-child(3) {
  background-image: url("./pic/generated/porcelain-display.webp");
  background-position: center 52%;
}

html body[data-page-type="homepage"] .journeys .journey-card:nth-child(4) {
  background-image: url("./pic/optimized/cixiu.webp");
  background-position: center;
}

html body[data-page-type="homepage"] .journeys .journey-card:hover {
  transform: translateY(-5px);
  background-size: 105%;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.36);
}

html body[data-page-type="homepage"] .journeys .journey-card p:not(.journey-index) {
  color: rgba(240, 235, 226, 0.72);
}

html body[data-page-type="homepage"] .image-break {
  background: #181512;
}

html body[data-page-type="homepage"] .image-break .arc-layout {
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(54px, 8vw, 104px);
  align-items: stretch;
}

html body[data-page-type="homepage"] .image-break .arc-layout > img {
  width: 100%;
  height: 100%;
  min-height: 720px;
  max-height: 860px;
  border: 1px solid rgba(200, 149, 108, 0.18);
  border-radius: 16px;
  box-shadow: none;
  object-fit: cover;
}

html body[data-page-type="homepage"] .image-break .arc-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding-left: 34px;
  border-left: 1px solid rgba(200, 149, 108, 0.2);
  background: transparent;
}

html body[data-page-type="homepage"] .image-break .arc-card {
  position: relative;
  min-height: 170px;
  padding: 10px 0 34px 18px;
  border: 0;
  border-bottom: 1px solid rgba(200, 149, 108, 0.12);
  background: transparent;
}

html body[data-page-type="homepage"] .image-break .arc-card:last-child {
  border-bottom: 0;
}

html body[data-page-type="homepage"] .image-break .arc-card::before {
  content: "";
  position: absolute;
  top: 17px;
  left: -41px;
  width: 11px;
  height: 11px;
  border: 2px solid #8f6848;
  border-radius: 50%;
  background: #181512;
}

html body[data-page-type="homepage"] .image-break .arc-card:first-child::before {
  border-color: #c8956c;
  box-shadow: 0 0 16px rgba(200, 149, 108, 0.32);
}

html body[data-page-type="homepage"] .image-break .arc-card h3 {
  margin-top: 16px;
  font-size: 2rem;
}

html body[data-page-type="homepage"] .image-break .home-journey-links {
  gap: 16px;
  border: 0;
  background: transparent;
}

html body[data-page-type="homepage"] .image-break .home-journey-links a {
  min-height: 132px;
  border: 1px solid rgba(200, 149, 108, 0.12);
  border-radius: 12px;
}

html body[data-page-type="homepage"] .journal {
  background: #141210;
}

html body[data-page-type="homepage"] .journal .journal-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  grid-template-rows: repeat(2, minmax(260px, 1fr));
  gap: 20px;
  border: 0;
}

html body[data-page-type="homepage"] .journal .journal-card {
  min-height: 0;
  padding: 36px;
  border: 1px solid rgba(200, 149, 108, 0.11);
  border-radius: 16px;
  background: #181512;
  transition: transform 420ms cubic-bezier(.2, .7, .2, 1), border-color 420ms ease, box-shadow 420ms ease;
}

html body[data-page-type="homepage"] .journal .journal-card:first-child {
  grid-row: 1 / 3;
  min-height: 620px;
  background:
    linear-gradient(180deg, rgba(12, 10, 9, 0.08), rgba(12, 10, 9, 0.92)),
    url("./pic/generated/great-wall-sunrise-portrait.webp") center 45% / cover;
}

html body[data-page-type="homepage"] .journal .journal-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 149, 108, 0.26);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

html body[data-page-type="homepage"] .consultation {
  background:
    radial-gradient(circle at 92% 8%, rgba(200, 149, 108, 0.1), transparent 24%),
    #1c1815;
}

html body[data-page-type="homepage"] .consultation .next-step-grid {
  gap: 16px;
  border: 0;
  background: transparent;
}

html body[data-page-type="homepage"] .consultation .next-step-card {
  min-height: 245px;
  border: 1px solid rgba(200, 149, 108, 0.12);
  border-radius: 14px;
  background: rgba(20, 18, 16, 0.54);
}

html body[data-page-type="homepage"] .consultation .lead-capture-panel {
  margin-top: clamp(58px, 7vw, 92px);
  border-radius: 20px;
}

html body[data-page-type="homepage"] .consultation .lead-capture-copy {
  border-radius: 19px 0 0 19px;
}

html body[data-page-type="homepage"] .ai-entry-section {
  padding-inline: max(30px, calc((100vw - 1180px) / 2));
}

@media (max-width: 980px) {
  html body[data-page-type="homepage"] .topbar {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 18px;
    padding-inline: 24px;
  }

  html body[data-page-type="homepage"] .topbar .brand,
  html body[data-page-type="homepage"] .topbar .nav {
    width: auto;
  }

  html body[data-page-type="homepage"] .topbar .brand {
    flex: 0 0 auto;
  }

  html body[data-page-type="homepage"] .topbar .brand-text span {
    display: none;
  }

  html body[data-page-type="homepage"] .topbar .nav {
    flex-wrap: nowrap;
    gap: 14px;
  }

  html body[data-page-type="homepage"] .topbar .nav a {
    font-size: 0.78rem;
    white-space: nowrap;
  }

  html body[data-page-type="homepage"] .topbar .nav-cta {
    padding: 11px 15px;
  }

  html body[data-page-type="homepage"] .traveler-entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 360px;
  }

  html body[data-page-type="homepage"] .traveler-entry-card,
  html body[data-page-type="homepage"] .traveler-entry-card:nth-child(3),
  html body[data-page-type="homepage"] .traveler-entry-card:nth-child(4),
  html body[data-page-type="homepage"] .traveler-entry-card:nth-child(6) {
    grid-column: span 1;
  }

  html body[data-page-type="homepage"] .traveler-entry-card:nth-child(6) {
    grid-column: 1 / -1;
  }

  html body[data-page-type="homepage"] .home-trust-section {
    grid-template-columns: 1fr;
    row-gap: 54px;
  }

  html body[data-page-type="homepage"] .home-trust-section .section-heading,
  html body[data-page-type="homepage"] .home-trust-section .trust-strip,
  html body[data-page-type="homepage"] .home-trust-section .trust-actions {
    grid-column: 1;
  }

  html body[data-page-type="homepage"] .image-break .arc-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  html body[data-page-type="homepage"] .topbar .brand-text span {
    display: none;
  }

  html body[data-page-type="homepage"] main > .section {
    padding: 78px 16px;
  }

  html body[data-page-type="homepage"] main > .section .section-heading {
    margin-bottom: 42px;
  }

  html body[data-page-type="homepage"] main > .section .section-heading h2 {
    font-size: clamp(2.65rem, 12vw, 3.65rem);
    line-height: 0.98;
  }

  html body[data-page-type="homepage"] .home-conversion-band .conversion-grid,
  html body[data-page-type="homepage"] .traveler-entry-grid,
  html body[data-page-type="homepage"] .journal .journal-grid {
    grid-template-columns: 1fr;
  }

  html body[data-page-type="homepage"] .home-conversion-band .conversion-card,
  html body[data-page-type="homepage"] .home-conversion-band .conversion-card:first-child,
  html body[data-page-type="homepage"] .home-conversion-band .conversion-card:hover,
  html body[data-page-type="homepage"] .home-conversion-band .conversion-card:first-child:hover {
    min-height: 250px;
    padding: 32px 26px;
  }

  html body[data-page-type="homepage"] .home-cinematic-divider {
    height: 430px;
  }

  html body[data-page-type="homepage"] .traveler-entry-grid {
    grid-auto-rows: 430px;
  }

  html body[data-page-type="homepage"] .traveler-entry-card,
  html body[data-page-type="homepage"] .traveler-entry-card:nth-child(3),
  html body[data-page-type="homepage"] .traveler-entry-card:nth-child(4),
  html body[data-page-type="homepage"] .traveler-entry-card:nth-child(6) {
    grid-column: 1;
    border-radius: 14px;
  }

  html body[data-page-type="homepage"] .journeys .journey-card {
    min-height: 390px;
    border-radius: 14px;
  }

  html body[data-page-type="homepage"] .image-break .arc-layout > img {
    min-height: 450px;
    max-height: 520px;
    border-radius: 14px;
  }

  html body[data-page-type="homepage"] .image-break .arc-grid {
    padding-left: 28px;
  }

  html body[data-page-type="homepage"] .image-break .arc-card::before {
    left: -35px;
  }

  html body[data-page-type="homepage"] .journal .journal-grid {
    grid-template-rows: auto;
  }

  html body[data-page-type="homepage"] .journal .journal-card,
  html body[data-page-type="homepage"] .journal .journal-card:first-child {
    grid-row: auto;
    min-height: 360px;
    padding: 30px 24px;
    border-radius: 14px;
  }

  html body[data-page-type="homepage"] .ai-entry-section {
    padding-inline: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body[data-page-type="homepage"] .conversion-card,
  html body[data-page-type="homepage"] .traveler-entry-card,
  html body[data-page-type="homepage"] .journey-card,
  html body[data-page-type="homepage"] .journal-card {
    transition: none !important;
  }
}

/* V6: remove repetitive card rhythm from the lower half. */
html body[data-page-type="homepage"] .journeys .journey-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 390px;
}

html body[data-page-type="homepage"] .journeys .journey-card,
html body[data-page-type="homepage"] .journeys .journey-card:nth-child(1),
html body[data-page-type="homepage"] .journeys .journey-card:nth-child(2),
html body[data-page-type="homepage"] .journeys .journey-card:nth-child(3),
html body[data-page-type="homepage"] .journeys .journey-card:nth-child(4) {
  grid-column: span 6;
  min-height: 0;
  padding: clamp(34px, 4vw, 52px);
}

html body[data-page-type="homepage"] .journeys .journey-card:nth-child(1),
html body[data-page-type="homepage"] .journeys .journey-card:nth-child(4) {
  grid-column: span 7;
}

html body[data-page-type="homepage"] .journeys .journey-card:nth-child(2),
html body[data-page-type="homepage"] .journeys .journey-card:nth-child(3) {
  grid-column: span 5;
}

html body[data-page-type="homepage"] .journeys .journey-card h3 {
  max-width: 10ch;
  font-size: clamp(2.7rem, 4.5vw, 4.9rem);
  line-height: 0.92;
}

html body[data-page-type="homepage"] .journeys .journey-card p:not(.journey-index) {
  max-width: 46ch;
}

html body[data-page-type="homepage"] .image-break .home-journey-links {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(62px, 8vw, 96px);
  border-top: 1px solid rgba(200, 149, 108, 0.16);
  border-bottom: 1px solid rgba(200, 149, 108, 0.16);
}

html body[data-page-type="homepage"] .image-break .home-journey-links a,
html body[data-page-type="homepage"] .image-break .home-journey-links a:nth-child(2),
html body[data-page-type="homepage"] .image-break .home-journey-links a:last-child {
  min-height: 128px;
  padding: 26px 24px;
  border: 0 !important;
  border-right: 1px solid rgba(200, 149, 108, 0.14) !important;
  border-radius: 0;
  background: transparent;
}

html body[data-page-type="homepage"] .image-break .home-journey-links a:last-child {
  border-right: 0;
}

html body[data-page-type="homepage"] .image-break .home-journey-links a:hover {
  transform: none;
  background: rgba(200, 149, 108, 0.035);
}

html body[data-page-type="homepage"] .image-break .home-journey-links strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.28rem;
  font-weight: 500;
  line-height: 1.15;
}

html body[data-page-type="homepage"] .journal > .link-row {
  justify-content: flex-end;
  gap: 28px;
  margin: -34px 0 42px;
}

html body[data-page-type="homepage"] .journal > .link-row .text-link {
  padding-bottom: 8px;
  border-bottom-color: rgba(200, 149, 108, 0.5);
}

html body[data-page-type="homepage"] .journal .journal-card:nth-child(2),
html body[data-page-type="homepage"] .journal .journal-card:nth-child(3) {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

html body[data-page-type="homepage"] .journal .journal-card:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(12, 10, 9, 0.3), rgba(12, 10, 9, 0.94)),
    url("./pic/generated/shenzhen-bay-park.webp") center / cover;
}

html body[data-page-type="homepage"] .consultation .next-step-grid {
  position: relative;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-bottom: clamp(66px, 8vw, 98px);
  border-top: 1px solid rgba(200, 149, 108, 0.18);
  border-bottom: 1px solid rgba(200, 149, 108, 0.18);
}

html body[data-page-type="homepage"] .consultation .next-step-card,
html body[data-page-type="homepage"] .consultation .next-step-card:last-child {
  position: relative;
  min-height: 250px;
  padding: 42px 34px 36px;
  border: 0;
  border-right: 1px solid rgba(200, 149, 108, 0.14);
  border-radius: 0;
  background: transparent;
}

html body[data-page-type="homepage"] .consultation .next-step-card:last-child {
  border-right: 0;
}

html body[data-page-type="homepage"] .consultation .next-step-card::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 34px;
  width: 10px;
  height: 10px;
  border: 1px solid #c8956c;
  border-radius: 50%;
  background: #1c1815;
  box-shadow: 0 0 0 5px #1c1815;
}

html body[data-page-type="homepage"] .consultation .next-step-card h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.7rem, 2.5vw, 2.25rem);
  font-weight: 500;
}

html body[data-page-type="homepage"] .consultation .lead-capture-panel {
  grid-template-columns: minmax(310px, 0.78fr) minmax(0, 1.22fr);
  margin-top: 0;
  border-color: rgba(200, 149, 108, 0.22);
  border-radius: 24px;
  box-shadow: 0 42px 110px rgba(0, 0, 0, 0.3);
}

html body[data-page-type="homepage"] .consultation .lead-capture-copy {
  min-height: 100%;
  padding: clamp(42px, 5vw, 68px);
  border-radius: 23px 0 0 23px;
  background:
    linear-gradient(180deg, rgba(12, 10, 9, 0.16), rgba(12, 10, 9, 0.9)),
    url("./pic/generated/courtyard-door.webp") center / cover;
}

html body[data-page-type="homepage"] .consultation .lead-capture-copy h2 {
  font-size: clamp(3rem, 4.2vw, 4.9rem);
  line-height: 0.94;
}

html body[data-page-type="homepage"] .consultation .lead-capture-form {
  padding: clamp(34px, 4vw, 54px);
  border-radius: 0 23px 23px 0;
}

html body[data-page-type="homepage"] .consultation .lead-field-block input,
html body[data-page-type="homepage"] .consultation .lead-field-block select,
html body[data-page-type="homepage"] .consultation .lead-field-block textarea {
  min-height: 56px;
  border: 1px solid rgba(48, 38, 30, 0.2);
  border-radius: 10px;
  background: rgba(255, 253, 249, 0.72);
  box-shadow: none;
}

html body[data-page-type="homepage"] .consultation .lead-field-block input:focus,
html body[data-page-type="homepage"] .consultation .lead-field-block select:focus,
html body[data-page-type="homepage"] .consultation .lead-field-block textarea:focus {
  border-color: #9d6d49;
  box-shadow: 0 0 0 3px rgba(157, 109, 73, 0.11);
}

html body[data-page-type="homepage"] .ai-entry-section {
  padding-block: 72px;
  border-top: 1px solid rgba(200, 149, 108, 0.1);
  border-bottom: 1px solid rgba(200, 149, 108, 0.08);
  background: #0d0b0a;
}

html body[data-page-type="homepage"] .ai-entry-panel {
  grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1.42fr);
  gap: clamp(42px, 7vw, 84px);
}

html body[data-page-type="homepage"] .ai-entry-copy h2 {
  max-width: 12ch;
  font-size: clamp(2.3rem, 3.4vw, 3.8rem);
}

html body[data-page-type="homepage"] .ai-entry-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html body[data-page-type="homepage"] .ai-entry-card {
  min-height: 190px;
  padding: 26px;
}

html body[data-page-type="homepage"] .site-footer {
  padding-top: 72px;
}

html body[data-page-type="homepage"] .site-footer .footer-content,
html body[data-page-type="homepage"] .site-footer .footer-bottom {
  width: min(1180px, 100%);
  max-width: 1180px;
  margin-inline: auto;
}

html body[data-page-type="homepage"] .site-footer .footer-content {
  grid-template-columns: minmax(250px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(48px, 8vw, 104px);
}

html body[data-page-type="homepage"] .site-footer .footer-links-grid {
  grid-template-columns: 0.9fr 1fr 1.28fr 0.72fr;
  column-gap: 28px;
}

@media (max-width: 980px) {
  html body[data-page-type="homepage"] .journeys .journey-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 390px;
  }

  html body[data-page-type="homepage"] .journeys .journey-card,
  html body[data-page-type="homepage"] .journeys .journey-card:nth-child(1),
  html body[data-page-type="homepage"] .journeys .journey-card:nth-child(2),
  html body[data-page-type="homepage"] .journeys .journey-card:nth-child(3),
  html body[data-page-type="homepage"] .journeys .journey-card:nth-child(4) {
    grid-column: span 1;
  }

  html body[data-page-type="homepage"] .image-break .home-journey-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html body[data-page-type="homepage"] .image-break .home-journey-links a:nth-child(2) {
    border-right: 0;
  }

  html body[data-page-type="homepage"] .image-break .home-journey-links a:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(200, 149, 108, 0.14);
  }

  html body[data-page-type="homepage"] .consultation .lead-capture-panel,
  html body[data-page-type="homepage"] .ai-entry-panel,
  html body[data-page-type="homepage"] .site-footer .footer-content {
    grid-template-columns: 1fr;
  }

  html body[data-page-type="homepage"] .consultation .lead-capture-copy,
  html body[data-page-type="homepage"] .consultation .lead-capture-form {
    border-radius: 0;
  }
}

@media (max-width: 760px) {
  html body[data-page-type="homepage"] .journeys .journey-grid,
  html body[data-page-type="homepage"] .image-break .home-journey-links,
  html body[data-page-type="homepage"] .consultation .next-step-grid,
  html body[data-page-type="homepage"] .ai-entry-grid {
    grid-template-columns: 1fr;
  }

  html body[data-page-type="homepage"] .journeys .journey-grid {
    grid-auto-rows: auto;
  }

  html body[data-page-type="homepage"] .journeys .journey-card,
  html body[data-page-type="homepage"] .journeys .journey-card:nth-child(1),
  html body[data-page-type="homepage"] .journeys .journey-card:nth-child(2),
  html body[data-page-type="homepage"] .journeys .journey-card:nth-child(3),
  html body[data-page-type="homepage"] .journeys .journey-card:nth-child(4) {
    min-height: 390px;
  }

  html body[data-page-type="homepage"] .image-break .home-journey-links a,
  html body[data-page-type="homepage"] .image-break .home-journey-links a:nth-child(2),
  html body[data-page-type="homepage"] .image-break .home-journey-links a:last-child {
    min-height: 104px;
    border-right: 0;
    border-bottom: 1px solid rgba(200, 149, 108, 0.14);
  }

  html body[data-page-type="homepage"] .image-break .home-journey-links a:last-child {
    border-bottom: 0;
  }

  html body[data-page-type="homepage"] .journal > .link-row {
    justify-content: flex-start;
    margin-top: -18px;
  }

  html body[data-page-type="homepage"] .consultation .next-step-grid {
    margin-bottom: 48px;
  }

  html body[data-page-type="homepage"] .consultation .next-step-card,
  html body[data-page-type="homepage"] .consultation .next-step-card:last-child {
    min-height: 0;
    padding: 34px 4px;
    border-right: 0;
    border-bottom: 1px solid rgba(200, 149, 108, 0.14);
  }

  html body[data-page-type="homepage"] .consultation .next-step-card::before {
    left: 4px;
  }

  html body[data-page-type="homepage"] .ai-entry-section {
    padding-block: 64px;
  }

  html body[data-page-type="homepage"] .ai-entry-card {
    min-height: 0;
  }
}

/* V7: tighten chapter transitions and carry the cinematic language to the footer. */
html body[data-page-type="homepage"] .traveler-entry-section,
html body[data-page-type="homepage"] .home-trust-section,
html body[data-page-type="homepage"] .journeys,
html body[data-page-type="homepage"] .image-break,
html body[data-page-type="homepage"] .journal,
html body[data-page-type="homepage"] .consultation {
  position: relative;
}

html body[data-page-type="homepage"] main > .traveler-entry-section,
html body[data-page-type="homepage"] main > .home-trust-section {
  padding-block: clamp(92px, 7.5vw, 116px);
}

html body[data-page-type="homepage"] main > .journeys {
  padding-top: clamp(96px, 7.5vw, 118px);
  padding-bottom: clamp(82px, 6.5vw, 102px);
}

html body[data-page-type="homepage"] main > .image-break {
  padding-top: clamp(92px, 7vw, 108px);
  padding-bottom: clamp(88px, 6.8vw, 106px);
}

html body[data-page-type="homepage"] main > .journal {
  padding-top: clamp(92px, 7vw, 108px);
  padding-bottom: clamp(90px, 7vw, 108px);
}

html body[data-page-type="homepage"] main > .consultation {
  padding-top: clamp(96px, 7.5vw, 116px);
  padding-bottom: clamp(92px, 7vw, 108px);
}

html body[data-page-type="homepage"] .home-trust-section::after,
html body[data-page-type="homepage"] .journeys::after,
html body[data-page-type="homepage"] .image-break::after,
html body[data-page-type="homepage"] .journal::after {
  content: "";
  position: absolute;
  right: max(30px, calc((100vw - 1180px) / 2));
  bottom: 0;
  left: max(30px, calc((100vw - 1180px) / 2));
  height: 1px;
  background: linear-gradient(90deg, rgba(200, 149, 108, 0.26), rgba(200, 149, 108, 0.04));
}

html body[data-page-type="homepage"] .image-break .arc-layout > img {
  position: sticky;
  top: 112px;
  align-self: start;
  height: min(76vh, 780px);
  min-height: 650px;
}

html body[data-page-type="homepage"] .image-break .arc-card {
  display: grid;
  align-content: center;
  min-height: 158px;
  padding-top: 18px;
  padding-bottom: 28px;
}

html body[data-page-type="homepage"] .image-break .arc-card > span {
  color: #c8956c;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}

html body[data-page-type="homepage"] .journal .journal-card:nth-child(3) {
  background:
    linear-gradient(180deg, rgba(12, 10, 9, 0.4), rgba(12, 10, 9, 0.96)),
    url("./pic/generated/oct-loft.webp") center 44% / cover;
}

html body[data-page-type="homepage"] .journal .journal-card h3 {
  max-width: 15ch;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 3vw, 3.45rem);
  font-weight: 500;
  line-height: 0.98;
}

html body[data-page-type="homepage"] .journal .journal-card:first-child h3 {
  max-width: 12ch;
  font-size: clamp(3.2rem, 5vw, 5.7rem);
}

html body[data-page-type="homepage"] .consultation .consultation-prelude {
  margin-bottom: clamp(48px, 5vw, 68px);
}

html body[data-page-type="homepage"] .consultation .next-step-grid {
  margin-bottom: clamp(60px, 6vw, 78px);
}

html body[data-page-type="homepage"] .consultation .next-step-card,
html body[data-page-type="homepage"] .consultation .next-step-card:last-child {
  min-height: 224px;
  padding-top: 38px;
  padding-bottom: 32px;
}

html body[data-page-type="homepage"] .consultation .lead-capture-copy,
html body[data-page-type="homepage"] .consultation .lead-capture-form {
  padding: clamp(38px, 4vw, 52px);
}

html body[data-page-type="homepage"] .consultation .lead-capture-copy-card {
  align-self: end;
}

html body[data-page-type="homepage"] .consultation .mobile-only-cta {
  display: none;
}

html body[data-page-type="homepage"] .ai-entry-section {
  padding-block: 64px !important;
}

html body[data-page-type="homepage"] .ai-entry-panel {
  grid-template-columns: minmax(220px, 0.48fr) minmax(0, 1.52fr);
  gap: clamp(46px, 7vw, 92px);
  align-items: start;
}

html body[data-page-type="homepage"] .ai-entry-copy h2 {
  max-width: 11ch;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.45rem, 3.2vw, 3.65rem);
  font-weight: 500;
  line-height: 0.96;
}

html body[data-page-type="homepage"] .ai-entry-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(200, 149, 108, 0.14);
  border-bottom: 1px solid rgba(200, 149, 108, 0.14);
  background: transparent;
}

html body[data-page-type="homepage"] main > .ai-entry-section .ai-entry-card {
  min-height: 224px;
  padding: 28px 22px 26px;
  border: 0;
  border-right: 1px solid rgba(200, 149, 108, 0.12);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.012);
}

html body[data-page-type="homepage"] main > .ai-entry-section .ai-entry-card:last-child {
  border-right: 0;
}

html body[data-page-type="homepage"] .ai-entry-card h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
  font-weight: 500;
}

@media (max-width: 1100px) {
  html body[data-page-type="homepage"] .ai-entry-panel {
    grid-template-columns: 1fr;
  }

  html body[data-page-type="homepage"] .ai-entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html body[data-page-type="homepage"] .ai-entry-card:nth-child(2) {
    border-right: 0;
  }

  html body[data-page-type="homepage"] .ai-entry-card:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(200, 149, 108, 0.12);
  }
}

@media (max-width: 980px) {
  html body[data-page-type="homepage"] .image-break .arc-layout > img {
    position: static;
    height: 620px;
    min-height: 0;
  }
}

@media (max-width: 760px) {
  html body[data-page-type="homepage"] .home-cinematic-divider img {
    object-position: 58% center;
  }

  html body[data-page-type="homepage"] .journal .journal-card:first-child {
    background-position: center 42%;
  }

  html body[data-page-type="homepage"] .journal .journal-card:nth-child(2) {
    background-position: 58% center;
  }

  html body[data-page-type="homepage"] .journal .journal-card:nth-child(3) {
    background-position: 46% center;
  }

  html body[data-page-type="homepage"] main > .traveler-entry-section,
  html body[data-page-type="homepage"] main > .home-trust-section,
  html body[data-page-type="homepage"] main > .journeys,
  html body[data-page-type="homepage"] main > .image-break,
  html body[data-page-type="homepage"] main > .journal,
  html body[data-page-type="homepage"] main > .consultation {
    padding-block: 76px;
  }

  html body[data-page-type="homepage"] .home-trust-section::after,
  html body[data-page-type="homepage"] .journeys::after,
  html body[data-page-type="homepage"] .image-break::after,
  html body[data-page-type="homepage"] .journal::after {
    right: 16px;
    left: 16px;
  }

  html body[data-page-type="homepage"] .image-break .arc-layout > img {
    height: 460px;
    min-height: 0;
  }

  html body[data-page-type="homepage"] .journal .journal-card:first-child h3 {
    font-size: clamp(2.8rem, 13vw, 4rem);
  }

  html body[data-page-type="homepage"] .consultation .next-step-grid {
    margin-bottom: 52px;
  }

  html body[data-page-type="homepage"] .consultation .mobile-only-cta {
    display: block;
  }

  html body[data-page-type="homepage"] .ai-entry-grid {
    grid-template-columns: 1fr;
  }

  html body[data-page-type="homepage"] main > .ai-entry-section .ai-entry-card,
  html body[data-page-type="homepage"] main > .ai-entry-section .ai-entry-card:nth-child(2),
  html body[data-page-type="homepage"] main > .ai-entry-section .ai-entry-card:last-child {
    min-height: 0;
    padding-inline: 4px;
    border-right: 0;
    border-bottom: 1px solid rgba(200, 149, 108, 0.12);
  }

  html body[data-page-type="homepage"] main > .ai-entry-section .ai-entry-card:last-child {
    border-bottom: 0;
  }
}

/* Homepage refinement 9: carry the hero's editorial rhythm through the page. */
html body[data-page-type="homepage"] .home-conversion-band .conversion-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  counter-reset: limina-method;
  border-top: 1px solid rgba(200, 149, 108, 0.18);
  border-bottom: 1px solid rgba(200, 149, 108, 0.18);
}

html body[data-page-type="homepage"] .home-conversion-band .conversion-card,
html body[data-page-type="homepage"] .home-conversion-band .conversion-card:first-child,
html body[data-page-type="homepage"] .home-conversion-band .conversion-card:hover,
html body[data-page-type="homepage"] .home-conversion-band .conversion-card:first-child:hover {
  min-height: 300px;
  padding: 34px 30px 38px;
  counter-increment: limina-method;
  border: 0;
  border-right: 1px solid rgba(200, 149, 108, 0.14);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

html body[data-page-type="homepage"] .home-conversion-band .conversion-card:last-child {
  border-right: 0 !important;
}

html body[data-page-type="homepage"] .home-conversion-band .conversion-card::before {
  content: "0" counter(limina-method);
  display: block;
  width: auto;
  height: auto;
  margin: 0 0 auto;
  background: none;
  color: #c8956c;
  font-family: "Manrope", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

html body[data-page-type="homepage"] .home-conversion-band .conversion-card h3 {
  max-width: 12ch;
  margin-top: 46px;
  font-size: clamp(1.65rem, 2.25vw, 2.2rem);
  line-height: 1;
}

html body[data-page-type="homepage"] .home-conversion-band .conversion-card p {
  margin-top: 18px;
}

html body[data-page-type="homepage"] .traveler-entry-card,
html body[data-page-type="homepage"] .journeys .journey-card,
html body[data-page-type="homepage"] .journal .journal-card {
  isolation: isolate;
}

html body[data-page-type="homepage"] .traveler-entry-card::after,
html body[data-page-type="homepage"] .journeys .journey-card::after,
html body[data-page-type="homepage"] .journal .journal-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(240, 234, 224, 0.035);
  pointer-events: none;
}

@media (max-width: 1100px) {
  html body[data-page-type="homepage"] .home-conversion-band .conversion-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html body[data-page-type="homepage"] .home-conversion-band .conversion-card:nth-child(2) {
    border-right: 0 !important;
  }

  html body[data-page-type="homepage"] .home-conversion-band .conversion-card:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(200, 149, 108, 0.14) !important;
  }
}

@media (max-width: 760px) {
  html,
  body[data-page-type="homepage"] {
    overflow-x: clip;
  }

  html body[data-page-type="homepage"] .home-hero-editorial,
  html body[data-page-type="homepage"] .home-hero-inner {
    min-height: 760px;
  }

  html body[data-page-type="homepage"] .home-hero-inner {
    width: 100%;
    padding: 116px 16px 38px;
  }

  html body[data-page-type="homepage"] .home-hero-copy {
    min-width: 0;
    max-width: 100%;
  }

  html body[data-page-type="homepage"] .home-hero-copy .hero-title-lg {
    width: 100%;
    max-width: 10.5ch;
    font-size: clamp(2.55rem, 11.4vw, 3.12rem) !important;
    line-height: 0.98 !important;
    letter-spacing: -0.025em !important;
    overflow-wrap: normal;
  }

  html body[data-page-type="homepage"] .home-hero-copy .hero-title-lg span,
  html body[data-page-type="homepage"] .home-hero-copy .hero-title-lg span:nth-child(n) {
    display: inline;
    white-space: normal !important;
  }

  html body[data-page-type="homepage"] .home-hero-copy .hero-lead {
    max-width: 34ch;
    margin-top: 20px;
    font-size: 0.91rem;
    line-height: 1.58;
  }

  html body[data-page-type="homepage"] .home-hero-copy .hero-actions {
    margin-top: 22px;
  }

  html body[data-page-type="homepage"] .home-hero-copy .button-dark,
  html body[data-page-type="homepage"] .home-hero-copy .hero-secondary-link {
    min-height: 50px;
  }

  html body[data-page-type="homepage"] .home-hero-image-card img {
    object-position: 54% center;
  }

  html body[data-page-type="homepage"] .home-conversion-band .conversion-grid {
    grid-template-columns: 1fr;
  }

  html body[data-page-type="homepage"] .home-conversion-band .conversion-card,
  html body[data-page-type="homepage"] .home-conversion-band .conversion-card:first-child,
  html body[data-page-type="homepage"] .home-conversion-band .conversion-card:hover,
  html body[data-page-type="homepage"] .home-conversion-band .conversion-card:first-child:hover {
    min-height: 0;
    padding: 28px 0 30px;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(200, 149, 108, 0.14) !important;
  }

  html body[data-page-type="homepage"] .home-conversion-band .conversion-card:last-child {
    border-bottom: 0 !important;
  }

  html body[data-page-type="homepage"] .home-conversion-band .conversion-card::before {
    margin-bottom: 22px;
  }

  html body[data-page-type="homepage"] .home-conversion-band .conversion-card h3 {
    max-width: 15ch;
    margin-top: 0;
    font-size: 1.8rem;
  }

  html body[data-page-type="homepage"] .home-conversion-band .conversion-card p {
    max-width: 33ch;
    margin-top: 14px;
  }

  html body[data-page-type="homepage"] .traveler-entry-grid {
    grid-auto-rows: 400px;
  }

  html body[data-page-type="homepage"] .home-cinematic-divider {
    height: 360px;
  }
}
