/* ─── Variables ─────────────────────────────────────────────────────────────── */

:root {
  --font-work-sans: 'Work Sans', sans-serif;
  --font-inter: 'Inter', sans-serif;
  --font-abhaya: 'Abhaya Libre', serif;
  --font-manrope: 'Manrope', sans-serif;

  --bg: #FFF;
  --color: #000;

  --color-faded: rgba(0, 0, 0, 0.15);
  --ticker-bg: #F0F0F0;
  --trust-logos-bg: #D6F2F0;
  --logo-filter: none;

  --nav-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.00) 6.43%, rgba(255, 255, 255, 0.90) 23.71%, rgba(223, 248, 249, 0.90) 100%);

  --fs-xs: 12px;
  --fs-sm: 16px;
  --fs-body: 18px;
  --fs-col-title: 46px;

  --color-red: #D30000;
  --color-violet: #5A35FD;
  --color-orange: #FF6E00;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000;
    --color: #FFFFFE;

    --color-faded: rgba(255, 255, 255, 0.25);
    --ticker-bg: #000;
    --trust-logos-bg: #000;
    --logo-filter: invert(1);

    --nav-bg: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 6.43%, rgba(0, 0, 0, 0.75) 23.71%, rgba(72, 125, 94, 0.75) 100%);
  }
}

/* ─── Split Reveal (reusable) ────────────────────────────────────────────────── */
/* Usage: wrap each title line in <span class="split-reveal__line">.             */
/* First child slides UP (translateY 100→0), last child slides DOWN (-100→0).   */
/* Add initSplitReveal(el) in JS — triggers when el enters viewport.             */

.split-reveal__line {
  display: block;
  overflow: hidden;
}

.split-reveal__line:first-child>* {
  display: block;
  transform: translateY(100%);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.split-reveal__line:last-child>* {
  display: block;
  transform: translateY(-100%);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.06s;
}

.split-reveal--visible .split-reveal__line>* {
  transform: translateY(0);
}

/* ─── Text Reveal (reusable) ─────────────────────────────────────────────────── */

.text-reveal__word {
  color: var(--text-reveal-from, var(--color-faded));
  transition: color 0.5s ease-out;
}

.text-reveal--visible .text-reveal__word {
  color: var(--text-reveal-to, var(--color));
}

/* ─── Reset / Base ──────────────────────────────────────────────────────────── */

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

body {
  background-color: var(--bg);
  color: var(--color);
  font-family: var(--font-work-sans);
}

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

ul {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  color: inherit;
}

section {
  position: relative;
}

/* ─── Footer / Career ───────────────────────────────────────────────────────── */

.footer {
  position: relative;
  padding: 128px 148px 128px;
  overflow: clip;
  background: #FFF;
  color: #000;
}

.footer__bg {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
  top: 0;
  width: max-content;
}

.footer__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: start;
  max-width: 1144px;
  margin: 0 auto;
  width: 100%;
}

.footer__label {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer__title {
  font-family: var(--font-work-sans);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 135%;
  color: #000;
  white-space: nowrap;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 270px;
  position: relative;
}

.footer__col--active::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 0;
  width: 2px;
  height: var(--connector-h, 50px);
  background: #000;
  transform: translateY(100%);
}

.footer__col--wide {
  width: 353px;
}

.footer__col-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__col-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer__col-header svg {
  flex: 1;
  height: 2px;
}

.footer__col-title {
  font-family: var(--font-work-sans);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 135%;
  white-space: nowrap;
}

.footer__col-text {
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: var(--font-work-sans);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 130%;
  color: #000;
  opacity: 0.55;
}

.footer__col-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: var(--font-work-sans);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 130%;
  color: #000;
  text-align: left;
}

/* ─── Job Overlay ────────────────────────────────────────────────────────────── */

.job-overlay,
.cv-overlay {
  display: none;
  order: 10;
  flex: 0 0 100%;
}

.job-overlay--open,
.cv-overlay--open {
  display: block;
}

.job-overlay__content {
  max-width: 1130px;
  margin: 0 auto;
  width: 100%;
  padding: 26px 0 0 130px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.job-overlay__title {
  font-size: 28px;
  font-weight: 500;
  line-height: 120%;
}

.job-overlay__section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.job-overlay__section-title {
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 135%;
}

.job-overlay__section p,
.job-overlay__list {
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 155%;
  color: #000;
}

.job-overlay__section p {
  color: rgba(0, 0, 0, 0.55);
}

.job-overlay__list {
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: rgba(0, 0, 0, 0.55);
}

/* Form */

.job-overlay__form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.job-overlay__form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.job-overlay__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.job-overlay__fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.job-overlay__field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.job-overlay__label {
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 135%;
  color: #000;
}

.job-overlay__input {
  width: 100%;
  height: 47px;
  padding: 12px 10px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  color: #000;
  outline: none;
}

.job-overlay__input:focus {
  border-color: rgba(0, 0, 0, 0.6);
}

.job-overlay__upload {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.job-overlay__dropzone {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px dashed rgba(0, 0, 0, 0.35);
  border-radius: 4px;
  padding: 24px;
  text-align: center;
  background: #F5F5F5;
  min-height: 310px;
}

.job-overlay__drop-hint {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: rgba(0, 0, 0, 0.5);
}

.job-overlay__drop-hint a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #000;
  text-decoration: none;
}

.job-overlay__drop-hint a span {
  text-decoration: underline;
}

.job-overlay__drop-sub {
  font-size: var(--fs-xs);
  color: rgba(0, 0, 0, 0.5);
  font-weight: 500;
}

.job-overlay__checkboxes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.job-overlay__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 145%;
  color: #000;
  cursor: pointer;
}

.job-overlay__checkbox input {
  margin-top: 3px;
  flex-shrink: 0;
}

.job-overlay__form-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.job-overlay__rodo {
  font-size: var(--fs-xs);
  line-height: 145%;
  color: #000;
}

.job-overlay__rodo a {
  color: #000;
  text-decoration: underline;
}

.job-overlay__submit {
  width: 100%;
  height: 47px;
  background: #000;
  color: #fff;
  border-radius: 4px;
  font-size: var(--fs-body);
  font-weight: 500;
  transition: opacity 0.2s;
}

.job-overlay__submit:hover {
  opacity: 0.75;
}

/* Close button */

.job-overlay__close {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: #000;
  transition: opacity 0.2s;
}

.job-overlay__close:hover {
  opacity: 0.6;
}

/* ─── Contact ────────────────────────────────────────────────────────────────── */

.contact {
  background: #F0F0F0;
  color: #000;
  padding: 128px 148px 48px;
}

.contact__inner {
  display: flex;
  gap: 24px;
  align-items: start;
  max-width: 1144px;
  margin: 0 auto;
  width: 100%;
}

.contact__heading {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact__title {
  font-family: var(--font-work-sans);
  font-size: 18px;
  font-weight: 500;
  line-height: 103%;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  max-width: 870px;
  min-width: 350px;
}

.contact__field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.contact__label {
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: var(--font-work-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 130%;
}

.contact__input,
.contact__textarea {
  width: 100%;
  padding: 12px 10px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 4px;
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: var(--font-work-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 130%;
  color: #000;
  outline: none;
}

.contact__input {
  height: 47px;
}

.contact__input:focus,
.contact__textarea:focus {
  border-color: rgba(0, 0, 0, 0.4);
}

.contact__textarea {
  resize: vertical;
  height: 154px;
}

.contact__submit {
  width: 100%;
  height: 47px;
  padding: 12px 10px;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 4px;
  background: #000;
  color: #fff;
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: var(--font-work-sans);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 130%;
  transition: opacity 0.2s;
}

.contact__submit:hover {
  opacity: 0.8;
}

.contact__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.contact__status {
  font-family: var(--font-work-sans);
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 135%;
  margin-top: 8px;
}

.contact__status--error {
  color: var(--color-red);
}

/* ─── People ─────────────────────────────────────────────────────────────────── */

.people {
  padding: 96px 148px;
  overflow: clip;
}

.people::before {
  content: '';
  position: absolute;
  width: 2881px;
  height: 1027px;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 2881px;
  background: #E7EFF9;
  opacity: 0.4;
  filter: blur(250px);
  pointer-events: none;
  z-index: 0;
}

.people__content {
  display: flex;
  flex-direction: column;
  max-width: 1144px;
  margin: 0 auto;
}

.people__title {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 40px;
}

.people__title--serif {
  font-family: var(--font-abhaya);
  font-size: 76px;
  line-height: 90%;
  text-align: left;
  font-weight: 400;
}

.people__title--sans {
  font-family: var(--font-manrope);
  font-size: 60px;
  font-weight: 500;
  line-height: 90%;
  text-align: left;
}

.people__desc {
  font-family: var(--font-work-sans);
  font-size: 24px;
  font-style: italic;
  line-height: 135%;
  max-width: 520px;
  margin-bottom: 40px;
  text-align: left;
}

.people__departments {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
}

.people__dept {
  display: flex;
  flex-direction: column;
  max-width: 749px;
}

.people__dept--right {
  align-self: flex-end;
}

.people__dept-title {
  font-family: var(--font-work-sans);
  font-size: 32px;
  line-height: 135%;
  margin-bottom: 16px;
  text-align: left;
}

.people__dept-text {
  font-family: var(--font-work-sans);
  font-size: 24px;
  line-height: 135%;
  text-align: left;
}

.people__dept-link {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-work-sans);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 135%;
  align-self: flex-start;
  margin-top: 32px;
  text-align: left;
}

.people__dept--right .people__dept-link {
  align-self: flex-start;
}

.people__dept-details {
  font-family: var(--font-work-sans);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 135%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, margin-top 0.4s ease;
  text-align: left;
  margin-top: 0;
}

.people__dept-details--open {
  max-height: 600px;
  margin-top: 16px;
}

.people__dept-link svg {
  transition: transform 0.3s ease;
}

.people__dept-link[aria-expanded="true"] svg {
  order: -1;
}

/* ─── Effect ─────────────────────────────────────────────────────────────────── */

/* ─── Effect ─────────────────────────────────────────────────────────────────── */

.effect {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 164px 40px;
  overflow: hidden;
  background: #D6F2F0;
  color: #000;
}

.effect__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.effect__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.effect__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 48px;
  max-width: 1024px;
  width: 100%;
}

.effect__title {
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

.effect__title--sm {
  font-family: var(--font-manrope);
  font-size: 60px;
  font-weight: 400;
  line-height: 75%;
  text-align: right;
}

.effect__title--lg {
  font-family: var(--font-abhaya);
  font-size: 184px;
  line-height: 53%;
  letter-spacing: -10px;
  background: linear-gradient(90deg, #000 0%, #6BACA8 50%, #000 100%);
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 400;
  padding-top: 26px;
  animation: effect-gradient 3s ease-in-out infinite alternate;
}

@keyframes effect-gradient {
  from {
    background-position: 0% 50%;
  }

  to {
    background-position: 100% 50%;
  }
}

.effect__title--q {
  font-family: var(--font-manrope);
  font-size: 118px;
  font-weight: 400;
  line-height: 75%;
  color: #6BACA8;
}

.effect__desc {
  font-family: var(--font-work-sans);
  font-size: 24px;
  line-height: 135%;
  text-align: center;
}


/* ─── Header ────────────────────────────────────────────────────────────────── */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 28px 32px;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.header--scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
}

@media (prefers-color-scheme: dark) {
  .header--scrolled {
    background: rgba(0, 0, 0, 0.85);
  }
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo img {
  height: 28px;
}

.header__controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ─── Lang Switcher ─────────────────────────────────────────────────────────── */

.lang-switcher {
  display: flex;
}

.lang-switcher__btn {
  color: #FFF;
  font-family: var(--font-inter);
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-align: center;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  transition: background 0.2s;
  outline: none;
  border: 1px solid #FFF;
  background: rgba(0, 0, 0, 0.45);
}

.lang-switcher__btn--active {
  background: rgba(255, 255, 255, 0.35);
  color: #0C0C12;
}

@media (prefers-color-scheme: dark) {
  .lang-switcher__btn.lang-switcher__btn--active {
    background: rgba(255, 255, 255, 0.35);
    border: none;
    outline: none;
    box-shadow: none;
    color: #0C0C12;
  }
}

/* ─── Nav Toggle ────────────────────────────────────────────────────────────── */

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 21px;
  height: 2.5px;
  flex-shrink: 0;
  background: var(--color);
  border-radius: 10px;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ─── Nav Overlay ───────────────────────────────────────────────────────────── */

.nav-overlay {
  position: fixed;
  top: 80px;
  right: 0;
  width: 242px;
  height: auto;
  background: var(--nav-bg);
  backdrop-filter: blur(4px);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.35s ease;
}

.nav-overlay--open {
  transform: translateX(0);
}

.nav-overlay__inner {
  height: auto;
  display: flex;
  flex-direction: column;
  padding: 24px 36px 24px 16px;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: right;
}

.nav-list__item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.nav-list__link {
  font-size: var(--fs-body);
  line-height: 135%;
  transition: opacity 0.2s;
}

.nav-list__link:hover {
  opacity: 0.6;
}

.nav-list__sub {
  font-size: var(--fs-xs);
  line-height: 135%;
}

.nav-list__sub--bold {
  font-size: 20px;
  font-weight: 600;
}

/* ─── Infra ──────────────────────────────────────────────────────────────────── */

.infra {
  padding: 128px 40px;
  overflow: clip;
  background: linear-gradient(0deg, #F0F0F0 0%, #F0F0F0 100%), #FFF;
  color: #000;
}

.infra__bg {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  left: -1052px;
  bottom: -1429.597px;
}

.infra__bg img {
  width: 100%;
  animation: infra-spin 10s linear infinite alternate;
}

@keyframes infra-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(45deg);
  }
}

.infra__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 1024px;
  margin: 0 auto;
}

.infra__title {
  display: flex;
  flex-direction: column;
}

.infra__title--light {
  font-family: var(--font-abhaya);
  font-size: 114px;
  line-height: 72%;
  font-weight: 400;
  padding-top: 0.1rem;
}

.infra__title--bold {
  font-family: var(--font-manrope);
  font-size: 60px;
  font-weight: 700;
  line-height: 126%;
}

.infra__desc {
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 135%;
  max-width: 726px;
}

.infra__desc--faded {
  color: rgba(0, 0, 0, 0.15);
}

.infra__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 336px));
  gap: 0 24px;
}

.infra__col {
  overflow: hidden;
  border-top: 2px solid #000;
  padding: 32px 0 0;
}

.infra__col-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  transform: translateY(-110%);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.infra__col:nth-child(2) .infra__col-inner {
  transition-delay: 0.2s;
}

.infra__col:nth-child(3) .infra__col-inner {
  transition-delay: 0.4s;
}

.infra--visible .infra__col-inner {
  transform: translateY(0);
}

.infra__col-title {
  font-family: var(--font-abhaya);
  font-size: var(--fs-col-title);
  line-height: 90%;
  font-weight: 400;
}

.infra__col-text {
  font-feature-settings: 'liga' off, 'clig' off;
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 135%;
  opacity: 0.85;
}

/* ─── Formats ───────────────────────────────────────────────────────────────── */

.formats {
  padding: 164px 40px 128px;
  overflow-x: clip;
}

.formats::before {
  content: '';
  position: absolute;
  width: 1024px;
  height: 558px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 1024px;
  background: #E0ECFF;
  opacity: 0.5;
  filter: blur(153.6px);
  pointer-events: none;
  z-index: 1;
}

.formats__bg {
  position: absolute;
  top: -80px;
  left: -100px;
  width: 75%;
  pointer-events: none;
}

.formats__bg img {
  width: 100%;
}

.formats__content {
  position: relative;
  z-index: 1;
  max-width: 1024px;
  margin: 0 auto;
}

.formats__title {
  display: flex;
  flex-direction: column;
  margin-bottom: 64px;
}

.formats__title--lg {
  font-family: var(--font-manrope);
  font-size: 139px;
  line-height: 90%;
  text-align: right;
  font-weight: 400;
  padding-bottom: 0.4rem;
}

.formats__title--sm {
  font-family: var(--font-abhaya);
  font-size: 66px;
  line-height: 90%;
  text-align: right;
  font-weight: 400;
}

.formats__desc {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 726px;
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 135%;
  margin-bottom: 48px;
}

.formats__cards {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.formats__card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 335px;
  height: 336px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid #1D2844;
}

.formats__card:nth-child(2) {
  margin-top: 45px;
}

.formats__card:nth-child(3) {
  margin-top: 85px;
}

.formats__card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.formats__card-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  pointer-events: none;
  z-index: 1;
}

@media (prefers-color-scheme: dark) {
  .formats__card-bg::after {
    display: none;
  }
}

.formats__card-bg img,
.formats__card-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}


.formats__card-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-abhaya);
  font-size: 32px;
  line-height: 90%;
  color: #fff;
}

.formats__card-text {
  position: relative;
  z-index: 1;
  font-size: var(--fs-sm);
  line-height: 135%;
  color: #fff;
}

/* ─── Ticker ─────────────────────────────────────────────────────────────────── */

.formats__ticker {
  overflow: hidden;
  padding-block: 12px;
  margin-top: 80px;
  margin-inline: -40px;
  background: var(--ticker-bg);
}

.formats__ticker-track {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  text-align: center;
  animation: ticker 20s linear infinite;
}

.formats__ticker-track span {
  font-size: 28px;
  font-weight: 500;
  line-height: 90%;
}

.formats__ticker-dot {
  color: var(--color);
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ─── Interest ──────────────────────────────────────────────────────────────── */

.interest {
  padding: 164px 40px;
  overflow-x: clip;
}

.interest::before {
  content: '';
  position: absolute;
  width: 1007px;
  height: 492px;
  right: 0;
  top: 34%;
  transform: translate(0, -50%);
  border-radius: 1007px;
  background: #DFF8F9;
  opacity: 0.5;
  filter: blur(153.6px);
  pointer-events: none;
  z-index: 0;
}

.interest::before {
  content: '';
  position: absolute;
  width: 1007px;
  height: 492px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 1007px;
  background: #DFF8F9;
  opacity: 0.5;
  filter: blur(153.6px);
  pointer-events: none;
  z-index: 0;
}

.interest__bg {
  position: absolute;
  top: -95px;
  left: 0;
  pointer-events: none;
}

.interest__bg img {
  width: 100%;
}

.interest__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 1024px;
  margin: 0 auto;
}

.interest__title {
  display: flex;
  flex-direction: column;
}

.interest__title--sm {
  display: block;
  font-family: var(--font-manrope);
  font-size: 60px;
  font-weight: 500;
  line-height: 90%;
  padding-bottom: 0.5rem;
}

.interest__title--lg {
  display: block;
  font-family: var(--font-abhaya);
  font-size: 76px;
  line-height: 90%;
  font-weight: 400;
}

.interest__desc {
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 135%;
  max-width: 726px;
}

.interest__desc--faded {
  color: var(--color-faded);
}

.interest__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 336px));
  gap: 0 8px;
}

.interest__col {
  overflow: hidden;
  border-left: 2px solid var(--color);
  padding: 8px 0 8px 32px;
}

.interest__col-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(-110%);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.interest__col:nth-child(2) .interest__col-inner {
  transition-delay: 0.2s;
}

.interest__col:nth-child(3) .interest__col-inner {
  transition-delay: 0.4s;
}

.interest--visible .interest__col-inner {
  transform: translateX(0);
}

.interest__col-title {
  font-family: var(--font-abhaya);
  font-size: var(--fs-col-title);
  line-height: 90%;
  margin-bottom: 24px;
}

.interest__col-text {
  font-feature-settings: 'liga' off, 'clig' off;
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 130%;
}

/* ─── Trust ─────────────────────────────────────────────────────────────────── */

.trust {
  padding: 164px 40px 185px;
  overflow: clip;
}

.trust::before {
  content: '';
  position: absolute;
  width: 1091px;
  height: 757px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 1091px;
  background: #A7DDDF;
  opacity: 0.4;
  filter: blur(153.6px);
  pointer-events: none;
  z-index: 0;
}

.trust__bg {
  position: absolute;
  top: -60px;
  right: -80px;
  width: 65%;
  pointer-events: none;
}

.trust__bg img {
  width: 100%;
}

.trust__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 1024px;
  margin: 0 auto;
  text-align: right;
  align-items: flex-end;
}

.trust__title {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 16px;
  justify-content: flex-end;
}

.trust__title--accent {
  font-family: var(--font-abhaya);
  font-size: 76px;
  line-height: 90%;
  font-weight: 400;
}

.trust__title--main {
  font-family: var(--font-manrope);
  font-size: 60px;
  font-weight: 500;
  line-height: 90%;
  white-space: nowrap;
}

.trust__desc {
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 135%;
  text-align: right;
  max-width: 630px;
}

.trust__logos {
  display: none;
  overflow: hidden;
  padding-block: 12.437px;
  margin-top: 62px;
  margin-inline: -40px;
  background: var(--trust-logos-bg);
}

.trust__logos-track {
  display: flex;
  align-items: center;
  gap: 48px;
  white-space: nowrap;
  animation: ticker 20s linear infinite;
}

.trust__logos-track img {
  height: 32px;
  width: auto;
  flex-shrink: 0;
  filter: var(--logo-filter);
}

.trust__logo--zlote {
  max-width: 78px;
}

/* ─── Hero ──────────────────────────────────────────────────────────────────── */

.hero {
  height: 730px;
  overflow-x: clip;
}

.hero::before {
  content: '';
  position: absolute;
  width: 1089px;
  height: 408px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 1089px;
  background: #A9B4FF;
  opacity: 0.4;
  filter: blur(153.6px);
  pointer-events: none;
  z-index: 0;
}

.hero__content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 875px;
  display: flex;
  flex-direction: column;
}

.hero__title {
  display: flex;
  flex-direction: column;
  margin-bottom: 32px;
}

.hero__title--light {
  font-family: var(--font-abhaya);
  font-size: 72px;
  line-height: 90%;
  font-weight: 400;
}

.hero__title--bold {
  font-family: var(--font-manrope);
  font-size: 100px;
  font-weight: 500;
  line-height: 90%;
  padding-bottom: 0.2em;
}

.hero__desc {
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 135%;
  max-width: 744px;
}

.hero__video {
  position: absolute;
  right: 0;
  top: 0;
  width: 50%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero__video--light {
  display: none;
  opacity: 0.2;
}

@media (prefers-color-scheme: light) {
  .hero__video--dark  { display: none; }
  .hero__video--light { display: block; }
}

.hero__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── Cases ──────────────────────────────────────────────────────────────────── */

/* v2 — CSS sticky, no GSAP pin */
.cases__scroll {
  position: relative;
  height: calc(100vh + 2000px);
  height: calc(100dvh + 2000px);
}

.cases__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.cases__stage {
  position: relative;
  height: 100%;
  width: 100%;
  padding: 96px 0 0;
  overflow: hidden;
}

.cases__stage::before {
  content: '';
  position: absolute;
  width: 1091px;
  height: 618px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 1091px;
  background: #C8DDFE;
  opacity: 0.4;
  filter: blur(153.6px);
  pointer-events: none;
  z-index: 0;
}

.cases__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.cases__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cases__headline {
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  text-align: center;
  color: transparent;
  -webkit-text-stroke-width: 1.37px;
  -webkit-text-stroke-color: #5D9491;
  pointer-events: none;
  user-select: none;
}

.cases__headline--case {
  font-family: var(--font-abhaya);
  font-size: 456.029px;
  line-height: 80%;
}

.cases__headline--study {
  font-family: var(--font-manrope);
  font-size: 305.047px;
  font-weight: 500;
  line-height: 80%;
}

.cases__cards {
  position: static;
  z-index: 1;
}

.cases__card {
  position: absolute;
  width: 438px;
  height: 337px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px 16px 16px;
  border-radius: 4px;
  color: #fff;
  will-change: transform;
}

.cases__card::before {
  content: '';
  display: block;
  flex-shrink: 0;
  height: 100px;
  width: 178px;
  border-radius: 4px;
  opacity: 0;
}

.cases__card--red {
  background: var(--color-red);
  left: 90px;
  top: 100px;
}

.cases__card--violet {
  background: var(--color-violet);
  left: 453px;
  top: 470px;
}

.cases__card--orange {
  background: var(--color-orange);
  left: 956px;
  top: 240px;
}

.cases__card-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cases__card-title {
  font-family: var(--font-work-sans);
  font-size: 24px;
  font-weight: 500;
  line-height: 110%;
  letter-spacing: -0.48px;
}

.cases__card-text {
  font-family: var(--font-work-sans);
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 135%;
}

.cases__card-link {
  align-self: flex-start;
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: var(--font-work-sans);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 130%;
  color: #fff;
  margin-top: 24px;
  padding-left: 8px;
}

/* ─── Dark mode ─────────────────────────────────────────────────────────────── */

@media (prefers-color-scheme: dark) {

  .cases__headline {
    -webkit-text-stroke-color: rgba(255, 255, 255, 0.35);
  }

  .effect__title--lg {
    background: linear-gradient(90deg, #FFF 0%, #7184A1 50%, #FFF 100%);
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .effect {
    background: radial-gradient(114.69% 114.69% at 50% 50%, #1D2843 0%, rgba(29, 40, 67, 0.00) 76.77%);
    color: #fff;
  }

  .contact {
    background: #3B404B;
    color: #fff;
  }

  .contact__heading::after {
    background: #fff;
  }

  .hero::before {
    background: #4B67AF;
  }

  .interest::before {
    background: #4B67AF;
  }

  .formats::before {
    background: #239B58;
  }

  .trust::before {
    background: #4B67AF;
  }

  .cases__stage::before {
    background: #4B67AF;
  }

  .people::before {
    background: #4B67AF;
  }

}

/* ─── Mobile ─────────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {

  /* ── Header ── */
  .header {
    padding: 28px 16px;
  }

  /* ── Hero ── */
  .hero {
    height: auto;
    padding: 360px 0 0;
  }

  .hero__content {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    padding: 0 16px;
  }

  .hero__title--light {
    font-size: 58px;
  }

  .hero::before {
    top: 90%;
  }

  .hero__title--bold {
    font-size: 54px;
  }

  .hero__video {
    width: 1041px;
    height: auto;
    right: auto;
    left: -265px;
  }

  /* ── Interest ── */
  .interest {
    padding: 96px 16px 64px;
  }

  .interest__title--sm {
    font-size: 50px;
  }

  .interest__title--lg {
    font-size: 63px;
  }

  .interest__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .interest__col {
    padding: 8px 0 8px 16px;
  }

  .interest__col-title {
    font-size: 42px;
    margin-bottom: 48px;
  }

  .interest::before {
    width: 905px;
    height: 492px;
    border-radius: 905px;
  }

  .interest__bg {
    top: 100px;
    left: -343px;
    width: 1323px;
  }

  /* ── Formats ── */
  .formats {
    padding: 64px 16px 0;
  }

  .formats__title--lg {
    font-size: 102px;
  }

  .formats__title--sm {
    font-size: 54px;
  }

  .formats__title,
  .formats__desc {
    margin-bottom: 48px;
  }

  .formats__cards {
    flex-direction: column;
    gap: 16px;
  }

  .formats__card {
    width: 100%;
    height: auto;
    gap: 56px;
  }

  .formats__card:nth-child(2) {
    margin-top: 0;
    padding-right: 55px;
  }

  .formats__card:nth-child(3) {
    margin-top: 0;
    padding-right: 145px;
  }

  .formats__ticker {
    margin: 46px -16px 32px;
  }

  .formats::before {
    width: 438px;
    height: 787px;
    border-radius: 787px;
    background: #229B57;
    filter: blur(77.5px);
  }

  /* ── Infra ── */
  .infra {
    padding: 64px 16px;
  }

  .infra__title--light {
    font-size: 64px;
  }

  .infra__title--bold {
    font-size: 48px;
  }

  .infra__grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 16px;
  }

  /* Each card slides down from above, matching desktop direction */
  .infra__col-inner {
    transform: translateY(-50px);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.5s ease;
  }

  .infra--visible .infra__col-inner {
    transform: translateY(0);
    opacity: 1;
  }

  /* ── Trust ── */
  .trust {
    padding: 86px 16px 90px;
  }

  .trust__content {
    align-items: flex-start;
    text-align: left;
  }

  .trust__title {
    flex-direction: column;
    gap: 0;
  }

  .trust__title--accent {
    font-size: 66px;
  }

  .trust__title--main {
    font-size: 50px;
  }

  .trust__desc {
    text-align: left;
  }

  .trust__logos {
    margin-inline: -16px;
  }

  .trust__logos-track {
    animation-duration: 12s;
  }

  .trust::before {
    width: 880px;
    height: 747px;
    border-radius: 880px;
  }

  /* ── Cases ── */
  .cases__stage {
    height: 100%;
    padding: 40px 16px 0;
  }

  /* [v2 sticky commented out: .cases__scroll / .cases__sticky overrides] */
  .cases__headline {
    top: 128px;
  }

  .cases__headline--case {
    font-size: 212px;
  }

  .cases__headline--study {
    font-size: 140px;
  }

  .cases__card--red,
  .cases__card--orange,
  .cases__card--violet {
    left: 16px;
    top: 100px;
    width: calc(100% - 32px);
    max-width: 298px;
    height: auto;
  }

  .cases__stage::before {
    height: 433px;
  }

  /* ── Effect ── */
  /* ── Effect ── */
  .effect {
    padding: 144px 16px 148px;
  }

  .effect__content {
    gap: 32px;
  }

  .effect__title {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0;
  }

  .effect__title--sm {
    flex: 0 0 100%;
    font-size: 50px;
    text-align: left;
    font-weight: 400;
  }

  .effect__title--sm br {
    display: none;
  }

  .effect__title--lg {
    font-size: 143px;
    margin-left: auto;
    line-height: 79%;
    margin-top: -8px;
    padding-right: 10px;
    padding-top: 0;
  }

  .effect__title--q {
    font-size: 95px;
    display: block;
    position: relative;
    top: -16px;
    font-family: "Work Sans";
  }

  .effect__desc {
    font-weight: 500;
  }


  /* ── People ── */
  .people {
    padding: 64px 16px;
  }

  .people::before {
    width: 1055px;
    height: 1707px;
    border-radius: 1707px;
  }

  .people__title {
    display: inline;
    margin-bottom: 32px;
  }

  .people__desc {
    margin-bottom: 48px;
  }

  .people__title--serif {
    font-size: 66px;
  }

  .people__title--sans {
    font-size: 50px;
  }

  .people__departments {
    gap: 48px;
  }

  .people__dept {
    max-width: 100%;
  }

  .people__dept--right {
    align-self: auto;
  }

  /* ── Contact ── */
  .contact {
    padding: 64px 16px 16px;
  }

  .contact__inner {
    flex-direction: column;
    gap: 8px;
  }

  .contact__form {
    border-left: 2px solid #000;
    padding: 16px 16px 0 16px;
  }

  .contact__heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .contact__heading svg {
    display: none;
  }

  .contact__heading::after {
    content: '';
    display: block;
    width: 2px;
    height: 24px;
    background: currentColor;
  }

  /* ── Footer ── */
  .footer {
    padding: 64px 16px 128px;
  }

  .footer__bg {
    bottom: -235px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 0;
  }

  .footer__label {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 8px;
  }

  .footer__label svg {
    display: none;
  }

  .footer__label::after {
    content: '';
    display: block;
    width: 2px;
    height: 24px;
    background: currentColor;
  }

  .footer__col-header svg {
    display: none;
  }

  .footer__col {
    width: auto;
    margin-bottom: 8px;
  }

  .footer__col--active {
    margin-bottom: 0;
  }

  .footer__col--active::after {
    display: none;
  }

  .footer__col-body {
    border-left: 2px solid #000;
    padding: 0 0 24px 24px;
  }

  .footer__col-link br {
    display: none;
  }

  /* ── Job Overlay / CV Overlay ── */
  .job-overlay,
  .cv-overlay {
    order: 0;
    flex: none;
    width: 100%;
  }

  .job-overlay__content {
    padding: 0 16px 24px;
    border-left: 2px solid #000;
    gap: 16px;
    margin-bottom: 8px;
  }

  .job-overlay__checkboxes {
    margin-bottom: 16px;
  }

  .job-overlay__form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0 24px;
  }

  .job-overlay__col {
    flex: 1 0 0;
    min-width: 300px;
  }

  .job-overlay__dropzone {
    min-height: 317px;
    padding: 12px 10px;
  }

}

@media (max-width: 400px) {
  .formats__title--lg {
    font-size: 91px;
  }

  .formats__title--sm {
    font-size: 48px;
  }

  .interest__title--lg {
    font-size: 54px;
  }

  .interest__title--sm {
    font-size: 41px;
  }

  .hero__title--light {
    font-size: 52px;
  }

  .hero__title--bold {
    font-size: 48px;
  }

  .infra__title--light {
    font-size: 57px;
  }

  .infra__title--bold {
    font-size: 41px;
  }

  .trust__title--accent {
    font-size: 59px;
  }

  .trust__title--main {
    font-size: 43px;
  }

  .effect__title--sm {
    font-size: 43px;
  }

  .effect__title--lg {
    font-size: 136px;
  }

  .people__title--serif {
    font-size: 59px;
  }

  .people__title--sans {
    font-size: 43px;
  }

  .cases__headline--case {
    font-size: 197px;
  }

  .cases__headline--study {
    font-size: 125px;
  }
}

@media (prefers-color-scheme: dark) and (max-width: 768px) {
  .contact__form {
    border-color: #FFF;
  }
}