/* ===================== Base / theme tokens ===================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --bg: #05080d;
  --bg-alt: #080c12;
  --bg-footer: #04060a;
  --text: #e8edf3;
  --text-dim: #9aa6b4;
  --text-dimmer: #7c8794;
  --text-faint: #5a6471;
  --border: rgba(56, 122, 194, .18);
  --blue: #387ac2;
  --blue-light: #8fbdf0;
  --card-bg: #0b0f15;
  --surface: rgba(56, 122, 194, .10);
  --surface-border: rgba(56, 122, 194, .32);
}

body[data-theme="light"] {
  --bg: #f4f7fb;
  --bg-alt: #ffffff;
  --bg-footer: #eef2f7;
  --text: #11161c;
  --text-dim: #4b5560;
  --text-dimmer: #5d6772;
  --text-faint: #8b94a0;
  --border: rgba(56, 122, 194, .22);
  --card-bg: #0b0f15; /* team photo cards intentionally stay dark in both themes */
  --surface: rgba(56, 122, 194, .08);
  --surface-border: rgba(56, 122, 194, .35);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Poppins, sans-serif;
  overflow-x: clip;
  transition: background .3s ease, color .3s ease;
}

a { color: inherit; }
.accent-text { color: var(--blue); }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(56, 122, 194, .55); }
  70% { box-shadow: 0 0 0 9px rgba(56, 122, 194, 0); }
}

/* ===================== Nav ===================== */
.nav-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(5, 8, 13, .82);
  border-bottom: 1px solid var(--border);
}
body[data-theme="light"] .nav-header { background: rgba(244, 247, 251, .86); }

.nav {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 28px;
}
.nav__logo { display: flex; align-items: center; text-decoration: none; }
.nav__logo img { height: 38px; display: block; }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links > a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  transition: color .25s;
}
.nav__links > a:hover { color: var(--text); }
.nav__links > a.is-active {
  font-weight: 700;
  color: var(--text);
  border-bottom: 2px solid var(--blue);
  padding-bottom: 4px;
}

.nav__controls { display: flex; align-items: center; gap: 9px; }
.icon-btn, .pill-btn {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  color: var(--blue-light);
  height: 38px;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
  font-family: Poppins, sans-serif;
}
.icon-btn { width: 38px; }
.pill-btn { padding: 0 13px; gap: 7px; font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.icon-btn:hover, .pill-btn:hover { background: var(--blue); color: #05080d; }

.btn-quote {
  font-size: 13px;
  font-weight: 700;
  color: #05080d;
  background: var(--blue);
  padding: 11px 22px;
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: .04em;
  transition: box-shadow .25s;
  white-space: nowrap;
}
.btn-quote:hover { box-shadow: 0 0 0 4px rgba(56, 122, 194, .25); }

.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}
.hamburger span { width: 26px; height: 2px; background: var(--text); display: block; border-radius: 2px; }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .hamburger { display: flex; }
}

/* ===================== Mobile menu ===================== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 8, 13, .98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  flex-direction: column;
  padding: 22px 28px;
}
body[data-theme="light"] .mobile-menu { background: rgba(244, 247, 251, .98); }
.mobile-menu.is-open { display: flex; }

.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu__close { background: none; border: none; cursor: pointer; color: var(--text); font-size: 30px; line-height: 1; padding: 6px; }

.mobile-menu__links { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.mobile-menu__links a {
  font-size: 32px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  padding: 9px 0;
  transition: color .2s;
}
.mobile-menu__links a:hover { color: #6aa6e6; }
.mobile-menu__links a.is-active { color: #6aa6e6; }

.mobile-menu__controls { display: flex; gap: 12px; margin-bottom: 14px; }
.mobile-toggle {
  flex: 1;
  height: 50px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  color: var(--blue-light);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: Poppins, sans-serif;
  font-size: 14px;
  font-weight: 700;
}
.mobile-menu__quote {
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  color: #05080d;
  background: var(--blue);
  padding: 17px;
  border-radius: 10px;
  text-decoration: none;
  letter-spacing: .04em;
}

/* ===================== Hero ===================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(70px, 9vw, 120px) 28px clamp(40px, 5vw, 56px);
  background: radial-gradient(900px 460px at 78% 10%, rgba(56, 122, 194, .20), transparent 60%), var(--bg);
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 122, 194, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 122, 194, .06) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 88%);
  mask-image: linear-gradient(180deg, #000, transparent 88%);
}
.hero__inner { position: relative; max-width: 1280px; margin: 0 auto; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  border: 1px solid rgba(56, 122, 194, .4);
  border-radius: 99px;
  margin-bottom: 26px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-light);
}
.badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--blue);
  animation: pulseDot 1.9s ease-in-out infinite;
}

.hero__title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(46px, 8vw, 90px);
  line-height: .92;
  letter-spacing: -.025em;
  text-transform: uppercase;
  color: var(--text);
}
.hero__lead {
  max-width: 560px;
  margin: 26px 0 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-dim);
}
.hero__stats { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 38px; }
.stat__num { font-size: clamp(30px, 4vw, 42px); font-weight: 800; color: var(--blue); line-height: 1; }
.stat__label { font-size: 13px; color: var(--text-dim); margin-top: 6px; }

/* ===================== Marquee ===================== */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
  background: var(--bg-alt);
}
.marquee__track {
  display: inline-block;
  animation: marquee 24s linear infinite;
  font-weight: 800;
  font-size: clamp(20px, 2.6vw, 26px);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.marquee__track .on { color: var(--text); }
.marquee__track .off { color: #3a414c; }
.marquee__track .dot { color: var(--blue); margin: 0 20px; }

/* ===================== Departments ===================== */
.dept { padding: clamp(64px, 8vw, 100px) 28px; transition: background .3s ease; }
.dept__inner { max-width: 1280px; margin: 0 auto; }

.dept__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 38px;
  flex-wrap: wrap;
}
.dept__no { font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: rgba(56, 122, 194, .5); }
.dept__title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--text);
}

.dept__row { display: flex; flex-wrap: wrap; gap: 20px; }
.dept__featured { flex: 1 1 300px; }
.dept__members {
  flex: 2 1 540px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s cubic-bezier(.16, .84, .44, 1), transform .7s cubic-bezier(.16, .84, .44, 1);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ===================== Team cards ===================== */
/* These always render in their dark, full-bleed photo style regardless of site theme. */
.card {
  position: relative;
  height: clamp(300px, 38vw, 360px);
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(var(--accent), .16);
  background: var(--card-bg);
  transition: transform .45s ease, box-shadow .45s ease, border-color .45s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}
.card--featured { height: clamp(440px, 54vw, 560px); }

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(var(--accent), .65);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .55);
}

.card__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: var(--card-bg);
  transition: transform .7s cubic-bezier(.16, .84, .44, 1);
}
.card:hover .card__img { transform: scale(1.07); }

.card__overlay {
  position: absolute;
  inset: 0;
  transition: background .5s ease;
  background: linear-gradient(transparent 46%, rgba(5, 8, 13, .55) 70%, rgba(5, 8, 13, .92));
}
.card:hover .card__overlay {
  background: linear-gradient(transparent 4%, rgba(5, 8, 13, .5) 32%, rgba(var(--accent-bottom), .95) 82%);
}

.card__num {
  position: absolute;
  top: 16px;
  left: 18px;
  z-index: 3;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  color: #fff;
  background: rgba(5, 8, 13, .5);
  backdrop-filter: blur(6px);
  padding: 5px 11px;
  border-radius: 7px;
}
.card--featured .card__num { font-size: 17px; }

.card__arrow {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  color: var(--accent-light);
  background: rgba(5, 8, 13, .5);
  backdrop-filter: blur(6px);
  transition: all .4s ease;
}
.card:hover .card__arrow {
  color: #05080d;
  background: var(--accent-solid);
  transform: rotate(-45deg);
}

.card__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 22px;
}
.card--featured .card__content { padding: 28px; }

.card__role {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.card__name {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-top: 6px;
  line-height: 1.15;
}
.card--featured .card__name { font-size: 26px; }

.card__line {
  height: 2px;
  background: var(--accent-solid);
  margin-top: 0;
  width: 0;
  transition: width .5s ease, margin .5s ease;
}
.card:hover .card__line { margin-top: 12px; width: 40px; }
.card--featured:hover .card__line { width: 54px; }

.card__desc {
  overflow: hidden;
  color: #c2cad4;
  font-size: 13px;
  line-height: 1.6;
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  transform: translateY(6px);
  transition: max-height .5s ease, opacity .45s ease, margin .5s ease, transform .45s ease;
}
.card--featured .card__desc { font-size: 14.5px; }
.card:hover .card__desc { max-height: 180px; opacity: 1; margin-top: 10px; transform: translateY(0); }

/* On touch devices there is no hover — always show each person's bio so
   phone/tablet visitors can read names, roles and descriptions. */
@media (hover: none) {
  .card__overlay { background: linear-gradient(transparent 4%, rgba(5,8,13,.5) 32%, rgba(var(--accent-bottom), .95) 82%); }
  .card__line { margin-top: 12px; width: 40px; }
  .card--featured .card__line { width: 54px; }
  .card__desc { max-height: 200px; opacity: 1; margin-top: 10px; transform: none; }
}

/* ===================== CTA band ===================== */
.cta-section { padding: clamp(40px, 6vw, 80px) 28px clamp(60px, 8vw, 96px); background: var(--bg-alt); }
.cta {
  max-width: 980px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(56, 122, 194, .3);
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  background: radial-gradient(700px 360px at 50% 0%, rgba(56, 122, 194, .22), transparent 65%), var(--bg);
}
.cta h2 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.04;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--text);
}
.cta p { max-width: 480px; margin: 18px auto 30px; font-size: 16px; line-height: 1.7; color: var(--text-dim); }
.btn-quote--lg { display: inline-block; padding: 17px 36px; border-radius: 10px; transition: transform .2s; }
.btn-quote--lg:hover { transform: translateY(-3px); box-shadow: none; }

/* ===================== Footer ===================== */
.footer { background: var(--bg-footer); border-top: 1px solid var(--border); padding: clamp(54px, 6vw, 72px) 28px 32px; }
.footer__grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}
.footer__brand { max-width: 340px; }
.footer__brand img { display: block; margin-bottom: 20px; }
.footer__brand p { margin: 0 0 22px; font-size: 14px; line-height: 1.7; color: var(--text-dimmer); }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-alt);
  border: 1px solid rgba(56, 122, 194, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s;
}
.footer__social a:hover { background: var(--blue); }

.footer__heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 18px;
}
.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__links a { font-size: 14px; color: var(--text-dimmer); text-decoration: none; transition: color .25s; }
.footer__links a:hover { color: #6aa6e6; }
.footer__links--static span { font-size: 14px; color: var(--text-dimmer); }

.footer__bottom {
  max-width: 1280px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer__bottom p { margin: 0; font-size: 13px; color: var(--text-faint); }
.footer__top {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #05080d;
  transition: transform .2s;
}
.footer__top:hover { transform: translateY(-3px); }
