.writing-page-main { min-height: 100vh; background: #071015; }
.open-loops-story { position: relative; background: #071015; }
.story-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 680px;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}
.story-spacer { height: 610vh; }

/* Match GSAP's initial frame before deferred scripts execute. */
.js .world { opacity: 0.64; }
.js .hallway-shell {
  --hallway-x: 15%;
  --hallway-rotation: 0deg;
  --hallway-scale: 0.78;
  transform: translateX(var(--hallway-x)) rotate(var(--hallway-rotation)) scale(var(--hallway-scale));
}
.js .loop-door,
.js .work-fragment,
.js .thread-node {
  visibility: hidden;
  opacity: 0;
}
.js .attention-thread path {
  stroke-dasharray: 1350;
  stroke-dashoffset: 1350;
}
.js .progress-fill { transform: scaleX(0); }
.js .writing-destination { opacity: 0; }

.world,
.hallway-camera,
.hallway-shell {
  position: absolute;
  inset: 0;
}

.world {
  z-index: 1;
  overflow: hidden;
  background:
    radial-gradient(circle at 56% 46%, rgba(67, 117, 145, 0.12), transparent 25%),
    linear-gradient(90deg, #071015, #08141d 55%, #071015);
}

.world::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(129, 173, 193, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 173, 193, 0.028) 1px, transparent 1px);
  background-size: 74px 74px;
  content: "";
  mask-image: linear-gradient(to bottom, transparent 0, black 16%, black 84%, transparent 100%);
}

.world-glow {
  position: absolute;
  top: 8%;
  left: 54%;
  width: 50vw;
  height: 76vh;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(109, 174, 204, 0.13), transparent 68%);
  filter: blur(16px);
}

.hallway-camera { perspective: 1200px; perspective-origin: 57% 49%; }
.hallway-shell {
  transform-style: preserve-3d;
  transform-origin: 57% 50%;
}

.hallway-wall,
.hallway-plane {
  position: absolute;
  background: rgba(8, 20, 29, 0.9);
  backface-visibility: hidden;
}

.wall-left {
  top: 0;
  bottom: 0;
  left: -14%;
  width: 62%;
  transform: perspective(800px) rotateY(63deg);
  transform-origin: left center;
  border-right: 1px solid rgba(126, 177, 205, 0.12);
  background:
    linear-gradient(90deg, rgba(5, 13, 18, 0.96), rgba(10, 26, 37, 0.68)),
    repeating-linear-gradient(0deg, transparent 0 92px, rgba(126, 177, 205, 0.07) 93px 94px);
}

.wall-right {
  top: 0;
  right: -14%;
  bottom: 0;
  width: 62%;
  transform: perspective(800px) rotateY(-63deg);
  transform-origin: right center;
  border-left: 1px solid rgba(126, 177, 205, 0.12);
  background:
    linear-gradient(270deg, rgba(5, 13, 18, 0.96), rgba(10, 26, 37, 0.68)),
    repeating-linear-gradient(0deg, transparent 0 92px, rgba(126, 177, 205, 0.07) 93px 94px);
}

.ceiling,
.floor {
  right: -8%;
  left: -8%;
  height: 48%;
  background: repeating-linear-gradient(90deg, transparent 0 124px, rgba(126, 177, 205, 0.075) 125px 126px), #08131b;
}
.ceiling { top: -16%; transform: perspective(650px) rotateX(-70deg); transform-origin: top center; }
.floor { bottom: -16%; transform: perspective(650px) rotateX(70deg); transform-origin: bottom center; }

.corridor-rib {
  position: absolute;
  top: 50%;
  left: 57%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(126, 177, 205, 0.17);
  box-shadow: 0 0 26px rgba(72, 137, 167, 0.025);
}
.rib-1 { width: 104%; height: 102%; }
.rib-2 { width: 82%; height: 82%; }
.rib-3 { width: 63%; height: 64%; }
.rib-4 { width: 46%; height: 48%; }
.rib-5 { width: 31%; height: 34%; }
.rib-6 { width: 17%; height: 19%; }

.vanishing-point {
  position: absolute;
  top: 49%;
  left: 57%;
  width: 4px;
  height: 4px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #d5edf0;
  box-shadow: 0 0 46px 20px rgba(117, 187, 213, 0.2);
}

.loop-door {
  position: absolute;
  z-index: 5;
  width: 154px;
  height: 225px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(154, 194, 211, 0.3);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025), transparent 22%),
    linear-gradient(145deg, rgba(15, 35, 46, 0.98), rgba(7, 18, 25, 0.99));
  color: #b1c2c8;
  font-family: var(--mono);
  transform-origin: left center;
  box-shadow:
    inset 8px 0 18px rgba(133, 187, 207, 0.035),
    inset 0 0 0 5px rgba(3, 11, 16, 0.42),
    0 28px 58px rgba(0, 0, 0, 0.3);
}

.loop-door::before {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(146, 190, 208, 0.13);
  background:
    linear-gradient(90deg, transparent 49%, rgba(146, 190, 208, 0.08) 50%, transparent 51%),
    linear-gradient(transparent 60%, rgba(146, 190, 208, 0.08) 60%, rgba(146, 190, 208, 0.08) 61%, transparent 61%);
  content: "";
}

.loop-door::after {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  transform: scaleX(0.22);
  transform-origin: left;
  background: linear-gradient(90deg, var(--orange), transparent);
  content: "";
}

.loop-door .door-index {
  position: relative;
  z-index: 2;
  display: block;
  color: var(--orange-text);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
}

.loop-door strong {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 43px;
  left: 18px;
  color: #d0d9d8;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.loop-door small {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 20px;
  left: 18px;
  overflow: hidden;
  color: #71858e;
  font-size: 0.47rem;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.loop-door i {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 20px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 12px rgba(207, 114, 78, 0.45);
}
.prompt-door { top: 28%; left: 65%; }
.door-research { top: 15%; left: 12%; }
.door-design { top: 11%; right: 8%; transform-origin: right center; }
.door-build { top: 50%; left: 18%; }
.door-review { top: 54%; right: 13%; transform-origin: right center; }
.door-refactor { top: 22%; left: 38%; width: 132px; height: 190px; }
.door-writing { top: 22%; right: 20%; width: 172px; height: 245px; transform-origin: right center; }
.door-idea { top: 45%; right: 39%; width: 120px; height: 176px; transform-origin: right center; }

.loop-door.attention-target {
  border-color: rgba(121, 214, 175, 0.45);
  box-shadow: 0 0 0 1px rgba(121, 214, 175, 0.05), 0 25px 60px rgba(0, 0, 0, 0.35);
}

.prompt-door::after,
.loop-door.attention-target::after {
  transform: scaleX(0.72);
  background: linear-gradient(90deg, var(--mint), transparent);
}

.work-fragment {
  position: absolute;
  z-index: 9;
  min-width: 180px;
  padding: 4px 0 4px 14px;
  border-left: 1px solid rgba(207, 114, 78, 0.7);
  background: linear-gradient(90deg, rgba(7, 16, 22, 0.74), transparent 88%);
  color: #91a4ab;
  font-family: var(--mono);
  font-size: 0.56rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}
.work-fragment span { margin-right: 10px; color: var(--orange-text); font-size: 0.48rem; }
.fragment-1 { top: 18%; left: 28%; }
.fragment-2 { top: 33%; right: 4%; }
.fragment-3 { bottom: 24%; left: 5%; }
.fragment-4 { bottom: 12%; right: 22%; }
.fragment-5 { top: 9%; right: 31%; }
.fragment-6 { bottom: 35%; left: 41%; }

.attention-thread {
  position: absolute;
  z-index: 12;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.attention-thread path { fill: none; stroke-linecap: round; }
.thread-shadow { stroke: rgba(207, 114, 78, 0.11); stroke-width: 11; }
.thread-line { stroke: var(--orange); stroke-width: 2.3; filter: url(#thread-glow); }
.thread-node { fill: var(--cream); filter: url(#thread-glow); }

.story-copy {
  position: absolute;
  z-index: 40;
  top: 50%;
  left: clamp(25px, 6vw, 100px);
  width: min(560px, 43vw);
  transform: translateY(-50%);
}

.story-copy .eyebrow,
.act-number {
  margin: 0 0 20px;
  color: var(--mint);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.story-copy h1,
.story-copy h2 {
  margin: 0;
  color: var(--cream);
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.91;
}
.story-copy h1 { max-width: 8.6ch; font-size: clamp(3.9rem, 6.2vw, 7.2rem); text-wrap: balance; }
.story-copy h2 { max-width: 12ch; font-size: clamp(3.1rem, 4.8vw, 5.8rem); text-wrap: balance; }
.story-copy > p:last-of-type {
  max-width: 470px;
  margin: 24px 0 0;
  color: #a7aaa5;
  font-size: clamp(0.86rem, 1.1vw, 1rem);
  line-height: 1.7;
}
.opening-copy { left: clamp(25px, 7vw, 118px); width: min(500px, 38vw); }
.multiplication-copy {
  top: 18%;
  left: clamp(25px, 5vw, 82px);
  width: min(500px, 37vw);
  transform: none;
}
.multiplication-copy h2 { font-size: clamp(3rem, 4.2vw, 5.1rem); }
.overload-copy { left: clamp(25px, 6vw, 100px); width: min(540px, 39vw); }
.attention-copy {
  top: 17%;
  left: clamp(25px, 6vw, 100px);
  width: min(480px, 36vw);
  transform: none;
}
.attention-copy h2 { font-size: clamp(3.15rem, 4.4vw, 5.25rem); }
.resolution-copy { left: clamp(25px, 7vw, 118px); width: min(520px, 39vw); }
.multiplication-copy,
.overload-copy,
.attention-copy,
.resolution-copy { visibility: hidden; }

.journey-cue {
  position: absolute;
  z-index: 130;
  bottom: 68px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  transform: translate(-50%, 12px);
  border: 0;
  background: transparent;
  color: #8f9a9b;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.09em;
  opacity: 0;
  pointer-events: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.journey-cue i {
  position: relative;
  width: 1px;
  height: 28px;
  overflow: hidden;
  background: rgba(242, 230, 207, 0.18);
}

.journey-cue i::after {
  position: absolute;
  top: -100%;
  left: 0;
  width: 1px;
  height: 100%;
  background: var(--orange);
  content: "";
  animation: cue-flow 1.7s ease-in-out infinite;
}

.journey-ready:not(.has-journey-started) .journey-cue {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.journey-cue:hover,
.journey-cue:focus-visible { color: var(--cream); }

@keyframes cue-flow {
  0% { transform: translateY(0); }
  65%, 100% { transform: translateY(200%); }
}

.loop-meter {
  display: flex;
  align-items: baseline;
  gap: 16px;
  width: fit-content;
  margin-top: 34px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.loop-meter span { color: #8a9698; font-size: 0.58rem; text-transform: uppercase; }
.loop-meter strong { color: var(--orange); font-family: var(--mono); font-size: 1.6rem; font-weight: 400; }

.progress-rail {
  position: absolute;
  z-index: 100;
  right: 34px;
  bottom: 34px;
  left: 34px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding-top: 11px;
  border-top: 1px solid rgba(223, 231, 228, 0.1);
  transition: opacity 220ms ease;
}
.progress-fill {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--orange);
}
.progress-rail i {
  color: #586469;
  font-family: var(--mono);
  font-size: 0.48rem;
  font-style: normal;
  text-transform: uppercase;
}
.progress-rail i::before { margin-right: 8px; content: attr(data-act); color: #7a878a; }

.story-controls {
  position: absolute;
  z-index: 120;
  right: 34px;
  top: calc(var(--header-height) + 18px);
  display: flex;
  gap: 18px;
  transition: opacity 220ms ease;
}

.writing-destination-active .progress-rail,
.writing-destination-active .story-controls {
  opacity: 0;
  pointer-events: none;
}
.story-controls button,
.story-controls a {
  padding: 0;
  border: 0;
  background: transparent;
  color: #849092;
  cursor: pointer;
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.story-controls button:hover,
.story-controls button:focus-visible,
.story-controls a:hover,
.story-controls a:focus-visible { color: var(--cream); }

.writing-destination {
  position: absolute;
  z-index: 70;
  inset: var(--header-height) 0 0;
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(500px, 1.28fr);
  gap: clamp(40px, 7vw, 120px);
  align-content: center;
  padding: clamp(55px, 7vw, 110px) clamp(30px, 7vw, 116px) 110px;
  visibility: hidden;
  background:
    radial-gradient(circle at 87% 18%, rgba(121, 214, 175, 0.08), transparent 25%),
    linear-gradient(100deg, rgba(7, 16, 21, 0.99), rgba(8, 18, 22, 0.98));
}

.writing-intro { align-self: start; max-width: 500px; }
.writing-intro h2 {
  max-width: 8ch;
  margin: 0;
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(4rem, 6.4vw, 7.5rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.87;
}
.writing-intro > p:not(.eyebrow) { max-width: 430px; margin: 28px 0 0; font-size: 0.88rem; line-height: 1.7; }
.featured-link {
  display: inline-flex;
  gap: 16px;
  margin-top: 38px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(242, 230, 207, 0.45);
  color: var(--cream);
  font-size: 0.67rem;
  font-weight: 800;
}
.featured-link .link-arrow { color: var(--orange); }
.writing-archive-link {
  display: inline-block;
  margin: 19px 0 0;
  color: #8a9494;
  font-size: 0.62rem;
  font-weight: 700;
}
.writing-archive-link:hover,
.writing-archive-link:focus-visible { color: var(--cream); }

.thread-index { align-self: center; border-top: 1px solid var(--line); }
.thread-heading {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: #849092;
  font-family: var(--mono);
  font-size: 0.5rem;
  text-transform: uppercase;
}
.thread-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.thread-number { color: var(--orange-text); font-family: var(--mono); font-size: 0.65rem; }
.thread-row small { color: var(--mint); font-size: 0.49rem; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; }
.thread-row h3 { max-width: 630px; margin: 7px 0 0; color: #dcd6c9; font-size: clamp(1rem, 1.3vw, 1.27rem); line-height: 1.25; }
.thread-row p { max-width: 620px; margin: 8px 0 0; color: #8a9494; font-size: 0.68rem; line-height: 1.55; }
.thread-state { padding-top: 2px; color: #879191; font-family: var(--mono); font-size: 0.52rem; }
.thread-row.is-published h3 { color: var(--cream); }
.thread-row.is-published {
  grid-template-columns: 48px 112px minmax(0, 1fr) auto;
  transition: background 180ms ease, padding 180ms ease;
}
.thread-preview {
  width: 112px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
}
.thread-preview img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.04);
  transition: filter 220ms ease, transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}
.thread-row.is-published:hover,
.thread-row.is-published:focus-visible {
  padding-right: 12px;
  padding-left: 12px;
  background: rgba(255, 255, 255, 0.025);
}
.thread-row.is-published:hover .thread-preview img,
.thread-row.is-published:focus-visible .thread-preview img {
  transform: scale(1.035);
  filter: saturate(1) contrast(1.02);
}

.world-exits {
  position: absolute;
  right: clamp(30px, 7vw, 116px);
  bottom: 23px;
  left: clamp(30px, 7vw, 116px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.world-exits a { display: grid; grid-template-columns: auto 1fr; gap: 4px 11px; padding: 14px 0; color: #687477; }
.world-exits a span { grid-row: 1 / 3; color: var(--orange-text); font-family: var(--mono); font-size: 0.5rem; }
.world-exits a strong { color: #9ca3a0; font-size: 0.61rem; }
.world-exits a small { font-size: 0.5rem; }
.world-exits a:hover strong,
.world-exits a:focus-visible strong,
.world-exits a.is-current strong { color: var(--cream); }

@media (max-width: 980px) {
  .story-copy { width: min(500px, 46vw); }
  .story-copy h1 { font-size: clamp(3.7rem, 7vw, 5.8rem); }
  .story-copy h2 { font-size: clamp(3rem, 5.1vw, 4.8rem); }
  .loop-door { transform: scale(0.83); }
  .door-research { left: 5%; }
  .door-design { right: 3%; }
  .door-build { left: 8%; }
  .door-review { right: 5%; }
  .writing-destination { grid-template-columns: 0.62fr 1.38fr; gap: 45px; padding-right: 45px; padding-left: 45px; }
  .writing-intro h2 { font-size: clamp(3.5rem, 7vw, 5.5rem); }
  .world-exits { right: 45px; left: 45px; }
}

@media (max-width: 720px) {
  .story-stage { height: 100vh; height: 100dvh; min-height: 0; }
  .story-spacer { height: 460vh; }
  .world::before { background-size: 48px 48px; }
  .hallway-camera { perspective-origin: 50% 52%; }
  .hallway-shell { transform-origin: 50% 52%; }
  .corridor-rib, .vanishing-point { left: 50%; }
  .wall-left { left: -30%; width: 78%; }
  .wall-right { right: -30%; width: 78%; }
  .story-copy {
    top: 122px;
    bottom: auto;
    left: 18px;
    width: calc(100% - 36px);
    padding: 12px 10px 16px 0;
    transform: none;
    background: linear-gradient(90deg, rgba(7, 16, 21, 0.9), rgba(7, 16, 21, 0.64) 72%, transparent);
  }
  .story-copy h1 { max-width: 8.5ch; font-size: clamp(2.85rem, 12.8vw, 3.35rem); }
  .story-copy h2 { max-width: 9ch; font-size: clamp(2.25rem, 10.5vw, 2.75rem); line-height: 0.94; }
  .story-copy > p:last-of-type { max-width: 320px; margin-top: 16px; font-size: 0.72rem; line-height: 1.55; }
  .opening-copy,
  .multiplication-copy,
  .overload-copy,
  .attention-copy,
  .resolution-copy { left: 18px; width: calc(100% - 36px); }
  .opening-copy { top: 124px; }
  .multiplication-copy { top: 144px; }
  .overload-copy { top: 124px; }
  .attention-copy { top: 128px; }
  .resolution-copy { top: 126px; }
  .multiplication-copy h2,
  .attention-copy h2 { font-size: clamp(2.25rem, 10.5vw, 2.75rem); }
  .loop-door { width: 94px; height: 142px; padding: 12px 10px; }
  .loop-door::before { inset: 8px; }
  .loop-door strong { right: 12px; bottom: 34px; left: 12px; margin: 0; font-size: 0.58rem; }
  .loop-door small { right: 12px; bottom: 14px; left: 12px; font-size: 0.4rem; }
  .loop-door i { right: 13px; }
  .prompt-door { top: 31%; left: auto; right: 9%; }
  .door-research { top: 48%; left: -2%; }
  .door-build { top: 65%; left: 13%; }
  .door-writing { top: 43%; right: 2%; width: 108px; height: 160px; }
  .door-design, .door-review, .door-refactor, .door-idea { display: none; }
  .work-fragment { min-width: 140px; padding: 4px 0 4px 10px; font-size: 0.45rem; }
  .fragment-2, .fragment-4, .fragment-5, .fragment-6 { display: none; }
  .attention-thread { transform: scale(1.12); transform-origin: 56% 52%; }
  .progress-rail { right: 18px; bottom: max(14px, env(safe-area-inset-bottom)); left: 18px; }
  .progress-rail i { font-size: 0; }
  .progress-rail i::before { font-size: 0.46rem; }
  .story-controls { top: calc(var(--header-height) + 16px); right: 18px; }
  .story-controls button { display: none; }
  .journey-cue { bottom: max(46px, calc(env(safe-area-inset-bottom) + 34px)); }
  .writing-destination {
    inset: var(--header-height) 0 0;
    display: block;
    overflow-y: auto;
    padding: 26px 18px max(20px, env(safe-area-inset-bottom));
  }
  .writing-intro { max-width: none; }
  .writing-intro h2 { max-width: 10ch; font-size: clamp(2.8rem, 13vw, 3.35rem); line-height: 0.91; }
  .writing-intro > p:not(.eyebrow) { margin-top: 15px; font-size: 0.7rem; line-height: 1.5; }
  .featured-link { margin-top: 16px; padding-bottom: 5px; }
  .writing-archive-link { margin-top: 10px; }
  .thread-index { margin-top: 24px; }
  .thread-heading { padding: 10px 0; }
  .thread-row { grid-template-columns: 26px minmax(0, 1fr); gap: 8px; padding: 12px 0; }
  .thread-row.is-published { grid-template-columns: 26px 60px minmax(0, 1fr); }
  .thread-preview { width: 60px; }
  .thread-state { display: none; }
  .thread-row h3 { margin-top: 4px; font-size: 0.78rem; line-height: 1.2; }
  .thread-row p { display: none; }
  .world-exits { position: static; grid-template-columns: repeat(2, 1fr); margin-top: 18px; }
  .world-exits a { padding: 8px 0; border-top: 1px solid var(--line); }
  .world-exits a small { display: none; }
}

@media (max-width: 430px) {
  .story-copy h1 { font-size: clamp(2.8rem, 12.5vw, 3.2rem); }
  .story-copy h2,
  .multiplication-copy h2,
  .attention-copy h2 { font-size: clamp(2.2rem, 10.25vw, 2.6rem); }
  .story-copy > p:last-of-type { margin-top: 14px; line-height: 1.5; }
  .story-copy .eyebrow,
  .act-number { margin-bottom: 14px; }
}

@media (max-width: 370px), (max-width: 720px) and (max-height: 760px) {
  .writing-destination { padding-top: 20px; }
  .writing-intro > p:not(.eyebrow) { margin-top: 11px; }
  .featured-link { margin-top: 12px; }
  .writing-archive-link { margin-top: 7px; }
  .thread-index { margin-top: 18px; }
  .thread-row { padding: 10px 0; }
  .world-exits { margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .open-loops-story { min-height: 100svh; }
  .story-stage { position: relative; }
  .story-spacer,
  .world,
  .story-copy,
  .progress-rail,
  .story-controls,
  .journey-cue { display: none !important; }
  .writing-destination { visibility: visible !important; opacity: 1 !important; transform: none !important; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
