/* ==========================================================================
   Rajeev N Raman — storefront landing page
   ========================================================================== */

:root {
  --color-bg: #ffffff;
  --color-bg-nav: rgba(251, 251, 253, 0.8);
  --color-bg-gray: #f5f5f7;
  --color-bg-sky-top: #dbeaf5;
  --color-bg-sky-bottom: #f4f9fd;
  --color-text: #1d1d1f;
  --color-text-secondary: #6e6e73;
  --color-text-inverse: #f5f5f7;
  --color-blue: #0071e3;
  --color-blue-hover: #0077ed;
  --color-link: #0066cc;
  --radius-pill: 980px;
  --nav-height: 44px;
  --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-stack);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

sup {
  font-size: 0.55em;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: var(--color-blue);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

/* ==========================================================================
   Global navigation
   ========================================================================== */

.globalnav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: var(--color-bg-nav);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.globalnav__inner {
  max-width: 1024px;
  height: 100%;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.globalnav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.globalnav__logo:hover {
  opacity: 1;
}

.globalnav__monogram {
  width: 17px;
  height: 17px;
  color: var(--color-text);
}

.globalnav__wordmark {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.globalnav__list {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}

.globalnav__list a {
  font-size: 12px;
  letter-spacing: -0.01em;
  color: rgba(29, 29, 31, 0.8);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.globalnav__list a:hover {
  color: var(--color-text);
}

.globalnav__actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-shrink: 0;
}

.globalnav__actions a {
  color: rgba(29, 29, 31, 0.8);
  display: flex;
  transition: color 0.2s ease;
}

.globalnav__actions a:hover {
  color: var(--color-text);
}

/* Mobile menu button */
.globalnav__menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.globalnav__menu-bar {
  display: block;
  height: 1.5px;
  width: 18px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

body.nav-open .globalnav__menu-bar:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

body.nav-open .globalnav__menu-bar:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 8px 18px;
  font-size: 15px;
  line-height: 1.35;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: var(--color-blue);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-blue-hover);
}

.btn--secondary {
  border-color: var(--color-blue);
  color: var(--color-blue);
}

.btn--secondary:hover {
  background: var(--color-blue);
  color: #fff;
}

.btn--outline-light {
  border-color: #f5f5f7;
  color: #f5f5f7;
}

.btn--outline-light:hover {
  background: #f5f5f7;
  color: #000;
}

.btn--light {
  background: rgba(255, 255, 255, 0.92);
  color: #000;
  font-size: 14px;
  padding: 7px 16px;
}

.btn--light:hover {
  background: #fff;
}

.btn--dark {
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-size: 14px;
  padding: 7px 16px;
}

.btn--dark:hover {
  background: #000;
}

:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.btn:focus-visible {
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   Hero sections
   ========================================================================== */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 56px 24px 0;
  overflow: hidden;
}

.hero--sky {
  background: linear-gradient(180deg, var(--color-bg-sky-top) 0%, var(--color-bg-sky-bottom) 100%);
}

.hero--light {
  background: var(--color-bg);
}

.hero__title {
  margin: 0;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1.07;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.hero__title-script {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(90deg, #0090f7, #5c5ce0, #b620e0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.08em;
}

.hero__subtitle {
  margin: 6px 0 0;
  font-size: clamp(19px, 2.4vw, 28px);
  line-height: 1.2;
  font-weight: 400;
}

.hero__cta {
  display: flex;
  gap: 16px;
  margin-top: 18px;
}

.hero__art {
  width: min(880px, 92vw);
  margin-top: 8px;
}

.art {
  width: 100%;
  height: auto;
}

/* ==========================================================================
   Tile grid
   ========================================================================== */

.tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 12px;
  background: var(--color-bg);
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 28px 0;
  min-height: 560px;
  overflow: hidden;
}

.tile--dark {
  background: #000;
  color: var(--color-text-inverse);
}

.tile--light {
  background: var(--color-bg-gray);
}

.tile--white {
  background: var(--color-bg);
}

.tile__title {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.003em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tile__title--watch {
  letter-spacing: 0.02em;
}

.tile__title-series {
  font-weight: 300;
}

.watch-mark {
  display: inline-flex;
  width: 0.82em;
  height: 0.82em;
  color: currentColor;
}

.watch-mark svg {
  width: 100%;
  height: 100%;
}

.tile__subtitle {
  margin: 10px auto 0;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.35;
  font-weight: 400;
  max-width: 420px;
}

.tile__cta {
  display: flex;
  gap: 14px;
  margin-top: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.tile__art {
  width: min(560px, 100%);
  margin-top: auto;
  padding-top: 16px;
}

/* ==========================================================================
   Entertainment
   ========================================================================== */

.entertainment {
  padding: 72px 0 12px;
  background: var(--color-bg);
}

.entertainment__heading {
  margin: 0 0 40px;
  text-align: center;
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.005em;
}

.carousel {
  position: relative;
}

.carousel__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 max(20px, calc((100vw - 1240px) / 2));
  scroll-padding-inline: max(20px, calc((100vw - 1240px) / 2));
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__slide {
  flex: 0 0 min(1240px, 92vw);
  scroll-snap-align: center;
  border-radius: 18px;
  min-height: clamp(320px, 42vw, 560px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 32px;
  color: #fff;
}

.slide--horizon {
  background:
    repeating-conic-gradient(from 0deg at 50% 130%, rgba(255, 255, 255, 0.06) 0deg 4deg, transparent 4deg 12deg),
    radial-gradient(circle at 50% 135%, #f6d97e 0%, #c98f3c 16%, #4c7a5e 42%, #16323a 68%, #0a1a20 100%);
}

.slide--coast {
  background:
    radial-gradient(ellipse at 20% 20%, rgba(255, 255, 255, 0.14), transparent 45%),
    linear-gradient(180deg, #0a2540 0%, #12546b 55%, #6fb7bf 100%);
}

.slide--wild {
  background:
    radial-gradient(ellipse at 80% 10%, rgba(240, 255, 200, 0.2), transparent 50%),
    linear-gradient(200deg, #d9e8b8 0%, #3f7d3a 38%, #123c1e 78%, #08210f 100%);
}

.slide__brand {
  position: absolute;
  top: 22px;
  left: 28px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}

.slide__brand--dark {
  color: #1d1d1f;
}

.slide__brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: currentColor;
  font-size: 12px;
  font-weight: 700;
}

.slide__brand .slide__brand-mark {
  color: #fff;
  background: rgba(255, 255, 255, 0.24);
}

.slide__brand--dark .slide__brand-mark {
  color: #f5f5f7;
  background: #1d1d1f;
}

.slide__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.slide__showtitle {
  margin: 0;
  font-size: clamp(34px, 6vw, 78px);
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.slide__showtitle--spaced {
  letter-spacing: 0.28em;
  padding-left: 0.28em; /* optically re-center the tracked-out title */
  text-align: center;
  align-self: center;
  margin-bottom: clamp(24px, 8vw, 96px);
}

.slide__meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.slide__tag {
  margin: 0;
  font-size: 14px;
  opacity: 0.92;
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 22px 0 6px;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(29, 29, 31, 0.25);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.carousel__dot.is-active {
  background: rgba(29, 29, 31, 0.85);
}

/* Promo cards */
.promos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1240px;
  margin: 20px auto 0;
  padding: 0 20px;
}

.promo {
  position: relative;
  border-radius: 18px;
  min-height: 300px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 12px;
  padding: 24px;
  color: #fff;
  transition: transform 0.3s ease;
}

.promo:hover {
  transform: scale(1.015);
}

.promo--fitness {
  background:
    radial-gradient(circle at 78% 30%, rgba(250, 17, 79, 0.55), transparent 42%),
    radial-gradient(circle at 82% 34%, rgba(146, 232, 42, 0.5), transparent 34%),
    radial-gradient(circle at 86% 38%, rgba(0, 215, 234, 0.5), transparent 26%),
    linear-gradient(160deg, #1c1c1e 0%, #000 100%);
}

.promo--games {
  background:
    radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.55), transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(255, 214, 10, 0.5), transparent 45%),
    linear-gradient(135deg, #ffd6ec 0%, #cdb9f5 50%, #a5d8ff 100%);
  color: #1d1d1f;
}

.promo--music {
  background:
    radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.18), transparent 45%),
    linear-gradient(150deg, #fa2d48 0%, #a3244f 55%, #3c1053 100%);
}

.promo__title {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  line-height: 1.2;
  max-width: 300px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

.promo__title--dark {
  color: #1d1d1f;
  text-shadow: none;
}

.promo .slide__brand {
  position: absolute;
  top: 20px;
  left: 24px;
}

/* ==========================================================================
   Footnotes
   ========================================================================== */

.footnotes {
  background: var(--color-bg-gray);
  padding: 34px 0 10px;
}

.footnotes ol {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 22px 16px 40px;
  border-bottom: 1px solid #d2d2d7;
}

.footnotes li {
  font-size: 12px;
  line-height: 1.45;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--color-bg-gray);
  padding: 18px 0 40px;
  font-size: 12px;
  color: var(--color-text-secondary);
}

.footer__inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 22px;
}

.footer__directory {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #d2d2d7;
}

.footer__col h4 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text);
}

.footer__col ul {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}

.footer__col li {
  margin-bottom: 8px;
}

.footer__col a {
  color: var(--color-text-secondary);
  transition: color 0.15s ease;
}

.footer__col a:hover {
  color: var(--color-text);
  text-decoration: underline;
}

.footer__shop-note {
  padding: 16px 0;
  border-bottom: 1px solid #d2d2d7;
}

.footer__shop-note a {
  color: var(--color-link);
}

.footer__shop-note a:hover {
  text-decoration: underline;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding-top: 14px;
}

.footer__copyright {
  margin: 0;
}

.footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.footer__legal-links li {
  padding: 0 10px;
  border-right: 1px solid #d2d2d7;
}

.footer__legal-links li:last-child {
  border-right: none;
}

.footer__legal-links a:hover {
  text-decoration: underline;
}

.footer__locale {
  margin: 0;
}

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */

/* Hidden state is gated on html.js so content is never invisible without
   JavaScript, and only applied to sections below the initial viewport. */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .promo:hover {
    transform: none;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1068px) {
  .globalnav__list {
    gap: 18px;
  }
}

@media (max-width: 900px) {
  /* Collapse nav to hamburger */
  .globalnav__menu-btn {
    display: flex;
  }

  .globalnav__list {
    /* The nav's backdrop-filter makes it the containing block for this
       fixed overlay, so size it explicitly instead of using bottom: 0. */
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    height: calc(100vh - var(--nav-height));
    height: calc(100dvh - var(--nav-height));
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: 26px 40px;
    background: rgba(251, 251, 253, 0.97);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    overflow-y: auto;
  }

  body.nav-open .globalnav__list {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  body.nav-open {
    overflow: hidden;
  }

  .globalnav__list li {
    width: 100%;
    border-bottom: 1px solid rgba(29, 29, 31, 0.08);
  }

  .globalnav__list a {
    display: block;
    padding: 14px 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--color-text);
  }
}

@media (max-width: 734px) {
  .tiles {
    grid-template-columns: 1fr;
  }

  .tile {
    min-height: 500px;
  }

  .hero {
    padding-top: 44px;
  }

  .hero__cta {
    flex-direction: row;
  }

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

  .footer__directory {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer__col ul {
    margin-bottom: 16px;
  }

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

  .globalnav__wordmark {
    font-size: 12px;
  }
}
