html, body {
  margin: 0;
  padding: 0;
  background: black;
  color: white;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

/* Scotia Font Family */
@font-face {
  font-family: 'Scotia';
  src: url('../fonts/Scotia_W_Lt.woff2') format('woff2'),
       url('../fonts/Scotia_W_Lt.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Scotia';
  src: url('../fonts/Scotia_W_Rg.woff2') format('woff2'),
       url('../fonts/Scotia_W_Rg.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Scotia';
  src: url('../fonts/Scotia_W_Bd.woff2') format('woff2'),
       url('../fonts/Scotia_W_Bd.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Scotia Headline';
  src: url('../fonts/Scotia_W_Headline.woff2') format('woff2'),
       url('../fonts/Scotia_W_Headline.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Intro */
.intro-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10; /* was 100 */
  overflow: hidden;
}
.intro-video {
  position: absolute; inset: 0;
  width: 100vw; height: 100vh;
  object-fit: cover;
  z-index: 1; pointer-events: none;
}

/* Desktop video - show by default */
.intro-video.intro-video-desktop {
  display: block;
}

/* Mobile video - hide by default */
.intro-video.intro-video-mobile {
  display: none !important;
}

/* Show mobile video on mobile devices */
@media (max-width: 768px) {
  .intro-video.intro-video-desktop {
    display: none !important;
  }
  
  .intro-video.intro-video-mobile {
    display: block !important;
  }
  
  /* Mobile video optimizations */
  .intro-video.intro-video-mobile {
    /* Reduce quality for better performance on mobile */
    image-rendering: optimizeSpeed;
    /* Ensure smooth playback */
    will-change: transform;
    /* Hardware acceleration */
    transform: translateZ(0);
    backface-visibility: hidden;
    /* Prioritize video loading */
    z-index: 1;
    /* Ensure video is ready to play */
    opacity: 1;
  }
}
.white-overlay {
  position: absolute; inset: 0;
  background: #fff; z-index: 2; pointer-events: none;
}
.intro-text {
  color: #ED0722;
  font-size: 14vw;
  font-weight: 1000;
  text-align: center;
  font-family: 'Scotia Headline', 'Scotia', Arial, sans-serif;
  letter-spacing: -0.03em;
  z-index: 2;
  position: relative;
  line-height: 1;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.4),
    0 4px 8px rgba(0, 0, 0, 0.3);
  transform-origin: calc(50% - 56px) 50%;
}

/* Header */
.main-header {
  position: fixed; top: 0; left: 0; width: 100%;
  box-sizing: border-box; height: 70px;
  background: rgba(255, 255, 255, 0.92);
  z-index: 999;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.04);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), top 0.3s ease-in-out;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
  transform: translateY(-100%); /* Always start hidden */
}
.main-header.header-visible {
  transform: translateY(0) !important; /* Show when explicitly visible */
}
.main-header.header-hidden {
  transform: translateY(-100%) !important; /* Hide when explicitly hidden */
}
.header-content {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 0 50px;
}
.header-logo {
  font-size: 2.6rem; font-weight: 900; color: #ED0722; letter-spacing: -0.03em;
  font-family: 'Scotia Headline', 'Scotia', Arial, sans-serif; text-decoration: none;
}
.header-right { display: flex; align-items: center; gap: 16px; }
.header-info { color: #222; font-size: 1.1rem; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; }
.header-cta {
  display: inline-block; padding: 0.7em 1.8em; background: #ED0722; color: #fff;
  font-size: 1.1rem; font-weight: 600; border: none; border-radius: 40px; text-decoration: none;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.08); transition: background 0.2s, transform 0.2s; cursor: pointer;
  letter-spacing: 0.03em;
}
.header-cta:hover, .header-cta:focus { background: #ED0722; transform: translateY(-1px); }
.header-hamburger {
  background: none; border: none; display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 6px; cursor: pointer; width: 40px; height: 40px; padding: 0; margin: 0; z-index: 1001; position: relative;
}
.header-hamburger span {
  display: block; width: 28px; height: 4px; background: #ED0722; border-radius: 2px; transition: all 0.3s ease-in-out;
  transform-origin: center;
}
.header-hamburger.active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.header-hamburger.active span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.header-hamburger.active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

.header-dropdown {
  display: flex; flex-direction: column;
  position: fixed; top: 70px; right: 16px; background: #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
  border-radius: 12px; min-width: 220px; z-index: 1000; padding: 12px 0;
  font-family: 'Scotia Headline', 'Scotia', Arial, sans-serif;
  font-weight: 400;
  opacity: 0; pointer-events: none; transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.header-dropdown.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.header-dropdown a { padding: 10px 20px; text-decoration: none; color: #333; display: block; transition: background 0.2s, color 0.2s; }
.header-dropdown a:hover, .header-dropdown a:focus { background: #f8f8f8; color: #ED0722; }

@media (max-width: 768px) {
  .header-logo { font-size: 2.2rem; }
  .header-info { display: none; }
}
@media (max-width: 600px) {
  .main-header { padding: 0 12px; height: 56px; }
  .header-content { padding: 0; }
  .header-logo { font-size: 1.8rem; }
  .header-cta { display: none; }
  .header-dropdown { top: 56px; right: 12px; }
}

/* Scroll Stage / Panels */
.scroll-stage {
  height: 100vh;
  position: relative;
  z-index: 200; /* was 50 */
}

.panel-text {
  position: absolute; top: 0; left: 0; width: 100%; height: 100vh;
  display: flex; align-items: center;
  font-size: 3rem;
  z-index: 10;
  margin-left: 100px;
  opacity: 0;
  pointer-events: none;
}
.panel-text.active { opacity: 1; pointer-events: auto; }

.bg-image {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  opacity: 0; pointer-events: none; z-index: 0; transition: opacity 0.5s linear;
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.85) 28%, rgba(0,0,0,0.0) 55%),
    var(--image-url);
  transform: scale(1);
  will-change: opacity, transform;
}
.bg-video {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  opacity: 0; pointer-events: none; z-index: 0; transition: opacity 0.5s linear;
  overflow: hidden;
  transform: scale(1);
  will-change: opacity, transform;
}
.bg-video::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.85) 28%, rgba(0,0,0,0.0) 55%);
  z-index: 1;
  pointer-events: none;
}
.bg-video video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}
.bg-black {
  position: fixed; inset: 0;
  background: black; opacity: 0; pointer-events: none; z-index: 1; transition: opacity 0.5s linear;
}

.text-tint {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  height: 100vh; margin-left: 0; padding: 0; min-width: 20vw; max-width: 40vw;
}
.headline {
  font-size: 4.5vw; font-weight: 1000; margin: 0 0 1vh 0; text-align: left; line-height: 1.02; letter-spacing: -0.04em;
  text-transform: none;
  font-family: 'Scotia Headline', 'Scotia', Arial, sans-serif;
  
}
.secondary {
  font-size: 1.35vw; font-weight: 500; margin: 0; text-align: left; line-height: 1.25; color: #FFF; font-family: 'Scotia', Arial, sans-serif;
}
.description {
  font-size: 0.8vw; font-weight: 400; margin: 1vh 0 0 0; text-align: left; line-height: 1.4; color: #cccccc; max-width: 90%; font-family: 'Scotia', Arial, sans-serif;
}

.cta-button {
  display: inline-block; margin-top: 2vh; padding: 1.2em 2.5em; background: #ED0722; color: #fff; font-size: 1.0vw; font-weight: 600; font-family: 'Scotia', Arial, sans-serif;
  border: none; border-radius: 40px; text-decoration: none; box-shadow: 0 2px 16px 0 rgba(0,0,0,0.10);
  transition: background 0.2s, transform 0.2s; cursor: pointer; letter-spacing: 0.03em;
  pointer-events: auto; position: relative; z-index: 1000;
}
.cta-button:hover, .cta-button:focus { background: #c41e3a; transform: translateY(-2px) scale(1.02); }

@media (max-width: 768px) {
  .panel-text { margin-left: 16px; margin-right: 16px; font-size: 1rem; }
  .text-tint { max-width: 90vw; }
  .headline { font-size: 3.5rem; line-height: 1.1; text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6); }
  .secondary { font-size: 1.7rem; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); }
  .description { font-size: 1.3rem; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4); }
  .cta-button { font-size: 1rem; padding: 1em 2em; }
  
  /* Mobile intro section optimizations */
  .intro-section {
    /* Ensure proper mobile viewport handling */
    min-height: 100vh;
    min-height: -webkit-fill-available;
  }
  
  .intro-text {
    /* Adjust text size for mobile */
    font-size: 12vw;
    /* Very subtle text shadow for mobile readability */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    /* Ensure crisp text rendering during animations */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    /* Prevent pixelation during scaling */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    /* Hardware acceleration for smooth scaling */
    transform: translateZ(0);
    will-change: transform;
  }
}

/* Footer */
.site-footer {
  background: #ED0722; color: #fff; padding: 40px 20px; font-size: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1); position: relative; z-index: 10;
}
.footer-container {
  max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 2fr 1.5fr 1fr; align-items: start; gap: 30px;
}
.footer-logo {
  font-size: 3rem; font-weight: 900; color: #fff; letter-spacing: -0.03em; font-family: 'Scotia App Bold', Arial, sans-serif; text-decoration: none;
}
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-links h4, .footer-contact h4 { margin-bottom: 8px; color: #fff; font-weight: 600; }
.footer-links a, .footer-contact a, .footer-contact p { color: rgba(255, 255, 255, 0.9); text-decoration: none; line-height: 1.5; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; text-decoration: underline; }
.footer-social { display: flex; gap: 30px; justify-content: center; margin-top: 12px; }
.footer-social a { color: #fff; font-size: 32px; transition: opacity 0.2s; }
.footer-social a:hover { opacity: 0.8; }
.footer-spacer { height: 100vh; }

@media (max-width: 992px) { .footer-container { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .footer-container { grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .footer-logo { margin: 0 auto; display: block; }
  .footer-links, .footer-contact, .footer-social { align-items: center; }
}
