/* ==========================================================================
   DeepCloudLabs - modern refinement layer
   Loaded after style.css / responsive.css. Only affects index.html.
   Goal: more whitespace, softer surfaces, calmer type, one shared token set.
   ========================================================================== */

:root {
  /* brand */
  --brand: #0090cf;
  --brand-600: #0079ae;
  --brand-700: #00618c;
  --brand-300: #6cc6e8;
  --brand-50: #ecf7fc;

  /* ink + neutrals */
  --ink-900: #0d1f2b;
  --ink-700: #2c3d4a;
  --ink-500: #5c6c78;
  --ink-400: #8494a0;
  --line: #e4ecf1;
  --surface: #ffffff;
  --surface-2: #f5f9fb;
  --navy: #0a1b29;

  /* shape */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* elevation - layered and low-contrast, never a hard glow */
  --sh-1: 0 1px 2px rgba(13, 31, 43, 0.04), 0 4px 14px rgba(13, 31, 43, 0.06);
  --sh-2: 0 2px 6px rgba(13, 31, 43, 0.05), 0 16px 40px rgba(13, 31, 43, 0.1);
  --sh-brand: 0 10px 34px rgba(0, 144, 207, 0.24);

  /* rhythm */
  --section-y: clamp(72px, 7.5vw, 120px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   1. Base
   -------------------------------------------------------------------------- */

html {
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

section {
  padding: var(--section-y) 0;
  scroll-margin-top: 88px;
}

/* Keep long-form copy at a readable measure instead of full-bleed lines. */
.desc,
.content .text {
  max-width: 68ch;
}

.desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-500);
  margin-left: auto;
  margin-right: auto;
}

a {
  transition: color 0.18s var(--ease);
}

/* Visible keyboard focus everywhere (the base sheet removes outlines). */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   2. Section headings - dark title, blue reserved as an accent
   -------------------------------------------------------------------------- */

.title {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  text-wrap: balance;
}

#services .content > .title,
#our-trainings > .container .title,
#our-team .content > .title {
  position: relative;
  padding-bottom: 22px;
  margin-bottom: 26px;
}

#services .content > .title::after,
#our-trainings > .container .title::after,
#our-team .content > .title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 56px;
  height: 3px;
  border-radius: var(--r-pill);
  background: var(--brand);
}

/* --------------------------------------------------------------------------
   3. Navigation - fixed, transparent over the hero, tinted once scrolled
   -------------------------------------------------------------------------- */

nav {
  position: fixed !important;
  padding-top: 14px !important;
  padding-bottom: 14px !important;
  transition: background-color 0.28s var(--ease), box-shadow 0.28s var(--ease),
    padding 0.28s var(--ease);
}

nav.is-scrolled {
  background-color: rgba(10, 27, 41, 0.82) !important;
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 30px rgba(0, 0, 0, 0.28);
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

.bg-light {
  background-color: transparent !important;
}

/* Underline grows from the centre instead of snapping on. */
.navbar-light .navbar-nav .nav-link {
  position: relative;
  margin: 0 14px;
  padding-bottom: 6px;
  font-size: 14px;
  letter-spacing: 0.04em;
  white-space: nowrap; /* keeps "ABOUT US" on one line */
  border-bottom: 0 !important;
}

/* ::before, not ::after - Bootstrap owns ::after for the dropdown caret. */
.navbar-light .navbar-nav .nav-link::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: var(--r-pill);
  background: var(--brand-300);
  transform: translateX(-50%);
  transition: width 0.24s var(--ease);
}

.navbar-light .navbar-nav .nav-link:hover::before,
.navbar-light .navbar-nav .nav-link:focus::before {
  width: 100%;
}

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

/* Bootstrap sets .nav-link.active to rgba(0,0,0,.9) at a higher specificity
   than the sheet's white default, so the current page's item went black on
   the dark bar. Keep it white and let the underline mark the page instead. */
.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link.show,
.navbar-light .navbar-nav .show > .nav-link {
  color: #fff;
}

.navbar-light .navbar-nav .nav-link.active::before {
  width: 100%;
  background: var(--brand);
}

/* Nine menu items squeeze the percentage-width brand until the wordmark is
   unreadable; pin it to a real size and let the links take the rest. */
.navbar-brand {
  flex: 0 0 auto;
  margin-left: 4%;
}

.navbar-brand img {
  width: auto;
  height: 44px;
  transition: height 0.28s var(--ease);
}

/* Nine items + wordmark is a tight fit; step the spacing down twice so the
   row never wraps or pushes CONTACT off the edge. */
@media (max-width: 1600px) {
  .navbar-light .navbar-nav .nav-link {
    margin: 0 9px;
  }

  .navbar-brand {
    margin-left: 2.5%;
  }
}

@media (max-width: 1400px) {
  .navbar-light .navbar-nav .nav-link {
    margin: 0 7px;
    font-size: 13px;
    letter-spacing: 0.02em;
  }

  .navbar-brand {
    margin-left: 1.5%;
  }

  .navbar-brand img {
    height: 38px;
  }
}

/* Last expanded step, 1200-1300px, just before navbar-expand-xl collapses. */
@media (max-width: 1300px) {
  .navbar-light .navbar-nav .nav-link {
    margin: 0 5px;
    font-size: 12.5px;
  }

  .navbar-brand img {
    height: 34px;
  }
}

/* Dropdown: rounded, soft, roomy */
.dropdown-menu {
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-2);
  padding: 10px;
  margin-top: 12px;
  min-width: 320px;
}

.dropdown-item {
  border-radius: var(--r-sm);
  padding: 11px 14px;
  font-size: 15px;
  color: var(--ink-700);
  white-space: normal;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease);
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: var(--brand-50);
  color: var(--brand-700);
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */

.btn-main,
.btn-second {
  border-radius: var(--r-pill);
  padding: 14px 34px;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

/* Primary: solid brand, so the hero has one clear first action. */
.main-slider .buttons a:first-child.btn-main {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: var(--sh-brand);
}

.main-slider .buttons a:first-child.btn-main:hover {
  background: var(--brand-600) !important;
  border-color: var(--brand-600);
  color: #fff !important;
}

.btn-main {
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-main:hover,
.btn-second:hover {
  transform: translateY(-2px);
}

.btn-second {
  box-shadow: var(--sh-1);
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */

.main-slider .text {
  width: 44%;
  max-width: 660px;
}

.main-slider .title {
  font-size: clamp(32px, 3.8vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 22px;
}

.main-slider .desc {
  width: 100%;
  max-width: 56ch;
  font-size: 16.5px;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 34px;
}

/* Bullets read as a progress rail rather than dots. */
.main-slider .swiper-pagination-bullet {
  width: 22px;
  height: 3px;
  border-radius: var(--r-pill);
  opacity: 0.4;
  transition: width 0.24s var(--ease), opacity 0.24s var(--ease);
}

.main-slider .swiper-pagination-bullet-active {
  width: 44px;
  opacity: 1;
}

.main-slider .swiper-pagination-bullet-active:before {
  display: none;
}

/* --------------------------------------------------------------------------
   6. Cards - services, trainings, product boxes
   -------------------------------------------------------------------------- */

.boxes {
  gap: 24px;
  margin-top: 48px;
  /* The base sheet only unstacks these via max-device-width, which ignores
     window size; wrapping keeps the row intact at any viewport. */
  flex-wrap: wrap;
}

.boxes .box {
  margin: 0;
  width: auto;
  flex: 1 1 240px;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-1);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
    border-color 0.22s var(--ease);
}

.boxes .box:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--sh-2);
}

.boxes img {
  height: 44px;
  width: 44px;
  margin-bottom: 18px;
}

.boxes .title {
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  margin-bottom: 10px;
}

.boxes .desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-500);
  max-width: none;
}

/* Training cards */
.cards {
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  border: 1px solid var(--line);
  padding: 34px 30px;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
  /* Column layout so every card's CTA lands on the same baseline. */
  display: flex;
  flex-direction: column;
}

.cards .btn-second {
  margin-top: auto;
  margin-bottom: 0;
}

.cards:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-2);
}

.cards .tag {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.cards .title {
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink-900);
}

.cards .desc,
.cards .text {
  max-width: none;
}

.cards .text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-500);
}

.cards.second {
  border-color: transparent;
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-700) 100%);
  box-shadow: var(--sh-brand);
}

.cards.second,
.cards.second .tag,
.cards.second .card-title,
.cards.second .desc,
.cards.second .text {
  background-color: transparent;
}

.cards.second .tag {
  color: rgba(255, 255, 255, 0.86);
  border-bottom-color: rgba(255, 255, 255, 0.28);
}

/* Product feature boxes (#dpp / #passtex / #bpp / #haas / ...) */
#one-two-box .box {
  padding: 0 0 26px;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

/* Replaces the hard black glow the base sheet used on hover. */
#one-two-box .box:hover {
  transform: translateY(-4px);
  border-radius: var(--r);
  box-shadow: var(--sh-2) !important;
}

#one-two-box .box .img img {
  border-radius: 0;
  width: 100%;
}

#one-two-box .box .textarea {
  padding: 0 28px;
}

#one-two-box .box .title {
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  margin: 24px 0 12px;
}

#one-two-box .box .text {
  font-size: 15px;
  line-height: 1.68;
  color: var(--ink-500);
}

.box .readmore {
  margin-top: 20px;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.readmore a {
  color: var(--brand);
}

/* Wide intro block with the overlapping copy card */
.wide-content {
  margin-bottom: 190px;
}

.wide-content img {
  border-radius: var(--r-lg);
}

.wide-content .textarea {
  margin: 0 9%;
  padding: 44px 64px 40px;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
  border: 1px solid var(--line);
}

.wide-content .title {
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.2;
  color: var(--ink-900);
  margin-bottom: 14px;
}

.wide-content .text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-500);
  max-width: 76ch;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   6b. Training - catalog browser
   -------------------------------------------------------------------------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.training-head {
  text-align: center;
  margin-bottom: 40px;
}

.training-head .desc {
  max-width: 62ch;
}

.training-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.training-actions .btn-second {
  margin-bottom: 0;
}

.btn-quiet {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-700);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease),
    transform 0.18s var(--ease);
}

.btn-quiet:hover {
  color: var(--brand-700);
  border-color: var(--brand-300);
  transform: translateY(-2px);
  text-decoration: none;
}

/* At-a-glance numbers so the catalog's size reads before the grid does. */
.training-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 56px;
  padding: 26px 0;
  margin: 0 0 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.training-stats li {
  text-align: center;
}

.training-stats strong {
  display: block;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--brand);
}

.training-stats span {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.course-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.course-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  /* Flex items default to min-width:auto; without this the nowrap chip row
     below refuses to shrink and pushes the whole page sideways. */
  min-width: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink-500);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease),
    border-color 0.16s var(--ease);
}

.chip:hover {
  color: var(--brand-700);
  background: var(--brand-50);
  border-color: transparent;
}

.chip.is-active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.chip-n {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--ink-400);
}

.chip.is-active .chip-n {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.course-search {
  position: relative;
  flex: 0 1 280px;
}

.course-search i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: var(--ink-400);
  pointer-events: none;
}

.course-search input {
  width: 100%;
  /* The site reset leaves inputs content-box, so padding would be added on
     top of the 100% and push the page sideways. */
  box-sizing: border-box;
  padding: 11px 16px 11px 40px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink-900);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.course-search input:focus {
  outline: none;
  border-color: var(--brand-300);
  box-shadow: 0 0 0 4px rgba(0, 144, 207, 0.14);
}

.course-count {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin: 0 0 16px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.course {
  display: flex;
  flex-direction: column;
  padding: 18px 20px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.course:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: var(--sh-2);
}

.course[hidden] {
  display: none;
}

.course-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.course-code {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--brand);
}

.course-days {
  flex: none;
  margin-left: auto; /* stays right even when a course has no code */
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--ink-500);
}

.course-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  margin: 0 0 12px;
}

/* Track name orients a card in the mixed "All" list; redundant once a single
   track is selected, so the browser hides it then. */
.course-track {
  margin-top: auto;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.course-browser.is-filtered .course-track {
  display: none;
}

.course-more {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.course-more[hidden] {
  display: none;
}

.course-empty {
  padding: 40px 0;
  text-align: center;
  color: var(--ink-500);
}

.link-reset {
  padding: 0;
  font: inherit;
  color: var(--brand);
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
}

/* Bootcamps */
.bootcamps {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.bootcamps-title {
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  text-align: center;
  margin: 0 0 10px;
}

.bootcamps-lead {
  max-width: 56ch;
  margin: 0 auto 32px;
  text-align: center;
  font-size: 16px;
  color: var(--ink-500);
}

.bootcamp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.bootcamp {
  padding: 30px 32px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--sh-1);
}

.bootcamp h4 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  margin: 0 0 18px;
}

.bootcamp ol {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.bootcamp li {
  counter-increment: step;
  position: relative;
  padding: 8px 0 8px 40px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-500);
}

.bootcamp li + li {
  border-top: 1px solid var(--line);
}

.bootcamp li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 8px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-700);
  background: var(--brand-50);
  border-radius: 50%;
}

/* Outbound link to a product's own site (PassTEX subdomain). */
.site-link-wrap {
  margin: 26px 0 0;
}

.site-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 28px;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: var(--sh-brand);
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease);
}

.site-link:hover {
  background: var(--brand-600);
  transform: translateY(-2px);
  text-decoration: none;
}

.site-link i {
  font-size: 17px;
  transition: transform 0.18s var(--ease);
}

.site-link:hover i {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   7. Technologies tabs
   -------------------------------------------------------------------------- */

#features .menu ul {
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

#features .menu li {
  margin: 0;
  padding: 10px 22px;
  font-size: 15px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  color: var(--ink-500);
  background: var(--surface);
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

#features .menu li:hover {
  color: var(--brand-700);
  background: var(--brand-50);
  border-color: transparent;
}

#features .menu li.active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

/* The base sheet drew the tab underline with ::before - not needed as pills. */
#features .menu li:hover::before,
#features .menu li.active::before {
  display: none;
}

#features .content img {
  border-radius: var(--r);
}

#features .desc ul {
  padding-left: 20px;
  margin-top: 12px;
}

/* --------------------------------------------------------------------------
   8. Who are we
   -------------------------------------------------------------------------- */

#our-team .text {
  width: 100%;
  max-width: 78ch;
  font-size: 16px;
  line-height: 1.72;
  color: var(--ink-500);
}

#our-team .text p {
  margin-bottom: 10px;
}

#our-team .text i {
  color: var(--brand);
  margin-right: 8px;
  font-size: 0.9em;
}

/* The seven R&D topics read as a grid, not a stacked list. */
#our-team .topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 32px;
  margin: 20px 0 28px;
}

#our-team .topic-grid p {
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

#our-team .people {
  margin-top: 56px;
  gap: 28px;
}

#our-team .people .pp {
  margin: 0;
}

/* --------------------------------------------------------------------------
   9. Capability lists (#your-team)
   -------------------------------------------------------------------------- */

#your-team {
  background-color: var(--surface-2);
}

#your-team .title {
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.2;
  color: var(--ink-900);
  margin-bottom: 44px;
}

#your-team ul li {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-500);
}

#your-team i {
  color: var(--brand);
}

/* The base sheet right-aligned the left column with direction:rtl, which
   threw trailing punctuation to the front of each line ( ":offer a full
   range..." ). Same visual result, correct punctuation. */
#your-team .text-area.left ul {
  direction: ltr;
}

#your-team .text-area.left ul li {
  flex-direction: row-reverse;
  justify-content: flex-start;
  text-align: right;
}

/* --------------------------------------------------------------------------
   10. References
   -------------------------------------------------------------------------- */

.clients-slider .wrap {
  border-left: 1px solid var(--line);
  opacity: 0.75;
  transition: opacity 0.2s var(--ease), filter 0.2s var(--ease);
}

.clients-slider .wrap:hover {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   11. Subscribe band
   -------------------------------------------------------------------------- */

#subscribe {
  padding: clamp(64px, 7vw, 96px) 0;
  position: relative;
  background-size: cover !important;
  background-position: center !important;
}

/* The photo alone left the copy nearly unreadable. */
#subscribe::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 27, 41, 0.78) 0%,
    rgba(10, 27, 41, 0.88) 100%
  );
}

#subscribe .container {
  position: relative;
}

#subscribe .text {
  width: 100%;
  max-width: 22ch;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  background: transparent !important;
  margin-bottom: 32px;
}

#subscribe form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
  padding: 8px 8px 8px 22px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

#subscribe input {
  flex: 1;
  width: auto;
  border-bottom: 0;
  padding: 10px 0;
  font-size: 15px;
}

#subscribe input::placeholder {
  color: rgba(255, 255, 255, 0.6);
  padding: 0;
  font-size: 15px;
}

#subscribe form a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  background: var(--brand);
  transition: background-color 0.18s var(--ease), transform 0.18s var(--ease);
}

#subscribe form a:hover {
  background: var(--brand-600);
  transform: scale(1.06);
}

#subscribe .send-btn {
  width: 17px;
  margin: 0;
}

/* --------------------------------------------------------------------------
   12. Contact
   -------------------------------------------------------------------------- */

#contact-us {
  background-color: var(--surface-2);
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

#contact-us .main-title {
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin-bottom: 40px;
}

.floating-label-group input,
.floating-label-group textarea {
  border-bottom: 1px solid var(--line) !important;
  margin-bottom: 0;
  padding: 10px 2px;
  font-size: 16px;
  color: var(--ink-900);
  transition: border-color 0.18s var(--ease);
}

.floating-label-group {
  margin-top: 26px;
  margin-bottom: 30px;
}

.floating-label-group .floating-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-400);
}

#contact-us .btn-second {
  box-shadow: var(--sh-brand);
}

/* --------------------------------------------------------------------------
   12b. Sub-pages (news, publications)
   -------------------------------------------------------------------------- */

/* The fixed navbar has white links, so a sub-page needs a dark band beneath
   it in place of the home page's hero image. */
.page-hero {
  padding: 168px 0 var(--section-y);
  background: linear-gradient(160deg, #12293c 0%, var(--navy) 55%, #061019 100%);
  color: #fff;
  text-align: center;
}

.page-eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-300);
}

.page-title {
  margin: 0 0 18px;
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #fff;
}

.page-lead {
  max-width: 58ch;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.76);
}

.page-main {
  padding: var(--section-y) 0;
}

/* Long-form article body */
.prose {
  max-width: 72ch;
}

.prose h3 {
  margin: 44px 0 14px;
  font-size: clamp(21px, 2.1vw, 26px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}

.prose h4 {
  margin: 30px 0 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--brand-700);
}

.prose p {
  margin: 0 0 18px;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink-500);
}

.prose strong {
  color: var(--ink-700);
}

/* News */
.news-item {
  max-width: 820px;
  margin: 0 auto;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.news-tag {
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 600;
}

.news-title {
  margin: 0 0 20px;
  font-size: clamp(27px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.025em;
  color: var(--ink-900);
  text-wrap: balance;
}

.news-lead {
  margin: 0 0 10px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  font-size: 19px;
  line-height: 1.62;
  color: var(--ink-700);
}

.news-actions,
.pub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 44px;
}

.news-actions {
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.news-actions .btn-second {
  margin-bottom: 0;
}

/* Publications */
.pub-list {
  max-width: 880px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.pub {
  padding: 38px 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
}

.pub + .pub {
  margin-top: 24px;
}

.pub-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pub-type {
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--brand-50);
  color: var(--brand-700);
}

.pub-year {
  color: var(--ink-400);
}

.pub-title {
  margin: 0 0 16px;
  font-size: clamp(21px, 2.3vw, 28px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}

.pub-authors {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-700);
}

.pub-corr {
  color: var(--brand);
}

.pub-affil {
  margin: 0 0 16px;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-400);
}

.pub-venue {
  margin: 0 0 18px;
  padding-left: 14px;
  border-left: 3px solid var(--brand-300);
  font-size: 15.5px;
  color: var(--ink-500);
}

.pub-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.pub-keywords span {
  padding: 5px 13px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-500);
}

.pub-abstract {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.pub-abstract summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-700);
  list-style: none;
}

.pub-abstract summary::-webkit-details-marker {
  display: none;
}

.pub-abstract summary::after {
  content: " +";
  font-weight: 700;
}

.pub-abstract[open] summary::after {
  content: " −";
}

.pub-abstract p {
  margin: 16px 0 0;
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--ink-500);
}

@media (max-width: 960px) {
  .page-hero {
    padding-top: 132px;
  }

  .pub {
    padding: 26px 22px;
  }

  .news-actions .btn-second,
  .news-actions .btn-quiet,
  .pub-actions .btn-quiet {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */

#footer-top {
  background-color: var(--navy);
  color: #b9c7d1;
  padding: clamp(56px, 6vw, 80px) 0 40px;
}

footer .main-menu li {
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}

footer .content {
  line-height: 1.7;
}

/* Was margin-top:15%, which grew unboundedly with the viewport. */
.copy {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
  font-size: 13px;
  color: #8b9aa6;
}

#footer-bottom {
  background: var(--surface-2);
}

#footer-bottom .text a {
  font-size: 13px;
  color: var(--ink-400);
  margin-right: 18px;
}

#footer-bottom .text a:hover,
footer .social a:hover {
  color: var(--brand);
}

/* --------------------------------------------------------------------------
   14. Responsive
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   14a. Collapsed navbar
   Nine menu items plus the wordmark cannot share one row below ~1200px, so
   the markup uses navbar-expand-xl. The base sheet only styles the collapsed
   panel via max-device-width, which never fires on a narrow desktop window,
   so the whole state is defined here.
   -------------------------------------------------------------------------- */

@media (max-width: 1199.98px) {
  nav.is-scrolled {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }

  .navbar-brand {
    width: auto;
    max-width: 58%;
    margin-left: 16px;
  }

  .navbar-brand img {
    width: auto;
    height: 40px;
    max-width: 100%;
  }

  /* Give the hamburger a real target and enough contrast to be findable. */
  .navbar-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0 16px 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
  }

  .navbar-toggler i {
    font-size: 22px;
    line-height: 1;
  }

  #navbarNav {
    background: #fff;
    border-radius: var(--r);
    margin-top: 10px;
    padding: 10px 0;
    box-shadow: var(--sh-2);
  }

  .navbar-light .navbar-nav .nav-link {
    display: inline-block;
    margin: 0 16px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--brand-700) !important;
    border-bottom: 0 !important;
  }

  .navbar-light .navbar-nav .nav-link:hover,
  .navbar-light .navbar-nav .nav-link.active {
    color: var(--brand) !important;
  }

  .navbar-light .navbar-nav .nav-link::before {
    display: none;
  }

  .dropdown-menu {
    min-width: 0;
    box-shadow: none;
    border: 0;
    margin-top: 0;
    padding: 0 0 0 12px;
  }
}

@media (max-width: 1200px) {
  .wide-content .textarea {
    margin: 0 5%;
    padding: 34px 40px 32px;
  }
}

@media (max-width: 992px) {
  .main-slider .text {
    width: 62%;
  }

  .boxes {
    gap: 16px;
  }

  #our-team .topic-grid {
    grid-template-columns: 1fr;
  }

  /* Four across wraps to an orphaned 3 + 1; a 2x2 grid stays balanced. */
  .training-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 16px;
  }

  .course-toolbar {
    flex-direction: column;
    align-items: stretch;
    /* column + wrap makes this a multi-column flex box, which sizes the chip
       row to its content and scrolls the whole page sideways. */
    flex-wrap: nowrap;
  }

  .course-search {
    flex: 1 1 auto;
    order: -1;
  }

  .course-filters {
    /* Horizontal scroll beats a five-line wrap of chips on a phone. */
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .course-filters::-webkit-scrollbar {
    display: none;
  }

  .chip {
    flex: none;
  }

  .course-grid {
    grid-template-columns: 1fr;
  }

  .bootcamp {
    padding: 24px 22px;
  }
}

@media (max-width: 960px) {
  /* Hero: the base sheet pins buttons to a fixed 100x35 box, which the
     larger desktop padding above would overflow. Size them by content. */
  .main-slider .text {
    width: 78%;
    top: 26%;
  }

  .main-slider .title {
    font-size: clamp(24px, 6.4vw, 30px);
    margin-bottom: 18px;
  }

  .btn-main,
  .btn-second {
    width: auto;
    height: auto;
    padding: 11px 24px;
    font-size: 13.5px;
  }

  .main-slider .buttons a {
    margin: 0 10px 0 0;
  }

  .wide-content {
    margin-bottom: 58%;
  }

  .wide-content .textarea {
    margin: 0 4%;
    padding: 26px 24px;
  }

  #subscribe form {
    max-width: 100%;
    padding-left: 18px;
  }

  #one-two-box .box .textarea {
    padding: 0 20px;
  }

  #contact-us .btn-second {
    float: none;
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   15. Motion preferences
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
