/* =========================================================
   COVALTRIS — Style
   Direction : "clinical blueprint on frosted paper"
   ========================================================= */

:root {
  /* Colors */
  --color-canvas: #f5f5f5;
  --color-paper: #ffffff;
  --color-surface-alt: #fafafa;
  --color-ink: #0a0a0a;
  --color-ink-soft: #171717;
  --color-mid-gray: #737373;
  --color-hairline: #e5e5e5;
  --color-ember: #e7000b;

  /* Type */
  --font-geist: 'Geist', 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Radius */
  --radius-buttons: 18px;
  --radius-cards: 24px;
  --radius-nested: 10px;
  --radius-small: 6px;

  /* Elevation */
  --shadow-card: 0 0 0 1px rgba(23, 23, 23, .05), 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);

  /* Layout */
  --page-max-width: 1280px;
  --gutter: 24px;
  --section-y: clamp(88px, 11vw, 160px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--color-canvas);
  color: var(--color-ink);
  font-family: var(--font-geist);
  font-size: 14px;
  line-height: 1.43;
  font-feature-settings: "ss01" on, "cv11" on;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: block; }
::selection { background: var(--color-ink); color: var(--color-paper); }
:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--page-max-width); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--font-mono); font-feature-settings: normal; }
.muted { color: var(--color-mid-gray); }
.nw { white-space: nowrap; }
.ember { color: var(--color-ember); }
.i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.caption {
  font-size: 12px; line-height: 1.33; letter-spacing: .05em; text-transform: uppercase;
  color: var(--color-mid-gray); font-weight: 500;
}

/* Split text helpers */
.w { display: inline-block; white-space: nowrap; }
.c { display: inline-block; will-change: transform; }
.wm { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.wm > .wi { display: inline-block; will-change: transform; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px;
  border-radius: var(--radius-buttons);
  font-size: 14px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  will-change: transform;
}
.btn--sm { height: 36px; padding: 0 12px; font-size: 13px; }
.btn--lg { height: 48px; padding: 0 20px; font-size: 15px; }
.btn--primary { background: var(--color-ink); color: #fafafa; }
.btn--primary:hover { background: #262626; }
.btn--ghost { background: var(--color-canvas); color: var(--color-ink); }
.btn--ghost:hover { background: #ebebeb; }
.btn--outline { background: rgba(255, 255, 255, .7); color: var(--color-ink); border: 1px solid var(--color-hairline); backdrop-filter: blur(8px); }
.btn--outline:hover { background: var(--color-paper); border-color: #d4d4d4; }
.btn .i { transition: transform .5s var(--ease); }
.btn:hover .i { transform: translateX(3px); }

/* Rolling label micro-interaction */
.btn__label { position: relative; display: inline-block; overflow: hidden; line-height: 1.3; height: 1.3em; }
.btn__label > .roll { display: block; text-shadow: 0 1.3em currentColor; transition: transform .55s var(--ease); }
.btn:hover .btn__label > .roll { transform: translateY(-1.3em); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 22px; padding: 2px 8px; border-radius: var(--radius-buttons);
  font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap;
}
.badge--md { height: 32px; padding: 0 14px; font-size: 13px; }
.badge--solid { background: var(--color-ink-soft); color: #fafafa; }
.badge--soft { background: var(--color-canvas); color: var(--color-ink-soft); }
.badge--outline { border: 1px solid var(--color-hairline); color: var(--color-ink); background: transparent; }
.badge--paper { background: var(--color-paper); color: var(--color-ink); }
.badge--dark { border: 1px solid rgba(255, 255, 255, .14); color: #e5e5e5; height: 32px; padding: 0 14px; font-size: 13px; }

.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--color-ink); }
.dot--ember { background: var(--color-ember); }

/* ---------- Card ---------- */
.card {
  background: var(--color-paper);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-cards);
  box-shadow: var(--shadow-card);
}

/* ---------- Section heads ---------- */
.section { padding: var(--section-y) 0; position: relative; }
.section--tight { padding: calc(var(--section-y) * .7) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase;
  color: var(--color-mid-gray);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--color-ember); }
.eyebrow--dark { color: #a3a3a3; }

.h2 {
  font-size: clamp(34px, 5vw, 64px); line-height: 1.02; letter-spacing: -.05em; font-weight: 600;
  margin-top: 20px; max-width: 16ch; text-wrap: balance;
}
.shead { margin-bottom: clamp(40px, 6vw, 72px); }
.shead__p { margin-top: 20px; font-size: 18px; line-height: 1.56; color: var(--color-mid-gray); max-width: 46ch; }
.shead--split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.shead--split .shead__p { margin-top: 0; }
.shead--center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.shead--center .h2 { max-width: 20ch; }

/* =========================================================
   LOADER
   ========================================================= */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--color-paper);
  clip-path: inset(0 0 0 0);
  display: flex;
}
.loader__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--color-hairline) 1px, transparent 1px),
    linear-gradient(to bottom, var(--color-hairline) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, #000 10%, transparent 75%);
          mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, #000 10%, transparent 75%);
  opacity: .7;
}
.loader__inner {
  position: relative; width: 100%; max-width: var(--page-max-width); margin: 0 auto;
  padding: 32px var(--gutter); display: flex; flex-direction: column; justify-content: space-between;
}
.loader__top, .loader__bottom { display: flex; justify-content: space-between; font-size: 12px; color: var(--color-mid-gray); letter-spacing: .02em; }
.loader__brand { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 2vw, 24px); }
.loader__mark { width: clamp(40px, 6vw, 72px); height: clamp(40px, 6vw, 72px); color: var(--color-ink); }
.loader__word {
  font-size: clamp(44px, 10vw, 148px); font-weight: 600; letter-spacing: -.05em; line-height: 1;
  display: inline-block; overflow: hidden; padding: .06em 0; opacity: 0;
}
.loader__count { color: var(--color-ink); font-size: 14px; }
.loader__bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 20px; height: 1px; background: var(--color-hairline); }
.loader__bar span { position: absolute; inset: 0; background: var(--color-ink); transform: scaleX(0); transform-origin: left; }

/* =========================================================
   NAV
   ========================================================= */
.nav { position: fixed; top: 16px; left: 0; right: 0; z-index: 60; pointer-events: none; }
.nav__inner {
  pointer-events: auto;
  width: calc(100% - 32px); max-width: calc(var(--page-max-width) - 16px); margin: 0 auto;
  height: 58px; padding: 0 9px 0 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid var(--color-hairline); border-radius: var(--radius-cards);
  box-shadow: var(--shadow-card);
  transition: background-color .4s var(--ease);
}
.nav.is-scrolled .nav__inner { background: rgba(255, 255, 255, .86); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 26px; height: 26px; color: var(--color-ink); transition: transform .8s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-12deg) scale(1.05); }
.brand__word { font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.nav__links { display: flex; gap: 2px; padding: 4px; background: var(--color-canvas); border-radius: var(--radius-buttons); position: relative; }
.nav__links a {
  position: relative; z-index: 1; height: 32px; padding: 0 14px; display: inline-flex; align-items: center;
  border-radius: 14px; font-size: 13px; font-weight: 500; color: var(--color-mid-gray); transition: color .3s;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--color-ink); }
.nav__pill { position: absolute; z-index: 0; top: 4px; height: 32px; border-radius: 14px; background: var(--color-paper); box-shadow: var(--shadow-card); pointer-events: none; }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.burger { display: none; width: 40px; height: 40px; border-radius: var(--radius-buttons); background: var(--color-canvas); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--color-ink); transition: transform .5s var(--ease); }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 23px; }
.menu-open .burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mnav {
  position: fixed; inset: 0; z-index: 55; background: var(--color-paper);
  padding: 110px var(--gutter) 32px; display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); visibility: hidden;
}
.mnav__links { display: flex; flex-direction: column; }
.mnav__links a {
  display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--color-hairline);
  font-size: clamp(36px, 10vw, 56px); font-weight: 600; letter-spacing: -.05em; line-height: 1.1;
}
.mnav__links .mono { font-size: 12px; color: var(--color-mid-gray); letter-spacing: 0; }
.mnav__foot { display: flex; flex-direction: column; gap: 8px; font-size: 16px; color: var(--color-mid-gray); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 0 calc(16vh + 56px);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__mesh {
  position: absolute; inset: -10%;
  background-image:
    linear-gradient(to right, rgba(10, 10, 10, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10, 10, 10, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 55% 50% at 50% 45%, #000 20%, transparent 80%);
          mask-image: radial-gradient(ellipse 55% 50% at 50% 45%, #000 20%, transparent 80%);
}
.gl { position: absolute; background: var(--color-hairline); }
.gl--v { top: 0; bottom: 0; width: 1px; transform-origin: top; }
.gl--h { left: 0; right: 0; height: 1px; transform-origin: left; }
.plus { position: absolute; width: 13px; height: 13px; transform: translate(-50%, -50%); }
.plus::before, .plus::after { content: ""; position: absolute; background: var(--color-ink); }
.plus::before { left: 6px; top: 0; width: 1px; height: 13px; }
.plus::after { top: 6px; left: 0; height: 1px; width: 13px; }
.plus--ember::before, .plus--ember::after { background: var(--color-ember); }

.hero__cross { position: absolute; inset: 0; pointer-events: none; opacity: 0; z-index: 1; }
.hero__cross .hx { position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: rgba(10, 10, 10, .08); }
.hero__cross .hy { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(10, 10, 10, .08); }
.hero__cross .hl {
  position: absolute; top: 0; left: 0; font-size: 12px; color: var(--color-mid-gray);
  padding: 2px 8px; background: rgba(255, 255, 255, .8); border: 1px solid var(--color-hairline); border-radius: var(--radius-buttons);
  white-space: nowrap;
}

.hero__side {
  position: absolute; top: 50%; z-index: 2; font-size: 12px; color: var(--color-mid-gray); letter-spacing: .04em;
  writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg); text-transform: uppercase;
}
.hero__side--l { left: 24px; }
.hero__side--r { right: 24px; transform: translateY(-50%); display: flex; align-items: center; gap: 12px; }
.hero__side--r i { display: block; width: 1px; height: 56px; background: var(--color-hairline); position: relative; overflow: hidden; }
.hero__side--r i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--color-ink); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

.hero__content { position: relative; z-index: 3; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px 0 6px;
  background: var(--color-paper); border: 1px solid var(--color-hairline); border-radius: var(--radius-buttons);
  font-size: 13px; font-weight: 500; box-shadow: var(--shadow-card);
  transition: border-color .3s;
}
.hero__badge:hover { border-color: #d4d4d4; }
.hero__badge .i { width: 14px; height: 14px; color: var(--color-mid-gray); transition: transform .5s var(--ease); }
.hero__badge:hover .i { transform: translateX(3px); }

.hero__title {
  margin-top: 28px;
  font-size: clamp(46px, 8vw, 116px); line-height: .96; letter-spacing: -.05em; font-weight: 600;
}
.line { display: block; overflow: hidden; padding: 0 .05em .12em; margin-bottom: -.12em; }
.line__in { display: inline-block; }
.hero__sub { margin-top: 28px; max-width: 580px; font-size: 18px; line-height: 1.56; color: var(--color-mid-gray); }
.hero__ctas { margin-top: 32px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.hero__meta { margin-top: 32px; display: flex; gap: 8px 24px; flex-wrap: wrap; justify-content: center; font-size: 13px; color: var(--color-mid-gray); }
.hero__meta li { display: inline-flex; align-items: center; gap: 6px; }
.hero__meta .i { width: 14px; height: 14px; color: var(--color-ink); }

/* Floating chips */
.chips { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.chip { position: absolute; }
.chip--a { left: 5%; top: 56%; }
.chip--b { right: 5.5%; top: 52%; }
.chip--c { left: 9%; top: 70%; }
.chip--d { right: 8%; top: 68%; }
.chip__c {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px;
  background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--color-hairline); border-radius: var(--radius-buttons); box-shadow: var(--shadow-card), 0 16px 32px -16px rgba(10, 10, 10, .14);
}
.chip__c--col { flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 14px; min-width: 210px; }
.chip__ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--color-canvas); }
.chip__ic--ember { color: var(--color-ember); }
.chip__ic--ink { background: var(--color-ink); color: #fafafa; }
.chip__txt { display: flex; flex-direction: column; text-align: left; }
.chip__txt b { font-size: 13px; font-weight: 600; letter-spacing: -.01em; }
.chip__txt small { font-size: 12px; color: var(--color-mid-gray); }
.chip__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 12px; color: var(--color-mid-gray); }
.chip__row b { color: var(--color-ink); font-size: 13px; }
.chip__meter { height: 4px; border-radius: 4px; background: var(--color-canvas); overflow: hidden; }
.chip__meter i { display: block; height: 100%; width: 98.6%; background: var(--color-ink); border-radius: 4px; transform-origin: left; }

/* =========================================================
   STAGE / APP MOCKUP
   ========================================================= */
.stage { position: relative; z-index: 4; margin-top: -16vh; padding-bottom: 40px; }
.stage__persp { position: relative; perspective: 1800px; perspective-origin: 50% 0%; }
.stage__intro { will-change: transform, opacity; }
.app {
  background: var(--color-paper); border: 1px solid var(--color-hairline); border-radius: var(--radius-cards);
  box-shadow: var(--shadow-card), 0 60px 120px -50px rgba(10, 10, 10, .28);
  overflow: hidden; transform-origin: 50% 0; will-change: transform; font-size: 13px;
}
.app__top { display: flex; align-items: center; gap: 18px; height: 54px; padding: 0 16px; border-bottom: 1px solid var(--color-hairline); }
.app__dots { display: flex; gap: 6px; }
.app__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--color-hairline); }
.app__crumb { color: var(--color-mid-gray); white-space: nowrap; }
.app__crumb span { margin: 0 6px; opacity: .6; }
.app__crumb b { color: var(--color-ink); font-weight: 500; }
.app__search {
  margin-left: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 34px; min-width: 260px; padding: 0 6px 0 12px; border-radius: var(--radius-buttons);
  background: var(--color-canvas); color: var(--color-mid-gray);
}
.app__search > span { display: inline-flex; align-items: center; gap: 8px; }
.app__search .i { width: 14px; height: 14px; }
.app__search kbd { font-family: var(--font-mono); font-size: 12px; background: var(--color-paper); border: 1px solid var(--color-hairline); border-radius: 6px; padding: 2px 6px; color: var(--color-ink); }
.app__avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--color-ink); color: #fafafa; display: grid; place-items: center; font-size: 12px; font-weight: 500; }
.app__body { display: grid; grid-template-columns: 216px 1fr; min-height: 560px; }
.app__side { background: var(--color-surface-alt); border-right: 1px solid var(--color-hairline); padding: 16px 12px; display: flex; flex-direction: column; gap: 2px; }
.side__label { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--color-mid-gray); padding: 6px 10px 8px; font-weight: 500; }
.side__item { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 10px; color: #404040; }
.side__item .i { color: var(--color-mid-gray); }
.side__item.is-active { background: var(--color-paper); box-shadow: var(--shadow-card); color: var(--color-ink); font-weight: 500; }
.side__item.is-active .i { color: var(--color-ink); }
.side__count { margin-left: auto; font-style: normal; font-size: 12px; background: var(--color-ink-soft); color: #fafafa; padding: 1px 7px; border-radius: 18px; }
.side__entity { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--color-hairline); display: flex; flex-direction: column; gap: 6px; }
.side__ent { display: flex; align-items: center; gap: 8px; padding: 0 10px; font-size: 12px; color: #404040; }
.side__ent i { width: 6px; height: 6px; border-radius: 50%; background: var(--color-ink); }
.side__ent--m i { background: #a3a3a3; }

.app__main { padding: 22px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.app__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.app__head h3 { font-size: 24px; letter-spacing: -.025em; font-weight: 600; margin-top: 4px; line-height: 1.2; }
.app__tabs { display: flex; padding: 3px; background: var(--color-canvas); border-radius: var(--radius-buttons); font-size: 12px; font-weight: 500; }
.app__tabs span { padding: 5px 10px; border-radius: 14px; color: var(--color-mid-gray); }
.app__tabs .is-on { background: var(--color-paper); color: var(--color-ink); box-shadow: var(--shadow-card); }

.app__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { border: 1px solid var(--color-hairline); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat__label { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--color-mid-gray); font-weight: 500; }
.stat__value { font-size: clamp(18px, 2vw, 28px); font-weight: 600; letter-spacing: -.035em; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat__delta { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--color-mid-gray); }
.stat__delta .i { width: 12px; height: 12px; color: var(--color-ink); }

.app__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: 12px; flex: 1; }
.panel { border: 1px solid var(--color-hairline); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; min-width: 0; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.panel__head b { font-weight: 600; font-size: 14px; letter-spacing: -.01em; }
.chart { display: flex; align-items: flex-end; gap: 6px; flex: 1; min-height: 170px; padding-top: 20px; }
.chart span { flex: 1; height: var(--h); background: var(--color-canvas); border-radius: 6px 6px 3px 3px; transform-origin: bottom; }
.chart span.is-hl { background: var(--color-ink); }
.chart__axis { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--color-mid-gray); }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--color-mid-gray); }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--color-ember); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }

.feed { position: relative; margin-top: 10px; display: flex; flex-direction: column; }
.feed__row {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) auto auto minmax(0, 1fr); align-items: center; gap: 14px;
  padding: 10px 8px; border-bottom: 1px solid var(--color-hairline);
}
.feed__row:last-child { border-bottom: 0; }
.feed__ref { display: flex; flex-direction: column; min-width: 0; }
.feed__ref b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed__ref small { font-size: 12px; color: var(--color-mid-gray); }
.feed__amt { font-size: 12px; font-variant-numeric: tabular-nums; }
.feed__st { font-size: 12px; color: var(--color-mid-gray); text-align: right; display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; white-space: nowrap; }
.feed__st--ok { color: var(--color-ink); }
.feed__st .i { width: 12px; height: 12px; }
.feed__row.is-flag { background: var(--color-surface-alt); border-radius: 10px; }
.feed__row.is-flag::before { content: ""; position: absolute; left: -2px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: var(--color-ember); }
.feed__row.is-flag .feed__st { color: var(--color-ember); }
.feed__scan { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--color-ink); opacity: 0; z-index: 2; box-shadow: 0 0 0 .5px rgba(10, 10, 10, .2); }

.annot {
  position: absolute; z-index: 5; display: flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 8px; background: var(--color-ink); color: #fafafa; border-radius: var(--radius-buttons);
  font-size: 13px; font-weight: 500; white-space: nowrap; box-shadow: 0 16px 32px -12px rgba(10, 10, 10, .35);
}
.annot__n { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 10px; background: #262626; font-size: 12px; }
.annot::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--color-ember); border: 2px solid var(--color-paper); }
.annot--1 { left: -28px; top: 33%; }
.annot--1::after { right: -4px; top: -4px; }
.annot--2 { right: -28px; top: 58%; }
.annot--2::after { left: -4px; top: -4px; }
.annot--3 { left: 18%; bottom: -22px; }
.annot--3::after { right: -4px; top: -4px; }
.stage__note { display: block; text-align: center; margin-top: 40px; }

/* =========================================================
   MANIFESTO
   ========================================================= */
.manifesto__text {
  margin-top: 28px;
  font-size: clamp(28px, 4.2vw, 56px); line-height: 1.12; letter-spacing: -.045em; font-weight: 600;
  max-width: 22ch; max-width: 1100px; text-wrap: pretty;
}
.manifesto__text .w { white-space: normal; }

/* =========================================================
   COMPARE
   ========================================================= */
.compare__grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch; }
.cmp { padding: 28px; }
.cmp--before { background: var(--color-surface-alt); box-shadow: none; }
.cmp__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.cmp ul { display: flex; flex-direction: column; }
.cmp__item { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid var(--color-hairline); font-size: 16px; line-height: 1.5; }
.cmp__item > span:last-child { position: relative; }
.cmp--before .cmp__item { color: var(--color-ink); }
.cmp--before .cmp__item .i { color: var(--color-mid-gray); }
.cmp__strike { position: absolute; left: -2px; right: -2px; top: 54%; height: 1.5px; background: var(--color-ink); transform: scaleX(0); transform-origin: left; }
.cmp__check { width: 24px; height: 24px; border-radius: 50%; background: var(--color-ink); color: #fafafa; display: grid; place-items: center; flex: none; }
.cmp__check .i { width: 13px; height: 13px; stroke-width: 2.25; }
.compare__mid { display: grid; place-items: center; }
.compare__mid span { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--color-paper); border: 1px solid var(--color-hairline); box-shadow: var(--shadow-card); }

/* =========================================================
   AXES (horizontal pinned)
   ========================================================= */
.axes { position: relative; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(28px, 4vh, 48px); overflow: hidden; background: var(--color-canvas); }
.axes__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.axes__head .h2 { max-width: none; }
.axes__progress { display: flex; align-items: center; gap: 16px; min-width: 240px; }
.axes__count { font-size: 13px; color: var(--color-mid-gray); white-space: nowrap; }
.axes__count b { color: var(--color-ink); font-weight: 500; }
.axes__bar { flex: 1; height: 2px; background: var(--color-hairline); border-radius: 2px; overflow: hidden; }
.axes__bar i { display: block; height: 100%; background: var(--color-ink); transform: scaleX(0); transform-origin: left; }
.axes__viewport { width: 100%; }
.axes__track {
  display: flex; gap: 20px; width: max-content;
  padding: 4px max(var(--gutter), calc((100vw - var(--page-max-width)) / 2 + var(--gutter)));
  will-change: transform;
}
.axe {
  width: clamp(320px, 34vw, 480px); height: clamp(440px, 60vh, 560px);
  padding: 20px; display: flex; flex-direction: column; flex: none;
}
.axe__top { display: flex; justify-content: space-between; align-items: center; }
.axe__n { font-size: 13px; color: var(--color-mid-gray); }
.axe__viz { flex: 1; margin: 16px 0 20px; border-radius: 18px; background: var(--color-surface-alt); border: 1px solid var(--color-hairline); position: relative; overflow: hidden; min-height: 180px; }
.axe__title { font-size: 24px; line-height: 1.2; letter-spacing: -.025em; font-weight: 600; }
.axe__p { margin-top: 8px; color: var(--color-mid-gray); font-size: 14px; line-height: 1.5; }

/* viz: doc */
.viz-doc { display: grid; place-items: center; padding: 20px; }
.doc { position: relative; width: 78%; max-width: 260px; aspect-ratio: 3 / 3.4; background: var(--color-paper); border: 1px solid var(--color-hairline); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 9px; box-shadow: var(--shadow-card); overflow: hidden; }
.doc__head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--color-mid-gray); margin-bottom: 4px; }
.doc__logo { width: 22px; height: 22px; border-radius: 6px; background: var(--color-ink); }
.doc__line { display: block; height: 6px; width: var(--w); border-radius: 4px; background: var(--color-canvas); }
.doc__field { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 8px; white-space: nowrap; border: 1px dashed var(--color-ink); border-radius: 6px; font-size: 12px; }
.doc__field em { font-style: normal; font-size: 12px; color: var(--color-mid-gray); }
.doc__field--b { border-color: var(--color-ember); }
.doc__field--b span { color: var(--color-ink); font-weight: 500; }
.doc__scan { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--color-ember); animation: scan 3.2s var(--ease) infinite; }
@keyframes scan { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(260px); opacity: 0; } }

/* viz: dup */
.viz-dup { display: grid; place-items: center; }
.mini {
  position: absolute; width: 56%; max-width: 210px; padding: 14px; background: var(--color-paper); border: 1px solid var(--color-hairline);
  border-radius: 10px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 7px;
}
.mini span { font-size: 12px; color: var(--color-mid-gray); }
.mini b { font-size: 18px; letter-spacing: -.03em; font-weight: 600; }
.mini i { display: block; height: 5px; width: var(--w); border-radius: 4px; background: var(--color-canvas); }
.mini small { font-size: 12px; color: var(--color-mid-gray); }
/* .mini positions are set by GSAP (xPercent / yPercent / rotate) */
.dup__match {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 18px;
  background: var(--color-ink); color: #fafafa; font-size: 12px; font-weight: 500; white-space: nowrap;
}

/* viz: pay */
.viz-pay { display: flex; flex-direction: column; justify-content: center; padding: 24px 20px; gap: 0; }
.pay__tag { align-self: center; font-size: 12px; font-weight: 500; padding: 4px 10px; border: 1px solid var(--color-hairline); background: var(--color-paper); border-radius: 18px; margin-bottom: 6px; }
.pay__arc { width: 100%; height: 70px; overflow: visible; }
.pay__arc path { fill: none; stroke: var(--color-ember); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.pay__line { position: relative; display: flex; justify-content: space-between; align-items: center; height: 14px; }
.pay__line::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #d4d4d4; }
.pay__line i { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--color-paper); border: 1.5px solid #a3a3a3; }
.pay__line i.is-dup { width: 14px; height: 14px; background: var(--color-ember); border-color: var(--color-ember); box-shadow: 0 0 0 4px rgba(231, 0, 11, .1); }
.pay__legend { display: flex; justify-content: space-between; margin-top: 14px; font-size: 12px; color: var(--color-mid-gray); padding: 0 4%; gap: 8px; }

/* viz: flow */
.viz-flow { padding: 20px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.flow__step { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--color-paper); border: 1px solid var(--color-hairline); font-size: 13px; font-weight: 500; }
.flow__step em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--color-mid-gray); font-weight: 400; }
.flow__ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--color-ink); color: #fafafa; flex: none; }
.flow__ic .i { width: 12px; height: 12px; stroke-width: 2.25; }
.flow__step.is-current { border-color: var(--color-ink); }
.flow__step.is-current .flow__ic { background: var(--color-paper); border: 1.5px solid var(--color-ink); }
.flow__step.is-current .flow__ic i { width: 6px; height: 6px; border-radius: 50%; background: var(--color-ember); animation: pulse 1.6s ease-in-out infinite; }

/* viz: reporting */
.viz-rep { padding: 20px; display: flex; flex-direction: column; }
.rep__head { display: flex; flex-direction: column; gap: 4px; }
.rep__head b { font-size: 32px; letter-spacing: -.04em; font-weight: 600; line-height: 1.1; }
.rep__bars { flex: 1; display: flex; align-items: flex-end; gap: 6px; margin-top: 16px; }
.rep__bars i { flex: 1; height: var(--h); background: var(--color-hairline); border-radius: 5px 5px 2px 2px; transform-origin: bottom; }
.rep__bars i.is-hl { background: var(--color-ink); }

/* =========================================================
   SERVICES LIST
   ========================================================= */
.svc-list { border-top: 1px solid var(--color-hairline); }
.svc {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1fr) 48px; gap: 24px; align-items: center;
  padding: 28px 20px; border-bottom: 1px solid var(--color-hairline);
}
.svc::before {
  content: ""; position: absolute; inset: 6px 0; z-index: -1; border-radius: var(--radius-cards);
  background: var(--color-paper); box-shadow: var(--shadow-card);
  transform: scaleY(.6); opacity: 0; transition: transform .6s var(--ease), opacity .4s var(--ease);
}
.svc:hover::before { transform: scaleY(1); opacity: 1; }
.svc__l { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--color-hairline); font-size: 14px; transition: background-color .4s, color .4s, border-color .4s; }
.svc:hover .svc__l { background: var(--color-ink); color: #fafafa; border-color: var(--color-ink); }
.svc__t { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; letter-spacing: -.035em; font-weight: 600; transition: transform .6s var(--ease); }
.svc:hover .svc__t { transform: translateX(6px); }
.svc__d { color: var(--color-mid-gray); font-size: 15px; line-height: 1.55; }
.svc__go { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--color-hairline); justify-self: end; transition: transform .6s var(--ease), background-color .4s, color .4s; }
.svc:hover .svc__go { background: var(--color-ink); color: #fafafa; transform: rotate(45deg); border-color: var(--color-ink); }

/* =========================================================
   SECTORS
   ========================================================= */
.marquee { overflow: hidden; padding: 12px 0; border-top: 1px solid var(--color-hairline); border-bottom: 1px solid var(--color-hairline); background: var(--color-surface-alt); }
.marquee__row { display: flex; width: max-content; will-change: transform; }
.marquee__set { display: flex; align-items: center; flex: none; }
.marquee__set span { font-size: clamp(28px, 4vw, 52px); font-weight: 600; letter-spacing: -.045em; padding: 0 28px; white-space: nowrap; line-height: 1.3; }
.marquee__set span:nth-child(4n+3) { color: var(--color-mid-gray); }
.marquee__set i { width: 10px; height: 10px; border-radius: 3px; background: var(--color-ink); flex: none; transform: rotate(45deg); }
.marquee__set i:nth-of-type(3n) { background: var(--color-ember); }
.roles { margin-top: 48px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.roles__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* =========================================================
   ENGAGEMENTS
   ========================================================= */
.engage__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.eng { padding: 24px; display: flex; flex-direction: column; min-height: 280px; transform-style: preserve-3d; }
.eng__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: auto; }
.eng__ic { width: 44px; height: 44px; border-radius: 14px; background: var(--color-canvas); display: grid; place-items: center; transition: background-color .4s, color .4s; }
.eng__ic .i { width: 20px; height: 20px; }
.eng:hover .eng__ic { background: var(--color-ink); color: #fafafa; }
.eng__n { font-size: 13px; color: var(--color-mid-gray); }
.eng h3 { margin-top: 40px; font-size: 24px; line-height: 1.2; letter-spacing: -.025em; font-weight: 600; }
.eng p { margin-top: 8px; color: var(--color-mid-gray); font-size: 14px; line-height: 1.5; }

/* =========================================================
   VISION (dark panel)
   ========================================================= */
.vision { position: relative; padding: 0 0 0; }
.vision__panel {
  position: relative; background: var(--color-ink); color: #fafafa; overflow: hidden;
  padding: var(--section-y) 0; clip-path: inset(0 0 0 0 round 0px);
}
.vision__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 10%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 10%, transparent 75%);
}
.vision__inner { position: relative; }
.vision__title { margin-top: 24px; font-size: clamp(34px, 5.6vw, 80px); line-height: 1.02; letter-spacing: -.05em; font-weight: 600; max-width: 18ch; }
.vision__cols { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.vision__cols > p { font-size: 18px; line-height: 1.56; color: #a3a3a3; max-width: 48ch; }
.vision__next { display: flex; flex-direction: column; gap: 14px; }
.vision__next .caption { color: #a3a3a3; }
.vision__tags { display: flex; flex-wrap: wrap; gap: 8px; }

.expansion { position: relative; margin-top: clamp(64px, 9vw, 120px); display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 24px; padding-top: 36px; }
.exp__line { position: absolute; top: 6px; left: 0; right: 0; height: 1px; background: rgba(255, 255, 255, .14); }
.exp__line span { position: absolute; inset: 0; background: #fafafa; transform: scaleX(0); transform-origin: left; }
.exp__phase { position: relative; }
.exp__dot { position: absolute; top: -36px; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--color-ink); border: 1.5px solid #525252; transition: background-color .5s, border-color .5s, box-shadow .5s; }
.exp__phase.is-on .exp__dot { background: #fafafa; border-color: #fafafa; box-shadow: 0 0 0 5px rgba(255, 255, 255, .08); }
.exp__phase:first-of-type.is-on .exp__dot { background: var(--color-ember); border-color: var(--color-ember); box-shadow: 0 0 0 5px rgba(231, 0, 11, .18); }
.exp__k { font-size: 12px; color: #737373; }
.exp__phase h3 { margin-top: 8px; font-size: clamp(24px, 3vw, 36px); letter-spacing: -.04em; font-weight: 600; line-height: 1.1; }
.exp__phase p { margin-top: 8px; color: #a3a3a3; font-size: 14px; line-height: 1.5; max-width: 30ch; }
.vision__note { display: block; margin-top: 56px; color: #737373; max-width: 70ch; text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 400; }

/* =========================================================
   MODEL
   ========================================================= */
.model__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.plan { padding: 24px; display: flex; flex-direction: column; gap: 14px; min-height: 340px; }
.plan .badge { align-self: flex-start; }
.plan h3 { margin-top: 24px; font-size: 24px; line-height: 1.2; letter-spacing: -.025em; font-weight: 600; }
.plan p { color: var(--color-mid-gray); font-size: 14px; line-height: 1.5; }
.plan ul { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--color-hairline); display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.plan li { display: flex; align-items: center; gap: 8px; }
.plan li .i { width: 14px; height: 14px; }
.plan--dark { background: var(--color-ink); color: #fafafa; border-color: var(--color-ink); }
.plan--dark p { color: #a3a3a3; }
.plan--dark ul { border-color: #262626; }

/* =========================================================
   CTA
   ========================================================= */
.cta__box { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) clamp(20px, 5vw, 64px); text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(10, 10, 10, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10, 10, 10, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 50% 60% at 50% 40%, #000 0%, transparent 80%);
          mask-image: radial-gradient(ellipse 50% 60% at 50% 40%, #000 0%, transparent 80%);
}
.cta__box > *:not(.cta__grid) { position: relative; }
.cta__title { margin-top: 24px; font-size: clamp(40px, 7vw, 104px); line-height: .98; letter-spacing: -.05em; font-weight: 600; max-width: 15ch; text-wrap: balance; }
.cta__title .w { overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.cta__p { margin-top: 24px; font-size: 18px; line-height: 1.56; color: var(--color-mid-gray); max-width: 44ch; }
.cta__actions { margin-top: 32px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.cta__contacts { margin-top: clamp(48px, 6vw, 72px); width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; text-align: left; }
.contact {
  display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: var(--color-surface-alt);
  border: 1px solid var(--color-hairline); transition: background-color .4s, border-color .4s, transform .6s var(--ease);
}
.contact:hover { background: var(--color-paper); border-color: #d4d4d4; transform: translateY(-2px); }
.contact__ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--color-ink); color: #fafafa; flex: none; }
.contact > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact b { font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { padding: 72px 0 24px; border-top: 1px solid var(--color-hairline); background: var(--color-surface-alt); overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.footer__brand p { margin-top: 16px; color: var(--color-mid-gray); max-width: 34ch; font-size: 14px; line-height: 1.5; }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer__col .caption { margin-bottom: 6px; }
.footer__col a, .footer__col span:not(.caption) { color: #404040; transition: color .3s; }
.footer__col a:hover { color: var(--color-ink); }
.footer__word {
  margin-top: 64px; font-size: clamp(56px, 15.4vw, 224px); font-weight: 600; letter-spacing: -.06em; line-height: .8;
  text-align: center; white-space: nowrap; overflow: hidden; padding-bottom: .06em; user-select: none;
}
.footer__word .c { will-change: transform; }
.footer__bottom { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--color-hairline); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--color-mid-gray); }
.footer__legal { display: flex; gap: 20px; }
.footer__legal a:hover, .footer__top-link:hover { color: var(--color-ink); }
.footer__top-link { display: inline-flex; align-items: center; gap: 6px; }
.footer__top-link .i { width: 14px; height: 14px; transform: rotate(-45deg); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .chips, .hero__side, .annot { display: none; }
  .engage__grid, .model__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 959px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: block; }
  .shead--split { grid-template-columns: 1fr; gap: 0; }
  .shead--split .shead__p { margin-top: 20px; }

  .app__body { grid-template-columns: 1fr; min-height: 0; }
  .app__side { display: none; }
  .app__search { min-width: 0; }
  .app__search > span { display: none; }
  .app__crumb { display: none; }
  .app__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app__grid { grid-template-columns: 1fr; }
  .chart { min-height: 120px; }

  .compare__grid { grid-template-columns: 1fr; }
  .compare__mid { transform: rotate(90deg); }

  .axes { height: auto; padding: calc(var(--section-y) * .7) 0; }
  .axes__progress { display: none; }
  .axes__track { width: auto; flex-direction: column; padding: 0 var(--gutter); }
  .axe { width: 100%; height: auto; }
  .axe__viz { min-height: 220px; flex: none; height: 240px; }

  .svc { grid-template-columns: 48px minmax(0, 1fr) 44px; gap: 8px 16px; padding: 24px 8px; }
  .svc__d { grid-column: 2 / 3; grid-row: 2; }
  .svc__go { grid-column: 3; grid-row: 1; }

  .vision__cols { grid-template-columns: 1fr; gap: 32px; }
  .expansion { grid-template-columns: 1fr; gap: 36px; padding-top: 0; padding-left: 36px; }
  .exp__line { top: 0; bottom: 0; left: 6px; right: auto; width: 1px; height: auto; }
  .exp__line span { transform: scaleY(0); transform-origin: top; }
  .exp__dot { top: 4px; left: -36px; }

  .cta__contacts { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .nav { top: 10px; }
  .nav__inner { width: calc(100% - 20px); height: 54px; }
  .hero { padding-top: 112px; padding-bottom: calc(10vh + 40px); }
  .stage { margin-top: -10vh; }
  .hero__badge { font-size: 12px; }
  .hero__badge > span:nth-child(2) { max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero__sub, .shead__p, .cta__p, .vision__cols > p { font-size: 16px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__meta { flex-direction: column; align-items: center; gap: 6px; }
  .app__top { gap: 10px; padding: 0 12px; }
  .app__main { padding: 14px; }
  .app__head { flex-direction: column; align-items: flex-start; }
  .app__head h3 { font-size: 18px; }
  .feed__row { grid-template-columns: minmax(0, 1fr) auto; }
  .feed__row .badge, .feed__st { display: none; }
  .engage__grid, .model__grid { grid-template-columns: 1fr; }
  .eng { min-height: 220px; }
  .plan { min-height: 0; }
  .cmp { padding: 20px; }
  .cmp__item { font-size: 15px; }
  .footer__top { grid-template-columns: 1fr; }
  .marquee__set span { padding: 0 18px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .loader { display: none; }
}

/* =========================================================
   Apple Design — retour immédiat au toucher, accessibilité
   ========================================================= */
/* Réponse dès l'appui (pointer-down), via la propriété `scale`
   pour ne pas écraser les transforms posés par GSAP */
.btn, .svc__go, .contact, .topic span, .faq__ic, .hero__badge, .burger, .nav__links a, .msteps li, .toc a {
  transition-property: background-color, color, border-color, box-shadow, transform, scale, opacity;
}
.btn:active, .hero__badge:active, .burger:active, .contact:active, .topic span:active { scale: .97; transition-duration: .08s; }
.svc:active .svc__go, .faq__q:active .faq__ic { scale: .9; transition-duration: .08s; }
.nav__links a:active { scale: .96; transition-duration: .08s; }
.btn, a, button, label { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

/* Survols réservés aux appareils qui ont un vrai survol */
@media (hover: none) {
  .svc:hover::before { transform: scaleY(.6); opacity: 0; }
  .svc:hover .svc__t { transform: none; }
  .svc:hover .svc__go { transform: none; background: transparent; color: inherit; border-color: var(--color-hairline); }
}

/* Transparence réduite : surfaces pleines */
@media (prefers-reduced-transparency: reduce) {
  .nav__inner, .chip__c, .btn--outline, .phero__card { background: var(--color-paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Contraste renforcé */
@media (prefers-contrast: more) {
  :root { --color-hairline: #a3a3a3; --color-mid-gray: #525252; }
  .card, .nav__inner { box-shadow: none; border-color: #737373; }
}

/* =========================================================
   NOUVEAU FOND — papier givré pointillé, grain, halo au curseur
   ========================================================= */
.bgfx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bgfx__blob { position: absolute; border-radius: 50%; filter: blur(90px); will-change: transform; }
.bgfx__blob--a { width: 52vw; height: 52vw; left: -14vw; top: -18vw; background: #ffffff; }
.bgfx__blob--b { width: 40vw; height: 40vw; right: -12vw; top: 34vh; background: #e2e2e2; opacity: .8; }
.bgfx__blob--c { width: 30vw; height: 30vw; left: 30vw; bottom: -14vw; background: #ffffff; opacity: .9; }
.bgfx__dots, .bgfx__spot {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--dot, rgba(10, 10, 10, .16)) 1px, transparent 0);
  background-size: 24px 24px;
}
.bgfx__spot {
  --dot: rgba(10, 10, 10, .62);
  -webkit-mask-image: radial-gradient(300px circle at var(--mx, 50%) var(--my, -40%), #000 0%, transparent 72%);
          mask-image: radial-gradient(300px circle at var(--mx, 50%) var(--my, -40%), #000 0%, transparent 72%);
  opacity: 0; transition: opacity .6s var(--ease);
}
.bgfx.is-live .bgfx__spot { opacity: 1; }
.bgfx__grain {
  position: absolute; inset: 0; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* le fond global remplace l'ancienne trame du hero */
.hero__mesh { display: none; }
.axes { background: transparent; }
.gl { background: rgba(10, 10, 10, .09); }

/* =========================================================
   NOUVEAU LOGO — contraste interne piloté par --logo-inner
   ========================================================= */
.curtain__mark, .hub__core svg, .plan--dark .brand__mark { --logo-inner: #0a0a0a; }
.brand__word { font-size: 15px; letter-spacing: .02em; }
.brand__mark { width: 28px; height: 28px; }

/* =========================================================
   Sélecteur de langue FR / EN
   ========================================================= */
.lang { display: flex; padding: 3px; background: var(--color-canvas); border-radius: var(--radius-buttons); }
.lang a {
  height: 30px; min-width: 34px; padding: 0 8px; display: grid; place-items: center; border-radius: 14px;
  font-size: 12px; font-weight: 500; letter-spacing: .05em; color: var(--color-mid-gray); transition: color .3s, background-color .3s;
}
.lang a:hover { color: var(--color-ink); }
.lang a.is-on { background: var(--color-paper); color: var(--color-ink); box-shadow: var(--shadow-card); }
.mnav__foot .lang { align-self: flex-start; margin-top: 12px; }
@media (max-width: 640px) { .nav__actions .lang a { min-width: 30px; padding: 0 6px; } }
@media (prefers-reduced-transparency: reduce) { .bgfx__grain, .bgfx__blob { display: none; } }
