:root {
  --ink: #07090d;
  --ink-soft: #0e1219;
  --panel: #131822;
  --paper: #e9edf2;
  --muted: #9ba5b3;
  --line: rgba(233, 237, 242, 0.16);
  --cyan: #83f3df;
  --cyan-deep: #30cbb2;
  --amber: #ffba6b;
  --violet: #a89cff;
  --radius-sm: 12px;
  --radius-md: 22px;
  --radius-lg: 36px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
  --shell: min(1180px, calc(100vw - 64px));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  color: var(--paper);
  background:
    radial-gradient(circle at 80% 5%, rgba(71, 109, 131, 0.12), transparent 24rem),
    var(--ink);
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: var(--ink);
  background: var(--cyan);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

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

.page-shell {
  width: var(--shell);
  margin-inline: auto;
}

.section-pad {
  padding-block: clamp(96px, 13vw, 180px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 12px 16px;
  color: var(--ink);
  background: var(--cyan);
  border-radius: 8px;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

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

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 84px;
  align-items: center;
  justify-content: space-between;
  padding-inline: max(32px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid transparent;
  transition:
    height 300ms var(--ease),
    background-color 300ms ease,
    border-color 300ms ease;
}

.site-header.is-scrolled {
  height: 68px;
  border-color: var(--line);
  background: rgba(7, 9, 13, 0.88);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.brand-mark {
  position: relative;
  width: 22px;
  aspect-ratio: 1;
  border: 1px solid var(--cyan);
  border-radius: 50%;
}

.brand-mark::after {
  position: absolute;
  inset: 4px;
  content: "";
  border-top: 1px solid var(--cyan);
  border-right: 1px solid transparent;
  border-radius: inherit;
  transform: rotate(24deg);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.primary-nav a {
  position: relative;
  display: grid;
  min-height: 44px;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  transition: color 180ms ease;
}

.primary-nav a:not(.nav-cta)::after {
  position: absolute;
  bottom: 7px;
  left: 0;
  width: 100%;
  height: 1px;
  content: "";
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 250ms var(--ease);
}

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

.primary-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.primary-nav .nav-cta {
  min-height: 38px;
  padding: 0 18px;
  color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.primary-nav .nav-cta:hover {
  color: var(--ink);
  background: var(--cyan);
  border-color: var(--cyan);
}

.menu-toggle {
  position: relative;
  z-index: 2;
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  cursor: pointer;
  color: inherit;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.menu-toggle span {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: transform 240ms var(--ease);
}

.menu-toggle span:first-child { transform: translateY(-3px); }
.menu-toggle span:last-child { transform: translateY(3px); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.hero {
  position: relative;
  display: grid;
  min-height: max(720px, 100svh);
  overflow: hidden;
  isolation: isolate;
  place-items: center;
}

#time-field {
  position: absolute;
  z-index: -4;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero::before {
  position: absolute;
  z-index: -3;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(255, 255, 255, 0.045) 50%, transparent calc(50% + 1px)),
    radial-gradient(circle at var(--pointer-x, 50%) var(--pointer-y, 50%), rgba(131, 243, 223, 0.09), transparent 22rem),
    linear-gradient(180deg, rgba(7, 9, 13, 0.1), rgba(7, 9, 13, 0.92));
}

.hero-noise {
  position: absolute;
  z-index: -2;
  inset: 0;
  opacity: 0.28;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.09) 0 0.6px, transparent 0.8px),
    radial-gradient(circle at 72% 68%, rgba(255, 255, 255, 0.06) 0 0.5px, transparent 0.75px);
  background-position: 0 0, 11px 9px;
  background-size: 17px 17px, 23px 23px;
}

.hero-orbit {
  position: absolute;
  z-index: -1;
  width: min(58vw, 760px);
  aspect-ratio: 1;
  pointer-events: none;
  border: 1px solid rgba(131, 243, 223, 0.12);
  border-radius: 50%;
  transition: transform 1.2s var(--ease);
}

.hero-orbit::after {
  position: absolute;
  top: 12%;
  left: 14%;
  width: 8px;
  aspect-ratio: 1;
  content: "";
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 24px var(--cyan);
}

.orbit-a {
  top: 16%;
  right: -12%;
  transform: translate(calc(var(--move-x, 0) * 12px), calc(var(--move-y, 0) * 12px));
}

.orbit-b {
  bottom: -42%;
  left: -12%;
  width: min(48vw, 620px);
  border-color: rgba(168, 156, 255, 0.1);
  transform: translate(calc(var(--move-x, 0) * -8px), calc(var(--move-y, 0) * -8px));
}

.hero-content {
  padding-top: 50px;
}

.eyebrow,
.section-index {
  margin: 0;
  color: var(--cyan);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow::before {
  display: inline-block;
  width: 24px;
  height: 1px;
  margin-right: 12px;
  content: "";
  vertical-align: middle;
  background: currentColor;
}

.hero-title {
  max-width: 980px;
  margin: 26px 0 22px;
  font-size: clamp(54px, 7.9vw, 118px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.hero-title span {
  display: block;
  color: transparent;
  background: linear-gradient(100deg, var(--paper) 0%, var(--cyan) 48%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  margin-top: 42px;
  align-items: center;
  gap: 14px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 34px;
  padding: 0 24px;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 999px;
  transition:
    transform 220ms var(--ease),
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.button:active { transform: scale(0.97); }

.button-primary {
  color: #06100f;
  background: var(--cyan);
  font-size: 14px;
  font-weight: 700;
}

.button-primary:hover {
  background: #b3fff2;
  box-shadow: 0 12px 36px rgba(131, 243, 223, 0.16);
}

.button-quiet {
  color: var(--muted);
  background: rgba(7, 9, 13, 0.35);
  border-color: var(--line);
}

.button-quiet:hover { color: var(--paper); border-color: rgba(233, 237, 242, 0.38); }

.pulse-icon {
  position: relative;
  width: 8px;
  aspect-ratio: 1;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(131, 243, 223, 0.12);
}

.sound-toggle[aria-pressed="false"] .pulse-icon {
  background: var(--muted);
  box-shadow: none;
}

.sound-toggle:disabled {
  cursor: default;
  opacity: 0.72;
}

.hero-meta {
  position: absolute;
  right: 0;
  bottom: 32px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  color: rgba(233, 237, 242, 0.42);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
}

.hero-meta-line { width: 36px; height: 1px; background: var(--line); }

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: max(32px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(233, 237, 242, 0.42);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
}

.scroll-cue i {
  position: relative;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.scroll-cue i::after {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 2px;
  height: 7px;
  content: "";
  background: var(--cyan);
  border-radius: 99px;
  transform: translateX(-50%);
  animation: scroll-tick 1.8s ease-in-out infinite;
}

@keyframes scroll-tick {
  0%, 100% { opacity: 0.3; transform: translate(-50%, 0); }
  50% { opacity: 1; transform: translate(-50%, 10px); }
}

.manifesto {
  position: relative;
  background: var(--paper);
  color: var(--ink);
}

.manifesto::after {
  position: absolute;
  right: 4vw;
  bottom: 0;
  width: min(24vw, 320px);
  height: 1px;
  content: "";
  background: var(--ink);
  opacity: 0.18;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 4fr;
  gap: 40px;
}

.manifesto .section-index { color: #40766f; }

.display-copy {
  max-width: 980px;
  margin: -12px 0 46px;
  font-size: clamp(38px, 5.2vw, 76px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.12;
}

.display-copy span {
  color: #40766f;
}

.section-copy {
  max-width: 600px;
  margin: 0 0 0 auto;
  color: #59616a;
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.9;
}

.experiment {
  position: relative;
  background:
    radial-gradient(circle at 15% 80%, rgba(82, 203, 186, 0.09), transparent 24rem),
    var(--ink);
}

.section-heading {
  display: flex;
  margin-bottom: 54px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.section-heading h2 {
  margin: 12px 0 0;
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 500;
  letter-spacing: -0.05em;
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.time-lab {
  --lab-color: hsl(var(--lab-hue) 75% 72%);
  position: relative;
  display: grid;
  min-height: 610px;
  overflow: hidden;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    #0a0e14;
  background-size: 44px 44px;
  box-shadow: var(--shadow);
  isolation: isolate;
  touch-action: pan-y;
}

.lab-ambient {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 64%;
  width: 580px;
  aspect-ratio: 1;
  background: radial-gradient(circle, color-mix(in srgb, var(--lab-color) 15%, transparent), transparent 64%);
  transform: translate(-50%, -50%);
  transition: background 600ms ease;
}

.lab-readout { align-self: start; }

.lab-readout p,
.lab-quote span,
.time-control label {
  margin: 0;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
}

.lab-readout strong {
  display: block;
  margin-top: 10px;
  color: var(--lab-color);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: clamp(66px, 10vw, 140px);
  font-weight: 300;
  letter-spacing: -0.08em;
  line-height: 0.9;
  transition: color 500ms ease;
}

.lab-readout > span {
  display: block;
  margin-top: 18px;
  color: var(--paper);
  font-size: 14px;
  letter-spacing: 0.18em;
}

.lab-quote {
  max-width: 370px;
  align-self: end;
}

.lab-quote p {
  margin: 0 0 18px;
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.65;
}

.lab-visual {
  position: absolute;
  top: 42%;
  left: 69%;
  transform: translate(-50%, -50%);
}

.chronosphere {
  position: relative;
  display: grid;
  width: clamp(210px, 27vw, 360px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--lab-color) 42%, transparent);
  border-radius: 50%;
  box-shadow:
    inset 0 0 80px color-mix(in srgb, var(--lab-color) 6%, transparent),
    0 0 80px color-mix(in srgb, var(--lab-color) 8%, transparent);
  transition: border-color 500ms ease, box-shadow 500ms ease;
}

.chronosphere::before,
.chronosphere::after,
.chronosphere i {
  position: absolute;
  content: "";
  border: 1px solid color-mix(in srgb, var(--lab-color) 24%, transparent);
  border-radius: 50%;
}

.chronosphere::before { inset: 10%; }
.chronosphere::after { inset: 25%; border-style: dashed; }
.chronosphere i:nth-child(1) { inset: -6%; border-left-color: transparent; animation: sphere-spin 13s linear infinite; }
.chronosphere i:nth-child(2) { inset: 17%; border-bottom-color: transparent; animation: sphere-spin 8s linear infinite reverse; }
.chronosphere i:nth-child(3) { top: 50%; left: -5%; width: 110%; height: 0; border-width: 1px 0 0; border-radius: 0; transform: rotate(-18deg); }

.chronosphere span {
  color: var(--lab-color);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: clamp(32px, 5vw, 62px);
  font-weight: 300;
  transition: color 500ms ease;
}

@keyframes sphere-spin { to { transform: rotate(360deg); } }

.time-control {
  z-index: 3;
  grid-column: 1 / -1;
  margin-top: 54px;
}

.time-control label {
  display: block;
  margin-bottom: 16px;
}

.time-control input {
  width: 100%;
  height: 30px;
  margin: 0;
  cursor: ew-resize;
  appearance: none;
  background: transparent;
}

.time-control input::-webkit-slider-runnable-track {
  height: 1px;
  background: linear-gradient(90deg, var(--lab-color) 0%, var(--lab-color) var(--range-progress, 66.66%), var(--line) var(--range-progress, 66.66%));
}

.time-control input::-moz-range-track { height: 1px; background: var(--line); }
.time-control input::-moz-range-progress { height: 1px; background: var(--lab-color); }

.time-control input::-webkit-slider-thumb {
  width: 28px;
  height: 28px;
  margin-top: -14px;
  appearance: none;
  background: var(--ink);
  border: 2px solid var(--lab-color);
  border-radius: 50%;
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--lab-color) 10%, transparent);
  transition: transform 180ms ease;
}

.time-control input::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: var(--ink);
  border: 2px solid var(--lab-color);
  border-radius: 50%;
}

.time-control input:active::-webkit-slider-thumb { transform: scale(1.2); }

.range-ticks {
  display: flex;
  margin-top: 14px;
  justify-content: space-between;
  color: rgba(233, 237, 242, 0.42);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.tap-hint { display: none; }

.collection {
  color: var(--ink);
  background: #dfe4e8;
}

.collection .section-index { color: #35756b; }
.collection .section-heading > p { color: #606871; }

.artifact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.artifact-card {
  --card-accent: #377d72;
  position: relative;
  display: flex;
  min-height: 570px;
  overflow: hidden;
  flex-direction: column;
  padding: 24px;
  cursor: pointer;
  background: #f2f4f5;
  border: 1px solid rgba(7, 9, 13, 0.1);
  border-radius: var(--radius-md);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transform: perspective(800px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
  transition:
    transform 300ms var(--ease),
    box-shadow 300ms ease,
    background-color 300ms ease;
}

.artifact-card:hover,
.artifact-card:focus-visible,
.artifact-card.is-active {
  background: #f9faf9;
  box-shadow: 0 28px 70px rgba(12, 22, 25, 0.14);
}

.artifact-card:active { transform: scale(0.985); }

.card-fold { --card-accent: #695dc5; }
.card-rewrite { --card-accent: #bd692e; }

.artifact-topline {
  display: flex;
  justify-content: space-between;
  color: #6c747c;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
}

.artifact-visual {
  position: relative;
  display: grid;
  min-height: 300px;
  flex: 1;
  place-items: center;
}

.memory-core {
  width: 92px;
  aspect-ratio: 1;
  background: radial-gradient(circle at 35% 30%, #c9fff7, var(--card-accent) 46%, #162622 100%);
  border-radius: 50%;
  box-shadow: 0 18px 50px rgba(55, 125, 114, 0.24);
  transition: transform 600ms var(--ease), border-radius 600ms var(--ease);
}

.preserve-visual > span {
  position: absolute;
  width: 150px;
  aspect-ratio: 1;
  border: 1px solid rgba(55, 125, 114, 0.22);
  border-radius: 50%;
  transition: transform 600ms var(--ease), opacity 600ms ease;
}

.preserve-visual > span:nth-of-type(2) { width: 210px; opacity: 0.6; }
.preserve-visual > span:nth-of-type(3) { width: 270px; opacity: 0.28; }
.card-preserve:hover .memory-core,
.card-preserve:focus-visible .memory-core,
.card-preserve.is-active .memory-core { transform: scale(1.18); border-radius: 38% 62% 54% 46%; }
.card-preserve:hover .preserve-visual > span,
.card-preserve:focus-visible .preserve-visual > span,
.card-preserve.is-active .preserve-visual > span { transform: scale(1.08); opacity: 0.12; }

.fold-visual { perspective: 700px; transform-style: preserve-3d; }

.fold-visual div {
  position: absolute;
  width: 140px;
  height: 170px;
  background: linear-gradient(145deg, rgba(105, 93, 197, 0.88), rgba(195, 188, 255, 0.25));
  border: 1px solid rgba(105, 93, 197, 0.36);
  transform-origin: bottom;
  transition: transform 700ms var(--ease), opacity 500ms ease;
}

.fold-visual div:nth-child(1) { transform: translate(-22px, 14px) rotate(-12deg); opacity: 0.35; }
.fold-visual div:nth-child(2) { transform: translate(-8px, 6px) rotate(-4deg); opacity: 0.55; }
.fold-visual div:nth-child(3) { transform: translate(8px, -2px) rotate(4deg); opacity: 0.75; }
.fold-visual div:nth-child(4) { transform: translate(22px, -10px) rotate(12deg); }
.card-fold:hover .fold-visual div:nth-child(1), .card-fold:focus-visible .fold-visual div:nth-child(1), .card-fold.is-active .fold-visual div:nth-child(1) { transform: translate(-80px, 22px) rotateY(48deg); }
.card-fold:hover .fold-visual div:nth-child(2), .card-fold:focus-visible .fold-visual div:nth-child(2), .card-fold.is-active .fold-visual div:nth-child(2) { transform: translate(-28px, 0) rotateY(20deg); }
.card-fold:hover .fold-visual div:nth-child(3), .card-fold:focus-visible .fold-visual div:nth-child(3), .card-fold.is-active .fold-visual div:nth-child(3) { transform: translate(30px, -8px) rotateY(-20deg); }
.card-fold:hover .fold-visual div:nth-child(4), .card-fold:focus-visible .fold-visual div:nth-child(4), .card-fold.is-active .fold-visual div:nth-child(4) { transform: translate(82px, -16px) rotateY(-48deg); }

.rewrite-visual {
  overflow: hidden;
  align-content: center;
  justify-items: stretch;
  color: rgba(7, 9, 13, 0.18);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: clamp(42px, 4.6vw, 66px);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 0.75;
}

.rewrite-visual span { transition: transform 700ms var(--ease), color 400ms ease; }
.rewrite-visual span:nth-child(1) { transform: translateX(-8%); }
.rewrite-visual span:nth-child(2) { text-align: center; }
.rewrite-visual span:nth-child(3) { text-align: right; transform: translateX(8%); }
.scan-line {
  position: absolute;
  top: 16%;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--card-accent);
  box-shadow: 0 0 18px rgba(189, 105, 46, 0.45);
  opacity: 0;
}
.card-rewrite:hover .rewrite-visual span:nth-child(1), .card-rewrite:focus-visible .rewrite-visual span:nth-child(1), .card-rewrite.is-active .rewrite-visual span:nth-child(1) { transform: translateX(18%); color: rgba(189, 105, 46, 0.38); }
.card-rewrite:hover .rewrite-visual span:nth-child(3), .card-rewrite:focus-visible .rewrite-visual span:nth-child(3), .card-rewrite.is-active .rewrite-visual span:nth-child(3) { transform: translateX(-18%); color: rgba(189, 105, 46, 0.38); }
.card-rewrite:hover .scan-line, .card-rewrite:focus-visible .scan-line, .card-rewrite.is-active .scan-line { opacity: 1; animation: scan 1.8s ease-in-out infinite; }
@keyframes scan { 0%, 100% { top: 18%; } 50% { top: 82%; } }

.artifact-content {
  position: relative;
  z-index: 2;
  padding-top: 22px;
  border-top: 1px solid rgba(7, 9, 13, 0.13);
}

.artifact-content p {
  margin: 0 0 7px;
  color: var(--card-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.artifact-content h3 {
  margin: 0 0 12px;
  font-size: clamp(23px, 2.4vw, 31px);
  font-weight: 550;
  letter-spacing: -0.04em;
}

.artifact-content span {
  color: #697078;
  font-size: 13px;
  line-height: 1.7;
}

.card-status {
  position: absolute;
  top: 48%;
  right: 12px;
  color: var(--card-accent);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.12em;
  opacity: 0;
  transform: rotate(90deg) translateX(12px);
  transition: opacity 300ms ease, transform 400ms var(--ease);
}

.artifact-card:hover .card-status,
.artifact-card:focus-visible .card-status,
.artifact-card.is-active .card-status { opacity: 0.65; transform: rotate(90deg) translateX(0); }

.timeline {
  position: relative;
  height: 300vh;
  color: var(--paper);
  background: #080b10;
}

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

.timeline-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.timeline-backdrop::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(72vw, 960px);
  aspect-ratio: 1;
  content: "";
  background: radial-gradient(circle, rgba(131, 243, 223, 0.07), transparent 62%);
  transform: translate(-50%, -50%);
}

.timeline-number {
  position: absolute;
  top: 50%;
  left: 50%;
  color: rgba(233, 237, 242, 0.025);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: clamp(280px, 48vw, 680px);
  font-weight: 700;
  letter-spacing: -0.13em;
  line-height: 0.8;
  transform: translate(-50%, -50%);
}

.timeline-axis {
  position: absolute;
  top: 16%;
  bottom: 12%;
  left: 50%;
  width: 1px;
  overflow: hidden;
  background: var(--line);
}

.timeline-axis i {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(var(--cyan), var(--violet), var(--amber));
  box-shadow: 0 0 12px var(--cyan);
  transform: scaleY(0);
  transform-origin: top;
}

.timeline-stage {
  position: relative;
  display: grid;
  height: 100%;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

.timeline-intro h2 {
  max-width: 420px;
  margin: 16px 0 0;
  font-size: clamp(42px, 6vw, 78px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.timeline-copy {
  position: relative;
  min-height: 260px;
}

.timeline-copy article {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(calc(-50% + 36px));
  transition: opacity 550ms ease, transform 700ms var(--ease);
}

.timeline-copy article.is-active {
  opacity: 1;
  transform: translateY(-50%);
}

.timeline-copy p {
  margin: 0 0 20px;
  color: var(--cyan);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
}

.timeline-copy article:nth-child(2) p { color: var(--violet); }
.timeline-copy article:nth-child(3) p { color: var(--amber); }

.timeline-copy h3 {
  margin: 0 0 20px;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.timeline-copy span {
  display: block;
  max-width: 450px;
  color: var(--muted);
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.8;
}

.closing {
  overflow: hidden;
  color: var(--ink);
  background: var(--cyan);
}

.closing-inner { text-align: center; }
.closing .eyebrow { color: #26665c; }

.closing h2 {
  margin: 24px auto 46px;
  font-size: clamp(46px, 7.8vw, 106px);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.98;
}

.closing h2 span { display: block; color: rgba(7, 9, 13, 0.52); }
.closing .button-primary { color: var(--paper); background: var(--ink); }
.closing .button-primary:hover { background: #18201f; box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16); }

.site-footer {
  padding-block: 68px 40px;
  border-top: 1px solid var(--line);
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
}

.footer-grid > div:first-child > p {
  max-width: 280px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.footer-grid nav { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.footer-grid nav a { display: grid; min-height: 42px; place-items: center start; color: var(--muted); font-size: 13px; }
.footer-grid nav a:hover { color: var(--cyan); }

.footer-meta { text-align: right; }
.footer-meta p { margin: 0 0 12px; color: var(--muted); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 9px; letter-spacing: 0.14em; }
.footer-meta p:first-child { color: var(--cyan); }
.icp-record {
  margin-top: 28px;
  text-align: center;
}

.icp-record a {
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}

.icp-record a:hover {
  color: var(--cyan);
}


.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms ease, transform 900ms var(--ease);
}

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

.noscript { padding: 16px; color: var(--ink); background: var(--amber); text-align: center; }

@media (max-width: 920px) {
  :root { --shell: min(100% - 40px, 760px); }

  .site-header { height: 72px; padding-inline: 20px; }
  .menu-toggle { display: block; }
  .primary-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    visibility: hidden;
    background: rgba(7, 9, 13, 0.97);
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 250ms ease, transform 350ms var(--ease), visibility 250ms;
  }
  .primary-nav.is-open { visibility: visible; opacity: 1; transform: translateY(0); }
  .primary-nav a { min-width: 220px; min-height: 58px; color: var(--paper); font-size: 18px; }
  .primary-nav .nav-cta { min-height: 52px; margin-top: 16px; }

  .hero-title { max-width: 720px; }
  .hero-orbit { width: 72vw; }
  .orbit-a { right: -28%; }
  .hero-meta { bottom: 24px; }

  .manifesto-grid { grid-template-columns: 1fr; gap: 46px; }
  .display-copy { margin-top: 0; }

  .time-lab { min-height: 660px; }
  .lab-visual { top: 44%; left: 70%; }
  .lab-quote { max-width: 300px; }

  .artifact-grid { grid-template-columns: 1fr 1fr; }
  .artifact-card:last-child { grid-column: 1 / -1; min-height: 520px; }
  .rewrite-visual { font-size: 72px; }

  .timeline-stage { gap: 40px; }
}

@media (max-width: 640px) {
  :root {
    --shell: calc(100% - 32px);
    --radius-lg: 24px;
  }

  .section-pad { padding-block: 92px; }
  .site-header.is-scrolled { height: 62px; }
  .brand { font-size: 12px; }

  .hero { min-height: max(680px, 100svh); place-items: start center; }
  .hero-content { padding-top: max(142px, 19svh); }
  .hero-title { margin-top: 22px; font-size: clamp(48px, 15vw, 68px); line-height: 1.01; }
  .hero-title span { margin-top: 6px; }
  .hero-copy { max-width: 92%; font-size: 15px; line-height: 1.75; }
  .hero-actions { align-items: stretch; flex-direction: column; margin-top: 30px; }
  .hero-actions .button { width: 100%; justify-content: space-between; min-height: 54px; }
  .hero-actions .button-quiet { justify-content: center; }
  .hero-meta { display: none; }
  .scroll-cue { bottom: 18px; left: 16px; }
  .hero-orbit { width: 105vw; }
  .orbit-a { top: 42%; right: -52%; }
  .orbit-b { bottom: -14%; left: -52%; width: 90vw; }

  .manifesto-grid { gap: 36px; }
  .display-copy { margin-bottom: 34px; font-size: 38px; line-height: 1.16; }
  .section-copy { font-size: 16px; line-height: 1.8; }

  .section-heading { align-items: flex-start; flex-direction: column; margin-bottom: 34px; gap: 18px; }
  .section-heading h2 { font-size: 42px; }
  .section-heading > p { font-size: 13px; }

  .time-lab {
    display: flex;
    min-height: 650px;
    flex-direction: column;
    padding: 24px 20px;
    background-size: 30px 30px;
  }
  .lab-readout strong { font-size: 72px; }
  .lab-readout > span { margin-top: 10px; }
  .lab-visual { top: 46%; left: 50%; }
  .chronosphere { width: min(62vw, 250px); }
  .lab-quote { max-width: 100%; margin-top: auto; padding-bottom: 4px; }
  .lab-quote p { margin-bottom: 12px; font-size: 16px; line-height: 1.55; }
  .time-control { width: 100%; margin-top: 26px; }
  .time-control input { height: 42px; }
  .tap-hint { display: block; position: absolute; right: 20px; top: 26px; color: var(--muted); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 8px; letter-spacing: 0.1em; }

  .artifact-grid { grid-template-columns: 1fr; gap: 14px; }
  .artifact-card,
  .artifact-card:last-child { grid-column: auto; min-height: 520px; }
  .artifact-visual { min-height: 260px; }
  .rewrite-visual { font-size: 58px; }

  .timeline { height: 260vh; }
  .timeline-sticky { min-height: 620px; }
  .timeline-stage { grid-template-columns: 1fr; align-content: center; gap: 78px; }
  .timeline-intro { align-self: end; }
  .timeline-intro h2 { max-width: 310px; font-size: 44px; }
  .timeline-copy { min-height: 180px; }
  .timeline-copy article { top: 0; transform: translateY(28px); }
  .timeline-copy article.is-active { transform: translateY(0); }
  .timeline-copy h3 { font-size: 34px; }
  .timeline-axis { top: 13%; bottom: 10%; left: auto; right: 16px; }
  .timeline-number { left: auto; right: 2%; font-size: 74vw; transform: translate(0, -50%); }

  .closing h2 { margin-bottom: 38px; font-size: 52px; }
  .closing .button { width: 100%; justify-content: space-between; }

  .site-footer { padding-block: 52px 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid nav { flex-direction: row; flex-wrap: wrap; gap: 10px 22px; }
  .footer-meta { padding-top: 26px; border-top: 1px solid var(--line); text-align: left; }
}

@media (max-height: 700px) and (min-width: 641px) {
  .hero { min-height: 700px; }
  .hero-content { padding-top: 80px; }
}

@media (hover: none) {
  .artifact-card { transform: none !important; }
  .card-status { display: none; }
}

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