:root {
  --bg: #0a0a0f;
  --bg-alt: #12121a;
  --bg-card: #16161f;
  --text: #e8e8f0;
  --text-muted: #a0a0b0;
  --accent: #7c6cf0;
  --accent-glow: rgba(124, 108, 240, 0.15);
  --warm: #e8a050;
  --warm-glow: rgba(232, 160, 80, 0.15);
  --cyan: #60c8d0;
  --cyan-glow: rgba(96, 200, 208, 0.2);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(124, 108, 240, 0.3);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 18px 45px rgba(0, 0, 0, 0.32);
  --content-width: 1180px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --flow-control-bg: rgba(8, 10, 16, 0.5);
  --flow-control-border: rgba(255, 255, 255, 0.16);
  --flow-panel-bg: rgba(10, 11, 19, 0.54);
}

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

html {
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
h4,
p,
ul,
ol {
  margin: 0;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(124, 108, 240, 0.16), transparent 34%),
    radial-gradient(circle at 85% 10%, rgba(232, 160, 80, 0.12), transparent 28%),
    radial-gradient(circle at 50% 55%, rgba(96, 200, 208, 0.08), transparent 32%),
    linear-gradient(180deg, #08080d 0%, var(--bg) 42%, #090910 100%);
  color: var(--text);
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

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

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

button,
input,
textarea,
select {
  font: inherit;
}

ul {
  padding-left: 1.2rem;
}

.highlight {
  background: linear-gradient(135deg, var(--accent) 0%, var(--warm) 52%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1.2rem, 3vw, 2.2rem);
  background: rgba(10, 10, 15, 0.82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-brand-logo {
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  filter: drop-shadow(0 10px 20px rgba(124, 108, 240, 0.18));
}

.nav-brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
}

.nav-brand-text > span {
  background: linear-gradient(135deg, var(--warm), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.4;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 700;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--accent), #5f86ff);
  box-shadow: 0 14px 30px rgba(124, 108, 240, 0.26);
}

.btn-primary:hover {
  color: white;
  box-shadow: 0 18px 36px rgba(124, 108, 240, 0.34);
}

.btn-outline {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.btn-outline:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: rgba(124, 108, 240, 0.08);
}

.section {
  position: relative;
  padding: 6.5rem 1.5rem;
}

.section-alt {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0)),
    rgba(255, 255, 255, 0.01);
}

.section-inner {
  position: relative;
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-logo {
  display: block;
  margin: 0 auto 2rem;
  height: 80px;
  width: auto;
  opacity: 0.85;
}

.section h2,
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 1rem;
}

.lead,
.section-copy p,
.page-hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.85;
}

.hero {
  padding: 8.6rem 1.5rem 6rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, var(--accent-glow), transparent 36%),
    radial-gradient(circle at 82% 22%, var(--warm-glow), transparent 28%),
    radial-gradient(circle at 52% 70%, rgba(96, 200, 208, 0.09), transparent 34%);
  pointer-events: none;
}

.hero .section-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 2.8rem;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.flow-slide .hero-eyebrow {
  overflow: hidden;
  white-space: nowrap;
  display: inline-block;
  width: 0;
}

.flow-slide.is-active .hero-eyebrow {
  width: 8ch;
  animation: typing 0.5s steps(7, end);
}

.flow-slide.is-active .hero-eyebrow::after {
  content: '|';
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero p {
  max-width: 700px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-panel {
  position: relative;
  z-index: 1;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(18, 18, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-lg);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    radial-gradient(circle at top right, rgba(232, 160, 80, 0.12), transparent 30%),
    radial-gradient(circle at bottom left, rgba(96, 200, 208, 0.1), transparent 35%);
  pointer-events: none;
}

.hero-panel-label {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(96, 200, 208, 0.2);
  color: var(--cyan);
  background: rgba(96, 200, 208, 0.08);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-panel h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.hero-panel p {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.8;
}

.hero-flow {
  min-height: 100svh;
  padding: 0;
  overflow: hidden;
}

.flow-slideshow,
.flow-track {
  position: relative;
  min-height: 100svh;
}

.flow-slideshow {
  touch-action: pan-y;
}

.flow-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(4%, 0, 0) scale(1.01);
  transition:
    opacity 0.72s ease,
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.72s step-end;
}

.flow-slide::before,
.flow-slide::after {
  content: "";
  position: absolute;
  inset: 0;
}

.flow-slide::before {
  background: var(--flow-gradient);
}

.flow-slide::after {
  background:
    linear-gradient(90deg, rgba(6, 8, 14, 0.88) 0%, rgba(6, 8, 14, 0.58) 46%, rgba(6, 8, 14, 0.22) 100%),
    linear-gradient(180deg, rgba(6, 8, 14, 0.1) 0%, rgba(6, 8, 14, 0.42) 100%);
}

.flow-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.section-hero-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-top: 2rem;
}

.pillar-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 1.2rem;
}

.section-wide-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-top: 2.5rem;
}

.page-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-top: 2rem;
}

.blog-hero-img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
}

.flow-slide[data-position="before"] {
  transform: translate3d(-4%, 0, 0) scale(1.01);
}

.flow-slide[data-position="after"] {
  transform: translate3d(4%, 0, 0) scale(1.01);
}

.flow-slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
  transition:
    opacity 0.72s ease,
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s step-start;
}

.flow-slide.is-active h2 {
  transition: text-shadow 150ms ease;
}

.flow-slide.is-active h2:hover {
  text-shadow: -2px 0 rgba(96, 200, 208, 0.7), 2px 0 rgba(200, 80, 200, 0.7);
}

.flow-slide-inner {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: end;
  gap: 2.25rem;
  padding-top: clamp(6.5rem, 13vh, 8.75rem);
  padding-bottom: clamp(7rem, 14vh, 9.5rem);
}

.flow-copy {
  max-width: 720px;
}

.flow-copy h2 {
  font-size: clamp(3rem, 7vw, 5.8rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.98;
  margin-bottom: 1.3rem;
}

.flow-text {
  max-width: 42rem;
  color: rgba(232, 232, 240, 0.88);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.75;
}

.flow-panel {
  justify-self: end;
  width: min(100%, 390px);
  padding: 1.8rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    var(--flow-panel-bg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
}

.flow-panel-label {
  display: inline-flex;
  margin-bottom: 0.95rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(96, 200, 208, 0.24);
  color: var(--cyan);
  background: rgba(96, 200, 208, 0.12);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flow-panel h3 {
  font-size: 1.35rem;
  line-height: 1.25;
  margin-bottom: 0.8rem;
}

.flow-panel p {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.8;
}

.flow-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.4rem;
}

.flow-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.flow-controls {
  position: absolute;
  left: 50%;
  bottom: clamp(1.2rem, 3vh, 2rem);
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  width: min(calc(100% - 2rem), var(--content-width));
  transform: translateX(-50%);
  pointer-events: none;
}

.flow-arrow,
.flow-dot {
  border: 0;
  cursor: pointer;
}

.flow-arrow {
  pointer-events: auto;
  width: 3.25rem;
  height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--flow-control-border);
  background: var(--flow-control-bg);
  color: var(--text);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.flow-arrow:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(13, 16, 25, 0.72);
}

.flow-arrow:focus-visible,
.flow-dot:focus-visible {
  outline: 2px solid rgba(96, 200, 208, 0.75);
  outline-offset: 3px;
}

.flow-dots {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.flow-dot {
  width: 0.8rem;
  height: 0.8rem;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 0.22s ease, width 0.22s ease, background 0.22s ease;
}

.flow-dot.is-active {
  width: 2.4rem;
  background: linear-gradient(135deg, var(--cyan), var(--accent), var(--warm));
  transform: scale(1.02);
}

.hero-points {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.hero-point {
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-point strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.94rem;
}

.hero-point span {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.story-block {
  display: grid;
  gap: 1.35rem;
  max-width: 860px;
}

.pillars-grid,
.papers-grid,
.privacy-grid,
.commons-grid,
.team-grid {
  display: grid;
  gap: 1.5rem;
}

.pillars-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2.5rem;
}

.pillar-card,
.paper-card,
.commons-card,
.team-card,
.about-panel,
.resilience-card,
.tier-card,
.add-on-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.pillar-card,
.paper-card,
.commons-card,
.team-card,
.about-panel,
.resilience-card,
.tier-card,
.add-on-card {
  padding: 1.75rem;
}

.pillar-card {
  position: relative;
  overflow: hidden;
}

.pillar-card::before,
.paper-card::before,
.tier-card::before,
.about-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(124, 108, 240, 0.45), rgba(255, 255, 255, 0));
  opacity: 0.8;
}

.pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(124, 108, 240, 0.16), rgba(96, 200, 208, 0.16));
  color: var(--text);
  font-size: 1.45rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.pillar-card h3,
.paper-card h3,
.commons-card h3,
.team-card h3,
.about-panel h3,
.resilience-card h3,
.tier-card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.pillar-card p,
.paper-card p,
.commons-card p,
.team-card p,
.about-panel p,
.resilience-card p,
.tier-card p,
.tier-list li,
.add-on-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* Nexus section */
#nexus h2 .highlight {
  background: linear-gradient(135deg, var(--accent), var(--warm));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nexus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.nexus-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s;
}

.nexus-card:hover {
  transform: translateY(-2px);
}

.nexus-card--nexus {
  border-top: 3px solid var(--accent);
}

.nexus-card--nexus:hover {
  border-color: var(--accent);
}

.nexus-card--nexus .nexus-icon {
  color: var(--accent);
}

.nexus-card--beacon {
  border-top: 3px solid var(--warm);
}

.nexus-card--beacon:hover {
  border-color: var(--warm);
}

.nexus-card--beacon .nexus-icon {
  color: var(--warm);
}

.nexus-card--pylon {
  border-top: 3px solid var(--cyan);
}

.nexus-card--pylon:hover {
  border-color: var(--cyan);
}

.nexus-card--pylon .nexus-icon {
  color: var(--cyan);
}

.nexus-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.nexus-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.nexus-role {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.nexus-card--nexus .nexus-role {
  color: var(--accent);
}

.nexus-card--beacon .nexus-role {
  color: var(--warm);
}

.nexus-card--pylon .nexus-role {
  color: var(--cyan);
}

.nexus-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.nexus-privacy {
  margin-top: 4rem;
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.nexus-privacy h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.privacy-grid {
  grid-template-columns: repeat(2, 1fr);
}

.privacy-item {
  padding: 1.15rem 1.2rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.privacy-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.privacy-item p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Chronicles */
.chronicles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.chronicle-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.8rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: border-color 0.3s, transform 0.3s;
}

a.chronicle-card:hover,
.chronicle-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.chronicle-card--featured {
  grid-column: 1 / -1;
  border-color: rgba(124, 108, 240, 0.2);
}

.chronicle-card--text {
  border-style: dashed;
}

.chronicle-avatar {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  object-fit: cover;
  object-position: top;
  flex-shrink: 0;
  background: var(--bg-alt);
}

.chronicle-card--featured .chronicle-avatar {
  width: 140px;
  height: 140px;
}

.chronicle-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.chronicle-role {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.chronicle-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.chronicles-cta {
  margin-top: 2.5rem;
  text-align: center;
}

.chronicles-tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Character Spotlight */
.character-spotlight {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  margin-top: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.character-spotlight-portrait {
  flex-shrink: 0;
  width: 300px;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid;
}

.character-spotlight-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.character-spotlight-info {
  flex: 1;
}

.character-spotlight-genre {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: white;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid transparent;
  margin-bottom: 0.75rem;
}

.character-spotlight-info h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 0.3rem;
}

.character-spotlight-role {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.character-spotlight-hook {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.character-spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.character-spotlight-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.spotlight-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  display: inline-block;
}

.spotlight-dot.is-active {
  background: var(--accent);
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .character-spotlight {
    flex-direction: column;
    text-align: center;
    padding: 1.8rem;
  }

  .character-spotlight-portrait {
    width: 200px;
    height: 200px;
  }
}

/* Whitepapers */
.papers-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2.5rem;
}

.paper-card {
  position: relative;
}

.about-panel {
  position: relative;
}

.paper-tag,
.tier-tag,
.team-role {
  display: inline-flex;
  margin-bottom: 0.9rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.paper-tag {
  color: var(--warm);
  background: rgba(232, 160, 80, 0.1);
  border: 1px solid rgba(232, 160, 80, 0.16);
}

.paper-card a {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--text);
  font-weight: 700;
}

.paper-card a:hover {
  color: var(--accent);
}

.resilience-layout,
.pricing-grid,
.about-grid,
.commons-grid {
  display: grid;
  gap: 1.5rem;
}

.resilience-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: start;
}

.resilience-stack {
  display: grid;
  gap: 1.5rem;
}

.resilience-signal {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(96, 200, 208, 0.08), rgba(96, 200, 208, 0.02)),
    rgba(18, 18, 26, 0.85);
  border: 1px solid rgba(96, 200, 208, 0.14);
}

.resilience-signal strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--cyan);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.resilience-signal p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.commons-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  margin-top: 2.2rem;
}

.commons-card {
  position: relative;
}

.commons-card p + p {
  margin-top: 1rem;
}

.footer {
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.footer-brand {
  margin-bottom: 0.5rem;
}

.footer-brand img {
  height: 56px;
  width: auto;
  opacity: 0.9;
}

/* Easter Egg System */
.easter-egg-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 13, 0.85);
  backdrop-filter: blur(8px);
  animation: easter-egg-fade-in 0.3s ease;
}

@keyframes easter-egg-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.easter-egg-content {
  max-width: 480px;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 0%, rgba(124, 108, 240, 0.18), transparent 60%),
    radial-gradient(circle at 30% 80%, rgba(96, 200, 208, 0.10), transparent 50%),
    rgba(18, 18, 26, 0.95);
  border: 1px solid rgba(124, 108, 240, 0.3);
  box-shadow: 0 0 40px rgba(124, 108, 240, 0.15), var(--shadow-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: easter-egg-slide-up 0.4s ease;
}

@keyframes easter-egg-slide-up {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.easter-egg-content::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--cyan), transparent);
  opacity: 0.6;
}

.easter-egg-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  animation: easter-egg-sparkle 2s ease-in-out infinite;
}

@keyframes easter-egg-sparkle {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.easter-egg-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.easter-egg-content h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.easter-egg-genre {
  color: var(--cyan);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.easter-egg-hint {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.easter-egg-answer {
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(124, 108, 240, 0.08);
  border: 1px solid rgba(124, 108, 240, 0.15);
}

.easter-egg-answer strong {
  color: var(--accent);
}

.easter-egg-clue {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.easter-egg-close {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(124, 108, 240, 0.18), rgba(96, 200, 208, 0.14));
  border: 1px solid rgba(124, 108, 240, 0.25);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.easter-egg-close:hover {
  background: linear-gradient(135deg, rgba(124, 108, 240, 0.28), rgba(96, 200, 208, 0.22));
  border-color: rgba(124, 108, 240, 0.4);
}

.easter-egg-progress {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: rgba(18, 18, 26, 0.9);
  border: 1px solid rgba(124, 108, 240, 0.2);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
}

.easter-egg-progress:hover {
  border-color: rgba(124, 108, 240, 0.4);
  transform: translateY(-1px);
}

.easter-egg-progress-icon {
  font-size: 1.1rem;
}

.easter-egg-progress-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}

.easter-egg-progress-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

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

.footer-group {
  display: grid;
  gap: 0.75rem;
}

.footer-title {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 0.65rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  width: fit-content;
}

.footer-links a:hover {
  color: var(--text);
}

.footer p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.page-hero {
  padding: 8.5rem 1.5rem 4rem;
}

.page-hero .section-inner {
  max-width: 920px;
}

.page-hero p {
  max-width: 760px;
}

.pricing-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2.5rem;
}

.tier-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.tier-card--featured {
  border-color: rgba(124, 108, 240, 0.38);
  background:
    linear-gradient(180deg, rgba(124, 108, 240, 0.13), rgba(255, 255, 255, 0.02)),
    var(--bg-card);
}

.tier-tag {
  color: var(--cyan);
  background: rgba(96, 200, 208, 0.1);
  border: 1px solid rgba(96, 200, 208, 0.18);
}

.tier-card--featured .tier-tag {
  color: var(--accent);
  background: rgba(124, 108, 240, 0.1);
  border-color: rgba(124, 108, 240, 0.18);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.price {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.price-note {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.tier-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.tier-list li::marker {
  color: var(--cyan);
}

.add-on-card {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.add-on-card strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.about-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2.5rem;
}

.waitlist-form-card {
  gap: 1.25rem;
}

.waitlist-form {
  display: grid;
  gap: 1rem;
}

.waitlist-field {
  display: grid;
  gap: 0.45rem;
}

.waitlist-field label {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
}

.waitlist-field input {
  min-height: 3.25rem;
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.waitlist-field input::placeholder {
  color: var(--text-muted);
}

.waitlist-field input:focus {
  outline: none;
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(124, 108, 240, 0.12);
}

.waitlist-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

.blog-shell {
  display: grid;
  gap: 2rem;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.blog-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 2rem;
  align-items: start;
}

.blog-article {
  display: grid;
  gap: 2.5rem;
}

.blog-section {
  display: grid;
  gap: 1rem;
}

.blog-section h2 {
  margin-bottom: 0;
}

.blog-section p,
.blog-section li {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.9;
}

.blog-section ul {
  display: grid;
  gap: 0.7rem;
  margin: 0;
}

.blog-section li::marker {
  color: var(--cyan);
}

.blog-callout {
  position: sticky;
  top: 6.5rem;
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(124, 108, 240, 0.08), rgba(255, 255, 255, 0.02)),
    var(--bg-card);
  box-shadow: var(--shadow-md);
}

.blog-callout h3 {
  margin: 0;
  font-size: 1.05rem;
}

.blog-callout p {
  font-size: 0.95rem;
}

.blog-quote {
  margin: 0;
  padding: 1.5rem 1.6rem;
  border-left: 3px solid var(--warm);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: rgba(232, 160, 80, 0.08);
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.75;
}

.blog-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(124, 108, 240, 0.38), rgba(232, 160, 80, 0.32), rgba(255, 255, 255, 0));
}

.blog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.blog-index-list {
  display: grid;
  gap: 1.35rem;
  margin-top: 2.5rem;
}

.blog-post-card {
  position: relative;
  display: grid;
  gap: 0.8rem;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.blog-post-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(124, 108, 240, 0.45), rgba(255, 255, 255, 0));
  opacity: 0.8;
}

.blog-post-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}

.blog-post-card time {
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.blog-post-card-title {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.15;
}

.blog-post-card-title a {
  transition: color 0.2s ease;
}

.blog-post-card-title a:hover {
  color: var(--text);
}

.blog-post-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.85;
}

.team-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2.5rem;
}

.team-card {
  position: relative;
}

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin-bottom: 1rem;
  object-fit: cover;
  object-position: top;
  background: linear-gradient(135deg, rgba(124, 108, 240, 0.28), rgba(96, 200, 208, 0.2));
}

.team-avatar--letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  font-weight: 800;
}

.team-role {
  color: var(--accent);
  background: rgba(124, 108, 240, 0.1);
  border: 1px solid rgba(124, 108, 240, 0.18);
}

.muted {
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .hero .section-inner,
  .resilience-layout,
  .commons-grid,
  .about-grid,
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .pillars-grid,
  .papers-grid,
  .nexus-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
  }

  .flow-slide-inner {
    grid-template-columns: 1fr;
    align-content: end;
    gap: 1.5rem;
  }

  .flow-panel {
    justify-self: stretch;
    width: 100%;
    max-width: 100%;
  }

  .blog-callout {
    position: static;
  }
}

@media (max-width: 600px) {
  .section,
  .page-hero {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero {
    padding: 7.8rem 1rem 4.8rem;
  }

  .pillars-grid,
  .papers-grid,
  .nexus-grid,
  .chronicles-grid,
  .pricing-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .chronicle-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .chronicle-card--featured .chronicle-avatar {
    width: 120px;
    height: 120px;
  }

  .nav {
    padding: 0.9rem 1rem 1rem;
  }

  .nav-brand {
    gap: 0.65rem;
  }

  .nav-brand-logo {
    width: 2.1rem;
    height: 2.1rem;
  }

  .nav-links {
    gap: 0.8rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.2rem;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .hero-actions,
  .add-on-card {
    flex-direction: column;
    align-items: stretch;
  }

  .flow-slide-inner {
    padding-top: 7rem;
    padding-bottom: 6.6rem;
  }

  .flow-copy h2 {
    font-size: clamp(2.55rem, 13vw, 3.8rem);
  }

  .flow-text {
    font-size: 1rem;
    line-height: 1.7;
  }

  .flow-panel {
    padding: 1.4rem;
  }

  .flow-panel h3 {
    font-size: 1.15rem;
  }

  .flow-controls {
    width: calc(100% - 1rem);
    gap: 0.75rem;
  }

  .flow-arrow {
    width: 2.85rem;
    height: 2.85rem;
  }

  .flow-dots {
    gap: 0.45rem;
  }

  .nexus-privacy,
  .pillar-card,
  .paper-card,
  .commons-card,
  .team-card,
  .about-panel,
  .resilience-card,
  .tier-card,
  .add-on-card,
  .blog-post-card {
    padding: 1.4rem;
  }

  .footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@keyframes typing {
  from { width: 0; }
  to { width: 8ch; }
}

@keyframes blink {
  50% { opacity: 0; }
}

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

  .flow-slide,
  .flow-arrow,
  .flow-dot,
  .btn,
  .nexus-card,
  .chronicle-card {
    transition: none;
  }

  .flow-slide.is-active .hero-eyebrow {
    width: auto;
    animation: none;
  }

  .flow-slide.is-active .hero-eyebrow::after {
    display: none;
  }
}

/* Organizational status belongs in the global footer. Transaction-specific
   qualifications remain close to pricing and funding claims. */
.footer .footer-org-status {
  max-width: 78ch;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.86rem;
  line-height: 1.6;
}

.footer-org-status a {
  color: var(--accent);
  font-weight: 600;
}

.footer-org-status a:hover {
  color: var(--text);
}

.context-notice {
  max-width: 78ch;
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  color: var(--text-muted);
  background: rgba(124, 108, 240, 0.08);
  border: 1px solid rgba(124, 108, 240, 0.22);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  line-height: 1.6;
}

.context-notice strong {
  color: var(--text);
}

/* What we value (#pillars) */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}
@media (min-width: 640px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .values-grid { grid-template-columns: repeat(4, 1fr); }
}
.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.value-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.value-icon {
  color: var(--cyan);
  margin-bottom: 0.9rem;
}
.value-card h3 {
  color: var(--text);
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}
.value-card p {
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
  font-size: 0.97rem;
}
@media (prefers-reduced-motion: reduce) {
  .value-card { transition: none; }
  .value-card:hover { transform: none; }
}


/* a11y (10-10): --accent (#7c6cf0) is under 4.5:1 for small text on dark cards.
   Inline links in running text are lighter and underlined so they don't rely on colour alone. */
:root { --accent-text: #a99ff7; }
p a:not([class]) { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
p a:not([class]):hover { color: #c7c0fa; }

/* Story (#story) */
.story-steps {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .story-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .story-steps { grid-template-columns: repeat(4, 1fr); }
}
.story-step {
  min-width: 0;
}
.story-step figure {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.story-step figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.story-step figcaption {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}
.story-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  width: 1.7rem;
  height: 1.7rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(232, 160, 80, 0.12);
  color: var(--warm);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
}
.story-step figcaption h3 {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0 0 0.5rem;
}
.story-step figcaption p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
}
.story-step figcaption p + p {
  margin-top: 0.85rem;
}

@media (prefers-reduced-motion: no-preference) {
  .js-reveal .story-step:not(.is-visible) {
    opacity: 0;
    transform: translateY(12px);
  }
  .js-reveal .story-step {
    transition: opacity 400ms ease, transform 400ms ease;
  }
}

/* What shipped feed */
.shipped-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1rem;
  max-width: 760px;
}

.shipped-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.shipped-list li time {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.shipped-list li .shipped-site {
  display: inline-block;
  padding: 0.1rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.shipped-list li h3 {
  flex-basis: 100%;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
}

.shipped-list li p {
  flex-basis: 100%;
  color: var(--text-muted);
}

.shipped-more {
  margin-top: 1.75rem;
}

/* a11y (10-11): primary buttons sit on a #7c6cf0 -> #5f86ff gradient. White text was ~4.2:1 at the purple
   end, and inside the nav `.nav-links a` turned it grey (~2:1). Near-black clears 4.5:1 across the gradient. */
.btn-primary,
.btn-primary:hover,
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover { color: #0b0b14; font-weight: 600; }

/* Cast at work (/cast/) */
.cast-section {
  padding-top: 12rem;
}
@media (min-width: 640px) {
  .cast-section { padding-top: 10.5rem; }
}
@media (min-width: 920px) {
  .cast-section { padding-top: 6.5rem; }
}

.cast-section h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 1rem;
}

.cast-grid {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .cast-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .cast-grid { grid-template-columns: repeat(4, 1fr); }
}

.cast-card {
  min-width: 0;
  display: grid;
}

.cast-flip {
  background: none;
  border: 0;
  padding: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
  display: grid;
  position: relative;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.cast-flip:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.cast-front,
.cast-back {
  grid-area: 1 / 1;
  min-width: 0;
  background: var(--bg-card);
}

.cast-front {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.cast-front img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  display: block;
}

.cast-front h2 {
  margin: 1rem 0 0;
  padding: 0 1rem;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.cast-role {
  margin: 0.4rem 0 1rem;
  padding: 0 1rem;
  color: var(--cyan);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cast-back {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--text);
  visibility: hidden;
}

.cast-back h2 {
  margin: 0 0 0.6rem;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.cast-job {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.6;
}

.cast-note {
  margin: 2rem 0 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.cast-card.is-flipped .cast-front {
  visibility: hidden;
}
.cast-card.is-flipped .cast-back {
  visibility: visible;
}

@media (prefers-reduced-motion: no-preference) {
  .cast-flip {
    perspective: 1000px;
    transform-style: preserve-3d;
  }
  .cast-front,
  .cast-back {
    backface-visibility: hidden;
    transition: transform 500ms ease, visibility 500ms ease;
  }
  .cast-back {
    transform: rotateY(180deg);
  }
  .cast-card.is-flipped .cast-front {
    transform: rotateY(-180deg);
  }
  .cast-card.is-flipped .cast-back {
    transform: rotateY(0deg);
  }
}
