/* Shared layout for the six local movie-experience pages. */
.detail-page {
  --detail-dark: #1d2920;
  --detail-light: #e1eccb;
  --detail-accent: #49604a;
  background: var(--detail-dark);
}

.detail-page--road {
  --detail-dark: #2e2418;
  --detail-light: #f6dfab;
  --detail-accent: #785327;
}

.detail-page--sails {
  --detail-dark: #15252c;
  --detail-light: #d2e7ea;
  --detail-accent: #3e5c66;
}

.detail-page--winter {
  --detail-dark: #202930;
  --detail-light: #d7eaf4;
  --detail-accent: #436071;
}

.detail-page--western {
  --detail-dark: #30251b;
  --detail-light: #edddb8;
  --detail-accent: #78613f;
}

.detail-page--island {
  --detail-dark: #1c3434;
  --detail-light: #d9e8e1;
  --detail-accent: #416b67;
}

/* Hero presentation follows the live homepage in site/styles.css. */
.detail-hero { --hero-type: Instrument, sans-serif; --hero-ivory: #fbf7ef; position: relative; isolation: isolate; overflow: hidden; background: #21130f; color: var(--hero-ivory); }
.detail-hero__art { position: absolute; inset: 0; z-index: -2; }
.detail-hero__art img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.detail-hero { min-height: clamp(780px, 62.5vw, 1100px); padding: clamp(24px, 2.2vw, 35px) clamp(24px, 5.9vw, 94px) 60px; font-family: var(--hero-type); }
.detail-hero__art img { object-position: center top; }
.detail-hero::after { background: linear-gradient(90deg, rgb(25 20 18 / .62), rgb(25 20 18 / .30) 43%, transparent 72%); mask-image: linear-gradient(180deg, #000 40%, transparent 75%); }
.detail-hero__content { position: relative; width: min(746px, 47.04vw); }
.detail-hero .wordmark { display: block; width: clamp(230px, 21.5vw, 340px); max-width: 100%; text-decoration: none; }
.detail-hero .wordmark img { width: 100%; height: auto; }
.detail-hero .wordmark:focus-visible { outline: 2px solid var(--hero-ivory); outline-offset: 7px; }
.detail-hero h1 { margin-top: clamp(20px, 2.27vw, 36px); font-family: var(--hero-type); font-size: clamp(54px, 6.31vw, 100px); font-weight: 700; line-height: .92; letter-spacing: -.04em; }
.detail-hero h1 span { display: block; }
.detail-hero__description { max-width: 730px; margin-top: clamp(10px, .88vw, 14px); font-size: clamp(18px, 1.514vw, 24px); line-height: 1.4; letter-spacing: -.015em; }
.detail-hero__caption { position: absolute; bottom: 8%; right: 32px; font-family: var(--hero-type); font-size: clamp(18px, 1.39vw, 22px); line-height: 1.4; letter-spacing: -.015em; }
.detail-hero__caption--mobile { display: none; }
.detail-hero .detail-waitlist { max-width: 746px; margin-top: 16px; }
.detail-hero .detail-waitlist input, .detail-hero .detail-waitlist button { height: clamp(56px, 4.04vw, 64px); min-height: 56px; font-size: clamp(18px, 1.39vw, 22px); border-radius: 5px; }
.detail-hero .detail-waitlist button { width: clamp(220px, 18.54vw, 294px); }
.detail-hero .detail-waitlist__status:empty { display: none; }

.detail-waitlist { max-width: 650px; margin-top: 24px; }
.detail-waitlist__controls { display: flex; gap: 12px; }
.detail-waitlist input { min-width: 0; width: 100%; flex: 1 1 auto; height: 60px; border: 1px solid rgb(251 247 239 / .85); border-radius: 6px; background: rgb(33 19 15 / .45); color: var(--hero-ivory); padding: 0 22px; font-size: 20px; }
.detail-waitlist input::placeholder { color: rgb(251 247 239 / .88); opacity: 1; }
.detail-waitlist button { flex: 0 0 auto; width: 245px; min-height: 60px; border: 1px solid rgb(251 247 239 / .40); border-radius: 6px; background: #b40025; color: #fff; padding: 0 24px; font-size: 21px; font-weight: 500; cursor: pointer; transition: background-color .15s ease; }
.detail-waitlist button:hover { background: #ce173b; }
.detail-waitlist button:active { background: #97001f; }
.detail-waitlist button:focus-visible, .detail-waitlist input:focus-visible { outline: 3px solid var(--hero-ivory); outline-offset: 4px; }
.detail-waitlist__status { min-height: 2.9em; margin-top: 12px; max-width: 48em; font-size: 14px; line-height: 1.45; }
.detail-waitlist__status:focus { outline: none; }
.detail-waitlist__consent { margin-top:14px; max-width:680px; color:var(--hero-ivory); font-size:14px; line-height:1.5; text-align:left; }

.detail-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  column-gap: 18px;
  padding-block: 10px;
  color: var(--detail-accent);
  font-size: 13px;
}

.detail-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  text-decoration: none;
}
.detail-nav a:hover { text-decoration: underline; }

.detail-content { background: var(--ivory); }
.detail-scenes { padding-block: clamp(58px, 7vw, 105px); }
.detail-section-heading { max-width: 43rem; margin-bottom: 36px; }
.detail-section-heading h2 { font-size: clamp(38px, 5vw, 64px); }
.detail-section-heading p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.detail-scene-grid, .detail-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.detail-scene img.detail-scene__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
}

.detail-scene h3 {
  margin-top: 19px;
  font-family: Display, Georgia, serif;
  font-size: clamp(26px, 2.55vw, 36px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -.025em;
}

.detail-scene__notes { margin-top: 9px; color: var(--detail-accent); font-weight: 650; }
.detail-scene__description, .detail-steps p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.detail-scene-note { margin-top: 30px; color: var(--muted); font-size: 12px; line-height: 1.55; }

.detail-how { padding-block: 0 clamp(58px, 7vw, 105px); }
.detail-steps { padding: 0; margin: 0; list-style: none; }
.detail-steps li { padding-top: 16px; border-top: 1px solid var(--line); }
.detail-steps h3 { font-size: 17px; font-weight: 650; }

.detail-join {
  padding: clamp(60px, 8vw, 112px) 24px;
  color: var(--ivory);
  text-align: center;
  background: var(--detail-dark);
}

.detail-join h2 { color: var(--detail-light); font-size: clamp(40px, 6vw, 72px); }
.detail-join > p { margin-top: 16px; line-height: 1.55; }
.detail-footer { border-top: 1px solid #f8e8d322; }

@media (max-width: 850px) {
  .detail-scene-grid, .detail-steps { gap: 20px; }
}

@media (max-width: 700px) {
  .detail-scene-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .detail-section-heading { margin-bottom: 26px; }

  .detail-steps { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .detail-steps li {
    position: relative;
    padding: 0 0 0 56px;
    border: 0;
  }

  .detail-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 41px;
    bottom: -13px;
    left: 19px;
    border-left: 2px solid var(--detail-accent);
    opacity: .35;
  }

  .detail-step__copy {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffaf4;
  }

  .detail-step__number {
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--detail-dark);
    color: var(--detail-light);
    font-size: 15px;
    font-variant-numeric: tabular-nums;
  }

  .detail-step__punctuation { display: none; }
  .detail-steps h3 { font-size: 18px; line-height: 1.25; }
  .detail-steps p { margin-top: 4px; }
}

@media (min-width: 1700px) {
  .detail-hero__caption { right: 5vw; }
}

@media (max-width: 1050px) {
  .detail-hero { min-height: 850px; }
  .detail-hero__content { width: min(700px, 100%); }
  .detail-hero .wordmark { width: 220px; }
  .detail-hero h1 { max-width: 550px; font-size: 6.1vw; }
  .detail-hero__description { max-width: 470px; }
  .detail-hero .detail-waitlist { max-width: 610px; }
  .detail-hero .detail-waitlist button { width: 230px; }
  .detail-hero__caption { right: 24px; bottom: 18%; font-size: 18px; text-shadow: 0 1px 4px rgb(0 0 0 / .8); }
}

@media (max-width: 700px) {
  .detail-hero { min-height: 100vh; min-height: 100dvh; padding: 20px 24px 220px; }
  .detail-hero::after { background: linear-gradient(180deg, rgb(22 12 9 / .72), rgb(22 12 9 / .6) 285px, transparent 390px), linear-gradient(0deg, rgb(22 12 9 / .82), rgb(22 12 9 / .72) 80px, transparent 145px); mask-image: none; }
  .detail-hero__art img { height: calc(100% + 90px); object-position: 65% 75%; }
  .detail-hero .wordmark { width: 176px; }
  .detail-hero h1 { font-size: clamp(36px, 10.4vw, 56px); line-height: 1.04; margin-top: 16px; letter-spacing: -.035em; }
  .detail-hero__description { margin-top: 14px; font-size: 17px; line-height: 1.4; max-width: 500px; }
  .detail-waitlist { margin-top: 22px; }
  .detail-hero .detail-waitlist { margin-top: 18px; }
  .detail-waitlist__controls { flex-direction: column; gap: 12px; }
  .detail-waitlist input, .detail-waitlist button { width: 100%; height: 56px; min-height: 56px; font-size: 18px; }
  .detail-hero .detail-waitlist input, .detail-hero .detail-waitlist button { width: 100%; height: 52px; min-height: 52px; padding-inline: 12px; font-size: 16px; }
  .detail-hero .detail-waitlist__controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(128px, 1fr); gap: 8px; }
  .detail-hero .detail-waitlist button { padding-inline: 10px; white-space: nowrap; }
  .detail-hero__caption--desktop { display: none; }
  .detail-hero .detail-waitlist input { background: rgb(33 19 15 / .84); }
  .detail-hero .detail-waitlist__consent { padding: 8px 10px; background: rgb(22 12 9 / .64); border-radius: 4px; }
  .detail-hero__caption--mobile { display: block; position: absolute; bottom: 26px; left: 24px; right: 24px; margin: 0; font-size: 18px; line-height: 1.45; text-shadow: none; }
  .detail-hero__caption--mobile span { display: block; }
  .detail-hero__caption--mobile span + span { font-weight: 600; }
  .detail-hero__content { position: static; }
  .detail-waitlist__consent { font-size: 13px; line-height: 1.5; }
  .detail-waitlist--centered { margin-top: 24px; }
}

@media (max-width: 700px) and (max-height: 620px) {
  .detail-hero { padding-top: 16px; }
  .detail-hero .wordmark { width: 150px; }
  .detail-hero h1 { margin-top: 12px; font-size: clamp(32px, 9.6vw, 40px); line-height: 1.03; }
  .detail-hero__description { margin-top: 12px; font-size: 16px; line-height: 1.35; }
  .detail-hero .detail-waitlist { margin-top: 14px; }
  .detail-hero .detail-waitlist__consent { margin-top: 10px; }
}

/* Phone crops remain route-specific; the non-Christmas tablet portraits share framing. */
@media (max-width: 700px) and (orientation: portrait) {
  :is(.detail-page--road, .detail-page--sails) .detail-hero__art img { object-position: 32% 75%; }
}
@media (min-width: 701px) and (max-width: 1050px) and (orientation: portrait) {
  .detail-page:not(.detail-page--winter) .detail-hero__art img { object-position: center 67%; }
}
