/* Load after site.css. All overrides belong to the compact QR experience. */
body.experience {
  background: #000;
  font-family: var(--sans, Jost, Arial, sans-serif);
}

body.experience :is(.cinema, #player-home, .screen-column, .playlist, .film-heading,
  .film-picker, .journey-step, .story-detail, .step-summary, .detail-body) {
  min-width: 0;
}

body.experience :is(button, a, select, summary):focus-visible {
  outline: 2px solid var(--gold, #a99860);
  outline-offset: 4px;
}

/* Keep the welcome brief so the films are immediately within reach. */
body.experience .hero {
  min-height: 0;
  height: auto;
  align-items: center;
}

body.experience .hero-inner { padding-block: 38px 32px; }
body.experience .hero h1 {
  max-width: 920px;
  margin: 15px 0 13px;
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1.04;
  letter-spacing: -.012em;
}
body.experience .hero h1 em { white-space: normal; }
body.experience .hero-copy {
  max-width: 650px;
  font-size: 15px;
  line-height: 1.65;
}
body.experience .hero-photo { object-position: 68% 46%; }

/* The player comes first in reading order; chapters sit alongside on desktop. */
body.experience .film-section {
  padding-block: 26px 38px;
  background: #000;
}
body.experience .film-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
body.experience .film-heading > .eyebrow { font-size: 10px; }
body.experience .film-picker {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 430px;
}
body.experience .film-picker > span {
  flex-shrink: 0;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.4;
}
body.experience #film-select {
  min-width: 0;
  width: 250px;
  max-width: 100%;
  min-height: 44px;
  padding: 9px 30px 9px 12px;
  border: 1px solid #a9986080;
  border-radius: 0;
  background: #000;
  color: var(--paper);
  font: 400 13px/1.4 var(--sans);
  text-overflow: ellipsis;
  cursor: pointer;
}
body.experience #film-select option { color: #fff; background: #000; }
body.experience .cinema {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 30px;
}
body.experience #player-home { grid-area: 1 / 1; }
body.experience .playlist {
  grid-area: 1 / 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  width: 100%;
  border: 0;
}
body.experience .film {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-items: start;
  align-content: start;
  gap: 9px 5px;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 7px;
  border: 1px solid #ffffff24;
  background: #080808;
  text-align: left;
}
body.experience .film-thumb {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: .8;
  transition: opacity .18s;
}
body.experience .film .number {
  padding-top: 1px;
  color: #a8a8a8;
  font-size: 10px;
  line-height: 1.5;
}
body.experience .film .film-title {
  min-width: 0;
  color: #dedede;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
body.experience .film[aria-pressed="true"] {
  border-color: var(--gold);
  background: #a9986012;
}
body.experience .film[aria-pressed="true"] :is(.number, .film-title) { color: var(--gold); }
body.experience .film[aria-pressed="true"] .film-thumb { opacity: 1; }
body.experience .film:focus-visible { outline-offset: -3px; }
@media (hover: hover) {
  body.experience .film:hover { border-color: #a9986080; background: #a998600a; }
  body.experience .film:hover .film-thumb { opacity: 1; }
}

/* Descriptions remain available without crowding the player. */
body.experience .screen-column { width: 100%; }
body.experience .screen { scroll-margin-top: 12px; }
body.experience .film-caption {
  gap: 4px 12px;
  margin-top: 7px;
  font-size: 11px;
  line-height: 1.5;
}
body.experience .film-caption a { min-height: 44px; }
body.experience .film-details { max-width: none; padding-top: 5px; }
body.experience .film-details h3 {
  margin: 0 0 7px;
  font-size: 29px;
  line-height: 1.15;
  text-wrap: balance;
}
body.experience :is(.video-description, .video-notice) { color: var(--soft); }
body.experience :is(.video-description, .video-notice) > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  width: 100%;
  padding-block: 8px;
  list-style: none;
  color: #d5d5d5;
  font-size: 12px;
  line-height: 1.5;
  cursor: pointer;
}
body.experience :is(.video-description, .video-notice) > summary::-webkit-details-marker,
body.experience .story-detail > summary::-webkit-details-marker { display: none; }
body.experience :is(.video-description, .video-notice) > summary::marker,
body.experience .story-detail > summary::marker { content: ''; }
body.experience :is(.video-description, .video-notice) > summary::after {
  content: '+';
  flex: 0 0 16px;
  color: var(--gold);
  font-size: 19px;
  text-align: center;
}
body.experience :is(.video-description, .video-notice)[open] > summary::after { content: '−'; }
body.experience :is(.video-description, .video-notice) > p {
  margin: 0;
  padding-bottom: 13px;
  font-size: 14px;
  line-height: 1.75;
}
body.experience .video-notice > summary { color: #b3b3b3; font-size: 13px; }
body.experience .video-notice > p { font-size: 12px; }
body.experience .film-controls { gap: 20px; margin-top: 5px; }
body.experience .film-controls button {
  min-width: 0;
  min-height: 46px;
  max-width: 49%;
  gap: 8px;
  font-size: 12px;
  line-height: 1.4;
}
body.experience .film-controls button span { flex-shrink: 0; }

/* Vertical video keeps its native 9:16 frame, both in-page and in the dialog. */
body.experience .screen.portrait {
  width: min(100%, 28.125vh);
  width: min(100%, 28.125dvh);
  height: auto;
  max-height: 50vh;
  max-height: 50dvh;
  margin-inline: auto;
  aspect-ratio: 9 / 16;
}
body.experience .screen.portrait :is(iframe, .poster) {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Six quiet disclosures replace the long uninterrupted timeline. */
body.experience .journey {
  display: block;
  padding-block: 40px 0;
}
body.experience .journey-heading {
  position: static;
  max-width: 720px;
  margin-bottom: 25px;
}
body.experience .journey-heading h2 {
  margin: 11px 0 13px;
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: -.01em;
}
body.experience .journey-heading > p:not(.eyebrow) {
  max-width: 640px;
  font-size: 15px;
  line-height: 1.75;
}
body.experience .journey-heading .gold-rule { display: none; }
body.experience .journey-steps { padding: 0; margin: 0; list-style: none; }
body.experience .journey-step { display: block; padding: 0; margin: 0; }
body.experience .journey-step:not(:last-child)::before { content: none; }
body.experience .story-detail { border-top: 1px solid var(--line); }
body.experience .story-detail > summary {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 18px;
  min-height: 96px;
  padding: 17px 0;
  list-style: none;
  cursor: pointer;
}
body.experience .story-detail .step-index {
  width: 32px;
  height: 32px;
  font-size: 10px;
}
body.experience .step-summary { display: block; }
body.experience .story-detail > summary .eyebrow {
  padding: 0;
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: .13em;
}
body.experience .story-detail > summary h3 {
  margin: 4px 0 0;
  font-size: 29px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
body.experience .disclosure-mark {
  justify-self: center;
  color: var(--gold);
  font: 400 24px/1 var(--sans);
  transition: transform .18s;
}
body.experience .story-detail[open] > summary .disclosure-mark { transform: rotate(45deg); }
body.experience .detail-body {
  max-width: 890px;
  padding: 0 42px 26px 50px;
}
body.experience .detail-body :is(p, .step-body) {
  max-width: 690px;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.8;
}
body.experience .detail-body p + p { margin-top: 14px; }
body.experience .detail-body .text-link {
  min-height: 44px;
  max-width: 100%;
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.5;
  white-space: normal;
}
body.experience .detail-body .text-link > span { flex-shrink: 0; }
body.experience .detail-body :is(.process-photo, .ritual-image) {
  width: 100%;
  max-width: 350px;
  min-width: 0;
  margin: 20px 0 10px;
}
body.experience .detail-body .process-photo img { width: 100%; height: auto; }
body.experience .detail-body .ritual-image { min-height: 0; height: auto; aspect-ratio: 2 / 3; order: initial; }
body.experience .igneo-detail { margin-top: 0; border-bottom: 1px solid var(--line); }
body.experience .quote { padding: 30px 0 38px; border-top: 0; }
body.experience .quote .ornament { display: none; }
body.experience .quote blockquote {
  max-width: 760px;
  margin: 0 auto 14px;
  font-size: 28px;
  line-height: 1.35;
  font-weight: 500;
}

/* A native modal holds the same player, without changing its aspect ratio. */
body.experience #video-dialog {
  width: min(1000px, calc(100% - 40px));
  max-width: none;
  max-height: 90vh;
  max-height: 90dvh;
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--gold);
  border-radius: 0;
  background: #000;
  color: var(--paper);
  box-shadow: 0 20px 90px #0009;
}
body.experience #video-dialog::backdrop { background: rgb(0 0 0 / .82); }
body.experience .dialog-bar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 66px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--line);
  background: #000;
}
body.experience #dialog-title {
  min-width: 0;
  font: 500 25px/1.15 var(--serif);
  overflow-wrap: anywhere;
}
body.experience #close-video {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #a9986080;
  background: #000;
  color: var(--paper);
  font: 500 12px/1.4 var(--sans);
}
body.experience #dialog-player { min-width: 0; padding: 18px 24px 22px; }
body.experience #dialog-player .screen { scroll-margin-top: 76px; }
body.experience #dialog-player .film-details { display: none; }

@media (max-width: 1100px) and (min-width: 761px) {
  body.experience .cinema { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; }
  body.experience .playlist { gap: 8px; }
  body.experience .film { padding: 5px; gap: 7px 3px; grid-template-columns: 16px minmax(0, 1fr); }
  body.experience .film .film-title { font-size: 11px; }
}

@media (max-width: 760px) {
  body.experience .hero-inner { padding-block: 23px 21px; }
  body.experience .hero-label { font-size: 9px; letter-spacing: .12em; gap: 10px; }
  body.experience .hero-label::before { width: 22px; }
  body.experience .hero h1 { margin: 11px 0 10px; font-size: 42px; line-height: 1.03; }
  body.experience .hero-copy { max-width: 440px; font-size: 14px; line-height: 1.55; }
  body.experience .hero-photo { object-position: 65% 47%; }
  body.experience .film-section { padding-block: 15px 24px; }
  body.experience .film-heading { align-items: end; gap: 14px; margin-bottom: 11px; }
  body.experience .film-heading > .eyebrow { display: none; }
  body.experience .film-picker { flex: 1; max-width: none; display: block; }
  body.experience .film-picker > span { display: block; margin-bottom: 5px; font-size: 12px; }
  body.experience #film-select { width: 100%; min-height: 44px; padding: 8px 30px 8px 12px; font-size: 16px; }
  body.experience .cinema { display: flex; flex-direction: column; gap: 13px; }
  body.experience .playlist {
    order: 1;
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    padding: 3px 2px 11px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 2px;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: #a9986066 #ffffff08;
    -webkit-overflow-scrolling: touch;
  }
  body.experience .playlist::-webkit-scrollbar { height: 3px; }
  body.experience .playlist::-webkit-scrollbar-track { background: #ffffff08; }
  body.experience .playlist::-webkit-scrollbar-thumb { background: #a9986066; }
  body.experience .film {
    flex: 0 0 clamp(112px, 33vw, 140px);
    grid-template-columns: 17px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    gap: 7px 3px;
    min-height: 112px;
    height: auto;
    padding: 7px;
    scroll-snap-align: start;
  }
  body.experience .film .film-title { font-size: 13px; line-height: 1.4; }
  body.experience .film .number { font-size: 9px; }
  body.experience #player-home { order: 0; width: 100%; }
  body.experience .film-caption { margin-top: 4px; font-size: 12px; }
  body.experience .film-caption a { min-height: 44px; }
  body.experience .film-details { padding-top: 4px; }
  body.experience .film-details h3 { font-size: 27px; margin-bottom: 2px; }
  body.experience .screen .play-circle { width: 52px; height: 52px; }
  body.experience .screen .play-text { font-size: 11px; }
  body.experience .screen-badge { font-size: 8px; top: 11px; left: 12px; }
  body.experience .film-controls { margin-top: 3px; }
  body.experience .film-controls button { font-size: 13px; min-height: 48px; }
  body.experience .journey { padding-block: 30px 0; }
  body.experience .journey-heading { margin-bottom: 19px; }
  body.experience .journey-heading h2 { font-size: 35px; margin: 10px 0 12px; }
  body.experience .journey-heading > p:not(.eyebrow) { font-size: 14px; line-height: 1.7; }
  body.experience .story-detail > summary { grid-template-columns: 29px minmax(0, 1fr) 20px; gap: 12px; min-height: 88px; padding-block: 15px; }
  body.experience .story-detail .step-index { width: 29px; height: 29px; font-size: 9px; }
  body.experience .story-detail > summary .eyebrow { font-size: 9px; letter-spacing: .1em; }
  body.experience .story-detail > summary h3 { margin-top: 4px; font-size: 25px; line-height: 1.1; }
  body.experience .disclosure-mark { font-size: 22px; }
  body.experience .detail-body { padding: 0 0 22px 41px; }
  body.experience .detail-body :is(p, .step-body) { font-size: 14px; line-height: 1.8; }
  body.experience .detail-body .text-link { font-size: 12px; line-height: 1.45; }
  body.experience .detail-body :is(.process-photo, .ritual-image) { max-width: 330px; margin-block: 16px 8px; }
  body.experience .quote { padding-block: 26px 32px; }
  body.experience .quote blockquote { font-size: 24px; line-height: 1.4; margin-bottom: 12px; }
  body.experience .quote p { font-size: 8px; }
  body.experience #video-dialog { width: calc(100% - 24px); }
  body.experience .dialog-bar { gap: 12px; min-height: 64px; padding: 9px 13px; }
  body.experience #dialog-title { font-size: 23px; }
  body.experience #close-video { padding: 8px 10px; font-size: 13px; }
  body.experience #dialog-player { padding: 13px 13px 18px; }
}

@media (max-width: 370px) {
  body.experience .hero-inner { padding-block: 21px 18px; }
  body.experience .hero h1 { font-size: 38px; }
  body.experience .hero-copy { font-size: 13px; line-height: 1.55; }
  body.experience .hero-label { font-size: 8px; letter-spacing: .09em; }
  body.experience .film-heading { gap: 10px; }
  body.experience .film-heading > .eyebrow { max-width: 82px; font-size: 8px; }
  
  body.experience .film { flex-basis: 112px; }
  body.experience .journey-heading h2 { font-size: 32px; }
  body.experience .story-detail > summary { gap: 10px; }
  body.experience .story-detail > summary h3 { font-size: 23px; }
  body.experience .detail-body { padding-left: 39px; }
  body.experience .film-details h3 { font-size: 25px; }
  body.experience .film-controls button { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  body.experience *, body.experience *::before, body.experience *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

/* The opening guide is available without searching through the chapters. */
body.experience .opening-shortcut {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 8px 0;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--gold);
  font: 500 14px/1.5 var(--sans);
}
body.experience .opening-shortcut > span { flex-shrink: 0; }
body.experience .opening-shortcut:hover { color: var(--paper); }
body.experience .screen:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
@media (min-width: 1025px) {
  body.experience .opening-shortcut { display: none; }
}
