:root {
  --void: #11100e;
  --void-soft: #1a1916;
  --bone: #eee9dc;
  --bone-dim: #b9b2a4;
  --signal: #ff3b19;
  --signal-dark: #ba1e0c;
  --acid: #d8ff43;
  --line: rgba(238, 233, 220, 0.22);
  --header-height: 92px;
  --ritual-cross-x: 72%;
  --sans: "Hiragino Kaku Gothic StdN", "Hiragino Sans", "Yu Gothic", sans-serif;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  color-scheme: dark;
  background: var(--void);
}

body {
  margin: 0;
  min-height: 100svh;
  color: var(--bone);
  overflow-x: hidden;
  font-family: var(--sans);
  background: var(--void);
}

body.reveal-open {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: rgba(255, 59, 25, 0.25);
  touch-action: manipulation;
}

button {
  color: inherit;
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--acid);
  outline-offset: 5px;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2 {
  scroll-margin-top: calc(var(--header-height) + 18px);
}

.skip-link {
  position: fixed;
  z-index: 500;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  color: var(--void);
  background: var(--acid);
  font-size: 12px;
  font-weight: 800;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

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

.site-shell {
  position: relative;
  min-height: 100svh;
  background: var(--void);
}

.ritual-canvas {
  position: absolute;
  z-index: 0;
  inset: 0 auto auto 0;
  width: 100%;
  height: 100svh;
  pointer-events: none;
}

.grain {
  position: fixed;
  z-index: 280;
  inset: 0;
  opacity: 0.12;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.scanline {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: var(--ritual-cross-x);
  width: 1px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--signal) 30%, transparent 76%);
  opacity: 0.8;
}

.masthead {
  position: absolute;
  z-index: 30;
  inset: 0 0 auto;
  display: grid;
  height: var(--header-height);
  padding: 20px clamp(22px, 3vw, 50px);
  grid-template-columns: 1fr auto;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-grid;
  width: fit-content;
  color: var(--bone);
  text-decoration: none;
}

.wordmark ruby {
  display: inline-flex;
  flex-direction: column-reverse;
  align-items: center;
  font-family: var(--serif);
  font-size: clamp(16px, 1.5vw, 23px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.05em;
}

.wordmark rt {
  margin-bottom: 5px;
  color: var(--acid);
  font-family: var(--sans);
  font-size: 0.36em;
  font-weight: 900;
  letter-spacing: 0.22em;
}

.wordmark:hover ruby {
  color: var(--signal);
}

.utility-nav {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 4px;
}

.icon-button,
.nav-label {
  text-decoration: none;
  position: relative;
  display: grid;
  min-width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}

.icon-button:hover,
.nav-label:hover {
  color: var(--void);
  border-color: var(--acid);
  background: var(--acid);
}

.icon-button svg {
  width: 18px;
  fill: currentColor;
}

.sound-wave {
  stroke: currentColor;
  stroke-width: 1.5;
}

.icon-button[aria-pressed="false"] .sound-wave {
  display: none;
}

.nav-label {
  width: auto;
  padding-inline: 11px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.history-count {
  position: absolute;
  top: 1px;
  right: 0;
  display: grid;
  min-width: 16px;
  height: 16px;
  padding-inline: 3px;
  place-items: center;
  color: var(--void);
  background: var(--acid);
  border-radius: 50%;
  font-size: 8px;
  font-weight: 900;
}

.summoning-stage {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.stage-protocol-label {
  position: absolute;
  z-index: 5;
  top: calc(var(--header-height) + 22px);
  left: clamp(22px, 3vw, 50px);
  margin: 0;
  color: rgba(238, 233, 220, 0.38);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.24em;
}

.title-block {
  position: absolute;
  z-index: 5;
  top: 20%;
  left: clamp(22px, 5.7vw, 92px);
  width: min(51vw, 750px);
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(66px, 7.3vw, 118px);
  font-weight: 900;
  line-height: 0.84;
  letter-spacing: -0.105em;
}

.title-row {
  display: block;
  width: fit-content;
  white-space: nowrap;
  will-change: transform, opacity;
}

.title-row i {
  color: var(--signal);
  font-style: normal;
  -webkit-text-stroke: 1px var(--signal);
}

.title-row-b {
  margin: 0 0 0 clamp(40px, 7vw, 120px);
}

.title-row-b i {
  color: var(--signal);
  -webkit-text-stroke: 1px var(--signal);
}

.stage-lead {
  max-width: 610px;
  margin: 34px 0 0 clamp(5px, 3.5vw, 58px);
  color: var(--bone-dim);
  font-size: clamp(10px, 0.88vw, 13px);
  font-weight: 500;
  line-height: 2.05;
  letter-spacing: 0.035em;
}

.stage-lead strong {
  color: var(--bone);
  font-family: var(--serif);
  font-size: 1.08em;
}

.summon-rig {
  position: absolute;
  z-index: 8;
  top: 50%;
  left: var(--ritual-cross-x);
  width: clamp(250px, 25vw, 390px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.signal-axis {
  position: absolute;
  top: 50%;
  right: -100vw;
  left: -100vw;
  height: 1px;
  background: rgba(238, 233, 220, 0.2);
}

.axis-dot {
  position: absolute;
  top: -3px;
  width: 7px;
  height: 7px;
  background: var(--signal);
  border-radius: 50%;
}

.axis-dot-a {
  left: calc(100vw - 7px);
}

.axis-dot-b {
  right: calc(100vw - 7px);
}

.summon-button {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  padding: 0;
  place-items: center;
  color: var(--bone);
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  will-change: transform;
}

.summon-orbit {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
  will-change: transform;
}

.orbit-outer {
  inset: 0;
}

.orbit-inner {
  inset: 14%;
  border-color: rgba(255, 59, 25, 0.7);
  border-style: dashed;
}

.summon-button:hover .orbit-outer {
  border-color: var(--acid);
}

.summon-core {
  position: relative;
  display: grid;
  width: 48%;
  aspect-ratio: 1;
  place-items: center;
  color: var(--void);
  background: var(--signal);
  border-radius: 50%;
  box-shadow: 18px 18px 0 rgba(255, 59, 25, 0.14);
  will-change: transform;
}

.summon-button:hover .summon-core {
  color: var(--void);
  background: var(--acid);
}

.summon-core b {
  font-family: var(--serif);
  font-size: clamp(54px, 5.5vw, 90px);
  line-height: 1;
}

.summon-core small {
  position: absolute;
  right: 0;
  bottom: 18%;
  left: 0;
  font-size: 6px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.core-index {
  position: absolute;
  top: 16%;
  right: 18%;
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 900;
}

.summon-pull {
  position: absolute;
  bottom: -31%;
  left: calc(50% - 11px);
  display: flex;
  width: 72px;
  height: 115px;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  transform: translateX(-50%);
  will-change: transform;
}

.summon-pull::before {
  display: none;
}

.summon-pull i {
  width: 7px;
  height: 58px;
  background: var(--bone);
  transform: skewX(-18deg);
}

.summon-pull i:nth-child(2) {
  height: 68px;
  background: var(--signal);
}

.category-console {
  position: absolute;
  z-index: 10;
  bottom: 34px;
  left: clamp(22px, 5.7vw, 92px);
  width: min(58vw, 850px);
}

.category-status {
  display: flex;
  margin-bottom: 10px;
  padding-bottom: 10px;
  align-items: end;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.category-status p,
.category-status span {
  margin: 0;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.category-status p {
  color: var(--bone);
}

.category-status span {
  color: var(--bone-dim);
}

.category-status b {
  color: var(--bone);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.category-list {
  display: flex;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-list::-webkit-scrollbar {
  display: none;
}

.category-option {
  position: relative;
  flex: 0 0 auto;
  padding: 11px 16px 11px 13px;
  color: var(--bone-dim);
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.category-option:first-child {
  border-left: 1px solid var(--line);
}

.category-option::before {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 4px;
  left: 10px;
  height: 2px;
  background: var(--acid);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.category-option:hover,
.category-option[aria-checked="true"] {
  color: var(--bone);
}

.category-option[aria-checked="true"]::before {
  transform: scaleX(1);
}

.ticker {
  position: absolute;
  z-index: 3;
  overflow: hidden;
  color: var(--void);
  background: var(--acid);
  transform: rotate(-3deg);
}

.ticker-top {
  top: 13%;
  right: -4%;
  width: 42vw;
}

.ticker-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.ticker-track span {
  padding: 6px 15px;
  font-family: var(--serif);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.oracle-reveal {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  color: var(--bone);
  background: var(--void);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.oracle-reveal.is-visible {
  visibility: visible;
  pointer-events: auto;
}

.reveal-panel {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  width: 52%;
  background: var(--signal);
  will-change: transform;
}

.reveal-panel-left {
  left: 0;
  transform-origin: left;
}

.reveal-panel-right {
  right: 0;
  transform-origin: right;
}

.reveal-noise {
  position: absolute;
  z-index: 1;
  inset: 0;
  opacity: 0.12;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 9.9vw,
    rgba(238, 233, 220, 0.2) 10vw
  );
}

.oracle-canvas {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}

.reveal-fx {
  position: absolute;
  z-index: 3;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.reveal-fx > span {
  position: absolute;
  display: block;
  visibility: hidden;
  opacity: 0;
  will-change: transform, opacity;
}

.fx-ring {
  top: 50%;
  left: 50%;
  aspect-ratio: 1;
  border: 2px solid var(--acid);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.fx-ring-a {
  width: min(72vmax, 980px);
}

.fx-ring-b {
  width: min(48vmax, 680px);
  border-color: var(--signal);
  border-style: dashed;
}

.fx-scan {
  top: 50%;
  right: -10%;
  left: -10%;
  height: 11px;
  background: var(--acid);
  box-shadow:
    0 -22px 0 rgba(216, 255, 67, 0.18),
    0 22px 0 rgba(216, 255, 67, 0.18);
  transform-origin: left center;
}

.fx-seal {
  top: 50%;
  left: 50%;
  display: grid !important;
  width: min(70vmax, 1040px);
  aspect-ratio: 1;
  place-items: center;
  color: var(--void);
  background: var(--signal);
  border: 12px solid var(--void);
  outline: 2px solid var(--signal);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: min(25vmax, 360px);
  font-weight: 900;
  transform: translate(-50%, -50%);
}

.fx-slash {
  top: 50%;
  left: 50%;
  width: 145vmax;
  height: clamp(35px, 6vw, 90px);
  background: var(--signal);
  transform: translate(-50%, -50%) rotate(-12deg);
}

.fx-slash-b {
  height: clamp(12px, 2vw, 30px);
  background: var(--acid);
  transform: translate(-50%, -50%) rotate(8deg);
}

.fx-slash-c {
  height: 2px;
  background: var(--bone);
  transform: translate(-50%, -50%) rotate(-27deg);
}

.fx-bar {
  top: -20%;
  width: clamp(32px, 7vw, 110px);
  height: 140%;
  background: var(--signal);
  transform: skewX(-8deg);
}

.fx-bar-a {
  left: 4%;
}

.fx-bar-b {
  left: 25%;
  background: var(--bone);
}

.fx-bar-c {
  left: 47%;
  background: var(--acid);
}

.fx-bar-d {
  left: 69%;
}

.fx-bar-e {
  left: 91%;
  background: var(--bone);
}

.oracle-reveal.variant-radar .reveal-noise {
  background-image:
    radial-gradient(circle at center, transparent 0 22%, rgba(216, 255, 67, 0.08) 22.2% 22.5%, transparent 22.7%),
    repeating-linear-gradient(90deg, transparent 0, transparent 9.9vw, rgba(238, 233, 220, 0.1) 10vw);
}

.oracle-reveal.variant-cascade .reveal-noise {
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 7.9vw,
    rgba(255, 59, 25, 0.22) 8vw
  );
}

.oracle-reveal.variant-glitch .oracle-topic {
  text-shadow:
    -5px 0 0 rgba(255, 59, 25, 0.7),
    5px 0 0 rgba(216, 255, 67, 0.45);
}

.oracle-reveal.variant-seal .oracle-command {
  color: var(--bone);
  background: var(--signal);
}

.reveal-ghost {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  margin: 0;
  color: transparent;
  font-family: var(--serif);
  font-size: min(44vw, 670px);
  font-weight: 900;
  line-height: 1;
  -webkit-text-stroke: 1px rgba(238, 233, 220, 0.18);
  transform: translate(-50%, -53%) rotate(-8deg);
  white-space: nowrap;
  will-change: transform, opacity;
}

.reveal-close {
  position: absolute;
  z-index: 8;
  top: max(24px, env(safe-area-inset-top));
  right: clamp(20px, 3vw, 48px);
  display: flex;
  height: 42px;
  padding: 0 12px;
  align-items: center;
  gap: 8px;
  color: var(--bone);
  border: 1px solid var(--bone);
  background: var(--void);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.14em;
  cursor: pointer;
}

.reveal-close span {
  color: var(--signal);
  font-size: 18px;
  line-height: 1;
}

.reveal-close:hover {
  color: var(--void);
  background: var(--acid);
}

.reveal-head {
  position: absolute;
  z-index: 5;
  top: max(24px, env(safe-area-inset-top));
  left: clamp(20px, 3vw, 48px);
  display: flex;
  height: 42px;
  align-items: center;
  gap: 30px;
  color: var(--bone-dim);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.reveal-head p {
  margin: 0;
  color: var(--acid);
}

.reveal-content {
  position: relative;
  z-index: 5;
  display: grid;
  width: min(94vw, 1300px);
  margin: auto;
  justify-items: center;
  text-align: center;
}

.oracle-kicker {
  display: flex;
  margin: 0;
  align-items: center;
  gap: 18px;
  color: var(--acid);
  font-family: var(--serif);
  font-size: clamp(12px, 1.2vw, 18px);
  font-weight: 900;
  letter-spacing: 0.32em;
}

.oracle-kicker span {
  width: clamp(30px, 5vw, 80px);
  height: 1px;
  background: currentColor;
}

.oracle-topic {
  display: flex;
  min-height: 1.05em;
  margin: 4vh 0 3vh;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: clamp(88px, 17vw, 260px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.1em;
  word-break: keep-all;
  white-space: nowrap;
}

.oracle-topic.long {
  font-size: clamp(62px, 11vw, 170px);
  white-space: normal;
}

.oracle-char {
  display: inline-block;
  will-change: transform, opacity;
}

.oracle-command {
  margin: 0;
  padding: 11px 18px;
  color: var(--void);
  background: var(--bone);
  font-family: var(--serif);
  font-size: clamp(13px, 1.3vw, 18px);
  font-weight: 900;
  letter-spacing: 0.17em;
  transform: rotate(-1deg);
  will-change: transform, opacity;
}

.reveal-actions {
  position: absolute;
  z-index: 6;
  right: clamp(20px, 3vw, 48px);
  bottom: max(64px, calc(env(safe-area-inset-bottom) + 48px));
  display: flex;
  align-items: end;
  gap: 22px;
}

.reveal-actions p {
  margin: 0;
  color: var(--bone-dim);
  font-size: 7px;
  font-weight: 800;
  line-height: 1.7;
  letter-spacing: 0.16em;
}

.again-button {
  display: flex;
  width: clamp(185px, 18vw, 270px);
  min-height: 76px;
  padding: 0 22px;
  align-items: center;
  justify-content: space-between;
  color: var(--void);
  border: 0;
  background: var(--acid);
  cursor: pointer;
  will-change: transform;
}

.again-button:hover {
  color: var(--bone);
  background: var(--signal);
}

.again-button span {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.again-button b {
  font-size: 28px;
}

.reveal-ticker {
  position: absolute;
  z-index: 6;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  color: var(--void);
  background: var(--bone);
}

.reveal-ticker > div {
  display: flex;
  width: max-content;
  will-change: transform;
}

.reveal-ticker span {
  padding: 8px 30px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.17em;
}

.manifesto {
  position: relative;
  z-index: 3;
  display: grid;
  min-height: 100svh;
  padding: clamp(90px, 11vw, 170px) clamp(22px, 6vw, 96px);
  grid-template-columns: 0.32fr 0.78fr 0.9fr;
  gap: clamp(30px, 5vw, 90px);
  color: var(--void);
  background: var(--bone);
}

.manifesto::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 38%;
  height: 12px;
  background: var(--signal);
}

.manifesto-index {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.manifesto-index span {
  padding-top: 7px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
}

.manifesto-index b {
  color: var(--signal);
  font-family: var(--serif);
  font-size: clamp(120px, 16vw, 240px);
  line-height: 0.75;
}

.manifesto-title p {
  margin: 0 0 28px;
  color: var(--signal);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.manifesto-title h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 94px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.07em;
}

.manifesto-copy {
  padding-top: 9vh;
}

.manifesto-lead {
  max-width: 500px;
  margin: 0 0 58px;
  font-family: var(--serif);
  font-size: clamp(18px, 1.65vw, 25px);
  font-weight: 800;
  line-height: 1.85;
}

.manifesto-copy dl {
  margin: 0 0 40px;
  border-top: 2px solid var(--void);
}

.manifesto-copy dl > div {
  display: grid;
  padding: 13px 0;
  grid-template-columns: 1fr auto;
  border-bottom: 1px solid rgba(17, 16, 14, 0.25);
}

.manifesto-copy dt {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.manifesto-copy dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 900;
}

.manifesto-note {
  color: rgba(17, 16, 14, 0.62);
  font-size: 11px;
  line-height: 1.9;
}

.return-link {
  display: flex;
  margin-top: 42px;
  padding: 18px 0;
  align-items: center;
  justify-content: space-between;
  color: var(--void);
  border-top: 1px solid var(--void);
  border-bottom: 1px solid var(--void);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
}

.return-link span {
  color: var(--signal);
  font-size: 24px;
}

.site-footer {
  position: relative;
  z-index: 3;
  display: grid;
  min-height: 116px;
  padding: 32px clamp(22px, 3vw, 50px);
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px 60px;
  color: var(--bone-dim);
  background: var(--void);
  border-top: 1px solid var(--line);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.footer-brand {
  display: grid;
  width: fit-content;
  gap: 12px;
}

.footer-brand ruby {
  display: inline-flex;
  flex-direction: column-reverse;
  align-items: center;
  color: var(--bone);
  font-family: var(--serif);
  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 900;
  line-height: 1;
}

.footer-brand rt {
  margin-bottom: 5px;
  color: var(--acid);
  font-family: var(--sans);
  font-size: 0.36em;
  letter-spacing: 0.2em;
}

.footer-brand small {
  font-size: 7px;
  letter-spacing: 0.18em;
}

.footer-nav {
  display: flex;
  justify-content: flex-end;
  gap: clamp(14px, 2.4vw, 34px);
}

.footer-nav a[aria-current="page"] {
  color: var(--acid);
}

.site-footer a {
  color: inherit;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.site-footer a:hover {
  color: var(--acid);
  text-decoration-color: currentColor;
}

.info-body {
  min-height: 100svh;
  background:
    linear-gradient(90deg, transparent 0 69.9%, rgba(255, 59, 25, 0.55) 70%, transparent 70.1%),
    var(--void);
}

.info-header {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: var(--header-height);
  padding: 20px clamp(22px, 3vw, 50px);
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.info-back {
  padding: 13px 16px;
  color: var(--void);
  background: var(--acid);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.info-back:hover {
  color: var(--bone);
  background: var(--signal);
}

.info-main {
  position: relative;
  z-index: 2;
}

.info-hero {
  min-height: min(82svh, 820px);
  padding: clamp(100px, 12vw, 180px) clamp(22px, 7vw, 110px);
  border-bottom: 1px solid var(--line);
}

.info-hero-compact {
  min-height: min(70svh, 680px);
}

.info-hero > p:first-child,
.info-kicker {
  margin: 0 0 24px;
  color: var(--acid);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.22em;
}

.info-hero h1 {
  max-width: 1050px;
  font-size: clamp(72px, 11vw, 168px);
  line-height: 0.88;
}

.info-hero h1 i {
  color: transparent;
  font-style: normal;
  -webkit-text-stroke: 1px var(--bone);
}

.info-intro {
  max-width: 610px;
  margin: 65px 0 0 min(18vw, 270px);
  color: var(--bone-dim);
  font-family: var(--serif);
  font-size: clamp(14px, 1.35vw, 20px);
  font-weight: 700;
  line-height: 2;
}

.info-section {
  display: grid;
  min-height: 72svh;
  padding: clamp(80px, 10vw, 150px) clamp(22px, 7vw, 110px);
  grid-template-columns: minmax(100px, 0.32fr) minmax(0, 0.68fr);
  gap: clamp(30px, 7vw, 110px);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 20px;
}

.info-section:nth-child(odd) {
  color: var(--void);
  background: var(--bone);
}

.info-section:nth-child(odd) .info-kicker {
  color: var(--signal);
}

.info-number {
  color: var(--signal);
  font-family: var(--serif);
  font-size: clamp(90px, 13vw, 200px);
  font-weight: 900;
  line-height: 0.75;
  opacity: 0.9;
}

.info-section h2 {
  max-width: 800px;
  margin: 0 0 50px;
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 104px);
  line-height: 1;
  letter-spacing: -0.07em;
}

.info-section > div:last-child > p:not(.info-kicker) {
  max-width: 700px;
  font-size: clamp(13px, 1.15vw, 17px);
  line-height: 2;
}

.info-note {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid currentColor;
  opacity: 0.62;
  font-size: 11px !important;
}

.protocol-steps {
  max-width: 760px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid currentColor;
}

.protocol-steps li {
  display: grid;
  padding: 20px 0;
  grid-template-columns: 70px 1fr;
  border-bottom: 1px solid currentColor;
}

.protocol-steps span {
  grid-row: span 2;
  color: var(--signal);
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 900;
}

.protocol-steps b {
  font-family: var(--serif);
  font-size: 22px;
}

.protocol-steps p {
  margin: 7px 0 0;
  font-size: 11px;
  opacity: 0.62;
}

.usage-guide {
  max-width: 820px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid currentColor;
}

.usage-guide li {
  display: grid;
  padding: 20px 0;
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 0.66fr);
  gap: 30px;
  border-bottom: 1px solid currentColor;
}

.usage-guide b {
  font-family: var(--serif);
  font-size: clamp(17px, 1.55vw, 23px);
}

.usage-guide p {
  margin: 0;
  font-size: 12px;
  line-height: 1.9;
  opacity: 0.7;
}

.commandments {
  position: relative;
  z-index: 2;
}

.commandments article {
  display: grid;
  min-height: 62svh;
  padding: clamp(75px, 9vw, 140px) clamp(22px, 7vw, 110px);
  grid-template-columns: minmax(100px, 0.28fr) minmax(0, 0.72fr);
  align-items: center;
  gap: clamp(30px, 7vw, 110px);
  border-bottom: 1px solid var(--line);
}

.commandments article:nth-of-type(even) {
  color: var(--void);
  background: var(--bone);
}

.commandments article > span {
  color: var(--signal);
  font-family: var(--serif);
  font-size: clamp(100px, 15vw, 220px);
  font-weight: 900;
  line-height: 0.75;
}

.commandments article div > p:first-child {
  margin: 0 0 24px;
  color: var(--acid);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.22em;
}

.commandments article:nth-of-type(even) div > p:first-child {
  color: var(--signal);
}

.commandments h3 {
  margin: 0 0 38px;
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 104px);
  line-height: 1;
  letter-spacing: -0.07em;
}

.commandments article div > p:last-child {
  max-width: 700px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(15px, 1.5vw, 22px);
  font-weight: 700;
  line-height: 2;
}

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

.info-cta {
  display: flex;
  width: min(100%, 550px);
  margin-top: 45px;
  padding: 24px 0;
  align-items: center;
  justify-content: space-between;
  color: inherit;
  border-top: 2px solid currentColor;
  border-bottom: 1px solid currentColor;
  font-family: var(--serif);
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 900;
  text-decoration: none;
}

.info-cta span {
  color: var(--signal);
  font-size: 32px;
  transition: transform 160ms ease;
}

.info-cta:hover span {
  transform: translate(5px, -5px);
}

.sheet {
  width: min(100% - 28px, 610px);
  max-height: min(84svh, 760px);
  margin: auto;
  padding: 0;
  color: var(--void);
  border: 0;
  background: var(--bone);
  box-shadow: 16px 16px 0 var(--signal);
  overscroll-behavior: contain;
}

.sheet::backdrop {
  background: rgba(17, 16, 14, 0.82);
  backdrop-filter: blur(8px);
}

.sheet-inner {
  max-height: inherit;
  padding: clamp(25px, 5vw, 50px);
  overflow-y: auto;
}

.sheet-header {
  display: flex;
  margin-bottom: 36px;
  align-items: flex-start;
  justify-content: space-between;
}

.sheet-header p {
  margin: 0 0 10px;
  color: var(--signal);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.sheet-header h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 8vw, 64px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.sheet-close {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--bone);
  border: 0;
  background: var(--void);
  font-size: 24px;
  cursor: pointer;
}

.sheet-close:hover {
  background: var(--signal);
}

.history-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: log;
  border-top: 2px solid var(--void);
}

.history-list li {
  counter-increment: log;
  display: grid;
  padding: 14px 0;
  grid-template-columns: 40px 1fr auto;
  align-items: baseline;
  border-bottom: 1px solid rgba(17, 16, 14, 0.25);
}

.history-list li::before {
  content: counter(log, decimal-leading-zero);
  color: var(--signal);
  font-size: 9px;
  font-weight: 900;
}

.history-list b {
  font-family: var(--serif);
  font-size: 22px;
}

.history-list time {
  color: rgba(17, 16, 14, 0.5);
  font-size: 9px;
}

.history-empty {
  padding: 42px 0;
  border-top: 2px solid var(--void);
  border-bottom: 1px solid var(--void);
  font-family: var(--serif);
  line-height: 1.8;
}

.text-button {
  margin-top: 24px;
  padding: 0;
  color: var(--signal-dark);
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.text-button:hover {
  color: var(--void);
}

.how-to {
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--void);
}

.how-to li {
  display: grid;
  padding: 16px 0;
  grid-template-columns: 45px 1fr;
  gap: 3px;
  border-bottom: 1px solid rgba(17, 16, 14, 0.25);
}

.how-to li > span {
  grid-row: span 2;
  color: var(--signal);
  font-size: 10px;
  font-weight: 900;
}

.how-to b {
  font-family: var(--serif);
  font-size: 20px;
}

.how-to p {
  margin: 5px 0 0;
  color: rgba(17, 16, 14, 0.6);
  font-size: 10px;
}

.primary-button {
  width: 100%;
  min-height: 58px;
  color: var(--bone);
  border: 0;
  background: var(--void);
  font-family: var(--serif);
  font-weight: 900;
  cursor: pointer;
}

.primary-button:hover {
  background: var(--signal);
}

.toast {
  position: fixed;
  z-index: 450;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  padding: 11px 18px;
  color: var(--void);
  background: var(--acid);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.noscript-message {
  position: fixed;
  z-index: 500;
  right: 16px;
  bottom: 16px;
  left: 16px;
  width: fit-content;
  max-width: calc(100vw - 32px);
  margin: auto;
  padding: 12px 18px;
  color: var(--void);
  background: var(--acid);
  font-size: 11px;
}

@media (max-width: 1040px) {
  :root {
    --ritual-cross-x: 68%;
  }

  .title-block {
    top: 21%;
    width: 58vw;
  }

  h1 {
    font-size: clamp(65px, 9.7vw, 102px);
  }

  .summon-rig {
    width: 30vw;
  }

  .category-console {
    width: 68vw;
  }

  .manifesto {
    grid-template-columns: 0.25fr 0.85fr 0.9fr;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 72px;
    --ritual-cross-x: 50%;
  }

  .masthead {
    padding: max(12px, env(safe-area-inset-top)) 14px 8px;
    grid-template-columns: 1fr auto;
  }

  .wordmark ruby {
    font-size: 14px;
  }

  .utility-nav {
    gap: 0;
  }

  .icon-button,
  .nav-label {
    min-width: 36px;
    height: 36px;
  }

  .nav-label {
    padding-inline: 6px;
  }

  .summoning-stage {
    min-height: 820px;
    height: 100svh;
  }

  .ticker-top {
    top: 10%;
    right: -24%;
    width: 68vw;
  }

  .title-block {
    top: 15%;
    left: 20px;
    width: calc(100% - 40px);
  }

  h1 {
    font-size: clamp(48px, 14.5vw, 64px);
    line-height: 0.86;
  }

  .title-row-b {
    margin-left: 28px;
  }

  .stage-lead {
    margin: 20px 0 0 18px;
    font-size: 9px;
    line-height: 1.75;
  }

  .summon-rig {
    top: 57%;
    width: min(58vw, 244px);
    transform: translate(-50%, -50%);
  }

  .summon-core {
    box-shadow: 10px 10px 0 rgba(255, 59, 25, 0.16);
  }

  .summon-core b {
    font-size: 52px;
  }

  .summon-pull {
    bottom: -24%;
    height: 88px;
  }

  .category-console {
    bottom: max(18px, env(safe-area-inset-bottom));
    left: 14px;
    width: calc(100% - 28px);
  }

  .category-status {
    margin-bottom: 4px;
    padding-bottom: 8px;
  }

  .category-option {
    padding: 10px 13px;
    font-size: 8px;
  }

  .site-footer {
    min-height: 0;
    padding: 28px 18px;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 26px;
  }

  .footer-nav {
    display: grid;
    justify-content: stretch;
    gap: 0;
    border-top: 1px solid var(--line);
  }

  .footer-nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }

  .info-header {
    min-height: var(--header-height);
    padding: max(12px, env(safe-area-inset-top)) 14px 8px;
  }

  .info-back {
    padding: 10px;
    font-size: 7px;
  }

  .info-hero {
    min-height: 70svh;
    padding: 90px 20px 70px;
  }

  .info-hero-compact {
    min-height: 62svh;
  }

  .info-hero h1 {
    font-size: clamp(56px, 19vw, 80px);
  }

  .info-intro {
    margin: 42px 0 0 20px;
    font-size: 12px;
  }

  .info-section {
    min-height: 0;
    padding: 75px 20px;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .info-number {
    font-size: 72px;
  }

  .info-section h2 {
    margin-bottom: 34px;
    font-size: clamp(45px, 14vw, 62px);
  }

  .protocol-steps li {
    grid-template-columns: 50px 1fr;
  }

  .usage-guide li {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .commandments article {
    min-height: 0;
    padding: 75px 20px;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .commandments article > span {
    font-size: 82px;
  }

  .commandments h3 {
    margin-bottom: 28px;
    font-size: clamp(44px, 13vw, 58px);
  }

  .commandments article div > p:last-child {
    font-size: 14px;
  }

  .reveal-head {
    top: max(17px, env(safe-area-inset-top));
    left: 14px;
  }

  .reveal-head p {
    font-size: 7px;
  }

  .reveal-head > span {
    display: none;
  }

  .reveal-close {
    top: max(12px, env(safe-area-inset-top));
    right: 10px;
  }

  .reveal-ghost {
    font-size: 72vw;
  }

  .reveal-content {
    width: calc(100% - 24px);
  }

  .oracle-kicker {
    gap: 10px;
    font-size: 10px;
    letter-spacing: 0.22em;
  }

  .oracle-kicker span {
    width: 25px;
  }

  .oracle-topic {
    margin: 5vh 0 4vh;
    font-size: clamp(68px, 22vw, 105px);
  }

  .oracle-topic.long {
    font-size: clamp(43px, 14vw, 65px);
  }

  .oracle-command {
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .reveal-actions {
    right: 14px;
    bottom: max(55px, calc(env(safe-area-inset-bottom) + 50px));
    left: 14px;
    justify-content: space-between;
  }

  .again-button {
    width: 190px;
    min-height: 62px;
  }

  .reveal-actions p {
    text-align: right;
  }

  .manifesto {
    min-height: auto;
    padding: 90px 20px 80px;
    grid-template-columns: 0.25fr 1fr;
    gap: 28px 18px;
  }

  .manifesto-index {
    grid-row: span 2;
  }

  .manifesto-index b {
    font-size: 30vw;
  }

  .manifesto-title p {
    margin-bottom: 20px;
    font-size: 10px;
  }

  .manifesto-title h2 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .manifesto-copy {
    padding-top: 18px;
    grid-column: 2;
  }

  .manifesto-lead {
    margin-bottom: 40px;
    font-size: 16px;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    gap: 8px;
  }

  .site-footer p:nth-child(2) {
    display: none;
  }

  .sheet {
    box-shadow: 8px 8px 0 var(--signal);
  }
}

@media (max-width: 380px), (max-height: 720px) and (max-width: 760px) {
  .summoning-stage {
    min-height: 700px;
  }

  .title-block {
    top: 15%;
  }

  h1 {
    font-size: clamp(52px, 17vw, 66px);
  }

  .stage-lead {
    margin-top: 14px;
  }

  .summon-rig {
    top: 52%;
    width: min(49vw, 205px);
  }

  .category-console {
    bottom: 12px;
  }
}

@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;
  }
}
