/* =========================================================
   XCANDLES — editorial.css
   Dirección visual rehecha:
   editorial impresa / journal / archivo / bridal vogue sobrio
   ========================================================= */

/* ---------- variables ---------- */
:root{
  --ed-bg: #e8e4dc;
  --ed-bg-soft: #f1ede6;
  --ed-paper: #f5f1ea;
  --ed-panel: #ece7de;
  --ed-stone: #d4cec4;
  --ed-ash: #9b948c;
  --ed-text: #2f2b27;
  --ed-muted: #6f6962;
  --ed-deep: #171614;
  --ed-line: rgba(47,43,39,.12);
  --ed-line-soft: rgba(47,43,39,.07);
  --ed-white: #ffffff;

  --ed-shadow-soft: 0 10px 24px rgba(23,22,20,.035);
  --ed-shadow: 0 20px 48px rgba(23,22,20,.055);

  --ed-radius-xs: 14px;
  --ed-radius-sm: 20px;
  --ed-radius: 28px;
  --ed-radius-lg: 999px;

  --ed-max: 1440px;
  --ed-wide: 1740px;
  --ed-narrow: 920px;

  --ed-ease: cubic-bezier(.22,.61,.36,1);
  --ed-ease-soft: cubic-bezier(.23,1,.32,1);
}

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

html{
  scroll-behavior: smooth;
}

html,
body{
  margin: 0;
  padding: 0;
}

body.editorial-page{
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ed-text);
  background:
    linear-gradient(180deg, #efebe4 0%, #e8e4dc 44%, #f2eee8 100%);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img{
  display: block;
  width: 100%;
  height: auto;
}

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

button,
input,
textarea,
select{
  font: inherit;
}

/* ---------- layout ---------- */
.container{
  width: min(calc(100% - 64px), var(--ed-max));
  margin-inline: auto;
}

.container-full{
  width: min(calc(100% - 26px), var(--ed-wide));
  margin-inline: auto;
}

.editorial-narrow{
  width: min(calc(100% - 64px), var(--ed-narrow));
  margin-inline: auto;
}

.section-space{
  padding: 132px 0;
}

/* ---------- header modular / modo editorial ---------- */
body.editorial-mode #site-header{
  position: relative;
  z-index: 50;
}

body.editorial-mode .site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(241,237,230,.78);
  border-bottom: 1px solid var(--ed-line-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    background .4s var(--ed-ease),
    border-color .4s var(--ed-ease),
    box-shadow .4s var(--ed-ease);
}

body.editorial-mode .site-header.is-scrolled{
  background: rgba(245,241,234,.92);
  border-bottom-color: var(--ed-line);
  box-shadow: 0 8px 20px rgba(23,22,20,.035);
}

body.editorial-mode .nav-bar{
  min-height: 78px;
}

body.editorial-mode .brand-text{
  color: var(--ed-deep);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
}

body.editorial-mode .nav a{
  color: rgba(47,43,39,.82);
  font-size: .86rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.editorial-mode .nav a:hover{
  color: var(--ed-deep);
}

body.editorial-mode .nav .btn,
body.editorial-mode .nav a.btn{
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ed-line);
  border-radius: 0;
  background: var(--ed-deep);
  color: var(--ed-white);
  box-shadow: none;
}

body.editorial-mode .nav-toggle{
  color: var(--ed-deep);
}

/* ---------- typographic system ---------- */
.section-kicker{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--ed-muted);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.section-kicker::before{
  content: "";
  width: 24px;
  height: 1px;
  background: rgba(47,43,39,.34);
  display: block;
}

.section-heading{
  max-width: 900px;
  margin: 0 auto 54px;
  text-align: center;
}

.section-heading--compact{
  max-width: 760px;
}

.section-heading h2,
.editorial-text h2,
.manifesto-box h2,
.masterclass-copy h2,
.cta-box h2{
  margin: 0 0 18px;
  color: var(--ed-deep);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 4vw, 4.65rem);
  line-height: .96;
  font-weight: 500;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.section-heading p{
  max-width: 760px;
  margin: 0 auto;
  color: var(--ed-muted);
  font-size: 1.02rem;
  line-height: 1.95;
}

/* ---------- buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid var(--ed-line);
  border-radius: 0;
  background: var(--ed-deep);
  color: var(--ed-white);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition:
    transform .28s var(--ed-ease),
    background .28s var(--ed-ease),
    border-color .28s var(--ed-ease),
    color .28s var(--ed-ease);
  box-shadow: none;
  cursor: pointer;
}

.btn:hover{
  transform: translateY(-1px);
}

.btn.btn-outline{
  background: transparent;
  color: var(--ed-deep);
  border-color: var(--ed-line);
}


.btn.btn-outline:hover{
  background: rgba(255,255,255,.35);
}

/* =========================================================
   SISTEMA OVALADO / PASTILLA
   ========================================================= */

.btn,
body.editorial-mode .nav .btn,
body.editorial-mode .nav a.btn,
.hero-meta li,
.editorial-tag,
.journal-label,
.xc-field input,
.xc-field textarea,
.xc-field select{
  border-radius: var(--ed-radius);
}

/* cápsulas reales */
.btn,
body.editorial-mode .nav .btn,
body.editorial-mode .nav a.btn,
.hero-meta li,
.editorial-tag,
.journal-label{
  border-radius: var(--ed-radius-lg);
}

/* inputs suaves */
.xc-field input,
.xc-field textarea,
.xc-field select{
  border-radius: 24px;
}

/* textarea */
.xc-field textarea{
  border-radius: 28px;
}

/* cards */
.featured-editorial-link,
.journal-card a,
.value-card,
.point,
.cta-box,
.editorial-form-shell,
.manifesto-box{
  border-radius: 28px;
  overflow: hidden;
}

/* NAV MOBILE */
@media (max-width: 900px){
  body.editorial-mode .nav{
    border-radius: 28px;
  }

  body.editorial-mode .nav a{
    border-radius: 999px;
    padding: 12px 14px;
  }
}

/* IMÁGENES SE MANTIENEN FILOSAS */
.hero-card,
.editorial-frame,
.featured-editorial-media,
.full-bleed-image,
.hero-card img,
.editorial-frame img,
.featured-editorial-media img,
.full-bleed-image img,
.hero-card-secondary img{
  border-radius: 0 !important;
}


/* ---------- chapter ---------- */
.editorial-chapter{
  position: relative;
}

/* ---------- hero ---------- */
.editorial-hero{
  position: relative;
  overflow: clip;
  padding: 0 0 96px;
  border-bottom: 1px solid var(--ed-line-soft);
}

.editorial-hero-bg{
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.025) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(0,0,0,.025) 0 1px, transparent 1px 100%);
  background-size: 100% 100%, 100% 100%;
  opacity: .14;
}

.editorial-hero-layout{
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  min-height: calc(100vh - 78px);
  gap: 0;
  align-items: stretch;
  border-left: 1px solid var(--ed-line-soft);
  border-right: 1px solid var(--ed-line-soft);
}

.editorial-hero-copy{
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 88px 72px 78px;
  background: var(--ed-panel);
  border-right: 1px solid var(--ed-line-soft);
}

.editorial-hero-copy h1{
  margin: 0 0 24px;
  color: var(--ed-deep);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 5.8vw, 6.2rem);
  line-height: .9;
  font-weight: 500;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.hero-lead{
  max-width: 560px;
  margin: 0 0 32px;
  color: var(--ed-muted);
  font-size: 1rem;
  line-height: 1.98;
}

.hero-actions{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.hero-meta{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-meta li{
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--ed-line);
  background: transparent;
  color: var(--ed-muted);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.editorial-hero-visual{
  position: relative;
  min-height: 860px;
  background: #dbd6cf;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 31%);
  align-items: stretch;
}

.hero-card{
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-card img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.08) contrast(.97) brightness(.97);
}

.hero-card-main{
  grid-column: 1 / -1;
  height: 100%;
  min-height: 860px;
  border-right: 1px solid rgba(255,255,255,.08);
  transform: none !important;
}

.hero-card-secondary{
  grid-column: 2 / 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 860px;
  background: var(--ed-paper);
  border-left: 1px solid var(--ed-line-soft);
  transform: none !important;
}

.hero-card-secondary img{
  width: calc(100% - 72px);
  height: auto;
  aspect-ratio: 4 / 5.3;
  margin: 140px auto 0;
  object-fit: cover;
  border: 1px solid var(--ed-line-soft);
}

.hero-caption{
  position: absolute;
  right: max(31% + 34px, 34px);
  bottom: 44px;
  max-width: 300px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: none !important;
}

.hero-caption span{
  display: block;
  margin-bottom: 10px;
  color: rgba(245,241,234,.82);
  font-size: .7rem;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.hero-caption p{
  margin: 0;
  color: rgba(245,241,234,.92);
  font-size: .95rem;
  line-height: 1.72;
}

/* ---------- split sections ---------- */
.editorial-split{
  display: grid;
  gap: 0;
  align-items: stretch;
  border: 1px solid var(--ed-line-soft);
  background: rgba(245,241,234,.52);
}

.editorial-split--balanced{
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
}

.editorial-split--reverse{
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
}

.editorial-text{
  padding: 72px 64px;
  background: var(--ed-paper);
}

.editorial-text h2{
  font-size: clamp(2.2rem, 3.9vw, 4rem);
}

.editorial-text p{
  margin: 0 0 18px;
  color: var(--ed-muted);
  font-size: 1.02rem;
  line-height: 1.94;
}

.editorial-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.editorial-list{
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.editorial-list li{
  position: relative;
  padding-left: 22px;
  color: var(--ed-text);
  font-size: .96rem;
  line-height: 1.8;
}

.editorial-list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: .84em;
  width: 7px;
  height: 7px;
  background: rgba(47,43,39,.22);
  transform: translateY(-50%);
}

/* ---------- image frames ---------- */
.editorial-image{
  min-height: 100%;
}

.editorial-frame{
  height: 100%;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border-left: 1px solid var(--ed-line-soft);
}

.editorial-frame img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.12) contrast(.98) brightness(.98);
}

.editorial-frame--tall{
  min-height: 760px;
}

.editorial-frame--wide{
  min-height: 640px;
}

/* ---------- manifesto ---------- */
.editorial-manifesto{
  position: relative;
}

.manifesto-box{
  max-width: 1120px;
  margin: 0 auto;
  padding: 74px 74px;
  background: var(--ed-paper);
  border: 1px solid var(--ed-line-soft);
  border-radius: 0;
  box-shadow: none;
}

.manifesto-box::before{
  display: none;
}

.manifesto-box h2{
  max-width: 920px;
  font-size: clamp(2.2rem, 4vw, 4.25rem);
}

.manifesto-box p{
  max-width: 820px;
  margin: 0;
  color: var(--ed-muted);
  font-size: 1.04rem;
  line-height: 1.95;
}

/* ---------- featured editorials ---------- */
.editorial-featured-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--ed-line-soft);
  border-left: 1px solid var(--ed-line-soft);
}

.featured-editorial-card{
  min-height: 100%;
}

.featured-editorial-link{
  display: flex;
  flex-direction: column;
  height: 100%;
  border-right: 1px solid var(--ed-line-soft);
  border-bottom: 1px solid var(--ed-line-soft);
  border-radius: 0;
  background: var(--ed-paper);
  box-shadow: none;
  transition:
    background .28s var(--ed-ease),
    transform .28s var(--ed-ease);
}

.featured-editorial-link:hover{
  background: #f8f4ed;
  transform: translateY(-2px);
}

.featured-editorial-media{
  margin: 0;
  aspect-ratio: 4 / 5.2;
  overflow: hidden;
  background: #d8d2ca;
  border-bottom: 1px solid var(--ed-line-soft);
}

.featured-editorial-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.15) contrast(.98) brightness(.98);
}

.featured-editorial-copy{
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 26px 30px;
}

.editorial-tag{
  display: inline-block;
  width: fit-content;
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ed-muted);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.featured-editorial-copy h3{
  margin: 0;
  color: var(--ed-deep);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 1.52rem;
  line-height: 1.16;
  font-weight: 500;
  letter-spacing: -.02em;
}

.featured-editorial-copy p{
  margin: 0;
  color: var(--ed-muted);
  font-size: .96rem;
  line-height: 1.84;
}

.editorial-more{
  display: inline-block;
  margin-top: auto;
  padding-top: 6px;
  color: var(--ed-text);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* ---------- full visual ---------- */
.full-bleed-image{
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--ed-line-soft);
  border-radius: 0;
  min-height: 760px;
  box-shadow: none;
}

.full-bleed-image img{
  width: 100%;
  height: 100%;
  min-height: 760px;
  object-fit: cover;
  filter: saturate(.12) contrast(.98) brightness(.98);
}

/* ---------- value ---------- */
.value-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--ed-line-soft);
  border-left: 1px solid var(--ed-line-soft);
}

.value-card{
  min-height: 260px;
  padding: 34px 30px;
  border-right: 1px solid var(--ed-line-soft);
  border-bottom: 1px solid var(--ed-line-soft);
  border-radius: 0;
  background: var(--ed-paper);
  box-shadow: none;
}

.value-card h3{
  margin: 0 0 14px;
  color: var(--ed-deep);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 1.36rem;
  line-height: 1.16;
  font-weight: 500;
  letter-spacing: -.02em;
}

.value-card p{
  margin: 0;
  color: var(--ed-muted);
  font-size: .98rem;
  line-height: 1.88;
}

/* ---------- masterclass ---------- */
.masterclass-layout{
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  gap: 0;
  align-items: stretch;
  border: 1px solid var(--ed-line-soft);
  background: var(--ed-paper);
}

.masterclass-copy{
  padding: 72px 64px;
}

.masterclass-copy h2{
  font-size: clamp(2.2rem, 3.9vw, 4rem);
}

.masterclass-copy > p{
  margin: 0 0 18px;
  color: var(--ed-muted);
  font-size: 1rem;
  line-height: 1.92;
}

.masterclass-points{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 30px;
  border-top: 1px solid var(--ed-line-soft);
  border-left: 1px solid var(--ed-line-soft);
}

.point{
  padding: 26px 22px;
  border-right: 1px solid var(--ed-line-soft);
  border-bottom: 1px solid var(--ed-line-soft);
  border-radius: 0;
  background: transparent;
}

.point h3{
  margin: 0 0 14px;
  color: var(--ed-deep);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.point ul{
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--ed-muted);
}

.point li{
  line-height: 1.72;
}

.masterclass-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.masterclass-visual .editorial-frame{
  border-left: 1px solid var(--ed-line-soft);
}

.masterclass-visual .editorial-frame--tall{
  min-height: 860px;
}

/* ---------- journal ---------- */
.journal-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--ed-line-soft);
  border-left: 1px solid var(--ed-line-soft);
}

.journal-card a{
  display: block;
  min-height: 100%;
  padding: 34px 28px;
  border-right: 1px solid var(--ed-line-soft);
  border-bottom: 1px solid var(--ed-line-soft);
  border-radius: 0;
  background: var(--ed-paper);
  box-shadow: none;
  transition:
    background .28s var(--ed-ease),
    transform .28s var(--ed-ease);
}

.journal-card a:hover{
  background: #f8f4ed;
  transform: translateY(-2px);
}

.journal-label{
  display: block;
  margin-bottom: 12px;
  color: var(--ed-muted);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.journal-card h3{
  margin: 0 0 12px;
  color: var(--ed-deep);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 1.48rem;
  line-height: 1.16;
  font-weight: 500;
  letter-spacing: -.02em;
}

.journal-card p{
  margin: 0;
  color: var(--ed-muted);
  font-size: .96rem;
  line-height: 1.84;
}

.journal-actions{
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

/* ---------- seo copy ---------- */
.seo-copy{
  display: grid;
  gap: 18px;
}

.seo-copy p{
  margin: 0;
  color: var(--ed-muted);
  font-size: 1rem;
  line-height: 1.96;
}

/* ---------- CTA + form ---------- */
.cta-box{
  padding: 64px 60px;
  border: 1px solid var(--ed-line-soft);
  border-radius: 0;
  background: var(--ed-paper);
  box-shadow: none;
  text-align: center;
}

.cta-box h2{
  max-width: 900px;
  margin: 0 auto 18px;
  font-size: clamp(2.25rem, 4vw, 4.15rem);
}

.cta-box p{
  max-width: 780px;
  margin: 0 auto;
  color: var(--ed-muted);
  font-size: 1rem;
  line-height: 1.92;
}

.editorial-form-shell{
  margin-top: 0;
  padding: 34px 32px;
  border: 1px solid var(--ed-line-soft);
  border-top: 0;
  border-radius: 0;
  background: #f8f5ef;
  box-shadow: none;
}

.editorial-form{
  width: 100%;
}

.form-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.xc-field{
  display: grid;
  gap: 10px;
}

.xc-field-full{
  grid-column: 1 / -1;
}

.xc-field label{
  color: var(--ed-deep);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.xc-field input,
.xc-field textarea,
.xc-field select{
  width: 100%;
  min-height: 54px;
  padding: 16px 18px;
  border: 1px solid var(--ed-line);
  border-radius: 0;
  outline: none;
  background: rgba(255,255,255,.78);
  color: var(--ed-text);
  transition:
    border-color .24s var(--ed-ease),
    background .24s var(--ed-ease);
}

.xc-field textarea{
  min-height: 170px;
  resize: vertical;
}

.xc-field input::placeholder,
.xc-field textarea::placeholder{
  color: #9b948c;
}

.xc-field input:focus,
.xc-field textarea:focus,
.xc-field select:focus{
  border-color: rgba(47,43,39,.28);
  background: rgba(255,255,255,.96);
}

.form-actions{
  display: flex;
  justify-content: flex-start;
  margin-top: 24px;
}

/* ---------- footer ---------- */
.site-footer{
  padding: 36px 0 56px;
}

.footer-inner{
  display: flex;
  align-items: center;
  justify-content: center;
}

.tiny{
  margin: 0;
  color: var(--ed-muted);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* =========================================================
   REVEAL COLOR — PREMIUM HOVER (GLOBAL IMAGES)
   ========================================================= */

/* estado base editorial */
.hero-card img,
.editorial-frame img,
.featured-editorial-media img,
.full-bleed-image img{
  filter: grayscale(100%) saturate(.72) contrast(.985) brightness(.985);
  transition:
    filter .95s cubic-bezier(.22,.61,.36,1),
    transform 1.1s cubic-bezier(.23,1,.32,1);
  will-change: filter, transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

/* reveal SOLO desktop real */
@media (hover: hover) and (pointer: fine){
  .hero-card:hover img,
  .editorial-frame:hover img,
  .featured-editorial-link:hover .featured-editorial-media img,
  .full-bleed-image:hover img{
    filter: grayscale(0%) saturate(1) contrast(1) brightness(1);
    transform: scale(1.018);
  }
}

/* =========================================================
   MOBILE — IDLE SIGNAL GLITCH
   Tipo TV / ghost / barrido cinematográfico
   ========================================================= */

@media (hover: none) and (pointer: coarse){

  .hero-card,
  .editorial-frame,
  .featured-editorial-media,
  .full-bleed-image{
    position: relative;
    isolation: isolate;
  }

  .hero-card::after,
  .editorial-frame::after,
  .featured-editorial-media::after,
  .full-bleed-image::after{
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    z-index: 2;
    mix-blend-mode: screen;
    background:
      linear-gradient(
        180deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,.06) 18%,
        rgba(255,255,255,.14) 32%,
        rgba(255,255,255,.04) 48%,
        rgba(255,255,255,0) 100%
      );
    transform: translate3d(0,0,0);
  }

  .is-idle-glitch .hero-card img,
  .is-idle-glitch .editorial-frame img,
  .is-idle-glitch .featured-editorial-media img,
  .is-idle-glitch .full-bleed-image img{
    animation: xc-signal-image .72s cubic-bezier(.22,.61,.36,1);
  }

  .is-idle-glitch .hero-card::after,
  .is-idle-glitch .editorial-frame::after,
  .is-idle-glitch .featured-editorial-media::after,
  .is-idle-glitch .full-bleed-image::after{
    animation: xc-signal-sweep .72s cubic-bezier(.22,.61,.36,1);
  }
}

@keyframes xc-signal-image{
  0%{
    filter: grayscale(100%) saturate(.72) contrast(.985) brightness(.985);
    transform: translate3d(0,0,0) scale(1);
  }

  16%{
    filter: grayscale(58%) saturate(.92) contrast(1) brightness(1);
    transform: translate3d(.8px,0,0) scale(1.002);
  }

  32%{
    filter: grayscale(18%) saturate(1.04) contrast(1.01) brightness(1.01);
    transform: translate3d(-1.2px,0,0) scale(1.003);
  }

  48%{
    filter: grayscale(0%) saturate(1.08) contrast(1.015) brightness(1.01);
    transform: translate3d(.6px,0,0) scale(1.002);
  }

  64%{
    filter: grayscale(24%) saturate(.96) contrast(1) brightness(1);
    transform: translate3d(-.5px,0,0) scale(1.001);
  }

  100%{
    filter: grayscale(100%) saturate(.72) contrast(.985) brightness(.985);
    transform: translate3d(0,0,0) scale(1);
  }
}

@keyframes xc-signal-sweep{
  0%{
    opacity: 0;
    transform: translate3d(0,-10%,0);
  }

  18%{
    opacity: .22;
    transform: translate3d(0,4%,0);
  }

  42%{
    opacity: .32;
    transform: translate3d(0,18%,0);
  }

  64%{
    opacity: .16;
    transform: translate3d(0,36%,0);
  }

  100%{
    opacity: 0;
    transform: translate3d(0,56%,0);
  }
}
/* ---------- reveal system ---------- */
.reveal{
  opacity: 0;
  transform: translate3d(0, 42px, 0);
  transition:
    opacity 1s var(--ed-ease),
    transform 1s var(--ed-ease);
  will-change: opacity, transform;
}

.reveal-image{
  transform: translate3d(0, 48px, 0) scale(.992);
}

.reveal-left{
  transform: translate3d(-30px, 0, 0);
}

.reveal-right{
  transform: translate3d(30px, 0, 0);
}

.reveal-soft{
  transform: translate3d(0, 20px, 0);
}

.reveal-scale{
  transform: scale(.975);
}

.reveal-delay-1{ transition-delay: .05s; }
.reveal-delay-2{ transition-delay: .14s; }
.reveal-delay-3{ transition-delay: .23s; }
.reveal-delay-4{ transition-delay: .32s; }
.reveal-delay-5{ transition-delay: .41s; }

.reveal.is-visible{
  opacity: 1;
  transform: translate3d(0,0,0) scale(1);
}

/* ---------- responsive ---------- */
@media (max-width: 1360px){
  .editorial-hero-copy{
    padding: 74px 56px 68px;
  }

  .hero-card-secondary{
  display: none;
}

  .editorial-frame--tall{
    min-height: 680px;
  }

  .masterclass-visual .editorial-frame--tall{
    min-height: 760px;
  }
}

@media (max-width: 1180px){
  .section-space{
    padding: 104px 0;
  }

  .editorial-hero-layout,
  .editorial-split--balanced,
  .editorial-split--reverse,
  .masterclass-layout{
    grid-template-columns: 1fr;
  }

  .editorial-featured-grid,
  .journal-grid{
    grid-template-columns: 1fr 1fr;
  }

  .editorial-hero-layout{
    min-height: auto;
  }

  .editorial-hero-copy{
    padding: 62px 48px 58px;
    border-right: 0;
    border-bottom: 1px solid var(--ed-line-soft);
  }

  .editorial-hero-visual{
    min-height: 720px;
    grid-template-columns: 1fr;
  }

  .hero-card-main,
  .hero-card-secondary{
    min-height: 720px;
  }

  .hero-card-secondary img{
    width: calc(100% - 42px);
    margin-top: 88px;
  }

  .hero-caption{
    right: max(34% + 20px, 20px);
    bottom: 28px;
    max-width: 260px;
  }

  .editorial-split{
    gap: 0;
  }

  .editorial-text{
    padding: 54px 42px;
  }

  .editorial-frame{
    border-left: 0;
    border-top: 1px solid var(--ed-line-soft);
  }

  .editorial-frame--wide,
  .editorial-frame--tall,
  .masterclass-visual .editorial-frame--tall{
    min-height: 620px;
  }

  .manifesto-box{
    padding: 54px 44px;
  }

  .full-bleed-image,
  .full-bleed-image img{
    min-height: 620px;
  }

  .masterclass-copy{
    padding: 54px 42px;
  }

  .masterclass-visual .editorial-frame{
    border-left: 0;
    border-top: 1px solid var(--ed-line-soft);
  }
}

@media (max-width: 900px){
  .container,
  .editorial-narrow{
    width: min(calc(100% - 30px), var(--ed-max));
  }

  body.editorial-mode .nav{
    position: fixed;
    top: 78px;
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--ed-line);
    background: rgba(245,241,234,.98);
    max-height: calc(100vh - 110px);
    overflow: auto;
  }

  body.editorial-mode .nav.is-open{
    display: flex;
  }

  body.editorial-mode .nav a{
    width: 100%;
    font-size: .9rem;
  }

  .editorial-hero{
    padding: 0 0 68px;
  }

  .editorial-hero-copy h1{
    font-size: clamp(2.8rem, 10vw, 4.8rem);
  }

  .hero-lead{
    font-size: .98rem;
    line-height: 1.9;
  }

  .editorial-hero-visual{
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-card-main{
    grid-column: auto;
    min-height: 560px;
    border-right: 0;
  }

  .hero-card-secondary{
    grid-column: auto;
    min-height: auto;
    border-left: 0;
    border-top: 1px solid var(--ed-line-soft);
    padding-bottom: 36px;
  }

  .hero-card-secondary img{
    width: min(68vw, 320px);
    margin: 42px auto 0