:root {
  --bg: #050505;
  --bg-soft: #0d0f12;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f4f0e8;
  --muted: rgba(244, 240, 232, 0.7);
  --muted-strong: rgba(244, 240, 232, 0.86);
  --accent: #f3b26c;
  --accent-soft: rgba(243, 178, 108, 0.14);
  --cyan-soft: rgba(93, 224, 199, 0.1);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(243, 178, 108, 0.13), transparent 28%),
    radial-gradient(circle at 86% 10%, rgba(93, 224, 199, 0.1), transparent 22%),
    linear-gradient(180deg, #060606, #090b0f 28%, #050505 100%);
  font-family: "Manrope", sans-serif;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.page-shell {
  width: min(1440px, calc(100vw - 48px));
  margin: 0 auto;
  padding-bottom: 72px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.84), rgba(5, 5, 5, 0.3));
}

.brand {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-links a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.header-links a:hover {
  color: var(--text);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.toc-shell {
  position: sticky;
  top: 104px;
}

.toc-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: var(--shadow);
}

.toc-label {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc {
  display: grid;
  gap: 10px;
}

.toc a {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--muted);
  line-height: 1.45;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.toc a:hover,
.toc a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.article {
  display: grid;
  gap: 46px;
  min-width: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px;
  padding: 32px 0 10px;
  scroll-margin-top: 104px;
}

.hero-heading {
  grid-column: 1 / -1;
  min-width: 0;
}

.eyebrow,
.kicker {
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.content-block h2 {
  margin: 12px 0 0;
  font-family: "Cormorant Garamond", serif;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero h1 {
  max-width: none;
  font-size: clamp(3rem, 5vw, 4.8rem);
  font-weight: 600;
  white-space: nowrap;
}

.hero-subtitle {
  margin: 4px 0 0;
  color: rgba(244, 240, 232, 0.78);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.28rem;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.hero-copy {
  align-self: start;
}

.hero-lead,
.content-block p,
.gap-list {
  color: var(--muted);
  line-height: 1.9;
}

.hero-lead {
  max-width: 760px;
  margin: 0;
  font-size: 1.08rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 18px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.lang-pill {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.lang-pill.is-active {
  color: #111;
  background: linear-gradient(135deg, #f8d39c, #f0ab62);
}

.lang-panel {
  display: none;
}

.lang-panel.is-active {
  display: block;
}

.content-block > .lang-panel.is-active {
  display: grid;
  gap: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.article-pagination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-width: 380px;
  margin-top: 14px;
}

.article-page-link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 60px;
  padding: 9px 10px;
  border: 1px solid rgba(243, 178, 108, 0.22);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(243, 178, 108, 0.065), rgba(255, 255, 255, 0.015));
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.article-page-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(243, 178, 108, 0.2);
  border-radius: 50%;
  color: var(--accent);
  background: rgba(243, 178, 108, 0.08);
}

.article-page-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 160ms ease;
}

.article-page-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.article-page-label {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.03em;
}

.article-page-title {
  color: var(--muted-strong);
  font-size: 0.72rem;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-page-previous:hover,
.article-page-previous:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(243, 178, 108, 0.55);
  background-color: rgba(243, 178, 108, 0.055);
}

.article-page-previous:hover .article-page-arrow svg {
  transform: translateX(-3px);
}

.article-page-previous:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.article-page-next {
  justify-content: space-between;
  border-color: rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.015);
  text-align: right;
}

.article-page-next .article-page-copy {
  margin-left: auto;
}

.article-page-next .article-page-label {
  color: var(--muted);
}

.article-page-next .article-page-title,
.article-page-next .article-page-arrow {
  color: rgba(244, 240, 232, 0.45);
}

.article-page-next .article-page-arrow {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

@media (prefers-reduced-motion: reduce) {
  .article-page-link,
  .article-page-arrow svg {
    transition: none;
  }

  .article-page-previous:hover,
  .article-page-previous:focus-visible,
  .article-page-previous:hover .article-page-arrow svg {
    transform: none;
  }
}

.button {
  appearance: none;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.25);
}

.button-primary {
  border-color: transparent;
  color: #111;
  background: linear-gradient(135deg, #f8d39c, #f0ab62);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.hero-media {
  align-self: end;
}

.hero-video-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #000;
  box-shadow: var(--shadow);
}

.hero-video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #000;
}

.hero-play {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  color: #111;
  background: rgba(244, 240, 232, 0.94);
  cursor: pointer;
}

.content-block {
  display: grid;
  gap: 20px;
  padding: 6px 0;
  scroll-margin-top: 104px;
}

.content-block h2 {
  max-width: min(1200px);
  margin: 8px 0 12px;
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.12;
}

.content-block p {
  max-width: 860px;
  margin: 0;
  font-size: 1.05rem;
}

.section-copy > .media-block,
.section-copy > .architecture-figure {
  margin-block: 1.9rem;
}

.content-block .kicker {
  display: inline-block;
  max-width: 860px;
  margin-bottom: 2px;
}

.gap-list {
  display: grid;
  gap: 14px;
  max-width: 860px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gap-list li {
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.032);
}

.gap-list strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 1.02rem;
}

.gap-list span {
  display: block;
}

.inline-placeholder {
  display: inline-flex;
  padding: 0 0.42em;
  border: 1px dashed rgba(243, 178, 108, 0.5);
  border-radius: 999px;
  color: rgba(244, 240, 232, 0.9);
  background: var(--accent-soft);
  line-height: 1.55;
}

.media-placeholder {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(100%, 860px);
  min-height: 76px;
  margin: 8px 0;
  padding: 18px 20px;
  border: 1px dashed rgba(243, 178, 108, 0.46);
  border-radius: var(--radius-md);
  color: var(--muted-strong);
  background: linear-gradient(90deg, rgba(243, 178, 108, 0.09), rgba(255, 255, 255, 0.025));
  line-height: 1.6;
}

.media-placeholder-label {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid rgba(243, 178, 108, 0.38);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.architecture-figure {
  width: 100%;
  margin: 10px 0 2px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: calc(var(--radius-xl) + 2px);
  background:
    radial-gradient(circle at top left, rgba(88, 147, 255, 0.12), transparent 34%),
    radial-gradient(circle at 82% 16%, rgba(93, 224, 199, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow);
}

.architecture-embed {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius-xl) - 2px);
  background: #08111b;
  object-fit: contain;
}

.architecture-figure figcaption {
  margin: 12px 0 0;
  color: rgba(244, 240, 232, 0.72);
  font-size: 0.95rem;
  line-height: 1.75;
}

.media-block {
  display: grid;
  gap: 12px;
  width: min(100%, 900px);
  margin: 12px 0 8px;
}

.media-caption {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
  color: rgba(244, 240, 232, 0.72);
  font-size: 0.93rem;
  line-height: 1.75;
  text-align: center;
  text-wrap: balance;
}

.evaluation-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #000;
}

.postrl-gallery {
  width: min(100%, 900px);
  gap: 12px;
  margin: 16px 0 8px;
}

.icl-showcase {
  gap: 12px;
  margin-top: 16px;
}

.icl-stage {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #08111b;
  box-shadow: var(--shadow);
}

.icl-player {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #08111b;
}

.icl-controls,
.icl-selection,
.icl-navigation {
  display: flex;
  align-items: center;
}

.icl-controls {
  justify-content: space-between;
  gap: 16px;
}

.icl-selection {
  gap: 14px;
  font-size: 0.85rem;
}

.icl-current-label {
  color: var(--muted);
}

.icl-position {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
}

.icl-navigation {
  gap: 8px;
}

.icl-nav-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: var(--panel);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.icl-nav-button svg {
  width: 20px;
  height: 20px;
}

.icl-nav-button:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

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

.icl-thumbnail {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  background: var(--panel);
  cursor: pointer;
  text-align: left;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.icl-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  opacity: 0.6;
  transition: opacity 180ms ease;
}

.icl-thumb-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 9px 12px 11px;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
}

.icl-thumb-label::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
}

.icl-thumbnail:hover {
  border-color: rgba(244, 240, 232, 0.45);
}

.icl-thumbnail:hover img,
.icl-thumbnail.is-active img {
  opacity: 1;
}

.icl-thumbnail.is-active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.icl-thumbnail.is-active .icl-thumb-label::after {
  opacity: 1;
}

.icl-nav-button:focus-visible,
.icl-thumbnail:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.icl-thumb-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
}

.icl-thumb-progress::after {
  content: "";
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(var(--icl-progress, 0));
  transform-origin: left center;
  transition: transform 240ms linear;
}

@media (prefers-reduced-motion: reduce) {
  .icl-nav-button,
  .icl-thumbnail,
  .icl-thumbnail img,
  .icl-thumb-progress::after {
    transition: none;
  }
}

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

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

/* Keep both featured videos at the same height using their actual aspect ratios. */
.postrl-row-featured {
  grid-template-columns: minmax(0, 30fr) minmax(0, 26fr);
}

.postrl-row-featured .postrl-video-card:last-child video {
  aspect-ratio: 26 / 17;
}

.postrl-video-card,
.pair-video-card,
.multi-pair-video-card {
  position: relative;
  display: grid;
  align-items: center;
  min-width: 0;
  min-height: 44px;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #000;
  cursor: zoom-in;
}

.postrl-video-card:hover,
.pair-video-card:hover,
.multi-pair-video-card:hover {
  border-color: var(--accent);
}

.postrl-video-card:focus-visible,
.pair-video-card:focus-visible,
.multi-pair-video-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.postrl-video-card video,
.pair-video-card video,
.multi-pair-video-card video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 30 / 17;
  object-fit: contain;
  pointer-events: none;
}

.pair-comparison {
  margin: 16px 0;
}

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

.pair-card {
  --pair-accent: var(--accent);
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.028);
}

.pair-card-strong {
  --pair-accent: #77e8d4;
}

.pair-card-heading {
  flex: 1;
  padding: 14px 16px 10px;
  border-top: 2px solid var(--pair-accent);
}

.pair-card-heading h3 {
  margin: 0 0 4px;
  color: var(--pair-accent);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.25;
}

.pair-comparison .pair-description {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.pair-view-labels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 6px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
  text-align: center;
}

.pair-video-card {
  width: 100%;
  border: 0;
  border-radius: 0;
}

.pair-video-card:focus-visible {
  outline-offset: -3px;
}

.pair-video-card video {
  aspect-ratio: 18 / 5;
  background: #0b1521;
}

.human-to-robot-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

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

.multi-pair-video-card {
  border-radius: var(--radius-sm);
}

.multi-pair-video-card video {
  aspect-ratio: 10 / 3;
}

.multi-pair-video-card .video-expand {
  right: 4px;
  bottom: 4px;
  width: 20px;
  height: 20px;
  border-radius: 5px;
}

.multi-pair-video-card .video-expand svg {
  width: 12px;
  height: 12px;
}

.video-expand {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 7px;
  color: var(--text);
  background: rgba(5, 5, 5, 0.62);
  pointer-events: none;
}

.video-expand svg {
  width: 16px;
  height: 16px;
}

.video-carousel {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: calc(var(--radius-xl) + 2px);
  outline: none;
  background:
    radial-gradient(circle at top left, rgba(88, 147, 255, 0.1), transparent 34%),
    radial-gradient(circle at 82% 16%, rgba(93, 224, 199, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow);
}

.video-carousel:focus-visible {
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(243, 178, 108, 0.6);
}

.video-carousel-viewport {
  overflow: hidden;
  border-radius: calc(var(--radius-xl) - 2px);
  background: #000;
  aspect-ratio: var(--carousel-aspect, 1710 / 486);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.video-carousel-track {
  display: flex;
  height: 100%;
  transition: transform 320ms ease;
  will-change: transform;
}

.video-slide {
  flex: 0 0 100%;
  height: 100%;
  margin: 0;
  background: #000;
}

.video-slide video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.video-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
}

.video-carousel-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.video-carousel-arrow:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.07);
}

.video-carousel-arrow span {
  font-size: 1.18rem;
  line-height: 1;
}

.video-carousel-status {
  flex: 1;
  color: rgba(244, 240, 232, 0.72);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.back-to-top {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  text-decoration: none;
}

.back-to-top:hover {
  color: var(--text);
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}

.video-modal.is-open {
  display: block;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 3, 4, 0.8);
  backdrop-filter: blur(10px);
}

.video-modal-dialog {
  position: relative;
  width: min(1180px, calc(100vw - 32px), calc(78vh * var(--video-aspect, 1.777778) + 2px));
  margin: min(5vh, 32px) auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #0a0d11;
  box-shadow: var(--shadow);
}

.video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.video-modal-header h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.video-modal-close {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.video-modal-body {
  background: #000;
}

.video-modal-body video {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #000;
}

@media (max-width: 1100px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .toc-shell {
    position: static;
  }

  .toc-card {
    display: none;
  }

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

}

@media (max-width: 600px) {
  .pair-comparison-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .hero,
  .content-block {
    scroll-margin-top: 148px;
  }

  .page-shell {
    width: min(calc(100vw - 22px), 1440px);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .header-links {
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px 12px;
    font-size: 0.9rem;
  }

  .header-links a:last-child {
    flex-basis: 100%;
  }

  .header-links a,
  .hero-copy,
  .hero-heading,
  .hero-media,
  .content-block {
    min-width: 0;
  }

  .hero-lead,
  .content-block p,
  .gap-list,
  .header-links a {
    overflow-wrap: anywhere;
  }

  .hero {
    gap: 22px;
    padding-top: 22px;
  }

  .hero h1 {
    font-size: 2.4rem;
    overflow-wrap: break-word;
    word-break: normal;
    white-space: normal;
  }

  .lang-switch {
    flex-wrap: wrap;
    border-radius: 18px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    margin-top: 6px;
  }

  .article-pagination {
    margin-top: 12px;
  }

  .button {
    text-align: center;
  }

  .content-block p,
  .hero-lead,
  .gap-list {
    overflow-wrap: break-word;
    word-break: normal;
  }

  .architecture-figure {
    padding: 10px;
  }

  .media-caption {
    padding: 0 10px;
  }

  .postrl-gallery,
  .postrl-row {
    gap: 6px;
  }

  .multi-pair-grid {
    gap: 3px;
  }

  .icl-stage {
    border-radius: var(--radius-md);
  }

  .icl-thumbnails {
    gap: 6px;
  }

  .icl-thumbnail {
    border-radius: 7px;
  }

  .icl-thumb-label {
    padding: 8px 6px 10px;
    font-size: 0.64rem;
    letter-spacing: 0.02em;
  }

  .postrl-video-card {
    border-radius: var(--radius-sm);
  }

  .postrl-row-secondary .video-expand {
    right: 3px;
    bottom: 3px;
    width: 18px;
    height: 18px;
    border-radius: 4px;
  }

  .postrl-row-secondary .video-expand svg {
    width: 12px;
    height: 12px;
  }

  .media-placeholder {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .video-carousel {
    padding: 10px;
  }

}
