/* HAIKU · v3 · ruta "Montaje". Blanco, negro y un corte azul. */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --ink: #111111;
  --paper: #ffffff;
  --mute: #77776f;
  --line: #e4e4e0;
  --blue: #2433E0;
  --blue-dark: #4A5BFF;
  --gut: clamp(16px, 3vw, 40px);
  --head: 64px;
  --sans: "Archivo", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
@media (hover: hover) { a:hover { color: var(--blue); } }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 99; }
.skip-link:focus { left: 8px; }
.label { font: 400 12px/1.4 var(--mono); letter-spacing: .02em; text-transform: uppercase; color: var(--mute); }

/* Cabecera: logo + menú siempre visible */
.site-header { position: sticky; top: 0; z-index: 40; height: var(--head); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--gut); background: var(--paper); color: var(--ink); }
.brand, .brand:hover { color: inherit; }
.logo { width: 108px; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 36px); font-size: 15px; font-weight: 500; }
.nav ol { display: flex; gap: clamp(16px, 2.6vw, 36px); }
.nav ol a { position: relative; padding: 6px 0; }
.nav ol a::before { content: ""; position: absolute; left: -9px; top: 4px; bottom: 4px; width: 3px; background: var(--blue); transform: scaleY(0); transform-origin: top; transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.nav ol a[aria-current]::before { transform: scaleY(1); }
@media (hover: hover) { .nav ol a:hover::before { transform: scaleY(1); } .nav ol a:hover { color: inherit; } }
.nav .lang { display: flex; gap: 8px; font: 400 12px var(--mono); opacity: .6; }
.nav .lang a[aria-current] { text-decoration: underline; text-underline-offset: 3px; }

/* Inicio: la cabecera flota en blanco sobre el reel */
.page-home .site-header { position: fixed; left: 0; right: 0; background: transparent; color: #fff; }
.page-home .nav ol a::before { background: var(--blue-dark); }
.page-home .logo [stroke] { stroke: var(--blue-dark); }
.page-home .logo rect { fill: var(--blue-dark); }

/* Reel a pantalla completa (mashup de las obras) */
.reel { position: relative; height: 100vh; height: 100svh; min-height: 420px; background: var(--ink); overflow: hidden; color: #fff; }
.reel-link, .reel-link:hover { position: absolute; inset: 0; color: #fff; }
.reel-still, .reel-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-video { opacity: 0; }
.reel.has-video .reel-video { opacity: 1; }
.reel-cap { position: absolute; left: var(--gut); right: var(--gut); bottom: 22px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 24px; pointer-events: none; }
.reel-cap h1 { grid-column: 1 / -1; font: 400 12px var(--mono); text-transform: uppercase; letter-spacing: .02em; color: rgba(255,255,255,.7); }
.reel-cap p { font-size: clamp(20px, 2.2vw, 30px); font-weight: 600; letter-spacing: -.02em; }
.reel-cap .n, .reel-cap .m, .reel-cap .tc { font: 400 12px var(--mono); letter-spacing: .02em; color: rgba(255,255,255,.7); }
.reel-cap .n { margin-right: 10px; }
.reel-cap .m { margin-left: 10px; }
.reel::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(transparent, rgba(0,0,0,.45)); pointer-events: none; }
.reel-cap { z-index: 2; }
.page-home .site-footer { display: none; }

/* Páginas interiores */
.page { padding: clamp(24px, 4vw, 56px) var(--gut) clamp(56px, 8vw, 120px); }
.page-title { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; margin-bottom: 20px; border-bottom: 1px solid var(--ink); font-size: clamp(44px, 8vw, 120px); font-weight: 600; letter-spacing: -.04em; line-height: .95; }

/* Work */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px) clamp(14px, 2vw, 24px); }
.work a { display: block; }
.frame { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.frame img, .frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame video { opacity: 0; transition: opacity .3s; }
.work.is-playing .frame video { opacity: 1; }
.cut { position: absolute; top: 0; bottom: 0; left: 0; width: 6px; background: var(--blue); transform: scaleY(0); transform-origin: top; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.work a:hover .cut, .work a:focus-visible .cut { transform: scaleY(1); }
.cap { display: grid; grid-template-columns: 2.6em 1fr auto; align-items: baseline; gap: 8px; padding-top: 12px; }
.cap .n, .cap .m { font: 400 12px var(--mono); color: var(--mute); }
.cap .t { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.work a:hover .t { color: var(--blue); }

/* About */
.statement { max-width: 1100px; padding-bottom: clamp(48px, 7vw, 96px); font-size: clamp(26px, 3.4vw, 46px); font-weight: 500; line-height: 1.12; letter-spacing: -.02em; }
.block { display: grid; grid-template-columns: 1fr 3fr; gap: 24px; padding: 16px 0 clamp(40px, 6vw, 80px); border-top: 1px solid var(--ink); }
.rows li { display: grid; grid-template-columns: 2.6em 14em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rows li:first-child { padding-top: 0; }
.rows .n { font: 400 12px/1.9 var(--mono); color: var(--mute); }
.rows b { font-weight: 600; }
.rows span:last-child { color: #444; }
.lead { font-size: clamp(18px, 1.8vw, 24px); max-width: 30em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child summary { padding-top: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 12px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 16px var(--mono); color: var(--mute); }
.faq details[open] summary::after { content: "–"; }
.faq p { padding: 0 0 16px; max-width: 40em; color: #444; }

/* Contact */
.contact-ask { margin-top: clamp(32px, 6vw, 80px); font: 400 12px var(--mono); text-transform: uppercase; color: var(--mute); }
.contact-mail { display: inline-block; margin-top: 10px; font-size: clamp(32px, 6.4vw, 96px); font-weight: 600; letter-spacing: -.03em; line-height: 1; overflow-wrap: anywhere; }
.contact-note { margin-top: 16px; color: var(--mute); }
.contact-rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: clamp(56px, 8vw, 120px); padding-top: 16px; border-top: 1px solid var(--ink); }
.contact-rows dd { margin-top: 6px; font-size: 18px; display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* Ficha de obra */
.film { margin: 0 var(--gut); background: var(--ink); }
.film video { width: 100%; height: auto; max-height: calc(100vh - 120px); aspect-ratio: 16 / 9; }
.case { padding: 24px var(--gut) clamp(48px, 8vw, 112px); }
.case h1 { margin-top: 28px; font-size: clamp(36px, 6vw, 84px); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.case-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); }
.case dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; align-content: start; }
.case dt { font: 400 12px/1.8 var(--mono); text-transform: uppercase; color: var(--mute); }
.case-text { max-width: 38em; font-size: 18px; }
.case-text p + p { margin-top: 1em; }
.next { display: flex; flex-direction: column; gap: 6px; margin-top: clamp(56px, 8vw, 112px); padding-top: 16px; border-top: 1px solid var(--ink); }
.next .t { font-size: clamp(28px, 4vw, 52px); font-weight: 600; letter-spacing: -.02em; }
.crumbs @media (hover: hover) { a:hover { color: var(--blue); } }

/* Páginas de texto */
.text { max-width: 800px; }
.text h1 { margin: 10px 0 24px; font-size: clamp(30px, 4vw, 52px); font-weight: 600; letter-spacing: -.02em; line-height: 1.05; }
.text h2 { margin: 28px 0 8px; font-size: 18px; }
.text p { margin-bottom: 12px; }
.text p a { text-decoration: underline; }
.text .todo { padding: 12px 14px; border-left: 4px solid var(--blue); background: #f4f4f2; }

/* Pie */
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin: 0 var(--gut); padding: 16px 0 20px; border-top: 1px solid var(--line); font: 400 12px var(--mono); color: var(--mute); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }

@media (max-width: 760px) {
  :root { --head: 56px; }
  .logo { width: 88px; }
  .film { margin: 0; }
  .grid, .case-grid, .block, .contact-rows { grid-template-columns: 1fr; }
  .rows li { grid-template-columns: 2.6em 1fr; }
  .rows span:last-child { grid-column: 2; }
  .cap { grid-template-columns: 2.6em 1fr; row-gap: 2px; }
  .cap .m { grid-column: 2; }
  .reel-cap { grid-template-columns: 1fr; }
  .reel-cap .m { display: block; margin: 4px 0 0; }
  .nav, .nav ol { gap: 12px; font-size: 14px; }
  .nav .lang { gap: 4px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
