/* =============================================================
   MUTANTE — Estudio Creativo de Videografía
   ============================================================= */

:root {
  --black: #0A0A0A;
  --ink: #1a1a1a;
  --offwhite: #EDEBE6;
  --orange: #F5A623;
  --red: #FF4D2E;

  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-body: 'Space Grotesk', 'Helvetica Neue', sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html, body {
  background: var(--offwhite);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  cursor: none;
  min-height: 100vh;
}

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

img, video {
  max-width: 100%;
  display: block;
}

::selection {
  background: var(--orange);
  color: var(--ink);
}

/* =============================================================
   LOAD OVERLAY (home only)
   ============================================================= */
.loader {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.loader__logo {
  opacity: 0;
  will-change: transform, opacity;
  transform: translate3d(0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Primary: the uploaded MUTANTE logo image */
.loader__logo-img {
  height: clamp(55px, 10vw, 162px);
  width: auto;
  display: block;
  /* Loader bg is black; the orange-on-black 3D logo reads naturally.
     Mono toggle is intentionally NOT applied here — the loader is a brand
     intro and always shows the canonical color logo. */
}

/* Fallback: Bebas wordmark, shown only if the image fails to load */
.loader__logo-text {
  display: none;
  font-family: var(--font-display);
  font-size: clamp(64px, 14vw, 220px);
  letter-spacing: 0.02em;
  color: var(--offwhite);
}

.loader__logo--no-img .loader__logo-img { display: none; }
.loader__logo--no-img .loader__logo-text { display: block; }

/* =============================================================
   CUSTOM CURSOR
   ============================================================= */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
}

.cursor-dot {
  width: 10px;
  height: 10px;
  background: var(--orange);
  border-radius: 50%;
  mix-blend-mode: difference;
  transform: translate3d(-50%, -50%, 0);
}

.cursor-ring {
  width: 50px;
  height: 50px;
  border: 1px solid rgba(26, 26, 26, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate3d(-50%, -50%, 0);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), background 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.cursor-ring__label {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.2s var(--ease-out);
}

.cursor-ring.is-ver {
  width: 90px;
  height: 90px;
  background: var(--orange);
  border-color: var(--orange);
}

.cursor-ring.is-ver .cursor-ring__label {
  opacity: 1;
}

.cursor-ring.is-link {
  width: 64px;
  height: 64px;
  border-color: var(--ink);
}

.cursor-ring.is-grab {
  width: 70px;
  height: 70px;
  background: rgba(245, 166, 35, 0.15);
  border-color: var(--orange);
}

/* =============================================================
   NAV
   ============================================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  padding: 28px 32px;
  color: var(--ink);
  pointer-events: none;
  will-change: transform, opacity;
}

.nav > * { pointer-events: auto; }

.nav__col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav__col--left { align-items: flex-start; }
.nav__col--center { align-items: center; text-align: center; }
.nav__col--right { align-items: flex-end; text-align: right; }

.nav__brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.nav__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav__back-arrow {
  font-size: 22px;
  line-height: 1;
}

/* Logo image — primary, falls back to text wordmark on 404 via JS */
.nav__logo {
  height: 42px;
  width: auto;
  display: block;
  filter: none;
  transition: filter 0.35s var(--ease-out), opacity 0.35s var(--ease-out);
}

.nav__brand-fallback {
  display: none;
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 0.04em;
}

.nav__brand--no-img .nav__logo { display: none; }
.nav__brand--no-img .nav__brand-fallback { display: inline-block; }

/* Dark theme — fallback white silhouette ONLY when no dedicated dark logo
   is available. JS manages this: if assets/logo-white.png loads, the JS
   sets inline `filter: none` (which beats this rule) and swaps the src.
   If the file is missing, the JS leaves filter empty and this rule kicks in. */
body.theme-dark .nav__logo {
  filter: brightness(0) invert(1);
}

body.theme-dark .nav__brand-fallback {
  color: var(--offwhite);
}

/* ----------- LOGO COLOR TOGGLE (small pill in nav) ----------- */
.logo-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 4px 8px;
  margin-left: 14px;
  cursor: none;
  opacity: 0.6;
  transition: opacity 0.25s var(--ease-out);
  vertical-align: middle;
}

.logo-toggle:hover { opacity: 1; }

.logo-toggle__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.logo-toggle__dot--color { background: var(--orange); }
.logo-toggle__dot--mono  { background: transparent; outline: 1px solid currentColor; outline-offset: -1px; }

body.theme-dark .logo-toggle__dot--color { background: transparent; outline: 1px solid currentColor; outline-offset: -1px; }
body.theme-dark .logo-toggle__dot--mono  { background: currentColor; outline: none; }

.nav__label {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

.nav__sub {
  font-size: 11px;
  letter-spacing: 0.04em;
  opacity: 0.65;
  font-weight: 400;
  max-width: 280px;
}

.load-nav {
  opacity: 0;
  transform: translateY(-12px);
}

/* =============================================================
   HOME — HERO
   ============================================================= */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: var(--offwhite);
}

.hero__bgs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  will-change: opacity;
  background-size: cover;
  background-position: center;
}

.hero__bg.is-active { opacity: 1; }

.hero__bg[data-bg="default"]      { background: var(--offwhite); }
.hero__bg[data-bg="productos"]    { background: linear-gradient(135deg, #1a1a1a, #4a4a4a); }
.hero__bg[data-bg="conciertos"]   { background: linear-gradient(135deg, #FF4D2E, #3D1C6B); }
.hero__bg[data-bg="expositores"] { background: linear-gradient(135deg, #3D1C6B, #E91E8C); }
.hero__bg[data-bg="motion-reel"]  { background: linear-gradient(135deg, #0D0D0D, #F5A623); }
.hero__bg[data-bg="documental"]   { background: linear-gradient(135deg, #2D9B7F, #1A2240); }

/* Video / image fills the hero background slot, lays on top of the gradient fallback */
.hero__bg-video,
.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.hero__caption {
  position: absolute;
  top: 50%;
  left: 32px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
  color: var(--ink);
  mix-blend-mode: difference;
  filter: invert(1);
  pointer-events: none;
}


.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  display: inline-block;
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.3); }
}

/* =============================================================
   TICKER (draggable, infinite)
   ============================================================= */
.ticker {
  position: absolute;
  bottom: -1.5vw;          /* gentle bottom crop like fielddaysound */
  left: 0;
  right: 0;
  width: 100%;
  z-index: 4;
  /* Clip horizontally so the wide infinite track is hidden, but let letters
     lift, scale and tilt freely upward without being cropped by the box. */
  overflow-x: clip;
  overflow-y: visible;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}

.ticker.is-grabbing { cursor: grabbing; }

.ticker__track {
  display: flex;
  align-items: flex-end;
  gap: 4vw;
  white-space: nowrap;
  will-change: transform;
  padding: 0 2vw;
  touch-action: pan-y;
  position: relative; /* offsetParent for .tchar offset calculations */
}

.ticker__item {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13.5vw;
  line-height: 0.9;
  letter-spacing: -0.005em;
  color: var(--ink);
  flex-shrink: 0;
  white-space: nowrap;
  pointer-events: auto;
}

/* Per-letter spans — JS animates these on every frame for the warp effect */
.tchar {
  display: inline-block;
  color: var(--ink);
  opacity: 0.45;
  transform: translateZ(0);
  transform-origin: 50% 100%; /* pivot from baseline so letters tilt like an arch */
  pointer-events: auto;
}

.ticker.is-dragging .ticker__item,
.ticker.is-dragging .tchar {
  pointer-events: none; /* prevent hover flicker mid-drag */
}

.ticker__hint {
  position: absolute;
  top: 12px;
  right: 32px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.45;
  color: var(--ink);
  mix-blend-mode: difference;
  filter: invert(1);
  pointer-events: none;
}

/* Slide-up start state, animated in by JS */
.ticker {
  transform: translateY(70%);
}

/* =============================================================
   PROJECT PAGE
   ============================================================= */
.page-project {
  background: #0a0a0a;
}

.nav--project {
  color: var(--offwhite);
  mix-blend-mode: difference;
}

.nav--project .nav__brand,
.nav--project .nav__label {
  color: var(--offwhite);
}

/* Hero video */
.phero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: #050505;
  color: var(--offwhite);
}

.phero__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
  overflow: hidden;
  /* gradient set by JS once we know the project id */
}

.phero__video,
.phero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.phero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 35%, transparent 70%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}

.phero__tag {
  position: absolute;
  top: 32px;
  right: 32px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--offwhite);
  border: 1px solid rgba(240, 237, 232, 0.4);
  padding: 8px 14px;
  border-radius: 999px;
  z-index: 3;
  margin-top: 80px;
}

.phero__title {
  position: absolute;
  bottom: 6vh;
  left: 32px;
  right: 32px;
  font-family: var(--font-display);
  font-size: clamp(64px, 8vw, 200px);
  line-height: 0.9;
  letter-spacing: -0.005em;
  color: var(--offwhite);
  z-index: 3;
}

/* Description */
.pdesc {
  background: var(--offwhite);
  color: var(--ink);
  padding: 14vh 32px 12vh;
}

.pdesc__cols {
  max-width: 1500px;
  margin: 0 auto 10vh;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 8vw;
  align-items: start;
}

.pdesc__title {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 160px);
  line-height: 0.9;
  letter-spacing: -0.005em;
}

.pdesc__title .line {
  display: block;
  overflow: hidden;
}

.pdesc__right p {
  font-size: clamp(15px, 1.2vw, 19px);
  line-height: 1.55;
  margin-bottom: 1.4em;
  max-width: 56ch;
}

.pmeta {
  list-style: none;
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  border-top: 1px solid rgba(26, 26, 26, 0.2);
  padding-top: 4vh;
}

.pmeta li {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pmeta__k {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
}

.pmeta__v {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1;
}

/* =============================================================
   FRAMES SECTION (project page)
   Clean editorial layout: project title + counter at the top,
   cinematic featured frame in the middle, horizontal thumbnail strip
   below. --frames-accent is set per-project by JS for theming.
   ============================================================= */
.pframes {
  position: relative;
  background: var(--offwhite);
  color: var(--ink);
  padding: 12vh 32px 14vh;
  --frames-accent: var(--ink);
}

/* Top row: title left · meta (eyebrow + counter) right */
.pframes__head {
  max-width: 1500px;
  margin: 0 auto 5vh;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}

.pframes__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(56px, 7.2vw, 150px);
  line-height: 0.86;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.pframes__title .line {
  display: block;
}

.pframes__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.pframes__eyebrow {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--frames-accent);
}

.pframes__count {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.6vw, 48px);
  letter-spacing: 0.06em;
  color: var(--frames-accent);
  line-height: 1;
}

.pframes__count-sep {
  display: inline-block;
  margin: 0 6px;
  opacity: 0.4;
}

/* Featured cinematic frame */
.pframes__featured {
  position: relative;
  max-width: 1500px;
  margin: 0 auto;
  aspect-ratio: 21 / 9;
  background: #0a0a0a;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.4);
}

.pframes__stage {
  position: absolute;
  inset: 0;
}

.pframes__active-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  will-change: opacity;
  overflow: hidden;
}

/* Real-frame <img> tags fill the active stage and the thumbs.
   The img sits ON TOP of the gradient, so when src is empty/loading
   the gradient still shows as a fallback. */
.pframes__active-img,
.pframe-thumb__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.pframes__active-bg[data-bg="productos"]    { background: linear-gradient(135deg, #1a1a1a, #4a4a4a); }
.pframes__active-bg[data-bg="conciertos"]   { background: linear-gradient(135deg, #FF4D2E, #3D1C6B); }
.pframes__active-bg[data-bg="expositores"] { background: linear-gradient(135deg, #3D1C6B, #E91E8C); }
.pframes__active-bg[data-bg="motion-reel"]  { background: linear-gradient(135deg, #0D0D0D, #F5A623); }
.pframes__active-bg[data-bg="documental"]   { background: linear-gradient(135deg, #2D9B7F, #1A2240); }

.pframes__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.18) 100%);
  pointer-events: none;
  z-index: 1;
}

.pframes__label {
  position: absolute;
  bottom: 22px;
  left: 28px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--offwhite);
  z-index: 2;
  border: 1px solid rgba(240, 237, 232, 0.5);
  padding: 7px 13px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

/* Horizontal thumbnail strip. Column count comes from --frame-count
   (JS sets it per project: 6 by default, 5 for expositores, etc.). The
   responsive @media rules below override the column count on tablet/phone. */
.pframes__strip {
  max-width: 1500px;
  margin: 3vh auto 0;
  display: grid;
  grid-template-columns: repeat(var(--frame-count, 6), 1fr);
  gap: 12px;
}

.pframe-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #111;
  border: none;
  cursor: none;
  overflow: hidden;
  padding: 0;
  opacity: 0.5;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  will-change: opacity, transform;
}

.pframe-thumb[data-bg="productos"]    { background: linear-gradient(135deg, #1a1a1a, #4a4a4a); }
.pframe-thumb[data-bg="conciertos"]   { background: linear-gradient(135deg, #FF4D2E, #3D1C6B); }
.pframe-thumb[data-bg="expositores"] { background: linear-gradient(135deg, #3D1C6B, #E91E8C); }
.pframe-thumb[data-bg="motion-reel"]  { background: linear-gradient(135deg, #0D0D0D, #F5A623); }
.pframe-thumb[data-bg="documental"]   { background: linear-gradient(135deg, #2D9B7F, #1A2240); }

.pframe-thumb:hover {
  opacity: 0.9;
  transform: translateY(-4px);
}

.pframe-thumb.is-active {
  opacity: 1;
  outline: 1.5px solid var(--frames-accent);
  outline-offset: 4px;
}

.pframe-thumb__num {
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--offwhite);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

/* Next project */
.pnext {
  display: block;
  position: relative;
  background: #0A0A0A;
  color: var(--offwhite);
  padding: 14vh 32px;
  text-align: center;
  overflow: hidden;
  cursor: none;
}

.pnext__flash {
  position: absolute;
  inset: 0;
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.55s var(--ease-out);
  z-index: 0;
}

.pnext:hover .pnext__flash { transform: scaleY(1); }

.pnext__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.pnext__eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.6;
}

.pnext__name {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 180px);
  line-height: 0.9;
  letter-spacing: -0.005em;
  transition: transform 0.5s var(--ease-out), color 0.4s var(--ease-out);
}

.pnext:hover .pnext__name {
  color: var(--ink);
  transform: translateX(20px);
}

.pnext:hover .pnext__eyebrow {
  color: var(--ink);
}

/* =============================================================
   ANIMATION HELPERS
   ============================================================= */
.reveal-line { will-change: transform, opacity; }

/* =============================================================
   DARK THEME — flips backgrounds to elegant grey, typo to off-white.
   Triggered by body.theme-dark (toggled by the pill in the header).
   ============================================================= */
:root {
  --theme-bg: var(--offwhite);
  --theme-fg: var(--ink);
}

body.theme-dark {
  --theme-bg: #0a0a0a;
  --theme-fg: var(--offwhite);
  background: var(--theme-bg);
  color: var(--theme-fg);
}

/* Hero — use the dark grey for the default background and the section bg */
body.theme-dark .hero {
  background: var(--theme-bg);
}
body.theme-dark .hero__bg[data-bg="default"] {
  background: radial-gradient(ellipse at 30% 30%, #141414 0%, #050505 75%);
}

/* Nav text → off-white */
body.theme-dark .nav,
body.theme-dark .nav__brand,
body.theme-dark .nav__back,
body.theme-dark .nav__back-arrow,
body.theme-dark .nav__label,
body.theme-dark .nav__sub,
body.theme-dark .nav__brand-fallback {
  color: var(--theme-fg);
}

body.theme-dark .nav__sub { opacity: 0.65; }

/* Side caption + ticker hint — drop the difference/invert hack and just use white */
body.theme-dark .hero__caption,
body.theme-dark .ticker__hint {
  color: var(--theme-fg);
  mix-blend-mode: normal;
  filter: none;
}

/* Per-letter ticker text resting color (JS overrides during warp) */
body.theme-dark .ticker__item,
body.theme-dark .tchar {
  color: var(--theme-fg);
}

/* Logo color toggle pill — match foreground */
body.theme-dark .logo-toggle {
  color: var(--theme-fg);
}

/* Custom cursor ring blends against the dark bg */
body.theme-dark .cursor-ring {
  border-color: rgba(240, 237, 232, 0.4);
}
body.theme-dark .cursor-ring__label { color: var(--ink); }

/* Project page sections that use off-white backgrounds also flip */
body.theme-dark .pdesc,
body.theme-dark .pframes {
  background: var(--theme-bg);
  color: var(--theme-fg);
}

body.theme-dark .pmeta {
  border-top-color: rgba(240, 237, 232, 0.18);
}

body.theme-dark .pframes__title {
  color: var(--theme-fg);
}

/* Selection */
body.theme-dark ::selection {
  background: var(--orange);
  color: var(--ink);
}

/* =============================================================
   NAV — clickable column ("Estudio" link)
   ============================================================= */
.nav__col--link {
  text-decoration: none;
  color: inherit;
  cursor: none;
  transition: opacity 0.3s var(--ease-out);
}
.nav__col--link:hover { opacity: 0.65; }

.nav__label--active {
  color: var(--orange);
}

/* =============================================================
   ESTUDIO PAGE
   Cinematic editorial layout — hero · manifesto · services · process · contact
   ============================================================= */
.page-estudio {
  background: var(--black, #0a0a0a);
}

/* ----------- HERO ----------- */
.estudio-hero {
  position: relative;
  min-height: 100vh;
  padding: 30vh 32px 8vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.estudio-hero__eyebrow {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 4vh;
}

.estudio-hero__title {
  font-family: var(--font-display);
  font-size: clamp(120px, 22vw, 380px);
  line-height: 0.86;
  letter-spacing: -0.018em;
  margin: 0 0 6vh;
  color: var(--offwhite);
}

.estudio-hero__title .line { display: block; overflow: hidden; }

.estudio-hero__lede {
  font-size: clamp(20px, 2vw, 32px);
  line-height: 1.35;
  max-width: 22ch;
  font-weight: 300;
  color: var(--offwhite);
}

.estudio-hero__lede em {
  font-style: italic;
  color: var(--orange);
}

/* ----------- ABOUT ----------- */
.estudio-about {
  padding: 14vh 32px 16vh;
  background: var(--black, #0a0a0a);
}

.estudio-about__inner {
  max-width: 1500px;
  margin: 0 auto;
}

.estudio-about__statement {
  font-family: var(--font-display);
  font-size: clamp(64px, 9vw, 200px);
  line-height: 0.92;
  letter-spacing: -0.012em;
  color: var(--offwhite);
  margin: 0 0 12vh;
}

.estudio-about__statement .line {
  display: block;
  overflow: hidden;
}

.estudio-about__cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 8vw;
  align-items: start;
}

.estudio-about__text p {
  font-size: clamp(16px, 1.3vw, 21px);
  line-height: 1.55;
  margin-bottom: 1.4em;
  max-width: 50ch;
  color: var(--offwhite);
  opacity: 0.9;
}

.estudio-about__text em {
  font-style: italic;
  color: var(--orange);
}

.estudio-about__stats {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(240, 237, 232, 0.18);
}

.estudio-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 4vh 0;
  border-bottom: 1px solid rgba(240, 237, 232, 0.18);
}

.estudio-stat__num {
  font-family: var(--font-display);
  font-size: clamp(56px, 6.5vw, 110px);
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--offwhite);
}

.estudio-stat__num em {
  font-style: normal;
  color: var(--orange);
}

.estudio-stat__label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: right;
  max-width: 130px;
  opacity: 0.6;
  color: var(--offwhite);
}

/* ----------- SERVICES ----------- */
.estudio-services {
  background: #050505;
  padding: 14vh 32px 14vh;
}

.estudio-services__head {
  max-width: 1500px;
  margin: 0 auto 6vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.estudio-services__eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.6;
}

.estudio-services__title {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 160px);
  line-height: 0.9;
  letter-spacing: -0.012em;
}

.estudio-services__title .line {
  display: block;
  overflow: hidden;
}

.estudio-services__list {
  list-style: none;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0;
}

.srv {
  position: relative;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 38px 8px;
  border-bottom: 1px solid rgba(240, 237, 232, 0.15);
  cursor: none;
  overflow: hidden;
  color: var(--offwhite);
  transition: color 0.3s var(--ease-out);
}

.srv::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--orange);
  transform: translateX(-101%);
  transition: transform 0.5s var(--ease-out);
  z-index: 0;
}

.srv:hover::before { transform: translateX(0); }
.srv:hover { color: var(--ink); }

.srv__num,
.srv__name,
.srv__arrow {
  position: relative;
  z-index: 1;
  transition: transform 0.4s var(--ease-out);
}

.srv__num {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.1em;
  opacity: 0.5;
}

.srv__name {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 100px);
  line-height: 1;
  letter-spacing: 0.005em;
}

.srv:hover .srv__name { transform: translateX(20px); }

.srv__arrow {
  font-size: clamp(28px, 3vw, 48px);
  font-family: var(--font-display);
  opacity: 0.7;
}

/* ----------- PROCESS ----------- */
.estudio-process {
  background: var(--black, #0a0a0a);
  padding: 14vh 32px;
}

.estudio-process__head {
  max-width: 1500px;
  margin: 0 auto 8vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.estudio-process__steps {
  list-style: none;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.estudio-step {
  position: relative;
  border-top: 1px solid rgba(240, 237, 232, 0.18);
  padding-top: 24px;
}

.estudio-step__num {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--orange);
  display: block;
  margin-bottom: 18px;
}

.estudio-step__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 56px);
  line-height: 1;
  letter-spacing: -0.005em;
  margin: 0 0 16px;
  color: var(--offwhite);
}

.estudio-step__body {
  font-size: 14px;
  line-height: 1.55;
  opacity: 0.7;
  color: var(--offwhite);
  margin: 0;
  max-width: 32ch;
}

/* ----------- CONTACT ----------- */
.estudio-contact {
  background: #050505;
  padding: 16vh 32px 4vh;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5vh;
  min-height: 100vh;
  position: relative;
}

.estudio-contact__eyebrow {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--orange);
}

.estudio-contact__title {
  font-family: var(--font-display);
  font-size: clamp(120px, 17vw, 360px);
  line-height: 0.9;
  letter-spacing: -0.018em;
  color: var(--offwhite);
  margin: 0;
  cursor: none;
}

.estudio-contact__title .char {
  display: inline-block;
  will-change: transform;
}

.estudio-contact__email {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 72px);
  letter-spacing: 0.005em;
  color: var(--offwhite);
  border-bottom: 2px solid var(--orange);
  padding-bottom: 6px;
  transition: color 0.3s var(--ease-out);
}

.estudio-contact__email:hover { color: var(--orange); }

.estudio-contact__meta {
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-top: 1px solid rgba(240, 237, 232, 0.18);
  padding-top: 4vh;
  margin-top: 2vh;
}

.estudio-contact__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.estudio-contact__k {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.55;
  color: var(--offwhite);
}

.estudio-contact__v {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 24px);
  letter-spacing: 0.01em;
  color: var(--offwhite);
  line-height: 1.2;
}

.estudio-contact__social {
  list-style: none;
  display: flex;
  gap: 28px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0;
  padding: 0;
}

.estudio-contact__social a {
  position: relative;
  padding-bottom: 4px;
  color: var(--offwhite);
  opacity: 0.85;
  transition: opacity 0.25s var(--ease-out);
}

.estudio-contact__social a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}

.estudio-contact__social a:hover { opacity: 1; }
.estudio-contact__social a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.estudio-footer {
  margin-top: auto;
  padding-top: 6vh;
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
  color: var(--offwhite);
}

/* =============================================================
   RESPONSIVE — three tiers:
     • desktop  (default styles above)
     • tablet   (≤ 1024px)  — iPad portrait/landscape, small laptops
     • phone    (≤ 600px)   — overrides on top of the tablet tier
   ============================================================= */

/* ---------- TOUCH DEVICES — kill the custom cursor regardless of width ---------- */
@media (hover: none) and (pointer: coarse) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
  *, * * { cursor: auto !important; }
  a, button, .ticker, .srv, .pframe-thumb, .nav__col--link { cursor: pointer !important; }
}

/* ============================================================= */
/* TABLET & BELOW (≤ 1024px)                                     */
/* ============================================================= */
@media (max-width: 1024px) {
  /* Cursor — also covers narrow desktop windows */
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
  *, * * { cursor: auto !important; }
  a, button, .ticker, .srv, .pframe-thumb, .nav__col--link { cursor: pointer !important; }

  /* ----- NAV — drop the center "Trabajo" column, keep brand + estudio ----- */
  .nav {
    padding: 18px 22px;
    grid-template-columns: 1fr auto;
  }
  .nav__col--center { display: none; }
  .nav__sub { font-size: 10px; max-width: 220px; }
  .nav__logo { height: 38px; }
  .nav__back-arrow { font-size: 20px; }

  /* ----- HOME — hero ----- */
  .hero__caption { left: 20px; }
  .ticker__item { font-size: 16vw; }
  .loader__logo-img { height: clamp(120px, 24vw, 280px); }

  /* ----- PROJECT — hero video ----- */
  .phero__title { font-size: 11vw; bottom: 5vh; left: 24px; right: 24px; }
  .phero__tag { top: 16px; right: 24px; margin-top: 70px; }

  /* ----- PROJECT — description ----- */
  .pdesc { padding: 12vh 24px 8vh; }
  .pdesc__cols { grid-template-columns: 1fr; gap: 4vh; margin-bottom: 6vh; }
  .pdesc__title { font-size: 10vw; }
  .pmeta { grid-template-columns: repeat(2, 1fr); gap: 28px; }

  /* ----- PROJECT — frames ----- */
  .pframes { padding: 10vh 24px 12vh; }
  .pframes__title { font-size: 9vw; }
  .pframes__featured { aspect-ratio: 16 / 9; }
  .pframes__strip { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .pframe-thumb:hover { transform: none; }

  /* ----- PROJECT — next ----- */
  .pnext { padding: 12vh 24px; }
  .pnext__name { font-size: 10vw; }

  /* ----- ESTUDIO — hero ----- */
  .estudio-hero { padding: 24vh 24px 10vh; min-height: auto; }
  .estudio-hero__title { font-size: 22vw; }
  .estudio-hero__lede { font-size: clamp(18px, 2.6vw, 28px); max-width: 24ch; }

  /* ----- ESTUDIO — about ----- */
  .estudio-about { padding: 12vh 24px; }
  .estudio-about__statement { font-size: 12vw; margin-bottom: 8vh; }
  .estudio-about__cols { grid-template-columns: 1fr; gap: 5vh; }

  /* ----- ESTUDIO — services ----- */
  .estudio-services { padding: 12vh 24px; }
  .srv { grid-template-columns: 48px 1fr auto; gap: 24px; padding: 28px 4px; }
  .srv__name { font-size: 8vw; }

  /* ----- ESTUDIO — process: 2×2 grid ----- */
  .estudio-process { padding: 12vh 24px; }
  .estudio-process__steps { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }

  /* ----- ESTUDIO — contact ----- */
  .estudio-contact { padding: 14vh 24px 5vh; }
  .estudio-contact__title { font-size: 18vw; }
  .estudio-contact__email { font-size: clamp(28px, 4vw, 52px); }
  .estudio-contact__meta { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* ============================================================= */
/* PHONE (≤ 600px)                                               */
/* ============================================================= */
@media (max-width: 600px) {
  /* ----- NAV ----- */
  .nav { padding: 14px 16px; grid-template-columns: 1fr auto; }
  .nav__sub { display: none; }
  .nav__logo { height: 34px; }
  .nav__back-arrow { font-size: 18px; }

  /* ----- HOME — hero ----- */
  .hero__caption { display: none; }
  .ticker__hint { display: none; }
  .ticker__item { font-size: 22vw; }
  .loader__logo-img { height: clamp(90px, 30vw, 180px); }

  /* ----- PROJECT — hero video ----- */
  .phero__title { font-size: 14vw; bottom: 4vh; left: 18px; right: 18px; }
  .phero__tag { top: 12px; right: 18px; margin-top: 56px; padding: 5px 10px; }

  /* ----- PROJECT — description ----- */
  .pdesc { padding: 10vh 18px 6vh; }
  .pdesc__title { font-size: 13vw; }
  .pdesc__right p { font-size: 15px; }
  .pmeta { grid-template-columns: 1fr 1fr; gap: 20px; }
  .pmeta__v { font-size: clamp(22px, 7vw, 34px); }

  /* ----- PROJECT — frames ----- */
  .pframes { padding: 8vh 18px 10vh; }
  .pframes__head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 4vh; }
  .pframes__title { font-size: 14vw; }
  .pframes__meta { flex-direction: row; align-items: flex-start; gap: 14px; }
  .pframes__strip { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .pframes__label { bottom: 14px; left: 18px; font-size: 10px; padding: 5px 10px; }

  /* ----- PROJECT — next ----- */
  .pnext { padding: 10vh 18px; }
  .pnext__name { font-size: 13vw; }

  /* ----- ESTUDIO — hero ----- */
  .estudio-hero { padding: 20vh 18px 8vh; }
  .estudio-hero__eyebrow { font-size: 11px; letter-spacing: 0.22em; }
  .estudio-hero__title { font-size: 26vw; }
  .estudio-hero__lede { font-size: clamp(17px, 5vw, 22px); max-width: 100%; }

  /* ----- ESTUDIO — about ----- */
  .estudio-about { padding: 10vh 18px; }
  .estudio-about__statement { font-size: 15vw; margin-bottom: 6vh; }
  .estudio-about__text p { font-size: 16px; max-width: 100%; }
  .estudio-stat { gap: 16px; padding: 3vh 0; }
  .estudio-stat__num { font-size: 16vw; }
  .estudio-stat__label { font-size: 10px; max-width: 110px; }

  /* ----- ESTUDIO — services ----- */
  .estudio-services { padding: 10vh 18px; }
  .srv { grid-template-columns: 30px 1fr; gap: 14px; padding: 18px 0; }
  .srv__arrow { display: none; }
  .srv__num { font-size: 13px; }
  .srv__name { font-size: 12vw; }
  .srv:hover .srv__name { transform: translateX(10px); }

  /* ----- ESTUDIO — process: single column ----- */
  .estudio-process { padding: 10vh 18px; }
  .estudio-process__steps { grid-template-columns: 1fr; gap: 0; }
  .estudio-step { padding: 24px 0; }
  .estudio-step__title { font-size: 11vw; }
  .estudio-step__body { font-size: 14px; max-width: 100%; }

  /* ----- ESTUDIO — contact ----- */
  .estudio-contact { padding: 12vh 18px 4vh; gap: 4vh; }
  .estudio-contact__title { font-size: 23vw; }
  .estudio-contact__email { font-size: clamp(22px, 6vw, 36px); }
  .estudio-contact__meta { grid-template-columns: 1fr; gap: 18px; }
  .estudio-contact__col { text-align: center; align-items: center; }
  .estudio-contact__social { flex-wrap: wrap; gap: 14px; justify-content: center; }
  .estudio-footer { flex-direction: column; gap: 8px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .ticker__track { transform: none !important; }
  .hero__dot { animation: none; }
}
