@font-face {
  font-family: Inter;
  src: url("../fonts/inter-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("../fonts/inter-500.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("../fonts/inter-600.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("../fonts/inter-700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("../fonts/inter-800.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

:root {
  --ink: #07111f;
  --muted: #5e6a79;
  --line: #dfe5ec;
  --soft: #f4f7fb;
  --blue: #1268ff;
  --violet: #7457ff;
  --cyan: #24c7e8;
  --radius: 1.35rem;
  --shadow: 0 24px 70px rgba(8, 27, 55, .1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

body.dark {
  --ink: #f5f7fb;
  --muted: #aab6c5;
  --line: #243249;
  --soft: #101b2b;
  background: #07111f;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 9999;
  padding: .75rem 1rem;
  background: #fff;
  color: #000;
}

.skip-link:focus {
  top: 1rem;
}

.eyebrow {
  color: var(--blue);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.display-title {
  max-width: 850px;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  font-weight: 700;
  letter-spacing: -.06em;
  line-height: 1.02;
}

.section-title {
  max-width: 720px;
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.1;
}

.section-copy {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.08rem;
}

.text-gradient {
  background: linear-gradient(100deg, #4f8bff, #a786ff 58%, #55e5f2);
  -webkit-background-clip: text;
  color: transparent;
}

.section-space {
  padding: 7rem 0;
}

.bg-soft {
  background: var(--soft);
}

.glass {
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .09);
  backdrop-filter: blur(18px);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  transition: .3s ease;
}

.site-header.scrolled {
  background: rgba(4, 12, 26, .9);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .14);
  backdrop-filter: blur(18px);
}

.navbar {
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -.03em;
}

.brand-logo {
  display: block;
  width: auto;
  height: 48px;
  max-width: 190px;
  object-fit: contain;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 0 30px rgba(73, 113, 255, .45);
}

.navbar .nav-link {
  color: rgba(255, 255, 255, .76);
  font-size: .92rem;
  font-weight: 600;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #fff;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, .25);
}

.navbar-toggler-icon {
  filter: invert(1);
}

.icon-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: transparent;
  color: #fff;
}

.btn-primary {
  border: 0;
  border-radius: 100px;
  background: linear-gradient(110deg, var(--blue), var(--violet));
  box-shadow: 0 12px 30px rgba(18, 104, 255, .24);
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(110deg, #075cf0, #6448f3);
}

.btn-outline-light,
.btn-outline-dark {
  border-radius: 100px;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: #fff;
  background: #050e1c url("../images/hero/4irtut-innovation-lab.png") center/cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 11, 25, .96) 0%, rgba(3, 11, 25, .78) 40%, rgba(3, 11, 25, .12) 78%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(transparent, rgba(3, 11, 25, .58));
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 7rem;
}

.hero .display-title {
  max-width: 780px;
}

.hero-copy {
  max-width: 640px;
  color: rgba(255, 255, 255, .72);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem .9rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 100px;
  background: rgba(255, 255, 255, .07);
  font-size: .8rem;
  font-weight: 700;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #62e9d6;
  box-shadow: 0 0 0 7px rgba(98, 233, 214, .14);
}

.hero-proof {
  position: relative;
  z-index: 3;
  margin-top: -2.7rem;
}

.proof-panel {
  padding: 1.4rem;
  border-radius: var(--radius);
  color: #fff;
  background: rgba(10, 24, 47, .86);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
  backdrop-filter: blur(20px);
}

.proof-item {
  padding: .35rem 1.25rem;
  border-right: 1px solid rgba(255, 255, 255, .12);
}

.proof-item:last-child {
  border-right: 0;
}

.proof-value {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
}

.proof-label {
  color: rgba(255, 255, 255, .6);
  font-size: .78rem;
}

.feature-card,
.programme-card,
.research-card,
.news-card,
.partner-card,
.contact-card {
  height: 100%;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

body.dark .feature-card,
body.dark .programme-card,
body.dark .research-card,
body.dark .news-card,
body.dark .partner-card,
body.dark .contact-card {
  background: #0d192a;
}

.feature-card:hover,
.programme-card:hover,
.research-card:hover,
.news-card:hover,
.partner-card:hover {
  transform: translateY(-8px);
  border-color: rgba(18, 104, 255, .3);
  box-shadow: var(--shadow);
}

.card-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 1.6rem;
  place-items: center;
  border-radius: 16px;
  color: var(--blue);
  background: rgba(18, 104, 255, .1);
  font-size: 1.45rem;
}

.card-number {
  color: #b9c3cf;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.programme-card h3,
.research-card h3 {
  margin-top: 1.25rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.programme-card p,
.research-card p,
.feature-card p,
.news-card p {
  color: var(--muted);
}

.link-arrow {
  color: var(--blue);
  font-size: .9rem;
  font-weight: 800;
}

.link-arrow i {
  transition: transform .25s ease;
}

.link-arrow:hover i {
  transform: translateX(5px);
}

.research-notice-grid {
  display: grid;
  gap: 1rem;
}

.research-notice-card {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 26px rgba(8, 27, 55, .04);
}

body.dark .research-notice-card {
  background: #0d192a;
}

.research-notice-body {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.research-notice-icon {
  flex: 0 0 52px;
  margin-bottom: 0;
}

.research-notice-card p {
  color: var(--muted);
}

.partner-logo-wrap--text {
  background: linear-gradient(135deg, #eef4ff, #ffffff);
}

.partner-logo-text {
  color: #0b1530;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.contact-details {
  display: grid;
  gap: 1rem;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-card .card-icon {
  flex: 0 0 52px;
  margin-bottom: 0;
}

.contact-card h2 {
  margin-bottom: .2rem;
}

.contact-card p {
  margin-bottom: 0;
}

.impact-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 5rem);
  border-radius: 2rem;
  color: #fff;
  background: #071327;
}

.impact-panel::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -60%;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(116, 87, 255, .42), transparent 68%);
}

.stat {
  position: relative;
  z-index: 1;
}

.stat-value {
  display: block;
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  font-weight: 750;
  letter-spacing: -.06em;
  line-height: 1;
}

.stat-label {
  color: rgba(255, 255, 255, .65);
}

.tag {
  display: inline-flex;
  margin: .28rem;
  padding: .5rem .85rem;
  border-radius: 100px;
  color: var(--ink);
  background: var(--soft);
  font-size: .8rem;
  font-weight: 700;
}

.quote-card {
  padding: 2.2rem;
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--soft);
}

.quote-card blockquote {
  font-size: 1.25rem;
  line-height: 1.5;
}

.event-date {
  display: grid;
  min-width: 66px;
  height: 66px;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: var(--ink);
  font-weight: 800;
  line-height: 1.05;
}

.news-meta {
  color: var(--blue);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.partner-card {
  display: grid;
  min-height: 180px;
  place-items: center;
  padding: 1.2rem;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.partner-logo-wrap {
  display: grid;
  width: 100%;
  height: 82px;
  margin-bottom: .8rem;
  place-items: center;
  border-radius: 1rem;
  background: #fff;
}

.partner-logo {
  width: auto;
  max-width: 150px;
  height: auto;
  max-height: 58px;
  object-fit: contain;
}

.partner-name {
  display: block;
  color: var(--ink);
  font-size: .9rem;
}

.partner-status {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .4rem;
  color: #17734a;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.partner-status::before {
  content: "";
  width: .42rem;
  height: .42rem;
  border-radius: 50%;
  background: #28b777;
}

.partner-pending {
  min-height: 120px;
  border-style: dashed;
  background: transparent;
}

.partner-pending .partner-status {
  color: #8a6315;
}

.partner-pending .partner-status::before {
  background: #e0a72c;
}

.verification-note {
  padding: 1.25rem 1.4rem;
  border: 1px solid #b9d8ff;
  border-radius: 1rem;
  color: #24507f;
  background: #eef6ff;
  font-size: .9rem;
}

body.dark .verification-note {
  border-color: #294b76;
  color: #b8d6ff;
  background: #10243d;
}

.accordion-item {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.accordion-button {
  padding: 1.4rem 0;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  background: transparent;
  color: var(--blue);
}

.accordion-body {
  padding-left: 0;
  color: var(--muted);
}

.page-hero {
  padding: 11rem 0 6rem;
  color: #fff;
  background: radial-gradient(circle at 80% 10%, rgba(116, 87, 255, .35), transparent 30%), #071327;
}

.page-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, .66);
  font-size: 1.15rem;
}

.breadcrumb {
  --bs-breadcrumb-divider-color: rgba(255, 255, 255, .45);
}

.breadcrumb-item,
.breadcrumb-item a,
.breadcrumb-item.active {
  color: rgba(255, 255, 255, .64);
}

.timeline {
  position: relative;
  margin-left: .8rem;
  padding-left: 2rem;
  border-left: 1px solid var(--line);
}

.timeline-item {
  position: relative;
  padding: 0 0 2.5rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.45rem;
  top: .3rem;
  width: .85rem;
  height: .85rem;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 2px var(--blue);
}

.person-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--soft);
}

.person-art {
  display: grid;
  aspect-ratio: 4/3;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #0a1830, #3158a7 65%, #7056e8);
  font-size: 3rem;
}

.person-copy {
  padding: 1.4rem;
}

.form-control,
.form-select {
  min-height: 52px;
  border-color: var(--line);
  border-radius: .8rem;
  background: transparent;
  color: var(--ink);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 .25rem rgba(18, 104, 255, .12);
}

.form-floating>label {
  color: var(--muted);
}

.message-field {
  height: 150px !important;
}

.map-placeholder {
  overflow: hidden;
  border-radius: var(--radius);
  color: #fff;
  background: radial-gradient(circle at 70% 20%, #7457ff55, transparent 35%), linear-gradient(135deg, #0b1e3a, #143b78);
}

.map-copy {
  padding-bottom: 0;
}

.map-responsive {
  position: relative;
  min-height: 420px;
}

.map-responsive iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.cta {
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 5rem);
  border-radius: 2rem;
  color: #fff;
  background: linear-gradient(120deg, #0a2047, #213481 52%, #6843d7);
}

.newsletter .form-control {
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.newsletter .form-control::placeholder {
  color: rgba(255, 255, 255, .6);
}

.site-footer {
  padding: 5rem 0 2rem;
  color: rgba(255, 255, 255, .65);
  background: #040b16;
}

.site-footer h3 {
  color: #fff;
  font-size: .9rem;
}

.site-footer a:hover {
  color: #fff;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  margin: .55rem 0;
}

.floating-apply {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 999;
  padding: .8rem 1.1rem;
  border-radius: 100px;
  color: #fff;
  background: linear-gradient(110deg, var(--blue), var(--violet));
  box-shadow: 0 12px 35px rgba(18, 104, 255, .4);
  font-size: .85rem;
  font-weight: 800;
}

.back-to-top {
  position: fixed;
  right: 1.3rem;
  bottom: 5rem;
  z-index: 998;
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #13223a;
}

.back-to-top.show {
  display: grid;
  place-items: center;
}

/* ── Team page ─────────────────────────────────────────── */

.team-search-wrap {
  position: relative;
  min-width: 280px;
}

.team-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1rem;
  pointer-events: none;
}

.team-search {
  padding-left: 2.6rem !important;
  border-radius: 100px !important;
  min-height: 48px !important;
}

.team-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.team-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .42rem .95rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: transparent;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
}

.team-filter-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.team-filter-btn.active {
  border-color: var(--blue);
  color: #fff;
  background: linear-gradient(110deg, var(--blue), var(--violet));
  box-shadow: 0 6px 20px rgba(18, 104, 255, .22);
}

.team-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 .35rem;
  border-radius: 100px;
  background: rgba(94, 106, 121, .14);
  color: var(--muted);
  font-size: .65rem;
  font-weight: 800;
  line-height: 1;
}

.team-filter-btn.active .team-filter-count {
  background: rgba(255, 255, 255, .22);
  color: #fff;
}

/* 5 columns at xl breakpoint */
@media (min-width: 1200px) {
  .col-xl-5ths {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

/* ── Compact card ─────────────────────────────────────── */

.team-card {
  position: relative;
  overflow: hidden;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  transition: transform .35s cubic-bezier(.22, .61, .36, 1),
    box-shadow .35s ease,
    border-color .35s ease;
}

body.dark .team-card {
  background: #0d192a;
}

.team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(18, 104, 255, .3);
  box-shadow: 0 16px 44px rgba(8, 27, 55, .13);
}

body.dark .team-card:hover {
  box-shadow: 0 16px 44px rgba(0, 0, 0, .4);
}

/* Image — Square crop for better face framing */
.team-card-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, #0a1830, #3158a7 65%, #7056e8);
}

.team-card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform .45s cubic-bezier(.22, .61, .36, 1);
}

.team-card:hover .team-card-img {
  transform: scale(1.05);
}

/* Overlay */
.team-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1rem;
  background: linear-gradient(0deg, rgba(7, 17, 39, .72) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .3s ease;
}

.team-card:hover .team-card-overlay {
  opacity: 1;
}

.team-portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .4rem 1rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .25s ease, transform .25s ease;
}

.team-portfolio-link:hover {
  background: rgba(255, 255, 255, .32);
  transform: translateY(-2px);
  color: #fff;
}

/* Body — compact */
.team-card-body {
  padding: .85rem 1rem 1rem;
}

.team-card-name {
  margin: 0 0 .4rem;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

.team-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .28rem;
}

.team-badge {
  display: inline-block;
  padding: .18rem .55rem;
  border-radius: 100px;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}

.management-badge {
  background: rgba(242,153,74,.12);
  color: #d57a1e;
}

body.dark .management-badge {
  background: rgba(242,153,74,.22);
  color: #f3a559;
}

/* ── Load more ────────────────────────────────────────── */

.team-load-more-wrap {
  text-align: center;
  margin-top: 2.5rem;
}

.team-load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 2rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: transparent;
  color: var(--ink);
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .25s ease;
}

.team-load-more-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(18, 104, 255, .06);
}

.team-load-more-btn i {
  font-size: 1.1rem;
  transition: transform .25s ease;
}

.team-load-more-btn:hover i {
  transform: translateY(3px);
}

.team-showing-text {
  display: block;
  margin-top: .8rem;
  color: var(--muted);
  font-size: .78rem;
}

/* ── Empty state ──────────────────────────────────────── */

.team-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--muted);
}

.team-empty i {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  opacity: .4;
}

.team-empty h3 {
  font-size: 1.4rem;
  color: var(--ink);
}

.team-empty p {
  max-width: 340px;
  margin: .5rem auto 0;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}