/* « Le pli » — styves.dev, maquette B.
   Tout est papier plié sous une seule lampe, en haut à gauche. */

:root {
  --page: #efe7d8;
  --sheet: #f9f4ea;
  --ink: #2a211b;
  --ink2: #5a4c40;
  --fox: #d4682c;
  --fox-ink: #a8481a;
  --crease-dark: rgba(96, 66, 38, 0.22);
  --crease-light: rgba(255, 252, 244, 0.75);
  --sh: 62, 40, 22;
  --serif: 'Sorts Mill Goudy', 'Goudy Old Style', 'Iowan Old Style', Georgia, serif;
  --sans: 'Hanken Grotesk', 'Avenir Next', system-ui, sans-serif;
  --ease: cubic-bezier(.22, .7, .18, 1);
  --grain: url(img/grain.webp);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--page);
  background-image: var(--grain);
  background-size: 512px;
  background-blend-mode: multiply;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--fox-ink); outline-offset: 4px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: 'SOFT' 100, 'opsz' 144;
  letter-spacing: -0.015em;
  margin: 0;
}

/* ---------- En-tête ---------- */
.top {
  /* Fixe en haut : une bande du même papier, posée sur la page avec une ombre douce */
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 40px;
  padding: 12px 48px;
  background-color: var(--page); background-image: var(--grain); background-size: 512px; background-blend-mode: multiply;
  box-shadow: 0 1px 0 rgba(var(--sh), .07), 0 10px 20px -10px rgba(var(--sh), .34);
}
html { scroll-padding-top: 92px; }
#intro { scroll-margin-top: -92px; }   /* écran entier : son haut au haut de l'écran (elle a déjà sa marge pour l'en-tête) */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--serif); font-size: 21px; font-variation-settings: 'SOFT' 100, 'opsz' 36; letter-spacing: -0.01em; }
.brand .mark { width: 50px; height: auto; }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink2); padding: 6px 0; position: relative; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: linear-gradient(var(--crease-dark), var(--crease-dark)) 0 0 / 100% 1px no-repeat, linear-gradient(var(--crease-light), var(--crease-light)) 0 1px / 100% 1px no-repeat; transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

/* ---------- Arrivée : le logo, seul ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: 104px 24px 80px;
}
.hero::before { /* la lampe : un peu plus de lumière autour du renard */
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(ellipse 46% 54% at 50% 48%, rgba(255, 251, 242, .75), rgba(255, 251, 242, 0) 70%);
}
/* Le logo tel quel : la tête (une image à part, qu'on peut étirer) et le nom juste dessous, à la même échelle.
   Hauteur du logo = 1,128 × sa largeur : il tient toujours dans le premier écran, sous l'en-tête. */
.lockup { width: min(88vw, 640px, calc((100vh - 190px) / 1.128)); }
@supports (height: 100svh) { .lockup { width: min(88vw, 640px, calc((100svh - 190px) / 1.128)); } }
/* Au bas du premier écran : une flèche fine qui respire, pour inviter à descendre (clic : « I build things. »). */
.scroll-cue { position: absolute; left: 50%; bottom: 20px; width: 44px; height: 52px; margin-left: -22px; display: grid; place-items: center; color: var(--ink2); transition: color .3s var(--ease); }
.scroll-cue svg { width: 18px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; animation: cue 2.4s var(--ease) infinite; }
.scroll-cue:hover { color: var(--fox-ink); }
.scroll-cue:focus-visible { outline: 2px solid var(--fox-ink); outline-offset: 2px; }
@keyframes cue { 0%, 100% { transform: translateY(-4px); opacity: .5; } 50% { transform: translateY(6px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue svg { animation: none; } }
.lockup h1 { margin: 0; line-height: 0; }
.fox, .wordmark { display: block; width: 100%; height: auto; }
.wordmark { -webkit-user-drag: none; }
.fox.stretchy { cursor: grab; touch-action: pan-y; -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
.fox.live { opacity: 0; }   /* pendant le geste, c'est le canevas qui dessine le renard */
body.fox-grabbing, body.fox-grabbing * { cursor: grabbing !important; }
.fox-gl { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 40; display: none; }
.fox-gl.on { display: block; }

/* L'en-tête ne répète pas le nom tant que le grand logo est à l'écran */
.brand { transition: opacity .45s var(--ease), visibility .45s; }
.home:not(.past-logo) .top .brand { opacity: 0; visibility: hidden; }

/* ---------- Présentation, juste sous le logo ---------- */
/* Un écran entier, comme le logo au-dessus : le contenu au milieu (un peu plus d'air en haut, sous l'en-tête fixe). */
.intro {
  min-height: 100vh; min-height: 100svh; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 96px 24px 72px;
}
.intro h2 { font-size: clamp(44px, 5.2vw, 76px); line-height: .96; letter-spacing: -0.02em; }
.intro h2 em { font-style: italic; color: var(--fox-ink); }
/* « I build things. » écrit à la plume, encre bleue riche. L'encre n'est pas uniforme : plus dense en bas du trait, là où
   elle s'accumule; ses bords boivent un peu le papier (filtre #ink dans index.html); elle se pose dans le grain. Le
   remplissage déborde la boîte (padding) pour que les boucles de la plume ne soient pas coupées. */
.intro h2.ink {
  display: inline-block; margin: 0; padding: .08em .22em .24em;
  font-family: 'Ms Madi', var(--serif); font-weight: 400; font-size: clamp(70px, 7.8vw, 120px); line-height: 1.02; letter-spacing: 0;
  background: linear-gradient(176deg, #2b4fbd 0%, #1f3d9f 42%, #172f84 70%, #11256b 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: url(#ink); mix-blend-mode: multiply;
}
.intro h2.ink em { font-style: normal; color: inherit; }
.ink-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.lede {
  margin: 26px auto 34px; max-width: 30ch; text-wrap: balance;
  font-family: var(--serif); font-size: clamp(24px, 2.3vw, 31px); line-height: 1.36; letter-spacing: -.003em; color: var(--ink);
}
.lede em { display: block; margin: .45em -4ch 0; font-style: italic; color: var(--ink2); }   /* un peu plus large : une seule ligne */
.intro .quiet { font-size: 16.5px; letter-spacing: .01em; }

.quiet { font-weight: 600; font-size: 15px; text-decoration: none; color: var(--ink); border-bottom: 1px solid rgba(var(--sh), .35); padding-bottom: 2px; }
.quiet:hover { border-bottom-color: var(--fox-ink); color: var(--fox-ink); }

/* ---------- Plis entre les sections ---------- */
.crease {
  height: 60px;
  background:
    linear-gradient(to bottom,
      rgba(96,66,38,0) 0%, rgba(96,66,38,.035) 40%, var(--crease-light) 49%,
      var(--crease-dark) 50.5%, rgba(96,66,38,.08) 53%, rgba(96,66,38,.025) 70%, rgba(96,66,38,0) 100%);
}

/* ---------- Sections ---------- */
.section { padding: 52px 0 76px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 48px; }
.sec-head h2 { font-size: clamp(40px, 4.4vw, 60px); line-height: 1; }
.sec-head p { margin: 14px 0 0; max-width: 54ch; color: var(--ink2); font-size: 17.5px; }
.sec-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }

/* ---------- Projets : les feuilles ---------- */
/* Une carte de papier crème par projet : l'image entière en haut, un pli discret dessous,
   le coin qui se replie au survol. Toutes pareilles, droites; la couleur du projet n'est qu'un point. */
/* Deux groupes, l'idée du logo : à gauche le papier plié (kraft), à droite le patron au crayon.
   « Released » : une étiquette de kraft au coin replié. « In development » : la même, encore à plat,
   tracée au crayon, avec son pli en vallée (tirets) et la flèche des diagrammes d'origami. */
.group { display: flex; align-items: center; gap: 24px; margin: 52px 0 0; }
.group::after { content: ''; flex: 1; min-width: 40px; height: 2px; background: linear-gradient(to bottom, var(--crease-dark) 0 1px, var(--crease-light) 1px 2px); }
.group-note { margin: 0; font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.2; color: var(--ink2); white-space: nowrap; }
.label {
  --corner: 22px;
  position: relative; isolation: isolate; flex: none; margin: 0; padding: 15px calc(var(--corner) + 22px) 15px 24px;
  font-family: var(--serif); font-size: 31px; line-height: 1; font-weight: 400; letter-spacing: -.005em; white-space: nowrap;
}
.label.folded { color: #3d2413; filter: drop-shadow(0 1px 1px rgba(var(--sh), .28)) drop-shadow(0 9px 12px rgba(var(--sh), .2)); }
.label.folded::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--grain) 0 0 / 512px, linear-gradient(165deg, #ebb97d 0%, #dda366 45%, #cd8f52 100%);
  background-blend-mode: multiply;
  clip-path: polygon(0 0, calc(100% - var(--corner)) 0, 100% var(--corner), 100% 100%, 0 100%);
}
.label.folded::after { /* le coin replié : l'envers du kraft, plus pâle */
  content: ''; position: absolute; top: 0; right: 0; width: var(--corner); height: var(--corner);
  background: linear-gradient(45deg, #f8e2bf 0%, #f0cc98 47%, rgba(0,0,0,0) 50%);
  filter: drop-shadow(-1.5px 2.5px 2px rgba(80, 40, 10, .3));
}
/* « In development » : un tapis de coupe noir, l'établi où l'on plie. Quadrillage fin, lignes maîtresses aux 100 px,
   une diagonale à 45°, la règle graduée en haut. L'étiquette y est une feuille blanche encore à plat :
   le pli à faire en tirets (pli en vallée) et la flèche des diagrammes d'origami, au crayon. */
.mat {
  --line: 226, 228, 230;
  position: relative; isolation: isolate; margin: 84px -36px 0; padding: 52px 36px 44px; border-radius: 16px;
  background-color: #1c1d1f;
  background-image:
    linear-gradient(to right, rgba(var(--line), .085) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(var(--line), .085) 1px, transparent 1px),
    linear-gradient(to right, rgba(var(--line), .035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(var(--line), .035) 1px, transparent 1px),
    linear-gradient(135deg, transparent calc(50% - 1px), rgba(var(--line), .07) 50%, transparent calc(50% + 1px)),
    radial-gradient(120% 90% at 20% 0%, rgba(255, 250, 235, .06), rgba(0, 0, 0, 0) 60%),
    radial-gradient(100% 100% at 100% 100%, rgba(0, 0, 0, .3), rgba(0, 0, 0, 0) 60%);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px, 100% 100%, 100% 100%, 100% 100%;
  background-position: 35px 35px, 35px 35px, 35px 35px, 35px 35px, 0 0, 0 0, 0 0;
  box-shadow: 0 3px 0 #0c0d0e, 0 4px 2px rgba(var(--sh), .25), 0 30px 50px -24px rgba(var(--sh), .55), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.mat::before { /* la règle graduée, le long du bord du haut */
  content: ''; position: absolute; z-index: -1; left: 35px; right: 24px; top: 0; height: 14px; pointer-events: none;
  background:
    linear-gradient(to right, rgba(var(--line), .42) 1px, transparent 1px) 0 0 / 100px 14px repeat-x,
    linear-gradient(to right, rgba(var(--line), .3) 1px, transparent 1px) 0 0 / 50px 9px repeat-x,
    linear-gradient(to right, rgba(var(--line), .2) 1px, transparent 1px) 0 0 / 10px 5px repeat-x;
}
.mat::after { /* le grain du tapis */
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: var(--grain) 0 0 / 512px; mix-blend-mode: multiply; opacity: .5;
}
.mat .group { margin-top: 0; }
.mat .group::after { display: none; }
.mat .group-note { color: rgba(var(--line), .74); }
.label.sketch { color: #34302c; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .3)) drop-shadow(0 10px 14px rgba(0, 0, 0, .28)); }
.label.sketch::before { /* la feuille, à plat sur le tapis */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--grain) 0 0 / 512px, linear-gradient(165deg, #fffdf8, #f3ede1);
  background-blend-mode: multiply;
}
.label.sketch { --corner: 30px; }
.fold-mark { position: absolute; top: 0; right: 0; width: 52px; height: 52px; overflow: visible; fill: none; stroke: #3a3530; stroke-linecap: round; stroke-linejoin: round; }
.fold-mark .valley { stroke-width: 1.3; stroke-dasharray: 3.4 2.8; opacity: .8; }
.fold-mark .arrow { stroke-width: 1.4; }
.fold-mark .head { fill: #3a3530; stroke-width: .8; }
.tiles + .mat { margin-top: 84px; }
.mat .tile { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .3)) drop-shadow(0 12px 18px rgba(0, 0, 0, .26)); }
.mat .soon-band { border-color: rgba(var(--line), .34); color: rgba(var(--line), .72); }
.mat .soon-band strong { color: #f3efe2; }
.tiles {
  list-style: none; padding: 0; margin: 22px 0 0;
  --row-gap: 40px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--row-gap) 32px;
}
.tile {
  position: relative;
  filter: drop-shadow(0 1px 1px rgba(var(--sh), .16)) drop-shadow(0 10px 16px rgba(var(--sh), .11));
  /* L'ombre ne change jamais au survol : la changer pendant que la carte monte la faisait clignoter dans Chrome
     (elle disparaissait une image, puis revenait). La carte reste sur sa propre couche, survolée ou non. */
  transition: transform .6s var(--ease);
  will-change: transform;
}
.tile:not(.open):hover { transform: translateY(-6px); }
.face {
  all: unset; box-sizing: border-box; cursor: pointer;
  --ink: #2a211b; --ink2: #5f5247; --ear: 0px;
  position: relative; display: flex; flex-direction: column; width: 100%; height: 100%;
  padding: 12px 12px 22px;
  color: var(--ink); background-color: var(--sheet);
  clip-path: polygon(0 0, calc(100% - var(--ear)) 0, 100% var(--ear), 100% 100%, 0 100%);
  transition: clip-path .6s var(--ease);
}
.tile:hover .face, .face:focus-visible { --ear: 30px; }
.face::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: var(--grain) 0 0 / 512px; mix-blend-mode: multiply; opacity: .75; }
.face:focus-visible { outline: none; }
.tile:has(.face:focus-visible) { outline: 2px solid var(--fox-ink); outline-offset: 6px; }
.face .dogear {
  position: absolute; top: 0; right: 0; width: var(--ear); height: var(--ear);
  background: linear-gradient(45deg, #e6dccb 0%, #f6f0e5 44%, #fffdf8 49%, rgba(0,0,0,0) 50%);
  transition: width .6s var(--ease), height .6s var(--ease);
  filter: drop-shadow(-2px 3px 3px rgba(0,0,0,.16));
}
.print { position: relative; display: block; aspect-ratio: 1400 / 735; background: #1a1714; }
.print img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.print::after { /* le pli sous l'image : une arête, puis la moitié basse un peu dans l'ombre */
  content: ''; position: absolute; left: -12px; right: -12px; top: calc(100% + 12px); height: 64px; pointer-events: none;
  background:
    linear-gradient(to bottom, var(--crease-dark) 0, var(--crease-dark) 1px, var(--crease-light) 1px, var(--crease-light) 2px, rgba(0,0,0,0) 2px),
    linear-gradient(to bottom, rgba(var(--sh), .06), rgba(var(--sh), 0));
}
.name { margin: 26px 8px 0; font-family: var(--serif); font-size: 26px; line-height: 1.1; font-weight: 500; font-variation-settings: 'SOFT' 100, 'opsz' 48; letter-spacing: -0.01em; }
.line { margin: 6px 8px 0; font-size: 15px; line-height: 1.45; color: var(--ink2); }
.meta { display: flex; align-items: center; gap: 9px; margin: auto 8px 0; padding-top: 18px; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); }
.meta::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
/* « Coming soon » : une bande de papier bleu émeraude posée en travers du coin haut gauche (le coin haut droit est celui
   qui se corne au survol). La face coupe ce qui dépasse : la bande s'arrête net aux bords, comme rabattue derrière.
   Elle ne bouge pas toute seule : elle monte avec la carte, rien d'autre. */
.ribbon {
  position: absolute; z-index: 1; top: 36px; left: -52px; width: 200px;
  transform: rotate(-45deg); pointer-events: none;
  padding: 7px 0 6px; text-align: center;
  font-size: 11px; line-height: 1.1; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff8ee;
  background: #0f8076 var(--grain) 0 0 / 256px; background-blend-mode: multiply;
  box-shadow: 0 2px 4px rgba(var(--sh), .32), inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(0, 40, 36, .25);
}

/* À venir : une bande en pointillés de pli (le tiret = pli en vallée), un petit carré plié */
.soon-band {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 22px;
  padding: 20px 26px; border: 1.5px dashed rgba(90, 70, 50, .32); border-radius: 2px;
  color: var(--ink2); font-size: 15.5px;
}
.soon-band p { margin: 0; }
.soon-band strong { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 19px; color: var(--ink); margin-right: 4px; }
.blintz {
  position: relative; flex: none; width: 52px; aspect-ratio: 1; perspective: 400px;
  filter: drop-shadow(0 1px 1px rgba(var(--sh), .2)) drop-shadow(0 5px 6px rgba(var(--sh), .14));
}
.fl { position: absolute; inset: 0; background-color: #f2ebdf; transition: transform 1.1s var(--ease); }
.fl.t { clip-path: polygon(0 0, 100% 0, 50% 50%); background-image: linear-gradient(to bottom, #fbf7ef, #efe7da); transform-origin: 50% 0; }
.fl.l { clip-path: polygon(0 0, 50% 50%, 0 100%); background-image: linear-gradient(to right, #f5efe4, #e8dfd0); }
.fl.r { clip-path: polygon(100% 0, 100% 100%, 50% 50%); background-image: linear-gradient(to left, #e2d8c6, #d8ccb7); }
.fl.b { clip-path: polygon(0 100%, 100% 100%, 50% 50%); background-image: linear-gradient(to top, #ddd2be, #d0c3ac); }
.blintz::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(45deg, rgba(0,0,0,0) 49.4%, rgba(90,60,30,.2) 50%, rgba(255,255,255,.5) 50.6%, rgba(0,0,0,0) 51.2%),
    linear-gradient(-45deg, rgba(0,0,0,0) 49.4%, rgba(255,255,255,.5) 50%, rgba(90,60,30,.18) 50.6%, rgba(0,0,0,0) 51.2%);
}
.soon-band:hover .fl.t { transform: rotateX(-28deg); }

/* La feuille dépliée : une rangée à elle, glissée sous la rangée de sa carte (app.js), les autres cartes ne bougent pas.
   1. la rangée s'ouvre (grid-template-rows 0fr -> 1fr) : la feuille pliée sort du pli;
   2. la feuille s'ouvre comme un livre (.leaf.r), sa couverture étant l'image de la carte.
   Pendant 1, clip-path coupe en haut et en bas seulement (les ombres débordent sur les côtés); ensuite plus rien n'est coupé. */
.tile.open .face { --ear: 30px; }
.unfold {
  grid-column: 1 / -1;
  display: grid; grid-template-rows: 0fr;
  margin: calc(-1 * var(--row-gap)) 0 0;        /* fermée, elle n'ajoute aucun espace */
  transition: grid-template-rows .55s var(--ease), margin .55s var(--ease);
}
.unfold.is-open { grid-template-rows: 1fr; margin: 0 0 calc(-1 * var(--row-gap)); }
.unfold-clip { min-height: 0; clip-path: inset(0 -80px 0 -80px); }
.unfold.settled .unfold-clip { clip-path: none; }
.unfold-pad { padding-bottom: 48px; }        /* la place de l'ombre sous la feuille */
.spread { position: relative; display: grid; grid-template-columns: 1fr 1fr; perspective: 2600px; }
.spread[hidden] { display: none; }
.leaf { position: relative; min-height: 470px; color: var(--ink); }
.leaf.l {
  padding: 40px; isolation: isolate;
  background-color: var(--paper);
  background-image: linear-gradient(90deg, rgba(255,255,255,.14), rgba(255,255,255,0) 55%, rgba(0,0,0,.10) 100%);
  box-shadow: 0 1px 1px rgba(var(--sh), .2), 0 22px 40px -14px rgba(var(--sh), .35);
  display: flex; align-items: center; justify-content: center;
}
.leaf.l::before, .leaf.r .front::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: var(--grain) 0 0 / 512px; mix-blend-mode: multiply; opacity: .9; }
.dark .leaf.l::before, .dark .leaf.r .front::before { background-image: url(img/fibers.webp); mix-blend-mode: screen; opacity: .35; }
.leaf.r { transform-origin: 0 50%; transform: rotateY(-179.5deg); transform-style: preserve-3d; transition: transform 1.05s cubic-bezier(.5, .05, .25, 1); }
.spread.is-open .leaf.r { transition-delay: .42s; }   /* après la rangée */
.spread.is-open .leaf.r { transform: rotateY(0deg); }
.leaf.r .front {
  position: relative; height: 100%; padding: 52px 56px 48px 52px;
  background-color: var(--paper);
  background-image: linear-gradient(90deg, rgba(0,0,0,.09), rgba(0,0,0,0) 12%, rgba(255,255,255,.08) 60%, rgba(0,0,0,.03));
  box-shadow: 0 1px 1px rgba(var(--sh), .2), 0 22px 40px -14px rgba(var(--sh), .35);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  isolation: isolate;                            /* le grain se mélange dans la feuille, pas avec la page */
  display: flex; flex-direction: column;
}
.leaf.r .front::after { content: ''; position: absolute; inset: 0; background: rgba(30, 18, 8, .5); opacity: 0; pointer-events: none; transition: opacity 1.05s cubic-bezier(.5, .05, .25, 1); }
.spread.is-open .leaf.r .front::after { transition-delay: .42s; }
.spread:not(.is-open) .leaf.r .front::after { opacity: 1; }
.leaf.r .back {
  position: absolute; inset: 0; transform: rotateY(180deg);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  /* la couverture de la feuille pliée : la même image que la carte, sur le même papier crème */
  background-color: var(--sheet);
  background-image: linear-gradient(270deg, rgba(0,0,0,.08), rgba(0,0,0,0) 30%), var(--cover, none), var(--grain);
  background-size: auto, 100% auto, 512px; background-position: 0 0, center top, 0 0; background-repeat: no-repeat, no-repeat, repeat;
  background-origin: border-box, content-box, border-box; background-clip: border-box, content-box, border-box;
  background-blend-mode: normal, normal, multiply;
  padding: 12px;
}
.sprint { margin: 0; background: #fbf8f1; padding: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.25), 0 14px 24px -10px rgba(0,0,0,.4); }
.sprint img { display: block; width: 100%; height: auto; }
.sprint.wide { width: 88%; transform: rotate(-1.4deg) translateX(-6%); }
.sprint.solo { width: 92%; transform: rotate(-1deg); }
.sprint.phone { position: absolute; width: 26%; right: 5%; bottom: 7%; padding: 7px; transform: rotate(3.5deg); }
.sp-head { display: flex; gap: 18px; align-items: center; }
.icon { width: 68px; height: 68px; border-radius: 16px; flex: none; box-shadow: 0 1px 2px rgba(0,0,0,.25), 0 8px 16px -6px rgba(0,0,0,.4); }
.sp-head h4 { font-size: 40px; line-height: 1.02; font-weight: 450; }
.tag { margin: 6px 0 0; font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink2); line-height: 1.3; font-variation-settings: 'SOFT' 100, 'opsz' 24; }
.desc { margin: 26px 0 0; font-size: 16.5px; line-height: 1.62; max-width: 52ch; }
.facts { display: flex; flex-wrap: wrap; gap: 14px 34px; margin: 24px 0 0; padding: 18px 0 0; border-top: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); }
.facts dt { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); }
.facts dd { margin: 3px 0 0; font-size: 15px; }
.visit {
  align-self: flex-start; margin-top: auto; position: relative;
  display: inline-flex; gap: 10px; align-items: center;
  padding: 14px 24px 14px 20px; text-decoration: none;
  font: 600 15px/1 var(--sans); color: var(--paper); background: var(--ink);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: transform .5s var(--ease);
}
.visit::after { content: ''; position: absolute; top: 0; right: 0; width: 12px; height: 12px; background: linear-gradient(225deg, rgba(0,0,0,0) 50%, color-mix(in srgb, var(--paper) 60%, white) 50%); }
.visit:hover { transform: translateY(-2px); }
.nolink { margin-top: auto; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ink2); }
.close {
  position: absolute; top: 16px; right: 18px; z-index: 3;
  font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink2); background: transparent; border: 0; padding: 10px 6px; cursor: pointer;
  opacity: 0; transition: opacity .2s;
}
.spread.is-open .close { opacity: 1; transition: opacity .4s 1.3s; }   /* paraît une fois la feuille ouverte, part tout de suite */
.close:hover { color: var(--ink); }

/* ---------- Photos ---------- */
.prints { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; margin-top: 40px; perspective: 1800px; }
/* Un tirage à marge blanche, comme sur Instagram : droit, une ombre douce, il se soulève au survol */
.photo {
  all: unset; box-sizing: border-box; cursor: pointer; position: relative; display: block;
  background: #fdfbf7; padding: 10px;
  box-shadow: 0 1px 1px rgba(var(--sh), .16), 0 10px 16px -8px rgba(var(--sh), .26);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.photo img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.photo:hover { transform: translateY(-6px); box-shadow: 0 2px 2px rgba(var(--sh), .14), 0 22px 26px -10px rgba(var(--sh), .3); }
.photo:focus-visible { outline: 2px solid var(--fox-ink); outline-offset: 4px; }
.photo.later { display: none; }
.prints.expanded .photo.later { display: block; animation: unfold-down 1s var(--ease) both; animation-delay: var(--d, 0s); transform-origin: 50% 0; }
@keyframes unfold-down {
  from { opacity: 0; transform: translateY(-30px) rotateX(-80deg); }
  to { opacity: 1; transform: none; }
}
/* Vers la galerie : un grand bouton noir, un morceau de la page des photos (le même grain, la même lumière),
   trois tirages en éventail dans leur passe-partout noir. À côté, Instagram. */
.photo-cta { display: flex; align-items: stretch; gap: 24px; margin-top: 52px; flex-wrap: wrap; }
.see-all {
  flex: 1 1 560px; position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; gap: 34px; min-height: 140px; padding: 22px 30px 22px 34px;
  text-decoration: none; color: #f3eee4; background: #0a0a0b;
  box-shadow: 0 1px 2px rgba(var(--sh), .3), 0 20px 36px -16px rgba(var(--sh), .6);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.see-all::before { content: ''; position: absolute; inset: 0; z-index: -1; background: url(img/grain-night.png) repeat; mix-blend-mode: screen; pointer-events: none; }
.see-all::after {
  content: ''; position: absolute; inset: -40% -10%; z-index: -2; pointer-events: none;
  background: radial-gradient(40% 50% at 30% 45%, rgba(236, 226, 214, .2), rgba(236, 226, 214, 0) 70%), radial-gradient(35% 45% at 75% 70%, rgba(150, 184, 218, .14), rgba(150, 184, 218, 0) 70%);
  transition: transform 1.6s var(--ease);
}
.see-all:hover { transform: translateY(-3px); box-shadow: 0 2px 3px rgba(var(--sh), .3), 0 28px 44px -18px rgba(var(--sh), .7); }
.see-all:hover::after { transform: translateX(6%); }
.see-all:focus-visible { outline: 2px solid var(--fox-ink); outline-offset: 4px; }
.fan { position: relative; flex: none; width: 150px; height: 100px; }
.fan i {
  position: absolute; left: 26px; top: 12px; width: 98px; height: 70px; border: 7px solid #050505;
  background: #1a1a1a center / cover no-repeat; box-shadow: 0 2px 4px rgba(0, 0, 0, .5), 0 12px 22px -6px rgba(0, 0, 0, .7);
  transition: transform .8s var(--ease);
}
.fan i:nth-child(1) { transform: translate(-22px, 6px) rotate(-11deg); }
.fan i:nth-child(2) { transform: translate(22px, 4px) rotate(8deg); }
.fan i:nth-child(3) { transform: translate(0, -4px) rotate(-1.5deg); }
.see-all:hover .fan i:nth-child(1) { transform: translate(-32px, 8px) rotate(-15deg); }
.see-all:hover .fan i:nth-child(2) { transform: translate(32px, 6px) rotate(12deg); }
.see-all:hover .fan i:nth-child(3) { transform: translate(0, -8px) rotate(-1deg); }
.see-all .txt { display: grid; gap: 8px; min-width: 0; }
.see-all b { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1; letter-spacing: -.005em; }
.see-all small { font-size: 14.5px; color: rgba(233, 228, 218, .66); }
.see-all small em { font-family: var(--serif); font-size: 16px; }
.see-all .go {
  flex: none; margin-left: auto; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(240, 235, 226, .3); transition: box-shadow .4s, background-color .4s;
}
.see-all .go svg { width: 24px; height: 24px; fill: none; stroke: #f3eee4; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.see-all:hover .go { background-color: rgba(242, 166, 90, .16); box-shadow: inset 0 0 0 1px rgba(242, 166, 90, .7); }
.see-all:hover .go svg { transform: translateX(3px); }
.follow-ig {
  flex: 0 1 auto; display: inline-flex; align-items: center; gap: 14px; padding: 18px 28px 18px 22px; text-decoration: none; color: var(--ink);
  font-size: 16px; background-color: var(--sheet);
  background-image: linear-gradient(160deg, rgba(255,255,255,.45), rgba(0,0,0,.03)), var(--grain); background-size: auto, 512px; background-blend-mode: normal, multiply;
  box-shadow: 0 1px 1px rgba(var(--sh), .2), 0 12px 20px -10px rgba(var(--sh), .34);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.follow-ig svg { width: 30px; height: 30px; flex: none; }
.follow-ig .fi-t { display: grid; gap: 4px; }
.follow-ig b { font-weight: 600; font-size: 16.5px; }
.follow-ig small { font-size: 13.5px; color: var(--ink2); }
.follow-ig:hover { transform: translateY(-2px); box-shadow: 0 2px 2px rgba(var(--sh), .18), 0 18px 26px -12px rgba(var(--sh), .4); }
.follow-ig:focus-visible { outline: 2px solid var(--fox-ink); outline-offset: 4px; }
.more-row { display: flex; align-items: center; gap: 22px; margin-top: 40px; }
.more {
  font: 600 15px/1 var(--sans); color: var(--ink); cursor: pointer; border: 0;
  padding: 15px 24px; background-color: var(--sheet);
  background-image: linear-gradient(160deg, rgba(255,255,255,.4), rgba(0,0,0,.04)), var(--grain); background-size: auto, 512px; background-blend-mode: normal, multiply;
  box-shadow: 0 1px 1px rgba(var(--sh), .2), 0 8px 14px -6px rgba(var(--sh), .3);
  transition: transform .5s var(--ease);
}
.more:hover { transform: translateY(-2px); }
.note { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink2); }

/* ---------- Atelier : une bande pliée en accordéon ---------- */
.accordion {
  list-style: none; padding: 0; margin: 44px 0 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  filter: drop-shadow(0 2px 2px rgba(var(--sh), .16)) drop-shadow(0 26px 26px rgba(var(--sh), .16));
}
.panel {
  position: relative; isolation: isolate; padding: 34px 28px 30px; min-height: 330px;
  display: flex; flex-direction: column;
  background-color: #f7f1e6;
  background-image: linear-gradient(90deg, rgba(255,255,255,.55), rgba(255,255,255,0) 70%, rgba(96,66,38,.04)), var(--grain);
  background-size: auto, 512px; background-blend-mode: normal, multiply;
  clip-path: polygon(0 0, 100% 4%, 100% 96%, 0 100%);
}
.panel:nth-child(even) {
  background-color: #e6dccb;
  background-image: linear-gradient(90deg, rgba(96,66,38,.12), rgba(96,66,38,.03) 55%, rgba(255,255,255,.12)), var(--grain);
  clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 96%);
}
/* Survol : la bande ne bouge pas (c'est une seule feuille pliée) et le papier ne change pas. Seul le dessin
   change : ses traits passent du crayon à un courant de couleurs électriques (un dégradé qui coule le long des
   lignes, posé par app.js dans chaque dessin). Pas de lueur ni d'ombre : il les a refusées (ça clignotait comme
   une petite ombre de papier). Tout le panneau est le lien vers la page de l'objet. */
.draw * { transition: stroke .2s; }
.panel:is(:hover, :focus-within) .draw * { stroke: var(--elec, #00c8f0); stroke-width: 1.6px; }
.panel h3 a { color: inherit; text-decoration: none; }
.panel h3 a::after { content: ''; position: absolute; inset: 0; z-index: 2; }
.panel h3 a:focus-visible { outline: none; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
/* La flèche avance par sa marge, pas par transform : une animation de transform sous l'ombre de la bande peut la faire
   clignoter dans Chrome. */
.soon-tag i { display: inline-block; font-style: normal; transition: margin-left .45s var(--ease); }
.panel:is(:hover, :focus-within) .soon-tag i { margin-left: 5px; }
.draw { align-self: center; width: auto; max-width: 100%; height: 136px; margin-bottom: 18px; fill: none; stroke: #3d3029; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.draw * { vector-effect: non-scaling-stroke; stroke-width: 1.35px; }
.panel h3 { font-size: 23px; line-height: 1.1; font-weight: 500; font-variation-settings: 'SOFT' 100, 'opsz' 36; }
.panel p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ink2); }
.soon-tag { margin-top: auto; padding-top: 18px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--fox-ink); }

/* ---------- Musique : un 33 tours dans sa pochette ----------
   La pochette : carton mat, encre bleu nuit, l'usure ronde laissée par le disque, l'ouverture à droite, une typo sobre.
   Le disque : vinyle noir à sillons fins, deux plages lisses entre les morceaux, le sillon de sortie, la tranche, et une
   étiquette de papier. Le reflet de la lampe (::after) reste fixe : seul le disque tourne, à 33⅓ tours (1,8 s le tour). */
/* La 1re colonne contient le disque sorti de sa pochette (118 + 300 + --out 92 = 510 px) : l'écart avec les morceaux
   reste le même pendant la lecture. */
.music { display: grid; grid-template-columns: 510px minmax(0, 1fr); gap: 76px; align-items: center; }
.sleeve-stage { position: relative; height: 400px; --out: 92px; }
.sleeve {
  position: absolute; left: 0; top: 30px; z-index: 2; width: 330px; height: 330px;
  padding: 24px 28px 30px; display: flex; flex-direction: column;
  color: #fff; background-color: #141a24;
  background-image:
    linear-gradient(to left, rgba(0,0,0,.34), rgba(0,0,0,0) 4.5%),
    linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,0) 40%, rgba(0,0,0,.12)),
    url(img/sleeve-cover.webp);
  background-size: auto, auto, cover; background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), inset 0 0 28px rgba(0,0,0,.3), 0 1px 1px rgba(var(--sh), .3), 0 26px 36px -12px rgba(var(--sh), .5);
}
.sleeve::before { content: ''; position: absolute; inset: 0; background: url(img/fibers.webp) 0 0 / 512px; mix-blend-mode: screen; opacity: .12; pointer-events: none; }
/* Le titre : blanc, fin, minuscules bien espacées, sur une ligne (l'espacement du dernier caractère est compensé). */
.sleeve-title { position: relative; margin: 38px -.36em 0 0; font-family: var(--sans); font-size: 19px; line-height: 1; font-weight: 200; letter-spacing: .36em; text-transform: lowercase; white-space: nowrap; color: #fff; }
.sleeve-fox { position: absolute; right: 20px; bottom: 18px; width: 37.4px; height: auto; opacity: .92; }
.disc {
  position: absolute; left: 118px; top: 44px; z-index: 1; width: 300px; height: 300px; border-radius: 50%;
  overflow: hidden;      /* le carré du disque qui tourne dépasserait du rond (et de l'écran, sur téléphone) */
  box-shadow: 0 1px 1px rgba(0, 0, 0, .45), 0 20px 30px -10px rgba(var(--sh), .6);
  transition: transform 1.2s var(--ease);
}
.sleeve-stage:hover .disc { transform: translateX(46px); }
.disc.playing { transform: translateX(var(--out)); }
.vinyl {
  position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center;
  background:
    radial-gradient(circle closest-side, transparent 58%, #060606 58.4%, #060606 59.6%, transparent 60%),
    radial-gradient(circle closest-side, transparent 76%, #060606 76.4%, #060606 77.6%, transparent 78%),
    radial-gradient(circle closest-side, transparent 36%, #0b0b0b 36.5%, #0b0b0b 40%, transparent 40.5%),
    radial-gradient(circle closest-side, transparent 96%, #262626 97%, #090909 98.8%, #2e2e2e 99.6%, transparent 100%),
    repeating-radial-gradient(circle closest-side, #181818 0 1px, #0c0c0c 1px 2px);
  animation: spin 1.8s linear infinite; animation-play-state: paused;
}
.disc.playing .vinyl { animation-play-state: running; }
.disc::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; mix-blend-mode: screen;
  background: conic-gradient(from -28deg, rgba(255,255,255,0) 0deg, rgba(255,255,255,.2) 30deg, rgba(255,255,255,0) 60deg 180deg, rgba(255,255,255,.13) 210deg, rgba(255,255,255,0) 240deg);
  -webkit-mask: radial-gradient(circle closest-side, transparent 35.5%, #000 37.5%, #000 96.5%, transparent 98.5%);
          mask: radial-gradient(circle closest-side, transparent 35.5%, #000 37.5%, #000 96.5%, transparent 98.5%);
}
.rec-label { display: block; width: 106px; height: 106px; }
.lb-paper { fill: var(--label, #ece2cf); transition: fill .9s var(--ease); }   /* --label : la couleur du morceau (player.js) */
.lb-line { fill: none; stroke: rgba(42, 33, 27, .32); stroke-width: .5; }
.lb-ring { font-family: var(--sans); font-size: 5.6px; font-weight: 600; fill: #2a211b; }
.lb-title { font-family: var(--serif); font-size: 8.4px; font-style: italic; text-anchor: middle; fill: #2a211b; }
.lb-hole { fill: var(--page); stroke: rgba(0, 0, 0, .35); stroke-width: .6; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .vinyl { animation: none; } }

.tracks .sec-head { margin-bottom: 26px; }
/* La liste compacte (mise en page A, choisie le 2026-12-05) : des rangées basses et numérotées, à peu près à la hauteur du
   disque; le ruban ne se déplie que sous le morceau courant (« current », posé par player.js, même en pause). */
.tracklist { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.track {
  display: grid; grid-template-columns: 24px 40px minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--crease-dark); box-shadow: 0 1px 0 var(--crease-light);
}
.track::before {
  counter-increment: t; content: counter(t, decimal-leading-zero);
  font-size: 12px; font-weight: 600; letter-spacing: .1em; font-variant-numeric: tabular-nums; color: var(--ink2);
}
.track:first-child { border-top: 1px solid var(--crease-dark); }
.play {
  width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; border: 0; padding: 0;
  background-color: var(--sheet); background-image: linear-gradient(150deg, rgba(255,255,255,.5), rgba(0,0,0,.05)), var(--grain); background-size: auto, 512px; background-blend-mode: normal, multiply;
  box-shadow: 0 1px 1px rgba(var(--sh), .22), 0 6px 10px -4px rgba(var(--sh), .35);
  transition: transform .4s var(--ease);
}
button.play:hover { transform: translateY(-2px); }
.tri { width: 0; height: 0; border-left: 13px solid var(--fox); border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
.track.playing .tri { width: 12px; height: 15px; border: 0; margin: 0; background: linear-gradient(90deg, var(--fox) 0 35%, transparent 35% 65%, var(--fox) 65%); }
.t-body { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; column-gap: 12px; min-width: 0; }
.t-title { font-family: var(--serif); font-size: 19px; line-height: 1.2; font-variation-settings: 'SOFT' 100, 'opsz' 24; }
.t-sub { font-size: 13px; color: var(--ink2); }
/* Le ruban plié de chaque morceau (dessiné par player.js) : on y clique ou on y glisse pour se déplacer. Replié à plat
   (hauteur 0, basculé vers l'arrière) sauf sous le morceau courant, où il se déplie comme une feuille. */
.wave {
  position: relative; display: block; grid-column: 1 / -1; height: 0; margin-top: 0; opacity: 0; pointer-events: none;
  cursor: pointer; touch-action: pan-y; -webkit-tap-highlight-color: transparent;
  transform: perspective(500px) rotateX(-80deg); transform-origin: 50% 0;
  transition: height .7s var(--ease), margin-top .7s var(--ease), opacity .5s var(--ease), transform .8s var(--ease);
}
.track.current .wave { height: 38px; margin-top: 10px; opacity: 1; transform: none; pointer-events: auto; }
.wave canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.wave:focus { outline: none; }
.wave:focus-visible { outline: 2px solid var(--fox-ink); outline-offset: 4px; }
.t-time { font-size: 14px; font-variant-numeric: tabular-nums; color: var(--ink2); }
.track.off { color: var(--ink2); }
.track.off .play { box-shadow: 0 0 0 1px rgba(var(--sh), .12); background: transparent; }
.track.off .tri { border-left-color: rgba(var(--sh), .3); }
.track.off .t-title { color: var(--ink2); }
.track.broken .t-time { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--fox-ink); }
/* Accueil : « More tracks… », en texte sous la liste, aligné sur les titres (24 + 16 + 40 + 16 px). */
.more-tracks { display: inline-block; margin: 14px 0 0 96px; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ink2); text-decoration: none; transition: color .3s var(--ease); }
.more-tracks:hover { color: var(--fox-ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.more-tracks:focus-visible { outline: 2px solid var(--fox-ink); outline-offset: 4px; }
/* Accueil : la carte vers la page Music (la famille de « See all the photos », en plus petit, bleu nuit). */
.see-all.music-cta { min-height: 0; margin-top: 28px; padding: 18px 20px 18px 26px; gap: 20px; background: #1b2130; }
.music-cta b { font-size: 26px; }
.music-cta small { font-size: 13.5px; }
.music-cta .go { width: 50px; height: 50px; }
.more-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-size: 15px; font-weight: 600; color: var(--fox-ink); text-decoration: none; }
.more-link span { transition: transform .4s var(--ease); }
.more-link:hover span { transform: translateX(4px); }

/* ---------- Mot de la fin ---------- */
.about-teaser { padding: 44px 0 72px; }
.note-wrap { max-width: 900px; margin: 0 auto; transform: rotate(.5deg); filter: drop-shadow(0 1px 1px rgba(var(--sh), .2)) drop-shadow(0 18px 22px rgba(var(--sh), .18)); }
.note-card {
  position: relative; text-align: center;
  padding: 52px 72px 48px;
  background-color: var(--sheet);
  background-image: linear-gradient(170deg, rgba(255,255,255,.45), rgba(255,255,255,0) 50%, rgba(96,66,38,.05)), var(--grain);
  background-size: auto, 512px; background-blend-mode: normal, multiply;
  clip-path: polygon(0 0, calc(100% - 46px) 0, 100% 46px, 100% 100%, 0 100%);
}
.note-wrap .dogear { position: absolute; top: 0; right: 0; width: 46px; height: 46px; background: linear-gradient(45deg, #e6ddcd 0%, #f6f0e6 45%, #fffdf8 49.5%, rgba(0,0,0,0) 50%); filter: drop-shadow(-2px 3px 3px rgba(0,0,0,.18)); }
/* Ses retours de ligne à lui : une ligne par bloc; si l'écran est trop étroit, la ligne se coupe en parts égales. */
.ln { display: block; text-wrap: balance; }
.ln + .ln { margin-top: .6em; }   /* la note en vers : un souffle entre les strophes */
/* Un dégradé de teintes, une par ligne : l'encre, un brun chaud, l'orange du renard. */
.ln:nth-child(1) { color: var(--ink); }
.ln:nth-child(2) { color: #69341a; }
.ln:nth-child(3) { color: var(--fox-ink); }
.note-card p { margin: 0 0 24px; font-family: var(--serif); font-size: 27px; line-height: 1.38; font-style: italic; font-weight: 340; font-variation-settings: 'SOFT' 100, 'opsz' 48; }

/* ---------- Pied ---------- */
.foot-logo { display: block; width: 170px; height: auto; margin: 0 auto 14px; }
.foot { padding: 34px 0 36px; border-top: 1px solid var(--crease-dark); box-shadow: inset 0 1px 0 var(--crease-light); font-size: 14px; color: var(--ink2); }
.foot-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 22px; }
.foot a { text-decoration: none; border-bottom: 1px solid rgba(var(--sh), .3); }

/* ---------- Visionneuse ---------- */

/* ---------- À propos ---------- */
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.about {
  max-width: 1240px; margin: 0 auto; padding: 150px 64px 90px;
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 88px; align-items: start;
}
.frame-wrap { margin: 0; position: sticky; top: 40px; }
.frame { position: relative; aspect-ratio: 4 / 5; transform: rotate(-1.8deg); filter: drop-shadow(0 1px 1px rgba(var(--sh), .22)) drop-shadow(0 26px 30px rgba(var(--sh), .22)); }
.fb { position: absolute; inset: 0; --b: 46px; background-color: #d9a76f; }
.fb::after { content: ''; position: absolute; inset: 0; background: var(--grain) 0 0 / 512px; mix-blend-mode: multiply; }
.fb.t { clip-path: polygon(0 0, 100% 0, calc(100% - var(--b)) var(--b), var(--b) var(--b)); background-image: linear-gradient(to bottom, #ecc28f, #e1b27c); }
.fb.l { clip-path: polygon(0 0, var(--b) var(--b), var(--b) calc(100% - var(--b)), 0 100%); background-image: linear-gradient(to right, #e3b47e, #d8a870); }
.fb.r { clip-path: polygon(100% 0, 100% 100%, calc(100% - var(--b)) calc(100% - var(--b)), calc(100% - var(--b)) var(--b)); background-image: linear-gradient(to left, #b98653, #c6935e); }
.fb.b { clip-path: polygon(0 100%, 100% 100%, calc(100% - var(--b)) calc(100% - var(--b)), var(--b) calc(100% - var(--b))); background-image: linear-gradient(to top, #ad7b4a, #bd8a56); }
.fb.t::after { clip-path: polygon(0 0, 100% 0, calc(100% - 46px) 46px, 46px 46px); }
.fb.l::after { clip-path: polygon(0 0, 46px 46px, 46px calc(100% - 46px), 0 100%); }
.fb.r::after { clip-path: polygon(100% 0, 100% 100%, calc(100% - 46px) calc(100% - 46px), calc(100% - 46px) 46px); }
.fb.b::after { clip-path: polygon(0 100%, 100% 100%, calc(100% - 46px) calc(100% - 46px), 46px calc(100% - 46px)); }
.portrait {
  position: absolute; inset: 46px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background-color: #f7f1e6; background-image: var(--grain); background-size: 512px; background-blend-mode: multiply;
  box-shadow: inset 6px 8px 14px rgba(70, 40, 15, .28), inset -1px -1px 0 rgba(255,255,255,.5);
}
.portrait img { width: 38%; opacity: .55; }
.portrait span { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ink2); }
/* La vraie photo : elle remplit l'ouverture du cadre; l'ombre du cadre retombe sur elle (::after, par-dessus). */
.portrait.real { overflow: hidden; }
.portrait.real img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: 1; }
.portrait.real::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 6px 8px 14px rgba(70, 40, 15, .34), inset -1px -1px 0 rgba(255, 255, 255, .35); }
.frame-wrap figcaption { margin-top: 26px; font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--ink2); text-align: center; }
.about-text { padding-top: 20px; }
.about-text h1 { font-size: clamp(40px, 4.4vw, 62px); line-height: 1.02; letter-spacing: -0.02em; margin-bottom: 30px; }
.about-text > p { font-size: 19px; line-height: 1.66; max-width: 58ch; margin: 0 0 20px; }
/* Sa ligne de famille : à part, en serif, juste sous la bio. */
.about-text > p.family { font-family: var(--serif); font-size: 23px; line-height: 1.3; color: var(--ink); margin: 6px 0 0; }
.about-text > p.note { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.45; color: var(--ink); margin-top: 32px; }
.small-h { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink2); margin: 44px 0 16px; }
.slips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 14px 12px; }
.slips li {
  position: relative; padding: 10px 18px 10px 16px; font-family: var(--serif); font-size: 19px;
  background-color: var(--sheet);
  background-image: linear-gradient(to bottom, rgba(255,255,255,.5) 0 49%, var(--crease-light) 49.5%, rgba(96,66,38,.14) 50.5%, rgba(96,66,38,.05) 100%), var(--grain);
  background-size: auto, 512px; background-blend-mode: normal, multiply;
  box-shadow: 0 1px 1px rgba(var(--sh), .2), 0 6px 10px -4px rgba(var(--sh), .28);
  transform: rotate(var(--t, 0deg));
}
.contact { font-size: 17px; display: flex; gap: 14px; align-items: baseline; }

/* ---------- Tablette ---------- */
@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); --row-gap: 32px; gap: var(--row-gap) 24px; }
  .music { grid-template-columns: 1fr; gap: 40px; }
  .sleeve-stage { width: 510px; max-width: 100%; margin: 0 auto; }
  .accordion { grid-template-columns: repeat(5, 240px); overflow-x: auto; padding-bottom: 30px; }
}

/* ---------- Téléphone ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .top { position: sticky; top: 0; flex-wrap: wrap; gap: 4px 16px; padding: 10px 18px 4px; }
  html { scroll-padding-top: 100px; }
  #intro { scroll-margin-top: -100px; }
  .brand { font-size: 18px; }
  .brand .mark { width: 34px; height: auto; }
  /* Le menu tient sur une ligne : chaque lien reste entier (« About me » se coupait en deux à 390 px et moins), et
     l'espace qui reste se partage entre eux. Il ne défile qu'en dessous d'environ 350 px. */
  .nav { order: 3; width: 100%; max-width: 440px; margin: 0; gap: 10px; justify-content: space-between; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .nav a { flex: none; white-space: nowrap; }
  /* Accueil : l'en-tête passe en fixe pour que la ligne du nom puisse se replier sans faire sauter la page */
  .home .top { position: fixed; }
  .home .top .brand { max-height: 52px; overflow: hidden; transition: max-height .45s var(--ease), opacity .45s var(--ease), visibility .45s; }
  .home:not(.past-logo) .top .brand { max-height: 0; }
  .home .hero { min-height: 100vh; min-height: 100svh; padding: 64px 16px 24px; }
  .lockup { width: min(92vw, 440px, calc((100svh - 150px) / 1.128)); }
  .intro { padding: 80px 20px 56px; }
  .intro h2 { font-size: 46px; }
  .intro h2.ink { font-size: 62px; }
  .lede { font-size: 22px; margin: 18px auto 26px; }
  .lede em { margin-inline: 0; }
  .crease { height: 48px; }
  .section { padding: 36px 0 56px; }
  .wrap { padding: 0 20px; }
  .sec-head.split { flex-direction: column; align-items: flex-start; gap: 14px; }
  .tiles { grid-template-columns: minmax(0, 1fr); --row-gap: 26px; gap: var(--row-gap); margin-top: 18px; }
  .group { flex-wrap: wrap; gap: 12px 18px; margin-top: 36px; }
  .group::after { display: none; }
  .group-note { font-size: 18px; }
  .label { --corner: 18px; font-size: 25px; padding: 12px calc(var(--corner) + 16px) 12px 18px; }
  .tiles + .mat { margin-top: 56px; }
  .mat { margin-left: -12px; margin-right: -12px; padding: 40px 12px 28px; border-radius: 12px; }
  .mat::before { left: 12px; right: 12px; }
  .name { font-size: 23px; margin-top: 22px; }
  .soon-band { padding: 16px 18px; gap: 16px; font-size: 14.5px; }
  .blintz { width: 42px; }
  .spread { grid-template-columns: 1fr; }
  .leaf { min-height: 0; }
  .leaf.l { padding: 26px 22px 30px; min-height: 260px; }
  /* Sur téléphone, la description est plus haute que l'image : elle se déplie vers le bas, comme un rabat,
     pendant que la rangée s'ouvre (repliée vers le haut, elle déborderait sur la carte). */
  .leaf.r { transform-origin: 50% 0; transform: rotateX(-90deg); transition: transform .85s cubic-bezier(.3, .6, .25, 1); }
  .spread.is-open .leaf.r { transform: rotateX(0deg); transition-delay: .12s; }
  .spread.is-open .leaf.r .front::after { transition-delay: .12s; }
  .leaf.r .back { display: none; }
  .leaf.r .front { padding: 30px 24px 30px; }
  .sp-head h4 { font-size: 30px; }
  .icon { width: 54px; height: 54px; border-radius: 13px; }
  .desc { font-size: 15.5px; }
  .visit { margin-top: 26px; }
  .nolink { margin-top: 22px; }
  .prints { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .photo { padding: 6px; }
  .photo.mid { display: none; }
  .prints.expanded .photo.mid { display: block; }
  .more-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .photo-cta { margin-top: 34px; gap: 14px; }
  .see-all { flex-basis: 100%; gap: 18px; min-height: 0; padding: 18px 18px 18px 14px; }
  .fan { width: 104px; height: 74px; }
  .fan i { left: 18px; top: 10px; width: 68px; height: 50px; border-width: 5px; }
  .see-all b { font-size: 25px; }
  .see-all small { font-size: 13px; }
  .see-all .go { width: 42px; height: 42px; }
  .follow-ig { flex-basis: 100%; justify-content: center; }
  .accordion { grid-template-columns: repeat(5, 230px); margin-right: -20px; padding-right: 20px; scroll-snap-type: x mandatory; }
  .panel { scroll-snap-align: start; min-height: 330px; padding: 30px 22px; }
  .music { display: flex; flex-direction: column; gap: 10px; }
  .sleeve-stage { order: 2; width: 100%; height: 330px; transform: scale(.8); transform-origin: 0 0; margin: 20px 0 -60px; --out: 42px; }
  .t-body { grid-template-columns: minmax(0, 1fr); }          /* le titre au-dessus du sous-titre */
  .track.current .wave { height: 32px; }
  .note-card { padding: 40px 26px 36px; }
  .note-card p { font-size: 22px; }
  .about { grid-template-columns: 1fr; padding: 24px 20px 56px; gap: 40px; }
  .frame-wrap { position: static; width: 82%; margin: 0 auto; }
  .fb { --b: 30px; }
  .portrait { inset: 30px; }
  .about-text { padding-top: 0; }
  .about-text h1 { font-size: 38px; }
  .about-text > p { font-size: 17px; }
  .about-text > p.note { font-size: 21px; }
  .about-text > p.family { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0s !important; transition-duration: 1ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
}
