/* Image-first opening and explicitly selected content chapters. */
.section-home .section-app > [data-page] {
  display: none;
}
.section-home .section-app > [data-page][data-active] {
  display: block;
}
.section-home .section-app > [data-page][hidden] {
  display: none !important;
}
.section-home[data-section='home'] {
  padding-bottom: 0;
}
.section-home:not([data-section]) > .site-header,
.section-home[data-section='home'] > .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(#100b16cc, transparent);
  border: 0;
  color: #fff4e8;
}
.section-home .site-header .section-menu-link {
  min-height: 44px;
  gap: 12px;
}
.section-home:not([data-section]) > .waitlist-sticky,
.section-home[data-section='home'] > .waitlist-sticky,
.section-home[data-section='explore'] > .waitlist-sticky {
  display: none;
}
.section-home:not([data-section]) {
  padding-bottom: 0;
}
.image-opening {
  position: relative;
  min-height: 650px;
  height: 100svh;
  isolation: isolate;
  background: #241b20;
}
.image-opening picture {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
}
.image-opening .opening-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 46%;
}
.image-opening:after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, #120d1bef, transparent 44%, transparent 80%, #120d1b55);
  pointer-events: none;
}
.opening-caption {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 6%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 35px;
}
.opening-caption h1 {
  font-size: clamp(64px, 8vw, 120px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.065em;
  color: #fff2df;
}
.opening-caption .eyebrow {
  font-size: 10px;
  letter-spacing: 0.25em;
  margin-bottom: 14px;
  color: #e9d4c6;
}
.opening-caption p:last-child {
  font-size: 15px;
  color: #f4e0d5;
  margin-top: 16px;
}
.opening-explore {
  min-width: 220px;
  min-height: 58px;
  margin-bottom: 6px;
  box-shadow: 0 0 45px #f9b69526;
}
.section-directory {
  padding: 65px 5% 100px;
  background: radial-gradient(ellipse at 50% 0%, #58344f44, transparent 60%), #15101d;
  min-height: 85svh;
}
.directory-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 50px;
}
.directory-heading h1 {
  font-size: clamp(44px, 5.5vw, 80px);
  line-height: 1;
  color: #ffd1b5;
}
.directory-heading .eyebrow {
  margin-bottom: 20px;
}
.directory-heading .inline-link {
  font-size: 12px;
  white-space: nowrap;
}
.section-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}
.section-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 4/4.7;
  isolation: isolate;
  overflow: hidden;
  background: #2b2233;
  min-width: 0;
}
.section-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.section-card:after {
  position: absolute;
  inset: 0;
  content: '';
  z-index: -1;
  background: linear-gradient(0deg, #100b17f5, transparent 85%);
}
.section-card > div {
  padding: 30px;
  max-width: 94%;
}
.section-card span {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #efc7c7;
}
.section-card h2 {
  font-size: clamp(30px, 3vw, 47px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 800;
  margin: 10px 0 12px;
  color: #fff0db;
}
.section-card p {
  font-size: 12px;
  line-height: 1.5;
  color: #e5d2df;
  max-width: 235px;
}
.section-card > b {
  position: absolute;
  top: 22px;
  right: 24px;
  font-size: 23px;
  color: #fff1e0;
  text-shadow: 0 2px 9px #000;
}
.section-card:hover img {
  transform: scale(1.035);
}
.section-card:focus-visible {
  outline: 3px solid #ffd1b5;
  outline-offset: 6px;
}
.section-card:nth-child(5) img {
  object-fit: contain;
}
.directory-links {
  display: flex;
  gap: 35px;
  margin-top: 35px;
  font-size: 13px;
}
.directory-links a {
  padding: 12px 0;
}
.chapter-navigation {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 5%;
  background: #1c1425f5;
  border-block: 1px solid #fff0dc25;
  font-size: 12px;
  min-height: 64px;
}
.chapter-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}
.chapter-navigation span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #cfb4ce;
}
.selected-chapter {
  min-height: 75svh;
}
.selected-chapter > section {
  scroll-margin-top: 75px;
}
@media (max-width: 1000px) {
  .section-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .directory-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 700px) {
  .image-opening {
    min-height: 640px;
    height: 100svh;
  }
  .image-opening .opening-image {
    object-position: center 42%;
  }
  .opening-caption {
    left: 6%;
    right: 6%;
    bottom: 5%;
    gap: 18px;
    flex-wrap: wrap;
  }
  .opening-caption h1 {
    font-size: 65px;
  }
  .opening-caption .eyebrow {
    font-size: 8px;
    margin-bottom: 10px;
  }
  .opening-caption p:last-child {
    font-size: 13px;
    margin-top: 12px;
  }
  .opening-explore {
    min-height: 48px;
    min-width: 190px;
    padding: 14px 23px;
    font-size: 12px;
  }
  .section-home .site-header .section-menu-link {
    font-size: 11px;
  }
  .section-home .site-header .nav-cta {
    display: none;
  }
  .section-home .site-header nav {
    width: auto;
  }
  .section-home .section-directory {
    padding: 40px 6% 65px;
  }
  .directory-heading {
    margin-bottom: 30px;
  }
  .directory-heading h1 {
    font-size: 47px;
  }
  .directory-heading .eyebrow {
    font-size: 9px;
    margin-bottom: 16px;
  }
  .section-card-grid {
    gap: 18px;
  }
  .section-card {
    aspect-ratio: 4/5.5;
  }
  .section-card > div {
    padding: 18px 13px;
  }
  .section-card h2 {
    font-size: 25px;
  }
  .section-card p {
    font-size: 11px;
  }
  .section-card span {
    font-size: 8px;
  }
  .section-card > b {
    top: 12px;
    right: 13px;
    font-size: 18px;
  }
  .directory-links {
    gap: 20px;
    flex-wrap: wrap;
  }
  .chapter-navigation {
    padding: 8px 6%;
    gap: 12px;
    font-size: 11px;
  }
  .chapter-navigation span {
    display: none;
  }
  .selected-chapter > section {
    scroll-margin-top: 65px;
  }
}
@media (max-width: 420px) {
  .section-card-grid {
    grid-template-columns: 1fr;
  }
  .section-card {
    aspect-ratio: 5/4;
  }
  .section-card > div {
    padding: 25px;
  }
  .section-card h2 {
    font-size: 35px;
  }
  .section-card p {
    font-size: 12px;
  }
  .opening-caption h1 {
    font-size: 59px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .section-card img {
    transition: none;
  }
  .section-card:hover img {
    transform: none;
  }
}
