:root {
  --bg: #e6e4df;
  --bg-deep: #d8d4ce;
  --paper: rgba(255, 255, 255, 0.9);
  --paper-strong: #ffffff;
  --ink: #121212;
  --ink-soft: #4b4b4b;
  --ink-faint: #707070;
  --line: rgba(24, 24, 24, 0.9);
  --line-soft: rgba(24, 24, 24, 0.18);
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --font-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-sans: "Avenir Next", "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", "Menlo", "Consolas", monospace;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-serif);
  line-height: 1.74;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), transparent 34%),
    radial-gradient(circle at 85% 18%, rgba(255, 255, 255, 0.46), transparent 24%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

body::before {
  background:
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.03) 0 1px,
      transparent 1px 40px
    ),
    repeating-linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.025) 0 1px,
      transparent 1px 40px
    );
}

body::after {
  z-index: -1;
  opacity: 0.42;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.8), transparent 14%),
    radial-gradient(circle at 80% 12%, rgba(255, 255, 255, 0.56), transparent 10%),
    radial-gradient(circle at 78% 76%, rgba(255, 255, 255, 0.38), transparent 12%);
  animation: background-drift 18s ease-in-out infinite alternate;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

img {
  max-width: 100%;
}

.container {
  width: min(1180px, 92vw);
  margin-inline: auto;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, #111 0%, #666 45%, #111 100%);
  z-index: 100;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  background: rgba(243, 241, 236, 0.85);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 4.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 1.06rem;
  white-space: nowrap;
  font-family: var(--font-sans);
  font-weight: 600;
}

.brand small {
  display: block;
  margin-top: 0.1rem;
  color: var(--ink-faint);
  font-size: 0.64em;
  font-weight: 500;
  letter-spacing: 0.2em;
}


.header-controls {
  display: flex;
  align-items: center;
  margin-left: 0.2rem;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.15rem;
  border: 1px solid rgba(0, 0, 0, 0.42);
  border-radius: 999px;
  padding: 0.38rem 0.62rem;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 220ms ease, border-color 220ms ease, background 220ms ease, transform 220ms ease;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  border-color: rgba(0, 0, 0, 0.76);
  background: #181818;
  color: #f7f7f7;
  outline: none;
  transform: translateY(-1px);
}

body.is-zh {
  font-family: "Noto Serif SC", "Songti SC", "SimSun", var(--font-serif);
}

body.is-zh .brand,
body.is-zh .top-nav a,
body.is-zh .lang-toggle,
body.is-zh .btn,
body.is-zh .chip-list li,
body.is-zh .footer-inner p {
  font-family: "Noto Sans SC", "Microsoft YaHei", var(--font-sans);
}

body.is-zh h1 span,
body.is-zh .eyebrow,
body.is-zh .section-note,
body.is-zh .panel-label,
body.is-zh .page-hero-note,
body.is-zh .card-kicker,
body.is-zh .fact-list span,
body.is-zh .timeline-item time,
body.is-zh .micro-timeline span,
body.is-zh .project-tag {
  letter-spacing: 0.08em;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.46rem;
}

.top-nav a {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-family: var(--font-sans);
  color: var(--ink-soft);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.38rem 0.62rem;
  transition: color 220ms ease, border-color 220ms ease, background 220ms ease, transform 220ms ease;
}

.top-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.8), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 240ms ease;
}

.top-nav a:hover {
  color: var(--ink);
  border-color: rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
}

.top-nav a:hover::after,
.top-nav a.is-active::after {
  transform: scaleX(1);
}

.top-nav a.is-active {
  color: var(--ink);
  border-color: rgba(0, 0, 0, 0.42);
  background: rgba(255, 255, 255, 0.82);
}

.page-wrap {
  padding: 1.7rem 0 4.5rem;
}

.hero,
.page-hero,
.section-shell {
  --mx: 50%;
  --my: 50%;
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  border: 1.5px solid rgba(17, 17, 17, 0.85);
  border-radius: calc(var(--radius) + 2px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 243, 239, 0.88)),
    rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.hero::before,
.page-hero::before,
.section-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before,
.page-hero::before {
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.64), transparent 32%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.26), transparent 52%);
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -38% 35%;
  height: 18rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.5), transparent 64%);
  transform: rotate(-6deg);
  opacity: 0.75;
}

.hero-inner,
.page-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.3rem, 3vw, 2.5rem);
}

.hero-inner {
  grid-template-columns: 1.35fr 0.95fr;
  align-items: stretch;
}

.page-hero-grid {
  grid-template-columns: 1.28fr 0.8fr;
  align-items: end;
}

.hero-copy,
.page-hero-side,
.hero-panel {
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.4rem;
  color: var(--ink-soft);
  font-size: 0.73rem;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: rgba(0, 0, 0, 0.35);
}

h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.03em;
}

h1 span {
  display: block;
  margin-top: 0.38rem;
  color: var(--ink-faint);
  font-size: 0.27em;
  font-family: var(--font-sans);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.lead {
  margin: 0;
  max-width: 66ch;
  color: #3f3f3f;
  font-size: 1.02rem;
}

.hero-badges {
  margin-top: 1rem;
}

.hero-panel,
.page-hero-side {
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
  padding: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.panel-label,
.page-hero-note,
.card-kicker {
  margin: 0 0 0.55rem;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-hero-note {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
}

.page-hero-side p {
  margin: 0.5rem 0 0;
  color: var(--ink-soft);
}

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

.metric-tile {
  min-height: 8.6rem;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  background: rgba(247, 246, 243, 0.92);
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.metric-tile:hover,
.feature-card:hover,
.card:hover,
.resource-card:hover,
.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 0, 0, 0.28);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.08);
}

.metric-tile strong {
  display: block;
  font-size: 1.34rem;
  line-height: 1.12;
  margin-bottom: 0.35rem;
}

.metric-tile span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.micro-timeline {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.92rem;
}

.micro-timeline div {
  padding-top: 0.68rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.18);
}

.micro-timeline span {
  display: block;
  margin-bottom: 0.18rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
}

.micro-timeline p {
  margin: 0;
  color: var(--ink-soft);
}

.section-shell {
  position: relative;
  margin-top: 1.28rem;
  border: 1px solid rgba(17, 17, 17, 0.84);
  border-radius: var(--radius);
  background: var(--paper);
  padding: clamp(1rem, 2vw, 1.7rem);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.section-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #111 0%, #656565 50%, #111 100%);
}

.section-shell::after {
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.18), transparent 26%);
}

.section-head {
  position: relative;
  z-index: 1;
  margin: 0 0 1rem;
  padding-bottom: 0.62rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.7rem;
}

h2 {
  margin: 0;
  font-size: clamp(1.34rem, 3.4vw, 2.08rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.section-note {
  margin: 0;
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.layout-split,
.layout-two-thirds,
.feature-grid,
.card-grid,
.resource-grid,
.media-grid {
  display: grid;
  gap: 0.88rem;
}

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

.layout-two-thirds {
  grid-template-columns: 1.45fr 0.92fr;
}

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

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.resource-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.media-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.media-grid-wide {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.paper,
.feature-card,
.card,
.resource-card,
.project-card {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 243, 239, 0.86)),
    var(--paper-strong);
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.paper,
.feature-card,
.card,
.resource-card {
  padding: 0.95rem;
}

.project-card {
  padding: 1rem 1rem 0.95rem;
}

.paper h3,
.feature-card h3,
.card h3,
.resource-card h3,
.project-card h3 {
  margin: 0 0 0.36rem;
  font-size: 1.1rem;
  line-height: 1.28;
}

.paper p,
.feature-card p,
.card p,
.resource-card p,
.project-card p,
.timeline-item .story p,
.media-grid figcaption {
  color: var(--ink-soft);
}

.feature-card h3 {
  max-width: 20ch;
}

.feature-card p,
.card p,
.paper p,
.resource-card p,
.project-card p {
  margin: 0;
}

.card .meta,
.resource-card .meta {
  margin-top: 0.6rem;
  font-size: 0.88rem;
}


.poster-feature {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, 1.28fr) minmax(260px, 0.72fr);
  gap: 1rem;
  align-items: stretch;
}

.poster-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  padding: 0.72rem;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 236, 231, 0.9)),
    #fff;
  text-decoration: none;
}

.poster-frame img {
  display: block;
  width: 100%;
  max-height: 760px;
  object-fit: contain;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.12);
}

.poster-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.72rem;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: var(--radius-sm);
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 243, 239, 0.88)),
    var(--paper-strong);
}

.poster-copy h3 {
  margin: 0;
  font-size: clamp(1.24rem, 2.6vw, 1.72rem);
  line-height: 1.16;
}

.poster-copy p {
  margin: 0;
  color: var(--ink-soft);
}

.output-points {
  gap: 0.58rem;
  margin-top: 0.15rem;
}

.poster-copy .cta-row {
  margin-top: 0.2rem;
}

.pdf-grid,
.blog-list {
  display: grid;
  gap: 0.9rem;
}

.pdf-feature,
.blog-post {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 243, 239, 0.86)),
    var(--paper-strong);
}

.pdf-feature {
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(360px, 1.35fr);
  gap: 0.85rem;
  padding: 0.85rem;
}

.pdf-copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.7rem;
}

.pdf-copy h3,
.blog-post h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.28;
}

.pdf-copy p,
.blog-post p {
  margin: 0;
  color: var(--ink-soft);
}

.pdf-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  align-self: stretch;
  min-height: 360px;
  padding: 0.55rem;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 237, 232, 0.92)),
    #fff;
  text-decoration: none;
}

.pdf-preview img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 520px;
  min-height: 0;
  object-fit: contain;
  object-position: top center;
  border-radius: 6px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1);
}

.blog-post {
  padding: 1rem;
}

.blog-post-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.7rem;
}

.blog-post-head time {
  flex-shrink: 0;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-post p + p {
  margin-top: 0.58rem;
}

.fact-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 239, 234, 0.92));
}

.fact-list,
.chip-list,
.download-list,
.list-clean {
  margin: 0;
}

.fact-list,
.chip-list,
.list-clean {
  padding: 0;
  list-style: none;
}

.fact-list {
  display: grid;
  gap: 0.72rem;
}

.fact-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: baseline;
  padding-bottom: 0.62rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.fact-list span {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fact-list strong {
  font-size: 0.97rem;
  font-weight: 500;
  text-align: right;
}

.list-clean {
  display: grid;
  gap: 0.48rem;
}

.list-clean li {
  position: relative;
  padding-left: 1rem;
  color: var(--ink-soft);
}

.list-clean li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.06);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip-list li {
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px;
  padding: 0.28rem 0.66rem;
  background: rgba(255, 255, 255, 0.75);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  letter-spacing: 0.03em;
}

.project-stack {
  display: grid;
  gap: 0.9rem;
}

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

.project-tag {
  flex-shrink: 0;
  margin: 0;
  padding: 0.24rem 0.55rem;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.timeline {
  display: grid;
  gap: 0.78rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 166px 1fr;
  gap: 0.95rem;
  align-items: start;
}

.timeline-item time {
  position: relative;
  display: inline-flex;
  justify-content: center;
  padding: 0.18rem 0.6rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.timeline-item .story {
  position: relative;
  padding: 0.05rem 0 0.1rem 1rem;
  border-left: 1px solid rgba(0, 0, 0, 0.16);
}

.timeline-item .story::before {
  content: "";
  position: absolute;
  left: -0.43rem;
  top: 0.42rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #111, #666);
  box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.05);
  animation: pulse-node 2.8s ease-in-out infinite;
}

.timeline-item .story h3 {
  margin: 0 0 0.24rem;
}

.media-grid figure {
  margin: 0;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: var(--radius-sm);
  padding: 0.62rem;
  background: rgba(255, 255, 255, 0.88);
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.media-grid figure:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 0, 0, 0.26);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.08);
}

.media-grid img,
.resource-card img {
  width: 100%;
  display: block;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fff;
}

.media-grid img {
  aspect-ratio: 1.18 / 1;
  object-fit: cover;
}

.resource-card img {
  margin-bottom: 0.72rem;
  aspect-ratio: 1.18 / 0.9;
  object-fit: cover;
}

.media-grid figcaption {
  margin-top: 0.52rem;
  font-size: 0.9rem;
}

.download-list {
  padding-left: 1.1rem;
}

.download-list li + li {
  margin-top: 0.45rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.btn {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.82);
  border-radius: 999px;
  padding: 0.5rem 0.86rem;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 220ms ease, color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.52), transparent);
  transform: translateX(-130%);
  transition: transform 320ms ease;
}

.btn:hover {
  background: #181818;
  color: #f7f7f7;
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.12);
}

.btn:hover::before {
  transform: translateX(130%);
}

.site-footer {
  margin-top: 2.2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  padding-top: 1rem;
  padding-bottom: 2.4rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-inner p {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 0.85rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 620ms ease var(--reveal-delay, 0ms),
    transform 620ms ease var(--reveal-delay, 0ms);
}

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

@keyframes background-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(0, 16px, 0) scale(1.04);
  }
}

@keyframes pulse-node {
  0%,
  100% {
    box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.05);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(0, 0, 0, 0.09);
  }
}

@media (max-width: 980px) {
  .hero-inner,
  .page-hero-grid,
  .layout-split,
  .layout-two-thirds,
  .feature-grid,
  .poster-feature {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.42rem;
  }

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

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

  .pdf-feature {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .header-inner {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 0;
  }

  .top-nav {
    width: 100%;
    justify-content: flex-start;
  }


  .header-controls {
    width: 100%;
    margin-left: 0;
  }

  .metric-grid,
  .resource-grid,
  .card-grid,
  .media-grid {
    grid-template-columns: 1fr;
  }

  .fact-list li {
    flex-direction: column;
    align-items: flex-start;
  }

  .fact-list strong {
    text-align: left;
  }

  .poster-frame {
    min-height: 360px;
  }

  .pdf-preview {
    min-height: 320px;
  }

  .blog-post-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(94vw, 1180px);
  }

  h1 {
    font-size: clamp(1.9rem, 11vw, 3rem);
  }

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

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

.umap-output-intro { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(270px, 0.65fr); gap: 1rem; align-items: end; margin-bottom: 1rem; }
.umap-output-intro h3 { margin: 0 0 0.45rem; font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.14; }
.umap-output-intro p { max-width: 72ch; margin: 0; color: var(--ink-soft); }
.umap-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.45rem; margin: 0; }
.umap-stats div { min-width: 0; padding: 0.72rem; border: 1px solid rgba(0, 0, 0, 0.16); border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.82); }
.umap-stats dt { color: var(--ink-faint); font-family: var(--font-mono); font-size: 0.67rem; text-transform: uppercase; }
.umap-stats dd { margin: 0.2rem 0 0; font-weight: 800; font-size: 1rem; line-height: 1.15; }
.umap-viewer { position: relative; z-index: 1; overflow: hidden; border: 1.5px solid rgba(17, 17, 17, 0.85); border-radius: var(--radius-sm); background: #fff; }
.umap-toolbar { min-height: 3rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.5rem 0.65rem; border-bottom: 1px solid rgba(0, 0, 0, 0.16); background: rgba(247, 246, 243, 0.96); }
.umap-status { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.umap-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.45rem; }
.btn-compact { min-height: 2rem; padding: 0.38rem 0.65rem; font-size: 0.76rem; }
.umap-viewer iframe { display: block; width: 100%; height: clamp(620px, 72vh, 780px); border: 0; background: #fff; }
.umap-viewer:fullscreen { display: grid; grid-template-rows: auto 1fr; width: 100vw; height: 100vh; border: 0; border-radius: 0; }
.umap-viewer:fullscreen iframe { height: 100%; }
@media (max-width: 980px) { .umap-output-intro { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .umap-stats { grid-template-columns: 1fr; } .umap-viewer iframe { height: 66vh; min-height: 520px; } }
@media (max-width: 520px) { .umap-toolbar { align-items: flex-start; flex-direction: column; } .umap-actions { width: 100%; justify-content: flex-start; } .umap-actions .btn { flex: 1 1 calc(50% - 0.45rem); } }

/* Rogue Cell — interactive mini-game */
.game-intro { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr); gap: 1rem; align-items: end; margin-bottom: 1rem; }
.game-intro h3 { margin: 0 0 0.45rem; font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.14; }
.game-intro p { max-width: 72ch; margin: 0; color: var(--ink-soft); }
.game-viewer { position: relative; z-index: 1; overflow: hidden; border: 1.5px solid rgba(17, 17, 17, 0.85); border-radius: var(--radius-sm); background: #07110f; }
.game-toolbar { min-height: 3rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.5rem 0.65rem; border-bottom: 1px solid rgba(0, 0, 0, 0.16); background: rgba(247, 246, 243, 0.96); position: relative; z-index: 5; }
.game-status { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.game-toolbar-controls { position: relative; display: flex; align-items: center; gap: 0.45rem; }
.game-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.45rem; }
.game-more-btn { display: none; }
.game-stage { position: relative; width: 100%; height: clamp(520px, 68vh, 720px); background: #07110f; }
.game-viewer:fullscreen { display: flex; flex-direction: column; width: 100vw; height: 100vh; border: 0; border-radius: 0; }
.game-viewer:fullscreen .game-toolbar, .game-viewer:fullscreen .game-rotate-hint { flex: 0 0 auto; }
.game-viewer:fullscreen .game-stage { flex: 1 1 auto; height: auto; min-height: 0; }
.game-stage canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; outline: none; touch-action: none; cursor: crosshair; }

.game-hud { position: absolute; inset: 0; z-index: 2; padding: 0.85rem; pointer-events: none; font-family: var(--font-sans); color: #f1efe7; }
.hud-row { display: flex; align-items: center; gap: 0.7rem; }
.hud-top { position: absolute; top: 0.85rem; left: 0.85rem; right: 0.85rem; justify-content: space-between; }
.hud-block { display: flex; flex-direction: column; gap: 0.28rem; }
.hud-hp-block { min-width: 9.5rem; }
.hud-label { font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(241, 239, 231, 0.6); }
.hud-bar { position: relative; width: 100%; height: 0.5rem; border-radius: 999px; background: rgba(241, 239, 231, 0.14); overflow: hidden; border: 1px solid rgba(241, 239, 231, 0.18); }
.hud-hp-bar .hud-bar-fill { background: linear-gradient(90deg, #ff6b57, #95e5c1); }
.hud-xp-bar-row { position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.85rem; }
.hud-xp-bar { width: 100%; }
.hud-xp-bar .hud-bar-fill { background: #95e5c1; }
.hud-bar-fill { position: absolute; inset: 0; width: 0%; border-radius: inherit; transition: width 180ms ease; }
.hud-meta { align-items: flex-end; text-align: right; }
.hud-level { font-size: 0.92rem; font-weight: 700; letter-spacing: 0.04em; }
.hud-timer { font-family: var(--font-mono); font-size: 0.86rem; }
.hud-organ { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(149, 229, 193, 0.85); }
.hud-best { font-family: var(--font-mono); font-size: 0.66rem; color: rgba(241, 239, 231, 0.55); }

.hud-abilities { position: absolute; right: 0.85rem; bottom: 2.15rem; display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 0.5rem; }
.hud-ability { position: relative; pointer-events: auto; display: none; align-items: center; gap: 0.55rem; height: 2.35rem; padding-right: 0.7rem; border-radius: 999px; border: 1px solid rgba(241, 239, 231, 0.3); background: rgba(7, 17, 15, 0.72); color: rgba(241, 239, 231, 0.85); cursor: pointer; overflow: hidden; }
.hud-ability[hidden] { display: none; }
.hud-ability:not([hidden]) { display: inline-flex; }
.hud-ability-fill { position: absolute; inset: 0; width: 0%; background: rgba(149, 229, 193, 0.2); transition: width 180ms ease; }
.hud-ability.is-ready { border-color: rgba(149, 229, 193, 0.7); }
.hud-ability-key { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 2.35rem; height: 2.35rem; flex: none; border-right: 1px solid rgba(241, 239, 231, 0.18); font-family: var(--font-mono); font-weight: 700; font-size: 0.9rem; }
.hud-ability-label { position: relative; z-index: 1; font-size: 0.68rem; white-space: nowrap; letter-spacing: 0.02em; }
@media (max-width: 480px) { .hud-ability-label { display: none; } .hud-ability { padding-right: 0; } }
.hud-milestone { position: absolute; top: 5rem; left: 50%; transform: translate(-50%, -8px); font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: #95e5c1; background: rgba(7, 17, 15, 0.72); border: 1px solid rgba(149, 229, 193, 0.32); border-radius: 999px; padding: 0.4rem 0.85rem; opacity: 0; transition: opacity 260ms ease, transform 260ms ease; white-space: nowrap; }
.hud-milestone.is-visible { opacity: 1; transform: translate(-50%, 0); }
.hud-event { position: absolute; top: 7.6rem; left: 50%; transform: translate(-50%, -8px); font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #95e5c1; background: rgba(7, 17, 15, 0.78); border: 1px solid rgba(149, 229, 193, 0.4); border-radius: 999px; padding: 0.42rem 0.9rem; opacity: 0; transition: opacity 260ms ease, transform 260ms ease; white-space: nowrap; }
.hud-event.is-visible { opacity: 1; transform: translate(-50%, 0); }
.hud-event.is-warn { color: #ff6b57; border-color: rgba(255, 107, 87, 0.45); }
.hud-event.is-gold { color: #eac47a; border-color: rgba(234, 196, 122, 0.45); }
.hud-event.is-violet { color: #c48ce0; border-color: rgba(196, 140, 224, 0.45); }
.hud-event.is-rose { color: #d89ea8; border-color: rgba(216, 158, 168, 0.45); }
.hud-vignette { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 400ms ease; box-shadow: inset 0 0 8rem rgba(255, 107, 87, 0.35); }
.hud-vignette.is-visible { opacity: 1; animation: hud-vignette-pulse 1.6s ease-in-out infinite; }
.hud-vignette.is-critical { animation-duration: 0.9s; }
@keyframes hud-vignette-pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

.game-overlay { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; padding: 1.2rem; background: rgba(7, 17, 15, 0.72); backdrop-filter: blur(3px); }
.game-overlay[hidden] { display: none; }
.game-panel { width: min(420px, 100%); border: 1px solid rgba(241, 239, 231, 0.22); border-radius: var(--radius-sm); background: rgba(14, 27, 24, 0.92); padding: 1.4rem; color: #f1efe7; text-align: center; }
.game-panel-wide { width: min(680px, 100%); }
.game-panel-kicker { margin: 0 0 0.4rem; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: #95e5c1; }
.game-panel h3 { margin: 0 0 0.5rem; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; }
.game-panel-sub { margin: 0 0 0.9rem; color: rgba(241, 239, 231, 0.78); }
.game-panel-rules { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; gap: 0.35rem; text-align: left; font-size: 0.86rem; color: rgba(241, 239, 231, 0.85); }
.game-panel-rules li { padding-left: 1rem; position: relative; }
.game-panel-rules li::before { content: "—"; position: absolute; left: 0; color: #95e5c1; }
.game-panel-btn { border-color: rgba(241, 239, 231, 0.6); background: rgba(241, 239, 231, 0.92); }
.game-panel-btn:hover { background: #95e5c1; color: #07110f; }
.game-panel-best { margin: 0.9rem 0 0; font-family: var(--font-mono); font-size: 0.74rem; color: rgba(241, 239, 231, 0.6); }
.game-panel-section-label { margin: 0 0 0.5rem; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(241, 239, 231, 0.55); text-align: left; }
.game-panel .game-card-row { margin-bottom: 1.1rem; }
.mode-card.is-selected { border-color: #95e5c1; background: rgba(149, 229, 193, 0.14); }
.mode-card.is-selected strong { color: #95e5c1; }
.game-panel-links { display: flex; justify-content: center; gap: 1rem; margin-top: 0.9rem; }
.game-panel-links .text-link { color: rgba(241, 239, 231, 0.7); background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }
.game-panel-links .text-link:hover { color: #95e5c1; }
.game-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; margin: 0 0 1.1rem; }
.game-stats div { padding: 0.6rem; border: 1px solid rgba(241, 239, 231, 0.18); border-radius: var(--radius-sm); background: rgba(241, 239, 231, 0.05); }
.game-stats dt { color: rgba(241, 239, 231, 0.55); font-family: var(--font-mono); font-size: 0.64rem; text-transform: uppercase; }
.game-stats dd { margin: 0.2rem 0 0; font-weight: 700; font-size: 1rem; }

.game-card-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.game-card { display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; text-align: left; border: 1px solid rgba(241, 239, 231, 0.22); border-radius: var(--radius-sm); background: rgba(241, 239, 231, 0.05); padding: 0.85rem; color: #f1efe7; cursor: pointer; font-family: var(--font-sans); transition: transform 200ms ease, border-color 200ms ease, background 200ms ease; }
.game-card:hover, .game-card:focus-visible { transform: translateY(-3px); border-color: rgba(149, 229, 193, 0.65); background: rgba(149, 229, 193, 0.1); outline: none; }
.game-card-no { display: inline-flex; align-items: center; justify-content: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; border: 1px solid rgba(149, 229, 193, 0.5); font-family: var(--font-mono); font-size: 0.7rem; color: #95e5c1; }
.game-card strong { font-size: 0.94rem; }
.game-card-key { display: inline-flex; align-items: center; justify-content: center; min-width: 1.3rem; height: 1.3rem; padding: 0 0.3rem; border-radius: 4px; border: 1px solid rgba(149, 229, 193, 0.5); font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700; color: #95e5c1; vertical-align: middle; }
.game-card span { font-size: 0.78rem; color: rgba(241, 239, 231, 0.72); line-height: 1.4; }

.game-settings { position: absolute; top: 6.1rem; right: 0.65rem; z-index: 4; width: min(280px, calc(100% - 1.3rem)); max-height: calc(100% - 6.6rem); overflow-y: auto; border: 1px solid rgba(241, 239, 231, 0.24); border-radius: var(--radius-sm); background: rgba(14, 27, 24, 0.96); padding: 0.9rem; color: #f1efe7; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4); }
.game-settings[hidden] { display: none; }
.game-settings-title { margin: 0 0 0.3rem; font-size: 0.86rem; font-weight: 700; }
.game-settings-hint { margin: 0 0 0.8rem; font-size: 0.72rem; color: rgba(241, 239, 231, 0.6); }
.game-settings-rows { display: grid; gap: 0.5rem; margin-bottom: 0.85rem; }
.game-settings-row { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; font-size: 0.82rem; }
.game-key-btn { min-width: 4.4rem; padding: 0.32rem 0.6rem; border-radius: 999px; border: 1px solid rgba(241, 239, 231, 0.32); background: rgba(241, 239, 231, 0.06); color: #f1efe7; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer; text-align: center; }
.game-key-btn:hover { border-color: rgba(149, 229, 193, 0.6); }
.game-key-btn.is-listening { border-color: #95e5c1; color: #95e5c1; background: rgba(149, 229, 193, 0.12); text-transform: none; }
.game-settings-actions { display: flex; justify-content: flex-end; }
.game-stats-panel { width: min(320px, calc(100% - 1.3rem)); max-height: min(70vh, 520px); overflow-y: auto; }
.game-stats-panel .game-settings-row strong { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700; color: #95e5c1; white-space: nowrap; margin-left: 0.6rem; text-align: right; }
.game-stats-subtitle { margin-top: 0.2rem; padding-top: 0.7rem; border-top: 1px solid rgba(241, 239, 231, 0.14); }
.game-settings-row input[type="range"] { width: 8.5rem; accent-color: #95e5c1; }
.game-settings-row input[type="checkbox"] { width: 1.1rem; height: 1.1rem; accent-color: #95e5c1; }
.game-settings-row select { background: rgba(241, 239, 231, 0.08); color: #f1efe7; border: 1px solid rgba(241, 239, 231, 0.28); border-radius: 6px; padding: 0.2rem 0.4rem; font-size: 0.76rem; font-family: var(--font-sans); }
.game-codex-panel { width: min(460px, calc(100% - 1.3rem)); max-height: calc(100% - 6.6rem); overflow-y: auto; text-align: left; }
.game-codex-panel .field-guide-grid { grid-template-columns: 1fr; gap: 0.6rem; margin-bottom: 0.6rem; }
.game-codex-panel .field-card { background: rgba(241, 239, 231, 0.05); border-color: rgba(241, 239, 231, 0.16); }
.game-codex-panel .field-card h3 { color: #f1efe7; }
.game-codex-panel .field-card p { color: rgba(241, 239, 231, 0.72); }
.game-codex-panel .field-card-dot { color: rgba(241, 239, 231, 0.55); }

.field-guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.75rem; }
.field-card { border: 1px solid rgba(0, 0, 0, 0.16); border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.82); padding: 0.9rem; }
.field-card-dot { display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 0.5rem; font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); }
.field-card-dot::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--dot, #95e5c1); box-shadow: 0 0 0 3px rgba(149, 229, 193, 0.18); }
.field-card h3 { margin: 0 0 0.35rem; font-size: 1.02rem; }
.field-card p { margin: 0; color: var(--ink-soft); font-size: 0.86rem; }

@media (max-width: 980px) { .game-intro { grid-template-columns: 1fr; } .field-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .game-stage { height: 78vh; min-height: 480px; }
  .game-card-row { grid-template-columns: 1fr; }
  .game-stats { grid-template-columns: 1fr; }
}
/* Short viewports (landscape phones) — the 480px+ portrait floor above would force
   the stage taller than the screen, so drop the floor once height is the constraint. */
@media (max-height: 500px) {
  .game-stage { height: 82vh; min-height: 220px; }
}
@media (max-width: 560px) {
  .game-more-btn { display: inline-flex; }
  .game-actions {
    display: none; position: absolute; top: calc(100% + 0.4rem); right: 0; z-index: 6;
    flex-direction: column; align-items: stretch; min-width: 9rem; gap: 0.4rem;
    border: 1px solid rgba(0, 0, 0, 0.14); border-radius: var(--radius-sm);
    background: #f7f6f3; padding: 0.5rem; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  }
  .game-actions.is-open { display: flex; }
  .game-actions .btn { width: 100%; }
  .game-actions [data-settings] { display: none; }
  .field-guide-grid { grid-template-columns: 1fr; }
  .hud-hp-block { min-width: 6.5rem; }
}
body.game-page .game-actions { background: rgba(14, 27, 24, 0.98); border-color: rgba(241, 239, 231, 0.2); }

/* On-screen movement joystick — touch devices only, regardless of viewport size/orientation */
.game-joystick { display: none; }
@media (pointer: coarse) {
  .game-joystick {
    display: block; position: absolute; left: 0.85rem; bottom: 0.85rem;
    width: 7.2rem; height: 7.2rem; border-radius: 50%; pointer-events: auto;
    border: 1px solid rgba(241, 239, 231, 0.28); background: rgba(7, 17, 15, 0.55);
    touch-action: none; -webkit-tap-highlight-color: transparent;
  }
  .game-joystick-knob {
    position: absolute; top: 50%; left: 50%; width: 3.1rem; height: 3.1rem; margin: -1.55rem;
    border-radius: 50%; border: 1px solid rgba(149, 229, 193, 0.7);
    background: rgba(149, 229, 193, 0.3); transition: background 120ms ease;
    will-change: transform;
  }
  .game-joystick:active .game-joystick-knob { background: rgba(149, 229, 193, 0.5); }
  .hud-ability { height: 2.9rem; }
  .hud-ability-key { width: 2.9rem; height: 2.9rem; font-size: 1rem; }
}

/* Landscape hint — sits in normal flow above the stage so it can never cover the HUD */
.game-rotate-hint {
  display: none; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.5rem 0.9rem; font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.04em; text-align: center; color: #07110f;
  background: rgba(149, 229, 193, 0.92);
}
.game-rotate-hint button {
  border: 0; background: none; color: inherit; font-size: 1rem; line-height: 1;
  cursor: pointer; padding: 0 0.2rem;
}
.game-rotate-hint.is-dismissed { display: none; }
@media (pointer: coarse) and (orientation: portrait) {
  .game-rotate-hint:not(.is-dismissed) { display: flex; }
}

/* Rogue Cell — dedicated dark game-page shell (distinct from the paper pages) */
body.game-page {
  --night: #07110f;
  --night-soft: #0e1b18;
  --ivory: #f1efe7;
  --mint: #95e5c1;
  --coral: #ff6b57;
  --gold: #eac47a;
  margin: 0;
  background: var(--night);
  color: var(--ivory);
  font-family: "Avenir Next", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
body.game-page::before,
body.game-page::after { display: none; }
body.game-page .site-header { position: sticky; top: 0; z-index: 80; border-bottom: 1px solid rgba(241, 239, 231, 0.14); background: rgba(7, 17, 15, 0.86); backdrop-filter: blur(16px); }
body.game-page .brand { color: var(--ivory); }
body.game-page .brand small { color: rgba(241, 239, 231, 0.5); }
body.game-page .top-nav a { color: rgba(241, 239, 231, 0.68); }
body.game-page .top-nav a:hover { color: var(--ivory); border-color: rgba(241, 239, 231, 0.24); background: rgba(241, 239, 231, 0.08); }
body.game-page .top-nav a:hover::after, body.game-page .top-nav a.is-active::after { background: linear-gradient(90deg, transparent, rgba(241, 239, 231, 0.8), transparent); }
body.game-page .top-nav a.is-active { color: var(--ivory); border-color: rgba(241, 239, 231, 0.4); background: rgba(241, 239, 231, 0.1); }
body.game-page .lang-toggle { border-color: rgba(241, 239, 231, 0.32); background: rgba(241, 239, 231, 0.06); color: var(--ivory); }
body.game-page .lang-toggle:hover { border-color: var(--mint); background: var(--mint); color: var(--night); }
body.game-page .scroll-progress { background: linear-gradient(90deg, var(--coral) 0%, var(--mint) 100%); }
body.game-page .site-footer { border-top: 1px solid rgba(241, 239, 231, 0.14); color: rgba(241, 239, 231, 0.6); }
body.game-page .site-footer a { color: var(--mint); }
body.game-page .page-wrap { padding: 0 0 4.5rem; }

.game-splash { position: relative; overflow: hidden; padding: clamp(3.2rem, 9vw, 6rem) 1.4rem clamp(2.4rem, 6vw, 3.6rem); text-align: center; }
.game-splash-bg { position: absolute; inset: 0; z-index: 0; background: radial-gradient(circle at 50% 18%, rgba(149, 229, 193, 0.16), transparent 46%), radial-gradient(circle at 82% 78%, rgba(255, 107, 87, 0.12), transparent 40%), repeating-linear-gradient(90deg, rgba(241, 239, 231, 0.035) 0 1px, transparent 1px 42px), repeating-linear-gradient(180deg, rgba(241, 239, 231, 0.03) 0 1px, transparent 1px 42px); }
.game-eyebrow { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 0.5rem; margin: 0 0 1rem; color: var(--mint); font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.22em; opacity: 0; animation: game-rise 700ms ease forwards; }
.game-splash h1 { position: relative; z-index: 1; margin: 0 0 0.7rem; font-size: clamp(2.6rem, 8vw, 5rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1; opacity: 0; animation: game-rise 700ms ease 120ms forwards; }
.game-splash h1 span { display: block; margin-top: 0.55rem; font-size: 0.32em; font-weight: 500; letter-spacing: 0; color: rgba(241, 239, 231, 0.68); }
.game-splash-lead { position: relative; z-index: 1; max-width: 62ch; margin: 0 auto 1.7rem; color: rgba(241, 239, 231, 0.74); font-size: 1.02rem; opacity: 0; animation: game-rise 700ms ease 220ms forwards; }
.game-splash-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; opacity: 0; animation: game-rise 700ms ease 320ms forwards; }
.game-splash-cta { border-color: var(--mint); background: var(--mint); color: var(--night); font-weight: 700; padding: 0.72rem 1.3rem; }
.game-splash-cta:hover { background: var(--ivory); border-color: var(--ivory); color: var(--night); }
.game-splash .text-link { color: rgba(241, 239, 231, 0.72); }
.game-splash .text-link:hover { color: var(--mint); }
@keyframes game-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .game-eyebrow, .game-splash h1, .game-splash-lead, .game-splash-actions { animation: none; opacity: 1; } }

.game-arena-section { padding: 0 1.4rem clamp(2.4rem, 5vw, 3.6rem); }
.game-arena-inner { max-width: 1180px; margin: 0 auto; }
body.game-page .game-viewer { border-color: rgba(241, 239, 231, 0.22); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45); }
body.game-page .game-toolbar { background: rgba(14, 27, 24, 0.92); border-bottom-color: rgba(241, 239, 231, 0.14); color: var(--ivory); }
body.game-page .game-status { color: var(--mint); }
body.game-page .btn.btn-compact { border-color: rgba(241, 239, 231, 0.4); background: rgba(241, 239, 231, 0.06); color: var(--ivory); }
body.game-page .btn.btn-compact:hover { background: var(--mint); border-color: var(--mint); color: var(--night); }

.game-doc-section { max-width: 1180px; margin: 0 auto; padding: 0 1.4rem clamp(2.4rem, 5vw, 3.6rem); }
.game-doc-head { margin: 0 0 1.1rem; padding-bottom: 0.7rem; border-bottom: 1px solid rgba(241, 239, 231, 0.16); display: flex; align-items: baseline; justify-content: space-between; gap: 0.7rem; flex-wrap: wrap; }
.game-doc-head h2 { margin: 0; font-size: clamp(1.3rem, 2.8vw, 1.9rem); font-weight: 600; }
.game-doc-note { margin: 0; padding: 0.2rem 0.6rem; border: 1px solid rgba(241, 239, 231, 0.24); border-radius: 999px; color: rgba(241, 239, 231, 0.6); font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; white-space: nowrap; }
.game-doc-section + .game-doc-section { margin-top: clamp(1.6rem, 4vw, 2.4rem); }
body.game-page .field-card { border-color: rgba(241, 239, 231, 0.16); background: rgba(241, 239, 231, 0.04); }
body.game-page .field-card-dot { color: rgba(241, 239, 231, 0.55); }
body.game-page .field-card h3 { color: var(--ivory); }
body.game-page .field-card p { color: rgba(241, 239, 231, 0.72); }

@media (max-width: 720px) { .game-splash-actions { flex-direction: column; align-items: stretch; } }

/* Scientific manifesto landing page */
.landing-body {
  --night: #07110f;
  --night-soft: #0e1b18;
  --ivory: #f1efe7;
  --paper-white: #fbfaf6;
  --mint: #95e5c1;
  --mint-dark: #175747;
  --coral: #ff6b57;
  --landing-line: rgba(241, 239, 231, 0.22);
  margin: 0;
  background: var(--ivory);
  color: var(--night);
  font-family: "Avenir Next", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

.landing-body::before,
.landing-body::after {
  display: none;
}

.landing-body * {
  letter-spacing: 0;
}

.landing-body a {
  text-underline-offset: 0.22em;
}

.opening-sequence {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--night);
  color: var(--ivory);
  animation: opening-exit 600ms cubic-bezier(0.7, 0, 0.2, 1) 2.9s forwards;
}

.opening-sequence.is-done {
  display: none;
}

.opening-mark {
  position: absolute;
  width: min(58vw, 620px);
  aspect-ratio: 1;
  border: 1px solid rgba(149, 229, 193, 0.25);
  border-radius: 50%;
  animation: opening-mark 2.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.opening-mark::before,
.opening-mark::after {
  content: "";
  position: absolute;
  inset: 21%;
  border: 1px solid rgba(149, 229, 193, 0.35);
  border-radius: 50%;
}

.opening-mark::after {
  inset: 40%;
  background: var(--coral);
  border: 0;
  box-shadow: 0 0 40px rgba(255, 107, 87, 0.4);
}

.opening-word {
  position: absolute;
  margin: 0;
  color: var(--ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 9vw, 8rem);
  font-weight: 400;
  line-height: 1;
  opacity: 0;
}

.opening-word-one { animation: opening-word 720ms ease 150ms both; }
.opening-word-two { animation: opening-word 720ms ease 950ms both; }
.opening-word-three { animation: opening-word 720ms ease 1750ms both; }

.opening-signature {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
  color: rgba(241, 239, 231, 0.5);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.68rem;
  white-space: nowrap;
}

.opening-skip {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  border: 0;
  border-bottom: 1px solid rgba(241, 239, 231, 0.5);
  padding: 0.25rem 0;
  background: transparent;
  color: rgba(241, 239, 231, 0.7);
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.landing-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  min-height: 5rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 3.2vw;
  border-bottom: 1px solid rgba(241, 239, 231, 0.16);
  color: var(--ivory);
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: inherit;
  text-decoration: none;
}

.landing-brand > span {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid rgba(241, 239, 231, 0.6);
  font: 600 0.72rem/1 "SFMono-Regular", Consolas, monospace;
}

.landing-brand small {
  color: rgba(241, 239, 231, 0.7);
  font: 500 0.7rem/1 "SFMono-Regular", Consolas, monospace;
  text-transform: uppercase;
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2.4rem);
}

.landing-nav a {
  position: relative;
  color: rgba(241, 239, 231, 0.76);
  font-size: 0.72rem;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.landing-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.42rem;
  left: 0;
  height: 1px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.landing-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.landing-nav .nav-cv {
  border: 1px solid rgba(241, 239, 231, 0.5);
  padding: 0.62rem 0.8rem;
  color: var(--ivory);
}

.landing-nav .nav-cv::after { display: none; }
.landing-nav .nav-cv:hover { background: var(--ivory); color: var(--night); }
.landing-header .header-controls { display: flex; }

.landing-header + .header-controls,
.landing-body > .header-controls { display: none; }

.landing-header .lang-toggle {
  color: var(--ivory);
}

.landing-main { display: block; }

.landing-hero {
  position: relative;
  min-height: max(680px, calc(100svh - 18px));
  overflow: hidden;
  background: var(--night);
  color: var(--ivory);
}

#cell-field,
.hero-noise {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#cell-field { z-index: 1; }

.hero-noise {
  z-index: 2;
  pointer-events: none;
  opacity: 0.18;
  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='.88' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.24'/%3E%3C/svg%3E");
}

.landing-hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  width: 100%;
  min-height: inherit;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.34fr);
  grid-template-rows: auto 1fr auto;
  gap: 1rem 5vw;
  align-items: center;
  padding: 7rem 4vw 4rem;
}

.hero-coordinate {
  grid-column: 1 / -1;
  display: flex;
  align-self: start;
  justify-content: space-between;
  padding-top: 0.4rem;
  color: rgba(241, 239, 231, 0.48);
  font: 0.64rem/1.3 "SFMono-Regular", Consolas, monospace;
  text-transform: uppercase;
}

.landing-hero-copy {
  width: min(850px, 100%);
  align-self: center;
}

.landing-kicker,
.section-code,
.research-number {
  margin: 0;
  font: 600 0.66rem/1.4 "SFMono-Regular", Consolas, monospace;
  text-transform: uppercase;
}

.landing-kicker {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--mint);
}

.landing-kicker > span {
  width: 2.5rem;
  height: 1px;
  background: currentColor;
}

.landing-hero h1 {
  margin: 1.1rem 0 1.35rem;
  color: var(--ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 8.7vw, 9rem);
  font-weight: 400;
  line-height: 0.82;
  text-transform: none;
}

.landing-hero h1 span {
  display: block;
  margin: 0;
  color: inherit;
  font: inherit;
  text-transform: none;
}

.landing-hero h1 .hero-accent {
  color: var(--coral);
  font-style: italic;
}

.landing-intro {
  max-width: 720px;
  margin: 0;
  color: rgba(241, 239, 231, 0.72);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.55vw, 1.3rem);
  line-height: 1.58;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.landing-btn {
  display: inline-flex;
  min-height: 3.1rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.3rem;
  border: 1px solid rgba(241, 239, 231, 0.48);
  padding: 0.7rem 0.9rem;
  color: var(--ivory);
  font-size: 0.74rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.landing-btn:hover { border-color: var(--ivory); background: var(--ivory); color: var(--night); }
.landing-btn-primary { border-color: var(--mint); background: var(--mint); color: var(--night); }
.landing-btn-primary:hover { border-color: var(--paper-white); background: var(--paper-white); }

.hero-data {
  display: grid;
  align-self: center;
  border-top: 1px solid var(--landing-line);
}

.hero-data > div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--landing-line);
}

.hero-data strong {
  color: var(--mint);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1;
}

.hero-data span {
  color: rgba(241, 239, 231, 0.55);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.hero-observation {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 0.6rem;
  align-self: end;
  color: rgba(241, 239, 231, 0.46);
  font: 0.62rem/1 "SFMono-Regular", Consolas, monospace;
  text-transform: uppercase;
}

.hero-observation p { margin: 0; }

.observation-dot {
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 5px rgba(255, 107, 87, 0.14);
  animation: observation-pulse 1.8s ease-in-out infinite;
}

.hero-scroll {
  position: absolute;
  right: 3.8vw;
  bottom: 3.2rem;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(241, 239, 231, 0.6);
  font-size: 0.62rem;
  text-decoration: none;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.hero-scroll > span { width: 1px; height: 2.8rem; background: rgba(241, 239, 231, 0.45); }

.manifesto-section,
.cancer-section,
.research-section,
.portal-section {
  position: relative;
  width: 100%;
}

.manifesto-section {
  display: grid;
  min-height: 760px;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 7vw;
  align-items: center;
  padding: 9rem 6vw 8rem;
  background: var(--ivory);
}

.manifesto-index {
  position: absolute;
  top: 2rem;
  right: 3vw;
  color: rgba(7, 17, 15, 0.06);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(9rem, 22vw, 22rem);
  line-height: 1;
}

.section-code { color: var(--mint-dark); }

.manifesto-heading h2,
.cancer-statement h2,
.landing-section-head h2,
.portal-intro h2 {
  margin: 1rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  text-transform: none;
}

.manifesto-heading h2 {
  max-width: 13ch;
  font-size: clamp(3.2rem, 6.3vw, 7rem);
  line-height: 0.95;
}

.manifesto-heading em { color: var(--coral); font-weight: 400; }

.manifesto-body {
  align-self: end;
  padding-bottom: 1rem;
}

.manifesto-lead {
  margin: 0 0 2.2rem;
  padding-left: 1.2rem;
  border-left: 3px solid var(--coral);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.45;
}

.manifesto-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }
.manifesto-columns p { margin: 0; color: #44504d; font-size: 0.9rem; }

.cancer-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(350px, 0.85fr);
  gap: 7vw;
  padding: 8rem 6vw;
  background: var(--coral);
  color: var(--night);
}

.cancer-section .section-code { color: rgba(7, 17, 15, 0.62); }
.cancer-statement h2 { max-width: 17ch; font-size: clamp(3rem, 5.5vw, 6rem); line-height: 0.96; }
.cancer-statement h2 span { color: var(--paper-white); }
.cancer-statement > p:last-child { max-width: 56ch; margin: 2rem 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.18rem; }

.inquiry-list { display: grid; align-content: center; margin: 0; padding: 0; border-top: 1px solid rgba(7, 17, 15, 0.35); list-style: none; }
.inquiry-list li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid rgba(7, 17, 15, 0.35); }
.inquiry-list li > span { padding-top: 0.25rem; font: 0.66rem/1 "SFMono-Regular", Consolas, monospace; }
.inquiry-list h3 { margin: 0 0 0.25rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; font-weight: 400; }
.inquiry-list p { margin: 0; color: rgba(7, 17, 15, 0.74); font-size: 0.88rem; }

.research-section { padding: 9rem 5vw; background: #dfe6df; }

.landing-section-head {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr;
  gap: 7vw;
  align-items: end;
  margin-bottom: 4rem;
}

.landing-section-head h2 { font-size: clamp(3.3rem, 6.3vw, 7rem); line-height: 0.9; }
.landing-section-head > p { max-width: 50ch; margin: 0; color: #44504d; }

.research-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: rgba(7, 17, 15, 0.3); border: 1px solid rgba(7, 17, 15, 0.3); }
.research-feature { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr); min-height: 560px; background: var(--night); color: var(--ivory); }
.research-visual { position: relative; min-height: 460px; overflow: hidden; background: #020706; }
.research-visual iframe { position: absolute; inset: -3.2rem -8rem -3.2rem -3.2rem; width: calc(100% + 11.2rem); height: calc(100% + 6.4rem); border: 0; pointer-events: none; }
.visual-label { position: absolute; left: 1rem; bottom: 1rem; display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0.6rem; background: rgba(7, 17, 15, 0.88); color: rgba(241, 239, 231, 0.7); font: 0.62rem/1 "SFMono-Regular", Consolas, monospace; text-transform: uppercase; }
.visual-label span { color: var(--mint); }
.visual-label span::before { content: ""; display: inline-block; width: 0.38rem; height: 0.38rem; margin-right: 0.35rem; border-radius: 50%; background: var(--coral); }
.research-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 5vw, 5rem); }
.research-number { color: var(--mint-dark); }
.research-feature .research-number { color: var(--mint); }
.research-copy h3,
.research-card h3 { margin: 1rem 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 3.3vw, 3.7rem); font-weight: 400; line-height: 1.02; }
.research-copy > p:not(.research-number) { color: rgba(241, 239, 231, 0.65); }
.research-metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin: 2rem 0; border-top: 1px solid var(--landing-line); border-bottom: 1px solid var(--landing-line); }
.research-metrics div { padding: 0.85rem 0; }
.research-metrics dt { color: rgba(241, 239, 231, 0.45); font-size: 0.6rem; text-transform: uppercase; }
.research-metrics dd { margin: 0.2rem 0 0; color: var(--ivory); font-family: Georgia, "Times New Roman", serif; }
.text-link { display: inline-flex; width: fit-content; gap: 0.8rem; align-items: center; color: inherit; font-size: 0.75rem; text-transform: uppercase; }

.research-card { min-height: 500px; padding: clamp(1.7rem, 4vw, 4rem); background: var(--paper-white); }
.research-card-warm { background: #f0d9bd; }
.research-card-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.research-card-top .research-number { color: var(--mint-dark); }
.research-status { border: 1px solid rgba(7, 17, 15, 0.3); padding: 0.35rem 0.5rem; font: 0.58rem/1 "SFMono-Regular", Consolas, monospace; white-space: nowrap; }
.research-card h3 { max-width: 16ch; font-size: clamp(2rem, 3vw, 3.2rem); }
.research-card > p:not(.research-number) { max-width: 58ch; color: #48524f; }
.research-card .text-link { margin-top: 2rem; }

.signal-diagram { display: flex; min-height: 7rem; align-items: center; margin: 2rem 0 1rem; }
.signal-diagram span { display: grid; min-width: 4.5rem; min-height: 4.5rem; place-items: center; border: 1px solid var(--night); border-radius: 50%; padding: 0.4rem; font: 0.6rem/1 "SFMono-Regular", Consolas, monospace; }
.signal-diagram span:nth-of-type(2) { border-color: var(--coral); background: var(--coral); }
.signal-diagram i { position: relative; flex: 1; height: 1px; background: var(--night); }
.signal-diagram i::after { content: ""; position: absolute; top: -3px; right: 0; width: 6px; height: 6px; border-top: 1px solid; border-right: 1px solid; transform: rotate(45deg); }

.anchor-diagram { position: relative; min-height: 8rem; margin: 1.5rem 0 0.5rem; overflow: hidden; }
.anchor-cell { position: absolute; left: 5%; top: 1rem; width: 5rem; height: 5rem; border: 1px solid var(--night); border-radius: 50%; box-shadow: inset 0 0 0 1.2rem rgba(255, 107, 87, 0.28); }
.anchor-cell::before,
.anchor-cell::after { content: ""; position: absolute; width: 1.3rem; height: 1.3rem; border: 1px solid var(--night); border-radius: 50%; }
.anchor-cell::before { top: -1rem; right: -1.7rem; }
.anchor-cell::after { right: -2.4rem; bottom: -0.2rem; }
.anchor-line { position: absolute; top: 3.5rem; left: calc(5% + 5rem); right: 25%; height: 1px; background: var(--night); }
.anchor-line::before,
.anchor-line::after { content: ""; position: absolute; width: 0.5rem; height: 0.5rem; border: 1px solid; transform: rotate(45deg); }
.anchor-line::before { left: 30%; top: -0.3rem; }
.anchor-line::after { right: 25%; top: -0.3rem; }
.anchor-surface { position: absolute; top: 0.5rem; right: 8%; width: 1.1rem; height: 6rem; border: 1px solid var(--night); background: repeating-linear-gradient(0deg, transparent 0 8px, rgba(7, 17, 15, 0.2) 8px 9px); }

.portal-section { display: grid; grid-template-columns: 0.65fr 1.35fr; gap: 7vw; padding: 9rem 6vw; background: var(--night); color: var(--ivory); }
.portal-intro { position: sticky; top: 3rem; align-self: start; }
.portal-intro .section-code { color: var(--mint); }
.portal-intro h2 { font-size: clamp(3.5rem, 5.5vw, 6rem); line-height: 0.95; }
.portal-intro > p:last-child { color: rgba(241, 239, 231, 0.55); }
.portal-list { display: grid; border-top: 1px solid var(--landing-line); }
.portal-list a { display: grid; grid-template-columns: 3rem minmax(140px, 0.8fr) minmax(170px, 1fr) auto; gap: 1rem; align-items: center; min-height: 6.3rem; border-bottom: 1px solid var(--landing-line); color: var(--ivory); text-decoration: none; transition: color 160ms ease, padding 160ms ease, background 160ms ease; }
.portal-list a:hover { padding-inline: 1rem; background: var(--mint); color: var(--night); }
.portal-no { color: var(--mint); font: 0.64rem/1 "SFMono-Regular", Consolas, monospace; }
.portal-list a:hover .portal-no { color: var(--night); }
.portal-list strong { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.5rem, 2.4vw, 2.5rem); font-weight: 400; }
.portal-list small { color: rgba(241, 239, 231, 0.46); font-size: 0.68rem; text-transform: uppercase; }
.portal-list a:hover small { color: rgba(7, 17, 15, 0.66); }
.portal-list i { font-size: 1.4rem; font-style: normal; }

.landing-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 2rem 3vw; border-top: 1px solid rgba(241, 239, 231, 0.18); background: var(--night); color: rgba(241, 239, 231, 0.46); font-size: 0.66rem; text-transform: uppercase; }
.landing-footer p { margin: 0; }
.landing-footer strong { color: var(--ivory); font-weight: 500; }

.landing-body .reveal { opacity: 1; transform: none; }
.landing-body.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 720ms ease var(--reveal-delay, 0ms), transform 720ms ease var(--reveal-delay, 0ms); }
.landing-body.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes opening-word {
  0% { opacity: 0; transform: translateY(24px); filter: blur(10px); }
  22%, 70% { opacity: 1; transform: none; filter: blur(0); }
  100% { opacity: 0; transform: translateY(-18px); filter: blur(7px); }
}

@keyframes opening-mark {
  0% { opacity: 0; transform: scale(0.35) rotate(0); }
  28% { opacity: 1; }
  100% { opacity: 0.28; transform: scale(1.15) rotate(35deg); }
}

@keyframes opening-exit {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

@keyframes observation-pulse {
  50% { opacity: 0.48; box-shadow: 0 0 0 9px rgba(255, 107, 87, 0.06); }
}

@media (max-width: 920px) {
  .landing-header { min-height: 4.4rem; padding-inline: 1rem; gap: 1rem; }
  .landing-brand small { display: none; }
  .landing-nav { max-width: calc(100vw - 5rem); gap: 1rem; overflow-x: auto; scrollbar-width: none; }
  .landing-nav::-webkit-scrollbar { display: none; }
  .landing-nav a:nth-child(3),
  .landing-nav a:nth-child(4) { display: none; }
  .landing-hero-inner { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto auto; padding: 6rem 1.4rem 3rem; }
  .landing-hero h1 { font-size: clamp(3.75rem, 12vw, 6.4rem); }
  .hero-data { grid-template-columns: repeat(3, 1fr); }
  .hero-data > div { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.85rem 0; }
  .hero-data strong { font-size: 1.7rem; }
  .hero-scroll { display: none; }
  .manifesto-section,
  .cancer-section,
  .portal-section { grid-template-columns: 1fr; }
  .manifesto-section { min-height: auto; }
  .manifesto-body { width: min(700px, 100%); justify-self: end; }
  .cancer-section { gap: 4rem; }
  .landing-section-head { grid-template-columns: 1fr; }
  .research-feature { grid-template-columns: 1fr; }
  .research-visual { min-height: 430px; }
  .portal-intro { position: static; }
}

@media (max-width: 640px) {
  .opening-mark { width: 88vw; }
  .landing-header { border-bottom-color: rgba(241, 239, 231, 0.1); }
  .landing-nav a { font-size: 0.62rem; }
  .landing-nav a:first-child { display: none; }
  .landing-nav .nav-cv { padding: 0.5rem 0.6rem; }
  .landing-hero { min-height: max(720px, calc(100svh - 12px)); }
  .landing-hero-inner { gap: 1rem; padding-inline: 1.15rem; }
  .hero-coordinate { font-size: 0.52rem; }
  .hero-coordinate span:last-child { display: none; }
  .landing-kicker { max-width: 28ch; font-size: 0.58rem; }
  .landing-hero h1 { margin-top: 0.9rem; font-size: clamp(3.2rem, 16vw, 5.2rem); line-height: 0.88; }
  .landing-intro { max-width: 34ch; font-size: 0.98rem; }
  .landing-actions { flex-direction: column; width: min(100%, 22rem); }
  .landing-btn { width: 100%; }
  .hero-data > div { min-width: 0; }
  .hero-data strong { font-size: 1.45rem; }
  .hero-data span { font-size: 0.52rem; }
  .hero-observation { font-size: 0.52rem; }
  .manifesto-section,
  .cancer-section,
  .research-section,
  .portal-section { padding: 6rem 1.2rem; }
  .manifesto-section { gap: 4rem; }
  .manifesto-heading h2,
  .cancer-statement h2,
  .landing-section-head h2,
  .portal-intro h2 { font-size: clamp(2.8rem, 13vw, 4.3rem); }
  .manifesto-columns { grid-template-columns: 1fr; gap: 1rem; }
  .manifesto-index { right: -0.1em; font-size: 12rem; }
  .cancer-statement > p:last-child { font-size: 1.05rem; }
  .research-section { padding-inline: 0; }
  .landing-section-head { padding-inline: 1.2rem; }
  .research-grid { grid-template-columns: 1fr; border-inline: 0; }
  .research-feature { grid-column: auto; min-height: 0; }
  .research-visual { min-height: 360px; }
  .research-copy,
  .research-card { padding: 2rem 1.2rem; }
  .research-card { min-height: 460px; }
  .research-copy h3,
  .research-card h3 { font-size: 2.35rem; }
  .research-metrics dd { font-size: 0.8rem; }
  .signal-diagram span { min-width: 3.8rem; min-height: 3.8rem; font-size: 0.52rem; }
  .portal-section { gap: 3rem; }
  .portal-list a { grid-template-columns: 2rem 1fr auto; min-height: 5.8rem; }
  .portal-list small { display: none; }
  .landing-footer { flex-direction: column; padding-inline: 1.2rem; }
}

/* Detail-page home affordance */
.brand-home {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  border-radius: 999px;
  padding: 0.3rem 0.55rem 0.3rem 0.35rem;
  transition: color 220ms ease, background 220ms ease, transform 220ms ease;
}

.brand-home::before {
  content: "←";
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: color 220ms ease, background 220ms ease, transform 220ms ease;
}

.brand-home:hover,
.brand-home:focus-visible {
  background: rgba(255, 255, 255, 0.72);
  outline: none;
  transform: translateY(-1px);
}

.brand-home:hover::before,
.brand-home:focus-visible::before {
  background: var(--ink);
  color: #fff;
  transform: translateX(-3px);
}

@media (max-width: 720px) {
  .brand-home {
    padding-block: 0.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .opening-sequence { display: none; }
  .observation-dot { animation: none; }
  .landing-body.js .reveal { opacity: 1; transform: none; transition: none; }
}

.landing-lang {
  display: grid;
  min-width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid rgba(241, 239, 231, 0.4);
  color: var(--ivory);
  font: 600 0.62rem/1 "SFMono-Regular", Consolas, monospace;
  text-decoration: none;
}

.landing-lang:hover {
  border-color: var(--mint);
  background: var(--mint);
  color: var(--night);
}

@media (max-width: 640px) {
  .landing-lang { min-width: 2rem; height: 2rem; }
}

.project-card[id] {
  scroll-margin-top: 7rem;
}

.emt-diagram {
  display: grid;
  min-height: 8rem;
  grid-template-columns: 4.4rem minmax(3.5rem, 1fr) 4.4rem minmax(3.5rem, 1fr) 4.4rem;
  align-items: center;
  margin: 1.5rem 0 0.5rem;
}

.emt-node {
  display: grid;
  width: 4.4rem;
  height: 4.4rem;
  place-content: center;
  border: 1px solid var(--night);
  border-radius: 50%;
  text-align: center;
}

.emt-node span {
  font: 600 0.65rem/1 "SFMono-Regular", Consolas, monospace;
}

.emt-node small {
  margin-top: 0.3rem;
  color: rgba(7, 17, 15, 0.58);
  font: 0.52rem/1 "SFMono-Regular", Consolas, monospace;
  text-transform: uppercase;
}

.emt-node-off {
  border-style: dashed;
  opacity: 0.65;
}

.emt-node-hot {
  border-color: var(--coral);
  background: var(--coral);
  box-shadow: 0 0 0 0.65rem rgba(255, 107, 87, 0.15);
}

.emt-node-hot small {
  color: rgba(7, 17, 15, 0.72);
}

.emt-path {
  position: relative;
  height: 1px;
  background: var(--night);
}

.emt-path::after {
  content: "";
  position: absolute;
  top: -3px;
  right: 0;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--night);
  border-right: 1px solid var(--night);
  transform: rotate(45deg);
}

.emt-path i {
  position: absolute;
  top: -0.28rem;
  right: 45%;
  width: 0.55rem;
  height: 0.55rem;
  border: 1px solid var(--night);
  background: #f0d9bd;
  transform: rotate(45deg);
}

.emt-path small {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  width: max-content;
  max-width: 9rem;
  transform: translateX(-50%);
  color: rgba(7, 17, 15, 0.56);
  font: 0.5rem/1.25 "SFMono-Regular", Consolas, monospace;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .emt-diagram {
    grid-template-columns: 3.8rem minmax(2rem, 1fr) 3.8rem minmax(2rem, 1fr) 3.8rem;
  }

  .emt-node {
    width: 3.8rem;
    height: 3.8rem;
  }

  .emt-path small {
    max-width: 5rem;
    font-size: 0.44rem;
  }
}


/* 2026 homepage refresh: evidence-led portfolio */
.landing-header {
  transition:
    min-height 260ms ease,
    background 260ms ease,
    border-color 260ms ease,
    backdrop-filter 260ms ease,
    transform 260ms ease;
}

.landing-header.is-scrolled {
  position: fixed;
  min-height: 4.35rem;
  border-bottom-color: rgba(241, 239, 231, 0.12);
  background: rgba(7, 17, 15, 0.82);
  backdrop-filter: blur(18px) saturate(135%);
}

.landing-hero::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  height: 32%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(2, 7, 6, 0.42));
}

.landing-hero h1 {
  max-width: 11ch;
  font-size: clamp(3.8rem, 7.4vw, 8rem);
}

.landing-hero h1 > span:first-of-type {
  color: rgba(241, 239, 231, 0.72);
  font-size: 0.72em;
}

.landing-intro {
  max-width: 58ch;
}

.hero-data {
  position: relative;
  overflow: hidden;
}

.hero-data::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -35%;
  width: 30%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(149, 229, 193, 0.1), transparent);
  transform: skewX(-14deg);
  animation: metric-scan 7s ease-in-out infinite 2s;
}

.hero-data > div {
  transition: padding-left 220ms ease, background 220ms ease;
}

.hero-data > div:hover {
  padding-left: 0.75rem;
  background: rgba(149, 229, 193, 0.06);
}

.impact-marquee {
  position: relative;
  z-index: 5;
  overflow: hidden;
  border-block: 1px solid rgba(241, 239, 231, 0.2);
  padding: 0.95rem 0;
  background: var(--coral);
  color: var(--night);
}

.impact-marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 1.5rem;
  animation: marquee-slide 32s linear infinite;
  will-change: transform;
}

.impact-marquee span {
  font: 650 0.7rem/1 "SFMono-Regular", Consolas, monospace;
  text-transform: uppercase;
  white-space: nowrap;
}

.impact-marquee i {
  width: 0.42rem;
  height: 0.42rem;
  border: 1px solid currentColor;
  transform: rotate(45deg);
}

.research-section {
  overflow: hidden;
}

.research-grid {
  perspective: 1400px;
}

.research-card,
.proof-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --spot-x: 50%;
  --spot-y: 50%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transform: perspective(1200px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition:
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 260ms ease;
  will-change: transform;
}

.research-card::after,
.proof-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(255, 255, 255, 0.38), transparent 34%);
  transition: opacity 220ms ease;
}

.research-card:hover,
.proof-card:hover {
  z-index: 3;
  box-shadow: 0 30px 75px rgba(7, 17, 15, 0.16);
}

.research-card:hover::after,
.proof-card:hover::after {
  opacity: 1;
}

.research-card > *,
.proof-card > * {
  transform: translateZ(12px);
}

.research-card-mint {
  background: #b9e8d2;
}

.research-card-dark {
  background: #10231f;
  color: var(--ivory);
}

.research-card-dark .research-number {
  color: var(--mint);
}

.research-card-dark .research-status {
  border-color: rgba(241, 239, 231, 0.32);
}

.research-card-dark > p:not(.research-number) {
  color: rgba(241, 239, 231, 0.62);
}

.research-card-dark .anchor-cell,
.research-card-dark .anchor-cell::before,
.research-card-dark .anchor-cell::after,
.research-card-dark .anchor-surface {
  border-color: rgba(241, 239, 231, 0.72);
}

.research-card-dark .anchor-line {
  background: rgba(241, 239, 231, 0.72);
}

.transfer-diagram {
  display: grid;
  min-height: 8rem;
  grid-template-columns: 4.6rem 1fr 2rem 1fr 4.6rem;
  align-items: center;
  margin: 1.4rem 0 0.5rem;
}

.transfer-diagram span {
  display: grid;
  width: 4.6rem;
  height: 4.6rem;
  place-items: center;
  border: 1px solid var(--night);
  border-radius: 50%;
  font: 650 0.62rem/1 "SFMono-Regular", Consolas, monospace;
}

.transfer-diagram span:last-child {
  border-color: var(--coral);
  background: var(--coral);
}

.transfer-diagram i {
  height: 1px;
  background: var(--night);
  transform-origin: center;
  animation: transfer-pulse 2.6s ease-in-out infinite;
}

.transfer-diagram b {
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 1.4rem;
  font-weight: 400;
}

.proof-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1.38fr);
  gap: 6vw;
  padding: 8rem 6vw;
  background: #f2efe6;
}

.proof-heading {
  align-self: center;
}

.proof-heading h2,
.experience-intro h2 {
  margin: 1rem 0 1.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 5.2vw, 5.8rem);
  font-weight: 400;
  line-height: 0.94;
}

.proof-heading h2 em {
  color: var(--coral);
  font-weight: 400;
}

.proof-heading > p:last-child,
.experience-intro > p:last-child {
  max-width: 45ch;
  color: #55605d;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid rgba(7, 17, 15, 0.28);
  background: rgba(7, 17, 15, 0.28);
  gap: 1px;
}

.proof-card {
  min-height: 290px;
  padding: clamp(1.4rem, 3vw, 2.8rem);
  background: var(--paper-white);
}

.proof-card-feature {
  background: var(--coral);
}

.proof-card > span,
.experience-line time,
.experience-line div > span {
  font: 650 0.62rem/1.3 "SFMono-Regular", Consolas, monospace;
  text-transform: uppercase;
}

.proof-card > span {
  color: var(--mint-dark);
}

.proof-card strong {
  display: block;
  margin: 1.5rem 0 0.75rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 5vw, 6rem);
  font-weight: 400;
  line-height: 0.84;
}

.proof-card:last-child strong {
  font-size: clamp(2.6rem, 3.8vw, 4.3rem);
}

.proof-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 400;
}

.proof-card p {
  margin: 0.5rem 0 0;
  color: #55605d;
  font-size: 0.82rem;
}

.experience-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 7vw;
  padding: 9rem 6vw;
  background: #dfe6df;
}

.experience-intro {
  position: sticky;
  top: 7rem;
  align-self: start;
}

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

.experience-line li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(105px, 0.32fr) minmax(0, 1fr);
  gap: 1.6rem;
  padding: 0 0 3.8rem;
}

.experience-line li::before {
  content: "";
  position: absolute;
  top: 0.28rem;
  left: calc(32% + 0.78rem);
  width: 0.66rem;
  height: 0.66rem;
  border: 1px solid var(--night);
  border-radius: 50%;
  background: #dfe6df;
  box-shadow: 0 0 0 0.5rem rgba(149, 229, 193, 0.35);
  transition: background 220ms ease, transform 220ms ease;
}

.experience-line li::after {
  content: "";
  position: absolute;
  top: 1.4rem;
  bottom: 0.45rem;
  left: calc(32% + 1.08rem);
  width: 1px;
  background: rgba(7, 17, 15, 0.25);
}

.experience-line li:last-child::after {
  display: none;
}

.experience-line li:hover::before {
  background: var(--coral);
  transform: scale(1.35);
}

.experience-line time {
  padding-top: 0.1rem;
  color: var(--mint-dark);
}

.experience-line div {
  padding-left: 1.5rem;
}

.experience-line div > span {
  color: #66716e;
}

.experience-line h3 {
  margin: 0.5rem 0 0.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 2.6vw, 2.8rem);
  font-weight: 400;
  line-height: 1.05;
}

.experience-line p {
  max-width: 58ch;
  margin: 0;
  color: #55605d;
  font-size: 0.9rem;
}

.cursor-orb {
  position: fixed;
  z-index: 900;
  top: 0;
  left: 0;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(149, 229, 193, 0.14), rgba(255, 107, 87, 0.04) 38%, transparent 68%);
  mix-blend-mode: screen;
  transform: translate3d(calc(var(--cursor-x, -500px) - 50%), calc(var(--cursor-y, -500px) - 50%), 0);
  transition: opacity 240ms ease;
}

.cursor-orb.is-active {
  opacity: 1;
}

.landing-body.js .reveal {
  transform: translateY(34px) scale(0.985);
  filter: blur(5px);
  transition:
    opacity 760ms cubic-bezier(0.2, 0.8, 0.2, 1) var(--reveal-delay, 0ms),
    transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1) var(--reveal-delay, 0ms),
    filter 760ms ease var(--reveal-delay, 0ms);
}

.landing-body.js .reveal.is-visible {
  filter: blur(0);
}

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

@keyframes metric-scan {
  0%, 72% { left: -35%; }
  100% { left: 120%; }
}

@keyframes transfer-pulse {
  0%, 100% { opacity: 0.35; transform: scaleX(0.7); }
  50% { opacity: 1; transform: scaleX(1); }
}

@media (max-width: 920px) {
  .proof-section,
  .experience-section {
    grid-template-columns: 1fr;
  }

  .proof-heading {
    max-width: 700px;
  }

  .experience-intro {
    position: static;
  }

  .experience-line li::before {
    left: calc(32% + 0.78rem);
  }
}

@media (max-width: 640px) {
  .landing-hero h1 {
    max-width: 100%;
    font-size: clamp(3.1rem, 14.5vw, 5rem);
  }

  .landing-body.is-zh .landing-hero h1 {
    font-size: clamp(2.65rem, 12vw, 4.4rem);
    line-height: 0.98;
  }

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

  .hero-data > div {
    min-height: 4.7rem;
    padding-inline: 0.25rem;
  }

  .impact-marquee-track {
    gap: 1rem;
    animation-duration: 24s;
  }

  .proof-section,
  .experience-section {
    padding: 6rem 1.2rem;
  }

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

  .proof-card {
    min-height: 240px;
  }

  .experience-line li {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    padding-left: 1.8rem;
  }

  .experience-line li::before {
    top: 0.25rem;
    left: 0;
  }

  .experience-line li::after {
    top: 1.35rem;
    bottom: 0.35rem;
    left: 0.31rem;
  }

  .experience-line div {
    padding-left: 0;
  }

  .transfer-diagram {
    grid-template-columns: 3.8rem 1fr 1.6rem 1fr 3.8rem;
  }

  .transfer-diagram span {
    width: 3.8rem;
    height: 3.8rem;
  }
}

@media (hover: none), (pointer: coarse) {
  .cursor-orb {
    display: none;
  }

  .research-card,
  .proof-card {
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .impact-marquee-track {
    animation: none;
  }

  .hero-data::before,
  .transfer-diagram i {
    animation: none;
  }

  .cursor-orb {
    display: none;
  }

  .research-card,
  .proof-card,
  .landing-body.js .reveal {
    transform: none;
    filter: none;
  }
}


/* Faster session-only opening sequence */
.opening-sequence {
  animation: opening-exit 480ms cubic-bezier(0.7, 0, 0.2, 1) 1.72s forwards;
}

.opening-mark {
  animation-duration: 1.55s;
}

.opening-word-one { animation: opening-word 500ms ease 80ms both; }
.opening-word-two { animation: opening-word 500ms ease 570ms both; }
.opening-word-three { animation: opening-word 500ms ease 1060ms both; }


/* Local lightweight atlas preview */
.atlas-preview {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 32%, rgba(149, 229, 193, 0.11), transparent 22%),
    radial-gradient(circle at 72% 66%, rgba(255, 107, 87, 0.1), transparent 24%),
    #020706;
}

.atlas-preview::before,
.atlas-preview::after {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.atlas-preview::before {
  inset: 0;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(149, 229, 193, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(149, 229, 193, 0.08) 1px, transparent 1px);
  background-size: 3.5rem 3.5rem;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.atlas-preview::after {
  inset: 1.1rem;
  border: 1px solid rgba(149, 229, 193, 0.1);
}

.atlas-preview canvas {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
}

.atlas-label {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(241, 239, 231, 0.18);
  padding: 0.28rem 0.42rem;
  background: rgba(7, 17, 15, 0.7);
  color: rgba(241, 239, 231, 0.52);
  font: 0.52rem/1 "SFMono-Regular", Consolas, monospace;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.atlas-label-a { top: 21%; left: 18%; }
.atlas-label-b { top: 43%; right: 13%; }
.atlas-label-c { right: 34%; bottom: 18%; }
.atlas-label-d { left: 30%; bottom: 31%; }


/* Chinese hero typography tuning */
.landing-body.is-zh .landing-hero h1 {
  max-width: 13ch;
  font-size: clamp(3.2rem, 5vw, 5.7rem);
  line-height: 0.92;
}


/* Final Chinese hero line-fit */
.landing-body.is-zh .landing-hero h1 {
  width: 100%;
  max-width: none;
}

@media (max-width: 640px) {
  .landing-body.is-zh .landing-hero h1 {
    max-width: none;
    font-size: clamp(2.35rem, 10.5vw, 3.7rem);
    line-height: 1;
  }
}
