/* Portfolio de Lucas Giovinazzo — estilos de la home.
   Los casos de estudio (proyectos/*.html) siguen usando css/tw.css. */

:root {
  --acc: #f5a524;
  --acc-a: 245, 165, 36;
  --bg: #0b0b0c;
  --ink: #e8e6e1;
  --head: #d9d6cf;
  --mut: #a9a59c;
  --dim: #8d8a83;
  --sans: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --s: 1;
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: hidden; background: var(--bg); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--acc); }
a:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 4px; }
img { display: block; max-width: 100%; }
.acc { color: var(--acc); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.skip { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 10px 14px; background: var(--acc); color: #111; font-family: var(--mono); font-size: 12px; font-weight: 600; border-radius: 6px; }
.skip:focus { top: 12px; color: #111; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }
@keyframes breathe { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.03); } }
@keyframes scan { 0% { top: 0%; } 100% { top: 100%; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes reveal { 0%, 100% { width: 8%; } 50% { width: 62%; } }
@keyframes flow { to { background-position: 40px 0; } }
@keyframes flowv { to { background-position: 0 40px; } }
@keyframes run { from { stroke-dashoffset: 260; } to { stroke-dashoffset: 0; } }
@keyframes glow { 0%, 100% { filter: drop-shadow(0 0 14px rgba(var(--acc-a), .45)); } 50% { filter: drop-shadow(0 0 30px rgba(var(--acc-a), .8)); } }
@keyframes halo { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* ---------- Capa fija: estrellas, cabecera, navegación ---------- */

#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

.top { position: fixed; left: 0; right: 0; top: 0; z-index: 30; height: 72px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; pointer-events: none; background: linear-gradient(rgba(11,11,12,.9), rgba(11,11,12,0)); }
.top > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.mark { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--acc); border-radius: 8px; background: rgba(11,11,12,.8); font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--acc); }
.top-links { display: flex; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 10px; white-space: nowrap; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: rgba(11,11,12,.6); font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .06em; color: var(--ink); }
.pill .arr { display: none; }
.pill:hover { border-color: var(--acc); }

.side { display: none; }
.rail { position: fixed; right: 10px; top: 50%; z-index: 30; width: 1px; height: 180px; transform: translateY(-50%); background: rgba(255,255,255,.12); }
.rail span { position: absolute; left: -3px; top: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 10px var(--acc); transform: translateY(calc(var(--p, 0) * 173px)); transition: transform .2s linear; }
.counter { position: fixed; left: 20px; bottom: 18px; z-index: 30; margin: 0; font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .2em; color: var(--mut); }

/* ---------- Escenas ---------- */

#track { position: relative; }
#stage { position: relative; z-index: 1; }
.scene { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; }
.scene::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: var(--glow); }
.s-inicio { --glow: radial-gradient(ellipse 70% 60% at 62% 42%, rgba(44,33,12,.85) 0%, rgba(11,11,12,0) 62%); }
.s-entrada { --glow: radial-gradient(ellipse 50% 45% at 50% 44%, rgba(52,38,10,.9) 0%, rgba(11,11,12,0) 70%); }
.s-ispm { --glow: radial-gradient(ellipse 55% 55% at 60% 45%, rgba(46,35,14,.85) 0%, rgba(11,11,12,0) 65%); }
.s-proyectos { --glow: radial-gradient(ellipse 55% 55% at 58% 48%, rgba(44,34,14,.85) 0%, rgba(11,11,12,0) 65%); }
.s-stack { --glow: radial-gradient(ellipse 40% 45% at 61% 48%, rgba(50,38,12,.85) 0%, rgba(11,11,12,0) 70%); }
.s-contacto { --glow: radial-gradient(ellipse 40% 40% at 50% 38%, rgba(54,40,12,.9) 0%, rgba(11,11,12,0) 70%); }

html.fx #stage { position: fixed; inset: 0; }
html.fx .scene { position: absolute; inset: 0; min-height: 0; visibility: hidden; }
html.fx .scene:first-child { visibility: visible; }

/* Celular y tablet vertical: cada escena es una columna */
.art { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 84px 22px 60px; }
html.fx .art { height: 100%; min-height: 0; }

.eyebrow { margin: 0; display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .24em; color: var(--acc); }
.h { margin: 0; font-weight: 600; line-height: 1.05; text-transform: uppercase; color: var(--head); }
h1.h { font-size: clamp(36px, 10.5vw, 46px); line-height: 1.02; }
h2.h { font-size: clamp(27px, 7.8vw, 34px); }
.body { margin: 0; font-size: 15px; line-height: 1.6; color: var(--mut); }
.copy { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 16px; }
.live { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; animation: pulse 2s ease-in-out infinite; }
.status { margin: 0; display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; padding: 7px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--mut); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tags li { padding: 6px 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 6px; font-family: var(--mono); font-size: 12px; color: var(--mut); }
.links { display: flex; flex-wrap: wrap; gap: 14px 22px; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .14em; }
.links .go { color: var(--acc); }
.caret { animation: pulse 1s steps(1) infinite; }

/* Inicio */
.floor { position: absolute; left: -40%; right: -40%; top: 70%; opacity: .55; height: 60%; transform: perspective(600px) rotateX(72deg); transform-origin: 50% 0; background-image: linear-gradient(rgba(var(--acc-a), .16) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--acc-a), .16) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 70%); pointer-events: none; }
.orbit { display: none; }
.monitor { position: relative; order: -1; width: min(76vw, 360px); aspect-ratio: 3 / 2; margin: 0 auto 70px; transform: perspective(1000px) rotateY(-16deg) rotateX(6deg); }
.mon-frame { position: absolute; inset: 0; border: 1px solid var(--acc); border-radius: 10px; background-image: linear-gradient(rgba(var(--acc-a), .10) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--acc-a), .10) 1px, transparent 1px); background-size: 24px 24px; box-shadow: 0 0 60px rgba(var(--acc-a), .18), inset 0 0 40px rgba(var(--acc-a), .08); }
.mon-screen { position: absolute; inset: 4.5% 3%; overflow: hidden; border: 1px solid rgba(var(--acc-a), .55); border-radius: 4px; background: rgba(8,7,5,.92); }
.mon-screen canvas, .rain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.prompt { position: absolute; left: 4%; bottom: 6%; padding: 5px 9px; border: 1px solid rgba(var(--acc-a), .4); border-radius: 4px; background: rgba(8,7,5,.85); font-family: var(--mono); font-size: 11px; color: var(--acc); }
.mon-neck { position: absolute; left: 45%; top: 100%; width: 10%; height: 17.5%; border-left: 1px solid rgba(var(--acc-a), .5); border-right: 1px solid rgba(var(--acc-a), .5); }
.mon-base { position: absolute; left: 31.66%; top: 117%; width: 36.66%; height: 3.5%; border: 1px solid rgba(var(--acc-a), .5); border-radius: 50%; }
.hero-copy { gap: 18px; }
.cue { position: absolute; right: 22px; bottom: 14px; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: .22em; color: var(--acc); }
.cue-text { display: none; }
.mouse { display: flex; justify-content: center; width: 20px; height: 32px; padding-top: 6px; border: 1px solid rgba(var(--acc-a), .6); border-radius: 12px; }
.mouse span { width: 2px; height: 7px; border-radius: 2px; background: var(--acc); animation: cue 1.6s ease-in-out infinite; }

/* Entrada */
.rain-far { opacity: .55; }
.rings { position: absolute; left: 50%; top: 32%; width: 0; height: 0; --rs: .58; pointer-events: none; }
.rings span { position: absolute; left: 0; top: 0; width: calc((560px + var(--k) * 150px) * var(--rs)); height: calc((350px + var(--k) * 95px) * var(--rs)); border: 1px solid rgba(var(--acc-a), calc(.38 - var(--k) * .055)); border-radius: 6px; transform: translate(-50%, -50%); animation: breathe 6s ease-in-out infinite; animation-delay: calc(var(--k) * -.6s); }
.portal { position: relative; z-index: 1; order: -1; width: min(86vw, 420px); aspect-ratio: 16 / 10; margin: 0 auto; overflow: hidden; border: 1px solid var(--acc); border-radius: 8px; background: #080705; box-shadow: 0 0 80px rgba(var(--acc-a), .35), 0 0 0 1px rgba(var(--acc-a), .2) inset; }
.portal img { width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: .55; filter: sepia(.6) saturate(1.4) hue-rotate(-12deg) brightness(.9); }
.scanlines { position: absolute; inset: 0; background-image: repeating-linear-gradient(0deg, rgba(0,0,0,.35) 0, rgba(0,0,0,.35) 1px, transparent 1px, transparent 3px); }
.scanbar { position: absolute; left: 0; right: 0; height: 2px; background: var(--acc); box-shadow: 0 0 18px var(--acc); animation: scan 3.2s linear infinite; }
.compile { position: absolute; left: 4%; top: 6%; padding: 5px 9px; border-radius: 4px; background: rgba(8,7,5,.8); font-family: var(--mono); font-size: 11px; color: var(--acc); }
.glass { gap: 14px; padding: 20px; border: 1px solid rgba(255,255,255,.06); border-radius: 12px; background: rgba(11,11,12,.72); }
.btn-line { position: relative; z-index: 2; align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid rgba(var(--acc-a), .5); border-radius: 8px; background: rgba(11,11,12,.8); font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .18em; color: var(--acc); }
.btn-line:hover { border-color: var(--acc); }

/* ISPM */
.browser { position: relative; z-index: 1; order: -1; width: 100%; max-width: 460px; margin: 0 auto; transform: perspective(1200px) rotateY(-8deg) rotateX(3deg); overflow: hidden; border: 1px solid rgba(var(--acc-a), .6); border-radius: 12px; background: #0d0c0a; box-shadow: 0 0 90px rgba(var(--acc-a), .22), 0 30px 80px rgba(0,0,0,.6); }
.bar { height: 28px; display: flex; align-items: center; gap: 7px; padding: 0 12px; border-bottom: 1px solid rgba(var(--acc-a), .25); background: #15130f; }
.bar i { width: 9px; height: 9px; border: 1px solid rgba(var(--acc-a), .6); border-radius: 50%; }
.bar span { margin-left: 12px; flex-grow: 1; padding: 3px 10px; border-radius: 5px; background: rgba(255,255,255,.04); font-family: var(--mono); font-size: 10px; color: var(--mut); }
.view { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.view img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.wire { position: absolute; left: 0; top: 0; bottom: 0; width: 38%; background-color: rgba(11,10,8,.9); background-image: linear-gradient(rgba(var(--acc-a), .3) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--acc-a), .3) 1px, transparent 1px); background-size: 22px 22px; animation: reveal 9s ease-in-out infinite; }
.wire::after { content: ''; position: absolute; right: -1px; top: 0; bottom: 0; width: 2px; background: var(--acc); box-shadow: 0 0 22px 4px var(--acc); }
.feats { display: none; margin: 0; padding: 0; list-style: none; }
.feat { position: relative; z-index: 2; padding: 14px 16px; border: 1px solid rgba(var(--acc-a), .22); border-radius: 12px; background: rgba(24,22,19,.82); box-shadow: 0 20px 50px rgba(0,0,0,.5); animation: float 6s ease-in-out infinite; }
.feat h3 { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .16em; color: #c9c5bc; }
.feat h3 svg { flex: none; }
.feat p { margin: 0; font-size: 15px; line-height: 1.3; font-weight: 500; color: #ece9e2; }

/* Más proyectos */
.panels { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.panel { display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(var(--acc-a), .28); border-radius: 12px; background: rgba(22,20,17,.92); box-shadow: 0 0 50px rgba(var(--acc-a), .10), 0 24px 60px rgba(0,0,0,.6); }
.panel img { width: 100%; height: 72px; object-fit: cover; object-position: top; border-bottom: 1px solid rgba(var(--acc-a), .2); }
.panel-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; }
.panel .eyebrow { font-size: 8px; letter-spacing: .14em; }
.panel h3 { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.15; color: #ece9e2; }
.panel h3 a:hover { color: var(--acc); }
.panel .tags { display: none; }
.panel .tags li { padding: 3px 7px; font-size: 10px; }
.panel .links { margin-top: 2px; gap: 6px 14px; font-size: 10px; letter-spacing: .1em; }
.flowline, .node { display: none; }

/* Stack */
.circuit { position: relative; z-index: 1; order: -1; width: 100%; height: 42svh; max-height: 400px; overflow: visible; }
.circuit .w { fill: none; stroke: rgba(var(--acc-a), .45); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.circuit .sp { fill: none; stroke: var(--acc); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 18 242; animation: run 2.4s linear infinite; filter: drop-shadow(0 0 6px #f5a524); }
.circuit text { font-family: var(--mono); font-size: 16px; font-weight: 600; letter-spacing: .04em; fill: var(--head); }
.circuit .chip { animation: glow 3s ease-in-out infinite; }
.cert { margin: 0; padding: 12px 14px; border: 1px solid rgba(var(--acc-a), .3); border-radius: 10px; font-family: var(--mono); font-size: 11px; line-height: 1.7; color: #c9c5bc; }

/* Contacto */
.s-contacto .art { align-items: center; text-align: center; }
.lg-big { position: relative; z-index: 1; order: -1; width: 260px; height: 220px; display: flex; align-items: center; justify-content: center; }
.lg-big .ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); }
.lg-big .r1 { width: 200px; height: 200px; border: 1px solid rgba(var(--acc-a), .18); }
.lg-big .r2 { width: 260px; height: 260px; border: 1px solid rgba(var(--acc-a), .08); }
.lg-dots { position: relative; font-family: var(--mono); font-size: 120px; font-weight: 800; line-height: 1; letter-spacing: -.04em; color: transparent; background-image: radial-gradient(circle, var(--acc) 1.6px, transparent 2px); background-size: 6px 6px; -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 18px rgba(var(--acc-a), .6)); }
.contact-copy { align-items: center; max-width: 760px; }
.buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.lg-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; background: rgba(22,20,17,.85); font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--ink); }
.lg-btn:hover { border-color: var(--acc); }
.lg-btn.main { border-color: var(--acc); color: var(--acc); }
.copyright { margin: 4px 0 0; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--dim); }

/* ---------- Escritorio: cada escena es un artboard de 1440×900 escalado ---------- */

@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .top { height: 88px; padding: 0 44px; background: none; }
  .brand { font-size: 16px; }
  .pill { min-height: 32px; padding: 0 14px; font-size: 11px; letter-spacing: .1em; }
  .pill .arr { display: inline; }
  .side { position: fixed; right: 44px; top: 50%; z-index: 30; width: 150px; transform: translateY(-50%); display: flex; flex-direction: column; gap: 6px; }
  .side a { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; color: var(--dim); transition: color .3s; }
  .side a::after { content: '—'; }
  .side a:hover, .side a.on { color: var(--acc); }
  .side > a, .side-group { border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background: rgba(20,19,17,.82); transition: border-color .3s; }
  .side > a.on, .side-group.on { border-color: rgba(var(--acc-a), .5); background: rgba(20,17,10,.85); }
  .side-group { display: flex; flex-direction: column; }
  .rail { right: 30px; height: 290px; }
  .rail span { transform: translateY(calc(var(--p, 0) * 283px)); }
  .counter { left: 44px; bottom: 34px; font-size: 11px; }

  .art { position: absolute; left: 50%; top: 50%; width: 1440px; height: 900px; min-height: 0; margin: -450px 0 0 -720px; padding: 0; display: block; transform: scale(var(--s)); }
  html.fx .art { height: 900px; }
  .scene { min-height: 100vh; }

  .eyebrow { font-size: 12px; }
  h1.h { font-size: 66px; letter-spacing: .01em; }
  h1.h .ln { white-space: nowrap; }
  h2.h { font-size: 46px; }
  .body { font-size: 16px; }
  .copy { position: absolute; gap: 18px; }

  /* Inicio */
  .floor { left: 420px; right: auto; top: 560px; opacity: 1; width: 1200px; height: 520px; transform: perspective(900px) rotateX(72deg); background-size: 60px 60px; }
  .orbit { display: block; position: absolute; border-radius: 50%; pointer-events: none; }
  .o1 { left: 640px; top: 600px; width: 760px; height: 150px; border: 1px solid rgba(var(--acc-a), .18); }
  .o2 { left: 540px; top: 575px; width: 960px; height: 200px; border: 1px solid rgba(var(--acc-a), .10); }
  .monitor { position: absolute; left: 700px; top: 150px; width: 600px; height: 400px; margin: 0; transform: perspective(1400px) rotateY(-22deg) rotateX(6deg); }
  .prompt { font-size: 13px; padding: 6px 10px; }
  .hero-copy { left: 80px; top: 300px; width: 620px; gap: 22px; }
  .hero-copy .body { max-width: 470px; font-size: 17px; }
  .status { font-size: 11px; }
  .cue { left: 640px; right: auto; bottom: 30px; width: 160px; gap: 10px; font-size: 10px; letter-spacing: .24em; }
  .cue-text { display: block; text-align: center; }

  /* Entrada */
  .rings { top: 396px; --rs: 1; }
  .portal { position: absolute; left: 440px; top: 221px; width: 560px; height: 350px; margin: 0; }
  .compile { left: 18px; top: 16px; font-size: 12px; }
  .glass { left: 80px; bottom: 96px; width: 560px; padding: 24px 26px; gap: 16px; }
  .glass h2.h { font-size: 40px; line-height: 1.08; }
  .btn-line { position: absolute; right: 44px; bottom: 30px; }

  /* ISPM */
  .browser { position: absolute; left: 560px; top: 210px; width: 600px; max-width: none; height: 400px; margin: 0; transform: perspective(1600px) rotateY(-16deg) rotateX(4deg); }
  .bar { height: 30px; }
  .bar span { font-size: 11px; }
  .view { height: 370px; aspect-ratio: auto; }
  .feats { display: block; }
  .feat { position: absolute; width: 230px; padding: 16px 18px; }
  .feat h3 { font-size: 11px; }
  .feat p { font-size: 18px; }
  .f1 { left: 520px; top: 120px; }
  .f2 { left: 1000px; top: 110px; animation-delay: -1.5s; }
  .f3 { left: 990px; top: 640px; animation-delay: -3s; }
  .f4 { left: 590px; top: 660px; animation-delay: -4.5s; }
  .copy-ispm { left: 80px; top: 290px; width: 410px; }

  /* Más proyectos */
  .panels { position: static; display: block; }
  .panel { position: absolute; width: 270px; animation: float 7s ease-in-out infinite; }
  .panel img { height: 169px; }
  .panel-body { gap: 6px; padding: 14px 16px 16px; }
  .panel .eyebrow { font-size: 10px; letter-spacing: .18em; }
  .panel h3 { font-size: 20px; }
  .panel .tags { display: flex; gap: 6px; margin-top: 4px; }
  .panel .links { margin-top: 6px; font-size: 11px; letter-spacing: .12em; }
  .p1 { left: 520px; top: 130px; transform: perspective(1200px) rotateY(14deg); }
  .p2 { left: 860px; top: 110px; transform: perspective(1200px) rotateY(-14deg); animation-delay: -2s; }
  .p3 { left: 520px; top: 480px; transform: perspective(1200px) rotateY(14deg); animation-delay: -4s; }
  .p4 { left: 860px; top: 470px; transform: perspective(1200px) rotateY(-14deg); animation-delay: -5.5s; }
  .flowline { display: block; position: absolute; opacity: .6; pointer-events: none; }
  .fh { height: 1px; background-image: linear-gradient(90deg, var(--acc) 50%, transparent 50%); background-size: 8px 1px; animation: flow 1.2s linear infinite; }
  .fv { width: 1px; background-image: linear-gradient(180deg, var(--acc) 50%, transparent 50%); background-size: 1px 8px; animation: flowv 1.2s linear infinite; }
  .node { display: block; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 12px var(--acc); }
  .copy-proy { left: 80px; top: 300px; width: 390px; }

  /* Stack */
  .circuit { position: absolute; left: 530px; top: 90px; width: 580px; height: 720px; max-height: none; }
  .circuit text { font-size: 12px; letter-spacing: .08em; }
  .copy-stack { left: 80px; top: 470px; width: 400px; }
  .copy-stack h2.h { font-size: 44px; }
  .cert { font-size: 12px; }

  /* Contacto */
  .lg-big { position: absolute; left: 440px; top: 60px; width: 560px; height: 560px; }
  .lg-big .r1 { width: 420px; height: 420px; }
  .lg-big .r2 { width: 560px; height: 560px; }
  .lg-dots { font-size: 230px; background-size: 7px 7px; animation: halo 3.5s ease-in-out infinite; }
  .contact-copy { left: 340px; top: 560px; width: 760px; gap: 18px; }
  .contact-copy .body { font-size: 16px; }
  .copyright { position: absolute; right: 44px; bottom: 34px; font-size: 11px; }
}

/* Pantallas bajas en celular: menos elementos por escena */
@media (max-width: 899px) and (max-height: 700px) {
  .monitor { width: min(60vw, 300px); margin-bottom: 52px; }
  .s-inicio .body, .s-proyectos .body { display: none; }
  .circuit { height: 36svh; }
  .panel img { height: 54px; }
}
@media (max-width: 899px) and (min-height: 900px) {
  .feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; position: relative; z-index: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .wire { width: 38%; }
}
