:root {
  color-scheme: dark;
  --black: #050608;
  --ink: #f5f7f9;
  --muted: #aeb6bf;
  --line: rgba(255, 255, 255, 0.22);
  --cyan: #48cad4;
  --yellow: #f2cf55;
  --orange: #ff8d55;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--black);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  letter-spacing: 0;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 6, 8, 0.42);
  backdrop-filter: blur(14px);
}

.brand,
.mode-nav a {
  color: var(--ink);
  text-decoration: none;
}

.brand {
  font-size: 15px;
  font-weight: 750;
}

.mode-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.mode-nav a {
  position: relative;
  padding: 8px 0;
  color: var(--muted);
  font-size: 14px;
}

.mode-nav a:hover,
.mode-nav a:focus-visible,
.mode-nav .is-active {
  color: var(--ink);
}

.mode-nav .is-active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--cyan);
  content: "";
}

.hero {
  position: relative;
  min-height: 92svh;
  overflow: hidden;
  background: #050608;
}

.hero-image,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: 50% 48%;
  transform: scale(1.015);
  will-change: transform;
}

.hero-scrim {
  background: linear-gradient(180deg, rgba(5, 6, 8, 0.08) 20%, rgba(5, 6, 8, 0.26) 58%, rgba(5, 6, 8, 0.94) 100%);
}

.hero-copy {
  position: absolute;
  z-index: 2;
  right: 44px;
  bottom: 58px;
  left: 44px;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 750;
}

.hero h1 {
  margin: 0;
  font-size: 82px;
  font-weight: 620;
  line-height: 0.96;
}

.hero-summary {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(245, 247, 249, 0.84);
  font-size: 18px;
  line-height: 1.55;
}

.hero-next {
  position: absolute;
  z-index: 3;
  right: 44px;
  bottom: 48px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 50%;
  color: var(--ink);
  font-size: 21px;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.hero-next:hover,
.hero-next:focus-visible {
  background: var(--ink);
  color: var(--black);
}

.stories {
  position: relative;
  height: 4100px;
  background: #090b0e;
}

.stories-sticky {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  height: 100svh;
  padding: 100px 0 34px;
  overflow: hidden;
}

.stories-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 0 44px 28px;
}

.stories-heading .eyebrow {
  margin-bottom: 9px;
}

.stories-heading h2,
.closing h2,
.lightbox-copy h2 {
  margin: 0;
  font-size: 42px;
  font-weight: 610;
  line-height: 1.08;
}

.story-count {
  margin: 0;
  color: var(--muted);
  font: 14px/1.2 ui-monospace, "SFMono-Regular", Consolas, monospace;
}

.track-viewport {
  width: 100vw;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.story-track {
  display: flex;
  gap: 24px;
  height: 100%;
  padding: 0 calc(50vw - min(35vw, 560px));
  will-change: transform;
}

.story {
  position: relative;
  flex: 0 0 min(70vw, 1120px);
  min-width: 0;
  height: 100%;
  max-height: 690px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  background: #11151a;
  color: var(--ink);
  cursor: pointer;
  opacity: 0.54;
  transform: scale(0.94);
  transform-origin: center;
  transition: opacity 280ms ease, transform 280ms ease, border-color 280ms ease;
}

.story.is-active {
  border-color: rgba(255, 255, 255, 0.52);
  opacity: 1;
  transform: scale(1);
}

.story:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

.story img,
.story-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.story img {
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.story:hover img,
.story:focus-visible img {
  transform: scale(1.025);
}

.story-shade {
  background: linear-gradient(180deg, rgba(5, 6, 8, 0.02) 30%, rgba(5, 6, 8, 0.88) 100%);
}

.story-copy {
  position: absolute;
  z-index: 2;
  right: 34px;
  bottom: 32px;
  left: 34px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: end;
  text-align: left;
}

.story-number {
  grid-row: 1 / span 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--cyan);
  color: #051013;
  font-size: 13px;
  font-weight: 800;
}

.story:nth-child(2) .story-number {
  background: var(--yellow);
}

.story:nth-child(3) .story-number {
  background: var(--orange);
}

.story:nth-child(4) .story-number {
  background: #f2f3f4;
}

.story-copy strong {
  overflow-wrap: anywhere;
  font-size: 34px;
  font-weight: 650;
  line-height: 1.05;
}

.story-copy > span:last-child {
  margin-top: 9px;
  color: rgba(245, 247, 249, 0.72);
  font-size: 14px;
}

.story-controls {
  display: grid;
  grid-template-columns: 44px minmax(120px, 340px) 44px;
  align-items: center;
  justify-content: end;
  gap: 14px;
  padding: 28px 44px 0;
}

.story-controls button,
.lightbox-close,
.lightbox-arrow {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
}

.story-controls button:hover,
.story-controls button:focus-visible,
.lightbox button:hover,
.lightbox button:focus-visible {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--black);
}

.story-progress {
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
}

.story-progress span {
  display: block;
  width: 25%;
  height: 100%;
  background: var(--cyan);
  transform-origin: left;
  transition: width 220ms ease;
}

.archive {
  padding: 130px max(44px, calc((100vw - 1500px) / 2));
  border-top: 1px solid var(--line);
  background: #090b0e;
}

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

.archive-heading h2 {
  margin: 0;
  font-size: 52px;
  font-weight: 610;
  line-height: 1.05;
}

.archive-heading > p {
  margin: 0;
  color: var(--muted);
  font: 13px/1.2 ui-monospace, "SFMono-Regular", Consolas, monospace;
}

.archive-filters {
  display: inline-flex;
  max-width: 100%;
  margin-bottom: 36px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.archive-filters button {
  min-height: 42px;
  padding: 9px 16px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: 13px/1.2 Inter, "Segoe UI", Arial, sans-serif;
  white-space: nowrap;
  cursor: pointer;
}

.archive-filters button:last-child {
  border-right: 0;
}

.archive-filters button:hover,
.archive-filters button:focus-visible,
.archive-filters button.is-active {
  background: var(--ink);
  color: var(--black);
}

.archive-grid {
  columns: 4 280px;
  column-gap: 14px;
}

.archive-item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 2px;
  background: #11151a;
  color: var(--ink);
  cursor: pointer;
  break-inside: avoid;
}

.archive-item[hidden] {
  display: none;
}

.archive-item::after {
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(180deg, transparent, rgba(3, 4, 6, 0.84));
  content: "";
}

.archive-item img {
  display: block;
  width: 100%;
  aspect-ratio: var(--image-ratio);
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.archive-item:hover img,
.archive-item:focus-visible img {
  transform: scale(1.025);
}

.archive-item:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.archive-item-copy {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 16px;
  left: 18px;
  display: grid;
  gap: 5px;
  text-align: left;
}

.archive-item-copy strong {
  overflow-wrap: anywhere;
  font-size: 16px;
  font-weight: 620;
}

.archive-item-copy span {
  color: rgba(245, 247, 249, 0.68);
  font-size: 11px;
}

.closing {
  min-height: 72svh;
  padding: 150px 10vw;
  background: #f0f2f1;
  color: #101418;
}

.closing .eyebrow {
  color: #087a85;
}

.closing h2 {
  max-width: 800px;
  font-size: 64px;
}

.closing > p:last-child {
  max-width: 690px;
  margin: 30px 0 0;
  color: #4a555e;
  font-size: 18px;
  line-height: 1.65;
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100svh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #020304;
  color: var(--ink);
}

.lightbox::backdrop {
  background: #020304;
}

.lightbox[open] {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 74px;
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
}

.lightbox img {
  grid-column: 1 / -1;
  grid-row: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox-close,
.lightbox-arrow,
.lightbox-copy {
  position: relative;
  z-index: 2;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 24px;
}

.lightbox-arrow {
  grid-row: 1;
  margin: 0 auto;
  background: rgba(5, 6, 8, 0.6);
  backdrop-filter: blur(8px);
}

.lightbox-previous {
  grid-column: 1;
}

.lightbox-next {
  grid-column: 3;
}

.lightbox-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 80px 8vw 34px;
  background: linear-gradient(180deg, transparent, rgba(2, 3, 4, 0.92));
}

.lightbox-copy .eyebrow {
  margin-bottom: 8px;
}

.lightbox-copy #lightbox-description {
  max-width: 680px;
  margin: 12px 0 0;
  color: rgba(245, 247, 249, 0.75);
  font-size: 15px;
  line-height: 1.55;
}

.lightbox-action {
  display: none;
  width: fit-content;
  margin-top: 18px;
  padding: 9px 0;
  border-bottom: 1px solid var(--cyan);
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
}

.lightbox-action.is-visible {
  display: inline-flex;
}

.lightbox-action:hover,
.lightbox-action:focus-visible {
  color: var(--cyan);
}

@media (max-width: 760px) {
  .site-header {
    height: 62px;
    padding: 0 18px;
  }

  .mode-nav {
    gap: 18px;
  }

  .hero {
    min-height: 88svh;
  }

  .hero-copy {
    right: 20px;
    bottom: 66px;
    left: 20px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-summary {
    font-size: 15px;
  }

  .hero-next {
    right: 18px;
    bottom: 18px;
  }

  .stories {
    height: auto;
    padding: 74px 0 56px;
  }

  .stories-sticky {
    position: static;
    display: block;
    height: auto;
    padding: 0;
    overflow: visible;
  }

  .stories-heading {
    padding: 0 20px 24px;
  }

  .stories-heading h2 {
    font-size: 32px;
  }

  .track-viewport {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .track-viewport::-webkit-scrollbar {
    display: none;
  }

  .story-track {
    gap: 12px;
    width: max-content;
    height: 66svh;
    min-height: 470px;
    padding: 0 20px;
    transform: none !important;
    scroll-snap-type: x mandatory;
  }

  .story {
    flex-basis: 84vw;
    height: 100%;
    opacity: 1;
    transform: none;
    scroll-snap-align: center;
  }

  .story-copy {
    right: 20px;
    bottom: 22px;
    left: 20px;
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .story-copy strong {
    font-size: 27px;
  }

  .story-controls {
    grid-template-columns: 42px minmax(100px, 1fr) 42px;
    padding: 22px 20px 0;
  }

  .closing {
    min-height: 68svh;
    padding: 100px 24px;
  }

  .archive {
    padding: 92px 20px;
  }

  .archive-heading h2 {
    font-size: 38px;
  }

  .archive-grid {
    columns: 2 150px;
    column-gap: 9px;
  }

  .archive-item {
    margin-bottom: 9px;
  }

  .archive-item-copy {
    right: 11px;
    bottom: 10px;
    left: 11px;
  }

  .archive-item-copy strong {
    font-size: 13px;
  }

  .closing h2 {
    font-size: 42px;
  }

  .closing > p:last-child {
    font-size: 16px;
  }

  .lightbox[open] {
    grid-template-columns: 56px minmax(0, 1fr) 56px;
  }

  .lightbox-copy {
    padding: 70px 20px 22px;
  }

  .lightbox-copy h2 {
    font-size: 32px;
  }
}

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

  .hero-image,
  .story,
  .story img,
  .story-progress span {
    transition: none;
  }
}
