/* ==========================================================================
   CRU — estilos
   Tipografía display: Neue Haas Grotesk Display Pro Light si tienes licencia
   web (Adobe Fonts / Monotype). Mientras, Inter Tight 300 como sustituta.
   Para cambiarla basta con editar --font-display.
   Accesibilidad: foco visible con teclado y contraste AA en textos secundarios.
   ========================================================================== */

/* Tipografías alojadas localmente (sin Google Fonts → sin enviar la IP del visitante a terceros) */
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --bg: #ffffff;
  --fg: #0b0b0b;
  --muted: color-mix(in srgb, var(--fg) 62%, transparent);  /* contraste AA */
  --line: color-mix(in srgb, var(--fg) 14%, transparent);

  --font-display: "neue-haas-grotesk-display", "Neue Haas Grotesk Display Pro", "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --font-serif: "Instrument Serif", "Times New Roman", serif;
  --accent: #5F6840;   /* verde oliva de SUMM: color de acento de la marca */

  --pad: clamp(16px, 2.2vw, 32px);
  --gap: clamp(12px, 1.6vw, 24px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.23, 1, .32, 1);       /* respuesta inmediata: hover, pulsar, menús */
  --press: .97;                                    /* escala al pulsar botones */
  --theme-speed: .9s;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
section[id] { scroll-margin-top: 54px; }
body {
  margin: 0;
  background: transparent;
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--theme-speed) var(--ease), color var(--theme-speed) var(--ease);
}
img, video { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
/* Palabras clave: cursiva serif (marcadas con *asteriscos* en data.js) */
strong { font-weight: 400; }
em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: 0; font-size: 1.08em; line-height: 0; }
::selection { background: var(--fg); color: var(--bg); }

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .02em;
  text-transform: uppercase;
  line-height: 1.5;
}
.muted { color: var(--muted); }

/* ------------------------------------------------------------------ header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px var(--pad);
  color: var(--fg);
  /* Cabecera fija con cristal semitransparente que toma el color del fondo */
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.1); backdrop-filter: blur(18px) saturate(1.1);
  border-bottom: 1px solid var(--line);
  transition: color var(--theme-speed) var(--ease), background-color var(--theme-speed) var(--ease), border-color var(--theme-speed) var(--ease);
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.logo { font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -.02em; line-height: 1; }
.logo svg { height: 26px; width: auto; fill: currentColor; display: block; }
.site-header nav { display: flex; gap: 22px; }
.site-header nav .ext { color: var(--muted); }
.site-header nav .ext:hover { color: var(--fg); }
.link-u { position: relative; }
.link-u::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.link-u:focus-visible::after { transform: scaleX(1); transform-origin: left; }
@media (hover: hover) and (pointer: fine) { .link-u:hover::after { transform: scaleX(1); transform-origin: left; } }

/* -------------------------------------------------------------------- hero */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--pad) * 5) var(--pad) var(--pad);
}
.hero h1 {
  margin: 0; max-width: 15ch;
  font-weight: 300; font-size: clamp(44px, 8.4vw, 150px);
  line-height: .95; letter-spacing: -.045em;
}
.hero-foot {
  margin-top: clamp(32px, 6vw, 80px);
  display: flex; justify-content: space-between; gap: var(--gap); flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 12px;
}

/* ------------------------------------------------------------------- works */
.works { padding: 0 var(--pad) clamp(80px, 12vw, 180px); }
.works-intro { margin: 0; max-width: 46ch; text-transform: none; font-family: var(--font-display); font-size: 17px; letter-spacing: 0; line-height: 1.45; color: var(--muted); }
.works-head {
  display: flex; justify-content: space-between; gap: var(--gap); align-items: baseline;
  padding: 0 0 var(--gap); margin-bottom: clamp(24px, 4vw, 56px);
}
.filters { display: flex; gap: 18px; flex-wrap: wrap; }
.filters button {
  all: unset; cursor: pointer; font: inherit; color: var(--muted);
  padding: 6px 0; transition: color .2s ease, transform .16s var(--ease-out);
}
.filters button:active { transform: scale(var(--press)); }
.filters button:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }
.filters button[aria-pressed="true"], .filters button:hover { color: var(--fg); }
.filters sup { font-size: 9px; margin-left: 2px; }

.grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap); row-gap: clamp(48px, 7vw, 110px);
  align-items: start;
}
/* Ritmo asimétrico tipo editorial */
.tile { grid-column: span 6; transition: opacity .5s var(--ease); }
.tile.size-l { grid-column: span 7; }
.tile.size-m { grid-column: span 5; }
.tile.size-s { grid-column: span 4; }
.grid .tile:nth-child(4n+2) { margin-top: clamp(60px, 14vw, 240px); }
.grid .tile:nth-child(4n+3).size-m,
.grid .tile:nth-child(4n+3).size-s { grid-column: 2 / span 5; }
.tile.is-hidden { display: none; }

.tile-media {
  position: relative; overflow: hidden;
  background: color-mix(in srgb, var(--fg) 6%, var(--bg));
}
.tile-media img, .tile-media video {
  position: absolute; inset: 0;
  transform: scale(1.001); transition: transform 1.1s var(--ease), opacity .6s;
}
@media (hover: hover) and (pointer: fine) {
  .tile:hover .tile-media img, .tile:hover .tile-media video { transform: scale(1.025); }
}
.tile:focus-visible { outline: none; }
.tile:focus-visible .tile-media { outline: 1px solid var(--fg); outline-offset: 4px; }
.tile-meta {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px;
  padding-top: 12px;
}
.tile-title { font-size: clamp(20px, 1.7vw, 28px); letter-spacing: -.02em; line-height: 1.05; }
.tile-meta .mono { align-self: end; }

/* Fallback si una imagen no carga: bloque tintado con el color del proyecto */
.media-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.7); }

/* Etiqueta "view" que sigue al cursor */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
  padding: 7px 11px; border-radius: 999px;
  background: var(--fg); color: var(--bg);
  opacity: 0; transform: translate(-50%, -50%) scale(.6);
  transition: transform .22s var(--ease-out), opacity .18s ease;
}
.cursor.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (hover: none) { .cursor { display: none; } }

/* ------------------------------------------------------------------- about */
.about { padding: clamp(100px, 14vw, 220px) var(--pad) clamp(40px, 5vw, 80px); }
.about-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.about-label { grid-column: 1 / span 3; }
.about-text {
  grid-column: 4 / span 9; margin: 0;
  font-size: clamp(26px, 3.2vw, 52px); line-height: 1.2; letter-spacing: -.005em; word-spacing: .04em;
}
.about-more {
  grid-column: 4 / span 5; margin: clamp(40px, 5vw, 72px) 0 0;
  font-size: 18px; line-height: 1.55; letter-spacing: .005em; color: var(--muted);
}
.skills {
  margin-top: clamp(80px, 10vw, 160px);
  display: flex; justify-content: space-between; gap: var(--gap);
  border-top: 1px solid var(--line); padding-top: 16px;
}
.skill { flex: 0 1 auto; }
.skill h3 { margin: 0 0 14px; font-family: var(--font-display); text-transform: none; font-weight: 300; font-size: 24px; letter-spacing: -.02em; }
.skill ul { list-style: none; margin: 0; padding: 0; font-family: var(--font-display); font-size: 15px; text-transform: none; letter-spacing: 0; line-height: 1.6; }
.skill li { color: var(--muted); }

/* ----------------------------------------------------------------- contact */
.contact { padding: clamp(48px, 6vw, 100px) var(--pad) var(--pad); }
.contact .closing { margin: 0 0 clamp(30px, 4vw, 60px); }
.big-link {
  display: inline-block;
  font-size: clamp(56px, 13vw, 240px); line-height: .9; letter-spacing: -.055em;
}
.big-link span { display: inline-block; transition: transform .6s var(--ease); }
@media (hover: hover) and (pointer: fine) { .big-link:hover span { transform: translateX(.08em); } }
.contact-grid { margin-top: clamp(40px, 6vw, 90px); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); border-top: 1px solid var(--line); padding-top: 14px; }
.copy { all: unset; cursor: pointer; margin-left: 10px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; font-size: 10px; transition: color .2s ease, border-color .2s ease, transform .16s var(--ease-out); }
.copy:hover { color: var(--fg); border-color: currentColor; }
.copy:active { transform: scale(var(--press)); }
.copy:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }
.photo-cta { padding: 0 var(--pad) clamp(80px, 10vw, 160px); }
.photo-cta-link { display: grid; gap: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.photo-cta-title { font-size: clamp(36px, 6vw, 104px); line-height: .98; letter-spacing: -.045em; max-width: 16ch; transition: transform .8s var(--ease); }
@media (hover: hover) and (pointer: fine) { .photo-cta-link:hover .photo-cta-title { transform: translateX(1.2vw); } }

.site-footer {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap);
  padding: clamp(60px, 8vw, 120px) var(--pad) var(--pad);
}
.site-footer > :nth-child(1) { grid-column: 1 / span 3; }
.site-footer > :nth-child(2) { grid-column: 4 / span 3; }
.site-footer > :nth-child(3) { grid-column: 7 / span 3; display: flex; flex-direction: column; }
.site-footer > :nth-child(4) { grid-column: 10 / span 3; justify-self: end; text-align: right; }
.footer-logo {
  grid-column: 1 / -1 !important; margin-top: clamp(40px, 6vw, 90px);
  font-weight: 500; font-size: 30vw; line-height: .74; letter-spacing: -.06em;
}
.footer-logo svg { width: 100%; height: auto; fill: currentColor; }

/* ============================================================ PROJECT PAGE */
.p-head { padding: calc(var(--pad) * 5) var(--pad) clamp(28px, 4vw, 56px); }
.p-head .back { display: inline-block; margin-bottom: clamp(40px, 8vw, 120px); }
.p-title {
  margin: 0; font-weight: 300;
  font-size: clamp(52px, 11vw, 200px); line-height: .9; letter-spacing: -.055em;
}
.p-meta {
  margin-top: clamp(32px, 5vw, 72px);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap);
  border-top: 1px solid var(--line); padding-top: 12px;
}
.p-meta > div { grid-column: span 3; }
.p-meta dt { color: var(--muted); }
.p-meta dd { margin: 0; }

.p-hero { position: relative; width: 100%; height: 100vh; height: 100svh; overflow: hidden; background: color-mix(in srgb, var(--fg) 6%, var(--bg)); }

.p-intro {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap);
  padding: clamp(80px, 11vw, 180px) var(--pad);
}
.p-intro .mono { grid-column: 1 / span 3; }
.p-intro-body { grid-column: 4 / span 8; }
.p-intro-body p + p, .b-text-body p + p { margin-top: 1em !important; }
.p-intro p {
  margin: 0;
  font-size: clamp(19px, 1.75vw, 28px); line-height: 1.32; letter-spacing: -.012em;
}

.blocks > * + * { margin-top: var(--gap); }
.b-full { position: relative; width: 100%; }
.b-full .ph, .b-video .ph { aspect-ratio: 16/9; }
.b-inset { padding: clamp(60px, 9vw, 160px) var(--pad); display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.b-inset figure { grid-column: 4 / span 6; margin: 0; }
.b-inset .ph { aspect-ratio: 4/5; }
.b-pair, .b-trio { display: grid; gap: var(--gap); padding: 0 var(--pad); }
.b-pair { grid-template-columns: 1fr 1fr; }
.b-trio { grid-template-columns: repeat(3, 1fr); }
.b-pair .ph, .b-trio .ph { aspect-ratio: 4/5; }
.ph { position: relative; overflow: hidden; background: color-mix(in srgb, var(--fg) 6%, var(--bg)); }
.ph img, .ph video { position: absolute; inset: 0; }
.ph.natural { aspect-ratio: auto !important; }
.ph.natural img, .ph.natural video { position: static; height: auto; }
.b-inset.wide figure { grid-column: 3 / span 8; }
.b-inset.narrow figure { grid-column: 5 / span 4; }
.p-hero-alt { padding-bottom: var(--gap); }
.p-hero-alt .b-full .ph { max-height: 100vh; }
.sound:active { transform: scale(var(--press)); }
.sound { all: unset; cursor: pointer; transition: transform .16s var(--ease-out), background-color .2s ease; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; position: absolute; right: 12px; bottom: 12px; z-index: 2; padding: 6px 11px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ph.natural .sound { position: absolute; }
.skill-note { display: inline-block; margin-top: 22px; max-width: 26ch; text-transform: none; font-family: var(--font-display); font-size: 15px; letter-spacing: 0; color: var(--fg); line-height: 1.45; }
.about-photo { margin: 24px 0 0; width: min(100%, 220px); aspect-ratio: 4/5; overflow: hidden; }
.about-photo img { filter: grayscale(1); transition: filter .8s var(--ease); }
@media (hover: hover) and (pointer: fine) { .about-photo:hover img { filter: none; } }
figcaption { padding-top: 10px; }

.b-text { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding: clamp(70px, 9vw, 150px) var(--pad); }
.b-text .mono { grid-column: 1 / span 3; }
.b-text-body { grid-column: 4 / span 6; }
.b-text p { margin: 0; font-size: 16px; line-height: 1.6; }
.b-quote { padding: clamp(100px, 14vw, 240px) var(--pad); }
.b-quote p { margin: 0; max-width: 20ch; font-size: clamp(30px, 4.4vw, 76px); line-height: 1.04; letter-spacing: -.04em; }
.b-marker { height: 1px; margin: 0 !important; }

.p-credits { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding: clamp(80px, 10vw, 160px) var(--pad); }
.p-credits .mono:first-child { grid-column: 1 / span 3; }
.p-credits dl { grid-column: 4 / span 6; margin: 0; display: grid; grid-template-columns: 1fr 1fr; row-gap: 6px; border-top: 1px solid var(--line); padding-top: 12px; }
.p-credits dt { color: var(--muted); }
.p-credits dd { margin: 0; }

.p-next { display: block; padding: clamp(60px, 8vw, 120px) var(--pad) var(--pad); border-top: 1px solid var(--line); }
.p-next .row { display: flex; justify-content: space-between; align-items: end; gap: var(--gap); }
.p-next .t { font-size: clamp(52px, 11vw, 200px); line-height: .9; letter-spacing: -.055em; transition: transform .8s var(--ease); }
@media (hover: hover) and (pointer: fine) { .p-next:hover .t { transform: translateX(1.5vw); } }
.p-next .thumb { width: clamp(120px, 18vw, 300px); aspect-ratio: 4/5; position: relative; overflow: hidden; flex: none; }
.p-next .thumb img { position: absolute; inset: 0; }

/* ------------------------------------------------------------- animations */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }
.split-line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.split-line > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.is-ready .split-line > span { transform: none; }
.split-line:nth-child(2) > span { transition-delay: .07s; }
.split-line:nth-child(3) > span { transition-delay: .14s; }
.split-line:nth-child(4) > span { transition-delay: .21s; }

.curtain {
  position: fixed; inset: 0; z-index: 100; background: var(--fg);
  transform: translateY(0); transition: transform .65s var(--ease-out);
  pointer-events: none;
}
.is-ready .curtain { transform: translateY(-100%); }
.is-leaving .curtain { transform: translateY(0); transition: transform .42s cubic-bezier(.77, 0, .175, 1); }
.curtain.from-bottom { transform: translateY(100%); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ----------------------------------------------------------------- mobile */
@media (max-width: 760px) {
  .site-header nav { gap: 14px; }
  .b-inset.narrow figure, .b-inset.wide figure { grid-column: 1 / -1; }
  .site-header nav .ext { display: none; }
  .skills { flex-wrap: wrap; }
  .skills .skill { flex: 1 1 45%; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-foot { flex-direction: column; gap: 4px; }
  .hero { min-height: auto; padding-top: 112px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 18px; white-space: nowrap; max-width: 100%;
    padding-right: 32px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
  .filters button { padding: 12px 0; }
  .copy { padding: 8px 12px; }
  .contact-grid a.link-u { display: inline-block; padding: 6px 0; }
  .filters::-webkit-scrollbar { display: none; }
  .works-head { flex-direction: column; gap: 12px; }
  .tile, .tile.size-l, .tile.size-m, .tile.size-s,
  .grid .tile:nth-child(4n+3).size-m, .grid .tile:nth-child(4n+3).size-s { grid-column: 1 / -1; margin-top: 0 !important; }
  .about-label, .about-text, .about-more, .p-intro-body, .b-text-body, .skill, .p-intro .mono, .p-intro p, .b-text .mono, .b-text p,
  .p-credits .mono:first-child, .p-credits dl, .b-inset figure { grid-column: 1 / -1; }
  .skill { grid-column: span 6; margin-bottom: 28px; }
  .p-meta > div { grid-column: span 6; margin-bottom: 10px; }
  .b-trio { grid-template-columns: 1fr; }
  .site-footer > * { grid-column: span 6 !important; margin-bottom: 20px; }
  .site-footer > :nth-child(4) { justify-self: start; text-align: left; }
  .p-next .thumb { display: none; }
}

/* ---------------------------------------------------------- nav dropdown */
.nav-works { position: relative; }
.nav-drop {
  position: absolute; top: 100%; right: -16px; padding-top: 18px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s var(--ease-out), transform .2s var(--ease-out), visibility .2s;
}
.nav-works:hover .nav-drop, .nav-works:focus-within .nav-drop { opacity: 1; visibility: visible; transform: none; }
.nav-drop ul {
  list-style: none; margin: 0; padding: 10px 0; min-width: 340px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid var(--line);
}
.nav-drop a { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; padding: 7px 16px; transition: background-color .15s ease; }
.nav-drop a:hover { background: color-mix(in srgb, var(--fg) 7%, transparent); }
.nav-drop a > span:last-child { font-size: 10px; }
@media (hover: none) { .nav-drop { display: none; } }

/* -------------------------------------------------------------- hero reel */
.hero-top { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--gap); }
.hero-reel { flex: none; width: clamp(150px, 19vw, 300px); }
.reel-frame { display: block; position: relative; aspect-ratio: 4/5; overflow: hidden; background: color-mix(in srgb, var(--fg) 6%, var(--bg)); }
.reel-frame img { position: absolute; inset: 0; opacity: 0; transition: opacity .5s var(--ease); }
.reel-frame img.on { opacity: 1; }
.reel-label { display: block; margin-top: 10px; }
@media (max-width: 760px) {
  .hero-top { flex-direction: column-reverse; align-items: stretch; }
  .hero-reel { width: 46%; align-self: flex-end; }
}

/* ------------------------------------------------ fondo (cambio de color)
   Dos capas fijas que se funden con opacidad: lo mueve la tarjeta gráfica,
   así va fluido también en móvil. */
html { background: #ffffff; }
.bg-layer { position: fixed; inset: -10vh 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity var(--theme-speed) var(--ease); will-change: opacity; }
.bg-layer.on { opacity: 1; }
@media (hover: none), (max-width: 760px) {
  :root { --theme-speed: .6s; }
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: color-mix(in srgb, var(--bg) 94%, transparent); }
  .nav-drop ul { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .sound { -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* foco visible al navegar con teclado */
:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; }

/* --------------------------------------------------- detalles de diseño */
.accent { color: var(--accent); }
::selection { background: var(--accent); color: #fff; }
h1, h2, h3, .p-title, .b-quote p, .about-text, .photo-cta-title, .p-next .t { text-wrap: balance; }
p { text-wrap: pretty; }
.mono, .tile-meta, .p-meta, .reel-label, .nav-drop { font-variant-numeric: tabular-nums; }
/* las imágenes aparecen con un fundido al cargar (sobre el fondo gris del hueco) */
.tile-media img, .ph img { opacity: 0; transition: opacity .7s var(--ease), transform 1.1s var(--ease); }
.tile-media img.ld, .ph img.ld { opacity: 1; }
/* filtros: los trabajos se ocultan/aparecen con transición */
.tile { transition: opacity .45s var(--ease), transform .45s var(--ease); }
.site-footer { align-items: end; }

/* ------------------------------------------------- pulido (v5)
   Enlace para saltar al contenido con teclado, filtros con fundido. */
.skip {
  position: fixed; left: var(--pad); top: 10px; z-index: 120;
  padding: 10px 14px; background: var(--fg); color: var(--bg);
  transform: translateY(-160%); transition: transform .2s var(--ease-out);
}
.skip:focus-visible { transform: none; outline-offset: 2px; }
.grid { transition: opacity .18s ease; }
.grid.is-filtering { opacity: 0; }
.reel-frame img { transition: opacity .7s ease; }

/* ------------------------------------------- logo dentro de la frase (v6.2)
   Sustituye a la palabra "cru" del hero, al tamaño de una palabra del titular.
   Entra "escribiéndose" de izquierda a derecha tras subir la línea.
   Ajustes: --logo-h (tamaño) y --logo-gap (separación con la coma; negativo = más pegado). */
.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; }
.hero { --logo-h: 1.02em; --logo-gap: -.07em; }
.hero-logo {
  display: inline-block; vertical-align: baseline;
  height: var(--logo-h); margin: -.1em var(--logo-gap) -.1em .01em;   /* márgenes verticales negativos: no abre el interlineado */
  transform: translateY(.1em);
}
.hero-logo svg { height: 100%; width: auto; display: block; fill: currentColor; overflow: visible; }
@media (prefers-reduced-motion: no-preference) {
  .hero-logo svg { clip-path: inset(-10% 100% -10% -4%); transition: clip-path 1.1s cubic-bezier(.77, 0, .175, 1) .45s; }
  .is-ready .hero-logo svg { clip-path: inset(-10% -4% -10% -4%); }
}
