/* ==========================================================================
   Danillo Thurler — identidade 2026
   Archivo condensado + mono · grafite com granulado · marcas de corte
   ========================================================================== */
:root{
  --bg:#141413; --bg2:#1c1c1a; --blk:#232321; --blk2:#2c2c29; --line:#30302d;
  --tx:#e9e7e1; --mute:#8c8a84; --dim:#5d5b56;
  --ease:cubic-bezier(.16,1,.3,1);
  --pad:clamp(14px,1.8vw,28px);
  --mono:'JetBrains Mono',ui-monospace,monospace;
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{background:var(--bg);color:var(--tx);font-family:'Archivo',system-ui,sans-serif;font-variation-settings:'wdth' 100;font-size:14px;line-height:1.45;-webkit-font-smoothing:antialiased;overflow:hidden}
body.page{overflow:auto}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
::selection{background:var(--tx);color:var(--bg)}
:focus-visible{outline:1px solid var(--tx);outline-offset:2px}

/* type voices */
.cond{font-variation-settings:'wdth' 62;font-weight:800;text-transform:uppercase;letter-spacing:-.01em;line-height:.86}
.cap{font-variation-settings:'wdth' 75;font-weight:600;text-transform:uppercase;letter-spacing:.04em;font-size:11px;line-height:1.2}
.mono{font-family:var(--mono);font-size:11px;letter-spacing:0;text-transform:uppercase}
.mute{color:var(--mute)}

/* ---------- grain + vignette ---------- */
.grain{position:fixed;inset:0;z-index:900;pointer-events:none;opacity:.055;background-size:220px 220px;mix-blend-mode:screen}
.vignette{position:fixed;inset:0;z-index:899;pointer-events:none;background:radial-gradient(120% 90% at 50% 50%,transparent 55%,rgba(0,0,0,.55) 100%)}

/* ---------- blocks (UI chips) ---------- */
.blk{display:inline-flex;align-items:center;gap:8px;height:34px;padding:0 13px;background:var(--blk);transition:background .25s,color .25s}
@media (hover:hover){ a.blk:hover,button.blk:hover{background:var(--blk2)} }
.blk.on{background:var(--tx);color:var(--bg)}
.blk.sq{width:34px;padding:0;justify-content:center}
.blks{display:flex;gap:2px}

/* crop marks (signature) */
.crop{position:relative}
.crop::before,.crop::after,.crop > .cm::before,.crop > .cm::after{content:'';position:absolute;width:12px;height:12px;border-color:var(--tx);border-style:solid;opacity:0;transition:opacity .25s,transform .45s var(--ease);pointer-events:none}
.crop::before{left:-9px;top:-9px;border-width:1px 0 0 1px;transform:translate(-6px,-6px)}
.crop::after{right:-9px;top:-9px;border-width:1px 1px 0 0;transform:translate(6px,-6px)}
.crop > .cm::before{left:-9px;bottom:-9px;border-width:0 0 1px 1px;transform:translate(-6px,6px)}
.crop > .cm::after{right:-9px;bottom:-9px;border-width:0 1px 1px 0;transform:translate(6px,6px)}
.crop.hot::before,.crop.hot::after,.crop.hot > .cm::before,.crop.hot > .cm::after{opacity:1;transform:none}

/* ---------- header ---------- */
.top{position:fixed;inset:0 0 auto 0;z-index:200;display:grid;grid-template-columns:1fr auto 1fr;align-items:start;padding:var(--pad)}
.id{display:flex;gap:0;align-items:stretch;background:var(--blk);align-self:start;justify-self:start}
.id .cap{display:flex;flex-direction:column;justify-content:center;padding:0 14px 0 12px}
.mark{width:34px;height:34px;background:var(--tx);color:var(--bg);display:grid;place-items:center}
.mark svg{width:22px;height:22px}
.id .cap{line-height:1.35}
@media (hover:hover){ .id:hover{background:var(--blk2)} }
.id .cap span{display:block;color:var(--mute)}
.top .right{display:flex;justify-content:flex-end;gap:2px}
.lang button{height:34px;width:34px;background:var(--blk);font-family:var(--mono);font-size:10px;color:var(--mute);transition:background .25s,color .25s}
@media (hover:hover){ .lang button:hover{color:var(--tx)} }
.lang button[aria-pressed="true"]{background:var(--blk2);color:var(--tx)}

/* ---------- light table (home) ---------- */
.table{position:fixed;inset:0;overflow:hidden;cursor:grab;touch-action:none}
.table.drag{cursor:grabbing}
.tile{position:absolute;left:0;top:0;will-change:transform}
.tile .in{width:100%;height:100%;overflow:hidden;background:var(--bg2);transition:transform .5s var(--ease)}
.tile img{width:100%;height:100%;object-fit:cover;filter:grayscale(1) brightness(.78) contrast(1.05);transition:filter .5s var(--ease),opacity .8s var(--ease);opacity:0;pointer-events:none;-webkit-user-drag:none;user-select:none}
.tile img.ok{opacity:1}
.tile.hot img{filter:none}
.tile .no{position:absolute;left:8px;top:7px;z-index:2;opacity:0;transition:opacity .25s;mix-blend-mode:difference;color:#fff}
.tile.hot .no{opacity:1}
.tile.dim img{filter:grayscale(1) brightness(.35)}

/* HUD */
.hud{position:fixed;left:50%;bottom:var(--pad);transform:translateX(-50%);z-index:200;display:flex;gap:2px}
.hud .blk{height:40px}
.hud .name{min-width:180px;justify-content:center;overflow:hidden}
.roller{display:inline-flex;flex-direction:column;height:14px;overflow:hidden}
.roller span{display:block;line-height:14px;transition:transform .45s var(--ease)}
.corner{position:fixed;bottom:var(--pad);z-index:200;display:flex;gap:2px}
.corner.l{left:var(--pad)} .corner.r{right:var(--pad)}
.coords{font-variant-numeric:tabular-nums;min-width:150px}

/* intro */
.intro{position:fixed;inset:0;z-index:800;background:var(--bg);display:grid;place-items:center;transition:opacity .8s var(--ease),visibility .8s}
.intro.done{opacity:0;visibility:hidden}
.intro .wrap{display:flex;flex-direction:column;align-items:center;gap:18px}
.intro .mark{width:56px;height:56px}
.intro .mark svg{width:36px;height:36px}
.intro .bar{width:160px;height:1px;background:var(--line);overflow:hidden}
.intro .bar i{display:block;height:100%;background:var(--tx);transform-origin:left;transform:scaleX(0)}

/* overlays: index + about */
.sheet{position:fixed;inset:0;z-index:150;background:rgba(20,20,19,.94);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);overflow:auto;opacity:0;visibility:hidden;transition:opacity .5s var(--ease),visibility .5s}
.sheet.on{opacity:1;visibility:visible}
.sheet .inner{padding:110px var(--pad) 120px}
.idx{display:grid;grid-template-columns:1fr minmax(240px,28vw);gap:var(--pad)}
.rows a{display:grid;grid-template-columns:56px 1fr auto auto;gap:18px;align-items:baseline;padding:6px 0;border-top:1px solid var(--line);color:var(--mute);transition:color .2s}
.rows a:last-child{border-bottom:1px solid var(--line)}
.rows a .t{font-size:clamp(40px,6.4vw,104px);color:var(--dim);transition:color .2s}
@media (hover:hover){ .rows a:hover,.rows a:hover .t{color:var(--tx)} }
.rows a .new{background:var(--tx);color:var(--bg);padding:2px 5px}
.idx .pv{position:sticky;top:110px;aspect-ratio:4/5;background:var(--bg2);overflow:hidden}
.idx .pv img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .35s}
.idx .pv img.on{opacity:1}
.sheet .reveal{opacity:0;transform:translateY(24px);transition:opacity .8s var(--ease),transform .8s var(--ease)}
.sheet.on .reveal{opacity:1;transform:none}
.about .big{font-size:clamp(40px,6vw,104px);max-width:24ch}
.about .cols{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--pad);margin-top:80px}
.about h4{margin-bottom:14px}
.about li{list-style:none;display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-top:1px solid var(--line);font-size:13px}
.about li span:last-child{color:var(--mute);text-align:right}
.about .logos{display:flex;flex-wrap:wrap;gap:28px 40px;align-items:center;margin-top:80px;padding-top:28px;border-top:1px solid var(--line)}
.about .logos img{height:22px;width:auto;filter:brightness(0) invert(1);opacity:.45}

/* ---------- case page ---------- */
.case{display:grid;grid-template-columns:minmax(280px,29vw) 1fr 64px;gap:var(--pad);padding:96px var(--pad) var(--pad);min-height:100vh}
.c-info{position:sticky;top:96px;height:calc(100vh - 96px - var(--pad));display:flex;flex-direction:column;justify-content:space-between;overflow:auto}
.c-info h1{font-size:clamp(56px,7vw,124px);margin:10px 0 18px;word-break:break-word}
.c-info .hook{font-size:15px;line-height:1.5;color:#cfccc5;max-width:38ch}
.c-meta{margin-top:28px}
.c-meta div{display:grid;grid-template-columns:110px 1fr;gap:10px;padding:10px 0;border-top:1px solid var(--line);font-size:13px}
.c-meta dt{color:var(--mute)}
.c-body{display:flex;flex-direction:column;gap:12px;min-width:0}
.c-body .fig{background:var(--bg2);overflow:hidden}
.c-body .fig img{width:100%;height:auto;opacity:0;transform:scale(1.02);transition:opacity 1s var(--ease),transform 1.4s var(--ease)}
.c-body .fig.in img{opacity:1;transform:none}
.c-body .row2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.c-body .q{font-size:clamp(36px,4.6vw,80px);padding:clamp(48px,9vh,110px) 0;max-width:18ch}
.c-body .tx{display:grid;grid-template-columns:140px 1fr;gap:var(--pad);padding:clamp(28px,5vh,60px) 0;border-top:1px solid var(--line)}
.c-body .tx p{font-size:16px;line-height:1.65;color:#cfccc5;max-width:62ch}
.c-body .tx a{display:inline-block;margin-top:12px;border-bottom:1px solid var(--mute)}
.rail{position:sticky;top:96px;height:calc(100vh - 96px - var(--pad));display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end}
.ticks{display:flex;flex-direction:column;gap:4px}
.ticks button{font-family:var(--mono);font-size:10px;width:34px;height:22px;background:var(--blk);color:var(--dim);transition:background .2s,color .2s}
@media (hover:hover){ .ticks button:hover{color:var(--tx)} }
.ticks button.on{background:var(--tx);color:var(--bg)}
.nextcase{grid-column:2;display:block;margin-top:60px;padding-top:18px;border-top:1px solid var(--line)}
.nextcase .t{font-size:clamp(64px,10vw,180px);color:var(--dim);transition:color .3s}
@media (hover:hover){ .nextcase:hover .t{color:var(--tx)} }

/* page curtain */
.curtain{position:fixed;inset:0;z-index:850;background:var(--bg);pointer-events:none;opacity:0;transition:opacity .45s ease}
.curtain.cover{opacity:1;transition:none}
.curtain.enter{opacity:1}

/* language swap */
[data-t],.tx-l{transition:opacity .2s,filter .2s}
body.lang-out [data-t],body.lang-out .tx-l{opacity:0;filter:blur(4px)}

@media (max-width:900px){
  .top{grid-template-columns:1fr auto}
  .top nav{display:none}
  .id .cap span{display:none}
  .corner{display:none}
  .hud .name{min-width:120px}
  .idx{grid-template-columns:1fr}
  .idx .pv{display:none}
  .rows a{grid-template-columns:36px 1fr}
  .rows a .mono:nth-child(3),.rows a .mono:nth-child(4){display:none}
  .about .cols{grid-template-columns:1fr}
  .case{grid-template-columns:1fr;padding-top:80px}
  .c-info{position:static;height:auto}
  .rail{display:none}
  .c-body .row2{grid-template-columns:1fr}
  .c-body .tx{grid-template-columns:1fr}
  .nextcase{grid-column:1}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition-duration:.01ms!important;animation:none!important}
}

/* ==========================================================================
   Sidebar layout: profile on the left, light table on the right
   ========================================================================== */
:root{ --side:clamp(300px,25vw,380px) }

/* language buttons with flags */
.lang button{width:auto;padding:0 10px;display:inline-flex;align-items:center;gap:7px}
.lang .flag{display:inline-block;width:16px;height:11px;flex:none;line-height:0;filter:grayscale(1) contrast(1.1);opacity:.7;transition:opacity .25s,filter .3s}
.lang .flag svg{width:100%;height:100%}
@media (hover:hover){ .lang button:hover .flag{opacity:1;filter:none} }
.lang button[aria-pressed="true"] .flag{opacity:1}

/* sidebar */
.side{position:fixed;left:0;top:0;bottom:0;width:var(--side);z-index:220;background:var(--bg);border-right:1px solid var(--line);display:flex;flex-direction:column;justify-content:space-between;gap:2.4vh;padding:var(--pad);overflow:hidden}
.side .id{align-self:flex-start}
.side .who{display:flex;flex-direction:column;gap:clamp(10px,1.9vh,18px);min-height:0}
.side .who h1{font-size:clamp(40px,min(4.6vw,8.2vh),76px);margin-top:clamp(8px,2vh,24px)}
.side .who .lead{font-size:clamp(13px,1.75vh,15px);line-height:1.5;color:#d8d5ce;max-width:34ch}
.side .who .now{font-size:clamp(12px,1.5vh,13px);line-height:1.5;color:var(--mute);max-width:34ch}
.side .tags{display:flex;flex-wrap:wrap;gap:2px}
.side .tags span{height:24px;display:inline-flex;align-items:center;padding:0 8px;background:var(--blk);font-size:10px}
.side .acts{display:flex;flex-wrap:wrap;gap:2px}
.side .see{display:none}
.side .foot{display:flex;flex-direction:column;gap:12px;padding-top:18px;border-top:1px solid var(--line)}
.side .clients{display:grid;grid-template-columns:repeat(4,1fr);gap:2px}
.side .clients div{aspect-ratio:2/1;background:var(--bg2);display:grid;place-items:center;padding:18% 20%;overflow:hidden}
.side .clients img{max-height:100%;max-width:100%;width:auto;filter:brightness(0) invert(1);opacity:.5;transition:opacity .25s}
@media (hover:hover){ .side .clients div:hover img{opacity:.95} }

/* everything else lives to the right of the sidebar */
body.has-side .top{left:var(--side)}
body.has-side .table{left:var(--side)}
body.has-side .sheet{left:var(--side)}
body.has-side .hud{left:calc(var(--side) + (100vw - var(--side)) / 2)}
body.has-side .corner.l{left:calc(var(--side) + var(--pad))}
body.has-side .top{grid-template-columns:auto 1fr auto}
body.has-side .top .back{visibility:hidden}

/* mobile: profile first, projects behind a button */
@media (max-width:900px){
  .side{position:relative;width:auto;min-height:100svh;border-right:0}
  .side .see{display:flex;justify-content:center;height:48px;width:100%}
  .side .id .cap{display:none}
  .side .clients{grid-template-columns:repeat(4,1fr)}
  body.has-side{overflow:auto}
  body.has-side .table,body.has-side .top,body.has-side .hud,body.has-side .sheet{display:none}
  body.has-side.show-table{overflow:hidden}
  body.has-side.show-table .side{display:none}
  body.has-side.show-table .table,body.has-side.show-table .top,body.has-side.show-table .hud{display:block}
  body.has-side.show-table .top{display:grid;left:0}
  body.has-side.show-table .hud{display:flex;left:50%}
  body.has-side.show-table .table{left:0}
  body.has-side.show-table .sheet{display:block;left:0}
  body.has-side .top .back{visibility:visible}
  body.has-side .top nav{display:flex}
  body.has-side .top nav [data-view="about"]{display:none}
  body.has-side .top .right .contact{display:none}
  .lang button{padding:0 8px}
}

/* clients: thin ticker of logos instead of a grid */
.side .foot{gap:10px}
.ticker{overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent,#000 14%,#000 86%,transparent);mask-image:linear-gradient(90deg,transparent,#000 14%,#000 86%,transparent)}
.ticker .track{display:flex;align-items:center;gap:34px;width:max-content;animation:tick 38s linear infinite}
.ticker img{height:18px;width:auto;max-width:96px;object-fit:contain;filter:brightness(0) invert(1);opacity:.42}
@media (hover:hover){ .ticker:hover .track{animation-play-state:paused} }
@keyframes tick{to{transform:translateX(-50%)}}
.lang-m{display:none}
/* short screens: drop secondary lines so the sidebar never scrolls */
@media (min-width:901px) and (max-height:820px){ .side .who .now{display:none} }
@media (min-width:901px) and (max-height:700px){ .side .tags{display:none} }
@media (max-width:900px){
  .side{overflow:visible}
  .lang-m{display:flex;position:absolute;top:var(--pad);right:var(--pad);z-index:2}
  .lang-m button{padding:0 8px}
  body.has-side .top .right .lang{display:none}
}

/* dot grid on the light table (moves with the pan) */
.table{background-color:var(--bg);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='52'%3E%3Crect x='25' y='25' width='2' height='2' fill='%23ffffff' fill-opacity='.16'/%3E%3C/svg%3E");background-size:52px 52px}

/* ==========================================================================
   Case animations (all projects) + identity blocks (logo, palette, elements…)
   ========================================================================== */
.c-body .fig{position:relative;clip-path:inset(100% 0 0 0);transition:clip-path 1.2s var(--ease)}
.c-body .fig.in{clip-path:inset(0 0 0 0)}
.c-body .fig img{opacity:1;transform:translate3d(0,var(--py,0px),0) scale(1.08);transition:none;will-change:transform}
.c-body .fig.in img{opacity:1}
.c-body .tx,.c-body .pillars{opacity:0;transform:translateY(28px);transition:opacity 1s var(--ease),transform 1s var(--ease)}
.c-body .tx.in,.c-body .pillars.in{opacity:1;transform:none}
.c-body .q .w{display:inline-block;opacity:.12;transform:translateY(.25em);transition:opacity .6s var(--ease),transform .6s var(--ease)}
.c-body .q.in .w{opacity:1;transform:none}

/* logo block */
.b-logo{position:relative;aspect-ratio:16/9;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4%;overflow:hidden}
.b-logo svg{width:48%;height:auto;overflow:visible}
.b-logo svg .pa{transform-box:fill-box;transform:translateY(60%);opacity:0;transition:transform 1s var(--ease),opacity .6s var(--ease)}
.b-logo.mono svg path{fill:#fff}
.b-logo.in svg .pa{transform:none;opacity:1}
.b-logo .tag{font-size:clamp(14px,1.6vw,22px);color:#fff;min-height:1.4em;font-variation-settings:'wdth' 75;font-weight:700;text-transform:uppercase;letter-spacing:.03em}
.b-logo .tag::after{content:'';display:inline-block;width:.5em;height:1em;margin-left:.1em;vertical-align:-.12em;background:#fff;animation:caret 1s steps(1) infinite}
@keyframes caret{50%{opacity:0}}
.b-logo .meta{position:absolute;left:16px;bottom:14px;color:#fff;opacity:.7}

/* palette */
.b-pal{display:flex;height:clamp(260px,32vw,440px);gap:2px}
.b-pal .sw{flex:0 0 0;position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;padding:14px;transition:flex 1s var(--ease)}
.b-pal.in .sw{flex:1 1 0}
@media (hover:hover){ .b-pal.in .sw:hover{flex:2.4 1 0} }
.b-pal .sw .v{display:flex;flex-direction:column;gap:3px;font-family:var(--mono);font-size:10px;white-space:nowrap;opacity:0;transform:translateY(8px);transition:opacity .4s,transform .5s var(--ease)}
.b-pal .sw .v b{font-size:13px;font-weight:400}
.b-pal.in .sw .v{opacity:.95;transform:none}

/* elements */
.b-els{display:grid;grid-template-columns:repeat(5,1fr);gap:2px}
.b-els .el{aspect-ratio:336/243;overflow:hidden;background:var(--bg2)}
.b-els .el img{width:100%;height:100%;object-fit:cover;opacity:0;transform:scale(.86);transition:opacity .6s var(--ease),transform .8s var(--ease)}
.b-els.in .el img{opacity:1;transform:none}
.b-els .el img.swap{opacity:0;transform:scale(.92)}

/* pillars */
.pillars{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--pad);padding:clamp(28px,5vh,60px) 0}
.pillars .pl{position:relative;padding-top:18px}
.pillars .pl::before{content:'';position:absolute;left:0;right:0;top:0;height:1px;background:var(--tx);transform:scaleX(0);transform-origin:left;transition:transform 1.2s var(--ease)}
.pillars.in .pl::before{transform:none}
.pillars .pl:nth-child(2)::before{transition-delay:.15s} .pillars .pl:nth-child(3)::before{transition-delay:.3s}
.pillars .n{font-family:var(--mono);font-size:11px;color:var(--mute)}
.pillars h4{font-size:clamp(34px,3.6vw,60px);margin:10px 0 12px}
.pillars p{font-size:14px;line-height:1.55;color:#cfccc5;max-width:30ch}

/* marquee */
.b-mq{overflow:hidden;padding:clamp(28px,5vh,56px) 0;background:var(--bg2)}
.b-mq .track{display:flex;width:max-content;white-space:nowrap;will-change:transform}
.b-mq span{font-size:clamp(64px,9vw,160px);padding-right:.5em}

@media (max-width:900px){ .pillars{grid-template-columns:1fr} .b-els{grid-template-columns:repeat(3,1fr)} .b-pal{height:auto;flex-direction:column} .b-pal .sw{min-height:70px} }
@media (prefers-reduced-motion:reduce){
  .c-body .fig{clip-path:none} .c-body .fig img{transform:none}
  .b-logo svg .pa,.b-els .el img,.c-body .q .w{opacity:1;transform:none}
}

/* HUD name: immediate swap */
.roller span.in{animation:hudIn .22s var(--ease)}
@keyframes hudIn{from{transform:translateY(70%);opacity:0}to{transform:none;opacity:1}}

/* case images: one width for everything; pairs share it, same height */
.c-body .one,.c-body .pair{width:100%}
.c-body .pair{display:flex;gap:12px}
.c-body .pair .fig{flex:var(--r,1) 1 0;min-width:0}
.c-body .pair .fig img{width:100%;height:auto}
@media (max-width:900px){ .c-body .pair{flex-direction:column} .c-body .pair .fig{flex:none;width:100%} }

/* logo versions */
.b-ver{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.b-ver .vt{position:relative;aspect-ratio:16/10;display:grid;place-items:center;clip-path:inset(0 0 100% 0);transition:clip-path 1s var(--ease)}
.b-ver.in .vt{clip-path:inset(0 0 0 0)}
.b-ver .lg{width:52%;opacity:0;transform:translateY(24px);transition:opacity .8s var(--ease),transform 1s var(--ease)}
.b-ver.in .lg{opacity:1;transform:none}
.b-ver .lg svg{width:100%;height:auto;display:block}
.b-ver .vt .mono{position:absolute;left:12px;bottom:10px;opacity:.6}
@media (max-width:900px){ .b-ver{grid-template-columns:1fr} }

/* ---------- transitions (simple): fade out on leave, fade in on arrival ---------- */
.curtain,.tlayer{display:none}
body{transition:opacity .32s ease}
html.leaving body{opacity:0}
html.entering body{opacity:0;transition:none}
.c-info > div > *{transition:opacity .8s cubic-bezier(.16,1,.3,1),transform .8s cubic-bezier(.16,1,.3,1)}
html.entering .c-info > div > *{opacity:0;transform:translateY(18px)}
.c-info > div > :nth-child(2){transition-delay:.05s} .c-info > div > :nth-child(3){transition-delay:.1s} .c-info > div > :nth-child(4){transition-delay:.15s}

/* image reveal: the piece rolls up into its frame, and rolls back out when it leaves (and on page exit) */
.c-body .fig{clip-path:none!important;position:relative;overflow:hidden;background:transparent}
.c-body .fig img{opacity:1;transform:translate3d(0,101%,0);transition:transform .9s cubic-bezier(.65,0,.2,1);will-change:transform}
.c-body .fig.past img{transform:translate3d(0,-101%,0)}
.c-body .fig.in img{transform:none}
.c-body .pair .fig:nth-child(2) img{transition-delay:.07s} .c-body .pair .fig:nth-child(3) img{transition-delay:.14s} .c-body .pair .fig:nth-child(4) img{transition-delay:.21s}
html.leaving .c-body .fig.in img{transform:translate3d(0,-101%,0);transition-duration:.45s;transition-delay:0s}
@media (prefers-reduced-motion:reduce){ .c-body .fig img{transform:none!important;transition:none} }

/* contact button: the brightest thing on screen */
.top .right .contact,.side .acts .wa{background:var(--tx);color:var(--bg)}
@media (hover:hover){ .top .right .contact:hover,.side .acts .wa:hover{background:#fff} }

/* mobile opening: reel of work behind the profile */
.reel{display:none}
@media (max-width:900px){
  .side{padding-top:0}
  .reel{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;height:46svh;margin:0 calc(var(--pad) * -1) 6px;overflow:hidden;position:relative;-webkit-mask-image:linear-gradient(#000 55%,transparent);mask-image:linear-gradient(#000 55%,transparent)}
  .reel .col{display:flex;flex-direction:column;gap:8px;animation:reelUp 38s linear infinite}
  .reel .col:nth-child(2){animation-name:reelDown;animation-duration:44s}
  .reel .col:nth-child(3){animation-duration:50s}
  .reel img{width:100%;height:auto;display:block;filter:grayscale(1) brightness(.8)}
  .side .id{position:absolute;top:var(--pad);left:var(--pad);z-index:3}
  .side .who h1{margin-top:0}
}
@keyframes reelUp{from{transform:translateY(0)}to{transform:translateY(-50%)}}
@keyframes reelDown{from{transform:translateY(-50%)}to{transform:translateY(0)}}

/* ---------- logo cases: hero modes, mask versions, scale, avatars ---------- */
.b-logo .svg{width:var(--w,48%)!important}
.b-logo .svg svg,.b-logo .svg img{width:100%;height:auto;display:block}
.b-logo.mono svg path{fill:#fff}
.b-logo:not(.mono) svg .pa{transform:translateY(40%)}
.b-logo.ripple svg .pa{transform-box:view-box;transform-origin:50% 50%;transform:scale(.72)}
.b-logo.in svg .pa{transform:none!important;opacity:1}
.b-logo .meta{color:currentColor}
.b-logo:not(.mono){color:#141413}
.b-logo.reveal .svg img{clip-path:inset(0 100% 0 0);transform:scale(1.04);transition:clip-path 1.2s cubic-bezier(.16,1,.3,1),transform 1.4s cubic-bezier(.16,1,.3,1)}
.b-logo.reveal.in .svg img{clip-path:inset(0 0 0 0);transform:none}
.b-ver .lg{width:52%;aspect-ratio:var(--ar,3/1);display:block}
.b-ver img.lg{height:auto;aspect-ratio:auto;object-fit:contain}
.b-ver .mk{-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;aspect-ratio:var(--ar,1)}
.b-scale{display:grid;grid-template-columns:2.2fr 1.4fr 1fr .7fr;align-items:end;gap:28px;padding:clamp(28px,5vw,64px)}
.b-scale .sc{display:flex;flex-direction:column;align-items:center;gap:14px}
.b-scale img{height:auto;opacity:0;transform:translateY(16px);transition:opacity .8s cubic-bezier(.16,1,.3,1),transform .9s cubic-bezier(.16,1,.3,1)}
.b-scale.in img{opacity:1;transform:none}
.b-scale .mono{color:#8c8a84}
.b-ava{display:flex;justify-content:center;gap:clamp(16px,3vw,40px);padding:clamp(36px,6vw,80px)}
.b-ava .av{width:clamp(90px,14vw,180px);aspect-ratio:1;border-radius:50%;display:grid;place-items:center;transform:scale(.6);opacity:0;transition:transform .8s cubic-bezier(.16,1,.3,1),opacity .6s}
.b-ava.in .av{transform:none;opacity:1}
.b-ava .av img,.b-ava .av .mk{width:64%;height:64%;object-fit:contain}
.b-ava .av .mk{-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center}
@media (max-width:900px){ .b-scale{grid-template-columns:1fr 1fr} }

/* mobile: "see projects" at the top of the profile */
@media (max-width:900px){
  .side .see{position:absolute;top:calc(46svh * .42);left:50%;right:auto;transform:translate(-50%,-50%);width:max-content;padding:0 30px;height:52px;z-index:4;box-shadow:0 14px 40px rgba(0,0,0,.5)}
  .reel{padding-top:0}
}

#title .wd{display:inline-block;white-space:nowrap}

/* nudge over the light table: drag / scroll notice */
.nudge{position:fixed;z-index:60;top:50%;left:50%;transform:translate(-50%,-50%) scale(.96);display:flex;align-items:center;gap:18px;padding:16px 22px 16px 16px;background:var(--tx);color:var(--bg);pointer-events:none;opacity:0;transition:opacity .5s ease,transform .5s cubic-bezier(.16,1,.3,1);box-shadow:0 20px 60px rgba(0,0,0,.55)}
body.has-side .nudge{left:calc(var(--side) + (100vw - var(--side)) / 2)}
.nudge.on{opacity:1;transform:translate(-50%,-50%) scale(1)}
.nudge.gone{opacity:0;transform:translate(-50%,-50%) scale(.96)}
.nudge .pad{position:relative;width:58px;height:58px;flex:none;border:1px solid rgba(0,0,0,.18)}
.nudge .ar{position:absolute;font:600 11px/1 var(--mono,monospace);opacity:.45}
.nudge .ar.u{top:3px;left:50%;transform:translateX(-50%)} .nudge .ar.d{bottom:3px;left:50%;transform:translateX(-50%)}
.nudge .ar.l{left:4px;top:50%;transform:translateY(-50%)} .nudge .ar.r{right:4px;top:50%;transform:translateY(-50%)}
.nudge .dot{position:absolute;left:50%;top:50%;width:12px;height:12px;margin:-6px 0 0 -6px;background:var(--bg);animation:nudgeDot 2.8s cubic-bezier(.65,0,.35,1) infinite}
@keyframes nudgeDot{0%,100%{transform:translate(0,0)}20%{transform:translate(-14px,0)}40%{transform:translate(14px,0)}60%{transform:translate(0,-14px)}80%{transform:translate(0,14px)}}
.nudge .tx{display:flex;flex-direction:column;gap:6px}
.nudge .tx .cap{font-size:15px;letter-spacing:.02em}
.nudge .tx .mute{color:rgba(0,0,0,.6);font-size:11px}
.nudge .mob{display:none}
@media (max-width:900px){
  .nudge{display:none}
  body.has-side.show-table .nudge{display:flex;left:50%;width:max-content;max-width:calc(100vw - 32px)}
  .nudge .dsk{display:none} .nudge .mob{display:block}
}
@media (prefers-reduced-motion:reduce){ .nudge .dot{animation:none} }

/* white background behind transparent pieces (Banco Inter) */
.c-body.white-bg .fig img{background:#fff}

/* index: one tidy line per project (no wrapping titles or columns) */
.idx{grid-template-columns:minmax(0,1fr) minmax(220px,22vw)}
.rows a{grid-template-columns:34px minmax(0,1fr) minmax(110px,170px) 92px;gap:16px;align-items:center;padding:10px 0}
.rows a .t{font-size:clamp(24px,2.7vw,46px);line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rows a > .mono{white-space:nowrap}
.rows a .ty{overflow:hidden;text-overflow:ellipsis}
.rows a > .mono:last-child{text-align:right}
@media (max-width:900px){
  .rows a{grid-template-columns:30px minmax(0,1fr) auto}
  .rows a .t{font-size:clamp(24px,8vw,40px)}
  .rows a > .mono:nth-child(4){display:block}
  .rows a .ty{display:none}
}

/* polish: no grey tap flash (tiles and buttons draw their own pressed state) */
a,button,.tile,.table{-webkit-tap-highlight-color:transparent}
/* polish: scrolling inside the sheets and the case info column never chains to the page behind */
.sheet,.c-info{overscroll-behavior:contain}
/* polish: hairline edge on content images so pale pieces don't melt into the dark background */
.c-body .fig img,.tile img,.idx .pv img{outline:1px solid oklch(1 0 0 / 0.1);outline-offset:-1px}

/* WhatsApp contact buttons in WhatsApp green */
.top .right .contact,.side .acts .wa{background:#25d366;color:#05210f}
@media (hover:hover){
  .top .right .contact:hover,.side .acts .wa:hover{background:#3ee07a}
}

/* mobile: no loader (the reel is the opening), and a "see projects" button that asks to be tapped */
@media (max-width:900px){
  .intro{display:none}
  .side .see{height:60px;padding:0 22px 0 26px;gap:14px;align-items:center;font-size:14px;letter-spacing:.06em;background:var(--tx);color:var(--bg);box-shadow:0 18px 50px rgba(0,0,0,.6);animation:seePulse 2.4s cubic-bezier(.4,0,.2,1) infinite}
  .side .see .ar{display:inline-block;font-size:18px;animation:seeArrow 1.2s ease-in-out infinite}
}
@keyframes seePulse{0%{box-shadow:0 18px 50px rgba(0,0,0,.6),0 0 0 0 rgba(236,234,228,.55)}70%{box-shadow:0 18px 50px rgba(0,0,0,.6),0 0 0 16px rgba(236,234,228,0)}100%{box-shadow:0 18px 50px rgba(0,0,0,.6),0 0 0 0 rgba(236,234,228,0)}}
@keyframes seeArrow{0%,100%{transform:translateX(0)}50%{transform:translateX(5px)}}
@media (prefers-reduced-motion:reduce){ .side .see,.side .see .ar{animation:none} }

/* mobile: name on a single, larger line */
@media (max-width:900px){
  .side .who h1{font-size:clamp(34px,12.4vw,68px);white-space:nowrap;line-height:.95}
  .side .who h1 br{display:none}
  .side .who h1::after{content:none}
}

/* mobile header: logo and flags on one aligned row (the empty middle cell made the right side wrap) */
@media (max-width:900px){
  .top{align-items:center}
  .top > span:empty{display:none}
  body.page .top .id .cap{display:none}
  .top .right,.lang-m{align-items:center}
  .id,.lang button,.blk.sq{height:34px}
}

/* mobile index: a single list, no preview column */
@media (max-width:900px){
  .idx{grid-template-columns:1fr}
  .idx .pv{display:none}
}
@media (max-width:900px){ .rows a .new{display:none} }
