:root {
  --topbar-offset: calc(12px + env(safe-area-inset-top));
  --topbar-height: 58px;
  --surface-offwhite: #f4f2ed;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  color: #111111;
  background: var(--surface-offwhite);
  overflow-x: hidden;
}

a {
  color: inherit;
}

main {
  width: 100%;
}

.topbar {
  width: min(1320px, calc(100% - 56px));
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  position: fixed;
  top: var(--topbar-offset);
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  text-decoration: none;
}

.brand__logo {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
}

.brand__text {
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.topnav {
  justify-self: center;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}

.topnav a {
  color: #d8d8d8;
  text-decoration: none;
  font-size: 0.9rem;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-weight: 600;
  transition: color 0.2s ease;
}

.topnav a:hover {
  color: #ffffff;
}

.topbar__actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.topbar__menu-toggle {
  width: 18px;
  height: 14px;
  border: 0;
  background: transparent;
  color: #f0f0f0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  line-height: 0;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.topbar__menu-toggle:hover {
  opacity: 1;
}

.topbar__menu-toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.76);
  outline-offset: 6px;
  border-radius: 6px;
}

.topbar__menu-toggle span,
.topbar__menu-toggle span::before,
.topbar__menu-toggle span::after {
  width: 14px;
  height: 1.8px;
  border-radius: 999px;
  background: currentColor;
  display: block;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.topbar__menu-toggle span::before,
.topbar__menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.topbar__menu-toggle span::before {
  top: -6px;
}

.topbar__menu-toggle span::after {
  top: 6px;
}

.topbar--menu-open .topbar__menu-toggle span {
  background: transparent;
}

.topbar--menu-open .topbar__menu-toggle span::before {
  transform: translateY(6px) rotate(45deg);
}

.topbar--menu-open .topbar__menu-toggle span::after {
  transform: translateY(-6px) rotate(-45deg);
}

.btn {
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 0.86rem;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

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

.btn--primary {
  background: #f3f3f3;
  border-color: rgba(255, 255, 255, 0.66);
  color: #070707;
  box-shadow: 0 12px 24px rgba(255, 255, 255, 0.16);
}

.btn--blog-primary {
  background: #f3f3f3;
}

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: calc(var(--topbar-offset) + var(--topbar-height) + 58px) 22px 78px;
  color: #f5f5f5;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.11), transparent 34%),
    radial-gradient(circle at 82% 6%, rgba(255, 255, 255, 0.08), transparent 30%),
    linear-gradient(180deg, #0a0c14 0%, #05060d 52%, #020308 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 50% 44%,
      rgba(2, 3, 8, 0) 0%,
      rgba(2, 3, 8, 0.14) 38%,
      rgba(2, 3, 8, 0.3) 64%,
      rgba(2, 3, 8, 0.54) 100%
    ),
    linear-gradient(180deg, rgba(2, 3, 8, 0.04) 56%, rgba(2, 3, 8, 0.44) 100%);
}

.hero__motion {
  position: absolute;
  inset: -6%;
  pointer-events: none;
  z-index: 1;
  animation: orbitFieldDrift 24s ease-in-out infinite alternate;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0));
  opacity: 0.16;
}

.hero__glow--one {
  width: 40vw;
  height: 40vw;
  top: -12vw;
  left: -8vw;
  animation: glowFloatOne 34s ease-in-out infinite alternate;
}

.hero__glow--two {
  width: 34vw;
  height: 34vw;
  right: -8vw;
  bottom: -14vw;
  animation: glowFloatTwo 40s ease-in-out infinite alternate;
}

.hero__arc {
  position: absolute;
  left: 50%;
  top: 54%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.11);
  clip-path: inset(0 0 44% 0);
}

.hero__arc--one {
  width: min(114vw, 1480px);
  height: min(70vw, 900px);
  transform: translate(-50%, -50%) rotate(8deg);
  animation: arcDriftOne 60s ease-in-out infinite alternate;
}

.hero__arc--two {
  width: min(102vw, 1280px);
  height: min(62vw, 780px);
  transform: translate(-50%, -50%) rotate(-11deg);
  border-color: rgba(255, 255, 255, 0.08);
  animation: arcDriftTwo 54s ease-in-out infinite alternate;
}

.hero__ring,
.hero__beam {
  position: absolute;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
}

.hero__ring {
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: visible;
}

.hero__ring::before,
.hero__ring::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.46);
}

.hero__ring--outer {
  width: min(92vw, 1100px);
  aspect-ratio: 1;
  animation: spinOuter 48s linear infinite;
}

.hero__ring--outer::before {
  width: 6px;
  height: 6px;
  left: 50%;
  top: -1px;
  transform: translate(-50%, -50%);
}

.hero__ring--outer::after {
  width: 4px;
  height: 4px;
  left: 68%;
  top: 100%;
  transform: translate(-50%, 50%);
}

.hero__ring--inner {
  width: min(70vw, 780px);
  aspect-ratio: 1;
  border-color: rgba(255, 255, 255, 0.3);
  animation: spinInner 36s linear infinite;
}

.hero__ring--inner::before {
  width: 5px;
  height: 5px;
  left: 50%;
  top: -1px;
  transform: translate(-50%, -50%);
}

.hero__ring--inner::after {
  width: 4px;
  height: 4px;
  left: 26%;
  top: 100%;
  transform: translate(-50%, 50%);
}

.hero__beam {
  width: min(92vw, 1200px);
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0));
  filter: none;
}

.hero__beam--left {
  transform: translate(-50%, -50%) rotate(22deg);
  animation: beamFloatLeft 24s ease-in-out infinite alternate;
}

.hero__beam--right {
  transform: translate(-50%, -50%) rotate(-22deg);
  animation: beamFloatRight 26s ease-in-out infinite alternate;
}

.hero__content {
  position: relative;
  z-index: 4;
  text-align: center;
  display: grid;
  gap: 11px;
  width: min(1140px, 92vw);
  margin-top: clamp(-76px, -8vh, -30px);
  animation: heroReveal 0.9s ease-out both;
}

.hero__frames {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  z-index: 3;
  pointer-events: none;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-mode: alpha;
  mask-mode: alpha;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.03) 10%,
    rgba(0, 0, 0, 0.1) 20%,
    rgba(0, 0, 0, 0.22) 30%,
    rgba(0, 0, 0, 0.4) 38%,
    rgba(0, 0, 0, 0.58) 44%,
    rgba(0, 0, 0, 0.72) 48%,
    rgba(0, 0, 0, 0.78) 50%,
    rgba(0, 0, 0, 0.72) 52%,
    rgba(0, 0, 0, 0.58) 56%,
    rgba(0, 0, 0, 0.4) 62%,
    rgba(0, 0, 0, 0.22) 70%,
    rgba(0, 0, 0, 0.1) 80%,
    rgba(0, 0, 0, 0.03) 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.03) 10%,
    rgba(0, 0, 0, 0.1) 20%,
    rgba(0, 0, 0, 0.22) 30%,
    rgba(0, 0, 0, 0.4) 38%,
    rgba(0, 0, 0, 0.58) 44%,
    rgba(0, 0, 0, 0.72) 48%,
    rgba(0, 0, 0, 0.78) 50%,
    rgba(0, 0, 0, 0.72) 52%,
    rgba(0, 0, 0, 0.58) 56%,
    rgba(0, 0, 0, 0.4) 62%,
    rgba(0, 0, 0, 0.22) 70%,
    rgba(0, 0, 0, 0.1) 80%,
    rgba(0, 0, 0, 0.03) 90%,
    transparent 100%
  );
}

.hero__frames::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -70px;
  height: 90px;
  background: linear-gradient(180deg, rgba(2, 3, 8, 0), rgba(2, 3, 8, 0.32));
}

.hero__frames-perspective {
  overflow: hidden;
  position: relative;
  padding: 20px clamp(44px, 7vw, 90px) 8px;
  transform: perspective(1280px) rotateX(9deg) rotateZ(-1.8deg);
  transform-origin: center bottom;
}

.hero__frames-track {
  display: flex;
  width: max-content;
  animation: framesLoopLeft 56s linear infinite;
  will-change: transform;
}

.hero__frames-sequence {
  display: flex;
  gap: 18px;
  padding-right: 18px;
}

.hero__frame-unit {
  width: clamp(220px, 24vw, 314px);
}

.hero__frame-unit--single-wide {
  width: clamp(260px, 28vw, 368px);
}

.hero__frame-unit:nth-child(odd) {
  transform: translateY(8px) rotate(-0.45deg);
}

.hero__frame-unit:nth-child(even) {
  transform: translateY(2px) rotate(0.45deg);
}

.hero__frame-unit--split {
  display: grid;
  gap: 12px;
}

.hero__frame {
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.96);
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.5) inset;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.hero__frame-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
  pointer-events: none;
}

.hero__frame--single {
  height: clamp(172px, 17vw, 236px);
}

.hero__frame--split {
  height: clamp(80px, 7.8vw, 110px);
}

.hero__eyebrow {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6.3vw, 5.35rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.01;
  text-wrap: balance;
}

.hero__title-text {
  color: #f1f1f1;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__title-text {
    background: linear-gradient(
      110deg,
      rgba(255, 255, 255, 0.72) 0%,
      rgba(255, 255, 255, 0.98) 22%,
      rgba(255, 255, 255, 0.74) 46%,
      rgba(255, 255, 255, 1) 66%,
      rgba(255, 255, 255, 0.78) 100%
    );
    background-size: 280% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: titleSheen 7.5s linear infinite;
  }
}

.hero__signature {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.02rem, 2.2vw, 1.46rem);
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.64);
  text-transform: lowercase;
}

.editorial-section {
  padding: clamp(56px, 7vw, 92px) 22px;
  content-visibility: auto;
  contain-intrinsic-size: 860px;
}

.editorial-shell {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.editorial-eyebrow {
  margin: 0 0 10px;
  color: #6a6a6a;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 700;
}

.editorial-section h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.blog-categories {
  background: #faf9f5;
}

.category-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.category-card {
  background: #ffffff;
  border: 1px solid #e5e3dc;
  border-radius: 18px;
  padding: 22px 20px;
  min-height: 200px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.category-card h3 {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.category-card p {
  margin: 0;
  color: #474747;
  line-height: 1.62;
  font-size: 0.94rem;
}

.category-card__link {
  margin-top: auto;
  width: fit-content;
  color: #0d0d0d;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid #141414;
}

.featured-articles {
  background: #ffffff;
}

.featured-layout {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 18px;
}

.featured-primary {
  background: #f8f7f2;
  border: 1px solid #ebe8df;
  border-radius: 20px;
  padding: 18px;
}

.featured-primary h3 {
  margin: 8px 0 0;
  font-size: clamp(1.22rem, 2.1vw, 1.72rem);
  letter-spacing: -0.03em;
}

.featured-primary p {
  margin: 10px 0 0;
  color: #4b4b4b;
  line-height: 1.62;
}

.article-thumb {
  display: block;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e8e6de;
  background: #ffffff;
}

.article-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-thumb--large {
  height: clamp(220px, 34vw, 360px);
  border-radius: 16px;
}

.featured-secondary {
  display: grid;
  gap: 12px;
}

.featured-secondary-card {
  border: 1px solid #ebe8df;
  border-radius: 18px;
  background: #ffffff;
  padding: 12px;
  display: grid;
  gap: 12px;
  grid-template-columns: 134px minmax(0, 1fr);
  align-items: center;
}

.featured-secondary-card .article-thumb {
  height: 108px;
}

.featured-secondary-card h3 {
  margin: 6px 0 0;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.popular-articles {
  background: #faf9f5;
}

.popular-list {
  margin-top: 24px;
  display: grid;
  border-top: 1px solid #e4e1d8;
}

.popular-item {
  padding: 18px 4px;
  border-bottom: 1px solid #e4e1d8;
}

.popular-item h3 {
  margin: 6px 0 0;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
}

.article-meta {
  margin: 0;
  color: #666666;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.recent-articles {
  background: #ffffff;
}

.recent-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.recent-card {
  border: 1px solid #ece9df;
  background: #ffffff;
  border-radius: 18px;
  padding: 12px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.recent-card .article-thumb {
  height: 136px;
}

.recent-card h3 {
  margin: 0;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.recent-card p {
  margin: 0;
  color: #4b4b4b;
  line-height: 1.58;
}

.editorial-section h3 a,
.popular-item a {
  color: inherit;
  text-decoration: none;
}

.editorial-section h3 a:hover,
.popular-item a:hover,
.category-card__link:hover {
  opacity: 0.8;
}

.editorial-cta {
  background: linear-gradient(180deg, #090b13, #06070e);
  color: #f3f3f3;
}

.editorial-cta__inner {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 22px;
  padding: clamp(26px, 4vw, 42px);
  display: grid;
  gap: 14px;
  justify-items: start;
}

.editorial-cta__inner p {
  margin: 0;
  max-width: 66ch;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.68;
}

.page-hero {
  padding: calc(var(--topbar-offset) + var(--topbar-height) + 74px) 22px 48px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, 0.14), transparent 35%),
    linear-gradient(180deg, #0a0c14, #060811 80%);
  color: #f2f2f2;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.page-hero__lead {
  margin: 16px 0 0;
  max-width: 76ch;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.article-meta--hero {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.62);
}

.category-articles,
.article-content {
  background: #faf9f5;
}

.article-content--spm {
  margin-top: -20px;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  position: relative;
  z-index: 2;
  padding-top: 28px;
}

.spm-shell {
  width: min(1120px, calc(100% - 44px));
  margin: 0 auto;
}

.editorial-shell--article {
  max-width: 840px;
}

.article-section-block {
  padding: 20px 0;
  border-bottom: 1px solid #e3dfd4;
}

.article-content:not(.article-content--spm) .article-section-block {
  content-visibility: auto;
  contain-intrinsic-size: 1px 480px;
}

.article-section-block:last-child {
  border-bottom: 0;
}

.article-section-block h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
}

.article-section-block p {
  margin: 10px 0 0;
  color: #333333;
  line-height: 1.72;
}

.article-section-block h3 {
  margin: 18px 0 0;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}

.spm-doc {
  padding-bottom: 54px;
}

.spm-toc {
  margin: 14px 0 22px;
  border: 1px solid #ddd6c8;
  border-radius: 22px;
  background:
    radial-gradient(circle at 0% 0%, rgba(18, 20, 26, 0.04), transparent 42%),
    #ffffff;
  padding: 18px;
  box-shadow:
    0 20px 34px rgba(15, 13, 9, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.75) inset;
}

.spm-toc__head {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.spm-toc__eyebrow {
  margin: 0;
  width: fit-content;
  border: 1px solid #ddd7ca;
  border-radius: 999px;
  padding: 7px 13px;
  background: #f8f6ef;
  color: #5b5548;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.spm-index-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.spm-doc .spm-index-list li + li {
  margin-top: 0;
}

.spm-index-item {
  border: 1px solid #e8e2d7;
  border-radius: 12px;
  background: #ffffff;
  padding: 12px 13px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 78px;
  height: 100%;
  text-decoration: none;
  color: #171717;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.spm-index-item:hover {
  transform: translateY(-1px);
  border-color: #cbc2b0;
  box-shadow: 0 10px 20px rgba(20, 18, 12, 0.06);
}

.spm-index-item:focus-visible {
  outline: 2px solid #28241b;
  outline-offset: 2px;
}

.spm-index-item__num {
  width: 34px;
  min-width: 34px;
  align-self: start;
  text-align: center;
  border-radius: 999px;
  border: 1px solid #d8d0c1;
  background: #f7f4ec;
  padding: 3px 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #5f5848;
}

.spm-index-item__title {
  font-size: 0.94rem;
  line-height: 1.36;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: #121212;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spm-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 0.94rem;
  line-height: 1.6;
}

.spm-table th,
.spm-table td {
  border: 1px solid #e4dfd3;
  text-align: left;
  padding: 10px;
  vertical-align: top;
}

.spm-table th {
  background: #f5f3ec;
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spm-doc ol {
  margin: 12px 0 0;
  padding-left: 20px;
}

.spm-doc ol.spm-index-list {
  margin: 14px 0 0;
  padding-left: 0;
}

.spm-doc li + li {
  margin-top: 6px;
}

@keyframes spinOuter {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes spinInner {
  from {
    transform: translate(-50%, -50%) rotate(360deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(0deg);
  }
}

@keyframes beamFloatLeft {
  0% {
    opacity: 0.2;
    transform: translate(-50%, -50%) rotate(18deg) scaleX(0.9);
  }

  100% {
    opacity: 0.56;
    transform: translate(-50%, -50%) rotate(26deg) scaleX(1.02);
  }
}

@keyframes beamFloatRight {
  0% {
    opacity: 0.12;
    transform: translate(-50%, -50%) rotate(-18deg) scaleX(0.9);
  }

  100% {
    opacity: 0.48;
    transform: translate(-50%, -50%) rotate(-27deg) scaleX(1.02);
  }
}

@keyframes arcDriftOne {
  0% {
    transform: translate(-50%, -50%) rotate(6deg) scale(0.98);
    opacity: 0.4;
  }

  100% {
    transform: translate(-50%, -50%) rotate(12deg) scale(1.03);
    opacity: 0.64;
  }
}

@keyframes arcDriftTwo {
  0% {
    transform: translate(-50%, -50%) rotate(-13deg) scale(1.02);
    opacity: 0.34;
  }

  100% {
    transform: translate(-50%, -50%) rotate(-6deg) scale(0.98);
    opacity: 0.54;
  }
}

@keyframes glowFloatOne {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(10vw, 7vw) scale(1.12);
  }
}

@keyframes glowFloatTwo {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(-8vw, -6vw) scale(1.1);
  }
}

@keyframes titleSheen {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes orbitFieldDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    transform: translate3d(0, -10px, 0) scale(1.015);
  }
}

@keyframes framesLoopLeft {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1200px) {
  .topbar {
    width: min(1320px, calc(100% - 38px));
  }
}

@media (max-width: 980px) {
  :root {
    --topbar-height: 58px;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand actions";
    gap: 14px;
  }

  .topbar--menu-open {
    grid-template-areas:
      "brand actions"
      "nav nav";
    gap: 12px 14px;
  }

  .topnav {
    grid-area: nav;
    display: none;
    justify-self: stretch;
    width: 100%;
    margin-top: 0;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    gap: 0;
  }

  .topbar--menu-open .topnav {
    display: grid;
  }

  .topnav a {
    display: block;
    padding: 10px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .topnav a:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .brand {
    grid-area: brand;
  }

  .topbar__actions {
    grid-area: actions;
    justify-self: end;
    gap: 8px;
  }

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

  .hero {
    padding-top: calc(var(--topbar-offset) + var(--topbar-height) + 46px);
  }

  .hero__motion {
    inset: -10%;
  }

  .hero__ring--outer {
    width: 120vw;
  }

  .hero__ring--inner {
    width: 92vw;
  }

  .hero__content {
    margin-top: clamp(-60px, -7vh, -20px);
  }

  .hero__frames {
    bottom: -2px;
  }

  .hero__frames-perspective {
    padding: 14px clamp(28px, 6vw, 56px) 4px;
    transform: perspective(980px) rotateX(8deg) rotateZ(-1.5deg);
  }

  .hero__frames-sequence {
    gap: 14px;
    padding-right: 14px;
  }

  .hero__frame-unit {
    width: clamp(192px, 37vw, 266px);
  }

  .hero__frame-unit--single-wide {
    width: clamp(230px, 44vw, 304px);
  }

  .hero__frame-unit--split {
    gap: 9px;
  }

  .hero__frame--single {
    height: clamp(142px, 25vw, 194px);
  }

  .hero__frame--split {
    height: clamp(66px, 11vw, 88px);
  }

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

  .featured-layout {
    grid-template-columns: 1fr;
  }

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

  .spm-shell {
    width: min(1120px, calc(100% - 30px));
  }

}

@media (max-width: 560px) {
  :root {
    --topbar-height: 52px;
  }

  .topbar {
    width: min(1320px, calc(100% - 22px));
    padding: 8px 10px;
    border-radius: 12px;
  }

  .brand__text {
    font-size: 0.84rem;
  }

  .btn {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.76rem;
  }

  .hero {
    padding-left: 14px;
    padding-right: 14px;
    padding-bottom: 64px;
  }

  .hero__content {
    margin-top: clamp(-46px, -6vh, -14px);
  }

  .hero__frames {
    bottom: 2px;
  }

  .hero__frames-perspective {
    padding: 10px clamp(16px, 5vw, 30px) 2px;
    transform: perspective(820px) rotateX(7deg) rotateZ(-1.3deg);
  }

  .hero__frames-track {
    animation-duration: 34s;
  }

  .hero__frame-unit {
    width: clamp(160px, 56vw, 214px);
  }

  .hero__frame-unit--single-wide {
    width: clamp(194px, 64vw, 248px);
  }

  .hero__frame {
    border-radius: 18px;
  }

  .hero__frame--single {
    height: clamp(116px, 34vw, 150px);
  }

  .hero__frame--split {
    height: clamp(56px, 14vw, 72px);
  }

  .hero h1 {
    font-size: clamp(2rem, 10vw, 2.9rem);
  }

  .editorial-section {
    padding: 44px 14px;
  }

  .category-grid,
  .recent-grid {
    grid-template-columns: 1fr;
  }

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

  .featured-secondary-card .article-thumb,
  .recent-card .article-thumb {
    height: 126px;
  }

  .page-hero {
    padding: calc(var(--topbar-offset) + var(--topbar-height) + 56px) 14px 38px;
  }

  .page-hero__lead {
    line-height: 1.6;
  }

  .article-content--spm {
    margin-top: -14px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding-top: 20px;
  }

  .spm-shell {
    width: min(1120px, calc(100% - 20px));
  }

  .spm-toc {
    border-radius: 16px;
    padding: 16px;
  }

  .spm-index-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .spm-index-item {
    min-height: 70px;
    padding: 10px 11px;
  }

  .spm-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__glow,
  .hero__arc,
  .hero__ring,
  .hero__beam,
  .hero__title-text,
  .hero__motion,
  .hero__content,
  .hero__frames-track,
  .btn {
    animation: none !important;
    transition: none !important;
  }
}
