:root {
  --paper: #f7f7f4;
  --paper-deep: #ededeb;
  --ink: #111111;
  --soft-ink: #373737;
  --muted: #7f7f7b;
  --line: rgba(17, 17, 17, 0.14);
  --line-strong: rgba(17, 17, 17, 0.32);
  --cyan: #5cc8ff;
  --ease-spring: cubic-bezier(0.2, 0.85, 0.25, 1);
  --slow: 1100ms;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
  cursor: none;
}

button:focus-visible,
[tabindex]:focus-visible,
a:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 8px;
}

@media (pointer: fine) {
  html,
  body,
  body * {
    cursor: none !important;
  }
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 16px;
  left: 16px;
  padding: 10px 12px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 200ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.manifesto {
  --cursor-color: var(--ink);
  position: relative;
  height: 100svh;
  overflow: hidden;
  background: var(--paper);
  transition: background-color 650ms ease, color 650ms ease;
}

.manifesto.is-dark-surface {
  --cursor-color: #ffffff;
  background: #111111;
  color: #f7f7f4;
}

.chapters {
  position: relative;
  z-index: 1;
  height: 100svh;
  overflow: hidden;
  touch-action: pan-x;
}

.chapter {
  --chapter-opacity: 0;
  --chapter-detail-opacity: 0;
  --chapter-surface-opacity: 0;
  --chapter-scale: 1;
  --chapter-y: 0px;
  position: absolute;
  z-index: 0;
  inset: 0;
  height: 100svh;
  padding: 92px 5.8vw 72px;
  display: grid;
  grid-template-columns: minmax(150px, 0.6fr) minmax(300px, 1.9fr) minmax(150px, 0.6fr);
  align-items: center;
  isolation: isolate;
  visibility: hidden;
  pointer-events: none;
  contain: layout paint;
}

.chapter::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--chapter-surface, var(--paper));
  opacity: var(--chapter-surface-opacity);
  will-change: opacity;
}

.chapter.is-active,
.chapter.is-transitioning,
.chapter.is-previewing {
  visibility: visible;
}

.chapter.is-active {
  z-index: 2;
  pointer-events: auto;
}

.chapter.is-transitioning,
.chapter.is-previewing {
  z-index: 3;
  pointer-events: none;
}

.chapter > .chapter-body {
  opacity: var(--chapter-opacity);
  transform: translate3d(0, var(--chapter-y), 0) scale(var(--chapter-scale));
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}

.chapter > .chapter-number,
.chapter > .chapter-meta,
.chapter > .chapter-side-note {
  opacity: var(--chapter-detail-opacity);
  transform: translate3d(0, calc(var(--chapter-y) * 0.34), 0);
  will-change: transform, opacity;
}

.chapter--dark {
  --chapter-surface: #111111;
  color: #f7f7f4;
}

.chapter:not(.chapter--dark) {
  --chapter-surface: var(--paper);
}

.chapter.is-resetting-interaction .chapter-body {
  animation: chapter-reset-breath 720ms cubic-bezier(0.2, 0.72, 0.22, 1);
}

@keyframes chapter-reset-breath {
  0%, 100% { filter: none; }
  42% { filter: blur(1.4px); }
}

.chapter-number,
.chapter-meta,
.chapter-side-note,
.chapter-hint,
.eyebrow,
.annotation,
.site-chrome,
.site-footer,
.contact-card__top,
.contact-card__label,
.copy-status,
.show-qr,
.copy-id {
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chapter-number {
  position: absolute;
  left: 5.8vw;
  bottom: 26px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.chapter-meta {
  position: absolute;
  top: 92px;
  left: 5.8vw;
  color: var(--muted);
}

.chapter-side-note {
  grid-column: 3;
  justify-self: end;
  align-self: end;
  max-width: 170px;
  margin: 0 0 76px;
  color: var(--muted);
  text-align: right;
  text-transform: none;
  letter-spacing: 0;
}

.hero-title:focus-visible,
.erase-stage:focus-visible,
.fabric-stage:focus-visible,
.infinite-viewport:focus-visible,
.particle-word:focus-visible,
.breathing-title:focus-visible {
  outline: none;
}

.hero-title:focus-visible,
.breathing-title:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 12px;
}

.erase-stage:focus-visible,
.fabric-stage:focus-visible,
.infinite-viewport:focus-visible,
.particle-word:focus-visible {
  box-shadow: inset 0 -1px 0 rgba(92, 200, 255, 0.6);
}

.chapter-body {
  grid-column: 2;
  width: min(100%, 920px);
  justify-self: center;
}

.chapter-body--opening {
  position: relative;
  max-width: 1060px;
}

.eyebrow {
  margin: 0 0 28px;
  color: var(--muted);
}

.hero-title,
.breathing-title,
.final-title {
  margin: 0;
  font-size: 6rem;
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-title {
  position: relative;
  z-index: 2;
  max-width: 900px;
  transform-origin: 50% 50%;
  transition: transform 560ms var(--ease-spring), opacity 400ms ease;
}

.hero-title .word {
  display: inline-block;
  white-space: nowrap;
  transition: transform 900ms var(--ease-spring);
}

.opening-char {
  display: inline-block;
  will-change: transform, opacity, filter;
  transition: transform 220ms var(--ease-spring), opacity 220ms ease, filter 220ms ease;
}

.hero-title.is-compressing .opening-char {
  transform: translate3d(var(--compress-x), var(--compress-y), 0) scale(0.96);
  transition-duration: 140ms;
}

.hero-title.is-bursting .opening-char {
  opacity: 0;
  filter: blur(4px);
  transform: translate3d(var(--burst-x), var(--burst-y), 0) rotate(var(--burst-rotate)) scale(0.68);
  transition-duration: var(--burst-duration);
  transition-delay: var(--burst-delay);
  transition-timing-function: cubic-bezier(0.16, 0.68, 0.2, 1);
}

.hero-title.is-forming .opening-char {
  opacity: 0;
  filter: blur(5px);
  transform: translate3d(var(--form-x), var(--form-y), 0) rotate(var(--form-rotate)) scale(0.72);
  transition: transform 1050ms var(--ease-spring), opacity 760ms ease, filter 800ms ease;
  transition-delay: var(--form-delay);
}

.hero-title.is-forming.is-settled .opening-char {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) rotate(0) scale(1);
}

.opening-remnants {
  position: absolute;
  z-index: 1;
  inset: 22% 0 auto;
  height: 210px;
  overflow: visible;
  pointer-events: none;
}

.opening-remnants span {
  position: absolute;
  width: var(--fragment-size);
  height: var(--fragment-size);
  border-radius: 50%;
  background: var(--fragment-color);
  opacity: 0;
  animation: opening-fragment var(--fragment-duration) var(--ease-spring) forwards;
}

@keyframes opening-fragment {
  0% { opacity: 0; transform: translate3d(var(--fragment-x), var(--fragment-y), 0) scale(0.4); }
  18% { opacity: 0.72; }
  100% { opacity: 0; transform: translate3d(var(--fragment-dx), var(--fragment-dy), 0) scale(0.1); }
}

.interactive-copy:hover .word:nth-child(1) { transform: translateX(-3px); }
.interactive-copy:hover .word:nth-child(2) { transform: translateX(-1px); }
.interactive-copy:hover .word:nth-child(3) { transform: translateX(1px); }
.interactive-copy:hover .word:nth-child(4) { transform: translateX(3px); }

.annotation {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: none;
}

.chapter-hint {
  margin: 74px 0 0;
  color: var(--soft-ink);
  text-transform: none;
  letter-spacing: 0;
}

.chapter-hint span {
  margin-left: 10px;
  color: var(--muted);
  font-size: 10px;
}

.chapter--dark .chapter-hint,
.chapter--dark .chapter-side-note,
.chapter--dark .annotation,
.chapter--dark .eyebrow {
  color: rgba(247, 247, 244, 0.58);
}

.chapter--dark .chapter-number,
.chapter--dark .chapter-meta {
  color: rgba(247, 247, 244, 0.45);
}

.erase-stage {
  position: relative;
  min-height: 196px;
  display: flex;
  align-items: center;
  overflow: hidden;
  user-select: none;
  touch-action: none;
}

.erase-sentence,
.erase-reveal {
  margin: 0;
  font-size: 4.9rem;
  line-height: 0.98;
  font-weight: 400;
  letter-spacing: 0;
}

.erase-sentence {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.erase-word {
  display: inline-block;
  white-space: nowrap;
}

.erase-letter {
  display: inline-block;
  transition: opacity 420ms ease, transform 720ms var(--ease-spring), filter 420ms ease, color 300ms ease;
}

.erase-letter.is-erased,
.erase-letter.is-melting {
  opacity: 0;
  transform: translate3d(var(--melt-x, 0), var(--melt-y, 24px), 0) rotate(var(--melt-rotate, 7deg)) scale(0.72);
  filter: blur(5px);
}

.erase-letter.is-restoring {
  opacity: 0;
  transform: translate3d(var(--restore-x, 0), var(--restore-y, 18px), 0) scale(0.82);
  filter: blur(4px);
}

.erase-word.is-complete .erase-letter:not(.is-erased) {
  color: var(--cyan);
}

.erase-reveal {
  position: absolute;
  z-index: 1;
  max-width: 760px;
  color: var(--cyan);
  opacity: 0;
  transform: translateY(18px);
  clip-path: inset(0 100% 0 0);
  transition: opacity 900ms var(--ease-spring), transform 900ms var(--ease-spring), clip-path 1250ms var(--ease-spring);
}

.erase-stage.is-revealing .erase-reveal {
  opacity: 0.72;
  transform: translateY(8px);
  clip-path: inset(0 42% 0 0);
}

.erase-stage.is-revealed .erase-reveal {
  opacity: 1;
  transform: translateY(0);
  clip-path: inset(0 0 0 0);
}

.word-field {
  position: relative;
  min-height: 360px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  user-select: none;
  touch-action: none;
  overflow: hidden;
}

.word-block {
  position: absolute;
  padding: 0;
  background: transparent;
  font-size: 4.4rem;
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0;
  transform: translate3d(0, 0, 0);
  transition: color 260ms ease, text-shadow 360ms ease;
  will-change: transform;
}

.word-block[data-word="Identity"] { top: 14%; left: 1%; }
.word-block[data-word="Memory"] { top: 41%; left: 34%; }
.word-block[data-word="Motion"] { top: 66%; left: 10%; }
.word-block[data-word="Recognition"] { top: 29%; left: 62%; }

.word-block:hover,
.word-block.is-dragging {
  color: var(--cyan);
  text-shadow: 0 0 16px rgba(92, 200, 255, 0.18);
}

.relation-line {
  position: absolute;
  z-index: 0;
  left: 0;
  top: 0;
  width: 0;
  height: 1px;
  opacity: 0;
  transform-origin: 0 50%;
  pointer-events: none;
  transition: opacity 280ms ease;
}

.relation-line--memory {
  background: rgba(92, 200, 255, 0.52);
}

.relation-line--identity {
  background: rgba(255, 122, 120, 0.42);
}

.word-field__pulse {
  position: absolute;
  z-index: 0;
  width: 10px;
  height: 10px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.word-field__pulse.is-visible {
  animation: semantic-pulse 1000ms ease-out forwards;
}

@keyframes semantic-pulse {
  0% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.3); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(7); }
}

.fabric-stage {
  position: relative;
  min-height: 360px;
  padding: 58px 0 42px;
  overflow: hidden;
  cursor: none;
  user-select: none;
  touch-action: none;
}

.fabric-line {
  position: relative;
  z-index: 1;
  font-size: 5.5rem;
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0;
  transform-origin: 0 50%;
  white-space: nowrap;
}

.fabric-line--bottom {
  margin-left: 24%;
  color: var(--soft-ink);
}

.fabric-thread {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 12%;
  width: 76%;
  height: 1px;
  background: var(--line-strong);
  transform: translateY(var(--thread-y, 0)) rotate(var(--thread-angle, -9deg)) scaleX(var(--thread-scale, 0.82));
  transform-origin: center;
  transition: transform 850ms var(--ease-spring), background-color 500ms ease;
}

.fabric-char {
  display: inline-block;
  transform: translate3d(var(--fabric-x, 0), var(--fabric-y, 0), 0) rotate(var(--fabric-rotate, 0)) scaleY(var(--fabric-scale-y, 1));
  transform-origin: 50% 55%;
  transition: transform 900ms var(--ease-spring), color 400ms ease;
  will-change: transform;
}

.fabric-space {
  display: inline-block;
  width: 0.24em;
}

.fabric-stage.is-stretched .fabric-char {
  color: color-mix(in srgb, var(--ink) 78%, var(--cyan));
  transition-duration: 90ms;
  transition-timing-function: linear;
}

.fabric-stage.is-stretched .fabric-thread {
  background: rgba(92, 200, 255, 0.52);
}

.fabric-reveal {
  position: absolute;
  z-index: 2;
  right: 2px;
  bottom: 18px;
  margin: 0;
  color: var(--cyan);
  font-size: 11px;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 700ms ease, transform 900ms var(--ease-spring);
}

.fabric-stage.is-folded .fabric-reveal {
  opacity: 1;
  transform: translateY(0);
}

.liquid-word {
  --liquid-x: 50%;
  --liquid-y: 50%;
  --liquid-tail-x: 50%;
  --liquid-tail-y: 50%;
  position: relative;
  display: flex;
  width: max-content;
  max-width: 100%;
  font-size: 10rem;
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: 0;
  user-select: none;
  touch-action: none;
}

.liquid-word::before,
.liquid-word::after {
  content: attr(data-text);
  position: absolute;
  z-index: 2;
  inset: 0;
  color: var(--cyan);
  pointer-events: none;
  opacity: 0;
  will-change: opacity, -webkit-mask-position, mask-position;
}

.liquid-word::before {
  color: rgba(92, 200, 255, 0.48);
  filter: blur(1.2px);
  -webkit-mask: radial-gradient(ellipse 92px 68px at var(--liquid-tail-x) var(--liquid-tail-y), #000 0 16%, rgba(0, 0, 0, 0.78) 35%, rgba(0, 0, 0, 0.25) 64%, transparent 88%);
  mask: radial-gradient(ellipse 92px 68px at var(--liquid-tail-x) var(--liquid-tail-y), #000 0 16%, rgba(0, 0, 0, 0.78) 35%, rgba(0, 0, 0, 0.25) 64%, transparent 88%);
  transition: opacity 760ms ease;
}

.liquid-word::after {
  text-shadow: 0 0 7px rgba(92, 200, 255, 0.22);
  filter: saturate(0.94);
  -webkit-mask: radial-gradient(ellipse 78px 58px at var(--liquid-x) var(--liquid-y), #000 0 22%, rgba(0, 0, 0, 0.88) 42%, rgba(0, 0, 0, 0.34) 69%, transparent 94%);
  mask: radial-gradient(ellipse 78px 58px at var(--liquid-x) var(--liquid-y), #000 0 22%, rgba(0, 0, 0, 0.88) 42%, rgba(0, 0, 0, 0.34) 69%, transparent 94%);
  transition: opacity 480ms ease;
}

.liquid-word span {
  display: inline-block;
  color: var(--ink);
  transition: transform 650ms var(--ease-spring);
  will-change: transform;
}

.liquid-word.is-active::before,
.liquid-word.is-active::after {
  opacity: 0.92;
}

.liquid-word.is-active::before {
  opacity: 0.48;
}

.particle-word {
  position: relative;
  min-height: 300px;
  padding-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 0 0.24em;
  user-select: none;
  cursor: none;
}

.particle-word > span {
  position: relative;
  display: inline-block;
  font-size: 7.2rem;
  line-height: 0.84;
  letter-spacing: 0;
  transition: opacity 600ms ease, transform 1000ms var(--ease-spring), filter 700ms ease, color 500ms ease;
}

.particle-word.is-dissolved > span {
  opacity: 0;
  filter: blur(9px);
}

.particle-word.is-dissolved .dissolve-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0;
  animation: dissolve 1800ms var(--ease-spring) forwards;
}

@keyframes dissolve {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.7); }
  22% { opacity: 0.9; }
  100% { opacity: 0; transform: translate3d(var(--dx), var(--dy), 0) scale(0.1); }
}

.breathing-title {
  max-width: 900px;
  user-select: none;
  touch-action: none;
}

.repel-word {
  display: inline-block;
  white-space: nowrap;
}

.repel-char {
  --repel-x: 0px;
  --repel-stretch: 1;
  --repel-ghost-x: 0px;
  --repel-ghost-opacity: 0;
  --repel-ghost-blur: 0px;
  --repel-ghost-scale: 1;
  position: relative;
  display: inline-block;
  transform: translate3d(var(--repel-x), 0, 0) scaleX(var(--repel-stretch));
  transform-origin: 50% 55%;
  transition: color 460ms ease;
  will-change: transform;
}

.repel-char::after {
  content: attr(data-char);
  position: absolute;
  inset: 0;
  color: var(--cyan);
  opacity: var(--repel-ghost-opacity);
  filter: blur(var(--repel-ghost-blur));
  transform: translateX(var(--repel-ghost-x)) scaleX(var(--repel-ghost-scale));
  transform-origin: 50% 50%;
  pointer-events: none;
}

.breathing-title.is-disturbed .repel-char {
  color: color-mix(in srgb, var(--ink) 82%, var(--cyan));
}

.infinite-viewport {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  cursor: none;
  touch-action: none;
  user-select: none;
}

.infinite-viewport::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 1px;
  background: var(--line-strong);
  opacity: 0.3;
  transform: translate(-50%, -50%) scaleX(0.35);
  transition: opacity 600ms ease, transform 700ms var(--ease-spring);
}

.infinite-viewport.is-initialized::after {
  opacity: 0;
  transform: translate(-50%, -50%) scaleX(1.8);
}

.infinite-track {
  position: absolute;
  inset: 0;
  width: 210%;
  display: flex;
  align-items: center;
  gap: 16vw;
  padding: 0 12vw;
  transform: translateX(0);
  transition: transform 1100ms var(--ease-spring);
}

.infinite-note {
  flex: 0 0 240px;
  margin: 0;
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: 0;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 900ms var(--ease-spring), transform 900ms var(--ease-spring), color 400ms ease;
}

.infinite-note.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.infinite-note--one {
  transform: translate3d(var(--note-x, 0px), 22px, 0);
}

.infinite-note--one.is-visible {
  transform: translate3d(var(--note-x, 0px), 0, 0);
}

.infinite-note--two { margin-top: 110px; color: var(--soft-ink); }
.infinite-note--three { margin-top: -90px; color: var(--muted); }
.infinite-note--four { color: var(--cyan); }

.remove-field {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.1em 0.26em;
  min-height: 176px;
  border-bottom: 1px solid var(--line);
}

.remove-word {
  padding: 0;
  background: transparent;
  font-size: 7.4rem;
  line-height: 0.88;
  letter-spacing: 0;
  transition: opacity 520ms ease, transform 750ms var(--ease-spring), color 260ms ease;
}

.remove-word:hover {
  color: var(--cyan);
}

.remove-word.is-removed {
  opacity: 0;
  transform: translateY(50px) rotate(5deg);
  pointer-events: none;
}

.remove-reveal {
  max-width: 800px;
  margin: 46px 0 0;
  color: var(--cyan);
  font-size: 3.3rem;
  line-height: 0.98;
  letter-spacing: 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 900ms var(--ease-spring), transform 900ms var(--ease-spring);
}

.remove-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.final-title {
  max-width: 860px;
  font-size: 5.6rem;
  overflow: hidden;
  transition: opacity 600ms ease, transform 700ms var(--ease-spring), max-height 700ms var(--ease-spring);
}

.chapter-body--final > .annotation {
  overflow: hidden;
  transition: opacity 500ms ease, transform 650ms var(--ease-spring), max-height 650ms var(--ease-spring), margin 650ms var(--ease-spring);
}

.final-actions {
  margin-top: 60px;
  display: flex;
  align-items: flex-end;
  gap: 34px;
}

.conversation-trigger {
  position: relative;
  margin: 0;
  padding: 0 0 9px;
  background: transparent;
  border-bottom: 1px solid var(--ink);
  font-size: 18px;
  line-height: 1.3;
  text-align: left;
  transition: color 260ms ease, border-color 260ms ease;
}

.conversation-trigger span,
.back-to-start small,
.copy-id span,
.show-qr span {
  margin-left: 9px;
  color: var(--muted);
  font-size: 11px;
}

.conversation-trigger:hover,
.back-to-start:hover,
.copy-id:hover,
.show-qr:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.back-to-start {
  padding: 0 0 8px;
  background: transparent;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
  transition: color 260ms ease, border-color 260ms ease, transform 420ms var(--ease-spring);
}

.back-to-start span {
  margin-left: 7px;
}

.back-to-start small {
  font-weight: 400;
}

.back-to-start:hover {
  transform: translateY(-2px);
}

.contact-card {
  width: min(100%, 470px);
  max-height: 0;
  margin-top: 0;
  padding: 0;
  overflow: hidden;
  border-top: 1px solid transparent;
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
  transition: opacity 850ms var(--ease-spring), transform 850ms var(--ease-spring), max-height 850ms var(--ease-spring), margin 850ms var(--ease-spring), padding 850ms var(--ease-spring), border-color 500ms ease;
}

.contact-card.is-visible {
  max-height: 390px;
  margin-top: 42px;
  padding: 24px 0 0;
  border-top-color: var(--ink);
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.chapter--final.is-conversation-open {
  background: #efefec;
}

.chapter--final.is-conversation-open .final-title,
.chapter--final.is-conversation-open .chapter-body--final > .annotation {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  transform: translateY(-14px);
}

.chapter--final.is-conversation-open .final-actions {
  margin-top: 18px;
}

.chapter--final.is-conversation-open .contact-card {
  margin-top: 30px;
}

.contact-card__top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

.contact-card__label {
  margin: 56px 0 10px;
  color: var(--muted);
}

.contact-card__id {
  margin: 0;
  font-size: 3.6rem;
  line-height: 0.95;
  letter-spacing: 0;
}

.contact-card__note {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.copy-id,
.show-qr {
  margin-top: 28px;
  padding: 0 0 8px;
  background: transparent;
  border-bottom: 1px solid var(--ink);
  text-transform: none;
  letter-spacing: 0;
  transition: color 260ms ease, border-color 260ms ease;
}

.show-qr {
  display: block;
  margin-top: 18px;
  border-bottom: 0;
  color: var(--muted);
  text-transform: none;
}

.copy-status {
  min-height: 17px;
  margin: 12px 0 0;
  color: var(--cyan);
  text-transform: none;
  letter-spacing: 0;
}

.site-chrome {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  padding: 26px 5.8vw 0;
  display: grid;
  grid-template-columns: 1fr minmax(120px, 320px) 1fr;
  align-items: start;
  pointer-events: none;
}

.wordmark {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.wordmark__mark {
  font-weight: 600;
  letter-spacing: 0.12em;
}

.wordmark__descriptor {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: none;
}

.progress-rail {
  height: 1px;
  margin-top: 7px;
  background: var(--line);
}

.progress-rail span {
  display: block;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: background-color 500ms ease;
}

.site-chrome__note {
  justify-self: end;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
}

.site-footer {
  position: fixed;
  z-index: 9;
  right: 5.8vw;
  bottom: 26px;
  color: var(--muted);
  text-align: right;
  text-transform: none;
  letter-spacing: 0;
  pointer-events: none;
}

.site-footer span + span {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  opacity: 0.6;
}

.audio-controls {
  position: fixed;
  z-index: 18;
  right: 5.8vw;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(-50%);
  opacity: 0.68;
  transition: opacity 260ms ease;
}

.audio-controls:hover,
.audio-controls:focus-within {
  opacity: 1;
}

.audio-toggle {
  position: relative;
  width: 20px;
  height: 20px;
  padding: 0;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--ink);
}

.audio-speaker {
  position: relative;
  width: 13px;
  height: 10px;
  display: block;
  border-left: 4px solid currentColor;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
}

.audio-speaker::before,
.audio-speaker::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 50%;
  border: 1px solid currentColor;
  border-left-color: transparent;
  border-top-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: translateY(-50%);
}

.audio-speaker::before {
  width: 8px;
  height: 13px;
}

.audio-speaker::after {
  width: 13px;
  height: 19px;
}

.audio-toggle[aria-pressed="true"] .audio-speaker::before,
.audio-toggle[aria-pressed="true"] .audio-speaker::after {
  opacity: 0.18;
}

.audio-toggle[aria-pressed="true"] .audio-speaker {
  opacity: 0.58;
}

.volume-slider {
  width: 86px;
  height: 18px;
  appearance: none;
  background: linear-gradient(to right, var(--ink) 0 var(--volume-progress, 32%), var(--line-strong) var(--volume-progress, 32%) 100%) center / 100% 2px no-repeat;
  outline: none;
}

.volume-slider::-webkit-slider-thumb {
  width: 8px;
  height: 8px;
  appearance: none;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
}

.volume-slider::-moz-range-thumb {
  width: 8px;
  height: 8px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
}

.audio-level {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.84;
  transition: transform 320ms ease, opacity 320ms ease;
}

.audio-controls.is-playing .audio-level {
  animation: audio-pulse 2400ms ease-in-out infinite;
}

@keyframes audio-pulse {
  0%, 100% { transform: scale(0.7); opacity: 0.42; }
  50% { transform: scale(1.45); opacity: 1; }
}

.manifesto.is-dark-surface .audio-toggle {
  color: var(--paper);
}

.manifesto.is-dark-surface .volume-slider {
  background: linear-gradient(to right, var(--paper) 0 var(--volume-progress, 32%), rgba(247, 247, 244, 0.35) var(--volume-progress, 32%) 100%) center / 100% 2px no-repeat;
}

.manifesto.is-dark-surface .volume-slider::-webkit-slider-thumb,
.manifesto.is-dark-surface .volume-slider::-moz-range-thumb {
  border-color: var(--paper);
  background: #111111;
}

.interaction-canvas {
  position: fixed;
  z-index: 30;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cursor-particle {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-30px, -30px, 0);
  transition: opacity 350ms ease;
  will-change: transform;
}

.cursor-particle.is-visible {
  opacity: 1;
}

.cursor-glass__face,
.cursor-glass__edge,
.cursor-glass__highlight {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 11px;
  display: block;
  clip-path: polygon(49% 0, 100% 33%, 73% 100%, 12% 76%, 0 25%);
  transform: translate(-50%, -50%);
  transition: opacity 280ms ease, transform 360ms var(--ease-spring), filter 500ms ease;
}

.cursor-glass__face {
  z-index: 2;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.82), rgba(92, 200, 255, 0.76) 42%, rgba(76, 160, 222, 0.7));
  box-shadow: 0 0 13px rgba(92, 200, 255, 0.42);
  opacity: 0.88;
}

.cursor-glass__edge {
  width: 13px;
  height: 13px;
  opacity: 0.72;
}

.cursor-glass__edge--cyan {
  z-index: 1;
  background: rgba(92, 200, 255, 0.7);
  transform: translate(calc(-50% - 1.2px), calc(-50% + 1px)) rotate(-9deg);
}

.cursor-glass__edge--coral {
  z-index: 0;
  background: rgba(255, 122, 120, 0.76);
  transform: translate(calc(-50% + 1.3px), calc(-50% - 0.8px)) rotate(8deg);
}

.cursor-glass__edge--gold {
  z-index: 0;
  background: rgba(255, 209, 102, 0.78);
  transform: translate(calc(-50% + 0.4px), calc(-50% + 1.5px)) rotate(4deg);
}

.cursor-glass__highlight {
  z-index: 4;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.88);
  opacity: 0.7;
  transform: translate(-50%, -50%) translate(-2px, -2px) rotate(20deg);
}

.cursor-particle.is-interactive .cursor-glass__face {
  filter: saturate(1.2) brightness(1.08);
}

.cursor-particle.is-holding .cursor-glass__face {
  transform: translate(-50%, -50%) scale(0.7);
  filter: saturate(1.25) brightness(1.14);
}

.cursor-particle.is-splitting .cursor-glass__edge--cyan {
  transform: translate(calc(-50% - 3px), calc(-50% + 2px)) rotate(-18deg);
}

.cursor-particle.is-splitting .cursor-glass__edge--coral {
  transform: translate(calc(-50% + 3px), calc(-50% - 2px)) rotate(17deg);
}

.cursor-particle.is-splitting .cursor-glass__edge--gold {
  transform: translate(calc(-50% + 1px), calc(-50% + 3px)) rotate(10deg);
}

.manifesto.is-dark-surface .cursor-glass__face {
  filter: brightness(1.28) saturate(1.05);
}

.manifesto.is-dark-surface .cursor-glass__highlight {
  opacity: 0.92;
}

.easter-constellation {
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 900ms ease;
}

.easter-constellation.is-visible {
  opacity: 1;
}

.easter-constellation span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(92, 200, 255, 0.55);
}

.easter-constellation i {
  position: absolute;
  height: 1px;
  background: rgba(92, 200, 255, 0.26);
  transform-origin: left center;
}

.easter-line {
  position: fixed;
  z-index: 21;
  right: 5.8vw;
  bottom: 72px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 700ms ease, transform 700ms var(--ease-spring);
}

.easter-line.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.is-slow-motion *,
body.is-slow-motion *::before,
body.is-slow-motion *::after {
  animation-duration: 26000ms !important;
  transition-duration: 2600ms !important;
}

body.is-shaking .chapter-body {
  animation: shake-words 520ms var(--ease-spring);
}

body.is-holding-memory .chapter.is-active .chapter-body {
  transform: translateY(-4px) scale(1.002);
  transition: transform 1000ms var(--ease-spring);
}

@keyframes shake-words {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

@media (max-width: 980px) {
  .hero-title,
  .breathing-title,
  .final-title {
    font-size: 4.7rem;
  }

  .erase-sentence,
  .erase-reveal {
    font-size: 4rem;
  }

  .fabric-line {
    font-size: 4.6rem;
  }

  .liquid-word {
    font-size: 8rem;
  }

  .particle-word > span {
    font-size: 5.8rem;
  }

  .remove-word {
    font-size: 6rem;
  }
}

@media (max-width: 720px) {
  body {
    overflow: hidden;
  }

  button {
    cursor: pointer;
  }

  .cursor-particle,
  .interaction-canvas {
    display: none;
  }

  .site-chrome {
    padding: 19px 20px 0;
    grid-template-columns: 1fr 100px;
  }

  .site-chrome__note {
    display: none;
  }

  .progress-rail {
    grid-column: 2;
    grid-row: 1;
    margin-top: 6px;
  }

  .chapter {
    min-height: 100svh;
    padding: 78px 20px 68px;
    display: block;
  }

  .chapter-meta {
    top: 78px;
    left: 20px;
    max-width: 52%;
  }

  .chapter-number {
    left: 20px;
    bottom: 22px;
  }

  .chapter-side-note {
    position: absolute;
    right: 20px;
    bottom: 20px;
    max-width: 150px;
    margin: 0;
  }

  .chapter-body,
  .chapter-body--opening {
    width: 100%;
    padding-top: 118px;
  }

  .eyebrow {
    margin-bottom: 22px;
    font-size: 10px;
  }

  .hero-title,
  .breathing-title,
  .final-title {
    font-size: 3.3rem;
    line-height: 0.98;
    letter-spacing: 0;
  }

  .annotation {
    font-size: 10px;
  }

  .chapter-hint {
    margin-top: 50px;
    font-size: 10px;
  }

  .erase-stage {
    min-height: 155px;
  }

  .erase-sentence,
  .erase-reveal {
    font-size: 2.65rem;
  }

  .word-field {
    min-height: 290px;
  }

  .word-block {
    font-size: 2.55rem;
  }

  .word-block[data-word="Identity"] { top: 15%; left: 1%; }
  .word-block[data-word="Memory"] { top: 40%; left: 31%; }
  .word-block[data-word="Motion"] { top: 67%; left: 9%; }
  .word-block[data-word="Recognition"] { top: 28%; right: 0; left: auto; }

  .fabric-stage {
    min-height: 260px;
    padding: 48px 0 30px;
  }

  .fabric-line {
    font-size: 2.65rem;
  }

  .fabric-line--bottom {
    margin-left: 25%;
  }

  .liquid-word {
    font-size: 5.2rem;
  }

  .particle-word {
    min-height: 245px;
  }

  .particle-word > span {
    font-size: 3.65rem;
  }

  .breathing-title {
    max-width: 350px;
  }

  .infinite-viewport {
    min-height: 250px;
  }

  .infinite-track {
    width: 390%;
    gap: 34vw;
    padding: 0 18vw;
  }

  .infinite-note {
    flex-basis: 170px;
    font-size: 1.7rem;
  }

  .remove-field {
    min-height: 125px;
  }

  .remove-word {
    font-size: 4.15rem;
  }

  .remove-reveal {
    margin-top: 34px;
    font-size: 2rem;
  }

  .final-actions {
    margin-top: 42px;
    display: block;
  }

  .conversation-trigger {
    margin-top: 0;
    font-size: 15px;
  }

  .back-to-start {
    display: block;
    margin-top: 22px;
    font-size: 13px;
  }

  .contact-card {
    margin-top: 0;
  }

  .contact-card.is-visible {
    margin-top: 34px;
  }

  .contact-card__id {
    font-size: 2.5rem;
  }

  .site-footer {
    display: none;
  }

  .audio-controls {
    right: 20px;
    top: auto;
    bottom: 96px;
    transform: none;
    opacity: 0.78;
  }

  .volume-slider {
    width: 72px;
  }

  .easter-line {
    right: 20px;
    bottom: 60px;
    max-width: 190px;
    font-size: 10px;
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
