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