/* Adapted Isoline and Onda by 8B, MIT. See licenses/. */


#opening { position: relative; }
#opening .opening__stage { position: sticky; top: 0; height: 100vh; overflow: clip; background: var(--color-1); }
#opening .opening__well { position: absolute; right: -6vw; top: -10vh; width: 64vw; height: 120vh; overflow: visible; }
#opening .opening__well .m-well__band { transform-box: view-box; transform-origin: 77% 36.4%; }
#opening .opening__figure { position: absolute; left: 39vw; bottom: 0; height: 64vh; aspect-ratio: 4 / 5; mix-blend-mode: multiply; }
#opening .opening__figure-move { width: 100%; height: 100%; }
#opening .opening__figure img { object-position: 61% 60%; }
#opening .opening__first { position: relative; margin-top: -100vh; min-height: 100vh; display: grid; align-content: center; padding-block: 7.5rem 4rem; }
#opening .opening__copy { max-width: 37rem; }
#opening .opening__title { max-width: 9.5em; }
#opening .opening__lede { margin-top: 1.6rem; max-width: 27rem; color: var(--color-3); }
#opening .opening__actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }
#opening .opening__second { position: relative; min-height: 100vh; display: grid; align-content: center; padding-block: 8rem 5rem; background: var(--color-7); color: var(--color-4); }
#opening .opening__statement { max-width: 15em; font-size: clamp(2.5rem, 5.6vw, 5.4rem); }
#opening .opening__note { margin-top: 2rem; max-width: 33rem; }
#opening .opening__depths { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: .8rem 2.4rem; }
#opening .opening__depths a { font-family: var(--font-1); font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 500; letter-spacing: -.02em; }
#opening .opening__second :focus-visible { outline-color: var(--color-4); }
@media (max-width: 759px) {
  #opening .opening__well { right: -14vw; top: 1vh; width: 128vw; height: 60vh; }
  #opening .opening__figure { left: 0; top: 21vh; bottom: auto; height: 31vh; }
  #opening .opening__first { align-content: end; padding-block: 52vh 2.2rem; }
  #opening .opening__title { font-size: clamp(2.6rem, 12.4vw, 3.6rem); }
  #opening .opening__lede { margin-top: 1rem; font-size: 1.05rem; }
  #opening .opening__actions { margin-top: 1.3rem; }
}
@media (prefers-reduced-motion: no-preference) {
  #opening .opening__well .m-well__band { animation: opening-unfold .9s cubic-bezier(.16,.8,.24,1) calc((1 - var(--well-d)) * .25s) backwards, opening-breathe 6s ease-in-out calc(1.2s + var(--well-d) * 1.8s) infinite; }
  #opening[data-offscreen] .opening__well .m-well__band { animation-play-state: paused; }
  #opening .opening__figure { animation: opening-settle 1s cubic-bezier(.2,.75,.2,1) backwards; }
  #opening .opening__title { animation: opening-lift .9s cubic-bezier(.2,.75,.2,1) backwards; }
  #opening .opening__lede, #opening .opening__actions { animation: opening-arrive .8s cubic-bezier(.2,.75,.2,1) .2s backwards; }
  @keyframes opening-unfold { from { scale: .82; } }
  @keyframes opening-breathe { 50% { scale: 1.055; } }
  @keyframes opening-settle { from { scale: 1.06; } }
  @keyframes opening-lift { from { translate: 0 .3em; } }
  @keyframes opening-arrive { from { translate: 0 1rem; opacity: 0; } }
}



#day { padding-block: 7rem; }
#day .day__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5vw; align-items: start; }
#day .day__dial { position: sticky; top: 12vh; height: 76vh; display: grid; place-items: center; }
#day .day__well { width: min(100%, 76vh); height: auto; aspect-ratio: 1; }
#day .day__head { display: grid; gap: 1.3rem; margin-bottom: 3.5rem; }
#day .day__head p { color: var(--color-3); }
#day .day__list { display: grid; }
#day .day__row { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1.2rem; padding-block: 2rem; border-top: 1px solid color-mix(in oklab, var(--color-2) 18%, transparent); }
#day .day__time { font-family: var(--font-1); font-size: 1.6rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
#day .day__body { display: grid; gap: .5rem; justify-items: start; }
#day .day__body p { color: var(--color-3); }
@media (max-width: 759px) {
  #day { padding-block: 5rem; }
  #day .day__grid { grid-template-columns: 1fr; gap: 0; }
  #day .day__dial { top: 4.4rem; height: 34vh; z-index: 1; background: var(--color-1); padding-block: 1rem; order: 0; }
  #day .day__well { width: auto; height: 100%; }
  #day .day__head { order: -1; margin-bottom: 1rem; }
  #day .day__row { grid-template-columns: 4.5rem minmax(0, 1fr); }
}



#work { position: relative; color: var(--color-2); }
#work .work__plate { position: absolute; inset: 0 0 -2px; background: var(--color-1); }
#work .work__stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: clamp(28px, 4vh, 48px); padding: var(--space-2) var(--space-1); }
#work .work__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; }
#work .work__lead { max-width: 25rem; color: var(--color-5); }
#work .work__track { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
#work .case { position: relative; display: block; overflow: hidden; border-radius: var(--radius-1); background: var(--color-7); aspect-ratio: 4 / 5; }
#work .case__media { position: absolute; inset: 0; overflow: hidden; }
#work .case__img { position: absolute; top: 0; left: -7%; width: 114%; max-width: none; height: 100%; object-fit: cover; }
#work .case__media::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(to top, color-mix(in srgb, var(--color-1) 82%, transparent), transparent); }
#work .case__tag { position: absolute; left: clamp(18px, 2vw, 28px); top: clamp(18px, 2vw, 28px); background: color-mix(in srgb, var(--color-1) 62%, transparent); }
#work .case__text { position: absolute; left: clamp(18px, 2.4vw, 36px); right: clamp(18px, 2.4vw, 36px); bottom: clamp(18px, 2.4vw, 36px); display: grid; gap: 10px; }
#work .case__line { max-width: 30rem; color: var(--color-2); }
@media (min-width: 700px) {
  #work .work__track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #work .case { aspect-ratio: 16 / 11; }
  #work .case:last-child:nth-child(odd) { grid-column: span 2; aspect-ratio: 16 / 6.5; }
}



@media (prefers-reduced-motion: no-preference) {
  #work.is-track { height: calc(100svh + var(--run, 0px)); }
  #work.is-track .work__stage { position: sticky; top: 0; height: 100svh; min-height: 560px; padding-top: clamp(84px, 13svh, 120px); padding-bottom: clamp(24px, 5svh, 48px); grid-template-rows: auto minmax(0, 1fr); overflow: clip; }
  #work.is-track .work__window { display: flex; align-items: center; min-height: 0; transform-origin: 0 50%; }
  #work.is-track .work__track { display: flex; gap: clamp(14px, 1.6vw, 24px); width: max-content; height: min(100%, 64svh); }
  #work.is-track .case { width: auto; height: 100%; aspect-ratio: 4 / 5; flex: none; }
  @media (min-width: 700px) { #work.is-track .case { aspect-ratio: 16 / 10.5; } }
}

