:root {
  --bg: #f2efe8;
  --bg-soft: #fbfaf7;
  --bg-dark: #12283b;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --surface-dark: rgba(9, 16, 25, 0.78);
  --stroke: rgba(23, 57, 92, 0.14);
  --stroke-strong: rgba(23, 57, 92, 0.24);
  --text: #182431;
  --text-soft: #506173;
  --text-invert: #eef7fb;
  --accent: #d97706;
  --accent-2: #17395c;
  --accent-3: #0f766e;
  --shadow: 0 18px 50px rgba(24, 36, 49, 0.14);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1180px;
  --font-sans: "Manrope", sans-serif;
  --font-serif: "Cormorant Garamond", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(217, 119, 6, 0.08), transparent 28rem),
    radial-gradient(circle at 18% 72%, rgba(23, 57, 92, 0.08), transparent 26rem),
    linear-gradient(180deg, #f7f4ed 0%, var(--bg) 100%);
  line-height: 1.6;
}

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

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

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

pre {
  margin: 0;
}

.container {
  width: min(var(--container), calc(100vw - 2rem));
  margin: 0 auto;
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 1000;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(18px);
  background: rgba(15, 28, 41, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.site-nav.is-scrolled {
  background: rgba(10, 22, 34, 0.97);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 36px rgba(9, 16, 25, 0.26);
}

.nav-shell {
  width: min(var(--container), calc(100vw - 2rem));
  margin: 0 auto;
  padding: 0.85rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), #f4a62d);
  color: #1b2530;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 30px rgba(217, 119, 6, 0.28);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 0.97rem;
  color: rgba(255, 255, 255, 0.94);
}

.brand-copy small {
  color: rgba(255, 255, 255, 0.68);
}

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

.nav-links a {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
  transition: color 180ms ease, background 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-links a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.nav-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.25rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 1.15rem;
  height: 2px;
  background: #fff;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 5.8rem 0 4rem;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(18, 40, 59, 0.96) 0%, rgba(23, 57, 92, 0.92) 52%, rgba(15, 118, 110, 0.84) 100%);
  clip-path: ellipse(140% 85% at 50% 0%);
}

.hero::before,
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
  gap: 2rem;
  align-items: start;
  z-index: 1;
}

.hero-copy,
.hero-panel {
  position: relative;
  color: var(--text-invert);
}

.eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
}

.eyebrow.accent {
  background: rgba(243, 181, 98, 0.18);
  color: #ffe4b8;
}

.researcher-ribbon {
  max-width: 36rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 42px rgba(9, 16, 25, 0.2);
  margin-bottom: 1.6rem;
}

.researcher-tag,
.section-kicker {
  display: inline-block;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.researcher-ribbon strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.05rem;
}

.researcher-ribbon p {
  margin: 0.45rem 0 0;
  color: rgba(238, 247, 251, 0.82);
}

.hero h1,
.section-heading h2,
.page-hero h1,
.poster-title {
  margin: 0;
  font-family: var(--font-serif);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.hero h1 {
  max-width: 12.8ch;
  font-size: clamp(2.6rem, 6vw, 5rem);
}

.hero-summary {
  max-width: 43rem;
  margin: 1.3rem 0 0;
  font-size: 1.08rem;
  color: rgba(238, 247, 251, 0.84);
}

.hero-actions,
.profile-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-actions {
  margin-top: 1.7rem;
  align-items: center;
}

.profile-pills {
  margin-top: 1.25rem;
}

.profile-pills a {
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(12, 22, 34, 0.28);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

.profile-pills a:hover,
.profile-pills a:focus-visible {
  background: rgba(12, 22, 34, 0.44);
}

.hero-engagement-shell {
  margin-top: 1.6rem;
  padding: 1.1rem;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(145deg, rgba(8, 15, 24, 0.18), rgba(255, 255, 255, 0.06));
  box-shadow: 0 22px 52px rgba(9, 16, 25, 0.22);
}

.hero-engagement-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hero-engagement-kicker,
.hero-engagement-note {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-engagement-kicker {
  padding: 0.42rem 0.72rem;
  background: rgba(255, 225, 174, 0.14);
  color: #fff0c4;
}

.hero-engagement-intro p {
  margin: 0.55rem 0 0;
  color: rgba(248, 252, 255, 0.92);
  font-size: 0.97rem;
}

.hero-engagement-note {
  padding: 0.45rem 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff3d1;
  background: rgba(9, 16, 25, 0.22);
}

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

.hero-engagement-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: 0.85rem;
  min-height: 215px;
  padding: 1.15rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: 0 20px 44px rgba(9, 16, 25, 0.24);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.hero-engagement-card::before {
  content: "";
  position: absolute;
  inset: -22%;
  z-index: -2;
  background: radial-gradient(circle at var(--spotlight-x, 50%) var(--spotlight-y, 30%), rgba(255, 244, 214, 0.14), transparent 34%);
  opacity: 0.6;
  transition: opacity 180ms ease;
}

.hero-engagement-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.22;
}

.hero-engagement-story {
  background: linear-gradient(145deg, #17395c, #214a70);
}

.hero-engagement-results {
  background: linear-gradient(145deg, #0f766e, #165b73);
}

.hero-engagement-assets {
  background: linear-gradient(145deg, #7a4208, #c16e10);
}

.hero-engagement-card:hover,
.hero-engagement-card:focus-visible {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(255, 225, 174, 0.54);
  box-shadow: 0 26px 56px rgba(9, 16, 25, 0.3);
}

.hero-engagement-top {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.hero-engagement-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff6da;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-engagement-label {
  color: #fff0c4;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
}

.hero-engagement-card strong {
  font-size: 1.06rem;
  line-height: 1.36;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
}

.hero-engagement-card p {
  margin: 0;
  color: rgba(248, 251, 255, 0.94);
  font-size: 0.94rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
}

.hero-engagement-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.35rem;
  color: #fff5de;
  font-size: 0.87rem;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
}

.hero-engagement-arrow {
  font-size: 1.05rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

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

.btn:focus-visible,
.profile-pills a:focus-visible,
.nav-links a:focus-visible,
.hero-engagement-card:focus-visible {
  outline: 2px solid rgba(255, 225, 174, 0.92);
  outline-offset: 2px;
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--accent), #b45309);
  box-shadow: 0 16px 36px rgba(217, 119, 6, 0.26);
}

.btn-secondary {
  color: var(--accent-2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), #f7ebd8);
  border-color: rgba(243, 181, 98, 0.56);
  box-shadow: 0 14px 34px rgba(9, 16, 25, 0.2);
}

.btn-dark {
  color: white;
  background: linear-gradient(135deg, var(--accent-2), #214a70);
  box-shadow: 0 14px 34px rgba(23, 57, 92, 0.28);
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
  box-shadow: none;
}

.hero-panel {
  display: grid;
  gap: 1rem;
}

.author-spotlight,
.security-card,
.policy-card,
.resource-card,
.profile-card {
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  padding: 1.4rem;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.author-spotlight {
  color: var(--text-invert);
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.07));
}

.author-spotlight-tag,
.resource-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 225, 174, 0.14);
  color: #ffe1ae;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.author-spotlight h2 {
  margin: 0.7rem 0 0.5rem;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.author-spotlight p {
  margin: 0 0 1rem;
  color: rgba(238, 247, 251, 0.82);
}

.paper-preview-card,
.metric-stack,
.card,
.callout-card,
.visual-card,
.plot-card,
.mini-card,
.figure-card,
.notice-panel,
.metric-banner,
.faq-item,
.report-figure,
.poster-panel,
.page-hero-panel {
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.paper-preview-card,
.card,
.callout-card,
.visual-card,
.plot-card,
.mini-card,
.notice-panel,
.metric-banner,
.faq-item,
.report-figure,
.poster-panel,
.page-hero-panel {
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.paper-preview-card {
  padding: 1rem;
}

.paper-preview-card img {
  width: 100%;
  border-radius: calc(var(--radius-lg) - 10px);
}

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

.metric-tile {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.metric-tile span,
.metric-banner span {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(238, 247, 251, 0.72);
}

.metric-tile strong {
  display: block;
  margin-top: 0.3rem;
  font-size: 1.65rem;
}

.metric-tile small {
  color: rgba(238, 247, 251, 0.78);
}

.section {
  position: relative;
  padding: 5.6rem 0;
}

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

.section-dark {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #102430 0%, #123543 50%, #0f2c37 100%);
}

.section-heading {
  max-width: 48rem;
  margin-bottom: 2rem;
}

.section-kicker {
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.section-heading h2,
.page-hero h1,
.poster-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.section-heading p,
.card p,
.callout-card p,
.plot-note,
.notice-panel p,
.page-hero p,
.poster-panel p,
.figure-card p,
.video-layout p,
.site-footer p {
  color: var(--text-soft);
}

.section-heading p {
  max-width: 44rem;
  font-size: 1.02rem;
}

.section-heading.invert,
.section-dark .section-kicker,
.section-dark h2,
.section-dark .section-heading p {
  color: var(--text-invert);
}

.section-dark .section-kicker {
  color: #9adccf;
}

.card-grid,
.analytics-grid,
.figure-gallery,
.faq-grid,
.metric-stack,
.chart-row,
.experiment-grid,
.report-grid,
.poster-grid {
  display: grid;
  gap: 1.2rem;
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card,
.callout-card,
.visual-card,
.plot-card,
.mini-card,
.notice-panel,
.metric-banner,
.figure-card,
.report-figure,
.poster-panel,
.page-hero-panel {
  padding: 1.4rem;
}

.card h3,
.callout-card h3,
.visual-header h3,
.plot-heading h3,
.figure-card h3,
.poster-panel h3,
.page-hero-panel h3,
.security-card h3,
.policy-card h3,
.resource-card h3,
.profile-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
}

.card h3,
.callout-card h3,
.visual-header h3,
.plot-heading h3,
.figure-card h3,
.poster-panel h3,
.page-hero-panel h3,
.security-card h3,
.policy-card h3,
.resource-card h3,
.profile-card h3,
.metric-banner strong,
.footer-title {
  font-weight: 800;
}

.accent-card {
  background:
    linear-gradient(160deg, rgba(15, 118, 110, 0.09), rgba(217, 119, 6, 0.08)),
    var(--surface);
}

.split-panel,
.framework-layout,
.video-layout,
.page-hero-grid {
  display: grid;
  gap: 1.2rem;
  align-items: start;
}

.split-panel {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  margin-top: 1.6rem;
}

.framework-layout {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
}

.visual-header,
.plot-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.9rem;
  margin-bottom: 0.75rem;
}

.visual-header span,
.plot-heading span {
  color: var(--text-soft);
  font-size: 0.88rem;
}

.equation-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.equation-chip,
.pill-btn {
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
}

.equation-chip {
  background: rgba(15, 118, 110, 0.08);
  color: var(--accent);
}

.step-list,
.list-tight,
.link-stack {
  margin: 0;
  padding-left: 1.1rem;
}

.step-list li,
.list-tight li {
  margin: 0.4rem 0;
}

.mini-card {
  text-align: left;
}

.mini-card strong {
  display: block;
  margin-bottom: 0.35rem;
}

.card:hover,
.callout-card:hover,
.visual-card:hover,
.plot-card:hover,
.mini-card:hover,
.notice-panel:hover,
.metric-banner:hover,
.figure-card:hover,
.report-figure:hover,
.poster-panel:hover,
.page-hero-panel:hover,
.security-card:hover,
.policy-card:hover,
.resource-card:hover,
.profile-card:hover {
  transform: translateY(-4px);
  border-color: rgba(23, 57, 92, 0.22);
  box-shadow: 0 24px 52px rgba(24, 36, 49, 0.16);
}

.experiment-grid {
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
}

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

.stats-table th,
.stats-table td {
  padding: 0.85rem 0.95rem;
  border-bottom: 1px solid rgba(16, 36, 48, 0.08);
  vertical-align: top;
}

.stats-table th {
  text-align: left;
  color: var(--text);
  font-size: 0.92rem;
}

.stats-table td {
  color: var(--text-soft);
}

.stats-table.compact th,
.stats-table.compact td {
  padding: 0.75rem 0.7rem;
  font-size: 0.94rem;
}

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

.notice-panel ul {
  margin: 0;
}

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

.plot-card {
  background: rgba(255, 255, 255, 0.94);
}

.plot-card.light {
  background: rgba(255, 255, 255, 0.94);
}

.plot-surface {
  min-height: 340px;
  border-radius: calc(var(--radius-lg) - 8px);
  overflow: hidden;
}

.plot-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}

.pill-btn {
  border: 1px solid rgba(16, 36, 48, 0.14);
  background: rgba(16, 36, 48, 0.05);
  color: var(--text);
  cursor: pointer;
}

.pill-btn.active {
  background: var(--accent);
  color: white;
  border-color: transparent;
}

.metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.2rem;
}

.metric-banner {
  background:
    linear-gradient(155deg, rgba(15, 118, 110, 0.08), rgba(217, 119, 6, 0.08)),
    rgba(255, 255, 255, 0.9);
}

.metric-banner span {
  color: var(--text-soft);
}

.metric-banner strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.9rem;
}

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

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

.figure-card {
  display: grid;
  gap: 1rem;
}

.figure-card img,
.report-figure img,
.poster-panel img {
  width: 100%;
  border-radius: calc(var(--radius-lg) - 10px);
}

.field-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.select-control {
  width: 100%;
  min-height: 3rem;
  padding: 0.8rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--stroke-strong);
  background: rgba(255, 255, 255, 0.9);
}

.task-explorer {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(16, 36, 48, 0.05);
}

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

.task-fact {
  padding: 0.9rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
}

.task-fact span {
  display: block;
  color: var(--text-soft);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.task-fact strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.12rem;
}

.video-layout {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background: rgba(16, 36, 48, 0.18);
  min-height: 22rem;
}

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

.link-stack {
  padding-left: 0;
  list-style: none;
}

.link-stack a {
  display: block;
  padding: 0.55rem 0;
  color: var(--accent-2);
  font-weight: 700;
}

.citation-block {
  padding: 1rem;
  min-height: 10rem;
  border-radius: 18px;
  background: rgba(16, 36, 48, 0.92);
  color: #dcf5ef;
  overflow-x: auto;
  white-space: pre-wrap;
}

.faq-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.2rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-item p {
  margin-bottom: 0;
}

.site-footer {
  padding: 2rem 0 2.8rem;
  background: #12283b;
  color: rgba(238, 247, 251, 0.84);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-title {
  margin: 0 0 0.3rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: #ffe1ae;
  font-weight: 700;
}

.copyright-bar {
  width: min(var(--container), calc(100vw - 2rem));
  margin: 1.1rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
}

.security-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  align-items: start;
}

.security-actions {
  margin-top: 1.2rem;
}

.resource-grid,
.profile-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 1.2rem;
}

.resource-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.8rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.72rem;
  border-radius: 999px;
  background: rgba(23, 57, 92, 0.08);
  color: var(--accent-2);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

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

.policy-list li {
  margin: 0.45rem 0;
  color: var(--text-soft);
}

.policy-note {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(217, 119, 6, 0.18);
  background: #fff8eb;
  color: #8f4f07;
  font-weight: 700;
}

.resource-card p,
.profile-card p {
  color: var(--text-soft);
}

.resource-card a,
.profile-card a {
  color: var(--accent-2);
  font-weight: 700;
  word-break: break-word;
}

.compact-profile-pills {
  margin-top: 1rem;
}

.compact-profile-pills a {
  padding: 0.5rem 0.78rem;
  font-size: 0.82rem;
}

.poster-panel .profile-pills a {
  background: rgba(23, 57, 92, 0.08);
  border-color: rgba(23, 57, 92, 0.14);
  color: var(--accent-2);
}

.page-shell {
  min-height: 100vh;
}

.page-hero {
  position: relative;
  padding: 4.6rem 0 2.4rem;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(18, 40, 59, 0.96), rgba(23, 57, 92, 0.92));
  clip-path: ellipse(150% 88% at 50% 0%);
}

.page-hero-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
}

.page-hero,
.page-hero h1,
.page-hero p,
.page-hero a,
.page-hero li {
  color: var(--text-invert);
}

.page-hero-panel {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.page-hero .section-kicker,
.page-hero .page-hero-panel h3 {
  color: #9adccf;
}

.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

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

.report-figure {
  display: grid;
  gap: 0.9rem;
}

.poster-page {
  background:
    radial-gradient(circle at top left, rgba(243, 181, 98, 0.16), transparent 22%),
    radial-gradient(circle at top right, rgba(23, 57, 92, 0.12), transparent 25%),
    linear-gradient(180deg, #f6f2e8, #eef4f3);
}

.poster-hero {
  padding: 4rem 0 2.4rem;
}

.poster-title {
  max-width: 12ch;
}

.poster-subtitle {
  max-width: 45rem;
  color: var(--text-soft);
}

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

.poster-panel strong {
  display: inline-block;
  margin-bottom: 0.45rem;
}

body.gate-locked {
  overflow: hidden;
}

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

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

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

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

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

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

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

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

.download-step {
  padding: 18px;
  border: 1px solid rgba(216, 207, 191, 0.84);
  border-radius: 20px;
}

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

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

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

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

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

.gate-error {
  margin-top: 10px;
  color: #b42318;
  font-size: 0.85rem;
  font-weight: 800;
}

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

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

.email-template {
  margin-top: 12px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(216, 207, 191, 0.84);
  background: #f8f4ea;
  color: var(--text-soft);
  white-space: pre-wrap;
}

.copy-btn {
  margin-top: 12px;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  background: rgba(23, 57, 92, 0.08);
  color: var(--accent-2);
  font-weight: 800;
  cursor: pointer;
}

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

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

@media (max-width: 1080px) {
  .hero-grid,
  .framework-layout,
  .video-layout,
  .page-hero-grid,
  .split-panel,
  .security-grid,
  .experiment-grid,
  .chart-row {
    grid-template-columns: 1fr;
  }

  .three-up,
  .four-up,
  .analytics-grid,
  .report-grid,
  .poster-grid,
  .resource-grid,
  .profile-grid,
  .figure-gallery,
  .hero-engagement-grid,
  .metrics-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 1rem;
    left: 1rem;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 22px;
    background: rgba(10, 22, 34, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    padding-top: 4.5rem;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-engagement-intro {
    flex-direction: column;
    align-items: flex-start;
  }

  .metric-stack,
  .three-up,
  .four-up,
  .analytics-grid,
  .report-grid,
  .poster-grid,
  .resource-grid,
  .profile-grid,
  .figure-gallery,
  .hero-engagement-grid,
  .metrics-bar,
  .task-explorer-grid {
    grid-template-columns: 1fr;
  }

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