:root {
  color-scheme: dark;
  --ink: #f7fbff;
  --muted: #b8c2c5;
  --quiet: #849397;
  --bg: #050708;
  --panel: rgba(12, 22, 26, 0.78);
  --panel-strong: rgba(14, 32, 38, 0.92);
  --line: rgba(207, 221, 224, 0.16);
  --silver: #c9d3d4;
  --teal: #2c8c88;
  --peacock: #0d5d69;
  --indigo: #232d5c;
  --purple: #574a86;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --radius: 8px;
  --max: 1080px;
  --display-font: "Bodoni 72", "Bodoni 72 Smallcaps", Didot, "Cormorant Garamond", "Libre Baskerville", Georgia, serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 4%, rgba(13, 93, 105, 0.28), transparent 28rem),
    radial-gradient(circle at 82% 10%, rgba(87, 74, 134, 0.2), transparent 24rem),
    radial-gradient(circle at 50% 48%, rgba(44, 140, 136, 0.07), transparent 34rem),
    linear-gradient(115deg, rgba(255, 255, 255, 0.025), transparent 18%, rgba(87, 74, 134, 0.035) 50%, transparent 78%),
    linear-gradient(180deg, #050708 0%, #071012 38%, #050708 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.78;
  background:
    radial-gradient(circle at 50% 18%, rgba(3, 7, 9, 0.1), rgba(3, 7, 9, 0.34) 38%, rgba(3, 7, 9, 0.68) 100%),
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 100% 100%, 100% 9px;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image:
    url("../assets/images/peacock-background.png"),
    linear-gradient(115deg, rgba(44, 140, 136, 0.04), transparent 42%),
    linear-gradient(245deg, rgba(87, 74, 134, 0.04), transparent 46%);
  background-size: max(100vw, 94rem) auto, 100% 100%, 100% 100%;
  background-position: center top, 0 0, 0 0;
  background-repeat: repeat-y, no-repeat, no-repeat;
  mix-blend-mode: screen;
  filter: saturate(1.45) contrast(1.22);
}

@media (max-width: 640px) {
  body::after {
    opacity: 0.56;
    background-size: auto 30rem, 100% 100%, 100% 100%;
    background-position: 12% top, 0 0, 0 0;
  }

  body::before {
    opacity: 0.74;
  }

  #app::before {
    content: "";
    position: fixed;
    right: -28vw;
    bottom: 4vh;
    z-index: -1;
    width: 88vw;
    height: 34rem;
    pointer-events: none;
    background-image: url("../assets/images/peacock-background.png");
    background-repeat: no-repeat;
    background-size: auto 30rem;
    background-position: 72% 100%;
    opacity: 0.34;
    mix-blend-mode: screen;
    filter: saturate(1.35) contrast(1.16);
    transform: scaleX(-1);
  }
}

#app,
#hd-app {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-140%);
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--bg);
}

.skip-link:focus {
  transform: translateY(0);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.78rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(226, 237, 238, 0.62);
}

.button-primary {
  background: linear-gradient(135deg, rgba(10, 50, 61, 0.5), rgba(4, 27, 39, 0.48));
  color: var(--ink);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
}

.section {
  position: relative;
  padding: clamp(5.2rem, 12vw, 9rem) 1.05rem;
  scroll-margin-top: 6rem;
}

.section::before {
  display: none;
}

.hero::before {
  display: none;
}

.section-inner {
  width: min(100%, var(--max));
  min-width: 0;
  margin: 0 auto;
  text-align: center;
}

.section-inner.narrow {
  max-width: 760px;
}

.section-kicker,
.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--silver);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-title,
h1 {
  max-width: 880px;
  margin: 0 auto;
  font-family: var(--display-font);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--ink);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
  white-space: pre-line;
}

.section-title {
  font-size: clamp(1.78rem, 5.45vw, 3rem);
}

.section-intro {
  max-width: 680px;
  margin: 1.1rem auto 0;
  color: var(--muted);
  font-size: clamp(1.2rem, 3vw, 1.48rem);
  line-height: 1.42;
}

.swipe-row {
  display: flex;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  gap: 1rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
  padding: 0.4rem 0.05rem 1rem;
}

.swipe-row::-webkit-scrollbar {
  display: none;
}

.swipe-row > * {
  flex: 0 0 min(82vw, 19rem);
  scroll-snap-align: center;
}

@media (min-width: 860px) {
  .swipe-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
  }

  .swipe-row > * {
    flex-basis: auto;
  }
}
