/* ==========================================================================
   MISJ STUCO — BASE
   Tokens · reset · typography · navigation · menu · cursor · journey line
   ========================================================================== */

:root {
  --navy-950: #030a22;
  --navy-900: #050f33;
  --navy-800: #071a5c;
  --blue-700: #0a2482;
  --blue-600: #0b2c9c;
  --blue-500: #1a47d6;
  --blue-400: #3f6dff;
  --yellow: #ffd21f;
  --yellow-glow: rgba(255, 210, 31, .45);
  --white: #ffffff;
  --paper: #f3f1ea;
  --ink: #071542;
  --mist: rgba(255, 255, 255, .66);
  --faint: rgba(255, 255, 255, .16);
  --hair: rgba(255, 255, 255, .1);

  --f-display: "Urbanist", "Helvetica Neue", Arial, sans-serif;
  --f-label: "Poppins", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4.4vw, 60.8px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .18, 1);
  --vh: 1vh;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--navy-950); }
body {
  margin: 0;
  color: var(--white);
  background: var(--navy-950);
  font-family: var(--f-label);
  font-size: clamp(12.8px, .82vw, 15.2px);
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
mark { background: none; color: inherit; }
main { position: relative; overflow-x: clip; }
[hidden] { display: none !important; }
::selection { background: var(--yellow); color: var(--navy-950); }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 5px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 12.8px; top: -96px; z-index: 300;
  background: var(--yellow); color: var(--navy-950);
  padding: 11.2px 16px; font: 500 .75rem/1 var(--f-label); letter-spacing: .16em; text-transform: uppercase;
}
.skip:focus { top: 12.8px; }

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- atmosphere + grain ---------- */
.atmos { position: fixed; inset: 0; z-index: 0; background: var(--navy-950); pointer-events: none; }
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* every chapter sits above the journey line */
.chap { position: relative; z-index: 2; }
.foot { position: relative; z-index: 2; }

/* ---------- journey line ---------- */
.journey { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.journey__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.journey__g { will-change: transform; }
.journey__ghost { fill: none; stroke: rgba(255, 255, 255, .13); stroke-width: 1; stroke-dasharray: 2 8; }
.journey__path { fill: none; stroke: var(--yellow); stroke-width: 1.6; stroke-linecap: round; }
.journey__head {
  position: absolute; left: 0; top: 0; width: 7.2px; height: 7.2px; margin: -3.6px 0 0 -3.6px;
  border-radius: 50%; background: var(--yellow); opacity: 0; transition: opacity .5s;
  box-shadow: 0 0 0 5px rgba(255, 210, 31, .14), 0 0 26px 6px var(--yellow-glow);
  will-change: transform;
}
.journey__head.on { opacity: 1; }

/* ---------- typography ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 700;

  letter-spacing: -.02em;
  line-height: 1.05;
  font-size: clamp(2.6rem, 6.56vw, 9.5rem);
}
.display--xl { font-size: clamp(3rem, 9.92vw, 15.5rem); line-height: .84; }
.display--l  { font-size: clamp(2.6rem, 7.04vw, 10.5rem); }
.display--m  { font-size: clamp(2.1rem, 4.96vw, 7.4rem); }
.lede {
  font-size: clamp(1.06rem, 1.14vw, 1.5rem);
  line-height: 1.45;
  color: var(--mist);
  max-width: 34ch;
  letter-spacing: -.005em;
}
.micro {
  font-family: var(--f-label);
  font-size: .72rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.4;
}
.label {
  display: flex; align-items: center; gap: .9em;
  font-family: var(--f-label); font-size: .74rem; font-weight: 600; font-variant-numeric: tabular-nums;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: clamp(1.4rem, 3vw, 2.8rem);
}
.label--sub { color: var(--mist); }
.jp-mark {
  flex: none; width: 7.2px; height: 7.2px; border-radius: 50%;
  border: 1px solid var(--yellow); transition: background .6s, box-shadow .6s;
}
.jp-mark.reached { background: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 210, 31, .15), 0 0 18px var(--yellow-glow); }
.ydot {
  display: inline-block; width: .44em; height: .44em; border-radius: 50%;
  background: var(--yellow); margin-right: .7em; vertical-align: .1em;
  box-shadow: 0 0 16px var(--yellow-glow);
}
.wrap { padding-inline: var(--gutter); width: 100%; max-width: 1536px; margin-inline: auto; }

/* split headings (word mask reveal) */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .1em .02em .06em; margin: -.1em -.02em -.06em; }
[data-split] .wi { display: inline-block; transform: translate3d(0, 108%, 0); transition: transform 1.15s var(--ease); transition-delay: calc(var(--i, 0) * 55ms); }
[data-split].in .wi { transform: none; }

/* generic reveal: blur → focus */
.js [data-reveal] {
  opacity: 0; transform: translate3d(0, 27.2px, 0); filter: blur(8px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .9em;
  font: 500 .8rem/1 var(--f-label); letter-spacing: .16em; text-transform: uppercase;
  padding: 1.15em 1.7em; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px;
  transition: background .45s var(--ease), color .45s var(--ease), border-color .45s;
}
.btn__arrow { display: inline-block; transition: transform .55s var(--ease); }
.btn:hover .btn__arrow, .btn:focus-visible .btn__arrow { transform: translateX(5.6px); }
.btn--big { font-size: clamp(.82rem, .76vw, 1rem); padding: 1.6em 2.5em; background: var(--yellow); color: var(--navy-950); border-color: var(--yellow); }
.btn--big:hover { background: var(--white); border-color: var(--white); }
.arrow-link .btn__arrow { margin-left: .5em; }

/* ---------- media + designed placeholders ---------- */
.media { position: relative; display: block; overflow: hidden; background: var(--navy-800); container-type: inline-size; }
.media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph {
  position: absolute; inset: 0; overflow: hidden;
  background:
    radial-gradient(110% 85% at var(--px, 28%) var(--py, 18%), rgba(63, 109, 255, .55), transparent 62%),
    radial-gradient(70% 60% at 88% 92%, rgba(255, 210, 31, .12), transparent 60%),
    linear-gradient(158deg, #0d32ad 0%, #071a5c 48%, #040c2c 100%);
}
.ph::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 72%);
          mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 72%);
}
.ph::after {
  content: ""; position: absolute; right: 11.2px; bottom: 11.2px; width: 14.4px; height: 14.4px;
  border-right: 1.5px solid var(--yellow); border-bottom: 1.5px solid var(--yellow);
}
.ph__mark {
  position: absolute; left: 5%; bottom: -.08em;
  font-family: var(--f-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.05;
  font-size: 34cqw; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .24);
  white-space: nowrap;
}
.ph__label {
  position: absolute; left: 11.2px; top: 11.2px;
  font: 500 .6rem/1.3 var(--f-label); letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
}
.ph--portrait .ph__mark { left: 50%; bottom: auto; top: 54%; transform: translate(-50%, -50%); font-size: 52cqw; -webkit-text-stroke: 1.2px rgba(255, 255, 255, .3); }
.zoom > img, .zoom > .ph { transition: transform 1.4s var(--ease); }
.zoom:hover > img, .zoom:hover > .ph { transform: scale(1.05); }

/* ---------- navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: clamp(11.2px, 2vw, 22.4px) var(--gutter);
  pointer-events: none; transition: color .5s;
}
.nav > * { pointer-events: auto; }
.nav__logo { display: block; }
.nav__logo img { height: clamp(30.4px, 3.3vw, 43.2px); width: auto; max-width: 176px; object-fit: contain; }
.nav__right { display: flex; align-items: center; gap: clamp(11.2px, 2vw, 24px); }
.nav__progress { display: none; }
.nav__num { color: var(--yellow); min-width: 2ch; }
.nav__title { margin-left: .9em; padding-left: .9em; border-left: 1px solid var(--faint); color: var(--white); opacity: .85; }
.nav__menu {
  display: flex; align-items: center; gap: .9em;
  font: 500 .74rem/1 var(--f-label); letter-spacing: .18em; text-transform: uppercase;
  padding: 1em 1.25em; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px;
  background: rgba(3, 10, 34, .28); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: border-color .4s, background .4s, color .4s;
}
.nav__menu:hover { border-color: var(--yellow); }
/* Home / Events / Contact: one pill in the middle of the bar, the page you're on in yellow */
.nav__links {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; gap: 2px; padding: 4px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px;
  background: rgba(3, 10, 34, .28); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: border-color .4s, background .4s;
}
.nav__links a {
  font: 500 .74rem/1 var(--f-label); letter-spacing: .18em; text-transform: uppercase;
  padding: calc(1em - 4px) 1.1em; border-radius: 999px; transition: background .3s, color .3s;
}
.nav__links a:hover { color: var(--yellow); }
.nav__links a[aria-current="page"] { background: var(--yellow); color: var(--navy-950); }
.nav__menu-icon { display: grid; gap: 4px; width: 14.4px; }
.nav__menu-icon i { display: block; height: 1.5px; background: currentColor; transition: transform .55s var(--ease); }
.nav__menu[aria-expanded="true"] .nav__menu-icon i:first-child { transform: translateY(2.6px) rotate(45deg); }
.nav__menu[aria-expanded="true"] .nav__menu-icon i:last-child { transform: translateY(-2.6px) rotate(-45deg); }
body:is(.ink-dark, .ink-flood):not(.menu-open) .nav { color: var(--ink); }
body:is(.ink-dark, .ink-flood):not(.menu-open) :is(.nav__menu, .nav__links) { border-color: rgba(7, 21, 66, .3); background: rgba(243, 241, 234, .55); }
body:is(.ink-dark, .ink-flood):not(.menu-open) .nav__progress { color: rgba(7, 21, 66, .6); }
body:is(.ink-dark, .ink-flood):not(.menu-open) .nav__num { color: var(--blue-600); }
body:is(.ink-dark, .ink-flood):not(.menu-open) .nav__title { color: var(--ink); border-color: rgba(7, 21, 66, .2); }

/* ---------- full-screen menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 45; overflow-y: auto;
  background: var(--navy-950);
  clip-path: circle(0% at calc(100% - 51.2px) 33.6px);
  transition: clip-path .95s var(--ease-io);
}
.menu.open { clip-path: circle(150% at calc(100% - 51.2px) 33.6px); }
.menu::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(80% 70% at 85% 10%, rgba(26, 71, 214, .45), transparent 60%);
}
.menu__inner {
  position: relative; min-height: 100%;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 5vw; align-items: end;
  padding: clamp(76.8px, 14vh, 120px) var(--gutter) clamp(25.6px, 7vh, 57.6px);
}
.menu__nav { position: relative; padding-left: 33.6px; }
.menu__rail {
  position: absolute; left: 3.2px; top: .4em; bottom: .4em; width: 1px; background: var(--yellow);
  transform: scaleY(0); transform-origin: top; transition: transform 1.2s var(--ease) .25s;
  box-shadow: 0 0 12px var(--yellow-glow);
}
.menu.open .menu__rail { transform: scaleY(1); }
.menu__list a {
  position: relative; display: flex; align-items: baseline; gap: 1.1rem;
  padding: .06em 0; color: rgba(255, 255, 255, .9); transition: color .45s, opacity .45s;
}
.menu__dot {
  position: absolute; left: -33.6px; top: 50%; width: 7.2px; height: 7.2px; margin-top: -3.6px;
  border-radius: 50%; border: 1px solid var(--yellow); background: var(--navy-950);
  transform: scale(0); transition: transform .6s var(--ease), background .4s, box-shadow .4s;
  transition-delay: calc(.45s + var(--i) * .06s), 0s, 0s;
}
.menu.open .menu__dot { transform: scale(1); }
.menu__mask { display: block; overflow: hidden; padding: .04em 0; }
.menu__txt {
  display: block; font-family: var(--f-display); font-weight: 700;
  letter-spacing: -.02em; line-height: 1.05; font-size: clamp(2.2rem, 4.48vh + 1.28vw, 6rem);
  transform: translate3d(0, 110%, 0);
  transition: transform 1s var(--ease), letter-spacing .6s var(--ease);
  transition-delay: calc(.22s + var(--i) * .06s), 0s;
}
.menu.open .menu__txt { transform: none; }
.menu__idx { font: 500 .7rem/1 var(--f-label); letter-spacing: .16em; color: var(--yellow); opacity: 0; transition: opacity .6s .6s; }
.menu.open .menu__idx { opacity: 1; }
.menu__list:hover a, .menu__list:focus-within a { color: rgba(255, 255, 255, .32); }
.menu__list a:hover, .menu__list a:focus-visible { color: var(--white); }
.menu__list a:hover .menu__txt, .menu__list a:focus-visible .menu__txt { transform: translateX(.18em); letter-spacing: -.015em; transition-delay: 0s; }
.menu__list a:hover .menu__dot, .menu__list a:focus-visible .menu__dot,
.menu__list a[aria-current="true"] .menu__dot { background: var(--yellow); box-shadow: 0 0 18px var(--yellow-glow); }
.menu__aside { opacity: 0; transform: translateY(16px); transition: opacity .8s .55s, transform .8s var(--ease) .55s; max-width: 336px; }
.menu.open .menu__aside { opacity: 1; transform: none; }
.menu__aside-label { color: var(--yellow); margin-bottom: 1.2rem; }
.menu__aside-big { font-family: var(--f-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; font-size: clamp(1.8rem, 2.08vw, 3rem); margin-bottom: 2rem; }
.menu__contact { display: grid; gap: .6rem; color: var(--mist); }
.menu__contact a:hover { color: var(--yellow); }

/* ---------- custom cursor ---------- */
.cursor { display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor [data-cursor] { cursor: none; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; will-change: transform; }
.cursor__dot { width: 4.8px; height: 4.8px; margin: -2.4px 0 0 -2.4px; border-radius: 50%; background: var(--yellow); transition: opacity .3s; }
.cursor__ring {
  width: 27.2px; height: 27.2px; margin: -13.6px 0 0 -13.6px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .42);
  display: grid; place-items: center;
  transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), background .35s, border-color .35s, opacity .3s;
}
.cursor__label { font: 500 .62rem/1 var(--f-label); letter-spacing: .18em; color: var(--navy-950); opacity: 0; transition: opacity .25s; }
.cursor.is-btn .cursor__ring { width: 46.4px; height: 46.4px; margin: -23.2px 0 0 -23.2px; border-color: var(--yellow); }
.cursor.is-label .cursor__ring { width: 73.6px; height: 73.6px; margin: -36.8px 0 0 -36.8px; background: var(--yellow); border-color: var(--yellow); }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-off .cursor__ring, .cursor.is-off .cursor__dot { opacity: 0; }
body.ink-dark .cursor:not(.is-label) .cursor__ring { border-color: rgba(7, 21, 66, .45); }
body.ink-dark .cursor.is-btn .cursor__ring { border-color: var(--ink); }

/* ---------- reduced motion ---------- */
.reduce [data-reveal], .reduce [data-split] .wi { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
.reduce .menu, .reduce .menu__txt, .reduce .menu__rail, .reduce .menu__dot, .reduce .menu__aside { transition-duration: .01s !important; transition-delay: 0s !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .nav__title { display: none; }
  /* room for the three page buttons: the menu button keeps only its icon */
  .nav__links a { padding-inline: .8em; letter-spacing: .08em; font-size: .68rem; }
  .nav__menu { padding-inline: 1em; }
  .nav__menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .menu__inner { grid-template-columns: 1fr; align-items: start; gap: 38.4px; }
  .menu__nav { padding-left: 25.6px; }
  .menu__dot { left: -25.6px; }
  .menu__txt { font-size: min(7.52vw, 3.4rem); }
  .menu__nav, .menu__aside { min-width: 0; max-width: 100%; }
  .menu__aside-big { font-size: clamp(1.5rem, 5.6vw, 2.2rem); }
}
@media (max-width: 360px) {
  .nav__links a { padding-inline: .6em; letter-spacing: .04em; }
}

/* small uppercase labels set with the font shorthand: same numerals as .micro */
[class*="__idx"], [class*="__num"], .skip, .btn, .nav__menu, .tag, .pf, .cursor__label { font-variant-numeric: tabular-nums; }

/* ---------- FLOATING LOST & FOUND BUTTON ---------- */
.lf-fab {
  position: fixed; left: clamp(12px, 2vw, 24px); bottom: clamp(12px, 2vw, 24px); z-index: 120;
  display: flex; align-items: center; gap: 12px; max-width: min(320px, calc(100vw - 24px));
  padding: 10px 18px 10px 10px; border-radius: 999px;
  background: var(--yellow); color: var(--navy-950); text-decoration: none;
  font-size: 13px; line-height: 1.25;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .4), 0 0 24px var(--yellow-glow);
  transition: transform .35s var(--ease);
}
.lf-fab:hover { transform: translateY(-3px) scale(1.03); }
.lf-fab__icon {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy-950); color: var(--yellow); font-weight: 900; font-size: 18px;
}
.lf-fab strong { display: block; font-weight: 800; }
@media (max-width: 480px) { .lf-fab { font-size: 12px; gap: 10px; padding: 8px 14px 8px 8px; } .lf-fab__icon { width: 32px; height: 32px; } }
