/* Keep the film compositions and give the controls a consistent, readable layer. */
.mast,
.transport {
  left: max(var(--pad), env(safe-area-inset-left));
  right: max(var(--pad), env(safe-area-inset-right));
}

.mast {
  top: max(clamp(12px, 3.3svh, 38px), env(safe-area-inset-top));
  min-height: 44px;
}

.mast .id { min-height: 44px; }
.mast .house { font-size: .8125rem; line-height: 1.35; }

.mast-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
}

.mast-waitlist,
#index-open {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: .875rem;
  font-weight: 500;
  white-space: nowrap;
}

.mast-waitlist {
  text-decoration: underline;
  text-underline-offset: .35em;
  text-decoration-color: currentColor;
}

#index-open { min-width: 86px; padding-inline: 12px; }
.mast a, .mast .house { text-shadow: 0 1px 7px #21170cd9; }
.landfall-on:not(.house-film-on) .mast a { text-shadow: none; }

.opening .location { font-size: clamp(.75rem, .87vw, .9375rem); }
.entry-call button { font-size: .8125rem; letter-spacing: .1em; }
.entry-call button:hover i { background: #fff6db; }

.transport, .room-on .transport {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  bottom: max(16px, 2.7svh, env(safe-area-inset-bottom));
  left: max(var(--pad), env(safe-area-inset-left));
  right: max(var(--pad), env(safe-area-inset-right));
  height: auto;
  gap: clamp(8px, 2vw, 22px);
  font-size: .875rem;
  letter-spacing: .015em;
  pointer-events: none;
}
.transport > * { pointer-events: auto; }
.transport .spool, .room-on .transport .spool {
  display: flex;
  position: static;
  transform: none;
  justify-self: center;
  gap: clamp(5px, 1vw, 13px);
}
.track { height: 44px; }
.track input { touch-action: pan-y; }
.play-button, .sound-button { min-height: 44px; }
.sound-button { grid-column: 3; }
.with-session .transport .spool { pointer-events: none; }
.landfall-on .transport {
  background: linear-gradient(0deg, #24180c9c, transparent);
  padding-inline: var(--pad);
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 68px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}

.name .inside {
  top: 43%;
  max-width: min(82%, 52rem);
  text-shadow: 0 1px 16px #24180da6;
}

.name .definition { font-weight: 400; }
.house-intro {
  font-size: clamp(1rem, 1.25vw, 1.1875rem);
  line-height: 1.45;
  max-width: 32ch;
}

.house-intro { margin-top: .4em; }
.light-action, .name-practices, .canopy-look, #under .text-button {
  font-size: .875rem;
  min-height: 44px;
}
.name-practices, #under .text-button {
  text-decoration: underline;
  text-underline-offset: .36em;
  text-decoration-color: #f5ead7b0;
  border: 0;
}
.name-practices { margin-top: 0; }

.canopy-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: clamp(14px, 3vw, 28px);
}
.canopy-look input { width: clamp(84px, 17vw, 146px); height: 44px; }
.canopy-look input::-webkit-slider-thumb { width: 12px; height: 12px; margin-top: -5.5px; }
.canopy-look input::-moz-range-thumb { width: 12px; height: 12px; }


#home { padding-top: max(106px, 12.8svh); isolation: isolate; }
.landfall-note, .landfall-signature { opacity: var(--landfall-title); }
.landfall-note {
  margin: clamp(14px, 2.1svh, 25px) 0 0;
  font-size: clamp(1rem, 1.35vw, 1.1875rem);
  max-width: 37ch;
  line-height: 1.45;
  font-weight: 500;
}
.landfall-signature { margin: .7em 0 0; font-size: .875rem; }
.landfall-actions { gap: 4px clamp(16px, 2vw, 29px); }
.landfall-actions a, .landfall-actions button { font-size: .875rem; }
.landfall-actions .waitlist-primary {
  border: 1px solid transparent;
  border-radius: 40px;
  padding: 0 19px;
  background: #3a2b22;
  color: #fff3de;
  text-shadow: none;
}
.landfall-actions .waitlist-primary:hover { background: #523b2a; }
.landfall-actions .waitlist-primary:focus-visible { outline-color: #3a2b22; }
html:not(.quiet) #home .landfall-note { transition: opacity .3s ease; }
html:not(.quiet) #home.screening .landfall-note { opacity: 0; }
html:not(.quiet) #screen.house-film-on .waitlist-primary {
  color: #fff3de;
  border-color: #f9eacb85;
  text-shadow: none;
}

#index {
  padding-top: max(clamp(20px, 3.4vw, 66px), env(safe-area-inset-top));
  padding-bottom: max(clamp(20px, 3.4vw, 66px), env(safe-area-inset-bottom));
  overscroll-behavior: contain;
}
.index-top button, .index-base button, .tabs button { font-size: .875rem; min-height: 44px; }
.index-base { flex-wrap: wrap; column-gap: 16px; }
.index-inner { padding-block: 18px; }
#destinations button { font-size: clamp(1.4375rem, 2.35vw, 2.375rem); font-weight: 400; }
#destinations button:hover { border-color: currentColor; }
.session .guidance { font-size: 1rem; font-weight: 400; }
.session-time { font-size: .875rem; gap: 17px; flex-wrap: wrap; }
.session-time span { font-size: .875rem; }
.session-time button { min-height: 44px; }

@media (max-width: 730px) {
  .mast, .past-opening .mast { gap: 10px; }
  .mast .house, .past-opening .mast .house {
    display: block;
    position: absolute;
    top: calc(50% + 10px);
    left: 0;
    padding: 0;
    border: 0;
    font-size: .75rem;
    letter-spacing: .015em;
  }
  .mast-actions { gap: 16px; }
  #index-open { min-width: 72px; }
  .transport { font-size: .8125rem; }
  .transport .counter { display: none; }
  .track { width: clamp(50px, 18vw, 115px); }
  .entry-call { bottom: max(98px, 18svh); }
  .name .inside { top: 44%; max-width: 92%; }
  .name h2 { font-size: clamp(3.75rem, 15vw, 6.25rem); }
  .name .house-intro { max-width: 26ch; }
  #home { padding-top: max(97px, 13svh); }
  #home .farewell strong { font-size: clamp(3.5rem, 18.2vw, 9rem); }
  #home .landfall-actions { margin-top: 14px; max-width: 26rem; }
  .landfall-actions .waitlist-primary { margin-right: 70px; }
}

@media (max-width: 360px) {
  :root { --pad: 17px; }
  .mast-actions { gap: 12px; }
  .transport, .room-on .transport { gap: 7px; }
  .track { width: 42px; }
  #home .landfall-actions { gap: 0 13px; }
  .session-time { gap: 12px; }
}

@media (max-width: 730px), (max-height: 520px) and (orientation: landscape) {
  #home::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(ellipse at 13% 56%, #fae6cbd1 0%, #f8e5caa1 30%, transparent 74%);
    opacity: var(--landfall-title);
    pointer-events: none;
    transition: opacity .25s ease;
  }
  html:not(.quiet) #home.screening::before { opacity: 0; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .mast { top: max(4px, env(safe-area-inset-top)); }
  .transport, .room-on .transport { bottom: max(3px, env(safe-area-inset-bottom)); }
  .entry-call { bottom: 54px; }
  .name .inside { top: 33%; }
  .name h2 { font-size: min(16svh, 5.75rem); margin-block: 6px; }
  .light-action { margin-top: 0; }
  #under h2 { font-size: 15svh; }
  #home {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
    align-content: center;
    align-items: start;
    gap: 8px clamp(22px, 5vw, 90px);
    padding: 48px var(--pad) 50px;
  }
  #home::before { background: radial-gradient(ellipse at 74% 35%, #f8e8cda0, transparent 63%); }
  #home .farewell > span { font-size: 1.2rem; }
  #home .farewell strong { font-size: min(14svh, 9vw); }
  #home .landfall-note { grid-column: 2; grid-row: 1; margin: 0; }
  #home .landfall-signature { grid-column: 1; grid-row: 2; margin: 0; }
  #home .landfall-actions { grid-column: 2; grid-row: 2; margin-top: 0; }
  .landfall-actions .waitlist-primary { margin-right: 0; }
  .session h2 { font-size: min(14svh, 4.25rem); margin-block: 10px; }
  .session-meter { margin-top: 16px; }
}


html.quiet *, html.quiet *::before, html.quiet *::after { transition-duration: 0s !important; }

.index-contact {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .875rem;
  text-decoration: underline;
  text-underline-offset: .32em;
}

.landfall-actions .landfall-contact { overflow-wrap: anywhere; white-space: normal; }
/* The last two compositions share the low horizon, with type on opposite sides. */
#under {
  align-items: flex-start;
  padding: 2svh var(--pad) 0 55%;
  text-align: left;
}
#under::before {
  background: linear-gradient(90deg, transparent 24%, #1e18152b 52%, #1b151574 100%),
              linear-gradient(0deg, #17141056, transparent 25%, transparent 75%, #1d191429);
}
#under h2 {
  margin: 0 0 .18em -.055em;
  font-size: clamp(4.5rem, min(8.2vw, 13svh), 9.3rem);
  line-height: 1.03;
  letter-spacing: -.065em;
  color: #fff4df;
}
#under .canopy-actions { justify-content: flex-start; align-items: center; gap: 0 1.5rem; }
#under .canopy-look { gap: 1rem; margin-block: 0 .45rem; letter-spacing: .015em; }
#under [data-practice] { gap: .55em; text-decoration: none; font-weight: 500; }
#under [data-practice]::before {
  content: ''; width: 1.75em; height: 1.75em; border-radius: 50%;
  border: 1px solid #faebccb3;
  padding: 0;
  background: center / 5px 7px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 7'%3E%3Cpath d='M0 0 5 3.5 0 7z' fill='%23fff3d9'/%3E%3C/svg%3E");
}
#home {
  justify-content: flex-start;
  padding: clamp(96px, 16svh, 175px) var(--pad) 0 max(var(--pad), 6.2vw);
}
#home .farewell > span {
  font-size: clamp(1.125rem, 1.85vw, 2rem);
  line-height: 1.35;
  letter-spacing: -.025em;
  margin: 0 0 .32em;
}
#home .farewell strong {
  font-size: clamp(4.7rem, min(8.65vw, 14svh), 11.5rem);
  letter-spacing: -.075em;
  line-height: 1.14;
  margin-left: -.055em;
}
#home .farewell .place-end { display: inline-block; margin-inline-start: .07em; white-space: nowrap; }
#home .landfall-note { margin: clamp(19px, 3.3svh, 38px) 0 0; max-width: 40ch; line-height: 1.55; }
.landfall-note span { display: block; }
.landfall-signature { color: #4d3b2d; font-size: .875rem; letter-spacing: .025em; }
#home .landfall-actions { margin-top: clamp(16px, 2.6svh, 32px); }
.landfall-actions .waitlist-primary { transition: background-color .3s, box-shadow .3s; }
.landfall-actions .waitlist-primary:hover { box-shadow: 0 3px 18px #38201421; }
.landfall-on .transport { background: linear-gradient(0deg, #201910a8, transparent); }
.session[data-practice='stillness'] .session-inner { left: 55%; width: min(39%, 620px); }
.session[data-practice='stillness'] .session-wash { background: linear-gradient(90deg, transparent, #1a120d0f 38%, #150d0cb8); }

@media (min-width: 731px) {
  .landfall-on .transport, .room-on .transport {
    grid-template-columns: max-content max-content 1fr;
    gap: 2rem;
  }
  :is(.room-on,.landfall-on) .transport .spool {
    grid-column: 3; grid-row: 1;
    position: absolute; left: calc(50vw - var(--pad)); transform: translateX(-50%);
  }
  .landfall-on .transport .spool { left: 50vw; }
  :is(.room-on,.landfall-on) .transport .sound-button { grid-column: 2; grid-row: 1; }
}
@media (max-width: 730px) {
  #under { padding: 3svh var(--pad) 0 max(var(--pad), 11vw); }
  #under h2 { font-size: clamp(4rem, 15.7vw, 7rem); }
  #under::before { background: linear-gradient(90deg, #20191554, #2019151c), linear-gradient(0deg,#18140d85,transparent 74%); }
  #under .canopy-actions { column-gap: 16px; }
  #home { padding: max(88px,14svh) var(--pad) 0; }
  #home .farewell .place-end { display: block; margin: 0; }
  #home .farewell strong { font-size: clamp(3.4rem, 14.3vw, 6.3rem); line-height: 1.09; letter-spacing: -.068em; max-width: 100%; }
  #home .farewell > span { font-size: 1.075rem; margin-bottom: .42em; }
  #home .landfall-note { margin-top: clamp(20px, 3svh, 28px); font-size: 1rem; line-height: 1.52; max-width: 32ch; }
  #home .landfall-signature { margin-top: .72rem; }
  #home .landfall-actions { margin-top: 1rem; column-gap: 16px; row-gap: 0; }
  .landfall-actions .waitlist-primary { margin-right: 0; padding-inline: 15px; }
  .session[data-practice='stillness'] .session-inner { width: auto; left: var(--pad); right: var(--pad); top: 61%; }
  .session[data-practice='stillness'] .session-wash { background: linear-gradient(0deg, #140c0bec, #140c0b82 43%, transparent 80%); }
}
@media (max-height: 520px) and (orientation: landscape) {
  #under { padding-top: 0; }
  #under h2 { font-size: 13svh; }
  #home { grid-template-columns: minmax(0,.92fr) minmax(0,1fr); padding: 57px var(--pad) 55px; }
  #home .farewell strong { font-size: min(11.6svh,7.3vw); }
  #home .farewell > span { font-size: 1rem; margin-block: 0 .15em; }
  #home .farewell .place-end { display: inline-block; }
  #home .landfall-note { margin: 0; font-size: .95rem; }
  #home .landfall-actions { margin-top: 0; gap: 1px 12px; }
  #home .landfall-signature { margin-top: .25em; }
  .session[data-practice='stillness'] .session-inner { top: 47%; }
}


@media (max-width: 400px) and (max-height: 680px) and (orientation: portrait) {
  #home { padding-top: max(81px, 14svh); }
  #home .farewell strong { font-size: 12.1vw; }
  #home .farewell .place-end { display: inline-block; margin-inline-start: .06em; }
  #home .landfall-note { margin-top: 17px; }
}

/* One rotation measures the actual sixty seconds of playback. */
.minute-clock {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 45px;
}
.minute-clock svg { position:absolute; inset:0; height:100%; width:100%; fill:none; }
.clock-track { stroke:currentColor; opacity:.33; }
.clock-hand { stroke:currentColor; stroke-dasharray:100; stroke-dashoffset:var(--elapsed,0); }
.session-time .minute-clock span { font-size:.9rem; font-variant-numeric:tabular-nums; }
.session .session-time { margin-top:clamp(20px,4svh,42px); gap:clamp(14px,2vw,30px); }
#session-action { font-weight:500; }
#session-exit { text-decoration-color:#f1e3cc80; }
.session .session-inner { max-width: min(44rem, 82vw); }
@media (max-width: 730px) {
  .session[data-practice] .session-inner { width:auto; max-width:none; left:var(--pad); right:var(--pad); }
  .session[data-practice] .session-wash { background:linear-gradient(90deg,#221910bb,#231b1473 75%,#221a144a); }
  .session .session-time { gap:13px; }
  .minute-clock { width:66px; }
}
@media (max-height: 520px) and (orientation:landscape) {
  .session .session-time { margin-top: 10px; }
}
.landfall-actions .waitlist-primary:hover { box-shadow:none; }

/* The photographic stage releases at the shore. The invitation follows in normal flow. */
#screen {position:sticky;top:0;overflow:clip}
#passage > .chapter-chrome {position:fixed;z-index:6}
#passage > .mast.chapter-chrome .house {display:inline-block}
.name-practices {display:inline-flex;align-items:center;padding-right:.5rem}
.skip-passage {position:fixed;top:.75rem;left:var(--pad);z-index:12;padding:.6rem 1rem;background:#f7efdd;color:#2b211b;transform:translateY(-200%)}
.skip-passage:focus {transform:none}
body.with-session #practice-editorial {visibility:hidden}
.session.on {background:transparent}
.session.on .session-wash {background:linear-gradient(90deg,#24190fd9,#281c0e98 46%,#291c0a35 90%)}
.session[data-practice="stillness"].on .session-wash {background:linear-gradient(270deg,#24190fd9,#281c0e98 46%,#291c0a35 90%)}
#passage > .chapter-chrome {color:#fbf0e1}
#passage > .chapter-chrome .house {border-color:currentColor}
#passage > .chapter-chrome a,#passage > .chapter-chrome .house {text-shadow:none}
#passage > .chapter-chrome #index-open {color:inherit;border-color:currentColor;background:transparent;backdrop-filter:none}
#passage:is([data-current-chapter="stillness"],[data-current-chapter="restore"]) > .mast.chapter-chrome {color:#271b13;text-shadow:none}
#passage:is([data-current-chapter="stillness"],[data-current-chapter="restore"]) > .mast.chapter-chrome .id img {filter:brightness(0) saturate(100%) invert(12%) sepia(19%) saturate(740%)}
.chapter-chrome .track:before,.chapter-chrome .passed,.chapter-chrome .head {background:currentColor}
.chapter-chrome .track:before {opacity:.38}
.chapter-chrome .player-icon {border-color:currentColor}
.chapter-chrome .notches {background:repeating-linear-gradient(90deg,currentColor 0 1px,transparent 1px 12.5%);opacity:.42}
.chapter-chrome :focus-visible {outline-color:currentColor}
body.with-session #passage > .transport.chapter-chrome {color:#fbf0e1}
@media (max-width:730px) {
  #passage>.mast.chapter-chrome {gap:10px}
  #passage>.mast.chapter-chrome .house {font-size:.64rem;letter-spacing:.02em;padding-left:10px}
  .session.on .session-wash,.session[data-practice="stillness"].on .session-wash {background:linear-gradient(90deg,#24190fd9,#291b118c 87%)}
}
@media (max-width:370px) {#passage>.mast.chapter-chrome .house {display:none}}

#canopy-handoff {
  position:fixed; inset:0; z-index:2; width:100%; height:100vh; height:100dvh;
  pointer-events:none;
}
#canopy-handoff[hidden],body.with-session #canopy-handoff {visibility:hidden}
#passage.in-practices {touch-action:pan-y pinch-zoom}
#passage[data-current-chapter="sound"] #screen {cursor:crosshair}

@media (prefers-reduced-motion:no-preference) {
  html.cut-from-index::view-transition-old(root) {
    z-index:2; mix-blend-mode:normal;
    animation:komo-index-lift .60s cubic-bezier(.63,.05,.23,1) both;
  }
  html.cut-from-index::view-transition-new(root) {
    z-index:1; mix-blend-mode:normal;
    animation:komo-index-arrive .63s cubic-bezier(.18,.67,.22,1) both;
  }
}
@keyframes komo-index-lift {
  from {clip-path:polygon(0 0,100% 0,100% 100%,0 100%);transform:translateY(0)}
  to {clip-path:polygon(0 0,100% 0,100% 0,0 0);transform:translateY(-4%)}
}
@keyframes komo-index-arrive {
  from {transform:scale(1.042)}
  to {transform:scale(1)}
}

#passage > .transport.chapter-chrome {color:#fff3e1;text-shadow:none}
#passage > .transport.chapter-chrome::before {
  content:""; position:absolute; z-index:-1; pointer-events:none;
  inset:-3.4rem calc(-1 * var(--pad)) calc(-1 * max(28px,4svh)) calc(-1 * var(--pad));
  background:linear-gradient(0deg,#21170fd9 0%,#21170f82 40%,transparent 100%);
}
#passage:is([data-current-chapter="movement"],[data-current-chapter="breath"],[data-current-chapter="sound"]) > .mast.chapter-chrome::before {
  content:""; position:absolute; z-index:-1; pointer-events:none;
  inset:calc(-1 * max(50px,8svh)) calc(-1 * var(--pad)) -1.7rem;
  background:linear-gradient(180deg,#21170f97 8%,#21170f46 55%,transparent 100%);
}

/* The camera stays available as a continuous scrubber inside the practices. */
#transport.chapter-chrome .counter, #transport.chapter-chrome .notches {display:none}
@media (hover:hover) {
  #passage.over-bowl #screen {cursor:pointer}
}
