/* ════════════════════════════════════════════════════════════════
   ANIMSHACK — refonte radicale 2026-06
   Vanilla CSS · mobile-first · breakpoint 880px
   ════════════════════════════════════════════════════════════════ */

:root{
  --ink: #0a0810;
  --ink-soft: #0b1024;
  --gold: #d49a3a;
  --gold-soft: rgba(212,154,58,0.18);
  --ivory: #f1ead8;
  --ivory-soft: #d8d2bf;
  --blood: #5a1313;

  --font-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-text: "Inter", "Manrope", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --h0: clamp(72px, 11vw, 200px);
  --h2: clamp(40px, 6vw, 96px);
  --body: clamp(18px, 1.6vw, 24px);
  --pad-x: clamp(20px, 5vw, 96px);
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

html{scroll-behavior:smooth}
html.lenis,html.lenis body{height:auto}
.lenis.lenis-smooth{scroll-behavior:auto!important}

body{
  background:var(--ink);
  color:var(--ivory);
  font-family:var(--font-text);
  font-size:var(--body);
  font-weight:300;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

::selection{background:var(--gold);color:var(--ink)}

:focus-visible{outline:2px solid var(--gold);outline-offset:3px}

a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
em{font-style:italic;color:var(--gold)}
.mono{font-family:var(--font-mono);font-weight:400}

.skip-link{
  position:fixed;top:-60px;left:16px;z-index:10000;
  padding:10px 18px;background:var(--gold);color:var(--ink);
  font-family:var(--font-mono);font-size:13px;border-radius:4px;
  transition:top .2s ease;
}
.skip-link:focus{top:16px}

/* ════════════════════════════════════════════════════════════════
   SPLASH LOADER (préservé strict)
   Chorégraphie : étoiles 0→.8s · tracé logo .5→2.3s · halo 1.4→3s
   · encre + mot 2.15→2.9s · fade out 2.8→3.5s (piloté par le JS inline)
   ════════════════════════════════════════════════════════════════ */

#as-splash{
  position:fixed;inset:0;z-index:9999;
  background:#06040c;
  display:none;align-items:center;justify-content:center;
  overflow:hidden;contain:strict;
  transition:opacity .7s ease,visibility 0s linear .7s;
}
#as-splash.as-run{display:flex}
#as-splash.as-done{opacity:0;visibility:hidden}
html.as-lock{overflow:hidden}

/* — 1. ciel étoilé (canvas 2D, peint par le JS inline) — */
.as-splash-stars{
  position:absolute;inset:0;width:100%;height:100%;
  opacity:0;animation:as-fade .8s ease-out forwards;
}

/* — 3. halo orange brûlé qui pulse derrière le logo — */
.as-splash-halo{
  position:absolute;width:min(76vmin,660px);height:min(76vmin,660px);
  border-radius:50%;filter:blur(2px);
  background:radial-gradient(circle at 50% 52%,
    rgba(232,119,31,.30) 0%,
    rgba(232,119,31,.13) 36%,
    rgba(192,130,64,.05) 60%,
    rgba(192,130,64,0) 74%);
  opacity:0;transform:scale(.78);
  animation:as-halo 2s cubic-bezier(.4,0,.2,1) 1.4s forwards;
}
@keyframes as-halo{
  0%{opacity:0;transform:scale(.78)}
  55%{opacity:1;transform:scale(1.07)}
  100%{opacity:.85;transform:scale(1)}
}

/* — 2. le logo se dessine à la main (stroke-dasharray) — */
.as-splash-logo{position:relative;width:min(46vmin,330px);aspect-ratio:1/1}
.as-splash-trace{position:absolute;inset:0;width:100%;height:100%;
  animation:as-fadeout .7s ease 2.3s forwards}
.as-splash-trace path{
  fill:none;stroke:#f0c970;stroke-width:1.4;
  stroke-linecap:round;stroke-linejoin:round;
  stroke-dasharray:1;stroke-dashoffset:1;
  animation:as-draw .85s cubic-bezier(.45,.05,.35,1) forwards;
  animation-delay:calc(.5s + var(--i) * .08s);
}
@keyframes as-draw{to{stroke-dashoffset:0}}

/* — 4. l'encre se dépose : le vrai logo (ivoire) remplace le tracé — */
.as-splash-img{
  position:absolute;inset:0;width:100%;height:100%;
  opacity:0;filter:drop-shadow(0 0 18px rgba(232,119,31,.35));
  animation:as-fade .7s ease 2.15s forwards;
}
.as-splash-word{
  position:absolute;left:50%;bottom:-15%;
  transform:translate(-50%,8px);
  font-family:"Cormorant Garamond",Georgia,serif;
  font-style:italic;font-weight:600;
  font-size:clamp(18px,3.4vmin,26px);
  letter-spacing:.18em;color:#f4ecd4;white-space:nowrap;
  opacity:0;animation:as-word .8s ease 2.3s forwards;
}
@keyframes as-word{to{opacity:.92;transform:translate(-50%,0)}}
@keyframes as-fade{to{opacity:1}}
@keyframes as-fadeout{to{opacity:0}}

/* — a11y : pas de motion → pas de splash du tout — */
@media (prefers-reduced-motion:reduce){
  #as-splash{display:none!important}
}

/* ════════════════════════════════════════════════════════════════
   NAV
   ════════════════════════════════════════════════════════════════ */

.nav{
  position:fixed;top:0;left:0;right:0;z-index:900;
  display:flex;align-items:center;gap:24px;
  padding:14px var(--pad-x);
  background:linear-gradient(to bottom, rgba(10,8,16,.85), rgba(10,8,16,0));
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  mask-image:linear-gradient(to bottom, black 70%, transparent);
  -webkit-mask-image:linear-gradient(to bottom, black 70%, transparent);
}
.nav-brand{display:flex;align-items:center;gap:12px;flex-shrink:0}
.nav-brand img{width:36px;height:36px}
.nav-brand-word{
  font-family:var(--font-display);font-style:italic;font-weight:500;
  font-size:20px;letter-spacing:.04em;color:var(--ivory);
}
.nav-links{display:none;gap:28px;margin-left:auto}
.nav-links a{
  font-size:14px;font-weight:400;color:var(--ivory-soft);
  letter-spacing:.04em;transition:color .25s ease;
}
.nav-cta{
  margin-left:auto;
  font-family:var(--font-mono);font-size:12px;letter-spacing:.08em;
  color:var(--gold);border:1px solid var(--gold-soft);
  padding:9px 16px;border-radius:99px;
  transition:background .25s ease,color .25s ease,border-color .25s ease;
}
@media (min-width:880px){
  .nav-links{display:flex}
  .nav-cta{margin-left:0}
}
@media (hover:hover){
  .nav-links a:hover{color:var(--gold)}
  .nav-cta:hover{background:var(--gold);color:var(--ink);border-color:var(--gold)}
}

/* ════════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════════ */

.hero{
  position:relative;
  min-height:100vh;min-height:100svh;
  display:flex;flex-direction:column;justify-content:center;
  padding:120px var(--pad-x) 96px;
  overflow:hidden;
}
.hero-webgl{
  position:fixed;inset:0;z-index:0;
  width:100%;height:100%;
  pointer-events:none;
  display:none;
}
.hero-poster{
  position:fixed;inset:0;z-index:0;pointer-events:none;
  background:
    linear-gradient(to bottom, rgba(10,8,16,.55) 0%, rgba(10,8,16,.78) 70%, var(--ink) 100%),
    url("../img/og.jpg") center/cover no-repeat;
}
@media (min-width:880px){
  .hero-webgl{display:block}
  .hero-poster{display:none}
}
.hero-inner{position:relative;z-index:2;max-width:1400px}
.hero-title{
  font-family:var(--font-display);
  font-size:var(--h0);
  font-weight:400;
  letter-spacing:-0.045em;
  line-height:0.92;
  color:var(--ivory);
  max-width:14ch;
}
.hero-title em{font-weight:400}
.hero-title .ch{display:inline-block;will-change:transform}
.hero-sub{
  margin-top:clamp(24px,3vw,44px);
  max-width:54ch;
  color:var(--ivory-soft);
}
.hero-ctas{display:flex;flex-wrap:wrap;gap:16px;margin-top:clamp(28px,3.4vw,48px)}
.btn{
  display:inline-block;
  font-family:var(--font-mono);font-size:13px;letter-spacing:.06em;
  padding:15px 28px;border-radius:99px;
  transition:transform .25s ease,background .25s ease,color .25s ease,border-color .25s ease,box-shadow .25s ease;
}
.btn-solid{background:var(--gold);color:var(--ink);border:1px solid var(--gold)}
.btn-ghost{background:transparent;color:var(--ivory);border:1px solid rgba(241,234,216,.3)}
@media (hover:hover){
  .btn-solid:hover{transform:translateY(-2px);box-shadow:0 12px 40px var(--gold-soft)}
  .btn-ghost:hover{border-color:var(--gold);color:var(--gold)}
}
.hero-meta{
  position:absolute;left:var(--pad-x);bottom:28px;z-index:2;
  font-size:11px;letter-spacing:.18em;color:var(--ivory-soft);opacity:.7;
}

/* ════════════════════════════════════════════════════════════════
   SECTIONS — base
   ════════════════════════════════════════════════════════════════ */

.section{
  position:relative;z-index:2;
  background:var(--ink);
  padding:clamp(96px,12vw,200px) var(--pad-x);
}
.h2{
  font-family:var(--font-display);
  font-size:var(--h2);
  font-weight:400;
  letter-spacing:-0.03em;
  line-height:1.02;
  max-width:18ch;
  margin-bottom:clamp(40px,5vw,80px);
}
.m-label{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.18em;
  color:var(--gold);
  margin-bottom:clamp(16px,2vw,28px);
}

/* ════════════════════════════════════════════════════════════════
   MANIFESTE (pin + scrub 300vh — piloté JS)
   ════════════════════════════════════════════════════════════════ */

.manifeste{
  position:relative;z-index:2;
  background:linear-gradient(160deg, var(--ink) 0%, var(--ink-soft) 60%, var(--ink) 100%);
}
.manifeste-stage{
  min-height:100vh;min-height:100svh;
  display:flex;flex-direction:column;justify-content:center;
  padding:0 var(--pad-x);
}
.manifeste-title{
  font-family:var(--font-display);
  font-size:clamp(44px,7.5vw,128px);
  font-weight:400;letter-spacing:-0.04em;line-height:1.04;
}
.m-line{display:block}
.m-step{
  margin-top:clamp(24px,3vw,40px);
  font-size:11px;letter-spacing:.18em;color:var(--ivory-soft);opacity:.6;
}
.manifeste-body{
  margin-top:clamp(28px,3.5vw,52px);
  max-width:58ch;
  color:var(--ivory-soft);
  font-family:var(--font-display);
  font-size:clamp(19px,2vw,28px);
  line-height:1.5;
}

/* ════════════════════════════════════════════════════════════════
   UNIVERS — grille 6 cards
   ════════════════════════════════════════════════════════════════ */

.u-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:clamp(20px,2.5vw,36px);
}
@media (min-width:880px){
  .u-grid{grid-template-columns:repeat(2,1fr)}
}
@media (min-width:1200px){
  .u-grid{grid-template-columns:repeat(3,1fr)}
}

.u-card{
  position:relative;
  display:block;
  aspect-ratio:3/4;
  border-radius:14px;
  overflow:hidden;
  background:var(--ink-soft);
  border:1px solid rgba(241,234,216,.07);
  isolation:isolate;
  transition:box-shadow .45s ease,border-color .45s ease;
}
.u-media{position:absolute;inset:0;z-index:0}
.u-media img{
  width:100%;height:100%;object-fit:cover;
  transition:transform .6s cubic-bezier(.25,.46,.45,.94);
}

/* — teasers floutés : le flou de 28px est non négociable — */
.u-media--blur img{
  filter:blur(28px) saturate(0.6);
  transform:scale(1.18); /* masque les bords du blur */
}
.u-veil{
  position:absolute;inset:0;z-index:1;
  background:rgba(10,8,16,0.55);
  transition:background .45s ease;
}
.u-card--dev{cursor:default}

/* — vignette typographique PARROTITION — */
.u-media--typo{
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg, #0a0810, #0b1024);
}
.u-media--typo span{
  font-family:var(--font-display);font-style:italic;font-weight:300;
  font-size:clamp(40px,4.5vw,68px);
  color:var(--gold);opacity:.34;
  letter-spacing:-0.02em;
  transform:rotate(-6deg);
  filter:blur(2px);
  user-select:none;
}

.u-badge{
  position:absolute;top:18px;left:18px;z-index:3;
  font-size:10px;letter-spacing:.14em;
  color:var(--gold);
  background:rgba(10,8,16,.72);
  border:1px solid var(--gold-soft);
  padding:7px 12px;border-radius:4px;
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
}

.u-body{
  position:absolute;left:0;right:0;bottom:0;z-index:2;
  padding:clamp(20px,2.4vw,30px);
  background:linear-gradient(to top, rgba(10,8,16,.92) 20%, rgba(10,8,16,.55) 70%, transparent);
}
.u-title{
  font-family:var(--font-display);font-weight:400;
  font-size:clamp(26px,2.6vw,38px);
  letter-spacing:-0.02em;line-height:1.05;
}
.u-title em{color:var(--ivory)}
.u-wt{font-size:9px;letter-spacing:.14em;color:var(--ivory-soft);opacity:.7;vertical-align:middle}
.u-pitch{
  margin-top:10px;font-size:15px;line-height:1.5;
  color:var(--ivory-soft);max-width:38ch;
}
.u-row{margin-top:14px;font-size:10px;letter-spacing:.12em;color:var(--gold)}
.u-cta{
  margin-top:8px;font-size:12px;letter-spacing:.08em;color:var(--gold);
  transition:letter-spacing .3s ease;
}

/* — hover (pointeurs fins uniquement) — */
@media (hover:hover){
  .u-card--live:hover{
    box-shadow:0 30px 80px var(--gold-soft);
    border-color:var(--gold-soft);
  }
  .u-card--live:hover .u-media img{transform:scale(1.02)}
  .u-card--live:hover .u-cta{letter-spacing:.16em}
  .u-card--dev:hover .u-veil{background:rgba(10,8,16,0.45)}
}

/* ════════════════════════════════════════════════════════════════
   EXPERTISES — liste éditoriale
   ════════════════════════════════════════════════════════════════ */

.x-list{list-style:none;max-width:980px}
.x-item{
  position:relative;
  display:flex;align-items:baseline;gap:clamp(18px,3vw,40px);
  padding:clamp(28px,3.5vw,48px) 0;
}
.x-icon{
  flex-shrink:0;
  color:var(--gold);
  font-size:clamp(20px,2vw,28px);
  line-height:1;
  width:1.4em;text-align:center;
  transform:translateY(.1em);
}
.x-name{
  font-family:var(--font-display);font-weight:500;
  font-size:clamp(24px,2.6vw,40px);
  letter-spacing:-0.02em;line-height:1.1;
}
.x-desc{margin-top:8px;color:var(--ivory-soft);font-size:clamp(15px,1.2vw,18px)}
.x-sep{
  position:absolute;left:0;right:0;bottom:0;
  width:100%;height:1px;display:block;overflow:visible;
}
.x-sep line{
  stroke:var(--gold);stroke-width:1;opacity:.45;
  stroke-dasharray:1;stroke-dashoffset:0;
  vector-effect:non-scaling-stroke;
}

/* ════════════════════════════════════════════════════════════════
   STUDIO
   ════════════════════════════════════════════════════════════════ */

.studio-body{max-width:62ch}
.studio-body p{margin-bottom:.5em;color:var(--ivory-soft)}
.studio-body p:first-child{color:var(--ivory)}

/* ════════════════════════════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════════════════════════════ */

.contact{background:linear-gradient(180deg, var(--ink) 0%, var(--ink-soft) 100%)}
.contact-body{max-width:48ch;color:var(--ivory-soft);margin-bottom:clamp(36px,5vw,72px)}
.contact-mail{
  position:relative;
  display:inline-block;
  font-family:var(--font-display);font-style:italic;font-weight:400;
  font-size:clamp(36px,5vw,80px);
  letter-spacing:-0.03em;line-height:1.1;
  color:var(--gold);
  word-break:break-word;
}
.contact-mail::after{
  content:"";
  position:absolute;left:0;bottom:-6px;
  width:100%;height:2px;background:var(--gold);
  transform:scaleX(0);transform-origin:left;
  transition:transform .45s cubic-bezier(.7,0,.3,1);
}
@media (hover:hover){
  .contact-mail:hover::after{transform:scaleX(1)}
}

/* ════════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════════ */

.footer{
  position:relative;z-index:2;
  background:var(--ink-soft);
  border-top:1px solid rgba(241,234,216,.08);
  display:flex;flex-direction:column;gap:18px;
  padding:36px var(--pad-x) 110px;
  font-size:12px;letter-spacing:.04em;color:var(--ivory-soft);
}
.footer a{transition:color .25s ease}
.footer-nav{display:flex;flex-wrap:wrap;gap:18px}
@media (min-width:880px){
  .footer{flex-direction:row;align-items:center;justify-content:space-between;padding-bottom:36px}
}
@media (hover:hover){
  .footer a:hover{color:var(--gold)}
}

/* ════════════════════════════════════════════════════════════════
   CUSTOM CURSOR
   ════════════════════════════════════════════════════════════════ */

.cursor{
  position:fixed;top:0;left:0;z-index:9000;
  width:12px;height:12px;
  border:1px solid var(--gold);border-radius:99px;
  pointer-events:none;
  mix-blend-mode:difference;
  display:none;
  align-items:center;justify-content:center;
  transform:translate(-50%,-50%);
  transition:width .3s cubic-bezier(.25,.46,.45,.94),
             height .3s cubic-bezier(.25,.46,.45,.94),
             background .3s ease,border-color .3s ease;
  will-change:transform;
}
.cursor-label{
  display:none;
  font-family:var(--font-mono);font-size:9px;letter-spacing:.1em;
  color:var(--ink);white-space:nowrap;
}
.cursor.is-cta{
  width:32px;height:32px;
  background:var(--gold);border-color:var(--gold);
}
.cursor.is-label{
  width:auto;height:auto;
  padding:10px 14px;
  background:var(--gold);border-color:var(--gold);
  mix-blend-mode:normal;
}
.cursor.is-label .cursor-label{display:block}
html.has-cursor .cursor{display:flex}
html.has-cursor,html.has-cursor a,html.has-cursor button{cursor:none}

/* ════════════════════════════════════════════════════════════════
   SOUND TOGGLE
   ════════════════════════════════════════════════════════════════ */

.sound-toggle{
  position:fixed;right:20px;bottom:20px;z-index:950;
  font-size:11px;letter-spacing:.14em;
  color:var(--ivory-soft);
  background:rgba(10,8,16,.72);
  border:1px solid rgba(241,234,216,.18);
  border-radius:99px;
  padding:11px 18px;
  cursor:pointer;
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  transition:color .25s ease,border-color .25s ease;
}
.sound-toggle[aria-pressed="true"]{color:var(--gold);border-color:var(--gold-soft)}
@media (hover:hover){
  .sound-toggle:hover{color:var(--gold)}
}
@media (prefers-reduced-motion:reduce){
  .sound-toggle{display:none}
}

/* ════════════════════════════════════════════════════════════════
   PAGE TRANSITION VEIL
   ════════════════════════════════════════════════════════════════ */

.page-veil{
  position:fixed;inset:0;z-index:9500;
  background:var(--ink);
  transform:scaleY(0);transform-origin:top;
  pointer-events:none;
}

/* ════════════════════════════════════════════════════════════════
   REDUCED MOTION — on coupe TOUT
   ════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
    scroll-behavior:auto!important;
  }
  .hero-webgl{display:none!important}
  .hero-poster{display:block!important}
  .cursor{display:none!important}
}

/* — hero logo restore 2026-06-12 — */
.hero-logo-wrap{display:block;text-align:center;margin:0 auto 28px}
.hero-logo{display:inline-block;width:min(200px,30vmin);height:auto;filter:drop-shadow(0 6px 28px rgba(232,119,31,.35));image-rendering:auto}
@media (max-width:720px){.hero-logo{width:min(140px,34vmin);margin-bottom:18px}}
