/* ==========================================================================
   Felix Mataitis — Wedding Films
   ========================================================================== */

:root {
  /* Tema oscuro: --paper es el fondo y --ink el texto */
  color-scheme: dark;
  --ink: #ece7df;
  --ink-soft: #a29b91;
  --paper: #0d0c0b;
  --paper-deep: #161412;
  --black: #070706;
  --light: #f7f4ef;     /* texto sobre fotos y videos */
  --frame: #f4f1ec;     /* marco blanco de los videos */
  --accent: #c49a64;
  --line: rgba(236, 231, 223, 0.14);

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --max: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Type ---------- */

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: 0.01em;
  margin: 0;
}

.display em { font-style: italic; }

.lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.45;
  color: var(--ink-soft);
}

.link-arrow {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  transition: gap 0.3s var(--ease), color 0.3s;
}
.link-arrow:hover { gap: 16px; color: var(--accent); }

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 18px 38px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--light:hover { background: var(--light); color: var(--black); border-color: var(--light); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--light);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), padding 0.4s var(--ease);
  padding: 26px 0;
}
.site-header.is-solid,
.site-header--solid {
  color: var(--ink);
  padding: 16px 0;
}
/* El fondo con blur va en un pseudo-elemento: si el backdrop-filter estuviera en el
   header, el menú mobile (position: fixed) quedaría encerrado dentro de la barra. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(13, 12, 11, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.site-header.is-solid::before,
.site-header--solid::before { opacity: 1; }

.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1;
}
.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.42em;
  margin-top: 6px;
  opacity: 0.75;
}

.nav { display: flex; gap: 34px; }
.nav a {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right 0.35s var(--ease);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { right: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: inherit;
  width: 32px;
  height: 32px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 4px; right: 4px;
  height: 1px;
  background: currentColor;
  content: "";
  transition: transform 0.3s var(--ease);
}
.nav-toggle span { top: 50%; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

@media (max-width: 760px) {
  .nav-toggle { display: block; z-index: 2; }
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background: var(--black);
    color: var(--light);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
  }
  .nav a { font-size: 14px; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav { opacity: 1; pointer-events: auto; }
  body.nav-open .site-header::before { opacity: 0; }
  body.nav-open .brand,
  body.nav-open .nav-toggle { color: var(--light); position: relative; z-index: 2; }
  .nav a { padding: 10px 0; }
  .nav .lang-switch { margin-top: 12px; padding: 8px 14px !important; }
  body.nav-open .nav-toggle span { background: transparent; }
  body.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Placeholder media ---------- */
/* Bloques que reemplazaremos por videos / fotos reales. */

.ph {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 20% 15%, #6e5a45 0%, transparent 60%),
    radial-gradient(100% 80% at 85% 90%, #2f3a3a 0%, transparent 65%),
    linear-gradient(135deg, #3b3129, #1d1b19);
  color: rgba(247, 244, 239, 0.55);
}
.ph--warm {
  background:
    radial-gradient(110% 90% at 75% 20%, #b18a5f 0%, transparent 60%),
    radial-gradient(90% 80% at 15% 85%, #4b3a2c 0%, transparent 65%),
    linear-gradient(160deg, #6b5440, #2a221c);
}
.ph--cool {
  background:
    radial-gradient(110% 90% at 30% 25%, #7d8b86 0%, transparent 60%),
    radial-gradient(90% 80% at 80% 80%, #2c2f35 0%, transparent 65%),
    linear-gradient(150deg, #4c5553, #1e2024);
}
.ph::after {
  /* grano de película */
  content: "";
  position: absolute;
  inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.5;
  pointer-events: none;
  will-change: auto;
}
.ph-label {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 1;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.ph > video,
.ph > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--light);
}
.hero .ph { position: absolute; inset: 0; }
.hero .ph .drift {
  position: absolute;
  inset: -6%;
  background: inherit;
  animation: drift 24s ease-in-out infinite alternate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 60% 45% at 50% 50%, rgba(0,0,0,0.32), transparent 75%),
    linear-gradient(180deg, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.18) 40%, rgba(0,0,0,0.5) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 0 var(--gutter); }
.hero .eyebrow { color: rgba(247, 244, 239, 0.8); }
.hero .display { font-size: clamp(40px, 7vw, 92px); }
.hero .lead { color: rgba(247, 244, 239, 0.85); margin: 22px 0 0; }

.scroll-cue {
  position: absolute;
  z-index: 2;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 46px;
  background: linear-gradient(currentColor, transparent);
  animation: cue 2.2s var(--ease) infinite;
  transform-origin: top;
}

@keyframes drift {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.08) translate(-2%, 1%); }
}
@keyframes cue {
  0% { transform: scaleY(0); opacity: 1; }
  70% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(90px, 12vw, 170px) 0; }
.section--tight { padding: clamp(60px, 8vw, 110px) 0; }
.section--deep { background: var(--paper-deep); }
.section--dark { background: var(--black); color: var(--ink); }
.section--dark .eyebrow { color: rgba(247, 244, 239, 0.6); }

.center { text-align: center; }
.center .lead { max-width: 640px; margin: 24px auto 0; }

/* Intro / manifesto */
.manifesto {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.manifesto .display { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.35; }

/* About */
.about {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}
.about-media { position: relative; padding: 0 12% 18% 0; }
.about-media .ph:first-child { aspect-ratio: 4 / 5; }
.about-media .ph:last-child {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 52%;
  aspect-ratio: 3 / 4;
  border: 10px solid var(--paper);
}
.about-text p { margin: 0 0 1.2em; color: var(--ink-soft); }
.about-text .display { margin-bottom: 30px; }

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
}

/* Featured film (wide) */
.feature {
  display: block;
  position: relative;
  aspect-ratio: 21 / 9;
  color: var(--light);
}
.feature .ph { position: absolute; inset: 0; }
.feature-caption {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  padding: clamp(24px, 4vw, 48px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.45));
}
.feature-caption h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 4vw, 52px);
  margin: 0;
  line-height: 1;
}
@media (max-width: 700px) { .feature { aspect-ratio: 4 / 5; } }

/* Play button */
.play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  border: 1px solid rgba(247, 244, 239, 0.8);
  border-radius: 50%;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}
.play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 53%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--light);
}
a:hover .play,
button:hover .play { transform: scale(1.1); background: rgba(247, 244, 239, 0.12); }

/* Film grid */
.films-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3vw, 44px) clamp(18px, 2vw, 28px);
}
@media (max-width: 960px) { .films-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .films-grid { grid-template-columns: 1fr; } }

.film-card {
  display: block;
  width: 100%;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.film-card .ph {
  aspect-ratio: 16 / 10;
  transition: transform 0.8s var(--ease);
}
.film-card .thumb { overflow: hidden; position: relative; }
.film-card:hover .ph { transform: scale(1.04); }
.film-card .play { width: 58px; height: 58px; margin: -29px 0 0 -29px; opacity: 0; transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.film-card:hover .play { opacity: 1; }
.film-card :is(h2, h3) {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  margin: 18px 0 2px;
  line-height: 1.2;
}
.film-card p {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.film-card.is-hidden { display: none; }

.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 40px 0 60px;
}
.filters button {
  background: none;
  border: 0;
  padding: 6px 0;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}
.filters button:hover,
.filters button.is-active { color: var(--ink); border-color: var(--ink); }

/* Approach / process */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(30px, 4vw, 70px);
  margin-top: 70px;
}
.step { border-top: 1px solid var(--line); padding-top: 26px; }
.section--dark .step { border-color: rgba(247, 244, 239, 0.2); }
.step-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--accent);
}
.step h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  margin: 8px 0 12px;
}
.step p { margin: 0; opacity: 0.75; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Quote */
.quote {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.quote blockquote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.4;
}
.quote cite {
  display: block;
  margin-top: 28px;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* CTA */
.cta {
  position: relative;
  text-align: center;
  color: var(--light);
  padding: clamp(120px, 16vw, 220px) 0;
}
.cta .ph { position: absolute; inset: 0; }
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(20, 18, 16, 0.5);
}
.cta .wrap { position: relative; z-index: 2; }
.cta .display { margin-bottom: 40px; }
.cta .eyebrow { color: rgba(247, 244, 239, 0.75); }

/* Page header (sub pages) */
.page-head { padding: clamp(150px, 18vw, 220px) 0 0; text-align: center; }

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
.contact-info p { color: var(--ink-soft); }
.contact-info dl { margin: 40px 0 0; }
.contact-info dt {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 22px;
}
.contact-info dd { margin: 4px 0 0; font-family: var(--serif); font-size: 22px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; }
.form .full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  border-radius: 0;
  transition: border-color 0.3s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus { outline: none; border-color: var(--ink); }
.form-note { font-size: 13px; color: var(--ink-soft); margin: 0; }

@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
}

/* Footer */
.site-footer {
  background: var(--black);
  color: rgba(247, 244, 239, 0.7);
  padding: 70px 0 40px;
  font-size: 13px;
}

.site-footer .brand { color: var(--ink); }
.footer-links { display: flex; gap: 26px; }
.footer-links a {
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.footer-links a:hover { color: var(--ink); }
.copyright { width: 100%; padding-top: 30px; border-top: 1px solid rgba(247,244,239,0.12); font-size: 11px; letter-spacing: 0.1em; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Páginas, SEO y performance
   ========================================================================== */

/* Grano animado sólo en el hero (en el resto es estático: menos trabajo de GPU) */
.hero .ph::after { animation: grain 1.2s steps(6) infinite; }

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  font-size: 13px;
}
.skip:focus { left: 8px; }

.eyebrow--light { color: rgba(247, 244, 239, 0.75); }
h1.eyebrow { font-weight: 400; }
.hero h1.eyebrow { font-size: 12px; margin-bottom: 22px; }

.display--sm { font-size: clamp(26px, 3vw, 38px); margin-bottom: 18px; }
.section-head { margin-bottom: 56px; }
.section-foot { margin-top: 56px; }
.section--flush-top { padding-top: 0; }
.wrap--narrow { width: min(820px, 100% - 2 * var(--gutter)); }

/* Breadcrumbs */
.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 0;
  margin: 0 0 34px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.5; }
.crumbs a:hover { color: var(--ink); }
.page-head--film .crumbs ol { justify-content: flex-start; }
.page-head--film { text-align: left; padding-bottom: 40px; }

/* Prosa y columnas */
.prose p { color: var(--ink-soft); }
.prose a:not(.link-arrow) { border-bottom: 1px solid var(--line); }
.prose a:not(.link-arrow):hover { border-color: var(--ink); }
.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 100px);
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.checks { list-style: none; padding: 0; margin: 0 0 1.5em; }
.checks li {
  position: relative;
  padding: 12px 0 12px 28px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 12px;
  height: 1px;
  background: var(--accent);
}

/* Servicios */
.services { display: grid; gap: clamp(70px, 9vw, 130px); }
.service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
  scroll-margin-top: 110px;
}
.service .ph { aspect-ratio: 16 / 10; }
.service:nth-child(even) > .ph { order: 2; }
.service p { color: var(--ink-soft); }
@media (max-width: 860px) {
  .service { grid-template-columns: 1fr; }
  .service:nth-child(even) > .ph { order: 0; }
}
a.step { display: block; transition: border-color 0.3s; }
a.step:hover { border-color: var(--accent); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 40px 24px 0;
  position: relative;
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 22px;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 0 24px; color: var(--ink-soft); }
.faq details p { margin: 0; }

/* Página de film */
.player { position: relative; aspect-ratio: 16 / 9; color: var(--light); background: #111; }
.player .ph { position: absolute; inset: 0; }
.player iframe,
.player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-btn {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
}
.player:not([data-video]) .player-btn { cursor: default; }
.player.is-playing .ph,
.player.is-playing .player-btn { display: none; }
.film-body {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: clamp(40px, 6vw, 100px);
}
.film-meta { margin: 0; }
.film-meta dt {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 20px;
}
.film-meta dt:first-child { margin-top: 0; }
.film-meta dd { margin: 4px 0 0; font-family: var(--serif); font-size: 21px; }
@media (max-width: 860px) { .film-body { grid-template-columns: 1fr; } }

/* Footer en columnas */
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-grid nav,
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 8px; }
.footer-grid a:hover { color: var(--ink); }
.footer-title {
  margin: 0 0 8px;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(247, 244, 239, 0.45);
}
.footer-blurb { max-width: 300px; margin: 20px 0 0; line-height: 1.6; }
.copyright { grid-column: 1 / -1; }
@media (max-width: 900px) { .site-footer .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .footer-grid { grid-template-columns: 1fr; } }

/* Contenido fuera de pantalla: el navegador no lo pinta hasta que se acerca */
.section--deep,
.section--dark,
.site-footer { content-visibility: auto; contain-intrinsic-size: auto 800px; }

/* Video de fondo: aparece con fundido cuando ya tiene el primer frame */
.ph > video[data-src] { opacity: 0; transition: opacity 1.2s var(--ease); }
.ph > video.is-ready { opacity: 1; }

/* Selector de idioma */
.lang-switch {
  font-size: 11px;
  letter-spacing: 0.2em;
  padding: 4px 9px !important;
  border: 1px solid currentColor;
  opacity: 0.8;
}
.lang-switch::after { display: none; }
.lang-switch:hover { opacity: 1; }
.footer-grid .lang-switch { align-self: flex-start; margin-top: 6px; }

/* ---------- Medios reales ---------- */
/* Sin grano artificial cuando hay imagen o video de verdad */
.ph:has(> img)::after,
.bg-media::after { display: none; }
.bg-media { position: absolute; inset: 0; }
.bg-media > img { transition: opacity 0.6s var(--ease); }

/* Preview al pasar el mouse por una tarjeta */
.thumb .ph > video.preview {
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.thumb.is-previewing .ph > video.preview { opacity: 1; }

/* Reproductor del film: respeta el formato cinemascope */
.player video { object-fit: contain; background: #000; }
.player .ph > img { object-fit: cover; }

/* ---------- Marco blanco en los videos ---------- */
.thumb {
  padding: 6px;
  background: var(--frame);
}
.player {
  border: 10px solid var(--frame);
  box-sizing: border-box;
}
.feature {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
  border: 10px solid var(--frame);
  box-sizing: border-box;
}
@media (max-width: 600px) {
  .player, .feature { border-width: 6px; }
  .thumb { padding: 5px; }
}

/* Instrument Serif tiene un solo peso: los títulos usan el regular */
.display, .brand, .film-card :is(h2, h3), .feature-caption h2, .step h3,
.quote blockquote, .lead, .faq summary, .contact-info dd, .film-meta dd { font-weight: 400; }

/* Fondos con <picture> (vertical en celular, horizontal en escritorio) */
.bg-media picture,
.bg-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Hero: "historia" protagonista ---------- */
.hero-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1;
}
.hero-kicker {
  display: block;
  font-size: clamp(26px, 3.6vw, 46px);
  letter-spacing: 0.01em;
  margin-bottom: 0.1em;
}
/* "contar": subrayado fino en dorado, como un trazo */
.hero-verb {
  position: relative;
  white-space: nowrap;
}
.hero-verb::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: 0.02em;
  height: 1px;
  background: var(--accent);
  transform-origin: left;
  animation: trazo 1.4s 0.6s var(--ease) both;
}
/* "historia": la palabra grande */
.hero-word {
  display: block;
  font-style: italic;
  font-size: clamp(76px, 15vw, 230px);
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
  animation: aparece 1.6s 0.2s var(--ease) both;
}
.hero .lead { margin-top: 26px; }

@keyframes trazo { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes aparece {
  from { opacity: 0; transform: translateY(18px); letter-spacing: 0.04em; }
  to { opacity: 1; transform: none; letter-spacing: -0.01em; }
}


/* ---------- Rollo de película: la historia, cuadro a cuadro ---------- */
.reel-section { padding-top: 0; }
.reel { position: relative; }
.reel-track {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  cursor: grab;
  outline: none;
  /* el rollo se funde con el fondo en los bordes */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.reel-track::-webkit-scrollbar { display: none; }
.reel-track.is-dragging { cursor: grabbing; }
.reel-track.is-dragging a { pointer-events: none; }
.reel-track:focus-visible { box-shadow: inset 0 0 0 1px var(--accent); }

/* La película: perforaciones arriba y abajo que se desplazan con los cuadros */
.reel-frames {
  --hole: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='16'%3E%3Crect x='6' y='3' width='14' height='10' rx='2.5' fill='%23ece7df' fill-opacity='.82'/%3E%3C/svg%3E");
  list-style: none;
  margin: 0;
  display: flex;
  gap: 10px;
  width: max-content;
  padding: 44px 12px 40px;
  background-color: #050505;
  background-image: var(--hole), var(--hole);
  background-repeat: repeat-x;
  background-size: 26px 16px;
  background-position: 0 10px, 0 calc(100% - 10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}
.reel-frame {
  flex: 0 0 auto;
  width: clamp(230px, 30vw, 420px);
  padding: 0 4px;
  border-right: 1px solid rgba(236, 231, 223, 0.08);   /* línea entre cuadros */
}
.reel-label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 10px;
  white-space: nowrap;
  overflow: hidden;
}
.reel-num {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--accent);
}
.reel-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1;
  color: var(--ink);
}
.reel-couple {
  margin-left: auto;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.reel-shot {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 4px;              /* esquinas de fotograma */
  background: #111;
  -webkit-user-drag: none;
}
.reel-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter 0.6s var(--ease);
  filter: saturate(0.92);
  -webkit-user-drag: none;
  user-select: none;
}
.reel-shot:hover img { transform: scale(1.04); filter: saturate(1.05); }

.reel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin-top: 26px;
}
.reel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: none;
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
}
.reel-btn:hover { border-color: var(--ink); background: rgba(236, 231, 223, 0.06); }
.reel-hint {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

@media (max-width: 700px) {
  .reel-frame { width: 64vw; }
  .reel-frames { padding: 38px 8px 34px; gap: 8px; }
  .reel-couple { display: none; }
}
