/* MONO — elegancia de keynote con alma de terminal */
@font-face { font-family: Geist; src: url(../fonts/Geist-Light.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: Geist; src: url(../fonts/Geist-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Geist; src: url(../fonts/Geist-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Geist; src: url(../fonts/Geist-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Geist; src: url(../fonts/Geist-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(../fonts/GeistMono-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Departure; src: url(../fonts/DepartureMono-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --negro: #000;
  --negro-2: #0c0c0d;
  --gris-1: #1d1d1f;
  --gris-2: #6e6e73;
  --gris-3: #a1a1a6;
  --blanco: #f5f5f7;
  --puro: #fff;
  --pad: clamp(20px, 5vw, 72px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.36, .5, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--negro); color: var(--blanco);
  font: 400 17px/1.6 Geist, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--puro); color: var(--negro); }
a { color: inherit; text-decoration: none; }
.mono { font-family: "Geist Mono", ui-monospace, monospace; letter-spacing: .02em; }
.dim { color: var(--gris-2); }
code { font: 0.92em "Geist Mono", ui-monospace, monospace; color: var(--puro); }
em { font-style: normal; color: var(--puro); background: linear-gradient(transparent 62%, rgba(255,255,255,.16) 62%); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--puro); color: var(--negro); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--puro); outline-offset: 3px; border-radius: 6px; }

#stage, #actor { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
#actor { z-index: 5; }
main, .nav, .foot { position: relative; z-index: 1; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; gap: 28px;
  padding: 18px var(--pad);
  background: linear-gradient(rgba(0,0,0,.72), rgba(0,0,0,0));
  backdrop-filter: blur(0px);
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.solid { background: rgba(0,0,0,.66); backdrop-filter: blur(14px) saturate(120%); border-bottom-color: var(--gris-1); }
.brand { display: flex; align-items: center; gap: 10px; font: 600 15px Geist; letter-spacing: .04em; }
.brand-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #fff 0 18%, #f4f4f6 38%, #c9c9cf 78%, #8d8d94);
  box-shadow: 0 0 14px rgba(255,255,255,.35);
}
.nav nav { display: flex; gap: 24px; margin-left: auto; font-size: 14px; color: var(--gris-3); }
.nav nav a, .nav-ext a { transition: color .25s; }
.nav nav a:hover, .nav-ext a:hover { color: var(--puro); }
.nav-ext { display: flex; gap: 18px; font-size: 14px; color: var(--gris-3); }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: 120px var(--pad) 96px; max-width: var(--max); margin: 0 auto; position: relative;
}
.kicker { color: var(--gris-3); font-size: 13px; text-transform: uppercase; letter-spacing: .18em; margin: 0 0 22px; }
.hero-title {
  margin: 0; font-weight: 600; letter-spacing: -.045em; line-height: .92;
  font-size: clamp(54px, 10.4vw, 156px);
}
.hero-title .line { display: block; }
.hero-title .line + .line { color: var(--gris-3); }
.hero-lede { max-width: 30ch; font-size: clamp(19px, 2.1vw, 26px); line-height: 1.38; color: var(--gris-3); margin: 34px 0 0; font-weight: 400; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px;
  border: 1px solid #3a3a3e; border-radius: 999px; font-weight: 500; font-size: 15px;
  transition: transform .45s var(--spring), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px) scale(1.02); border-color: var(--puro); }
.btn:active { transform: scale(.97); }
.btn-solid { background: var(--puro); color: var(--negro); border-color: var(--puro); }
.btn-solid:hover { background: var(--blanco); }
.hint { position: absolute; left: var(--pad); bottom: 40px; margin: 0; font-size: 12px; color: var(--gris-2); }
.hint-k { color: var(--gris-3); border: 1px solid var(--gris-1); border-radius: 5px; padding: 1px 6px; }
.scroll-cue { position: absolute; right: var(--pad); bottom: 36px; width: 22px; height: 36px; border: 1.5px solid #3a3a3e; border-radius: 12px; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--puro); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 80% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- ticker ---------- */
.now { border-top: 1px solid var(--gris-1); border-bottom: 1px solid var(--gris-1); background: rgba(0,0,0,.55); backdrop-filter: blur(6px); overflow: hidden; }
.ticker { white-space: nowrap; font-size: 13px; color: var(--gris-3); text-transform: uppercase; letter-spacing: .14em; padding: 18px 0; }
.ticker-track { display: inline-flex; animation: tick 48s linear infinite; }
.ticker-track span { padding: 0 28px; position: relative; }
.ticker-track span::after { content: ""; position: absolute; right: -3px; top: 50%; width: 5px; height: 5px; margin-top: -3px; border-radius: 50%; background: var(--gris-2); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section.work, section.about, section.contact { max-width: var(--max); margin: 0 auto; padding: clamp(96px, 14vw, 180px) var(--pad) 0; }
.sec-head { display: grid; grid-template-columns: 80px 1fr; column-gap: 24px; margin-bottom: 64px; }
.sec-num { color: var(--gris-2); font-size: 13px; margin: 14px 0 0; }
.sec-head h2, .contact-title { margin: 0; font-weight: 600; letter-spacing: -.04em; line-height: 1; font-size: clamp(44px, 7vw, 96px); }
.sec-sub { grid-column: 2; max-width: 52ch; color: var(--gris-3); font-size: 18px; margin: 22px 0 0; }

/* ---------- cards ---------- */
.featured { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(20,20,22,.88), rgba(10,10,11,.92));
  border: 1px solid var(--gris-1); border-radius: 22px; overflow: hidden;
  transition: transform .6s var(--spring), border-color .35s, box-shadow .5s var(--ease);
  isolation: isolate;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 30%), rgba(255,255,255,.07), transparent 60%);
}
.card:hover { transform: translateY(-4px); border-color: #3a3a3e; box-shadow: 0 30px 80px -40px rgba(255,255,255,.12); }
.card:hover::before { opacity: 1; }
.glyph { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border-bottom: 1px solid var(--gris-1); image-rendering: auto; }
.card-xl .glyph { aspect-ratio: 16 / 8; }
.card-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.card-meta { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--gris-2); }
.card-meta span { color: var(--puro); margin-right: 10px; }
.card h3 { margin: 0 0 10px; font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.card-xl h3 { font-size: 32px; }
.card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.card p { margin: 0; color: var(--gris-3); font-size: 15.5px; line-height: 1.6; }
.card-xl p { font-size: 16.5px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 18px 0 0; font-size: 12px; }
.tags li { border: 1px solid var(--gris-1); border-radius: 999px; padding: 3px 10px; color: var(--gris-3); }
.tags a { position: relative; z-index: 3; color: var(--puro); }
.links { margin-top: auto !important; padding-top: 18px; font-weight: 500; color: var(--puro) !important; }
.group-title { margin: 88px 0 28px; font-size: 13px; text-transform: uppercase; letter-spacing: .18em; color: var(--gris-3); font-weight: 400; }
.more { margin: 40px 0 0; display: flex; justify-content: center; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 96px); padding-left: 104px; }
.about-text p { color: var(--gris-3); font-size: 18px; margin: 0 0 20px; max-width: 58ch; }
.about-text p.big { color: var(--blanco); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.25; letter-spacing: -.02em; font-weight: 500; }
.about-text strong { color: var(--puro); font-weight: 600; }
.facts { margin: 6px 0 0; font-size: 14px; }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--gris-1); }
.facts div:last-child { border-bottom: 1px solid var(--gris-1); }
.facts dt { color: var(--gris-2); text-transform: uppercase; font-size: 11.5px; letter-spacing: .14em; padding-top: 2px; }
.facts dd { margin: 0; color: var(--blanco); }

/* ---------- contact & footer ---------- */
.contact { text-align: left; padding-bottom: clamp(120px, 16vw, 200px) !important; }
.contact .sec-num { margin-bottom: 18px; }
.contact-title { font-size: clamp(52px, 9vw, 128px); max-width: 12ch; }
.contact .sec-sub { margin-top: 28px; }
.foot { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; padding: 28px var(--pad); border-top: 1px solid var(--gris-1); font-size: 12px; color: var(--gris-3); max-width: none; background: #000; }
.foot a:hover { color: var(--puro); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform 1s var(--spring); }
.reveal.in { opacity: 1; transform: none; }
[data-decode] { font-variant-ligatures: none; }
.dec { font-family: Departure, "Geist Mono", monospace; color: var(--gris-3); font-weight: 400; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; padding-left: 0; }
  .nav-ext { display: none; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .featured, .grid { grid-template-columns: 1fr; }
  .sec-head { grid-template-columns: 1fr; }
  .sec-sub { grid-column: 1; }
  .nav nav { gap: 16px; }
  .hint { display: none; }
  .card-xl h3 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track, .scroll-cue span { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn { transition: none; }
}
