:root {
  --dark: #002533;
  --dark-deeper: #001A24;
  --dark-card: #003040;
  --dark-card-hover: #003A4D;
  --dark-border: #003D50;
  --dark-border-light: #005068;

  --light: #FFFFFF;
  --light-bg: #F7F9FA;
  --light-card: #FFFFFF;
  --light-border: #E2E8EC;
  --light-border-hover: #CBD5DB;

  --highlight: #4DC9F6;
  --highlight-muted: rgba(77, 201, 246, 0.12);
  --highlight-dark: #002533;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif; background: var(--dark); color: #fff; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
img { max-width: 100%; display: block; }

.section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
.section-subtitle { font-size: 1.1rem; max-width: 640px; line-height: 1.7; margin-top: 1rem; opacity: 0.7; }

/* ── Theme modifiers ──────────────────────── */
.section--dark {
  background: var(--dark);
  color: #fff;
}
.section--dark .section-subtitle { color: #8FAAB6; }

.section--light {
  background: var(--light-bg);
  color: var(--dark);
}
.section--light .section-title { color: var(--dark); }
.section--light .section-subtitle { color: #4D6B78; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 0 2rem; transition: var(--transition); background: transparent; }
.nav--scrolled { background: rgba(0, 37, 51, 0.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--dark-border); }
.nav__container { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__logo { display: flex; align-items: center; }
.nav__logo-img { height: 28px; width: auto; }
.nav__links { display: flex; gap: 2rem; }
.nav__link { font-size: 0.9rem; font-weight: 500; color: rgba(255,255,255,0.7); transition: var(--transition); position: relative; }
.nav__link:hover { color: #fff; }
.nav__link::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1.5px; background: var(--highlight); transition: var(--transition); }
.nav__link:hover::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: 1rem; }
.nav__cta { display: inline-flex; align-items: center; padding: 0.5rem 1.25rem; background: #fff; color: var(--dark); font-size: 0.85rem; font-weight: 700; border-radius: 100px; transition: var(--transition); }
.nav__cta:hover { background: #E0EDF2; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255,255,255,0.15); }
.nav__menu-btn { display: none; flex-direction: column; gap: 6px; padding: 4px; width: 32px; }
.nav__menu-btn span { display: block; width: 100%; height: 2px; background: #fff; border-radius: 2px; transition: var(--transition); }
.nav__menu-btn--open span:first-child { transform: rotate(45deg) translate(3px, 3px); }
.nav__menu-btn--open span:last-child { transform: rotate(-45deg) translate(3px, -3px); }

.mobile-menu { position: fixed; inset: 0; z-index: 99; background: rgba(0, 37, 51, 0.98); backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: var(--transition-slow); }
.mobile-menu--open { opacity: 1; visibility: visible; }
.mobile-menu__content { display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.mobile-menu__link { font-size: 2rem; font-weight: 600; color: rgba(255,255,255,0.7); transition: var(--transition); }
.mobile-menu__link:hover { color: #fff; }
.mobile-menu__cta { display: inline-flex; padding: 0.75rem 2rem; background: #fff; color: var(--dark); font-size: 1rem; font-weight: 700; border-radius: 100px; margin-top: 1rem; }

/* ============================================
   HERO — VIDEO BACKGROUND
   ============================================ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero__video-wrap { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero__video-wrap video { position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; min-width: 100%; min-height: 100%; transform: translate(-50%, -50%); object-fit: cover; pointer-events: none; }
.hero__overlay { position: absolute; inset: 0; z-index: 1; background: rgba(0, 37, 51, 0.90); }
.hero__container { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; padding: 10rem 2rem 6rem; text-align: center; }
.hero__title { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.08; margin-bottom: 1.5rem; color: #fff; }
.hero__text { font-size: 1.15rem; color: rgba(255,255,255,0.75); max-width: 640px; margin: 0 auto 2.5rem; line-height: 1.8; }
.hero__cta { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.875rem 2rem; background: #fff; color: var(--dark); font-size: 1rem; font-weight: 700; border-radius: 100px; transition: var(--transition); }
.hero__cta:hover { background: #E0EDF2; transform: translateY(-2px); box-shadow: 0 8px 32px rgba(255,255,255,0.2); }
.hero__cta svg { transition: var(--transition); }
.hero__cta:hover svg { transform: translateX(3px); }

/* ============================================
   WHAT WE DO — LIGHT
   ============================================ */
.what-we-do { padding: 7rem 2rem; }
.what-we-do__container { max-width: 900px; margin: 0 auto; }
.what-we-do__grid { margin-top: 3rem; }
.what-we-do__text p { font-size: 1.1rem; line-height: 1.85; color: #3A5A68; margin-bottom: 1.25rem; }
.what-we-do__text p:first-child { font-size: 1.3rem; font-weight: 600; color: var(--dark); }

/* ============================================
   TEAM — DARK
   ============================================ */
.team { padding: 8rem 2rem; }
.team__container { max-width: 1100px; margin: 0 auto; }
.team__header { margin-bottom: 4rem; }
.team__card { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: center; background: var(--dark-card); border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--dark-border); min-height: 380px; }
.team__card-image { height: 100%; min-height: 380px; background: var(--dark-card); overflow: hidden; position: relative; }
.team__card-photo { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.team__card { transition: opacity 0.25s ease, transform 0.25s ease; }
.team__card--fading { opacity: 0; transform: translateY(8px); }
.team__card-content { padding: 3rem 3rem 3rem 0; }
.team__card-name { font-size: 1.5rem; font-weight: 700; }
.team__card-role { font-size: 0.9rem; color: var(--highlight); margin-top: 0.25rem; font-weight: 500; }
.team__card-quote { font-size: 1.05rem; color: #8FAAB6; line-height: 1.8; margin-top: 1.5rem; font-style: italic; }
.team__nav { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 2rem; }
.team__nav-btn { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--dark-border-light); color: #8FAAB6; transition: var(--transition); }
.team__nav-btn:hover { border-color: var(--highlight); color: var(--highlight); }
.team__nav-dots { display: flex; gap: 8px; }
.team__nav-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dark-border-light); transition: var(--transition); cursor: pointer; }
.team__nav-dot--active { background: var(--highlight); width: 24px; border-radius: 4px; }

/* ============================================
   LEADERSHIP PRINCIPLES — LIGHT (immersive)
   ============================================ */
.principles { padding: 8rem 2rem; }
.principles__container { max-width: 900px; margin: 0 auto; }
.principles__list { margin-top: 3.5rem; display: flex; flex-direction: column; }

.principle { border-bottom: 1px solid var(--light-border); overflow: hidden; }
.principle:first-child { border-top: 1px solid var(--light-border); }

.principle__header { display: flex; align-items: center; gap: 1.5rem; padding: 1.75rem 0; cursor: pointer; transition: var(--transition); }
.principle__header:hover { padding-left: 0.5rem; }
.principle__number { font-size: 0.85rem; font-weight: 800; color: var(--highlight); min-width: 28px; letter-spacing: 0.02em; }
.principle__name { font-size: 1.35rem; font-weight: 700; flex: 1; color: var(--dark); transition: var(--transition); letter-spacing: -0.02em; }
.principle__arrow { color: #8FAAB6; flex-shrink: 0; transition: var(--transition); }
.principle--active .principle__arrow { transform: rotate(180deg); color: var(--highlight); }
.principle--active .principle__name { color: var(--highlight-dark); }
.principle--active .principle__number { color: var(--highlight); }

.principle__body { max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.principle--active .principle__body { max-height: 600px; }

.principle__points { padding: 0 0 2rem 3rem; display: flex; flex-direction: column; gap: 1.5rem; }
.principle__point { padding-left: 1.25rem; border-left: 2px solid var(--light-border); transition: border-color 0.3s ease; }
.principle__point:hover { border-left-color: var(--highlight); }
.principle__point h4 { font-size: 0.95rem; font-weight: 700; color: var(--dark); margin-bottom: 0.3rem; }
.principle__point p { font-size: 0.9rem; color: #4D6B78; line-height: 1.7; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================
   WHAT WE OFFER — DARK
   ============================================ */
.benefits { padding: 8rem 2rem; }
.benefits__container { max-width: 1200px; margin: 0 auto; }
.offer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 3rem; }
.offer-card { background: var(--dark-card); border: 1px solid var(--dark-border); border-radius: var(--radius-lg); padding: 1.75rem; transition: var(--transition); }
.offer-card:hover { border-color: var(--dark-border-light); transform: translateY(-3px); }
.offer-card__icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--highlight-muted); color: var(--highlight); margin-bottom: 1.25rem; }
.offer-card__pound { font-size: 1.3rem; font-weight: 800; line-height: 1; }
.offer-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.3; }
.offer-card p { font-size: 0.85rem; color: #8FAAB6; line-height: 1.65; }

/* ============================================
   DEPARTMENTS — LIGHT
   ============================================ */
.depts { padding: 8rem 2rem; }
.depts__container { max-width: 1200px; margin: 0 auto; }
.depts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; }
.dept-card { background: var(--light-card); border: 1px solid var(--light-border); border-radius: var(--radius-md); padding: 1.5rem; transition: var(--transition); }
.dept-card:hover { border-color: var(--light-border-hover); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,37,51,0.06); }
.dept-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--dark); }
.dept-card p { font-size: 0.85rem; color: #4D6B78; line-height: 1.65; }

/* ============================================
   LOCATIONS / MAP — DARK
   ============================================ */
.locations { padding: 8rem 2rem; }
.locations__container { max-width: 1200px; margin: 0 auto; }
.map-wrapper { margin-top: 3rem; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--dark-border); position: relative; }
.map { width: 100%; height: 520px; background: var(--dark-card); }
.map-legend { position: absolute; bottom: 1.25rem; left: 1.25rem; z-index: 1000; display: flex; gap: 1.25rem; padding: 0.65rem 1rem; background: rgba(0, 37, 51, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: var(--radius-sm); border: 1px solid var(--dark-border); }
.map-legend__item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; color: #8FAAB6; font-weight: 500; }
.map-legend__dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.map-legend__dot--hq { background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,0.2); }
.map-legend__dot--fc { background: var(--highlight); }
.map-marker { position: relative; }
.map-marker--hq .map-marker__dot { width: 16px; height: 16px; background: #fff; border-radius: 50%; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 3px rgba(255,255,255,0.25), 0 2px 8px rgba(0,0,0,0.4); z-index: 2; }
.map-marker--hq .map-marker__pulse { width: 28px; height: 28px; background: rgba(255,255,255,0.12); border-radius: 50%; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); animation: pulse 2.5s ease-out infinite; z-index: 1; }
@keyframes pulse { 0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; } 100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; } }
.map-marker--fc .map-marker__dot { width: 10px; height: 10px; background: var(--highlight); border-radius: 50%; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 3px rgba(77,201,246,0.2), 0 1px 4px rgba(0,0,0,0.3); transition: transform 0.2s ease; }
.map-marker--fc:hover .map-marker__dot { transform: translate(-50%, -50%) scale(1.3); }
.map-tooltip { background: rgba(0, 37, 51, 0.92) !important; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--dark-border) !important; border-radius: 6px !important; color: #fff !important; font-family: 'Manrope', sans-serif !important; font-size: 0.8rem !important; font-weight: 600 !important; padding: 0.4rem 0.75rem !important; box-shadow: 0 4px 16px rgba(0,0,0,0.3) !important; white-space: nowrap; }
.map-tooltip.leaflet-tooltip-top { margin-top: 0 !important; }
.map-tooltip::before { border-top-color: rgba(0, 37, 51, 0.92) !important; }
.leaflet-control-zoom a { background: rgba(0, 37, 51, 0.9) !important; color: #fff !important; border-color: var(--dark-border) !important; font-weight: 600; width: 32px !important; height: 32px !important; line-height: 32px !important; font-size: 16px !important; }
.leaflet-control-zoom a:hover { background: var(--dark-card-hover) !important; }
.leaflet-control-zoom { border: none !important; border-radius: var(--radius-sm) !important; overflow: hidden; }
.leaflet-control-attribution { background: rgba(0, 37, 51, 0.7) !important; color: #4D6B78 !important; font-size: 0.65rem !important; font-family: 'Manrope', sans-serif !important; }
.leaflet-control-attribution a { color: #8FAAB6 !important; }

/* ============================================
   JOBS — LIGHT
   ============================================ */
.jobs { padding: 8rem 2rem; }
.jobs__container { max-width: 900px; margin: 0 auto; }
.jobs__header { margin-bottom: 3rem; }
.jobs__list { display: flex; flex-direction: column; }
.job { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 0; border-bottom: 1px solid var(--light-border); transition: var(--transition); gap: 1rem; }
.job:first-child { border-top: 1px solid var(--light-border); }
.job:hover { padding-left: 0.5rem; }
.job:hover .job__title { color: var(--highlight-dark); }
.job:hover .job__arrow { color: var(--highlight); transform: translateX(4px); }
.job__title { font-size: 1.05rem; font-weight: 600; transition: var(--transition); color: var(--dark); }
.job__meta { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.35rem; font-size: 0.85rem; color: #8FAAB6; }
.job__dept { color: #4D6B78; }
.job__arrow { flex-shrink: 0; color: #8FAAB6; transition: var(--transition); }
.jobs__footer { margin-top: 2.5rem; text-align: center; }
.jobs__all-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--highlight); font-weight: 600; font-size: 0.95rem; transition: var(--transition); }
.jobs__all-link:hover { gap: 0.75rem; }

/* ============================================
   NEWS — DARK
   ============================================ */
.news { padding: 8rem 2rem; }
.news__container { max-width: 1200px; margin: 0 auto; }
.news__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.news-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--dark-border); background: var(--dark-card); transition: var(--transition); }
.news-card:hover { border-color: var(--dark-border-light); transform: translateY(-4px); }
.news-card__image { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--dark-card-hover) 0%, var(--dark-card) 100%); }
.news-card__placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--dark-border-light); }
.news-card__content { padding: 1.5rem; }
.news-card__title { font-size: 1rem; font-weight: 600; line-height: 1.5; margin-bottom: 0.75rem; }
.news-card:hover .news-card__title { color: var(--highlight); }
.news-card__date { font-size: 0.8rem; color: #4D6B78; }
.news__footer { margin-top: 2.5rem; text-align: center; }
.news__more { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--highlight); font-weight: 600; font-size: 0.95rem; transition: var(--transition); }
.news__more:hover { gap: 0.75rem; }

/* ============================================
   CTA — DARK
   ============================================ */
.cta { padding: 6rem 2rem; text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(77,201,246,0.05) 0%, transparent 70%); }
.cta__container { position: relative; max-width: 640px; margin: 0 auto; }
.cta__title { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; letter-spacing: -0.03em; }
.cta__text { color: #8FAAB6; margin-top: 1rem; font-size: 1.1rem; }
.cta__btn { display: inline-flex; align-items: center; padding: 0.875rem 2.5rem; background: #fff; color: var(--dark); font-size: 1rem; font-weight: 700; border-radius: 100px; margin-top: 2rem; transition: var(--transition); }
.cta__btn:hover { background: #E0EDF2; transform: translateY(-2px); box-shadow: 0 8px 32px rgba(255,255,255,0.15); }

/* ============================================
   FOOTER — DARK
   ============================================ */
.footer { padding: 4rem 2rem 2rem; background: var(--dark); border-top: 1px solid var(--dark-border); }
.footer__container { max-width: 1200px; margin: 0 auto; }
.footer__top { display: flex; justify-content: space-between; gap: 4rem; padding-bottom: 3rem; }
.footer__logo-img { height: 24px; width: auto; }
.footer__tagline { color: #4D6B78; font-size: 0.85rem; margin-top: 0.75rem; }
.footer__columns { display: flex; gap: 4rem; }
.footer__col { display: flex; flex-direction: column; gap: 0.75rem; }
.footer__col-title { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #4D6B78; margin-bottom: 0.25rem; }
.footer__link { font-size: 0.9rem; color: #8FAAB6; transition: var(--transition); }
.footer__link:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; border-top: 1px solid var(--dark-border); }
.footer__copy, .footer__registered { font-size: 0.8rem; color: #4D6B78; }

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal--visible { opacity: 1; transform: translateY(0); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .offer-grid { grid-template-columns: repeat(2, 1fr); }
  .depts__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__menu-btn { display: flex; }
  .hero__container { padding: 8rem 1.5rem 4rem; }
  .hero__video-wrap video { width: 100%; height: 100%; }
  .what-we-do, .team, .principles, .benefits, .depts, .locations, .jobs, .news { padding: 5rem 1.5rem; }
  .team__card { grid-template-columns: 1fr; min-height: auto; }
  .team__card-image { min-height: 220px; }
  .team__card-content { padding: 2rem; }
  .offer-grid, .depts__grid { grid-template-columns: 1fr; }
  .map { height: 380px; }
  .map-legend { gap: 0.75rem; padding: 0.5rem 0.75rem; }
  .news__grid { grid-template-columns: 1fr; gap: 1rem; }
  .cta { padding: 4rem 1.5rem; }
  .footer__top { flex-direction: column; gap: 2.5rem; }
  .footer__columns { flex-wrap: wrap; gap: 2rem; }
  .footer__bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .principle__points { padding-left: 0.5rem; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 2rem; }
  .section-title { font-size: 1.75rem; }
  .principle__name { font-size: 1.1rem; }
  .principle__header { gap: 1rem; }
  .job__meta { flex-wrap: wrap; }
}
