/* One previous experience, presented as an editorial memory. */
.memories { background: #08080a; padding: clamp(64px, 9vw, 130px) 0 0; }
.memories__inner { max-width: 1280px; margin: auto; padding: 0 var(--edge-padding); }
.memories figure, .memories p, .memories h2, .memories h3 { margin: 0; }
.memories__label { font-size: .69rem; font-weight: 800; letter-spacing: .2em; color: #f05a62; }
.memories__intro .memories__label::before { content: ''; display: inline-block; width: 20px; height: 1px; background: #b3121a; margin-right: 12px; vertical-align: middle; }
.memories__intro h2 { font-family: var(--font-display); font-size: clamp(4rem, 8.5vw, 7.4rem); line-height: .94; font-weight: 400; margin: 26px 0 24px; letter-spacing: -.015em; }
.memories__intro h2 em, .memories__wall-heading h3 em { color: var(--color-red-hot); font-style: normal; }
.memories__intro h2 em { font-style: italic; }
.memories__subheading { font-size: clamp(.72rem, 1.1vw, .85rem); font-weight: 600; line-height: 1.8; letter-spacing: .11em; color: #c8c1c6; }
.memories .memories__feature { width: 84%; margin: 64px 0 0 auto; }
.memories__feature > img { width: 100%; height: auto; filter: contrast(1.025); }
.memories__feature figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-top: 18px; }
.memories__feature h3 { font-family: var(--font-display); font-size: clamp(1.85rem, 3vw, 2.5rem); line-height: 1.1; font-weight: 400; letter-spacing: .015em; }
.memories__feature h3 span { color: #c8c1c6; }
.memories__feature figcaption p { font-size: .66rem; font-weight: 600; color: #b3adb3; letter-spacing: .1em; line-height: 1.7; }
.memories__pair { display: grid; grid-template-columns: .65fr 1fr; align-items: start; gap: 12%; margin-top: 110px; }
.memories .memories__support { margin-top: 120px; }
.memories__support img { width: 100%; height: auto; }
.memories__film .memories__label { margin-bottom: 14px; }
.memories__player { position: relative; background: #111114; }
.memories__player video { display: block; width: 100%; max-height: 620px; aspect-ratio: 4 / 5; object-fit: contain; background: #0c0c0f; }
.memories__play { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; background: transparent; touch-action: manipulation; }
.memories__play svg { width: 68px; height: 68px; fill: #ffffffb8; filter: drop-shadow(0 2px 10px #0005); transition: opacity .18s ease, transform .18s ease; }
.memories__play.is-playing svg { opacity: 0; transform: scale(1.2); }
.memories__play:focus-visible { outline: 2px solid white; outline-offset: -4px; }
.memories__sound { position: absolute; z-index: 2; top: 14px; right: 14px; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 14px; border: 1px solid #ffffff30; border-radius: 999px; background: #0009; backdrop-filter: blur(12px); color: white; font-size: .72rem; font-weight: 600; touch-action: manipulation; }
.memories__sound svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.memories__sound .memories__sound-on, .memories__sound.is-audible .memories__sound-off { display: none; }
.memories__sound.is-audible .memories__sound-on { display: block; }
.memories__seek { --progress: 0%; position: absolute; z-index: 2; bottom: 0; left: 12px; width: calc(100% - 24px); height: 24px; margin: 0; appearance: none; background: transparent; cursor: pointer; }
.memories__seek::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(to right, white var(--progress), #ffffff50 var(--progress)); }
.memories__seek::-moz-range-track { height: 3px; border-radius: 3px; background: linear-gradient(to right, white var(--progress), #ffffff50 var(--progress)); }
.memories__seek::-webkit-slider-thumb { appearance: none; height: 10px; width: 10px; margin-top: -3.5px; border-radius: 50%; background: white; }
.memories__seek::-moz-range-thumb { height: 10px; width: 10px; border: 0; border-radius: 50%; background: white; }
.memories__play[hidden], .memories__sound[hidden], .memories__seek[hidden] { display: none; }
.memories .memories__video-status { font-size: .75rem; color: #b3adb3; margin-top: 10px; }
.memories__wall { margin: 90px auto 0; max-width: 720px; }
.memories__wall-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid #29262c; margin-bottom: 24px; }
.memories__wall-heading h3 { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.3rem); font-weight: 400; line-height: 1; letter-spacing: .025em; }
.memories__wall-heading > span { font-size: .62rem; font-weight: 600; letter-spacing: .08em; line-height: 1.7; color: #b3adb3; }
.memories__grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; align-items: center; padding: 28px 14px 32px; }
.memories__moment { --tilt: -7deg; --lift: 0px; position: relative; padding: 5px 5px 19px; background: #e5dfd3; box-shadow: 0 9px 22px #0008; transform: translateY(var(--lift)) rotate(var(--tilt)); animation: memory-float 5s ease-in-out infinite alternate; animation-delay: -2s; }
.memories__moment:nth-child(3n + 2) { --tilt: 8deg; --lift: 16px; animation-delay: -4s; }
.memories__moment:nth-child(3n) { --tilt: -3deg; --lift: -8px; animation-duration: 6s; }
.memories__moment:nth-child(4n) { --tilt: 5deg; --lift: 10px; }
.memories__moment:nth-child(6) { grid-column: 2; }
@keyframes memory-float { to { transform: translateY(calc(var(--lift) - 7px)) rotate(calc(var(--tilt) + 2deg)); } }
.memories__moment img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.memories__moment:nth-child(4n) img { aspect-ratio: 1; }
.memories__moment span { position: absolute; bottom: 3px; right: 7px; color: #453c38; font-size: .5rem; opacity: .8; transition: opacity .3s; }
.memories__moment:hover, .memories__moment:focus-visible { animation-play-state: paused; z-index: 2; scale: 1.12; }
.memories__moment:hover img, .memories__moment:focus-visible img { transform: scale(1.04); }
.memories__moment:hover span, .memories__moment:focus-visible span { opacity: 1; }
.memories__ending { margin-top: 90px; padding: 64px 0 80px; text-align: right; border-top: 1px solid #29262c; }
.memories__ending p { font-family: var(--font-display); font-size: clamp(2.6rem,5.5vw,5rem); line-height: 1; letter-spacing: -.01em; }
.memories__ending span { display: block; font-size: .72rem; font-weight: 700; line-height: 1.7; letter-spacing: .14em; color: #f05a62; margin-top: 18px; }
.memories [data-reveal].is-pending { opacity: 0; transform: translateY(20px); }
.memories [data-reveal] { transition: opacity .8s ease, transform .8s cubic-bezier(.16,1,.3,1); }
.memories .memories__moment { transition: opacity .8s ease, scale .3s ease; }
.memories .memories__moment.is-pending { animation-play-state: paused; }
.memories__lightbox { border: 0; padding: 64px 64px 32px; width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; background: rgba(5,5,8,.97); color: #fff; }
.memories__lightbox[open] { display: grid; grid-template-columns: 48px minmax(0,1fr) 48px; gap: 16px; align-items: center; }
.memories__lightbox::backdrop { background: #08080a; }
.memories__lightbox figure { display: flex; flex-direction: column; align-items: center; min-width: 0; pointer-events: none; }
.memories__lightbox img { max-height: calc(100dvh - 150px); max-width: 100%; width: auto; object-fit: contain; pointer-events: auto; }
.memories__lightbox figcaption { font-size: .65rem; letter-spacing: .12em; color: #bab2bd; margin-top: 16px; }
.memories__lightbox button { min-width: 44px; min-height: 44px; }
.memories__close { position: absolute; right: 24px; top: 16px; font-size: .65rem; letter-spacing: .13em; }
.memories__previous, .memories__next { font-size: 1.5rem; }
@media (max-width: 760px) {
  .memories__intro h2 { font-size: clamp(3.4rem,14vw,5rem); }
  .memories .memories__feature { width: 100%; margin-top: 40px; }
  .memories__feature figcaption { display: block; }
  .memories__feature figcaption p { margin-top: 7px; }
  .memories__pair { display: flex; flex-direction: column; gap: 36px; margin-top: 48px; }
  .memories__film { order: -1; width: 100%; }
  .memories .memories__support { margin-top: 0; width: 68%; }
  .memories__player video { max-height: 70svh; }
  .memories__wall { margin-top: 52px; }
  .memories__wall-heading { align-items: start; flex-direction: column; gap: 8px; }
  .memories__grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px 10px; padding: 20px 8px 28px; }
  .memories__moment:nth-child(6) { grid-column: auto; }
  .memories__moment:nth-child(n) { margin-top: 0; }
  .memories__moment:nth-child(n) img { aspect-ratio: 4 / 3; }
  .memories__ending { margin-top: 48px; padding: 40px 0 56px; }
  .memories__lightbox { padding: 64px 10px 24px; }
  .memories__lightbox[open] { grid-template-columns: 36px minmax(0,1fr) 36px; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .memories__play svg { transition: none; }
  .memories .memories__moment { animation: none; transition: none; }
  .memories [data-reveal].is-pending { opacity: 1; transform: none; }
  .memories [data-reveal], .memories__moment img, .memories__moment span { transition: none; }
}
