/* María Gamero · the pieces Pátina doesn't have: hero captions, theme steps as links, the 16:9 selected-work index,
   the archive, the film player, the bio column, Photography folders, the contact form and the footer nav.
   Flat specificity: one class per rule wherever possible. */

/* ── Home hero: captions name the film (Contact lost its dot at rest, María 2026-10-20) ── */
.hero__frame { overflow: clip; }
.hero__cap {
  position: absolute; left: var(--m); bottom: 106px; z-index: 2; display: flex; gap: 18px; /* rests 64 px above the released band */
  color: var(--blanco); pointer-events: none;
}
.hero__layer > video, .hero__layer > img { filter: brightness(.78); } /* the white band crosses faces */

/* ── Theme steps: each step is a link to the archive filtered to its theme ── */
.step__link { display: block; color: inherit; }
.step__media > * { width: 100%; height: 100%; object-fit: cover; }
.step__more { display: inline-block; margin-top: 14px; opacity: 0; transition: opacity .3s var(--expo); }
.step.is-on .step__more { opacity: 1; }
@media (hover: hover) { .step__link:hover .step__more { text-decoration: underline; text-underline-offset: 3px; } }
@media (max-width: 767px) { .step__more { opacity: 1; } }

/* ── Selected work: the sticky index beside 16:9 frames (her films' own ratio), ±8 % layers on a 120 % layer ── */
.tindex--home { margin-top: 0; padding-block: 160px 40px; }
.tindex--home .tindex__photos { padding-top: 190px; padding-bottom: 30svh; display: grid; gap: 14px; }
.tindex--home .tindex__photo { display: block; height: auto; aspect-ratio: 16 / 9; background: var(--sala); }
.tindex--home .tindex__layer { inset: -10% 0; }
.tindex--home .tindex__list { gap: 4px; }
.tindex--home .cat__in { padding-bottom: 14px; }
@media (max-width: 767px) {
  .tindex--home { padding-top: 96px; }
  .tindex--home .tindex__photos { padding: 0; }
}

/* ── Work archive ── */
.archive { position: relative; z-index: 1; background: var(--cal); padding-block: 40px 160px; }
.archive__bar { position: sticky; top: var(--hd); z-index: 3; align-items: center; min-height: 56px; background: var(--cal); }
.archive__filters { grid-column: 1 / span 10; display: flex; flex-wrap: wrap; gap: 8px 44px; }
.archive__shown { grid-column: 11 / -1; justify-self: end; color: var(--ink-soft); }
.filter { min-height: 32px; display: inline-flex; align-items: center; gap: 6px; }
.filter__n { color: var(--ink-soft); }
.archive__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px var(--g); padding: 28px var(--m) 0; }
.tile[hidden] { display: none; }
.tile__a { display: grid; gap: 12px; }
.tile__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--sala); }
.tile__media > img { transition: transform 1.2s var(--expo); }
.tile__loop { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--quint); } /* [ref] Partizan: 0.6 s */
.tile.is-playing .tile__loop { opacity: 1; }
.tile__txt { display: grid; gap: 6px; }
.tile__meta { display: flex; justify-content: space-between; gap: 16px; color: var(--ink-soft); line-height: 15px; }
.tile__dur { flex: none; }
/* motion pass, critique: the 1.04 hover zoom on a film's still is cut. Every film now has a loop that fades over the
   still within 0.6 s, so the zoom only showed as a pop where a scaled still met an unscaled loop. */
/* motion pass: a film's title answers the pointer in the site's own link language, the dot comes in while the words
   shove 12 px (the .cta values, 0.5 s); the same on a photo folder */
.tile__txt > .t-18, .folder__txt > .t-18 { position: relative; margin-right: 12px; transition: transform .5s var(--std); } /* the shove ends flush */
.tile__txt > .t-18::before, .folder__txt > .t-18::before {
  content: ""; position: absolute; left: -12px; top: .6em; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
  background: currentColor; opacity: 0; transform: scale(0); transition: opacity .5s var(--std), transform .5s var(--std);
}
.tile__a:focus-visible .tile__txt > .t-18, .folder__a:focus-visible .folder__txt > .t-18 { transform: translateX(12px); }
.tile__a:focus-visible .tile__txt > .t-18::before, .folder__a:focus-visible .folder__txt > .t-18::before { opacity: 1; transform: none; }
@media (hover: hover) {
  .tile__a:hover .tile__txt > .t-18, .folder__a:hover .folder__txt > .t-18 { transform: translateX(12px); }
  .tile__a:hover .tile__txt > .t-18::before, .folder__a:hover .folder__txt > .t-18::before { opacity: 1; transform: none; }
}
@media (max-width: 1023px) { .archive__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .archive__bar { position: static; row-gap: 14px; padding-block: 8px; }
  .archive__filters, .archive__shown { grid-column: 1 / -1; justify-self: start; }
  .archive__filters { gap: 6px 28px; padding-left: 12px; }
  .archive__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ── Film page: the player on Cal, poster until asked ── */
.player { position: relative; z-index: 1; background: var(--cal); padding-block: 120px 120px; row-gap: 24px; align-items: start; }
.player__label { grid-column: 1 / span 2; padding-top: 4px; }
.player__frame { grid-column: 2 / span 10; position: relative; max-height: 82svh; justify-self: center; width: 100%; background: var(--sala); overflow: hidden; }
.player__play {
  position: absolute; inset: 0; display: grid; place-items: center; color: var(--blanco);
  background: linear-gradient(rgb(13 11 12 / .1), rgb(13 11 12 / .28));
}
.player__play > span { position: relative; padding-left: 14px; transition: transform .5s var(--std); }
.player__play > span::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--buganvilla); }
@media (hover: hover) { .player__play:hover > span { transform: translateX(6px); } }
.player__play:focus-visible { outline-offset: -8px; }
.player__iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .8s var(--std); }
/* motion pass: on «Play» the words step out and the dot breathes while the player loads; it fades in over the poster
   once it has painted (js/player.js), then the poster is put away */
.player__play > span { transition: transform .5s var(--std), color .3s var(--std); }
.player__frame.is-starting .player__play { cursor: progress; }
.player__frame.is-starting .player__play > span { color: transparent; transform: none; }
.player__frame.is-starting .player__play > span::before { animation: player-wait 1.2s var(--std) infinite; }
@keyframes player-wait { 50% { opacity: .25; transform: scale(.7); } }
.player__frame.is-on .player__iframe { opacity: 1; }
.player__frame.is-playing > img, .player__frame.is-playing .player__play { display: none; }
@media (prefers-reduced-motion: reduce) {
  .player__iframe { transition: none; }
  .player__frame.is-starting .player__play > span::before { animation: none; }
}
.player__back { grid-column: 2 / span 4; }
.bigdoors--film .bigdoor { height: 70svh; }
@media (max-width: 767px) {
  .player { padding-block: 64px; }
  .player__label, .player__frame, .player__back { grid-column: 1 / -1; }
}

/* ── Bio ── */
.ihero__media--portrait .ihero__zoom > * { object-position: 50% 22%; }
.story { margin-top: 120px; }
.story__col { grid-column: 7 / span 5; display: grid; gap: 18px; font-size: 16px; line-height: 24px; }
.team__note { color: var(--ink-soft); }
.member__role { grid-column: 7 / span 4; }
@media (max-width: 767px) {
  .story { margin-top: 64px; }
  .story__col { grid-column: 1 / -1; }
}

/* ── Photography: folders ── */
.folders { position: relative; z-index: 1; background: var(--cal); padding-block: 120px 160px; row-gap: 32px; align-items: start; }
.folders__label { grid-column: 1 / span 2; padding-top: 10px; }
.folders__grid { grid-column: 3 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px var(--g); }
.folders__grid:empty { display: none; }
.folders__grid:not(:empty) ~ [data-folders-empty] { display: none; }
.folders__empty { grid-column: 3 / span 8; --span: 8; }
.folders__cta { grid-column: 3 / span 4; }
.folder__a { display: grid; gap: 12px; }
.folder__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; }
.folder__txt { display: grid; gap: 6px; }
.folder__n { color: var(--ink-soft); }
@media (hover: hover) {
  .folder__a:hover .duo img { filter: grayscale(0) contrast(1); opacity: 1; mix-blend-mode: normal; }
  .folder__a:hover .duo::after { opacity: 0; }
}
@media (max-width: 767px) {
  .folders__label, .folders__grid, .folders__empty, .folders__cta { grid-column: 1 / -1; }
  .folders__empty { --span: 6; }
  .folders__grid { grid-template-columns: 1fr 1fr; }
}

/* ── Contact form ── */
.bk__rows { display: grid; gap: 14px; }
.bk__formwrap { grid-column: 7 / -1; }
.bk__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 26px var(--g); }
.field textarea {
  width: 100%; min-height: 132px; padding: 10px 0; border: 0; border-bottom: 1px solid rgb(42 26 36 / .45); border-radius: 0;
  background: transparent; color: var(--ink); font: 300 20px/1.35 var(--serif); resize: vertical;
}
.field textarea:focus-visible { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.field--check label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.field--check input { width: 16px; height: 16px; margin: 1px 0 0; flex: none; accent-color: var(--tinta); }
.field__err { color: #9E2450; }
.bk__status { min-height: 18px; }
@media (max-width: 767px) { .bk__formwrap { grid-column: 1 / -1; margin-top: 48px; } .bk__pair { grid-template-columns: 1fr; } }

/* ── Footer: the nav column replaces Pátina's hours ── */
.ft__nav { grid-column: 4 / span 3; margin-top: 106px; display: grid; gap: 6px; justify-items: start; align-self: start; }
@media (max-width: 767px) { .ft__nav { grid-column: 1 / -1; margin-top: 32px; } }

/* ── Bio hero: the full name on one line (Pedro, 2026-10-19) ── */
.ihero__name { grid-column: 1 / -1; }

/* the selected-work index now follows the split directly: its own ground at z 2 so the released stepper never peeks */
.tindex--home { z-index: 2; background: var(--cal); padding-top: 120px; }

/* ── Hero frame 1 (Orange & Apple, Pedro 2026-10-19): the film settles from 1.4 to 1 over 4 s on first load (the inner
   heroes' arrival); still under reduced motion ── */
.hero__settle { animation: hero-settle 4s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes hero-settle { from { transform: scale(1.4); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero__settle { animation: none; } }
.hero__cap { transition: opacity .3s var(--std); } /* js/hero-caps.js fades each caption out before it reaches the band */

/* ── Keyboard: a block still waiting for its reveal shows the moment it takes focus ── */
[data-reveal-hidden]:focus-visible, [data-reveal-hidden]:focus-within, :focus-visible > [data-reveal-hidden] { opacity: 1 !important; }
.js main:not([data-reveal-ready]) :is([data-reveal], [data-reveal-block]):focus-within { visibility: visible; }

/* ── «By theme»: the steps at rest in the site's plum duotone (like the doors), the shown one in full colour ── */
.step__media { position: relative; background: var(--tinta); }
.step:not(.is-on) .step__media { opacity: 1; }
.step__media > * { transition: filter .3s var(--expo), opacity .3s var(--expo); }
.step:not(.is-on) .step__media > * { filter: grayscale(1) contrast(1.08); mix-blend-mode: screen; opacity: .8; }
.step__media::after { content: ""; position: absolute; inset: 0; background: var(--cal); mix-blend-mode: multiply; transition: opacity .3s var(--expo); pointer-events: none; }
.step.is-on .step__media::after { opacity: 0; }
@media (max-width: 767px) {
  .step .step__media > * { filter: none; mix-blend-mode: normal; opacity: 1; }
  .step .step__media::after { opacity: 0; }
}

/* ── Home intro: the statement (cols 3–12), then her bio in four lines with its label at col 1, her details at
   cols 10–12, two calls to action under the paragraph. Hierarchy: 48 px statement → 16 px paragraph → 12 px caps ── */
.intro { height: auto; padding-block: 50px 0; row-gap: 0; }
.intro__label { grid-column: 1 / span 2; grid-row: 2; margin-top: 64px; padding-top: 4px; }
.intro__bio { grid-column: 3 / span 5; grid-row: 2; margin-top: 64px; display: grid; gap: 26px; justify-items: start; }
.intro__para { font-size: 16px; line-height: 24px; max-width: 34em; }
.intro__ctas { display: flex; flex-wrap: wrap; gap: 12px 40px; }
.intro__meta { grid-column: 10 / -1; grid-row: 2; margin-top: 64px; display: grid; gap: 18px; align-content: start; }
.intro__meta dt { color: var(--ink-soft); margin-bottom: 6px; }
@media (max-width: 767px) {
  .intro__text { grid-column: 1 / -1; --span: 6; } /* no portrait at col 1 any more: the statement takes the full width */
  .intro__label, .intro__bio, .intro__meta { grid-column: 1 / -1; grid-row: auto; }
  .intro__label { margin-top: 40px; }
  .intro__bio { margin-top: 16px; }
  .intro__meta { margin-top: 32px; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) { .hero__settle { object-position: 74% 50%; } } /* the 2.4:1 Orange frame: keep the woman, right of centre, in a portrait crop */

/* ── Home intro → «By theme»: less air under the bio (Pedro, 2026-10-19: «slightly less long») ── */
.intro__label, .intro__bio, .intro__meta { margin-top: 48px; }
.stepper { margin-top: 120px; } /* Pátina's measured 240 px left a tall empty band under the four-line bio */
@media (max-width: 767px) { .stepper { margin-top: 72px; } .intro__bio { margin-top: 16px; } .intro__meta { margin-top: 32px; } }
.step[data-theme="cars"] .step__media > * { object-position: 22% 50%; } /* Volvo: the XC90 and its driver sit left of centre in a 16:9 frame */

/* ── Photography · a shoot: its line, then the photographs in three columns (their own proportions, no crop) ── */
.ihero__photo { object-position: 50% 30%; }
.shoot { position: relative; z-index: 1; background: var(--cal); padding-block: 120px 160px; row-gap: 56px; align-items: start; }
.shoot__label { grid-column: 1 / span 2; padding-top: 10px; }
.shoot__line { grid-column: 3 / span 8; --span: 8; }
.shoot__grid { grid-column: 1 / -1; columns: 3; column-gap: var(--g); }
.shoot__item { break-inside: avoid; margin-bottom: var(--g); }
.shoot__open { display: block; width: 100%; overflow: hidden; background: var(--sala); cursor: zoom-in; }
.shoot__open img { width: 100%; height: auto; transition: transform 1.2s var(--expo), opacity .3s var(--std); }
@media (hover: hover) { .shoot__open:hover img { transform: scale(1.03); } }
.shoot__open:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
.shoot__back { grid-column: 3 / span 4; }
@media (max-width: 1023px) { .shoot__grid { columns: 2; } }
@media (max-width: 767px) {
  .shoot { padding-block: 64px 96px; row-gap: 32px; }
  .shoot__label, .shoot__line, .shoot__back { grid-column: 1 / -1; }
  .shoot__line { --span: 6; }
}

/* ── The viewer: Sala ground, the photograph contained, a caps bar; 0.4 s fade in/out, 0.3 s between photographs ── */
.viewer { position: fixed; inset: 0; z-index: 140; display: grid; grid-template-rows: 1fr auto; color: var(--blanco); }
/* motion pass: the ground fades on its own (0.5 s) while the photograph flies out of its thumbnail (js/viewer.js); the
   bar follows 0.25 s later */
.viewer::before { content: ""; position: absolute; inset: 0; background: var(--sala); opacity: 0; transition: opacity .5s var(--std); }
.viewer.is-open::before { opacity: 1; }
.viewer__stage, .viewer__bar { position: relative; }
.viewer__bar { opacity: 0; transition: opacity .4s var(--std); }
.viewer.is-open .viewer__bar { opacity: 1; transition-delay: .25s; }
.viewer__stage { display: grid; place-items: center; padding: 28px var(--m) 0; min-height: 0; cursor: zoom-out; }
.viewer__img { max-width: 100%; max-height: calc(100svh - 96px); width: auto; height: auto; object-fit: contain; cursor: default; transition: opacity .3s var(--std), transform .3s var(--std); }
.viewer__img.is-changing { opacity: 0; transform: scale(.985); }
.viewer__bar { display: flex; justify-content: space-between; align-items: center; min-height: 64px; padding: 0 var(--m); }
.viewer__nav { display: flex; gap: 40px; }
.viewer__nav button { min-height: 44px; }
.viewer .dot::before { background: var(--buganvilla); }
@media (prefers-reduced-motion: reduce) { .viewer::before, .viewer__bar, .viewer__img { transition: none; } }
@media (max-width: 767px) { .viewer__nav { gap: 24px; } }

/* ── Photography folders: the cover in colour (the shoot's dark frames vanish in the plum duotone), a slow lift on hover ── */
.folder__media { background: var(--sala); }
.folder__media img { transition: transform 1.2s var(--expo); }
@media (hover: hover) { .folder__a:hover .folder__media img { transform: scale(1.03); } }
.folder__line { color: var(--ink-soft); }

/* ── Jimmy Lion (María, 2026-10-20): its folder wears the brand's wordmark in white over a light veil; on its own page
   the wordmark stands in for the title, cap height of the 48 px headline ── */
.folder__brand {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 0 14%;
  color: var(--blanco); background: rgb(16 10 14 / .32); transition: background .6s var(--std);
}
@media (hover: hover) { .folder__a:hover .folder__brand { background: rgb(16 10 14 / .18); } }
.folder__brand .jl-logo { display: block; width: 100%; height: auto; }
.jl-title .jl-logo { display: block; width: min(30vw, 420px); height: auto; color: var(--blanco); }
@media (max-width: 767px) { .jl-title .jl-logo { width: 62vw; } }

/* ── Bio, centred (Pedro, 2026-10-19: «sort of centered, so there's not a huge white space on the left»): the statement
   across cols 3–10, her details in one row under it, the story in two magazine columns on the same measure ── */
.about__body { grid-column: 3 / span 8; gap: 40px; }
.about__body .indent { --span: 8; }
.about__contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px var(--g); border-top: 1px solid rgb(42 26 36 / .18); padding-top: 18px; }
.story { margin-top: 96px; }
.story__col { grid-column: 3 / span 8; display: block; columns: 2; column-gap: 48px; }
.story__col p { break-inside: avoid; margin-bottom: 18px; }
.story__col p:first-child::first-line { font-family: var(--serif); font-weight: 300; font-size: 19px; }
@media (max-width: 1023px) { .about__body, .story__col { grid-column: 2 / span 10; } }
@media (max-width: 767px) {
  .about__body, .story__col { grid-column: 1 / -1; }
  .about__body .indent { --span: 6; }
  .story__col { columns: 1; }
  .story { margin-top: 56px; }
}
.ft__es { display: block; margin-top: 8px; color: var(--ink-soft); }
