/* ═══════════════════════════════════════════════════════════
   KEYSTONE ALLIANCE — Design System v6.0
   Exact Tenity.com pixel measurements
   ═══════════════════════════════════════════════════════════ */

:root {
  --font-primary: "IBM Plex Sans", "Helvetica Neue", "Arial", sans-serif;
  --font-secondary: "IBM Plex Sans", "Georgia", sans-serif;
  --font-size: 0.667vw;

  --white: #fff;
  --black: #000;
  --light: #fcf5f2;
  --medium: #d6d1d1;
  --grey: #858585;
  --dark: #1f1c1c;
  --overlay: #18181a;
  --line: #27292a;

  --red: #ff3e60;
  --red-50: #ff8ba0;
  --red-20: #ffd8df;
  --blue: #4688f0;
  --blue-50: #90b8f6;
  --blue-20: #dae7fc;
  --green: #3bdd8f;
  --green-50: #89ebbc;
  --green-20: #d8f8e9;
  --yellow: #fec32d;
  --yellow-20: #fff3d5;
  --mint: #c7f5f2;

  --white-5: hsla(0,0%,100%,.051);
  --white-10: hsla(0,0%,100%,.1);
  --white-20: hsla(0,0%,100%,.2);
  --white-30: hsla(0,0%,100%,.302);
  --white-50: hsla(40,39%,95%,.65);
  --black-5: rgba(0,0,0,.051);
  --black-10: rgba(0,0,0,.1);
  --black-20: rgba(0,0,0,.2);
  --black-30: rgba(0,0,0,.302);

  --space: 0.833vw;
  --space-half: 0.417vw;
  --radius: 10px;
  --radius2: 15px;

  --expoOut: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: var(--font-size);
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-secondary);
  font-size: var(--font-size);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background: var(--black);
  color: var(--white);
}

::selection { background: rgba(255,62,96,0.3); color: var(--white); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ── FOCUS VISIBLE (C1) ── */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: 2px;
}
.--bg-white :focus-visible { outline-color: var(--red); }
.button--main:focus-visible { outline-color: var(--white); outline-offset: 3px; }

/* ── SKIP LINK (H3) ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--red);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: top 0.2s var(--expoOut);
}
.skip-link:focus { top: 0; position: fixed; }

/* ── TYPOGRAPHY (Tenity exact vw scale) ── */
.title { margin-bottom: 1.667vw; text-align: left; }

.--display-xl {
  font-family: var(--font-primary);
  font-size: 16.667vw;      /* 240px at 1440px */
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.8;
}
.--display-l {
  font-family: var(--font-primary);
  font-size: 7.083vw;       /* 102px at 1440px */
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.882;
}
.--display-m {
  font-family: var(--font-primary);
  font-size: 5vw;           /* 72px at 1440px */
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.916;
}
.--display-s {
  font-family: var(--font-primary);
  font-size: 3.75vw;        /* 54px at 1440px */
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.888;
}
.--display-xs {
  font-family: var(--font-primary);
  font-size: 2.5vw;         /* 36px at 1440px */
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}
.--display-xxs {
  font-family: var(--font-primary);
  font-size: 1.667vw;       /* 24px at 1440px */
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
}

.--text-xxl { font-family: var(--font-secondary); font-size: 2vw; letter-spacing: -0.04em; line-height: 1.125; }
.--text-xl  { font-family: var(--font-secondary); font-size: 1.5vw; letter-spacing: -0.02em; line-height: 1.222; }  /* 21.6px */
.--text-m   { font-family: var(--font-secondary); font-size: 1.167vw; letter-spacing: -0.02em; line-height: 1.214; }
.--text-s   { font-family: var(--font-secondary); font-size: 1vw; letter-spacing: 0; line-height: 1.333; }

.--semibold { font-weight: 600; }
.--bold { font-weight: 700; }
.--na { margin-bottom: 0; }
.--text-center { text-align: center; }

/* ── CONTAINER ── */
.container { margin: auto; max-width: 100%; position: relative; width: 95vw; }
.container--xs { max-width: 1440px; }
.container--s  { max-width: 1200px; }
.container--m  { max-width: 1100px; }
.container--l  { max-width: 1300px; }

.contentblock { margin-bottom: 1.667vw; }
.contentblock--columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.083vw;
  align-items: start;
}
.contentblock--center { text-align: center; }
.contentblock--center .title { text-align: center; }

.component { padding: 7vw 0; position: relative; }
.--pt-none { padding-top: 0; }
.--pb-none { padding-bottom: 0; }

.--bg-white { background: var(--white); color: var(--black); }
.--bg-black { background: var(--black); color: var(--white); }

/* ── SPLIT TEXT ── */
.--split .line { position: relative; display: block; overflow: hidden; padding-bottom: 0.15em; margin-bottom: -0.15em; }
.--split .word { position: relative; display: inline-block; will-change: transform, opacity; }

/* ═══════════════ HEADER (Tenity exact) ═══════════════ */
.header {
  display: block;
  padding: min(2.5vw, 9.9px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1010;
}
.header .mask {
  height: 100vh;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  inset: 0;
  width: 100vw;
  background: rgba(0,0,0,0.5);
  transition: opacity 0.4s var(--expoOut);
}
.header .mask.header-mask--visible { opacity: 1; pointer-events: all; }

/* White pill centered in viewport */
.header .main {
  background: var(--white);
  border-radius: 0.625vw;
  padding: 6px 1.667vw;
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  color: var(--black);
}
.header .columns {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: auto;
  min-height: 36px;
  width: 100%;
}
.header .item {
  display: flex;
  align-items: center;
  gap: 0.833vw;
}

.brand {
  display: flex;
  align-items: center;
  height: 3.5vw;
  min-height: 36px;
}
.brand svg { height: 100%; width: auto; }
.brand__logo { height: 100%; width: auto; display: block; }
.--bg-black .brand__logo { filter: brightness(0) invert(1); }

/* Horizontal nav */
#menuHeader {
  display: flex;
  flex-direction: row;
  gap: 1.25vw;
}
#menuHeader > .menu-item > a {
  color: var(--black);
  font-family: var(--font-secondary);
  font-size: 1vw;                /* 14.4px */
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25vw;
  cursor: pointer;
  transition: color 0.2s var(--expoOut);
}
#menuHeader > .menu-item > a:hover { color: var(--red); }

.trigger { cursor: pointer; padding: 10px; z-index: 30; display: none; border: none; background: none; appearance: none; -webkit-appearance: none; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.trigger::-moz-focus-inner { border: 0; }
.trigger .bars { display: flex; flex-direction: column; gap: 5px; align-items: center; }
.trigger .bars span { display: block; width: 22px; height: 2px; background: var(--black); border-radius: 1px; transition: transform 0.4s var(--expoOut); }
.trigger--active .bars span:first-child { transform: translateY(7px) rotate(45deg); }
.trigger--active .bars span:last-child { transform: translateY(-7px) rotate(-45deg); }

/* Mega-menu */

/* ═══════════════ BUTTONS ═══════════════ */
.button {
  align-items: center;
  border-radius: 1.667vw;          /* 24px at 1440 */
  cursor: pointer;
  display: inline-flex;
  font-family: var(--font-secondary);
  font-size: 1vw;                  /* 14.4px */
  font-weight: 600;
  height: 3.333vw;                 /* 48px at 1440 */
  justify-content: center;
  line-height: 1;
  padding: 0 1.667vw;
  text-decoration: none;
  transition: all 0.4s var(--expoOut);
  white-space: nowrap;
  border: none;
  color: inherit;
}

.button--main {
  background: var(--red);
  color: var(--white);
}
.button--main:hover { background: #e53655; transform: translateY(-1px); }

.button--border {
  background: transparent;
  color: var(--white);
  border: 1px solid hsla(40,39%,95%,.5);
}
.button--border:hover { border-color: var(--white); background: var(--white-5); }

.--bg-white .button--border { color: var(--black); border-color: var(--black-20); }
.--bg-white .button--border:hover { border-color: var(--black); background: var(--black-5); }

.buttonarrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5vw;
  height: 2.5vw;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0.6;
  transition: all 0.4s var(--expoOut);
}
.buttonarrow::after { content: "→"; font-size: 1vw; }
.buttonarrow:hover { opacity: 1; transform: translateX(2px); }

.actions { display: flex; gap: 0.833vw; flex-wrap: wrap; margin-top: 1.667vw; }
.actions--centered { justify-content: center; }
.actions--mt-2 { margin-top: 2vw; }
.actions--mt-3 { margin-top: 3vw; }

/* ── HEADER CTA (C4) ── */
.header-cta { height: 2.5vw; font-size: 0.9vw; padding: 0 1.25vw; }

/* ── MOBILE MENU OPEN (C3) ── */
.menu-header--open {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: var(--white);
  z-index: 200;
  padding: 8px 0;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.menu-header--open .menu-item a {
  color: var(--black);
  font-size: 16px;
  font-weight: 500;
  padding: 14px 24px;
  display: block;
}

/* ═══════════════ HERO (Tenity exact) ═══════════════ */
.component--hero {
  height: 100svh;
  padding: 0;
  display: flex;
  align-items: center;
  padding-top: 5vw;
  position: relative;
  background-image: url('https://images.unsplash.com/photo-1512453979798-5ea266f8880c?w=1920&q=80');
  background-size: cover;
  background-position: center;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}
.component--hero .container { position: relative; z-index: 1; }
.component--hero .contentblock--columns {
  align-items: center;
  grid-template-columns: 1.2fr 0.8fr;
}
.component--hero .contentblock--columns .item:first-child {
  padding-left: 5vw;
}
.component--hero .title {
  font-size: 5vw;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.916;
  margin-bottom: 1.667vw;
}
.component--hero .wysiwyg { color: var(--white-50); }
.component--hero .actions { margin-top: 2.5vw; }
.hero-pricing { color: var(--white-50); margin-top: 1vw; font-style: italic; }

/* ═══════════════ GLASSCARDS (Tenity exact) ═══════════════ */
/* ═══════════════ SERVICES ═══════════════ */
.component--services {
  padding: 7vw 0;
  position: relative;
  background-image: url('https://images.unsplash.com/photo-1549877452-9c387954fbc2?w=1920&q=80');
  background-size: cover;
  background-position: center;
}
.component--services::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 0;
}
.component--services .container {
  position: relative;
  z-index: 1;
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1vw;
  margin-top: 3vw;
}
.service-card {
  background: var(--white-5);
  border: 1px solid var(--white-10);
  border-radius: var(--radius2);
  padding: 2vw;
  position: relative;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  transition: transform 0.4s var(--expoOut), border-color 0.4s var(--expoOut);
}
.service-card:hover,
.service-card:focus-within {
  transform: translateY(-2px);
  border-color: var(--white-20);
}
.service-card__icon {
  font-size: 2vw;
  color: var(--white-50);
  margin-bottom: 1vw;
}
.service-card__title {
  color: var(--white);
  margin-bottom: 0.5vw;
}
.service-card__desc {
  color: var(--white-50);
}
.service-card__dot {
  position: absolute;
  top: 1.5vw;
  right: 1.5vw;
  width: 0.5vw;
  height: 0.5vw;
  border-radius: 50%;
}

.center--three {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.833vw;
  align-items: start;
}

/* Card base — NO border on dark sections, blur 160px */
.card {
  display: block;
  position: relative;
  width: 100%;
  border-radius: 1.042vw;           /* 15px at 1440 */
  overflow: hidden;
  background: var(--white-5);
  border: none;                     /* Tenity: no border on glass cards */
  backdrop-filter: blur(160px);
  -webkit-backdrop-filter: blur(160px);
  transition: transform 0.4s var(--expoOut);
}

.card--center {
  padding: 2.5vw;
  min-height: 20vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card--center .image--cover {
  position: relative;
  width: 100%;
  height: 10vw;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white-10);
  margin-bottom: 1.667vw;
}
.card--center .image--cover .icon-wrap { font-size: 3vw; color: var(--white-30); }
.card--center .overlay--20 { position: absolute; inset: 0; background: rgba(0,0,0,.2); }
.card--center .title { color: var(--white); margin-bottom: 0.833vw; }
.card--center .wysiwyg { color: var(--white-50); }
.card--center .label { color: var(--white-50); }

.card--topleft,
.card--bottomright,
.card--bottom {
  padding: 2.083vw;
  min-height: 13vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card--topleft .title,
.card--bottomright .title,
.card--bottom .title { color: var(--white); margin-bottom: 0; }
.card--topleft .wysiwyg,
.card--bottomright .wysiwyg,
.card--bottom .wysiwyg { color: var(--white-50); }
.card--topleft .label,
.card--bottomright .label,
.card--bottom .label { color: var(--white-50); }

.dot { width: 0.625vw; height: 0.625vw; border-radius: 50%; position: absolute; bottom: 1.5vw; right: 1.5vw; }
.dot--bg-red { background: var(--red); }
.dot--bg-yellow { background: var(--yellow); }
.dot--bg-green { background: var(--green); }
.dot--bg-blue { background: var(--blue); }

.draggable { overflow: hidden; cursor: grab; user-select: none; }
.draggable .inner { display: flex; gap: 0.833vw; will-change: transform; }
.draggable .inner .item { flex-shrink: 0; width: 18vw; min-width: 18vw; }

/* ═══════════════ PARTNERS ═══════════════ */
.component--partners {
  padding: 5vw 0;
  position: relative;
  background-image: url('https://images.unsplash.com/photo-1489749798305-4fea3ae63d43?w=1920&q=80');
  background-size: cover;
  background-position: center;
}
.component--partners::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(252,245,242,0.9);
  z-index: 0;
}
.component--partners .container {
  position: relative;
  z-index: 1;
}
.logos { margin-top: 2.5vw; }
.logos .group { margin-bottom: 2vw; }
.logos .carousel { overflow: hidden; margin-top: 0.833vw; }
.logos .carousel .inner { display: flex; will-change: transform; }
.logos .carousel .item { flex-shrink: 0; display: flex; align-items: center; justify-content: center; padding: 0 2vw; }
.logos .logo {
  font-family: var(--font-primary);
  font-size: 0.938vw;
  font-weight: 600;
  color: var(--black-30);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.3s var(--expoOut);
}
.logos .logo:hover { color: var(--red); }

/* ═══════════════ CARDS / DIFFERENCE (Tenity exact) ═══════════════ */
.component--cards {
  padding: 8vw 0 4vw;
}
.component--cards .cards {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0;
  margin-top: 3.333vw;
}
.component--cards .card {
  flex: 0 0 25vw;
  height: 26vw;
  padding: 0;
  background: transparent;
  border: 1px solid var(--black);
  border-radius: 0 15vw 15vw 0;
  overflow: visible;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: transform 0.4s var(--expoOut), background-color 0.4s var(--expoOut);
}
.component--cards .card:hover { transform: translateY(-4px); }
.component--cards .hover {
  padding: 3.5vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.component--cards .card .top { margin-bottom: 1vw; }
.component--cards .card .title { color: var(--black); font-size: 2.2vw; font-weight: 600; margin-bottom: 0; line-height: 1.1; }
.component--cards .card .wysiwyg { color: var(--grey); font-size: 1vw; line-height: 1.45; }
.component--cards .card:nth-child(1):hover { background: var(--blue-20); }
.component--cards .card:nth-child(2):hover { background: var(--yellow-20); }
.component--cards .card:nth-child(3):hover { background: var(--green-20); }
.component--cards .card:nth-child(4):hover { background: var(--red-20); }

/* ═══════════════ TABLE / STATS (Tenity exact — 240px numbers!) ═══════════════ */
.component--table-numbers {
  padding: 8vw 0 5vw;
}
.table .body { display: flex; flex-direction: column; }
.table .row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-top: 1px solid var(--black-10);
  padding: 1.667vw 0;
}
.table .row:last-child { border-bottom: 1px solid var(--black-10); }
.table .cell .title { margin-bottom: 0; color: var(--black); }
.table .--display-xl {
  text-align: right;
  color: var(--red);
  margin-bottom: 0;
  font-size: 16.667vw;             /* 240px at 1440px */
}
.table .icon-cell {
  width: 3.333vw;
  height: 3.333vw;
  border-radius: 50%;
  background: var(--black-5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25vw;
  color: var(--grey);
}

/* ═══════════════ CASES / TESTIMONIALS ═══════════════ */
.component--cases {
  position: relative;
  overflow: hidden;
  padding: 6vw 0;
  background-image: url('https://images.unsplash.com/photo-1494522855154-9297ac14b55f?w=1920&q=80');
  background-size: cover;
  background-position: center;
}
.component--cases::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(252,245,242,0.9);
  z-index: 0;
}
.component--cases .container { position: relative; z-index: 1; }
.component--cases .card-case {
  display: block;
  background: var(--white);
  border: 1px solid var(--black-10);
  border-radius: 1.042vw;
  overflow: hidden;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s var(--expoOut);
}
.component--cases .card-case:hover { transform: translateY(-2px); }
.component--cases .card-case .image--cover { width: 100%; height: 12vw; background: var(--black-5); }
.component--cases .card-case .contentblock { padding: 2.083vw; margin-bottom: 0; }
.component--cases .card-case .wysiwyg { color: var(--black); margin-bottom: 1.25vw; }
.component--cases .card-case .wysiwyg p { font-size: 0.9vw; line-height: 1.55; font-style: italic; }
.component--cases .card-case .label { color: var(--red); font-size: 0.75vw; text-transform: uppercase; letter-spacing: 0.04em; }
.component--cases .draggable .item { width: 23.5vw; min-width: 23.5vw; }  /* 338px */
.component--cases .draggable .inner { gap: 0.833vw; justify-content: center; }

/* ═══════════════ TEAM ═══════════════ */
.component--team { padding: 8vw 0; }
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.667vw;
  margin-top: 3.333vw;
}
.team-card {
  text-align: center;
  padding: 2.5vw 2vw;
  border: 1px solid var(--black-10);
  border-radius: var(--radius2);
  transition: transform 0.4s var(--expoOut), border-color 0.4s var(--expoOut);
}
.team-card:hover { transform: translateY(-2px); border-color: var(--black-20); }
.team-card__avatar {
  width: 5vw;
  height: 5vw;
  border-radius: 50%;
  margin: 0 auto 1.5vw;
}
.team-card__photo {
  width: 5vw;
  height: 5vw;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5vw;
  display: block;
}
.team-card__name { margin-bottom: 0.25vw; }
.team-card__role { color: var(--grey); margin-bottom: 1vw; }
.team-card__contact {
  display: block;
  color: var(--red);
  transition: color 0.2s;
}
.team-card__contact:hover { color: var(--black); }

/* ═══════════════ GLASSCARDS / PATHS ═══════════════ */
.component--glasscards {
  padding: 8vw 0;
  position: relative;
  background-image: url('https://images.unsplash.com/photo-1512632579988-c5b5e4c42ab7?w=1920&q=80');
  background-size: cover;
  background-position: center;
}
.component--glasscards::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 0;
}
.component--glasscards .container {
  position: relative;
  z-index: 1;
}
.component--glasscards .columns--4-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.833vw;
  margin-top: 3.333vw;
}
.component--glasscards .columns--4-items .item { display: flex; flex-direction: column; gap: 0.833vw; }
.component--glasscards .card {
  padding: 2.083vw;
  display: flex;
  flex-direction: column;
  gap: 1.25vw;
  border: none;
}
.component--glasscards .card .top .title { color: var(--white); margin-bottom: 0; }
.component--glasscards .card .bottom { display: flex; justify-content: space-between; align-items: flex-end; flex: 1; }
.component--glasscards .card .bottom .content { flex: 1; }
.component--glasscards .card .wysiwyg { color: var(--white-50); }

/* ═══════════════ COMPOSITION / CONTACT ═══════════════ */
.component--composition { padding: 8vw 0 5vw; }
.component--composition .wysiwyg { margin-top: 1vw; }
.component--composition .cards { margin-top: 4vw; width: 100%; overflow: hidden; }
.component--composition .columns { display: flex; gap: 0.417vw; }
.component--composition .item--left { flex: 1 1 0; display: flex; flex-wrap: wrap; gap: 0.417vw; min-width: 0; }
.component--composition .item--right { flex: 0 0 25vw; display: flex; flex-direction: column; gap: 0.417vw; }

.comp-card {
  position: relative; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 2.5vw; overflow: hidden;
  transition: transform 0.4s var(--expoOut); color: inherit; text-decoration: none;
}
.comp-card:hover { transform: translateY(-2px); }

.comp-card--d-green { flex: 0 0 31%; height: 20vw; background: var(--green); color: var(--black); border-radius: 0 20vw 20vw 0; }
.comp-card--d-black { flex: 0 0 40.5%; height: 20vw; background: var(--black); color: var(--white); border-radius: 0 20vw 20vw 0; }
.comp-card--circle { flex: 0 0 27%; height: auto; aspect-ratio: 1; background: var(--black); border-radius: 50%; justify-content: center; }
.comp-card--d-red-wide { flex: 0 0 100%; height: 32.5vw; background: var(--red); border-radius: 0 32.5vw 32.5vw 0; flex-direction: column; }
.comp-card--corner-black { width: 100%; flex: 0 0 27.5vw; background: var(--black); color: var(--white); border-radius: 0 12.5vw 0 0; }
.comp-card--corner-blue { width: 100%; flex: 1 1 auto; background: var(--blue-50); color: var(--black); border-radius: 0 12.5vw 0 0; }

/* ── COMPOSITION CARD UTILITIES (H2) ── */
.comp-card__arrow-icon { font-size: 3vw; color: var(--white-50); }
.comp-card__subtitle { color: var(--white-50); margin-top: 1vw; }
.comp-card__corner-title--white { color: var(--white); }
.comp-card__corner-subtitle { color: var(--white-50); margin-top: 0.5vw; }

/* ── STAT TABLE UTILITIES (M2) ── */
.stat__number { color: var(--red); }
.stat__value-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── WYSIWYG MODIFIERS (H2) ── */
.wysiwyg--narrow { max-width: 50%; }
.label--muted { color: var(--grey); margin-bottom: 1vw; }

/* ── ACTIVE NAV (M1) ── */
#menuHeader .menu-item a.active,
#menuHeader .menu-item a[aria-current="page"] { color: var(--red); }

/* ═══════════════ FOOTER ═══════════════ */
.footer {
  background: var(--light);
  color: var(--black);
  padding: 5vw 0 5vw;
  position: relative;
  z-index: 10;
  min-height: 40vh;
  background-image: url('https://images.unsplash.com/photo-1487958449943-2429e8be8625?w=1920&q=80');
  background-size: cover;
  background-position: center;
}
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(252,245,242,0.88);
  z-index: 0;
}
.footer .container {
  position: relative;
  z-index: 1;
}
.footer .columns { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5vw; }
.footer .columns--top { margin-bottom: 2.5vw; }
.footer .columns--middle { margin: 2.5vw 0; align-items: center; }
.footer .columns--bottom { margin-top: 2.5vw; }
.footer .item--full-width { grid-column: 1 / -1; }
.footer .brand { display: block; margin-bottom: 4vw; padding-top: 2vw; }
.footer .brand svg,
.footer .brand__logo { height: 5vw; width: auto; }
.footer hr { border: none; border-top: 1px solid var(--black-10); margin: 0; }
.footer .menu { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.625vw; color: var(--black); }
.footer .menu a { color: var(--grey); transition: color 0.2s; }
.footer .menu a:hover { color: var(--red); }
.footer .menu-social { flex-direction: row; gap: 1.667vw; }
.footer .menu-legal { flex-direction: row; gap: 1.667vw; color: var(--grey); flex-wrap: wrap; }
.footer .--display-l { font-size: 5vw; }
.footer .--display-xs { font-size: 2.5vw; }
.footer .--display-xxs { margin-bottom: 0.833vw; }
.footer .wysiwyg { color: var(--grey); }

/* ═══════════════ GRADIENT ANIMATION ═══════════════ */
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.gradient-bg {
  background: linear-gradient(135deg, #ff3e60, #4688f0, #3bdd8f, #fec32d);
  background-size: 400% 400%;
  animation: gradient-shift 8s ease infinite;
}

/* ═══════════════ RESPONSIVE ═══════════════ */

/* ── DATA-MOBILE (M7): hidden on desktop, shown on mobile ── */
[data-mobile] { display: none; }

/* ── 768px BREAKPOINT (H1, H10) ── */
@media (max-width: 1100px) {
  :root { --font-size: 15px; }
  html { font-size: 100%; }

  .--display-xl { font-size: 62px; }
  .--display-l { font-size: 46px; }
  .--display-m { font-size: 36px; }
  .--display-s { font-size: 28px; }
  .--display-xs { font-size: 22px; }
  .--display-xxs { font-size: 18px; }
  .--text-xxl { font-size: 24px; }
  .--text-xl { font-size: 18px; }
  .--text-m { font-size: 16px; }
  .--text-s { font-size: 14px; }

  .container { width: calc(100% - 40px); }
  .component { padding: min(20vw, 80px) 0; }
  .component--composition { padding-bottom: 0; }
  .component--composition .cards { margin-top: 24px; margin-bottom: 0; }
  .contentblock { margin-bottom: 28px; }
  .actions--mt-2, .actions--mt-3 { margin-top: 24px; }

  .header { padding: 18px 0; position: absolute; }
  .header .main { background: transparent; border-radius: 0; padding: 0; box-shadow: none; }
  .header .columns { justify-content: center; height: auto; min-height: auto; }
  .header .columns .item:nth-child(2) { display: none; }
  .header .columns .item:last-child { display: none; }
  #menuHeader { display: none; }
  .trigger { display: none; }
  .header-cta { display: none; }
  .brand { height: 88px; min-height: 88px; }
  .header .brand__logo { filter: brightness(0) invert(1); }

  .component--hero { height: auto; min-height: 100svh; padding: 130px 0 60px; }
  .component--hero .contentblock--columns { grid-template-columns: 1fr; gap: 24px; }
  .component--hero .contentblock--columns .item:first-child { padding-left: 0; }
  .component--hero .title { font-size: 36px; }

  .services-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .service-card { padding: 24px; }
  .service-card__icon { font-size: 24px; }
  .component--services .title { font-size: 32px; }
  .component--cards .cards { flex-wrap: wrap; }
  .component--cards .card { flex: 1 1 45%; height: auto; border-radius: 0 30px 30px 0; }
  .component--cards .card .bottom { display: none; }
  .component--cards .card .title { font-size: 20px; line-height: 1.2; }
  .component--cards .hover { padding: 20px; }
  .component--cards .card:nth-child(1) { background: var(--blue-20); }
  .component--cards .card:nth-child(2) { background: var(--yellow-20); }
  .component--cards .card:nth-child(3) { background: var(--green-20); }
  .component--cards .card:nth-child(4) { background: var(--red-20); }

  .component--cards { padding-bottom: 30px; }
  .component--cards .contentblock .title { text-align: center; font-size: 32px; }
  .component--table-numbers { padding-top: 30px; }

  .table .row { grid-template-columns: 1fr auto auto; gap: 20px; padding: 16px 0; }
  .table .--display-xl { font-size: 48px; }
  .table .icon-cell { width: 40px; height: 40px; font-size: 16px; }
  .component--cases .title { font-size: 32px; }
  .component--cases .draggable { display: none; }
  .component--glasscards .columns--4-items { grid-template-columns: 1fr; }
  .component--glasscards .buttonarrow { display: none; }

  .component--team .title { font-size: 32px; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .team-card__avatar { width: 80px; height: 80px; }
  .team-card__photo { width: 80px; height: 80px; }

  .component--composition .columns { flex-direction: column; gap: 8px; }
  .component--composition .item--right { flex: 1 1 auto; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .comp-card--circle { display: none; }
  .comp-card--d-green, .comp-card--d-black { width: 30vw; height: 30vw; }
  .comp-card--d-red-wide { height: auto; min-height: 40vw; border-radius: 0 40px 40px 0; }
  .comp-card--corner-black, .comp-card--corner-blue { width: 45vw; height: auto; min-height: 30vw; }
  .footer { padding-top: 0; }
  .footer .columns { grid-template-columns: 1fr; gap: 20px; }
  .footer .brand__logo { height: 48px !important; }

  .button { font-size: 14px; height: 44px; border-radius: 22px; padding: 0 22px; }
  .buttonarrow { width: 40px; height: 40px; }
  .draggable .inner .item { width: 40vw; min-width: 40vw; }
  .card--center .image--cover { height: 25vw; }
  .card--center .image--cover .icon-wrap { font-size: 8vw; }
  .comp-card__arrow-icon { font-size: 24px; }
}

@media (max-width: 768px) {
  :root { --font-size: 14px; }
  html { font-size: 100%; }

  .--display-xl { font-size: 48px; }
  .--display-l { font-size: 36px; }
  .--display-m { font-size: 28px; }
  .--display-s { font-size: 24px; }
  .--display-xs { font-size: 20px; }
  .--display-xxs { font-size: 16px; }
  .--text-xxl { font-size: 22px; }
  .--text-xl { font-size: 17px; }
  .--text-m { font-size: 15px; }
  .--text-s { font-size: 14px; }

  .container { width: calc(100% - 32px); }
  .component { padding: 60px 0; }
  .component--composition { padding-bottom: 0; }
  .component--composition .cards { margin-top: 24px; margin-bottom: 0; }
  .contentblock { margin-bottom: 32px; }
  .actions--mt-2, .actions--mt-3 { margin-top: 24px; }

  .header { padding: 16px 0; position: absolute; }
  .header .main { background: transparent; border-radius: 0; padding: 0; box-shadow: none; }
  .header .columns { justify-content: center; height: auto; min-height: auto; }
  .header .columns .item:nth-child(2) { display: none; }
  .header .columns .item:last-child { display: none; }
  #menuHeader { display: none; }
  .trigger { display: none; }
  .header-cta { display: none; }
  .brand { height: 80px; min-height: 80px; }
  .header .brand__logo { filter: brightness(0) invert(1); }

  .component--hero { height: auto; min-height: 100svh; padding: 140px 0 50px; }
  .component--hero .contentblock--columns { grid-template-columns: 1fr; gap: 16px; }
  .component--hero .contentblock--columns .item:first-child { padding-left: 0; }
  .component--hero .title { font-size: 32px; }

  .services-grid { grid-template-columns: 1fr; gap: 12px; }
  .service-card { padding: 20px; border-radius: 12px; }
  .service-card__icon { font-size: 24px; margin-bottom: 12px; }
  .service-card__dot { width: 8px; height: 8px; top: 16px; right: 16px; }
  .component--services .title { font-size: 32px; }

  .component--cards .cards { flex-wrap: wrap; }
  .component--cards .card { flex: 1 1 100%; height: auto; min-height: auto; border-radius: 0 20px 20px 0; margin-bottom: 8px; border: none; }
  .component--cards .card .bottom { display: none; }
  .component--cards .card .title { font-size: 22px; line-height: 1.2; }
  .component--cards .hover { padding: 16px; }
  .component--cards .card:nth-child(1) { background: var(--blue-20); }
  .component--cards .card:nth-child(2) { background: var(--yellow-20); }
  .component--cards .card:nth-child(3) { background: var(--green-20); }
  .component--cards .card:nth-child(4) { background: var(--red-20); }

  .component--cards { padding-bottom: 30px; }
  .component--cards .contentblock .title { text-align: center; font-size: 32px; }
  .component--table-numbers { padding-top: 30px; }

  .table .row { grid-template-columns: 1fr auto auto; gap: 16px; padding: 12px 0; }
  .table .--display-xl { font-size: 36px; }
  .table .icon-cell { width: 28px; height: 28px; font-size: 11px; }
  .table .cell .title { font-size: 13px; }

  .component { padding: 50px 0; }
  .component--cases { padding: 50px 0; }
  .component--cases .title { font-size: 32px; }
  .component--cases .draggable { display: none; }

  .component--team .title { font-size: 32px; }
  .team-grid { grid-template-columns: 1fr; gap: 12px; }
  .team-card { padding: 20px 16px; }
  .team-card__avatar { width: 60px; height: 60px; }
  .team-card__photo { width: 60px; height: 60px; }

  .component--composition .columns { flex-direction: column; gap: 8px; }
  .component--composition .item--right { flex: 1 1 auto; flex-direction: column; gap: 8px; }
  .component--composition .item--left { gap: 8px; }
  .comp-card--circle { display: none; }
  .comp-card--d-green, .comp-card--d-black, .comp-card--circle {
    width: 100%; height: auto; min-height: 22vw; flex: 0 0 auto;
  }
  .comp-card--d-red-wide { height: auto; min-height: 40vw; border-radius: 0 30px 30px 0; padding: 24px; }
  .comp-card--corner-black, .comp-card--corner-blue { width: 100%; height: auto; min-height: 25vw; }
  .comp-card__arrow-icon { font-size: 20px; }
  .wysiwyg--narrow { max-width: 100%; }

  .footer { padding-top: 0; }
  .footer .columns { grid-template-columns: 1fr; gap: 20px; }
  .footer .menu-legal { flex-direction: column; gap: 8px; }
  .footer .brand__logo { height: 40px !important; }
  .footer .--display-l { font-size: 36px; }

  .button { font-size: 13px; height: 44px; border-radius: 22px; padding: 0 20px; }
  .buttonarrow { width: 40px; height: 40px; }
  .draggable .inner .item { width: 50vw; min-width: 50vw; }

  [data-mobile] { display: block; }
}

/* ── LARGE SCREEN CONSTRAINTS (M8) ── */
@media (min-width: 1800px) {
  .comp-card--d-green,
  .comp-card--d-black { border-radius: 0 min(20vw, 144px) min(20vw, 144px) 0; }
  .comp-card--d-red-wide { border-radius: 0 min(32.5vw, 256px) min(32.5vw, 256px) 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .--split .word { opacity: 1 !important; transform: none !important; }
}

/* ── PRINT STYLES (L3) ── */
@media print {
  *, *::before, *::after {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  .header, .footer, .hero-canvas, .gradient-bg, .draggable, .carousel { display: none !important; }
  .component { padding: 1cm 0; break-inside: avoid; }
  .component--hero { height: auto; min-height: auto; }
  body { font-size: 12pt; line-height: 1.5; }
  a { text-decoration: underline; }
  img, svg { max-width: 100% !important; page-break-inside: avoid; }
}
