@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Oswald:wght@400;600;700&family=Lato:ital,wght@0,300;0,400;0,700;1,300&display=swap');

:root {
  --bg: #f4f4f4;
  --bg-card: #ffffff;
  --bg-overlay: rgba(244,244,244,0.96);
  --red: #e8192c;
  --red-hover: #c5101f;
  --gold: #f5a100;
  --gold-light: #ffbe40;
  --cream: #1a1a1a;
  --muted: #888888;
  --border: #e0e0e0;
  --border-light: #d0d0d0;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--cream);
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}

/* Top racing stripe */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red) 50%, var(--gold) 50%, var(--gold) 100%);
  z-index: 9999;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #e8e8e8; }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }

/* ===================== NAVIGATION ===================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-overlay);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  /* Account for iPhone notch / Dynamic Island */
  padding: env(safe-area-inset-top, 0px) 2rem 0;
  height: calc(64px + env(safe-area-inset-top, 0px));
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.65rem;
  letter-spacing: 4px;
  color: var(--cream);
  text-decoration: none;
  transition: opacity 0.2s;
}

.nav-logo:hover { opacity: 0.85; }
.nav-logo .logo-red { color: var(--red); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cream);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

/* Hamburger — 44×44px minimum touch target (Apple HIG) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  background: none;
  border: none;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: calc(64px + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  background: var(--bg-overlay);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 998;
  flex-direction: column;
  padding: 0.75rem 1.5rem 1.5rem;
  gap: 0;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  padding: 0.9rem 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.mobile-menu a:hover,
.mobile-menu a:active { color: var(--red); }
.mobile-menu a:first-child { border-top: 1px solid var(--border); }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  height: 100vh;        /* fallback */
  height: 100dvh;       /* iOS 15.4+, Chrome 108+, Firefox 101+ — excludes browser chrome */
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('Supercars/Wallpaper.jpg');
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.48) saturate(0.85);
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero-bg.loaded { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10,10,10,0.25) 0%,
    rgba(10,10,10,0.4) 40%,
    rgba(10,10,10,0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 1.5rem;
}

.hero-eyebrow {
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 7px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(15px);
  animation: fadeUp 0.8s 0.3s forwards;
}

.hero-title {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(5.5rem, 16vw, 13rem);
  line-height: 0.88;
  letter-spacing: 0.04em;
  color: #fff;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.5s forwards;
}

.hero-title .t-red { color: var(--red); }
.hero-title .t-gold { color: var(--gold); }

.hero-tagline {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(0.65rem, 1.5vw, 0.85rem);
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1.5rem;
  opacity: 0;
  transform: translateY(15px);
  animation: fadeUp 0.8s 0.7s forwards;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(15px);
  animation: fadeUp 0.8s 0.9s forwards;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 2.25rem;
  border: 1px solid;
  transition: all 0.3s;
  cursor: pointer;
  display: inline-block;
}

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

.btn-primary:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: rgba(240,235,224,0.4);
  color: var(--cream);
}

.btn-outline:hover {
  background: rgba(240,235,224,0.1);
  border-color: var(--cream);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-family: 'Oswald', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  animation: scrollBounce 2.5s infinite;
  opacity: 0;
  animation: scrollBounce 2.5s 1.5s infinite;
}

.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  margin-top: 0.25rem;
}

@keyframes scrollBounce {
  0% { opacity: 0; transform: translateX(-50%) translateY(0); }
  20% { opacity: 1; }
  60% { opacity: 1; transform: translateX(-50%) translateY(10px); }
  80% { opacity: 0; transform: translateX(-50%) translateY(10px); }
  100% { opacity: 0; }
}

/* ===================== HOME SECTION CARDS ===================== */
.home-sections {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.home-sections-header {
  text-align: center;
  margin-bottom: 3rem;
}

.label-tag {
  font-family: 'Oswald', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.6rem;
}

.section-heading {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.05em;
  color: var(--cream);
  line-height: 1;
}

.divider {
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  margin: 1.2rem auto 0;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

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

.cat-card {
  display: block;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.35s, transform 0.35s;
}

.cat-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
}

.cat-card-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.5s ease;
}

.cat-card:hover .cat-card-bg { transform: scale(1.06); }

/* Card backgrounds */
.bg-supercars {
  background:
    linear-gradient(135deg, #1c0000 0%, #3a0505 50%, #1c0000 100%);
}

.bg-supercars::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('Supercars/Wallpaper.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.25;
}

.bg-rare {
  background: linear-gradient(135deg, #00081c 0%, #001236 50%, #00081c 100%);
}

.bg-rare::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 30px,
      rgba(200, 146, 12, 0.04) 30px,
      rgba(200, 146, 12, 0.04) 31px
    );
}

.bg-takeover {
  background: linear-gradient(135deg, #0a0a00 0%, #1c1700 50%, #0a0a00 100%);
}

.bg-takeover::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 20px,
      rgba(200, 24, 24, 0.05) 20px,
      rgba(200, 24, 24, 0.05) 21px
    );
}

.bg-social {
  background: linear-gradient(135deg, #0d0014 0%, #1e0030 50%, #0d0014 100%);
}

.bg-social::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(200,24,24,0.12), transparent 60%),
              radial-gradient(ellipse at bottom left, rgba(200,146,12,0.08), transparent 60%);
}

.cat-card-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
  transition: background 0.35s;
}

.cat-card:hover .cat-card-content {
  background: linear-gradient(to top, rgba(180,18,18,0.55) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
}

.cat-card-num {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-family: 'Bebas Neue', cursive;
  font-size: 5rem;
  color: rgba(255,255,255,0.05);
  line-height: 1;
  pointer-events: none;
}

.cat-card-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.cat-card-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 2.4rem;
  letter-spacing: 2px;
  color: #fff;
  line-height: 1;
}

.cat-card-arrow {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s, transform 0.3s;
}

.cat-card:hover .cat-card-arrow {
  color: #fff;
  transform: translateX(5px);
}

.cat-card-arrow::after { content: ' →'; }

/* ===================== PAGE HEADER ===================== */
.page-header {
  padding: 9rem 2rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header-watermark {
  position: absolute;
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(5rem, 22vw, 17rem);
  color: rgba(0,0,0,0.06);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.08em;
  user-select: none;
}

.page-header-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.page-header-title {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: 0.05em;
  color: var(--cream);
  line-height: 1;
}

.page-header-title .t-red { color: var(--red); }

.page-divider {
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  margin: 1.25rem auto 0;
}

/* ===================== VIDEO GRID ===================== */
.video-section {
  max-width: 1600px;
  margin: 0 auto;
  padding: 1.5rem 2rem 6rem;
}

.video-count {
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.video-count span { color: var(--red); }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.video-card:hover {
  border-color: var(--red);
  box-shadow: 0 8px 30px rgba(232,25,44,0.18);
  transform: translateY(-3px);
}

.video-wrapper {
  position: relative;
  aspect-ratio: 9/16;
  background: #000;
  overflow: hidden;
  width: 100%;
}

.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.video-footer {
  padding: 0.65rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
}

.video-num {
  font-family: 'Oswald', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--muted);
}

.video-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  opacity: 0.6;
}

/* ===================== SOCIAL PAGE ===================== */

.sc-hero {
  position: relative;
  min-height: 100vh;
  background: #111111;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 6rem;
  overflow: hidden;
}

.sc-hero-wm {
  position: absolute;
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(6rem, 30vw, 18rem);
  color: rgba(255,255,255,0.03);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: 0.1em;
}

.sc-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sc-ig-ring {
  width: 88px;
  height: 88px;
  border-radius: 26px;
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  padding: 2.5px;
  margin-bottom: 2rem;
}

.sc-ig-inner {
  width: 100%;
  height: 100%;
  border-radius: 23px;
  background: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sc-ig-ring svg {
  width: 40px;
  height: 40px;
  fill: #ffffff;
}

.sc-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.sc-handle {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(3rem, 11vw, 7.5rem);
  letter-spacing: 0.04em;
  line-height: 1;
  color: #ffffff;
  margin-bottom: 0.85rem;
}

.sc-at { color: rgba(255,255,255,0.22); }
.sc-red { color: var(--red); }

.sc-bio {
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  margin-bottom: 1rem;
}

.sc-tags {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.28);
  margin-bottom: 2.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.sc-dot { color: var(--red); }

.sc-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  color: #ffffff;
  background: var(--red);
  padding: 1rem 2.75rem;
  border: 2px solid var(--red);
  transition: background 0.25s, color 0.25s;
}

.sc-follow-btn:hover {
  background: transparent;
  color: var(--red);
}

.sc-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Oswald', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.22);
}

.sc-scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.22), transparent);
}

/* Pillars */
.sc-pillars {
  padding: 5rem 2rem;
  background: var(--bg);
}

.sc-pillars-header {
  text-align: center;
  margin-bottom: 3rem;
}

.sc-pillars-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
}

.sc-pillar {
  background: var(--bg-card);
  padding: 2.5rem 2rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-left: 3px solid transparent;
  transition: border-color 0.25s, transform 0.25s;
}

.sc-pillar:hover {
  border-left-color: var(--red);
  transform: translateX(5px);
}

.sc-pillar-num {
  font-family: 'Oswald', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 4px;
  color: var(--red);
}

.sc-pillar-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.8rem;
  letter-spacing: 0.05em;
  color: var(--cream);
  line-height: 1;
}

.sc-pillar-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}

.sc-pillar-cta {
  font-family: 'Oswald', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.5rem;
}

/* QR Band */
.sc-qr-band {
  background: #1a1a1a;
  padding: 4.5rem 2rem;
  border-top: 3px solid var(--red);
}

.sc-qr-inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 5rem;
}

.sc-qr-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sc-qr-eyebrow {
  font-family: 'Oswald', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
}

.sc-qr-heading {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.05em;
  color: #ffffff;
  line-height: 1;
}

.sc-qr-heading span { color: var(--red); }

.sc-qr-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.38);
  line-height: 1.75;
  max-width: 310px;
}

.sc-qr-url {
  font-family: 'Oswald', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.2);
}

.sc-qr-frame {
  flex-shrink: 0;
  padding: 1rem;
  background: #ffffff;
  border: 3px solid var(--red);
  line-height: 0;
}

.sc-qr-frame svg {
  display: block;
  width: 180px;
  height: 180px;
}

/* ===================== FOOTER ===================== */
footer {
  background: #1a1a1a;
  border-top: 3px solid var(--red);
  padding: 2rem;
}

.footer-logo { color: #f4f4f4; }
.footer-copy { color: #888888; }

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.2rem;
  letter-spacing: 4px;
  color: var(--muted);
}

.footer-logo span { color: var(--red); }

.footer-copy {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 1.5px;
}

.footer-stripes {
  display: flex;
  gap: 2px;
}

.footer-stripes span {
  display: block;
  width: 18px;
  height: 3px;
}

/* ===================== RESPONSIVE ===================== */

/* iPad landscape / small desktops (1024px) */
@media (max-width: 1024px) {
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}

/* iPad portrait / large tablets (768px) */
@media (max-width: 768px) {
  nav {
    padding: env(safe-area-inset-top, 0px) 1.25rem 0;
  }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero-title { font-size: clamp(4rem, 17vw, 7rem); }
  .hero-tagline { letter-spacing: 3px; }

  .home-sections { padding: 3rem 1.25rem 4rem; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .cat-card { aspect-ratio: 3/2; }

  .page-header { padding: calc(7rem + env(safe-area-inset-top, 0px)) 1.25rem 2rem; }

  .video-section { padding: 1rem 0.75rem 4rem; }
  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem;
  }

  .sc-pillars-grid { grid-template-columns: 1fr; }
  .sc-pillar:hover { transform: none; }
  .sc-qr-inner { flex-direction: column; gap: 2.5rem; text-align: center; }
  .sc-qr-desc { max-width: 100%; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  footer {
    padding-left: max(2rem, env(safe-area-inset-left, 0px));
    padding-right: max(2rem, env(safe-area-inset-right, 0px));
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
  }
}

/* Small phones (480px) */
@media (max-width: 480px) {
  nav { padding: env(safe-area-inset-top, 0px) 1rem 0; }

  .hero-title { font-size: clamp(3.5rem, 18vw, 6rem); }
  .hero-eyebrow { letter-spacing: 4px; font-size: 0.62rem; }
  .hero-cta { gap: 0.6rem; }
  .btn { padding: 0.8rem 1.5rem; font-size: 0.7rem; letter-spacing: 2.5px; }

  .home-sections { padding: 2.5rem 1rem 3rem; }
  .cards-grid { grid-template-columns: 1fr; }

  .page-header { padding: calc(6rem + env(safe-area-inset-top, 0px)) 1rem 1.5rem; }

  .video-section { padding: 0.75rem 0.5rem 3rem; }
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
  }

  .sc-follow-btn { width: 100%; justify-content: center; }

  footer {
    padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
  }
}

/* Very small phones (360px and below) */
@media (max-width: 360px) {
  .hero-title { font-size: clamp(3rem, 19vw, 5rem); }
  .video-grid { gap: 0.3rem; }
  .cat-card-title { font-size: 1.8rem; }
}

/* Landscape phones — height-based query */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 100dvh;
    padding-top: 80px;
  }
  .hero-title { font-size: clamp(2.5rem, 9vh, 4.5rem); }
  .hero-eyebrow { margin-bottom: 0.4rem; font-size: 0.6rem; }
  .hero-cta { margin-top: 1rem; gap: 0.6rem; }
  .hero-scroll { display: none; }

  .page-header { padding: 5rem 1.25rem 1.5rem; }
}

/* iOS safe area — bottom (home indicator) */
@supports (padding: env(safe-area-inset-bottom)) {
  footer {
    padding-bottom: calc(2rem + env(safe-area-inset-bottom));
  }
}
