/* =====================================================================
   ANIMSHACK v6 — flame palette, monumental, cinematic
   palette extracted from animshack-logo.png (cream) + flame from brand
===================================================================== */

:root{
  --black: #0A0A0A;
  --black-2: #131313;
  --ink: #1a1a1a;
  --cream: #F0F0F0;
  --cream-2: #d8d8d4;
  --mute: #6e6e6e;

  --flame: #FF6B1A;
  --flame-2: #FF8C00;
  --flame-3: #FF4500;
  --ember: #ffb347;

  --serif: 'Cinzel', serif;
  --sans: 'Inter', 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-display: 'Black Ops One', 'Bowlby One', 'Anybody', Impact, sans-serif;

  --ease: cubic-bezier(.7,0,.3,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --bg-grid-line: rgba(255,107,26,.06);
  --bg-grid-line-strong: rgba(255,107,26,.12);
}

*{ box-sizing: border-box; margin:0; padding:0; }
html,body{ background: var(--black); color: var(--cream); }
html{ scroll-behavior: auto; }
body{
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
  letter-spacing: .005em;
}

::selection{ background: var(--flame); color: var(--black); }

a{ color: inherit; text-decoration: none; }
img{ display: block; max-width: 100%; }
button{ font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ===== WebGL canvas + atmosphere ===== */
#webgl{
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
}
.webgl-vignette{
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 0%, transparent 55%, rgba(0,0,0,.35) 90%, rgba(0,0,0,.55) 100%);
  mix-blend-mode: multiply;
}
.webgl-grain{
  position: fixed; inset: -50%; z-index: 1; pointer-events: none;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .18;
  mix-blend-mode: overlay;
  animation: grain-shift 1.6s steps(4) infinite;
}
@keyframes grain-shift{
  0%{ transform: translate(0,0); }
  25%{ transform: translate(-2%, 1%); }
  50%{ transform: translate(1%, -1%); }
  75%{ transform: translate(-1%, 2%); }
  100%{ transform: translate(0,0); }
}

/* ===== Page-veil transition ===== */
.page-veil{
  position: fixed; left: 0; right: 0; top: 0; height: 100vh;
  background: linear-gradient(180deg, var(--black) 0%, var(--black) 100%);
  z-index: 9999;
  transform: translateY(-100%);
  pointer-events: none;
}
.page-veil.in{ transform: translateY(0); transition: transform .35s var(--ease); }
.page-veil.out{ transform: translateY(100%); transition: transform .35s var(--ease); }

/* ===== Custom cursor (desktop hover only) ===== */
.cursor-dot, .cursor-halo{ display: none; }
@media (hover: hover) and (pointer: fine){
  *{ cursor: none !important; }
  .cursor-dot, .cursor-halo{
    display: block; position: fixed; top:0; left:0; pointer-events: none;
    z-index: 10000;
    will-change: transform;
  }
  .cursor-dot{
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--cream);
    transform: translate(-50%,-50%);
    mix-blend-mode: difference;
  }
  .cursor-halo{
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--flame);
    background: rgba(255,107,26,.08);
    transform: translate(-50%,-50%);
    transition: width .25s var(--ease-out), height .25s var(--ease-out),
                background .25s var(--ease-out), border-color .25s var(--ease-out);
  }
  body.cursor-hover .cursor-halo{
    width: 80px; height: 80px;
    background: var(--flame);
    border-color: var(--flame);
    mix-blend-mode: screen;
  }
  body.cursor-down .cursor-halo{
    width: 20px; height: 20px;
    background: rgba(255,107,26,.6);
  }
}

/* ===== Loader ===== */
.loader{
  position: fixed; inset: 0; z-index: 9000;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: opacity .6s var(--ease), visibility 0s linear .6s;
}
.loader.done{ opacity: 0; visibility: hidden; pointer-events: none; }
.loader-grid{
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--bg-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--bg-grid-line) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse at center, black 0%, black 40%, transparent 80%);
}
.loader-content{
  position: relative;
  display: grid; gap: 22px;
  justify-items: center;
  text-align: center;
  padding: 24px;
}
.loader-line{
  font-family: var(--mono);
  font-size: 11px; letter-spacing: .35em;
  color: var(--mute);
  text-transform: uppercase;
}
.loader-line.top::before{ content:'>> '; color: var(--flame); }
.loader-figure{
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(120px, 18vw, 240px);
  line-height: 1;
  color: var(--cream);
  letter-spacing: -.04em;
  display: flex; align-items: flex-start;
}
.loader-pct-sym{
  font-size: clamp(28px, 4vw, 56px);
  color: var(--flame);
  margin-left: 8px; margin-top: 14px;
}
.loader-label{
  font-family: var(--mono);
  font-size: 12px; letter-spacing: .5em;
  color: var(--flame);
  text-transform: uppercase;
}
.loader-bar{
  width: min(420px, 80vw); height: 1px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
.loader-bar-fill{
  width: 0%; height: 100%;
  background: var(--flame);
  box-shadow: 0 0 24px var(--flame);
  transition: width .25s linear;
}

/* ===== Sound toggle ===== */
.sound-toggle{
  position: fixed; right: 22px; bottom: 22px;
  z-index: 200;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(240,240,240,.18);
  background: rgba(10,10,10,.55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-family: var(--mono); font-size: 11px; letter-spacing: .3em;
  color: var(--cream);
}
.sound-toggle:hover{ border-color: var(--flame); color: var(--flame); }
.sound-bars{ display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.sound-bars i{ display: block; width: 2px; height: 6px; background: var(--cream); transition: height .2s; }
.sound-toggle[data-state="on"] .sound-bars i{ background: var(--flame); }
.sound-toggle[data-state="on"] .sound-bars i:nth-child(1){ animation: snd 0.9s ease-in-out infinite; }
.sound-toggle[data-state="on"] .sound-bars i:nth-child(2){ animation: snd 0.7s ease-in-out infinite .1s; }
.sound-toggle[data-state="on"] .sound-bars i:nth-child(3){ animation: snd 1.1s ease-in-out infinite .2s; }
.sound-toggle[data-state="on"] .sound-bars i:nth-child(4){ animation: snd 0.8s ease-in-out infinite .3s; }
@keyframes snd{ 0%,100%{ height:4px; } 50%{ height: 14px; } }

/* ===== Top nav ===== */
.top-nav{
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 24px;
  padding: 18px 28px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: .3em;
  text-transform: uppercase;
  background: linear-gradient(180deg, rgba(10,10,10,.85) 0%, rgba(10,10,10,.55) 70%, rgba(10,10,10,0) 100%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--cream);
}
.brand{ display: inline-flex; align-items: center; gap: 12px; }
.brand-mark{
  width: 22px; height: 22px; border: 1px solid var(--cream);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900;
}
.brand-mark-logo{
  height: 40px; width: auto; max-width: 56px;
  object-fit: contain;
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(255,107,26,.35));
  transition: opacity .35s var(--ease);
}
body.is-scrolled .brand-mark-logo{ opacity: 0.85; }
.brand-name{ font-weight: 700; letter-spacing: .4em; }
.nav-links{ display: inline-flex; gap: 32px; justify-self: center; }
.nav-links a{ position: relative; }
.nav-links a::after{
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--flame);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-links a:hover::after{ transform: scaleX(1); }
.nav-mail{ letter-spacing: .25em; }

/* =====================================================================
   HERO
===================================================================== */
.hero{
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 28px 80px;
  overflow: hidden;
}
.hero-frame{
  position: relative;
  width: 100%; max-width: 1640px;
  min-height: calc(100vh - 200px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.hero-grid{
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--bg-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--bg-grid-line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
  pointer-events: none;
}
.hero-meta{
  position: absolute;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: .3em; color: var(--mute);
  text-transform: uppercase;
}
.hm-tl{ top: 4px; left: 4px; }
.hm-tr{ top: 4px; right: 4px; color: var(--flame); }
.hm-bl{ bottom: 4px; left: 4px; }
.hm-br{ bottom: 4px; right: 4px; }

.hero-center{
  position: relative;
  display: grid; place-items: center;
  text-align: center;
  z-index: 2;
}
.hero-logo{
  width: auto;
  height: auto;
  max-height: clamp(140px, 28vw, 360px);
  max-width: 90vw;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(255,107,26,.65)) drop-shadow(0 0 80px rgba(255,69,0,.4));
  animation: logo-pulse 4.6s ease-in-out infinite;
  margin-bottom: 18px;
}
@keyframes logo-pulse{
  0%,100%{ filter: drop-shadow(0 0 30px rgba(255,107,26,.65)) drop-shadow(0 0 80px rgba(255,69,0,.4)); }
  50%{ filter: drop-shadow(0 0 50px rgba(255,107,26,.95)) drop-shadow(0 0 140px rgba(255,69,0,.6)); }
}

.hero-type{
  position: relative;
  font-family: var(--font-display);
  font-weight: 400; /* Black Ops One ships at 400 only */
  font-size: clamp(110px, 13vw, 260px);
  line-height: .9;
  letter-spacing: .015em;
  color: var(--cream);
  margin: 0;
  user-select: none;
  will-change: letter-spacing, filter, transform;
}
.hero-type-fill{
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream) 55%, rgba(240,240,240,.55) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* Glitch layers */
.hero-type::before, .hero-type::after{
  content: attr(data-glitch);
  position: absolute; inset: 0;
  pointer-events: none;
  background: none;
  -webkit-text-fill-color: currentColor;
  opacity: 0;
  mix-blend-mode: screen;
}
.hero-type::before{ color: var(--flame); }
.hero-type::after{ color: #00e5ff; }

body.glitch .hero-type::before{
  animation: glitch-r .4s steps(6) 1 forwards;
}
body.glitch .hero-type::after{
  animation: glitch-c .4s steps(6) 1 forwards;
}
body.glitch .hero-type-fill{
  animation: glitch-clip .4s steps(6) 1 forwards;
}
@keyframes glitch-r{
  0%{ opacity: .9; transform: translate(-6px,0); clip-path: inset(0 0 70% 0); }
  25%{ transform: translate(8px, 2px); clip-path: inset(40% 0 30% 0); }
  50%{ transform: translate(-4px,-2px); clip-path: inset(10% 0 60% 0); }
  75%{ transform: translate(6px, 0); clip-path: inset(60% 0 10% 0); }
  100%{ opacity: 0; transform: translate(0,0); clip-path: inset(0 0 100% 0); }
}
@keyframes glitch-c{
  0%{ opacity: .8; transform: translate(6px,0); clip-path: inset(20% 0 50% 0); }
  25%{ transform: translate(-8px,-2px); clip-path: inset(60% 0 10% 0); }
  50%{ transform: translate(4px, 2px); clip-path: inset(0 0 70% 0); }
  75%{ transform: translate(-6px,0); clip-path: inset(30% 0 30% 0); }
  100%{ opacity: 0; transform: translate(0,0); clip-path: inset(100% 0 0 0); }
}
@keyframes glitch-clip{
  0%{ clip-path: inset(0 0 0 0); transform: translate(0,0); }
  20%{ clip-path: inset(15% 0 70% 0); transform: translate(-2px, 0); }
  40%{ clip-path: inset(45% 0 30% 0); transform: translate(2px, 0); }
  60%{ clip-path: inset(70% 0 10% 0); transform: translate(-1px, 0); }
  80%{ clip-path: inset(20% 0 60% 0); transform: translate(1px, 0); }
  100%{ clip-path: inset(0 0 0 0); transform: translate(0,0); }
}

.hero-baseline{
  margin-top: 18px;
  display: inline-flex; gap: 14px;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: .3em; color: var(--cream-2);
  text-transform: uppercase;
}
.hero-baseline .dot{ color: var(--flame); }

.hero-pillars{
  position: absolute; left: 0; right: 0; bottom: 60px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 0 20px;
  z-index: 2;
}
.pillar{
  display: flex; align-items: baseline; gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .25em;
  color: var(--cream-2);
  text-transform: uppercase;
  border-top: 1px solid rgba(240,240,240,.18);
  padding-top: 14px;
}
.pillar .p-num{ color: var(--flame); font-weight: 700; }

.hero-scroll{
  position: absolute; left: 50%; bottom: 18px;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .5em;
  color: var(--mute); text-transform: uppercase;
}
.hero-scroll-line{
  width: 1px; height: 38px;
  background: linear-gradient(to bottom, var(--flame), transparent);
  animation: scroll-pulse 2.4s ease-in-out infinite;
}
@keyframes scroll-pulse{
  0%,100%{ transform: scaleY(.4); transform-origin: top; opacity: .4; }
  50%{ transform: scaleY(1); opacity: 1; }
}

/* =====================================================================
   MANIFESTE — pinned + scrubbed
===================================================================== */
.manifeste{
  position: relative;
  height: 320vh; /* scroll runway for pin */
  z-index: 2;
  background: var(--black);
}
.manifeste-pin{
  position: sticky; top: 0;
  height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 100px 28px;
  overflow: hidden;
}
.manifeste-stage{
  position: relative;
  width: 100%; max-width: 1640px;
  display: grid; gap: 64px;
}
.manifeste-eyebrow{
  display: inline-flex; gap: 20px;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: .4em; text-transform: uppercase;
  color: var(--flame);
}
.manifeste-eyebrow .eb-label{ color: var(--cream); }

.manifeste-lines{
  display: grid; gap: 28px;
}
.m-line{
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(56px, 9vw, 170px);
  line-height: .92;
  letter-spacing: -.025em;
  color: var(--cream);
  opacity: 0;
  transform: translateY(80px);
  will-change: opacity, transform;
}
.m-line span{ display: inline-block; }

.manifeste-foot{
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px;
  align-items: end;
  padding-top: 24px;
  border-top: 1px solid rgba(240,240,240,.1);
}
.manifeste-foot p{
  font-size: 17px; line-height: 1.55;
  color: var(--cream-2);
  max-width: 56ch;
}
.manifeste-stats{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.manifeste-stats > div{
  display: grid; gap: 6px;
  border-left: 1px solid var(--flame);
  padding-left: 12px;
}
.stat-num{
  font-family: var(--sans); font-weight: 900;
  font-size: clamp(28px, 3.4vw, 56px);
  color: var(--cream);
  letter-spacing: -.02em;
}
.stat-lbl{
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .35em; color: var(--mute);
}

/* =====================================================================
   PRACTICES
===================================================================== */
.practices{
  position: relative;
  padding: 140px 28px;
  max-width: 1640px; margin: 0 auto;
  z-index: 2;
}
.practices::before{
  content: ''; position: absolute;
  left: 50%; top: 0; transform: translateX(-50%);
  width: 100vw; height: 100%;
  background: var(--black); z-index: -1;
}
.practices-head{
  display: inline-flex; gap: 20px;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: .4em; text-transform: uppercase;
  color: var(--flame);
  margin-bottom: 48px;
}
.practices-head .eb-label{ color: var(--cream); }
.practices-list{ list-style: none; }
.practices-list li{
  display: grid;
  grid-template-columns: 100px 1fr auto;
  align-items: center; gap: 28px;
  padding: 22px 0;
  border-top: 1px solid rgba(240,240,240,.08);
  transition: padding-left .35s var(--ease), color .35s var(--ease), background .35s var(--ease);
}
.practices-list li:last-child{ border-bottom: 1px solid rgba(240,240,240,.08); }
.practices-list li:hover{
  padding-left: 20px;
  color: var(--flame);
  background: linear-gradient(90deg, rgba(255,107,26,.06), transparent 60%);
}
.pr-num{ font-family: var(--mono); font-size: 12px; letter-spacing: .35em; color: var(--flame); }
.pr-name{
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(32px, 4.5vw, 78px);
  letter-spacing: -.02em;
  color: var(--cream);
  transition: color .35s var(--ease);
}
.practices-list li:hover .pr-name{ color: var(--flame); }
.pr-tag{
  font-family: var(--mono); font-size: 10px; letter-spacing: .45em;
  color: var(--mute); text-transform: uppercase;
}

/* =====================================================================
   R&Z — featured series
===================================================================== */
.rz{
  position: relative;
  height: 260vh;
  z-index: 2;
  background: var(--black);
}
.rz-pin{
  position: sticky; top: 0;
  height: 100vh;
  overflow: hidden;
  background: #000;
}
.rz-video{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .85;
  filter: contrast(1.05) saturate(1.05);
}
.rz-mask{
  position: absolute; inset: 0;
  background: #000;
  clip-path: circle(0% at 50% 50%);
  pointer-events: none;
  will-change: clip-path;
}
.rz-gradient{
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 60%, rgba(255,107,26,.18) 0%, transparent 50%),
    linear-gradient(180deg, rgba(10,10,10,.6) 0%, transparent 35%, transparent 60%, rgba(10,10,10,.85) 100%);
  pointer-events: none;
}
.rz-content{
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  padding: 0 28px;
  z-index: 2;
}
.rz-eyebrow{
  display: inline-flex; gap: 18px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .4em; text-transform: uppercase;
  color: var(--flame);
  margin-bottom: 32px;
}
.rz-eyebrow span:nth-child(2){ color: var(--cream); }
.rz-eyebrow span:nth-child(3){ color: var(--cream-2); }

.rz-title{
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(72px, 12vw, 200px);
  line-height: 1;
  letter-spacing: .02em;
  color: var(--cream);
  display: inline-flex; gap: .25em; align-items: baseline;
}
.rz-word{
  display: inline-block;
  -webkit-text-stroke: 0;
}
.rz-amp{
  color: var(--flame);
  font-style: italic;
  font-weight: 500;
}

.rz-tag{
  margin-top: 24px;
  font-family: var(--mono); font-size: 13px;
  letter-spacing: .15em; color: var(--cream-2);
  max-width: 56ch;
}

.rz-meta{
  margin-top: 36px;
  display: grid; grid-template-columns: repeat(4, auto); gap: 36px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
}
.rz-meta > div{ display: grid; gap: 4px; }
.rz-meta span{ color: var(--mute); font-size: 10px; }
.rz-meta b{ color: var(--cream); font-weight: 700; }

.rz-cta {
  display: inline-block;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding: 0.75em 1.75em;
  font-family: 'Cinzel', serif; /* canonical R&Z font */
  font-weight: 600;
  font-size: clamp(16px, 1.4vw, 22px);
  letter-spacing: 0.06em;
  color: #FFF;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.rz-cta:hover,
.rz-cta:focus-visible {
  color: #FFF;
  background: rgba(255, 107, 26, 0.12);
  border-color: #FF6B1A;
  box-shadow: 0 0 24px rgba(255, 107, 26, 0.25);
  transform: translateY(-1px);
}
.rz-cta:active {
  transform: translateY(0);
}

.rz-corner{
  position: absolute;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .35em; text-transform: uppercase;
  color: var(--cream-2);
  z-index: 3;
}
.rz-corner.tl{ top: 22px; left: 28px; color: var(--flame); }
.rz-corner.tr{ top: 22px; right: 28px; }
.rz-corner.bl{ bottom: 22px; left: 28px; }
.rz-corner.br{ bottom: 22px; right: 28px; color: var(--flame); }

/* =====================================================================
   CONTACT
===================================================================== */
.contact{
  position: relative;
  padding: 200px 28px 140px;
  max-width: 1640px; margin: 0 auto;
  text-align: center;
  z-index: 2;
}
.contact::before{
  content: ''; position: absolute;
  left: 50%; top: 0; transform: translateX(-50%);
  width: 100vw; height: 100%;
  background: var(--black); z-index: -1;
}
.contact-eyebrow{
  display: inline-flex; gap: 20px;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: .4em; text-transform: uppercase;
  color: var(--flame);
  margin-bottom: 36px;
}
.contact-eyebrow .eb-label{ color: var(--cream); }
.contact-title{
  font-family: var(--sans);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(56px, 7vw, 140px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--cream);
  margin-bottom: 32px;
}
.contact-mail{
  display: inline-block;
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(36px, 6.5vw, 130px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--cream);
  position: relative;
  padding: 8px 0;
  transition: text-shadow .35s var(--ease);
}
.cm-text{
  background-image: linear-gradient(120deg, var(--cream) 0%, var(--cream) 35%, var(--flame) 50%, var(--cream) 65%, var(--cream) 100%);
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position .9s var(--ease);
}
.contact-mail:hover .cm-text{
  background-position: 0 0;
}
.contact-mail:hover{
  text-shadow:
    0 0 30px rgba(255,107,26,.5),
    0 0 80px rgba(255,69,0,.35);
}

.contact-grid{
  margin-top: 80px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  border-top: 1px solid rgba(240,240,240,.1);
  padding-top: 36px;
  text-align: left;
}
.contact-grid > div{ display: grid; gap: 6px; }
.contact-grid span{
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .35em; color: var(--mute);
  text-transform: uppercase;
}
.contact-grid b{ font-weight: 700; color: var(--cream); font-size: 14px; letter-spacing: .04em; }

/* ===== Footer ===== */
.footer{
  position: relative;
  z-index: 2;
  background: var(--black);
  display: flex; justify-content: center; align-items: center; gap: 12px;
  padding: 30px 28px 80px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .3em; color: var(--mute);
  text-transform: uppercase;
}
.foot-sep{ color: var(--flame); }
.footer a:hover{ color: var(--flame); }

/* =====================================================================
   Responsive
===================================================================== */
@media (max-width: 900px){
  .top-nav{ grid-template-columns: auto 1fr; padding: 14px 16px; gap: 12px; }
  .top-nav .nav-mail{ display: none; }
  .nav-links{ gap: 18px; font-size: 10px; }
  .hero{ padding: 100px 16px 60px; }
  .hero-pillars{ grid-template-columns: 1fr; gap: 8px; bottom: 50px; padding: 0 16px; }
  .pillar{ padding-top: 8px; font-size: 11px; }
  .hero-baseline{ font-size: 10px; gap: 8px; flex-wrap: wrap; justify-content: center; }
  .manifeste{ height: auto; }
  .manifeste-pin{ position: static; height: auto; padding: 80px 16px; }
  .m-line{ opacity: 1; transform: none; }
  .manifeste-foot{ grid-template-columns: 1fr; gap: 32px; }
  .manifeste-stats{ grid-template-columns: repeat(3, 1fr); }
  .practices{ padding: 80px 16px; }
  .practices-list li{ grid-template-columns: 60px 1fr; gap: 12px; }
  .pr-tag{ display: none; }
  .rz{ height: auto; }
  .rz-pin{ position: relative; height: 100vh; }
  .rz-meta{ grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .rz-tag{ font-size: 11px; padding: 0 12px; }
  .contact{ padding: 120px 16px 80px; }
  .contact-grid{ grid-template-columns: repeat(2, 1fr); }
  .rz-corner{ font-size: 9px; }
  .sound-toggle{ right: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{ animation-duration: .001s !important; transition-duration: .001s !important; }
  .m-line{ opacity: 1; transform: none; }
}
/* =====================================================================
   ANIMSHACK v6i — overrides (append at end of /v6/assets/css/style.css)
   Fix A : hero readability (typo écrasée par particules)
   Fix B : responsive complet
   ===================================================================== */

/* ----- PALETTE CREAM PLUS CHAUDE POUR TEXTE HERO ----- */
:root {
  --bg-deep: #0A0A0A;
  --flame-soft-ui: #FFA060;
  --cream-warm: #F5E6D3;
  --cream-warm-soft: #E8D9C4;
}

/* ----- FIX A : HERO LISIBILITE ----- */
body { background: var(--bg-deep); }

.hero-type {
  color: var(--cream-warm) !important;
  font-family: var(--font-display) !important;
  font-weight: 400; /* Black Ops One ships only at 400 */
  letter-spacing: .015em;
  text-shadow:
    0 4px 32px rgba(0, 0, 0, 0.85),
    0 2px 12px rgba(0, 0, 0, 0.7);
  position: relative;
  z-index: 5;
}
.hero-type-fill {
  background: linear-gradient(180deg, var(--cream-warm) 0%, var(--cream-warm) 60%, var(--cream-warm-soft) 100%) !important;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-baseline,
.hero-meta,
.hero-pillars .pillar {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

.m-line,
.manifeste-foot p {
  color: var(--cream-warm) !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.75);
}

/* Diluer les particules WebGL pour qu'elles n'écrasent plus le texte */
#webgl,
#webgl canvas,
.hero canvas {
  opacity: 0.35 !important;
  mix-blend-mode: screen;
}

/* Vignette plus marquée derrière le hero pour faire respirer le typo */
.webgl-vignette {
  background:
    radial-gradient(ellipse at 50% 45%,
      rgba(0,0,0,0.55) 0%,
      rgba(0,0,0,0.25) 35%,
      transparent 65%,
      rgba(0,0,0,0.45) 95%,
      rgba(0,0,0,0.7) 100%) !important;
  mix-blend-mode: multiply;
}

/* ----- FIX B : RESPONSIVE FLUIDE TOUS BREAKPOINTS ----- */

/* Typographie fluide (override des clamp existants pour les pousser plus loin) */
.hero-type {
  font-size: clamp(58px, 13vw, 260px) !important;
  line-height: 0.92;
}
.m-line {
  font-size: clamp(40px, 9vw, 170px) !important;
  line-height: 0.94;
}
.hero-baseline {
  font-size: clamp(10px, 1.4vw, 12px) !important;
}
.rz-title {
  font-size: clamp(56px, 12vw, 200px) !important;
}
.contact-title {
  font-size: clamp(42px, 7vw, 140px) !important;
}
.contact-mail {
  font-size: clamp(28px, 6.5vw, 130px) !important;
  word-break: break-word;
}

/* Sections padding fluide */
.practices,
.contact,
.manifeste-pin {
  padding-left: clamp(20px, 5vw, 80px) !important;
  padding-right: clamp(20px, 5vw, 80px) !important;
}

/* TABLET (768-1024) */
@media (max-width: 1024px) {
  .top-nav {
    grid-template-columns: auto 1fr auto;
    padding: 14px 20px;
    gap: 16px;
  }
  .nav-links { gap: 22px; font-size: 10px; }
  .hero-pillars { gap: 12px; }
  .manifeste-foot {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  /* tactile : pas de cursor custom */
  .cursor-dot, .cursor-halo { display: none !important; }
  * { cursor: auto !important; }
}

/* MOBILE (≤767) */
@media (max-width: 767px) {
  /* Particules très diluées pour pas saturer l'écran petit */
  #webgl, #webgl canvas { opacity: 0.18 !important; }

  /* Hero plus dense verticalement */
  .hero {
    padding: 100px 18px 100px;
    min-height: 100vh;
  }
  .hero-frame { min-height: calc(100vh - 180px); }
  .hero-logo { max-height: clamp(120px, 32vw, 240px) !important; max-width: 80vw !important; margin-bottom: 14px; }
  .hero-baseline {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 10px;
  }

  /* Pillars en stack */
  .hero-pillars {
    grid-template-columns: 1fr !important;
    gap: 8px;
    bottom: 56px;
    padding: 0 18px;
  }
  .pillar {
    padding-top: 8px;
    font-size: 10px;
    letter-spacing: .2em;
  }

  /* Manifeste démontée */
  .manifeste { height: auto !important; }
  .manifeste-pin {
    position: static !important;
    height: auto !important;
    padding: 70px 18px;
  }
  .manifeste-stage { gap: 36px; }
  .m-line {
    opacity: 1 !important;
    transform: none !important;
  }
  .manifeste-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .manifeste-foot p { font-size: 15px; }

  /* Practices */
  .practices { padding: 70px 18px; }
  .practices-list li {
    grid-template-columns: 50px 1fr;
    gap: 12px;
    padding: 18px 0;
  }
  .practices-list li:hover { padding-left: 8px; }
  .pr-tag { display: none; }
  .pr-name { font-size: clamp(26px, 7vw, 48px) !important; }

  /* R&Z plein écran sans masque radial */
  .rz { height: auto !important; }
  .rz-pin {
    position: relative !important;
    height: 100vh;
  }
  .rz-video {
    width: 100% !important;
    height: 100% !important;
    clip-path: none !important;
    mask: none !important;
    opacity: 0.9 !important;
  }
  .rz-mask { display: none !important; }
  .rz-eyebrow { margin-bottom: 20px; flex-wrap: wrap; justify-content: center; gap: 8px 14px; }
  .rz-tag { font-size: 11px; padding: 0 14px; max-width: 38ch; }
  .rz-meta {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 24px;
    margin-top: 26px;
  }
  .rz-corner { font-size: 8px; letter-spacing: .25em; }
  .rz-corner.tl, .rz-corner.tr { top: 14px; }
  .rz-corner.tl, .rz-corner.bl { left: 16px; }
  .rz-corner.tr, .rz-corner.br { right: 16px; }
  .rz-corner.bl, .rz-corner.br { bottom: 14px; }

  /* Contact */
  .contact { padding: 100px 18px 80px; }
  .contact-title { margin-bottom: 24px; }
  .contact-mail { padding: 4px 0; }
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 50px;
    padding-top: 26px;
  }
  .contact-grid b { font-size: 12px; }

  /* Footer */
  .footer {
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 24px 18px 60px;
    font-size: 10px;
    letter-spacing: .22em;
  }
}

/* MOBILE SERRE (≤390) */
@media (max-width: 390px) {
  .hero { padding-top: 80px; min-height: 100vh; }
  .hero-type { font-size: 13.5vw !important; }
  .m-line { font-size: clamp(34px, 11vw, 52px) !important; }
  .contact-mail { font-size: clamp(22px, 8vw, 38px) !important; }
  .nav-links a { font-size: 9px; }
  .top-nav { padding: 12px 14px; }
  .pillar { font-size: 9px; }
}

/* MOBILE TRES SERRE (≤360) */
@media (max-width: 360px) {
  .hero-type { font-size: 13vw !important; letter-spacing: .01em !important; }
  .contact-mail { font-size: 8vw !important; }
  .nav-links { gap: 14px; }
  .brand-name { font-size: 10px; letter-spacing: .3em; }
}

/* Loader hint masqué en tactile */
@media (hover: none) and (pointer: coarse) {
  .loader-line.top,
  .loader-pct-sym + *,
  .loader-label { font-size: 10px; }
}

/* Reduced motion : pas de particules */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  #webgl, #webgl canvas { display: none !important; }
  .webgl-vignette, .webgl-grain { display: none !important; }
  .m-line { opacity: 1 !important; transform: none !important; }
}

/* v6k safety fallback — ensure manifesto lines and pillars reveal */
.m-line.is-visible, .pillar.is-visible {
  opacity: 1 !important;
  transform: none !important;
  transition: opacity .6s ease, transform .6s ease;
}
/* =====================================================================
   ANIMSHACK v6l — overrides MOBILE CRITIQUES
   À appendre au style.css existant (qui contient déjà v6i + v6k).
   FIXES :
     1. Bandeau cream sur titre ANIMSHACK : `background:...!important`
        shorthand implicite background-clip:border-box !important qui
        battait `background-clip:text` non-important = rectangle visible.
     2. Flou résiduel sur le titre via GSAP filter:blur(8px).
     3. Titre R&Z invisible : ScrollTrigger start/end en % d'un .rz qui
        est maintenant `height:auto` sur mobile.
   ===================================================================== */

/* --- FIX 1 (universel) : force background-clip:text avec !important
   pour battre le shorthand `background:` !important de v6i. */
.hero-type-fill {
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* --- MOBILE (≤767) : on désactive carrément le clip + gradient et le
   filter:blur appliqué par GSAP. Texte cream plein, lisible. --- */
@media (max-width: 767px) {

  .hero-type,
  .hero-type-fill,
  #hero-type,
  #hero-type .hero-type-fill {
    background: none !important;
    background-image: none !important;
    background-clip: initial !important;
    -webkit-background-clip: initial !important;
    color: var(--cream-warm, #F5E6D3) !important;
    -webkit-text-fill-color: currentColor !important;
    text-shadow:
      0 4px 32px rgba(0, 0, 0, 0.92),
      0 2px 12px rgba(0, 0, 0, 0.8) !important;
  }


  /* FIX 2 : tue le filter blur appliqué inline par GSAP (battu par !important) */
  .hero-type,
  #hero-type {
    filter: none !important;
    -webkit-filter: none !important;
    letter-spacing: -0.02em !important;
  }

  /* Tue les couches glitch ::before / ::after en mobile */
  .hero-type::before,
  .hero-type::after,
  #hero-type::before,
  #hero-type::after {
    display: none !important;
    content: none !important;
    opacity: 0 !important;
  }

  /* FIX 3 : R&Z title — révélé par IO via .is-visible */
  #rz-title, .rz-title {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
    transition: opacity .7s ease, transform .7s ease;
    letter-spacing: 0.02em;
  }
  #rz-title.is-visible, .rz-title.is-visible,
  #rz-title.force-visible, .rz-title.force-visible {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    letter-spacing: 0.02em !important;
    filter: none !important;
  }

  /* Tagline + eyebrow + meta de R&Z : même reveal IO */
  .rz-eyebrow, .rz-meta, .rz-tag {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .6s ease .1s, transform .6s ease .1s;
  }
  .rz-eyebrow.is-visible,
  .rz-meta.is-visible,
  .rz-tag.is-visible {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 390px) {
  .hero-type, #hero-type {
    letter-spacing: -0.03em !important;
    filter: none !important;
  }
}
/* =====================================================================
   v6l-extra : patch transition stuck-at-start sur mobile.
   Cause : la règle @media (prefers-reduced-motion: reduce) de v6i pose
   `* { transition-duration: 0.01ms !important; }` ce qui bloque le
   computed opacity à la valeur initiale (0) au lieu de snap au end (1).
   Fix : transition: none !important sur les éléments concernés, snap.
   ===================================================================== */
@media (max-width: 767px) {
  #rz-title, .rz-title,
  .rz-eyebrow, .rz-meta, .rz-tag {
    transition: none !important;
  }
}

/* =====================================================================
   QW-RESPONSIVE 2026-06-14 — P0 fixes from audit-responsive
   Targets: hero H1 overflow 391-767, practice titles clipped 619+,
   nav touch targets <44px, sound-toggle hors-ecran sim mobile.
   ===================================================================== */

/* ---- 1. Hero H1 — fix overflow between 391 and 767 (gap zone) ---- */
@media (max-width: 767px) {
  .hero-type,
  #hero-type {
    font-size: clamp(48px, 13.5vw, 110px) !important;
    letter-spacing: 0 !important;
    line-height: .92 !important;
    max-width: 92vw !important;
    word-break: keep-all !important;
  }
  .hero-type-fill {
    letter-spacing: .25em !important;
    font-size: clamp(11px, 2.6vw, 14px) !important;
    margin-bottom: 32px !important;
  }
}

/* ---- 2. Practices list — fix names clipping at <=900px ---- */
@media (max-width: 900px) {
  .practices-list li {
    grid-template-columns: 48px 1fr !important;
    gap: 14px !important;
    align-items: start !important;
  }
  .pr-name {
    font-size: clamp(18px, 5.2vw, 34px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.01em !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
  }
  .pr-num {
    font-size: 11px !important;
    letter-spacing: .25em !important;
  }
  .practices { overflow-x: hidden !important; }
}

/* ---- 3. Touch targets — nav links min 44px ---- */
@media (max-width: 900px) {
  .nav-links a {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 44px !important;
    padding: 10px 6px !important;
  }
  .sound-toggle {
    min-height: 44px !important;
    padding: 12px 14px !important;
    right: 12px !important;
    bottom: 12px !important;
  }
  .brand-mark-logo,
  .brand-mark a {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
  }
}

/* ---- 4. Hero overflow guard at section level ---- */
@media (max-width: 767px) {
  .hero,
  .hero-center,
  .hero-frame {
    overflow-x: hidden !important;
  }
  .top-nav {
    overflow-x: hidden !important;
    padding: 10px 12px !important;
  }
  .nav-links {
    gap: 14px !important;
    font-size: 10px !important;
  }
}

/* ---- 5. Manifeste paragraphe — max-width contraint sub-mobile ---- */
@media (max-width: 767px) {
  .manifeste-pin p,
  .manifeste-foot p,
  .m-line {
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    hyphens: auto !important;
  }
}

/* ---- 6. R&Z section — fallback if video doesn't play ---- */
@media (max-width: 900px) {
  .rz video,
  .rz-video,
  #rz-video {
    background: #0a0a0a;
    min-height: 240px;
  }
}

/* =====================================================================
   QW-RESPONSIVE-RZ 2026-06-14 — R&Z title overflow mobile
   ===================================================================== */

@media (max-width: 767px) {
  /* Titre R&Z — éviter troncature mobile */
  .serie h2,
  .rz-title,
  #rz-title,
  [class*="rigo"],
  .rz .eb-label + h2,
  .rz h2 {
    font-size: clamp(40px, 11vw, 80px) !important;
    line-height: 1 !important;
    letter-spacing: -0.01em !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
    padding-left: max(16px, env(safe-area-inset-left)) !important;
    padding-right: max(16px, env(safe-area-inset-right)) !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }
  /* Le conteneur parent ne doit pas couper */
  .serie,
  .rz,
  .rz-section,
  .rz-pin,
  [class*="serie"] {
    overflow-x: visible !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 390px) {
  .serie h2,
  .rz-title,
  #rz-title,
  .rz h2 {
    font-size: clamp(34px, 9.5vw, 60px) !important;
  }
}

/* =====================================================================
   QW-CATALOG 2026-06-14 — passe complete textes tronques (audit-responsive)
   Couvre les findings restants + safeguards globaux
   ===================================================================== */

/* ---- Body / html : safeguard overflow-x mobile ---- */
@media (max-width: 767px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
  body {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
}

/* ---- Hero-type pseudo-elements (glitch layers) — alignement mobile ---- */
@media (max-width: 767px) {
  .hero-type::before,
  .hero-type::after,
  #hero-type::before,
  #hero-type::after {
    font-size: inherit !important;
    width: 100% !important;
    left: 0 !important;
    text-align: center !important;
  }
}

/* ---- Manifeste — paragraphes corps texte, safe break ---- */
@media (max-width: 767px) {
  .manifeste,
  .manifeste-pin,
  .manifeste-stage {
    overflow-x: hidden !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .manifeste-foot p,
  .manifeste-pin p,
  .m-line,
  .m-body {
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    -webkit-line-clamp: unset !important;
    display: block !important;
    max-height: none !important;
    hyphens: auto !important;
    font-size: clamp(28px, 8vw, 48px) !important;
    line-height: 1.05 !important;
  }
  .manifeste-foot p {
    font-size: clamp(13px, 3.6vw, 16px) !important;
    line-height: 1.5 !important;
  }
  .manifeste-stats {
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 12px !important;
  }
  .manifeste-stats .stat-num {
    font-size: clamp(22px, 6vw, 32px) !important;
  }
  .manifeste-stats .stat-lab {
    font-size: 9px !important;
    letter-spacing: .15em !important;
  }
}

/* ---- Practices — meta tag visible sous une autre forme ---- */
@media (max-width: 900px) {
  .pr-tag {
    /* keep hidden — already covered upstream */
    display: none !important;
  }
  .practices-list li {
    padding: 16px 4px !important;
  }
  .pr-num {
    font-family: var(--mono) !important;
    font-size: 10px !important;
    letter-spacing: .25em !important;
    align-self: start !important;
    padding-top: 6px !important;
  }
}

/* ---- R&Z section — content blocks ---- */
@media (max-width: 767px) {
  .rz-content,
  .rz-pin .rz-content {
    padding: 16px !important;
    max-width: 100% !important;
  }
  .rz-eyebrow {
    font-size: 10px !important;
    letter-spacing: .25em !important;
    word-break: keep-all !important;
  }
  .rz-meta {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    padding: 0 8px !important;
  }
  .rz-meta-item,
  .rz-meta dt,
  .rz-meta dd {
    font-size: 11px !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
  }
  .rz-meta dt {
    font-size: 9px !important;
    letter-spacing: .18em !important;
  }
  .rz-cta,
  .rz-link,
  a.rz-link {
    font-size: clamp(13px, 3.8vw, 16px) !important;
    padding: 12px 18px !important;
    word-break: keep-all !important;
    max-width: 95vw !important;
    box-sizing: border-box !important;
  }
  .rz-tag,
  .rz-corner {
    font-size: 9px !important;
    letter-spacing: .25em !important;
  }
  #rz-title,
  .rz-title {
    overflow: visible !important;
    text-overflow: clip !important;
    -webkit-line-clamp: unset !important;
    display: block !important;
    max-height: none !important;
  }
}

/* ---- Contact section — mailto + CTA ---- */
@media (max-width: 767px) {
  .contact,
  .contact-grid {
    padding: 60px 16px !important;
    overflow-x: hidden !important;
  }
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .contact-mail,
  .contact a[href^="mailto"] {
    font-size: clamp(20px, 7vw, 36px) !important;
    word-break: break-all !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
    display: inline-block !important;
  }
}

/* ---- Top nav baseline / hero pillars (mobile readability) ---- */
@media (max-width: 767px) {
  .hero-baseline {
    flex-wrap: wrap !important;
    gap: 6px 10px !important;
    justify-content: center !important;
    font-size: 9px !important;
    letter-spacing: .15em !important;
    text-align: center !important;
  }
  .pillar {
    font-size: 9px !important;
    letter-spacing: .15em !important;
    word-break: keep-all !important;
  }
  .brand-mark,
  .brand-name {
    font-size: 10px !important;
    letter-spacing: .25em !important;
  }
}

/* ---- Sound toggle text — readability ---- */
@media (max-width: 767px) {
  .sound-toggle {
    font-size: 10px !important;
    letter-spacing: .2em !important;
    padding: 10px 12px !important;
  }
  .sound-bars {
    height: 12px !important;
  }
}

/* ---- Loader / SIGNAL channel labels ---- */
@media (max-width: 767px) {
  .loader-line,
  .loader-label,
  .loader-pct {
    font-size: 10px !important;
    letter-spacing: .2em !important;
  }
}

/* ====================================================== */
/* v6n — MOBILE HERO : LA TYPO DOMINE (14/06 17h45)      */
/* Reset des sur-couches v6j..v6m qui ont noyé la typo.   */
/* Doit rester en FIN de fichier pour gagner la cascade.  */
/* ====================================================== */

@media (max-width: 767px) {

  /* Particules WebGL : encore plus diluées que v6m */
  #webgl, #webgl canvas, .hero canvas { opacity: 0.12 !important; }

  /* Logo Animshack : imposant, ~50vw */
  .hero-logo, #hero-logo {
    max-height: clamp(200px, 52vw, 320px) !important;
    max-width: 88vw !important;
    width: auto !important;
    height: auto !important;
    margin: 0 auto 24px !important;
    display: block !important;
  }

  /* Wordmark ANIMSHACK : monumental */
  .hero-type, #hero-type {
    font-size: clamp(64px, 18vw, 140px) !important;
    line-height: 0.92 !important;
    letter-spacing: -0.015em !important;
    font-weight: 900 !important;
  }
  .hero-type-fill,
  #hero-type .hero-type-fill {
    font-size: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
  }

  /* Tagline : STUDIO D'ANIMATION • DEPUIS 2024 • REIMS */
  .hero-baseline {
    font-size: clamp(13px, 3.6vw, 17px) !important;
    line-height: 1.45 !important;
    letter-spacing: 0.08em !important;
    gap: 6px 10px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* Pillars 01 / 02 / 03 — LISIBLES, pas un footer */
  .hero-pillars {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    bottom: 60px !important;
    padding: 0 20px !important;
  }
  .pillar {
    font-size: clamp(15px, 4.4vw, 22px) !important;
    line-height: 1.35 !important;
    letter-spacing: 0.04em !important;
    word-break: keep-all !important;
    padding-top: 6px !important;
  }
  .pillar .p-txt {
    font-size: inherit !important;
    letter-spacing: inherit !important;
  }
  .pillar .p-num {
    font-size: clamp(12px, 3.4vw, 16px) !important;
    margin-right: 10px !important;
  }

  /* Hero meta : SIGNAL_OPEN / CHANNEL / STUDIO_ANIMSHACK / FR-EN */
  .hero-meta,
  .hm-tl, .hm-tr, .hm-bl, .hm-br {
    font-size: clamp(11px, 2.9vw, 13px) !important;
    letter-spacing: 0.10em !important;
  }

  /* Scroll hint */
  .hero-scroll,
  .hero-scroll span {
    font-size: clamp(11px, 2.8vw, 13px) !important;
    letter-spacing: 0.18em !important;
  }

  /* Sound toggle */
  .sound-toggle {
    font-size: clamp(11px, 2.9vw, 13px) !important;
    letter-spacing: 0.18em !important;
    padding: 10px 14px !important;
  }

  /* Top-nav + brand */
  .nav-links a {
    font-size: clamp(11px, 3.0vw, 13px) !important;
    padding: 10px 6px !important;
  }
  .brand-name {
    font-size: clamp(11px, 2.9vw, 13px) !important;
    letter-spacing: 0.25em !important;
  }
}

/* MOBILE COMPACT ≤390 */
@media (max-width: 390px) {
  .hero-logo, #hero-logo {
    max-height: clamp(180px, 54vw, 260px) !important;
  }
  .hero-type, #hero-type {
    font-size: clamp(60px, 17vw, 120px) !important;
  }
  .pillar {
    font-size: clamp(14px, 4.4vw, 20px) !important;
  }
  .hero-baseline {
    font-size: clamp(12px, 3.4vw, 16px) !important;
  }
}

/* MOBILE TRÈS SERRÉ ≤360 */
@media (max-width: 360px) {
  .hero-logo, #hero-logo {
    max-height: clamp(160px, 52vw, 220px) !important;
  }
  .hero-type, #hero-type {
    font-size: clamp(54px, 16vw, 100px) !important;
    letter-spacing: -0.005em !important;
  }
  .pillar {
    font-size: clamp(13px, 4.2vw, 18px) !important;
  }
}
/* === fin v6n === */

/* ====================================================== */
/* v6o — FIX v6n : wordmark nowrap + tailles équilibrées  */
/* ====================================================== */
@media (max-width: 767px) {
  .hero-type, #hero-type, .hero-type-fill {
    white-space: nowrap !important;
    font-size: clamp(48px, 14vw, 96px) !important;
    line-height: 0.95 !important;
    letter-spacing: -0.01em !important;
    overflow: visible !important;
  }
  .hero-logo, #hero-logo {
    max-height: clamp(160px, 40vw, 240px) !important;
    max-width: 72vw !important;
    margin: 0 auto 18px !important;
  }
  /* Plus d'air sous le wordmark, et pillars un peu plus bas pour ne pas chevaucher */
  .hero-center { padding-bottom: 28px !important; }
  .hero-pillars {
    bottom: 24px !important;
    padding: 0 18px !important;
  }
  .pillar {
    font-size: clamp(14px, 4vw, 20px) !important;
    padding-top: 4px !important;
  }
}
@media (max-width: 390px) {
  .hero-type, #hero-type, .hero-type-fill { font-size: clamp(44px, 13vw, 80px) !important; }
  .hero-logo, #hero-logo { max-height: clamp(140px, 38vw, 200px) !important; }
}
@media (max-width: 360px) {
  .hero-type, #hero-type, .hero-type-fill { font-size: clamp(40px, 12vw, 72px) !important; }
  .hero-logo, #hero-logo { max-height: clamp(130px, 36vw, 180px) !important; }
}
/* === fin v6o === */

/* ============================================================ */
/* v6p / v3d — Fix short-viewport desktop/landscape overlap     */
/* Détection : sur 1280×800 / 1180×820 le h1 mobile-grow        */
/* collisionne avec .hero-pillars (absolute bottom).            */
/* Fix : sur landscape ≤850 hauteur, réduire h1 + remonter      */
/*       pillars + leur garantir une zone de respiration.       */
/* ============================================================ */

@media (min-width: 768px) and (max-height: 860px) {
  .hero-type, #hero-type, .hero-type-fill {
    font-size: clamp(64px, 9vw, 120px) !important;
    line-height: 0.95 !important;
  }
  .hero-logo, #hero-logo {
    max-height: clamp(160px, 22vh, 280px) !important;
    margin-bottom: 12px !important;
  }
  .hero-pillars {
    bottom: clamp(60px, 7vh, 110px) !important;
  }
  .hero-frame {
    padding-bottom: 110px !important;
  }
  /* Parrotition logo SVG est verticalement plus haut, le contraint un peu plus */
  .hero-clef { font-size: clamp(28px, 4vh, 48px) !important; margin-bottom: 4px !important; }
  .hero-subtitle { margin-top: 6px !important; }
}

/* Très courts (≤740) — laptop 13" landscape, iPad mini paysage… */
@media (min-width: 768px) and (max-height: 740px) {
  .hero-type, #hero-type, .hero-type-fill {
    font-size: clamp(54px, 7.5vw, 96px) !important;
  }
  .hero-logo, #hero-logo {
    max-height: clamp(120px, 18vh, 200px) !important;
  }
  .hero-pillars {
    bottom: clamp(40px, 5vh, 80px) !important;
  }
}
/* === fin v6p / v3d === */

/* ====================================================== */
/* v6q — Animshack global readability                     */
/* WCAG AA contrast + 13px caption floor + line-height    */
/* ====================================================== */

/* --- FONT FLOORS captions/labels ≥13px mobile --- */
@media (max-width: 767px) {
  .sound-label,
  .brand-name,
  .nav-links a,
  .nav-mail,
  .hero-scroll span,
  .eb-num,
  .eb-label,
  .stat-lbl,
  .stat-num,
  .foot-lang,
  .foot-sep,
  .loader-pct,
  .loader-pct-sym,
  .loader-label,
  .loader-line,
  .hero-meta,
  .hm-tl, .hm-tr, .hm-bl, .hm-br,
  .contact-eyebrow,
  .rz-eyebrow,
  .rz-tag,
  .rz-meta,
  .rz-corner,
  .pr-name,
  .pr-tag {
    font-size: 13px !important;
  }
  .stat-num { font-size: 32px !important; }
  .nav-links a { padding: 12px 8px !important; min-height: 44px !important; display: inline-flex !important; align-items: center !important; }
}

/* --- CONTRAST fix : remplace #6e6e6e (3.88:1) → #a8a8a8 (~7:1) sur fond noir --- */
.loader-line.top,
.loader-line.bottom,
.hero-scroll span,
.hero-scroll,
.stat-lbl,
.foot-lang,
.foot-sep,
.pr-tag,
.rz-tag,
.rz-meta {
  color: #a8a8a8 !important;
}
.hero-meta,
.hm-tl, .hm-tr, .hm-bl, .hm-br {
  color: #b8b8b8 !important;
}

/* --- LINE-HEIGHT floor --- */
p, li, .pillar, .m-line, .hero-baseline,
.contact-mail, .rz-meta {
  line-height: 1.5 !important;
}
.hero-baseline { line-height: 1.45 !important; }
h1, h2, h3, .hero-type, .rz-title { line-height: 1.1 !important; }
.pillar { line-height: 1.4 !important; }

/* --- LETTER-SPACING all-caps --- */
.brand-name,
.nav-links a,
.sound-label,
.hero-meta,
.hero-scroll span,
.eb-label,
.contact-eyebrow,
.rz-eyebrow,
.stat-lbl,
.pr-tag {
  letter-spacing: 0.08em !important;
}

/* --- Touch targets boutons ≥44px --- */
.sound-toggle, .nav-links a, .rz-cta, .contact-mail {
  min-height: 44px !important;
}
/* === fin v6q === */

/* ====================================================== */
/* v6r — Loader balance + R&Z 13px floor + cleanup        */
/* ====================================================== */

/* --- LOADER : nombre dominant aligné avec le % --- */
@media (max-width: 767px) {
  .loader-figure {
    display: flex !important;
    align-items: baseline !important;
    justify-content: center !important;
    gap: 4px !important;
    font-size: clamp(72px, 22vw, 140px) !important;
    line-height: 1 !important;
    letter-spacing: -0.02em !important;
    font-weight: 800 !important;
  }
  .loader-pct,
  .loader-pct-sym {
    font-size: inherit !important;
    line-height: 1 !important;
  }
  .loader-pct { color: #f5e6d3 !important; }
  .loader-pct-sym { font-size: 0.55em !important; opacity: 0.75 !important; }

  .loader-label {
    font-size: clamp(14px, 3.6vw, 18px) !important;
    letter-spacing: 0.2em !important;
    margin-top: 18px !important;
  }
  .loader-line.top,
  .loader-line.bottom {
    font-size: clamp(12px, 3vw, 15px) !important;
    letter-spacing: 0.15em !important;
    color: #a8a8a8 !important;
  }
}

/* Desktop : équilibre similaire mais à l'échelle */
@media (min-width: 768px) {
  .loader-figure {
    display: flex !important;
    align-items: baseline !important;
    justify-content: center !important;
    gap: 6px !important;
  }
  .loader-pct, .loader-pct-sym { font-size: inherit !important; }
  .loader-pct-sym { font-size: 0.55em !important; opacity: 0.75 !important; }
}

/* --- R&Z section : tous labels/eyebrows ≥13px mobile --- */
@media (max-width: 767px) {
  .rz, .rz-content, .rz-meta, .rz-eyebrow, .rz-tag, .rz-corner,
  .rz-amp, .rz-cta, .rz-pin,
  .practices-head, .practices-list,
  .pr-num, .pr-name, .pr-tag {
    font-size: 13px !important;
  }
  /* Pour les valeurs metadata gauche/droite (FORMAT/STATUT/DATE/CANAL = labels) */
  .rz-meta span,
  .rz-meta div,
  .practices span,
  .pr-num, .pr-name, .pr-tag {
    font-size: 13px !important;
  }
  /* Eyebrow numeric S01..S04 */
  .rz-pin, .pr-num {
    font-size: 13px !important;
    letter-spacing: 0.18em !important;
  }
  /* Manifeste m-line garde sa belle taille — ne pas écraser */
}

/* --- Hero baseline child spans (STUDIO/DEPUIS/REIMS bouts) --- */
@media (max-width: 767px) {
  .hero-baseline span {
    font-size: inherit !important;
    line-height: inherit !important;
  }
}

/* --- Contrast : R&Z gris too dark --- */
.rz-meta, .rz-tag, .rz-corner,
.pr-tag, .stat-lbl, .loader-line {
  color: #a8a8a8 !important;
}
/* === fin v6r === */

/* ====================================================== */
/* v6s — Hero tagline "La Cabane à Anim"             */
/* ====================================================== */
.hero-tagline {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  color: #c8c0b4;
  font-size: clamp(15px, 4vw, 22px);
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-align: center;
  margin: 10px auto 18px;
  opacity: 0.92;
  max-width: 90%;
}
@media (min-width: 768px) {
  .hero-tagline {
    font-size: clamp(18px, 1.6vw, 26px);
    margin: 14px auto 22px;
  }
}
/* === fin v6s === */

/* ===== iOS/Android autoplay video shim (added 20260614) ===== */
video.hero-painterly,
video.feathers-drift,
video.rz-video {
  pointer-events: none;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  background: transparent;
}
@supports (-webkit-touch-callout: none) {
  /* iOS-specific: force GPU compositing layer so video starts decoding */
  video.hero-painterly,
  video.feathers-drift,
  video.rz-video {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
  }
}


/* ====================================================== */
/* v6x — Safety net responsive (20260614)                 */
/* ====================================================== */

/* Anti-overflow horizontal global, applique partout */
html, body { overflow-x: hidden !important; }
.hero, .manifeste, .practices, .rz, .contact, .footer { overflow-x: hidden; }

/* Empêche tout enfant de dépasser silencieusement la viewport */
@media (max-width: 767px) {
  body * { max-width: 100vw; }
  /* Sauf video qui doit pouvoir conserver son aspect ratio */
  video { max-width: 100% !important; }

  /* Touch targets minimum 44px partout */
  a, button, [role="button"] {
    min-height: 44px;
  }

  /* Footer compact */
  .footer {
    flex-wrap: wrap;
    gap: 10px;
    padding: 24px 16px;
    text-align: center;
    justify-content: center;
  }

  /* Hero meta corners ne doivent jamais déborder */
  .hero-meta {
    max-width: 38vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* RZ corner labels truncated on narrow */
  .rz-corner {
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Mobile très étroit ≤360 */
@media (max-width: 360px) {
  .hero { padding: 90px 12px 80px; }
  .hero-meta { font-size: 9px !important; max-width: 35vw; }
  .manifeste { padding-left: 14px; padding-right: 14px; }
  .practices { padding-left: 14px; padding-right: 14px; }
  .rz-corner { font-size: 9px !important; }
  .footer { font-size: 10px; letter-spacing: 0.08em; }
}

/* Petite hauteur paysage mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: auto; padding: 60px 18px; }
  .hero-logo { max-height: 90px !important; }
  .hero-type { font-size: clamp(40px, 8vw, 80px) !important; }
}
/* === fin v6x === */

/* ====================================================== */
/* v6y — Touch target nav-links min-width (R&Z fix)       */
/* ====================================================== */
@media (max-width: 767px) {
  /* R&Z nav link is too short (~43px wide) — force 44x44 */
  .nav-links a {
    min-width: 44px !important;
    text-align: center !important;
    justify-content: center !important;
  }
  /* Footer separator inline-flex height so siblings align */
  .footer .foot-sep,
  .footer .foot-lang {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 32px !important;
  }
}
/* === fin v6y === */

/* ====================================================== */
/* v6y.2 — Touch target extension iPad/tablet (<=1024)    */
/* ====================================================== */
@media (max-width: 1024px) {
  /* All nav-links 44x44 minimum, also tablets */
  .nav-links a {
    min-width: 44px !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 8px !important;
  }
  /* Footer links 44 high also on tablet */
  .footer a {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 6px 4px !important;
  }
}
/* === fin v6y.2 === */

/* ====================================================== */
/* v6y.3 — Brand link + nav-mail tablet/desktop tap target */
/* ====================================================== */
.brand {
  min-height: 44px !important;
  align-items: center !important;
}
.nav-mail,
a.nav-mail {
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
}
/* === fin v6y.3 === */

/* ====================================================== */
/* v6y.4 — Desktop tap-target safety (>1024)              */
/* ====================================================== */
@media (min-width: 1025px) {
  .nav-links a {
    min-width: 44px !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 8px !important;
  }
  .footer a {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 6px 4px !important;
  }
  .brand {
    min-height: 44px !important;
  }
}
/* === fin v6y.4 === */
