:root {
  --bg: #f4f6ff;
  --surface: #ffffff;
  --surface-low: #ebf1ff;
  --surface-mid: #dee8ff;
  --surface-high: #ccdeff;
  --text: #162f50;
  --muted: #455c80;
  --outline: rgba(151, 174, 214, 0.18);
  --primary: #005f98;
  --primary-strong: #005385;
  --accent: #2aa7ff;
  --accent-soft: rgba(42, 167, 255, 0.18);
  --shadow: 0 18px 48px rgba(22, 47, 80, 0.08);
  --radius: 24px;
  --radius-sm: 16px;
  --container: min(1180px, calc(100vw - 32px));
}

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

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(42, 167, 255, 0.22), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
}

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

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-shell {
  min-height: 100vh;
  position: relative;
}

.site-backdrop {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

.site-backdrop__orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.8;
}

.site-backdrop__orb--one {
  top: 64px;
  left: -120px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(42, 167, 255, 0.28), transparent 72%);
}

.site-backdrop__orb--two {
  top: 380px;
  right: -140px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(103, 71, 176, 0.14), transparent 70%);
}

.site-backdrop__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(151, 174, 214, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(151, 174, 214, 0.12) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 90%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 246, 255, 0.96);
  border-bottom: 1px solid rgba(151, 174, 214, 0.14);
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 82px;
}

.dropcap::first-letter {
    font-family: 'Cormorant Garamond', serif;
    font-size: 5.2rem;
    font-weight: 700;
    line-height: 0.8;
    float: left;
    margin-right: 0.1em;
    margin-top: 0.1em;
    color: var(--accent);
}

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

.brand__glyph {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  position: relative;
  flex: 0 0 48px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(42, 167, 255, 0.2), rgba(255, 255, 255, 0.9)),
    url("/static/img/logo_blog.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 72% 72%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.brand__glyph span {
  position: absolute;
  inset: auto;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0.22;
}

.brand__glyph span:nth-child(1) {
  width: 24px;
  height: 24px;
}

.brand__glyph span:nth-child(2) {
  width: 10px;
  height: 10px;
  transform: translate(-12px, 12px);
}

.brand__glyph span:nth-child(3) {
  width: 8px;
  height: 8px;
  transform: translate(14px, -12px);
}

.brand__copy {
  display: grid;
}

.brand__copy strong,
.page-intro h1,
.hero-card h2,
.spotlight-card h3,
.section-heading h2,
.article-body h2,
.footer-panel h2 {
  font-family: "Space Grotesk", sans-serif;
}

.brand__copy small,
.section-label,
.eyebrow-row,
.mini-list span,
.footer-links a,
.social-links span,
.metric-row span,
.chip,
.pagination,
.flash {
  color: var(--muted);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  align-items: center;
}

.site-nav a {
  padding: 10px 0;
  position: relative;
  font-weight: 700;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

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

.search-form {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.8);
  padding: 12px 16px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--outline);
}

.search-form input {
  border: 0;
  background: transparent;
  min-width: 220px;
  color: var(--text);
  outline: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  border: 0;
  background: rgba(255, 255, 255, 0.82);
  padding: 12px 14px;
  border-radius: 999px;
  color: var(--text);
}

.site-main {
  padding: 32px 0 80px;
}

.page-intro,
.hero-card,
.spotlight-card,
.story-card,
.rail-card,
.prototype-card,
.article-card,
.footer-panel,
.subscribe-copy,
.subscribe-form-card,
.highlight-band__card {
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.page-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
  gap: 24px;
  padding: 34px;
  margin-bottom: 28px;
}

.page-intro h1 {
  margin: 10px 0 14px;
  font-size: clamp(2.2rem, 4.3vw, 4rem);
  line-height: 0.98;
  max-width: 13ch;
}

.page-intro p {
  margin: 0;
  max-width: 66ch;
  line-height: 1.7;
}

.page-intro__actions,
.inline-actions,
.chip-row,
.mini-nav,
.footer-links,
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-intro__actions {
  margin-top: 24px;
}

.page-intro__panel {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 22px;
  border-radius: calc(var(--radius) - 4px);
  background: linear-gradient(180deg, rgba(235, 241, 255, 0.88), rgba(255, 255, 255, 0.7));
}

.button,
.text-link,
.chip,
.mini-nav a,
.footer-links a,
.social-links a,
.pagination a {
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
}

.button:hover,
.text-link:hover,
.chip:hover,
.mini-nav a:hover,
.footer-links a:hover,
.social-links a:hover,
.pagination a:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: #ecf3ff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 14px 28px rgba(42, 167, 255, 0.22);
}

.button--ghost {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 1px var(--outline);
}

.section-label,
.eyebrow-row,
.eyebrow-row a {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 800;
}

.hero-grid,
.spotlight,
.content-section,
.article-layout,
.subscribe-layout {
  margin-top: 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.7fr);
  gap: 24px;
}

.hero-card {
  overflow: hidden;
}

.hero-card--feature {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  min-height: 420px;
}

.hero-card__media,
.spotlight-card__media,
.story-card__media,
.prototype-card__media,
.article-hero,
.highlight-band__art {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-card__media {
  min-height: 100%;
  background-color: var(--surface-mid);
}

.hero-card__body,
.spotlight-card__copy,
.story-card__body,
.prototype-card,
.article-card,
.subscribe-copy,
.subscribe-form-card,
.highlight-band__card,
.rail-card,
.footer-panel {
  padding: 28px;
}

.hero-card__body h2,
.spotlight-card__copy h3,
.subscribe-copy h2,
.highlight-band__card h2 {
  margin: 12px 0;
  font-size: clamp(1.7rem, 2.8vw, 3rem);
  line-height: 1.05;
}

.hero-card__body p,
.spotlight-card__copy p,
.story-card__body p,
.subscribe-copy p,
.highlight-band__card p,
.article-body p,
.rail-card p,
.footer-panel p {
  line-height: 1.75;
}

.hero-stack,
.rail {
  display: grid;
  gap: 24px;
}

.metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.metric-row div {
  min-width: 120px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(235, 241, 255, 0.95), rgba(255, 255, 255, 0.92));
}

.metric-row strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 6px;
}

.metric-row--stacked {
  display: grid;
}

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

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(1.5rem, 2.6vw, 2.7rem);
}

.section-heading p {
  margin: 12px 0 0;
  max-width: 58ch;
  line-height: 1.7;
}

.spotlight-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  overflow: hidden;
}

.spotlight-card__media {
  min-height: 340px;
  background-color: var(--surface-mid);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  gap: 24px;
}

.card-grid,
.gallery-grid,
.prototype-grid {
  display: grid;
  gap: 20px;
}

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

.story-card {
  overflow: hidden;
}

.story-card__media,
.prototype-card__media {
  min-height: 220px;
  background-color: var(--surface-mid);
}

.story-card__body h3,
.prototype-card h3 {
  margin: 12px 0;
  font-size: 1.3rem;
}

.story-card__body h3 a:hover,
.text-link:hover {
  color: var(--primary);
}

.text-link {
  font-weight: 800;
  color: var(--primary);
}

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

.mini-list a,
.mini-nav a,
.chip,
.social-links a {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 0 0 1px var(--outline);
}

.mini-list a strong,
.prototype-card h3,
.rail-card h3 {
  display: block;
  margin-bottom: 4px;
}

.chip {
  font-size: 0.85rem;
  font-weight: 800;
}

.chip--current {
  color: #ecf3ff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: none;
}

.highlight-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 24px;
  align-items: stretch;
}

.highlight-band__art {
  min-height: 300px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

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

.article-layout {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  gap: 24px;
}

.article-card {
  min-height: 100%;
}

.article-card--legal {
  max-width: 920px;
  margin: 0 auto;
}

.article-hero {
  min-height: 360px;
  border-radius: calc(var(--radius) - 6px);
  margin: 22px 0 28px;
  background-color: var(--surface-mid);
}

.article-hero--compact {
  min-height: 260px;
}

.article-body {
  font-size: 1.02rem;
}

.article-body .dropcap:first-letter {
  float: left;
  margin: 0.08em 0.12em 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 4.4rem;
  font-weight: 700;
  line-height: 0.82;
  color: var(--primary);
}

.article-body h2 {
  margin-top: 34px;
  font-size: 1.6rem;
}

.article-body h3 {
  margin: 28px 0 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
}

.article-body blockquote {
  margin: 28px 0;
  padding: 22px 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(235, 241, 255, 0.96), rgba(255, 255, 255, 0.92));
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 700;
}

.article-body ul,
.article-body ol {
  padding-left: 22px;
  line-height: 1.75;
}

.article-body table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.article-body thead tr {
  background: var(--text);
  color: #f8fbff;
}

.article-body th,
.article-body td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(151, 174, 214, 0.2);
}

.article-body th {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-body tbody tr {
  background: rgba(255, 255, 255, 0.92);
}

.article-body tbody tr:nth-child(even) {
  background: rgba(235, 241, 255, 0.72);
}

.article-body td:first-child {
  font-weight: 800;
  color: var(--primary);
}

.article-note,
.article-cta,
.article-diagram,
.article-stats {
  margin: 28px 0;
}

.article-note {
  padding: 18px 20px;
  border-left: 4px solid var(--primary);
  border-radius: 0 18px 18px 0;
  background: linear-gradient(180deg, rgba(235, 241, 255, 0.98), rgba(255, 255, 255, 0.94));
}

.article-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--primary);
}

.article-diagram {
  overflow: hidden;
  border-radius: 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(151, 174, 214, 0.22);
}

.article-diagram__header {
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #f8fbff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-diagram__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(151, 174, 214, 0.2);
}

.article-diagram__item {
  padding: 18px;
  background: rgba(255, 255, 255, 0.96);
}

.article-diagram__item--highlight {
  background: rgba(235, 241, 255, 0.98);
}

.article-diagram__item--full {
  grid-column: 1 / -1;
}

.article-diagram__label {
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.article-diagram__title {
  margin-bottom: 4px;
  font-weight: 800;
}

.article-diagram__note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

.article-use-grid,
.article-stats {
  display: grid;
  gap: 1px;
  background: rgba(151, 174, 214, 0.2);
  border: 1px solid rgba(151, 174, 214, 0.22);
  box-shadow: var(--shadow);
}

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

.article-use-grid__item,
.article-stats__item {
  padding: 18px;
  background: rgba(255, 255, 255, 0.96);
}

.article-use-grid__title {
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
}

.article-use-grid__desc {
  margin: 0;
  color: var(--muted);
}

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

.article-stats__value {
  display: block;
  margin-bottom: 4px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
}

.article-stats__label {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.article-cta {
  padding: 26px 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #f8fbff;
  box-shadow: var(--shadow);
}

.article-cta__label {
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(236, 243, 255, 0.74);
}

.article-cta h3 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  color: #f8fbff;
}

.article-cta p {
  margin: 0;
  color: rgba(236, 243, 255, 0.86);
}

.timeline {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.timeline__item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(235, 241, 255, 0.96), rgba(255, 255, 255, 0.92));
}

.timeline__item > strong {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ecf3ff;
}

.subscribe-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 24px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.field label {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--muted);
}

.field input {
  min-height: 54px;
  padding: 0 16px;
  border-radius: 18px;
  border: 0;
  outline: none;
  color: var(--text);
  background: rgba(235, 241, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(151, 174, 214, 0.26);
}

.field input:focus {
  box-shadow: inset 0 -3px 0 var(--primary), 0 0 0 4px rgba(42, 167, 255, 0.12);
}

.flash-stack {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.flash {
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(42, 167, 255, 0.12);
}

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

.gallery-card {
  margin: 0;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

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

.gallery-card figcaption {
  padding: 12px 6px 2px;
  color: var(--muted);
}

.empty-state {
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.pagination a {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px var(--outline);
}

.site-footer {
  padding: 0 0 48px;
}

.site-copyright {
  padding: 0 0 28px;
}

.site-copyright p {
  margin: 0;
  padding: 18px 0 0;
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
  border-top: 1px solid rgba(151, 174, 214, 0.2);
}

.footer-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.footer-panel h2 {
  margin: 10px 0 12px;
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    inset 0 0 0 1px rgba(22, 47, 80, 0.12),
    0 14px 32px rgba(22, 47, 80, 0.1);
}

.social-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  width: 100%;
  gap: 14px;
}

.social-links a img {
  width: 26px;
  height: 26px;
}

.social-links a:hover,
.social-links a:focus-visible {
  background: linear-gradient(180deg, rgba(235, 241, 255, 0.98), rgba(255, 255, 255, 0.9));
  box-shadow:
    inset 0 0 0 1px rgba(22, 47, 80, 0.18),
    0 18px 36px rgba(22, 47, 80, 0.14);
}

.social-links a:focus-visible {
  outline: 3px solid rgba(22, 47, 80, 0.18);
  outline-offset: 3px;
}

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

.hero-card,
.spotlight-card,
.story-card,
.prototype-card,
.rail-card,
.article-card,
.highlight-band__card {
  position: relative;
}

.hero-card::before,
.spotlight-card::before,
.story-card::before,
.prototype-card::before,
.rail-card::before,
.article-card::before,
.highlight-band__card::before {
  content: "";
  position: absolute;
  inset: auto 18px 0 18px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(42, 167, 255, 0), rgba(42, 167, 255, 0.26), rgba(42, 167, 255, 0));
  filter: blur(14px);
  opacity: 0;
  transition: opacity 220ms ease;
}

.hero-card:hover::before,
.spotlight-card:hover::before,
.story-card:hover::before,
.prototype-card:hover::before,
.rail-card:hover::before,
.article-card:hover::before,
.highlight-band__card:hover::before {
  opacity: 1;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1080px) {
  .site-header__inner,
  .page-intro,
  .hero-grid,
  .spotlight-card,
  .content-layout,
  .highlight-band,
  .article-layout,
  .subscribe-layout,
  .footer-panel {
    grid-template-columns: 1fr;
  }

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

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

  .hero-card__media {
    min-height: 260px;
  }
}

@media (max-width: 820px) {
  .site-header__inner {
    grid-template-columns: auto auto;
  }

  .search-form {
    grid-column: 1 / -1;
    order: 3;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .site-nav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .page-intro,
  .hero-card__body,
  .spotlight-card__copy,
  .story-card__body,
  .prototype-card,
  .article-card,
  .subscribe-copy,
  .subscribe-form-card,
  .highlight-band__card,
  .rail-card,
  .footer-panel {
    padding: 22px;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100vw - 20px, 1180px);
  }

  .card-grid,
  .gallery-grid,
  .prototype-grid {
    grid-template-columns: 1fr;
  }

  .page-intro h1 {
    max-width: none;
  }

  .search-form input {
    min-width: 0;
    width: 100%;
  }

  .article-diagram__grid,
  .article-use-grid,
  .article-stats {
    grid-template-columns: 1fr;
  }
}
