:root {
  --bg: #0a0b0f;
  --bg-soft: #11151b;
  --paper: #f3efe7;
  --paper-2: #ece6da;
  --paper-3: #ddd5c6;
  --text: #f7f7f5;
  --text-soft: #d7dadd;
  --ink: #10131a;
  --ink-soft: #364152;
  --muted: #9aa4b2;
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(148, 163, 184, 0.26);
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.08);
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.12);
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.06), transparent 26%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.035), transparent 18%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.03), transparent 40%),
    linear-gradient(180deg, #090a0e 0%, #11141a 100%);
  color: var(--text);
  font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at center, transparent 48%, rgba(0, 0, 0, 0.22) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 26%);
  opacity: 0.75;
}

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

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

.page-shell {
  width: min(var(--max), calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 48px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 18px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(17, 20, 26, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
  background: #0a0a0a;
}

.brand-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-text strong {
  font-size: 1rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav a {
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.035);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, color 0.18s ease;
  font-size: 0.92rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
  border-color: rgba(59, 130, 246, 0.28);
  background: rgba(59, 130, 246, 0.12);
  transform: translateY(-1px);
}

.page {
  display: none;
  padding: 8px 0 30px;
  animation: fadeIn 0.24s ease both;
  width: min(980px, 100%);
  margin: 0 auto;
}

.page.is-active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero,
.section,
.page-head {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero {
  display: block;
  padding: 0 0 18px;
  overflow: visible;
}

.hero-copy {
  display: grid;
  gap: 18px;
}

.hero-copy h1,
.page-head h1,
.section-head h2,
.story-copy h3,
.legal-card h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Iowan", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.25rem, 4.9vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.03em;
  max-width: 12ch;
  text-wrap: balance;
}

.lede {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.78;
  font-size: clamp(1.02rem, 2vw, 1.16rem);
  max-width: 62ch;
}

.kicker {
  margin: 0;
  color: #c7d0dc;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.77rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.button {
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #dbeafe;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.18s ease;
}

.button:hover {
  color: #ffffff;
  transform: none;
  background: transparent;
}

.button-primary {
  color: #ffffff;
  font-weight: 700;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.tag {
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: #aeb8c7;
  font-size: 0.88rem;
}

.hero-aside {
  display: none;
}

.panel,
.card,
.feature-card,
.row-card,
.link-card,
.gallery figure,
.prompt-box pre,
.internal {
  border: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
}

.panel {
  padding: 18px;
  border-radius: var(--radius-lg);
}

.panel-label {
  margin: 0 0 10px;
  color: #8ea0b6;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.74rem;
}

.section,
.page-head {
  padding: 0;
}

.section {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.page-head {
  margin-bottom: 18px;
  padding-bottom: 12px;
}

.page-head .lede {
  margin-top: 14px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 5px 0 0;
  font-size: clamp(1.24rem, 2.2vw, 1.9rem);
  line-height: 1.12;
  text-wrap: balance;
}

.section-note {
  margin: 0;
  color: #b6c0cd;
  line-height: 1.7;
  max-width: 58ch;
}

.editorial-flow {
  padding-top: 16px;
}

.article-flow {
  max-width: 760px;
  display: grid;
  gap: 18px;
  font-size: 1.04rem;
  line-height: 1.9;
  color: #d7dadd;
}

.article-flow p {
  margin: 0;
}

.article-flow strong {
  color: #f8fafc;
  font-weight: 700;
}

.article-intro {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  padding: 0;
  max-width: 760px;
}

.article-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.article-kicker .pill {
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  background: rgba(59, 130, 246, 0.08);
  color: #dbeafe;
  font-size: 0.82rem;
}

.article-lead {
  max-width: 70ch;
  color: #d9dee7;
  line-height: 1.85;
  font-size: 1.03rem;
}

.tool-strip {
  display: grid;
  gap: 14px;
}

.tool-chip {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.tool-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.18), rgba(17, 24, 39, 0.94));
  color: #f8fafc;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.tool-chip strong {
  display: block;
  color: #f8fafc;
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.tool-chip span {
  color: #b5bfcc;
  line-height: 1.45;
  font-size: 0.86rem;
}

.story-flow {
  display: grid;
  gap: 24px;
  max-width: 860px;
}

.story-block {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 16px;
  align-items: start;
  padding: 0;
  border: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  padding-top: 24px;
}

.story-block.is-reverse {
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
}

.story-copy {
  display: grid;
  gap: 12px;
}

.story-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  background: rgba(59, 130, 246, 0.08);
  color: #dbeafe;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-copy h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 1.18rem;
  line-height: 1.2;
}

.story-copy p {
  margin: 0;
  color: #b5bfcc;
  line-height: 1.8;
}

.story-copy ul {
  margin: 0;
  padding-left: 18px;
  color: #cbd5e1;
  line-height: 1.75;
}

.story-media {
  margin: 0;
  display: grid;
  gap: 10px;
}

.story-media img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: #0b0b0b;
  object-fit: cover;
}

.story-media figcaption {
  color: #91a0b3;
  font-size: 0.86rem;
  line-height: 1.5;
}

.story-media.is-tall img {
  aspect-ratio: 4 / 5;
}

.story-media.is-wide img {
  aspect-ratio: 16 / 10;
}

.source-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.source-bar a {
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: #f8fafc;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.source-bar a:hover {
  background: transparent;
}

.external-link {
  position: relative;
  padding-right: 1.3em;
}

.external-link::after {
  content: "↗";
  position: absolute;
  right: 0.45em;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.82em;
  line-height: 1;
  opacity: 0.85;
}

.grid {
  display: grid;
  gap: 14px;
}

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

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

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

.card,
.feature-card,
.row-card,
.link-card,
.gallery figure {
  border-radius: var(--radius-lg);
  padding: 19px;
}

.card h3,
.feature-card h3,
.row-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.card p,
.feature-card p,
.row-card p,
.link-card span,
.gallery figcaption,
.footer-note {
  margin: 0;
  color: #b5bfcc;
  line-height: 1.72;
}

.feature-card {
  display: grid;
  gap: 12px;
}

.feature-kicker {
  margin: 0;
  color: #90a0b6;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
}

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

.feature-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: #e5e7eb;
  font-size: 0.84rem;
}

.stack {
  display: grid;
  gap: 12px;
}

.row-card {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.row-index {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.2), rgba(17, 24, 39, 0.96));
  color: #f8fafc;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.source-list {
  display: grid;
  gap: 10px;
  max-width: 760px;
}

.source-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.source-link strong {
  color: #f8fafc;
  font-size: 1rem;
}

.source-link span {
  color: #b5bfcc;
  line-height: 1.7;
}

.source-link:hover {
  border-bottom-color: rgba(59, 130, 246, 0.28);
}

.source-note {
  margin: 12px 0 0;
  color: #91a0b3;
  line-height: 1.7;
  max-width: 72ch;
}

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

.gallery figure {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  background: #0b0b0b;
  border: 1px solid rgba(148, 163, 184, 0.08);
}

.gallery figcaption {
  font-size: 0.86rem;
}

.prompt-box pre {
  margin: 0;
  padding: 0;
  border-radius: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.94rem;
  line-height: 1.7;
  color: #e5e7eb;
  background: transparent;
}

.footer {
  margin-top: auto;
  padding-top: 30px;
}

.site-footer {
  display: grid;
  gap: 20px;
  padding-top: 10px;
}

.footer-card,
.legal-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.footer-card {
  padding: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding-top: 18px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.footer-top strong {
  display: block;
  font-size: 1.02rem;
  margin-bottom: 4px;
}

.footer-top p {
  margin: 0;
  color: #b8c2cf;
  line-height: 1.7;
}

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

.footer-links a {
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: #f8fafc;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links a:hover {
  background: transparent;
}

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

.legal-card {
  padding: 0;
}

.legal-card h2 {
  margin: 0 0 10px;
  font-size: 1.02rem;
  color: #f8fafc;
}

.legal-card p,
.legal-card li {
  margin: 0;
  color: #b5bfcc;
  line-height: 1.72;
}

.legal-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.internal {
  border-radius: 0;
  padding: 0;
  overflow: hidden;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  margin-top: 12px;
}

.internal summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 700;
  color: #f8fafc;
  background: transparent;
}

.internal summary::-webkit-details-marker {
  display: none;
}

.internal-body {
  padding: 6px 0 0;
  background: transparent;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.mini-item {
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
}

.mini-item strong {
  display: block;
  margin-bottom: 6px;
  color: #f8fafc;
}

.mini-item span {
  color: #bcc7d6;
  line-height: 1.6;
}

.footer-note {
  max-width: 74ch;
}

.hero-copy,
.section-head,
.page-head,
.panel,
.card,
.feature-card,
.row-card,
.link-card,
.internal-body {
  text-wrap: pretty;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 55%, rgba(59, 130, 246, 0.04) 58%, transparent 62% 100%);
  opacity: 0.6;
}

.hero-aside .panel {
  background: transparent;
}

.panel-label {
  letter-spacing: 0.14em;
}

.section {
  position: relative;
}

.page-head {
  position: relative;
}

.section::before,
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.text-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 4px;
}

.text-links a {
  color: #f8fafc;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-links a:hover {
  color: #dbeafe;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  max-width: none;
}

.admin-panel {
  display: grid;
  gap: 18px;
  max-width: none;
}

.metric-list {
  display: grid;
  gap: 14px;
}

.metric-list-spaced {
  margin-top: 18px;
}

.metric-group-label {
  color: #f8fafc;
}

.metric-group-label-spaced {
  margin-top: 8px;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.metric-row strong {
  color: #f8fafc;
}

.metric-row span {
  color: #b5bfcc;
}

.admin-links {
  display: grid;
  gap: 10px;
  max-width: 760px;
}

.admin-links strong {
  color: #f8fafc;
}

.admin-links a {
  color: #dbeafe;
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-word;
}

.admin-copy-note {
  margin-top: 2px;
  color: #91a0b3;
}

.admin-form {
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.admin-form label {
  display: grid;
  gap: 6px;
  color: #f8fafc;
  font-weight: 600;
}

.admin-fieldset {
  display: grid;
  gap: 14px;
  margin: 8px 0 0;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
}

.admin-fieldset legend {
  padding: 0 8px;
  color: #f8fafc;
  font-weight: 700;
}

.admin-form input,
.admin-form textarea {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: #f8fafc;
  padding: 12px 14px;
  font: inherit;
}

.admin-form input:focus,
.admin-form textarea:focus {
  outline: 2px solid rgba(59, 130, 246, 0.22);
  border-color: rgba(59, 130, 246, 0.34);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

@media (max-width: 1080px) {
  .hero,
  .grid-4,
  .grid-3,
  .grid-2,
  .gallery,
  .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .story-block,
  .story-block.is-reverse {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .page-shell {
    width: min(var(--max), calc(100% - 16px));
    padding-top: 12px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 22px;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero,
  .section,
  .page-head,
  .internal-body,
  .internal summary {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero,
  .section,
  .page-head {
    border-radius: 22px;
  }

  .grid-4,
  .grid-3,
  .grid-2,
  .gallery,
  .mini-grid,
  .tool-strip {
    grid-template-columns: 1fr;
  }

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

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

  .article-intro,
  .story-block,
  .footer-card,
  .legal-card {
    padding: 18px;
  }

  .row-card {
    grid-template-columns: 1fr;
  }

  .row-index {
    width: 54px;
    height: 54px;
  }

  .hero-copy h1,
  .page-head h1 {
    max-width: none;
  }
}

/* Editorial refinement */
:root {
  --bg: #090a0d;
  --bg-soft: #111319;
  --surface: rgba(20, 23, 30, 0.74);
  --text: #f4f3ef;
  --text-soft: #d4d7dc;
  --muted: #a8afb9;
  --line: rgba(218, 223, 231, 0.14);
  --line-strong: rgba(218, 223, 231, 0.24);
  --accent: #68a2ff;
  --accent-soft: rgba(77, 139, 236, 0.11);
  --page-gutter: clamp(24px, 4vw, 52px);
  --measure: 68ch;
  --max: 1280px;
}

body {
  background:
    radial-gradient(circle at 14% -8%, rgba(67, 117, 190, 0.1), transparent 30rem),
    linear-gradient(180deg, #090a0d 0%, #0c0e13 52%, #101219 100%);
}

body::before {
  background:
    linear-gradient(90deg, transparent 0 49.95%, rgba(255, 255, 255, 0.014) 50%, transparent 50.05%),
    radial-gradient(circle at 50% 16%, transparent 30%, rgba(0, 0, 0, 0.2) 100%);
  opacity: 0.8;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #8eb9ff;
  outline-offset: 4px;
}

.page-shell {
  width: min(var(--max), calc(100% - (var(--page-gutter) * 2)));
  padding: 0 0 56px;
}

.topbar {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  min-height: 74px;
  padding: 12px 0;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.brand {
  gap: 11px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
}

.brand-text {
  gap: 1px;
}

.brand-text strong {
  font-size: 0.95rem;
  letter-spacing: -0.025em;
}

.brand-text span {
  max-width: 30ch;
  color: var(--muted);
  font-size: 0.76rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  justify-self: end;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  padding: 8px 0 8px 12px;
  font: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.nav-toggle-mark,
.nav-toggle-mark::before {
  display: block;
  width: 17px;
  height: 1px;
  background: currentColor;
  transition: transform 0.2s ease;
}

.nav-toggle-mark {
  position: relative;
}

.nav-toggle-mark::before {
  content: "";
  position: absolute;
  top: 5px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-mark {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-mark::before {
  transform: translateY(-5px) rotate(-90deg);
}

.nav {
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 2vw, 28px);
}

.nav a {
  position: relative;
  padding: 9px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #b8bec8;
  font-size: 0.81rem;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

.nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
  border: 0;
  background: transparent;
  transform: none;
}

.nav a[aria-current="page"]::after,
.nav a:hover::after {
  transform: scaleX(1);
}

.page {
  width: min(1080px, 100%);
  padding: 0 0 clamp(64px, 8vw, 112px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(320px, 0.74fr);
  gap: clamp(42px, 6vw, 86px);
  align-items: center;
  padding: clamp(58px, 8vw, 104px) 0 clamp(54px, 7vw, 92px);
  border-bottom: 1px solid var(--line-strong);
}

.hero::after {
  inset: auto -6vw 7% auto;
  width: min(32vw, 380px);
  height: min(32vw, 380px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(72, 133, 225, 0.055), transparent 68%);
  opacity: 1;
}

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

.hero-meta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  max-width: 820px;
  margin-bottom: clamp(24px, 3vw, 38px);
}

.issue-label {
  margin: 0;
  color: #969eaa;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.hero-copy h1,
.page-head h1 {
  max-width: 12.5ch;
  color: var(--text);
  font-size: clamp(3rem, 5.8vw, 5.35rem);
  font-weight: 500;
  line-height: 0.97;
  letter-spacing: -0.048em;
}

.hero-copy .lede {
  max-width: 61ch;
  margin-top: clamp(28px, 3.5vw, 42px);
}

.lede {
  color: var(--text-soft);
  font-size: clamp(1.03rem, 1.55vw, 1.17rem);
  line-height: 1.72;
}

.kicker {
  color: #c8cdd5;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.17em;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px 24px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: #cbd4df;
  font-size: 0.91rem;
  font-weight: 600;
  text-decoration-color: rgba(203, 212, 223, 0.5);
  text-underline-offset: 5px;
}

.button-primary {
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 3px;
  background: #f2f1ed;
  color: #111319;
  text-decoration: none;
}

.button-primary:hover {
  background: #ffffff;
  color: #090a0d;
}

.tag-row {
  gap: 0;
  margin-top: 34px;
}

.tag {
  display: inline-flex;
  align-items: center;
  color: #9fa7b2;
  font-size: 0.76rem;
}

.tag:not(:last-child)::after {
  content: "/";
  margin: 0 11px;
  color: #555c67;
}

.hero-index {
  position: relative;
  z-index: 1;
  display: grid;
  align-self: end;
  padding-left: 24px;
  border-left: 1px solid var(--line-strong);
}

.hero-index > .kicker {
  margin-bottom: 8px;
}

.hero-index a {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 3px 10px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.hero-index a:last-child {
  border-bottom: 0;
}

.hero-index a > span {
  grid-row: 1 / span 2;
  color: #7e8794;
  font-family: "Iowan Old Style", "Iowan", Georgia, serif;
  font-size: 0.84rem;
}

.hero-index strong {
  color: #ecece9;
  font-family: "Iowan Old Style", "Iowan", Georgia, serif;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.2;
}

.hero-index small {
  color: #9ea6b1;
  font-size: 0.76rem;
  line-height: 1.5;
}

.hero-index a:hover strong {
  color: #ffffff;
}

.home-hero {
  min-height: calc(100vh - 74px);
  isolation: isolate;
  overflow: hidden;
  padding-right: clamp(22px, 4vw, 54px);
  padding-left: clamp(22px, 4vw, 54px);
  border: 1px solid rgba(218, 223, 231, 0.14);
  border-radius: 18px;
  background: #05070b;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.32);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("Bilder/hero-background-ai.png");
  background-position: 60% center;
  background-size: cover;
  opacity: 0.76;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  width: auto;
  height: auto;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(5, 7, 11, 0.98) 0%, rgba(5, 7, 11, 0.88) 34%, rgba(5, 7, 11, 0.32) 72%, rgba(5, 7, 11, 0.64) 100%),
    linear-gradient(180deg, rgba(5, 7, 11, 0.22), rgba(5, 7, 11, 0.72));
  opacity: 1;
}

.hero-showcase {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(132px, 0.48fr);
  gap: clamp(14px, 2vw, 22px);
  align-items: end;
}

.hero-feature {
  position: relative;
  display: grid;
  min-height: clamp(360px, 43vw, 520px);
  overflow: hidden;
  border: 1px solid rgba(218, 223, 231, 0.2);
  border-radius: 12px;
  background: rgba(5, 6, 9, 0.58);
  box-shadow: 0 28px 78px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
}

.hero-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.82) 100%);
  pointer-events: none;
}

.hero-feature img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  opacity: 0.9;
}

.hero-feature span,
.hero-feature strong {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
}

.hero-feature span {
  bottom: 56px;
  color: #b9c7d8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-feature strong {
  bottom: 20px;
  color: #ffffff;
  font-family: "Iowan Old Style", "Iowan", Georgia, serif;
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  font-weight: 500;
  line-height: 1.08;
}

.hero-feature-secondary {
  min-height: clamp(240px, 30vw, 360px);
  transform: translateY(34px);
}

.hero-pictograms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 610px;
  margin-top: 26px;
}

.pictogram-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 9px 10px;
  border: 1px solid rgba(218, 223, 231, 0.13);
  border-radius: 10px;
  background: rgba(8, 12, 18, 0.58);
  color: #d9e4f2;
  font-size: 0.82rem;
  font-weight: 650;
  backdrop-filter: blur(14px);
}

.pictogram-icon,
.card-icon,
.topic-icon {
  display: inline-grid;
  place-items: center;
  color: #8eb9ff;
}

.pictogram-icon {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(142, 185, 255, 0.22);
  border-radius: 9px;
  background: rgba(60, 130, 246, 0.1);
}

.pictogram-icon svg,
.card-icon svg,
.topic-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-section {
  scroll-margin-top: 24px;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}

.home-card {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.home-card figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(218, 223, 231, 0.14);
  border-radius: 10px;
  background: #050609;
}

.home-card-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(218, 223, 231, 0.14);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(60, 130, 246, 0.14), rgba(255, 255, 255, 0.02)),
    #06080d;
}

.home-card-placeholder .card-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
}

.home-card-placeholder .card-icon svg {
  width: 34px;
  height: 34px;
}

.home-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.home-card:hover img {
  transform: scale(1.035);
}

.home-card span,
.topic-card span {
  color: #96a7bc;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.home-card > span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.card-icon {
  width: 25px;
  height: 25px;
  border-radius: 8px;
  background: rgba(60, 130, 246, 0.1);
}

.card-icon svg {
  width: 15px;
  height: 15px;
}

.home-card strong {
  color: #f6f7f4;
  font-family: "Iowan Old Style", "Iowan", Georgia, serif;
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
  font-weight: 500;
  line-height: 1.1;
}

.home-card p {
  margin: 0;
  color: #bfc6d0;
  line-height: 1.68;
}

.popular-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.popular-item {
  display: grid;
  grid-template-columns: 54px minmax(180px, 0.45fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 42px);
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.popular-item > span {
  color: #6f7d8e;
  font-family: "Iowan Old Style", "Iowan", Georgia, serif;
  font-size: 1.4rem;
}

.popular-item strong {
  display: block;
  color: #f6f7f4;
  font-family: "Iowan Old Style", "Iowan", Georgia, serif;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 500;
  line-height: 1.16;
}

.popular-item small {
  display: block;
  margin-top: 6px;
  color: #8fa1b8;
}

.popular-item p {
  margin: 0;
  color: #bfc6d0;
  line-height: 1.66;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
}

.topic-card {
  display: grid;
  gap: 16px;
  align-content: start;
  min-height: 190px;
  padding: clamp(22px, 3vw, 30px);
  background: rgba(13, 16, 22, 0.92);
}

.topic-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 4px;
  border: 1px solid rgba(142, 185, 255, 0.22);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(60, 130, 246, 0.16), rgba(255, 255, 255, 0.03));
}

.topic-card strong {
  color: #f4f3ef;
  font-family: "Iowan Old Style", "Iowan", Georgia, serif;
  font-size: clamp(1.25rem, 2.1vw, 1.7rem);
  font-weight: 500;
  line-height: 1.18;
}

.topic-card:hover {
  background: rgba(20, 27, 38, 0.94);
}

.section,
.page-head {
  border: 0;
}

.section::before,
.page-head::before {
  display: none;
}

.editorial-flow {
  margin-top: 0;
  padding-top: clamp(66px, 9vw, 116px);
  border-top: 0;
}

.article-flow {
  max-width: 860px;
  gap: 28px;
  color: var(--text-soft);
  font-size: 1.06rem;
  line-height: 1.82;
}

.article-flow > .kicker {
  margin-bottom: 2px;
}

.flow-opening {
  max-width: 49ch;
  color: #ecebe7;
  font-family: "Iowan Old Style", "Iowan", "Palatino Linotype", Georgia, serif;
  font-size: clamp(1.45rem, 2.7vw, 2rem);
  line-height: 1.42;
  letter-spacing: -0.015em;
}

.feature-media {
  width: min(860px, calc(100vw - (var(--page-gutter) * 2)));
  margin: clamp(24px, 4vw, 48px) 0 clamp(18px, 3vw, 30px);
}

.feature-media img {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  border-color: rgba(255, 255, 255, 0.12);
  object-fit: cover;
  object-position: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.story-media figcaption {
  color: #aab1bb;
  font-size: 0.78rem;
  letter-spacing: 0.015em;
  line-height: 1.55;
}

.flow-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(30px, 6vw, 68px);
  margin-top: 10px;
}

.flow-columns p {
  margin: 0;
}

.text-links {
  gap: 14px 28px;
  margin-top: 20px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.text-links a,
.source-bar a,
.footer-links a {
  color: #e5e9ef;
  font-size: 0.9rem;
  text-decoration-color: rgba(229, 233, 239, 0.44);
  text-underline-offset: 5px;
}

.page-head {
  margin: 0;
  padding: clamp(68px, 9vw, 112px) 0 clamp(46px, 6vw, 72px);
  border-bottom: 1px solid var(--line-strong);
}

.page-head h1 {
  margin-top: 26px;
  font-size: clamp(2.9rem, 6vw, 5.15rem);
}

.page-head .lede {
  margin-top: 30px;
}

.article-intro {
  max-width: 860px;
  gap: 24px;
  margin-top: clamp(48px, 7vw, 80px);
}

.article-lead {
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.82;
}

.article-kicker .pill,
.story-number {
  padding: 5px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #aab5c3;
}

.article-kicker .pill:not(:last-child)::after {
  content: "·";
  margin-left: 12px;
  color: #606875;
}

.tool-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

.tool-chip {
  padding: 18px 0;
}

.tool-mark {
  border: 1px solid rgba(112, 158, 231, 0.22);
  border-radius: 50%;
  background: rgba(58, 105, 178, 0.09);
  font-family: "Iowan Old Style", "Iowan", Georgia, serif;
  font-weight: 500;
  overflow: hidden;
}

.tool-mark[data-has-logo="true"] {
  background: rgba(255, 255, 255, 0.94);
}

.tool-mark img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.section {
  margin-top: clamp(60px, 8vw, 96px);
  padding-top: clamp(36px, 5vw, 58px);
  border-top-color: var(--line-strong);
}

.section-head {
  margin-bottom: clamp(26px, 4vw, 42px);
}

.section-head h2 {
  margin-top: 10px;
  color: var(--text);
  font-size: clamp(1.7rem, 3vw, 2.65rem);
  font-weight: 500;
  line-height: 1.08;
}

.section-note {
  color: #b8bec7;
  font-size: 0.92rem;
}

.story-flow {
  max-width: 940px;
  gap: 0;
}

.story-block,
.story-block.is-reverse {
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(40px, 6vw, 70px) 0;
  border-top-color: var(--line);
}

.story-copy {
  gap: 16px;
}

.story-copy h3 {
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  font-weight: 500;
}

.story-copy p,
.story-copy ul {
  color: #c7ccd3;
  line-height: 1.78;
}

.story-media img,
.gallery img {
  border-radius: 8px;
}

.source-link {
  padding: 16px 0;
}

.footer {
  width: min(1180px, 100%);
  margin: clamp(28px, 5vw, 58px) auto 0;
  padding: 0;
}

.site-footer {
  display: grid;
  gap: clamp(26px, 4vw, 40px);
  padding: clamp(34px, 5vw, 58px) clamp(24px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 48%),
    linear-gradient(145deg, rgba(24, 27, 34, 0.82), rgba(15, 17, 23, 0.92));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
}

.footer-card {
  padding: 0 0 clamp(22px, 3vw, 32px);
  border-top: 0;
  border-bottom: 1px solid var(--line);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 44px;
  align-items: flex-start;
}

.footer-brand {
  max-width: 460px;
}

.footer-top strong {
  display: block;
  font-family: "Iowan Old Style", "Iowan", Georgia, serif;
  font-size: clamp(1.38rem, 2vw, 1.72rem);
  font-weight: 500;
  line-height: 1.08;
}

.footer-top p,
.legal-card p,
.legal-card li,
.footer-note,
.mini-item span {
  color: #b9c0c9;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(112px, 1fr));
  gap: 12px 22px;
  min-width: min(100%, 312px);
  justify-items: start;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
}

.legal-grid {
  align-items: start;
  gap: clamp(28px, 6vw, 72px);
}

.legal-card h2 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  font-weight: 500;
}

.legal-card p + p {
  margin-top: 9px;
}

.internal {
  border-top-color: var(--line);
}

.internal summary {
  min-height: 48px;
  padding: 17px 0 0;
}

@media (min-width: 761px) and (max-width: 1080px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 15px 0 12px;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .home-hero {
    min-height: auto;
  }

  .hero-showcase {
    max-width: 680px;
  }

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

  .popular-item {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .popular-item p {
    grid-column: 2;
  }
}

@media (max-width: 760px) {
  :root {
    --page-gutter: 18px;
  }

  .page-shell {
    width: 100%;
    padding: 0 var(--page-gutter) 0;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 68px;
    padding: 14px 0;
    margin: 0;
    border-radius: 0;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
  }

  .brand-text span {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    padding: 12px 0 4px;
    border-top: 1px solid var(--line);
  }

  .topbar[data-nav-open] .nav {
    display: grid;
  }

  .nav a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(218, 223, 231, 0.09);
    font-size: 0.86rem;
  }

  .nav a:nth-child(odd) {
    margin-right: 14px;
  }

  .nav a::after {
    right: auto;
    width: 22px;
  }

  .page {
    padding: 0 0 76px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 48px 0 60px;
    border-radius: 0;
    overflow: hidden;
  }

  .hero::after {
    top: 26%;
    right: -32vw;
    bottom: auto;
    width: 90vw;
    height: 90vw;
  }

  .hero-meta {
    display: grid;
    gap: 9px;
    margin-bottom: 25px;
  }

  .issue-label {
    font-size: 0.7rem;
  }

  .hero-copy h1,
  .page-head h1 {
    max-width: 14ch;
    font-size: clamp(2.55rem, 12.1vw, 3.35rem);
    line-height: 0.99;
    letter-spacing: -0.045em;
  }

  .hero-copy .lede {
    margin-top: 25px;
  }

  .lede {
    max-width: none;
    font-size: 1rem;
    line-height: 1.7;
  }

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

  .hero-actions .button-primary {
    grid-column: 1 / -1;
    justify-content: center;
    width: 100%;
    margin-bottom: 4px;
  }

  .hero-actions .button:not(.button-primary) {
    align-items: flex-start;
    min-height: 44px;
    line-height: 1.35;
  }

  .tag-row {
    margin-top: 26px;
  }

  .tag {
    font-size: 0.72rem;
  }

  .tag:not(:last-child)::after {
    margin: 0 8px;
  }

  .home-hero {
    min-height: auto;
    padding-right: 18px;
    padding-left: 18px;
    border-radius: 16px;
  }

  .home-hero::before {
    background-position: 67% center;
    opacity: 0.58;
  }

  .home-hero::after {
    background:
      linear-gradient(180deg, rgba(5, 7, 11, 0.94) 0%, rgba(5, 7, 11, 0.82) 45%, rgba(5, 7, 11, 0.9) 100%),
      linear-gradient(90deg, rgba(5, 7, 11, 0.88), rgba(5, 7, 11, 0.38));
  }

  .hero-showcase {
    grid-template-columns: 1fr;
    margin-top: 8px;
  }

  .hero-feature,
  .hero-feature-secondary {
    min-height: min(82vw, 430px);
    transform: none;
  }

  .hero-pictograms {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 22px;
  }

  .pictogram-item {
    min-height: 48px;
  }

  .editorial-flow,
  .section,
  .page-head,
  .internal-body,
  .internal summary {
    padding-right: 0;
    padding-left: 0;
  }

  .editorial-flow {
    padding-top: 53px;
  }

  .article-flow {
    gap: 24px;
    font-size: 1rem;
    line-height: 1.8;
  }

  .flow-opening {
    max-width: none;
    font-size: 1.42rem;
    line-height: 1.43;
  }

  .feature-media {
    width: calc(100% + (var(--page-gutter) * 2));
    margin: 18px calc(var(--page-gutter) * -1) 16px;
  }

  .feature-media img {
    aspect-ratio: 1 / 1;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    object-fit: contain;
  }

  .feature-media figcaption {
    padding: 0 var(--page-gutter);
  }

  .flow-columns {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 4px;
  }

  .text-links {
    display: grid;
    gap: 15px;
    margin-top: 12px;
  }

  .page-head {
    padding: 48px 0 52px;
    border-radius: 0;
  }

  .page-head h1 {
    margin-top: 22px;
  }

  .page-head .lede {
    margin-top: 24px;
  }

  .article-intro {
    gap: 20px;
    margin-top: 46px;
    padding: 0;
  }

  .article-kicker {
    gap: 0 12px;
  }

  .tool-strip {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .section {
    margin-top: 58px;
    padding-top: 38px;
    border-radius: 0;
  }

  .section-head {
    gap: 15px;
    margin-bottom: 28px;
  }

  .section-head h2 {
    font-size: 1.8rem;
  }

  .section-note {
    font-size: 0.9rem;
  }

  .home-grid,
  .topic-grid {
    grid-template-columns: 1fr;
  }

  .popular-item {
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: start;
    padding: 20px 0;
  }

  .popular-item p {
    grid-column: 2;
  }

  .topic-card {
    min-height: 150px;
  }

  .story-block,
  .story-block.is-reverse {
    gap: 26px;
    padding: 40px 0;
  }

  .story-block.is-reverse .story-copy {
    order: -1;
  }

  .story-media.is-wide img,
  .story-media.is-tall img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

  .source-link {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .admin-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .footer {
    width: calc(100% + (var(--page-gutter) * 2));
    margin-right: calc(var(--page-gutter) * -1);
    margin-left: calc(var(--page-gutter) * -1);
    margin-top: 12px;
  }

  .site-footer {
    gap: 28px;
    padding: 44px var(--page-gutter) 48px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
  }

  .footer-card,
  .legal-card {
    padding-right: 0;
    padding-left: 0;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    gap: 12px 22px;
  }

  .footer-links a {
    min-height: 36px;
  }

  .legal-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .legal-grid {
    gap: 24px;
  }
}

@media (max-width: 390px) {
  .hero-copy h1,
  .page-head h1 {
    font-size: clamp(2.42rem, 11.7vw, 2.85rem);
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .hero-actions .button-primary {
    grid-column: auto;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Admin analytics */
.admin-workspace {
  display: grid;
  gap: 28px;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.admin-nav a {
  color: #e5e9ef;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: rgba(229, 233, 239, 0.42);
  text-underline-offset: 5px;
}

.admin-panel-wide {
  width: 100%;
}

.analytics-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
}

.analytics-summary article {
  display: grid;
  gap: 10px;
  min-height: 142px;
  padding: clamp(18px, 2.4vw, 26px);
  background: rgba(13, 16, 22, 0.94);
}

.analytics-summary span,
.analytics-summary small,
.analytics-toolbar span,
.analysis-block-head span,
.ranked-row span,
.ranked-row em,
.day-bar small,
.empty-analysis {
  color: #9faab8;
}

.analytics-summary span,
.analysis-block-head span {
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.analytics-summary strong {
  min-width: 0;
  color: #f6f7f4;
  font-family: "Iowan Old Style", "Iowan", Georgia, serif;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 500;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.analytics-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin: 26px 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.analytics-toolbar div {
  display: grid;
  gap: 4px;
}

.analytics-toolbar strong,
.analysis-block-head strong {
  color: #f8fafc;
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 32px);
}

.analysis-block {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: clamp(18px, 2.6vw, 28px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(13, 16, 22, 0.62);
}

.analysis-wide {
  margin-top: clamp(18px, 3vw, 32px);
}

.analysis-block-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}

.ranked-list {
  display: grid;
  gap: 16px;
}

.ranked-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.ranked-row strong {
  display: block;
  min-width: 0;
  margin-bottom: 7px;
  color: #e9edf3;
  font-size: 0.95rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.ranked-row i {
  display: block;
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
}

.ranked-row i::before {
  content: "";
  display: block;
  width: var(--bar-width);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8eb9ff, #e5e9ef);
}

.ranked-row em {
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.day-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(46px, 1fr));
  gap: 10px;
  min-height: 190px;
  align-items: end;
}

.day-bar {
  display: grid;
  gap: 8px;
  min-width: 0;
  text-align: center;
}

.day-bar span {
  align-self: end;
  width: 100%;
  height: var(--bar-height);
  min-height: 8px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, rgba(142, 185, 255, 0.92), rgba(60, 130, 246, 0.26));
}

.day-bar strong {
  color: #e5e9ef;
  font-size: 0.78rem;
  font-weight: 650;
}

.day-bar small {
  font-size: 0.72rem;
  white-space: nowrap;
}

.route-device-table {
  display: grid;
  min-width: 0;
  border-top: 1px solid var(--line);
}

.route-device-head,
.route-device-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(4, minmax(76px, 0.34fr));
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.route-device-head {
  color: #9faab8;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.route-device-row strong {
  min-width: 0;
  color: #f8fafc;
  font-size: 0.96rem;
  overflow-wrap: anywhere;
}

.route-device-row span {
  color: #cbd3dd;
  font-variant-numeric: tabular-nums;
}

.recommendation-list {
  display: grid;
  gap: 12px;
}

.recommendation-list p,
.empty-analysis {
  margin: 0;
  line-height: 1.7;
}

.recommendation-list p {
  padding-left: 16px;
  border-left: 2px solid rgba(142, 185, 255, 0.42);
  color: #cbd3dd;
}

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

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

@media (max-width: 760px) {
  .admin-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analytics-summary {
    grid-template-columns: 1fr;
  }

  .analytics-toolbar,
  .analysis-block-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .analytics-toolbar .button {
    width: 100%;
    justify-content: center;
  }

  .analysis-block {
    padding: 18px;
  }

  .ranked-row {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .ranked-row em {
    grid-column: 2;
  }

  .route-device-table {
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .route-device-head,
  .route-device-row {
    min-width: 620px;
  }
}

/* Navigation guard: keep the mobile menu trigger out of desktop/tablet layouts. */
@media (min-width: 761px) {
  .topbar .nav-toggle {
    display: none !important;
  }

  .topbar .nav {
    display: flex !important;
  }
}

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

  .topbar:not([data-nav-open]) .nav {
    display: none !important;
  }
}
