/* ==========================================================================
   Studio W.A.N — World Art Nation
   Direction artistique : "cosmic void" — chrome qui murmure, scène qui crie.
   ========================================================================== */

:root {
  /* Colors */
  --color-void-black: #000000;
  --color-ghost-white: #ffffff;
  --color-ash-border: #4d4d4d;
  --color-smoke: #808080;
  --color-fog: #999999;
  --color-pale-mist: #c6c6c6;
  --color-dusk-violet: #343755;

  /* Typography */
  --font-nbarchitekt: 'nbarchitekt', 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  /* Affichage : Unbounded — géométrique large, l'énergie « spatiale » du logo chromé */
  --font-display: 'Unbounded', 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-times: 'Times', 'Times New Roman', Georgia, serif;
  --font-arial: Arial, ui-sans-serif, system-ui, sans-serif;

  --text-caption: 10px;
  --text-body-sm: 12px;
  --text-body: 14px;

  /* Spacing */
  --spacing-4: 4px;
  --spacing-6: 6px;
  --spacing-12: 12px;
  --spacing-13: 13px;
  --spacing-14: 14px;
  --spacing-16: 16px;
  --spacing-18: 18px;
  --spacing-28: 28px;

  --section-gap: 48px;
  --card-padding: 28px;
  --element-gap: 6px;
  --gutter: clamp(16px, 3.2vw, 48px);

  /* Radius */
  --radius-md: 5px;
  --radius-xl: 12px;
  --radius-full: 500px;

  /* Surfaces */
  --surface-void-canvas: #000000;
  --surface-translucent-overlay: #00000080;
  --surface-dusk-violet-surface: #343755;
  --surface-frosted-glass: #ffffff1a;

  --ease-ui: cubic-bezier(.22, .61, .36, 1);
  --ease-soft: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--color-void-black);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-void-black);
  color: var(--color-ghost-white);
  font-family: var(--font-times);
  font-size: 16px;
  line-height: 1.88;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body.is-loading { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-family: var(--font-times); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }

::selection { background: var(--color-dusk-violet); color: var(--color-ghost-white); }

:focus-visible {
  outline: 1px solid var(--color-ghost-white);
  outline-offset: 3px;
  border-radius: var(--radius-md);
}

.container { padding-inline: var(--gutter); }
.front { position: relative; z-index: 2; }

/* ---------- Type primitives ---------- */
.label {
  font-family: var(--font-nbarchitekt);
  font-size: var(--text-caption);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-pale-mist);
  font-variant-numeric: tabular-nums;
}

.micro-title {
  font-family: var(--font-nbarchitekt);
  font-size: var(--text-body-sm);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--spacing-12);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4.6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin-top: var(--spacing-18);
}
/* Contraste par la graisse (et non plus par l'italique serif) */
.section-title em, .card--next__title em {
  font-family: var(--font-display); font-style: normal; font-weight: 300;
  color: var(--color-pale-mist); letter-spacing: -0.03em;
}

.link {
  color: var(--color-pale-mist);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .4s var(--ease-ui), color .3s ease;
}
.link:hover { color: var(--color-ghost-white); background-size: 100% 1px; }

/* Text roll micro-interaction */
.roll { display: inline-block; position: relative; overflow: hidden; vertical-align: top; }
.roll > span { display: block; position: relative; transition: transform .45s var(--ease-soft); }
.roll > span::after {
  content: attr(data-text);
  position: absolute; left: 0; top: 100%;
  white-space: nowrap;
}
a:hover .roll > span, button:hover .roll > span { transform: translateY(-100%); }

/* ---------- Buttons ---------- */
.btn-ghost {
  display: inline-flex; align-items: center;
  font-family: var(--font-nbarchitekt);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ghost-white);
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  padding: 1px 6px;
  transition: background-color .3s ease, border-color .3s ease;
  white-space: nowrap;
}
.btn-ghost:hover { background: var(--surface-frosted-glass); border-color: var(--color-ghost-white); }
.btn-ghost--lg { font-size: 12px; padding: 9px 18px; }

.btn-pill {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-nbarchitekt);
  font-size: var(--text-body);
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-ghost-white);
  background: var(--color-dusk-violet);
  border-radius: var(--radius-full);
  padding: 4px 18px;
  transition: background-color .3s ease;
  white-space: nowrap;
}
.btn-pill:hover { background: #3f4368; }
.btn-pill--lg { padding: 13px 28px; }

/* ---------- Scene layers ---------- */
.aurora {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(55% 45% at 0% 0%, rgba(60, 255, 170, 0.10), transparent 70%),
    radial-gradient(35% 30% at 12% 6%, rgba(70, 220, 255, 0.07), transparent 70%),
    radial-gradient(50% 50% at 100% 100%, rgba(52, 55, 85, 0.45), transparent 72%);
  animation: aurora 14s ease-in-out infinite alternate;
  opacity: 0;
}
@keyframes aurora {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(2%, 3%, 0) scale(1.08); }
}

#webgl {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
  display: block;
}

.grain {
  position: fixed; inset: -100%;
  width: 300%; height: 300%;
  z-index: 80; pointer-events: none;
  opacity: 0.06;
  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%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(-4%, 3%); }
  40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); }
  80% { transform: translate(5%, 4%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--color-void-black);
  display: grid; place-items: center;
}
.loader__portal { position: relative; width: 168px; height: 168px; }
.loader__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.loader__ring circle { fill: none; vector-effect: non-scaling-stroke; }
.loader__track { stroke: var(--color-ash-border); stroke-width: 1; }
.loader__progress { stroke: var(--color-ghost-white); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; }
.loader__core { position: absolute; inset: 0; display: grid; place-items: center; }
.loader__logo { width: 64px; height: 64px; border-radius: var(--radius-full); opacity: 0.9; }
.loader__meta {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px;
  display: flex; justify-content: space-between;
}

/* ---------- Cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.cursor__dot {
  position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px;
  border-radius: var(--radius-full); background: var(--color-ghost-white);
}
.cursor__ring {
  position: absolute; width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.45);
  display: grid; place-items: center;
  transition: width .4s var(--ease-soft), height .4s var(--ease-soft), margin .4s var(--ease-soft), background-color .3s ease, border-color .3s ease;
}
.cursor__label {
  font-family: var(--font-nbarchitekt);
  font-size: var(--text-caption);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0; transition: opacity .25s ease;
  white-space: nowrap;
}
.cursor.is-link .cursor__ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-color: rgba(255,255,255,.8); }
.cursor.is-label .cursor__ring {
  width: 86px; height: 86px; margin: -43px 0 0 -43px;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  border-color: rgba(255, 255, 255, 0.6);
}
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot, .cursor.is-link .cursor__dot { opacity: 0; }
.cursor__dot { transition: opacity .25s ease; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: var(--spacing-16);
  padding: var(--spacing-18) var(--gutter);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav__brand { display: inline-flex; align-items: center; gap: var(--spacing-12); }
.nav__brand img { width: 34px; height: 34px; border-radius: var(--radius-full); transition: transform .8s var(--ease-soft); }
.nav__brand:hover img { transform: rotate(-24deg); }
.nav__brand-text {
  display: flex; flex-direction: column;
  font-family: var(--font-nbarchitekt);
  font-size: var(--text-body-sm); font-weight: 700; line-height: 1.2;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.nav__brand-sub { font-size: var(--text-caption); font-weight: 400; color: var(--color-fog); letter-spacing: 0.14em; }
.nav__links { display: flex; align-items: center; gap: 10px; }
.nav__dot { width: 3px; height: 3px; border-radius: var(--radius-full); background: var(--color-fog); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__menu { display: none; }

.sound {
  width: 34px; height: 23px;
  display: grid; place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  transition: background-color .3s ease, border-color .3s ease;
}
.sound:hover { background: var(--surface-frosted-glass); border-color: #fff; }
.sound__bars { display: flex; align-items: center; gap: 2px; height: 10px; }
.sound__bars i {
  display: block; width: 2px; height: 2px; background: #fff; border-radius: var(--radius-full);
  transition: height .3s ease;
}
.sound.is-on .sound__bars i { animation: bars 1s ease-in-out infinite; }
.sound.is-on .sound__bars i:nth-child(2) { animation-delay: -.35s; }
.sound.is-on .sound__bars i:nth-child(3) { animation-delay: -.7s; }
.sound.is-on .sound__bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes bars { 0%, 100% { height: 3px; } 50% { height: 10px; } }

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 45;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 96px var(--gutter) 40px;
  visibility: hidden; opacity: 0;
}
.menu__links { display: flex; flex-direction: column; gap: 4px; }
.menu__links a {
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(30px, 9vw, 52px); line-height: 1.1; letter-spacing: -0.035em;
}
.menu__foot { margin-top: 48px; color: var(--color-pale-mist); }

/* HUD */
.hud {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: 22px; z-index: 40;
  display: flex; justify-content: space-between; align-items: center;
  pointer-events: none; opacity: 0;
}
.hud__left { display: flex; align-items: center; gap: 10px; }
.hud__line { width: 36px; height: 1px; background: var(--color-ash-border); }
.hud__gauge { display: block; width: 64px; height: 1px; background: var(--color-ash-border); position: relative; overflow: hidden; }
.hud__gauge i { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 560px;
}
.hero__title-wrap {
  position: absolute; inset: 0; z-index: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: min(12.6vw, 22vh);
  line-height: 0.86;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-ghost-white);
  user-select: none;
  /* Dissolution en poussière d'étoiles : la bande transparente balaie le titre */
  -webkit-mask-image: linear-gradient(var(--wipe-angle, 180deg), transparent calc(var(--wipe, -400px) - 60px), #000 calc(var(--wipe, -400px) + 60px));
  mask-image: linear-gradient(var(--wipe-angle, 180deg), transparent calc(var(--wipe, -400px) - 60px), #000 calc(var(--wipe, -400px) + 60px));
}
.line { display: block; overflow: hidden; padding: 0.04em 0.08em 0.06em; }
.line__inner { display: inline-block; will-change: transform; }
.line--2 { margin-top: 0.02em; }
/* Hero : la planète se loge ENTRE les deux lignes, comme sur le logo */
.hero__title .line--2 { margin-top: 23vh; }
.hero__title .char { display: inline-block; will-change: transform; }
.hero__title-wrap--outline { z-index: 2; }
.hero__title--outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.72);
}

.hero__fallback {
  display: none;
  position: absolute; left: 50%; top: 50%; width: 180px; height: 180px; margin: -90px 0 0 -90px;
  border-radius: var(--radius-full); z-index: 1;
}
.no-webgl .hero__fallback { display: block; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__top {
  position: absolute; inset: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding-inline: var(--gutter);
  pointer-events: none;
}
.hero__top .label { writing-mode: vertical-rl; letter-spacing: 0.3em; }
.hero__top .label:first-child { transform: rotate(180deg); }

.hero__foot {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: var(--spacing-16);
}
.hero__pitch { font-size: 16px; line-height: 1.4; }
.hero__pitch em { color: var(--color-pale-mist); }
.hero__coords { text-align: right; }
.hero__scroll { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero__scroll-line { position: relative; width: 1px; height: 48px; background: rgba(255,255,255,.15); overflow: hidden; }
.hero__scroll-line i {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: #fff;
  transform-origin: top; animation: scrollcue 2.4s ease-in-out infinite;
}
@keyframes scrollcue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Manifesto ---------- */
.manifesto { padding-block: 26vh 16vh; }
.manifesto__text {
  font-family: var(--font-times);
  font-size: clamp(30px, 4.3vw, 80px);
  line-height: 1.1;
  letter-spacing: -0.018em;
  max-width: 13.6em;
  margin-top: var(--spacing-28);
}
.manifesto__text em { color: var(--color-pale-mist); }
.manifesto__cols {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--section-gap);
  max-width: 780px; margin-top: 14vh;
}
.manifesto__col p { color: var(--color-pale-mist); }
.datastrip {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--spacing-18);
  max-width: 900px; margin: 12vh 0 0;
}
.datastrip > div { border-top: 1px solid var(--color-ash-border); padding-top: var(--spacing-14); }
.datastrip dd {
  margin: var(--spacing-6) 0 0;
  font-family: var(--font-nbarchitekt); font-size: var(--text-body); font-weight: 500;
}

/* ---------- Services ---------- */
.services { padding-block: 14vh; }
.services__inner { display: grid; grid-template-columns: 1fr; gap: var(--section-gap); }
.services__aside { display: flex; flex-direction: column; gap: var(--spacing-12); }
.services__progress { display: none; }
.svc-grid { margin-top: var(--section-gap); display: grid; gap: var(--spacing-12); }
.svc {
  border: 1px solid var(--color-ash-border); border-radius: var(--radius-xl);
  padding: var(--spacing-18) var(--card-padding) var(--card-padding);
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.svc__head { display: flex; align-items: baseline; gap: var(--spacing-18); }
.svc__name {
  font-family: var(--font-display); font-weight: 500; text-transform: uppercase;
  font-size: clamp(22px, 2.5vw, 42px); line-height: 1.15; letter-spacing: -0.03em;
}
.svc__body { margin-top: var(--spacing-14); }
.svc__body p { max-width: 30em; color: var(--color-pale-mist); }
.tags { display: flex; flex-wrap: wrap; gap: var(--element-gap); margin-top: var(--spacing-16); }
.tags li {
  font-family: var(--font-nbarchitekt); font-size: var(--text-caption);
  letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--color-smoke); border-radius: var(--radius-full);
  padding: 3px 12px; line-height: 1.5;
}

/* Desktop pinned layout */
.services.is-pinned { padding-block: 0; }
.services.is-pinned .services__inner {
  height: 100vh; grid-template-columns: 1fr 1fr; align-items: center; gap: 4vw;
}
.services.is-pinned .services__aside { height: 74vh; justify-content: space-between; }
.services.is-pinned .services__progress {
  display: block; width: 1px; height: 120px; background: var(--color-ash-border); position: relative; overflow: hidden;
}
.services__progress i { position: absolute; inset: 0; background: #fff; transform-origin: top; transform: scaleY(0); }
.services.is-pinned .svc-grid { grid-template-columns: 1fr; gap: 0; }
.services.is-pinned .svc { display: contents; }
.services.is-pinned .svc__head {
  grid-column: 1;
  border-top: 1px solid var(--color-ash-border);
  padding: var(--spacing-14) 0;
  opacity: 0.26;
  transition: opacity .6s ease;
}
.services.is-pinned .svc:nth-child(1) .svc__head { grid-row: 1; }
.services.is-pinned .svc:nth-child(2) .svc__head { grid-row: 2; }
.services.is-pinned .svc:nth-child(3) .svc__head { grid-row: 3; border-bottom: 1px solid var(--color-ash-border); }
.services.is-pinned .svc.is-active .svc__head { opacity: 1; }
.services.is-pinned .svc__body {
  grid-column: 1; grid-row: 4;
  margin-top: 0; padding-top: var(--spacing-28);
  opacity: 0; transform: translateY(18px); visibility: hidden;
  transition: opacity .5s ease, transform .8s var(--ease-soft), visibility 0s linear .5s;
}
.services.is-pinned .svc.is-active .svc__body {
  opacity: 1; transform: none; visibility: visible;
  transition: opacity .7s ease .18s, transform .9s var(--ease-soft) .18s, visibility 0s;
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding-block: 8vh; white-space: nowrap; user-select: none; }
.marquee__track { display: inline-flex; will-change: transform; }
.marquee__track span {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(56px, 9vw, 170px); line-height: 1.05;
  letter-spacing: -0.035em; text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
}
.marquee__track i {
  font-style: normal; font-size: 0.3em; vertical-align: middle;
  color: var(--color-ghost-white); -webkit-text-stroke: 0;
  margin-inline: 0.35em; display: inline-block; transform: translateY(-0.2em);
}

/* ---------- Portal ---------- */
.portal { height: 100vh; height: 100svh; position: relative; }
.portal__inner { position: relative; height: 100%; display: grid; place-items: center; overflow: hidden; }
.portal__frame {
  margin: 0;
  width: min(88vw, 66vh);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-xl);
  clip-path: inset(36% 30% 36% 30% round 500px);
  will-change: clip-path;
}
.portal__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.5); }
/* Les deux mots forment un groupe toujours centré ; l'espace entre eux s'ouvre avec le cadre */
.portal__words {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  mix-blend-mode: difference;
  pointer-events: none;
}
.portal__word {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(30px, 5vw, 96px); line-height: 1; letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.portal__gap { flex: none; width: var(--gap, 2vw); height: 1px; }
.portal__caption { position: absolute; bottom: 6vh; left: 0; right: 0; text-align: center; opacity: 0; }

/* ---------- Gallery ---------- */
.gallery { padding-block: 18vh 10vh; }
.gallery__head { max-width: 980px; }
.gallery__lead { margin-top: var(--spacing-28); max-width: 32em; color: var(--color-pale-mist); }
.gallery__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 2vw; row-gap: 14vh;
  margin-top: 16vh;
}
.gallery__item { margin: 0; }
.g1 { grid-column: 1 / span 4; }
.g2 { grid-column: 7 / span 5; margin-top: 24vh; }
.g3 { grid-column: 2 / span 4; }
.g4 { grid-column: 8 / span 4; margin-top: 8vh; }
.g5 { grid-column: 4 / span 5; }
.gallery__media {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  clip-path: inset(0 0 0 0);
}
.gallery__media img {
  position: absolute; left: 0; top: -9%;
  width: 100%; height: 118%;
  object-fit: cover;
  transition: filter .8s ease;
}
.gallery__item:hover .gallery__media img { filter: brightness(1.12); }
.gallery__item figcaption { margin-top: var(--spacing-12); }

/* ---------- Artists ---------- */
.artists { position: relative; }
.artists__pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-block: 12vh 8vh; }
.artists__head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--spacing-28); }
.artists__hint { text-align: right; max-width: 16em; }
.artists__viewport {
  margin-top: 6vh;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.artists__viewport::-webkit-scrollbar { display: none; }
.artists__track {
  display: flex; align-items: flex-end; gap: 2.2vw;
  width: max-content;
  padding-inline: var(--gutter);
}
.card {
  flex: 0 0 auto;
  width: clamp(250px, 24vw, 390px);
  border: 1px solid var(--color-ash-border);
  border-radius: var(--radius-xl);
  padding: var(--spacing-12);
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  scroll-snap-align: start;
  scroll-margin-left: var(--gutter);
  transition: border-color .4s ease, background-color .4s ease;
}
.card:hover { border-color: var(--color-fog); background: rgba(255, 255, 255, 0.04); }
a.card--release { display: block; }
.card--release { width: clamp(230px, 21vw, 340px); }
.card__media { position: relative; overflow: hidden; border-radius: var(--radius-md); aspect-ratio: 4 / 5; }
.card--release .card__media { aspect-ratio: 1 / 1; }
.card__media img {
  position: absolute; top: 0; left: -8%;
  width: 116%; height: 100%; object-fit: cover;
  transition: filter .8s ease;
}
.card:hover .card__media img { filter: brightness(1.12) contrast(1.04); }
.card__meta { padding: var(--spacing-14) var(--spacing-6) var(--spacing-4); }
.card__title {
  font-family: var(--font-nbarchitekt); font-weight: 700;
  font-size: clamp(20px, 1.7vw, 28px); line-height: 1.2;
  letter-spacing: -0.01em; text-transform: uppercase;
  margin-top: var(--spacing-6);
}
.card__text { font-style: italic; color: var(--color-pale-mist); line-height: 1.4; }
.card--next {
  display: flex; flex-direction: column; justify-content: space-between;
  width: clamp(250px, 22vw, 340px);
  aspect-ratio: 4 / 5.4;
  padding: var(--card-padding);
  border-style: dashed;
}
.card--next__title {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(28px, 2.6vw, 44px); line-height: 1.05; letter-spacing: -0.035em;
}
.card--next__cta {
  font-family: var(--font-nbarchitekt); font-size: var(--text-body); font-weight: 700;
  display: inline-flex; gap: 8px;
}
.card--next__cta span { transition: transform .4s var(--ease-soft); }
.card--next:hover .card--next__cta span { transform: translateX(6px); }

.artists__progress {
  margin-top: 6vh;
}
.artists__progress i {
  display: block; height: 1px; background: #fff; transform-origin: left; transform: scaleX(0);
}
.artists__progress::before { content: ""; display: block; height: 1px; background: var(--color-ash-border); margin-bottom: -1px; }

.artists.is-pinned .artists__viewport { overflow: visible; scroll-snap-type: none; margin-top: 4.5vh; }
.artists.is-pinned .artists__pin { height: 100vh; min-height: 0; padding-block: 9vh 7vh; }
.artists.is-pinned .section-title { font-size: clamp(30px, 3.8vw, 70px); }
.artists.is-pinned .card { width: clamp(220px, 34vh, 380px); }
.artists.is-pinned .card--release { width: clamp(200px, 30vh, 340px); }
.artists.is-pinned .card--next { width: clamp(220px, 32vh, 340px); }
.artists.is-pinned .artists__progress { margin-top: 4.5vh; }

/* ---------- Contact ---------- */
.contact { position: relative; padding-top: 10vh; }
.contact__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.contact__hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
/* Le titre passe SOUS le canvas : la planète s'y pose comme dans le hero */
.contact__title {
  position: relative; z-index: 0;
  font-family: var(--font-display); font-weight: 800;
  font-size: min(10.5vw, 19vh);
  line-height: 0.86; letter-spacing: -0.04em; text-transform: uppercase;
  margin: 3vh 0 4vh;
  user-select: none;
}
.contact__title .char { display: inline-block; }
.contact__title .line + .line { margin-top: 21vh; }
.contact__lead { max-width: 30em; color: var(--color-pale-mist); }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--spacing-12); margin-top: var(--spacing-28); }
.contact__grid {
  width: 100%;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--element-gap);
  margin-top: 4vh; text-align: left;
}
.info-card {
  display: flex; flex-direction: column; gap: var(--spacing-12);
  border: 1px solid var(--color-ash-border); border-radius: var(--radius-xl);
  padding: var(--spacing-18) var(--card-padding) var(--card-padding);
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: border-color .4s ease, background-color .4s ease;
}
a.info-card:hover { border-color: var(--color-fog); background: rgba(255, 255, 255, 0.04); }
.info-card__value { font-family: var(--font-nbarchitekt); font-size: 15px; font-weight: 500; line-height: 1.45; }

.footer {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--spacing-12);
  margin-top: 8vh;
  padding: var(--spacing-18) 0 var(--spacing-28);
  border-top: 1px solid var(--color-ash-border);
}
.footer time { color: #fff; margin-left: 6px; }
.footer__top { transition: color .3s ease; }
.footer__top:hover { color: #fff; }

/* ---------- Banner (sound prompt) ---------- */
.banner {
  position: fixed; left: var(--gutter); bottom: 56px; z-index: 60;
  max-width: 400px;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  border: 1px solid var(--color-ash-border);
  border-radius: var(--radius-xl);
  padding: 16px 28px 32px;
}
.banner[hidden] { display: none; }
.banner p { font-size: 16px; line-height: 1.88; }
.banner__actions { display: flex; gap: var(--element-gap); margin-top: var(--spacing-12); flex-wrap: wrap; }

/* ---------- Réservation ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
a.card--link { display: block; }

.booking { padding-block: 20vh 12vh; }
.booking__inner {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 6vw; align-items: start;
}
.booking__intro { position: sticky; top: 16vh; }
.booking__lead { margin-top: var(--spacing-28); max-width: 26em; color: var(--color-pale-mist); }
.booking__facts { margin-top: 8vh; display: grid; gap: var(--spacing-12); max-width: 26em; }
.booking__facts li {
  display: flex; justify-content: space-between; gap: var(--spacing-16);
  border-top: 1px solid var(--color-ash-border); padding-top: var(--spacing-12);
  font-family: var(--font-nbarchitekt); font-size: var(--text-body);
}

/* Panneau verre dépoli : la planète se devine derrière */
.bf {
  position: relative;
  border: 1px solid var(--color-ash-border);
  border-radius: var(--radius-xl);
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  padding: var(--card-padding);
}
.bf__head { margin-bottom: var(--spacing-28); }
.bf__meta { display: flex; justify-content: space-between; gap: var(--spacing-12); }
.bf__dots { display: inline-flex; gap: 6px; align-items: center; }
.bf__dots i { width: 5px; height: 5px; border-radius: var(--radius-full); border: 1px solid var(--color-smoke); transition: background-color .4s ease, border-color .4s ease, transform .5s var(--ease-soft); }
.bf__dots i.is-on { background: #fff; border-color: #fff; transform: scale(1.25); }
.bf__name { color: #fff; }
.bf__progress { margin-top: var(--spacing-12); height: 1px; background: var(--color-ash-border); position: relative; overflow: hidden; }
.bf__progress i { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0.3333); }

.bf__steps { position: relative; }
.bf__step { border: 0; margin: 0; padding: 0; min-width: 0; }
.bf__step[hidden] { display: none; }
.bf__legend {
  padding: 0; margin-bottom: var(--spacing-28);
  font-family: var(--font-display); font-weight: 500; text-transform: uppercase;
  font-size: clamp(20px, 1.9vw, 30px); line-height: 1.15; letter-spacing: -0.03em;
}
.bf__group { display: flex; flex-direction: column; gap: 10px; margin-bottom: var(--spacing-28); min-width: 0; }
.bf__group-head { display: flex; justify-content: space-between; align-items: center; }
.bf__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--spacing-18); }
.bf__opt { color: var(--color-smoke); letter-spacing: 0.08em; }

/* Champs */
.field {
  width: 100%;
  font-family: var(--font-times); font-size: 16px; line-height: 1.5;
  color: #fff;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-ash-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: border-color .3s ease, background-color .3s ease;
  -webkit-appearance: none; appearance: none;
}
textarea.field { resize: vertical; min-height: 96px; }
.field::placeholder { color: var(--color-smoke); }
.field:hover { border-color: var(--color-smoke); }
.field:focus { outline: none; border-color: #fff; background: rgba(255, 255, 255, 0.05); }
.bf__group.is-invalid .field { border-color: var(--color-pale-mist); border-style: dashed; }
.bf__group.is-invalid > .label, .bf__group.is-invalid .bf__group-head .label { color: #fff; }

/* Puces (cases à cocher / radios stylées) */
.chips { display: flex; flex-wrap: wrap; gap: var(--element-gap); }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-nbarchitekt); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--color-smoke); border-radius: var(--radius-full);
  padding: 8px 16px; line-height: 1.2;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}
.chip span::before {
  content: ""; width: 5px; height: 5px; border-radius: var(--radius-full);
  background: currentColor; opacity: 0; transform: scale(0);
  transition: opacity .3s ease, transform .4s var(--ease-soft);
  margin-left: -13px;
}
.chip:hover span { border-color: #fff; background: var(--surface-frosted-glass); }
.chip input:checked + span { background: var(--color-dusk-violet); border-color: rgba(255, 255, 255, 0.6); }
.chip input:checked + span::before { opacity: 1; transform: scale(1); margin-left: 0; }
.chip input:focus-visible + span { outline: 1px solid #fff; outline-offset: 3px; }
.bf__group.is-invalid .chip span { border-style: dashed; }

/* Bande de dates */
.days__nav { display: flex; gap: 6px; }
.days__arrow {
  width: 30px; height: 30px; display: grid; place-items: center;
  border: 1px solid var(--color-ash-border); border-radius: var(--radius-full);
  font-family: var(--font-nbarchitekt); font-size: 13px;
  transition: border-color .3s ease, background-color .3s ease;
}
.days__arrow:hover { border-color: #fff; background: var(--surface-frosted-glass); }
.days {
  display: flex; gap: var(--element-gap);
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  padding-bottom: 2px;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
  mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.days::-webkit-scrollbar { display: none; }
.day { position: relative; flex: none; cursor: pointer; scroll-snap-align: start; }
.day input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.day span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  width: 62px; height: 92px;
  border: 1px solid var(--color-ash-border); border-radius: var(--radius-full);
  transition: background-color .3s ease, border-color .3s ease;
}
.day small {
  font-family: var(--font-nbarchitekt); font-size: var(--text-caption);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-pale-mist);
}
.day b { font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.1; }
.day--flex b { font-size: 18px; }
.day:hover span { border-color: #fff; background: var(--surface-frosted-glass); }
.day input:checked + span { background: var(--color-dusk-violet); border-color: rgba(255, 255, 255, 0.6); }
.day input:checked + span small { color: #fff; }
.day input:focus-visible + span { outline: 1px solid #fff; outline-offset: 3px; }
.bf__group.is-invalid .day span { border-style: dashed; }

/* Compteur de titres */
.stepper {
  display: inline-flex; align-items: center; gap: 4px; align-self: flex-start;
  border: 1px solid var(--color-ash-border); border-radius: var(--radius-full); padding: 4px;
}
.stepper__btn {
  width: 38px; height: 38px; border-radius: var(--radius-full);
  display: grid; place-items: center; font-size: 18px;
  transition: background-color .3s ease;
}
.stepper__btn:hover { background: var(--surface-frosted-glass); }
.stepper__value {
  min-width: 48px; text-align: center;
  font-family: var(--font-display); font-weight: 500; font-size: 20px;
  display: inline-block;
}

/* Récapitulatif */
.bf__summary { margin-top: var(--spacing-6); border-top: 1px solid var(--color-ash-border); padding-top: var(--spacing-14); }
.bf__recap { margin: 10px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; }
.bf__recap dt { font-family: var(--font-nbarchitekt); font-size: var(--text-caption); letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-smoke); padding-top: 4px; }
.bf__recap dd { margin: 0; font-size: 15px; line-height: 1.6; color: var(--color-pale-mist); overflow-wrap: anywhere; }

/* Erreur + pied */
.bf__error {
  min-height: 1.6em; margin-top: 2px;
  font-size: 15px; color: #fff;
}
.bf__error:not(:empty)::before { content: "— "; color: var(--color-pale-mist); }
.bf__foot { display: flex; justify-content: space-between; align-items: center; gap: var(--spacing-12); margin-top: var(--spacing-12); }
.bf__prev[disabled] { opacity: 0; pointer-events: none; }
.bf.is-done .bf__foot, .bf.is-done .bf__error { display: none; }

/* État final */
.bf__done { text-align: center; padding: 3vh 0 1vh; outline: none; }
.bf__done-orbit {
  display: block; width: 74px; height: 74px; margin: 0 auto var(--spacing-18);
  border: 1px solid rgba(255, 255, 255, 0.6); border-radius: var(--radius-full); position: relative;
}
.bf__done-orbit i {
  position: absolute; left: 50%; top: -4px; width: 7px; height: 7px; margin-left: -3.5px;
  border-radius: var(--radius-full); background: #fff;
  transform-origin: 3.5px 41px; animation: orbit 3.2s linear infinite;
}
@keyframes orbit { to { transform: rotate(360deg); } }
.bf__done-title {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(28px, 3.2vw, 52px); line-height: 1.05; letter-spacing: -0.035em;
  margin-top: var(--spacing-12);
}
.bf__done-title em { font-family: var(--font-display); font-style: normal; font-weight: 300; color: var(--color-pale-mist); }
.bf__done-text { margin: var(--spacing-16) auto 0; max-width: 28em; color: var(--color-pale-mist); }
.bf__send { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--spacing-12); margin-top: var(--spacing-28); }
.bf__restart { margin-top: var(--spacing-28); transition: color .3s ease; }
.bf__restart:hover { color: #fff; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav__brand-sub { display: none; }
}

@media (max-width: 899px) {
  .nav__links, .nav__cta { display: none; }
  .nav__menu { display: inline-flex; padding: 2px 8px; }
  .hero__top { display: none; }
  .hero__title { font-size: 17vw; }
  .hero__title .line--2 { margin-top: 15vh; }
  .hero__foot { grid-template-columns: 1fr 1fr; }
  .hero__scroll { display: none; }
  .manifesto { padding-block: 18vh 12vh; }
  .manifesto__cols { grid-template-columns: 1fr; gap: var(--spacing-28); margin-top: 10vh; }
  .datastrip { grid-template-columns: 1fr; gap: var(--spacing-12); }
  .gallery__grid { grid-template-columns: 1fr; row-gap: 10vh; margin-top: 10vh; }
  .gallery__item { width: 78%; grid-column: auto !important; margin-top: 0 !important; }
  .g2, .g4 { justify-self: end; }
  .g5 { justify-self: center; }
  .artists__head { flex-direction: column; align-items: flex-start; }
  .artists__hint { text-align: left; }
  .portal__words { flex-direction: column; }
  .portal__word { font-size: clamp(30px, 10vw, 64px); }
  .portal__gap { width: 1px; height: var(--gap, 2vh); }
  .card, .card--release { width: 74vw; }
  .card--next { width: 74vw; aspect-ratio: auto; min-height: 320px; }
  .contact { padding-top: 16vh; }
  .contact__title .line + .line { margin-top: 13vh; }
  .booking { padding-block: 14vh 8vh; }
  .booking__inner { grid-template-columns: 1fr; gap: 6vh; }
  .booking__intro { position: static; }
  .booking__facts { margin-top: 4vh; }
  .bf { padding: var(--spacing-18); }
  .bf__row { grid-template-columns: 1fr; gap: 0; }
  .bf__foot .btn-pill--lg, .bf__foot .btn-ghost--lg { padding-inline: 18px; }
  .contact__hero { min-height: 88vh; min-height: 88svh; }
  .contact__title { font-size: 13vw; }
  .contact__grid { grid-template-columns: 1fr 1fr; margin-top: 10vh; }
  .hud { display: none; }
  .banner { right: var(--gutter); bottom: 16px; max-width: none; }
}

@media (max-width: 560px) {
  .contact__grid { grid-template-columns: 1fr; }
  .footer { flex-direction: column; align-items: flex-start; }
  .hero__pitch { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .aurora, .hero__scroll-line i, .sound.is-on .sound__bars i { animation: none !important; }
  .portal__frame { clip-path: inset(0 0 0 0 round 12px); }
  .portal__frame img { transform: none; }
  .portal__caption { opacity: 1; }
}
