:root {
  --paper: #121714;
  --cream: #ffffff;
  --ink: #ffffff;
  --card-ink: #141614;
  --mute: #c9d0cb;
  --card-mute: #3a423d;
  --clay: #d4bc8a;
  --clay-on-paper: #8a7040;
  --clay-hot: #e0c98a;
  --clay-soft: rgba(212, 188, 138, 0.2);
  --charcoal: #0c0f0d;
  --line: rgba(255, 255, 255, 0.22);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --press: cubic-bezier(0.2, 0, 0, 1);
  --rail: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse 70% 50% at 18% 8%, rgba(90, 110, 88, 0.38), transparent 55%),
    radial-gradient(ellipse 55% 45% at 82% 18%, rgba(201, 176, 122, 0.16), transparent 50%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(28, 38, 32, 0.9), transparent 62%),
    linear-gradient(180deg, #1a221c 0%, #121714 42%, #0e1310 100%);
  color: var(--ink);
  font-family: "Sora", sans-serif;
  font-weight: 400;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 60;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--cream);
  color: var(--card-ink);
  font-weight: 500;
}

.skip:focus {
  top: 1rem;
}

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

.tabular {
  font-variant-numeric: tabular-nums;
}

.kicker {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
}

h1,
h2,
h3 {
  font-family: "Newsreader", serif;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h1 {
  max-width: 13em;
  margin: 0;
  font-size: clamp(2.5rem, 5.8vw, 4.75rem);
  line-height: 1.08;
  color: var(--ink);
}

h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--clay);
}

h2 {
  max-width: 18em;
  margin: 0;
  font-size: clamp(1.85rem, 3.8vw, 3rem);
  line-height: 1.14;
  color: var(--ink);
}

h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.28;
}

p {
  text-wrap: pretty;
}

.lede,
.sub {
  max-width: 42ch;
  margin: 1.35rem 0 0;
  color: var(--mute);
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-copy {
  max-width: 36rem;
}

.rail {
  position: fixed;
  top: 1.15rem;
  left: 50%;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 0.4rem 0.4rem 0.4rem 1.15rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(12, 15, 13, 0.62);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  transition: padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.rail.is-tight {
  padding: 0.32rem 0.32rem 0.32rem 1rem;
  box-shadow: 0 10px 28px rgba(22, 20, 18, 0.1);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Newsreader", serif;
  font-size: 1.12rem;
  font-weight: 500;
  font-style: italic;
  color: var(--ink);
}

.wordmark .mark {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--clay);
  flex: none;
}

.rail-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.rail-links a {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  white-space: nowrap;
}

.rail-links a.rail-cta {
  color: var(--card-ink);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rail-links a.rail-cta i {
  color: var(--card-ink);
  background: color-mix(in srgb, var(--card-ink) 10%, transparent);
}

.rail-cta,
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.7rem;
  padding: 0 0.4rem 0 1.05rem;
  border: 0;
  border-radius: 999px;
  background: var(--cream);
  color: var(--card-ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    transform 0.35s var(--press),
    background 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.rail-cta i,
.btn i {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card-ink) 8%, transparent);
  font-style: normal;
  transition: transform 0.4s var(--ease);
}

.btn:hover i,
.rail-cta:hover i {
  transform: translate(2px, -1px) scale(1.05);
}

.btn:active,
.rail-cta:active,
.done:active,
.menu:active {
  transform: scale(0.96);
}

.btn-ink {
  min-height: 3.1rem;
  padding: 0 0.45rem 0 1.2rem;
  font-size: 0.92rem;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn-ghost i {
  background: rgba(255, 255, 255, 0.12);
}

.menu {
  display: none;
  position: relative;
  width: 2.7rem;
  height: 2.7rem;
  border: 0;
  border-radius: 999px;
  background: var(--cream);
  cursor: pointer;
}

.menu span {
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  height: 1.5px;
  background: var(--card-ink);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}

.menu span:first-child {
  top: 1.05rem;
}

.menu span:last-child {
  top: 1.5rem;
}

.menu.is-open span:first-child {
  top: 1.28rem;
  transform: rotate(45deg);
}

.menu.is-open span:last-child {
  top: 1.28rem;
  transform: rotate(-45deg);
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: grid;
  align-content: center;
  gap: 1.2rem;
  padding: 6rem 1.5rem;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(22px);
}

.overlay-mark {
  width: 2.4rem;
  height: 2.4rem;
  color: var(--clay);
  margin-bottom: 0.4rem;
}

.overlay[hidden] {
  display: none;
}

.overlay a {
  font-family: "Newsreader", serif;
  font-weight: 500;
  font-size: clamp(2rem, 8vw, 3.2rem);
  letter-spacing: -0.04em;
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: 100dvh;
  padding: calc(var(--rail) + 2.5rem) 6vw 4rem;
  background:
    radial-gradient(circle at 78% 18%, rgba(201, 176, 122, 0.18), transparent 36%),
    radial-gradient(circle at 12% 88%, rgba(70, 92, 74, 0.22), transparent 42%);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.8rem;
}

.stage-shell {
  padding: 0.55rem;
  border-radius: 2.1rem;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.device {
  display: grid;
  justify-items: center;
  padding: 1.8rem 1.4rem 1.4rem;
  border-radius: calc(2.1rem - 0.55rem);
  background:
    radial-gradient(circle at 50% 18%, var(--clay-soft), transparent 42%),
    var(--cream);
}

.device-kind {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--clay-on-paper);
}

.device-time {
  margin: 0.35rem 0 1rem;
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 3.1rem;
  line-height: 1;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--card-ink);
  transition: transform 0.24s cubic-bezier(0.2, 0, 0, 1);
}

.device-time.is-tick {
  transform: scale(0.97);
}

.lung {
  position: relative;
  width: 9.5rem;
  height: 9.5rem;
  margin-bottom: 1.1rem;
}

.ritual-stage {
  position: relative;
  width: 9.5rem;
  height: 9.5rem;
  margin-bottom: 1.1rem;
}

.ritual-pulse {
  position: absolute;
  inset: 0;
  transition: opacity 0.35s var(--ease);
}

.ritual-stage:not([data-kind="breath"]) .ritual-pulse {
  opacity: 0;
  visibility: hidden;
}

.ritual-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.ritual-stage:not([data-kind="breath"]) .ritual-svg {
  opacity: 1;
}

.ritual-art {
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.ritual-art:not([hidden]) {
  opacity: 1;
}

.ritual-art .line-draw,
.ritual-art .line-node {
  fill: none;
  stroke: color-mix(in srgb, var(--clay) 88%, var(--card-ink));
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ritual-art .line-draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.ritual-art .line-node {
  fill: var(--clay);
  stroke: none;
  opacity: 0;
}

.ritual-art.is-live .line-draw {
  animation: line-draw 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ritual-art.is-live .seq-2,
.ritual-art.is-live .seq-2.line-node {
  animation-delay: 0.18s;
}

.ritual-art.is-live .seq-3,
.ritual-art.is-live .seq-3.line-node {
  animation-delay: 0.36s;
}

.ritual-art.is-live .cad-b {
  animation-delay: 0.35s;
}

.ritual-art.is-live .line-node {
  animation: node-pop 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ritual-art.is-live .line-rep {
  stroke-dashoffset: 0;
  transform-origin: 80px 88px;
  animation: rep-lift 1.1s cubic-bezier(0.45, 0, 0.15, 1) infinite;
}

.ritual-art .scan-beam {
  stroke: color-mix(in srgb, var(--clay) 70%, white);
  stroke-width: 1.5;
  opacity: 0.55;
  animation: scan-drop 2.4s cubic-bezier(0.45, 0, 0.15, 1) infinite;
}

.ritual-art .gaze-dot {
  fill: var(--clay);
  transform-origin: center;
  animation: gaze-shift 2.8s cubic-bezier(0.45, 0, 0.15, 1) infinite;
}

.ritual-art.is-live .task-check {
  animation-delay: 0.45s;
}

.ritual-art.is-live .focus-inner {
  animation-delay: 0.35s;
}

.ritual-art.is-live .gaze-near {
  animation-delay: 0.3s;
}

.pulse {
  position: relative;
  width: 100%;
  height: 100%;
}

.pulse-shell,
.pulse-orbit,
.pulse-core,
.pulse-sonar {
  position: absolute;
  border-radius: 50%;
}

.pulse-shell {
  inset: 0;
  border: 2px solid color-mix(in srgb, var(--clay) 42%, transparent);
  opacity: 0.9;
}

.pulse-orbit {
  inset: 12%;
  border: 1.5px solid color-mix(in srgb, var(--clay) 70%, transparent);
  animation: pulse-orbit 4s cubic-bezier(0.45, 0, 0.15, 1) infinite;
}

.pulse-orbit--b {
  animation-delay: -2s;
  opacity: 0.45;
}

.pulse-core {
  inset: 30%;
  background: var(--clay);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--clay) 55%, white),
    0 8px 24px color-mix(in srgb, var(--clay) 35%, transparent);
  z-index: 2;
  animation: pulse-core 4s cubic-bezier(0.45, 0, 0.15, 1) infinite;
}

.pulse-core.is-tick {
  animation:
    haptic-tick 0.24s cubic-bezier(0.2, 0, 0, 1),
    pulse-core 4s cubic-bezier(0.45, 0, 0.15, 1) infinite;
}

.pulse-sonar {
  inset: 30%;
  border: 2px solid color-mix(in srgb, var(--clay) 85%, transparent);
  z-index: 1;
  animation: sonar-out 1.05s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: none;
}

.lung-ring,
.lung-core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.lung-ring {
  border: 2px solid color-mix(in srgb, var(--clay) 55%, transparent);
  animation: breathe 5.6s var(--ease) infinite;
}

.lung-core {
  inset: 28%;
  background: var(--clay);
  opacity: 0.88;
  animation: core 5.6s var(--ease) infinite;
}

.device-cue {
  margin: 0 0 1.1rem;
  max-width: 22ch;
  text-align: center;
  color: var(--card-mute);
  font-size: 0.88rem;
  line-height: 1.45;
  min-height: 2.6em;
}

.done {
  min-height: 3rem;
  padding: 0 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--charcoal);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.3s var(--press), background 0.35s var(--ease);
}

.done.is-complete {
  background: var(--clay);
  color: var(--charcoal);
}

.caption-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 0.85rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}

.caption-rail span {
  padding: 0.7rem 0.75rem;
  border-radius: 999px;
  background: transparent;
  color: var(--mute);
  text-align: center;
}

.caption-rail span.is-on {
  background: rgba(12, 15, 13, 0.72);
  color: var(--ink);
}

.band {
  padding: 5.5rem 6vw;
}

.band-head {
  margin-bottom: 2.2rem;
  max-width: 40rem;
}

.band-head .sub {
  margin-top: 0.9rem;
}

.kind-rail {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  scrollbar-width: none;
}

.kind-rail::-webkit-scrollbar {
  display: none;
}

.kind-rail button {
  flex: 0 0 auto;
  min-height: 2.6rem;
  padding: 0 0.95rem;
  border: 0;
  border-radius: 999px;
  background: rgba(12, 15, 13, 0.55);
  color: var(--mute);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.3s var(--press), background 0.3s var(--ease), color 0.3s var(--ease);
}

.kind-rail button[aria-selected="true"] {
  background: var(--cream);
  color: var(--card-ink);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.kind-panel {
  margin-top: 1.4rem;
  padding: 1.6rem;
  border-radius: 1.7rem;
  background: var(--cream);
  color: var(--card-ink);
  box-shadow: 0 18px 40px rgba(22, 24, 22, 0.12);
}

.kind-panel[hidden] {
  display: none;
}

.kind-panel small,
.shelf-lead small,
.shelf-stack small {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay-on-paper);
}

.risk-grid small {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
}

.kind-panel p,
.shelf-lead p,
.shelf-stack p,
.rows p {
  margin: 0.45rem 0 0;
  color: var(--card-mute);
  line-height: 1.55;
}

.risk-grid p,
.fine {
  margin: 0.45rem 0 0;
  color: var(--mute);
  line-height: 1.55;
}

.shelf {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 1rem;
}

.shelf-lead,
.shelf-stack article,
.rows li {
  padding: 1.6rem;
  border-radius: 1.7rem;
  background: var(--cream);
  color: var(--card-ink);
  box-shadow: 0 18px 40px rgba(22, 24, 22, 0.12);
  transition: transform 0.45s var(--ease);
}

.shelf-stack {
  display: grid;
  gap: 1rem;
}

.filmstrip {
  overflow: hidden;
  margin-top: 1.6rem;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.filmstrip-track {
  display: flex;
  gap: 0.7rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.filmstrip:hover .filmstrip-track {
  animation-play-state: paused;
}

.filmstrip-track span {
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  background: var(--charcoal);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.filmstrip-track span:nth-child(odd) {
  background: var(--cream);
  color: var(--card-ink);
}

.rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rows li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  align-items: start;
  margin-bottom: 0.85rem;
}

.idx {
  font-family: "Newsreader", serif;
  font-size: 2rem;
  font-weight: 500;
  font-style: italic;
  color: var(--clay-on-paper);
  line-height: 1;
}

blockquote {
  margin: 0 0 2rem;
  max-width: 34rem;
  padding: 0;
  border: 0;
}

blockquote p {
  margin: 0;
  font-family: "Newsreader", serif;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--ink);
}

blockquote cite {
  display: block;
  margin-top: 0.85rem;
  font-family: "Sora", sans-serif;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}

.risk-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.25rem 2rem;
  align-items: start;
}

.band-head blockquote {
  margin-bottom: 0;
}

.risk-grid article {
  padding: 1.6rem;
  border-radius: 1.7rem;
  background: rgba(12, 15, 13, 0.45);
  border: 1px solid var(--line);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  min-height: 2.5rem;
  color: var(--clay);
}

.faq details {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink);
  list-style: none;
}

.faq details p {
  margin: 0.65rem 0 0.25rem;
  padding-right: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--mute);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  color: var(--clay);
}

.action {
  margin: 0 6vw 4rem;
  padding: clamp(2.4rem, 5vw, 3.5rem);
  border-radius: 2rem;
  background: rgba(12, 15, 13, 0.72);
  color: var(--ink);
  backdrop-filter: blur(18px);
  max-width: 52rem;
}

.action h2 {
  max-width: 22em;
}

.action .kicker {
  color: var(--clay);
}

.action .sub,
.action .fine {
  color: var(--mute);
}

.action h2 {
  color: var(--ink);
}

.action .btn-ink {
  background: var(--cream);
  color: var(--card-ink);
}

.action .btn-ghost {
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 6vw 2.6rem;
  color: var(--mute);
  font-size: 0.85rem;
}

.footer a {
  margin-left: 1rem;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.footer-brand svg {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--clay);
}

@keyframes line-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes node-pop {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rep-lift {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(-16deg);
  }
}

@keyframes scan-drop {
  0%,
  100% {
    transform: translateY(-28px);
    opacity: 0.2;
  }
  50% {
    transform: translateY(28px);
    opacity: 0.85;
  }
}

@keyframes gaze-shift {
  0%,
  45% {
    transform: translate(0, 0);
  }
  55%,
  100% {
    transform: translate(16px, 28px);
  }
}

@keyframes pulse-orbit {
  0%,
  100% {
    transform: scale(0.84);
    opacity: 0.2;
  }
  50% {
    transform: scale(1);
    opacity: 0.75;
  }
}

@keyframes pulse-core {
  0%,
  100% {
    transform: scale(0.9);
  }
  50% {
    transform: scale(1);
  }
}

@keyframes haptic-tick {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(0.86);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes sonar-out {
  0% {
    transform: scale(0.55);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(0.86);
    opacity: 0.45;
  }
  45% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes core {
  0%,
  100% {
    transform: scale(0.72);
  }
  45% {
    transform: scale(1);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 960px) {
  .hero,
  .shelf,
  .risk-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: calc(var(--rail) + 1.4rem);
  }

  h1 {
    max-width: none;
    font-size: clamp(2.15rem, 9vw, 3rem);
    line-height: 1.1;
  }

  h2 {
    max-width: none;
    font-size: clamp(1.65rem, 6.5vw, 2.25rem);
  }

  blockquote {
    max-width: none;
  }

  blockquote p {
    font-size: clamp(1.45rem, 5.5vw, 1.85rem);
  }

  .rail-links a:not(.rail-cta) {
    display: none;
  }

  .menu {
    display: block;
  }

  .caption-rail {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .pulse-orbit,
  .pulse-core,
  .pulse-sonar,
  .ritual-art .line-draw,
  .ritual-art .line-node,
  .scan-beam,
  .gaze-dot {
    animation: none !important;
  }

  .ritual-art .line-draw {
    stroke-dashoffset: 0;
  }

  .pulse-core {
    transform: none;
  }

  .lung-ring,
  .lung-core {
    transform: none;
    opacity: 0.8;
  }
}

/* ——— Article (blog) ——— */

.article-page {
  max-width: 42rem;
  margin: 0 auto;
  padding: calc(var(--rail) + 2rem) 1.25rem 4rem;
}

.article-page .back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 2rem;
  color: var(--mute);
  font-size: 0.85rem;
  text-decoration: none;
}

.article-page .back:hover {
  color: var(--ink);
}

.article-page .kicker {
  margin-bottom: 0.75rem;
}

.article-page h1 {
  font-family: "Newsreader", serif;
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}

.article-page .lede {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--mute);
  margin-bottom: 2.5rem;
}

.article-body h2 {
  font-family: "Newsreader", serif;
  font-weight: 500;
  font-size: 1.45rem;
  margin: 2.25rem 0 0.75rem;
}

.article-body p,
.article-body li {
  line-height: 1.65;
  color: color-mix(in srgb, var(--ink) 88%, transparent);
}

.article-body ul {
  padding-left: 1.2rem;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.92rem;
}

.article-body th,
.article-body td {
  border: 1px solid var(--line);
  padding: 0.55rem 0.75rem;
  text-align: left;
}

.article-body a {
  color: var(--clay-hot);
}

.article-body .fine {
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: var(--mute);
}
