/* ffd.life — 2026 */
@font-face{font-family:"Archivo";src:url("../fonts/Archivo.woff2") format("woff2");font-weight:100 900;font-stretch:62% 125%;font-style:normal;font-display:swap}
@font-face{font-family:"Yanone";src:url("../fonts/Yanone.woff2") format("woff2");font-weight:200 700;font-style:normal;font-display:swap}

:root{
  --bg:#fcfcfb;
  --fg:#161616;
  --mute:#7c7a75;
  --ph:#ecebe8;
  --line:rgba(22,22,22,.12);
  --text:"Yanone","Archivo Narrow","Arial Narrow",sans-serif;   /* running text */
  --wide:"Archivo","Helvetica Neue",Arial,sans-serif;            /* titles, set wide and bold */
  --gut:clamp(16px,3vw,40px);
  --pad:clamp(64px,8.5vh,84px);
  --bar:84px;
  color-scheme:light;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--fg);font:300 19px/1.4 var(--text);-webkit-font-smoothing:antialiased;overflow-x:hidden}
img{display:block;max-width:100%;height:auto}
[hidden]{display:none!important}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
h1,h2,h3{font-weight:inherit;font-size:inherit;margin:0}
::selection{background:var(--fg);color:var(--bg)}
:focus-visible{outline:1px solid currentColor;outline-offset:4px}
.vh{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:fixed;left:var(--gut);top:-60px;z-index:100;background:var(--fg);color:var(--bg);padding:10px 16px}
.skip:focus{top:12px}

/* titles: Archivo at its widest, bold, in capitals */
.ptitle,.menu > nav a,.cname,.glabel,.cv h1{font-family:var(--wide);font-stretch:125%;font-weight:700;text-transform:uppercase;letter-spacing:.01em;line-height:1.05}

/* logo top left and the menu button top right, always there */
.bar{position:fixed;top:0;left:0;right:0;z-index:60;display:flex;justify-content:space-between;align-items:flex-start;padding:26px var(--gut) 0;pointer-events:none}
.bar > *{pointer-events:auto}
.logo img{height:30px;width:auto}
.logo .lw{display:none}
.over .logo .lk{display:none}
.over .logo .lw{display:block}
.burger{position:relative;width:52px;height:52px;margin:-10px -12px 0 0;border-radius:0;color:var(--fg);transition:background .3s,border-radius .3s,color .3s}
.over .burger{color:#fff}
.burger span{position:absolute;left:12px;right:12px;height:2.5px;background:currentColor;transition:transform .3s,opacity .2s,top .3s}
.burger span:nth-child(1){top:16px}.burger span:nth-child(2){top:25px}.burger span:nth-child(3){top:34px}
.burger[aria-expanded="true"]{border-radius:50%;background:var(--fg);color:#fff}
.burger[aria-expanded="true"] span:nth-child(1){top:25px;transform:rotate(45deg)}
.burger[aria-expanded="true"] span:nth-child(2){opacity:0}
.burger[aria-expanded="true"] span:nth-child(3){top:25px;transform:rotate(-45deg)}

/* the menu opens on a quarter of the screen */
.menu{position:fixed;top:0;right:0;z-index:55;width:max(25vw,320px);height:100vh;height:100svh;background:var(--bg);color:var(--fg);
  display:flex;flex-direction:column;justify-content:space-between;padding:110px var(--gut) calc(28px + env(safe-area-inset-bottom,0px));
  transform:translateX(100%);visibility:hidden;transition:transform .45s cubic-bezier(.2,.7,0,1),visibility .45s;box-shadow:-30px 0 60px rgba(0,0,0,.08)}
.menu.open{transform:none;visibility:visible}
.menu ul{list-style:none;margin:0;padding:0;display:grid;gap:18px}
.menu > nav a{font-size:clamp(22px,2vw,30px);color:var(--fg)}
.menu > nav a[aria-current],.menu > nav a:hover{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:7px}
.menu-foot{display:grid;gap:16px;font-size:17px}
.lang{display:flex;gap:14px;font-family:var(--wide);font-size:12px;letter-spacing:.06em}
.lang a{color:var(--mute)}.lang a[aria-current],.lang a:hover{color:var(--fg)}
.soc{display:flex;gap:16px;align-items:center}
.soc a{display:grid;place-items:center;color:inherit;opacity:.8}.soc a:hover{opacity:1}
.menu-legal{color:var(--mute)}

/* page title, top right under the menu button */
.ptitle{position:absolute;top:96px;right:var(--gut);z-index:5;margin:0;font-size:clamp(18px,1.9vw,28px);text-align:right;max-width:60vw;transition:opacity .3s}
/* as soon as the page moves, the title fades so it never runs under the menu button */
.scrolled .ptitle{opacity:0;pointer-events:none}
.ptitle.on{color:#fff}

main{position:relative;min-height:100vh;min-height:100svh}
html.snap{scroll-snap-type:y mandatory}

/* home: five photographs, the whole screen, one after another */
.show{position:fixed;inset:0;background:#000}
.slide{position:absolute;inset:0;opacity:0;transition:opacity 1.4s ease}
.slide.on{opacity:1}
.slide img{width:100%;height:100%;object-fit:cover;background:var(--c,#222)}
.home{overflow:hidden}
.show::after{content:"";position:absolute;left:0;right:0;bottom:0;height:22vh;background:linear-gradient(to top,rgba(0,0,0,.55),rgba(0,0,0,0));pointer-events:none}
.home-legal{position:fixed;left:var(--gut);right:var(--gut);bottom:calc(14px + env(safe-area-inset-bottom,0px));z-index:5;margin:0;color:rgba(255,255,255,.86);font-size:14px;line-height:1.3}
.home-legal a{border-bottom:1px solid rgba(255,255,255,.5)}

/* full-screen index pages: thumbnails side by side along the bottom edge, scrolled sideways */
.index{--cw:min(30vw, calc((100svh - 190px) * .8));position:relative;height:100vh;height:100svh;display:flex;align-items:flex-end;scroll-snap-align:start}
.strip{display:flex;gap:clamp(12px,1.6vw,24px);overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;scrollbar-width:none;padding:0 var(--gut);scroll-padding-inline:var(--gut);width:100%;overscroll-behavior-x:contain}
.strip::-webkit-scrollbar{display:none}
.card{flex:0 0 auto;width:var(--cw);scroll-snap-align:start;display:block}
.card .frame{position:relative;display:block;overflow:hidden}
.card img{width:100%;aspect-ratio:4/5;object-fit:cover;background:var(--c,var(--ph));transition:transform .8s cubic-bezier(.2,.7,0,1)}
.card:hover img{transform:scale(1.03)}
/* name, place and link appear on the photograph, over a short fade to black */
.card .info{position:absolute;left:0;right:0;bottom:0;display:block;padding:70px 18px 18px;color:#fff;
  background:linear-gradient(to top,rgba(0,0,0,.62),rgba(0,0,0,.3) 55%,rgba(0,0,0,0));opacity:0;transition:opacity .35s}
.card:hover .info,.card:focus-visible .info{opacity:1}
.cname{display:block;font-size:clamp(13px,1vw,16px)}
.cwhere{display:block;font-size:17px;opacity:.85}
.card .go{display:inline-block;margin-top:8px;font-size:17px;border-bottom:1px solid rgba(255,255,255,.8)}
@media (hover:none){.card .info{opacity:1}}
.edge{position:absolute;bottom:calc(var(--cw) * .625 - 24px);z-index:4;width:48px;height:48px;display:grid;place-items:center;border-radius:50%;background:rgba(252,252,251,.92);border:1px solid var(--line);color:var(--fg);opacity:0;transition:opacity .25s}
.edge-l{left:var(--gut)}.edge-r{right:var(--gut)}
.edge.on{opacity:1}

/* project: the first photograph fills the screen, the text sits on it */
.hero{position:relative;height:100vh;height:100svh;scroll-snap-align:start;overflow:hidden;background:#000}
.hero-img{display:block;width:100%;height:100%;cursor:zoom-in}
.hero-img img{width:100%;height:100%;object-fit:cover;background:var(--c,#222)}
.hero-txt{position:absolute;left:0;right:0;bottom:0;padding:min(46vh,440px) var(--gut) clamp(22px,4vh,40px);color:#fff;font-size:18px;line-height:1.3;
  background:linear-gradient(to top,rgba(0,0,0,.82) 0%,rgba(0,0,0,.6) 30%,rgba(0,0,0,.28) 62%,rgba(0,0,0,0) 100%);pointer-events:none}
.hero-txt > *{max-width:62ch;pointer-events:auto}
.hero-txt p{margin:0 0 .5em}
.hero-txt .where{opacity:.8}
.credits{list-style:none;padding:0;margin:.8em 0 0;font-size:16px;opacity:.9}
.credits span{opacity:.7}
.credits a{border-bottom:1px solid currentColor}

/* photographs after the first: one row per screen, uprights in pairs */
.prow{position:relative;height:100vh;height:100svh;display:flex;align-items:center;justify-content:center;padding:0 var(--gut);scroll-snap-align:center;scroll-snap-stop:always}
.prow-in{display:flex;gap:12px;width:min(100%, calc((100vh - var(--pad) * 2) * var(--r) + (var(--n) - 1) * 12px));width:min(100%, calc((100svh - var(--pad) * 2) * var(--r) + (var(--n) - 1) * 12px))}
.prow-in button{flex:var(--r) 1 0;min-width:0;cursor:zoom-in}
.prow img{width:100%;aspect-ratio:var(--r);background:var(--c,var(--ph))}
img[data-fade]{opacity:0;transition:opacity .6s}
img[data-fade].ld{opacity:1}
.glabel{position:absolute;top:calc(var(--pad) / 2 + 40px);left:var(--gut);font-size:15px}

/* portraits: Luce disponibile, all side by side along the bottom edge, scrolled sideways */
.psub{position:absolute;top:130px;right:var(--gut);z-index:5;margin:0;color:var(--mute);font-size:19px;transition:opacity .3s}
.scrolled .psub{opacity:0}
.pstrip{--sh:calc(100svh - 190px)}
.pstrip .strip{gap:6px}
.pic{flex:0 0 auto;height:var(--sh);aspect-ratio:var(--r);scroll-snap-align:start;cursor:zoom-in}
.pic img{width:100%;height:100%;object-fit:cover;background:var(--c,var(--ph))}
.pstrip .edge{bottom:calc(var(--sh) / 2 - 24px)}
.pstrip .strip{overflow-x:hidden;scroll-snap-type:none;touch-action:pan-y;-webkit-user-select:none;user-select:none}
.pstrip .pic{cursor:zoom-in;scroll-snap-align:none}
/* the hand appears only while the button is held and the row is moving */
.pstrip .strip.drag,.pstrip .strip.drag .pic{cursor:grabbing}
.rv{unicode-bidi:bidi-override;direction:rtl;display:inline-block}
.pstrip .pic img{-webkit-user-drag:none}
.pstrip .edge{background:rgba(252,252,251,.92)}

/* about, legal, other bio */
.about{display:grid;grid-template-columns:minmax(0,34%) minmax(0,1fr);gap:clamp(32px,6vw,96px);max-width:1180px;margin:0 auto;align-items:start;padding:150px var(--gut) 40px}
/* the photograph stays where it is, only the text scrolls */
.about figure{margin:0;position:sticky;top:150px}
.about img{width:auto;max-width:100%;max-height:calc(100vh - 190px);max-height:calc(100svh - 190px);background:var(--ph)}
.cv{max-width:68ch}
.cv h1{font-size:20px}
.cv .role{margin:.3em 0 1.8em;color:var(--mute)}
.row{display:grid;grid-template-columns:9.5rem minmax(0,1fr);gap:8px 28px;padding:20px 0 18px;border-top:1px solid var(--line)}
.row h2{font-family:var(--wide);font-stretch:110%;font-weight:600;font-size:12px;letter-spacing:.04em;text-transform:uppercase;padding-top:5px}
.row p{margin:0 0 .8em}
.row p:last-child{margin-bottom:0}
.row ul{list-style:none;padding:0;margin:0}
.row li{margin:0 0 .25em}
/* education and certificates: what first, then where and when, quieter */
.row li.ed{margin:0 0 1em;display:grid;gap:1px}
.row li.ed:last-child{margin-bottom:0}
.ed-what{color:var(--fg)}
.ed-detail{color:var(--fg);opacity:.8;font-size:.92em}
.ed-where{color:var(--mute);font-size:.88em;letter-spacing:.01em}
.row a,.legal-page a{border-bottom:1px solid var(--line)}
.row a:hover,.legal-page a:hover{border-color:currentColor}
.other{margin-top:1.2em!important;font-size:17px}
.legal-page{padding:150px var(--gut) 40px}
.legal-page .col{max-width:66ch;margin:0 auto}
.legal-page h1{font-family:var(--wide);font-stretch:125%;font-weight:700;text-transform:uppercase;font-size:18px;margin-bottom:.8em}
.legal-page h1.second{margin-top:2.6em}
.legal-page h2,.legal-page h3{font-family:var(--wide);font-stretch:110%;font-weight:600;font-size:12px;letter-spacing:.04em;text-transform:uppercase;margin:2em 0 .5em}
.legal-page p{margin:0 0 .9em}
.legal-page .meta{color:var(--mute)}
.notfound{min-height:100svh;display:grid;place-content:center;text-align:center;gap:10px}
.notfound .meta,.notfound p{margin:0;color:var(--mute)}
.notfound a{color:var(--fg);border-bottom:1px solid currentColor}

/* running text is justified */
.hero-txt p,.row p,.legal-page p{text-align:justify;-webkit-hyphens:auto;hyphens:auto}

/* footer */
.ft{padding:56px var(--gut) calc(30px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line);font-size:16px;color:var(--mute);scroll-snap-align:end}
.ft-row{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:14px;color:var(--fg)}
.ft p{margin:0;line-height:1.35}

/* back to top */
.top{position:fixed;right:var(--gut);bottom:calc(20px + env(safe-area-inset-bottom,0px));z-index:50;width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:50%;background:var(--fg);color:#fff;opacity:0;transform:translateY(8px);transition:opacity .3s,transform .3s;pointer-events:none}
.top.on{opacity:1;transform:none;pointer-events:auto}
.top:hover{background:#000}

/* lightbox */
.lb{position:fixed;inset:0;z-index:80;background:var(--bg);display:grid;grid-template-rows:auto 1fr;opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s;padding-bottom:var(--gut)}
.lb.open{opacity:1;visibility:visible}
.lb-top{display:flex;justify-content:space-between;align-items:center;padding:20px var(--gut);font-size:17px;color:var(--mute);gap:20px}
.lb-btns{display:flex;gap:22px}
.lb-btns button:hover{color:var(--fg)}
.lb-stage{position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:0 var(--gut);touch-action:pan-y;min-height:0}
.lb-stage img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;transition:opacity .25s}
.lb-stage img.swap{opacity:0}
.lb-nav{position:absolute;top:0;bottom:0;width:35%;z-index:2}
.lb-prev{left:0;cursor:w-resize}.lb-next{right:0;cursor:e-resize}
.lb-meta{display:none;font-size:17px;color:var(--mute);padding:0 var(--gut) 0 0;align-self:end;max-width:42ch}
.lb-meta p{margin:0 0 .6em}
.lb-t{color:var(--fg)}
.lb.has-meta{grid-template-columns:minmax(0,1fr) clamp(220px,22vw,320px)}
.lb.has-meta .lb-top{grid-column:1 / -1}
.lb.has-meta .lb-meta{display:block;padding-bottom:4vh}

@media (max-width:700px){
  :root{--pad:20px}
  .bar{padding-top:18px}
  .logo img{height:24px}
  .menu{width:82vw;padding-top:96px}
  .burger{margin:-12px -12px 0 0}
  .ptitle{top:76px;font-size:16px;max-width:70vw}
  .index{--cw:72vw}
  .hero{height:auto;background:none;overflow:visible}
  .hero-img{height:78svh;background:#000}
  .hero-txt{position:static;color:var(--fg);background:none;padding:22px var(--gut) 4px;font-size:17px}
  .hero-txt .where{color:var(--mute);opacity:1}
  .prow{height:auto;padding:5vh var(--gut);flex-direction:column;align-items:stretch}
  .prow-in{width:100%;flex-wrap:wrap;gap:8px;justify-content:center}
  .prow-in button{flex:0 1 calc(50% - 4px)}
  .prow-in button:only-child{flex-basis:100%}
  .pstrip{--sh:min(calc(100svh - 170px), 120vw)}
  .psub{top:104px;font-size:17px}
  .home-legal{font-size:12px}
  .glabel{position:static;margin-bottom:12px}
  .about{grid-template-columns:1fr;padding-top:120px}
  .about figure{position:static;max-width:420px}
  .about img{max-height:none;width:100%}
  .row{grid-template-columns:1fr;gap:8px}
  .legal-page{padding-top:120px}
  .ft-row{flex-wrap:wrap}
  .lb-p,.lb-n{display:none}
  .lb.has-meta{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr) auto}
  .lb.has-meta .lb-meta{padding:16px var(--gut) 0;max-width:none}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
