/* =====================================================
   ONIRIZANDO IDEAS — Main Stylesheet
   Organización:
   1. Custom Properties
   2. Reset & Base
   3. Layout Utilities
   4. Typography System
   5. Placeholders
   6. Buttons & Triggers
   7. Header & Navigation
   8. Language Toggle
   9. Sections (Hero → Footer)
  10. Lightbox / Overlays
  11. Animations & Scroll Reveals
  12. Responsive
===================================================== */


/* =====================================================
   1. CUSTOM PROPERTIES
===================================================== */
:root {
  --bg:             #000000;
  --text-primary:   #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.68);
  --accent:         #30638C;
  --border-subtle:  rgba(255, 255, 255, 0.10);
  --max-width:      1400px;
  --gutter:         40px;
  --font-serif:     'Cormorant Garamond', Georgia, serif;
  --font-sans:      'Raleway', system-ui, sans-serif;
}


/* =====================================================
   2. RESET & BASE
===================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
img  { display: block; max-width: 100%; }


/* =====================================================
   3. LAYOUT UTILITIES
===================================================== */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Fills a positioned parent (aspect-ratio or fixed-height container) */
.fill-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Accent decoration line */
.accent-line {
  display: block;
  width: 36px;
  height: 1px;
  background: var(--accent);
}


/* =====================================================
   4. TYPOGRAPHY SYSTEM
===================================================== */

/* Selling line — Cormorant Garamond italic bold */
.selling {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 20px;
}

/* Large headline — Raleway light */
.h-lg {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.13;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

/* Medium headline */
.h-md {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(26px, 2.8vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

/* Body copy */
.body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.78;
  color: var(--text-secondary);
}

.body p + p { margin-top: 1.1em; }


/* =====================================================
   5. PLACEHOLDERS
   Fallback gradient backgrounds when images are loading
===================================================== */
.ph         { position: relative; overflow: hidden; background: #0c0b09; }
.ph-warm    { background: radial-gradient(ellipse at 45% 52%, #221608 0%, #110d05 45%, #050402 100%); }
.ph-warm-b  { background: radial-gradient(ellipse at 60% 40%, #1d1408 0%, #0e0b05 50%, #040302 100%); }
.ph-cool    { background: radial-gradient(ellipse at 55% 45%, #0d1219 0%, #060a0f 55%, #020305 100%); }
.ph-mid     { background: radial-gradient(ellipse at 50% 55%, #161310 0%, #0b0908 50%, #040303 100%); }
.ph-rich    { background: radial-gradient(ellipse at 38% 60%, #1e120a 0%, #0f0906 50%, #040302 100%); }

.ph-label {
  position: absolute;
  bottom: 14px;
  left: 18px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 8.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.22);
  pointer-events: none;
  user-select: none;
  z-index: 2;
}


/* =====================================================
   6. BUTTONS & TRIGGERS
===================================================== */
.btn {
  display: inline-block;
  padding: 13px 34px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  width: fit-content;
  transition: border-color 0.2s ease;
}

.btn:hover { border-color: rgba(255, 255, 255, 0.9); }

/* Watch Reel / Watch Demo trigger */
.reel-trigger {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-primary);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.reel-trigger .dash {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--text-primary);
  flex-shrink: 0;
}


/* =====================================================
   7. HEADER & NAVIGATION
===================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px var(--gutter);
  background: transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease;
}

/* Gradient vignette behind header */
.site-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.50) 0%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-logo {
  position: relative;
  z-index: 1;
  display: inline-block;
  line-height: 0;
}

.header-logo img {
  height: 44px;
  width: auto;
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 38px;
  position: relative;
  z-index: 1;
}

.header-nav a {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s;
}

.header-nav a:hover { color: var(--text-primary); }

.header-cta { position: relative; z-index: 1; }

/* Language switch */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.lang-switch a {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 9.5px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s;
}

.lang-switch a.active { color: rgba(255, 255, 255, 0.88); }

.lang-sep {
  width: 1px;
  height: 10px;
  background: rgba(255, 255, 255, 0.22);
}

/* Hamburger button — shown only on mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 1;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: rgba(255, 255, 255, 0.80);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }


/* =====================================================
   8. LANGUAGE TOGGLE
   Adding class "is-en" to <html> shows EN content
===================================================== */
.lang-en { display: none; }
html.is-en .lang-es { display: none; }
html.is-en .lang-en { display: revert; }


/* =====================================================
   9. SECTIONS
===================================================== */

/* --- HERO --- */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.85;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.50) 50%, rgba(0,0,0,0.12) 100%),
    linear-gradient(to top, rgba(0,0,0,0.35) 0%, transparent 40%);
  z-index: 1;
}

.hero-asset-label {
  position: absolute;
  bottom: 32px;
  right: var(--gutter);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 8.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.14);
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding-bottom: 88px;
}

.hero-selling {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0;
}

.hero-headline {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  max-width: 660px;
  margin-bottom: 0;
}

/* Hero mask reveal wrappers */
.mask-wrap { overflow: hidden; }
.mask-wrap--selling  { margin-bottom: 16px; }
.mask-wrap--headline { margin-bottom: 44px; }
.mask-wrap--cta      { align-self: flex-start; }

.hero-selling,
.hero-headline,
.hero-content .btn {
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.mask-hidden { transform: translateY(110%); }


/* --- ABOUT --- */
#about {
  position: relative;
  padding: 148px var(--gutter) 152px;
  background: #ECEAE6;
  overflow: hidden;
}

/* Parallax background layer — moves slower than content on scroll */
.about-parallax-bg {
  position: absolute;
  inset: -15% 0;          /* oversized so it never shows gaps during scroll */
  background: #ECEAE6;
  will-change: transform;
  z-index: 0;
}

.about-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-inner .selling {
  font-size: 20px;
  margin-bottom: 26px;
  color: #0A0A0A;
}

.about-inner .h-md {
  margin-bottom: 44px;
  color: #0A0A0A;
}

.about-inner .body {
  max-width: 620px;
  margin: 0 auto;
  color: rgba(10, 10, 10, 0.68);
}


/* --- PABLO / VISUAL OPENING --- */
#pablo {
  padding: 0 var(--gutter) 0;
  max-width: var(--max-width);
  margin: 0 auto;
}

.pablo-top {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 10px;
}

.pablo-copy .selling  { margin-bottom: 22px; }
.pablo-copy .h-md     { margin-bottom: 30px; }
.pablo-copy .body     { margin-bottom: 40px; }

/* Dominant 16:9 video trigger */
.pablo-dominant {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
  background: #0a0806;
}

/* Image zooms subtly on hover */
.pablo-dominant .fill-img {
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.pablo-dominant:hover .fill-img {
  transform: scale(1.08);
}

.pablo-dominant-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.4s ease;
}

/* Slightly darker overlay on hover for text legibility */
.pablo-dominant:hover .pablo-dominant-overlay {
  background: rgba(0, 0, 0, 0.45);
}

/* Play circle fades out on hover */
.play-circle {
  width: 66px;
  height: 66px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.pablo-dominant:hover .play-circle {
  opacity: 0;
  transform: scale(0.85);
}

.play-circle svg {
  width: 16px;
  height: 16px;
  fill: #FFFFFF;
  margin-left: 3px;
}

/* "Demo Reel" cinematic label — hidden by default, reveals on hover */
.pablo-dominant-label {
  position: absolute;
  bottom: 36px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 3;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Accent line — grows left to right */
.pablo-dominant-label::before {
  content: '';
  display: block;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.45s cubic-bezier(0.25, 1, 0.5, 1) 0.05s;
}

.pablo-dominant:hover .pablo-dominant-label::before {
  width: 36px;
}

/* Label text — slides up and fades in */
.pablo-dominant-label span {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 17.6px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.90);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease 0.15s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
  display: block;
}

.pablo-dominant:hover .pablo-dominant-label span {
  opacity: 1;
  transform: translateY(0);
}

/* Pablo Mercado inline link */
.pablo-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.pablo-link:hover {
  border-bottom-color: rgba(255, 255, 255, 0.55);
}

/* 4-column stills strip */
.pablo-stills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.pablo-still {
  position: relative;
  overflow: hidden;
  background: #0a0806;
  cursor: pointer;
}

.pablo-still:nth-child(1) { height: 390px; }
.pablo-still:nth-child(2) { height: 360px; }
.pablo-still:nth-child(3) { height: 395px; }
.pablo-still:nth-child(4) { height: 365px; }

/* Persistent dark overlay on stills */
.pablo-still::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
  pointer-events: none;
}

/* Hover title — centered, fades in on hover */
.pablo-still-title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 17.6px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.90);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.pablo-still:hover .pablo-still-title { opacity: 1; }

/* Inline object-position overrides as utility classes */
.obj-pos-30 { object-position: 30% center; }
.obj-pos-10 { object-position: 10% center; }
.obj-pos-65 { object-position: 65% center; }


/* --- CORE SHOT TO SCALABLE SYSTEM --- */
#core-section {
  background: #ECEAE6;
  /* Height drives the scroll distance for the animation */
  height: 350vh;
}

#core-section .selling { color: #0A0A0A; }
#core-section .h-md    { color: #0A0A0A; }
#core-section .body    { color: rgba(10, 10, 10, 0.68); }

/* Single sticky unit — text + video stay together on screen */
.core-sticky-wrapper {
  position: sticky;
  top: 96px;                        /* clears the fixed header */
  /* dvh = dynamic viewport height: accounts for iOS Safari's
     collapsible URL bar. Falls back to vh on older browsers. */
  height: calc(100dvh - 96px);
  height: calc(100vh - 96px);       /* fallback for older browsers */
  display: flex;
  flex-direction: column;
  background: #ECEAE6;
  overflow: hidden;
}

/* Text block — sits at top, natural height */
.core-copy {
  flex-shrink: 0;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 48px var(--gutter) 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
}

.core-copy-left .selling { margin-bottom: 24px; }
.core-copy-right .body   { padding-top: 6px; }

/* Video area — expands to fill all remaining space below text */
.core-video-area {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Video — full width, proportional height */
.core-process-video {
  width: 100%;
  height: auto;
  display: block;
}

/* Fade edges top and bottom */
.core-video-area::before,
.core-video-area::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 2;
  pointer-events: none;
}

.core-video-area::before {
  top: 0;
  background: linear-gradient(to bottom, #ECEAE6 0%, transparent 100%);
}

.core-video-area::after {
  bottom: 0;
  background: linear-gradient(to top, #ECEAE6 0%, transparent 100%);
}

/* Progress bar — thin blue line on right edge */
.core-progress-bar {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 80px;
  background: rgba(10, 10, 10, 0.10);
  border-radius: 2px;
  z-index: 3;
}

.core-progress-fill {
  width: 100%;
  height: 0%;
  background: #30638C;
  border-radius: 2px;
}


/* --- TECHNOLOGY APPLIED TO CRAFT --- */
#technology {
  padding: 48px 0 148px;
  border-top: 1px solid var(--border-subtle);
}

.tech-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: center;
}

.tech-copy .selling { margin-bottom: 26px; }
.tech-copy .h-md    { margin-bottom: 32px; }
.tech-copy .body    { margin-bottom: 40px; }

/* 4 vertical panels — hover accordion */
.tech-loops {
  display: flex;
  gap: 6px;
  height: 560px;
}

.tech-loop-item {
  position: relative;
  overflow: hidden;
  background: #090909;
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 0;
  transition: flex-grow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Accordion: compress all, expand hovered */
.tech-loops:has(.tech-loop-item:hover) .tech-loop-item        { flex-grow: 1; }
.tech-loops:has(.tech-loop-item:hover) .tech-loop-item:hover  { flex-grow: 3; }

/* Image fades out on panel hover */
.tech-loop-item .fill-img          { transition: opacity 0.3s ease; }
.tech-loop-item:hover .fill-img    { opacity: 0; }

/* Video fades in on panel hover */
.tech-loop-item video.fill-img         { opacity: 0; }
.tech-loop-item:hover video.fill-img   { opacity: 1; }

/* Bottom gradient for title legibility */
.tech-loop-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.10) 50%);
  z-index: 1;
}

/* Panel title — centered bottom, always rendered */
.tech-loop-title {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.90);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
  z-index: 2;
  line-height: 1.5;
  padding: 0 8px;
}

.tech-loop-title::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 10px;
}


/* --- SPAIN + EXPANDED CAPABILITY --- */
#spain {
  padding: 80px var(--gutter);
  background: #ECEAE6;
}

.spain-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 64px;
}

.spain-selling {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.02em;
  color: #0A0A0A;
  white-space: nowrap;
  flex-shrink: 0;
}

.spain-sep {
  width: 1px;
  height: 0;
  background: rgba(10, 10, 10, 0.18);
  flex-shrink: 0;
  transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.spain-sep.is-visible { height: 52px; }

.spain-body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.72;
  color: rgba(10, 10, 10, 0.68);
  max-width: 560px;
}


/* --- CTA FINAL --- */
#cta {
  padding: 170px var(--gutter);
  position: relative;
  text-align: center;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, #130e06 0%, #070604 50%, #000000 80%);
}

.cta-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
}

.cta-selling {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(28px, 3.8vw, 52px);
  letter-spacing: 0.01em;
  line-height: 1.25;
  color: var(--text-primary);
  display: block;
  margin-bottom: 52px;
}


/* --- FOOTER --- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 52px var(--gutter) 44px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 40px;
}

.footer-brand .footer-logo {
  display: inline-block;
  line-height: 0;
  margin-bottom: 10px;
}

.footer-brand .footer-logo img {
  height: 32px;
  width: auto;
  display: block;
  opacity: 0.75;
}

.footer-brand .footer-location {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-nav {
  display: flex;
  gap: 32px;
  justify-content: center;
  padding-top: 2px;
}

.footer-nav a {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s;
}

.footer-nav a:hover { color: rgba(255, 255, 255, 0.75); }

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.footer-contact a {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-social {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  opacity: 0.35;
  transition: opacity 0.2s;
}

.footer-social a:hover { opacity: 0.75; }

.footer-social svg {
  width: 16px;
  height: 16px;
  fill: #FFFFFF;
  display: block;
}

.footer-credit {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.18);
}


/* =====================================================
   10. LIGHTBOX / VIDEO OVERLAYS
===================================================== */
.video-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.video-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.video-overlay--lightbox { background: #000; }
.video-overlay--theater  { background: rgba(0, 0, 0, 0.82); }

.overlay-video {
  display: block;
  object-fit: contain;
  position: relative;
  z-index: 2;
}

.video-overlay--lightbox .overlay-video {
  width: 92vw;
  height: 90vh;
}

.video-overlay--theater .overlay-video {
  width: 85vw;
  height: 85vh;
}

.overlay-close {
  position: absolute;
  top: 28px;
  right: 32px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 1;
  z-index: 3;
  transition: border-color 0.2s;
}

.overlay-close:hover { border-color: rgba(255, 255, 255, 0.75); }


/* =====================================================
   11. ANIMATIONS & SCROLL REVEALS
===================================================== */

/* Generic scroll reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* CTA section fade-up */
.cta-selling,
#cta .btn {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.cta-selling.is-visible,
#cta .btn.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* =====================================================
   12. RESPONSIVE
===================================================== */

/* --- 1024px: tablet landscape --- */
@media (max-width: 1024px) {
  .pablo-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .tech-loops { height: 440px; }

  .footer-inner {
    grid-template-columns: 1fr auto;
    gap: 28px 40px;
  }

  .footer-contact {
    grid-column: 2;
    grid-row: 1;
  }

  .footer-credit { grid-column: 1 / -1; }
}

/* --- 768px: tablet portrait --- */
@media (max-width: 768px) {
  :root { --gutter: 24px; }

  /* Header — dropdown nav */
  .nav-toggle { display: flex; }

  .site-header nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .site-header.nav-open nav {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
  }

  .header-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 20px var(--gutter) 28px;
  }

  .header-nav li { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }

  .header-nav a {
    display: block;
    padding: 13px 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
  }

  /* Hero */
  .hero-content { padding-bottom: 60px; }

  /* About */
  #about { padding: 100px var(--gutter); }

  /* Pablo */
  .pablo-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pablo-stills { grid-template-columns: repeat(2, 1fr); }
  .pablo-still:nth-child(n) { height: 280px; }

  /* Core */
  .core-copy {
    position: static;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 72px var(--gutter) 48px;
  }

  /* Core section — mobile: no sticky, natural flow */
  #core-section        { height: auto; }
  .core-sticky-wrapper { position: static; height: auto; }
  .core-video-area     { min-height: 240px; }

  /* Technology */
  .tech-main {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  #technology { padding: 80px 0 100px; }

  .tech-loops {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    height: auto;
    gap: 6px;
  }

  .tech-loop-item {
    height: 300px;
    flex-grow: unset;
    flex-shrink: unset;
    flex-basis: unset;
  }

  /* Disable accordion on tablet */
  .tech-loops:has(.tech-loop-item:hover) .tech-loop-item,
  .tech-loops:has(.tech-loop-item:hover) .tech-loop-item:hover { flex-grow: unset; }

  .tech-loop-item:hover .fill-img { opacity: 1; }
  .tech-loop-item video.fill-img  { display: none; }

  /* Spain */
  .spain-inner {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  .spain-sep {
    width: 36px;
    height: 1px !important;
    transition: none;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-contact { align-items: flex-start; }

  .footer-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px 20px;
  }

  .footer-credit { grid-column: 1; }
}

/* --- 480px: mobile --- */
@media (max-width: 480px) {
  :root { --gutter: 20px; }

  .hero-selling       { font-size: 20px; }
  .hero-content       { padding-bottom: 48px; }
  #about              { padding: 80px var(--gutter); }
  .pablo-still:nth-child(n) { height: 200px; }
  .core-copy          { padding: 56px var(--gutter) 36px; }

  .tech-loops         { grid-template-columns: 1fr; }
  .tech-loop-item     { height: 240px; }

  #cta                { padding: 120px var(--gutter); }
  .footer-inner       { gap: 24px; }
}
