/*fonts*/
@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("assets/fonts/bodoni-moda-latin-opsz-normal.woff2") format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-style: italic; font-weight: 400 900; font-display: swap; src: url("assets/fonts/bodoni-moda-latin-opsz-italic.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("assets/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); }
/*/fonts*/
/* Tony Maccarrone — portfolio
   Layout: una página iluminada como un escenario. Cada sección dispara un "cue" de luz (--lx)
   que tiñe el fondo; el contenido es asimétrico, alineado a la izquierda, con fotos a sangre. */
:root {
  color-scheme: dark;
  --bg: #0d0b09;          /* negro cálido de sala */
  --bg-2: #16130f;        /* superficie elevada */
  --ink: #f1ebe0;         /* hueso */
  --ink-2: #a79e90;       /* texto secundario */
  --ink-3: #6f675c;       /* metadatos */
  --line: rgba(241, 235, 224, .14);
  --accent: #e3a63c;      /* tungsteno: único acento interactivo */
  --accent-ink: #1a1206;
  --live: #4fbf8b;        /* estado "en producción" (semántico, no acento) */
  --rec: #d8452f;
  --lx: #c98a2b;          /* gel de luz activo, lo cambia el scroll */

  --f-display: "Bodoni Moda", "Didot", "Bodoni MT", "Times New Roman", serif;
  --f-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 4.5vw, 64px);
  --max: 1440px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 68px;
}
@property --lx { syntax: "<color>"; inherits: true; initial-value: #c98a2b; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; transition: --lx 1.1s ease; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--f-body); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }
main { overflow-x: clip; }

.wrap {
  max-width: var(--max); margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* ---------- atmósfera ---------- */
.lx {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60vw 55vh at 82% 8%, color-mix(in srgb, var(--lx) 30%, transparent), transparent 70%),
    radial-gradient(50vw 50vh at 4% 96%, color-mix(in srgb, var(--lx) 16%, transparent), transparent 70%);
}
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 70; }
.progress i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
main, .nav, .hud { position: relative; z-index: 1; }

/* ---------- tipografía compartida ---------- */
.label, .eyebrow, .hud, .cap, .when, .status, .tags, .credit, .tc, .rec, .slate, .facts dt, .role-label, .skills h4, .foot {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
}
.label { color: var(--accent); display: flex; align-items: center; gap: 12px; }
.label::before { content: ""; width: 28px; height: 1px; background: currentColor; }
h2 {
  font: 400 clamp(2.4rem, 6.2vw, 5.6rem)/.98 var(--f-display);
  letter-spacing: -.025em; text-wrap: balance; font-optical-sizing: auto;
}
h2 em, h1 em { color: var(--accent); }
.sec-head { display: grid; gap: 22px; margin-bottom: clamp(40px, 7vw, 96px); }
.sec-sub { color: var(--ink-2); max-width: 54ch; font-size: clamp(1rem, 1.3vw, 1.15rem); }
section { padding-block: clamp(88px, 13vw, 190px); }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 15px 26px; border-radius: 999px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink);
  font: 600 15px/1 var(--f-body); letter-spacing: .01em;
  transition: transform .5s var(--ease), background .3s, color .3s, border-color .3s;
  will-change: transform;
}
.btn svg, .proj-link svg, .social svg, .end-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 11px 18px; font-size: 14px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  transition: transform .6s var(--ease), background .4s, backdrop-filter .4s;
}
.nav.is-scrolled { background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 -1px 0 var(--line); }
.nav.is-hidden { transform: translateY(-110%); }
.logo { font: italic 500 26px/1 var(--f-display); letter-spacing: -.04em; color: var(--ink); }
.logo:hover { color: var(--accent); }
.nav-links { display: flex; gap: clamp(16px, 2.4vw, 36px); font-size: 14px; color: var(--ink-2); }
.nav-links a { position: relative; padding: 6px 0; transition: color .3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .5s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang { cursor: pointer; background: none; border: 1px solid var(--line); color: var(--ink-2); border-radius: 999px; width: 42px; height: 42px; font: 500 12px/1 var(--f-mono); letter-spacing: .08em; transition: color .3s, border-color .3s; }
.lang:hover { color: var(--accent); border-color: var(--accent); }

.hud {
  position: fixed; z-index: 40; left: max(var(--gutter), env(safe-area-inset-left, 0px)); bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 10.5px;
  left: max(22px, env(safe-area-inset-left, 0px)); bottom: 50%; transform: translateY(50%);
  writing-mode: vertical-rl; white-space: nowrap;
}
@media (max-width: 1180px) { .hud { display: none; } }
.hud-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lx); box-shadow: 0 0 0 1px var(--line); transition: background 1s; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100dvh; padding-block: calc(var(--nav-h) + 24px) 0; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 80px); align-items: center; flex: 1; width: 100%; }
.hero-copy { display: grid; gap: clamp(18px, 2.4vw, 30px); min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 60%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }
.hero-name { font: 400 clamp(3.4rem, 9.6vw, 9.6rem)/.86 var(--f-display); letter-spacing: -.045em; }
.hero-name .line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.hero-name .line > span { display: inline-block; }
.hero-name .line:nth-child(2) { padding-left: clamp(0px, 3vw, 48px); }
.hero-role { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.role-label { color: var(--ink-3); }
.rotator { font: italic 400 clamp(1.5rem, 2.6vw, 2.2rem)/1.1 var(--f-display); color: var(--accent); display: inline-block; min-width: 9ch; }
.rotator.out { opacity: 0; transform: translateY(-40%); transition: opacity .28s, transform .28s; }
.rotator.in-start { opacity: 0; transform: translateY(40%); }
.rotator.in { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.hero-lede { color: var(--ink-2); max-width: 46ch; font-size: clamp(1.02rem, 1.35vw, 1.2rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual { perspective: 1200px; justify-self: end; width: min(100%, 460px); }
.frame { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 4px; background: var(--bg-2); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease); }
.frame img { width: 100%; height: 112%; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--bg) 78%, transparent)); pointer-events: none; }
.corner { position: absolute; width: 18px; height: 18px; border: 1px solid var(--ink); opacity: .75; z-index: 2; }
.corner.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.corner.tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.corner.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.rec, .tc, .slate { position: absolute; z-index: 2; font-size: 11px; color: var(--ink); }
.rec { top: 20px; left: 44px; display: flex; align-items: center; gap: 7px; }
.rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--rec); animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.tc { top: 20px; right: 44px; font-variant-numeric: tabular-nums; }
.slate { bottom: 22px; left: 44px; color: var(--ink-2); }

.marquee { border-block: 1px solid var(--line); overflow: hidden; padding-block: 18px; }
.marquee-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 38s linear infinite; font: italic 400 clamp(1.3rem, 2.4vw, 2rem)/1 var(--f-display); color: var(--ink-2); }
.marquee-track i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* entrada del hero: parte de un estado visible si no hay JS/animación */
@keyframes rise { from { opacity: 0; transform: translateY(42px); } to { opacity: 1; transform: none; } }
.load { animation: rise 1.1s var(--ease) both; animation-delay: calc(var(--d, 0) * 110ms + 120ms); }

/* ---------- reveals ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--rd, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- sobre mí ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.about-photo { position: sticky; top: calc(var(--nav-h) + 24px); overflow: hidden; border-radius: 4px; }
.about-photo img { width: 100%; aspect-ratio: 1 / 1.08; object-fit: cover; object-position: 50% 40%; }
.about-text { display: grid; gap: clamp(28px, 4vw, 52px); min-width: 0; }
.manifesto { font: 400 clamp(1.55rem, 3.1vw, 2.9rem)/1.2 var(--f-display); letter-spacing: -.015em; }
.manifesto-close { margin-top: 28px; font: 700 clamp(1.15rem, 1.9vw, 1.6rem)/1.35 var(--f-display); color: var(--accent); max-width: 36ch; }
.now-social { margin-top: 4px; }
.pull-photo { margin-top: 22px; padding-bottom: 8px; }
.manifesto .w { opacity: .2; transition: opacity .5s ease; }
.manifesto .w.on { opacity: 1; }
.pull { border-left: 1px solid var(--accent); padding-left: 22px; }
.pull p { font: italic 400 clamp(1.15rem, 1.8vw, 1.5rem)/1.35 var(--f-display); color: var(--accent); max-width: 34ch; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.facts > div { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.facts dt { color: var(--ink-3); font-size: 11px; }
.facts dd { font-size: 1.05rem; }

/* ---------- papeles ---------- */
.roles-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(28px, 5vw, 90px); align-items: start; }
.role-list { border-top: 1px solid var(--line); }
.role { position: relative; border-bottom: 1px solid var(--line); padding: clamp(18px, 2.6vw, 34px) 0; cursor: default; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 32px; align-items: center; outline-offset: -2px; }
.role h3 { font: 400 clamp(2rem, 5.2vw, 4.6rem)/1 var(--f-display); letter-spacing: -.03em; color: var(--ink-3); transition: color .5s, transform .7s var(--ease); }
.role p { color: var(--ink-2); font-size: .98rem; max-width: 40ch; opacity: .45; transition: opacity .5s; }
.role.is-active h3 { color: var(--ink); transform: translateX(clamp(8px, 1.6vw, 26px)); font-style: italic; }
.role.is-active p { opacity: 1; }
.role::before { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .8s var(--ease); }
.role.is-active::before { transform: scaleX(1); }
.role-stage { position: sticky; top: calc(var(--nav-h) + 24px); }
.role-frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: var(--bg-2); }
.role-frame > img, .role-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease), transform 1.4s var(--ease), opacity .01s .9s; }
.role-frame > .is-active { opacity: 1; transform: none; clip-path: inset(0); z-index: 1; transition: clip-path .9s var(--ease), transform 1.4s var(--ease); }
.role-art { display: grid; place-items: center; color: var(--ink); background: radial-gradient(120% 90% at 80% 0%, color-mix(in srgb, var(--lx) 26%, var(--bg-2)), var(--bg-2)); }
.role-art svg { width: 100%; height: 100%; }
.kan rect { fill: color-mix(in srgb, var(--ink) 10%, transparent); stroke: var(--line); }
.kan .hot { fill: color-mix(in srgb, var(--accent) 30%, transparent); stroke: var(--accent); }
.burn { stroke: var(--accent); stroke-linecap: round; stroke-linejoin: round; }
.hot-text { fill: var(--accent); }
.caret { fill: var(--accent); animation: blink 1.1s steps(2) infinite; }
.fill-soft { fill: color-mix(in srgb, var(--ink) 16%, transparent); }

/* ---------- reel horizontal ---------- */
.reel { padding-block: 0; }
.reel-sticky { position: sticky; top: 0; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(18px, 3vh, 36px); padding-block: calc(var(--nav-h) + 8px) 34px; }
.reel-head { margin: 0 auto; width: 100%; gap: 12px; }
.reel-head h2 { font-size: clamp(2rem, 4.6vw, 4.2rem); }
.reel-head .sec-sub { font-size: .95rem; }
.reel-track { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); width: max-content; padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)); will-change: transform; --h: min(46vh, 430px); }
.shot { position: relative; flex: none; display: block; height: var(--h); border-radius: 4px; overflow: hidden; background: var(--bg-2); }
.shot.w-l { aspect-ratio: 16 / 9; }
.shot.w-m { aspect-ratio: 4 / 3; height: calc(var(--h) * .84); }
.shot.w-s { aspect-ratio: 4 / 3; height: calc(var(--h) * .62); }
.shot.w-sq { aspect-ratio: 1; height: calc(var(--h) * .92); }
.shot.up { transform: translateY(-5vh); }
.shot.down { transform: translateY(5vh); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.92); }
.shot:hover img { transform: scale(1.05); filter: saturate(1.1); }
.cap { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; gap: 12px; padding: 34px 14px 12px; font-size: 10.5px; color: var(--ink); background: linear-gradient(transparent, color-mix(in srgb, var(--bg) 88%, transparent)); }
.cap b { font-weight: 500; }
.cap span { color: var(--ink-2); }
a.shot .cap span { color: var(--accent); }
a.shot .cap span::after { content: " ↗"; }
.shot-end { aspect-ratio: 4 / 3; display: grid; align-content: center; gap: 10px; padding: clamp(22px, 3vw, 44px); border: 1px solid var(--line); background: transparent; transition: border-color .4s, background .4s; }
.shot-end:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.end-kicker { font: 12px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.end-title { font: italic 400 clamp(3rem, 7vw, 6rem)/.9 var(--f-display); letter-spacing: -.03em; }
.end-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; }
.shot-end:hover .end-link svg { transform: translate(3px, -3px); }
.reel-bar { margin-inline: max(var(--gutter), env(safe-area-inset-left, 0px)); height: 1px; background: var(--line); }
.reel-bar i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
/* sin pin: móvil y movimiento reducido */
.reel.is-native { height: auto !important; padding-block: clamp(88px, 13vw, 150px); }
.reel.is-native .reel-sticky { position: static; height: auto; overflow: visible; padding-block: 0; }
.reel.is-native .reel-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; transform: none !important; padding-block: 6vh; scrollbar-width: none; --h: min(52vw, 320px); }
.reel.is-native .reel-track::-webkit-scrollbar { display: none; }
.reel.is-native .shot { scroll-snap-align: center; }
.reel.is-native .reel-bar { display: none; }

/* ---------- escenario ---------- */
.stage { padding-top: 0; }
.stage-hero { position: relative; height: min(120vh, 980px); overflow: hidden; display: flex; align-items: flex-end; }
.stage-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; transform: scale(var(--sz, 1.18)); will-change: transform; }
.stage-shade { position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 88%, transparent) 0%, transparent 62%), linear-gradient(0deg, var(--bg) 0%, transparent 42%), linear-gradient(180deg, var(--bg) 0%, transparent 18%); }
.stage-copy { position: relative; width: 100%; display: grid; gap: 22px; padding-bottom: clamp(48px, 8vw, 110px); }
.stage-copy h2 { max-width: 13ch; }
.stage-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); margin-top: clamp(28px, 5vw, 70px); }
.sg { overflow: hidden; display: grid; gap: 10px; }
.sg img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; transition: transform 1.4s var(--ease); }
.sg:hover img { transform: scale(1.03); }
.sg figcaption { font: 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.sg.a { grid-column: 1 / span 7; } .sg.a img { aspect-ratio: 3 / 2; }
.sg.b { grid-column: 8 / span 5; margin-top: clamp(40px, 9vw, 140px); } .sg.b img { aspect-ratio: 4 / 3; }
.sg.c { grid-column: 2 / span 4; } .sg.c img { aspect-ratio: 3 / 4; object-position: 50% 20%; }
.sg.d { grid-column: 7 / span 6; align-self: end; } .sg.d img { aspect-ratio: 4 / 3; }
.credit { grid-column: 1 / -1; color: var(--ink-3); font-size: 11px; }

/* ---------- proyectos (pila sticky) ---------- */
.stack { display: grid; gap: clamp(20px, 3vw, 40px); }
.proj {
  position: sticky; top: calc(var(--nav-h) + 16px + var(--i, 0) * 14px);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(20px, 4vw, 64px); align-items: center;
  min-height: min(62vh, 520px); padding: clamp(24px, 4vw, 60px);
  background: color-mix(in srgb, var(--bg-2) 94%, var(--lx)); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 -20px 60px -30px rgba(0, 0, 0, .8);
  transform: scale(var(--s, 1)); transform-origin: 50% 0; filter: brightness(var(--b, 1)); will-change: transform;
}
.proj-body { display: grid; gap: 18px; justify-items: start; min-width: 0; }
.proj h3 { font: 400 clamp(2rem, 4.4vw, 3.9rem)/1 var(--f-display); letter-spacing: -.03em; text-wrap: balance; }
.proj-desc { color: var(--ink-2); max-width: 50ch; }
.status { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-2); font-size: 11px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.status.live { color: var(--live); border-color: color-mix(in srgb, var(--live) 40%, transparent); }
.status.live i { background: var(--live); animation: pulse 2.4s ease-out infinite; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11px; color: var(--ink-2); }
.tags li { padding: 6px 10px; border-radius: 6px; background: color-mix(in srgb, var(--ink) 7%, transparent); }
.proj-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.proj-link:hover svg { transform: translate(3px, -3px); }
.proj-art { color: var(--ink); border-radius: 12px; background: radial-gradient(110% 100% at 100% 0%, color-mix(in srgb, var(--lx) 22%, transparent), transparent 70%), color-mix(in srgb, var(--bg) 70%, transparent); border: 1px solid var(--line); }
.proj-art svg { display: block; width: 100%; height: auto; }
.dev { fill: color-mix(in srgb, var(--ink) 5%, transparent); stroke: color-mix(in srgb, var(--ink) 34%, transparent); }
.row { fill: color-mix(in srgb, var(--ink) 8%, transparent); }
.bar { fill: var(--accent); transform-box: fill-box; transform-origin: 0 50%; animation: grow 3.6s var(--ease) infinite alternate; }
.bar.b2 { opacity: .7; animation-delay: .3s; } .bar.b3 { opacity: .45; animation-delay: .6s; }
@keyframes grow { from { transform: scaleX(.35); } to { transform: scaleX(1); } }
.cta { fill: var(--accent); }
.trail { stroke: color-mix(in srgb, var(--ink) 34%, transparent); stroke-dasharray: 4 6; stroke-linecap: round; animation: dash 14s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -200; } }
.pin { fill: var(--accent); } .pin-soft { fill: color-mix(in srgb, var(--ink) 36%, transparent); }
.podium rect { fill: color-mix(in srgb, var(--ink) 9%, transparent); stroke: color-mix(in srgb, var(--ink) 26%, transparent); }
.podium .p1 { fill: color-mix(in srgb, var(--accent) 70%, transparent); stroke: var(--accent); }
.ring-bg { stroke: color-mix(in srgb, var(--ink) 14%, transparent); stroke-width: 7; }
.ring { stroke: var(--accent); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 78 100; transform-box: fill-box; transform-origin: center; transform: rotate(-90deg); }
.mark { stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; }
.thirds { stroke: color-mix(in srgb, var(--ink) 16%, transparent); }
.chev path { stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; animation: chev 1.5s ease-in-out infinite; }
.chev path:nth-child(2) { animation-delay: .2s; }
@keyframes chev { 0%, 100% { opacity: .2; transform: translateX(-6px); } 50% { opacity: 1; transform: none; } }
.focus { stroke: var(--ink); stroke-dasharray: 6 8; transform-box: fill-box; transform-origin: center; animation: spin 16s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.recdot { fill: var(--rec); animation: blink 1.4s steps(2) infinite; }
.note { stroke: color-mix(in srgb, var(--ink) 30%, transparent); fill: color-mix(in srgb, var(--ink) 7%, transparent); }
.note.n2 { fill: color-mix(in srgb, var(--accent) 26%, transparent); stroke: var(--accent); }
.cursor { fill: var(--ink); animation: drift 5s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(-46px, -34px); } }
.mono-tm { fill: var(--accent); letter-spacing: -.04em; }

/* ---------- trayectoria ---------- */
.timeline { position: relative; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: minmax(120px, .28fr) minmax(0, 1fr); gap: 12px clamp(20px, 5vw, 90px); padding: clamp(24px, 3.4vw, 44px) 0; border-bottom: 1px solid var(--line); transition: background .5s; }
.timeline li:hover { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent 60%); }
.when { color: var(--accent); padding-top: .9em; font-variant-numeric: tabular-nums; }
.timeline h3 { font: 400 clamp(1.6rem, 3.4vw, 2.9rem)/1.05 var(--f-display); letter-spacing: -.025em; }
.where { color: var(--ink); margin-top: 8px; font-weight: 500; }
.timeline li p:not(.where) { color: var(--ink-2); max-width: 60ch; margin-top: 8px; }
.skills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); margin-top: clamp(48px, 7vw, 100px); }
.skills h4 { color: var(--accent); font-weight: 500; margin-bottom: 12px; }
.skills p { color: var(--ink-2); font-size: .98rem; line-height: 1.75; }

/* ---------- contacto ---------- */
.contact { padding-bottom: 0; }
.contact .wrap:first-child { display: grid; gap: clamp(22px, 3vw, 40px); }
.contact-title { font-size: clamp(2.8rem, 9vw, 9rem); line-height: .92; max-width: 12ch; }
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: clamp(10px, 2vw, 30px); }
.mail-addr { font: italic 400 clamp(1.25rem, 3.6vw, 3rem)/1.15 var(--f-display); letter-spacing: -.01em; border-bottom: 1px solid var(--accent); padding-bottom: 6px; overflow-wrap: anywhere; user-select: all; transition: color .3s, transform .5s var(--ease); display: inline-block; }
.mail-addr:hover { color: var(--accent); }
.copied { font: 12px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--live); min-height: 1em; }
.social { display: flex; flex-wrap: wrap; gap: 12px 34px; padding-top: clamp(20px, 3vw, 40px); border-top: 1px solid var(--line); }
.social a { display: inline-flex; align-items: center; gap: 8px; font-size: 1.1rem; transition: color .3s; }
.social a:hover { color: var(--accent); }
.social a:hover svg { transform: translate(3px, -3px); }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 30px; margin-top: clamp(70px, 10vw, 150px); padding-block: 26px calc(70px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); color: var(--ink-3); font-size: 11px; }
.foot a:hover { color: var(--accent); }

/* ---------- responsive ---------- */
/* ---------- ahora: The Happening ---------- */
.now-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.now-copy { display: grid; gap: 24px; justify-items: start; }
.now-list { display: grid; gap: 0; width: 100%; border-top: 1px solid var(--line); }
.now-list li { display: grid; grid-template-columns: minmax(110px, .32fr) 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.now-list b { color: var(--accent); font-weight: 600; }
.now-screen { position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; display: grid; place-items: center; border: 1px solid var(--line);
  background: radial-gradient(90% 80% at 70% 10%, color-mix(in srgb, var(--lx) 45%, transparent), transparent 70%), repeating-linear-gradient(0deg, transparent 0 3px, color-mix(in srgb, var(--ink) 4%, transparent) 3px 4px), var(--bg-2);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.now-screen:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--lx) 70%, transparent); }
.now-logo { font: 400 clamp(2.4rem, 6vw, 5rem)/.9 var(--f-display); letter-spacing: -.03em; text-align: center; color: var(--ink); }
.now-play { position: absolute; right: 22px; bottom: 54px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--rec); transition: transform .4s var(--ease); }
.now-play svg { width: 22px; height: 22px; fill: #fff; }
.now-screen:hover .now-play { transform: scale(1.12); }
.now-ticker { position: absolute; left: 0; right: 0; bottom: 0; padding: 9px 0; overflow: hidden; white-space: nowrap; font: 500 11px/1 var(--f-mono, monospace); letter-spacing: .14em; color: var(--bg); background: var(--ink); }
.now-ticker span { display: inline-block; padding-left: 100%; animation: ticker 18s linear infinite; }
@keyframes ticker { to { transform: translateX(-100%); } }
.track { font: 400 clamp(1.1rem, 1.6vw, 1.35rem)/1.2 var(--f-display); font-style: italic; color: var(--accent); margin: clamp(36px, 5vw, 64px) 0 14px; }
.track:first-of-type { margin-top: 0; }

@media (max-width: 960px) {
  .now-grid { grid-template-columns: minmax(0, 1fr); }
  .now-screen { order: -1; }
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { justify-self: start; width: min(78%, 380px); order: -1; }
  .hero { padding-top: calc(var(--nav-h) + 12px); }
  .about-grid, .roles-grid { grid-template-columns: minmax(0, 1fr); }
  .about-photo { position: relative; top: 0; max-width: 520px; }
  .about-photo img { aspect-ratio: 4 / 3; }
  .role-stage { display: none; }
  .role { grid-template-columns: minmax(0, 1fr); }
  .role p { opacity: 1; }
  .proj { position: relative; top: 0; grid-template-columns: minmax(0, 1fr); min-height: 0; transform: none; filter: none; }
  .proj-art { order: -1; max-width: 420px; }
  .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage-hero { height: min(100vh, 760px); }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav-right .btn { display: none; }
  .facts, .skills { grid-template-columns: minmax(0, 1fr); }
  .timeline li { grid-template-columns: minmax(0, 1fr); }
  .when { padding-top: 0; }
  .sg.a, .sg.b, .sg.c, .sg.d { grid-column: 1 / -1; margin-top: 0; }
  .sg.c img { aspect-ratio: 1; }
  .stage-shade { background: linear-gradient(0deg, var(--bg) 4%, color-mix(in srgb, var(--bg) 55%, transparent) 55%, transparent 100%); }
  .rec { left: 40px; } .tc { right: 40px; } .slate { left: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .now-ticker span { animation: none; padding-left: 0; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .manifesto .w { opacity: 1; }
  .proj { position: relative; top: 0; transform: none; filter: none; }
  .stage-hero > img { transform: none; }
}
