/* Geometric sans — Futura-like for web */
@import url("https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,400;0,500;0,600;1,400&display=swap");

:root {
  --bg: #0c0c0c;
  --fg: #ebebeb;
  --muted: rgba(235, 235, 235, 0.45);
  --faint: rgba(235, 235, 235, 0.14);
  --hover: #ffffff;
  --font: "Jost", "Century Gothic", "Trebuchet MS", "Gill Sans", sans-serif;
  --header-h: 4rem;
  --pad-x: clamp(1rem, 4vw, 3.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  font-size: clamp(0.875rem, 1.05vw, 1rem);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.screen-reader-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ——— Header (minimal bar, Stink-style nav) ——— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.85rem var(--pad-x);
  background: var(--bg);
  border-bottom: 1px solid var(--faint);
}

.site-header__brand {
  display: flex;
  align-items: center;
}

.site-header__logo {
  height: clamp(1.5rem, 3.2vw, 2rem);
  width: auto;
  display: block;
}

.site-header__nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(0.65rem, 2vw, 1.75rem);
}

.site-header__nav a {
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.15s ease;
}

.site-header__nav a:hover,
.site-header__nav a.is-active {
  color: var(--fg);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-left: 0.25rem;
  padding-left: clamp(0.65rem, 2vw, 1.25rem);
  border-left: 1px solid var(--faint);
}

.lang-switch button {
  font: inherit;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.2rem 0.1rem;
  transition: color 0.15s ease;
}

.lang-switch button:hover,
.lang-switch button.is-active {
  color: var(--fg);
}

.lang-switch span {
  color: var(--faint);
  user-select: none;
}

/* ——— Main ——— */
main {
  padding-top: calc(var(--header-h) + 0.5rem);
}

.section {
  padding: clamp(2.5rem, 6vw, 5rem) var(--pad-x) clamp(3rem, 8vw, 6rem);
}

.section--text {
  border-top: 1px solid var(--faint);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  max-width: 38rem;
}

.section--about {
  max-width: min(52rem, 100%);
}

.about-block {
  display: grid;
  gap: clamp(1.35rem, 3.5vw, 2.25rem);
  align-items: start;
}

@media (min-width: 768px) {
  .about-block {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr);
    gap: clamp(1.5rem, 4vw, 2.75rem);
  }
}

.about-block__figure {
  margin: 0;
}

.about-block__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 1px;
}

.about-block__text p {
  margin: 0 0 1rem;
}

.about-block__text p:last-child {
  margin-bottom: 0;
}

.about-block__text a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--faint);
  text-underline-offset: 0.2em;
}

.about-block__text a:hover {
  text-decoration-color: var(--muted);
}

.contact-email {
  margin: 0;
  font-size: 1.05rem;
}

.contact-email a {
  color: var(--fg);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.contact-email a:hover {
  text-decoration: underline;
  text-decoration-color: var(--muted);
}

.section__title {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}

.section__body {
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--muted);
}

.section__body code {
  font-size: 0.88em;
  color: var(--fg);
}

/* ——— Work: mosaico de vídeo continuo (sin huecos entre celdas) ——— */
.section--work {
  padding: 0;
  margin: 0;
  max-width: none;
  width: 100%;
}

.work-grid--visual {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-flow: dense;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

/* ≥2 cols: piezas destacadas 2×2 (doblemente anchas y altas que una celda base) */
@media (min-width: 480px) {
  .work-grid--visual {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-cell--featured {
    grid-column: span 2;
    grid-row: span 2;
  }
}

@media (min-width: 900px) {
  .work-grid--visual {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.work-cell {
  position: relative;
  margin: 0;
  padding: 0;
  min-height: 0;
  aspect-ratio: 16 / 9;
  background: #050505;
  overflow: hidden;
}

.work-cell--featured .work-cell__title {
  font-size: clamp(0.55rem, 1.25vw, 0.72rem);
}

.work-cell--featured .work-cell__sub {
  font-size: clamp(0.48rem, 1vw, 0.58rem);
}

.work-cell--featured .work-cell__label {
  padding: 0.55rem 0.65rem 0.5rem;
}

.work-cell__frame {
  position: absolute;
  inset: 0;
  border: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  transform-origin: center center;
}

.work-cell__hit {
  position: absolute;
  inset: 0;
  z-index: 2;
  text-indent: -9999px;
  overflow: hidden;
}

.work-cell__hit:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: -2px;
}

.work-cell__label {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  pointer-events: none;
  padding: 0.45rem 0.5rem 0.4rem;
  max-width: 92%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.35) 55%, transparent 100%);
}

.work-cell__title {
  display: block;
  font-size: clamp(0.5rem, 1.15vw, 0.625rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.25;
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 0 0.35rem rgba(0, 0, 0, 0.85);
}

.work-cell__sub {
  display: block;
  font-size: clamp(0.45rem, 0.95vw, 0.5rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.2;
  margin: 0.2rem 0 0;
  color: rgba(255, 255, 255, 0.55);
}

.work-cell--empty {
  min-height: 8rem;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem;
  text-align: center;
}

/* ——— Footer ——— */
.site-footer {
  padding: 2.25rem var(--pad-x) 2.75rem;
  border-top: 1px solid var(--faint);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.75rem;
}

.site-footer__label {
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
  width: 100%;
  flex-basis: 100%;
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.85rem, 2vw, 1.5rem);
}

.site-footer__social a {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.15s ease;
}

.site-footer__social a:hover {
  color: var(--fg);
}

.site-footer__note {
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0;
}
