.story-page {
  --story-paper: #f0e7d8;
  --story-muted: #c9bbab;
  --story-rule: #e3c5a640;
  --story-accent: #eac08a;
  --yellow: var(--story-accent);
  background: #181513;
  color: var(--story-paper);
}
.story-page .top,
.story-page .site-foot {
  background: #151210;
}
.story-page .top [aria-current="page"] {
  color: var(--story-accent);
}
.story-shell {
  width: min(100% - 2 * var(--pad), 1290px);
  margin-inline: auto;
}
.story-opening {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
  padding-block: clamp(45px, 6vw, 90px);
}
.story-opening h1,
.story-chapter h2,
.story-end h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.065em;
  line-height: .94;
  margin: 0;
}
.story-opening h1 {
  font-size: clamp(58px, 8.15vw, 132px);
  margin-top: clamp(19px, 3vw, 36px);
}
.story-deck {
  max-width: 35ch;
  margin-top: clamp(22px, 3vw, 37px);
  color: var(--story-muted);
  font-size: clamp(1.02rem, 1.55vw, 1.28rem);
  line-height: 1.58;
}
.story-label,
.story-route a,
.story-page figcaption {
  font: 500 .72rem / 1.45 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .105em;
  text-transform: uppercase;
}
.story-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--story-accent);
}
.story-portrait {
  max-width: 415px;
  width: 100%;
  justify-self: end;
}
.story-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 4.5;
  object-fit: cover;
  object-position: center 30%;
  background: #070707;
  filter: grayscale(1);
}
.story-page figcaption {
  padding-top: 11px;
  color: var(--story-muted);
}
.story-portrait figcaption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.story-route {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px clamp(15px, 3vw, 50px);
  padding-block: 15px;
  border-block: 1px solid var(--story-rule);
}
.story-route a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  gap: 8px;
  color: var(--story-accent);
}
.story-route a span {
  color: var(--story-paper);
}
.story-route a:hover span,
.story-actions a:hover {
  color: var(--story-accent);
}
.story-chapters {
  padding-block: clamp(37px, 6vw, 88px) clamp(50px, 8vw, 112px);
}
.story-chapter + .story-chapter {
  padding-top: clamp(42px, 7vw, 100px);
  margin-top: clamp(42px, 7vw, 100px);
  border-top: 1px solid var(--story-rule);
}
.story-chapter:target {
  scroll-margin-top: 22px;
}
.story-chapter h2,
.story-end h2 {
  font-size: clamp(40px, 5.65vw, 78px);
}
.story-chapter .story-label {
  margin-bottom: 13px;
}
.story-chapter-copy p:not(.story-label) {
  max-width: 49ch;
  font-size: clamp(1.01rem, 1.34vw, 1.13rem);
  line-height: 1.7;
  color: var(--story-muted);
}
.story-chapter-copy p:not(.story-label) + p,
.story-chapter-pair h2 + p {
  margin-top: 16px;
}
.story-chapter-wide .story-chapter-copy {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  gap: 0 clamp(26px, 5vw, 80px);
  padding-top: clamp(22px, 4vw, 51px);
}
.story-chapter-wide .story-label {
  grid-column: 1 / -1;
}
.story-chapter-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(26px, 6vw, 90px);
}
.story-chapter-reverse .story-still {
  order: -1;
}
.story-still img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--story-rule);
}
.story-havana-image {
  position: relative;
  isolation: isolate;
  overflow: visible;
}
.story-havana-stage {
  position: relative;
  z-index: 0;
  aspect-ratio: 1.78;
  object-fit: cover;
}
.story-havana-image .story-tv-glow {
  z-index: 1;
  top: 40%;
  right: -8%;
  width: 82%;
  height: 60%;
  opacity: .8;
}
.story-havana-image .story-tv-set {
  top: 49%;
  right: -2%;
  width: 56%;
  aspect-ratio: 1.92;
  animation-duration: 9s;
}
.story-havana-image figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: clamp(.52rem, .7vw, .72rem);
}
.story-havana-image figcaption span { color: var(--story-accent); }
.story-chapter-wide img {
  aspect-ratio: 2.55;
  object-fit: cover;
}
.story-end {
  background: #26201b;
  border-block: 1px solid var(--story-rule);
  padding-block: clamp(40px, 6vw, 78px);
}
.story-end h2 {
  margin-top: 14px;
}
.story-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  margin-top: 16px;
}
.story-actions a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
}
@media (max-width: 760px) {
  .story-opening,
  .story-chapter-wide .story-chapter-copy,
  .story-chapter-pair {
    grid-template-columns: 1fr;
  }
  .story-opening h1 {
    font-size: clamp(47px, 11vw, 82px);
  }
  .story-portrait {
    justify-self: start;
    max-width: 345px;
  }
  .story-chapter-wide h2 {
    margin-bottom: 15px;
  }
  .story-chapter-reverse .story-still {
    order: 0;
  }
  .story-chapter-wide img {
    aspect-ratio: 1.9;
  }
  .story-havana-image .story-tv-set {
    top: 49%;
    right: -2%;
    width: 63%;
    aspect-ratio: 1.83;
  }
  .story-havana-image .tv-control-panel { flex-basis: 15%; }
  .story-havana-image figcaption { font-size: .53rem; }
  .story-havana-image figcaption span { text-align: right; }
}

.life-film {
  overflow: clip;
  background: #0d1110;
  color: var(--story-paper);
  border-block: 1px solid var(--story-rule);
}
.life-film-intro {
  padding-block: clamp(54px, 8vw, 112px) 34px;
}
.life-film-intro h2 {
  font: 400 clamp(48px, 7vw, 104px)/.92 Georgia, "Times New Roman", serif;
  letter-spacing: -.065em;
  max-width: 900px;
}
.life-film-intro h2 em,
.life-film-card h3 em {
  color: var(--story-accent);
  font-weight: 400;
}
.life-film-intro > p:last-child {
  margin-top: 22px;
  max-width: 42ch;
  color: var(--story-muted);
  font-size: 1.04rem;
  line-height: 1.6;
}
.life-film-run {
  position: relative;
  height: 620svh;
  margin-top: 10px;
}
.life-film-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 590px;
  overflow: hidden;
  isolation: isolate;
  background: #101414;
  --film-progress: 0;
  --film-drift: 0;
}
.life-film-visuals,
.life-film-visual {
  position: absolute;
  inset: 0;
}
.life-film-visual {
  margin: 0;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 1.1s ease, transform 5.5s cubic-bezier(.2,.65,.2,1);
}
.life-film-visual.is-current {
  opacity: 1;
  transform: scale(1);
}
.life-film-visual img,
.life-film-visual video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.78) brightness(.76);
  transform: scale(1.09) translate3d(calc(var(--film-drift) * -1.2%), calc(var(--film-drift) * .7%), 0);
  transition: transform 1.4s cubic-bezier(.2,.65,.2,1), filter 1.2s ease;
}
.life-film-visual.is-current img,
.life-film-visual.is-current video {
  filter: saturate(.92) brightness(.83);
  transform: scale(1.035) translate3d(calc(var(--film-drift) * 1.2%), calc(var(--film-drift) * -1%), 0);
}
.life-film-present img {
  object-position: center 34%;
}
.life-film-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, #090d0dde 0%, #090d0d9c 33%, #090d0d1a 75%),
    linear-gradient(0deg, #090d0ddd 0%, transparent 35%, #090d0d66 100%);
  pointer-events: none;
}
.life-film-grain {
  position: absolute;
  z-index: 2;
  inset: 0;
  opacity: .2;
  pointer-events: none;
  background-image: url("grain.svg");
  mix-blend-mode: screen;
}
.life-film-topline {
  position: absolute;
  z-index: 3;
  top: clamp(22px, 4.5vh, 52px);
  left: var(--pad);
  right: var(--pad);
  display: flex;
  justify-content: space-between;
  color: #ead8b7;
  font: 500 .68rem / 1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.life-film-copy {
  position: absolute;
  z-index: 3;
  left: var(--pad);
  bottom: clamp(126px, 18vh, 190px);
  width: min(690px, 68vw);
  min-height: 315px;
}
.life-film-card {
  position: absolute;
  inset: 0 auto auto 0;
  max-width: 690px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .8s cubic-bezier(.2,.7,.2,1), visibility .65s;
}
.life-film-card.is-current {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: .08s;
}
.life-film-card .story-label {
  margin-bottom: 18px;
}
.life-film-card h3 {
  margin: 0;
  font: 400 clamp(48px, 6.2vw, 92px)/.91 Georgia, "Times New Roman", serif;
  letter-spacing: -.065em;
  max-width: 11ch;
}
.life-film-card > p:last-child {
  max-width: 52ch;
  margin-top: 21px;
  color: #dfd7c9;
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  line-height: 1.62;
}
.life-film-nav {
  position: absolute;
  z-index: 4;
  left: var(--pad);
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.8vw, 25px);
}
.life-film-nav button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #ead8b77a;
  border-radius: 50%;
  background: #10141455;
  color: #ead8b7;
  font: 500 .65rem ui-monospace, SFMono-Regular, Consolas, monospace;
  cursor: pointer;
  transition: background .25s, color .25s, transform .25s;
}
.life-film-nav button:hover { transform: translateY(-2px); }
.life-film-nav button[aria-current="step"] {
  color: #141513;
  background: var(--story-accent);
  border-color: var(--story-accent);
}
.life-film-progress {
  position: absolute;
  z-index: -1;
  left: 18px;
  right: -18px;
  top: 50%;
  height: 1px;
  background: #ead8b755;
}
.life-film-progress > span {
  display: block;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--story-accent);
}
.life-film-more {
  position: absolute;
  z-index: 4;
  right: var(--pad);
  bottom: 42px;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #ead8b7;
  font: 500 .68rem ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.life-film-more:hover { color: white; }
.life-film-stage[data-scene="2"] .life-film-copy { width: min(520px, 32vw); }
.life-film-tv { perspective: 1500px; }
.tv-room-light {
  position: absolute;
  z-index: 1;
  top: 13%;
  right: 4%;
  width: 68vw;
  height: 72vh;
  border-radius: 50%;
  background: radial-gradient(ellipse, #df9e5530 0%, #a9573020 38%, transparent 72%);
  filter: blur(22px);
  pointer-events: none;
}
.tv-set {
  position: absolute;
  z-index: 2;
  top: 18%;
  right: 5%;
  width: min(61vw, 1080px);
  aspect-ratio: 1.92;
  transform: perspective(1500px) rotateY(-7deg) rotateX(1deg) translateZ(0);
  transform-style: preserve-3d;
  filter: drop-shadow(12px 34px 28px #0009);
  animation: tv-float 8s ease-in-out infinite;
}
.tv-set::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 4%;
  right: -2.7%;
  bottom: 4%;
  width: 5.5%;
  border: 1px solid #b3906850;
  border-radius: 0 25px 23px 0;
  background: linear-gradient(90deg, #3b281d, #211912 60%, #100d0b);
  transform: translateZ(-28px) rotateY(18deg);
  transform-origin: left;
}
.tv-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 2.8%;
  padding: 3.4%;
  overflow: hidden;
  border: 1px solid #d2ad7c9c;
  border-radius: 32px 30px 35px 30px;
  background:
    linear-gradient(135deg, #98734f 0%, #5c412d 19%, #35271f 57%, #5a3c28 100%);
  box-shadow: inset 0 2px 2px #f0d1a96b, inset 0 -9px 18px #100b08a8,
    inset 0 0 0 8px #251a13, 0 1px 0 #f3d7af66;
  transform: translateZ(20px);
}
.tv-screen-bezel {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 1.8%;
  border: 1px solid #0a0807;
  border-radius: 21px;
  background: linear-gradient(145deg, #171311, #060606 62%, #281e17);
  box-shadow: inset 0 2px 8px #000, 0 0 0 1px #ddbc8d42, 0 12px 23px #140d09a6;
  transform: translateZ(16px);
}
.tv-screen-glass {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 2px solid #655341;
  border-radius: 12px;
  background: #080a0a;
  box-shadow: inset 0 0 22px #000, 0 0 0 1px #070605;
  transform: translateZ(7px);
}
.tv-screen-glass video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #080a0a;
  filter: saturate(1.04) brightness(.92) contrast(1.04);
  transform: none;
}
.tv-glass-reflection {
  position: absolute;
  inset: -55% 30% -45% -22%;
  z-index: 1;
  background: linear-gradient(105deg, transparent 29%, #fff2 42%, #ffe7c916 47%, transparent 62%);
  transform: translateX(-34%) rotate(0.001deg);
  animation: tv-glint 11s ease-in-out infinite;
  pointer-events: none;
}
.tv-control-panel {
  flex: 0 0 14%;
  display: flex;
  height: 91%;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 3.2% 0 1.5%;
  color: #e8cda6;
  text-align: center;
  transform: translateZ(18px);
}
.tv-brand {
  font: 500 clamp(7px, .58vw, 10px) ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .12em;
  white-space: nowrap;
}
.tv-tuning-knobs { display: flex; gap: 12%; align-items: center; }
.tv-tuning-knobs i {
  display: block;
  width: clamp(20px, 2.4vw, 36px);
  aspect-ratio: 1;
  border: 2px solid #19120d;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #f4d5a0, #997046 51%, #38291d 58%, #160f0b 69%);
  box-shadow: 0 2px 4px #0009, inset 0 1px 2px #fff7;
}
.tv-speaker { display: flex; gap: 4px; align-items: center; justify-content: center; }
.tv-speaker i {
  display: block;
  width: 3px;
  height: clamp(24px, 5vw, 68px);
  border-radius: 3px;
  background: linear-gradient(90deg, #1d1510, #ad8b61 55%, #2b1d14);
  box-shadow: 1px 0 #160f0b;
}
.tv-sound {
  display: grid;
  width: clamp(27px, 3vw, 42px);
  aspect-ratio: 1;
  place-items: center;
  padding: 0;
  border: 1px solid #d3b28094;
  border-radius: 50%;
  color: #f3dbb2;
  background: radial-gradient(circle at 35% 28%, #896746, #302116 68%);
  box-shadow: inset 0 1px 3px #fff4, 0 2px 4px #0009;
  font-size: clamp(9px, .8vw, 13px);
  cursor: pointer;
}
.tv-sound:hover, .tv-sound:focus-visible { outline: 2px solid #f2d09b; outline-offset: 3px; }
.tv-foot {
  position: absolute;
  z-index: -1;
  bottom: -7%;
  width: 10%;
  height: 10%;
  border: 1px solid #5b3e29;
  border-radius: 2px 2px 8px 8px;
  background: linear-gradient(90deg, #2d2119, #765335 48%, #241810);
  transform: translateZ(-2px) rotate(7deg);
}
.tv-foot-left { left: 12%; }
.tv-foot-right { right: 12%; transform: translateZ(-2px) rotate(-7deg); }
@keyframes tv-float {
  0%, 100% { transform: perspective(1500px) rotateY(-7deg) rotateX(1deg) translate3d(0, 0, 0); }
  50% { transform: perspective(1500px) rotateY(-4deg) rotateX(0deg) translate3d(0, -9px, 8px); }
}
@keyframes tv-glint {
  0%, 65%, 100% { transform: translateX(-36%); opacity: .48; }
  82% { transform: translateX(86%); opacity: .76; }
}
@media (max-width: 760px) {
  .life-film-run { height: 600svh; }
  .life-film-stage { min-height: 560px; }
  .life-film-visual img,
  .life-film-visual video { object-position: 58% center; }
  .life-film-stage[data-scene="2"] .life-film-copy { width: auto; }
  .tv-set {
    top: 9%;
    right: 7%;
    width: 88%;
    aspect-ratio: 1.83;
  }
  .tv-face { gap: 2.5%; padding: 3%; border-radius: 20px; }
  .tv-screen-bezel { border-radius: 14px; }
  .tv-screen-glass { border-radius: 8px; }
  .tv-control-panel { flex-basis: 15%; }
  .tv-tuning-knobs { gap: 7%; }
  .tv-tuning-knobs i { width: clamp(16px, 5vw, 25px); }
  .tv-speaker { gap: 2px; }
  .tv-speaker i { width: 2px; height: clamp(22px, 7vw, 38px); }
  .tv-sound { width: clamp(24px, 7vw, 34px); }
  .tv-room-light { top: 6%; right: -5%; width: 100%; height: 44vh; }
  .tv-set::before { right: -3.5%; width: 7%; }
  .tv-foot { height: 8%; bottom: -6%; }
  .tv-brand { font-size: clamp(5px, 1.7vw, 8px); }
  .life-film-shade {
    background: linear-gradient(0deg, #090d0df2 0%, #090d0d8c 46%, #090d0d32 100%);
  }
  .life-film-copy {
    left: var(--pad);
    right: var(--pad);
    bottom: 130px;
    width: auto;
    min-height: 300px;
  }
  .life-film-card h3 { font-size: clamp(47px, 12vw, 74px); }
  .life-film-card > p:last-child { max-width: 39ch; font-size: .97rem; }
  .life-film-nav { gap: 7px; bottom: 27px; }
  .life-film-nav button { width: 34px; height: 34px; font-size: .6rem; }
  .life-film-progress { left: 16px; right: -16px; }
  .life-film-more { right: var(--pad); bottom: 88px; font-size: .59rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tv-set, .tv-glass-reflection { animation: none; }
  .life-film-visual,
  .life-film-visual img,
  .life-film-visual video,
  .life-film-card,
  .life-film-nav button { transition: none; }
}
