@font-face { font-family: 'ArchivoX'; src: url('/fonts/ArchivoExp.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/Inter-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/Inter-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/Inter-SemiBold.woff2') format('woff2'); font-weight: 600 700; font-display: swap; }
@font-face { font-family: 'IDisp'; src: url('/fonts/InterDisplay-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'IDisp'; src: url('/fonts/InterDisplay-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --paper: #F4F2ED; --panel: #E7E3DA; --alt: #ECE9E2; --ink: #111110; --ink2: #3A3934; --mute: #6E6B64; --line: #D3CEC4; --acc: #2350F0;
  --navbg: rgba(244,242,237,.86); --dark: #111110; --onDark: #F4F2ED; --shadow: rgba(0,0,0,.12); --outline: #8F8B82;
  color-scheme: light;
  --pad: clamp(20px, 4.4vw, 64px);
  --disp: 'IDisp', 'Inter', system-ui, sans-serif;
}
[data-theme="dark"] {
  --paper: #121211; --panel: #1C1C1A; --alt: #171716; --ink: #EEEBE4; --ink2: #BDB9B0; --mute: #8D897F; --line: #2D2C29; --acc: #6F8CFF;
  --navbg: rgba(18,18,17,.82); --dark: #0A0A09; --onDark: #F4F2ED; --shadow: rgba(0,0,0,.45); --outline: #CFCBC1;
  color-scheme: dark;
}
html { transition: background-color .3s; }
body { transition: background-color .3s, color .3s; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--disp); font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }

.eyebrow { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--acc); font-weight: 600; margin-bottom: 12px; }

/* pills */
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border: 1.5px solid var(--ink); border-radius: 100px; font-size: 14.5px; font-weight: 600; background: var(--ink); color: var(--paper); transition: transform .2s, background .2s, color .2s; white-space: nowrap; }
.pill .arr { color: var(--acc); }
.pill:hover { transform: translateY(-2px); }
.pill.ghost { background: transparent; color: var(--ink); }
.pill.ghost:hover { background: var(--ink); color: var(--paper); }
.pill.sm { padding: 7px 14px; font-size: 13px; }
.pill.light { background: var(--onDark); color: #111110; border-color: var(--onDark); }
.pill.ghost.light { background: transparent; color: var(--onDark); }
.pill.ghost.light:hover { background: var(--onDark); color: #111110; }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 32px; padding: 14px var(--pad); background: var(--navbg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--disp); font-weight: 600; font-size: 18px; letter-spacing: -0.03em; }
.brand svg { width: 40px; height: 40px; margin: -6px 0; }
.brand .bt { padding-left: 12px; border-left: 1px solid var(--line); }
.brand:hover svg { color: var(--acc); }
.nav nav { display: flex; gap: 26px; margin-left: auto; font-size: 14.5px; font-weight: 500; }
.nav nav a { color: var(--ink2); position: relative; }
.nav nav a:hover, .nav nav a.on { color: var(--ink); }
.nav nav a.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--acc); }
.menu { display: none; width: 36px; height: 36px; flex-direction: column; justify-content: center; gap: 6px; padding: 8px; }
.menu span { display: block; height: 2px; background: var(--ink); transition: transform .25s; }

/* hero */
.hero { background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); padding: 34px var(--pad) 72px; }
.hero-top { display: flex; justify-content: space-between; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; margin-top: 56px; }
.hero h1.name { font-family: 'ArchivoX', var(--disp); font-weight: 800; font-stretch: 125%; font-size: clamp(42px, 5.9vw, 98px); line-height: .94; letter-spacing: -0.025em; text-align: left; }
.hero h1.name .dot { color: var(--acc); }
.hero-txt p { margin-top: 28px; font-size: clamp(16px, 1.4vw, 19px); color: var(--ink2); max-width: 520px; }
.cloud { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 22px; padding: 10px 0; }
.w { font-family: var(--disp); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; color: var(--ink); transition: color .25s, -webkit-text-stroke-color .25s; animation: fl 7s ease-in-out var(--d) infinite, rise .9s cubic-bezier(.2,.7,.2,1) both; display: inline-block; }
.w.xl { font-size: clamp(40px, 4.6vw, 76px); }
.w.lg { font-size: clamp(32px, 3.5vw, 58px); }
.w.md { font-size: clamp(22px, 2.3vw, 38px); font-weight: 500; }
.w.sm { font-size: clamp(17px, 1.6vw, 26px); font-weight: 500; }
.w.acc { color: var(--acc); }
.w.mute { color: var(--mute); }
.w.out { color: transparent; -webkit-text-stroke: 1.4px var(--outline); }
.w:hover { color: var(--acc); -webkit-text-stroke-color: var(--acc); }
.w.out:hover { color: transparent; }
@keyframes fl { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* sections */
.section { padding: clamp(64px, 9vw, 128px) var(--pad); }
.section.alt { background: var(--alt); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding-bottom: 24px; border-bottom: 1.5px solid var(--ink); margin-bottom: 28px; }
.sec-head h2 { font-size: clamp(44px, 6vw, 88px); }
.sec-head p { max-width: 380px; color: var(--mute); font-size: 15.5px; }

/* filter + index */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { padding: 8px 15px; border-radius: 100px; border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; color: var(--ink2); transition: .2s; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.index { list-style: none; columns: 3; column-gap: 40px; margin-bottom: clamp(48px, 7vw, 96px); }
.index li { break-inside: avoid; border-bottom: 1px solid var(--line); }
.index a { display: grid; grid-template-columns: 34px 1fr auto; gap: 8px; align-items: baseline; padding: 12px 0; transition: padding .2s; }
.index a:hover { padding-left: 6px; }
.index a:hover .t { color: var(--acc); }
.index .n { font-size: 12px; color: var(--acc); font-weight: 600; font-variant-numeric: tabular-nums; }
.index .t { font-weight: 500; font-size: 15.5px; }
.index .c { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.index li.hide { opacity: .25; }

/* projects */
.project { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: clamp(28px, 4vw, 56px); padding: clamp(40px, 5vw, 72px) 0; border-top: 1px solid var(--line); }
.project.hide { display: none; }
.p-txt { position: sticky; top: 96px; align-self: start; }
.p-num { font-family: var(--disp); color: var(--mute); font-size: 15px; margin-bottom: 20px; font-variant-numeric: tabular-nums; }
.p-txt h3 { font-size: clamp(34px, 3.6vw, 52px); margin-bottom: 18px; }
.p-txt p { color: var(--ink2); font-size: 16px; line-height: 1.6; }
.meta { display: grid; grid-template-columns: 78px 1fr; row-gap: 6px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; }
.meta dt { color: var(--mute); }
.meta dd { font-weight: 500; }

.p-vis { background: var(--panel); padding: clamp(20px, 3vw, 44px); display: grid; gap: clamp(16px, 2vw, 28px); align-items: center; min-height: 320px; }
.p-vis.dark { background: #15151A; }
.p-vis.dark figcaption { color: #9A9AA3; }
.p-vis figure { min-width: 0; }
.p-vis figcaption { font-size: 12.5px; color: var(--mute); margin-top: 10px; text-align: center; }
.zoom { display: block; width: 100%; cursor: zoom-in; }
.zoom img { margin: 0 auto; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.zoom:hover img { transform: scale(1.015); }
.p-vis.one { grid-template-columns: 1fr; }
.p-vis.one img { max-height: 640px; object-fit: contain; }
.p-vis.tall img { max-height: 620px; }
.p-vis.two { grid-template-columns: 1fr 1fr; }
.p-vis.book { grid-template-columns: 2.1fr 1fr 1fr .5fr; }
.p-vis.poster { grid-template-columns: .72fr 1.6fr; }
.p-vis.grid4 { grid-template-columns: repeat(4, 1fr); }
.p-vis.grid4 img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.p-vis.cards { grid-template-columns: 1fr; justify-items: center; }
.p-vis.cards figure { max-width: 620px; width: 100%; }
.p-vis.cards img, .p-vis.grid4 img, .p-vis.poster img, .p-vis.two img, .p-vis.tipo img, .p-vis.newmedia img, .p-vis.tall img { box-shadow: 0 10px 28px var(--shadow); }
.p-vis.newmedia { grid-template-columns: .68fr 1.32fr; }
.p-vis.tipo { grid-template-columns: .62fr 1.38fr; }

/* apps */
.apps { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.app { background: var(--paper); border: 1px solid var(--line); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; }
.app-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.app-head img { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 6px 18px rgba(0,0,0,.14); }
.app-head h3 { font-size: 34px; }
.app-head .eyebrow { margin: 6px 0 0; color: var(--mute); }
.app > p { color: var(--ink2); font-size: 16px; line-height: 1.6; }
.feats { list-style: none; margin-top: 20px; border-top: 1px solid var(--line); }
.feats li { padding: 10px 0 10px 22px; border-bottom: 1px solid var(--line); font-size: 14.5px; position: relative; }
.feats li::before { content: ''; position: absolute; left: 2px; top: 18px; width: 8px; height: 8px; background: var(--acc); border-radius: 50%; }
.stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.stack span { font-size: 12px; padding: 4px 10px; border-radius: 6px; background: var(--panel); color: var(--ink2); font-weight: 500; }
.app .links { margin-top: auto; padding-top: 26px; }

/* videos */
.vlist { border-top: 0; }
.vrow { display: grid; grid-template-columns: 60px 1fr 180px 100px; align-items: baseline; padding: clamp(18px, 2.4vw, 30px) 4px; border-bottom: 1px solid var(--line); transition: padding .25s, background .25s; }
.vrow:hover { padding-left: 16px; background: var(--alt); }
.vn { font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; }
.vt { font-family: var(--disp); font-size: clamp(24px, 3.2vw, 44px); font-weight: 600; letter-spacing: -0.025em; }
.vk { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.vl { font-size: 14px; font-weight: 600; color: var(--acc); text-align: right; }

/* about */
.about { display: grid; grid-template-columns: minmax(280px, 0.8fr) 1.4fr; gap: clamp(32px, 5vw, 80px); align-items: start; border-top: 1px solid var(--line); }
.ab-photo { background: #E9E9E9; aspect-ratio: 1; overflow: hidden; position: sticky; top: 96px; }
.ab-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ab-txt .lead { font-size: clamp(32px, 3.8vw, 54px); margin-bottom: 26px; }
.ab-txt > p { color: var(--ink2); font-size: 16.5px; line-height: 1.65; margin-bottom: 14px; max-width: 720px; }
.ab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.ab-grid h4 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); font-weight: 600; margin-bottom: 10px; }
.ab-grid p { font-size: 14.5px; line-height: 1.6; }
.sub { font-size: 26px; margin: 56px 0 8px; }
.exp { border-top: 1.5px solid var(--ink); margin-top: 14px; }
.erow { display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; }
.ey { font-size: 13px; color: var(--mute); padding-top: 6px; font-variant-numeric: tabular-nums; }
.erow h3 { font-size: 22px; }
.er { font-size: 13px; color: var(--acc); font-weight: 600; margin: 4px 0 6px; }
.erow p { font-size: 14.5px; color: var(--ink2); }

/* footer */
.footer { background: var(--alt); color: var(--ink); border-top: 1px solid var(--line); padding: clamp(64px, 9vw, 120px) var(--pad) 32px; }
.footer h2 { font-size: clamp(48px, 8vw, 120px); letter-spacing: -0.045em; }
.mail { display: inline-flex; gap: 14px; margin-top: 28px; font-family: var(--disp); font-size: clamp(22px, 3vw, 40px); font-weight: 500; border-bottom: 2px solid var(--acc); padding-bottom: 4px; }
.mail span { color: var(--acc); }
.contact { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 64px; border-top: 1px solid var(--line); }
.contact a { padding: 18px 12px 0 0; font-size: 16px; font-weight: 500; }
.contact a:hover { color: var(--acc); }
.contact span { display: block; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-bottom: 6px; }
.foot-logo { margin-top: 72px; color: var(--ink); }
.foot-logo svg { width: 120px; height: 120px; margin-left: -4px; }
.foot-bottom { display: flex; justify-content: space-between; margin-top: 24px; font-size: 13px; color: var(--mute); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(12,12,11,.94); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; }
.lb-cap { color: #B9B6AC; font-size: 14px; margin-top: 14px; }
.lb-close { position: absolute; top: 14px; right: 22px; color: #fff; font-size: 40px; line-height: 1; }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .w { animation: none; } html { scroll-behavior: auto; } }

/* responsive */
@media (max-width: 1100px) {
  .index { columns: 2; }
  .project { grid-template-columns: 1fr; }
  .p-txt { position: static; max-width: 640px; }
  .contact { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
}
@media (max-width: 860px) {
  .tools { margin-left: auto; }
  .nav nav { position: fixed; inset: 61px 0 auto 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--pad) 18px; transform: translateY(-120%); transition: transform .3s; z-index: -1; }
  .nav.open nav { transform: none; }
  .nav nav a { padding: 12px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .menu { display: flex; }
  .nav.open .menu span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.open .menu span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .hero-grid { grid-template-columns: 1fr; margin-top: 36px; }
  .cloud { justify-content: flex-start; gap: 4px 16px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .apps { grid-template-columns: 1fr; }
  .ig { grid-template-columns: 1fr; }
  .ig-frame { justify-self: stretch; }
  .ig-frame iframe { height: 560px; }
  .about { grid-template-columns: 1fr; }
  .ab-photo { position: static; max-width: 420px; }
  .vrow { grid-template-columns: 40px 1fr auto; }
  .vk { display: none; }
}
@media (max-width: 600px) {
  .index { columns: 1; }
  .p-vis.two, .p-vis.poster, .p-vis.newmedia, .p-vis.tipo { grid-template-columns: 1fr; }
  .p-vis.book { grid-template-columns: 1fr 1fr; }
  .p-vis.book figure:first-child { grid-column: 1 / -1; }
  .p-vis.grid4 { grid-template-columns: 1fr 1fr; }
  .ab-grid { grid-template-columns: 1fr 1fr; }
  .erow { grid-template-columns: 1fr; gap: 8px; }
  .ey:empty { display: none; }
  .contact { grid-template-columns: 1fr 1fr; }
}

/* tools: lang + theme */
.tools { display: flex; align-items: center; gap: 10px; }
.nav nav + .tools { margin-left: 8px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 100px; padding: 3px; font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.lang span { padding: 5px 9px; border-radius: 100px; color: var(--mute); transition: .2s; }
.lang span.on { background: var(--ink); color: var(--paper); }
.lang:hover span:not(.on) { color: var(--ink); }
.theme { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: border-color .2s, transform .3s; }
.theme:hover { border-color: var(--ink); transform: rotate(-15deg); }
.theme svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; grid-area: 1 / 1; transition: opacity .25s, transform .35s; }
.theme .i-moon { fill: var(--ink); stroke: none; }
[data-theme="dark"] .theme .i-sun, :root:not([data-theme="dark"]) .theme .i-moon { opacity: 0; transform: scale(.6) rotate(-40deg); }

/* instagram */
.ig { display: grid; grid-template-columns: minmax(260px, .8fr) 1.2fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.ig h2 { font-size: clamp(40px, 5vw, 76px); margin-bottom: 18px; }
.ig-txt p { color: var(--ink2); font-size: 16.5px; line-height: 1.6; max-width: 420px; }
.ig-frame { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 18px 40px var(--shadow); max-width: 640px; width: 100%; justify-self: end; }
.ig-frame iframe { display: block; width: 100%; height: 620px; border: 0; }
@media (max-width: 860px) {
  .ig { grid-template-columns: 1fr; }
  .ig-frame { justify-self: stretch; max-width: none; }
  .ig-frame iframe { height: 520px; }
  .bt { display: none; }
  .brand svg { width: 38px; height: 38px; }
}
@media (max-width: 380px) {
  .lang span { padding: 5px 7px; }
}
@media (max-width: 860px) {
  .nav { gap: 12px; }
  .nav nav + .tools { margin-left: auto; gap: 8px; }
  .menu { width: 40px; height: 40px; padding: 10px; margin-right: -10px; }
}
