:root {
  --black: #0f172a;
  --white: #FFFFFF;
  --accent: #2563eb;
  --accent2: #93c5fd;
  --grey: #94a3b8;
  --dark-grey: #f8fafc;
  --mid-grey: #cbd5e1;
  --container-bg: #FFFFFF;

  --primary-dark: #1e3a8a;
  --soft-blue: #eff6ff;
  --medium-gray: #475569;
  --light-gray: #cbd5e1;
  --muted-gray: #94a3b8;
}

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


body {
  background: var(--white);
  color: var(--black);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  overflow-x: hidden;
  width: 100%;
}

/* LOADER */
#loader { position: fixed; inset: 0; background: var(--black); display: flex; align-items: center; justify-content: center; z-index: 9999; transition: opacity 0.6s ease, visibility 0.6s ease; }
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-bar { width: 200px; height: 1px; background: var(--dark-grey); position: relative; overflow: hidden; }
.loader-bar::after { content: ''; position: absolute; inset: 0; background: var(--accent); transform: translateX(-100%); animation: loadFill 1.8s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes loadFill { to { transform: translateX(0); } }
.loader-pct { font-family: 'Space Mono', monospace; font-size: 12px; color: var(--accent); margin-bottom: 12px; letter-spacing: 4px; }
.loader-content { text-align: center; }

/* PAGES */
.page { display: none; }
.page.active { display: block; }

/* NAV */
nav { position: fixed; top: 48px; left: 0; right: 0; padding: 24px 60px; display: flex; align-items: center; justify-content: flex-start; z-index: 1000; transition: all 0.3s ease; background: transparent; }
nav.scrolled, body:not(.home-active) nav { background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); box-shadow: 0 1px 4px rgba(0,0,0,0.05); }

/* When on home page at top, nav text should be dark grey, but logo should be primary blue */
/* Actually, let's just make it always have a subtle bg if not scrolled on home */
body:not(.home-active) nav { top: 48px; }

.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.nav-logo { cursor: pointer; display: flex; align-items: center; z-index: 1001; }
.header-logo { height: 40px; width: auto; display: block; }
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-item { position: relative; }
.nav-links > li > a { text-decoration: none; color: var(--medium-gray); font-weight: 500; font-size: 15px; cursor: pointer; position: relative; transition: color 0.3s; display: flex; align-items: center; gap: 4px; }
.nav-links > li > a > svg { transition: transform 0.3s ease; }
.nav-links > li > a:hover, .nav-links > li > a.active { color: var(--primary-dark); }
.nav-item:hover > a > svg { transform: rotate(180deg); color: var(--primary-dark); }

/* DROPDOWN MENU */
.dropdown-menu { position: absolute; top: calc(100% + 20px); left: 50%; transform: translateX(-50%) translateY(10px); background: var(--white); box-shadow: 0 10px 40px rgba(0,0,0,0.08); border-radius: 12px; padding: 16px; min-width: 200px; opacity: 0; visibility: hidden; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); z-index: 1000; border: 1px solid rgba(0,0,0,0.05); display: flex; flex-direction: column; gap: 8px; }
.dropdown-menu::before { content: ''; position: absolute; top: -20px; left: 0; right: 0; height: 20px; background: transparent; }
.nav-item:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-menu { min-width: 680px; left: -20px; transform: translateY(10px); padding: 32px; }
.nav-item:hover .mega-menu { transform: translateY(0); }
.mega-menu-3col { min-width: 860px; left: -20px; transform: translateY(10px); padding: 32px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
.nav-item:hover .mega-menu-3col { transform: translateY(0); }
.mega-menu-2col { min-width: 580px; left: -20px; transform: translateY(10px); padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.nav-item:hover .mega-menu-2col { transform: translateY(0); }
.dd-col { display: flex; flex-direction: column; gap: 24px; }
.dd-header { font-size: 11px; font-weight: 600; color: var(--medium-gray); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1px solid var(--light-gray); text-align: left; }
.dd-grid { display: grid; grid-template-columns: 1fr 1fr; row-gap: 32px; column-gap: 40px; }
.dd-item { display: flex; gap: 16px; align-items: flex-start; text-decoration: none; transition: opacity 0.2s; text-align: left; cursor: pointer; }
.dd-item:hover { opacity: 0.7; }
.dd-icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }
.dd-icon svg { width: 100%; height: 100%; stroke-width: 1.5; }
.dd-title { display: block; font-size: 16px; font-weight: 500; color: var(--black); margin-bottom: 4px; }
.dd-desc { display: block; font-size: 13px; color: var(--medium-gray); line-height: 1.4; }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.lang-select { background: transparent; border: 1px solid var(--light-gray); border-radius: 4px; color: var(--primary-dark); font-family: 'Inter', sans-serif; font-size: 14px; padding: 6px 8px; cursor: pointer; outline: none; transition: border-color 0.2s; }
.lang-select:hover { border-color: var(--medium-gray); }
.nav-cta { background: var(--primary-dark); color: var(--white); border: none; padding: 12px 24px; border-radius: 8px; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.3s; }
.nav-cta:hover { background: var(--primary-dark); color: var(--white); }

/* HERO */
.hero { height: 100vh; position: relative; display: flex; align-items: flex-end; padding: 80px 60px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background: var(--soft-blue);
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000;
  pointer-events: none;
}
.hero-yt { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero-yt iframe { position: absolute; top: 50%; left: 50%; width: 177.78vh; height: 100vh; min-width: 100%; min-height: 56.25vw; transform: translate(-50%,-50%); border: none; opacity: 0.4; }
.hero-overlay { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-content { position: relative; z-index: 10; max-width: 800px; }
.hero-brand { font-family: 'Baumans', cursive; font-size: clamp(100px,20vw,200px); line-height: 0.85; letter-spacing: -4px; color: var(--accent); opacity: 0.04; position: absolute; right: -20px; top: 50%; transform: translateY(-50%); pointer-events: none; z-index: 2; }
.hero-tag { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 4px; color: var(--accent2); text-transform: uppercase; margin-bottom: 24px; }
.hero-h1 { font-family: 'Baumans', cursive; font-size: clamp(42px,6vw,80px); line-height: 1.0; letter-spacing: 2px; margin-bottom: 32px; }
.hero-h1 em { color: var(--accent2); font-style: normal; }
.hero-btns { display: flex; align-items: center; gap: 20px; }
.hero-counter { position: absolute; right: 60px; bottom: 80px; font-family: 'Space Mono', monospace; font-size: 11px; color: var(--grey); letter-spacing: 2px; z-index: 2; }

/* BUTTONS */
.btn-primary { background: var(--primary-dark); color: var(--white); border: none; border-radius: 8px; padding: 12px 24px; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500; text-transform: uppercase; cursor: pointer; transition: background 0.3s; display: inline-block; }
.btn-primary:hover { background: var(--medium-gray); }
.btn-outline { background: transparent; color: var(--primary-dark); border: 1px solid var(--primary-dark); border-radius: 8px; padding: 12px 24px; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500; text-transform: uppercase; cursor: pointer; transition: background 0.3s; }
.btn-outline:hover { background: var(--soft-blue); }
.btn-white { background: var(--white); color: var(--primary-dark); border: none; border-radius: 8px; padding: 12px 24px; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500; text-transform: uppercase; cursor: pointer; transition: background 0.3s; white-space: nowrap; flex-shrink: 0; }
.btn-white:hover { background: var(--soft-blue); }
.btn-submit { background: var(--primary-dark); color: var(--white); border: none; border-radius: 8px; padding: 14px 32px; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500; text-transform: uppercase; cursor: pointer; transition: background 0.3s; align-self: flex-start; margin-top: 12px; }
.btn-submit:hover { background: var(--medium-gray); }

/* TOP BANNER */
.top-banner { background: var(--primary-dark); color: #ffffff; padding: 12px 24px; position: fixed; top: 0; left: 0; right: 0; z-index: 1001; height: 48px; display: flex; align-items: center; justify-content: center; font-family: 'Inter', sans-serif; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.banner-content { display: flex; align-items: center; gap: 24px; }
.banner-text { font-weight: 400; letter-spacing: 0.2px; }
.banner-text strong { font-weight: 700; }
.banner-btn { background: #183ff5; color: #ffffff; text-decoration: none; padding: 6px 16px; border-radius: 4px; font-weight: 600; font-size: 14px; transition: background 0.2s; display: inline-flex; align-items: center; gap: 6px; }
.banner-btn:hover { background: #1432c9; }
.banner-close {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s, transform 0.2s;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner-close:hover {
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

/* BANNER HIDDEN STATE */
body.banner-closed .top-banner {
  display: none;
}
body.banner-closed nav {
  top: 0;
}

@media (max-width: 768px) {
  body.banner-closed nav {
    top: 0;
  }
}

/* SECTIONS */
section { padding: 140px 60px; position: relative; background: var(--white); color: var(--primary-dark); }
section.section-alt { background: var(--soft-blue); }
.section-label { font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: 2px; color: var(--medium-gray); text-transform: uppercase; margin-bottom: 20px; display: flex; align-items: center; gap: 16px; }
.section-label::before { content: ''; display: block; width: 40px; height: 1px; background: var(--medium-gray); }
h2 { font-family: 'Baumans', cursive; font-weight: 700; font-size: clamp(36px,5vw,56px); letter-spacing: -1px; line-height: 1.1; color: var(--primary-dark); }
h3 { font-family: 'Baumans', cursive; font-weight: 600; font-size: clamp(20px,3vw,28px); line-height: 1.2; color: var(--primary-dark); }
h1, h4, h5, h6 { font-family: 'Baumans', cursive; }
p { line-height: 1.6; color: var(--medium-gray); }

/* ==================== */
/* STRICT LAYOUT SYSTEM */
/* ==================== */
.grid-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 60px;
}

/* Phase 4 Subpage Constrictors (Mimics .grid-container precisely) */
.page:not(#page-home) section,
.contacts-wrap {
  max-width: 1280px;
  margin: 0 auto;
}
.page:not(#page-home) .page-hero-content {
  max-width: 1160px;  /* 1280px - (60px*2 padding of parent) */
  margin: 0 auto;
  width: 100%;
}

/* Base 12-Column Grid (Desktop & Tablet) */
.about-grid, .adv-grid, .impact-grid, .contact-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

/* Base Spans (Desktop: 12 columns) */
.adv-card { grid-column: span 3; } /* 4 across -> 12 col */
.impact-card { grid-column: span 6; } /* 2 across -> 12 col */
.impact-card-wide { grid-column: span 12; }
.about-text, .contact-lhs { grid-column: span 6; }
.about-stats, .contact-rhs { grid-column: span 6; }

/* ABOUT STRIP */
.about-strip { display: flex; align-items: center; background: var(--soft-blue); padding: 140px 0; }
.about-text p { margin-top: 24px; font-size: 16px; max-width: 480px; }
.about-text .btn-outline { margin-top: 40px; }
.stat-box { background: var(--white); border-radius: 12px; padding: 32px; transition: background 0.3s; border: 1px solid rgba(0,0,0,0.05); }
.stat-box:hover { background: var(--dark-grey); }
.stat-num { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 56px; letter-spacing: -2px; color: var(--primary-dark); line-height: 1; }
.stat-label { font-size: 12px; opacity: 0.5; letter-spacing: 2px; margin-top: 8px; text-transform: uppercase; }

/* ADVANTAGES */
.adv-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 40px;
  align-items: center;
  margin-top: 60px;
}

.adv-pin-wrap {
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
}
.adv-pin-wrap .adv-layout {
  margin-top: 0;
}
.adv-left {
  max-width: 420px;
}
.adv-right {
  width: 100%;
  display: flex;
  align-items: center;
}
.adv-grid { margin-top: 60px; }
.adv-card { background: var(--white); border-radius: 12px; padding: 48px 32px; border: 1px solid rgba(0,0,0,0.05); transition: background 0.3s; }
.adv-card:hover { background: var(--dark-grey); }
.adv-num { font-family: 'Space Mono', monospace; font-size: 12px; font-weight: 700; letter-spacing: 2px; color: var(--medium-gray); margin-bottom: 24px; }
.adv-card h3 { font-size: 20px; margin-bottom: 12px; }
.adv-card p { font-size: 15px; }

.adv-scroll-outer {
  position: relative;
  height: 360px;
  overflow: hidden;
  margin: 0 auto;
}
.adv-scroll-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.adv-scroll-inner .adv-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 780px) {
  .adv-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  /* On mobile, don't keep the "pinned" layout height; otherwise it can
     visually overlap subsequent sections and make the advantages look unsynced. */
  .adv-pin-wrap {
    height: auto;
    align-items: flex-start;
  }
  .adv-left {
    max-width: none;
  }
  .adv-scroll-outer {
    height: auto;
    overflow: visible;
  }
  .adv-scroll-inner {
    height: auto;
    display: flex;
    flex-direction: column;
  }
  .adv-scroll-inner .adv-card {
    min-height: auto;
    margin-bottom: 16px;
  }
}

@media (min-width: 781px) {
  .adv-left {
    height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
  }
  .adv-right {
    height: 360px;
  }
}

/* SERVICES */
.services-list { margin-top: 60px; }
.service-row { display: flex; align-items: flex-start; padding: 48px 0; border-bottom: 1px solid rgba(0,0,0,0.1); gap: 60px; cursor: pointer; transition: padding-left 0.3s; position: relative; }
.service-row:hover { padding-left: 20px; }
.service-row::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--primary-dark); transform: scaleY(0); transform-origin: top; transition: transform 0.3s; border-radius: 2px; }
.service-row:hover::before { transform: scaleY(1); }
.svc-num { font-family: 'Space Mono', monospace; font-weight: 700; font-size: 14px; color: var(--medium-gray); min-width: 40px; padding-top: 6px; }
.svc-body { flex: 1; }
.svc-body h3 { margin-bottom: 12px; }
.svc-body p { font-size: 14px; max-width: 600px; }
.svc-arrow { font-size: 20px; color: var(--accent2); transition: transform 0.3s; margin-top: 8px; opacity: 0; }
.service-row:hover .svc-arrow { opacity: 1; transform: translateX(8px); }

/* VIDEO STRIP */
.vstrip { height: 100vh; position: relative; background: #040c07; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.vstrip-yt { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.vstrip-yt iframe, .vstrip-yt video { position: absolute; top: 50%; left: 50%; width: 177.78vh; height: 100vh; min-width: 100%; min-height: 56.25vw; transform: translate(-50%,-50%); border: none; opacity: 0.35; object-fit: cover; }
.vstrip-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(4,12,7,0.85) 0%, rgba(4,12,7,0.5) 100%); }
.vstrip-content { position: relative; z-index: 2; text-align: center; padding: 0 60px; }
.vstrip-content h2 { font-size: clamp(36px,6vw,80px); color: var(--white); }

/* METRICS GRID: NEW CREATIVE LAYOUT */
.metrics-section { background: var(--black); color: var(--white); position: relative; overflow: hidden; }
.metrics-bg-glow { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 80%; height: 500px; background: radial-gradient(ellipse at top, rgba(37,99,235,0.15), transparent 70%); pointer-events: none; }
.impact-grid { position: relative; z-index: 2; margin-top: 40px; }

/* Large Number Style */
.impact-card { background: transparent; padding: 48px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; border: none; }

.impact-num { font-family: 'Bebas Neue', sans-serif; font-size: clamp(60px, 8vw, 120px); line-height: 0.9; color: var(--white); margin-bottom: 24px; letter-spacing: -1px; }
.impact-num span.counter-num { display: inline-block; }
.impact-num span:not(.counter-num) { color: var(--accent); }
.impact-label { font-family: 'Space Mono', monospace; font-size: 13px; color: var(--accent2); text-transform: uppercase; letter-spacing: 3px; margin-bottom: 16px; font-weight: 700; }
.impact-desc { font-size: 15px; color: var(--muted-gray); line-height: 1.6; max-width: 380px; }

/* Stagger layout removed per request. Wide card kept */
.impact-card-wide { grid-column: span 12; display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; background: linear-gradient(135deg, var(--primary-dark), var(--black)); padding: 48px; border-radius: 24px; border: 1px solid rgba(255,255,255,0.05); }
.impact-card-wide .impact-num { margin-bottom: 0; }
.impact-card-wide .impact-content { flex: 1; }
.impact-wide-img { width: 300px; height: 200px; border-radius: 16px; overflow: hidden; flex-shrink: 0; }
.impact-wide-img img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
/* Hover animation removed per request */

@media (max-width: 900px) {
  .impact-grid { gap: 24px; }
  .impact-card { grid-column: span 12; padding: 24px; }
  .impact-card-wide { flex-direction: column; align-items: flex-start; grid-column: span 12; }
  .impact-wide-img { width: 100%; height: auto; aspect-ratio: 16/9; }
}

/* QUOTE HIGHLIGHT */
.q-highlight { background: var(--accent); padding: 48px 60px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.q-highlight h3 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(24px,3vw,40px); color: var(--white); letter-spacing: 2px; }
.q-highlight p { color: rgba(255,255,255,0.75); font-size: 14px; margin-top: 8px; }

/* CLIENTS */
/* Partners Scroller */
.partners-scroller {
  margin-top: 60px;
  overflow: hidden;
  width: 100%;
  position: relative;
  /* Fade out edges for style */
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.partners-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: scrollLogos 40s linear infinite;
}
.partners-track:hover {
  animation-play-state: paused;
}
.partners-track img {
  height: 70px;
  max-width: 220px;
  object-fit: contain;
  padding-right: 80px;
  filter: grayscale(100%) opacity(60%);
  transition: filter 0.3s ease;
}
.partners-track img:hover {
  filter: grayscale(0%) opacity(100%);
}
@keyframes scrollLogos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.client-logo { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 24px; letter-spacing: 1px; color: var(--primary-dark); opacity: 0.4; transition: opacity 0.3s; }
.client-logo:hover { opacity: 1; }

/* CONTACT SECTION */
.contact-section { background: var(--white); padding: 60px 0; }
.contact-lhs { padding: 60px; background: var(--soft-blue); border-radius: 16px; }
.contact-rhs { padding: 60px; background: #FFFFFF; border-radius: 16px; border: 1px solid rgba(0,0,0,0.05); }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; opacity: 0.5; }
.form-group input, .form-group select, .form-group textarea { background: transparent; border: none; border-bottom: 1px solid rgba(0,0,0,0.2); color: var(--primary-dark); padding: 14px 0; font-family: 'Inter', sans-serif; font-size: 15px; outline: none; transition: border-color 0.3s; resize: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-bottom-color: var(--primary-dark); }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(0,0,0,0.4); }
.form-group select option { background: #FFFFFF; }
/* TERMS ACCEPTANCE */
.terms-row { margin-top: -10px; }
.terms-check { display: flex; align-items: flex-start; gap: 12px; font-size: 12px; color: rgba(0,0,0,0.55); line-height: 1.5; }
.terms-check input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent2); }
.terms-check a { color: var(--accent2); text-decoration: none; }
.terms-check a:hover { text-decoration: underline; }
.person-card { display: flex; align-items: center; gap: 20px; padding: 24px; border: 1px solid rgba(46,125,94,0.2); margin-top: 32px; transition: border-color 0.3s; }
.person-card:hover { border-color: var(--accent2); }
.person-av { width: 56px; height: 56px; border-radius: 50%; background: var(--mid-grey); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: 'Bebas Neue', sans-serif; font-size: 20px; color: var(--accent2); }
.person-name { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.person-sub { font-family: 'Space Mono', monospace; font-size: 12px; color: var(--accent2); }
.person-sub a { color: inherit; text-decoration: none; }
.person-role { font-size: 11px; opacity: 0.4; letter-spacing: 2px; text-transform: uppercase; margin-top: 2px; }

/* PAGE HERO */
.page-hero { height: 50vh; min-height: 400px; display: flex; align-items: flex-end; padding: 120px 60px 60px; position: relative; overflow: hidden; background: var(--primary-dark); color: var(--white); }
.page-hero-watermark { position: absolute; inset: 0; font-family: 'Inter', sans-serif; font-weight: 800; font-size: 260px; color: rgba(255,255,255,0.03); display: flex; align-items: center; overflow: hidden; letter-spacing: -10px; pointer-events: none; line-height: 1; }
.page-hero-content { position: relative; z-index: 2; }

/* ABOUT / GOALS */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-top: 60px; }
.two-col p { font-size: 16px; line-height: 1.8; margin-bottom: 24px; }
.three-col { display: grid; grid-template-columns: repeat(3,1fr); gap: 40px; margin-top: 60px; }
.goal-card { background: var(--white); border-radius: 12px; padding: 48px 40px; border: 1px solid rgba(0,0,0,0.05); transition: background 0.3s; }
.goal-card:hover { background: var(--dark-grey); }
.goal-num-big { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 72px; color: var(--soft-blue); letter-spacing: -2px; line-height: 1; margin-bottom: 24px; text-shadow: -1px -1px 0 var(--light-gray), 1px -1px 0 var(--light-gray), -1px 1px 0 var(--light-gray), 1px 1px 0 var(--light-gray); }
.facts-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 60px; margin-top: 60px; }
.fact-box { text-align: center; }
.fact-big { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 80px; letter-spacing: -3px; color: var(--primary-dark); line-height: 1; }
.fact-small { font-size: 13px; opacity: 0.5; margin-top: 8px; letter-spacing: 2px; }

/* CONTACTS PAGE */
.contacts-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding: 120px 60px; }
.cdetail { margin-bottom: 40px; }
.cdetail-label { font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: 4px; color: var(--accent2); text-transform: uppercase; margin-bottom: 10px; }
.cdetail-val { font-size: 18px; color: var(--primary-dark); opacity: 0.9; }
.cdetail-val a { color: inherit; text-decoration: none; }

/* FOOTER */
footer { background: var(--black); color: var(--white); padding: 80px 0 40px; }
.footer-logo { height: 65px; width: auto; margin-bottom: 24px; display: block; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 80px; margin-bottom: 60px; }
.footer-brand { font-family: 'Inter', sans-serif; font-weight: 800; font-size: 24px; letter-spacing: -0.5px; color: var(--white); margin-bottom: 24px; cursor: pointer; }
.footer-brand span { color: var(--soft-blue); }
.footer-desc { font-size: 14px; opacity: 0.8; line-height: 1.8; max-width: 280px; }
.footer-col h4 { font-family: 'Space Mono', monospace; font-size: 12px; font-weight: 700; letter-spacing: 2px; color: var(--white); text-transform: uppercase; margin-bottom: 24px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: var(--light-gray); text-decoration: none; font-size: 14px; opacity: 0.8; transition: opacity 0.3s, color 0.3s; cursor: pointer; }
.footer-links a:hover { opacity: 1; color: var(--white); }
.footer-bottom { padding-top: 32px; display: flex; justify-content: space-between; align-items: center; width: 100%; }
.footer-copy { font-size: 12px; opacity: 0.5; width: 100%; display: flex; align-items: center; flex-wrap: nowrap; }
.footer-copy { column-gap: 14px; }
.footer-copy a { color: var(--light-gray); text-decoration: underline; opacity: 0.95; }
.footer-copy a:hover { opacity: 1; color: var(--white); }
.footer-copy a:first-of-type { margin-left: auto; }

@media (max-width: 780px) {
  .footer-copy { flex-wrap: wrap; white-space: normal; }
}
.footer-credit { font-size: 12px; opacity: 0.5; }

/* MODAL */
.modal-overlay { position: fixed; inset: 0; background: rgba(48,53,73,0.85); backdrop-filter: blur(4px); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-box { background: #FFFFFF; color: var(--primary-dark); padding: 60px; border-radius: 16px; border: 1px solid rgba(0,0,0,0.05); max-width: 560px; width: 90%; position: relative; }
.modal-close { position: absolute; top: 24px; right: 24px; background: none; border: none; color: var(--primary-dark); font-size: 28px; cursor: pointer; opacity: 0.5; transition: opacity 0.3s; }
.modal-close:hover { opacity: 1; }
.modal-box h3 { font-size: 32px; margin-bottom: 8px; }
.modal-sub { font-size: 15px; color: var(--medium-gray); margin-bottom: 32px; }

/* SCROLL TOP */
.scroll-top { position: fixed; bottom: 40px; right: 40px; width: 44px; height: 44px; background: var(--accent); border: none; color: var(--white); font-size: 18px; cursor: pointer; z-index: 500; opacity: 0; visibility: hidden; transition: all 0.3s; }
.scroll-top.show { opacity: 1; visibility: visible; }

/* HAMBURGER */
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; z-index: 1001; }
.hamburger span { display: block; width: 24px; height: 1.5px; background: var(--primary-dark); transition: all 0.3s; transform-origin: center; }
.hamburger.open {
  position: fixed;
  top: 16px;
  right: 20px;
}
.hamburger.open span { background: var(--white); }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
@media (max-width: 768px) { .hamburger { display: flex; } }

/* MOBILE NAV DRAWER */
.mobile-nav { position: fixed; inset: 0; background: var(--primary-dark); backdrop-filter: blur(16px); z-index: 999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px; opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s ease; }
.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-nav a { font-family: 'Inter', sans-serif; font-size: 32px; font-weight: 700; color: var(--white); text-decoration: none; position: relative; cursor: pointer; transition: color 0.3s; }
.mobile-nav a:hover, .mobile-nav a.active { color: var(--accent2); }
.mobile-lang-select { background: transparent; border: 1px solid rgba(255,255,255,0.3); border-radius: 4px; color: var(--white); font-family: 'Inter', sans-serif; font-size: 18px; padding: 8px 16px; margin-top: 10px; cursor: pointer; outline: none; transition: border-color 0.2s; }
.mobile-lang-select option { color: var(--primary-dark); }
.mobile-lang-select:hover { border-color: var(--white); }
.mobile-cta { margin-top: 24px; font-size: 18px; padding: 16px 40px; }

/* ANIMATIONS (Legacy and Base) */
.reveal { opacity: 0; transform: translateY(40px); }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }

/* ── ADVANCED GSAP CLASSES ── */
.gsap-reveal { opacity: 0; visibility: hidden; }
.parallax-wrap { overflow: hidden; position: relative; }
.parallax-img { height: 120%; width: 100%; object-fit: cover; top: -10%; position: absolute; }

/* HORIZONTAL SCROLL JOURNEY */
.journey-container { 
  overflow: hidden; 
  background: var(--black);
  position: relative;
}
.journey-wrapper { 
  display: flex; 
  width: 400%; /* Adjust based on content */
  height: 100vh;
  will-change: transform;
  position: relative;
  z-index: 10;
}
.journey-panel { 
  width: 100vw; 
  height: 100vh; 
  flex-shrink: 0; 
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
  padding: 0 10vw;
  position: relative;
  background: transparent !important;
  z-index: 2;
  overflow: hidden;
}

.journey-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  z-index: -1;
  transition: opacity 0.5s;
}

.journey-panel h3, .journey-panel p, .journey-num {
  position: relative;
  z-index: 10;
}

.journey-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 30% 50%, rgba(46,125,94,0.15) 0%, transparent 70%),
              linear-gradient(180deg, #0a0a0a 0%, #050a08 50%, #0a0a0a 100%);
  overflow: hidden;
}

.journey-bg-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
  opacity: 0.5;
}

.journey-bg-nodes {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.journey-ship-track {
  position: absolute;
  top: 75%;
  left: 5vw;
  right: 5vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46,125,94,0.3) 20%, rgba(46,125,94,0.3) 80%, transparent);
  z-index: 5;
}

.journey-ship {
  position: absolute;
  top: 75%;
  left: 0;
  width: 140px;
  transform: translate(-50%, -50%);
  z-index: 20;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.8));
  pointer-events: none;
}
.journey-ship img { width: 100%; height: auto; }

.journey-content { max-width: 600px; position: relative; z-index: 11; }
.journey-title { font-size: 120px; color: var(--accent); opacity: 0.1; position: absolute; top: -60px; left: -20px; font-family: 'Bebas Neue', sans-serif; line-height: 0.8; pointer-events: none; }
.journey-h { font-size: 64px; font-family: 'Baumans', cursive; margin-bottom: 24px; color: var(--white); }
.journey-p { font-size: 18px; line-height: 1.6; color: var(--grey); }

/* GLOSSARY STICKY NAVIGATION */
.glossary-nav {
  position: sticky;
  top: 120px;
  z-index: 100;
  align-self: start;
  background: rgba(255,255,255,0.9);
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* ── RESPONSIVE ── */
@media (max-width: 1279px) {
  .grid-container { padding: 0 40px; }
  section { padding: 80px 24px; }
  .about-strip { padding: 80px 0; }
}

@media (max-width: 900px) {
  nav { padding: 18px 24px; top: 48px; transition: none; }
  nav.scrolled, body:not(.home-active) nav { top: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .journey-wrapper { width: 600%; }
  
  /* Stack nested grid elements cleanly under 900px */
  .two-col, .contacts-wrap { grid-template-columns: 1fr; gap: 40px; }
  .contacts-wrap { padding: 80px 40px; }
}

/* TABLET (481px–780px): Maintain 12-column Grid & Proportional Spacing */
@media (max-width: 780px) {
  .nav-links { display: none; }
  .top-banner { height: auto; min-height: 48px; padding: 12px 20px; text-align: center; position: relative; }
  .banner-content { flex-direction: column; gap: 10px; }
  .banner-text { font-size: 13px; line-height: 1.4; }
  nav { padding: 12px 0; top: 0; position: sticky; background: var(--white) !important; border-bottom: 1px solid rgba(0,0,0,0.05); }
  nav.scrolled { top: 0; }
  body.banner-closed nav { top: 0; }
  .header-logo { height: 32px; }
  .nav-actions { gap: 10px; margin-left: 0; }
  .nav-cta { display: none; }
  .lang-select { display: none; } /* hide desktop language switcher on mobile, keep drawer one */
  .hero { padding: 0 20px 48px; align-items: flex-end; min-height: calc(100svh - 48px); }
  .hero-h1 { font-size: clamp(34px, 8vw, 52px); }
  .hero-btns { flex-direction: column; width: 100%; }
  .btn-primary, .btn-outline { width: 100%; text-align: center; }
  .journey-h { font-size: 40px; }
  .journey-title { font-size: 80px; }
  
  .grid-container { padding: 0 30px; }
  
  /* Use 12-column grid, adjusted spans */
  .adv-card { grid-column: span 6; } /* 2 cards = 12 cols total */
  .about-text, .about-stats, .contact-lhs, .contact-rhs { grid-column: span 12; }
  .impact-card { grid-column: span 12; padding: 24px; }
  .impact-card-wide { grid-column: span 12; flex-direction: column; align-items: flex-start; }
  .impact-wide-img { width: 100%; height: auto; aspect-ratio: 16/9; }
  
  /* Quote highlight: stack like mobile reference */
  .q-highlight {
    padding: 40px 0;
  }
  .q-highlight .grid-container {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .q-highlight h3 {
    font-size: 26px;
    max-width: 260px;
  }
  .q-highlight p {
    margin-top: 12px;
    max-width: 260px;
  }
  .q-highlight .btn-white {
    width: 100%;
    text-align: center;
    margin-top: 24px;
  }
}

/* MOBILE (320px–480px): 6-column Grid & Stack content vertically */
@media (max-width: 480px) {
  .grid-container { padding: 0 20px; }
  .contacts-wrap { padding: 60px 20px; }
  
  /* Use 6-column grid */
  .about-grid, .adv-grid, .impact-grid, .contact-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
  }
  
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  
  /* Stack content vertically */
  .adv-card, .impact-card, .impact-card-wide, .about-text, .about-stats, .contact-lhs, .contact-rhs {
    grid-column: span 6;
  }
}


/* ─── SHIPPING JOURNEY NATIVE THEME ─── */

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

.sj-container .sj-container {
  --bg: #07111f;
  --ocean: #0a1e35;
  --accent: #f0a500;
  --accent2: #e05252;
  --sea-blue: #1a6fa8;
  --sea-glow: rgba(26,111,168,0.4);
  --road-tan: #c8922a;
  --port-red: #e05252;
  --green: #4caf7d;
  --white: #eeeae2;
  --muted: #6a7d96;
  --panel: rgba(10,22,38,0.92);
}


.sj-container .sj-container {
  background: var(--bg);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

/* ─── SCROLL CONTAINER ─── */
.sj-container #scroller {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}
.sj-container #scroller::-webkit-scrollbar { width: 4px; }
.sj-container #scroller::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); }
.sj-container #scroller::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* ─── SLIDES ─── */
.sj-container .slide {
  height: 100vh;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ─── FIXED LIVE SCENE (top layer) ─── */
.sj-container #scene-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}
.sj-container #live-scene {
  width: 100%;
  height: 100%;
}

/* ─── SLIDE CONTENT OVERLAY ─── */
.sj-container .slide-content {
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

/* ─── STEP CARD ─── */
.sj-container .step-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 480px;
  width: 90vw;
  opacity: 0;
  transform: translateX(64px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.sj-container .step-card.visible {
  opacity: 1;
  transform: translateX(0);
}

.sj-container .step-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sj-container .step-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.sj-container .step-num-big {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(80px, 14vw, 140px);
  line-height: 0.85;
  letter-spacing: -2px;
  color: rgba(255,255,255,0.06);
  position: absolute;
  top: -20px;
  right: -10px;
  pointer-events: none;
  user-select: none;
}

.sj-container .step-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 6vw, 62px);
  letter-spacing: 2px;
  line-height: 1;
  color: var(--white);
  margin-bottom: 16px;
}
.sj-container .step-title span { color: var(--accent); }

.sj-container .step-.sj-container {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(238,234,226,0.75);
  font-weight: 300;
  max-width: 380px;
  margin-bottom: 24px;
}

.sj-container .step-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.sj-container .tag {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
  border: 1px solid;
}
.sj-container .tag-sea   { border-color: var(--sea-blue); color: #64b5f6; background: rgba(26,111,168,0.15); }
.sj-container .tag-road  { border-color: var(--road-tan); color: #ffcc80; background: rgba(200,146,42,0.15); }
.sj-container .tag-port  { border-color: var(--port-red); color: #ef9a9a; background: rgba(224,82,82,0.15); }
.sj-container .tag-green { border-color: var(--green);    color: #a5d6a7; background: rgba(76,175,125,0.15); }

.sj-container .step-metric {
  display: flex;
  gap: 24px;
}
.sj-container .metric {
  display: flex;
  flex-direction: column;
}
.sj-container .metric-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: var(--accent);
  line-height: 1;
}
.sj-container .metric-lbl {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

/* card background */
.sj-container .card-bg {
  position: absolute;
  inset: -20px -24px -24px -24px;
  background: var(--panel);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(20px);
  z-index: -1;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.sj-container .card-bg::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 12px 12px 0 0;
}
.sj-container .card-sea .card-bg::before   { background: linear-gradient(90deg, var(--sea-blue), transparent); }
.sj-container .card-road .card-bg::before  { background: linear-gradient(90deg, var(--road-tan), transparent); }
.sj-container .card-port .card-bg::before  { background: linear-gradient(90deg, var(--port-red), transparent); }
.sj-container .card-green .card-bg::before { background: linear-gradient(90deg, var(--green), transparent); }
.sj-container .card-accent .card-bg::before{ background: linear-gradient(90deg, var(--accent), transparent); }

/* ─── HERO SLIDE ─── */
.sj-container .hero-content {
  text-align: center;
  z-index: 10;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.22,1,0.36,1) 0.4s forwards;
}
.sj-container .hero-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.sj-container .hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(56px, 10vw, 120px);
  letter-spacing: 3px;
  line-height: 0.9;
  margin-bottom: 20px;
}
.sj-container .hero-title .line2 { color: var(--accent); }
.sj-container .hero-sub {
  font-size: 16px;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 36px;
  font-style: italic;
}
.sj-container .scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 3px;
  color: rgba(240,165,0,0.5);
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}
.sj-container .scroll-hint svg { width: 20px; height: 20px; }

/* ─── PROGRESS SIDEBAR ─── */
.sj-container #progress-nav {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.sj-container .nav-dot {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.sj-container .nav-dot-inner {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.4s;
  position: relative;
}
.sj-container .nav-dot.active .nav-dot-inner {
  background: var(--accent);
  border-color: var(--accent);
  width: 8px;
  height: 8px;
  box-shadow: 0 0 12px rgba(240,165,0,0.5);
}
.sj-container .nav-dot-label {
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  transition: all 0.3s;
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  white-space: nowrap;
}
.sj-container .nav-dot:hover .nav-dot-label,
.sj-container .nav-dot.active .nav-dot-label {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent);
}

/* ─── TOP BAR ─── */
.sj-container #top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 36px;
  background: linear-gradient(to bottom, rgba(7,17,31,0.9), transparent);
}
.sj-container .logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 4px;
  color: var(--white);
}
.sj-container .logo span { color: var(--accent); }
.sj-container .step-counter {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--muted);
}
.sj-container .step-counter span { color: var(--accent); }

/* ─── PROGRESS BAR ─── */
.sj-container #progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #f06020);
  z-index: 200;
  transition: width 0.4s ease;
  width: 0%;
}

/* ─── SLIDE POSITIONING ─── */
.sj-container .slide-left  .slide-content { margin-right: auto; margin-left: 8vw; }
.sj-container .slide-right .slide-content { margin-left: auto; margin-right: 8vw; }
.sj-container .slide-center .slide-content { margin: 0 auto; }

/* ─── SCENE ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* GLOSSARY PAGE */
.glossary-nav { margin: 60px 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.glossary-nav a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; background: var(--soft-blue); color: var(--primary-dark); text-decoration: none; font-weight: 600; font-family: 'Space Mono', monospace; transition: all 0.3s; border: 1px solid rgba(0,0,0,0.05); }
.glossary-nav a:hover, .glossary-nav a.active { background: var(--primary-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.glossary-nav a.disabled { opacity: 0.3; pointer-events: none; }

.glossary-content { max-width: 900px; margin: 0 auto; padding-bottom: 120px; }
.glossary-letter-group { margin-bottom: 80px; scroll-margin-top: 100px; }
.glossary-letter { font-family: 'Bebas Neue', sans-serif; font-size: 80px; color: var(--accent); line-height: 1; margin-bottom: 32px; padding-bottom: 16px; border-bottom: 2px solid var(--soft-blue); }

.glossary-term { background: var(--white); border-radius: 12px; padding: 32px; margin-bottom: 16px; border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 4px 20px rgba(0,0,0,0); transition: all 0.3s; }
.glossary-term:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.05); transform: translateY(-2px); border-color: rgba(37,99,235,0.1); }
.glossary-term h3 { font-family: 'Inter', sans-serif; font-size: 20px; font-weight: 600; color: var(--primary-dark); margin-bottom: 12px; display: flex; align-items: center; gap: 12px; }
.glossary-term p { font-size: 15px; line-height: 1.6; color: var(--medium-gray); margin-bottom: 0; }
.term-abbr { display: inline-block; padding: 4px 8px; background: var(--soft-blue); color: var(--accent); border-radius: 4px; font-family: 'Space Mono', monospace; font-size: 12px; font-weight: 700; letter-spacing: 1px; }

@media (max-width: 768px) {
  .glossary-nav a { width: 36px; height: 36px; font-size: 14px; }
  .glossary-letter { font-size: 60px; margin-bottom: 24px; padding-bottom: 12px; }
  .glossary-term { padding: 24px; }
}
@keyframes bounce {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateY(8px); }
}
@keyframes waveMorph {
  0%, 100% { transform: scaleY(1) translateY(0); }
  50%       { transform: scaleY(1.15) translateY(-4px); }
}
@keyframes shipRock {
  0%, 100% { transform: rotate(-1.5deg) translateY(0); }
  50%       { transform: rotate(1.5deg) translateY(-5px); }
}
@keyframes truckMove {
  0%   { transform: translateX(-200px); opacity: 0; }
  10%  { opacity: 1; }
  100% { transform: translateX(300px); opacity: 1; }
}
@keyframes truckMove2 {
  0%   { transform: translateX(-100px); opacity: 0; }
  10%  { opacity: 1; }
  100% { transform: translateX(400px); opacity: 1; }
}
@keyframes wheelSpin {
  to { transform: rotate(360deg); }
}
@keyframes smokeRise {
  0%   { opacity: 0.5; transform: translateY(0) scale(0.6); }
  100% { opacity: 0;   transform: translateY(-28px) scale(1.8); }
}
@keyframes craneArm {
  0%, 100% { transform: rotate(-8deg); }
  50%       { transform: rotate(8deg); }
}
@keyframes containerDrop {
  0%   { transform: translateY(-30px); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: translateX(0);     opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}
@keyframes dash {
  to { stroke-dashoffset: -48; }
}
@keyframes float {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateY(-7px); }
}
@keyframes scanLine {
  0%   { transform: translateX(0); opacity: 0.6; }
  100% { transform: translateY(36px); opacity: 0; }
}
@keyframes glow {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(240,165,0,0.4)); }
  50%       { filter: drop-shadow(0 0 16px rgba(240,165,0,0.8)); }
}
@keyframes cloudDrift {
  from { transform: translateX(0); }
  to   { transform: translateX(80px); }
}
@keyframes radarSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ─── SVG SCENE BASE ─── */
.sj-container #live-scene .ocean-wave { animation: waveMorph 3s ease-in-out infinite; transform-origin: center bottom; }
.sj-container #live-scene .ship-group { animation: shipRock 4s ease-in-out infinite; transform-origin: center center; }
.sj-container #live-scene .truck-a    { animation: truckMove 10s linear infinite; }
.sj-container #live-scene .truck-b    { animation: truckMove2 11s linear infinite 2s; }
.sj-container #live-scene .crane-arm-a { animation: craneArm 3.5s ease-in-out infinite; transform-origin: 372px 210px; }
.sj-container #live-scene .crane-arm-b { animation: craneArm 4s ease-in-out infinite 1.5s; transform-origin: 762px 210px; }
.sj-container #live-scene .smoke-a    { animation: smokeRise 1.2s ease-out infinite; }
.sj-container #live-scene .smoke-b    { animation: smokeRise 1.2s ease-out infinite 0.5s; }
.sj-container #live-scene .pulse-dot  { animation: pulse 2s ease-in-out infinite; }
.sj-container #live-scene .route-dash { animation: dash 2s linear infinite; }
.sj-container #live-scene .float-el   { animation: float 3s ease-in-out infinite; }

/* element reveal classes */
.sj-container .scene-el { opacity: 0; transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22,1,0.36,1); }
.sj-container .scene-el.show { opacity: 1; }


/* BLOG MARKDOWN CONTENT */
.blog-markdown-content { font-family: "Inter", sans-serif; color: var(--medium-gray); font-size: 16px; line-height: 1.8; }
.blog-markdown-content h2 { font-size: 28px; color: var(--primary-dark); margin-top: 48px; margin-bottom: 24px; font-weight: 700; letter-spacing: -0.5px; }
.blog-markdown-content h3 { font-size: 22px; color: var(--primary-dark); margin-top: 32px; margin-bottom: 16px; font-weight: 600; }
.blog-markdown-content p { margin-bottom: 24px; }
.blog-markdown-content ul, .blog-markdown-content ol { margin-bottom: 24px; padding-left: 24px; }
.blog-markdown-content li { margin-bottom: 8px; }
.blog-markdown-content strong { color: var(--primary-dark); font-weight: 600; }
.blog-markdown-content blockquote { border-left: 4px solid var(--accent); padding-left: 20px; font-style: italic; color: rgba(71, 85, 105, 0.8); margin: 32px 0; background: var(--dark-grey); padding: 24px 20px; border-radius: 0 8px 8px 0; }
