/* === Solutions ALXL · hi-fi blueprint === */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --navy: #0d1f3a;
  --navy-2: #0a1426;
  --navy-3: #061021;
  --blue: #1e6fd9;
  --blue-2: #4a90ff;
  --blue-dim: #2a4878;
  --paper: #f6f4ef;
  --paper-2: #ecead8;
  --ink: #15171c;
  --ink-2: #2a2d36;
  --mute: #6c7080;
  --line: rgba(13,31,58,.14);
  --line-dk: rgba(255,255,255,.10);
  --green: #4e9e6e;
  --amber: #d9a72e;
  --red: #c8413f;
}

* { box-sizing: border-box; }
html, body { margin:0; padding:0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 500;
}
.eyebrow.muted { color: var(--mute); }
.eyebrow.light { color: var(--blue-2); }

h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(44px, 6.4vw, 96px); line-height: .98; letter-spacing: -0.035em; font-weight: 600; }
h2 { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.02; }
h3 { font-size: clamp(20px, 2vw, 28px); line-height: 1.15; }
p  { margin: 0; }
.lede { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.45; color: rgba(255,255,255,.78); max-width: 56ch; }
.lede.dark { color: rgba(13,31,58,.72); }

/* === LAYOUT === */
.wrap { max-width: 1400px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 900px) { .wrap { padding: 0 24px; } }

/* === NAV === */
.nav {
  position: fixed; top:0; left:0; right:0; z-index: 200;
  display:flex; align-items:center; justify-content:space-between;
  padding: 18px 48px;
  transition: background .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(246,244,239,.86); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav.scrolled.on-dark { background: rgba(6,16,33,.78); border-bottom-color: var(--line-dk); }
.nav__logo { display:flex; align-items:center; gap:10px; }
.nav__logo img {
  height: 56px; width: auto; display: block;
  background: #fff;
  padding: 6px 12px;
  border-radius: 4px;
}
.nav__links { display:flex; gap: 32px; }
.nav__links a {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: inherit; opacity:.7;
}
.nav__links a:hover { opacity: 1; color: var(--blue); }
.nav__right { display:flex; align-items:center; gap: 14px; }
.lang-toggle {
  display:flex; gap:2px; font-family:'JetBrains Mono', monospace; font-size: 12px;
}
.lang-toggle button {
  background: transparent; border: none; padding: 6px 10px; cursor: pointer;
  color: currentColor; opacity: .45; font-family: inherit; font-size: inherit; letter-spacing: .1em;
}
.lang-toggle button.active { opacity: 1; color: var(--blue); }
.nav.on-dark { color: #f6f4ef; }
@media (max-width: 900px) {
  .nav { padding: 14px 24px; }
  .nav__links { display: none; }
}

/* === HERO === */
.hero {
  position: relative;
  background: var(--navy-3);
  color: #f6f4ef;
  padding: 160px 0 80px;
  overflow: hidden;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse at 30% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, black 30%, transparent 80%);
  pointer-events: none;
}
.hero__inner { position: relative; display:grid; grid-template-columns: 1.05fr .95fr; gap: 80px; align-items: center; }
@media (max-width: 1100px) { .hero__inner { grid-template-columns: 1fr; gap: 56px; } }

.hero__meta { display:flex; gap: 28px; margin-bottom: 28px; flex-wrap: wrap; }
.hero__meta-item { display:flex; flex-direction: column; gap: 2px; }
.hero__meta-item .k { font-family:'JetBrains Mono', monospace; font-size:10px; letter-spacing:.18em; color: rgba(255,255,255,.45); }
.hero__meta-item .v { font-family:'JetBrains Mono', monospace; font-size:12px; color: rgba(255,255,255,.85); }

.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--blue-2); }
.hero__sub { margin-top: 26px; max-width: 540px; }
.hero__cta { margin-top: 38px; display:flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display:inline-flex; align-items:center; gap: 10px;
  padding: 14px 22px;
  border: 1px solid;
  font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 500; letter-spacing: .01em;
  cursor: pointer; background: transparent; color: inherit;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  border-radius: 2px;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-2); border-color: var(--blue-2); }
.btn--ghost-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; }
.btn--ghost-dark { border-color: var(--navy); color: var(--navy); }
.btn--ghost-dark:hover { background: var(--navy); color: #fff; }
.btn__arrow { display:inline-block; transition: transform .2s; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* === Hero visual: blueprint diagram === */
.hero__visual { position: relative; aspect-ratio: 1/1; max-width: 560px; margin-left:auto; }
.hero__visual svg { width: 100%; height: 100%; }

/* === KPI strip === */
.kpi-strip {
  background: var(--navy-2);
  color: #fff;
  border-top: 1px solid var(--line-dk);
  border-bottom: 1px solid var(--line-dk);
  padding: 28px 0;
}
.kpi-strip__inner { display:grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.kpi { display:flex; flex-direction:column; gap: 4px; }
.kpi .v { font-size: clamp(28px, 3vw, 40px); font-weight: 600; letter-spacing: -.02em; color: #fff; line-height: 1; }
.kpi .v .unit { font-size:.55em; color: var(--blue-2); margin-left: 4px; font-weight: 500; }
.kpi .k { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: rgba(255,255,255,.6); letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 800px) { .kpi-strip__inner { grid-template-columns: repeat(2,1fr); } }

/* === Section base === */
section { position: relative; }
.section { padding: 120px 0; }
.section--paper { background: var(--paper); color: var(--ink); }
.section--paper-2 { background: var(--paper-2); color: var(--ink); }
.section--navy { background: var(--navy-2); color: #fff; }
.section--blueprint {
  background: var(--navy-3);
  color: #fff;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 32px 32px;
}

.section__head { display:grid; grid-template-columns: 1fr 1.4fr; gap: 64px; margin-bottom: 64px; align-items: end; }
@media (max-width: 900px) { .section__head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; } }
.section__head .eyebrow { margin-bottom: 12px; }
.section__head .blurb { color: var(--mute); max-width: 56ch; }
.section--navy .section__head .blurb,
.section--blueprint .section__head .blurb { color: rgba(255,255,255,.7); }

/* === SCROLLY (Besoins → Specs) === */
.scrolly {
  position: relative;
  background: var(--paper);
}
.scrolly__inner { display:grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: 100vh; }
@media (max-width: 1000px) { .scrolly__inner { grid-template-columns: 1fr; } }
.scrolly__left, .scrolly__right { padding: 120px 48px; }
.scrolly__right { background: var(--navy-3); color: #fff; }

.scrolly__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display:flex; flex-direction: column; justify-content: center;
  padding: 0 48px;
}
.scrolly__steps { position: relative; }
.scrolly__step {
  min-height: 90vh;
  padding: 12vh 0;
  display:flex; flex-direction:column; justify-content: center;
  opacity: .25;
  transition: opacity .3s ease;
}
.scrolly__step.is-active { opacity: 1; }
.scrolly__quote {
  font-family: 'Space Grotesk', sans-serif; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; color: var(--ink); font-weight: 400;
  font-style: italic;
  max-width: 24ch;
}
.scrolly__quote::before { content:"« "; color: var(--blue); font-style: normal; }
.scrolly__quote::after  { content:" »"; color: var(--blue); font-style: normal; }
.scrolly__quote-meta { margin-top: 14px; }

.spec-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.15);
  padding: 24px;
  display: grid;
  gap: 14px;
  border-radius: 2px;
  transition: opacity .35s ease, transform .35s ease, border-color .35s ease, background .35s ease;
}
.spec-card.is-pending { opacity: .25; transform: translateY(8px); }
.spec-card.is-current { border-color: var(--blue); background: rgba(30,111,217,.10); }
.spec-card__head { display:flex; justify-content: space-between; align-items: baseline; }
.spec-card__id { color: var(--blue-2); }
.spec-card__title { font-size: 18px; font-weight: 500; color: #fff; }
.spec-card__body { display:grid; grid-template-columns: 130px 1fr; gap: 8px 18px; font-family: 'JetBrains Mono', monospace; font-size: 13px; color: rgba(255,255,255,.85); }
.spec-card__body .k { color: var(--blue-2); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; align-self: center; }
.spec-card__sign {
  margin-top: 4px; display:flex; align-items:center; gap: 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: rgba(255,255,255,.55);
}
.spec-card__sign-line { flex:1; height:1px; background: rgba(255,255,255,.18); }

/* === SCROLLY 2 — Assembly === */
.assembly {
  position: relative;
  background: var(--navy-3);
  color: #fff;
}
.assembly__steps { padding: 0 0 0 0; }
.assembly__step { min-height: 95vh; display:flex; align-items:center; padding: 80px 48px; }
.assembly__step-inner { max-width: 520px; margin-right: auto; }
.assembly__sticky {
  position: sticky; top: 0;
  height: 100vh;
  display: flex; align-items: center; justify-content: center;
}
.assembly__grid {
  display:grid; grid-template-columns: 1fr 1fr; gap: 0;
}
.assembly__copy { position: relative; }
.assembly__stage { position: relative; }
@media (max-width: 1000px) { .assembly__grid { grid-template-columns: 1fr; } .assembly__stage { display:none; } }

.layer-list { margin-top: 24px; display:flex; flex-direction: column; gap: 10px; }
.layer-list__item {
  display:grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.layer-list__id { font-family:'JetBrains Mono', monospace; font-size:11px; letter-spacing:.16em; color: rgba(255,255,255,.5); }
.layer-list__name { font-size: 18px; font-weight: 500; color: #fff; }
.layer-list__desc { font-family:'JetBrains Mono', monospace; font-size: 12px; color: rgba(255,255,255,.65); margin-top: 4px; }

/* === DATA CHAIN === */
.chain {
  display:grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}
.chain__node {
  position: relative;
  background: var(--paper);
  padding: 22px 22px 26px;
  cursor: pointer;
  transition: background .2s, color .2s;
  border-right: 1px solid var(--line);
  display:flex; flex-direction: column; gap: 14px;
  min-height: 200px;
}
.chain__node:last-child { border-right: none; }
.chain__node:hover { background: var(--navy-3); color: #fff; }
.chain__node:hover .chain__id { color: var(--blue-2); }
.chain__node:hover .chain__sub { color: rgba(255,255,255,.65); }
.chain__node.is-open { background: var(--navy-3); color: #fff; }
.chain__node.is-open .chain__id { color: var(--blue-2); }
.chain__node.is-open .chain__sub { color: rgba(255,255,255,.7); }
.chain__id { font-family:'JetBrains Mono', monospace; font-size:11px; letter-spacing:.18em; color: var(--blue); }
.chain__name { font-size: 17px; font-weight: 500; }
.chain__sub { font-family:'JetBrains Mono', monospace; font-size: 11px; color: var(--mute); }
.chain__node::after {
  content:""; position:absolute; right: -8px; top: 50%; width: 16px; height: 16px; border-top: 1px solid var(--line); border-right: 1px solid var(--line);
  transform: translateY(-50%) rotate(45deg); background: var(--paper); z-index: 1;
}
.chain__node:last-child::after { display: none; }
.chain__node:hover::after, .chain__node.is-open::after { background: var(--navy-3); border-color: var(--blue); }

.chain__detail {
  background: var(--navy-3);
  color: #fff;
  padding: 40px 48px;
  border: 1px solid var(--line);
  border-top: none;
  display:grid; grid-template-columns: 1fr 1fr; gap: 48px;
}
.chain__detail h3 { color: #fff; margin-bottom: 12px; }
.chain__detail-body { color: rgba(255,255,255,.75); }
.chain__detail-tools { display:flex; flex-wrap:wrap; gap: 8px; margin-top: 20px; }
.tag {
  font-family:'JetBrains Mono', monospace; font-size: 11px;
  padding: 5px 10px; border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.85); border-radius: 2px;
}
@media (max-width: 1000px) {
  .chain { grid-template-columns: repeat(2,1fr); }
  .chain__node { border-bottom: 1px solid var(--line); }
  .chain__node::after { display: none; }
  .chain__detail { grid-template-columns: 1fr; padding: 28px; gap: 24px; }
}

/* === CASE STUDY === */
.case {
  display:grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
@media (max-width: 1000px) { .case { grid-template-columns: 1fr; } }
.case-col {
  padding: 36px;
  border-radius: 2px;
  display:flex; flex-direction: column; gap: 22px;
}
.case-col--before { background: var(--paper-2); border: 1px solid var(--line); }
.case-col--after  { background: var(--navy-3); color: #fff; border: 1px solid var(--blue); }
.case-col__tag { display:flex; align-items:center; gap: 10px; }
.case-col__tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.case-col--after .case-col__tag .dot { background: var(--blue); }
.case-col h3 { font-size: 22px; }
.case-col--after h3 { color: #fff; }
.case-row {
  display:grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.case-col--after .case-row { border-bottom-color: rgba(255,255,255,.10); }
.case-row:last-of-type { border-bottom: none; }
.case-row .k { font-family:'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.case-col--after .case-row .k { color: var(--blue-2); }
.case-col--before .case-row .v { color: var(--ink-2); font-weight: 500; }
.case-col--after .case-row .v { font-weight: 500; }

.case-visual {
  margin-top: 8px;
  border-radius: 2px;
  background: #fff;
  border: 1px dashed rgba(0,0,0,.18);
  height: 160px;
  display:flex; align-items:center; justify-content:center;
  position: relative; overflow: hidden;
}
.case-col--before .case-visual {
  background: #fbf9f0;
  border-style: solid;
  border-color: rgba(13,31,58,.18);
}
.case-visual--chart { padding: 0; height: 200px; }
.case-col--after .case-visual {
  background: #050a14; border-color: rgba(255,255,255,.15);
  height: 180px;
}
.case-visual__label { position: absolute; bottom: 8px; left: 10px; font-family:'JetBrains Mono', monospace; font-size: 10px; color: var(--mute); letter-spacing: .12em; }
.case-col--after .case-visual__label { color: rgba(255,255,255,.55); }

.metrics-strip {
  margin-top: 40px;
  display:grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding-top: 32px; border-top: 1px solid var(--line);
}
@media (max-width: 800px) { .metrics-strip { grid-template-columns: repeat(2,1fr); } }
.metric .v { font-size: clamp(28px, 3vw, 40px); font-weight: 600; color: var(--navy); line-height: 1; letter-spacing: -.02em; }
.metric .v .unit { color: var(--blue); font-size: .55em; margin-left: 4px; }
.metric .k { font-family:'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-top: 8px; }

/* === FOOTER / CONTACT === */
.contact { padding: 140px 0 80px; background: var(--navy-3); color: #fff; position: relative; overflow: hidden; }
.contact__grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
  pointer-events: none;
}
.contact__inner { position: relative; display:grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: end; }
@media (max-width: 1000px) { .contact__inner { grid-template-columns: 1fr; } }
.contact h2 { font-size: clamp(40px, 5vw, 72px); color: #fff; line-height: 1; max-width: 14ch; }
.contact__list { display:flex; flex-direction: column; gap: 12px; }
.contact__row {
  display:grid; grid-template-columns: 120px 1fr 24px; gap: 18px; align-items:center;
  padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.12);
  text-decoration: none; color: #fff;
}
.contact__row:hover { color: var(--blue-2); }
.contact__row .k { font-family:'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .16em; color: rgba(255,255,255,.55); }
.contact__row .v { font-size: 18px; font-weight: 500; }

.footer { padding: 36px 0; background: var(--navy-3); border-top: 1px solid rgba(255,255,255,.10); color: rgba(255,255,255,.55); }
.footer__inner { display:flex; justify-content:space-between; align-items:center; gap: 24px; flex-wrap:wrap; }
.footer .mono { font-size: 11px; letter-spacing: .14em; }

/* === Manifesto strip === */
.manifesto {
  padding: 100px 0;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.manifesto__inner { display:grid; grid-template-columns: auto 1fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .manifesto__inner { grid-template-columns: 1fr; gap: 24px; } }
.manifesto h2 { font-size: clamp(28px, 3vw, 44px); font-weight: 400; max-width: 22ch; color: var(--navy); }
.manifesto h2 em { font-style: normal; color: var(--blue); }

/* === LIVE TRACE === */
.scope-frame {
  background: #050a14;
  border: 1px solid rgba(255,255,255,.12);
  padding: 18px;
  border-radius: 2px;
  position: relative;
}
.scope-frame__head {
  display:flex; justify-content: space-between; align-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: rgba(255,255,255,.55); margin-bottom: 10px;
}
.scope-frame__head .live { color: var(--green); display:flex; align-items:center; gap:6px; }
.scope-frame__head .live::before { content:""; width:6px; height:6px; border-radius:50%; background: var(--green); animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .3 } }
.scope-frame__legend { display:flex; gap: 16px; margin-top: 10px; font-family:'JetBrains Mono',monospace; font-size: 10px; }
.scope-frame__legend span { display:flex; align-items:center; gap: 6px; color: rgba(255,255,255,.65); }
.scope-frame__legend span::before { content:""; width: 10px; height: 2px; }
.scope-frame__legend .l1::before { background: var(--blue-2); }
.scope-frame__legend .l2::before { background: var(--green); }
.scope-frame__legend .l3::before { background: var(--amber); }

/* === Reveals === */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* === Tweaks panel residual (provided by component) === */

/* === Hide scrollbar styling for chain horiz scroll === */
.chain-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.chain-wrap::-webkit-scrollbar { height: 6px; }
.chain-wrap::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
