:root {
  --bg: #f4efe5;
  --bg-soft: #fbf8f1;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: #fffdfa;
  --ink: #102433;
  --ink-soft: #53687a;
  --line: #d7cfc1;
  --brand: #103b5d;
  --brand-2: #177e89;
  --brand-3: #2a9d8f;
  --accent: #d97706;
  --accent-2: #b7791f;
  --rose: #b5525c;
  --shadow-sm: 0 10px 26px rgba(16, 36, 51, 0.08);
  --shadow-md: 0 20px 50px rgba(16, 36, 51, 0.12);
  --shadow-lg: 0 28px 80px rgba(16, 36, 51, 0.18);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --nav-height: 74px;
  --font-sans: "Sora", "Segoe UI", sans-serif;
  --font-serif: "Fraunces", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 12px);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.7;
  background:
    radial-gradient(circle at 10% 20%, rgba(23, 126, 137, 0.14), transparent 24rem),
    radial-gradient(circle at 88% 16%, rgba(217, 119, 6, 0.14), transparent 22rem),
    radial-gradient(circle at 70% 82%, rgba(16, 59, 93, 0.12), transparent 28rem),
    linear-gradient(180deg, #f8f3ea 0%, var(--bg) 52%, #efe8da 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.25) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.26;
}

img {
  display: block;
  max-width: 100%;
  border-radius: 18px;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

code,
pre {
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  z-index: 1100;
  background: linear-gradient(90deg, var(--brand-2), var(--accent), var(--brand));
  box-shadow: 0 0 12px rgba(217, 119, 6, 0.45);
}

.site-nav,
.page-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(11, 27, 41, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.25s ease, box-shadow 0.25s ease, height 0.25s ease;
}

.site-nav.is-compact,
.page-nav.is-compact {
  height: 62px;
  background: rgba(9, 21, 33, 0.95);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
}

.nav-inner {
  max-width: 1240px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-brand:hover {
  text-decoration: none;
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: #0b2031;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #f0c05f, #d97706);
  box-shadow: 0 10px 20px rgba(217, 119, 6, 0.28);
  transition: transform 0.28s ease;
}

.nav-brand:hover .nav-badge {
  transform: rotate(-6deg) scale(1.05);
}

.nav-title {
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 0 auto;
  padding: 0;
}

.nav-links a {
  display: inline-flex;
  padding: 9px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
}

.container {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.hero,
.page-hero {
  padding: 80px 0 56px;
  position: relative;
  overflow: hidden;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: auto -14rem 5rem auto;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 126, 137, 0.18), transparent 65%);
  filter: blur(4px);
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0 auto auto -12rem;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.16), transparent 62%);
}

.hero-grid,
.page-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: start;
}

.eyebrow-row,
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.profile-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.eyebrow,
.tag,
.eyebrow-accent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(16, 59, 93, 0.12);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
}

.eyebrow-accent {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: transparent;
}

.hero-title,
.page-title,
.section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero-title {
  font-size: clamp(2.6rem, 4vw, 4.6rem);
  max-width: 14ch;
}

.page-title {
  font-size: clamp(2.2rem, 3.4vw, 3.5rem);
  max-width: 15ch;
}

.hero-subtitle,
.page-subtitle,
.section-subtitle {
  color: var(--ink-soft);
  font-size: 1.02rem;
  max-width: 66ch;
}

.author-focus-ribbon {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(16, 59, 93, 0.1), rgba(23, 126, 137, 0.08));
  border: 1px solid rgba(16, 59, 93, 0.12);
  box-shadow: var(--shadow-sm);
}

.author-focus-ribbon strong {
  display: block;
  margin-top: 6px;
  font-size: 1.06rem;
  letter-spacing: 0.03em;
  color: var(--brand);
}

.author-focus-ribbon p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.author-focus-tag {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.12);
  color: #8f4f07;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.author-block {
  margin: 24px 0 18px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(16, 59, 93, 0.12);
  box-shadow: var(--shadow-sm);
}

.author-line {
  margin: 0 0 6px;
  font-weight: 700;
}

.affiliation-line {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(16, 59, 93, 0.08);
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 800;
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #205d85);
  box-shadow: 0 12px 24px rgba(16, 59, 93, 0.24);
}

.btn-secondary {
  color: var(--brand);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(16, 59, 93, 0.14);
}

.btn-dark {
  color: #fff;
  background: rgba(11, 27, 41, 0.92);
}

.btn-ghost {
  color: var(--ink);
  background: transparent;
  border-color: rgba(16, 59, 93, 0.18);
}

.hero-panel,
.card,
.chart-card,
.metric-card,
.quote-box,
.formula-card,
.asset-card,
.table-card,
.note-card,
.story-card,
.work-card,
.page-panel,
.poster-panel,
.resource-card,
.paper-sheet {
  background: var(--panel);
  border: 1px solid rgba(16, 59, 93, 0.1);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
}

.hero-panel {
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 249, 240, 0.88));
}

.panel-section + .panel-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(16, 59, 93, 0.08);
}

.panel-kicker,
.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--brand-2);
  margin-bottom: 10px;
}

.metric-grid,
.overview-grid,
.story-grid,
.stats-grid,
.use-case-grid,
.formula-grid,
.asset-grid,
.works-grid,
.page-grid {
  display: grid;
  gap: 18px;
}

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

.overview-grid,
.story-grid,
.use-case-grid,
.asset-grid,
.works-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.formula-grid,
.page-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-card,
.card,
.chart-card,
.quote-box,
.formula-card,
.asset-card,
.story-card,
.work-card,
.page-panel,
.poster-panel,
.resource-card,
.paper-sheet {
  padding: 22px;
}

.metric-card strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--brand);
}

.metric-card span,
.muted {
  color: var(--ink-soft);
}

.section {
  padding: 36px 0 24px;
}

.section-alt {
  position: relative;
}

.section-alt::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.section-head {
  margin-bottom: 22px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 22px;
  align-items: start;
}

.media-card {
  overflow: hidden;
}

.media-card img {
  width: 100%;
  border-radius: 16px;
}

.figure-caption {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.detail-tabs,
.toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-tabs button,
.toggle-row button {
  padding: 10px 14px;
  border: 1px solid rgba(16, 59, 93, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.detail-tabs button.is-active,
.toggle-row button.is-active,
.detail-tabs button:hover,
.toggle-row button:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-1px);
}

.detail-panel {
  margin-top: 18px;
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(16, 59, 93, 0.08), rgba(23, 126, 137, 0.05));
  border: 1px solid rgba(16, 59, 93, 0.12);
}

.list-tight,
.feature-list {
  margin: 12px 0 0;
  padding-left: 18px;
}

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

.chart-card canvas {
  width: 100%;
  max-height: 360px;
}

.chart-note {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-top: 12px;
}

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

.viz-card {
  background: rgba(255, 255, 255, 0.82);
  border-radius: 22px;
  padding: 18px;
  border: 1px solid rgba(16, 59, 93, 0.1);
  box-shadow: var(--shadow-sm);
}

.viz-card img {
  width: 100%;
  background: #fff;
}

.viz-card h3,
.card h3,
.chart-card h3,
.formula-card h3,
.asset-card h3,
.story-card h3,
.work-card h3,
.page-panel h3,
.poster-panel h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.badge-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.micro-badge {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(16, 59, 93, 0.08);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(16, 59, 93, 0.08);
  text-align: left;
  vertical-align: top;
}

thead th {
  color: var(--brand);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.formula {
  padding: 16px;
  border-radius: 16px;
  background: #112534;
  color: #fff;
  overflow-x: auto;
  font-size: 1rem;
}

.callout {
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  background: rgba(217, 119, 6, 0.08);
  border-radius: 16px;
}

.provenance-note {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-top: 12px;
}

.asset-links,
.profile-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.asset-link,
.profile-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(16, 59, 93, 0.08);
  color: var(--brand);
  font-size: 0.86rem;
  font-weight: 700;
}

.btn-block {
  width: 100%;
}

.paper-preview-shell {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 24px;
}

.paper-sheet {
  border: 1px solid rgba(23, 57, 92, 0.12);
}

.paper-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 2px solid rgba(40, 95, 143, 0.18);
  padding-bottom: 12px;
  margin-bottom: 16px;
  color: var(--brand);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.paper-title {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.05;
  color: var(--ink);
}

.paper-authors,
.paper-affiliation {
  margin: 0 0 8px;
  color: var(--ink-soft);
}

.paper-columns {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.paper-columns h4 {
  margin: 0 0 8px;
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-2);
}

.paper-columns p {
  margin: 0 0 10px;
  font-size: 0.94rem;
  color: var(--ink-soft);
  text-align: justify;
}

.policy-card {
  padding: 22px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #112b40 0%, #17395c 100%);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.policy-card h3 {
  margin: 0 0 12px;
  color: #fff;
}

.policy-list {
  margin: 0;
  padding-left: 1.2rem;
}

.policy-list li {
  margin-bottom: 0.6rem;
  color: rgba(255, 255, 255, 0.84);
}

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

.resource-card {
  display: grid;
  gap: 14px;
}

.resource-card a {
  color: var(--brand);
  font-weight: 800;
  word-break: break-word;
}

.resource-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(23, 57, 92, 0.08);
  color: var(--brand);
}

.pill.accent {
  background: rgba(217, 119, 6, 0.12);
  color: #8f4f07;
}

.video-embed {
  position: relative;
  overflow: hidden;
  padding-top: 56.25%;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.footer {
  padding: 34px 0 42px;
  background: #12283b;
  color: rgba(255, 255, 255, 0.76);
}

.footer-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer a {
  color: #ffe1ae;
}

.copyright-bar {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.86rem;
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}

.code-block {
  padding: 18px;
  border-radius: 20px;
  background: #0f2436;
  color: #eef4f8;
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.page-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 8px;
}

.poster-shell {
  padding-bottom: 38px;
}

.poster-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
}

.poster-stack {
  display: grid;
  gap: 18px;
}

.poster-panel strong.big-number {
  display: block;
  color: var(--brand);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(9, 16, 25, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.gate-locked {
  overflow: hidden;
}

.is-hidden {
  display: none !important;
}

.gate-modal {
  width: min(100%, 560px);
  max-height: min(92vh, 760px);
  overflow: auto;
  padding: 26px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(9, 16, 25, 0.3);
}

.gate-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  margin-bottom: 18px;
}

.gate-head h3 {
  margin: 0 0 4px;
  color: var(--brand);
  font-size: 1.35rem;
}

.gate-head p {
  margin: 0;
  color: var(--ink-soft);
}

.gate-close {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.gate-steps {
  display: grid;
  gap: 14px;
}

.download-step {
  padding: 18px;
  border: 1px solid rgba(216, 207, 191, 0.84);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.96);
}

.download-step h4 {
  margin: 0 0 8px;
  color: var(--brand);
}

.download-step p {
  color: var(--ink-soft);
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(23, 57, 92, 0.08);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gate-check {
  display: flex;
  gap: 10px;
  align-items: start;
  margin-top: 12px;
  color: var(--ink-soft);
}

.gate-actions {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.gate-input {
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(216, 207, 191, 0.9);
  background: #fff;
}

.gate-error {
  margin-top: 10px;
  color: var(--rose);
  font-size: 0.85rem;
  font-weight: 800;
}

.download-links {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.download-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.email-template {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #f8f4ea;
  color: #5d4f3e;
  border: 1px solid rgba(216, 207, 191, 0.82);
  font-size: 0.9rem;
  white-space: pre-wrap;
}

.copy-btn {
  margin-top: 10px;
  border: 0;
  background: #f4ead6;
  color: #65410d;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

@media (max-width: 1080px) {
  .hero-grid,
  .page-hero-grid,
  .split-layout,
  .poster-grid,
  .paper-preview-shell,
  .paper-columns {
    grid-template-columns: 1fr;
  }

  .overview-grid,
  .story-grid,
  .use-case-grid,
  .asset-grid,
  .works-grid,
  .stats-grid,
  .formula-grid,
  .page-grid,
  .chart-grid,
  .viz-gallery,
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    top: calc(var(--nav-height) - 6px);
    right: 16px;
    left: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(10, 22, 34, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 24px, 1240px);
  }

  .hero,
  .page-hero {
    padding-top: 64px;
  }

  .hero-panel,
  .card,
  .chart-card,
  .metric-card,
  .quote-box,
  .formula-card,
  .asset-card,
  .story-card,
  .work-card,
  .page-panel,
  .poster-panel,
  .viz-card {
    padding: 18px;
  }

  .hero-title {
    font-size: 2.3rem;
  }

  .page-title,
  .section-title {
    font-size: 2rem;
  }

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