/* Lucien Kimono — v1
   Plan : noir pur, blanc, un gris pour les métadonnées. Archivo partout :
   largeur normale pour le texte, étroite et lourde pour les titres.
   Un seul geste fort : les titres géants posés sur des plans pleine largeur. */

:root {
  --bg: #000;
  --fg: #fff;
  --mute: #8c8c8c;
  --pad: clamp(16px, 2.6vw, 40px);
  --head-h: 56px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--head-h); background: var(--bg); }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-stretch: 100%;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }

/* ---------- Header ---------- */
.head {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  height: var(--head-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--pad);
  mix-blend-mode: difference; color: #fff;
  font-size: 14px; font-weight: 500;
}
.head nav { display: flex; gap: clamp(14px, 2.4vw, 32px); flex-wrap: wrap; justify-content: flex-end; }
.head a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Hero ---------- */
.hero {
  min-height: 78svh;
  padding: calc(var(--head-h) + var(--pad)) var(--pad) var(--pad);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 20px;
}
.hero h1 {
  font-stretch: 62%; font-weight: 850; text-transform: uppercase;
  font-size: clamp(4.2rem, 21vw, 24rem);
  line-height: .8; letter-spacing: -.015em;
  margin-left: -.04em;
}
.hero p { max-width: 34ch; font-size: clamp(1rem, 1.5vw, 1.25rem); }

/* ---------- Work stack ---------- */
.work { padding: 0 0 clamp(40px, 6vw, 96px); }
.frame {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 16 / 9; background: #161616;
}
.frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.62);
  transition: filter .5s ease, transform 1.2s ease;
}
.frame:hover img, .frame:focus-visible img { filter: brightness(.85); transform: scale(1.015); }
.frame h2 {
  position: absolute; left: var(--pad); right: var(--pad); bottom: calc(var(--pad) * .7);
  font-stretch: 62%; font-weight: 850; text-transform: uppercase;
  font-size: clamp(3rem, 12.5vw, 15rem);
  line-height: .82; letter-spacing: -.012em;
  text-wrap: balance;
}
.facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px var(--pad);
  padding: 16px var(--pad) 0;
  font-size: 15px;
}
.facts .kind { font-weight: 600; }
.facts .who, .facts .note { color: var(--mute); }
.facts .where { text-align: right; }
.links { display: flex; gap: 22px; padding: 14px var(--pad) 0; font-size: 15px; font-weight: 600; }
.links a { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.links a:hover { text-decoration-thickness: 2px; }

/* ---------- Section heading ---------- */
.sec {
  padding: clamp(48px, 8vw, 120px) var(--pad) 0;
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.sec h2 {
  font-stretch: 62%; font-weight: 850; text-transform: uppercase;
  font-size: clamp(2.6rem, 9vw, 9rem); line-height: .85; letter-spacing: -.01em;
}
.sec a { font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* ---------- Discography ---------- */
.disco { list-style: none; margin-top: clamp(24px, 4vw, 56px); border-top: 1px solid #fff; }
.disco li { border-bottom: 1px solid #333; }
.disco a {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 18rem) 4.5rem; gap: var(--pad);
  align-items: baseline;
  padding: 14px var(--pad);
  transition: background .15s, color .15s;
}
.disco a:hover, .disco a:focus-visible { background: #fff; color: #000; outline-offset: -2px; }
.disco .t {
  font-stretch: 62%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.7rem, 4.6vw, 4.4rem); line-height: .95;
}
.disco .f { font-size: 15px; }
.disco .y { font-size: 15px; text-align: right; font-variant-numeric: tabular-nums; }
.disco li.next .t::after { content: "  8 January 2027"; font-stretch: 100%; font-weight: 500; text-transform: none; font-size: 15px; letter-spacing: 0; margin-left: .6em; }

/* ---------- Two big doors ---------- */
.doors { margin-top: clamp(48px, 8vw, 120px); border-top: 1px solid #fff; }
.door {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: var(--pad); align-items: end;
  padding: clamp(20px, 3vw, 44px) var(--pad);
  border-bottom: 1px solid #333;
  transition: background .15s, color .15s;
}
.door:hover, .door:focus-visible { background: #fff; color: #000; outline-offset: -2px; }
.door strong {
  font-stretch: 62%; font-weight: 850; text-transform: uppercase;
  font-size: clamp(3rem, 12.5vw, 15rem); line-height: .82; letter-spacing: -.012em;
}
.door span { font-size: 15px; max-width: 30ch; }

/* ---------- Footer ---------- */
.foot { padding: clamp(48px, 8vw, 120px) var(--pad) var(--pad); display: grid; gap: 40px; }
.foot .mail {
  font-stretch: 62%; font-weight: 850; text-transform: uppercase;
  font-size: clamp(2.2rem, 8.5vw, 9rem); line-height: .85; overflow-wrap: anywhere;
}
.foot .mail:hover { text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .08em; }
.foot ul { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; font-size: 15px; font-weight: 600; }
.foot small { color: var(--mute); font-size: 12px; max-width: 70ch; display: block; }

/* ---------- Rescores page ---------- */
.page-title { padding: calc(var(--head-h) + var(--pad)) var(--pad) 0; }
.page-title h1 {
  font-stretch: 62%; font-weight: 850; text-transform: uppercase;
  font-size: clamp(4rem, 19vw, 22rem); line-height: .8; letter-spacing: -.015em; margin-left: -.04em;
}
.page-title p { margin-top: 20px; max-width: 46ch; }
/* ---------- Small screens ---------- */
@media (max-width: 720px) {
  .head { font-size: 13px; align-items: flex-start; padding-top: 14px; height: auto; min-height: var(--head-h); }
  .head nav { gap: 4px 14px; max-width: 62%; }
  .facts { grid-template-columns: 1fr; }
  .facts .where { text-align: left; }
  .frame { aspect-ratio: 4 / 5; }
  .frame h2 { font-size: clamp(3rem, 19vw, 7rem); }
  .disco a { grid-template-columns: 1fr auto; row-gap: 2px; }
  .disco .f { grid-column: 1; }
  .disco .y { grid-column: 2; grid-row: 1; }
  .door { grid-template-columns: 1fr; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .frame img { transition: none; }
}

/* ---------- Ajouts v1.1 ---------- */
.sec-links { display: flex; gap: 24px; flex-wrap: wrap; }
.frame.playing { aspect-ratio: 16 / 9; background: #000; }
.frame.playing iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 720px) { .frame.playing { aspect-ratio: 16 / 9; } }

/* ---------- v1.2 : crédits, mention légale, rescores ---------- */
.facts .where { color: var(--mute); }
.facts .where .prod { color: var(--fg); }
.facts .where .note { color: var(--mute); }

.legal { font-size: 12px; max-width: 70ch; }
.legal summary { cursor: pointer; color: var(--mute); width: max-content; list-style: none; }
.legal summary::-webkit-details-marker { display: none; }
.legal summary:hover, .legal[open] summary { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }
.legal p { margin-top: 10px; color: var(--mute); }


dialog.player { border: 0; padding: 0; background: #000; color: #fff; max-width: 100vw; max-height: 100vh; margin: auto; overflow: hidden; }
dialog.player::backdrop { background: rgba(0,0,0,.92); }
dialog.player video { display: block; height: min(86vh, 900px); max-width: 96vw; width: auto; background: #000; }
dialog.player form { position: absolute; top: 8px; right: 8px; }
dialog.player button { background: #000; color: #fff; border: 1px solid #fff; font: inherit; font-size: 14px; padding: 4px 12px; cursor: pointer; }
dialog.player button:hover { background: #fff; color: #000; }


/* ---------- Rescores : anneau 3D ---------- */
:root { --cover-ratio: 3 / 4; --cw: clamp(170px, 21vw, 290px); }
.stage {
  position: relative; height: clamp(470px, 72vh, 690px);
  margin-top: clamp(16px, 3vw, 48px);
  perspective: 1700px; perspective-origin: 50% 42%;
  overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  outline-offset: -3px;
}
.stage.dragging { cursor: grabbing; }
.stage:focus-visible { outline: 1px solid #555; }
.ring { position: absolute; inset: 0; transform-style: preserve-3d; }
.card {
  position: absolute; left: 50%; top: 42%;
  width: var(--cw); aspect-ratio: var(--cover-ratio);
  margin-left: calc(var(--cw) / -2); margin-top: calc(var(--cw) * -0.6667);
  transform: rotateY(calc(var(--i) * var(--step))) translateZ(var(--R));
  backface-visibility: visible;
  filter: brightness(var(--b, 1));
  background: #161616; border: 0; padding: 0; cursor: pointer; color: inherit; font: inherit;
  -webkit-box-reflect: below 8px linear-gradient(transparent 72%, rgba(255,255,255,.16));
}
.card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }


.now {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); gap: var(--pad); align-items: end;
  padding: clamp(16px, 2.4vw, 32px) var(--pad) 0;
}
.now h2 {
  font-stretch: 62%; font-weight: 850; text-transform: uppercase;
  font-size: clamp(2.6rem, 8.5vw, 8.5rem); line-height: .84; letter-spacing: -.012em; text-wrap: balance;
}
.now .credit { color: var(--mute); font-size: 15px; text-align: right; }
.ctrl { display: flex; align-items: center; gap: 18px; padding: 18px var(--pad) 0; font-size: 15px; font-variant-numeric: tabular-nums; }
.ctrl button {
  background: none; border: 1px solid #fff; color: #fff; font: inherit; font-size: 15px;
  width: 44px; height: 32px; cursor: pointer; transition: background .15s, color .15s;
}
.ctrl button:hover, .ctrl button:focus-visible { background: #fff; color: #000; }
.ctrl .hint { color: var(--mute); margin-left: auto; }
@media (max-width: 720px) {
  :root { --cw: clamp(150px, 52vw, 240px); }
  .stage { perspective: 1100px; }
  .now { grid-template-columns: 1fr; gap: 8px; }
  .now .credit { text-align: left; }
  .ctrl .hint { display: none; }
}
@media (prefers-reduced-motion: reduce) { .card { -webkit-box-reflect: none; } }


/* ---------- v1.3 : UX carrousel ---------- */
.card:hover, .card:focus-visible { filter: brightness(calc(var(--b, 1) + .22)); }
.card:focus-visible { outline: 1px solid #fff; outline-offset: 3px; }
.card[aria-current="true"]::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px;
  border: 1px solid #fff; border-radius: 50%;
  background: rgba(0,0,0,.5) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 6v12l10-6z'/%3E%3C/svg%3E") center / 26px no-repeat;
  opacity: 0; transition: opacity .2s; pointer-events: none;
}
.card[aria-current="true"]:hover::after, .card[aria-current="true"]:focus-visible::after { opacity: 1; }

.rotate-hint {
  display: flex; justify-content: center; align-items: center; gap: 14px;
  padding-top: 4px; color: var(--mute); font-size: 13px; transition: opacity .6s;
}
.rotate-hint svg { width: 14px; height: 18px; display: block; fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.rotate-hint .l svg { animation: nudge-l 2.2s ease-in-out infinite; }
.rotate-hint .r svg { animation: nudge-r 2.2s ease-in-out infinite; }
@keyframes nudge-l { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-7px); } }
@keyframes nudge-r { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(7px); } }
.rotate-hint.used { opacity: .4; }
.rotate-hint.used svg { animation: none; }

.now h2, .now .credit { transition: opacity .12s, transform .12s; }
.now.swap h2, .now.swap .credit { opacity: 0; transform: translateY(6px); }
.now .side { display: grid; gap: 10px; justify-items: end; }
.now .play { background: none; border: 0; color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; padding: 0;
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.now .play:hover, .now .play:focus-visible { text-decoration-thickness: 2px; }
.ctrl { justify-content: flex-start; }
dialog.player .ptitle { position: absolute; left: 12px; top: 10px; font-size: 14px; font-weight: 600; pointer-events: none; text-shadow: 0 0 6px #000; }
@media (max-width: 720px) { .now .side { justify-items: start; } }


/* ---------- v1.4 : deux polices, carrousel resserré ---------- */
:root {
  --ttl: clamp(2.8rem, 8vw, 8rem);
  --sh: clamp(300px, calc(100svh - 170px - 1.64 * var(--ttl)), 640px);
  --cw: min(21vw, 290px, calc(var(--sh) * 0.54));
}


/* Rescores : titre du haut et titre du film symétriques, le tout dans un seul écran */
.page-title { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--pad); padding-top: calc(var(--head-h) + 6px); }
.page-title h1 { font-size: var(--ttl); }
.page-title p { margin-top: 0; max-width: 30ch; text-align: right; padding-bottom: .2em; }
.stage { height: var(--sh); margin-top: 6px; }
.rotate-hint { padding-top: 0; gap: 6px; }
.rotate-hint .chev { background: none; border: 0; padding: 8px 12px; cursor: pointer; line-height: 0; }
.rotate-hint .chev:focus-visible { outline: 1px solid #fff; }
.rotate-hint .chev:hover svg { stroke-width: 2.2; }
.now { padding-top: 6px; padding-bottom: var(--pad); }
.now h2 { font-size: var(--ttl); }
.now .side { gap: 6px; }
.now .meta { display: flex; align-items: baseline; gap: 18px; font-size: 14px; color: var(--mute); font-variant-numeric: tabular-nums; }
@media (max-width: 720px) {
  :root { --ttl: clamp(2.4rem, 13vw, 4.6rem); --cw: min(52vw, 240px, calc(var(--sh) * 0.54)); }
  .page-title { flex-direction: column; align-items: flex-start; gap: 6px; }
  .page-title p { text-align: left; max-width: 36ch; }
  .now .meta { justify-content: flex-start; }
}
.rotate-hint.used { opacity: 1; }
.rotate-hint.used .t { opacity: .45; }
.rotate-hint .t { transition: opacity .6s; }

/* v1.5 : anneau centré entre le titre du haut et celui du bas */
.stage { perspective-origin: 50% 50%; margin-top: 10px; }
.card { top: calc(50% + 10px); }

/* v1.6 : la phrase d'intro revient sous le titre, à gauche */
:root { --sh: clamp(300px, calc(100svh - 240px - 1.64 * var(--ttl)), 640px); }
.page-title { display: block; }
.page-title p { text-align: left; max-width: 46ch; margin-top: 14px; padding-bottom: 0; }
