@font-face { font-family: "Geist Pixel"; src: url("https://cdn.jsdelivr.net/npm/geist@1.9.2/dist/fonts/geist-pixel/GeistPixel-Square.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
/* Kevin Bahamondez — Audiovisual. Estética "sala de edición": negro cinematográfico, tipografía ancha, datos de cámara en mono. */
:root {
  --bg: #0b0b0a;
  --panel: #141412;
  --panel-2: #1b1b18;
  --ink: #edece6;
  --body: #c9c8c1;
  --muted: #8b8a83;
  --line: #2a2a26;
  --rec: #ff4a26;
  --wide: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Pixel", "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --g: clamp(16px, 4vw, 56px);
  --max: 1440px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--body); font: 400 16px/1.6 var(--wide); font-stretch: 100%; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--rec); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; }
.skip:focus { left: 8px; }
.mini, .eyebrow, .ch-n, .tags li, .reel-head p, figcaption span, .rec, .hero-meta, .btn, .bar nav a, .bar-cta, .yr {
  font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
}

/* ---------- Barra ---------- */
.bar { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px var(--g); background: linear-gradient(#0b0b0acc, #0b0b0a00); transition: background .3s; }
.bar.is-solid { background: #0b0b0af2; border-bottom: 1px solid var(--line); }
.brand { font-weight: 800; font-stretch: 125%; font-size: 18px; letter-spacing: .02em; color: var(--ink); text-decoration: none; }
.brand span { color: var(--rec); margin: 0 2px; }
.bar nav { display: flex; gap: 26px; }
.bar nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.bar nav a:hover, .bar nav a.is-on { color: var(--ink); }
.bar-r { display: flex; align-items: center; gap: 18px; }
.rec { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-variant-numeric: tabular-nums; }
#tc { display: inline-block; width: 12ch; white-space: nowrap; }
.tl-tc { display: inline-block; width: 12ch; text-align: left; white-space: nowrap; }
.rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--rec); animation: blink 1.2s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.bar-cta { text-decoration: none; color: var(--bg); background: var(--ink); padding: 9px 16px; border-radius: 2px; }
.bar-cta:hover { background: var(--rec); color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-img, .hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img img { object-fit: cover; object-position: 30% 40%; filter: grayscale(1) contrast(1.05); transform: scale(1.06); animation: settle 2.4s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes settle { to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, #0b0b0a66 0%, #0b0b0a00 30%, #0b0b0a33 55%, #0b0b0af0 100%); }
.vf { position: absolute; inset: 84px var(--g) 28px; z-index: 1; pointer-events: none; }
.vf i { position: absolute; width: 28px; height: 28px; border: 0 solid #edece699; }
.vf i:nth-child(1) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.vf i:nth-child(2) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.vf i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.vf i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.hero-meta { position: absolute; z-index: 2; top: 100px; right: calc(var(--g) + 18px); display: grid; gap: 4px; text-align: right; color: #edece6b3; }
.hero-txt { position: relative; z-index: 2; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 calc(var(--g) + 18px) clamp(48px, 8vh, 90px); }
.eyebrow { color: var(--ink); margin: 0 0 18px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--rec); }
h1 { margin: 0; color: var(--ink); font-weight: 850; font-stretch: 125%; text-transform: uppercase; line-height: .86; letter-spacing: -.02em; font-size: clamp(46px, 10.4vw, 168px); }
h1 span { display: block; }
h1 span:last-child { font-weight: 300; font-stretch: 112%; color: #edece6d0; }
.hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-top: 26px; }
.hero-row p { max-width: 460px; margin: 0; font-size: 17px; color: var(--body); }
.hero-row p a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--rec); }
.scroll { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; flex: none; }
.scroll svg { width: 40px; height: 40px; padding: 9px; border: 1px solid #edece666; border-radius: 50%; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform .3s; }
.scroll:hover svg { transform: translateY(4px); border-color: var(--rec); }

/* ---------- Intro + pistas ---------- */
.intro, .ch, .brands, .contact { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 12vw, 150px) var(--g) 0; }
.lead { margin: 0; max-width: 1100px; color: var(--ink); font-weight: 300; font-stretch: 100%; font-size: clamp(28px, 4.2vw, 60px); line-height: 1.08; letter-spacing: -.015em; }
.lead em { font-style: normal; font-weight: 750; font-stretch: 125%; }

/* ---------- Línea de tiempo ---------- */
.tl { margin-top: clamp(48px, 7vw, 84px); background: #101010; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; box-shadow: 0 30px 80px -40px #000; }
.tl-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; background: #171716; border-bottom: 1px solid var(--line); font: 400 12px var(--mono); letter-spacing: .06em; color: var(--muted); }
.tl-seq { display: inline-flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-seq i { width: 8px; height: 8px; border-radius: 1px; background: var(--rec); flex: none; }
.tl-tc { color: var(--rec); font-size: 18px; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.tl-body { position: relative; padding: 0 0 6px; --tk: 52px; }
.lane { display: grid; grid-template-columns: var(--tk) minmax(0, 1fr); border-bottom: 1px solid #1d1d1b; }
.tk { display: grid; place-items: center; font: 500 12px var(--mono); color: var(--muted); background: #141413; border-right: 1px solid var(--line); }
.lane-in { position: relative; height: clamp(58px, 7vw, 82px); background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), #ffffff08 calc(10% - 1px) 10%); }
.ruler .lane-in { height: 30px; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 0 4px; font: 400 11px var(--mono); color: var(--muted);
  background: repeating-linear-gradient(90deg, #3a3a36 0 1px, transparent 1px 2.5%) bottom / 100% 6px no-repeat, repeating-linear-gradient(90deg, #4a4a45 0 1px, transparent 1px 25%) bottom / 100% 12px no-repeat; }
.ruler .lane-in span { padding: 0 4px 6px; }
.ruler { border-bottom: 1px solid var(--line); }
.clip { position: absolute; top: 7px; bottom: 7px; left: var(--x); width: var(--w); display: block; border-radius: 4px; overflow: hidden; text-decoration: none;
  background: var(--c); box-shadow: inset 0 0 0 1px #ffffff40; transition: transform .25s, filter .25s, box-shadow .25s; }
.clip::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: #ffffff59; z-index: 2; }
.strip { position: absolute; inset: 0; display: flex; opacity: .55; mix-blend-mode: luminosity; filter: contrast(1.1); transition: opacity .3s; }
.strip img { flex: 1 0 64px; min-width: 64px; height: 100%; object-fit: cover; border-right: 1px solid #0006; }
.clip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--c) 0%, transparent 75%); opacity: .9; }
.clip-lbl { position: absolute; z-index: 3; left: 10px; right: 30px; bottom: 7px; display: grid; line-height: 1.15; }
.clip-lbl b { color: #fff; font-weight: 700; font-stretch: 110%; font-size: clamp(13px, 1.4vw, 18px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 8px #0008; }
.clip-lbl small { color: #ffffffd0; font: 400 11px var(--mono); letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clip-n { position: absolute; z-index: 3; right: 8px; top: 9px; font: 500 11px var(--mono); color: #fffc; }
.clip:hover, .clip:focus-visible { transform: translateY(-2px); filter: brightness(1.15); box-shadow: inset 0 0 0 1px #fff9, 0 10px 24px -10px #000; z-index: 4; }
.clip:hover .strip { opacity: .85; }
.lane--a .lane-in { height: 44px; }
.wave { position: absolute; inset: 6px 0; width: 100%; height: calc(100% - 12px); }
.wave rect { fill: #4c8f8a; }
.playhead { position: absolute; top: 0; bottom: 0; left: calc(var(--tk) + (100% - var(--tk)) * var(--ph, 0)); width: 2px; margin-left: -1px; background: var(--rec); z-index: 6; pointer-events: none; transition: left .45s cubic-bezier(.3,.7,.2,1); }
.playhead.is-run { transition: none; }
.playhead::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); border: 7px solid transparent; border-top: 10px solid var(--rec); }
.tl-hint { margin: 0; padding: 8px 14px 10px; font: 400 12px var(--mono); color: var(--muted); letter-spacing: .04em; border-top: 1px solid var(--line); }

.mb { display: none; }

/* ---------- Capítulos ---------- */
.ch-head { display: grid; grid-template-columns: minmax(80px, 180px) minmax(0, 1fr); gap: clamp(16px, 4vw, 60px); padding-top: 26px; border-top: 1px solid var(--line); margin-bottom: clamp(36px, 5vw, 64px); }
.ch-n { margin: 6px 0 0; color: var(--rec); }
h2 { margin: 0; color: var(--ink); font-weight: 820; font-stretch: 125%; text-transform: uppercase; line-height: .92; letter-spacing: -.02em; font-size: clamp(38px, 6.4vw, 96px); }
.ch-txt { max-width: 640px; margin: 22px 0 0; font-size: clamp(16px, 1.3vw, 18px); }
.tags { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { border: 1px solid var(--line); color: var(--body); padding: 7px 11px; border-radius: 2px; letter-spacing: .04em; }
figure { margin: 0; }
figcaption { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; }
figcaption b { color: var(--ink); font-weight: 600; font-size: 15px; }
figcaption span { color: var(--muted); }

.dir-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.ph img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--panel); }
.ph--a { grid-column: 1 / 8; } .ph--b { grid-column: 8 / 13; align-self: end; }
.ph--c { grid-column: 3 / 11; } .ph--c img { aspect-ratio: 16/9; }
.awards { margin-top: clamp(48px, 6vw, 80px); }
.awards ul { list-style: none; padding: 0; margin: 16px 0 0; border-top: 1px solid var(--line); }
.awards li { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 20px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.awards b { display: block; color: var(--ink); font-weight: 600; font-size: clamp(17px, 1.6vw, 22px); }
.awards div span { color: var(--muted); font-size: 14px; }
.awards a { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rec); padding-bottom: 2px; }
.yr { color: var(--rec); }
.mini { color: var(--muted); margin: 0; }

/* Tiras de frames (scroll horizontal con letterbox) */
.reel + .reel { margin-top: clamp(40px, 5vw, 64px); }
.reel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 14px; }
.reel-head h4 { margin: 0; color: var(--ink); font-weight: 750; font-stretch: 115%; text-transform: uppercase; font-size: clamp(18px, 2vw, 26px); }
.reel-head p { margin: 0; color: var(--muted); }
.reel-track, .caps { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; scrollbar-color: #3a3a35 transparent;
  margin-right: calc(-1 * var(--g)); padding-right: var(--g); }
.fr { flex: 0 0 min(78vw, 820px); scroll-snap-align: start; }
.zoom { display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: zoom-in; }
.fr img { width: 100%; aspect-ratio: 2.39/1; object-fit: cover; transition: opacity .3s, transform .6s; }
.fr .zoom { overflow: hidden; }
.fr .zoom:hover img { transform: scale(1.02); }
.fr figcaption span:first-child { color: var(--body); }

/* Antes / después */
.ba-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.ba { grid-column: 1 / -1; }
.ba--v { grid-column: 2 / 4; }
.ba--v + .ba--v { grid-column: 4 / 6; }
.ba-stage { position: relative; overflow: hidden; background: #000; touch-action: pan-y; }
.ba-stage img { width: 100%; aspect-ratio: 16/9; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.ba--v .ba-stage img { aspect-ratio: 4/5; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.ba-before img { height: 100%; }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--p); width: 2px; margin-left: -1px; background: var(--ink); pointer-events: none; }
.ba-line::after { content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 18px; }
.ba-tag { position: absolute; top: 14px; font: 500 11px var(--mono); letter-spacing: .1em; padding: 5px 8px; background: #0b0b0ab3; color: var(--ink); pointer-events: none; }
.ba-tag--l { left: 14px; } .ba-tag--r { right: 14px; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }

/* Motion */
.mo-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.mo { grid-column: span 2; }
.mo:nth-child(-n+2) { grid-column: span 3; }
.mo-frame { background: var(--panel); padding: clamp(8px, 1vw, 14px); border: 1px solid var(--line); }
.mo-frame img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.caps-wrap { margin-top: clamp(48px, 6vw, 80px); }
.cap { flex: 0 0 min(64vw, 440px); scroll-snap-align: start; }
.cap img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* Marcas */
.brands { padding-top: clamp(40px, 5vw, 64px); }
.brands .mini { font-weight: 400; font-stretch: 100%; text-transform: uppercase; line-height: 1.4; font-size: 12px; letter-spacing: .08em; margin-bottom: 28px; }
.marquee { overflow: hidden; border-block: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); --s: 1; }
.mq-track { display: flex; width: max-content; animation: slide 45s linear infinite; will-change: transform; backface-visibility: hidden; }
.marquee ul { list-style: none; margin: 0; padding: 30px 0; display: flex; align-items: center; gap: 72px; padding-right: 72px; flex: none; }
.marquee li { flex: none; display: flex; align-items: center; }
.marquee li img { width: calc(var(--w) * var(--s)); height: auto; max-width: none; opacity: .78; }
@keyframes slide { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
.marquee:hover .mq-track { animation-play-state: paused; }
@media (max-width: 600px) { .marquee { --s: .72; } .marquee ul { gap: 44px; padding-right: 44px; padding-block: 22px; } .mq-track { animation-duration: 32s; } }

/* Contacto */
.contact { padding-bottom: clamp(80px, 10vw, 140px); }
.contact h2 { font-size: clamp(44px, 9vw, 150px); margin-top: 18px; }
.contact h2 span { font-weight: 300; font-stretch: 112%; color: var(--muted); }
.ct-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(32px, 4vw, 52px); }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border: 1px solid #edece655; color: var(--ink); text-decoration: none; border-radius: 2px; transition: background .2s, border-color .2s, color .2s; }
.btn:hover { border-color: var(--ink); }
.btn--solid { background: var(--rec); border-color: var(--rec); color: #fff; }
.btn--solid:hover { background: #ff6a4a; border-color: #ff6a4a; }

.foot { max-width: var(--max); margin: 0 auto; padding: 26px var(--g) 36px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font: 400 12px var(--mono); color: var(--muted); letter-spacing: .04em; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot a { text-decoration: none; } .foot a:hover { color: var(--ink); }

/* Lightbox */
.lb { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #050505f5; }
.lb[open] { display: grid; place-items: center; }
.lb::backdrop { background: #000c; }
.lb img { max-width: 94vw; max-height: 86vh; object-fit: contain; }
.lb button { position: absolute; background: none; border: 1px solid #edece644; color: var(--ink); width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font-size: 18px; }
.lb button:hover { border-color: var(--ink); }
.lb-x { top: 18px; right: 18px; } .lb-prev { left: 18px; top: 50%; } .lb-next { right: 18px; top: 50%; }

/* Aparición */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .bar nav { display: none; }
  .hero-meta { display: none; }
  .hero-row { flex-direction: column; align-items: flex-start; }
  .ch-head { grid-template-columns: 1fr; gap: 8px; }
  .ph--a, .ph--b, .ph--c { grid-column: 1 / -1; }
  .mo, .mo:nth-child(-n+2) { grid-column: span 3; }
  .mo:last-child { grid-column: 1 / -1; }
  .ba--v, .ba--v + .ba--v { grid-column: span 3; }
  .awards li { grid-template-columns: 56px minmax(0, 1fr); }
  .awards li a { grid-column: 2; justify-self: start; }
}
@media (max-width: 600px) {
  .tl-body { --tk: 34px; }
  .clip-lbl small, .clip-n, .dk { display: none; }
  .mb { display: inline; }
  .clip-lbl { left: 7px; right: 6px; }
  .tl-top { font-size: 10px; }
  .rec span { display: none; }
  .vf { inset: 70px 16px 18px; }
  .hero-txt { padding-inline: 28px; }
  h1 { font-size: 10.6vw; }
  .hero-img img { object-position: 64% 40%; }
  .mo-grid { grid-template-columns: 1fr; }
  .mo, .mo:nth-child(-n+2) { grid-column: auto; }
  .ba-grid { gap: 10px; }
  .ba--v figcaption { flex-direction: column; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}
