:root {
  --bg: #f2f0ff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --ink: #181a20;
  --muted: #60646d;
  --line: rgba(78, 62, 165, 0.12);
  --line-strong: rgba(78, 62, 165, 0.2);
  --blue: #2a62d9;
  --blue-soft: rgba(42, 98, 217, 0.12);
  --green: #179a73;
  --green-soft: rgba(23, 154, 115, 0.14);
  --red: #b94646;
  --red-soft: rgba(185, 70, 70, 0.14);
  --amber: #8d57d8;
  --amber-soft: rgba(141, 87, 216, 0.14);
  --violet: #7f59ff;
  --violet-soft: rgba(127, 89, 255, 0.16);
  --shadow: 0 18px 48px rgba(55, 44, 118, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --page-width: 1180px;
  --content-width: 900px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(127, 89, 255, 0.08), transparent 26%),
    radial-gradient(circle at 92% 9%, rgba(42, 98, 217, 0.09), transparent 16%),
    radial-gradient(circle at 72% 78%, rgba(23, 154, 115, 0.08), transparent 22%),
    linear-gradient(180deg, #f6f3ff 0%, #eef6ff 44%, #eefaf7 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.82;
  background:
    radial-gradient(circle at 15% 20%, rgba(127, 89, 255, 0.12), transparent 0 22%),
    radial-gradient(circle at 82% 18%, rgba(42, 98, 217, 0.11), transparent 0 20%),
    radial-gradient(circle at 72% 78%, rgba(23, 154, 115, 0.12), transparent 0 22%);
  animation: hue-float 16s linear infinite;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

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

.page-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 1.25rem), var(--page-width));
  margin: 0 auto;
  padding-bottom: 4rem;
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: min(100%, 1040px);
  margin: 1rem auto 0;
  padding: 0.82rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(244, 248, 255, 0.82));
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.wordmark,
.site-nav a,
.meta-line,
.author-line,
.label,
.prompt-line,
.search-field span,
th {
  font-family: "IBM Plex Mono", monospace;
}

.wordmark {
  text-decoration: none;
  font-weight: 600;
}

.wordmark:hover {
  text-shadow: 0 0 18px rgba(127, 89, 255, 0.22);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.78rem;
  color: var(--muted);
}

.hero,
.section,
.site-footer {
  width: min(100%, 1040px);
  margin: 0 auto;
}

.hero {
  padding-top: 3.1rem;
}

.hero-copy,
.hero-figure,
.text-panel,
.feature-block,
.carousel-block,
.table-shell,
.benchmark-item,
.benchmark-detail,
.principle-card,
.search-field input {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-figure,
.feature-block,
.carousel-block,
.text-panel,
.table-shell,
.benchmark-detail,
.principle-card {
  border-radius: var(--radius-xl);
}

.hero-copy {
  padding: 2.25rem 1.6rem 1.7rem;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.meta-line {
  margin: 0 0 0.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

h1 {
  max-width: 17.8ch;
  margin: 0 auto;
  font-size: clamp(2.35rem, 4.4vw, 4.4rem);
  line-height: 1.02;
}

.hero-spectrum {
  display: inline;
  color: #6f5cff;
  text-shadow:
    0 0 12px rgba(127, 89, 255, 0.12),
    0 0 24px rgba(42, 98, 217, 0.08);
  animation: hero-hue-cycle 8s linear infinite;
  white-space: nowrap;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}

h4 {
  font-size: 1rem;
}

.hero-summary,
.paper-text p,
.text-panel p,
.feature-copy p,
.feature-copy blockquote,
.carousel-head p,
.slide-copy p,
.table-intro p,
.benchmark-copy,
.benchmark-detail p,
.principle-card p,
.site-footer p,
td,
th {
  color: var(--muted);
  line-height: 1.72;
}

.hero-summary {
  max-width: 62ch;
  margin: 1rem auto 0;
  font-size: 1rem;
}

.hero-typewriter-block {
  width: min(100%, 66ch);
  margin: 1rem auto 0;
}

.thinking-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-bottom: 0.7rem;
  padding: 0.45rem 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(127, 89, 255, 0.24);
  background: linear-gradient(135deg, rgba(127, 89, 255, 0.12), rgba(42, 98, 217, 0.1), rgba(23, 154, 115, 0.08));
  color: var(--blue);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(98, 102, 255, 0.12);
  animation: thinking-pulse 1.35s ease-in-out infinite;
}

.hero-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.76rem 1.08rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, #7f59ff, #2a62d9 45%, #179a73 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 10px 28px rgba(90, 86, 255, 0.26);
  animation: hue-float 9s linear infinite;
}

.author-block {
  margin-top: 1rem;
}

.author-line {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  line-height: 1.65;
}

.author-line sup,
.affiliation-line sup {
  font-size: 0.72em;
  vertical-align: super;
  line-height: 0;
}

.affiliation-line {
  margin: 0.22rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--blue);
}

.hero-figure {
  margin-top: 1rem;
  padding: 1rem;
  width: min(100%, 760px);
  margin-left: auto;
  margin-right: auto;
}

.overview-figure {
  width: min(100%, 620px);
  margin: 0 auto;
}

.overview-figure img {
  width: 100%;
  border-radius: 18px;
}

.failure-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.failure-mode-card {
  padding: 1rem 1.05rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.label {
  margin: 0 0 0.45rem;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.failure-mode-card p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.intro-text,
.paper-text {
  width: min(100%, var(--content-width));
  margin: 1.25rem auto 0;
}

.section {
  padding-top: 3.2rem;
}

.section-heading {
  width: min(100%, var(--content-width));
  margin: 0 auto 1.25rem;
  text-align: center;
}

.section-heading-left {
  text-align: left;
}

.split-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.text-panel {
  padding: 1.2rem;
}

.text-panel p {
  margin: 0.75rem 0 0;
}

.feature-block {
  display: grid;
  grid-template-columns: minmax(260px, 410px) 1fr;
  gap: 1rem;
  padding: 1rem;
  margin-top: 1rem;
  width: min(100%, 920px);
  margin-left: auto;
  margin-right: auto;
}

.feature-media,
.feature-copy {
  min-width: 0;
}

.prompt-line {
  margin: 0 0 0.7rem;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--blue);
}

.feature-media video {
  width: min(100%, 410px);
  margin: 0 auto;
  max-height: 248px;
  object-fit: cover;
  border-radius: 18px;
  background: rgba(24, 26, 32, 0.1);
}

.feature-copy {
  display: grid;
  align-content: start;
  gap: 0.85rem;
}

.feature-copy p,
.feature-copy blockquote {
  margin: 0;
}

.feature-copy blockquote {
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
}

.typewriter-shell {
  min-height: 8.2rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.72;
}

.hero-summary.typewriter-shell {
  min-height: 14.5rem;
  text-align: left;
}

.typewriter-shell .prompt-lead {
  display: block;
  margin-bottom: 0.65rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
}

.typewriter-shell .typewriter-text::after {
  content: "";
  display: inline-block;
  width: 0.56ch;
  height: 1.1em;
  margin-left: 0.12rem;
  vertical-align: -0.14em;
  background: linear-gradient(180deg, rgba(127, 89, 255, 0.85), rgba(42, 98, 217, 0.82));
  animation: caret-blink 0.95s steps(1) infinite;
}

.typewriter-shell .wrong {
  background: linear-gradient(180deg, transparent 55%, rgba(185, 70, 70, 0.2) 55%);
  color: var(--red);
}

.model-line {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.mode-section {
  width: min(100%, var(--content-width));
  margin: 1rem auto 0;
}

.mode-section p {
  margin: 0.8rem 0 0;
  color: var(--muted);
  line-height: 1.72;
}

.table-section {
  margin-top: 1rem;
}

.table-intro {
  width: min(100%, var(--content-width));
  margin: 0 auto 0.8rem;
}

.table-shell {
  overflow-x: auto;
  width: min(100%, 640px);
  margin: 0 auto;
  padding: 0.3rem 0.55rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

th,
td {
  padding: 0.44rem 0.42rem;
  text-align: left;
}

thead tr {
  border-bottom: 1px solid var(--line-strong);
}

tbody tr + tr {
  border-top: 1px solid var(--line);
}

tbody td:nth-child(3),
tbody td:nth-child(4) {
  font-weight: 700;
  color: var(--ink);
}

.carousel-block {
  padding: 1rem;
  margin-top: 1rem;
  width: min(100%, 920px);
  margin-left: auto;
  margin-right: auto;
}

.carousel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.carousel-head p {
  max-width: 56ch;
  margin: 0.6rem 0 0;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.carousel-button,
.carousel-dot,
.filter-chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
}

.carousel-button,
.filter-chip {
  min-height: 38px;
  padding: 0.55rem 0.82rem;
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.carousel-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
}

.carousel-dot.is-active,
.filter-chip.is-active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, #8a55ff, #2a62d9 52%, #14b98f);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 10px 22px rgba(84, 92, 255, 0.26);
  animation: hue-float 9s linear infinite;
}

.carousel-dot.is-active {
  box-shadow: 0 0 0 4px rgba(24, 26, 32, 0.08);
}

.carousel-shell {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 360ms ease;
}

.carousel-slide {
  width: 100%;
  flex: 0 0 100%;
  display: grid;
  gap: 1rem;
}

.slide-card {
  display: grid;
  grid-template-columns: minmax(250px, 390px) 1fr;
  gap: 1rem;
  align-items: start;
}

.slide-media video {
  width: 100%;
  max-height: 236px;
  object-fit: cover;
  border-radius: 18px;
  background: rgba(24, 26, 32, 0.1);
}

.slide-copy {
  display: grid;
  gap: 0.8rem;
}

.slide-copy p,
.slide-copy blockquote {
  margin: 0;
}

.response-board,
.quote-card {
  padding: 0.88rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.response-board h4,
.quote-card h4 {
  margin-bottom: 0.55rem;
}

.question-line {
  margin-bottom: 0.7rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
}

.answer-grid {
  display: grid;
  gap: 0.55rem;
}

.answer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.56rem 0.68rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

.answer-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.answer-badge,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.22rem 0.58rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.74rem;
  background: rgba(255, 255, 255, 0.75);
}

.answer-badge.wrong {
  background: var(--red-soft);
  color: var(--red);
}

.answer-badge.right {
  background: var(--green-soft);
  color: var(--green);
}

.excerpt-box {
  padding: 0.92rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  min-height: 8rem;
}

.excerpt-box .wrong-inline,
.excerpt-box .wrong {
  background: linear-gradient(180deg, transparent 55%, rgba(185, 70, 70, 0.2) 55%);
  color: var(--red);
}

.benchmark-section {
  margin-top: 1rem;
}

.benchmark-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  width: min(100%, 960px);
  margin: 0 auto 1rem;
}

.search-field {
  display: grid;
  gap: 0.35rem;
  min-width: min(100%, 360px);
}

.search-field input {
  min-height: 46px;
  padding: 0.76rem 0.92rem;
  border-radius: 16px;
  outline: none;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.benchmark-layout {
  display: block;
}

.benchmark-list {
  display: grid;
  gap: 0.72rem;
  max-height: 980px;
  overflow-y: auto;
  padding-right: 0.3rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(127, 89, 255, 0.34) transparent;
}

.benchmark-list::-webkit-scrollbar {
  width: 8px;
}

.benchmark-list::-webkit-scrollbar-track {
  background: transparent;
}

.benchmark-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(127, 89, 255, 0.45), rgba(42, 98, 217, 0.38), rgba(23, 154, 115, 0.34));
}

.benchmark-item {
  padding: 0.95rem 1rem;
  border-radius: var(--radius-lg);
  cursor: default;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.benchmark-item:hover {
  transform: translateY(-2px);
  background: var(--surface-strong);
  border-color: var(--line-strong);
}

.benchmark-item h3 {
  font-size: 1.08rem;
  margin-top: 0.15rem;
}

.benchmark-copy {
  margin: 0.55rem 0 0;
  font-size: 0.98rem;
}

.benchmark-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.6rem;
}

.tag.static {
  background: var(--green-soft);
  color: var(--green);
}

.tag.prior {
  background: var(--amber-soft);
  color: var(--amber);
}

.tag.coupled {
  background: var(--blue-soft);
  color: var(--blue);
}

.benchmark-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.benchmark-citation {
  margin: 0.78rem 0 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: color-mix(in srgb, var(--muted) 88%, white 12%);
  font-family: "IBM Plex Mono", monospace;
}

.benchmark-button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.48rem 0.74rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(241, 246, 255, 0.9));
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.benchmark-button[data-toggle] {
  background: linear-gradient(135deg, rgba(127, 89, 255, 0.11), rgba(42, 98, 217, 0.08), rgba(23, 154, 115, 0.08));
}

.benchmark-button:hover,
.carousel-button:hover,
.filter-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(82, 91, 255, 0.26);
  box-shadow: 0 8px 20px rgba(100, 99, 255, 0.18);
}

.benchmark-panels {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.benchmark-panel {
  display: none;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(126, 91, 255, 0.09), rgba(42, 98, 217, 0.08), rgba(23, 154, 115, 0.08));
  line-height: 1.72;
  color: var(--muted);
}

.benchmark-panel strong {
  color: var(--ink);
}

.benchmark-panel.is-open {
  display: block;
}

.stacked-panels {
  display: grid;
  gap: 1rem;
}

.counterpoint-stage {
  width: min(100%, 980px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 1rem;
}

.counterpoint-rail {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.counterpoint-tab {
  position: relative;
  width: 100%;
  text-align: left;
  padding: 0.95rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255,255,255,0.78), rgba(244,248,255,0.9));
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.counterpoint-tab.is-active {
  transform: translateX(6px);
  border-color: rgba(82, 91, 255, 0.28);
  box-shadow: 0 12px 28px rgba(94, 95, 255, 0.16);
  background: linear-gradient(135deg, rgba(127, 89, 255, 0.12), rgba(42, 98, 217, 0.1), rgba(23, 154, 115, 0.1));
}

.counterpoint-tab strong,
.counterpoint-tab span {
  display: block;
}

.counterpoint-tab span {
  margin-top: 0.32rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.counterpoint-panel,
.orbit-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
}

.counterpoint-topline,
.orbit-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.counterpoint-index,
.orbit-step {
  font-family: "IBM Plex Mono", monospace;
  color: var(--blue);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.counterpoint-summary,
.orbit-summary {
  margin: 0.9rem 0 0;
  color: var(--muted);
  line-height: 1.74;
}

.counterpoint-columns,
.orbit-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.counterpoint-block,
.orbit-detail-card {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.counterpoint-block h4,
.orbit-detail-card h4 {
  margin-bottom: 0.45rem;
}

.counterpoint-block p,
.orbit-detail-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.counterpoint-extended,
.orbit-expanders {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.counterpoint-pullquote,
.orbit-expander {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(127, 89, 255, 0.08), rgba(42, 98, 217, 0.06), rgba(23, 154, 115, 0.06));
}

.counterpoint-pullquote h4,
.orbit-expander h4 {
  margin-bottom: 0.4rem;
}

.counterpoint-pullquote p,
.orbit-expander p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.action-orbit {
  width: min(100%, 980px);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.orbit-bubbles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.action-tab {
  min-height: 112px;
  padding: 1rem 1.05rem;
  border-radius: 24px;
  border: 1px solid rgba(127, 89, 255, 0.18);
  background: linear-gradient(135deg, rgba(255,255,255,0.84), rgba(241,246,255,0.94));
  box-shadow: 0 12px 28px rgba(98, 102, 255, 0.1);
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.action-tab.is-active {
  transform: translateY(-2px);
  border-color: rgba(82, 91, 255, 0.32);
  box-shadow: 0 18px 34px rgba(98, 102, 255, 0.16);
  background: linear-gradient(135deg, rgba(127, 89, 255, 0.14), rgba(42, 98, 217, 0.12), rgba(23, 154, 115, 0.1));
}

.action-tab strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1.18;
  max-width: 15ch;
  margin: 0 auto;
  text-wrap: balance;
}

.action-tab span {
  display: block;
  margin-top: 0.38rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.35;
}

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

.principle-card {
  padding: 1.2rem;
}

.principle-card p {
  margin: 0.7rem 0 0;
}

.site-footer {
  width: min(100%, 900px);
  margin: 3.8rem auto 0;
  text-align: center;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 560ms ease,
    transform 560ms ease;
}

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

@keyframes hue-float {
  0% {
    filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(28deg);
  }
  100% {
    filter: hue-rotate(0deg);
  }
}

@keyframes spectrum-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes hero-hue-cycle {
  0% {
    color: #7f59ff;
    text-shadow:
      0 0 12px rgba(127, 89, 255, 0.14),
      0 0 24px rgba(127, 89, 255, 0.08);
  }
  33% {
    color: #2a62d9;
    text-shadow:
      0 0 12px rgba(42, 98, 217, 0.14),
      0 0 24px rgba(42, 98, 217, 0.08);
  }
  66% {
    color: #179a73;
    text-shadow:
      0 0 12px rgba(23, 154, 115, 0.14),
      0 0 24px rgba(23, 154, 115, 0.08);
  }
  100% {
    color: #7f59ff;
    text-shadow:
      0 0 12px rgba(127, 89, 255, 0.14),
      0 0 24px rgba(127, 89, 255, 0.08);
  }
}

@keyframes thinking-pulse {
  0%,
  100% {
    opacity: 0.62;
    transform: translateY(0);
    box-shadow: 0 10px 24px rgba(98, 102, 255, 0.12);
  }
  50% {
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(98, 102, 255, 0.2);
  }
}

@keyframes letter-flicker {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.16;
  }
}

@keyframes caret-blink {
  0%,
  50% {
    opacity: 1;
  }
  50.01%,
  100% {
    opacity: 0;
  }
}

body.spectral-mode::before,
body.spectral-mode .button-primary,
body.spectral-mode .filter-chip.is-active,
body.spectral-mode .carousel-dot.is-active {
  animation-duration: 6s;
}

body.spectral-mode .site-header,
body.spectral-mode .carousel-block,
body.spectral-mode .feature-block,
body.spectral-mode .benchmark-item,
body.spectral-mode .principle-card,
body.spectral-mode .text-panel {
  box-shadow: 0 18px 50px rgba(97, 84, 255, 0.16);
}

@media (max-width: 980px) {
  .site-header,
  .hero,
  .section,
  .site-footer {
    width: 100%;
  }

  .failure-mode-grid,
  .split-notes,
  .slide-card,
  .feature-block,
  .benchmark-layout,
  .principle-grid,
  .counterpoint-stage,
  .action-orbit,
  .counterpoint-columns,
  .orbit-detail-grid {
    grid-template-columns: 1fr;
  }

  .carousel-head {
    flex-direction: column;
  }

  .orbit-bubbles {
    grid-template-columns: 1fr;
  }

  .action-tab {
    min-height: 96px;
  }

  .action-tab strong {
    font-size: 1.04rem;
    max-width: 18ch;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 0.9rem), var(--page-width));
  }

  .site-header {
    flex-direction: column;
    border-radius: 26px;
  }

  h1 {
    max-width: 12.2ch;
    font-size: clamp(2.1rem, 12vw, 3.3rem);
  }

  .hero-spectrum {
    white-space: normal;
  }

  .hero-copy,
  .hero-figure,
  .feature-block,
  .carousel-block,
  .text-panel,
  .principle-card {
    padding: 1rem;
  }

  .hero-summary.typewriter-shell {
    min-height: 16.2rem;
    font-size: 0.94rem;
  }

  .orbit-bubbles {
    grid-template-columns: 1fr;
  }

  .action-tab {
    min-height: 88px;
    padding: 0.92rem;
  }

  .action-tab strong {
    font-size: 1rem;
    max-width: 16ch;
  }
}
