/* Q4Business — shared styles for index.html and formations.html.
   Plain CSS, no build step. Colours and spacing live in the tokens below. */

:root {
  --ink: #142B3F;
  --ink-soft: #4A5C69;
  --ink-mute: #6B7C88;
  --paper: #FFFFFF;
  --mist: #F4F6F7;
  --line: #E1E6E8;
  --line-strong: #C9D5DE;
  --accent: #246B8F;
  --accent-deep: #1B516C;
  --accent-wash: #DFEBF1;
  --navy-2: #1C3650;
  --navy-3: #2A4257;
  --on-navy-soft: #A9BCCB;

  /* product tints (one per platform, from the brand mascots) */
  --qaldara: #246B8F;   --qaldara-wash: #DFEBF1;
  --qalixia: #1F7B76;   --qalixia-wash: #DEF2EF;
  --qaliproj: #8A5A14;  --qaliproj-wash: #FBEBD3;
  --qalinov: #503879;   --qalinov-wash: #EAE3F3;

  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, monospace;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --chapter: clamp(88px, 11vw, 160px);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(20, 43, 63, .05), 0 12px 32px -12px rgba(20, 43, 63, .18);
  --shadow-lift: 0 2px 4px rgba(20, 43, 63, .06), 0 28px 56px -20px rgba(20, 43, 63, .28);
  --z-header: 50;
  --z-grain: 60;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.navy :focus-visible { outline-color: #FFFFFF; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em.serif, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
[id] { scroll-margin-top: 96px; }
::selection { background: var(--accent); color: #FFFFFF; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #FFFFFF; border-radius: var(--r-sm); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; color: #FFFFFF; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.chapter { padding-block: var(--chapter) calc(var(--chapter) + 8px); position: relative; }
.mist { background: var(--mist); }
.navy { background: var(--ink); color: #FFFFFF; }
.navy a:not(.btn) { color: #FFFFFF; }

/* subtle grain so flat fills do not feel sterile */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: var(--z-grain); opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- small type ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.01em;
  color: var(--accent); margin-bottom: 22px;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.navy .kicker { color: #9FD8D3; }
.lede { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--ink-soft); max-width: 58ch; }
.navy .lede { color: var(--on-navy-soft); }
.h2 { font-size: clamp(34px, 4.6vw, 60px); }
.h2 .serif { color: var(--accent); }
.navy .h2 .serif { color: #9FD8D3; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #FFFFFF;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg); font: 600 16px/1 var(--sans); text-decoration: none;
  cursor: pointer; white-space: nowrap; touch-action: manipulation;
  transition: transform .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease);
}
.btn:hover { color: var(--fg); background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(20, 43, 63, .55); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { --fg: var(--ink); background: var(--paper); border-color: var(--ink); box-shadow: none; }
.btn-light { --bg: #FFFFFF; --fg: var(--ink); }
.btn-light:hover { --fg: var(--ink); background: #DFEBF1; }
.btn-line-light { --bg: transparent; --fg: #FFFFFF; border-color: rgba(255,255,255,.35); }
.btn-line-light:hover { --fg: var(--ink); background: #FFFFFF; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--ink); }
.link-arrow span { transition: transform .3s var(--ease); }
.link-arrow:hover span, a:hover > .link-arrow span { transform: translateX(5px); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: var(--z-header); padding: 14px var(--gutter) 0; pointer-events: none; }
.nav-shell {
  pointer-events: auto; max-width: calc(var(--wrap) - 2 * var(--gutter) + 40px); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 8px 8px 8px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, .78); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid rgba(20, 43, 63, .08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 8px 30px -18px rgba(20, 43, 63, .35);
  transition: box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.site-header.scrolled .nav-shell { background: rgba(255, 255, 255, .92); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 14px 40px -18px rgba(20, 43, 63, .45); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand img { width: 34px; height: 34px; }
.brand span { font-size: 21px; font-weight: 800; letter-spacing: -0.035em; }
.brand span b { font-weight: 300; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  position: relative; padding: 9px 13px; border-radius: 999px; font-size: 15px; font-weight: 500;
  color: var(--ink); text-decoration: none; transition: background-color .2s var(--ease);
}
.nav-links a:hover { background: var(--mist); }
.nav-links a[aria-current="page"] { background: var(--accent-wash); color: var(--accent-deep); }
.nav-end { display: flex; align-items: center; gap: 10px; }
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: 600 13px/1 var(--mono); cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: var(--line-strong); background: var(--mist); }
.lang-btn img, .lang-menu img { width: 22px; height: 15px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(20,43,63,.12); object-fit: cover; }
.lang-btn .chev { width: 11px; height: 8px; color: var(--ink-mute); transition: transform .25s var(--ease); }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px; padding: 6px; z-index: 5;
  background: var(--paper); border: 1px solid rgba(20,43,63,.08); border-radius: var(--r-md); box-shadow: var(--shadow-lift);
  transform-origin: top right; animation: menu-in .18s var(--ease);
}
.lang-menu[hidden] { display: none; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.lang-menu a, .lang-menu .soon { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: 15px; color: var(--ink); text-decoration: none; }
.lang-menu a { font-weight: 600; background: var(--accent-wash); }
.lang-menu a:hover { color: var(--ink); }
.lang-menu .tick { width: 16px; height: 16px; margin-left: auto; color: var(--accent); }
.lang-menu .soon { color: var(--ink-mute); cursor: default; }
.lang-menu .soon img { filter: saturate(.55); opacity: .8; }
.lang-menu .soon small { margin-left: auto; font: 500 11px/1 var(--mono); color: var(--ink-mute); padding: 4px 6px; border-radius: 5px; background: var(--mist); }
.mobile-panel .lang-menu { right: auto; left: 0; top: auto; bottom: calc(100% + 8px); transform-origin: bottom left; }
.menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 999px; border: 0; background: var(--ink); color: #FFFFFF;
  cursor: pointer; align-items: center; justify-content: center; touch-action: manipulation;
}
.menu-btn svg { width: 20px; height: 20px; }
.menu-btn .x { display: none; }
.menu-open .menu-btn .x { display: block; }
.menu-open .menu-btn .bars { display: none; }
.mobile-panel { display: none; }

@media (max-width: 1080px) {
  .nav-links, .nav-end .lang, .nav-end .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-panel {
    pointer-events: auto; display: block; max-width: 640px; margin: 8px auto 0; padding: 10px; border-radius: var(--r-lg);
    background: rgba(255,255,255,.97); border: 1px solid rgba(20, 43, 63, .08); box-shadow: var(--shadow-lift);
    overscroll-behavior: contain;
  }
  .mobile-panel[hidden] { display: none; }
  .mobile-panel nav a { display: block; padding: 14px 14px; border-radius: var(--r-md); font-size: 19px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
  .mobile-panel nav a:hover, .mobile-panel nav a[aria-current="page"] { background: var(--mist); }
  .mobile-panel .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 10px 6px; border-top: 1px solid var(--line); margin-top: 8px; flex-wrap: wrap; }
}

/* ---------- hero ---------- */
.hero { position: relative; margin-top: -78px; padding-top: 150px; background: var(--mist); overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: radial-gradient(rgba(20,43,63,.11) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 20%, transparent 75%);
}
.hero-glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .45; pointer-events: none; }
.hero-glow.g1 { width: 420px; height: 420px; right: 2%; top: 12%; background: #BFE3DF; }
.hero-glow.g2 { width: 360px; height: 360px; right: 26%; bottom: -10%; background: #DCD0EE; }
.hero-glow.g3 { width: 300px; height: 300px; right: -6%; bottom: 0; background: #F6DDB4; opacity: .4; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: end; }
.hero-title { grid-column: 1 / -1; }
.hero-copy { padding-bottom: clamp(56px, 8vw, 112px); }
.hero h1 { font-size: clamp(44px, 6.4vw, 92px); font-weight: 750; letter-spacing: -0.05em; line-height: .98; }
.hero h1 .serif { display: block; color: var(--accent); letter-spacing: -0.02em; font-size: 1.04em; line-height: 1.02; }
.hero .lede { margin-top: 0; }
.hero-grid { row-gap: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.hero-cast { position: relative; height: clamp(320px, 32vw, 440px); margin-top: -60px; }
.hero-cast img { position: absolute; bottom: 0; height: auto; filter: drop-shadow(0 18px 18px rgba(20,43,63,.14)); will-change: transform; }
.hero-cast .m-qal   { width: 34%; left: 0;   bottom: -2%; }
.hero-cast .m-lixi  { width: 27%; left: 26%; bottom: 6%; }
.hero-cast .m-qamar { width: 30%; left: 40%; bottom: 52%; }
.hero-cast .m-proj  { width: 26%; left: 52%; bottom: 3%; }
.hero-cast .m-novi  { width: 30%; left: 72%; bottom: 9%; }
.cast-shadow { position: absolute; left: 4%; right: 0; bottom: -10px; height: 26px; background: radial-gradient(ellipse at center, rgba(20,43,63,.16), transparent 70%); }

.stats { position: relative; background: var(--paper); border-top: 1px solid var(--line); }
.stats ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats li { padding: 38px 28px 40px; border-left: 1px solid var(--line); }
.stats li:first-child { border-left: 0; padding-left: 0; }
.stats strong { display: block; font-size: clamp(40px, 4.4vw, 60px); font-weight: 750; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats strong small { font-size: .5em; letter-spacing: -0.02em; font-weight: 600; margin-left: 4px; }
.stats li > span { display: block; margin-top: 12px; font-size: 15px; color: var(--ink-soft); max-width: 26ch; line-height: 1.45; }

/* ---------- heritage statement ---------- */
.statement { padding-block: clamp(80px, 10vw, 140px); }
.statement .when { font-family: var(--mono); font-size: 13px; color: #9FD8D3; display: flex; gap: 14px; align-items: center; margin-bottom: 28px; }
.statement .when::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.statement p { font-size: clamp(28px, 3.6vw, 50px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.14; max-width: 24em; }
.statement p .w { opacity: 1; }
.statement p .serif { color: #9FD8D3; }

/* ---------- levers (editorial index) ---------- */
.section-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head .lede { justify-self: end; }
.section-head > div:only-child { grid-column: 1 / -1; }
.section-head .h2 { max-width: 15em; }
.levers { border-top: 1px solid var(--line); }
.lever {
  display: grid; grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1fr) 56px; gap: 32px; align-items: center;
  padding: 38px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; position: relative;
}
.lever::before { content: ""; position: absolute; inset: 0 calc(-1 * var(--gutter)); background: var(--mist); opacity: 0; transition: opacity .35s var(--ease); z-index: -1; }
.lever:hover { color: var(--ink); }
.lever:hover::before { opacity: 1; }
.lever .n { font-family: var(--mono); font-size: 14px; color: var(--ink-mute); }
.lever h3 { font-size: clamp(26px, 2.8vw, 40px); font-weight: 650; transition: transform .4s var(--ease); }
.lever:hover h3 { transform: translateX(8px); }
.lever p { color: var(--ink-soft); font-size: 16px; max-width: 48ch; }
.lever .go { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease); }
.lever:hover .go { background: var(--ink); color: #FFFFFF; border-color: var(--ink); transform: rotate(-45deg); }

/* ---------- consulting (sticky split) ---------- */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.sticky { position: sticky; top: 120px; }
.sticky .lede { margin-top: 26px; }
.axes { display: grid; gap: 14px; }
.axis {
  display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 22px; padding: 30px 30px 32px; border-radius: var(--r-lg);
  background: var(--paper); border: 1px solid rgba(20,43,63,.06); box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.axis:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.axis .code { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--accent); width: 60px; height: 60px; border-radius: 16px; background: var(--accent-wash); display: grid; place-items: center; }
.axis h3 { font-size: 24px; font-weight: 650; letter-spacing: -0.025em; margin-bottom: 14px; }
.axis li { position: relative; padding-left: 20px; color: var(--ink-soft); font-size: 16px; line-height: 1.5; }
.axis li + li { margin-top: 7px; }
.axis li::before { content: ""; position: absolute; left: 0; top: .68em; width: 8px; height: 1px; background: var(--accent); }

/* ---------- ISO ---------- */
.iso-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.iso-grid .lede { margin-top: 24px; }
.standards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 36px; }
.std { grid-column: span 2; padding: 18px 18px 20px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--paper); transition: border-color .25s var(--ease), transform .3s var(--ease); }
.std:nth-child(4), .std:nth-child(5) { grid-column: span 3; }
.std:hover { border-color: var(--accent); transform: translateY(-2px); }
.std b { display: block; font-size: 19px; letter-spacing: -0.02em; }
.std span { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-soft); line-height: 1.4; }
.proof { margin-top: 22px; padding: 22px 24px; border-radius: var(--r-md); background: var(--qalixia-wash); color: #154F4C; font-size: 15.5px; line-height: 1.55; display: grid; grid-template-columns: 28px 1fr; gap: 14px; }
.proof svg { width: 24px; height: 24px; color: var(--qalixia); margin-top: 1px; }
.steps-card { position: relative; padding: 34px 34px 36px; border-radius: var(--r-lg); background: var(--ink); color: #FFFFFF; overflow: hidden; }
.steps-card header { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.steps-card h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.025em; }
.steps-card header img { width: 140px; margin: -18px -8px -6px 0; }
.steps { position: relative; }
.steps .rail { position: absolute; left: 17px; top: 20px; bottom: 20px; width: 2px; background: rgba(255,255,255,.14); }
.steps .rail i { position: absolute; inset: 0; background: #9FD8D3; transform-origin: top; }
.steps li { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 18px; align-items: center; padding: 11px 0; font-size: 17px; }
.steps li span:first-child { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-2); border: 1px solid rgba(255,255,255,.18); font-family: var(--mono); font-size: 13px; position: relative; z-index: 1; }
.steps li:last-child span:first-child { background: #9FD8D3; color: var(--ink); border-color: #9FD8D3; font-weight: 600; }

/* ---------- formation (navy) ---------- */
.courses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-lg); overflow: hidden; }
.course { background: var(--ink); padding: 30px 30px 34px; display: flex; flex-direction: column; gap: 10px; min-height: 240px; transition: background-color .35s var(--ease); }
.course:hover { background: var(--navy-2); }
.course .top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: auto; }
.course .code { font-size: clamp(30px, 3vw, 42px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.course .dur { font-family: var(--mono); font-size: 12.5px; color: #9FD8D3; padding: 5px 9px; border: 1px solid rgba(159,216,211,.35); border-radius: 6px; white-space: nowrap; }
.course h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin-top: 28px; }
.course p { color: var(--on-navy-soft); font-size: 15px; line-height: 1.5; }
.modes { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 30px; color: var(--on-navy-soft); font-size: 15px; }
.modes span { display: inline-flex; align-items: center; gap: 10px; }
.modes span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #9FD8D3; }

/* ---------- platforms bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(300px, auto); grid-auto-flow: dense; gap: 14px; }
.tile { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; background: var(--wash); color: var(--ink); isolation: isolate; }
.tile.big { grid-column: span 2; grid-row: span 2; padding: 40px; }
.tile .art { position: absolute; z-index: -1; right: -4%; bottom: -10%; width: 36%; transform: translateY(var(--py, 0%)); transition: transform .8s var(--ease); }
.tile.big .art { width: 46%; right: 2%; bottom: -4%; }
.tile:hover .art { transform: translateY(calc(var(--py, 0%) - 8px)) rotate(-3deg) scale(1.04); }
.tile .name { font-size: 28px; font-weight: 750; letter-spacing: -0.04em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tile.big .name { font-size: clamp(40px, 4.4vw, 60px); }
.tile .name b { color: var(--tint); }
.badge { font: 500 11.5px/1 var(--mono); letter-spacing: .02em; padding: 6px 8px; border-radius: 5px; background: rgba(255,255,255,.75); color: var(--tint); }
.badge.live { background: var(--tint); color: #FFFFFF; }
.tile .what { margin-top: 10px; font-weight: 600; font-size: 16px; max-width: 22ch; }
.tile.big .what { font-size: 22px; max-width: 20ch; letter-spacing: -0.02em; }
.tile p { margin-top: 8px; font-size: 15px; color: var(--ink-soft); max-width: 24ch; line-height: 1.5; }
.tile.big p { font-size: 17px; max-width: 30ch; }
.tile .link-arrow { margin-top: auto; padding-top: 22px; font-size: 15px; color: var(--tint); max-width: 66%; }
.tile.big .link-arrow { max-width: none; }
.tile .link-arrow:hover { color: var(--ink); }
.t-qaldara { --wash: var(--qaldara-wash); --tint: var(--qaldara); }
.t-qalixia { --wash: var(--qalixia-wash); --tint: var(--qalixia); }
.t-qaliproj { --wash: var(--qaliproj-wash); --tint: var(--qaliproj); }
.t-qalinov { --wash: var(--qalinov-wash); --tint: var(--qalinov); }
.t-qamara { --wash: var(--ink); --tint: #9FD8D3; color: #FFFFFF; }
.t-qamara p { color: var(--on-navy-soft); }
.t-qamara .art { width: 34%; right: -3%; bottom: auto; top: -4%; }
.t-qamara .what { max-width: 14ch; }

/* ---------- LAB4B ---------- */
.lab { background: var(--qalinov-wash); overflow: hidden; }
.lab .kicker { color: var(--qalinov); }
.lab .h2 .serif { color: var(--qalinov); }
.lab-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 90px); align-items: end; }
.lab-grid .lede { margin-top: 22px; }
.lab-grid .count { margin-top: 26px; font-size: 18px; }
.lab-grid .count b { color: var(--qalinov); }
.lab-grid .btn { margin-top: 32px; --bg: var(--qalinov); }
.lab-grid .btn:hover { background: #3E2A60; }
.stairs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; }
.stair { background: var(--paper); border-radius: var(--r-md) var(--r-md) 0 0; padding: 22px 18px 26px; box-shadow: 0 20px 40px -26px rgba(80,56,121,.6); display: flex; flex-direction: column; transition: transform .4s var(--ease); }
.stair:hover { transform: translateY(-6px); }
.stair:nth-child(1) { min-height: 210px; }
.stair:nth-child(2) { min-height: 270px; }
.stair:nth-child(3) { min-height: 330px; }
.stair:nth-child(4) { min-height: 390px; background: var(--qalinov); color: #FFFFFF; }
.stair .lv { font: 500 12.5px/1 var(--mono); color: var(--qalinov); }
.stair:nth-child(4) .lv { color: #D7C9EE; }
.stair h3 { margin-top: auto; font-size: 20px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; }
.stair p { margin-top: 8px; font-size: 14.5px; line-height: 1.45; color: var(--ink-soft); }
.stair:nth-child(4) p { color: #E3DAF2; }

/* ---------- references ---------- */
.cases { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 14px; }
.case { padding: 30px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--paper); display: flex; flex-direction: column; transition: border-color .3s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease); }
.case:hover { border-color: transparent; transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.case:first-child { background: var(--mist); border-color: transparent; }
.case .who { font: 500 12.5px/1.4 var(--mono); color: var(--accent); }
.case h3 { margin-top: 18px; font-size: 23px; font-weight: 650; letter-spacing: -0.025em; line-height: 1.15; }
.case:first-child h3 { font-size: clamp(26px, 2.4vw, 32px); }
.case p { margin-top: 14px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.55; }
.clients { margin-top: clamp(56px, 7vw, 88px); display: grid; gap: 4px; }
.client-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.client-row h3 { font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--ink-soft); line-height: 1.35; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee var(--dur, 40s) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; flex-shrink: 0; }
.marquee li { white-space: nowrap; padding: 0 22px; font-size: clamp(18px, 1.7vw, 23px); font-weight: 600; letter-spacing: -0.025em; display: flex; align-items: center; gap: 44px; }
.marquee li::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); margin-left: 22px; }
.marquee li.logo img { height: 32px; width: auto; max-width: none; }
.marquee li.logo.sq img { height: 42px; }
.marquee li.logo.wide img { height: 24px; }
.client-row:nth-child(2) .marquee-track { animation-direction: reverse; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; width: auto; }
  .marquee ul { flex-wrap: wrap; row-gap: 8px; }
  .marquee ul[aria-hidden] { display: none; }
}

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.founder { margin-top: 36px; display: flex; align-items: center; gap: 18px; }
.founder .portrait { width: 84px; height: 84px; border-radius: 24px; background: var(--ink); color: #FFFFFF; display: grid; place-items: center; font-size: 26px; font-weight: 700; letter-spacing: -0.04em; flex-shrink: 0; }
.founder b { display: block; font-size: 21px; letter-spacing: -0.02em; }
.founder span { display: block; color: var(--ink-soft); font-size: 15px; margin-top: 2px; }
.creds { margin-top: 28px; border-top: 1px solid var(--line); }
.creds li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--ink-soft); display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.creds li::before { content: "—"; color: var(--accent); }
.story { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; letter-spacing: -0.012em; color: var(--ink); }
.values { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.values div { background: var(--paper); padding: 24px 24px 26px; }
.values b { font-size: 18px; letter-spacing: -0.02em; }
.values p { margin-top: 6px; color: var(--ink-soft); font-size: 15px; line-height: 1.5; }
.langs-note { margin-top: 22px; font-size: 15px; color: var(--ink-soft); }

/* ---------- contact ---------- */
.contact { overflow: hidden; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact h2 { font-size: clamp(44px, 6vw, 84px); letter-spacing: -0.05em; line-height: .98; }
.contact .lede { margin-top: 26px; }
.coords { margin-top: 34px; display: grid; gap: 2px; }
.coords > * { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12); color: #FFFFFF; font-size: 17px; text-decoration: none; }
.coords > a:hover { color: #9FD8D3; }
.coords svg { width: 20px; height: 20px; color: #9FD8D3; flex-shrink: 0; }
.contact .novi { width: 230px; margin-top: 30px; }
.form-card { background: var(--paper); color: var(--ink); border-radius: var(--r-lg); padding: clamp(24px, 3.4vw, 40px); box-shadow: 0 40px 80px -40px rgba(0,0,0,.55); }
.form-card h3 { font-size: 22px; letter-spacing: -0.02em; font-weight: 650; margin-bottom: 22px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field label small { font-weight: 400; color: var(--ink-mute); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--sans); color: var(--ink); background: var(--mist);
  border: 1px solid transparent; border-radius: 12px; padding: 13px 14px;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23142B3F' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-strong); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--paper); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(36,107,143,.14); }
.field[data-invalid] input, .field[data-invalid] textarea { border-color: #B4372F; background: #FDF3F2; }
.field .err { font-size: 13.5px; color: #B4372F; min-height: 0; }
.field .err:empty { display: none; }
.form-foot { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form-foot p { font-size: 13.5px; color: var(--ink-mute); max-width: 34ch; line-height: 1.45; }
.form-status { margin-top: 14px; font-size: 14.5px; color: var(--qalixia); }
.form-status:empty { display: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--on-navy-soft); padding: 0 0 36px; }
.footer-top { border-top: 1px solid rgba(255,255,255,.1); padding-top: 64px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: #FFFFFF; }
.site-footer .brand:hover { color: #FFFFFF; }
.footer-top p { margin-top: 16px; font-size: 15px; line-height: 1.55; max-width: 34ch; }
.footer-top .motto { margin-top: 14px; font-family: var(--serif); font-style: italic; font-size: 21px; color: #FFFFFF; }
.footer-col h3 { font: 500 13px/1 var(--mono); letter-spacing: 0; color: #FFFFFF; margin-bottom: 18px; }
.footer-col a, .footer-col span { display: block; padding: 5px 0; font-size: 15px; color: var(--on-navy-soft); text-decoration: none; }
.footer-col a:hover { color: #FFFFFF; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #7F95A6; }
.footer-word { font-size: clamp(64px, 15vw, 220px); font-weight: 800; letter-spacing: -0.06em; line-height: .8; color: rgba(255,255,255,.06); margin-top: 48px; user-select: none; white-space: nowrap; overflow: hidden; }
.footer-word b { font-weight: 300; }

/* ---------- formations page ---------- */
.f-hero { padding-bottom: 0; }
.f-hero .hero-grid { align-items: center; }
.f-hero .hero-copy { padding-bottom: clamp(48px, 6vw, 88px); }
.f-hero .hero-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, .5fr); }
.f-hero h1 { font-size: clamp(40px, 5.2vw, 76px); }
.f-hero .lede { margin-top: 28px; }
.f-hero .qamar { width: min(360px, 80%); margin-left: auto; margin-bottom: -8px; filter: drop-shadow(0 22px 24px rgba(20,43,63,.16)); }
.cat-nav { position: sticky; top: 84px; z-index: 20; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.cat-nav .wrap { display: flex; gap: 6px; overflow-x: auto; padding-block: 12px; scrollbar-width: none; }
.cat-nav .wrap::-webkit-scrollbar { display: none; }
.cat-nav a { flex-shrink: 0; padding: 9px 15px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink); text-decoration: none; border: 1px solid var(--line); transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.cat-nav a:hover { border-color: var(--ink); }
.cat-nav a.active { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.cat-nav a span { font-family: var(--mono); font-size: 12px; opacity: .6; margin-left: 6px; }
.cat { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(32px, 5vw, 80px); padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); scroll-margin-top: 150px; }
.cat:first-child { border-top: 0; }
.cat-head { position: sticky; top: 170px; align-self: start; }
.cat-head .idx { font: 500 13px/1 var(--mono); color: var(--accent); }
.cat-head h2 { margin-top: 14px; font-size: clamp(28px, 3vw, 40px); font-weight: 700; }
.cat-head p { margin-top: 12px; font-size: 15px; color: var(--ink-mute); }
.programs { display: grid; gap: 12px; }
.program { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 28px; align-items: center; padding: 26px 28px; border-radius: var(--r-lg); background: var(--mist); border: 1px solid transparent; transition: background-color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease); }
.program:hover { background: var(--paper); border-color: var(--line); box-shadow: var(--shadow); transform: translateY(-2px); }
.program .meta { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.tag { font: 500 12px/1 var(--mono); padding: 6px 8px; border-radius: 5px; }
.tag.cert { background: var(--ink); color: #FFFFFF; }
.tag.qual { background: var(--accent-wash); color: var(--accent-deep); }
.tag.dur { background: transparent; color: var(--ink-soft); border: 1px solid var(--line-strong); }
.program h3 { font-size: 21px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; }
.program p { margin-top: 6px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.5; max-width: 56ch; }
.program .acts { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.modes-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,.12); border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgba(255,255,255,.12); margin-top: clamp(40px, 5vw, 64px); }
.modes-grid div { background: var(--ink); padding: 30px 26px 34px; transition: background-color .3s var(--ease); }
.modes-grid div:hover { background: var(--navy-2); }
.modes-grid .i { font: 500 13px/1 var(--mono); color: #9FD8D3; }
.modes-grid b { display: block; margin-top: 40px; font-size: 22px; letter-spacing: -0.025em; color: #FFFFFF; }
.modes-grid p { margin-top: 8px; color: var(--on-navy-soft); font-size: 15px; line-height: 1.5; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* ---------- reveal (only when motion script is active) ---------- */
.motion [data-reveal] { opacity: 0; transform: translateY(28px); }
.motion .hero [data-hero] { opacity: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid, .split, .iso-grid, .lab-grid, .about-grid, .contact-grid, .section-head { grid-template-columns: minmax(0, 1fr); }
  .section-head .lede { justify-self: start; }
  .sticky { position: static; }
  .hero-cast { height: clamp(280px, 60vw, 420px); max-width: 640px; margin-top: 0; }
  .hero-copy { padding-bottom: 0; }
  .courses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile.big { grid-row: span 1; min-height: 420px; }
  .cases { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .cat { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .cat-head { position: static; }
  .modes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f-hero .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .f-hero .qamar { margin: 0 auto -8px; width: min(280px, 70%); }
  .stats ul { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .btn { white-space: normal; text-align: center; padding-block: 12px; line-height: 1.25; }
  .hero { padding-top: 128px; }
  .hero h1 { font-size: clamp(40px, 11.5vw, 60px); }
  .hero-cta .btn { flex: 1 1 100%; }
  .stats li { padding: 26px 16px 28px; }
  .stats li:nth-child(odd) { padding-left: 0; }
  .lever { grid-template-columns: 1fr 44px; gap: 10px 16px; padding: 28px 0; }
  .lever .n { grid-column: 1 / -1; }
  .lever p { grid-column: 1 / 2; }
  .lever .go { grid-row: 2; grid-column: 2; width: 44px; height: 44px; }
  .axis { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
  .standards { grid-template-columns: 1fr 1fr; }
  .std, .std:nth-child(4), .std:nth-child(5) { grid-column: span 1; }
  .std:nth-child(5) { grid-column: 1 / -1; }
  .steps-card { padding: 26px 22px; }
  .steps-card header img { width: 110px; }
  .courses, .bento { grid-template-columns: minmax(0, 1fr); }
  .tile, .tile.big { grid-column: auto; min-height: 300px; padding: 28px; }
  .tile.big { min-height: 440px; }
  .tile.big .art { width: 40%; }
  .tile .art { width: 30%; }
  .tile .link-arrow { max-width: none; }
  .course { min-height: 0; }
  .course h3 { margin-top: 18px; }
  .stairs { grid-template-columns: 1fr 1fr; }
  .stair:nth-child(n) { min-height: 190px; border-radius: var(--r-md); }
  .client-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .values { grid-template-columns: 1fr; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .program { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .program .acts { flex-direction: row; flex-wrap: wrap; }
  .modes-grid { grid-template-columns: minmax(0, 1fr); }
  .cat-nav { top: 76px; }
  .contact .novi { width: 170px; }
}
