/* Numis Note — page brun profond comme le coffret, l'or de la pièce en fil conducteur,
   la trame du projet en fond discret. Chargé après site-v2.css, uniquement sur numisnote.html. */
html:has(body.numis),body.numis { overflow-x:clip; }
body.numis {
  --ink:#f1e8d6; --soft:#a39580; --line:#3b2e20; --paper:#1d150d; --accent:#cea728;
  --gold:#c8a001; --gold-soft:#cea728;
  background:var(--paper); color:var(--ink);
}
.numis ::selection { background:var(--gold); color:var(--paper); }
.numis a:focus-visible { outline-color:var(--gold-soft); }
.numis .project-page { padding-top:60px; }
.numis .eyebrow { color:var(--gold-soft); }

/* Ouverture */
.numis .numis-hero { display:block; margin-bottom:clamp(70px,11vh,120px); }
.numis-hero-title { align-items:end; display:grid; gap:20px; grid-template-columns:repeat(12,1fr); }
.numis-hero-title .project-title { grid-column:1 / span 7; }
.numis-hero-title .project-info { color:var(--soft); grid-column:9 / span 4; }
.numis-intro { display:grid; gap:20px; grid-template-columns:repeat(12,1fr); margin-top:clamp(50px,8vh,90px); }
.numis-intro > p { color:#cfc3ae; font-size:15px; grid-column:1 / span 5; line-height:1.7; }
.numis .project-meta { border-top-color:var(--gold); grid-column:7 / span 6; }
.numis .project-meta dt { color:var(--gold-soft); }

/* Bandeau : le logo posé sur la trame, qui glisse lentement */
.numis-band { align-items:center; display:flex; height:clamp(280px,36vw,480px); justify-content:center; margin:clamp(70px,11vh,120px) calc(50% - 50vw) 0; overflow:hidden; position:relative; width:100vw; }
.numis-band::before { animation:numis-drift 90s linear infinite; background:url("img/numisnote-trame.svg") 0 0 / 566px 159.7px repeat; content:""; inset:0; opacity:.13; position:absolute; }
.numis-band::after { background:radial-gradient(closest-side,var(--paper) 35%,transparent); content:""; height:130%; left:50%; position:absolute; top:50%; transform:translate(-50%,-50%); width:min(760px,95vw); }
.numis-band img { height:auto; position:relative; width:min(460px,72vw); z-index:1; }
@keyframes numis-drift { to { background-position:-566px 0; } }

/* Chapitres : numéro, titre, visuel d'appui */
.numis-chapter { align-items:end; border-top:1px solid var(--line); display:grid; gap:20px; grid-template-columns:repeat(12,1fr); padding-top:15px; position:relative; width:100%; }
.numis-chapter::before { background:var(--gold); content:""; height:3px; left:0; position:absolute; top:-2px; width:56px; }
.numis-chapter .eyebrow { align-self:start; grid-column:1 / span 2; margin:0; }
.numis-chapter-copy { align-self:start; grid-column:3 / span 4; }
.numis-chapter h2 { font-size:clamp(28px,3.4vw,50px); font-weight:400; letter-spacing:-.05em; line-height:1; }
.numis-chapter h2 em { color:var(--gold-soft); font-style:normal; }
.numis-chapter-copy p { color:#cfc3ae; font-size:15px; line-height:1.7; margin-top:22px; max-width:34ch; }
.numis-chapter figure { grid-column:8 / span 5; margin:0; }
.numis-chapter figure img { display:block; height:auto; width:100%; }

/* Les quatre signes de la trame, devenus pictogrammes de l'application */
.numis-glyphs { display:grid; gap:20px; grid-template-columns:repeat(4,1fr); list-style:none; margin:0; padding:0; width:100%; }
.numis-glyphs li { align-items:center; border-top:1px solid var(--line); display:flex; flex-direction:column; gap:22px; padding:44px 0 6px; }
.numis-glyphs svg { background:#ece4d3; border-radius:50%; fill:var(--gold); height:68px; transition:transform .5s cubic-bezier(.16,1,.3,1); width:68px; }
.numis-glyphs li:hover svg { transform:translateY(-6px); }
.numis-glyphs span { color:var(--soft); font-family:"DM Mono",monospace; font-size:10px; text-transform:uppercase; }

/* Bande de trame, en séparateur */
.numis-strip { animation:numis-drift 70s linear infinite reverse; background:url("img/numisnote-trame.svg") 0 50% / 566px 159.7px repeat-x; height:160px; margin-inline:calc(50% - 50vw); opacity:.18; width:100vw; }

/* Vidéos et légendes sur fond sombre */
.numis .video-project video { background:#120d07; }
/* Vidéos à leur taille d'origine sur grand écran, pour rester nettes */
.numis .numis-video { align-self:center; }
.numis .numis-video--wide { width:min(100%,692px); }
.numis .numis-video--tall { width:min(100%,320px); }
.numis .numis-video--tall video { aspect-ratio:290 / 630; height:auto; max-height:none; }
.numis .video-caption,.numis .project-gallery figcaption { color:var(--soft); }

/* Projet suivant */
.numis .next-project h2 { transition:color .3s ease; }
.numis .next-project:hover { opacity:1; }
.numis .next-project:hover h2 { color:var(--gold-soft); }

@media (prefers-reduced-motion:reduce) {
  .numis-band::before,.numis-strip { animation:none; }
  .numis-glyphs svg { transition:none; }
}

@media (max-width:760px) {
  .numis-hero-title,.numis-intro,.numis-chapter { display:block; }
  .numis-hero-title .project-info { margin-top:25px; }
  .numis-intro > p { margin-bottom:34px; }
  .numis-chapter .eyebrow { margin-bottom:18px; }
  .numis-chapter figure { margin-top:30px; }
  .numis-glyphs { grid-template-columns:repeat(2,1fr); row-gap:0; }
  .numis-glyphs li { padding-top:30px; }
  .numis-glyphs svg { height:56px; width:56px; }
  .numis-band::before,.numis-strip { background-size:396px 112px; }
  .numis-strip { height:112px; }
  @keyframes numis-drift { to { background-position:-396px 0; } }
}
