/* María Gamero · home sections, in Odyssée's order and rhythm (desktop 1440 × 900: hero 1800 · intro 311 · 240 · stepper 900
   · split 900 · 24 · philosophy 216 · 120 · method 1316 · 120 · wide 990 · 211 · approach 429 · footer) [O]. */

/* 00 · hero stack: a film then a still, two full screens, over the header (z 95 vs 94) [O] */
.hero { position: relative; z-index: 95; height: 200svh; background: var(--sala); color: var(--blanco); }
.hero__media { position: absolute; inset: 0; }
.hero__frame { position: relative; height: 100svh; }
.hero__layer, .split__layer, .wide__layer { position: absolute; inset: 0 0 auto; height: 110%; } /* [O] inner layer 110 % tall */
.hero__layer { height: 100%; }
.hero__layer > img { filter: saturate(.85) brightness(.88); } /* the band's white type crosses the face */ /* [O] the hero's layers are one screen tall: ±8 % reads 0.92× */
.hero__layer > *, .split__layer > *, .wide__layer > * { width: 100%; height: 100%; object-fit: cover; }

/* 01 · intro statement: thumb col 1, 48 px statement cols 3–12 with a first-line indent, body + CTA at col 3 */
.intro { height: 311px; padding-top: 50px; align-items: start; } /* [O] 311: the stepper's section starts at 1800 + 311 + 240 */
.intro__thumb { grid-column: 1 / span 1; width: 108px; max-width: 100%; aspect-ratio: 108 / 161; overflow: hidden; }
.intro__thumb img { width: 100%; height: 100%; object-fit: cover; }
.intro__text { grid-column: 3 / -1; }
.intro__body { grid-column: 3 / span 3; margin-top: 28px; display: grid; justify-items: start; gap: 16px; }

/* 02 · stepper: pinned at 0× at the centre for 150 % (pinStepper); the split rises over it (pinCover) [O-lib, audit] */
.stepper { position: relative; z-index: 1; height: 100svh; margin-top: 240px; }
.stepper__track { position: absolute; left: 0; right: 0; top: 0; height: calc(var(--bh, 456px) + 150svh); pointer-events: none; }
.stepper__block { position: sticky; top: calc(50% - var(--bh, 456px) / 2); pointer-events: auto; }
.stepper__head { align-items: center; height: 30px; }
.stepper__count { grid-column: 1 / span 2; }
.stepper__title { grid-column: 3 / span 4; }
.stepper__bar { position: relative; height: 1px; margin: 10px var(--m) 10px; background: rgb(42 26 36 / .18); }
.stepper__fill { position: absolute; inset: 0; background: currentColor; transform-origin: 0 50%; transform: scaleX(0); }
.stepper__items { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-inline: var(--m); }
/* [O-lib CSS] the shown step at 1, the others at .1, 0.3 s easeOutExpo. Odyssée fades the whole step; here the
   others' titles stay in the soft ink (4.5:1) so every visible word passes AA, and their pictures take the .1 */
.step__media, .step__i, .step h3 { transition: opacity .3s var(--expo), color .3s var(--expo); }
.step:not(.is-on) .step__media { opacity: .1; }
.step:not(.is-on) .step__i, .step:not(.is-on) h3 { color: var(--ink-soft); }
.step__media { aspect-ratio: 350 / 263; overflow: hidden; }
.step__media img { width: 100%; height: 100%; object-fit: cover; }
.step__txt { display: grid; grid-template-columns: 55px 1fr; padding: 14px 20px 0 0; min-height: 143px; } /* [O] block 457 tall */
.step__cap { margin-top: 10px; max-width: 256px; opacity: 0; transition: opacity .3s var(--expo); }
.step.is-on .step__cap { opacity: 1; }
@media (max-width: 767px) {
  .stepper { height: auto; margin-top: 80px; padding-bottom: 64px; }
  .stepper__track { position: static; height: auto; }
  .stepper__block { position: static; }
  .stepper__items { grid-template-columns: 1fr; row-gap: 40px; }
  .step .step__media, .step__cap { opacity: 1; }
  .step:not(.is-on) .step__i, .step:not(.is-on) h3 { color: var(--ink); }
  .stepper__count { grid-column: 1 / span 2; }
  .stepper__title { grid-column: 3 / -1; }
}

/* 03 · split photo + triad: two halves read as one image; rises at 1× over the pinned stepper [O] */
.split { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; height: 100svh; background: var(--sala); color: var(--blanco); }
.split__half { position: relative; overflow: clip; }
.triad { position: absolute; left: var(--m); right: var(--m); top: 50%; display: flex; justify-content: space-between; transform: translateY(-50%); pointer-events: none; }
.triad--low { top: auto; bottom: 33%; transform: none; }
@media (max-width: 767px) {
  .intro { height: auto; padding-bottom: 40px; }
  .split { grid-template-columns: 1fr; height: auto; }
  .split__half { height: 75svh; }
}

/* 04 · philosophy: caps label col 1, 32 px statement cols 7–12 indented [O] */
.philo { position: relative; z-index: 2; background: var(--cal); padding-top: 24px; min-height: 240px; } /* [O] 24 gap + 216; the gap is filled so the released stepper never peeks through */
.philo__label { grid-column: 1 / span 3; padding-top: 10px; }
.philo__body { grid-column: 7 / -1; display: grid; justify-items: start; gap: 22px; }
.philo__body .indent { --span: 6; }
@media (max-width: 767px) { .philo__body { grid-column: 1 / -1; margin-top: 24px; } .philo__body .indent { --span: 6; } }

/* 05 · method: 48 px headline, a sticky 233 px column with a macro, the portrait film opening from 80 % [O-lib] */
.method { position: relative; z-index: 2; background: var(--cal); margin-top: 120px; padding-bottom: 83px; align-items: start; }
.method__title { grid-column: 1 / span 4; grid-row: 1; }
.method__aside { grid-column: 5 / span 2; grid-row: 1; align-self: stretch; }
.method__sticky { position: sticky; top: 270px; display: grid; gap: 14px; } /* [O] sticky at 270 */
.method__macro { aspect-ratio: 233 / 291; overflow: hidden; }
.method__frame { grid-column: 7 / -1; grid-row: 1; height: 1233px; max-height: 137svh; }
.method__open { position: relative; height: 100%; overflow: hidden; transform-origin: 100% 50%; transform: scaleX(.8); } /* [O-lib] scaleX .8 → 1 */
.method__layer { position: absolute; inset: 0; transform-origin: 100% 50%; transform: scaleX(1.2); }               /* [O-lib] counter-scale 1.2 → 1 */
.method__layer > * { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) {
  .method { margin-top: 80px; row-gap: 24px; }
  .method__title { grid-column: 1 / -1; }
  .method__aside { grid-column: 1 / span 3; grid-row: 2; }
  .method__sticky { position: static; }
  .method__frame { grid-column: 1 / -1; grid-row: 3; height: 120svh; }
}

/* 06 · full-bleed + triad [O] */
.wide { position: relative; z-index: 2; height: 110svh; margin-top: 120px; overflow: clip; background: var(--sala); color: var(--blanco); }
.wide__frame { position: absolute; inset: 0; }
.wide__layer > *, .split__layer > * { filter: saturate(.82) brightness(.86); } /* the white triad sits on them */

/* 07 · approach + doors [O] */
.approach { position: relative; z-index: 2; background: var(--cal); padding-top: 211px; align-items: start; }
.approach__txt { grid-column: 1 / span 4; display: grid; gap: 14px; max-width: 300px; }
.doors { grid-column: 7 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: var(--g); }
.door { position: relative; display: block; aspect-ratio: 348 / 429; color: var(--blanco); transition: opacity .3s var(--std); }
.door__media { position: absolute; inset: 0; overflow: hidden; }
.door__label { position: absolute; left: 50%; top: 50%; padding-left: 12px; transform: translate(-50%, -50%); white-space: nowrap; transition: opacity .3s var(--std); }
.door__label::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: currentColor; }
/* the Tinta duotone: a grey photo screened on Tinta, then multiplied by Cal (shadows Tinta, lights Cal); the
   layers fade on hover and the photo comes back in full colour, 0.3 s (.4,0,.2,1) [O, audit] */
.duo { background: var(--tinta); }
.duo img { filter: grayscale(1) contrast(1.08); mix-blend-mode: screen; opacity: .8; transition: filter .3s var(--std), opacity .3s var(--std); }
.duo::after { content: ""; position: absolute; inset: 0; background: var(--cal); mix-blend-mode: multiply; transition: opacity .3s var(--std); pointer-events: none; }
@media (hover: hover) {
  .door:hover .duo img, .door:focus-visible .duo img { filter: grayscale(0) contrast(1); opacity: 1; mix-blend-mode: normal; }
  .door:hover .duo::after, .door:focus-visible .duo::after { opacity: 0; }
  .doors:has(.door:hover) .door:not(:hover) { opacity: .3; }                       /* [O] the other door dims to 0.3 */
  .doors:has(.door:hover) .door:not(:hover) .door__label { opacity: 0; }          /* and hides its label */
}
@media (max-width: 767px) {
  .approach { padding-top: 96px; row-gap: 32px; }
  .approach__txt, .doors { grid-column: 1 / -1; }
}
.triad .rv { display: flex; justify-content: space-between; width: 100%; }
