/* ============================================================
   GALGOS. — MAIN STYLESHEET
   Palette : near-black + bone white + galgo-sand accent
   Type    : Geist (display + body) / Space Mono (labels)
   ============================================================ */

:root {
  --bg:      #0b0b0c;
  --bg-2:    #101012;
  --ink:     #ede9e1;
  --muted:   #8b8779;
  --line:    rgba(237, 233, 225, 0.14);
  --sand:    #d0b47a;

  --font-body: "Geist", "Helvetica Neue", sans-serif;
  --font-mono: "Space Mono", monospace;

  --pad: clamp(20px, 4vw, 56px);
  --nav-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--sand); color: var(--bg); }

/* display type — Geist bold, tight tracking (como el diseño original) */
.display {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* ---------- utilities ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.text-link {
  font-family: var(--font-mono);
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color 0.25s, color 0.25s;
}
.text-link:hover { color: var(--sand); border-color: var(--sand); }

.button-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  padding: 16px 32px;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.button-link:hover { background: var(--sand); border-color: var(--sand); color: var(--bg); }

.section { padding: clamp(64px, 9vw, 130px) var(--pad); }
.section--lg { padding-top: clamp(90px, 12vw, 180px); padding-bottom: clamp(90px, 12vw, 180px); }
.section--flush { padding-top: clamp(40px, 6vw, 80px); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-title {
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1;
  margin-top: 10px;
}

/* scroll reveal */
.fade-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-up.in { opacity: 1; transform: none; }

/* ============================================================
   NAV
   ============================================================ */

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line);
  background: rgba(11, 11, 12, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s, border-color 0.3s;
}
.site-nav.transparent {
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.site-nav.transparent.scrolled {
  background: rgba(11, 11, 12, 0.82);
  border-color: var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.logo { display: flex; align-items: center; }
.logo img { height: 22px; width: auto; display: block; }

.nav-links { display: flex; gap: 34px; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s;
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--sand);
}

.nav-toggle {
  display: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 8px 14px;
  cursor: pointer;
}

/* ============================================================
   HERO (home)
   ============================================================ */

.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5) saturate(0.85);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,11,12,0.35) 0%, rgba(11,11,12,0.1) 40%, rgba(11,11,12,0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--nav-h) + 24px) var(--pad) 40px;
}
.hero-top { display: flex; justify-content: space-between; gap: 24px; }
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.hero-eyebrow span { display: block; color: var(--muted); margin-top: 4px; }
.hero-eyebrow--right { text-align: right; }

.hero-middle { display: flex; justify-content: flex-start; align-items: center; }
.hero-wordmark {
  user-select: none;
  opacity: 0;
  transform: translateY(40px);
  animation: wordmark-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}
.hero-wordmark img {
  width: clamp(150px, 22vw, 340px);
  height: auto;
}

@keyframes wordmark-in { to { opacity: 1; transform: none; } }

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.hero-tagline {
  font-size: clamp(16px, 1.6vw, 21px);
  line-height: 1.4;
  max-width: 320px;
}
.hero-scroll,
.hero-action {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-scroll { color: var(--muted); animation: scroll-hint 2.4s ease-in-out infinite; }
.hero-action {
  border: 1px solid var(--ink);
  padding: 14px 28px;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.hero-action:hover { background: var(--sand); border-color: var(--sand); color: var(--bg); }

@keyframes scroll-hint {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ============================================================
   FILMSTRIP MARQUEE (home)
   ============================================================ */

.filmstrip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 18px 0;
  background: var(--bg-2);
}
.filmstrip-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: filmstrip-scroll 55s linear infinite;
}
.filmstrip:hover .filmstrip-track { animation-play-state: paused; }
.filmstrip a {
  position: relative;
  flex: none;
  width: clamp(200px, 22vw, 320px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.filmstrip a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.65) brightness(0.8);
  transition: filter 0.35s, transform 0.35s;
}
.filmstrip a:hover img { filter: grayscale(0) brightness(1); transform: scale(1.04); }
.filmstrip a::after {
  content: attr(data-title);
  position: absolute;
  left: 10px; bottom: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.3s;
}
.filmstrip a:hover::after { opacity: 1; }

@keyframes filmstrip-scroll { to { transform: translateX(-50%); } }

/* ============================================================
   HOME FEATURED GRID
   Pattern of 3: one LARGE + two SMALL stacked beside it,
   equal total height. Groups alternate sides.
   ============================================================ */

.project-grid--home {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-flow: dense;
  gap: 1px;
}

.pcard {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--bg-2);
}
.pcard img,
.pcard video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s;
  filter: brightness(0.88);
}
.pcard:hover img,
.pcard:hover video { transform: scale(1.03); filter: brightness(1); }

/* when one project is hovered, the rest step back (blur + dim) — WORK only */
@media (hover: hover) {
  .work-grid:hover .pcard:not(:hover) {
    filter: blur(3px) brightness(0.45) saturate(0.6);
  }
}
.pcard { transition: filter 0.45s ease; }

/* meta overlaid so large and small cards stay perfectly aligned */
.pcard .overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  padding: clamp(12px, 1.4vw, 20px);
  background: linear-gradient(180deg, transparent, rgba(8, 8, 9, 0.9));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.pcard:hover .overlay,
.pcard.focus .overlay { opacity: 1; transform: none; }
@media (hover: none) {
  .pcard .overlay { opacity: 1; transform: none; }
}
.pcard .blurb {
  display: block;
  font-weight: 400;
  font-size: 12.5px;
  line-height: 1.5;
  text-transform: lowercase;
  color: rgba(237, 233, 225, 0.75);
  margin-top: 6px;
  max-width: 46ch;
}
.pcard .title {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(17px, 1.7vw, 24px);
  line-height: 1.15;
}
.pcard--medium .title { font-size: clamp(20px, 2.2vw, 32px); }
.pcard .artist {
  display: block;
  font-weight: 400;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0;
  margin-top: 2px;
}
.pcard .tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.pcard .play {
  position: absolute;
  top: 50%; left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%) scale(0.7);
  width: 62px; height: 62px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: rgba(11, 11, 12, 0.5);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.3s, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.pcard .play::before {
  content: "";
  border-left: 11px solid var(--ink);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  margin-left: 3px;
}
.pcard:hover .play { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* geometry:
   small  — 1/3 row, two stacked match a medium
   medium — 2/3 row, spans 2 rows
   full   — whole row, panoramic */
.pcard--small { grid-column: span 4; aspect-ratio: 16 / 9; }
.pcard--medium { grid-column: span 8; grid-row: span 2; }
.pcard--full { grid-column: 1 / -1; aspect-ratio: 21 / 8; }

/* alternate group sides: alt puts the medium card on the right */
.pcard--medium.alt { grid-column: 5 / span 8; }
.pcard--small.alt { grid-column: 1 / span 4; }

.pcard--full .title { font-size: clamp(22px, 2.6vw, 38px); }

/* ============================================================
   WORK PAGE — sidebar + image-first grid, fine gaps
   ============================================================ */

.page { padding-top: var(--nav-h); }

.work-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(32px, 5vw, 64px) var(--pad) clamp(64px, 9vw, 130px);
  align-items: start;
}

.work-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sidebar-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.sidebar-link {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  text-transform: lowercase;
  color: var(--muted);
  background: none;
  border: none;
  text-align: left;
  padding: 3px 0;
  cursor: pointer;
  transition: color 0.25s, transform 0.3s;
}
.sidebar-link:hover { color: var(--ink); }
.sidebar-link.active { color: var(--sand); }
.sidebar-link .n {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  margin-left: 6px;
  vertical-align: super;
}
.sidebar-footer {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.9;
  margin-top: 40px;
}

.work-content .section-head { margin-bottom: clamp(16px, 2vw, 28px); }

/* grid: large + two smalls, hairline gaps */
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-flow: dense;
  gap: 1px;
}
.work-grid .pcard.hidden { display: none; }

/* hover preview layers (video clip or cycling gallery stills) */
.pcard .preview-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.pcard.previewing .preview-layer { opacity: 1; }
.pcard .preview-layer img,
.pcard .preview-layer video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.95);
}
.pcard .rec {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.25s;
}
.pcard.previewing .rec { opacity: 1; }
.pcard .rec::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #e04a3a;
  animation: rec-blink 1.1s steps(1) infinite;
}
@keyframes rec-blink { 50% { opacity: 0.25; } }

/* ============================================================
   PROJECT PAGE
   ============================================================ */

.project-head {
  padding: clamp(32px, 5vw, 56px) var(--pad) clamp(20px, 2.5vw, 32px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.project-head h1 {
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(22px, 2.8vw, 38px);
  line-height: 1.1;
  margin-top: 14px;
}
.project-head .sub {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}
.project-head .meta-right {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  line-height: 2;
}

/* full-bleed panoramic frame — the whole 16:9 video stays visible
   (pillarboxed inside), nothing is ever cropped */
.project-video { padding: 0; }
.project-video .frame {
  position: relative;
  width: 100%;
  height: min(42.85vw, calc(100svh - 240px)); /* 21:9, capped to the viewport */
  min-height: 320px;
  background: #000;
  overflow: hidden;
}
.project-video iframe {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}
.project-video .frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.project-video .ig-link {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--ink);
  background: rgba(11, 11, 12, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  padding: 14px 26px;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.project-video .ig-link:hover {
  background: var(--sand);
  border-color: var(--sand);
  color: var(--bg);
}
.project-video .soon {
  position: absolute;
  left: 20px; bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(11, 11, 12, 0.7);
  padding: 8px 14px;
}

/* BTS — tight, aligned wall: square base cells, some doubles */
.project-bts { padding: clamp(48px, 7vw, 90px) 0 0; }
.project-bts .section-head { padding: 0 var(--pad); }
.bts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  grid-auto-flow: dense;
  gap: 1px;
}
.bts-grid a {
  display: block;
  overflow: hidden;
  background: var(--bg-2);
  aspect-ratio: 1 / 1;
}
/* one double-size cell per group of 7 keeps the wall aligned */
.bts-grid a:nth-child(7n + 1) {
  grid-column: span 2;
  grid-row: span 2;
}
.bts-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s;
}
.bts-grid a:hover img { transform: scale(1.03); filter: brightness(1); }

.project-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  margin-top: clamp(48px, 7vw, 90px);
  padding: clamp(28px, 4vw, 48px) var(--pad) clamp(64px, 9vw, 110px);
}
.project-nav a {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s;
}
.project-nav a:hover { color: var(--sand); }
.project-nav .pn-title {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 26px);
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--ink);
  margin-top: 6px;
}
.project-nav a:hover .pn-title { color: var(--sand); }
.project-nav .next { text-align: right; }

/* image lightbox for BTS photos */
.photobox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 8, 9, 0.94);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--pad);
  cursor: zoom-out;
}
.photobox.open { display: flex; }
.photobox img {
  max-width: min(1100px, 100%);
  max-height: 88vh;
  object-fit: contain;
}

/* ============================================================
   HOME — ABOUT / CTA
   ============================================================ */

.home-about {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(24px, 5vw, 80px);
  max-width: 1200px;
}
.home-about__lead {
  font-size: clamp(24px, 3.2vw, 42px);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}
.home-about__copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  color: var(--muted);
  font-size: 15px;
}
.home-about__link { display: inline-block; margin-top: 32px; }

.home-cta { text-align: center; }
.home-cta h2 {
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: clamp(40px, 7vw, 104px);
  line-height: 1;
  margin: 20px 0 40px;
}

/* ============================================================
   TEAM — minimal lowercase index, portrait follows the cursor
   ============================================================ */

.team-hero {
  padding: calc(var(--nav-h) + clamp(48px, 7vw, 110px)) var(--pad) clamp(40px, 6vw, 80px);
  max-width: 720px;
}
.team-hero h1 {
  font-weight: 400;
  letter-spacing: -0.01em;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.7;
  text-transform: lowercase;
  color: var(--ink);
  margin-top: 24px;
}
.team-hero .intro {
  color: var(--muted);
  font-size: 14px;
  text-transform: lowercase;
  margin-top: 16px;
}

.team-list {
  border-top: 1px solid var(--line);
  margin: 0 var(--pad) clamp(80px, 11vw, 160px);
}
.team-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) 270px minmax(0, 1.4fr);
  justify-items: start;
  text-align: left;
  gap: clamp(16px, 3vw, 48px);
  align-items: baseline;
  padding: clamp(20px, 2.6vw, 32px) 0;
  border-bottom: 1px solid var(--line);
  cursor: default;
  transition: opacity 0.4s;
}
.team-list:hover .team-row:not(:hover) { opacity: 0.3; }
.team-row .t-name {
  font-weight: 400;
  font-size: clamp(17px, 1.9vw, 23px);
  letter-spacing: -0.01em;
  text-transform: lowercase;
}
.team-row .t-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--sand);
  white-space: nowrap;
}
.team-row .t-bio {
  font-size: 13px;
  line-height: 1.7;
  text-transform: lowercase;
  color: var(--muted);
}
.team-row .t-photo { display: none; }

/* floating portrait (desktop) */
.portrait-preview {
  position: fixed;
  z-index: 90;
  width: clamp(200px, 18vw, 280px);
  aspect-ratio: 4 / 5;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.25s, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.portrait-preview.visible { opacity: 1; transform: scale(1); }
.portrait-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  opacity: 0;
  transition: opacity 0.2s;
}
.portrait-preview img.on { opacity: 1; }

/* ============================================================
   SERVICES — minimal lowercase pipeline, same voice as TEAM
   ============================================================ */

.services-hero {
  padding: calc(var(--nav-h) + clamp(48px, 7vw, 110px)) var(--pad) clamp(40px, 6vw, 80px);
  max-width: 720px;
}
.services-hero h1 {
  font-weight: 400;
  letter-spacing: -0.01em;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.7;
  text-transform: lowercase;
  color: var(--ink);
  margin-top: 24px;
}
.services-hero p {
  color: var(--muted);
  font-size: 14px;
  text-transform: lowercase;
  max-width: 520px;
  margin-top: 16px;
}

.pipeline {
  border-top: 1px solid var(--line);
  margin: 0 var(--pad) clamp(80px, 11vw, 160px);
}
.pipeline-step {
  display: grid;
  grid-template-columns: 90px 1fr 1.3fr;
  gap: clamp(16px, 3vw, 48px);
  align-items: baseline;
  padding: clamp(20px, 2.6vw, 32px) 0;
  border-bottom: 1px solid var(--line);
  transition: opacity 0.4s;
}
.pipeline:hover .pipeline-step:not(:hover) { opacity: 0.3; }
.pipeline-step .step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--sand);
}
.pipeline-step h3 {
  font-weight: 400;
  letter-spacing: -0.01em;
  font-size: clamp(17px, 1.9vw, 23px);
  line-height: 1.2;
  text-transform: lowercase;
}
.pipeline-step h3 br { display: none; }
.pipeline-step p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  text-transform: lowercase;
}

/* ============================================================
   CONTACT — info left, the galgo run right
   ============================================================ */

.contact-split {
  min-height: calc(100svh - var(--nav-h));
  display: grid;
  grid-template-columns: minmax(230px, 0.75fr) 1.7fr minmax(270px, 0.95fr);
  gap: clamp(28px, 3.4vw, 56px);
  align-items: start;
  align-content: center;
  padding: calc(var(--nav-h) + 48px) var(--pad) 80px;
}

/* cabecera común de columna: mantiene las tres columnas alineadas arriba */
.col-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: clamp(18px, 2.4vw, 28px);
  width: 100%;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(18px, 2.4vw, 28px);
}
.contact-info .col-head { margin-bottom: 0; }
.contact-info .side-note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  line-height: 2;
  text-transform: lowercase;
  color: var(--muted);
  max-width: 34ch;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 6px;
}
.contact-info .line {
  font-weight: 400;
  font-size: clamp(15px, 1.6vw, 19px);
  text-transform: lowercase;
  color: var(--ink);
  max-width: 34ch;
  line-height: 1.7;
}
.contact-email {
  font-weight: 400;
  letter-spacing: -0.01em;
  font-size: clamp(17px, 1.7vw, 22px);
  text-transform: lowercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: color 0.3s, border-color 0.3s;
  word-break: break-all;
}
.contact-email:hover { color: var(--sand); border-color: var(--sand); }
.contact-info .socials { display: flex; gap: 28px; }
.contact-info .socials a {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--muted);
  transition: color 0.25s;
}
.contact-info .socials a:hover { color: var(--sand); }
.contact-info .where {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--muted);
  line-height: 2;
}

.contact-game { width: 100%; }
.game-frame {
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: 10px;
}
.game-frame canvas {
  display: block;
  width: 100%;
  touch-action: none;
  cursor: pointer;
}
.bet-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 1px;
}
.bet-btn {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--muted);
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 12px 6px;
  cursor: pointer;
  position: relative;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.bet-btn::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  background: var(--coat, var(--muted));
  vertical-align: 1px;
}
.bet-btn:hover:not(:disabled) { color: var(--ink); border-color: var(--ink); }
.bet-btn.active {
  color: var(--bg);
  background: var(--sand);
  border-color: var(--sand);
}
.bet-btn.active::before { background: var(--bg); }
.bet-btn.won { background: var(--sand); border-color: var(--sand); color: var(--bg); }
.bet-btn.lost { opacity: 0.35; }
.bet-btn:disabled { cursor: default; }
.bet-btn:disabled:not(.active):not(.won):not(.lost) { opacity: 0.55; }

/* --- formulario de contacto --- */
.contact-form-col { display: flex; flex-direction: column; }
.contact-form-col .line {
  font-weight: 400;
  font-size: 13.5px;
  line-height: 1.7;
  text-transform: lowercase;
  color: var(--muted);
  margin-bottom: clamp(16px, 2vw, 24px);
}
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; }
.contact-form label span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  color: var(--muted);
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 12px 14px;
  outline: none;
  resize: vertical;
  transition: border-color 0.25s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(139, 135, 121, 0.6); text-transform: lowercase; }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--sand); }
.form-send {
  align-self: flex-start;
  background: none;
  cursor: pointer;
  color: var(--ink);
  margin-top: 4px;
}
.form-ok {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--sand);
}

.game-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 12px;
}
.game-hint {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--muted);
}
.game-controls { display: flex; gap: 14px; flex: none; }
.game-controls button {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--muted);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.25s;
}
.game-controls button:hover { color: var(--ink); }
.game-controls button.on { color: var(--sand); }

@media (max-width: 1180px) and (min-width: 901px) {
  .contact-split { grid-template-columns: 1fr 1fr; }
  .contact-game { grid-column: 1 / -1; grid-row: 2; }
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
  padding: clamp(48px, 7vw, 90px) var(--pad);
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.site-footer .col { display: flex; flex-direction: column; }
.footer-logo { margin-bottom: 12px; }
.footer-logo img { height: 34px; width: auto; }
.footer-tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer-links a {
  display: block;
  font-size: 14px;
  color: var(--ink);
  padding: 4px 0;
  transition: color 0.25s;
}
.footer-links a:hover { color: var(--sand); }
.footer-cta {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 10px;
}
.footer-email {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--sand);
  margin-top: 8px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px var(--pad);
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.footer-bottom .copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-top: 1px solid var(--line); }
  .nav-links a { display: block; padding: 18px var(--pad); font-size: 14px; }
  .nav-links a.active::after { display: none; }

  /* grids stack: everything full width, 16:9 */
  .pcard--medium,
  .pcard--small,
  .pcard--full,
  .pcard--medium.alt,
  .pcard--small.alt {
    grid-column: span 12;
    grid-row: auto;
    aspect-ratio: 16 / 9;
  }

  .work-layout { grid-template-columns: 1fr; }
  .work-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 18px;
    align-items: baseline;
  }
  .sidebar-label { width: 100%; margin-bottom: 6px; }
  .sidebar-footer { display: none; }

  .home-about { grid-template-columns: 1fr; }
  .home-about__copy { grid-template-columns: 1fr; }

  .team-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .team-row .t-photo {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    filter: grayscale(1);
    margin-bottom: 12px;
  }
  .portrait-preview { display: none; }

  .pipeline-step { grid-template-columns: 1fr; gap: 6px; }

  .contact-split { grid-template-columns: 1fr; align-items: start; row-gap: 56px; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }

  .project-head .meta-right { text-align: left; }
  .bts-grid { grid-template-columns: repeat(2, 1fr); }
  .project-video .frame { height: 56.25vw; min-height: 0; }
  .project-video iframe { width: 100%; height: 100%; left: 0; transform: none; aspect-ratio: auto; }
}

@media (max-width: 520px) {
  .hero-eyebrow--right { display: none; }
}

/* ============================================================
   REDUCED MOTION / FOCUS
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up { opacity: 1; transform: none; transition: none; }
  .hero-wordmark { animation: none; opacity: 1; transform: none; }
  .hero-scroll { animation: none; }
  .filmstrip-track { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--sand);
  outline-offset: 3px;
}

/* ============================================================
   MOBILE SCROLL FOCUS (touch devices)
   the project crossing the center of the screen pops:
   scales up above the rest while neighbours dim
   ============================================================ */

@media (hover: none) {
  .work-grid .pcard,
  .project-grid--home .pcard {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s;
  }
  .work-grid.focusing .pcard:not(.focus),
  .project-grid--home.focusing .pcard:not(.focus) {
    filter: brightness(0.4) saturate(0.6);
  }
  .work-grid .pcard.focus,
  .project-grid--home .pcard.focus {
    transform: scale(1.06);
    z-index: 5;
  }
  .pcard.focus img { filter: brightness(1); }
}
