.story-title {
  background: none !important;
  color: #fff !important;
  font-weight: 1000 !important;
  font-synthesis-weight: auto;
  -webkit-text-fill-color: #fff !important;
  -webkit-text-stroke: 0.88px rgba(255, 255, 255, 0.96);
  filter: drop-shadow(0 0 7px rgba(142, 231, 255, 0.24));
  paint-order: stroke fill;
  text-shadow:
    0 0 1px #fff,
    0 0 6px rgba(255, 255, 255, 0.22),
    0 0 12px rgba(142, 231, 255, 0.24),
    0 0 18px rgba(191, 174, 255, 0.14);
}

.story-title-line {
  display: block;
  white-space: nowrap;
}

.story-panel-left .story-title,
.story-split-left .story-title {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.story-panel-right .story-title,
.story-split-right .story-title {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.story-title::first-letter {
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.pill-nav-container {
  position: relative;
  z-index: 36;
  pointer-events: auto;
}

.pill-nav {
  --nav-h: 43px;
  --pill-pad-x: clamp(0.82rem, 1.08vw, 1.08rem);
  --pill-gap: 0.22rem;
  display: flex;
  align-items: center;
  width: max-content;
  font-family: Fira Code, ui-monospace, SFMono-Regular, Menlo, monospace;
}

.pill-nav-items {
  position: relative;
  display: flex;
  align-items: center;
  height: var(--nav-h);
  overflow: hidden;
  border: 1px solid rgba(142, 231, 255, 0.28);
  border-radius: 999px;
  background:
    radial-gradient(circle at 12% 10%, rgba(142, 231, 255, 0.26), transparent 48%),
    linear-gradient(135deg, rgba(7, 21, 31, 0.82), rgba(10, 15, 24, 0.54));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 26px rgba(79, 195, 255, 0.14),
    0 18px 42px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px) saturate(1.32);
  -webkit-backdrop-filter: blur(18px) saturate(1.32);
}

.pill-list {
  display: flex;
  align-items: stretch;
  gap: var(--pill-gap);
  height: 100%;
  margin: 0;
  padding: 0.22rem;
  list-style: none;
}

.pill-list > li {
  display: flex;
  height: 100%;
}

.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: max-content;
  height: 100%;
  overflow: hidden;
  padding: 0 var(--pill-pad-x);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.03)),
    linear-gradient(135deg, rgba(8, 28, 39, 0.82), rgba(16, 19, 33, 0.72));
  color: var(--pill-text);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(142, 231, 255, 0.09) inset,
    0 0 16px rgba(79, 195, 255, 0.06) inset;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.pill:hover,
.pill:focus-visible {
  border-color: rgba(255, 207, 122, 0.58);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.22) inset,
    0 0 24px rgba(142, 231, 255, 0.24),
    0 0 26px rgba(255, 207, 122, 0.14) inset;
  transform: translateY(-1px);
}

.pill:focus-visible {
  outline: 2px solid rgba(142, 231, 255, 0.76);
  outline-offset: 3px;
}

.pill .hover-circle {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 1;
  display: block;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 48% 32%, rgba(255, 255, 255, 0.9), rgba(142, 231, 255, 0.92) 28%, rgba(255, 207, 122, 0.72) 62%, rgba(138, 107, 255, 0.56) 100%);
  box-shadow: 0 0 26px rgba(142, 231, 255, 0.52);
  will-change: transform;
}

.pill .label-stack {
  position: relative;
  z-index: 2;
  display: inline-block;
  line-height: 1;
}

.pill .pill-label,
.pill .pill-label-hover {
  display: inline-block;
  font-size: clamp(0.72rem, 0.82vw, 0.86rem);
  font-weight: 900;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
  will-change: transform, opacity;
}

.pill .pill-label {
  position: relative;
  z-index: 2;
  text-shadow: 0 0 12px rgba(142, 231, 255, 0.5);
}

.pill .pill-label-hover {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  color: var(--hover-text);
  text-shadow: none;
}

.pill.is-active {
  border-color: rgba(142, 231, 255, 0.76);
  background:
    linear-gradient(135deg, rgba(45, 171, 221, 0.64), rgba(138, 107, 255, 0.36)),
    rgba(8, 24, 34, 0.82);
}

.pill.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.22rem;
  z-index: 4;
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 14px rgba(142, 231, 255, 0.9), 0 0 22px rgba(255, 207, 122, 0.5);
  transform: translateX(-50%);
}

.pill.is-disabled,
.mobile-menu-link.is-disabled {
  cursor: default;
  opacity: 0.52;
  filter: saturate(0.68);
}

.pill.is-disabled:hover,
.pill.is-disabled:focus-visible {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(142, 231, 255, 0.09) inset,
    0 0 16px rgba(79, 195, 255, 0.06) inset;
  transform: none;
}

.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

.mobile-menu-button {
  position: relative;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  width: var(--nav-h);
  height: var(--nav-h);
  padding: 0;
  border: 1px solid rgba(142, 231, 255, 0.32);
  border-radius: 999px;
  background: rgba(6, 18, 28, 0.72);
  box-shadow: 0 0 22px rgba(79, 195, 255, 0.18);
  cursor: pointer;
}

.hamburger-line {
  width: 1rem;
  height: 2px;
  border-radius: 999px;
  background: rgba(234, 251, 255, 0.94);
  transform-origin: center;
}

.mobile-menu-popover {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  z-index: 998;
  min-width: min(18rem, calc(100vw - 2rem));
  padding: 0.32rem;
  border: 1px solid rgba(142, 231, 255, 0.28);
  border-radius: 1.35rem;
  background:
    radial-gradient(circle at 12% 12%, rgba(142, 231, 255, 0.22), transparent 46%),
    rgba(6, 14, 22, 0.86);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.5), 0 0 28px rgba(79, 195, 255, 0.13);
  backdrop-filter: blur(18px) saturate(1.28);
  -webkit-backdrop-filter: blur(18px) saturate(1.28);
  visibility: hidden;
  opacity: 0;
}

.mobile-menu-list {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-menu-link {
  display: block;
  padding: 0.82rem 0.98rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(11, 33, 45, 0.86), rgba(20, 20, 36, 0.78));
  color: #eafbff;
  font-family: Fira Code, ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.mobile-menu-link:hover,
.mobile-menu-link:focus-visible,
.mobile-menu-link.is-active {
  border-color: rgba(255, 207, 122, 0.58);
  background: linear-gradient(135deg, rgba(142, 231, 255, 0.88), rgba(255, 207, 122, 0.72));
  color: #06131b;
}

.module-viewport {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  grid-template-rows: auto 1fr;
  background:
    radial-gradient(circle at 16% 18%, rgba(79, 195, 255, 0.18), transparent 22rem),
    radial-gradient(circle at 86% 12%, rgba(255, 207, 122, 0.12), transparent 18rem),
    rgba(3, 6, 10, 0.94);
  backdrop-filter: blur(20px) saturate(1.18);
  -webkit-backdrop-filter: blur(20px) saturate(1.18);
}

.module-viewport-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.4rem;
  padding: 1rem clamp(1rem, 3vw, 2.5rem);
  border-bottom: 1px solid rgba(142, 231, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(4, 12, 18, 0.62);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.module-viewport-title {
  display: grid;
  gap: 0.24rem;
  color: #fff;
}

.module-viewport-title span {
  font-family: Fira Code, ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(142, 231, 255, 0.82);
}

.module-viewport-title strong {
  font-family: Anton, Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 2.25rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow: 0 0 16px rgba(142, 231, 255, 0.32);
}

.module-viewport-close {
  min-height: 2.45rem;
  padding: 0 1rem;
  border: 1px solid rgba(142, 231, 255, 0.42);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(18, 54, 74, 0.82), rgba(16, 20, 34, 0.72));
  color: #eafbff;
  font-family: Fira Code, ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(79, 195, 255, 0.14);
}

.module-viewport-close:hover,
.module-viewport-close:focus-visible {
  border-color: rgba(255, 207, 122, 0.66);
  color: #fff;
}

.module-viewport-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #070b11;
}

@media (width <= 920px) {
  .pill-nav {
    --pill-pad-x: 0.72rem;
  }

  .pill .pill-label,
  .pill .pill-label-hover {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }
}

@media (width <= 720px) {
  .site-header {
    gap: 0.8rem;
  }

  .pill-nav-container {
    margin-left: auto;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .mobile-menu-button {
    display: flex;
  }
}

.story-eyebrow {
  background: linear-gradient(90deg, #7fefff 0%, #fff 34%, #ffe18f 68%, #d8c8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none !important;
  filter: drop-shadow(0 0 10px rgba(79, 195, 255, 0.82)) drop-shadow(0 0 16px rgba(255, 207, 122, 0.28));
}

.story-intro {
  background: linear-gradient(92deg, #fff 0%, #a8f4ff 28%, #fff0a8 60%, #ffb47a 82%, #d8c8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none !important;
  filter: drop-shadow(0 0 12px rgba(142, 231, 255, 0.55)) drop-shadow(0 0 18px rgba(255, 207, 122, 0.28));
}

.story-body {
  background: linear-gradient(95deg, #ffffff 0%, #c8f8ff 30%, #fff4b8 58%, #ffbd82 78%, #d9ccff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #f7fdff;
  font-weight: 640;
  opacity: 1;
  text-shadow: none !important;
  -webkit-text-stroke: 0.16px rgba(255, 255, 255, 0.46);
  filter: drop-shadow(0 0 8px rgba(142, 231, 255, 0.44)) drop-shadow(0 0 12px rgba(255, 207, 122, 0.22));
}

.story-chips span {
  background: linear-gradient(135deg, rgba(33, 169, 214, 0.72) 0%, rgba(91, 115, 255, 0.58) 52%, rgba(255, 207, 122, 0.55) 100%);
  border-color: rgba(142, 231, 255, 0.82);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28) inset,
    0 0 24px rgba(79, 195, 255, 0.42) inset,
    0 0 22px rgba(142, 231, 255, 0.38);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.52), 0 0 16px rgba(79, 195, 255, 0.5) !important;
}

.story-chips span:nth-child(2n) {
  background: linear-gradient(135deg, rgba(255, 188, 99, 0.72) 0%, rgba(105, 207, 255, 0.58) 100%);
  border-color: rgba(255, 207, 122, 0.86);
}

.story-chips span:nth-child(3n) {
  background: linear-gradient(135deg, rgba(174, 146, 255, 0.74) 0%, rgba(91, 214, 255, 0.56) 100%);
  border-color: rgba(191, 174, 255, 0.84);
}

@media (width <= 720px) {
  .story-title {
    -webkit-text-stroke: 0.66px rgba(255, 255, 255, 0.94);
    text-shadow:
      0 0 1px #fff,
      0 0 7px rgba(142, 231, 255, 0.24),
      0 0 12px rgba(191, 174, 255, 0.14);
  }
}

.footer-page {
  position: relative;
  z-index: 60;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 72% -18%, rgba(202, 246, 255, 0.24), transparent 18rem),
    radial-gradient(ellipse at 76% 6%, rgba(255, 178, 77, 0.13), transparent 14rem),
    radial-gradient(ellipse at 86% 20%, rgba(86, 208, 255, 0.14), transparent 18rem),
    radial-gradient(circle at 8% 84%, rgba(255, 178, 77, 0.1), transparent 24rem),
    linear-gradient(180deg, rgba(3, 6, 10, 0.1) 0%, rgba(7, 17, 26, 0.5) 18%, rgba(8, 20, 31, 0.66) 56%, rgba(5, 6, 10, 0.86) 100%);
  backdrop-filter: blur(34px) saturate(1.35);
  -webkit-backdrop-filter: blur(34px) saturate(1.35);
  color: #fff;
  padding: clamp(5.5rem, 9vw, 8rem) clamp(1.2rem, 5vw, 5rem) clamp(2rem, 4vw, 3.2rem);
}

.footer-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 8%, rgba(79, 195, 255, 0.24) 0 1px, transparent 2px),
    radial-gradient(circle at 64% 22%, rgba(255, 178, 77, 0.2) 0 1px, transparent 2px),
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 180px 140px, 220px 180px, 82px 82px, 82px 82px;
  mask-image: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.48) 10%, #000 34%, #000 82%, transparent 100%);
  opacity: 0.18;
}

.footer-page::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: clamp(5rem, 10vw, 9rem);
  pointer-events: none;
  background:
    radial-gradient(ellipse at 72% 0%, rgba(255, 245, 216, 0.12), transparent 19rem),
    linear-gradient(180deg, rgba(3, 6, 10, 0), rgba(5, 12, 20, 0.22) 48%, rgba(5, 15, 23, 0));
  opacity: 0.78;
}

.footer-orbit {
  position: absolute;
  width: min(48rem, 72vw);
  aspect-ratio: 1;
  right: -18vw;
  top: -22vw;
  border: 1px solid rgba(142, 231, 255, 0.34);
  border-radius: 999px;
  box-shadow:
    0 0 34px rgba(79, 195, 255, 0.24),
    inset 0 0 42px rgba(191, 174, 255, 0.14);
  animation: footerOrbitDrift 13s ease-in-out infinite alternate;
}

.footer-shell {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: calc(100svh - clamp(7.5rem, 13vw, 11.2rem));
  grid-template-columns: minmax(18rem, 0.86fr) minmax(24rem, 1.34fr);
  align-content: center;
  gap: clamp(2.4rem, 7vw, 7rem);
  max-width: 1280px;
  margin: 0 auto;
}

.footer-kicker {
  margin: 0 0 1rem;
  font-family: "Fira Code", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(0.82rem, 1vw, 0.98rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #8ee7ff, #fff, #ffcf7a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-brand-block h2 {
  margin: 0;
  font-family: Anton, Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(4rem, 9vw, 9.5rem);
  font-weight: 1000;
  line-height: 0.9;
  letter-spacing: 0;
  color: #fff;
  text-shadow: 0 0 1px #fff, 0 0 10px rgba(142, 231, 255, 0.26);
}

.footer-description {
  max-width: 34rem;
  margin: clamp(1.1rem, 2vw, 1.5rem) 0 0;
  font-size: clamp(1.05rem, 1.38vw, 1.28rem);
  font-weight: 620;
  line-height: 1.75;
  background: linear-gradient(95deg, #fff, #bff5ff 45%, #ffe2a3 78%, #d9ccff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
  margin-top: clamp(1.4rem, 2.4vw, 2rem);
}

.footer-socials a,
.footer-bottom a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2.45rem;
  border: 1px solid rgba(142, 231, 255, 0.52);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(33, 169, 214, 0.28), rgba(191, 174, 255, 0.2));
  color: #fff;
  padding: 0.62rem 0.92rem;
  font-family: "Fira Code", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 0 18px rgba(79, 195, 255, 0.18) inset;
}

.footer-socials a {
  width: 2.8rem;
  height: 2.8rem;
  min-height: 2.8rem;
  padding: 0;
}

.footer-social-icon {
  width: 1.28rem;
  height: 1.28rem;
  color: #fff;
  filter: drop-shadow(0 0 8px rgba(142, 231, 255, 0.48));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
}

.footer-column {
  border-top: 1px solid rgba(142, 231, 255, 0.34);
  padding-top: 1rem;
}

.footer-column h3 {
  margin: 0 0 1.15rem;
  color: #fff;
  font-size: clamp(1.02rem, 1.2vw, 1.18rem);
  font-weight: 900;
}

.footer-column ul {
  display: grid;
  gap: 0.82rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-column a {
  color: rgba(226, 248, 255, 0.86);
  font-size: clamp(0.92rem, 1vw, 1rem);
  font-weight: 620;
  line-height: 1.45;
  text-decoration: none;
  transition: color 0.2s ease, filter 0.2s ease;
}

.footer-column a:hover,
.footer-socials a:hover,
.footer-bottom a:hover {
  color: #fff;
  filter: drop-shadow(0 0 10px rgba(142, 231, 255, 0.56));
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: clamp(2.4rem, 5vw, 4.5rem);
  padding-top: 1.2rem;
  color: rgba(244, 241, 234, 0.72);
  font-family: "Fira Code", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  font-weight: 700;
}

.footer-legal {
  display: grid;
  gap: 0.34rem;
  max-width: 44rem;
  color: rgba(231, 249, 255, 0.8);
  line-height: 1.45;
}

.footer-legal span:first-child {
  color: #fff;
  font-weight: 900;
}

@keyframes footerOrbitDrift {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  to {
    transform: translate3d(-2.2rem, 1.4rem, 0) rotate(8deg);
  }
}

@media (width <= 980px) {
  .footer-shell {
    grid-template-columns: 1fr;
  }

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

@media (width <= 620px) {
  .footer-page {
    padding: 5rem 1rem 1.4rem;
  }

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

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

.footer-page {
  min-height: 52svh;
  box-shadow: inset 0 42px 70px rgba(255, 255, 255, 0.026);
  padding: clamp(2.3rem, 4vw, 3.7rem) clamp(1.2rem, 4.2vw, 4rem) clamp(1rem, 2vw, 1.6rem);
}

.landing-shell > .ambient-gold {
  display: none;
}

.landing-shell {
  padding-bottom: 0;
}

.story-scroll {
  position: relative;
  z-index: 12;
  background: transparent;
}

.story-scroll .hero {
  position: sticky;
}

.hero[data-footer-active="true"] .site-header {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.8rem);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.hero[data-footer-active="false"] .site-header {
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.story-scroll + .footer-page {
  position: relative;
  z-index: 14;
  min-height: 34svh;
  margin-top: 0;
  display: grid;
  align-items: center;
}

.footer-orbit {
  width: min(29rem, 48vw);
  right: -10vw;
  top: -14vw;
}

.footer-shell {
  min-height: auto;
  grid-template-columns: minmax(20rem, 0.88fr) minmax(31rem, 1.22fr);
  align-content: start;
  gap: clamp(2rem, 5vw, 5.2rem);
  max-width: 1320px;
  margin-left: 0;
  margin-right: auto;
}

.footer-kicker {
  margin-bottom: 0.58rem;
  font-size: clamp(0.66rem, 0.8vw, 0.78rem);
}

.footer-brand-block h2 {
  font-size: clamp(2.25rem, 4.8vw, 5.25rem);
  line-height: 0.9;
  text-shadow: 0 0 1px #fff, 0 0 6px rgba(142, 231, 255, 0.18);
}

.footer-description {
  max-width: 30rem;
  margin-top: 0.76rem;
  font-size: clamp(0.82rem, 1vw, 0.96rem);
  line-height: 1.55;
}

.footer-socials {
  gap: 0.5rem;
  margin-top: 0.95rem;
}

.footer-socials a {
  width: 2.25rem;
  height: 2.25rem;
  min-height: 2.25rem;
}

.footer-social-icon {
  width: 1.05rem;
  height: 1.05rem;
}

.footer-columns {
  gap: clamp(0.72rem, 1.3vw, 1.1rem);
  align-self: start;
}

.footer-column {
  padding-top: 0.72rem;
}

.footer-column h3 {
  margin-bottom: 0.72rem;
  font-size: clamp(0.84rem, 0.95vw, 0.96rem);
}

.footer-column ul {
  gap: 0.46rem;
}

.footer-column a {
  font-size: clamp(0.74rem, 0.82vw, 0.84rem);
  line-height: 1.34;
}

.footer-bottom {
  margin-top: clamp(1.2rem, 2vw, 1.8rem);
  padding-top: 0.72rem;
  font-size: 0.68rem;
}

.footer-legal {
  grid-template-columns: repeat(2, minmax(0, max-content));
  column-gap: 1rem;
  row-gap: 0.22rem;
  max-width: 50rem;
  line-height: 1.34;
}

.footer-bottom a {
  min-height: 2.1rem;
  padding: 0.46rem 0.72rem;
  font-size: 0.72rem;
}

@media (width <= 980px) {
  .footer-page {
    min-height: 42svh;
  }

  .footer-shell {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

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

  .footer-description {
    max-width: 44rem;
  }
}

@media (width <= 720px) {
  .footer-page {
    min-height: auto;
    padding: 3.5rem 1rem 1.2rem;
  }

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

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

.ruler-sidebar-shell {
  position: absolute;
  z-index: 34;
  top: 50%;
  right: clamp(1.2rem, 2.8vw, 3rem);
  transform: translateY(-50%);
  pointer-events: auto;
}

.line-sidebar {
  --accent-color: #a855f7;
  --text-color: #c4c4c4;
  --marker-color: #6c6c6c;
  --marker-length: 60px;
  --marker-gap: 0px;
  --tick-scale: 0.5;
  --max-shift: 30px;
  --item-gap: 20px;
  --font-size: 1.1rem;
  --smoothing: 100ms;
  position: relative;
  display: flex;
  justify-content: flex-start;
}

.line-sidebar--markers {
  padding-left: calc(var(--marker-length) + var(--marker-gap));
}

.line-sidebar__list {
  display: flex;
  flex-direction: column;
  gap: var(--item-gap);
  margin: 0;
  padding: 1rem 0;
  list-style: none;
}

.line-sidebar__item {
  position: relative;
  cursor: pointer;
  --effect: 0;
}

.line-sidebar__item::before {
  content: "";
  position: absolute;
  inset: -6px -48px;
}

.line-sidebar__label {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  font-family: "Fira Code", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--font-size);
  font-weight: 800;
  line-height: 1.2;
  color: color-mix(in srgb, var(--accent-color) calc(var(--effect, 0) * 100%), var(--text-color));
  text-transform: uppercase;
  transform: translateX(calc(var(--effect, 0) * var(--max-shift)));
}

.line-sidebar__index {
  margin-right: 0.6rem;
  font-size: 0.85em;
  opacity: calc(0.55 + var(--effect, 0) * 0.45);
}

.line-sidebar__text {
  white-space: nowrap;
}

.line-sidebar__marker {
  position: absolute;
  top: 50%;
  left: calc(-1 * var(--marker-length) - var(--marker-gap));
  width: var(--marker-length);
  height: 1px;
  background-color: color-mix(in srgb, var(--accent-color) calc(var(--effect, 0) * 100%), var(--marker-color));
  transform: translateY(-50%) scaleX(calc(0.7 + var(--effect, 0) * 0.5));
  transform-origin: left center;
}

.line-sidebar--markers .line-sidebar__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(100% + var(--item-gap) / 2);
  left: calc(-1 * var(--marker-length) - var(--marker-gap));
  width: calc(var(--marker-length) * var(--tick-scale));
  height: 1px;
  background-color: var(--marker-color);
  opacity: 0.5;
  transform: translateY(-50%);
}

.line-sidebar--scale-tick .line-sidebar__item:not(:last-child)::after {
  transform: translateY(-50%) scaleX(calc(0.7 + var(--effect, 0) * 0.6));
  transform-origin: left center;
}

.ruler-sidebar .line-sidebar__item[aria-current="true"] .line-sidebar__label {
  color: var(--accent-color);
}

.ruler-sidebar .line-sidebar__item[aria-current="true"] .line-sidebar__marker {
  background-color: var(--accent-color);
}

@media (width <= 980px) {
  .ruler-sidebar-shell {
    right: 0.75rem;
  }

  .ruler-sidebar {
    --marker-length: 42px !important;
    --max-shift: 16px !important;
    --item-gap: 14px !important;
    --font-size: 0.72rem !important;
  }
}

@media (width <= 720px) {
  .ruler-sidebar-shell {
    display: none;
  }
}
