:root {
  --ink: #0a0a09;
  --paper: #efece3;
  --bone: #f6f2e8;
  --red: #d83a2e;
  --green: #275f4f;
  --blue: #3586a7;
  --yellow: #e5b941;
  --line: rgba(246, 242, 232, 0.22);
  --content: 1200px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--bone);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

body.portal-open { overflow: hidden; }

body::before {
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  content: "";
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.24'/%3E%3C/svg%3E");
}

button,
input { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

a { color: inherit; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 200;
  background: var(--bone);
  color: var(--ink);
  padding: 12px 16px;
}

.skip-link:focus { top: 16px; }

.memo-site { background: var(--ink); }

.memo-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 10, 9, 0.86);
  backdrop-filter: blur(14px);
}

.memo-mark {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 12px;
  color: var(--bone);
  text-decoration: none;
}

.memo-mark span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  line-height: 1;
}

.memo-mark small {
  font-size: 10px;
  letter-spacing: 0;
}

.memo-nav nav { display: flex; gap: 30px; }

.memo-nav nav a {
  color: rgba(246, 242, 232, 0.72);
  font-size: 12px;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.memo-nav nav a:hover,
.memo-nav nav a:focus-visible { color: var(--bone); }

.sound-toggle {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--bone);
  cursor: pointer;
}

.sound-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(246, 242, 232, 0.45);
  border-radius: 50%;
}

.sound-label {
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.journey-progress {
  position: fixed;
  z-index: 90;
  inset: 71px 0 auto 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.journey-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--red);
  transform-origin: left;
}

.hero {
  position: relative;
  min-height: min(920px, 94vh);
  overflow: hidden;
  display: flex;
  align-items: end;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  transition: transform 1.8s cubic-bezier(.18, .8, .2, 1), filter .5s ease;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: rgba(0, 0, 0, 0.46);
  box-shadow: inset 0 -260px 200px rgba(0, 0, 0, 0.48);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: rgba(0,0,0,.12);
  box-shadow: inset 760px 0 280px rgba(0,0,0,.48);
}

.hero-copy {
  width: min(var(--content), calc(100% - 56px));
  margin: 0 auto;
  padding: 150px 0 88px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 96px;
  font-weight: 400;
  line-height: 0.9;
}

.hero-question {
  max-width: 820px;
  margin: 20px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-style: italic;
  line-height: 1.05;
}

.hero-intro {
  max-width: 620px;
  margin: 24px 0 32px;
  color: rgba(246, 242, 232, 0.78);
  font-size: 18px;
  line-height: 1.55;
}

.enter-palace {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--bone);
  border-radius: 0;
  background: var(--bone);
  color: var(--ink);
  cursor: pointer;
}

.enter-palace:hover,
.enter-palace:focus-visible {
  background: var(--red);
  border-color: var(--red);
  color: white;
}

.start-journey {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 24px;
  align-items: center;
  width: min(430px, 100%);
  min-height: 72px;
  padding: 12px 14px 12px 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 0;
  background: rgba(0,0,0,.38);
  color: white;
  cursor: pointer;
  text-align: left;
}

.start-journey::before {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(229,185,65,.13);
  opacity: 0;
  transition: opacity .4s ease;
}

.start-journey:hover,
.start-journey:focus-visible { border-color: var(--yellow); }
.start-journey:hover::before,
.start-journey:focus-visible::before,
body.is-holding .start-journey::before { opacity: 1; }

.hold-copy { position: relative; z-index: 1; display: block; }
.hold-copy strong { display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.hold-copy small { display: block; margin-top: 7px; color: rgba(255,255,255,.57); font-size: 10px; text-transform: uppercase; }

.hold-meter {
  position: relative;
  z-index: 1;
  display: block;
  height: 4px;
  overflow: hidden;
  background: rgba(255,255,255,.22);
}

.hold-meter i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--yellow);
  box-shadow: 0 0 18px rgba(229,185,65,.9);
}

body.is-holding .hero-image { transform: scale(1.11); filter: contrast(1.08) saturate(.82); }
body.hold-complete .start-journey { background: var(--yellow); border-color: var(--yellow); color: #070707; }
body.hold-complete .hold-copy small { color: rgba(0,0,0,.58); }

.hero-meta {
  position: absolute;
  right: 28px;
  bottom: 24px;
  left: 28px;
  display: flex;
  justify-content: space-between;
  color: rgba(246, 242, 232, 0.58);
  font-size: 10px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.loadout {
  padding: 120px 28px 70px;
  background: var(--paper);
  color: var(--ink);
}

.section-heading {
  width: min(var(--content), 100%);
  margin: 0 auto 48px;
}

.section-heading .eyebrow { color: var(--red); }

.section-heading h2,
.now h2,
.portals h2,
.oracle h2 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 58px;
  font-weight: 400;
  line-height: 1;
}

.section-heading > p:last-child,
.now-intro > p:last-child,
.oracle-copy > p:last-child {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(10, 10, 9, 0.66);
  font-size: 17px;
  line-height: 1.6;
}

.life-grid {
  width: min(var(--content), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.life-card {
  position: relative;
  height: 320px;
  overflow: hidden;
  padding: 20px;
  border: 0;
  border-radius: 4px;
  background: #161614;
  color: white;
  cursor: pointer;
  text-align: left;
  isolation: isolate;
}

.life-card::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: rgba(0, 0, 0, 0.38);
  box-shadow: inset 0 -190px 140px rgba(0, 0, 0, 0.72);
  transition: background .25s ease;
}

.life-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.7);
  transform: scale(1.01);
  transition: transform .6s cubic-bezier(.18, .8, .2, 1), filter .3s ease;
}

.life-card:hover img,
.life-card:focus-visible img { transform: scale(1.06); filter: saturate(1); }

.life-card.is-active { outline: 4px solid var(--red); outline-offset: -4px; }

.life-card.is-active::before { background: rgba(0, 0, 0, 0.18); }

.life-number {
  display: block;
  color: rgba(255,255,255,.7);
  font-size: 11px;
  letter-spacing: 0;
}

.life-name {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 48px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1;
}

.life-detail {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  color: rgba(255,255,255,.68);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.life-check {
  position: absolute;
  top: 16px;
  right: 16px;
  display: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--red);
}

.life-card.is-active .life-check { display: grid; }

.life-card-systems {
  background: #102921;
}

.systems-canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 36px 36px;
}

.systems-canvas i {
  position: absolute;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
  background: rgba(10,10,9,.6);
  box-shadow: 0 0 0 10px rgba(229,185,65,.08);
}

.systems-canvas i:nth-child(1) { left: 18%; top: 20%; }
.systems-canvas i:nth-child(2) { left: 48%; top: 12%; }
.systems-canvas i:nth-child(3) { left: 72%; top: 32%; }
.systems-canvas i:nth-child(4) { left: 28%; top: 54%; }
.systems-canvas i:nth-child(5) { left: 58%; top: 60%; }
.systems-canvas i:nth-child(6) { left: 80%; top: 72%; }

.loadout-status {
  width: min(var(--content), 100%);
  margin: 24px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(10,10,9,.24);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.body-brain {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 84px 1fr;
  grid-template-rows: auto 560px auto;
  gap: 28px 0;
  padding: 110px max(28px, calc((100% - var(--content)) / 2));
  background: #080807;
}

.body-brain-heading {
  grid-column: 1 / -1;
  max-width: 760px;
}

.body-brain-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 62px;
  font-weight: 400;
  line-height: 1;
}

.body-brain-panel {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 4px;
  background: #111;
  color: white;
  cursor: pointer;
  text-align: left;
  isolation: isolate;
}

.body-brain-panel::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: rgba(0,0,0,.36);
  box-shadow: inset 0 -240px 170px rgba(0,0,0,.75);
  transition: background .35s ease;
}

.body-brain-panel img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.76) contrast(1.08);
  transform: scale(1.02);
  transition: transform .8s ease, filter .5s ease;
}

.body-brain-panel.is-active {
  border-color: var(--red);
  box-shadow: inset 0 0 0 3px var(--red);
}

.body-brain-panel.is-active img,
.body-brain-panel:hover img,
.body-brain-panel:focus-visible img {
  filter: grayscale(0) contrast(1.02);
  transform: scale(1.06);
}

.body-brain-index {
  display: block;
  color: var(--yellow);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
}

.body-brain-panel strong {
  position: absolute;
  left: 28px;
  bottom: 66px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 46px;
  font-weight: 400;
}

.body-brain-panel small {
  position: absolute;
  left: 28px;
  bottom: 34px;
  color: rgba(255,255,255,.66);
  font-size: 11px;
  text-transform: uppercase;
}

.neural-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  padding: 32px 0;
}

.neural-bridge span {
  display: block;
  width: 12px;
  height: 12px;
  border: 1px solid var(--yellow);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(229,185,65,.08);
  animation: neural-signal 2.4s ease-in-out infinite;
}

.neural-bridge span:nth-child(2) { animation-delay: .3s; }
.neural-bridge span:nth-child(3) { animation-delay: .6s; }
.neural-bridge span:nth-child(4) { animation-delay: .9s; }
.neural-bridge span:nth-child(5) { animation-delay: 1.2s; }

.body-brain-answer {
  grid-column: 1 / -1;
  min-height: 26px;
  margin: 0;
  text-align: center;
  color: rgba(255,255,255,.66);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
}

@keyframes neural-signal {
  0%, 100% { background: transparent; transform: scale(.76); }
  50% { background: var(--yellow); transform: scale(1); }
}

.manifesto {
  display: grid;
  grid-template-columns: 140px 1.35fr .65fr;
  gap: 38px;
  align-items: end;
  padding: 110px max(28px, calc((100% - var(--content)) / 2));
  background: var(--red);
  color: white;
}

.worlds {
  position: relative;
  min-height: 880px;
  overflow: hidden;
  display: grid;
  align-content: space-between;
  padding: 110px max(28px, calc((100% - var(--content)) / 2)) 72px;
  isolation: isolate;
}

.worlds-image,
.worlds-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.worlds-image {
  object-fit: cover;
  object-position: center;
  transform: scale(1.16);
  transform-origin: 50% 52%;
  transition: object-position 1.25s cubic-bezier(.2,.72,.16,1), filter 1s ease, transform 1.4s cubic-bezier(.2,.72,.16,1), transform-origin 1.4s ease;
  will-change: transform, object-position, filter;
}

.worlds-image[data-active-world="underworld"] {
  transform: scale(1.42);
  transform-origin: 50% 92%;
}

.worlds-image[data-active-world="reality"] {
  transform: scale(1.22);
  transform-origin: 50% 54%;
}

.worlds-image[data-active-world="dream"] {
  transform: scale(1.46);
  transform-origin: 50% 8%;
}

.worlds.is-entering .worlds-image {
  transform: scale(3.2);
  filter: brightness(.18) contrast(1.35);
}

.worlds.is-entering .worlds-heading,
.worlds.is-entering .world-selector,
.worlds.is-entering .world-answer,
.worlds.is-entering .world-game {
  opacity: 0;
  transform: scale(.96);
  transition: opacity .55s ease, transform .55s ease;
}

.worlds-shade {
  z-index: -1;
  background: rgba(0,0,0,.46);
  box-shadow: inset 0 220px 160px rgba(0,0,0,.42), inset 0 -260px 180px rgba(0,0,0,.66);
}

.worlds-heading { max-width: 780px; }

.worlds-heading h2,
.chronoscope-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 62px;
  font-weight: 400;
  line-height: 1;
}

.world-selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255,255,255,.34);
}

.world-button {
  min-height: 158px;
  padding: 22px 18px;
  border: 0;
  border-right: 1px solid rgba(255,255,255,.26);
  border-radius: 0;
  background: rgba(0,0,0,.26);
  color: white;
  cursor: pointer;
  text-align: left;
}

.world-button:last-child { border-right: 0; }

.world-button span,
.world-button strong,
.world-button small { display: block; }

.world-button span { color: var(--yellow); font-family: Georgia, "Times New Roman", serif; font-size: 24px; }
.world-button strong { margin-top: 22px; font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 400; }
.world-button small { margin-top: 8px; color: rgba(255,255,255,.58); font-size: 11px; text-transform: uppercase; }

.world-button.is-active,
.world-button:hover,
.world-button:focus-visible { background: rgba(216,58,46,.76); }

.world-answer {
  min-height: 28px;
  margin: 20px 0 0;
  color: rgba(255,255,255,.74);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.world-answer.is-shifting { animation: world-answer-in .65s ease both; }

.world-game {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.25);
}

.world-game-status { display: flex; gap: 12px; align-items: baseline; }
.world-game-status span { font-size: 10px; color: rgba(255,255,255,.58); }
.world-game-status strong { font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 400; }
.world-game-status b { color: var(--yellow); font-weight: 400; }

.world-game-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.world-game-track span { height: 3px; background: rgba(255,255,255,.2); transition: background .4s ease, box-shadow .4s ease; }
.world-game-track span.is-found { background: var(--yellow); box-shadow: 0 0 16px rgba(229,185,65,.75); }

.cross-threshold {
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 0;
  background: rgba(0,0,0,.35);
  color: white;
  font-size: 11px;
  text-transform: uppercase;
  cursor: pointer;
}

.cross-threshold:disabled { opacity: .45; cursor: not-allowed; }
.cross-threshold:not(:disabled):hover,
.cross-threshold:not(:disabled):focus-visible { background: var(--yellow); border-color: var(--yellow); color: #090909; }

@keyframes world-answer-in {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

.world-portal {
  position: fixed;
  inset: 0;
  z-index: 200;
  overflow: hidden;
  background: #020202;
  color: white;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .65s ease, visibility 0s linear .65s;
}

.world-portal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.portal-visual,
.portal-visual img,
.portal-veil,
.portal-depth {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.portal-visual img {
  object-fit: cover;
  transform: scale(3.1);
  transition: transform 4.8s cubic-bezier(.15,.68,.18,1), object-position 1.1s ease, filter 1.1s ease;
  will-change: transform;
}

.world-portal.is-open .portal-visual img { transform: scale(1.2); }

.world-portal[data-portal-world="underworld"] .portal-visual img {
  object-position: 50% 92%;
  filter: brightness(.52) contrast(1.22) saturate(.68) sepia(.22);
}

.world-portal[data-portal-world="reality"] .portal-visual img {
  object-position: 50% 54%;
  filter: brightness(.62) contrast(1.12) saturate(.92);
}

.world-portal[data-portal-world="dream"] .portal-visual img {
  object-position: 50% 5%;
  filter: brightness(.62) contrast(1.18) saturate(1.38) hue-rotate(10deg);
}

.portal-veil {
  background: linear-gradient(90deg, rgba(0,0,0,.76) 0%, rgba(0,0,0,.22) 52%, rgba(0,0,0,.58) 100%);
  box-shadow: inset 0 160px 160px rgba(0,0,0,.54), inset 0 -210px 180px rgba(0,0,0,.68);
}

.portal-depth { opacity: .34; mix-blend-mode: screen; pointer-events: none; }
.portal-depth-one { background: repeating-linear-gradient(90deg, transparent 0 12%, rgba(255,255,255,.035) 12.2% 12.35%); animation: portal-drift 8s linear infinite; }
.portal-depth-two { background: repeating-linear-gradient(0deg, transparent 0 17%, rgba(229,185,65,.045) 17.1% 17.25%); animation: portal-drift 12s linear reverse infinite; }

.portal-topline {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 76px;
  padding: 0 34px;
  border-bottom: 1px solid rgba(255,255,255,.28);
  font-size: 11px;
}

.portal-topline b { color: var(--yellow); font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 400; }

.portal-close,
.portal-previous,
.portal-next {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.46);
  border-radius: 50%;
  background: rgba(0,0,0,.32);
  color: white;
  cursor: pointer;
}

.portal-close { width: 58px; border-radius: 0; font-size: 10px; }
.portal-close:hover,
.portal-close:focus-visible,
.portal-previous:hover,
.portal-previous:focus-visible,
.portal-next:hover,
.portal-next:focus-visible { background: var(--yellow); border-color: var(--yellow); color: #050505; }

.portal-copy {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: max(34px, calc((100% - var(--content)) / 2));
  width: min(720px, calc(100% - 68px));
  transform: translateY(-44%);
}

.portal-copy .eyebrow { color: var(--yellow); }
.portal-copy h2 { max-width: 680px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(54px, 7vw, 108px); font-weight: 400; line-height: .9; }
.portal-copy > p:last-child { max-width: 620px; margin: 28px 0 0; color: rgba(255,255,255,.74); font-size: 18px; line-height: 1.65; }

.portal-controls {
  position: absolute;
  right: 34px;
  bottom: 38px;
  z-index: 2;
  display: grid;
  grid-template-columns: 48px 126px 48px;
  gap: 13px;
  align-items: center;
}

.portal-map { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.portal-map span { height: 2px; background: rgba(255,255,255,.28); }
.portal-map span.is-active { background: var(--yellow); box-shadow: 0 0 18px rgba(229,185,65,.8); }
.portal-instruction { position: absolute; bottom: 49px; left: 34px; z-index: 2; margin: 0; color: rgba(255,255,255,.58); font-size: 10px; text-transform: uppercase; }

@keyframes portal-drift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1.03); }
  to { transform: translate3d(1.5%, 1%, 0) scale(1.07); }
}

.manifesto-index {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 120px;
  line-height: .72;
  opacity: .26;
}

.manifesto .eyebrow { color: white; opacity: .66; }

.manifesto h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 54px;
  font-weight: 400;
  line-height: 1.05;
}

.manifesto > p {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
}

.chronoscope {
  display: grid;
  grid-template-columns: .74fr 1.26fr;
  gap: 70px;
  align-items: end;
  padding: 120px max(28px, calc((100% - var(--content)) / 2));
  background: #17130f;
}

.chronoscope-copy .eyebrow { color: var(--yellow); }

.chronoscope-copy > p:last-child {
  max-width: 530px;
  margin: 22px 0 0;
  color: rgba(255,255,255,.62);
  font-size: 17px;
  line-height: 1.6;
}

.chronoscope-screen {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border: 10px solid #080807;
  border-radius: 4px;
  background: black;
  box-shadow: 0 28px 70px rgba(0,0,0,.42);
}

.chronoscope-screen img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  filter: sepia(.72) contrast(1.16) saturate(.62);
  transform: scale(1.03);
  transition: filter .25s ease, transform .25s ease;
}

.film-burn {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(216,58,46,.12);
  box-shadow: inset 80px 0 100px rgba(229,185,65,.18), inset -60px 0 120px rgba(53,134,167,.16);
  mix-blend-mode: screen;
  opacity: .42;
}

.film-frame {
  position: absolute;
  right: 16px;
  bottom: 14px;
  color: rgba(255,255,255,.72);
  font-family: "Courier New", monospace;
  font-size: 11px;
}

.time-dial {
  grid-column: 2;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 12px;
  align-items: center;
  margin-top: -42px;
  padding: 16px;
  background: rgba(10,10,9,.88);
  color: rgba(255,255,255,.62);
  font-size: 10px;
  text-transform: uppercase;
}

.time-dial input { width: 100%; accent-color: var(--red); }

.chapters { position: relative; height: 500vh; background: #000; }

.chapter-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
}

.chapter-media,
.chapter-image,
.chapter-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }

.chapter-image {
  object-fit: cover;
  opacity: 0;
  transform: scale(1.12);
  transition: opacity .7s ease, transform 1.5s cubic-bezier(.18,.8,.2,1), filter .5s ease;
}

.chapter-image.is-visible { opacity: 1; transform: scale(1.02); }

.chapter-overlay {
  background: rgba(0,0,0,.48);
  box-shadow: inset 620px 0 260px rgba(0,0,0,.48), inset 0 -200px 120px rgba(0,0,0,.45);
}

.chapter-copy {
  position: absolute;
  z-index: 3;
  left: max(28px, calc((100% - var(--content)) / 2));
  bottom: 90px;
  width: min(660px, calc(100% - 56px));
}

.chapter-kicker {
  margin: 0 0 20px;
  color: var(--yellow);
  font-size: 11px;
  letter-spacing: 0;
}

.chapter-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 64px;
  font-weight: 400;
  line-height: .98;
}

.chapter-copy > p:nth-of-type(2) {
  max-width: 590px;
  margin: 24px 0;
  color: rgba(255,255,255,.78);
  font-size: 18px;
  line-height: 1.6;
}

.chapter-place {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: rgba(255,255,255,.64);
  font-size: 11px;
  letter-spacing: 0;
}

.chapter-dots {
  position: absolute;
  z-index: 4;
  right: 28px;
  bottom: 90px;
  display: flex;
  gap: 8px;
}

.chapter-dots button {
  width: 34px;
  height: 3px;
  padding: 0;
  border: 0;
  background: rgba(255,255,255,.34);
  cursor: pointer;
}

.chapter-dots button.is-active { background: var(--red); }

.chapter-trigger { height: 100vh; }

.now {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 80px;
  padding: 120px max(28px, calc((100% - var(--content)) / 2));
  background: var(--bone);
  color: var(--ink);
}

.now .eyebrow { color: var(--red); }

.now-ledger { border-top: 1px solid rgba(10,10,9,.34); }

.now-ledger article {
  display: grid;
  grid-template-columns: 50px 1fr 1.1fr;
  gap: 20px;
  align-items: baseline;
  padding: 30px 0;
  border-bottom: 1px solid rgba(10,10,9,.22);
}

.now-ledger article > span {
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.now-ledger h3 { margin: 0; font-size: 20px; }

.now-ledger p { margin: 0; color: rgba(10,10,9,.62); line-height: 1.5; }

.mirror-world {
  position: relative;
  min-height: 900px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 110px max(28px, calc((100% - var(--content)) / 2));
  background: #060708;
  isolation: isolate;
}

.mirror-world > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  transition: filter .8s ease, transform 1.4s ease;
}

.mirror-world::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: rgba(0,0,0,.38);
  box-shadow: inset 680px 0 300px rgba(0,0,0,.52), inset 0 -240px 180px rgba(0,0,0,.5);
}

.mirror-copy {
  max-width: 630px;
  padding-bottom: 20px;
}

.mirror-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 62px;
  font-weight: 400;
  line-height: 1;
}

.mirror-copy > p:nth-of-type(2) {
  margin: 24px 0 30px;
  color: rgba(255,255,255,.76);
  font-size: 17px;
  line-height: 1.62;
}

.mirror-toggle {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid white;
  border-radius: 0;
  background: rgba(0,0,0,.28);
  color: white;
  cursor: pointer;
}

.mirror-toggle:hover,
.mirror-toggle:focus-visible,
.mirror-toggle[aria-pressed="true"] { background: var(--blue); }

.mirror-answer {
  min-height: 24px;
  margin: 18px 0 0;
  color: var(--yellow);
}

.waterline {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.mirror-world.is-future .waterline { animation: water-ripple 2.8s ease-out infinite; }
.mirror-world.is-future > img { filter: contrast(1.14) saturate(1.25) hue-rotate(8deg); transform: scale(1.055); }

@keyframes water-ripple {
  0% { width: 4px; height: 4px; opacity: .8; }
  100% { width: 90vw; height: 180px; opacity: 0; }
}

.portals {
  padding: 120px 28px;
  background: #0b0b0a;
}

.portal-grid {
  width: min(var(--content), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.portal {
  position: relative;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  padding: 26px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 4px;
  color: white;
  text-decoration: none;
  transition: transform .35s ease, background .35s ease;
}

.portal::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  opacity: .48;
  background-size: cover;
  background-position: center;
  filter: grayscale(.2);
  transition: transform .6s ease, opacity .3s ease;
}

.portal::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: rgba(0,0,0,.48);
  box-shadow: inset 0 -220px 160px rgba(0,0,0,.72);
}

.portal > * { position: relative; z-index: 2; }

.portal-account::before { background-image: url('assets/memo-three-worlds.png'); }
.portal-nextstop::before { background-image: url('assets/life-mexico.jpg'); }
.portal-nahual::before { background-image: url('assets/memo-memory-palace.png'); background-position: 68% center; }

.portal:hover,
.portal:focus-visible { transform: translateY(-6px); }

.portal:hover::before,
.portal:focus-visible::before { transform: scale(1.05); opacity: .72; }

.portal-code {
  position: absolute;
  top: 24px;
  left: 26px;
  color: var(--yellow);
  font-size: 10px;
  letter-spacing: 0;
}

.portal h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  font-weight: 400;
}

.portal p { min-height: 66px; color: rgba(255,255,255,.72); line-height: 1.5; }

.portal-action {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.26);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.oracle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  padding: 120px max(28px, calc((100% - var(--content)) / 2));
  background: var(--green);
}

.oracle .eyebrow { color: var(--yellow); }
.oracle-copy > p:last-child { color: rgba(255,255,255,.7); }

.oracle-form { align-self: end; }

.oracle-form label {
  display: block;
  margin-bottom: 12px;
  color: rgba(255,255,255,.62);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.oracle-input-row {
  display: grid;
  grid-template-columns: 1fr 64px;
  border-bottom: 2px solid white;
}

.oracle-input-row input {
  min-width: 0;
  padding: 16px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
}

.oracle-input-row input::placeholder { color: rgba(255,255,255,.36); }

.oracle-input-row button {
  border: 0;
  background: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

.oracle-answer { min-height: 52px; margin: 20px 0 0; color: var(--yellow); line-height: 1.5; }

.memo-footer {
  padding: 70px max(28px, calc((100% - var(--content)) / 2)) 30px;
  background: var(--red);
  color: white;
}

.footer-question {
  margin: 0 0 80px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-style: italic;
}

.footer-main {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.footer-main h2 {
  max-width: 720px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 78px;
  font-weight: 400;
  line-height: .92;
}

.footer-actions { display: flex; flex-direction: column; min-width: 280px; }

.footer-actions a {
  display: flex;
  justify-content: space-between;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.42);
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 100px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.35);
  font-size: 10px;
  letter-spacing: 0;
}

.key-hint {
  position: fixed;
  z-index: 70;
  right: 18px;
  bottom: 18px;
  padding: 9px 11px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(10,10,9,.74);
  color: rgba(255,255,255,.54);
  font-size: 9px;
  letter-spacing: 0;
  backdrop-filter: blur(8px);
}

.key-hint span { color: white; }

body.is-distorted .hero-image,
body.is-distorted .chapter-image.is-visible {
  filter: hue-rotate(155deg) saturate(1.7) contrast(1.08);
}

body.is-distorted .memo-site { animation: pulse-frame .24s steps(2) infinite; }

body.is-distorted .memo-site { animation-duration: .68s; }

body.is-distorted .film-burn { animation: film-pulse .68s steps(2) infinite; }

@keyframes pulse-frame {
  0% { transform: translate(0, 0); }
  33% { transform: translate(1px, 0); }
  66% { transform: translate(-1px, 1px); }
}

@keyframes film-pulse {
  0%, 100% { opacity: .26; }
  50% { opacity: .62; }
}

@media (max-width: 900px) {
  .memo-nav { grid-template-columns: 1fr auto; padding: 0 18px; }
  .memo-nav nav { display: none; }
  .hero-copy { width: calc(100% - 36px); }
  .hero h1 { font-size: 64px; }
  .hero-question { font-size: 34px; }
  .life-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manifesto { grid-template-columns: 80px 1fr; }
  .manifesto > p { grid-column: 2; }
  .manifesto-index { font-size: 78px; }
  .now { grid-template-columns: 1fr; }
  .portal-grid { grid-template-columns: 1fr; }
  .portal { min-height: 360px; }
  .oracle { grid-template-columns: 1fr; }
  .footer-main { align-items: flex-start; flex-direction: column; }
  .footer-actions { width: 100%; }
  .chronoscope { grid-template-columns: 1fr; }
  .time-dial { grid-column: 1; }
  .body-brain { grid-template-columns: 1fr 58px 1fr; grid-template-rows: auto 460px auto; }
}

@media (max-width: 600px) {
  .memo-nav { min-height: 62px; }
  .memo-mark small, .sound-label { display: none; }
  .journey-progress { top: 61px; }
  .hero { min-height: 88vh; }
  .hero-copy { padding: 120px 0 72px; }
  .hero h1 { font-size: 50px; }
  .hero-question { font-size: 30px; }
  .hero-intro { font-size: 16px; }
  .hero-meta { right: 18px; left: 18px; }
  .hero-meta span:first-child { display: none; }
  .loadout, .portals { padding: 84px 18px 60px; }
  .section-heading h2, .now h2, .portals h2, .oracle h2 { font-size: 42px; }
  .life-grid { grid-template-columns: 1fr; }
  .life-card { height: 280px; }
  .loadout-status { align-items: stretch; flex-direction: column; gap: 18px; }
  .enter-palace { width: 100%; }
  .manifesto { grid-template-columns: 1fr; padding: 80px 18px; }
  .manifesto-index { display: none; }
  .manifesto > p { grid-column: auto; }
  .manifesto h2 { font-size: 40px; }
  .worlds { min-height: 780px; padding: 90px 18px 44px; }
  .worlds-heading h2, .chronoscope-copy h2 { font-size: 42px; }
  .world-selector { grid-template-columns: 1fr; }
  .world-button { min-height: 96px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.24); }
  .world-button strong { margin-top: 8px; }
  .world-game { grid-template-columns: 1fr; gap: 13px; }
  .cross-threshold { width: 100%; }
  .worlds-image[data-active-world="underworld"] { transform: scale(1.55); }
  .worlds-image[data-active-world="reality"] { transform: scale(1.3); }
  .worlds-image[data-active-world="dream"] { transform: scale(1.6); }
  .portal-topline { min-height: 62px; padding: 0 18px; }
  .portal-copy { top: 45%; left: 18px; width: calc(100% - 36px); }
  .portal-copy h2 { font-size: 52px; }
  .portal-copy > p:last-child { font-size: 15px; line-height: 1.55; }
  .portal-controls { right: 18px; bottom: 30px; grid-template-columns: 44px 90px 44px; gap: 9px; }
  .portal-previous, .portal-next { width: 44px; height: 44px; }
  .portal-instruction { bottom: 84px; left: 18px; width: 180px; }
  .chronoscope { padding: 84px 18px; }
  .chronoscope-screen, .chronoscope-screen img { min-height: 360px; }
  .body-brain { grid-template-columns: 1fr; grid-template-rows: auto 360px 44px 360px auto; padding: 84px 18px; }
  .body-brain-heading h2, .mirror-copy h2 { font-size: 42px; }
  .neural-bridge { flex-direction: row; padding: 0 24px; }
  .mirror-world { min-height: 760px; padding: 84px 18px 52px; }
  .mirror-world > img { object-position: 56% center; }
  .chapter-stage { min-height: 620px; }
  .chapter-copy { left: 18px; bottom: 100px; width: calc(100% - 36px); }
  .chapter-copy h2 { font-size: 44px; }
  .chapter-copy > p:nth-of-type(2) { font-size: 16px; }
  .chapter-dots { right: auto; left: 18px; bottom: 58px; }
  .now, .oracle { padding: 84px 18px; }
  .now-ledger article { grid-template-columns: 40px 1fr; }
  .now-ledger article p { grid-column: 2; }
  .footer-main h2 { font-size: 52px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .key-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  body.is-distorted .memo-site { animation: none; }
}
