:root {
  color-scheme: dark;
  --bg: #100e12;
  --text: #e9e1e8;
  --muted: #aaa0aa;
  --faint: #746a76;
  --rose: #b77f9e;
  --line: #403640;
  --soft: #201a22;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Manrope", Arial, sans-serif;
  --mono: "DM Mono", monospace;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scrollbar-color: #584453 var(--bg);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
  transition:
    background-color 0.4s,
    color 0.4s;
}
.grain {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.075;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E");
}
.topbar {
  height: 70px;
  position: absolute;
  z-index: 12;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  border-bottom: 1px solid #ffffff18;
  font: 10px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.wordmark {
  font: 600 17px var(--sans);
  letter-spacing: 0;
  text-decoration: none;
  color: var(--text);
  text-transform: none;
}
.wordmark span {
  color: var(--rose);
}
.top-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.signal {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b689a2;
  box-shadow: 0 0 9px #c98db1;
}
.controls {
  display: flex;
  gap: 16px;
  align-items: center;
}
.controls button,
footer button {
  font: inherit;
  color: var(--muted);
  border: 0;
  background: none;
  padding: 8px;
  cursor: pointer;
}
.controls button:hover,
footer button:hover {
  color: var(--text);
}
.theme-toggle {
  font-size: 17px !important;
}
.hero {
  min-height: 760px;
  height: 100svh;
  max-height: 1100px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 13vw;
  overflow: hidden;
}
.hero-image {
  position: absolute;
  inset: 0 0 0 25%;
  background:
    linear-gradient(
      90deg,
      var(--bg) 0%,
      #100e12aa 25%,
      #100e1230 62%,
      #100e1260 100%
    ),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%, #100e1260 100%),
    url("/assets/preview/threshold-room.png") center 54% / cover;
  filter: saturate(0.63) brightness(0.72);
  transform: scale(1.015);
  animation: arrival 2.4s ease-out both;
  cursor: crosshair;
}
.hero-copy {
  position: relative;
  z-index: 1;
  margin-top: -20px;
  max-width: 800px;
}
.eyebrow,
.record-id,
.hero-foot,
.image-coordinate,
figcaption,
.annotation,
footer,
.whisper,
.light-message {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.eyebrow {
  display: flex;
  gap: 28px;
  align-items: center;
  color: var(--muted);
}
.record-id {
  color: #827783;
}
.hero h1 {
  font-size: clamp(78px, 14vw, 190px);
  line-height: 0.82;
  letter-spacing: -0.07em;
  font-weight: 300;
  margin: 37px 0 27px;
}
.hero-line {
  font: 400 clamp(26px, 3.3vw, 47px)/1.12 var(--serif);
  color: #ded3de;
  margin: 0;
}
.hero-foot {
  position: absolute;
  left: 5vw;
  right: 5vw;
  bottom: 36px;
  display: flex;
  justify-content: space-between;
  color: #b2a9b3;
}
.scroll-mark {
  font-size: 17px;
  animation: drift 1.8s ease-in-out infinite;
}
.margin-note {
  position: absolute;
  font: 9px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d1c1ce;
  opacity: 0.72;
}
.note-one {
  right: 12%;
  top: 31%;
  transform: rotate(-8deg);
}
.note-two {
  right: 7%;
  bottom: 24%;
  transform: rotate(90deg);
  transform-origin: right;
}
.story {
  position: relative;
}
.story-block {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 30px;
  padding-right: 30px;
}
.prologue {
  padding-top: 190px;
  padding-bottom: 105px;
}
.whisper {
  color: var(--rose);
  line-height: 1.8;
}
.story h2 {
  font: 400 clamp(42px, 6vw, 76px)/1.08 var(--serif);
  letter-spacing: 0;
  margin: 27px 0 33px;
  max-width: 740px;
}
.prologue h2 {
  max-width: 730px;
}
.prose {
  font-size: 15px;
  line-height: 2;
  color: #bfb5c0;
  max-width: 620px;
  margin: 0 0 18px;
}
.prose + p {
  margin-top: 18px;
}
.full-figure,
.courtyard-figure,
.small-figure {
  margin: 0;
}
.room-image {
  height: min(74vw, 690px);
  min-height: 420px;
  background:
    linear-gradient(
      0deg,
      #100e1270,
      transparent 24%,
      transparent 80%,
      #100e1244
    ),
    url("/assets/preview/threshold-room.png") center 52% / cover no-repeat;
  filter: saturate(0.45) brightness(0.78);
}
figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 6vw 0;
  color: #827782;
  font-size: 9px;
}
.memory-text {
  padding-top: 145px;
  padding-bottom: 100px;
}
.memory-text h2 {
  max-width: 670px;
}
.memory-text .prose {
  max-width: 630px;
}
.courtyard-figure {
  width: min(820px, 76vw);
  margin: 30px auto 125px;
}
.courtyard-image {
  aspect-ratio: 1.5;
  background: url("/assets/preview/afterimage-courtyard.png") center 54% / cover
    no-repeat;
  filter: saturate(0.55) brightness(0.73);
  position: relative;
  cursor: crosshair;
}
.courtyard-image:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 25%,
    #f0c9dc12 47%,
    transparent 64%
  );
  opacity: 0.8;
  animation: lightpass 12s ease-in-out infinite;
}
.systems {
  padding-top: 40px;
  padding-bottom: 100px;
}
.systems blockquote {
  font: italic 25px/1.55 var(--serif);
  color: #d3c4d0;
  border-left: 1px solid var(--rose);
  padding: 3px 0 3px 25px;
  margin: 50px 0 0;
  max-width: 570px;
}
.trace {
  padding-top: 60px;
  padding-bottom: 110px;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 25px;
}
.trace h2 {
  margin-top: 0;
}
.trace-mark {
  font: 70px var(--serif);
  color: #675565;
  opacity: 0.8;
  padding-top: 23px;
}
.trace .annotation {
  color: #7d707e;
  margin-top: 38px;
  font-size: 9px;
}
.synthetic {
  padding-top: 50px;
  padding-bottom: 140px;
  position: relative;
}
.synthetic h2 {
  font-size: clamp(45px, 6.2vw, 82px);
}
.margin-whisper {
  position: absolute;
  right: max(calc((100vw - 1060px) / 2), 7vw);
  top: 61%;
  font: italic 13px var(--serif);
  color: #8b7989;
  transform: rotate(-7deg);
}
.tension {
  padding-top: 50px;
  padding-bottom: 115px;
}
.contrast {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin: 45px 0 35px;
  font: 400 clamp(24px, 4vw, 44px) var(--serif);
}
.contrast-mark {
  font: 18px var(--mono);
  color: var(--rose);
}
.contrast span:last-child {
  color: #9c8195;
}
.small-figure {
  width: min(390px, 58vw);
  margin: 5px 13vw 145px auto;
}
.silhouette-image {
  aspect-ratio: 0.83;
  background:
    linear-gradient(0deg, #100e1240, #100e1250),
    url("/assets/preview/afterimage-courtyard.png") 76% 40% / cover no-repeat;
  filter: grayscale(0.5) brightness(0.53);
  position: relative;
}
.silhouette-image:after {
  content: "";
  position: absolute;
  inset: 15% 33% 5% 32%;
  background: #171219ab;
  filter: blur(23px);
  border-radius: 48% 52% 14% 15%;
}
.small-figure figcaption {
  display: block;
  padding-left: 0;
  line-height: 1.7;
}
.temperament {
  padding-top: 30px;
  padding-bottom: 120px;
}
.loomiy {
  padding-top: 75px;
  padding-bottom: 115px;
  border-top: 1px solid #ffffff12;
  border-bottom: 1px solid #ffffff12;
}
.loomiy h2 {
  max-width: 680px;
}
.loomiy-sign {
  font: italic 21px var(--serif);
  color: #c5a9bd;
  margin-top: 50px;
  transform: rotate(-5deg);
  width: max-content;
}
.loomiy-sign span {
  font: 9px var(--mono);
  color: #766b78;
}
.ending {
  padding-top: 145px;
  padding-bottom: 170px;
}
.ending h2 {
  font-size: clamp(45px, 6.5vw, 83px);
}
.final-question {
  font: italic 25px/1.55 var(--serif);
  color: #e2d6e0;
  margin: 58px 0 30px;
}
.signoff {
  font: 13px/1.9 var(--mono);
  color: #948691;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.visit-end {
  min-height: 550px;
  padding: 125px 15vw;
  background:
    radial-gradient(ellipse at 72% 50%, #412b3b66, transparent 55%), var(--bg);
  border-top: 1px solid #ffffff13;
}
.visit-end h2 {
  font: 400 clamp(48px, 7vw, 88px)/1.05 var(--serif);
  margin: 28px 0 55px;
}
.socials {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
.socials a {
  font: 10px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #c7bac7;
  text-decoration: none;
  border-bottom: 1px solid #776375;
  padding-bottom: 8px;
}
.socials a:hover {
  color: white;
  border-color: var(--rose);
}
footer {
  height: 68px;
  padding: 0 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #796f7b;
  border-top: 1px solid #ffffff17;
  font-size: 9px;
}
footer a {
  color: var(--rose);
  text-decoration: none;
  letter-spacing: 0.08em;
}
footer button {
  font-size: 18px;
}
.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 15px);
  opacity: 0;
  background: #271e28;
  border: 1px solid #6b5265;
  padding: 13px 19px;
  color: #e8dce7;
  font: 11px var(--mono);
  transition: 0.3s;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.light-message {
  position: fixed;
  z-index: 13;
  top: 84px;
  right: 5vw;
  color: #f5f0f4;
  background: #fff;
  padding: 8px 12px;
  font-size: 9px;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 0.25s,
    transform 0.25s;
  pointer-events: none;
}
body.light {
  color-scheme: light;
  --bg: #fff;
  --text: #111;
  --muted: #181318;
  --faint: #4d4650;
  --rose: #241820;
  --line: #111;
  --soft: #fff;
}
body.light .grain {
  opacity: 0.025;
}
body.light .topbar {
  border-color: #17121755;
}
body.light .signal {
  background: #211922;
  box-shadow: 0 0 5px #382333;
}
body.light .wordmark span {
  color: #111;
}
body.light .hero-image {
  filter: grayscale(0.85) brightness(1.1) contrast(1.08);
}
body.light .hero-line {
  color: #100e12;
}
body.light .eyebrow,
body.light .record-id,
body.light .top-meta,
body.light .hero-foot,
body.light .margin-note {
  color: #201920;
}
body.light .prose {
  color: #282329;
}
body.light .room-image {
  filter: grayscale(0.8) brightness(1.05) contrast(1.06);
}
body.light .courtyard-image {
  filter: grayscale(0.85) brightness(1.08) contrast(1.08);
}
body.light .silhouette-image {
  filter: grayscale(1) brightness(0.83) contrast(1.08);
}
body.light .systems blockquote,
body.light .final-question {
  color: #231b24;
}
body.light .trace-mark,
body.light .margin-whisper,
body.light .loomiy-sign,
body.light .loomiy-sign span,
body.light .trace .annotation {
  color: #322c33;
}
body.light .loomiy {
  border-color: #161016;
}
body.light .visit-end {
  background: #fff;
  border-color: #161016;
}
body.light .socials a {
  color: #171217;
  border-color: #332a34;
}
body.light footer {
  color: #211a22;
  border-color: #211a22;
}
body.light footer a {
  color: #111;
}
body.light .light-message {
  opacity: 1;
  transform: translateY(0);
}
body.light .whisper {
  color: #181318;
}
body.light .toast {
  background: #fff;
  color: #181318;
  border-color: #241b26;
}
body.light .toast.show {
  box-shadow: 0 3px 20px #0002;
}
@keyframes arrival {
  from {
    opacity: 0.35;
    transform: scale(1.06);
  }
  to {
    opacity: 1;
    transform: scale(1.015);
  }
}
@keyframes drift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}
@keyframes lightpass {
  0%,
  100% {
    background-position: -120% 0;
    opacity: 0.1;
  }
  45%,
  65% {
    opacity: 0.8;
  }
  80% {
    background-position: 180% 0;
    opacity: 0;
  }
}
@media (max-width: 760px) {
  .topbar {
    height: 60px;
    padding: 0 22px;
  }
  .top-meta {
    display: none;
  }
  .hero {
    min-height: 720px;
    height: 92svh;
    padding: 0 8vw;
    align-items: center;
  }
  .hero-image {
    inset: 0;
    background-position: 59% center;
    opacity: 0.82;
  }
  .hero-copy {
    max-width: 95%;
  }
  .hero h1 {
    font-size: clamp(68px, 18vw, 115px);
    margin: 30px 0 24px;
  }
  .hero-line {
    font-size: 32px;
  }
  .eyebrow {
    font-size: 9px;
    gap: 14px;
  }
  .hero-foot {
    left: 8vw;
    right: 8vw;
    bottom: 24px;
    font-size: 9px;
  }
  .note-one {
    right: 9%;
    top: 27%;
  }
  .note-two {
    right: 5%;
    bottom: 28%;
  }
  .story-block {
    padding-left: 8vw;
    padding-right: 8vw;
  }
  .prologue {
    padding-top: 135px;
    padding-bottom: 80px;
  }
  .story h2 {
    font-size: clamp(40px, 12vw, 59px);
    margin: 24px 0 27px;
  }
  .prose {
    font-size: 14px;
    line-height: 1.9;
  }
  .room-image {
    height: 95vw;
    min-height: 350px;
    background-position: 55% center;
  }
  figcaption {
    padding: 12px 6vw 0;
    font-size: 8px;
    line-height: 1.6;
  }
  .memory-text {
    padding-top: 105px;
    padding-bottom: 75px;
  }
  .memory-text h2 {
    max-width: 520px;
  }
  .courtyard-figure {
    width: 84vw;
    margin: 15px auto 95px;
  }
  .courtyard-image {
    aspect-ratio: 0.95;
    background-position: 52% center;
  }
  .systems {
    padding-top: 25px;
    padding-bottom: 75px;
  }
  .systems blockquote {
    font-size: 22px;
    margin-top: 35px;
  }
  .trace {
    grid-template-columns: 42px 1fr;
    gap: 14px;
    padding-top: 35px;
    padding-bottom: 85px;
  }
  .trace-mark {
    font-size: 44px;
    padding-top: 14px;
  }
  .synthetic {
    padding-top: 25px;
    padding-bottom: 105px;
  }
  .margin-whisper {
    right: 9vw;
    top: auto;
    bottom: 35px;
    font-size: 11px;
  }
  .tension {
    padding-top: 25px;
    padding-bottom: 85px;
  }
  .contrast {
    gap: 10px;
    margin: 35px 0 27px;
    font-size: clamp(22px, 7vw, 32px);
  }
  .contrast-mark {
    font-size: 14px;
  }
  .small-figure {
    width: 60vw;
    margin: 0 8vw 100px auto;
  }
  .temperament {
    padding-top: 0;
    padding-bottom: 90px;
  }
  .loomiy {
    padding-top: 65px;
    padding-bottom: 80px;
  }
  .ending {
    padding-top: 110px;
    padding-bottom: 115px;
  }
  .final-question {
    font-size: 21px;
    margin: 45px 0 25px;
  }
  .signoff {
    font-size: 10px;
  }
  .visit-end {
    min-height: 510px;
    padding: 100px 8vw;
  }
  .visit-end h2 {
    font-size: 57px;
    margin-bottom: 50px;
  }
  .socials {
    gap: 17px;
  }
  .socials a {
    font-size: 9px;
  }
  .light-message {
    top: 71px;
    right: 5vw;
    max-width: 48vw;
    text-align: center;
    font-size: 8px;
    padding: 8px 10px;
  }
  footer {
    height: 64px;
    padding: 0 6vw;
    font-size: 8px;
    gap: 10px;
  }
  footer span:nth-of-type(2) {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
