html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff7cc;
  color: #2e2e2e;
  font-family: Arial, Helvetica, sans-serif;
}

#family-homepage,
.family-homepage {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background: #fff7cc;
  color: #2e2e2e;
}

/* top progress ribbon */
.top-progress-ribbon {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 100%;
  height: 4px;
  transform-origin: left center;
  background: linear-gradient(to right, #e63946, #f1c40f, #1d9bf0);
  transform: scaleX(0);
}

/* floating steelpan */
.steelpan-floating {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;
  pointer-events: none;
  transform: translate(4vw, 96px);
}

.steelpan-floating img {
  width: 190px;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
}

.steelpan-glow {
  position: absolute;
  inset: 0;
  width: 128px;
  height: 128px;
  border-radius: 999px;
  background: rgba(29, 155, 240, 0.2);
  filter: blur(28px);
}

.steelpan-note {
  position: absolute;
  font-size: 28px;
  font-weight: 700;
}

.steelpan-note-1 {
  left: -38px;
  top: -18px;
  color: rgba(241, 196, 15, 0.9);
}

.steelpan-note-2 {
  right: -22px;
  top: 6px;
  color: rgba(230, 57, 70, 0.85);
}

.steelpan-note-3 {
  left: 34px;
  bottom: -18px;
  color: rgba(46, 204, 113, 0.85);
}

/* header */
.family-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.family-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.family-brand-title {
  font-size: 28px;
  line-height: 1.1;
  font-weight: 800;
  color: #e63946;
}

.family-brand-tagline {
  margin-top: 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: #1d9bf0;
}

.desktop-nav {
  display: none;
}

.nav-item-group {
  position: relative;
}

.nav-link {
  display: inline-block;
  padding: 10px 16px;
  color: #2e2e2e;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #e63946;
}

.nav-dropdown {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;
  margin-top: 8px;
  min-width: 220px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.nav-item-group:hover .nav-dropdown {
  visibility: visible;
  opacity: 1;
}

.nav-dropdown-link {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #2e2e2e;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown-link:hover {
  background: #fff3d6;
  color: #e63946;
}

.nav-dropdown-title {
  display: block;
  font-weight: 700;
  text-align: center;
}

.mobile-nav-toggle {
  border: 0;
  background: transparent;
  color: #e63946;
  font-weight: 700;
  cursor: pointer;
}

.mobile-nav-panel {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  padding: 16px 24px;
}

.mobile-nav-item {
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-nav-item:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.mobile-nav-link {
  display: block;
  text-decoration: none;
  color: #2e2e2e;
  font-weight: 700;
  padding: 6px 0;
}

.mobile-nav-children {
  padding-left: 14px;
}

.mobile-nav-child-link {
  display: block;
  text-decoration: none;
  color: #555;
  padding: 4px 0;
}

.mobile-nav-child-link:hover,
.mobile-nav-link:hover {
  color: #e63946;
}

/* group headings */
.section-group-band {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px 0;
}

.section-group-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: #1d9bf0;
}

.section-group-title {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 34px;
  font-weight: 800;
  color: #e63946;
  line-height: 1.15;
}

.group-note.note-left {
  color: #f1c40f;
}

.group-note.note-right {
  color: #2ecc71;
}

.section-group-line-wrap {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.group-line-note {
  color: #e63946;
}

.group-line-note.alt {
  color: #1d9bf0;
}

.section-group-line {
  width: 96px;
  height: 4px;
  background: linear-gradient(to right, #e63946, #f1c40f, #2ecc71);
}

/* base sections */
.family-section {
  position: relative;
  overflow: hidden;
  padding: 64px 24px 96px;
}

.section-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
}

.section-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.section-bg-overlay.variant-hero {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(230, 57, 70, 0.8), rgba(241, 196, 15, 0.55), rgba(46, 204, 113, 0.7));
}

.section-bg-overlay.variant-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.section-header {
  max-width: 760px;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.section-header.text-light {
  color: #fff;
}

.section-subtitle {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.35em;
}

.section-title {
  margin-top: 12px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.02;
  font-weight: 800;
}

.section-line {
  margin-top: 16px;
  width: 96px;
  height: 4px;
}

.section-desc {
  margin-top: 20px;
  font-size: 16px;
  line-height: 2;
  color: #555;
}

.text-light .section-desc,
.text-light .section-count {
  color: rgba(255, 255, 255, 0.92);
}

.section-count {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #555;
}

/* backgrounds */
.section-sand {
  background: #fff8d6;
}

.section-white {
  background: #ffffff;
}

.section-cream {
  background: #fff9e8;
}

.section-peach {
  background: #fff3d6;
}

.section-cool {
  background: #eaf7ff;
}

.section-sky {
  background: #dff4ff;
}

/* accents */
.accent-coral {
  color: #e63946;
}

.accent-blue {
  color: #1d9bf0;
}

.accent-green {
  color: #2ecc71;
}

/* subtitle colors */
.text-light .section-subtitle {
  color: #fff7cc;
}

/* gradient lines */
.line-carnival {
  background: linear-gradient(to right, #e63946, #f1c40f, #2ecc71);
}

.line-sunset {
  background: linear-gradient(to right, #e63946, #f1c40f, #1d9bf0);
}

.line-ocean {
  background: linear-gradient(to right, #1d9bf0, #f1c40f, #2ecc71);
}

.line-leaf {
  background: linear-gradient(to right, #2ecc71, #f1c40f, #e63946);
}

.line-warm {
  background: linear-gradient(to right, #e63946, #f1c40f, #1d9bf0);
}

.line-lagoon {
  background: linear-gradient(to right, #1d9bf0, #2ecc71, #f1c40f);
}

.line-island {
  background: linear-gradient(to right, #e63946, #f1c40f, #2ecc71);
}

.line-aqua {
  background: linear-gradient(to right, #2ecc71, #1d9bf0, #f1c40f);
}

.line-culture {
  background: linear-gradient(to right, #e63946, #1d9bf0, #f1c40f);
}

.line-archive {
  background: linear-gradient(to right, #1d9bf0, #f1c40f, #e63946);
}

.line-db {
  background: linear-gradient(to right, #1d9bf0, #e63946, #2ecc71);
}

.line-ref {
  background: linear-gradient(to right, #1d9bf0, #e63946, #2ecc71);
}

/* feature card */
.section-feature-card {
  position: relative;
  max-width: 760px;
  background: rgba(255, 255, 255, 0.14);
  padding: 32px;
  backdrop-filter: blur(6px);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.feature-content-layer {
  position: relative;
  z-index: 2;
}

.feature-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: #fff7cc;
}

.feature-title {
  margin-top: 12px;
  font-size: 30px;
  font-weight: 800;
}

.section-feature-card p {
  margin-top: 16px;
  line-height: 1.9;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.92);
}

.feature-button-wrap,
.split-button-wrap {
  margin-top: 24px;
}

.feature-page-button,
.split-page-button {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #e63946;
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, background 0.2s ease;
}

.feature-page-button:hover,
.split-page-button:hover {
  transform: translateY(-2px);
  background: #cf3340;
}

/* TV block */
.section-feature-tv {
  background: rgba(255, 255, 255, 0.12);
}

.tv-feature-bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.tv-kicker {
  color: #e5e5e5;
}

.tv-feature-title {
  color: #1d9bf0;
  font-weight: 800;
}

.tv-feature-text {
  color: #e5e5e5 !important;
}

/* split layout */
.split-layout {
  display: grid;
  gap: 32px;
  align-items: center;
}

.split-copy-card {
  background: rgba(255, 255, 255, 0.86);
  padding: 32px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.split-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: #1d9bf0;
}

.split-title {
  margin-top: 12px;
  font-size: 32px;
  font-weight: 800;
  color: #e63946;
}

.split-copy-card p {
  margin-top: 16px;
  line-height: 1.9;
  color: #555;
}

.split-image-wrap {
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.split-image-wrap img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* overlay pills */
.overlay-pill-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.overlay-pill-link {
  display: inline-flex;
  align-items: center;
  min-height: 58px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.variant-overlay .overlay-pill-link,
.family-section .overlay-pill-link {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.variant-overlay .overlay-pill-link:hover,
.family-section .overlay-pill-link:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: translateY(-2px);
}

.overlay-pill-link-light {
  border: 1px solid rgba(230, 57, 70, 0.1);
  background: #fff;
  color: #e63946;
}

/* mosaic */
.mosaic-layout {
  display: grid;
  gap: 24px;
  align-items: start;
}

.mosaic-col {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mosaic-pill-link {
  display: inline-flex;
  align-items: center;
  min-height: 60px;
  padding: 0 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #e63946;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.mosaic-pill-link:hover {
  transform: translateY(-2px);
}

.mosaic-image-wrap {
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.mosaic-image-wrap img {
  display: block;
  width: 100%;
  height: 500px;
  object-fit: cover;
}

/* RR */
.rr-layout {
  display: grid;
  gap: 32px;
  align-items: start;
}

.rr-tabs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.rr-tab-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 16px;
  text-align: center;
  text-decoration: none;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  color: #e63946;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.rr-tab-link:hover {
  transform: translateY(-2px);
}

.rr-center-side {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rr-memory-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: #e63946;
}

.rr-memory-title {
  margin-top: 12px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
  font-weight: 800;
  color: #1d9bf0;
}

.rr-memory-line {
  margin-top: 16px;
  width: 112px;
  height: 4px;
  background: linear-gradient(to right, #e63946, #f1c40f, #2ecc71);
}

.rr-memory-desc {
  margin-top: 16px;
  max-width: 620px;
  line-height: 1.9;
  color: #555;
}

.rr-panel-grid {
  display: grid;
  gap: 16px;
}

.rr-memory-panel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  padding: 20px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  min-height: 220px;
}

.rr-panel-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.2;
}

.rr-panel-content {
  position: relative;
  z-index: 2;
}

.rr-panel-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: #1d9bf0;
}

.rr-panel-title {
  margin-top: 10px;
  font-size: 18px;
  font-weight: 800;
  color: #e63946;
}

.rr-panel-content p {
  margin-top: 10px;
  color: #444;
  line-height: 1.7;
  font-size: 14px;
}

/* REC */
.rec-layout {
  display: grid;
  gap: 32px;
  align-items: start;
}

.rec-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  grid-auto-rows: 104px;
}

.rec-card-link {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 25px;
  padding: 12px 16px;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  color: #2e2e2e;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.rec-card-link:hover {
  transform: translateY(-2px);
}

.rec-span-2 {
  grid-row: span 2;
}

.rec-col-span-2 {
  grid-column: span 2;
}

.rec-1 {
  background: #ffcdd2;
}
.rec-2 {
  background: #ffe0b2;
}
.rec-3 {
  background: #fff9c4;
}
.rec-4 {
  background: #c8e6c9;
}
.rec-5 {
  background: #b2ebf2;
}
.rec-6 {
  background: #d1c4e9;
}
.rec-7 {
  background: #f8bbd0;
}
.rec-8 {
  background: #dcedc8;
}
.rec-9 {
  background: #bbdefb;
}
.rec-10 {
  background: #ffe082;
}
.rec-11 {
  background: #e1bee7;
}

.rec-bubble-grid {
  display: grid;
  gap: 20px 24px;
}

.rec-bubble {
  overflow: hidden;
  border-radius: 999px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1);
}

.rec-bubble img {
  display: block;
  width: 100%;
  height: 176px;
  object-fit: cover;
}

/* CarnivalDB */
.cdb-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.cdb-card {
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  padding: 28px 20px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #60a5fa, #38bdf8, #f97316);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
  transition: transform 0.2s ease;
}

.cdb-card:hover {
  transform: scale(1.03);
}

.cdb-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.cdb-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.cdb-sub {
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.9;
}

/* CAR photo cards */
.car-cards-grid {
  display: grid;
  gap: 24px;
}

.car-photo-card {
  display: block;
  overflow: hidden;
  border-radius: 26px;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.car-photo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.car-photo-wrap {
  overflow: hidden;
}

.car-photo-wrap img {
  display: block;
  width: 100%;
  height: 208px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.car-photo-card:hover .car-photo-wrap img {
  transform: scale(1.05);
}

.car-photo-title {
  padding: 20px;
  text-align: center;
  font-weight: 700;
  color: #e63946;
}

/* footer */
.family-footer {
  background: #fff;
  padding: 48px 24px;
}

.family-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: 32px;
}

.footer-title {
  font-size: 22px;
  font-weight: 800;
  color: #e63946;
}

.footer-copy {
  margin-top: 12px;
  color: #555;
  line-height: 1.8;
  font-size: 14px;
}

.footer-private {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e63946;
  font-size: 14px;
}

.footer-heading {
  font-size: 16px;
  font-weight: 800;
  color: #e63946;
}

.footer-links {
  margin-top: 12px;
}

.footer-links a {
  display: block;
  margin: 6px 0;
  text-decoration: none;
  color: #444;
  font-size: 14px;
}

.footer-links a:hover {
  color: #e63946;
}

/* responsive */
@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-nav-toggle {
    display: none;
  }

  .split-layout {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .mosaic-layout {
    grid-template-columns: 0.95fr 1.1fr 0.95fr;
  }

  .rr-layout {
    grid-template-columns: 1.15fr 0.95fr;
  }

  .rr-panel-grid {
    grid-template-columns: 1fr 1fr;
  }

  .rec-layout {
    grid-template-columns: 0.94fr 1.06fr;
  }

  .rec-bubble-grid {
    grid-template-columns: 1fr 1fr;
  }

  .car-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .family-footer-inner {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (min-width: 1200px) {
  .rr-layout {
    grid-template-columns: 1.15fr 0.95fr;
  }

  .rr-left-side {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 24px;
    align-items: start;
  }

  .rr-tabs-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1023px) {
  .steelpan-floating {
    transform: translate(10px, 90px) scale(0.82);
  }
}

@media (max-width: 767px) {
  .family-section {
    padding: 48px 20px 72px;
  }

  .section-group-band {
    padding: 48px 20px 0;
  }

  .family-header-inner {
    padding: 14px 20px;
  }

  .family-brand-title {
    font-size: 24px;
  }

  .section-group-title {
    font-size: 28px;
  }

  .split-image-wrap img,
  .mosaic-image-wrap img {
    height: 320px;
  }

  .rec-cards-grid,
  .rr-tabs-grid,
  .rr-panel-grid,
  .rec-bubble-grid,
  .car-cards-grid {
    grid-template-columns: 1fr;
  }

  .rec-col-span-2,
  .rec-span-2 {
    grid-column: auto;
    grid-row: auto;
  }

  .steelpan-floating {
    display: none;
  }

  .cdb-row {
    gap: 16px;
  }

  .cdb-card {
    min-width: 200px;
  }
}