/* ============================================================
   mattmartinezr.com — Stylesheet
   Fotógrafo & Videógrafo · Santiago, Chile
   ============================================================ */

/* =====================================================
   RESET & BASE
===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg:        #1d1c1c;
  --fg:        #f5e7d3;
  --accent:    #f5e7d3;
  --border:    rgba(245,231,211,0.18);
  --muted:     rgba(245,231,211,0.45);
  --dim:       rgba(245,231,211,0.2);
  --sans:      'Urbanist', sans-serif;
  --serif:     'Fraunces', serif;
}
html { scroll-behavior: auto; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* =====================================================
   CUSTOM CURSOR
===================================================== */
#cursor {
  position: fixed; top: 0; left: 0; z-index: 9999;
  pointer-events: none;
  width: 10px; height: 10px;
  background: var(--fg);
  border-radius: 50%;
  transform: translate(-50%,-50%);
  transition: width .3s, height .3s, background .3s, opacity .3s;
  mix-blend-mode: difference;
}
#cursor-follower {
  position: fixed; top: 0; left: 0; z-index: 9998;
  pointer-events: none;
  width: 36px; height: 36px;
  border: 1px solid rgba(245,231,211,.3);
  border-radius: 50%;
  transform: translate(-50%,-50%);
}
body.hovering #cursor { width: 48px; height: 48px; opacity: .6; }

/* =====================================================
   LANGUAGE SWITCH
===================================================== */
.lang-switch {
  position: fixed; top: 22px; right: 24px;
  z-index: 600;
  display: flex; align-items: center; gap: 4px;
  font-family: var(--sans); font-size: 11px; letter-spacing: .18em; font-weight: 500;
  text-transform: uppercase;
}
.lang-switch button {
  background: none; border: none; cursor: none;
  color: rgba(245,231,211,.55); padding: 4px 6px;
  font: inherit; letter-spacing: inherit; text-transform: inherit;
  transition: color .3s;
}
.lang-switch button.active { color: var(--fg); }
.lang-switch span { color: rgba(245,231,211,.3); }

/* =====================================================
   NAVIGATION
===================================================== */
#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 36px;
  pointer-events: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background .4s ease, backdrop-filter .4s ease, border-color .4s ease, padding .4s ease;
}
#site-nav.scrolled {
  background: rgba(14,14,14,0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(245,231,211,.08);
  padding: 14px 36px;
}
.nav-logo {
  font-family: var(--sans); font-weight: 500; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg); pointer-events: all;
}
.nav-menu {
  display: flex; gap: 36px; list-style: none; pointer-events: all;
  /* dejar espacio a la derecha para que no choque con el lang-switch */
  padding-right: 80px;
}
.nav-menu a {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 500; color: rgba(245,231,211,.72); transition: color .3s;
}
.nav-menu a:hover { color: var(--fg); }

/* =====================================================
   HERO
===================================================== */
#hero {
  position: relative;
  height: 95vh;
  min-height: 600px;
  overflow: hidden;
  background: #0e0e0e;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  will-change: transform;
}
.hero-bg-img {
  width: 100%; height: 120%;
  background: linear-gradient(160deg, #241e14 0%, #0e0c09 45%, #1a140c 100%);
  display: flex; align-items: center; justify-content: center;
}
.hero-bg-placeholder {
  font-family: var(--serif); font-style: italic; font-size: 12px;
  color: rgba(245,231,211,.25); letter-spacing: .1em; text-align: center; line-height: 2.5;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(14,14,14,.15) 0%, rgba(14,14,14,.55) 75%, rgba(14,14,14,.85) 100%);
}

/* Hero title — two-line H1 with slide-up + letter-spacing collapse */
.hero-letters {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 0 28px 56px; /* 56px deja espacio a los dots (32px + 16px margen) */
  gap: 0;
}
.hero-title-wrap {
  overflow: hidden;
  margin: 0; padding: 0;
  line-height: .9;
}
.hero-title-wrap-sub {
  line-height: 1.1;
}
.hero-line {
  display: block;
  font-family: var(--sans);
  font-weight: 800;
  color: var(--fg);
  transform: translateY(110%);
  /* start with wide letter-spacing, collapse to normal */
  letter-spacing: .3em;
  transition: transform .9s cubic-bezier(0.16, 1, 0.3, 1),
              letter-spacing 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-line.visible {
  transform: translateY(0);
  letter-spacing: -.01em;
}
.hero-line-name {
  font-size: clamp(38px, 6.5vw, 96px);
  padding-bottom: 5px;
}
.hero-line-sub {
  font-size: clamp(16px, 2.4vw, 38px);
  font-weight: 400;
  color: rgba(245,231,211,.65);
  letter-spacing: .25em;
}
.hero-line-sub.visible {
  letter-spacing: .12em;
}

/* Bottom bar — debajo del nav, no pisando las letras */
.hero-bottom {
  position: absolute; top: 72px; left: 0; right: 0; z-index: 3;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 38px;
  pointer-events: none;
}
.hero-location {
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(245,231,211,.45); font-weight: 400;
}
.hero-scroll-btn {
  display: flex; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(245,231,211,.45); font-weight: 400;
}
.hero-scroll-arrow {
  font-size: 14px; animation: bounce .8s ease-in-out infinite alternate;
}
@keyframes bounce { from {transform:translateY(0)} to {transform:translateY(4px)} }

/* =====================================================
   SECTION SHARED
===================================================== */
.section-label {
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 500; color: var(--muted);
  display: flex; align-items: center; gap: 12px;
}
.section-label .num { color: rgba(245,231,211,.35); font-size: 9px; }
.section-label .sep { color: var(--dim); }
.section-label .txt { color: var(--muted); }

/* =====================================================
   01 STUDIO / ABOUT
===================================================== */
#studio {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.studio-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  padding: 100px 36px 80px;
  align-items: start;
  border-top: 1px solid var(--border);
}
.studio-img-col {
  padding-top: 4px;
}
.studio-img {
  width: 190px;
  aspect-ratio: 3/4;
  background: linear-gradient(150deg, #1e1a12, #110f0a);
  border: 1px solid rgba(245,231,211,.06);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  will-change: transform;
}
.studio-img-label {
  font-family: var(--serif); font-style: italic; font-size: 11px;
  color: rgba(245,231,211,.2); letter-spacing: .08em; text-align: center;
}
.studio-text-col {
  padding-left: 60px;
}
.studio-section-label { margin-bottom: 28px; }
.studio-desc {
  font-family: var(--sans); font-size: clamp(14px, 1.3vw, 17px);
  font-weight: 300; line-height: 1.85;
  color: rgba(245,231,211,.75);
  max-width: 540px;
}

/* BIG statement text — full width, like Sable */
.studio-statement {
  padding: 0 36px 100px;
  border-bottom: 1px solid var(--border);
}
.studio-statement-text {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(40px, 6.5vw, 90px);
  line-height: 1.02;
  color: var(--fg);
  letter-spacing: -.01em;
  max-width: 1100px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}
.studio-statement-text.visible { opacity: 1; transform: translateY(0); }

/* =====================================================
   02 SELECTED WORKS
===================================================== */
#works {
  background: var(--bg);
  padding: 0;
}
.works-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 80px 36px 40px;
}
.works-header-left {}
.works-heading {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(28px, 3.5vw, 46px); letter-spacing: -.01em;
  margin-top: 14px;
}
.works-view-all {
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500;
  color: var(--muted); border-bottom: 1px solid var(--dim); padding-bottom: 2px;
  transition: color .3s, border-color .3s;
}
.works-view-all:hover { color: var(--fg); border-color: var(--fg); }

/* Grid — exactly as Sable PDF: left col spans 2 rows, right side 2x2 */
.works-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 4px;
  padding: 0;
}
.work-item {
  position: relative;
  overflow: hidden;
  cursor: none;
}
/* 6 equal service cards */

.work-item-inner {
  position: relative;
  width: 100%; min-height: 300px;
  height: 100%;
}
.work-item .work-item-inner { min-height: 380px; }

.work-bg {
  position: absolute; inset: 0;
  transition: transform .9s cubic-bezier(.25,.46,.45,.94);
}
.work-item:hover .work-bg { transform: scale(1.07); }

/* Placeholder backgrounds */
.wbg1 { background: linear-gradient(135deg,#1e1a10,#2a200c); }
.wbg2 { background: linear-gradient(135deg,#0e1018,#0c1422); }
.wbg3 { background: linear-gradient(135deg,#1a1010,#241212); }
.wbg4 { background: linear-gradient(135deg,#0e1610,#121e14); }
.wbg5 { background: linear-gradient(135deg,#181016,#220e1e); }

.work-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(14,14,14,.8) 0%, transparent 55%);
  z-index: 1;
}
.work-info {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: 24px 20px;
  transform: translateY(5px);
  transition: transform .5s ease;
}
.work-item:hover .work-info { transform: translateY(0); }
.work-name {
  font-family: var(--serif); font-size: clamp(16px, 1.8vw, 22px); font-weight: 300;
  color: var(--fg); display: block; font-style: italic; letter-spacing: .01em;
}
.work-category {
  font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(245,231,211,.55); margin-top: 5px; display: block; font-weight: 500;
}

/* =====================================================
   03 STATIC & MOTION (Services section — like Sable PDF pg2/3)
===================================================== */
#motion {
  background: var(--bg);
  padding: 0;
  border-top: 1px solid var(--border);
}
.motion-header {
  display: grid; grid-template-columns: 280px 1fr;
  padding: 80px 36px 60px;
  gap: 60px; align-items: start;
  border-bottom: 1px solid var(--border);
}
.motion-right-text {
  font-family: var(--sans); font-size: clamp(13px,1.2vw,16px);
  font-weight: 300; line-height: 1.9; color: rgba(245,231,211,.65);
  max-width: 580px; padding-top: 4px;
}
.motion-heading { font-family:var(--sans); font-weight:700; font-size:clamp(28px,3.5vw,46px); letter-spacing:-.01em; margin-top:14px; }

/* Masonry-ish image grid — like Sable pg 2 */
/* ── MOTION GRID COLUMNS ────────────────────────────── */
.motion-grid-cols {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 0 0 60px;
  overflow: visible;
  align-items: start;
}
.mgcol {
  display: flex;
  flex-direction: column;
  gap: 6px;
  will-change: transform;
}
/* Subtle offset — down cols start slightly lower */
.mgcol-up   { transform: translateY(0); }
.mgcol-down { transform: translateY(40px); }

.motion-img {
  overflow: hidden; cursor: none;
  position: relative;
  width: 100%;
  flex-shrink: 0;
}
/* Each column has unique heights so no column looks the same */
.mgcol:nth-child(1) .motion-img:nth-child(1) { height: 420px; }
.mgcol:nth-child(1) .motion-img:nth-child(2) { height: 280px; }
.mgcol:nth-child(1) .motion-img:nth-child(3) { height: 350px; }
.mgcol:nth-child(1) .motion-img:nth-child(4) { height: 240px; }

.mgcol:nth-child(2) .motion-img:nth-child(1) { height: 240px; }
.mgcol:nth-child(2) .motion-img:nth-child(2) { height: 300px; }
.mgcol:nth-child(2) .motion-img:nth-child(3) { height: 200px; }
.mgcol:nth-child(2) .motion-img:nth-child(4) { height: 260px; }

.mgcol:nth-child(3) .motion-img:nth-child(1) { height: 320px; }
.mgcol:nth-child(3) .motion-img:nth-child(2) { height: 260px; }
.mgcol:nth-child(3) .motion-img:nth-child(3) { height: 380px; }
.mgcol:nth-child(3) .motion-img:nth-child(4) { height: 220px; }

.mgcol:nth-child(4) .motion-img:nth-child(1) { height: 260px; }
.mgcol:nth-child(4) .motion-img:nth-child(2) { height: 380px; }
.mgcol:nth-child(4) .motion-img:nth-child(3) { height: 240px; }
.mgcol:nth-child(4) .motion-img:nth-child(4) { height: 310px; }

.mgcol:nth-child(5) .motion-img:nth-child(1) { height: 340px; }
.mgcol:nth-child(5) .motion-img:nth-child(2) { height: 220px; }
.mgcol:nth-child(5) .motion-img:nth-child(3) { height: 300px; }
.mgcol:nth-child(5) .motion-img:nth-child(4) { height: 360px; }

.motion-img-inner {
  width: 100%; height: 100%;
  transition: transform .8s cubic-bezier(.25,.46,.45,.94);
  display: flex; align-items: center; justify-content: center;
}
.motion-img:hover .motion-img-inner { transform: scale(1.05); }

.mb1{background:linear-gradient(135deg,#1e1408,#261a08)}
.mb2{background:linear-gradient(135deg,#0c1018,#081418)}
.mb3{background:linear-gradient(135deg,#181010,#140a0a)}
.mb4{background:linear-gradient(135deg,#141614,#0e1208)}
.mb5{background:linear-gradient(135deg,#161018,#0c0c14)}
.mb6{background:linear-gradient(135deg,#1a1208,#120e04)}
.mb7{background:linear-gradient(135deg,#101418,#0c1218)}
.mb8{background:linear-gradient(135deg,#1c1010,#160c08)}
.mb9{background:linear-gradient(135deg,#0e1610,#081410)}
.mb10{background:linear-gradient(135deg,#181018,#100c14)}
.mb11{background:linear-gradient(135deg,#1c1808,#140e04)}
.mb12{background:linear-gradient(135deg,#0c1418,#080e14)}

.motion-img-label {
  font-family:var(--serif);font-style:italic;font-size:10px;
  color:rgba(245,231,211,.15);letter-spacing:.06em;
}

/* =====================================================
   04 SERVICES — scrolling horizontal label + 1 big preview
===================================================== */
#services {
  background: var(--bg);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
/* Services marquee at top — like "motion design / branding / video production" */
.services-marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.services-marquee-track {
  display: flex; gap: 0;
  animation: marq 22s linear infinite;
  width: max-content; white-space: nowrap;
}
@keyframes marq { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.smarq-item {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(42px, 6vw, 78px);
  color: var(--fg); letter-spacing: .01em;
  padding-right: 48px; user-select: none;
}
.smarq-item span { color: var(--muted); font-weight: 300; font-size: .55em; vertical-align: super; margin-left: 4px; }
.smarq-sep { color: var(--dim); padding-right: 48px; font-size: clamp(42px,6vw,78px); font-weight: 300; }

/* Big video/image below marquee */
.services-visual {
  width: 100%; aspect-ratio: 16/7; overflow: hidden;
  background: linear-gradient(135deg,#0e0e0e,#181410,#0e0c0a);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.services-visual-label {
  font-family:var(--serif);font-style:italic;font-size:13px;
  color:rgba(245,231,211,.2);letter-spacing:.1em;text-align:center;line-height:2;
}

/* Services list below */
.services-body {
  display: grid; grid-template-columns: 280px 1fr;
  padding: 80px 36px 100px;
  gap: 60px; align-items: start;
  border-top: 1px solid var(--border);
}
.services-left-col {}
.services-right-col {}
.services-intro {
  font-family: var(--sans); font-size: clamp(13px,1.2vw,16px);
  font-weight: 300; line-height: 1.9; color: rgba(245,231,211,.65);
  max-width: 580px; margin-bottom: 56px;
}
.service-row {
  display: flex; gap: 24px;
  padding: 28px 0; border-bottom: 1px solid var(--border);
  cursor: none;
  transition: background .3s;
}
.service-row:first-of-type { border-top: 1px solid var(--border); }
.service-row:hover .service-name { color: rgba(245,231,211,.65); }
.service-num {
  font-size: 10px; letter-spacing: .16em; font-weight: 500;
  color: var(--muted); min-width: 28px; padding-top: 4px;
  text-transform: uppercase;
}
.service-name {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(20px,2.5vw,32px); letter-spacing: -.01em;
  color: var(--fg); display: block; margin-bottom: 10px;
  transition: color .4s;
}
.service-desc {
  font-size: 13px; line-height: 1.85; color: var(--muted); font-weight: 300;
  max-width: 480px;
}

/* =====================================================
   05 METHOD
===================================================== */
#method {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 80px 36px 100px;
  display: grid; grid-template-columns: 280px 1fr;
  gap: 60px; align-items: start;
}
.method-left {}
.method-heading { font-family:var(--sans);font-weight:700;font-size:clamp(28px,3.5vw,46px);letter-spacing:-.01em;margin-top:14px; }
.method-right {}
.method-intro {
  font-family: var(--sans); font-size: clamp(13px,1.2vw,16px);
  font-weight: 300; line-height: 1.9; color: rgba(245,231,211,.65); margin-bottom: 56px;
  max-width: 620px;
}
.method-steps { list-style: none; }
.method-step {
  display: flex; gap: 24px;
  padding: 24px 0; border-bottom: 1px solid var(--border);
}
.method-step:first-child { border-top: 1px solid var(--border); }
.method-step-num {
  font-size: 10px; letter-spacing: .16em; font-weight: 500;
  color: var(--muted); min-width: 28px; padding-top: 4px;
  text-transform: uppercase;
}
.method-step-title {
  font-family: var(--sans); font-weight: 600; font-size: 16px; letter-spacing: .01em;
  color: var(--fg); display: block; margin-bottom: 7px;
}
.method-step-desc {
  font-size: 13px; line-height: 1.85; color: var(--muted); font-weight: 300;
}

/* =====================================================
   06 LET'S TALK / CONTACT
===================================================== */
#contact {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 80px 36px 0;
}
.contact-header {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 60px; align-items: start; margin-bottom: 60px;
}
.contact-heading {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(28px,3.5vw,46px); letter-spacing: -.01em; margin-top: 14px;
}
.contact-right-text {
  font-family: var(--sans); font-size: clamp(13px,1.2vw,16px);
  font-weight: 300; line-height: 1.9; color: rgba(245,231,211,.65); padding-top: 4px;
  max-width: 560px;
}
.contact-body {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: start;
  padding-bottom: 80px; border-bottom: 1px solid var(--border);
}
.contact-info {}
.ci-row { margin-bottom: 32px; }
.ci-label {
  font-size: 9px; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 500; color: var(--muted); display: block; margin-bottom: 5px;
}
.ci-val {
  font-family: var(--serif); font-size: 18px; font-weight: 300; color: var(--fg);
  font-style: italic;
}
.contact-form {}
.form-group { margin-bottom: 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-input {
  width: 100%; background: transparent;
  border: none; border-bottom: 1px solid var(--border);
  color: var(--fg); font-family: var(--sans); font-size: 13px; font-weight: 300;
  padding: 14px 0; outline: none; letter-spacing: .03em;
  transition: border-color .3s;
}
.form-input::placeholder { color: rgba(245,231,211,.3); font-size: 12px; }
.form-input:focus { border-bottom-color: rgba(245,231,211,.55); }
textarea.form-input { resize: none; height: 88px; line-height: 1.7; }
.form-submit {
  display: inline-flex; align-items: center; gap: 16px;
  background: var(--fg); color: #0e0e0e; border: none;
  padding: 15px 44px;
  font-family: var(--sans); font-size: 10px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  cursor: none; margin-top: 20px; transition: background .3s, color .3s;
}
.form-submit:hover { background: rgba(245,231,211,.8); }
.form-submit::after { content: '↓'; font-size: 14px; font-weight: 300; letter-spacing: 0; }

/* =====================================================
   FOOTER MARQUEE  +  FOOTER
===================================================== */
.footer-marquee {
  overflow: hidden; padding: 28px 0;
  background: var(--bg); border-top: 1px solid var(--border);
}
.footer-marquee-track {
  display: flex;
  animation: marq 40s linear infinite;
  width: max-content;
}
.footer-marquee-item {
  font-family: var(--sans); font-weight: 800;
  font-size: clamp(80px,12vw,150px);
  color: transparent;
  -webkit-text-stroke: 1px rgba(245,231,211,.07);
  letter-spacing: .04em; white-space: nowrap;
  padding-right: 60px; user-select: none;
}

footer {
  background: var(--bg);
  padding: 28px 36px 32px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 24px;
}
.footer-address {
  display: flex; flex-direction: column; gap: 4px;
}
.footer-address .icon { font-size: 14px; color: var(--muted); }
.footer-address span {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); font-weight: 400; line-height: 1.7;
}
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; transition: color .3s;
}
.footer-links a:hover { color: var(--fg); }
.footer-contact { display: flex; flex-direction: column; gap: 4px; }
.footer-contact a, .footer-contact span {
  font-size: 12px; color: var(--muted); font-weight: 300;
}
.footer-copy { font-size: 10px; color: rgba(245,231,211,.3); letter-spacing: .08em; }

/* =====================================================
   SCROLL REVEAL
===================================================== */
.sr { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.sr.in { opacity: 1; transform: translateY(0); }
.sr-d1 { transition-delay: .1s; }
.sr-d2 { transition-delay: .2s; }
.sr-d3 { transition-delay: .3s; }

.mobile-cotizar-btn { display: none; }

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 900px) {
  /* ── NAV MOBILE: fixed fuera del Lenis wrapper, transparente al inicio ── */
  #site-nav {
    padding: 0 18px;
    height: 56px;
    position: fixed !important;
    top: 0; left: 0; right: 0;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid transparent !important;
    pointer-events: all;
    z-index: 9999;
    transition: background .4s ease, backdrop-filter .4s ease, border-color .4s ease;
  }
  #site-nav.scrolled {
    background: rgba(14,14,14,0.42) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border-bottom: 1px solid rgba(245,231,211,.08) !important;
  }
  .nav-menu { display: none; }
  .nav-logo { font-size: 14px; letter-spacing: .12em; }

  /* ── LANG SWITCH: oculto en mobile ── */
  .lang-switch { display: none !important; }

  /* ── HERO TITLE: mobile horizontal ── */
  /* Hero height: 82% of viewport so name is always visible */
  #hero {
    height: 82svh;
    height: 82vh; /* fallback */
    min-height: 480px;
  }
  /* Ocultar cursor personalizado en mobile */
  #cursor, #cursor-follower { display: none !important; }
  * { cursor: auto !important; }

  /* Lang switch desktop → oculto en mobile */
  .lang-switch-desktop { display: none !important; }

  /* Botón Cotizar — solo mobile, fixed top-right alineado con nav */
  .mobile-cotizar-btn {
    display: flex !important;
    align-items: center;
    position: fixed !important;
    top: 14px;
    right: 18px;
    z-index: 10000;
    background: transparent;
    color: var(--fg) !important;
    border: 1px solid rgba(245,231,211,.5);
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 7px 14px;
    border-radius: 2px;
    text-decoration: none;
    pointer-events: all;
    white-space: nowrap;
  }

  /* Botón Cotizar — dentro del nav mobile, a la derecha */
  .mobile-cotizar-btn {
    display: flex;
    align-items: center;
    background: transparent;
    color: var(--fg) !important;
    border: 1px solid rgba(245,231,211,.5);
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 7px 14px;
    border-radius: 2px;
    text-decoration: none;
    pointer-events: all;
    white-space: nowrap;
    flex-shrink: 0;
    transition: border-color .3s, color .3s;
  }

  .hero-letters {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 18px 28px;
    gap: 0;
  }
  .hero-line-name { font-size: clamp(26px, 8.5vw, 48px); }
  .hero-line-sub  { font-size: clamp(11px, 3.2vw, 18px); }

  .hero-bottom { padding: 0 20px; bottom: auto; top: 72px; }
  .studio-inner { grid-template-columns: 1fr; padding: 60px 20px 40px; }
  .studio-text-col { padding-left: 0; }
  .studio-img { width: 100%; aspect-ratio: 16/9; }
  .studio-statement { padding: 0 20px 60px; }
  .works-header { padding: 60px 20px 32px; }
  .works-grid { grid-template-columns: 1fr 1fr; }
  .work-item:nth-child(1) .work-item-inner { min-height: 220px; }
  .motion-header { grid-template-columns: 1fr; padding: 60px 20px 40px; gap: 20px; }

  /* ── GALERÍA mobile: 2 cols con parallax, mostrar col 1 y 2 completas ── */
  .motion-grid-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px; padding: 0 12px 60px;
    align-items: start;
    overflow: visible;
  }
  .mgcol { width: 100%; }
  .mgcol:nth-child(3), .mgcol:nth-child(4), .mgcol:nth-child(5) { display: none; }
  .mgcol .motion-img:nth-child(1) { height: 280px; }
  .mgcol .motion-img:nth-child(2) { height: 210px; }
  .mgcol .motion-img:nth-child(3) { height: 250px; }
  .mgcol .motion-img:nth-child(4) { height: 230px; }

  #services { padding: 0; }
  .services-body { grid-template-columns: 1fr; padding: 60px 20px 60px; }
  #method { grid-template-columns: 1fr; padding: 60px 20px; }
  #contact { padding: 60px 20px 0; }
  .contact-header { grid-template-columns: 1fr; gap: 20px; }
  .contact-body { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  footer { padding: 24px 20px 28px; }
}

/* ── HERO SLIDER ────────────────────────────────────── */
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  will-change: transform;
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  overflow: hidden;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  transform: scale(1);
  animation: none;
}
.hero-slide.active img {
  animation: kenburns 5s ease-out forwards;
}
.hero-slide.prev img {
  animation: kenburns-out 0.9s ease-out forwards;
}
@keyframes kenburns {
  from { transform: scale(1);    }
  to   { transform: scale(1.05); }
}
@keyframes kenburns-out {
  from { transform: scale(1.05); }
  to   { transform: scale(1.09); }
}

/* Slide counter dots */
.hero-dots {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 4; display: flex; gap: 8px;
}
.hero-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(245,231,211,.3);
  transition: background .4s, transform .4s;
  cursor: none;
}
.hero-dot.active {
  background: rgba(245,231,211,.9);
  transform: scale(1.4);
}
.form-status {
  font-size: 13px;
  letter-spacing: .04em;
  margin-top: 12px;
  min-height: 20px;
  transition: opacity .3s;
}
/* ── FORM VALIDATION ─────────────────────────────── */
.form-group {
  position: relative;
}
.form-error {
  font-size: 11px;
  letter-spacing: .06em;
  color: #e05555;
  margin-top: 5px;
  min-height: 16px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .25s ease, transform .25s ease;
}
.form-error.visible {
  opacity: 1;
  transform: translateY(0);
}
.form-input.error {
  border-bottom-color: #e05555;
}
.form-input.valid {
  border-bottom-color: rgba(245,231,211,.5);
}

.nav-cta {
  background: var(--fg) !important;
  color: #0e0e0e !important;
  padding: 7px 18px !important;
  border-radius: 2px;
  font-weight: 600 !important;
  letter-spacing: .14em !important;
}
.nav-cta:hover { opacity: .85; color: #0e0e0e !important; }

.work-cotizar {
  display: inline-block;
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg);
  opacity: .75;
  transition: opacity .3s ease;
  pointer-events: all;
}
.work-item:hover .work-cotizar { opacity: 1; }

.hero-slide-video {
  background: #000;
  overflow: hidden;
}
.hero-slide-video iframe {
  position: absolute !important;
  top: 50% !important; left: 50% !important;
  transform: translate(-50%,-50%) !important;
  width: 177.78vh !important;
  height: 100vh !important;
  min-width: 100%;
  min-height: 56.25vw;
  pointer-events: none;
  border: none;
}

.form-intro-msg {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
  font-weight: 400;
}

.hero-country {
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(245,231,211,.45);
  font-weight: 400;
  margin-bottom: 6px;
  display: block;
  opacity: 0;
  animation: fadeInCountry .8s ease forwards .3s;
}
@keyframes fadeInCountry { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }

/* ── PROTECCION DE IMAGENES ─────────────────────── */
img, video {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
}
