:root {
  color-scheme: light;
  --paper: #ead9b9;
  --paper-light: #f7ecd5;
  --ink: #20201e;
  --blue-ink: #214c79;
  --red-pencil: #a9473e;
  --film: #11100e;
  --frame-width: clamp(202px, 15.1vw, 242px);
  --frame-height: clamp(116px, 8.9vw, 142px);
  --film-strip-height: clamp(164px, 18.3vh, 184px);
  --cell-gap: 8px;
  --loop-duration: 52s;
  --loop-phase: -13s;
  --typewriter: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, "Noto Sans Mono CJK SC", "PingFang SC", monospace;
  --label-typewriter: "Courier New", Courier, "Songti SC", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
}

body {
  overflow-x: hidden;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgb(255 235 220 / 32%), rgb(255 235 220 / 32%)),
    linear-gradient(rgb(239 216 190 / 34%), rgb(225 190 157 / 30%)),
    url("../../assets/the-leader/generated/the-leader-paper-background-v1.png");
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  font-family: Georgia, "Times New Roman", serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  content: "";
  opacity: .34;
  mix-blend-mode: multiply;
  background-image:
    repeating-radial-gradient(circle at 23% 31%, transparent 0 2px, rgb(70 48 28 / 6%) 2px 3px),
    repeating-linear-gradient(91deg, transparent 0 11px, rgb(255 255 255 / 8%) 11px 12px);
}

.leader-page {
  position: relative;
  min-height: 100vh;
  padding: 0 0 24px;
  isolation: isolate;
}

.leader-page::before,
.leader-page::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
  background: rgb(196 158 105 / 28%);
  filter: drop-shadow(2px 3px 2px rgb(74 47 22 / 12%));
  clip-path: polygon(0 9%, 16% 2%, 31% 8%, 49% 0, 67% 7%, 83% 3%, 100% 11%, 96% 91%, 77% 96%, 58% 90%, 37% 98%, 17% 92%, 3% 99%);
}

.leader-page::before {
  top: 25px;
  left: -4vw;
  width: 31vw;
  height: 112px;
  transform: rotate(-3deg);
}

.leader-page::after {
  right: -6vw;
  bottom: 18px;
  width: 38vw;
  height: 96px;
  transform: rotate(2deg);
}

.page-header {
  position: relative;
  width: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.header-art {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
  object-position: center top;
  filter: sepia(.24) saturate(1.28) brightness(.9) contrast(1.02) hue-rotate(-7deg);
}

.title-stack {
  position: relative;
  z-index: 2;
  justify-self: center;
  width: min(100%, 870px);
  text-align: center;
}

.title-stack::before {
  position: absolute;
  top: -8px;
  left: 7%;
  z-index: 3;
  width: 18%;
  height: 20px;
  content: "";
  opacity: .52;
  background: #cbb78f;
  box-shadow: 570px 4px 0 rgb(203 183 143 / 75%);
  transform: rotate(-3deg);
}

h1 {
  position: relative;
  margin: 0;
  padding: 16px 38px 18px;
  color: #243c5d;
  background:
    repeating-linear-gradient(3deg, transparent 0 7px, rgb(99 72 42 / 5%) 7px 8px),
    #e9ddc5;
  clip-path: polygon(1% 12%, 16% 5%, 34% 9%, 51% 2%, 68% 10%, 87% 4%, 99% 15%, 96% 91%, 78% 96%, 61% 91%, 43% 98%, 24% 91%, 3% 96%);
  filter: drop-shadow(4px 5px 2px rgb(60 42 26 / 18%));
  font-family: Baskerville, "Baskerville Old Face", Georgia, serif;
  font-size: clamp(52px, 5.3vw, 86px);
  font-weight: 800;
  line-height: .9;
  letter-spacing: .025em;
  text-shadow: 1px 0 rgb(36 60 93 / 60%), -1px 1px rgb(247 236 213 / 45%);
}

h1::after {
  position: absolute;
  left: 67%;
  bottom: 1px;
  width: 29%;
  height: 72%;
  content: "";
  border: 4px solid rgb(169 71 62 / 70%);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.subtitle {
  margin: 7px 0 0;
  color: #40352b;
  font: italic 22px/1.2 "Comic Sans MS", "Bradley Hand", cursive;
  letter-spacing: .14em;
  transform: rotate(-1deg);
}

.header-left {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.3vw, 22px);
  min-width: 0;
}

.scrapbook-note {
  position: relative;
  flex: none;
  margin: 0;
  padding: 10px 16px 13px;
  color: #315988;
  background: rgb(226 211 183 / 82%);
  clip-path: polygon(1% 8%, 21% 2%, 44% 8%, 67% 1%, 99% 10%, 96% 90%, 76% 98%, 51% 91%, 27% 97%, 3% 88%);
  filter: drop-shadow(3px 4px 2px rgb(70 46 24 / 16%));
  font: 18px/1.2 "Comic Sans MS", "Bradley Hand", cursive;
  letter-spacing: .06em;
  transform: rotate(-5deg);
}

.scrapbook-note::after {
  display: block;
  width: 90%;
  margin-top: 4px;
  content: "";
  border-bottom: 3px double var(--red-pencil);
  transform: rotate(-2deg);
}

.camera-doodle,
.compass-doodle {
  color: #252a2d;
}

.camera-doodle {
  flex: 1 1 130px;
  width: clamp(108px, 11vw, 158px);
  min-width: 100px;
  max-width: 158px;
  transform: rotate(-3deg);
}

.camera-doodle svg,
.compass-doodle svg {
  display: block;
  width: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.compass-doodle {
  position: relative;
  justify-self: end;
  width: clamp(92px, 8vw, 124px);
  color: #333b3d;
  transform: rotate(5deg);
}

.compass-doodle span {
  position: absolute;
  color: #323438;
  font: italic 700 17px/1 Georgia, serif;
}

.compass-doodle .north { top: -13px; left: 47%; }
.compass-doodle .east { top: 43%; right: -10px; }
.compass-doodle .south { bottom: -13px; left: 47%; }
.compass-doodle .west { top: 43%; left: -13px; }

.compass-doodle::before {
  position: absolute;
  inset: -8px -12px;
  content: "";
  border: 3px solid rgb(169 71 62 / 66%);
  border-radius: 50%;
  transform: rotate(12deg) scaleX(1.08);
}

.film-area {
  position: relative;
  display: grid;
  gap: clamp(48px, 6.2vh, 62px);
  width: 100%;
  padding: 0 0 12px;
}

.film-viewport {
  position: relative;
  width: 100vw;
  height: var(--film-strip-height);
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  background: var(--film);
  box-shadow: 0 8px 12px rgb(54 37 23 / 30%), 0 -2px 3px rgb(255 248 225 / 40%);
}

.mobile-film-viewport {
  display: none;
}

.film-viewport::before {
  position: absolute;
  inset: 0;
  z-index: 4;
  content: "";
  pointer-events: none;
  opacity: .22;
  mix-blend-mode: screen;
  background:
    linear-gradient(91deg, transparent 0 12%, rgb(255 255 255 / 13%) 12.3%, transparent 13%),
    repeating-linear-gradient(4deg, transparent 0 21px, rgb(255 255 255 / 5%) 21px 22px);
}

.film-viewport::after {
  position: absolute;
  top: 50%;
  left: clamp(7px, 1vw, 16px);
  z-index: 5;
  padding: 3px 8px;
  content: attr(data-label);
  color: #2c241d;
  background: #ede1c9;
  box-shadow: 2px 3px 2px rgb(0 0 0 / 21%);
  font: 700 12px/1.15 "Courier New", monospace;
  transform: translateY(-50%) rotate(-2deg);
}

.row-two::after {
  right: clamp(7px, 1vw, 16px);
  left: auto;
  transform: translateY(-50%) rotate(2deg);
}

.film-track {
  display: flex;
  width: max-content;
  height: 100%;
  will-change: transform;
  animation-duration: var(--loop-duration);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-delay: var(--loop-phase);
}

.film-track.moves-left { animation-name: film-roll-left; }
.film-track.moves-right { animation-name: film-roll-right; }

/* 嵌入外壳且未进入本场景时，胶片动画挂起；图片仍照常预载 */
body.film-held .film-track { animation-play-state: paused; }

.film-sequence {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--cell-gap);
  height: 100%;
  padding: 24px 8px;
  background: linear-gradient(180deg, #161511, #090908 48%, #12110f);
}

.film-sequence::before,
.film-sequence::after {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 2;
  height: 13px;
  content: "";
  background: repeating-linear-gradient(90deg, #090908 0 10px, #eee3c9 10px 22px, #090908 22px 34px);
}

.film-sequence::before {
  top: 5px;
}

.film-sequence::after {
  bottom: 5px;
}

.film-frame {
  position: relative;
  flex: 0 0 var(--frame-width);
  width: var(--frame-width);
  height: var(--frame-height);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid #050505;
  background: #252525;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 9%);
  transition: filter 160ms ease, transform 160ms ease;
}

.film-frame:hover,
.film-frame:focus-visible {
  z-index: 4;
  outline: 3px solid #f2dfab;
  outline-offset: 2px;
  filter: brightness(1.04);
  transform: scale(1.025);
}

.film-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
  filter: sepia(.16) saturate(.78) contrast(.96) brightness(.95);
}

.film-frame::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: .2;
  mix-blend-mode: soft-light;
  background:
    radial-gradient(circle at 50% 45%, transparent 38%, rgb(39 25 12 / 28%) 100%),
    repeating-linear-gradient(7deg, transparent 0 3px, rgb(255 244 218 / 8%) 3px 4px);
}

.frame-year {
  position: absolute;
  right: 5px;
  bottom: 4px;
  padding: 2px 5px;
  color: #f4ead7;
  background: rgb(8 8 7 / 68%);
  font: 700 10px/1 "Courier New", monospace;
  letter-spacing: .08em;
}

.film-viewport:hover .film-track {
  animation-play-state: paused;
}

@keyframes film-roll-left {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@keyframes film-roll-right {
  from { transform: translate3d(-50%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}

.film-canister {
  position: absolute;
  top: 8px;
  left: clamp(-38px, -2vw, -18px);
  z-index: 8;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: clamp(105px, 8.4vw, 134px);
  height: var(--film-strip-height);
  color: #151513;
  border: 8px solid #171715;
  border-radius: 15px 15px 28px 28px;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 24%), transparent 18% 82%, rgb(42 26 5 / 26%)),
    #d7a928;
  box-shadow: 9px 8px 13px rgb(36 26 18 / 30%);
  transform: rotate(-1.5deg);
}

.film-canister::before,
.film-canister::after {
  position: absolute;
  left: 7%;
  width: 86%;
  height: 12px;
  content: "";
  border-radius: 40%;
  background: #111;
}

.film-canister::before { top: -13px; }
.film-canister::after { bottom: -13px; }

.film-canister strong {
  writing-mode: vertical-rl;
  font: 900 clamp(20px, 1.7vw, 29px)/1 Arial, sans-serif;
  letter-spacing: .06em;
}

.canister-small {
  font: 700 9px/1.1 "Courier New", monospace;
  letter-spacing: .08em;
}

.between-note {
  position: absolute;
  z-index: 6;
  color: var(--blue-ink);
  font: 17px/1.1 "Comic Sans MS", "Bradley Hand", cursive;
  letter-spacing: .04em;
}

.note-left {
  top: calc(var(--film-strip-height) + 13px);
  left: 13vw;
  transform: rotate(-3deg);
}

.note-right {
  right: 10vw;
  bottom: calc(var(--film-strip-height) + 16px);
  transform: rotate(2deg);
}

.page-footer {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 10px 24px 0;
  color: #4a3a2e;
  font: 11px/1.3 "Courier New", monospace;
  letter-spacing: .05em;
  text-align: center;
}

body.drawer-open {
  overflow: hidden;
}

.drawer-open .film-track {
  animation-play-state: paused;
}

.memory-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s .72s;
}

.memory-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  padding: 0;
  cursor: zoom-out;
  border: 0;
  opacity: 0;
  background: rgb(37 29 21 / 54%);
  backdrop-filter: blur(2px) sepia(.12);
  transition: opacity .28s ease;
}

.memory-drawer.is-open .drawer-backdrop {
  opacity: 1;
}

.memory-folder {
  position: relative;
  width: min(1080px, 94vw, 129vh);
  height: auto;
  aspect-ratio: 3 / 2;
  opacity: 0;
  transform: translate3d(0, 30vh, 0) rotate(-1.5deg) scale(.93);
  transition: transform .62s cubic-bezier(.2, .85, .22, 1), opacity .2s ease;
}

@media (min-width: 761px) and (max-height: 780px) {
  :root {
    --frame-width: clamp(188px, 14.4vw, 220px);
    --frame-height: clamp(106px, 8.2vw, 126px);
    --film-strip-height: 156px;
  }

  .header-art {
    height: 150px;
    object-fit: cover;
  }

  .film-area {
    gap: 38px;
  }

  .film-sequence {
    padding-block: 15px;
  }

  .memory-folder {
    width: min(960px, 92vw, 126vh);
  }
}

.memory-drawer.is-open .memory-folder {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(0) scale(1);
}

.folder-back {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: url("../../assets/the-leader/generated/the-leader-memory-folder-assembled-empty-v2.png") center / 100% 100% no-repeat;
  filter: drop-shadow(0 24px 25px rgb(16 12 8 / 35%));
}

.drawer-heading {
  position: absolute;
  top: 9%;
  left: 8%;
  z-index: 14;
  display: flex;
  align-items: baseline;
  gap: 11px;
  padding: 7px 14px 8px;
  color: #2d2c29;
  background: #e7dbc2;
  clip-path: polygon(1% 11%, 18% 3%, 38% 8%, 60% 1%, 82% 7%, 99% 2%, 97% 91%, 76% 96%, 54% 91%, 32% 98%, 2% 90%);
  filter: drop-shadow(3px 4px 2px rgb(47 31 17 / 18%));
  transform: rotate(-2deg);
}

.drawer-heading h2 {
  margin: 0;
  color: #243f63;
  font: 800 clamp(28px, 4vw, 54px)/.85 var(--typewriter);
}

.drawer-kicker,
.drawer-count {
  font: 700 10px/1.1 var(--typewriter);
  letter-spacing: .1em;
}

.drawer-count {
  color: #8a4037;
}

.drawer-close {
  position: absolute;
  top: 7%;
  right: 4%;
  z-index: 22;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0 0 5px;
  cursor: pointer;
  color: #29251f;
  border: 1px solid rgb(55 39 23 / 30%);
  border-radius: 50%;
  background: #e8d7b7;
  box-shadow: 3px 5px 7px rgb(31 21 13 / 25%);
  font: 40px/1 Georgia, serif;
  transition: transform .18s ease;
}

.drawer-close:hover,
.drawer-close:focus-visible {
  outline: 3px solid rgb(242 225 190 / 72%);
  transform: rotate(8deg) scale(1.05);
}

.drawer-close-mobile {
  display: none;
}

.drawer-close-mobile:focus-visible {
  outline: 3px solid rgb(242 225 190 / 85%);
  outline-offset: 2px;
}

.memory-photos {
  position: absolute;
  inset: 12% 4% 18%;
  z-index: 5;
}

.memory-photo {
  position: absolute;
  width: clamp(180px, 23vw, 290px);
  margin: 0;
  padding: 10px 10px 27px;
  opacity: 0;
  background: #eee6d6;
  box-shadow: 8px 12px 18px rgb(35 24 14 / 30%);
  transform: translate3d(0, 52vh, 0) rotate(0deg) scale(.72);
  transition:
    transform .76s cubic-bezier(.16, .82, .18, 1),
    opacity .24s ease;
  transition-delay: calc(var(--order) * 70ms);
}

.memory-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.memory-photo figcaption {
  position: absolute;
  right: 11px;
  bottom: 7px;
  color: #3b342b;
  font: 700 10px/1 var(--typewriter);
  letter-spacing: .08em;
}

.memory-photos[data-count="1"] .memory-photo { width: clamp(260px, 30vw, 360px); }
.memory-photos[data-count="1"] .memory-photo:nth-child(1) { top: 0; left: 33%; z-index: 5; --open-rotate: -1deg; }

.memory-photos[data-count="2"] .memory-photo { width: clamp(230px, 27vw, 330px); }
.memory-photos[data-count="2"] .memory-photo:nth-child(1) { top: 7%; left: 12%; z-index: 4; --open-rotate: -7deg; }
.memory-photos[data-count="2"] .memory-photo:nth-child(2) { top: 0; right: 12%; z-index: 5; --open-rotate: 6deg; }

.memory-photos[data-count="3"] .memory-photo { width: clamp(210px, 24vw, 300px); }
.memory-photos[data-count="3"] .memory-photo:nth-child(1) { top: 12%; left: 2%; z-index: 3; --open-rotate: -7deg; }
.memory-photos[data-count="3"] .memory-photo:nth-child(2) { top: 0; left: 35%; z-index: 5; --open-rotate: 1deg; }
.memory-photos[data-count="3"] .memory-photo:nth-child(3) { top: 10%; right: 2%; z-index: 4; --open-rotate: 7deg; }

.memory-photos[data-count="4"] .memory-photo { width: clamp(225px, 25vw, 320px); }
.memory-photos[data-count="4"] .memory-photo:nth-child(1) { top: 8%; left: -1%; z-index: 4; --open-rotate: -8deg; }
.memory-photos[data-count="4"] .memory-photo:nth-child(2) { top: 35%; left: 24%; z-index: 7; --open-rotate: 5deg; }
.memory-photos[data-count="4"] .memory-photo:nth-child(3) { top: -2%; right: 22%; z-index: 5; --open-rotate: -4deg; }
.memory-photos[data-count="4"] .memory-photo:nth-child(4) { top: 29%; right: -1%; z-index: 6; --open-rotate: 9deg; }

.memory-photos[data-count="5"] .memory-photo { width: clamp(205px, 23vw, 292px); }
.memory-photos[data-count="5"] .memory-photo:nth-child(1) { top: 10%; left: -2%; z-index: 4; --open-rotate: -8deg; }
.memory-photos[data-count="5"] .memory-photo:nth-child(2) { top: 38%; left: 13%; z-index: 8; --open-rotate: 6deg; }
.memory-photos[data-count="5"] .memory-photo:nth-child(3) { top: 5%; left: 38%; z-index: 5; --open-rotate: -3deg; }
.memory-photos[data-count="5"] .memory-photo:nth-child(4) { top: 34%; right: 14%; z-index: 7; --open-rotate: 7deg; }
.memory-photos[data-count="5"] .memory-photo:nth-child(5) { top: -1%; right: -2%; z-index: 6; --open-rotate: -7deg; }

.memory-photos.is-dense .memory-photo {
  position: absolute;
  width: clamp(155px, 18vw, 225px);
  padding: 7px 7px 23px;
}

.memory-photos.is-dense .memory-photo:nth-child(1) { top: 3%; left: 0; --open-rotate: -7deg; z-index: 4; }
.memory-photos.is-dense .memory-photo:nth-child(2) { top: 0; left: 19%; --open-rotate: 3deg; z-index: 6; }
.memory-photos.is-dense .memory-photo:nth-child(3) { top: 5%; left: 39%; --open-rotate: -2deg; z-index: 3; }
.memory-photos.is-dense .memory-photo:nth-child(4) { top: 0; right: 20%; --open-rotate: 6deg; z-index: 5; }
.memory-photos.is-dense .memory-photo:nth-child(5) { top: 4%; right: 0; --open-rotate: -4deg; z-index: 4; }
.memory-photos.is-dense .memory-photo:nth-child(6) { top: 27%; left: 10%; --open-rotate: 5deg; z-index: 7; }
.memory-photos.is-dense .memory-photo:nth-child(7) { top: 24%; left: 39%; --open-rotate: -6deg; z-index: 8; }
.memory-photos.is-dense .memory-photo:nth-child(8) { top: 28%; right: 9%; --open-rotate: 4deg; z-index: 7; }
.memory-photos.is-dense .memory-photo:nth-child(9) { top: 18%; left: 29%; --open-rotate: 7deg; z-index: 2; }
.memory-photos.is-dense .memory-photo:nth-child(10) { top: 21%; right: 27%; --open-rotate: -4deg; z-index: 5; }

.memory-drawer.is-open .memory-photo {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(var(--open-rotate)) scale(1);
  transition-delay: calc(150ms + var(--order) * 85ms);
}

.memory-drawer.is-open .memory-photo:hover {
  z-index: 40 !important;
  transform: translate3d(0, -7px, 0) rotate(var(--open-rotate)) scale(1.075);
  box-shadow: 13px 18px 25px rgb(24 16 9 / 40%);
}

.memory-photos.has-raised {
  z-index: 15;
}

.memory-drawer.is-open .memory-photo.is-raised {
  z-index: 40 !important;
  transform: translate3d(0, -7px, 0) rotate(var(--open-rotate)) scale(1.075);
  box-shadow: 13px 18px 25px rgb(24 16 9 / 40%);
}

.folder-pocket {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  height: 50%;
  overflow: visible;
  pointer-events: none;
  color: #543c27;
  background: url("../../assets/the-leader/generated/the-leader-memory-folder-assembled-empty-v2.png") center bottom / 100% 200% no-repeat;
  clip-path: polygon(
    0 24%, 5% 23%, 10% 26%, 15% 25%, 20% 28%,
    25% 27%, 30% 31%, 35% 30%, 40% 34%, 45% 33%,
    50% 37%, 55% 34%, 60% 35%, 65% 31%, 70% 32%,
    75% 29%, 80% 30%, 85% 26%, 90% 27%, 95% 23%,
    100% 24%, 100% 100%, 0 100%
  );
}

.folder-note {
  position: absolute;
  left: 5.2%;
  bottom: 12.5%;
  width: min(56%, 590px);
  display: flex;
  align-items: center;
  min-height: 118px;
  padding: 20px 30px 18px;
  color: #34302a;
  background: none;
  filter: none;
  transform: rotate(-1deg);
}

.folder-note strong {
  display: block;
  margin: 0;
  color: #274f78;
  font: 700 clamp(25px, 2.55vw, 38px)/1.05 var(--label-typewriter);
  letter-spacing: .04em;
}

.folder-note::after {
  display: none;
}

@media (max-width: 760px) {
  :root {
    --frame-width: clamp(118px, 35vw, 148px);
    --frame-height: clamp(68px, 20vw, 84px);
    --film-strip-height: 108px;
  }

  body {
    background-attachment: scroll;
  }

  .leader-page {
    min-height: 100svh;
    padding-bottom: 18px;
  }

  .page-header {
    min-height: 0;
    padding: 0;
  }

  .header-art {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-left: 0;
    object-fit: contain;
    transform: none;
  }

  .film-canister {
    display: none;
  }

  .film-area {
    gap: 18px;
    padding-bottom: 0;
  }

  .row-one,
  .row-two,
  .row-three {
    display: none;
  }

  .mobile-film-viewport {
    display: block;
  }

  .mobile-row-two::after,
  .mobile-row-four::after {
    right: 7px;
    left: auto;
    transform: translateY(-50%) rotate(2deg);
  }

  .film-sequence {
    gap: 6px;
    padding: 14px 6px;
  }

  .film-sequence::before,
  .film-sequence::after {
    height: 11px;
    background: repeating-linear-gradient(90deg, #090908 0 8px, #eee3c9 8px 18px, #090908 18px 28px);
  }

  .film-sequence::before {
    top: 4px;
  }

  .film-sequence::after {
    bottom: 4px;
  }

  .film-viewport::after {
    padding: 3px 6px;
    font-size: 10px;
  }

  .frame-year {
    right: 3px;
    bottom: 3px;
    font-size: 9px;
  }

  .between-note,
  .page-footer {
    display: none;
  }

  .memory-folder {
    width: min(82vw, 480px);
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 3 / 2;
  }

  .folder-back {
    inset: 0;
    border: 0;
    border-radius: 0;
    background-size: 100% 100%;
    background-position: center;
    box-shadow: none;
  }

  .drawer-heading {
    top: 11%;
    left: 5%;
    padding-right: 54px;
  }

  .drawer-kicker,
  .drawer-count {
    display: none;
  }

  .drawer-close {
    display: none;
  }

  .drawer-close-mobile {
    position: absolute;
    top: 4px;
    right: 5px;
    left: auto;
    z-index: 80;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0 0 4px;
    color: #29251f;
    border: 1px solid rgb(55 39 23 / 30%);
    border-radius: 50%;
    background: #ead9b9;
    box-shadow: 3px 5px 7px rgb(31 21 13 / 25%);
    font: 29px/1 Georgia, serif;
  }

  .memory-photos {
    inset: 12% 4% 18%;
  }

  .memory-photo {
    width: clamp(72px, 22vw, 108px);
    padding: 4px 4px 13px;
    box-shadow: 4px 6px 9px rgb(35 24 14 / 28%);
  }

  .memory-photo figcaption {
    right: 5px;
    bottom: 3px;
    font-size: 5px;
  }

  .memory-photos[data-count="1"] .memory-photo { width: min(38vw, 170px); }
  .memory-photos[data-count="1"] .memory-photo:nth-child(1) { top: 0; left: 31%; }

  .memory-photos[data-count="2"] .memory-photo { width: min(31vw, 136px); }
  .memory-photos[data-count="2"] .memory-photo:nth-child(1) { top: 11%; right: auto; left: 10%; }
  .memory-photos[data-count="2"] .memory-photo:nth-child(2) { top: 0; right: 10%; left: auto; }

  .memory-photos[data-count="3"] .memory-photo { width: min(27vw, 120px); }
  .memory-photos[data-count="3"] .memory-photo:nth-child(1) { top: 13%; right: auto; left: 2%; }
  .memory-photos[data-count="3"] .memory-photo:nth-child(2) { top: 0; right: auto; left: 36%; }
  .memory-photos[data-count="3"] .memory-photo:nth-child(3) { top: 11%; right: 2%; left: auto; }

  .memory-photos[data-count="4"] .memory-photo { width: min(24vw, 108px); }
  .memory-photos[data-count="4"] .memory-photo:nth-child(1) { top: 8%; right: auto; left: -1%; }
  .memory-photos[data-count="4"] .memory-photo:nth-child(2) { top: 28%; right: auto; left: 25%; }
  .memory-photos[data-count="4"] .memory-photo:nth-child(3) { top: -2%; right: 22%; left: auto; }
  .memory-photos[data-count="4"] .memory-photo:nth-child(4) { top: 23%; right: 2%; left: auto; }

  .memory-photos[data-count="5"] .memory-photo { width: min(21vw, 94px); }
  .memory-photos[data-count="5"] .memory-photo:nth-child(1) { top: 8%; right: auto; left: -1%; }
  .memory-photos[data-count="5"] .memory-photo:nth-child(2) { top: 28%; right: auto; left: 15%; }
  .memory-photos[data-count="5"] .memory-photo:nth-child(3) { top: 3%; right: auto; left: 39%; }
  .memory-photos[data-count="5"] .memory-photo:nth-child(4) { top: 26%; right: 15%; left: auto; }
  .memory-photos[data-count="5"] .memory-photo:nth-child(5) { top: -1%; right: 1%; left: auto; }

  .memory-photos.is-dense .memory-photo {
    width: min(16vw, 72px);
    padding: 3px 3px 10px;
  }

  .memory-photos.is-dense .memory-photo:nth-child(1) { top: 3%; left: 0; }
  .memory-photos.is-dense .memory-photo:nth-child(2) { top: 0; left: 19%; }
  .memory-photos.is-dense .memory-photo:nth-child(3) { top: 5%; left: 39%; }
  .memory-photos.is-dense .memory-photo:nth-child(4) { top: 0; right: 20%; left: auto; }
  .memory-photos.is-dense .memory-photo:nth-child(5) { top: 4%; right: 2%; left: auto; }
  .memory-photos.is-dense .memory-photo:nth-child(6) { top: 27%; left: 10%; }
  .memory-photos.is-dense .memory-photo:nth-child(7) { top: 24%; left: 39%; }
  .memory-photos.is-dense .memory-photo:nth-child(8) { top: 28%; right: 9%; left: auto; }
  .memory-photos.is-dense .memory-photo:nth-child(9) { top: 18%; left: 29%; }
  .memory-photos.is-dense .memory-photo:nth-child(10) { top: 21%; right: 27%; left: auto; }

  .folder-pocket {
    height: 50%;
    background-size: 100% 200%;
    background-position: center bottom;
    clip-path: polygon(0 24%, 5% 23%, 10% 26%, 15% 25%, 20% 28%, 25% 27%, 30% 31%, 35% 30%, 40% 34%, 45% 33%, 50% 37%, 55% 34%, 60% 35%, 65% 31%, 70% 32%, 75% 29%, 80% 30%, 85% 26%, 90% 27%, 95% 23%, 100% 24%, 100% 100%, 0 100%);
  }

  .folder-note {
    left: 5.2%;
    bottom: 12.5%;
    width: 56%;
    min-height: 42px;
    padding: 6px 10px 5px;
  }

  .folder-note strong {
    max-width: 100%;
    font-size: clamp(9px, 2.8vw, 13px);
    line-height: 1.05;
    overflow-wrap: anywhere;
  }

}

@media (prefers-reduced-motion: reduce) {
  .film-track {
    animation: none;
  }

  .film-viewport {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .film-sequence[aria-hidden="true"] {
    display: none;
  }

  .memory-folder,
  .memory-photo,
  .drawer-backdrop {
    transition-duration: .01ms;
  }
}
