  :root {
    --bg: #D9B57A;
    --ink: #18213F;
    --red: #D9341A;
    --w1: #6b3d1f;
    --w2: #91582f;
    --w3: #5a3218;
    --w-hi: rgba(255, 224, 172, .22);
    --w-lo: rgba(38, 18, 6, .38);
    --w-knot: #3b1e0e;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #1D130D;
      --ink: #E7C58C;
      --red: #FF5A3C;
      --w1: #b9773f;
      --w2: #d69c5d;
      --w3: #a2622f;
      --w-hi: rgba(255, 236, 200, .25);
      --w-lo: rgba(60, 28, 8, .42);
      --w-knot: #6b3b19;
    }
  }
  :root[data-theme="dark"] {
    --bg: #1D130D;
    --ink: #E7C58C;
    --red: #FF5A3C;
    --w1: #b9773f;
    --w2: #d69c5d;
    --w3: #a2622f;
    --w-hi: rgba(255, 236, 200, .25);
    --w-lo: rgba(60, 28, 8, .42);
    --w-knot: #6b3b19;
  }

  @property --w1 { syntax: '<color>'; inherits: true; initial-value: #6b3d1f; }
  @property --w2 { syntax: '<color>'; inherits: true; initial-value: #91582f; }
  @property --w3 { syntax: '<color>'; inherits: true; initial-value: #5a3218; }
  @property --w-knot { syntax: '<color>'; inherits: true; initial-value: #3b1e0e; }

  *, *::before, *::after { box-sizing: border-box; }
  button { -webkit-appearance: none; appearance: none; }
  html { scroll-padding-top: env(safe-area-inset-top, 0px); }
  body {
    margin: 0;
    min-height: 100dvh;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Instrument Sans', system-ui, sans-serif;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
  }

  .page {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(10px, 2vw, 28px);
    padding: clamp(14px, 2.2vw, 32px) clamp(14px, 2.4vw, 36px);
  }

  .bar {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    font-size: clamp(13px, 1.1vw, 16px);
  }
  .bar a { color: inherit; text-underline-offset: 3px; }
  .bar a:hover { color: var(--red); }
  .bar .links { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; justify-content: flex-end; }

  /* Hero : le W en bois */
  .hero {
    display: flex;
    justify-content: center;
    pointer-events: none;
  }
  .hero img {
    display: block;
    height: clamp(150px, 30vh, 320px);
    width: auto;
    filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .28));
    animation: rise .9s cubic-bezier(.2, .8, .2, 1) backwards;
  }
  @media (max-width: 639px) {
    .hero img { height: clamp(120px, 22vh, 200px); }
  }

  .tagline {
    max-width: 620px;
    margin: 0 auto;
    padding: 0 clamp(14px, 2.4vw, 36px);
    text-align: center;
    font-size: clamp(14px, 1.6vw, 18px);
    line-height: 1.55;
    opacity: .85;
  }

  .stack {
    display: flex;
    flex-direction: column;
    gap: clamp(4px, .9vw, 14px);
  }
  .row { width: 100%; }

  .line {
    display: inline-flex;
    align-items: flex-start;
    gap: .22em;
    white-space: nowrap;
    font-family: 'Big Shoulders Display', 'Oswald', 'Arial Narrow', Impact, sans-serif;
    font-weight: 900;
    font-size: 100px;
    line-height: .84;
    letter-spacing: 0;
    text-transform: uppercase;
    animation: rise .9s cubic-bezier(.2, .8, .2, 1) backwards;
    animation-delay: calc(var(--i) * 110ms);
  }
  @keyframes rise {
    from { clip-path: inset(100% 0 0 0); transform: translateY(.12em); }
    to   { clip-path: inset(0 0 0 0);   transform: translateY(0); }
  }

  .word { position: relative; display: inline-block; }
  .sp { display: inline-block; width: .26em; }

  /* ART DIRECTOR : lettres qui s'étirent vers le curseur */
  .art { cursor: pointer; }
  .art:focus-visible { outline: 3px solid var(--red); outline-offset: .02em; }
  .art .ch {
    display: inline-block;
    transform-origin: 50% 88%;
    transition: transform .18s ease-out;
    will-change: transform;
  }

  /* WOODCRAFTER : veinage de noyer */
  .wood {
    color: transparent;
    background-image:
      radial-gradient(ellipse 5% 20% at 21% 58%, var(--w-knot) 0 35%, transparent 72%),
      radial-gradient(ellipse 4% 16% at 68% 34%, var(--w-knot) 0 30%, transparent 72%),
      radial-gradient(ellipse 4% 14% at 91% 66%, var(--w-knot) 0 30%, transparent 72%),
      repeating-linear-gradient(0.6deg, transparent 0 5px, var(--w-lo) 5px 6px, transparent 6px 13px, var(--w-hi) 13px 14px),
      repeating-linear-gradient(-0.9deg, transparent 0 17px, var(--w-lo) 17px 18px, transparent 18px 29px),
      linear-gradient(90deg, var(--w1), var(--w2) 28%, var(--w3) 52%, var(--w2) 78%, var(--w1));
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 140% 100%, 100% 100%;
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
    -webkit-background-clip: text;
    background-clip: text;
    transition: background-position 1.4s cubic-bezier(.2, .7, .2, 1), --w1 .7s ease, --w2 .7s ease, --w3 .7s ease, --w-knot .7s ease;
  }
  .wood { cursor: pointer; }
  .wood:focus-visible { outline: 3px solid var(--red); outline-offset: .02em; }
  .wood:hover { background-position: 0 0, 0 0, 0 0, 0 0, -9% 0, 0 0; }

  /* PHOTO/VIDEO : contour, puis viseur */
  .photo {
    color: transparent;
    -webkit-text-stroke: max(2px, .014em) var(--ink);
    transition: color .25s ease;
  }
  .photo { cursor: pointer; }
  .photo:focus-visible { outline: 3px solid var(--red); outline-offset: .02em; }
  .photo:focus-visible .vf { opacity: 1; }
  .photo.live {
    background-size: cover;
    background-position: center;
    -webkit-background-clip: text;
    background-clip: text;
  }
  .photo .vf {
    position: absolute;
    inset: .02em -.03em .04em -.03em;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s ease;
    --c: var(--red);
    background:
      linear-gradient(var(--c), var(--c)) top left / .09em 3px no-repeat,
      linear-gradient(var(--c), var(--c)) top left / 3px .09em no-repeat,
      linear-gradient(var(--c), var(--c)) top right / .09em 3px no-repeat,
      linear-gradient(var(--c), var(--c)) top right / 3px .09em no-repeat,
      linear-gradient(var(--c), var(--c)) bottom left / .09em 3px no-repeat,
      linear-gradient(var(--c), var(--c)) bottom left / 3px .09em no-repeat,
      linear-gradient(var(--c), var(--c)) bottom right / .09em 3px no-repeat,
      linear-gradient(var(--c), var(--c)) bottom right / 3px .09em no-repeat;
  }
  .photo .vf::after {
    content: "";
    position: absolute;
    top: .07em; left: .07em;
    width: .07em; height: .07em;
    border-radius: 50%;
    background: var(--red);
    animation: blink 1s steps(2, jump-none) infinite;
  }
  .photo:hover .vf { opacity: 1; }
  @keyframes blink { 0% { opacity: 1; } 100% { opacity: 0; } }

  /* WEB */
  .web { transition: color .2s ease; }
  .web:hover { color: var(--red); }

  /* DRUMS : chaque lettre est une pièce de batterie */
  .drums { display: inline-flex; }
  .pad {
    display: inline-block;
    margin: 0; padding: 0; border: 0;
    background: none;
    color: inherit;
    font: inherit;
    line-height: inherit;
    text-transform: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transform-origin: 50% 100%;
  }
  .pad:focus-visible { outline: 3px solid var(--red); outline-offset: .02em; }
  .pad.hit { animation: hit .22s ease-out; }
  @keyframes hit {
    0%   { transform: translateY(.045em) scaleY(.94); color: var(--red); }
    100% { transform: translateY(0) scaleY(1); color: inherit; }
  }


  /* Galerie projet */
  body.locked { overflow: hidden; }
  .gallery {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 2vh, 24px);
    padding: calc(clamp(14px, 2.2vw, 32px) + env(safe-area-inset-top, 0px)) clamp(14px, 2.4vw, 36px) calc(clamp(10px, 2vw, 28px) + env(safe-area-inset-bottom, 0px));
    background: var(--bg);
    color: var(--ink);
    animation: open .45s cubic-bezier(.2, .8, .2, 1);
  }
  .gallery[hidden] { display: none; }
  @keyframes open { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
  .g-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: clamp(13px, 1.1vw, 16px);
  }
  .g-bar .group { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
  .g-btn {
    font: inherit;
    color: inherit;
    background: none;
    border: 1.5px solid currentColor;
    border-radius: 999px;
    padding: 6px 14px;
    cursor: pointer;
  }
  .g-btn:hover { color: var(--red); }
  .g-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
  .g-btn[aria-pressed="true"]:hover { color: var(--bg); }
  .g-tabs { display: flex; flex-wrap: wrap; gap: 8px; font-size: clamp(13px, 1.1vw, 16px); }
  .g-tabs[hidden] { display: none; }
  .g-btn:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
  .strip {
    flex: 1;
    min-height: 0;
    display: flex;
    gap: clamp(8px, 1vw, 16px);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .strip::-webkit-scrollbar { display: none; }
  .strip figure { margin: 0; flex: 0 0 auto; height: 100%; scroll-snap-align: start; }
  .strip img {
    display: block;
    height: 100%;
    width: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: rgba(0, 0, 0, .08);
  }
  .g-title {
    font-family: 'Big Shoulders Display', 'Oswald', 'Arial Narrow', Impact, sans-serif;
    font-weight: 900;
    font-size: min(24vh, 24vw);
    line-height: .8;
    margin: 0;
    text-transform: uppercase;
    display: inline-block;
    align-self: flex-start;
    white-space: nowrap;
    padding-top: .1em;
  }
  @media (max-width: 639px) {
    .strip { align-items: center; }
    .strip figure { height: auto; width: 88vw; }
    .strip img { width: 100%; height: auto; max-height: 100%; object-fit: contain; }
    .g-title { font-size: 26vw; }
  }

  /* Panneau WEB */
  .web { cursor: pointer; }
  .web:focus-visible { outline: 3px solid var(--red); outline-offset: .02em; }
  .wlist {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(10px, 2vw, 28px);
  }
  .wlink {
    display: block;
    color: inherit;
    text-decoration: none;
    width: 100%;
  }
  .wlink:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
  .wname {
    display: inline-block;
    white-space: nowrap;
    font-family: 'Big Shoulders Display', 'Oswald', 'Arial Narrow', Impact, sans-serif;
    font-weight: 900;
    font-size: 100px;
    line-height: .84;
    text-transform: uppercase;
    transition: color .2s ease;
  }
  .wdom {
    display: block;
    margin-top: .5em;
    font-size: clamp(13px, 1.1vw, 16px);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .2s ease;
  }
  .wlink:hover .wname, .wlink:hover .wdom,
  .wlink:focus-visible .wname, .wlink:focus-visible .wdom { color: var(--red); }

  /* Projet DRUMS */
  .row-note {
    align-self: flex-end;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-size: clamp(13px, 1.1vw, 16px);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
  }
  .row-note:hover { color: var(--red); }
  .row-note:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
  .wsub {
    display: block;
    margin-top: .5em;
    font-size: clamp(13px, 1.1vw, 16px);
    transition: color .2s ease;
  }
  .wsub + .wdom { margin-top: .15em; }
  .wlink:hover .wsub, .wlink:focus-visible .wsub { color: var(--red); }

  /* Panneau À propos */
  #about-trigger { cursor: pointer; }
  #about-trigger:hover { color: var(--red); }
  #about-trigger:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
  .about-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.1em;
    max-width: 740px;
    margin: 0 auto;
    width: 100%;
  }
  .about-body p {
    margin: 0;
    font-size: clamp(16px, 2.1vw, 22px);
    line-height: 1.55;
  }

  .g-x {
    font: inherit;
    color: inherit;
    background: none;
    border: 1.5px solid currentColor;
    border-radius: 999px;
    width: 2.15em;
    height: 2.15em;
    padding: 0;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05em;
    cursor: pointer;
  }
  .g-x:hover { color: var(--red); }
  .g-x:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

  .hint { color: inherit; opacity: .8; }

  @media (prefers-reduced-motion: reduce) {
    .line, .gallery, .hero img { animation: none; }
    .art .ch { transition: none; }
    .pad.hit { animation: none; color: var(--red); }
    .photo .vf::after { animation: none; }
    .wood { transition: none; }
  }

  /* Vignette vidéo téléchargeable (PHOTO/VIDEO) */
  /* Lecteur vidéo pleine largeur (Photo/Video) */
  .video-stage {
    flex: 1;
    min-height: 0;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
  }
  .video-stage[hidden] { display: none; }
  .g-title[hidden] { display: none; }
  .strip[hidden] { display: none; }
  .video-player {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
