@font-face {
  font-family: 'StrechPro';
  src: url('assets/stretch-pro.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* =============================================
   THE CRTV HUB — Shared Stylesheet
   Matching crtv.axocreate.com exactly
   ============================================= */

@font-face {
  font-family: 'MadeOuter';
  src: url('assets/MADE-Outer-Sans-Light-1.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --blue: #1076F8;
  --navy: #001138;
  --black: #000;
  --white: #fff;
  --font: 'MadeOuter', sans-serif;
  --font-display: 'StrechPro', sans-serif;
  --nav-h: 90px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: #fff; color: #111; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ─── PRELOADER ─── */
#preloader {
  position: fixed; inset: 0; width: 100%; height: 100%;
  background: #fff; display: flex; justify-content: center; align-items: center;
  z-index: 99999;
  transform: translateY(0); opacity: 1;
  transition: transform 1s cubic-bezier(0.4,0,0.2,1), opacity 0.4s ease;
}
.preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 24px; }
#preloader-circle {
  width: 180px; height: 180px; border-radius: 50%; background: var(--blue);
  display: grid; place-items: center; cursor: pointer; user-select: none;
  position: relative; outline: none;
  opacity: 0; transform: translateY(14px) scale(0.98);
  transition: opacity 0.75s cubic-bezier(0.4,0,0.2,1), transform 0.75s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 16px 48px rgba(16,118,248,0.22);
}
#preloader.show-logo #preloader-circle { opacity: 1; transform: translateY(0) scale(1); animation: breathe 2.2s ease-in-out infinite; }
@keyframes breathe {
  0%,100% { transform: scale(1); box-shadow: 0 16px 48px rgba(16,118,248,0.22); }
  50% { transform: scale(1.03); box-shadow: 0 22px 62px rgba(16,118,248,0.32); }
}
#preloader-circle::before {
  content: ""; position: absolute; inset: -12px; border-radius: 999px;
  border: 2px solid rgba(16,118,248,0.18); opacity: 0; transform: scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease; pointer-events: none;
}
#preloader-circle::after {
  content: ""; position: absolute; top: 26px; left: 34px;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255,255,255,0.55); opacity: 0.75; pointer-events: none;
}
#preloader-circle:hover, #preloader-circle:focus-visible { animation: none; transform: scale(1.04); box-shadow: 0 24px 70px rgba(16,118,248,0.38); }
#preloader-circle:hover::before, #preloader-circle:focus-visible::before { opacity: 1; transform: scale(1); }
#preloader-circle:active { transform: scale(0.99); }
#preloader-logo { width: 95px; height: auto; pointer-events: none; user-select: none; -webkit-user-drag: none; }
#preloader-instruction { font-family: var(--font); font-size: 15px; font-weight: 300; color: var(--blue); letter-spacing: 1px; text-transform: uppercase; margin: 0; }
#preloader.slide-exit { transform: translateY(-100%); }
#preloader.fade-out { opacity: 0; }

/* ─── NAV ─── */
/* Outer fixed wrapper */
#nav-outer {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center;
  padding: 14px 20px;
  pointer-events: none;
  gap: 14px;
  transition: padding 0.4s ease;
}

/* Logo — always visible top-left, outside pill by default */
#nav-logo {
  pointer-events: all;
  opacity: 1;
  flex-shrink: 0;
  display: flex; align-items: center;
  transition: all 0.4s ease;
}

/* The pill — links only, floats right by default */
#nav-pill {
  pointer-events: all;
  display: flex; align-items: center; justify-content: center;
  gap: 36px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 45px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  padding: 0 36px;
  height: 60px;
  margin-left: auto;
  transition: all 0.45s cubic-bezier(0.4,0,0.2,1);
}

/* Scrolled — logo moves into pill on left, links on right, all inside one blue pill */
@keyframes navSlideDown {
  from { transform: translateY(-110%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
#nav-outer.scrolled {
  padding: 10px 20px;
  animation: navSlideDown 0.45s cubic-bezier(0.4,0,0.2,1) forwards;
}
#nav-outer.scrolled #nav-logo {
  order: -1;
  margin-right: 0;
}
#nav-outer.scrolled #nav-pill {
  background: #1076F8;
  border-color: #1076F8;
  box-shadow: 0 4px 24px rgba(16,118,248,0.3);
  border-radius: 45px;
  padding: 0 30px 0 20px;
  height: 68px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  flex: 1;
  justify-content: flex-end;
  gap: 36px;
  margin-left: 0;
}
/* Logo sits inside the pill visually by overlapping */
#nav-outer.scrolled {
  background: #1076F8;
  border-radius: 45px;
  margin: 10px 20px;
  left: 0; right: 0;
  padding: 0 20px 0 20px;
  height: 68px;
  box-shadow: 0 4px 24px rgba(16,118,248,0.3);
}
#nav-outer.scrolled #nav-pill {
  background: transparent;
  border: none;
  box-shadow: none;
  flex: 1;
  justify-content: flex-end;
  gap: 36px;
  height: 68px;
  padding: 0;
  margin-left: 20px;
  border-radius: 0;
}
.nav-link {
  font-family: var(--font); font-size: 16px; font-weight: 400;
  letter-spacing: 0.05em; text-transform: uppercase; color: #fff;
  white-space: nowrap; transition: opacity 0.2s;
  position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -6px; left: 0; right: 0;
  height: 2px; background: #fff; transform: scaleX(0);
  transition: transform 0.2s; transform-origin: center;
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link:hover { opacity: 0.8; }
.nav-link.active { opacity: 1; }
.nav-cta {
  background: var(--blue) !important; padding: 10px 20px !important;
  border-radius: 4px; font-size: 14px !important;
}
.nav-cta::after { display: none; }
.nav-cta:hover { opacity: 0.9 !important; }

/* Mobile burger - hidden on desktop */
#nav-burger {
  display: none; position: fixed; top: 20px; right: 20px; z-index: 10002;
  flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 8px;
  transition: opacity 0.2s;
}
#nav-burger span { display: block; width: 24px; height: 2.5px; background: #fff; border-radius: 2px; }
body.mob-scrolled #nav-burger { opacity: 0 !important; pointer-events: none !important; }

/* Mobile nav */
#mobile-nav {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999; background: #1076F8;
  flex-direction: column; align-items: center; justify-content: center; gap: 0;
}
#mobile-nav.open { display: flex; }
#mobile-nav.open ~ #nav-burger,
body.menu-open #nav-burger { display: none !important; }
#mobile-nav a {
  font-family: var(--font); font-size: 20px; letter-spacing: 0.12em;
  text-transform: uppercase; color: #fff; text-decoration: none;
  width: 100%; text-align: center; padding: 26px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: #1076F8;
}
#mobile-nav a.active { background: #001138; }
#mobile-nav a:first-of-type { border-top: 1px solid rgba(255,255,255,0.1); }
#mob-close {
  position: absolute; top: 16px; right: 16px;
  background: rgba(100,100,100,0.7); border: none; color: #fff;
  font-size: 20px; cursor: pointer; width: 48px; height: 48px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  z-index: 10003;
}

/* ─── TICKER ─── */
.ticker-row { overflow: hidden; white-space: nowrap; background: #000; padding: 16px 0; border-top: 1px solid #1a1a1a; border-bottom: 1px solid #1a1a1a; }
.ticker-track { display: inline-block; animation: tickerL 22s linear infinite; }
.ticker-row.reverse .ticker-track { animation: tickerR 22s linear infinite; }
@keyframes tickerL { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes tickerR { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }
.ticker-item { display: inline-block; font-family: var(--font); font-size: 13px; font-weight: 300; letter-spacing: 0.25em; text-transform: uppercase; color: #fff; padding: 0 28px; }

/* ─── BRAND LOGOS CAROUSEL ─── */
.brands-carousel { overflow: hidden; padding: 40px 0; background: #0a0a0a; }
.brands-track { display: flex; gap: 60px; animation: brandsScroll 28s linear infinite; align-items: center; }
.brands-track.reverse { animation-direction: reverse; }
.brands-track img { height: 40px; width: auto; opacity: 0.6; filter: invert(1) brightness(2); flex-shrink: 0; transition: opacity 0.3s; }
.brands-track img:hover { opacity: 1; }
@keyframes brandsScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ─── SECTION TYPOGRAPHY ─── */
.eyebrow { display: block; font-family: var(--font); font-size: 11px; font-weight: 300; letter-spacing: 0.35em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; }
.h-xl { font-family: var(--font); font-size: clamp(42px, 6.5vw, 95px); font-weight: 300; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1; }
.h-lg { font-family: var(--font); font-size: clamp(36px, 5vw, 72px); font-weight: 300; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1; }
.h-md { font-family: var(--font); font-size: clamp(28px, 3.5vw, 52px); font-weight: 300; letter-spacing: 0.03em; text-transform: uppercase; line-height: 1.05; }
.italic-quote { font-family: var(--font); font-size: clamp(18px, 2.5vw, 28px); font-weight: 300; font-style: italic; color: #444; }
.body-text { font-family: var(--font); font-size: 15px; font-weight: 300; line-height: 1.85; color: #555; }

/* ─── MASONRY GALLERY ─── */
.masonry { column-count: 4; column-gap: 10px; }
.masonry-item { break-inside: avoid; margin-bottom: 10px; position: relative; overflow: hidden; cursor: pointer; }
.masonry-item img { width: 100%; display: block; filter: brightness(0.88); transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94), filter 0.4s; }
.masonry-item:hover img { transform: scale(1.04); filter: brightness(0.6); }
.masonry-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; }
.masonry-item:hover .masonry-overlay { opacity: 1; }
.masonry-zoom { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.5); display: flex; align-items: center; justify-content: center; font-size: 16px; color: #fff; transform: scale(0.7); transition: transform 0.3s; }
.masonry-item:hover .masonry-zoom { transform: scale(1); }

/* ─── LIGHTBOX ─── */
#lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.96); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; padding: 40px; }
#lightbox.open { display: flex; }
.lb-inner { position: relative; max-width: 1100px; width: 100%; animation: lbIn 0.3s ease; }
@keyframes lbIn { from { opacity:0; transform:scale(0.95); } to { opacity:1; transform:scale(1); } }
#lb-img { width: 100%; max-height: 84vh; object-fit: contain; }
#lb-close { position: absolute; top: -44px; right: 0; background: none; border: 1.5px solid rgba(255,255,255,0.3); color: #fff; width: 38px; height: 38px; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: border-color 0.2s; }
#lb-close:hover { border-color: #fff; }
#lb-prev, #lb-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; width: 46px; height: 46px; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
#lb-prev:hover, #lb-next:hover { background: rgba(255,255,255,0.25); }
#lb-prev { left: -62px; } #lb-next { right: -62px; }
#lb-count { position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%); font-size: 11px; letter-spacing: 0.2em; color: rgba(255,255,255,0.4); font-family: var(--font); }

/* ─── FOOTER ─── */
footer { background: #fff; border-top: 1px solid rgba(0,0,0,0.06); }
.footer-main { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 48px; max-width: 1200px; margin: 0 auto; padding: 60px 40px 50px; }
.footer-logo img { height: 50px; margin-bottom: 12px; }
.footer-col h5 { font-family: var(--font); font-size: 11px; font-weight: 300; letter-spacing: 0.3em; text-transform: uppercase; color: #333; margin-bottom: 18px; }
.footer-col a { display: block; font-family: var(--font); font-size: 13px; font-weight: 300; letter-spacing: 0.12em; text-transform: uppercase; color: #777; margin-bottom: 12px; transition: color 0.2s; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom { border-top: 1px solid rgba(0,0,0,0.06); max-width: 1200px; margin: 0 auto; padding: 20px 40px; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom span { font-family: var(--font); font-size: 11px; font-weight: 300; letter-spacing: 0.1em; color: #aaa; text-transform: uppercase; }

/* ─── RESPONSIVE ─── */
#mobile-scroll-bar { display: none; }
@media (max-width: 900px) {
  #nav-outer { display: none !important; }
  .explore-section { display: none !important; }
  #nav-logo { display: none !important; }
  #nav-burger {
    display: flex;
    position: fixed;
    top: 16px; right: 16px;
    z-index: 10000;
  }
  /* Scrolled mobile pill — blue bar with logo + burger */
  @keyframes slideDown {
    from { transform: translateY(-100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  #mobile-scroll-bar {
    display: none;
    position: fixed; top: 10px; left: 12px; right: 12px;
    z-index: 9998;
    background: #1076F8;
    border-radius: 20px;
    padding: 10px 20px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 6px 24px rgba(16,118,248,0.45);
  }
  #mobile-scroll-bar.visible {
    display: flex;
    animation: slideDown 0.35s cubic-bezier(0.4,0,0.2,1) forwards;
  }
  #mobile-scroll-bar.visible ~ * #nav-burger,
  body.scrolled #nav-burger { opacity: 0; pointer-events: none; }
  #mobile-scroll-bar img { width: 52px; height: 52px; object-fit: contain; }
  #mobile-scroll-bar button {
    background: none; border: none; cursor: pointer;
    display: flex; flex-direction: column; gap: 5px; padding: 6px;
  }
  #mobile-scroll-bar button span { display: block; width: 22px; height: 2px; background: #fff; }
  .masonry { column-count: 2; }
  .footer-main { grid-template-columns: 1fr; gap: 32px; padding: 40px 24px; }
  .footer-bottom { padding: 16px 24px; flex-direction: column; gap: 8px; text-align: center; }
  #lb-prev, #lb-next { display: none; }
  #lightbox { padding: 16px; }
}
@media (max-width: 480px) {
  .masonry { column-count: 1; }
}

/* ─── SHARED PRELOADER SCRIPT UTILITY ─── */
/* sessionStorage key: crtv_preloader_seen */



/* ── FOOTER MOBILE ── */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
  gap: 20px;
}
.footer-col-right { text-align: right; }
.footer-h {
  font-family: 'StrechPro', sans-serif;
  font-size: 18px; font-weight: 600;
  text-transform: uppercase; color: #fff;
  margin: 0 0 16px 0; letter-spacing: 0.05em;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
  font-family: 'MadeOuter', sans-serif;
  font-size: 13px; color: #fff;
  text-decoration: none; letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-links a:hover { color: #1076F8; }
.footer-logo-wrap { display: flex; justify-content: center; align-items: center; }

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 32px 16px;
  }
  .footer-logo-wrap {
    grid-column: 1 / -1;
    order: -1;
    justify-content: center;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .footer-col-right { text-align: left; }
  .footer-h { font-size: 14px; }
  .footer-links a { font-size: 12px; }
}
