.epilogue-page {
  background: #080806;
}

.epilogue-hero {
  width: min(100%, 1600px);
  min-height: 100svh;
  display: grid;
  grid-template-columns: 25px minmax(320px, 0.95fr) minmax(280px, 0.82fr) 25px;
  gap: clamp(24px, 5vw, 85px);
  align-items: center;
  margin: 0 auto;
  padding: 112px clamp(24px, 4.5vw, 80px) 80px;
  background: radial-gradient(ellipse at 66% 46%, rgba(184, 149, 93, 0.075), transparent 37%), #080806;
}

.epilogue-rail {
  height: min(72svh, 780px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 21px;
  color: rgba(222, 212, 192, 0.45);
  font-size: 11px;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.epilogue-rail i {
  width: 1px;
  flex: 1;
  background: linear-gradient(transparent, var(--brass-dark), transparent);
}

.epilogue-hero-copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 80px;
  padding: clamp(40px, 11svh, 130px) 0 clamp(35px, 8svh, 100px);
}

.epilogue-hero-copy .eyebrow {
  max-width: 360px;
  line-height: 1.5;
}

.epilogue-hero h1 {
  margin: 29px 0 0;
  font-family: Baskerville, "Iowan Old Style", Georgia, serif;
  font-size: clamp(77px, 10vw, 154px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.epilogue-hero-bottom > p {
  margin: 0 0 24px;
  color: var(--paper-dim);
  font-size: 12px;
  letter-spacing: 0.2em;
}

.epilogue-hero-bottom a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--brass);
  padding: 0 0 9px;
  color: var(--paper-bright);
  font-size: 13px;
  letter-spacing: 0.13em;
  text-decoration: none;
}

.epilogue-hero-bottom a:hover,
.epilogue-hero-bottom a:focus-visible {
  color: var(--brass);
}

.epilogue-hero-bottom a span {
  color: var(--brass);
  font-family: Georgia, serif;
  font-size: 25px;
}

.epilogue-poster {
  width: min(100%, 44svh, 480px);
  justify-self: center;
  margin: 0;
}

.epilogue-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  isolation: isolate;
  background: #bbb2a1;
  box-shadow: 0 40px 95px rgba(0, 0, 0, 0.61), 0 0 0 8px rgba(184, 149, 93, 0.025);
}

.epilogue-stage img,
.epilogue-stage video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.epilogue-stage video {
  opacity: 0;
  transition: opacity 480ms ease;
}

.epilogue-stage.is-motion video {
  opacity: 1;
}

.epilogue-hitarea {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}
.epilogue-hitarea:focus-visible { outline: 2px solid var(--brass); outline-offset: -5px; }

.epilogue-edge {
  position: absolute;
  z-index: 2;
  inset: 0;
  border: 1px solid rgba(255, 246, 229, 0.35);
  box-shadow: inset 0 0 0 8px rgba(12, 11, 9, 0.07);
  pointer-events: none;
}

.epilogue-poster figcaption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  color: var(--paper-dim);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.epilogue-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 23px;
  margin-top: 20px;
}

.epilogue-controls button {
  min-height: 44px;
  border: 0;
  border-bottom: 1px solid rgba(222, 212, 192, 0.36);
  padding: 4px 0;
  background: transparent;
  color: var(--paper-dim);
  font-size: 12px;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.epilogue-controls button:hover,
.epilogue-controls button:focus-visible {
  border-color: var(--brass);
  color: var(--paper-bright);
}

.epilogue-controls button[hidden] {
  display: none;
}

.epilogue-controls button span:first-child {
  margin-right: 9px;
  color: var(--brass);
}

.epilogue-status {
  min-height: 1.2em;
  margin: 9px 0 0;
  color: var(--brass);
  font-size: 13px;
}

.epilogue-side-note {
  align-self: end;
  margin: 0 0 25px;
  color: rgba(222, 212, 192, 0.42);
  font-size: 11px;
  letter-spacing: 0.17em;
  white-space: nowrap;
  writing-mode: vertical-rl;
}

.epilogue-afterword {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(50px, 10vw, 160px);
  padding: clamp(120px, 15vw, 215px) max(7vw, calc((100vw - 1420px) / 2)) 160px;
  scroll-margin-top: 74px;
  background:
    radial-gradient(circle at 25% 15%, rgba(255, 255, 255, 0.42), transparent 45%),
    repeating-linear-gradient(96deg, transparent 0 5px, rgba(53, 43, 31, 0.018) 5px 6px),
    #d8cdb9;
  color: #1b1915;
}

.epilogue-afterword .eyebrow {
  color: #6e5637;
}

.epilogue-afterword h2 {
  max-width: 620px;
  margin: 0;
  font-family: Baskerville, "Iowan Old Style", Georgia, serif;
  font-size: clamp(62px, 7vw, 109px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.047em;
}

.epilogue-afterword h2 em {
  font-weight: 400;
  color: #745431;
}

.epilogue-prose {
  max-width: 640px;
  border-top: 1px solid rgba(45, 37, 26, 0.3);
  padding-top: 26px;
}

.epilogue-prose p {
  margin: 0 0 30px;
  font-family: Baskerville, "Iowan Old Style", Georgia, serif;
  font-size: clamp(21px, 2vw, 26px);
  line-height: 1.51;
  text-wrap: pretty;
}

.epilogue-prose p:nth-child(3) {
  margin: 50px 0;
  border-left: 1px solid #806241;
  padding-left: 23px;
  font-size: clamp(24px, 2.25vw, 32px);
  line-height: 1.37;
}

.epilogue-maker-link {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: fit-content;
  min-width: 225px;
  margin-top: 20px;
  padding: 7px 16px 10px 0;
  color: #2a2118;
  text-decoration: none;
}
.epilogue-maker-link:focus-visible { outline: 2px solid #745431; outline-offset: 5px; }
.epilogue-maker-word { font-family: Baskerville, "Iowan Old Style", Georgia, serif; font-size: clamp(37px, 3.2vw, 51px); font-style: italic; line-height: 1; letter-spacing: -.055em; }
.epilogue-maker-line { display: block; width: 220px; max-width: 100%; height: 12px; margin: 0 0 9px 1px; border-bottom: 2px solid #745431; border-radius: 50%; transform: rotate(-4deg); transform-origin: left center; }
.epilogue-maker-caption { display: flex; align-items: center; gap: 11px; color: #745431; font-size: 11px; letter-spacing: .16em; }
.epilogue-maker-caption span { font-size: 19px; line-height: 1; }
.epilogue-maker-link:hover .epilogue-maker-caption, .epilogue-maker-link:focus-visible .epilogue-maker-caption { color: #1b1915; }
.epilogue-maker-link:hover .epilogue-maker-line { width: 246px; }

.epilogue-seal {
  grid-column: 2;
  margin: 95px 0 0;
  border-top: 1px solid rgba(45, 37, 26, 0.36);
  padding-top: 31px;
  font-family: Baskerville, Georgia, serif;
  font-size: clamp(31px, 3vw, 47px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.epilogue-threshold {
  min-height: 92svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 370px);
  gap: clamp(50px, 10vw, 150px);
  align-items: center;
  padding: clamp(125px, 15vw, 210px) max(9vw, calc((100vw - 1250px) / 2));
  background: radial-gradient(ellipse at 30% 45%, rgba(183, 146, 91, .085), transparent 48%), #080806;
}
.epilogue-threshold h2 { margin: 30px 0 38px; font-family: Baskerville, Georgia, serif; font-size: clamp(70px, 9vw, 137px); font-weight: 400; line-height: .92; letter-spacing: -.053em; }
.epilogue-threshold h2 em { color: #b99a6b; font-weight: 400; }
.epilogue-threshold-copy > p:not(.eyebrow) { max-width: 570px; margin: 0 0 44px; color: var(--paper-dim); font-family: Baskerville, Georgia, serif; font-size: clamp(23px, 2vw, 29px); line-height: 1.39; }
.epilogue-threshold-copy a { display: inline-flex; align-items: center; gap: 19px; border-bottom: 1px solid var(--brass); padding: 9px 0; color: var(--paper-bright); font-size: 13px; letter-spacing: .13em; text-decoration: none; }
.epilogue-threshold-copy a span { color: var(--brass); font-family: Georgia, serif; font-size: 22px; }
.epilogue-threshold-copy a:hover, .epilogue-threshold-copy a:focus-visible { color: var(--brass); }
.epilogue-threshold-poster { display: block; width: 100%; box-shadow: 0 32px 80px rgba(0, 0, 0, .55); }
.epilogue-threshold-poster img { display: block; width: 100%; height: auto; }

.epilogue-footer {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 45px 7vw;
  color: var(--paper-dim);
}

.epilogue-footer > span {
  color: var(--brass);
  font-size: 12px;
  letter-spacing: 0.15em;
}

.epilogue-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.epilogue-footer a {
  border-bottom: 1px solid var(--brass-dark);
  padding-bottom: 7px;
  color: var(--paper-bright);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.epilogue-footer a:hover,
.epilogue-footer a:focus-visible {
  color: var(--brass);
}

.epilogue-notice {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 28px;
  max-width: calc(100% - 36px);
  transform: translate(-50%, 12px);
  opacity: 0;
  border: 1px solid var(--line);
  padding: 13px 18px;
  background: var(--paper-bright);
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.1em;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.epilogue-notice.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1100px) {
  .epilogue-hero {
    grid-template-columns: minmax(300px, 1fr) minmax(280px, 0.82fr);
    padding-inline: 6vw;
  }
  .epilogue-rail,
  .epilogue-side-note {
    display: none;
  }
  .epilogue-hero h1 {
    font-size: clamp(74px, 9vw, 125px);
  }
}

@media (max-width: 760px) {
  .epilogue-threshold { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 65px; padding: 125px 22px 135px; }
  .epilogue-threshold-poster { width: min(80%, 310px); margin: 0 auto; }
  .epilogue-threshold h2 { font-size: clamp(70px, 15vw, 104px); }
  .epilogue-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 88px 22px 95px;
  }
  .epilogue-poster {
    order: -1;
    width: min(100%, 420px);
  }
  .epilogue-poster figcaption {
    font-size: 10px;
  }
  .epilogue-hero-copy {
    gap: 50px;
    padding: 75px 0 0;
  }
  .epilogue-hero h1 {
    font-size: clamp(74px, 19vw, 119px);
  }
  .epilogue-afterword {
    display: block;
    padding: 110px 22px 125px;
    scroll-margin-top: 60px;
  }
  .epilogue-afterword h2 {
    margin-bottom: 65px;
    font-size: clamp(59px, 13vw, 88px);
  }
  .epilogue-prose p {
    font-size: 22px;
  }
  .epilogue-seal {
    margin-top: 105px;
  }
  .epilogue-footer {
    min-height: 230px;
    align-items: start;
    justify-content: center;
    flex-direction: column;
    gap: 28px;
  }
  .epilogue-footer nav {
    gap: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .epilogue-stage video,
  .epilogue-notice {
    transition: none;
  }
}
