:root {
  color-scheme: dark;
  font-family: "Avenir Next", Avenir, system-ui, sans-serif;
  color: #fff8ff;
  background: #170f24;
  scroll-behavior: smooth;
  --canvas: #170f24;
  --ink-muted: #e5d9f2;
  --edge: #e7cbff38;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  display: flow-root;
  margin: 0;
  min-width: 0;
  background:
    radial-gradient(ellipse at 74% 4%, #854ca4, transparent 58%),
    radial-gradient(ellipse at 23% 42%, #411870, transparent 63%),
    linear-gradient(136deg, #1f143d 4%, #321651 45%, var(--canvas) 85%)
    top center / 100% var(--backdrop-height, min(76vw, 1325px)) no-repeat;
}
a { color: inherit; }
button { font: inherit; }
a:focus-visible, button:focus-visible, article:focus-visible {
  outline: 2px solid #ffe3a3;
  outline-offset: 4px;
}
[hidden] { display: none !important; }
.skip-link {
  position: fixed;
  z-index: 5;
  top: .5rem;
  left: .5rem;
  padding: .7rem 1rem;
  border-radius: .6rem;
  background: #27153c;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: absolute;
  z-index: 3;
  inset: 0 0 auto;
  padding: 22px clamp(16px, 5vw, 88px) 0;
}
.navigation {
  max-width: 1300px;
  min-height: 65px;
  margin: 0 auto;
  padding: 4px 11px 4px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #f4ddff69;
  border-radius: 999px;
  background: #e2b7ff20;
  box-shadow: inset 0 1px 0 #ffffff29;
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; border-radius: 8px; }
.brand img { display: block; width: 149px; height: auto; }
.nav-links { display: flex; align-items: center; }
.nav-links > a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .48em;
  min-height: 44px;
  border-radius: 9px;
  color: #fff4ff;
  text-decoration: none;
  white-space: nowrap;
}
.nav-links > a:hover { text-decoration: underline; text-underline-offset: .28em; }
.nav-icon { position: relative; width: 1.02em; height: 1.02em; flex: none; color: #ffe8ff; }
.nav-icon::before, .nav-icon::after { content: ""; position: absolute; }
.nav-icon-home::before {
  width: .61em;
  height: .61em;
  inset: .14em auto auto .2em;
  border: solid currentColor;
  border-width: 1.5px 0 0 1.5px;
  border-radius: 1px;
  transform: rotate(45deg);
}
.nav-icon-home::after {
  inset: .49em .15em .13em;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px;
  border-radius: 0 0 2px 2px;
}
.nav-icon-featured::before {
  inset: 0;
  background: currentColor;
  clip-path: polygon(50% 1%, 64% 35%, 100% 37%, 73% 60%, 80% 96%, 50% 77%, 20% 96%, 27% 60%, 0 37%, 36% 35%);
}
.nav-icon-discover::before { inset: .04em; border: 1.5px solid currentColor; border-radius: 50%; }
.nav-icon-discover::after {
  inset: .24em;
  background: currentColor;
  clip-path: polygon(96% 4%, 68% 68%, 4% 96%, 32% 32%);
}

.hero {
  container-type: inline-size;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #e9c4fa5c;
  border-radius: clamp(10px, 1vw, 18px);
  background:
    radial-gradient(ellipse at 100% 5%, #b98ad19c, transparent 75%),
    linear-gradient(119deg, #6b3ba6 4%, #8856b4 52%, #a573bb 100%);
  box-shadow: 0 22px 80px #16092359;
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 66rem;
  margin-inline: auto;
  padding-inline: 20px;
  text-align: center;
}
.hero h1 {
  margin: 0;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.05em;
  text-shadow: 0 2px 14px #30104136;
}
.hero p {
  max-width: 36ch;
  color: #fff2ff;
  line-height: 1.5;
  text-wrap: balance;
}
.hero-actions { display: flex; justify-content: center; gap: clamp(8px, 1vw, 18px); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(42px, 3.5vw, 63px);
  padding: 4px 5px 4px clamp(12px, 1.65vw, 30px);
  gap: clamp(7px, 1.28vw, 21px);
  border: 1px solid #f2cbff78;
  border-radius: 999px;
  color: #fff;
  font-size: clamp(.78rem, 1.22vw, 1.35rem);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.primary {
  background: linear-gradient(97deg, #c797d3 0%, #8b45a5 42%, #68288e 75%);
  box-shadow: inset 0 1px 0 #ffffff40, 0 3px 12px #330e4b26;
}
.primary:hover { background: linear-gradient(97deg, #d5a7e0, #74339c 58%, #5d1c83); }
.secondary { padding-inline: clamp(11px, 1.8vw, 33px); background: #ffffff12; border-color: #f7dcff93; }
.secondary:hover { background: #ffffff28; }
.button span {
  display: grid;
  place-items: center;
  width: clamp(29px, 2.66vw, 48px);
  height: clamp(29px, 2.66vw, 48px);
  border-radius: 50%;
  background: #fffbff;
  color: #68288e;
  font-size: 1.18em;
}

.showcase {
  container-type: inline-size;
  max-width: 1580px;
  position: relative;
  margin: clamp(6px, 1.1vw, 16px) auto 0;
}
.rail {
  display: flex;
  align-items: center;
  gap: var(--poster-gap);
  padding: 0 calc((100cqw - var(--poster)) / 2);
  overflow: auto hidden;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.rail::-webkit-scrollbar { display: none; }
.poster {
  position: relative;
  --depth: min(var(--depth-limit, 3), var(--curve-distance, var(--distance)));
  flex: 0 0 var(--poster);
  height: var(--center-height);
  scroll-snap-align: center;
  display: block;
  border-radius: clamp(9px, 1.18cqw, 20px);
}
.poster img, .story img { display: block; width: 100%; height: auto; }
.poster > img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(var(--poster) + var(--depth) * var(--width-growth));
  height: calc(var(--center-height) + var(--depth) * var(--height-growth) + var(--depth) * var(--depth) * var(--height-curve));
  object-fit: cover;
  object-position: center top;
  border-radius: inherit;
  background: #38234f;
  box-shadow: 0 5px 14px #26133738;
  /* Only the image bends, so the poster's scroll snap area stays fixed. */
  transform: translate(-50%, -50%) translateX(calc(var(--curve-shift, 0) * var(--shift-unit)))
    perspective(var(--perspective)) rotateY(var(--curve-yaw, var(--yaw)));
  transition: box-shadow .2s;
}
.poster:hover > img, .poster:focus-visible > img {
  box-shadow: 0 16px 33px #1c08227a, 0 0 15px #e8bcffa3;
}
.rail-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: -5px auto 0;
  padding-bottom: 15px;
}
.rail-controls button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--edge);
  border-radius: 50%;
  background: #492364a6;
  border-color: #f5dfff83;
  color: #fff8ff;
  cursor: pointer;
}
.rail-controls button:hover { background: #5d2e80; }

.discover, .site-footer { max-width: 1312px; margin-inline: auto; }
.discover { padding: clamp(30px, 5vw, 68px) clamp(16px, 5vw, 60px) 62px; }
.section-heading { border-bottom: 1px solid var(--edge); margin-bottom: 20px; padding-bottom: 15px; }
.section-heading h2 { margin: 0; font-size: clamp(1.65rem, 3.8vw, 2.95rem); letter-spacing: -.045em; line-height: 1.05; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.story { scroll-margin-top: 24px; border: 1px solid #c89ce333; border-radius: 14px; overflow: hidden; background: #231732; }
.story:target { border-color: #e9c4fd; box-shadow: 0 0 0 3px #d495ff60; }
.story-copy { padding: 12px 14px 14px; }
.story h3 { margin: 0; font-size: clamp(.92rem, 1.4vw, 1.1rem); line-height: 1.3; text-wrap: pretty; }
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px clamp(16px, 5vw, 60px) 34px;
  color: var(--ink-muted);
  border-top: 1px solid var(--edge);
  font-size: .85rem;
}
.site-footer a { text-underline-offset: .24em; }

@media (max-width: 700px) {
  body { --backdrop-height: 780px; }
  .site-header { padding: 21px 21px 0; }
  .navigation {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 4px 8px 0;
    border-radius: 22px;
  }
  .navigation .brand { justify-self: start; }
  .brand img { width: 123px; }
  .navigation .header-start {
    grid-column: 2;
    grid-row: 1;
    min-height: 42px;
    padding: 4px 5px 4px 10px;
    gap: 7px;
    font-size: .75rem;
  }
  .navigation .header-start span { width: 29px; height: 29px; }
  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 3px;
    padding: 0 1px 2px;
    border-top: 1px solid #f4ddff36;
  }
  .nav-links > a { font-size: .76rem; }
  .hero { width: calc(100% - 24px); margin: 12px auto 0; padding-top: 132px; }
  .hero-copy { padding-inline: 10px; }
  .hero h1 { font-size: clamp(2.15rem, 10.4vw, 4.4rem); }
  .hero p { margin: 15px auto 19px; font-size: clamp(.88rem, 3.8vw, 1.03rem); }
  .showcase { margin-top: 12px; }
  .rail {
    --poster: min(48cqw, 228px);
    --poster-gap: clamp(9px, 2.2cqw, 15px);
    --depth-limit: 1.55;
    --center-height: calc(var(--poster) * 1.16);
    --width-growth: calc(var(--poster) * .065);
    --height-growth: calc(var(--poster) * .18);
    --height-curve: calc(var(--poster) * .066);
    --shift-unit: .75cqw;
    --perspective: 90cqw;
    height: calc(var(--poster) * 1.75);
  }
  .rail-controls { margin-top: 1px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .discover { padding-bottom: 40px; }
  .story-copy { padding: 10px 9px 12px; }
}

@media (min-width: 701px) {
  .site-header { padding: min(7.7vw, 136px) 0 0; }
  .navigation {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    width: min(81.6%, 1475px);
    max-width: none;
    min-height: clamp(56px, 5.8vw, 103px);
    padding: 5px clamp(12px, 1.65vw, 31px);
  }
  .brand { justify-self: start; }
  .brand img { width: clamp(132px, 14vw, 245px); }
  .nav-links { gap: clamp(17px, 2.9vw, 50px); }
  .nav-links > a { font-size: clamp(.84rem, 1.28vw, 1.4rem); }
  .button.header-start { justify-self: end; }
  .hero {
    width: min(87.5%, 1580px);
    aspect-ratio: 1.4;
    margin: min(6.25vw, 110px) auto 0;
  }
  .hero-copy { max-width: 68%; padding-top: 16.7cqw; }
  .hero h1 { font-size: clamp(2.2rem, 4.95cqw, 5rem); }
  .hero p { margin: 2.2cqw auto 2.75cqw; font-size: clamp(.85rem, 1.44cqw, 1.42rem); }
  .showcase { position: absolute; inset: auto 0 0; max-width: none; margin: 0; }
  .rail {
    --poster: 15.1cqw;
    --poster-gap: 1.15cqw;
    --center-height: 17.5cqw;
    --width-growth: 1.15cqw;
    --height-growth: 1.85cqw;
    --height-curve: 1.1cqw;
    --shift-unit: 1cqw;
    --perspective: 33cqw;
    height: 34.5cqw;
  }
  .rail-controls {
    position: absolute;
    z-index: 2;
    inset: auto 0 clamp(10px, 1.45cqw, 23px);
    margin: 0;
    padding: 0;
    pointer-events: none;
  }
  .rail-controls button { pointer-events: auto; }
}

@media (701px <= width <= 900px) {
  .hero { aspect-ratio: 1.2; }
  .rail-controls { bottom: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
