/* ============================================================
   gokpinar.ch v2 — monde 3D plein écran, contenu en superposition
   Couleurs : noir chaud, blanc cassé, rouge sombre. Aucun dégradé.
   ============================================================ */

:root {
  --bg: #0c0b0b;
  --bg-2: #141212;
  --line: #262222;
  --line-2: #3a3333;
  --text: #efeae4;
  --text-2: #a39c95;
  --text-3: #6b6560;
  --red: #b5121b;
  --red-2: #d3242c;
  --red-ink: #ffffff;

  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --monof: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --pad: clamp(20px, 5vw, 80px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::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(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor .prow { cursor: none; }

a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
canvas { display: block; }
::selection { background: var(--red); color: var(--red-ink); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }

.mono {
  font-family: var(--monof);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-2);
}

.skip { position: absolute; left: 12px; top: -60px; background: var(--red); color: #fff; padding: 10px 14px; z-index: 300; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- Monde 3D + grain ---------- */
#world {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  touch-action: pan-y;
}
.grain {
  position: fixed; inset: -50%; z-index: 2; pointer-events: none;
  width: 200%; height: 200%;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-5%, 3%); } 40% { transform: translate(3%, -6%); }
  60% { transform: translate(-4%, -2%); } 80% { transform: translate(6%, 4%); } 100% { transform: translate(0, 0); }
}

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: grid; grid-template-rows: auto 1fr auto auto;
  padding: var(--pad);
}
.loader.is-done { pointer-events: none; }
.loader__name { align-self: start; }
.loader__count {
  align-self: end;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(96px, 22vw, 320px); line-height: .85; letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
}
.loader__bar { height: 2px; background: var(--line); margin: 28px 0 16px; }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--red); }
.loader__hint { align-self: end; }

/* ---------- Curseur ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.cursor__dot {
  position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--text); transition: transform .25s var(--ease), background .25s;
}
.cursor__ring {
  position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--text-2);
  transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.cursor__label {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0);
  font-family: var(--monof); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; white-space: nowrap; transition: transform .3s var(--ease);
}
.cursor.is-hover .cursor__ring { transform: scale(1.6); border-color: var(--text); }
.cursor.is-hover .cursor__dot { transform: scale(.5); }
.cursor.is-view .cursor__ring, .cursor.is-copy .cursor__ring { transform: scale(2.6); background: var(--red); border-color: var(--red); }
.cursor.is-view .cursor__dot, .cursor.is-copy .cursor__dot { transform: scale(0); }
.cursor.is-view .cursor__label, .cursor.is-copy .cursor__label { transform: translate(-50%, -50%) scale(1); }
.cursor.is-down .cursor__ring { transform: scale(.8); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 32px;
  padding: 22px var(--pad);
  mix-blend-mode: difference;
}
.nav__logo { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.03em; display: inline-flex; align-items: center; gap: 6px; }
.nav__logo i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.nav__status { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.nav__pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.nav__links { display: flex; gap: 28px; justify-self: end; }
.nav__links a { font-size: 14px; font-weight: 500; position: relative; padding-bottom: 2px; }
.nav__links a sup { font-family: var(--monof); font-size: 10px; margin-right: 6px; color: var(--text-2); }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__burger { display: none; width: 44px; height: 44px; position: relative; justify-self: end; }
.nav__burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text); transition: transform .35s var(--ease), top .35s var(--ease); }
.nav__burger span:first-child { top: 17px; } .nav__burger span:last-child { top: 25px; }
.nav__burger.is-open span:first-child { top: 21px; transform: rotate(45deg); }
.nav__burger.is-open span:last-child { top: 21px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--red);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  padding: var(--pad);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu a { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 12vw, 96px); line-height: 1; letter-spacing: -.04em; color: #fff; }
.menu a sup { font-family: var(--monof); font-size: 13px; letter-spacing: .1em; margin-right: 12px; opacity: .7; vertical-align: top; }
.menu__foot { color: #fff; opacity: .7; margin-top: 24px; }

/* ---------- Contenu ---------- */
.content { position: relative; z-index: 3; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 110px var(--pad) 40px;
}
.hero__eyebrow { justify-self: start; }
.hero__intro {
  justify-self: start; align-self: start;
  max-width: 420px; margin-top: 10px;
  font-size: 16px; color: var(--text-2);
}
.hero__title {
  align-self: end;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(52px, 8.6vw, 136px);
  line-height: .9; letter-spacing: -.045em;
  display: grid; margin: 0 0 24px -0.04em;
}
.hero__word { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__word .char { display: inline-block; will-change: transform; }
.hero__bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hero__cta { display: inline-flex; align-items: center; gap: 14px; font-weight: 600; font-size: 15px; }
.hero__cta-ring { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--red); transition: background .3s, transform .3s var(--ease); }
.hero__cta:hover .hero__cta-ring { background: var(--red); transform: scale(1.3); }
.hero__drag { display: inline-flex; align-items: center; gap: 10px; }
.hero__drag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: pulse 1.6s infinite; }

/* Réveil des textes */
[data-reveal], [data-reveal="lines"] .line-inner, [data-words] .w { will-change: transform, opacity; }
[data-reveal] { opacity: 0; transform: translateY(28px); }
[data-reveal="lines"] { opacity: 1; transform: none; }
[data-reveal="lines"] .line { display: block; overflow: hidden; }
[data-reveal="lines"] .line-inner { display: block; }
[data-split] .char { display: inline-block; }
[data-words] .w { display: inline-block; opacity: .15; transition: opacity .3s; }
[data-words] .w.is-on { opacity: 1; }

/* ---------- Sections ---------- */
.section {
  position: relative;
  min-height: 100svh;
  padding: clamp(100px, 14vw, 180px) var(--pad);
}
.section__head { margin-bottom: clamp(36px, 5vw, 72px); }
.section > *:not(.section__head) { max-width: 820px; }
.plist, .tl, .apropos__cols, .form { max-width: 820px; }
.projets .section__head, .plist { max-width: 680px; }
.section__num { color: var(--red); display: block; margin-bottom: 14px; }
.section__num::after { content: ""; display: inline-block; width: 40px; height: 1px; background: var(--red); margin-left: 12px; vertical-align: middle; }
.section__title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(40px, 6vw, 88px); line-height: .92; letter-spacing: -.04em;
  overflow: hidden; padding-bottom: .08em; margin-left: -0.03em;
}
.section__sub { color: var(--text-2); font-size: 18px; max-width: 480px; margin-top: 18px; }

/* ---------- Projets ---------- */
.projets { padding-bottom: 20vh; }
.plist { border-top: 1px solid var(--line); }
.prow {
  position: relative;
  display: grid; grid-template-columns: 70px 1fr auto 40px; align-items: center; gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  transition: color .3s, padding .4s var(--ease);
}
.prow::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 0;
  background: var(--red); transform: scaleY(0); transform-origin: bottom;
  transition: transform .45s var(--ease); z-index: -1;
}
.prow:hover::before, .prow.is-open::before { transform: scaleY(1); transform-origin: top; }
.prow:hover, .prow.is-open { color: #fff; padding-left: 20px; padding-right: 20px; }
.prow:hover .mono, .prow.is-open .mono { color: #fff; opacity: .8; }
.prow__num { color: var(--text-3); }
.prow__title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(26px, 3.6vw, 54px); line-height: .98; letter-spacing: -.03em;
}
.prow__kind { white-space: nowrap; }
.prow__arrow { font-size: 24px; justify-self: end; transition: transform .35s var(--ease); }
.prow:hover .prow__arrow { transform: translate(4px, -4px); }

/* Panneau flottant (desktop) */
.prow__panel {
  position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none;
  width: 360px; opacity: 0; transform: scale(.9);
  transition: opacity .3s, transform .4s var(--ease);
}
.prow.is-hover .prow__panel { opacity: 1; transform: scale(1); }
.screen {
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .6);
  color: var(--text);
}
.screen--phone { width: 220px; margin: 0 auto; border-radius: 28px; aspect-ratio: 9 / 18; display: flex; }
.screen__top { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 10px; }
.screen__top i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.screen__top span { margin-left: auto; }
.screen__body { padding: 22px; display: grid; gap: 14px; }
.screen__body--grid { grid-template-columns: 1fr 1fr; }
.screen__body--center { align-content: center; justify-items: center; text-align: center; flex: 1; }
.screen__body--code { gap: 6px; font-size: 11px; text-transform: none; letter-spacing: 0; color: var(--text); }
.screen__body--code span:last-child { color: var(--red-2); }
.screen__kicker { font-family: var(--monof); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--red-2); }
.screen__big { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: .95; letter-spacing: -.04em; }
.screen__meta { font-size: 12px; color: var(--text-2); }
.tile { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 14px; display: grid; gap: 2px; }
.tile b { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -.03em; line-height: 1; }
.tile span { font-size: 11px; color: var(--text-2); }
.shutter { width: 90px; height: 90px; border-radius: 50%; border: 3px solid var(--text); display: grid; place-items: center; }
.shutter i { width: 66px; height: 66px; border-radius: 50%; background: var(--red); }

/* Détail (ouvert au clic, visible sur mobile) */
.prow__detail {
  grid-column: 1 / -1;
  display: grid; gap: 12px;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .6s var(--ease), opacity .4s, margin .4s;
  max-width: 720px; color: inherit;
}
.prow.is-open .prow__detail { max-height: 420px; opacity: 1; margin-top: 16px; }
.prow__detail p { font-size: 16px; line-height: 1.55; }
.prow__detail a { font-weight: 600; border-bottom: 1px solid currentColor; width: fit-content; }

/* ---------- Parcours ---------- */
.tl { border-top: 1px solid var(--line); max-width: 980px; }
.tl__item { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 36px 0; border-bottom: 1px solid var(--line); }
.tl__year { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 4vw, 52px); line-height: .9; letter-spacing: -.04em; color: var(--red); }
.tl__body h3 { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.02em; margin-bottom: 8px; }
.tl__body p { color: var(--text-2); max-width: 560px; }

/* ---------- À propos ---------- */
.apropos__big {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(24px, 3.4vw, 46px); line-height: 1.15; letter-spacing: -.025em;
  max-width: 820px; margin-bottom: clamp(40px, 6vw, 90px);
}
.apropos__cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 100px); align-items: start; }
.apropos__cols > p { color: var(--text-2); font-size: 18px; }
.facts { border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 100px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dd { font-size: 15px; }

/* ---------- Contact ---------- */
.contact { display: grid; align-content: center; }
.contact__lead { color: var(--text-2); font-size: 18px; max-width: 520px; margin-bottom: 36px; }
.contact__mail {
  display: block; overflow: hidden; padding-bottom: .1em;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(18px, 4.4vw, 64px); line-height: 1; letter-spacing: -.035em;
  width: fit-content; max-width: 100%; white-space: nowrap;
  position: relative;
}
.contact__mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.contact__mail:hover::after { transform: scaleX(1); transform-origin: left; }
.contact__copied { min-height: 1.6em; color: var(--red-2); margin: 10px 0 40px; }

.form { display: grid; gap: 16px; max-width: 680px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.form input, .form select, .form textarea {
  width: 100%; padding: 14px 0;
  background: transparent; color: var(--text);
  border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0;
  font: inherit; font-size: 17px; transition: border-color .25s;
}
.form select { appearance: none; -webkit-appearance: none; }
.form select option { background: var(--bg); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--text); }
.form textarea { resize: vertical; min-height: 100px; }
.form__note { text-transform: none; letter-spacing: 0; font-size: 13px; min-height: 1.4em; }
.form__note.is-ok { color: var(--red-2); } .form__note.is-err { color: #ff8a80; }

.btn {
  justify-self: start;
  position: relative; overflow: hidden;
  padding: 18px 34px; border-radius: 999px;
  background: var(--text); color: var(--bg);
  font-weight: 600; font-size: 15px; line-height: 1;
}
.btn::before { content: ""; position: absolute; inset: 0; background: var(--red); transform: translateY(100%); transition: transform .4s var(--ease); }
.btn:hover::before { transform: none; }
.btn:hover { color: #fff; }
.btn span { position: relative; }

.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px;
  margin-top: clamp(80px, 12vw, 160px); padding-top: 28px;
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid var(--line);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav { grid-template-columns: auto 1fr auto; }
  .nav__links { display: none; }
  .nav__status { display: none; }
  .nav__burger { display: block; }
  .hero { padding-top: 96px; }
  .hero__intro { justify-self: start; text-align: left; max-width: 420px; margin-top: 14px; }
  .hero__title { font-size: clamp(48px, 14vw, 110px); }
  .prow { grid-template-columns: 44px 1fr 32px; gap: 14px; padding: 22px 0; }
  .prow__kind { grid-column: 2; grid-row: 2; }
  .prow__arrow { grid-column: 3; grid-row: 1; }
  .prow__panel { display: none; }
  .prow:hover { padding-left: 0; padding-right: 0; }
  .prow.is-open { padding-left: 16px; padding-right: 16px; }
  .prow:hover::before { transform: scaleY(0); }
  .prow.is-open::before { transform: scaleY(1); }
  .prow:hover { color: inherit; } .prow:hover .mono { color: var(--text-2); opacity: 1; }
  .prow.is-open, .prow.is-open .mono { color: #fff; }
  .tl__item { grid-template-columns: 1fr; gap: 10px; }
  .apropos__cols { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
  .hero__bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
}
@media (hover: none) {
  .grain { animation: none; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain, .nav__pulse, .hero__drag-dot { animation: none; }
  [data-reveal], [data-reveal="lines"] .line-inner, [data-split] .char { opacity: 1 !important; transform: none !important; }
  [data-words] .w { opacity: 1; }
}

/* ---------- Bulle de l'avatar ---------- */
.bubble {
  position: fixed; left: 0; top: 0; z-index: 4; pointer-events: none;
  background: var(--text); color: var(--bg);
  font-family: var(--body); font-size: 15px; font-weight: 500; line-height: 1.35;
  padding: 12px 16px; border-radius: 16px 16px 16px 4px;
  max-width: 300px; white-space: normal; width: max-content;
  opacity: 0; scale: .8; transform-origin: bottom left;
  transition: opacity .25s, scale .35s var(--ease);
  margin-top: -14px;
}
.bubble.is-on { opacity: 1; scale: 1; }
.bubble::after { content: ""; position: absolute; left: 0; bottom: -6px; border: 6px solid transparent; border-top-color: var(--text); border-left-color: var(--text); }
.footer__egg { color: var(--text-2); }
.footer__egg:hover { color: var(--red-2); }
@media (max-width: 960px) {
  .bubble { font-size: 12px; padding: 8px 11px; max-width: 180px; white-space: normal; }
}

/* ---------- v4 : barre d'infos, captures réelles ---------- */
.nav { grid-template-columns: auto 1fr auto; }
.nav__info { display: flex; gap: 40px; justify-self: start; margin-left: 24px; }
.nav__info div { display: grid; gap: 2px; }
.nav__info .mono { font-size: 10px; color: var(--text-3); }
.nav__info b { font-weight: 500; font-size: 13px; display: inline-flex; align-items: center; gap: 8px; }
.nav__info i { font-style: normal; color: var(--text-2); font-variant-numeric: tabular-nums; }
.nav__links { justify-self: end; }
.shot { position: relative; width: 420px; }
.shot__top { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: var(--bg-2); border: 1px solid var(--line-2); border-bottom: 0; border-radius: 10px 10px 0 0; font-size: 10px; }
.shot__top i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.shot__top span { margin-left: auto; }
.shot__img { display: block; width: 100%; border: 1px solid var(--line-2); border-radius: 0 0 10px 10px; box-shadow: 0 30px 60px rgba(0, 0, 0, .6); }
.shot__phone { position: absolute; right: -36px; bottom: -28px; width: 96px; border-radius: 12px; border: 3px solid #1c1919; box-shadow: 0 20px 40px rgba(0, 0, 0, .6); }
.detail__shot { display: block; width: 100%; max-width: 520px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .25); }
.prow.is-open .prow__detail { max-height: 900px; }
@media (max-width: 1240px) { .nav__info { display: none; } }
@media (max-width: 960px) { .nav { grid-template-columns: auto 1fr auto; } }

/* ============================================================
   v5 : le voyage
   ============================================================ */
.journey { position: relative; height: 720vh; z-index: 3; }
/* la scène est fixée (pas sticky : cassé dans certains navigateurs intégrés iOS) ; la page haute sert juste de piste de scroll */
.stage { position: fixed; top: 0; left: 0; right: 0; bottom: 0; height: 100%; overflow: hidden; z-index: 3; }
.station, .pcard, .tcard {
  position: absolute; pointer-events: none;
  opacity: 0; visibility: hidden;
  transition: opacity .45s ease, visibility .45s;
}
.station.is-in, .pcard.is-in, .tcard.is-in { opacity: 1; visibility: visible; }
/* les enfants montent derrière un masque, en décalé */
.station > *, .pcard > *, .tcard > * {
  transform: translateY(14px); opacity: 0;
  transition: transform .62s var(--ease), opacity .45s ease;
}
.station.is-in > *, .pcard.is-in > *, .tcard.is-in > * { transform: none; opacity: 1; }
.station.is-in > *:nth-child(2), .pcard.is-in > *:nth-child(2), .tcard.is-in > *:nth-child(2) { transition-delay: .07s; }
.station.is-in > *:nth-child(3), .pcard.is-in > *:nth-child(3), .tcard.is-in > *:nth-child(3) { transition-delay: .13s; }
.station.is-in > *:nth-child(4), .pcard.is-in > *:nth-child(4), .tcard.is-in > *:nth-child(4) { transition-delay: .19s; }
.station.is-in > *:nth-child(5), .pcard.is-in > *:nth-child(5), .tcard.is-in > *:nth-child(5) { transition-delay: .25s; }
.station--hero > * { transform: none; opacity: 1; }
.station a, .pcard a { pointer-events: auto; }
.station--hero { left: var(--pad); right: var(--pad); bottom: 56px; top: 200px; display: grid; grid-template-rows: auto 1fr auto; }
.station--hero .hero__title { align-self: end; font-size: clamp(56px, 10vw, 160px); margin-bottom: 16px; }
.station--hero .hero__intro { margin: 0; max-width: 460px; }
.hero__scrollhint { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; }
.hero__scrollhint i { display: block; width: 1px; height: 36px; background: var(--text-3); position: relative; overflow: hidden; }
.hero__scrollhint i::after { content: ""; position: absolute; inset: 0; background: var(--red); transform: translateY(-100%); animation: down 1.8s infinite var(--ease); }
@keyframes down { to { transform: translateY(100%); } }

.station--label { top: 50%; transform: translateY(-50%); max-width: 520px; }

/* ---------- Étape « d'où il vient » : le globe occupe le centre, le texte passe en bas ---------- */
.station--origin {
  left: var(--pad); right: var(--pad); bottom: 11vh; top: auto;
  display: grid; justify-items: center; gap: 12px; text-align: center;
}
.origin__line {
  margin: 0; font-size: clamp(26px, 4.2vw, 54px); line-height: 1.1;
  letter-spacing: -.025em; font-weight: 500;
}
.origin__line b { font-weight: 700; color: var(--red); }
.origin__sub {
  margin: 0; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3);
}

/* ---------- Étiquettes accrochées aux repères du globe ---------- */
.glabels { position: fixed; inset: 0; pointer-events: none; z-index: 6; }
.glabel {
  position: absolute; top: 0; left: 0; --f: 1;
  display: flex; align-items: center; gap: 8px;
  padding: 5px 11px 5px 9px; border-radius: 100px;
  background: rgba(12, 11, 11, .74); border: 1px solid rgba(239, 234, 228, .16);
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  white-space: nowrap; font-size: 11px; letter-spacing: .06em;
  opacity: 0; transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.glabel i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 3px rgba(181, 18, 27, .22);
}
.glabel b { font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.glabel span { color: var(--text-3); }
.glabel--ch { transform: translate(-50%, -190%) scale(.92); }
.glabel--tr { transform: translate(-50%, 92%) scale(.92); }
.glabel--ch.is-on { opacity: var(--f); transform: translate(-50%, -190%) scale(1); }
.glabel--tr.is-on { opacity: var(--f); transform: translate(-50%, 92%) scale(1); }
@media (max-width: 700px) {
  .glabel { font-size: 10px; padding: 4px 9px 4px 7px; gap: 6px; }
  .glabel span { display: none; }
  .station--origin { bottom: 13vh; }
}
.station--left { left: var(--pad); }
.station--right { right: var(--pad); text-align: right; }
.station--right .section__num::after { display: none; }
.station--center { left: var(--pad); right: auto; max-width: 560px; top: 50%; transform: translateY(-50%); text-align: left; display: grid; justify-items: start; }
.station--center .section__num::after { display: none; }
.station--center .contact__mail { margin-top: 18px; }
.station__down { margin-top: 28px; display: inline-flex; align-items: center; gap: 10px; }
.station__down i { width: 1px; height: 28px; background: var(--text-3); }
.station--about { top: 50%; transform: translateY(-50%); max-width: 560px; }
.station--about .section__title { font-size: clamp(36px, 5vw, 72px); margin-bottom: 14px; }
.station--about .about__big { font-size: clamp(20px, 2.2vw, 30px); margin-bottom: 16px; }
.about__text { color: var(--text-2); margin-bottom: 14px; }
.about__stack { font-size: 11px; }

.pcard { top: 50%; transform: translateY(-50%); width: min(440px, 80vw); display: grid; gap: 10px; }
.pcard--left { right: var(--pad); text-align: right; justify-items: end; }
.pcard--right { left: var(--pad); }
.pcard__title { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 5vw, 72px); line-height: .95; letter-spacing: -.04em; }
.pcard__desc { color: var(--text-2); font-size: 16px; }
.pcard__tags { font-size: 11px; }
.pcard__link { font-weight: 600; color: var(--red-2); width: fit-content; }
.pcard__num { color: var(--red-2); }

.tcard { top: 50%; transform: translateY(-50%); width: min(420px, 80vw); display: grid; gap: 8px; }
.tcard--left { right: var(--pad); text-align: right; justify-items: end; }
.tcard--right { left: var(--pad); }
.tcard__year { font-family: var(--display); font-weight: 800; font-size: clamp(48px, 7vw, 96px); line-height: .9; letter-spacing: -.04em; color: var(--red-2); }
.tcard h3 { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.02em; }
.tcard p { color: var(--text-2); font-size: 15px; }

.progress { position: fixed; left: var(--pad); bottom: 24px; z-index: 60; display: grid; gap: 8px; width: 180px; mix-blend-mode: difference; }
.progress__track { height: 1px; background: var(--line-2); }
.progress__track i { display: block; height: 100%; background: var(--text); transform: scaleX(0); transform-origin: left; }

.fin { position: relative; z-index: 6; background: var(--bg); border-top: 1px solid var(--line); padding: clamp(80px, 10vw, 140px) var(--pad); }
.fin__inner { max-width: 820px; }
.fin__title { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 6vw, 88px); letter-spacing: -.04em; line-height: .92; margin-bottom: 36px; }

/* ---------- Mobile d'abord : monde en haut, panneau de texte opaque en bas ---------- */
@media (max-width: 960px) {
  .journey { height: 620vh; }
  .station--hero { top: 190px; bottom: 28px; left: 20px; right: 20px; }
  .station--hero .hero__title { font-size: clamp(46px, 14.5vw, 96px); margin-bottom: 12px; }
  .station--hero .hero__intro { font-size: 15px; max-width: none; }
  .station--hero .hero__eyebrow { font-size: 11px; }
  .station--label, .station--about, .station--center, .pcard, .tcard {
    top: auto; bottom: 0; left: 0; right: 0; transform: none; width: auto; max-width: none;
    text-align: left; justify-items: start;
    background: #0c0b0b; border-top: 1px solid var(--line);
    padding: 18px 20px calc(22px + env(safe-area-inset-bottom));
    box-shadow: 0 -30px 60px rgba(12, 11, 11, .9);
  }
  .station--right .section__num::after { display: inline-block; }
  .station--label .section__title, .station--about .section__title { font-size: clamp(34px, 10vw, 56px); margin-bottom: 8px; }
  .section__sub { font-size: 15px; margin-top: 8px; }
  .pcard { gap: 6px; }
  .pcard__title { font-size: clamp(30px, 9vw, 48px); }
  .pcard__desc { font-size: 14.5px; line-height: 1.5; }
  .pcard__tags { font-size: 10px; }
  .tcard { gap: 4px; }
  .tcard__year { font-size: clamp(40px, 12vw, 64px); }
  .tcard h3 { font-size: 20px; }
  .tcard p { font-size: 14px; }
  .station--about .about__big { font-size: 18px; line-height: 1.3; margin-bottom: 10px; }
  .about__text { font-size: 14px; margin-bottom: 8px; }
  .about__stack { font-size: 10px; }
  .station--center .section__title { font-size: clamp(30px, 9vw, 48px); }
  .station--center .contact__mail { font-size: clamp(17px, 5.6vw, 30px); margin-top: 10px; white-space: nowrap; }
  .station__down { margin-top: 14px; }
  .progress { display: none; }
  .bubble { font-size: 12px; padding: 8px 11px; max-width: 200px; white-space: normal; }
}

/* ---------- Bulle au-dessus de la tête : stable, lisible ---------- */
.bubble {
  position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none;
  background: var(--text); color: var(--bg);
  font-family: var(--body); font-size: 15px; font-weight: 500; line-height: 1.35;
  padding: 12px 16px; border-radius: 16px 16px 16px 4px;
  width: max-content; max-width: 300px; white-space: normal;
  opacity: 0; transition: opacity .25s;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
  will-change: transform;
}
.bubble.is-on { opacity: 1; }
.bubble.is-pop { animation: pop .35s var(--ease); }
@keyframes pop { 0% { scale: .85; } 100% { scale: 1; } }
.bubble::after { content: ""; position: absolute; left: 0; bottom: -7px; border: 7px solid transparent; border-top-color: var(--text); border-left-color: var(--text); }
.bubble.is-left { border-radius: 16px 16px 4px 16px; }
.bubble.is-left::after { left: auto; right: 0; border-left-color: transparent; border-right-color: var(--text); }
/* vignette cinéma : assombrit légèrement les bords de l'image 3D */
.vignette { position: fixed; inset: 0; z-index: 2; pointer-events: none; box-shadow: inset 0 0 160px 40px rgba(0, 0, 0, .55); }
@media (max-width: 960px) {
  .bubble { font-size: 12.5px; padding: 9px 12px; max-width: min(210px, 62vw); }
}

/* ---------- Section 1 : studio portrait ---------- */
.station--hero { display: block; top: auto; bottom: 0; left: 0; right: 0; padding: 0 var(--pad) calc(28px + env(safe-area-inset-bottom)); }
.hero__bottom { display: grid; gap: 8px; max-width: 560px; }
.station--hero .hero__title { font-size: clamp(30px, 4.2vw, 56px); line-height: 1; letter-spacing: -.04em; margin: 0; }
.station--hero .hero__title .hero__word { display: inline-block; }
.station--hero .hero__intro { font-size: 14px; max-width: 460px; margin: 0; }
.hero__scrollhint { margin-top: 6px; }
.nav__links { gap: 34px; }
.nav__links a { font-family: var(--monof); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.nav__links a sup { display: none; }
@media (max-width: 960px) {
  .station--hero { top: auto; bottom: 0; left: 0; right: 0; padding: 0 20px calc(22px + env(safe-area-inset-bottom)); }
  .station--hero .hero__title { font-size: clamp(28px, 8vw, 40px); }
  .station--hero .hero__intro { font-size: 13px; }
}

/* ============================================================
   Section 1 : portrait. Buste serré, fond noir, typo monospace.
   ============================================================ */
.station--hero { display: block; inset: 0; padding: 0; }
.station--hero .hero__bottom { display: none; }

.hud { position: absolute; inset: 0; pointer-events: none; }
.hud > div { position: absolute; display: grid; gap: 3px; font-size: 11px; letter-spacing: .06em; line-height: 1.5; }
.hud span { color: var(--text-3); text-transform: none; }
.hud a { pointer-events: auto; color: var(--text-2); text-transform: none; border-bottom: 1px solid var(--line-2); width: fit-content; transition: color .2s, border-color .2s; }
.hud a:hover { color: var(--text); border-color: var(--text); }
.hud__tl { left: var(--pad); top: 92px; }
.hud__tc { left: 50%; top: 92px; transform: translateX(-50%); color: var(--text-2); letter-spacing: .22em; }
.hud__tr { right: var(--pad); top: 92px; text-align: right; justify-items: end; }
.hud__ml { left: var(--pad); top: 160px; }
.hud__mr { right: var(--pad); top: 160px; text-align: right; justify-items: end; }

.hero__name {
  position: absolute; left: var(--pad); top: 50%; transform: translateY(-50%);
  font-family: var(--display); font-weight: 800;
  font-size: clamp(34px, 5vw, 76px); line-height: .98; letter-spacing: -.04em;
  margin: 0; display: grid; gap: 0;
}
.hero__line { display: block; white-space: pre; }
.hero__line::after { content: attr(data-dots); color: var(--text-3); }

.hero__role {
  position: absolute; right: var(--pad); top: 50%; transform: translateY(-50%);
  max-width: 270px; font-family: var(--monof); font-size: 12px; line-height: 1.75;
  color: var(--text-2); letter-spacing: .02em; margin: 0;
}
.hero__role b { color: var(--text); font-weight: 500; }

.hero__start { position: absolute; right: var(--pad); top: calc(50% + 86px); font-size: 11px; color: var(--text-3); text-transform: none; letter-spacing: .04em; }
.hero__start kbd { font-family: var(--monof); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 3px; padding: 2px 7px; color: var(--text-2); font-size: 10px; }

.hero__tab {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  background: var(--text); color: var(--bg); padding: 16px 7px;
  writing-mode: vertical-rl; font-size: 10px; letter-spacing: .18em;
}

/* bandeau bas */
.rail {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: stretch; overflow-x: auto; scrollbar-width: none;
  background: rgba(12, 11, 11, .92); border-top: 1px solid var(--line);
  backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(100%); transition: opacity .5s, transform .6s var(--ease);
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-on { opacity: 1; transform: none; pointer-events: auto; }
.rail a {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 18px; border-right: 1px solid var(--line);
  font-family: var(--monof); font-size: 11px; letter-spacing: .04em; color: var(--text-2);
  white-space: nowrap; transition: color .2s, background .2s;
}
.rail a:hover { color: var(--text); background: var(--bg-2); }
.rail a i { width: 5px; height: 5px; border-radius: 50%; background: var(--red); flex: 0 0 auto; }
.progress { bottom: 56px; }

@media (max-width: 960px) {
  .hud__tl { top: 76px; } .hud__tc { top: 76px; } .hud__tr { top: 76px; }
  .hud__ml { top: 130px; } .hud__mr { top: 130px; }
  .hud > div { font-size: 10px; }
  .hero__name { left: 20px; right: 20px; top: 180px; transform: none; font-size: clamp(32px, 11vw, 52px); }
  .hero__role { left: 20px; right: 20px; top: 300px; transform: none; max-width: none; font-size: 11.5px; line-height: 1.7; }
  .hero__start { left: 20px; right: auto; top: 392px; }
  .hero__tab { padding: 12px 5px; font-size: 8px; top: 164px; transform: none; }
  .rail a { padding: 10px 14px; font-size: 10px; }
}
