/* ==========================================================
   Jane Kozaily, portfolio
   VOICE   artsy, tactile, a little Y2K: liquid, chrome, vinyl
   IDEA    the portfolio is a record: 10 projects = 10 tracks, face A and face B
   PICTURE a half vinyl you spin and flip, over a black and beige liquid
   COLOUR  noir #000, sable #E3D5BC, lin #ECE3D2 (plates), taupe #9A8E7A
   TYPE    Avenir (Nunito Sans when Avenir is missing): 200 / 400 / 800
   ========================================================== */

:root{
  --noir:#000;
  --sable:#E3D5BC;
  --lin:#ECE3D2;
  --taupe:#9A8E7A;
  --trait:rgba(227,213,188,.22);
  --font:"Avenir Next","Avenir","Nunito Sans","Segoe UI",system-ui,sans-serif;
  --marge:clamp(18px,3vw,44px);
  color-scheme:dark;
}
*{box-sizing:border-box;min-width:0}
html,body{margin:0}
body{
  background:var(--noir);color:var(--sable);
  font:400 17px/1.6 var(--font);
  -webkit-font-smoothing:antialiased;overflow-x:clip;
}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%;height:auto}
button{font:inherit;color:inherit}
:focus-visible{outline:1.5px solid var(--sable);outline-offset:4px;border-radius:2px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* chrome star cursor, desktop only */
@media (pointer:fine){
  body{cursor:url(../img/curseur.png) 15 15,auto}
  a,button,[role=button],.zoom{cursor:url(../img/curseur-lien.png) 19 19,pointer}
}

/* ---------- liquid background ---------- */
.fluid{position:fixed;inset:0;width:100%;height:100%;display:block;z-index:0;
  background:
    radial-gradient(60% 45% at 25% 30%,rgba(227,213,188,.55),transparent 70%),
    radial-gradient(50% 40% at 80% 70%,rgba(227,213,188,.35),transparent 70%),#000}
.voile{position:fixed;inset:0;z-index:0;pointer-events:none;
  background:radial-gradient(120% 90% at 50% 40%,rgba(0,0,0,.42),rgba(0,0,0,.66))}

/* ==========================================================
   HOME: one screen, no scroll.
   Top = black "sky" holding all the type (always readable),
   bottom = the liquid pool the record sits in.
   ========================================================== */
body.home{--R:min(46vw,46dvh,540px);--bas:clamp(46px,7vh,72px);height:100vh;height:100dvh;overflow:hidden;position:relative}

.ciel{position:absolute;z-index:2;left:0;right:0;top:0;height:calc(100dvh - var(--R) - var(--bas));
  display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);
  column-gap:clamp(20px,4vw,64px);padding:clamp(20px,3.4vh,34px) var(--marge) 0;
  text-shadow:0 1px 14px rgba(0,0,0,.8)}
.ciel p{margin:0}
.ciel .role,.ciel .nom{font-weight:800;font-size:16px;line-height:1.4;letter-spacing:.01em}
.ciel .gauche{grid-area:1/1;justify-self:start;align-self:start;display:flex;flex-direction:column;gap:8px;max-width:26ch}
.ciel .nom{white-space:nowrap;display:flex;align-items:center;gap:8px}
.ciel{--col:clamp(250px,24vw,340px)}
.ciel .role{text-align:left}
.ciel .chrome{height:1.6em;width:auto;margin-top:-.2em;filter:drop-shadow(0 2px 6px rgba(0,0,0,.6))}

.tete{grid-area:1/2/3/3;align-self:center;position:relative;display:flex;flex-direction:column;align-items:center;text-align:center}
.tete .logo{height:clamp(84px,16vh,172px);width:auto}
.contact{margin-top:clamp(10px,1.8vh,18px);display:flex;flex-direction:column;gap:2px;font-weight:300;font-size:clamp(14px,1.15vw,16px);letter-spacing:.03em}
.contact a,.contact button{padding:1px 4px}
.contact .ligne{margin:0;display:flex;align-items:center;justify-content:center;gap:2px}
.contact .sep{opacity:.6;padding:0 4px}
.contact .lien-cv{font-weight:800;letter-spacing:.06em}
.contact a:hover{text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}

.intro{grid-area:1/3;align-self:start;justify-self:end;width:min(var(--col),100%);margin-top:-.25em;
  font-size:clamp(15px,1.25vw,17px);line-height:1.6;text-align:left;text-wrap:pretty;hyphens:manual}


/* chrome ornaments: three, no more */
.orn{position:absolute;pointer-events:none;user-select:none;filter:drop-shadow(0 3px 8px rgba(0,0,0,.55))}
.marque{position:relative;display:inline-block;line-height:0}
.orn-etoile{width:clamp(22px,3.2vh,34px);right:-10px;top:-12px;transform:rotate(12deg)}

/* ---------- the record ---------- */
.platine{position:absolute;inset:0;z-index:3;pointer-events:none;perspective:1800px;perspective-origin:50% 100%;overflow:hidden}
.disque{position:absolute;left:50%;top:100%;width:calc(var(--R)*2);height:calc(var(--R)*2);
  margin:calc(var(--R)*-1) 0 0 calc(var(--R)*-1);transform-style:preserve-3d;
  transition:transform 1s cubic-bezier(.65,.02,.22,1);pointer-events:auto;touch-action:none;border-radius:50%;
  user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}
.disque.retourne{transform:rotateY(180deg)}
.disque.arrive{animation:arrive 1.5s cubic-bezier(.2,.75,.2,1) both}
@keyframes arrive{from{translate:0 40%}to{translate:0 0}}
.disque.saut{animation:saut 1s cubic-bezier(.45,0,.25,1)}
@keyframes saut{45%{translate:0 -6%}}
.face{position:absolute;inset:0;border-radius:50%;backface-visibility:hidden;-webkit-backface-visibility:hidden;
  box-shadow:0 -14px 70px rgba(0,0,0,.65),0 0 0 1px rgba(227,213,188,.08)}
.face.b{transform:rotateY(180deg)}
.face svg{position:absolute;inset:0;width:100%;height:100%;display:block;overflow:visible;will-change:transform}
.reflet{position:absolute;inset:0;border-radius:50%;pointer-events:none;
  background:
    conic-gradient(from -90deg,transparent 0deg,rgba(255,247,232,.05) 12deg,rgba(255,247,232,.20) 34deg,rgba(255,247,232,.05) 52deg,transparent 64deg,
      transparent 112deg,rgba(255,247,232,.12) 134deg,transparent 150deg,
      transparent 180deg,rgba(255,247,232,.05) 192deg,rgba(255,247,232,.18) 214deg,rgba(255,247,232,.05) 232deg,transparent 244deg,
      transparent 292deg,rgba(255,247,232,.10) 314deg,transparent 330deg);
  -webkit-mask:radial-gradient(circle,transparent 0 30.6%,#000 31.2% 99.3%,transparent 99.6%);
          mask:radial-gradient(circle,transparent 0 30.6%,#000 31.2% 99.3%,transparent 99.6%)}

/* tracks */
.piste .zone{fill:rgba(227,213,188,0);transition:fill .35s}
.piste text{fill:var(--sable);fill-opacity:.86;font-family:var(--font);font-weight:800;letter-spacing:.03em;transition:fill-opacity .3s}
.piste:hover .zone,.piste:focus-visible .zone,.piste.pulse .zone{fill:rgba(227,213,188,.07)}
.piste:hover text,.piste:focus-visible text,.piste.pulse text{fill-opacity:1}
.piste{outline:none}
.piste:focus-visible .zone{stroke:var(--sable);stroke-width:1.5}
.etiquette{cursor:inherit}
.etiquette:focus-visible{outline:none}
.etiquette:focus-visible .papier{stroke:var(--noir);stroke-width:4}
.disque.glisse{cursor:grabbing}

/* hint above the record: a small pill so it reads over the liquid */
.indice{position:absolute;z-index:4;left:50%;bottom:calc(var(--R) + 12px);transform:translateX(-50%);
  display:flex;align-items:center;gap:9px;padding:8px 16px 8px 13px;border-radius:40px;
  background:rgba(0,0,0,.82);border:1px solid rgba(227,213,188,.32);
  font-size:14px;letter-spacing:.02em;white-space:nowrap;transition:opacity .7s;opacity:0;pointer-events:none}
.indice.on{opacity:1}
.indice svg{width:18px;height:18px;flex:none}
.indice .i-retourner{display:none}
.indice.retourner .i-tourner{display:none}
.indice.retourner .i-retourner{display:block}

/* flip control, bottom right next to the record */
.faces{position:absolute;z-index:5;right:var(--marge);bottom:clamp(16px,3vh,28px);display:flex;align-items:center;gap:10px;
  min-height:44px;padding:5px 5px 5px 14px;border-radius:40px;border:1px solid rgba(227,213,188,.42);background:rgba(0,0,0,.8);
  color:var(--sable);font-size:14px;letter-spacing:.02em;transition:border-color .25s,background .25s}
.faces:hover{border-color:var(--sable);background:#000}
.faces svg{width:18px;height:18px;flex:none}
.faces .ab{display:flex;gap:2px;padding:2px;border-radius:30px;background:rgba(227,213,188,.12)}
.faces .ab b{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:13px;transition:background .35s,color .35s}
.faces[data-face="A"] .a,.faces[data-face="B"] .b{background:var(--sable);color:#000}
.faces.appel{animation:appel 1.4s ease 2}
@keyframes appel{40%{box-shadow:0 0 0 9px rgba(227,213,188,.2);border-color:var(--sable)}}
@media (max-aspect-ratio:3/2){
  .faces{right:8px;bottom:12px;padding-left:10px;gap:7px}
  .faces .ab b{width:26px;height:26px}
  .faces .txt{display:none}
}

/* CV viewer */
.cv{position:fixed;inset:0;z-index:40;overflow-y:auto;overscroll-behavior:contain;background:rgba(0,0,0,.98);
  opacity:0;transition:opacity .35s;-webkit-overflow-scrolling:touch}
.cv.on{opacity:1}
.cv[hidden]{display:none}
.cv-barre{position:sticky;top:0;z-index:1;display:flex;justify-content:space-between;align-items:center;gap:16px;
  padding:12px var(--marge);background:linear-gradient(rgba(0,0,0,.9),rgba(0,0,0,0))}
.cv-barre a,.cv-barre button{min-height:44px;display:inline-flex;align-items:center;padding:0 16px;border:1px solid rgba(227,213,188,.4);
  border-radius:40px;background:rgba(0,0,0,.6);font-size:14px;letter-spacing:.02em}
.cv-barre a:hover,.cv-barre button:hover{border-color:var(--sable)}
.cv-page{display:block;width:min(900px,94vw);height:auto;margin:8px auto 56px}

/* entrance: one orchestrated moment */
.home .ciel{animation:monte 1.1s .25s cubic-bezier(.2,.7,.2,1) both}
@keyframes monte{from{opacity:0}to{opacity:1}}
body.sort{opacity:0;transition:opacity .35s}

/* phones and portrait tablets: still one screen, a bigger record */
@media (max-width:700px),(orientation:portrait) and (max-width:1100px){
  body.home{--R:min(72vw,38dvh);--bas:54px}
  .ciel{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);column-gap:18px;
    padding-top:clamp(16px,2.6vh,28px);padding-bottom:4px}
  .ciel .role,.ciel .nom{font-size:14px}
  .ciel .gauche{grid-area:1/1;gap:6px;max-width:none}
  .ciel .role{font-size:13px}
  .tete{grid-area:2/1/3/3;justify-self:center}
  .tete .logo{height:clamp(78px,13dvh,140px)}
  .contact{font-size:15px}
  .intro{grid-area:1/2;justify-self:end;width:100%;font-size:13px;line-height:1.5}
  .indice{font-size:13px}
}
@media (max-height:520px) and (min-width:701px){
  body.home{--R:min(40vw,44dvh);--bas:44px}
  .ciel{padding-top:14px}
  .ciel .role,.ciel .nom{font-size:14px}
  .tete .logo{height:clamp(46px,14vh,70px)}
  .contact{flex-direction:row;gap:14px;font-size:14px;margin-top:4px}
  .intro{font-size:14px;line-height:1.5;max-width:30ch}
  .indice{font-size:13px;bottom:calc(var(--R) + 8px)}
}

/* ==========================================================
   PROJECT PAGES
   ========================================================== */
.projet .fluid{opacity:1}
.barre{position:sticky;top:0;z-index:20;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;
  padding:14px var(--marge);background:linear-gradient(rgba(0,0,0,.78),rgba(0,0,0,0));font-size:15px}
.barre .retour{justify-self:start;display:inline-flex;align-items:center;gap:.5em;padding:8px 0}
.barre .retour:hover span{text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}
.barre .mini{display:block;height:38px;width:auto}
.barre .nom{justify-self:end}

.vertical{position:fixed;z-index:1;left:clamp(6px,1.2vw,22px);top:calc(50% + 30px);
  font-weight:900;font-size:var(--fs,clamp(84px,13.5vh,150px));line-height:.82;letter-spacing:-.01em;
  writing-mode:vertical-rl;transform:translateY(-50%) rotate(180deg);color:var(--sable);opacity:.9;
  max-height:calc(100vh - 150px);pointer-events:none;user-select:none}
.vertical.deux{--fs:clamp(60px,9.5vh,112px)}
.vertical.trois{--fs:clamp(50px,7.6vh,92px);white-space:nowrap}
.oeuvre{position:relative;z-index:2;width:min(1100px,100% - 2*var(--marge) - clamp(0px,9vw,190px)*2);margin:0 auto;
  padding:clamp(40px,9vh,110px) 0 40px}
.titre{max-width:62ch;margin:0 auto clamp(40px,7vh,80px);text-align:center}
.titre h1{font-weight:800;font-size:clamp(30px,3.4vw,44px);line-height:1.08;margin:0;text-wrap:balance}
.titre .desc{margin:.7em auto 0;max-width:52ch;text-wrap:pretty}
.titre .piste-no{margin:1.1em 0 0;font-size:14px;color:var(--taupe)}
.titre .piste-no img{display:inline-block;width:26px;vertical-align:-5px;margin-right:.4em}
.titre h1 .chrome{display:inline-block;height:.78em;width:auto;vertical-align:.32em;margin-left:.22em;transform:rotate(14deg);filter:drop-shadow(0 3px 8px rgba(0,0,0,.6))}
.barre .nom{display:inline-flex;align-items:center;gap:6px}
.barre .nom img{height:22px;width:auto}

.bloc{margin:0 auto clamp(56px,10vh,120px)}
.bloc>.soustitre{text-align:center;margin:0 auto 22px;max-width:52ch}
.shot{margin:0 auto;width:min(100%,calc(86vh * var(--r)))}
.shot img,.duo img,.trio img{width:100%;height:auto}
.shot+.shot{margin-top:clamp(28px,6vh,64px)}
.zoom{display:block;padding:0;border:0;background:none;width:100%}

.duo,.trio{display:flex;align-items:flex-start;justify-content:center;gap:clamp(12px,2vw,28px);margin:0 auto;
  width:min(100%,calc(var(--h,78vh) * var(--sum)))}
.duo>figure,.trio>figure{flex:var(--r) 1 0;width:0;margin:0}
.trio{--h:62vh;gap:clamp(8px,1.6vw,22px)}
figure{margin:0}

.cadre{position:relative;width:100%;aspect-ratio:16/10;border-radius:6px;overflow:hidden;background:#cdbfa9;
  box-shadow:0 30px 80px -20px rgba(0,0,0,.8)}
.cadre iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.cadre:fullscreen{border-radius:0}
.cadre.haut{aspect-ratio:auto;height:min(88vh,860px)}
.sous-cadre{display:flex;justify-content:flex-end;margin-top:14px}
.btn{display:inline-flex;align-items:center;gap:.55em;min-height:44px;padding:0 18px;border:1px solid var(--trait);border-radius:40px;
  background:rgba(0,0,0,.35);font-size:15px;transition:border-color .25s,background .25s}
.btn:hover{border-color:var(--sable);background:rgba(227,213,188,.08)}
.btn svg{width:15px;height:15px}

/* Summer in action slider */
.defile{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;
  overscroll-behavior-x:contain}
.defile::-webkit-scrollbar{display:none}
.defile>figure{flex:0 0 100%;scroll-snap-align:center;scroll-snap-stop:always}
.defile img{width:100%;aspect-ratio:3508/2481;object-fit:contain}
.fleches{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:16px;color:var(--taupe);font-size:14px}
.fleches button{width:44px;height:44px;border-radius:50%;border:1px solid rgba(154,142,122,.45);background:transparent;color:var(--sable);
  display:grid;place-items:center;transition:border-color .25s,opacity .25s;padding:0}
.fleches button:hover{border-color:var(--sable)}
.fleches button:disabled{opacity:.3}
.fleches svg{width:16px;height:16px}
.fleches .compte{min-width:5.5ch;text-align:center;font-variant-numeric:tabular-nums}

/* previous / next */
.suite{position:relative;z-index:2;display:grid;grid-template-columns:1fr auto 1fr;align-items:end;gap:20px;
  width:min(1100px,100% - 2*var(--marge));margin:0 auto;padding:36px 0 30px;border-top:1px solid var(--trait)}
.suite a{display:flex;flex-direction:column;gap:2px;padding:6px 0}
.suite small{font-size:14px;color:var(--taupe)}
.suite strong{font-weight:800;font-size:clamp(18px,2vw,24px);line-height:1.2}
.suite .prec{justify-self:start}
.suite .suiv{justify-self:end;text-align:right;align-items:flex-end}
.suite a:hover strong{text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:1px}
.suite .centre{align-self:center;font-size:14px;color:var(--taupe)}
.suite .centre:hover{color:var(--sable)}
.pied{position:relative;z-index:2;display:flex;flex-wrap:wrap;justify-content:center;gap:6px 28px;padding:10px var(--marge) 40px;
  font-size:14px;color:var(--taupe)}
.pied a:hover{color:var(--sable)}

/* lightbox */
.visionneuse{position:fixed;inset:0;z-index:50;display:grid;place-items:center;padding:4vh 4vw;background:rgba(0,0,0,.92);
  opacity:0;pointer-events:none;transition:opacity .3s}
.visionneuse.on{opacity:1;pointer-events:auto}
.visionneuse img{max-width:100%;max-height:92vh;width:auto;height:auto;border-radius:3px;box-shadow:0 30px 90px rgba(0,0,0,.7)}
.visionneuse .fermer{position:absolute;top:14px;right:var(--marge);min-height:44px;padding:0 6px;border:0;background:none;font-size:15px}

.projet main,.projet .suite{animation:monte .7s cubic-bezier(.2,.7,.2,1) both}

@media (max-width:900px){
  .vertical,.vertical.deux,.vertical.trois{position:absolute;top:76px;transform:rotate(180deg);--fs:clamp(40px,10vw,64px);opacity:.14;max-height:min(46vh,340px);overflow:hidden}
  .oeuvre{width:calc(100% - 2*var(--marge))}
}
@media (max-width:640px){
  .barre{font-size:14px}
  .barre .mini{height:30px}
  .duo{flex-direction:column;width:100%}
  .duo>figure{width:100%;flex:none}
  .trio{width:100%;--h:40vh}
  .cadre{aspect-ratio:4/5}
  .cadre.haut{aspect-ratio:auto;height:min(640px,84vh)}
  .suite{grid-template-columns:1fr 1fr}
  .suite .centre{grid-column:1/-1;grid-row:2;justify-self:center}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
  .defile{scroll-behavior:auto}
}
