/* =========================================================================
   SAIIGO STUDIO — estilos
   ========================================================================= */
:root {
  --bone: #F3F0E9;
  --ink: #171714;
  --stone: #6B685F;
  --oxide: #9E3427;
  --line: rgba(23, 23, 20, 0.16);
  --bone-dim: rgba(243, 240, 233, 0.72);

  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1440px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html.menu-open { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; line-height: 1.5; font-variant-numeric: tabular-nums; }
p, li, dd { text-wrap: pretty; }
::selection { background: var(--oxide); color: var(--bone); }
html { caret-color: var(--oxide); scrollbar-color: var(--stone) var(--bone); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

:focus-visible { outline: 2px solid var(--oxide); outline-offset: 3px; border-radius: 1px; }
.contact :focus-visible, .hero :focus-visible, .case-hero :focus-visible, .is-over-media :focus-visible { outline-color: var(--bone); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bone); padding: 10px 14px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- wordmark ---------- */
.wordmark { font-weight: 600; letter-spacing: .14em; font-size: 14px; line-height: 1; white-space: nowrap; }
.wordmark--stacked { display: inline-flex; flex-direction: column; gap: .12em; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: var(--bone); color: var(--ink); border-bottom: 1px solid var(--line);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.site-header.is-over-media { background: transparent; color: var(--bone); border-color: transparent; }
html.menu-open .site-header { background: var(--ink); color: var(--bone); border-color: transparent; }
.header__inner {
  height: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.header__logo { text-decoration: none; padding: 10px 0; }
.header__nav ul { display: flex; gap: 32px; }
.header__nav a, .mobile-menu a { text-decoration: none; }
.header__nav a { font-size: 14px; font-weight: 500; position: relative; padding: 8px 0; }
.header__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease);
}
.header__nav a:hover::after { transform: scaleX(1); }

.menu-btn {
  display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 2px 0 12px;
  background: none; border: 0; color: inherit; font: 500 14px var(--sans); cursor: pointer;
}
.menu-btn__icon, .menu-btn__icon::before {
  display: block; width: 22px; height: 1.5px; background: currentColor; position: relative;
  transition: transform .2s var(--ease);
}
.menu-btn__icon { transform: translateY(-3px); }
.menu-btn__icon::before { content: ""; position: absolute; top: 6px; }
.menu-btn[aria-expanded="true"] .menu-btn__icon { transform: translateY(0) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__icon::before { transform: translateY(-6px) rotate(-90deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; background: var(--ink); color: var(--bone);
  padding: 32px var(--gutter) 32px; display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; transform: translateY(-8px); transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu[hidden] { display: none; }
.mobile-menu nav a { display: block; font-size: 44px; font-weight: 500; letter-spacing: -.03em; line-height: 1.15; padding: 6px 0; }
.mobile-menu nav a:hover { color: #d9a59c; }
.mobile-menu__foot { display: flex; flex-direction: column; gap: 10px; color: var(--bone-dim); font-size: 15px; }
.mobile-menu__foot a { padding: 6px 0; }

@media (max-width: 899px) {
  .header__nav { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ---------- media + placeholders ---------- */
.media { position: relative; overflow: hidden; background: #2a2925; }
.media picture, .media__el { width: 100%; height: 100%; }
.media__el { object-fit: cover; object-position: var(--pos, 50% 50%); }
img.media__el { transition: opacity .5s var(--ease); }
.js img.media__el { opacity: 0; } /* sin JavaScript las fotos se ven igual */
img.media__el.is-loaded, .hero__media img.media__el, .case-hero__media img.media__el { opacity: 1; }
@media (max-width: 767px) { .media__el { object-position: var(--pos-m, var(--pos, 50% 50%)); } }

.media--placeholder {
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(158, 52, 39, .22), transparent 55%),
    radial-gradient(90% 80% at 90% 100%, rgba(243, 240, 233, .10), transparent 60%),
    linear-gradient(160deg, #3a3833, #1d1c19);
}
.media--placeholder::before { /* grano */
  content: ""; position: absolute; inset: 0; opacity: .35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.placeholder-tag {
  position: absolute; left: 12px; top: 12px; right: 12px; z-index: 1;
  font: 11px/1.45 var(--mono); color: var(--bone-dim); max-width: 34ch;
}
.placeholder-tag b {
  display: inline-block; margin-right: 8px; padding: 1px 6px; background: var(--oxide); color: var(--bone);
  font-weight: 500; text-transform: uppercase; letter-spacing: .06em;
}

.preview-bar {
  position: fixed; z-index: 60; right: 8px; bottom: 8px;
  width: max-content; max-width: calc(100vw - 32px);
  background: var(--oxide); color: var(--bone); padding: 7px 12px; font-size: 11px; text-align: center;
  pointer-events: none;
}

/* ---------- buttons + links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; font: 500 15px var(--sans); text-decoration: none;
  border: 1px solid currentColor; transition: background .2s var(--ease), color .2s var(--ease);
}
.btn--light { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn--light:hover { background: transparent; color: var(--bone); }
.btn--ghost { color: var(--bone); background: transparent; }
.btn--ghost:hover { background: var(--bone); color: var(--ink); }

.text-link { color: var(--oxide); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.text-link:hover { text-decoration-thickness: 2px; }

.meta { color: var(--stone); display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 4px; }
.meta .sep { margin: 0 8px; opacity: .6; }

/* ---------- hero ---------- */
.hero, .case-hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: var(--bone); background: var(--ink); isolation: isolate;
}
.hero__media, .case-hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to top, rgba(14, 14, 12, .86) 0%, rgba(14, 14, 12, .5) 42%, rgba(14, 14, 12, 0) 72%),
    linear-gradient(to right, rgba(14, 14, 12, .5) 0%, rgba(14, 14, 12, 0) 60%),
    linear-gradient(to bottom, rgba(14, 14, 12, .5), rgba(14, 14, 12, 0) 22%);
}
.hero__content { padding-top: calc(var(--header-h) + 24px); padding-bottom: clamp(32px, 7vh, 72px); }
.hero__title {
  font-size: clamp(40px, 7.4vw, 112px); line-height: .98; letter-spacing: -.045em; font-weight: 500;
  max-width: 13ch; text-wrap: balance;
}
.hero__text { margin-top: 24px; max-width: 46ch; font-size: clamp(16px, 1.4vw, 19px); color: rgba(243, 240, 233, .88); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__sentinel { position: absolute; left: 0; right: 0; bottom: 0; height: calc(100% - var(--header-h)); pointer-events: none; z-index: -3; }
.hero__media { background: var(--ink); }
.hero .media--placeholder .placeholder-tag, .case-hero .media--placeholder .placeholder-tag { top: calc(var(--header-h) + 12px); left: var(--gutter); }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 11vw, 160px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section__head { margin-bottom: clamp(40px, 6vw, 80px); max-width: 900px; }
.section__title { font-size: clamp(32px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -.04em; font-weight: 500; text-wrap: balance; }

/* ---------- work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); row-gap: 64px; }
.work-card--a { grid-column: 1 / span 7; }
.work-card--b { grid-column: 9 / span 4; margin-top: clamp(80px, 14vw, 220px); }
.work-card:nth-child(n+3).work-card--a { grid-column: 6 / span 7; }
.work-card__link { display: block; text-decoration: none; }
.work-card__frame { position: relative; overflow: hidden; margin-bottom: 18px; }
.work-card--a .media { aspect-ratio: 4 / 5; }
.work-card--b .media { aspect-ratio: 3 / 4; }
.work-card .media { transition: transform .6s var(--ease); }
.work-card__link:hover .media { transform: scale(1.025); }
.work-card__title { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.12; letter-spacing: -.025em; font-weight: 500; text-wrap: balance; }
.work-card__client { color: var(--stone); }
.work-card .meta { margin-top: 8px; }
.work-card__summary { margin-top: 12px; color: var(--stone); max-width: 44ch; }
.work-card__link:hover .work-card__title { color: var(--oxide); }
.work-card__title { transition: color .2s var(--ease); }
.work-card .text-link { display: inline-block; margin-top: 16px; font-size: 15px; }
.draft-tag { position: absolute; right: 12px; top: 12px; background: var(--bone); color: var(--oxide); padding: 2px 8px; text-transform: uppercase; }
.work-empty { font-size: 20px; color: var(--stone); }

/* ---------- services ---------- */
.service-list { border-top: 1px solid var(--ink); }
.service {
  display: grid; grid-template-columns: 5fr 7fr; gap: var(--gutter);
  padding: clamp(28px, 3.5vw, 44px) 0; border-bottom: 1px solid var(--line);
}
.service__title { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.08; letter-spacing: -.03em; font-weight: 500; }
.service__body p { max-width: 52ch; }
.service__examples { margin-top: 14px; color: var(--stone); font-size: 15px; }

/* ---------- about ---------- */
.about__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: end; }
.about__media { grid-column: 1 / span 5; }
.about__media .media { aspect-ratio: 4 / 5; }
.about__text { grid-column: 7 / span 6; }
.about__text .section__title { margin-bottom: 32px; }
.about__text p { max-width: 52ch; margin-bottom: 18px; }
.about__text .about__lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.4; letter-spacing: -.01em; }
.about__ig { margin-top: 28px; font-size: 15px; }

/* ---------- contact ---------- */
.contact { background: var(--ink); color: var(--bone); padding: clamp(88px, 13vw, 180px) 0 40px; overflow: hidden; }
.contact__title { font-size: clamp(44px, 8vw, 128px); line-height: .96; letter-spacing: -.05em; font-weight: 500; max-width: 11ch; }
.contact__text { margin-top: 28px; max-width: 46ch; font-size: clamp(17px, 1.5vw, 20px); color: rgba(243, 240, 233, .8); }
.contact .btn { margin-top: 40px; }
.contact__email { margin-top: 20px; font-size: clamp(18px, 2vw, 24px); }
.contact__email a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; overflow-wrap: anywhere; }
.contact__foot {
  display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: clamp(72px, 10vw, 140px);
  padding-top: 20px; border-top: 1px solid rgba(243, 240, 233, .2); color: var(--bone-dim); font-size: 14px;
}
.contact__foot a { color: var(--bone); }
.contact__mark { margin-top: 48px; color: rgba(243, 240, 233, .14); }
.contact__mark .wordmark { font-size: clamp(56px, 13vw, 200px); letter-spacing: .02em; font-weight: 600; }

/* ---------- case study ---------- */
.case-hero { min-height: min(92svh, 900px); }
.case-hero__content { padding-top: calc(var(--header-h) + 24px); padding-bottom: clamp(28px, 6vh, 64px); }
.case-hero .meta { color: var(--bone-dim); margin-top: 18px; }
.case-hero__title { font-size: clamp(40px, 7vw, 104px); line-height: .98; letter-spacing: -.045em; font-weight: 500; max-width: 14ch; }
.case-hero__title span { display: block; color: rgba(243, 240, 233, .8); }
.case-back { padding-top: 24px; }
.case-back a { font-size: 15px; }

.draft-box { margin-top: 24px; border: 1px dashed var(--oxide); padding: 16px 18px; color: var(--ink); }
.draft-box p { color: var(--oxide); margin-bottom: 8px; }
.draft-box ul { font-size: 14px; list-style: disc; padding-left: 18px; color: var(--stone); }

.case-intro { padding-top: clamp(48px, 7vw, 96px); }
.case-intro__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.facts { grid-column: 1 / span 3; display: grid; gap: 18px; align-content: start; }
.facts dt, .credits dt { color: var(--stone); text-transform: uppercase; letter-spacing: .06em; }
.facts dd { font-size: 16px; }
.case-intro__text { grid-column: 5 / span 8; }
.lead { font-size: clamp(22px, 2.4vw, 34px); line-height: 1.3; letter-spacing: -.02em; max-width: 30ch; }
.case-highlight {
  margin-bottom: clamp(32px, 4vw, 56px); padding-bottom: clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--line);
  font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4; color: var(--stone); max-width: 36ch;
}
.case-highlight__value {
  display: block; margin-bottom: 8px; color: var(--oxide);
  font-size: clamp(64px, 9vw, 136px); line-height: .9; letter-spacing: -.05em; font-weight: 500; font-variant-numeric: tabular-nums;
}
.metrics { display: flex; flex-wrap: wrap; gap: 32px 56px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.metrics li { display: flex; flex-direction: column; }
.metrics__value { font-size: clamp(36px, 4vw, 56px); letter-spacing: -.04em; font-weight: 500; line-height: 1; margin-bottom: 6px; }

.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 2vw, 28px) var(--gutter); }
.gallery__item { margin: 0; align-self: end; }
.gallery__item--large { grid-column: span 8; }
.gallery__item--large .media { aspect-ratio: 3 / 2; }
.gallery__item--small { grid-column: span 4; align-self: end; }
.gallery__item--small .media { aspect-ratio: 3 / 4; }
.gallery__item--wide { grid-column: 1 / -1; }
.gallery__item--wide .media { aspect-ratio: 21 / 9; }
.gallery figcaption { color: var(--stone); margin-top: 10px; font-size: 14px; }

.case-details__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px var(--gutter); }
.case-details__title { font-size: 15px; font-weight: 600; letter-spacing: 0; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.case-details p, .case-details li { max-width: 40ch; }
.case-details ul li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.credits { display: grid; gap: 12px; }
.pending { color: var(--oxide); }

.next-project { border-top: 1px solid var(--line); }
.next-project a { display: block; padding: clamp(48px, 7vw, 96px) 0; text-decoration: none; }
.next-project__label { display: block; color: var(--stone); font-size: 15px; margin-bottom: 10px; }
.next-project__title { display: block; font-size: clamp(28px, 4.4vw, 60px); letter-spacing: -.04em; line-height: 1.05; font-weight: 500; }
.next-project a:hover .next-project__title { color: var(--oxide); }
.notfound { padding-top: calc(var(--header-h) + 96px); }
.notfound .section__title { margin-bottom: 20px; }
.notfound__text { color: var(--stone); margin-bottom: 20px; }
.notfound__list li { padding: 6px 0; font-size: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 899px) {
  .work-grid, .about__grid, .case-intro__grid, .gallery { grid-template-columns: 1fr; }
  .work-card--a, .work-card--b, .work-card:nth-child(n+3).work-card--a,
  .about__media, .about__text, .facts, .case-intro__text,
  .gallery__item--large, .gallery__item--small, .gallery__item--wide { grid-column: auto; }
  .work-card--b { margin-top: 0; }
  .work-grid { row-gap: 56px; }
  .work-card--a .media, .work-card--b .media { aspect-ratio: 4 / 5; }
  .about__grid { gap: 40px; }
  .facts { grid-template-columns: 1fr 1fr; margin-bottom: 32px; }
  .gallery__item--large .media { aspect-ratio: 4 / 5; }
  .gallery__item--small .media { aspect-ratio: 4 / 5; }
  .gallery__item--wide .media { aspect-ratio: 4 / 3; }
  .case-details__grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .hero { display: grid; grid-template-rows: min(66svh, 600px) auto; align-items: stretch; min-height: 0; background: var(--bone); color: var(--ink); }
  .hero > .hero__media, .hero > .hero__shade { grid-row: 1; grid-column: 1; position: relative; inset: auto; }
  .hero > .hero__shade { background: linear-gradient(to top, rgba(14, 14, 12, .8) 0%, rgba(14, 14, 12, .2) 50%, rgba(14, 14, 12, 0) 70%),
    linear-gradient(to bottom, rgba(14, 14, 12, .45), rgba(14, 14, 12, 0) 24%); }
  .hero__content { display: contents; }
  .hero__head { grid-row: 1; grid-column: 1; align-self: end; padding: 0 var(--gutter) 22px; color: var(--bone); }
  .hero__body { grid-row: 2; grid-column: 1; padding: 22px var(--gutter) 40px; }
  .hero__text { margin-top: 0; color: var(--ink); }
  .hero__body .btn--light { background: var(--ink); color: var(--bone); border-color: var(--ink); }
  .hero__body .btn--light:hover { background: transparent; color: var(--ink); }
  .hero__body .btn--ghost { color: var(--ink); }
  .hero__body .btn--ghost:hover { background: var(--ink); color: var(--bone); }
  .hero__body :focus-visible { outline-color: var(--oxide); }
  .service { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 480px) {
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__actions { margin-top: 24px; }
  .mobile-menu nav a { font-size: 38px; }
}

/* ---------- movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
  .work-card__link:hover .media { transform: none; }
}

/* Reel vertical 9:16 en la galería */
.gallery__item--reel { grid-column: span 4; }
.gallery__item--reel .media { aspect-ratio: 9 / 16; background: var(--ink); }
.gallery__item--reel video.media__el { object-fit: cover; }
@media (max-width: 899px) { .gallery__item--reel { grid-column: auto; max-width: 420px; width: 100%; justify-self: center; } }

.section__intro { margin-top: 20px; max-width: 52ch; font-size: clamp(17px, 1.5vw, 20px); color: var(--stone); }

/* =========================================================================
   Rediseño: portada con reel + índice editorial
   ========================================================================= */

/* ---------- portada con reel ---------- */
.hero__caption {
  display: inline-block; font-size: 14px; color: var(--bone-dim); text-decoration: none;
  border-bottom: 1px solid rgba(243, 240, 233, .3); padding-bottom: 2px;
}
a.hero__caption:hover { color: var(--bone); border-color: var(--bone); }

@media (min-width: 768px) {
  /* Video a pantalla completa; título y botones encima, alineados con el header */
  .hero--reel {
    --side: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
    display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: var(--gutter);
    padding: calc(var(--header-h) + 32px) var(--side) clamp(32px, 6vh, 64px);
    background: var(--ink);
  }
  .hero--reel > .hero__media { position: absolute; inset: 0; z-index: -2; }
  .hero--reel > .hero__shade {
    background:
      linear-gradient(to top, rgba(14, 14, 12, .88) 0%, rgba(14, 14, 12, .45) 40%, rgba(14, 14, 12, .1) 70%),
      linear-gradient(to right, rgba(14, 14, 12, .6) 0%, rgba(14, 14, 12, 0) 65%),
      linear-gradient(to bottom, rgba(14, 14, 12, .55), rgba(14, 14, 12, 0) 22%);
  }
  .hero--reel .hero__content { grid-column: 1; grid-row: 1; padding: 0; max-width: none; margin: 0; }
  .hero--reel .hero__title { font-size: clamp(56px, 7.8vw, 140px); line-height: .92; letter-spacing: -.055em; max-width: 10ch; }
  .hero--reel .hero__text { max-width: 40ch; margin-top: 32px; }
  .hero--reel .hero__caption { grid-column: 2; grid-row: 1; justify-self: end; align-self: end; margin-bottom: 14px; }
}
@media (max-width: 767px) {
  .hero--reel .hero__caption {
    grid-row: 1; grid-column: 1; align-self: start; justify-self: end; z-index: 1;
    margin: calc(var(--header-h) + 8px) var(--gutter) 0 0; font-size: 12px;
  }
}

/* ---------- Selected work como índice ---------- */
.work .section__title { font-size: clamp(48px, 8.4vw, 148px); line-height: .9; letter-spacing: -.055em; }
.index { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: start; }
.index__list { grid-column: 1 / span 7; border-top: 1px solid var(--ink); }
.index__row { border-bottom: 1px solid var(--line); position: relative; }
.index__link {
  display: grid; grid-template-columns: 1fr auto; column-gap: 24px; row-gap: 10px;
  padding: clamp(24px, 3vw, 40px) 0; text-decoration: none;
}
.index__thumb { display: none; }
.index__title {
  grid-column: 1; font-size: clamp(30px, 3.8vw, 64px); line-height: .98; letter-spacing: -.045em; font-weight: 500;
  text-wrap: balance; transition: color .25s var(--ease), transform .35s var(--ease);
}
.index__client { color: var(--stone); transition: color .25s var(--ease); }
.index__meta { grid-column: 1; color: var(--stone); }
.index__summary { grid-column: 1; color: var(--stone); max-width: 46ch; font-size: 16px; }
.index__arrow {
  grid-column: 2; grid-row: 1; align-self: start; font-size: clamp(24px, 2.4vw, 36px); line-height: 1;
  color: var(--stone); transition: color .25s var(--ease), transform .35s var(--ease);
}
.index__row[data-active] .index__title, .index__link:hover .index__title { color: var(--ink); transform: translateX(10px); }
.index__row[data-active] .index__arrow, .index__link:hover .index__arrow { color: var(--oxide); transform: translateX(4px); }
.index__link:hover .index__client, .index__row[data-active] .index__client { color: var(--oxide); }
.index .draft-tag { position: static; justify-self: start; grid-column: 1; }

.index__preview {
  grid-column: 9 / span 4; position: sticky; top: calc(var(--header-h) + 32px);
  aspect-ratio: 4 / 5; overflow: hidden; background: #2a2925;
}
.index__frame { position: absolute; inset: 0; opacity: 0; transition: opacity .45s var(--ease); }
.index__frame.is-active { opacity: 1; }
.index__frame .media { width: 100%; height: 100%; }

@media (max-width: 899px) {
  .index__list { grid-column: 1 / -1; }
  .index__preview { display: none; }
  .index__thumb { display: block; grid-column: 1 / -1; margin-bottom: 14px; }
  .index__thumb .media { aspect-ratio: 4 / 3; }
  .index__row[data-active] .index__title, .index__link:hover .index__title { transform: none; }
  .index__row[data-active] .index__client { color: var(--stone); }
  .index__row[data-active] .index__arrow { color: var(--stone); transform: none; }
  .index__arrow { grid-row: 2; }
}

/* ---------- contacto ---------- */
.contact__title { max-width: 12ch; }

@media (prefers-reduced-motion: reduce) {
  .index__title, .index__arrow { transition: none; }
}
.index__meta .sep { margin: 0 8px; opacity: .6; }
