/* nuvvel.com brochure. Tokens and component shapes are lifted from the
   production stylesheet (static/css/styles.css at c1be7550) so the page keeps
   the old home page's look: pale blue-gray ground, white cards, navy text,
   one raspberry accent. */

:root {
  --gray-0: #FFFFFF;
  --gray-25: #FCFCFC;
  --gray-75: #F5F5F5;
  --gray-100: #EDEDED;
  --gray-200: #E4E5E6;
  --gray-300: #D4D6D9;
  --gray-400: #BDC3C9;
  --gray-500: #A2A8B0;
  --gray-600: #828A94;
  --gray-700: #697380;
  --gray-800: #4E5A6B;
  --gray-850: #303B4C;
  --gray-900: #0A1B36;
  --blue-800: #395D80;
  --blue-900: #29435C;
  --raspberry-700: #BA4A73;

  --gradient-body-background: linear-gradient(180deg, #F0F1F1 0%, #CFD9DA 52.6%, #B1C1C9 100%);
  --gradient-content-area: linear-gradient(180deg, #F8F9F8 0%, #E9EAE7 100%);
  --gradient-card-background: linear-gradient(180deg, #FCFCFC 0%, #FCFCFC 100%);
  --gradient-vignette: linear-gradient(325deg, rgba(48, 69, 89, 0) 40%, rgba(48, 69, 89, 1) 100%);
  --gradient-vignette-bottom: linear-gradient(0deg, rgba(20, 32, 46, 0.85) 0%, rgba(20, 32, 46, 0) 70%);

  --shadow-card: 0px 1px 6px 0px rgba(48, 59, 76, 0.10);
  --shadow-card-hover: 0px 4px 12px 0px rgba(48, 59, 76, 0.30);
  --radius: 6px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  background: var(--gray-200) var(--gradient-body-background) no-repeat fixed;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }

.content-area {
  background: var(--gradient-content-area);
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Navbar ---- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  border-bottom: 1px solid var(--gray-100);
  background: var(--gray-0);
}
.navbar-left { display: flex; align-items: center; text-decoration: none; }
.navbar-logo { height: 24px; width: auto; margin-right: 8px; }
.navbar-brand { color: var(--gray-700); font-size: 22px; font-weight: 400; line-height: normal; }
.navbar-right { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gray-800);
  border-bottom: 2px solid transparent;
}
.nav-link:hover { border-bottom-color: var(--raspberry-700); }

.mainContent { padding: 12px 12px 40px; flex: 1; }

.section-title {
  font-size: 26px;
  font-weight: 600;
  color: var(--gray-850);
  line-height: 1.2;
  margin: 0 0 16px;
}

/* ---- Hero banner (the old home page carousel) ---- */

.bannerBox { position: relative; margin-bottom: 32px; }
.bannerTiles { position: relative; min-height: 300px; }
.bannerTile {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s;
  background: var(--gray-800) no-repeat center / cover;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.bannerTile.is-active { position: relative; opacity: 1; visibility: visible; }
.bannerTile_vignette {
  min-height: 300px;
  padding: 24px;
  background: var(--gradient-vignette);
  color: var(--gray-0);
  display: flex;
  flex-direction: column;
}
.bannerTile_title {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.1;
  max-width: 420px;
  text-shadow: 6px 6px 19px rgba(0, 0, 0, 0.8);
  margin-bottom: 10px;
}
.bannerTile_description {
  font-size: 18px;
  line-height: 23px;
  font-weight: 500;
  max-width: 360px;
  text-shadow: 1px 1px 50px rgba(0, 0, 0, 1);
  flex-grow: 1;
}
.bannerTile_buttons { display: flex; gap: 20px; margin-top: 20px; }
.bannerTile_button {
  display: inline-flex;
  justify-content: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
  color: var(--gray-800);
  font-size: 18px;
  font-weight: 500;
  line-height: normal;
  padding: 10px 12px;
  min-width: 200px;
  text-decoration: none;
  transition: .3s ease;
}
.bannerTile_button:hover { background: var(--gray-0); box-shadow: var(--shadow-card-hover); }

.bannerDots { position: absolute; right: 16px; bottom: 14px; display: flex; gap: 8px; }
.bannerDot {
  width: 10px; height: 10px; padding: 0;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}
.bannerDot.is-active { background: var(--gray-0); }

/* ---- Intro band ---- */

.intro {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px 40px;
  align-items: center;
  padding: 8px 12px 40px;
}
.intro-lead { grid-column: 1 / -1; font-size: 30px; font-weight: 300; color: var(--gray-850); line-height: 1.2; }
.intro-text { font-size: 17px; color: var(--gray-800); }
.intro-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.intro-stats > div {
  background: var(--gradient-card-background);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 10px 14px;
}
.intro-stats dt { font-size: 12px; text-transform: uppercase; color: var(--gray-700); }
.intro-stats dd { font-size: 26px; font-weight: 700; color: var(--blue-900); line-height: 1.2; }

/* ---- Featured worlds (modelled on the old series page) ---- */

.worlds { padding-bottom: 16px; }
.world {
  background: var(--gradient-card-background);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 32px;
  scroll-margin-top: 64px;
}
.world-hero { position: relative; aspect-ratio: 3 / 1; background: var(--gray-400); }
.world-hero img { width: 100%; height: 100%; object-fit: cover; }
.world-hero_vignette {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 24px;
  background: var(--gradient-vignette-bottom);
  color: var(--gray-0);
}
.world-genre { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.world-title { font-size: 34px; font-weight: 400; line-height: 1.1; text-shadow: 2px 2px 14px rgba(0, 0, 0, 0.7); }
.world-body { padding: 20px 24px 24px; }
.world-logline {
  font-family: Times, Georgia, serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--gray-850);
  max-width: 820px;
}
.world-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 14px 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--gray-700);
}
.world-facts span + span::before { content: "·"; margin-right: 18px; color: var(--gray-400); }
@media (max-width: 600px) {
  .world-facts span + span::before { content: none; }
}
.world-subhead { font-size: 16px; font-weight: 600; color: var(--gray-850); margin: 18px 0 10px; }

.characterScrollContainer {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 4px 12px;
  margin: 0 -4px;
  scroll-snap-type: x proximity;
}
.characterTile {
  flex: 0 0 auto;
  width: 176px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--gray-0);
  box-shadow: 0px 2px 10px rgba(48, 59, 76, 0.15);
  transition: transform .3s ease;
  scroll-snap-align: start;
}
.characterTile:hover { transform: translateY(-5px); }
.characterImageWrapper { background: var(--gray-75); }
.characterImage { width: 100%; height: 176px; object-fit: cover; object-position: top; }
.characterInfo { padding: 12px 14px 14px; }
.characterName { font-size: 15px; font-weight: 600; color: var(--gray-850); line-height: 1.3; margin-bottom: 4px; }
.characterOccupation { font-size: 13px; color: var(--gray-600); line-height: 1.4; }

.placeRow { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.placeTile { border-radius: 8px; overflow: hidden; background: var(--gray-0); box-shadow: 0px 2px 10px rgba(48, 59, 76, 0.15); }
.placeTile img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.placeTile figcaption { padding: 10px 14px 12px; font-size: 13px; color: var(--gray-700); line-height: 1.45; }
.placeTile strong { display: block; font-size: 15px; color: var(--gray-850); font-weight: 600; }

/* ---- Everything connects ---- */

.inside {
  margin: 8px 0 40px;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--blue-900);
  color: var(--gray-100);
}
.inside .section-title { color: var(--gray-0); }
.inside-text { max-width: 720px; font-size: 16px; margin-bottom: 24px; }
.inside-chain { display: flex; align-items: flex-start; gap: 12px; }
.inside-step { flex: 1 1 0; min-width: 0; }
.inside-label { font-size: 12px; font-weight: 700; text-transform: uppercase; color: #F2A7C3; margin-bottom: 8px; }
.inside-step img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.inside-name { font-size: 16px; font-weight: 600; color: var(--gray-0); margin-top: 10px; }
.inside-line { font-size: 13px; line-height: 1.45; color: var(--gray-300); }
.inside-arrow {
  flex: 0 0 28px;
  align-self: center;
  height: 2px;
  margin-top: 40px;
  background: var(--gray-500);
  position: relative;
}
.inside-arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -4px;
  border: 5px solid transparent;
  border-left-color: var(--gray-500);
  border-right: 0;
}

/* ---- Library grid (the old home page cards) ---- */

.library { scroll-margin-top: 64px; }
.tabBar {
  display: flex;
  overflow-x: auto;
  background: var(--gray-0);
  border-radius: var(--radius);
  margin-bottom: 16px;
  scrollbar-width: none;
}
.tabBar::-webkit-scrollbar { display: none; }
.tab {
  display: flex;
  padding: 10px 10px 8px;
  border: 0;
  border-bottom: 2px solid var(--gray-0);
  background: none;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--gray-800);
  white-space: nowrap;
  cursor: pointer;
}
.tab:hover { border-bottom-color: var(--gray-500); }
.tab.active { border-bottom-color: var(--raspberry-700); }

.seriesGrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border-bottom: 1px solid var(--gray-75);
  background: var(--gradient-card-background);
  transition: box-shadow .2s ease;
}
.card[hidden] { display: none; }
.card:hover { box-shadow: var(--shadow-card-hover); }
.card-header { padding: 10px 12px 0; }
.card-title { color: var(--gray-800); font-size: 15px; font-weight: 700; line-height: 1.3; min-height: 40px; }
.card-body { padding: 0 12px 12px; }
.card-meta { font-size: 11px; font-weight: 300; text-transform: uppercase; }
.card-image { margin: 4px 0; height: 120px; border-radius: 4px; background: var(--gray-400); overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-text { font-size: 13px; font-weight: 300; line-height: 1.5; margin-top: 8px; }

/* ---- Play band ---- */

.play {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 40px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--gradient-card-background);
  box-shadow: var(--shadow-card);
  scroll-margin-top: 64px;
}
.play-art { flex: 0 0 auto; width: 150px; height: auto; }
.play-kicker { color: var(--raspberry-700); }
.play-title { font-size: 28px; font-weight: 600; color: var(--gray-850); line-height: 1.2; margin: 2px 0 8px; }
.play-text { max-width: 560px; font-size: 16px; margin-bottom: 16px; }
.play-button { background: var(--blue-900); color: var(--gray-0); }
.play-button:hover { background: var(--blue-800); }

/* ---- Footer ---- */

.footer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px 40px;
  padding: 28px 40px;
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  background: var(--gray-0);
  border-top: 1px solid var(--gray-100);
  font-size: 14px;
}
.footer-brand { display: flex; align-items: center; gap: 8px; font-size: 20px; color: var(--gray-700); align-self: start; }
.footer-brand img { height: 24px; width: auto; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 20px 56px; }
.footer-label { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--gray-700); margin-bottom: 4px; }
.footer-text { color: var(--gray-850); }
.footer-link { display: block; color: var(--blue-800); text-decoration: none; }
.footer-link:hover { text-decoration: underline; }
.footer-legal { grid-column: 1 / -1; font-size: 12px; color: var(--gray-600); }

/* ---- Responsive ---- */

@media (max-width: 1100px) {
  .content-area { margin: 0 20px; }
  .seriesGrid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .seriesGrid { grid-template-columns: repeat(2, 1fr); }
  .intro { grid-template-columns: 1fr; }
  .inside-chain { flex-direction: column; }
  .inside-step { display: grid; grid-template-columns: 110px 1fr; grid-template-rows: auto auto 1fr; gap: 0 14px; width: 100%; }
  .inside-label { grid-column: 1 / -1; }
  .inside-step img { grid-row: 2 / 4; width: 110px; height: 110px; aspect-ratio: auto; }
  .inside-name { margin-top: 0; align-self: end; }
  .inside-arrow { display: none; }
}
@media (max-width: 600px) {
  .content-area { margin: 0; }
  .navbar { padding-left: 16px; padding-right: 16px; }
  .nav-link { padding: 6px 6px; font-size: 12px; }
  .nav-link--hide-sm { display: none; }
  .mainContent { padding: 12px 16px 32px; }
  .bannerTile_title { font-size: 30px; }
  .bannerTile_description { font-size: 16px; line-height: 21px; }
  .bannerTile_button { min-width: 0; font-size: 16px; }
  .intro { padding: 4px 0 32px; }
  .intro-lead { font-size: 24px; }
  .world-hero { aspect-ratio: 2 / 1; }
  .world-hero_vignette, .world-body { padding-left: 16px; padding-right: 16px; }
  .world-title { font-size: 26px; }
  .placeRow { grid-template-columns: 1fr; }
  .seriesGrid { grid-template-columns: 1fr; }
  .card-image { height: 140px; }
  .play { flex-direction: column; text-align: center; padding: 20px 16px; }
  .play-text { margin-left: auto; margin-right: auto; }
  .inside { padding: 22px 16px; }
  .footer { grid-template-columns: 1fr; padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bannerTile, .characterTile { transition: none; }
}
