/* Poiesis — endynamoo
   A stage, two machines, four receipts. No framework, no build. */

@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-ext.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic-latin.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic-latin-ext.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Rhapsode brand: violet signal, cyan second, violet-tinted paper on near-black. */
  --ink: #07070d;
  --ink-2: #0b0b15;
  --ink-3: #11111d;
  --paper: #ece9f8;
  --paper-70: rgba(236, 233, 248, .74);
  --paper-45: rgba(236, 233, 248, .56);
  --paper-22: rgba(236, 233, 248, .22);
  --paper-10: rgba(236, 233, 248, .10);
  --accent: #8b7bff;
  --accent-soft: rgba(139, 123, 255, .16);
  --accent-ink: #0a0716;
  --cold: #5fd8f5;
  --ash: #a09cbb;

  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Segoe UI Variable Display", "Segoe UI", Inter, -apple-system, BlinkMacSystemFont,
          "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", "SF Mono", ui-monospace, Consolas, monospace;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --wrap: 1240px;

  --fs-h1: clamp(2.5rem, 5.5vw, 5.4rem);
  --fs-h2: clamp(1.95rem, 3.6vw, 3.3rem);
  --fs-body: clamp(1rem, .35vw + .92rem, 1.14rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html { overflow-x: clip; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

section[id] { scroll-margin-top: 76px; }

img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1.15em; }
em { font-style: italic; }
code { font-family: var(--mono); font-size: .88em; color: var(--paper-70); }
::selection { background: var(--accent); color: var(--ink); }

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.wrap {
  width: min(var(--wrap), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.skip {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  padding: .6rem 1rem; background: var(--paper); color: var(--ink);
  font-size: .8rem; text-decoration: none; border-radius: 4px;
  transform: translateY(-160%); transition: transform .2s;
}
.skip:focus { transform: none; }

/* film grain ------------------------------------------------------------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  opacity: .055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  will-change: transform;
  animation: grainShift 7s steps(6) infinite;
}
@keyframes grainShift {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-2%, 1%); }
  40% { transform: translate(1%, -2%); }
  60% { transform: translate(-1%, -1%); }
  80% { transform: translate(2%, 1%); }
}

/* navigation ------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  display: flex; align-items: center; gap: 2rem;
  height: 68px; padding-inline: var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
}
.nav.is-scrolled {
  background: rgba(7, 7, 13, .72);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--paper-10);
}
.wordmark {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .95rem; font-weight: 600; letter-spacing: -.01em;
  text-decoration: none;
}
.wordmark__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px 2px rgba(139, 123, 255, .55);
}
.nav__links {
  display: flex; gap: 1.9rem; margin-left: auto;
  font-size: .85rem; letter-spacing: .02em;
}
.nav__links a { text-decoration: none; color: var(--paper-70); transition: color .2s; }
.nav__links a:hover { color: var(--paper); }
.nav__cta {
  font-size: .8rem; letter-spacing: .04em; text-decoration: none;
  padding: .55rem .9rem; border: 1px solid var(--paper-22); border-radius: 999px;
  color: var(--paper-70); transition: border-color .25s, color .25s, background .25s;
}
.nav__cta:hover { border-color: var(--paper-45); color: var(--paper); background: var(--paper-10); }

.rail {
  position: fixed; inset: auto 0 0; height: 2px; z-index: 100;
  background: var(--paper-10);
}
.rail i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), #5fd8f5);
  transform-origin: left;
}

/* shared type ------------------------------------------------------------ */
.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.02;
  margin: 0;
}
.h2 { font-size: var(--fs-h2); line-height: 1.04; text-wrap: balance; margin: 0 0 1.5rem; }

.eyebrow, .index {
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--paper-45); margin: 0 0 1.6rem;
  font-family: var(--sans); font-weight: 500;
}
.index { display: flex; align-items: center; gap: .9rem; }
.index span {
  font-family: var(--serif); font-size: 1rem; letter-spacing: .05em;
  color: var(--accent); text-transform: none;
}
.index::after {
  content: ""; height: 1px; width: 42px; background: var(--paper-22);
}

.body { color: var(--paper-70); max-width: 46ch; text-wrap: pretty; }
.body em { color: var(--paper); }

.dot { color: var(--accent); }

/* buttons and links ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .92rem 1.5rem; border-radius: 999px;
  font-size: .88rem; letter-spacing: .01em; text-decoration: none;
  transition: transform .25s var(--ease), background .25s, border-color .25s, color .25s;
}
.btn span { transition: transform .3s var(--ease); }
.btn:hover span { transform: translateX(3px); }
.btn--accent { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn--accent:hover { background: #a394ff; transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--paper-22); color: var(--paper-70); }
.btn--ghost:hover { border-color: var(--paper-45); color: var(--paper); transform: translateY(-2px); }

.arrow-link {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 2.2rem; padding-bottom: .3rem;
  font-size: .86rem; letter-spacing: .03em; text-decoration: none;
  color: var(--paper); border-bottom: 1px solid var(--paper-22);
  transition: border-color .3s, gap .3s var(--ease), color .3s;
}
.arrow-link:hover { border-color: var(--accent); gap: .85rem; color: var(--accent); }

/* 1 · hero --------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--gutter) 4.5rem;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, #171727 0%, #07070d 62%);
}
.hero__stage {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 1.6s ease;
}
.hero__stage.is-live { opacity: 1; }
.hero__veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(90% 60% at 50% 8%, rgba(139, 123, 255, .10), transparent 60%),
    linear-gradient(180deg, rgba(7, 7, 13, .55) 0%, rgba(7, 7, 13, 0) 32%, rgba(7, 7, 13, .82) 88%);
}
.hero__inner {
  position: relative; z-index: 2;
  width: min(var(--wrap), 100%); margin-inline: auto;
  margin-bottom: auto; padding-top: clamp(7rem, 16vh, 11rem);
}
.hero h1 {
  font-size: var(--fs-h1);
  max-width: 32ch;
  margin: 0 0 1.6rem;
  letter-spacing: -.028em;
}
.hero h1 em { color: var(--accent); }
.hero h1 em.cold { color: var(--cold); }
.hero .line { display: block; }

.lede {
  max-width: 50ch; color: var(--paper-70);
  font-size: clamp(1rem, .4vw + .9rem, 1.18rem);
  margin: 0 0 2.4rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__by {
  max-width: 50ch; margin: -1.1rem 0 2.2rem;
  font-size: .88rem; line-height: 1.6; color: var(--paper-45);
}
.hero__by-lead { color: var(--paper); }
.hero__by a, .making__by a {
  color: var(--paper); text-decoration: none;
  border-bottom: 1px solid var(--accent);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.hero__by a:hover, .making__by a:hover { color: var(--accent); border-color: var(--paper); }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 1.6rem;
  list-style: none; margin: 3rem 0 0; padding: 0;
  font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--paper-45);
}
.hero__meta span { color: var(--ash); margin-left: .3rem; }

.hero__foot {
  position: relative; z-index: 2;
  width: min(var(--wrap), 100%); margin: 4rem auto 0;
  display: flex; align-items: center; gap: 1rem;
  font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--paper-45);
}
.hero__foot-line {
  height: 1px; width: 64px; background: var(--paper-22);
  position: relative; overflow: hidden;
}
.hero__foot-line::after {
  content: ""; position: absolute; inset: 0; background: var(--accent);
  transform: translateX(-100%);
  animation: sweep 3.4s var(--ease) infinite;
}
@keyframes sweep { 0% { transform: translateX(-100%); } 55%, 100% { transform: translateX(100%); } }

/* 2 · strip -------------------------------------------------------------- */
.strip {
  overflow: hidden; padding: 1.6rem 0;
  border-block: 1px solid var(--paper-10);
  background: #0b0b15;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.strip__track {
  display: flex; align-items: center; gap: 2.6rem;
  width: max-content;
  font-family: var(--serif); font-size: 1.15rem; color: var(--paper-45);
  animation: marquee 46s linear infinite;
}
.strip__track i { color: var(--accent); font-style: normal; opacity: .65; }
.strip:hover .strip__track, .strip:focus-within .strip__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 3 · projects ----------------------------------------------------------- */
.project { padding: clamp(6rem, 14vh, 10rem) 0; position: relative; }
.project__grid {
  display: grid; grid-template-columns: 1.04fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem); align-items: center;
}
.project--rhapsode {
  background:
    radial-gradient(70% 60% at 82% 44%, rgba(139, 123, 255, .09), transparent 66%),
    var(--ink);
}
.project__copy .body { max-width: 44ch; }

.specs {
  margin: 2.4rem 0 0; padding: 0;
  display: grid; gap: 0; border-top: 1px solid var(--paper-10);
}
.specs > div {
  display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem;
  padding: .78rem 0; border-bottom: 1px solid var(--paper-10);
}
.specs dt {
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--paper-45); padding-top: .25em;
}
.specs dd { margin: 0; font-size: .92rem; color: var(--paper-70); }

/* reader mock ------------------------------------------------------------ */
.reader {
  position: relative;
  border: 1px solid var(--paper-10);
  border-radius: 16px;
  background: linear-gradient(180deg, #171727 0%, #11111d 100%);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .4);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-2.5deg) rotateX(1.5deg);
  transition: transform .8s var(--ease);
}
.reader:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.reader__chrome {
  display: flex; align-items: center; gap: .8rem;
  padding: .85rem 1.1rem; border-bottom: 1px solid var(--paper-10);
  font-size: .72rem; color: var(--paper-45);
}
.reader__dots { display: flex; gap: .35rem; }
.reader__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--paper-22); }
.reader__title { letter-spacing: .06em; }
.reader__chip {
  margin-left: auto; padding: .18rem .55rem; border-radius: 999px;
  border: 1px solid var(--paper-10); font-size: .64rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--paper-45);
}
.reader__head { padding: 1.9rem 2rem .4rem; }
.reader__book {
  font-size: .62rem; letter-spacing: .22em; color: var(--accent);
  margin: 0 0 .55rem;
}
.reader__chapter {
  font-family: var(--serif); font-size: 1.45rem; color: var(--paper);
  margin: 0;
}
.reader__prose {
  padding: 1.1rem 2rem 2.2rem;
  font-family: var(--serif); font-size: clamp(1.08rem, .6vw + .95rem, 1.3rem);
  line-height: 1.62; color: rgba(236, 233, 248, .30);
  margin: 0; min-height: 8.6em;
}
.reader__prose span { transition: color .28s ease, text-shadow .5s ease; }
.reader__prose span.lit {
  color: var(--paper);
  text-shadow: 0 0 22px rgba(236, 233, 248, .28);
}
.reader__prose span.done { color: rgba(236, 233, 248, .56); }

.reader__player {
  display: flex; align-items: center; gap: 1rem;
  padding: .95rem 1.6rem; border-top: 1px solid var(--paper-10);
  background: rgba(255, 255, 255, .015);
}
.reader__play {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--paper-22); background: transparent; color: var(--paper);
  cursor: pointer; transition: background .25s, border-color .25s, transform .2s;
}
.reader__play:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: scale(1.05); }
.reader__play.is-playing { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.reader__icon { display: block; }
.reader__icon--pause { display: none; }
.reader__play.is-playing .reader__icon--play { display: none; }
.reader__play.is-playing .reader__icon--pause { display: block; }
.reader__wave { flex: 1; height: 34px; width: 100%; }
.reader__time {
  font-family: var(--mono); font-size: .7rem; color: var(--paper-45);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.reader__time span { color: var(--ash); }

/* the demo take ---------------------------------------------------------- */
.demo {
  width: min(var(--wrap), 100% - var(--gutter) * 2, calc(min(72svh, 760px) * 1280 / 871));
  margin: clamp(3rem, 9vh, 6.5rem) auto 0;
}
.demo__slate {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; padding-bottom: .85rem; border-bottom: 1px solid var(--paper-10);
  font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
}
.demo__rec {
  margin: 0; display: inline-flex; align-items: center; gap: .55rem; color: var(--accent);
}
.demo__rec i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 12px 2px rgba(139, 123, 255, .5);
}
.demo__meta { margin: 0; color: var(--ash); }

/* the Opsis footage: 16:9 instead of the tall recorded window, and its own
   spacing under the pinned stage. The status pill stays violet, the same colour
   the Unreleased banner uses, so "alpha" reads as one state across the section. */
.demo--opsis {
  width: min(var(--wrap), 100% - var(--gutter) * 2, calc(min(72svh, 700px) * 16 / 9));
  margin: clamp(4rem, 10vh, 7rem) auto clamp(2rem, 6vh, 4rem);
}
.demo--opsis .demo__caption b { color: var(--paper); font-weight: 600; }
.demo--opsis .demo__frame { border-radius: 12px; }

/* the look is a field: one scene, four styles ---------------------------- */
.styles {
  width: min(var(--wrap), 100% - var(--gutter) * 2);
  margin: clamp(2.5rem, 7vh, 4.5rem) auto 0;
}
.styles__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem 1rem;
  margin: 1.1rem 0 0;
}
.styles__grid figure { margin: 0; }
.styles__grid img,
.styles__grid video {
  display: block; width: 100%; height: auto; border-radius: 8px;
  border: 1px solid var(--paper-10); background: var(--ink-2);
  transition: transform .5s var(--ease), border-color .3s var(--ease);
}
.styles__grid figure:hover img,
.styles__grid figure:hover video {
  transform: translateY(-3px) scale(1.012); border-color: var(--paper-22);
}
.styles__grid figcaption {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .55rem;
  margin-top: .65rem;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--paper-45);
}
.styles__grid figcaption b {
  color: var(--paper); font-weight: 600; letter-spacing: .12em;
}
.styles .demo__caption { max-width: min(100%, 62rem); }

/* translation samples ------------------------------------------------------ */
.translation__source {
  margin: 1.6rem 0 0; padding: .15rem 0 .15rem 1.15rem;
  border-left: 2px solid var(--accent);
  font-family: var(--serif); font-size: clamp(1.12rem, 1.9vw, 1.45rem);
  line-height: 1.45; color: var(--paper); text-wrap: pretty;
}
.translation__list { display: grid; gap: 1.05rem; margin: 1.5rem 0 0; padding: 0; }
.translation__list > div {
  display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: .15rem 1.4rem;
  padding-top: 1.05rem; border-top: 1px solid var(--paper-10);
}
.translation__list dt {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--paper-45); padding-top: .3rem;
}
.translation__list dt em {
  font-style: normal; color: var(--accent); letter-spacing: .06em;
}
.translation__list dd {
  margin: 0; color: var(--paper-70); line-height: 1.68; text-wrap: pretty;
}
.demo--translation .demo__caption { max-width: min(100%, 62rem); }
.translation__note {
  margin: 1.5rem 0 0; max-width: min(100%, 62rem);
  font-size: .97rem; line-height: 1.62; color: var(--paper-45);
}
@media (max-width: 640px) {
  .translation__list > div { grid-template-columns: 1fr; gap: .3rem; }
  .translation__list dt { padding-top: 0; }
}
.demo__frame {
  position: relative; margin: 1.1rem auto 0; border-radius: 14px; overflow: hidden;
  background: #05050a; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), 0 0 0 1px var(--paper-10);
}
.demo__video { display: block; width: 100%; height: auto; }
.demo__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(72% 72% at 50% 50%, rgba(7, 7, 13, 0), rgba(7, 7, 13, .5));
  transition: opacity .45s var(--ease);
}
.demo__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: .6rem; padding: .8rem 1.3rem;
  border-radius: 999px; border: 1px solid var(--paper-22); background: rgba(7, 7, 13, .72);
  color: var(--paper); font: inherit; font-size: .92rem; cursor: pointer; white-space: nowrap;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.demo__play:hover {
  background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
  transform: translate(-50%, -50%) scale(1.03);
}
.demo__play:focus-visible { outline: 2px solid var(--cold); outline-offset: 3px; }
.demo.is-playing .demo__scrim, .demo.is-playing .demo__play { opacity: 0; pointer-events: none; }
.demo__caption {
  margin-top: 1.1rem; max-width: 64ch; color: var(--paper-70);
  font-size: .97rem; line-height: 1.62;
}
.demo__transcript { margin-top: 1rem; max-width: 70ch; font-size: .92rem; color: var(--paper-45); }
.demo__transcript summary {
  cursor: pointer; color: var(--ash); font-family: var(--mono); font-size: .7rem;
  letter-spacing: .1em; text-transform: uppercase;
}
.demo__transcript summary:hover { color: var(--paper); }
.demo__transcript ol { margin: .85rem 0 0; padding-left: 1.15rem; display: grid; gap: .4rem; line-height: 1.55; }
.demo__transcript b { color: var(--paper-70); font-weight: 600; font-variant-numeric: tabular-nums; }
.demo__transcript p { margin: .85rem 0 0; }

/* 4 · Opsis -------------------------------------------------------------- */
.opsis { position: relative; height: 420vh; background: #07070d; }
.opsis__pin {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
}
.opsis__media { position: absolute; inset: 0; }
.opsis__frame {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0;
  transform: scale(1.06);
  transition: opacity .9s ease, transform 1.6s var(--ease);
  filter: saturate(.92) contrast(1.04);
}
.opsis__frame.is-on { opacity: 1; transform: scale(1); }
.opsis__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 7, 13, .94) 0%, rgba(7, 7, 13, .78) 34%, rgba(7, 7, 13, .12) 68%, rgba(7, 7, 13, .5) 100%),
    linear-gradient(180deg, rgba(7, 7, 13, .8) 0%, transparent 28%, transparent 62%, rgba(7, 7, 13, .92) 100%);
}
.opsis__slate {
  position: absolute; top: 96px; right: var(--gutter);
  display: flex; gap: 1rem;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .16em;
  color: var(--paper-45);
}
.opsis__slate span:first-child { color: var(--paper); }
.opsis__banner {
  position: absolute; z-index: 3; top: 124px; right: var(--gutter);
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .45rem .95rem; border-radius: 999px;
  border: 1px solid rgba(139, 123, 255, .45);
  background: rgba(139, 123, 255, .10);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-family: var(--mono); font-size: .66rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--paper);
}
.opsis__banner i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 10px 2px rgba(139, 123, 255, .55);
  animation: beacon 2.6s ease-in-out infinite;
}
.opsis__banner-note { color: var(--paper-45); }
@keyframes beacon { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.opsis__copy {
  position: relative; z-index: 2;
  width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto;
  padding-top: clamp(4rem, 11vh, 9rem);
  max-width: var(--wrap);
}
.opsis__copy > * { max-width: 34rem; }
.opsis__copy .h2 { margin-bottom: 1.6rem; }
.opsis__copy .body { color: rgba(236, 233, 248, .72); }
.opsis__note {
  margin: -.5rem 0 0;
  font-size: .86rem; line-height: 1.6; color: var(--paper-45);
}

.chips {
  display: grid; grid-template-columns: repeat(2, max-content);
  gap: .5rem 1rem; align-items: start;
  list-style: none; padding: 0; margin: 1.8rem 0 0;
}
.chips li {
  font-size: .7rem; letter-spacing: .06em; text-align: left;
  padding: .5rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--paper-22); color: var(--paper-70);
  backdrop-filter: blur(6px);
}

.opsis__rail {
  position: absolute; inset: auto var(--gutter) 2.6rem; z-index: 3;
  height: 46px;
}
.opsis__beats {
  position: absolute; inset: 0 0 18px; display: flex; gap: 3px;
}
.opsis__beats i {
  display: block; height: 100%; flex: 1 1 0; border-radius: 2px;
  background: rgba(236, 233, 248, .16);
  transition: background .4s;
}
.opsis__beats i.past { background: rgba(139, 123, 255, .40); }
.opsis__beats i.void {
  background: repeating-linear-gradient(135deg, rgba(236, 233, 248, .16) 0 3px, transparent 3px 7px);
}
.opsis__head {
  position: absolute; top: -6px; bottom: 12px; left: 0; width: 1px;
  background: var(--paper);
  box-shadow: 0 0 12px 1px rgba(236, 233, 248, .5);
}
.opsis__head::before {
  content: ""; position: absolute; top: -4px; left: -3px;
  width: 7px; height: 7px; background: var(--paper); transform: rotate(45deg);
}
.opsis__hud {
  position: absolute; inset: auto 0 0; display: flex; align-items: baseline; gap: 1rem;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .14em;
  color: var(--paper-70); font-variant-numeric: tabular-nums;
}
.opsis__hud-note {
  margin-left: auto; color: var(--paper-45); letter-spacing: .12em;
}
.opsis__scroll {
  position: absolute; right: var(--gutter); top: 50%;
  transform: rotate(90deg) translateX(50%); transform-origin: right center;
  font-size: .64rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--paper-45);
}

/* the storyboard strip: only where the stage is not pinned -------------- */
.opsis__strip { display: none; }

/* 5 · making ------------------------------------------------------------- */
.making {
  padding: clamp(6rem, 14vh, 11rem) 0;
  background:
    linear-gradient(180deg, #07070d 0%, #0b0b15 40%, #07070d 100%);
}
.making__head { max-width: 52rem; margin-bottom: clamp(3rem, 7vh, 5rem); }
.making__by { margin: 1.5rem 0 0; max-width: 46ch; color: var(--paper-45); line-height: 1.62; }
.receipts {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--paper-10);
}
.receipt {
  padding: 2.2rem 1.6rem 2.4rem 0;
  border-right: 1px solid var(--paper-10);
}
.receipt + .receipt { padding-left: 1.6rem; }
.receipt:last-child { border-right: 0; }
.receipt__n {
  font-family: var(--serif); font-size: 1rem; color: var(--accent);
  display: block; margin-bottom: 1.6rem; letter-spacing: .06em;
}
.receipt h3 {
  font-family: var(--serif); font-weight: 400; font-size: 1.42rem;
  line-height: 1.2; margin: 0 0 .9rem; letter-spacing: -.01em;
}
.receipt p { font-size: .9rem; color: var(--paper-45); line-height: 1.7; margin: 0; }

/* 6 · close -------------------------------------------------------------- */
.close {
  padding: clamp(5.5rem, 13vh, 9rem) 0 clamp(4.5rem, 8vh, 6rem);
  text-align: center;
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(139, 123, 255, .12), transparent 62%),
    var(--ink);
  border-top: 1px solid var(--paper-10);
}
.close__inner { display: grid; justify-items: center; }
.close__title { font-size: clamp(2.1rem, 4.6vw, 4.2rem); max-width: 22ch; margin-bottom: 1.8rem; }
.close__title em { color: var(--accent); }
.close .body { max-width: 52ch; text-align: center; }
.close__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.4rem; }

.foot { border-top: 1px solid var(--paper-10); padding: 1.8rem 0; background: #0b0b15; }
.foot p, .foot a { color: rgba(236, 233, 248, .62); }
.foot__inner {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  align-items: center; justify-content: space-between;
  font-size: .74rem; color: var(--paper-45);
}
.foot p { margin: 0; }
.foot nav { display: flex; gap: 1.4rem; }
.foot a { text-decoration: none; color: var(--paper-45); transition: color .2s; }
.foot a:hover { color: var(--paper); }

/* the lamp that follows the pointer -------------------------------------- */
.lamp {
  position: fixed; top: 0; left: 0; z-index: 80; pointer-events: none;
  width: 460px; height: 460px; margin: -230px 0 0 -230px;
  background: radial-gradient(circle, rgba(139, 123, 255, .12), rgba(139, 123, 255, 0) 66%);
  opacity: 0; transition: opacity .6s ease;
  mix-blend-mode: screen;
}
.lamp.is-on { opacity: 1; }

/* reveals ---------------------------------------------------------------- */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .95s var(--ease), transform .95s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

.hero h1 .line {
  display: block;
  animation: lineIn 1.2s var(--ease) both;
}
.hero h1 .line:nth-child(2) { animation-delay: .14s; }
@keyframes lineIn {
  from { opacity: 0; transform: translateY(.42em); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}
.hero .eyebrow, .hero .lede, .hero__actions, .hero__meta, .hero__foot {
  animation: fadeUp 1.1s var(--ease) both;
}
.hero .eyebrow { animation-delay: .1s; }
.hero .lede { animation-delay: .42s; }
.hero__actions { animation-delay: .56s; }
.hero__meta { animation-delay: .68s; }
.hero__foot { animation-delay: .9s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* responsive ------------------------------------------------------------- */
@media (max-width: 1100px) {
  .receipts { grid-template-columns: repeat(2, 1fr); }
  .receipt { border-right: 0; border-bottom: 1px solid var(--paper-10); padding: 2rem 1.6rem 2rem 0; }
  .receipt:nth-child(odd) { border-right: 1px solid var(--paper-10); }
  .receipt + .receipt { padding-left: 0; }
  .receipt:nth-child(even) { padding-left: 1.6rem; }
  .receipt:nth-last-child(-n+2) { border-bottom: 0; }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .styles__grid { gap: .75rem; }
  .nav__cta { margin-left: auto; }
  .project__grid { grid-template-columns: 1fr; gap: 3rem; }
  .project__copy .body, .body { max-width: none; }
  .reader { transform: none; }
  .reader__prose { min-height: 0; }
}

/* The pinned stage needs room in both directions. On a narrow or a short
   window it stops being a stage and becomes a plate: still, storyboard,
   copy, timeline, in that order. */
@media (max-width: 900px), (max-height: 760px) {
  .opsis { height: auto; }
  .opsis__pin { position: static; height: auto; overflow: visible; padding: 6rem 0 5rem; }
  .opsis__media { position: relative; inset: auto; height: 58vh; margin-bottom: -6rem; }
  .opsis__frame { object-position: 50% 32%; }
  .opsis__scrim {
    background: linear-gradient(180deg, rgba(7, 7, 13, .3), rgba(7, 7, 13, .96) 76%, #07070d 100%);
  }
  .opsis__slate { top: 76px; }
  .opsis__banner { top: 100px; }
  .opsis__copy { padding-top: 0; max-width: none; }
  .opsis__copy > * { max-width: 38rem; }
  .opsis__rail { position: relative; inset: auto; margin: 3rem auto 0; width: min(var(--wrap), 100% - var(--gutter) * 2); }
  .opsis__scroll { display: none; }
  .opsis__hud-note { display: none; }
  .opsis__hud { justify-content: space-between; }

  .opsis__strip {
    display: flex; gap: .6rem; overflow-x: auto;
    scroll-padding-inline: var(--gutter);
    margin: 2.6rem calc(var(--gutter) * -1) 0;
    padding: 0 calc(var(--gutter) * 2) 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .opsis__strip::-webkit-scrollbar { display: none; }
  .opsis__strip figure {
    flex: 0 0 auto; width: 68vw; max-width: 320px; margin: 0;
    position: relative;
  }
  .opsis__strip img {
    width: 100%; height: auto; border-radius: 6px;
    border: 1px solid var(--paper-10);
  }
  .opsis__strip figcaption {
    position: absolute; left: .5rem; bottom: .45rem;
    font-family: var(--mono); font-size: .6rem; letter-spacing: .12em;
    color: var(--paper-70);
    padding: .1rem .35rem; border-radius: 3px; background: rgba(7, 7, 13, .6);
  }
}

@media (max-width: 640px) {
  .nav { height: 60px; }
  .styles__grid { grid-template-columns: 1fr; gap: 1.1rem; }
  .hero { padding-bottom: 3rem; }
  .hero__inner { padding-top: 6.5rem; }
  .hero h1 { max-width: none; font-size: 2.3rem; }
  .hero__meta { gap: 1rem 1.4rem; }
  .hero__foot span:last-child { display: none; }
  .hero__foot { margin-top: 3rem; }
  .reader__head { padding: 1.4rem 1.25rem .3rem; }
  .reader__prose { padding: .9rem 1.25rem 1.6rem; }
  .reader__player { padding: .8rem 1.1rem; }
  .reader__time span { display: none; }
  .specs > div { grid-template-columns: 7rem 1fr; }
  .receipts { grid-template-columns: 1fr; }
  .receipt, .receipt:nth-child(odd) { border-right: 0; padding-left: 0; padding-right: 0; }
  .receipt:nth-child(even) { padding-left: 0; }
  .receipt:nth-last-child(-n+2) { border-bottom: 1px solid var(--paper-10); }
  .receipt:last-child { border-bottom: 0; }
  .hex { font-size: .7rem; }
  .opsis__media { height: 46vh; }
  .opsis__beats { gap: 2px; }
  .foot__inner { flex-direction: column; align-items: flex-start; }
}

/* motion preferences ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero h1 .line, .hero .eyebrow, .hero .lede, .hero__actions, .hero__meta, .hero__foot {
    animation: none !important; opacity: 1; transform: none; filter: none;
  }
  .strip__track { animation: none; transform: none; flex-wrap: wrap; width: auto; }
  .strip__dup { display: none; }
  .grain { animation: none; }
  .hero__stage { opacity: 1; }
  .opsis { height: auto; }
  .opsis__pin { position: static; height: auto; overflow: visible; padding: 6rem 0 4rem; }
  .opsis__media { position: relative; inset: auto; height: 56vh; margin-bottom: -5rem; }
  .opsis__scrim {
    background: linear-gradient(180deg, rgba(7, 7, 13, .25), rgba(7, 7, 13, .96) 78%, #07070d 100%);
  }
  .opsis__copy { padding-top: 0; }
  .opsis__copy > * { max-width: 40rem; }
  .opsis__rail {
    position: relative; inset: auto; margin: 3rem auto 0;
    width: min(var(--wrap), 100% - var(--gutter) * 2);
  }
  .opsis__frame { transform: none; object-position: 50% 32%; }
  .opsis__frame:not(.is-on) { display: none; }
  .opsis__scroll { display: none; }
  .reader { transform: none; }
}
