.webgl-magazine-page {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: #ffffff;
  color: #000000;
}

html.webgl-magazine-scroll-locked,
body.webgl-magazine-page.is-about-scroll-locked {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body.webgl-magazine-page.is-about-scroll-locked {
  position: fixed;
  inset: 0;
  width: 100%;
}

.webgl-magazine-page .webgl-magazine-nav {
  z-index: 8;
  color: rgba(0, 0, 0, 0.82);
}

.webgl-magazine-page .site-nav__logo img {
  opacity: 0.94;
}

.webgl-magazine-page .nav-submenu {
  color: rgba(0, 0, 0, 0.82);
}

.webgl-magazine-gallery {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
  background: #ffffff;
  isolation: isolate;
}

.webgl-magazine-gallery__hint {
  position: absolute;
  top: clamp(112px, 22svh, 154px);
  left: 50%;
  z-index: 7;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow:
    0 16px 44px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(255, 255, 255, 0.26);
  color: rgba(0, 0, 0, 0.72);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  padding: 0 18px;
  pointer-events: none;
  text-transform: lowercase;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition:
    opacity 620ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 620ms cubic-bezier(0.22, 1, 0.36, 1);
  user-select: none;
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
}

.webgl-magazine-gallery.is-hint-visible .webgl-magazine-gallery__hint {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.webgl-magazine-gallery__stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #ffffff;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.webgl-magazine-gallery__stage.has-hovered-page {
  cursor: zoom-in;
}

.webgl-magazine-gallery__stage.is-dragging {
  cursor: grabbing;
}

.webgl-magazine-gallery canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.webgl-magazine-playhead {
  --playhead-top: 70%;
  position: absolute;
  top: var(--playhead-top);
  left: var(--playhead-left, 50%);
  z-index: 6;
  display: grid;
  width: max-content;
  justify-items: center;
  color: rgba(0, 0, 0, 0.46);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition:
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  user-select: none;
}

.webgl-magazine-gallery.is-settled .webgl-magazine-playhead {
  opacity: 1;
  transform: translate(-50%, 0);
}

.webgl-magazine-playhead__needle {
  position: relative;
  display: block;
  width: 1px;
  height: 27px;
  margin-bottom: 8px;
  background: linear-gradient(180deg, rgba(255, 0, 47, 0), rgba(255, 0, 47, 0.78) 58%, #ff002f);
}

.webgl-magazine-playhead__needle::after {
  position: absolute;
  right: 50%;
  bottom: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff002f;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.72),
    0 0 0 4px rgba(255, 0, 47, 0.08),
    0 3px 12px rgba(255, 0, 47, 0.2);
  content: "";
  transform: translateX(50%);
}

.webgl-magazine-playhead__count {
  font-size: 8px;
  font-weight: 680;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.webgl-magazine-playhead__progress {
  display: grid;
  grid-template-columns: repeat(3, 12px);
  gap: 3px;
  margin-top: 6px;
}

.webgl-magazine-playhead__progress i {
  display: block;
  height: 1px;
  background: rgba(0, 0, 0, 0.14);
  transition:
    background 260ms ease,
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.webgl-magazine-playhead__progress i.is-complete {
  background: rgba(0, 0, 0, 0.34);
}

.webgl-magazine-playhead__progress i.is-active {
  background: #ff002f;
  transform: scaleY(2);
}

.webgl-magazine-playhead.is-phase-start .webgl-magazine-playhead__needle::after {
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.76),
    0 0 0 5px rgba(255, 0, 47, 0.08),
    0 3px 14px rgba(255, 0, 47, 0.24);
}

.webgl-magazine-timeline {
  position: absolute;
  right: clamp(16px, 2.4vw, 34px);
  bottom: 0;
  left: clamp(16px, 2.4vw, 34px);
  z-index: 7;
  display: flex;
  justify-content: center;
  opacity: 0;
  padding-bottom: clamp(78px, 9svh, 104px);
  pointer-events: none;
  transform: translateY(18px) scale(0.985);
  transition:
    opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

.webgl-magazine-gallery.is-settled .webgl-magazine-timeline,
.webgl-magazine-timeline.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.webgl-magazine-timeline__glass {
  position: relative;
  display: grid;
  width: min(100%, 1050px);
  min-height: 122px;
  align-items: end;
  grid-template-columns: minmax(230px, 0.72fr) minmax(430px, 1.28fr);
  column-gap: clamp(22px, 3vw, 44px);
  row-gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.38)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.2));
  box-shadow:
    0 22px 70px rgba(15, 23, 42, 0.13),
    0 6px 22px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(255, 255, 255, 0.24);
  overflow: hidden;
  padding: 14px 20px 15px;
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
}

.webgl-magazine-timeline__glass::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0) 34%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 78%, rgba(0, 0, 0, 0.06));
  opacity: 0.48;
  pointer-events: none;
}

.webgl-magazine-timeline__header,
.webgl-magazine-timeline__active,
.webgl-magazine-timeline__rail {
  position: relative;
  z-index: 1;
}

.webgl-magazine-timeline__header {
  align-self: start;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(0, 0, 0, 0.48);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.webgl-magazine-timeline__active {
  min-width: 0;
}

.webgl-magazine-timeline__active p,
.webgl-magazine-timeline__active h2 {
  margin: 0;
}

.webgl-magazine-timeline__active h2 {
  margin-top: 6px;
  color: rgba(0, 0, 0, 0.84);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(21px, 2.15vw, 31px);
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0;
}

.webgl-magazine-timeline__active p:last-child {
  max-width: 360px;
  margin: 7px 0 0;
  color: rgba(0, 0, 0, 0.58);
  font-size: clamp(12px, 0.98vw, 14px);
  font-weight: 450;
  line-height: 1.28;
}

.webgl-magazine-timeline__rail {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(9px, 1.2vw, 16px);
  padding-top: 18px;
}

.webgl-magazine-timeline__line {
  position: absolute;
  top: 7px;
  right: 0;
  left: 0;
  height: 1px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.12);
}

.webgl-magazine-timeline__line span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(255, 0, 47, 0.82));
  transform: scaleX(var(--timeline-progress, 0));
  transform-origin: left center;
  transition: transform 460ms cubic-bezier(0.22, 1, 0.36, 1);
}

.webgl-magazine-timeline__rail button {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 7px;
  color: rgba(0, 0, 0, 0.42);
  cursor: pointer;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  text-align: left;
  transition:
    color 220ms ease,
    transform 220ms ease;
}

.webgl-magazine-timeline__rail button::before {
  display: block;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  content: "";
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition:
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.webgl-magazine-timeline__rail button span {
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.webgl-magazine-timeline__rail button strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 650;
  line-height: 1;
}

.webgl-magazine-timeline__rail button:hover,
.webgl-magazine-timeline__rail button:focus-visible,
.webgl-magazine-timeline__rail button.is-active {
  color: rgba(0, 0, 0, 0.86);
  transform: translateY(-2px);
}

.webgl-magazine-timeline__rail button:hover::before,
.webgl-magazine-timeline__rail button:focus-visible::before,
.webgl-magazine-timeline__rail button.is-active::before {
  border-color: rgba(255, 0, 47, 0.52);
  background: #ff002f;
  box-shadow:
    0 0 0 5px rgba(255, 0, 47, 0.1),
    0 0 22px rgba(255, 0, 47, 0.24);
  transform: scale(1.06);
}

.webgl-magazine-focus {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    clamp(72px, 10svh, 110px)
    clamp(24px, 4vw, 52px)
    clamp(34px, 5svh, 58px);
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 34%),
    rgba(248, 250, 252, 0.2);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 360ms cubic-bezier(0.22, 1, 0.36, 1),
    background 360ms cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
}

.webgl-magazine-focus.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.webgl-magazine-focus[hidden] {
  display: none;
}

.webgl-magazine-focus__panel {
  position: relative;
  width: fit-content;
  max-width: min(100%, 1180px);
  margin-inline: auto;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  transition:
    opacity 440ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 440ms cubic-bezier(0.22, 1, 0.36, 1);
}

.webgl-magazine-focus.is-visible .webgl-magazine-focus__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.webgl-magazine-focus__shell {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: clamp(32px, 4.5vw, 56px);
}

.webgl-magazine-focus__content {
  display: grid;
  flex: 1 1 auto;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  align-items: center;
  grid-template-columns: min(34vw, 360px) min(40vw, 480px);
  grid-template-rows: auto auto;
  column-gap: clamp(28px, 3.6vw, 44px);
  row-gap: 14px;
}

.webgl-magazine-focus__image-wrap {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  width: min(100%, 360px, 37.333svh);
  max-height: min(56svh, 580px);
  aspect-ratio: var(--focus-page-ratio, 2 / 3);
  justify-self: center;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.34)),
    rgba(255, 255, 255, 0.42);
  box-shadow:
    0 30px 90px rgba(15, 23, 42, 0.18),
    0 12px 34px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -1px 0 rgba(255, 255, 255, 0.24);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
}

.webgl-magazine-focus__image-wrap::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0) 22%, rgba(0, 0, 0, 0.08) 100%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0) 38%);
  opacity: 0.42;
  pointer-events: none;
}

.webgl-magazine-focus__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.webgl-magazine-focus__meta {
  display: flex;
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow:
    0 14px 40px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  color: rgba(0, 0, 0, 0.72);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  padding: 11px 15px;
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
}

.webgl-magazine-focus__story {
  display: block;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  max-height: min(54svh, 540px);
  align-self: center;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 14px 8px 0;
  scrollbar-color: rgba(0, 0, 0, 0.24) transparent;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.webgl-magazine-focus__story::-webkit-scrollbar {
  width: 5px;
}

.webgl-magazine-focus__story::-webkit-scrollbar-track {
  background: transparent;
}

.webgl-magazine-focus__story::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
}

.webgl-magazine-focus__story:focus-visible {
  border-radius: 8px;
  outline: 2px solid rgba(255, 0, 47, 0.38);
  outline-offset: 4px;
}

.webgl-magazine-focus__story p {
  margin: 0;
  color: rgba(0, 0, 0, 0.78);
  font-family: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  font-size: clamp(25px, 2.2vw, 34px);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: 0.01em;
  max-width: 30ch;
  text-wrap: pretty;
}

.webgl-magazine-focus__meta span {
  color: rgba(0, 0, 0, 0.46);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.webgl-magazine-focus__meta strong {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.webgl-magazine-focus__close {
  position: absolute;
  top: clamp(90px, 12svh, 116px);
  right: clamp(18px, 3vw, 42px);
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
  box-shadow:
    0 16px 44px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition:
    background 180ms ease,
    transform 180ms ease;
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
}

.webgl-magazine-focus__close:hover,
.webgl-magazine-focus__close:focus-visible {
  background: rgba(255, 255, 255, 0.66);
  transform: translateY(-1px);
}

.webgl-magazine-focus__close span,
.webgl-magazine-focus__close span::after {
  display: block;
  width: 15px;
  height: 1.5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
}

.webgl-magazine-focus__close span {
  transform: rotate(45deg);
}

.webgl-magazine-focus__close span::after {
  content: "";
  transform: rotate(90deg);
}

.webgl-magazine-focus__nav {
  position: relative;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
  box-shadow:
    0 16px 44px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  color: rgba(0, 0, 0, 0.7);
  cursor: pointer;
  transition:
    background 180ms ease,
    transform 180ms ease,
    opacity 180ms ease;
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
}

.webgl-magazine-focus__nav-icon {
  display: block;
  width: 12px;
  height: 12px;
}

.webgl-magazine-focus__nav:hover,
.webgl-magazine-focus__nav:focus-visible {
  background: rgba(255, 255, 255, 0.66);
  transform: translateY(-1px);
}

.webgl-magazine-gallery__fallback {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: min(360px, calc(100% - 40px));
  padding: 20px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.72);
  color: rgba(255, 255, 255, 0.9);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
  transform: translate(-50%, -50%);
}

@media (max-width: 760px) {
  .webgl-magazine-page .webgl-magazine-nav {
    color: rgba(0, 0, 0, 0.78);
  }

  .webgl-magazine-gallery__hint {
    top: clamp(96px, 18svh, 118px);
    min-height: 36px;
    font-size: 12px;
    padding: 0 16px;
  }

  .webgl-magazine-playhead__needle {
    height: 21px;
    margin-bottom: 7px;
  }

  .webgl-magazine-playhead__count {
    font-size: 7px;
  }

  .webgl-magazine-playhead__progress {
    grid-template-columns: repeat(3, 10px);
  }

  .webgl-magazine-timeline {
    right: 12px;
    bottom: 0;
    left: 12px;
    padding-bottom: 12px;
  }

  .webgl-magazine-timeline__glass {
    display: block;
    min-height: 0;
    border-radius: 8px;
    padding: 13px 15px 14px;
  }

  .webgl-magazine-timeline__header {
    margin-bottom: 9px;
  }

  .webgl-magazine-timeline__active h2 {
    font-size: 22px;
  }

  .webgl-magazine-timeline__active p:last-child {
    max-width: none;
    font-size: 12px;
  }

  .webgl-magazine-timeline__rail {
    grid-template-columns: repeat(5, minmax(64px, 1fr));
    gap: 10px;
    overflow-x: auto;
    margin: 11px -4px 0;
    padding: 17px 4px 2px;
    scrollbar-width: none;
  }

  .webgl-magazine-timeline__rail::-webkit-scrollbar {
    display: none;
  }

  .webgl-magazine-timeline__rail button strong {
    font-size: 12px;
  }

  .webgl-magazine-focus {
    align-items: flex-start;
    padding: 86px 14px 22px;
  }

  .webgl-magazine-focus__panel {
    width: 100%;
    max-width: 100%;
  }

  .webgl-magazine-focus__shell {
    width: 100%;
    gap: 18px;
  }

  .webgl-magazine-focus__content {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    row-gap: 18px;
    column-gap: 0;
  }

  .webgl-magazine-focus__image-wrap {
    grid-row: 1;
    width: min(100%, 33.333svh);
    max-height: 50svh;
  }

  .webgl-magazine-focus__meta {
    grid-row: 2;
  }

  .webgl-magazine-focus__story {
    grid-column: 1;
    grid-row: 3;
    max-height: 20svh;
    padding: 4px 10px 4px 0;
  }

  .webgl-magazine-focus__story p {
    max-width: 28ch;
    margin-inline: auto;
    font-size: clamp(24px, 7vw, 32px);
    text-align: center;
  }

  .webgl-magazine-focus__nav {
    width: 38px;
    height: 38px;
    align-self: center;
  }

  .webgl-magazine-focus__nav-icon {
    width: 11px;
    height: 11px;
  }

  .webgl-magazine-focus__close {
    top: 86px;
    right: 16px;
    width: 38px;
    height: 38px;
  }
}
