/* ═══════════════════════════════════════════════════════════

   ATLAS-V1 — feuille de style canonique

   NE PAS MODIFIER en dehors des tokens :root (écrits par bake.mjs).

   Cartographie — océan profond, encre parchemin, accent sable.

   ═══════════════════════════════════════════════════════════ */



:root {

  --ink-rgb: 232, 228, 217;

  --bg: #0f1418;

  --ink: #e8e4d9;

  --muted: #9a9f94;

  --surface: #161c22;

  --line: rgba(var(--ink-rgb), 0.14);

  --chart: rgba(var(--ink-rgb), 0.08);



  --accent: #f8cf9f;

  --accent-ink: #1a1915;



  --sans: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;

  --mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(20px, 4vw, 64px);

  --t-xl: clamp(44px, 8vw, 118px);

  --t-l: clamp(30px, 4.2vw, 62px);

  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);

  --ease-inout: cubic-bezier(0.77, 0, 0.175, 1);

}

html[data-theme="light"] {

  --ink-rgb: 22, 28, 34;

  --bg: #eef1ec;

  --ink: #161c22;

  --muted: #5c6560;

  --surface: #ffffff;

  --line: rgba(var(--ink-rgb), 0.12);

  --chart: rgba(var(--ink-rgb), 0.06);

}



*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {

  background: var(--bg); color: var(--ink);

  font-family: var(--sans); font-size: 18px; line-height: 1.35;

  -webkit-font-smoothing: antialiased; overflow-x: clip;

  touch-action: pan-y;

}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ol, ul { list-style: none; }

h1, h2, h3 { font-weight: 400; }

mark { background: none; color: inherit; }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }

.muted { color: var(--muted); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 300; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; }

.skip:focus { left: 12px; }



.ax-chart-bg {

  position: fixed; inset: 0; z-index: -1; pointer-events: none;

  background:

    radial-gradient(ellipse 80% 50% at 50% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%),

    repeating-linear-gradient(0deg, transparent, transparent 39px, var(--chart) 39px, var(--chart) 40px),

    repeating-linear-gradient(90deg, transparent, transparent 39px, var(--chart) 39px, var(--chart) 40px);

  opacity: 0.55;

}



.si-loader {

  position: fixed; inset: 0; z-index: 400; display: flex; flex-direction: column;

  align-items: center; justify-content: center; gap: 18px; background: var(--bg);

  transition: clip-path .9s var(--ease-inout); clip-path: inset(0 0 0 0);

}

.si-loader p { font-size: 20px; }

.si-loader span { width: 120px; height: 1px; background: var(--line); overflow: hidden; }

.si-loader i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out); }

.si-loader.run i { transform: scaleX(1); }

.si-loader.out { clip-path: inset(0 0 100% 0); }



.scene { position: relative; height: calc(var(--len, 2) * 100vh); }

.sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

.rv { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }

.rv.in { opacity: 1; transform: none; }



.ax-bar {

  position: fixed; top: 0; left: 0; right: 0; z-index: 100;

  display: flex; align-items: center; justify-content: space-between; gap: 16px;

  padding: 16px var(--gutter); transform: translateY(-100%);

  transition: transform .6s var(--ease-out), background .35s;

}

body.is-ready .ax-bar { transform: none; }

body.is-scrolled .ax-bar { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); }

.ax-wordmark { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }

.ax-nav { display: flex; gap: 26px; }

.ax-cta { background: var(--accent); color: var(--accent-ink); padding: 11px 18px; border-radius: 2px; }



.ax-hero .sticky {

  display: grid; grid-template-columns: 1.4fr 1fr 0.55fr; grid-template-rows: 1fr;

  background: var(--surface); border-bottom: 1px solid var(--line);

}

.ax-map-stage {

  position: relative; overflow: hidden; border-right: 1px solid var(--line);

  color: color-mix(in srgb, var(--ink) 55%, var(--accent));

}

.ax-map-track {

  display: flex; width: 200%; height: 100%; will-change: transform;

}

.ax-planisphere { flex: 0 0 50%; width: 50%; height: 100%; object-fit: cover; }

.ax-map-frame {

  position: absolute; inset: 12% 8%; border: 1px dashed var(--line); pointer-events: none;

}

.ax-hero-copy {

  display: flex; flex-direction: column; justify-content: center; padding: 8vh var(--gutter); z-index: 2;

}

.ax-title { font-size: var(--t-xl); line-height: 0.96; letter-spacing: -0.04em; margin: 18px 0; }

.ax-title span { display: block; }

.ax-title em { font-style: normal; color: var(--accent); }

body:not(.static) .ax-title span { opacity: 0; transform: translateY(36%); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }

body.is-ready .ax-title span { opacity: 1; transform: none; }

body.is-ready .ax-title span:nth-child(2) { transition-delay: .1s; }

.ax-pos { color: var(--muted); max-width: 26ch; }

.ax-hero-thumb { overflow: hidden; border-left: 1px solid var(--line); }

.ax-hero-thumb img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }



.ax-manifesto .sticky { display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gutter); background: var(--bg); }

.ax-chapter { margin-bottom: 20px; }

.ax-man-text { font-size: clamp(28px, 4.2vw, 52px); letter-spacing: -0.03em; line-height: 1.18; max-width: 18ch; }

.ax-mark { box-shadow: inset 0 -0.35em 0 color-mix(in srgb, var(--accent) 45%, transparent); }



.ax-proof { padding: 16vh var(--gutter) 12vh; }

.ax-head { margin-bottom: 40px; }

.ax-h2 { font-size: var(--t-l); letter-spacing: -0.03em; margin: 10px 0; }

.ax-sub { color: var(--muted); max-width: 40ch; }

.ax-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.ax-card-img { overflow: hidden; aspect-ratio: 4/5; background: var(--surface); border: 1px solid var(--line); }

.ax-card:nth-child(3n) .ax-card-img { aspect-ratio: 5/4; }

.ax-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }

.ax-card:hover img { transform: scale(1.04); }

.ax-card figcaption { display: flex; justify-content: space-between; gap: 8px; padding: 10px 2px 0; font-size: 14px; }

.ax-bento { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 14px; }

.ax-big { grid-column: span 2; }

.ax-tall { grid-row: span 2; }

.ax-tile { background: var(--surface); border: 1px solid var(--line); }

.ax-tile-img { aspect-ratio: 3/2; overflow: hidden; }

.ax-tall .ax-tile-img { aspect-ratio: 3/4; height: calc(100% - 70px); }

.ax-tile-img img { width: 100%; height: 100%; object-fit: cover; }

.ax-tile figcaption { padding: 12px; display: flex; flex-direction: column; gap: 4px; }



.ax-motto .sticky { display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gutter); background: var(--surface); }

.ax-words { display: grid; gap: 28px; margin-top: 36px; }

.ax-mw { opacity: .2; transform: translateX(-10px); transition: opacity .45s, transform .45s; }

.ax-mw.on { opacity: 1; transform: none; }

.ax-mw-word { font-size: clamp(40px, 6vw, 84px); letter-spacing: -0.04em; line-height: 1; }



.ax-intro { padding: 14vh var(--gutter) 5vh; }

.ax-intro-line { font-size: var(--t-l); letter-spacing: -0.03em; margin-bottom: 24px; }

.ax-accent { color: var(--accent); }

.ax-band { overflow: hidden; max-height: 42vh; border: 1px solid var(--line); }

.ax-band img { width: 100%; height: 100%; object-fit: cover; }



.ax-route .sticky {

  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 48px);

  align-items: center; padding: 10vh var(--gutter); background: var(--bg);

}

.ax-route-viz {

  position: relative; border: 1px solid var(--line); background: var(--surface);

  aspect-ratio: 12/5.2; overflow: hidden;

}

.ax-route-svg { width: 100%; height: 100%; display: block; color: color-mix(in srgb, var(--ink) 40%, transparent); }

.ax-route-path { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 35%, transparent)); }

.ax-stop {

  fill: var(--surface); stroke: var(--accent); stroke-width: 2;

  opacity: 0.45; transition: opacity .35s, r .35s;

}

.ax-stop.on { opacity: 1; }

.ax-escales { display: flex; flex-direction: column; gap: 22px; }

.ax-escale {

  display: flex; gap: 16px; align-items: flex-start;

  border-left: 2px solid var(--line); padding-left: 18px;

  transition: border-color .35s, opacity .35s;

}

.ax-escale.on { border-color: var(--accent); }

.ax-escale-pin {

  flex-shrink: 0; width: 2.2rem; height: 2.2rem; display: grid; place-items: center;

  border: 1px solid var(--line); color: var(--accent); font-size: 11px;

}

.ax-escale h3 { font-size: clamp(26px, 3.5vw, 42px); letter-spacing: -0.03em; margin: 6px 0 8px; }

.ax-escale p { color: var(--muted); max-width: 32ch; font-size: 16px; }

.ax-route-cta {

  grid-column: 1 / -1; justify-self: start; margin-top: 8px;

  border: 1px solid var(--line); padding: 12px 18px; border-radius: 2px;

  opacity: 0; pointer-events: none;

}



.ax-quote { padding: 16vh var(--gutter); border-top: 1px solid var(--line); }

.ax-q { font-size: clamp(26px, 3.6vw, 46px); letter-spacing: -0.03em; max-width: 16ch; margin-bottom: 28px; }

.ax-sign { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: baseline; }

.ax-fig { font-size: clamp(44px, 6vw, 88px); letter-spacing: -0.04em; color: var(--accent); line-height: 1; }

.ax-fig-unit { font-size: .35em; color: var(--muted); margin-left: .1em; }



.ax-obj .sticky { display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gutter); }

.ax-obj-list { display: grid; gap: 12px; margin-bottom: 32px; }

.ax-obj-list li { font-size: clamp(22px, 3vw, 38px); letter-spacing: -0.025em; opacity: 0; transform: translateY(12px); }

.ax-finale { font-size: clamp(28px, 4vw, 52px); opacity: 0; }

.ax-pill { display: inline-block; padding: .05em .35em; background: var(--accent); color: var(--accent-ink); border-radius: 2px; }



.ax-footer { padding: 14vh var(--gutter) 40px; border-top: 1px solid var(--line); }

.ax-mail { display: inline-block; margin: 14px 0; font-size: clamp(28px, 5vw, 64px); letter-spacing: -0.035em; border-bottom: 1px solid var(--line); }

.ax-mail:hover { border-color: var(--accent); color: var(--accent); }

.ax-book { display: inline-flex; margin: 20px 0 36px; padding: 12px 18px; border-radius: 2px; background: var(--accent); color: var(--accent-ink); }

.ax-giant { font-size: clamp(36px, 9vw, 120px); letter-spacing: -0.05em; color: color-mix(in srgb, var(--ink) 14%, transparent); margin: 6vh 0; white-space: nowrap; overflow: hidden; }

.ax-bottom { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 20px; }

.ax-bottom a { margin-right: 12px; }



@media (max-width: 960px) {

  .ax-hero .sticky { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }

  .ax-map-stage { min-height: 38vh; border-right: 0; border-bottom: 1px solid var(--line); }

  .ax-hero-thumb { min-height: 32vh; border-left: 0; }

  .ax-nav { display: none; }

  .ax-grid, .ax-bento { grid-template-columns: 1fr 1fr; }

  .ax-big, .ax-tall { grid-column: span 1; grid-row: span 1; }

  .ax-route .sticky { grid-template-columns: 1fr; }

  .ax-route-viz { order: -1; }

  .ax-escales { gap: 28px; }

}



@media (max-width: 520px) {

  .ax-grid, .ax-bento { grid-template-columns: 1fr; }

}



body.static #axMapTrack { transform: none !important; }

body.static .ax-mw, body.static .ax-obj-list li, body.static .ax-finale, body.static .ax-route-cta, body.static .ax-escale { opacity: 1; transform: none; pointer-events: auto; border-color: var(--accent); }

body.static .ax-stop { opacity: 1; }

body.static #axRoutePath { stroke-dashoffset: 0 !important; }


