/* María Gamero · the phone layer (2026-10-20, Pedro: «mobile-focused … easy to access everything on mobile»), crop A,
   «the band docks»: the four sections sit in a dock at the thumb's edge, so nothing hides behind a menu; every piece of
   chrome has a ground, so no text crosses text; one unit per film (frame, brand, title together); a 2-column archive
   with a sticky, swipeable theme row; inner heroes that leave the content on the first screen; the film page opens on
   its player; contact opens on its tap actions. Loaded last. Desktop rules are marked «desktop». */

:root { --dock: 0px; }
html { scroll-padding-bottom: var(--dock); }

/* ── The dock: Commercials · Photography · Bio · Contact in the band's serif, 60 px at the bottom edge. Cal with a hairline
   over the page; no ground over a full-bleed film ([data-dock-clear]: the home hero, the closing film), the way the
   band's words sit on the film (js/dock.js). The page you are on carries the dot ── */
.dock, .reel, .film__all { display: none; }
@media (max-width: 767px) {
  :root { --dock: calc(60px + env(safe-area-inset-bottom)); }
  .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 310; /* over the curtain (300): the sections stay put between pages */
    display: flex; justify-content: space-between; height: var(--dock); padding: 0 calc(var(--m) - 4px) env(safe-area-inset-bottom);
    background: rgb(242 240 235 / 1); color: var(--ink); box-shadow: 0 -1px 0 rgb(42 26 36 / .12);
    transition: background-color .3s var(--std), color .3s var(--std), box-shadow .3s var(--std);
  }
  .dock.is-clear { background: rgb(242 240 235 / 0); color: var(--blanco); box-shadow: 0 -1px 0 rgb(255 255 255 / 0); }
  .dock__a {
    position: relative; display: grid; place-items: center; min-width: 48px; padding: 0 4px;
    font: 300 16px/1 var(--serif); font-variation-settings: "opsz" 20; white-space: nowrap;
    -webkit-tap-highlight-color: transparent; transition: opacity .2s var(--std);
  }
  .dock__a::after {
    content: ""; position: absolute; left: 50%; top: 11px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%;
    background: currentColor; opacity: 0; transform: scale(0); transition: opacity .5s var(--std), transform .5s var(--std);
  }
  .dock__a[aria-current]::after { opacity: 1; transform: none; }
  .dock__a:active { opacity: .55; }
  .dock__a:focus-visible { outline-offset: -6px; }
}

/* ── desktop: the working header never hides (navStatic) and never crosses copy: Cal with a hairline over the page,
   no ground over a full-bleed picture section (js/header.js), 0.3 s ── */
@media (min-width: 768px) {
  .hd { transition: background-color .3s var(--std), box-shadow .3s var(--std); }
  .hd.is-ground { background: var(--cal); box-shadow: 0 1px 0 rgb(42 26 36 / .1); transition: none; } /* ground and ink in one frame */
  .hd.is-ground .is-on-photo { color: var(--ink); transition: none; }
}

@media (max-width: 767px) {
  /* ── Type on a phone: 15 px body, 13 px labels, 14 px for anything you tap ── */
  .t-body { font-size: 15px; line-height: 21px; }
  .caps { font-size: 13px; line-height: 14px; }
  .cta, .filter, .door__label, .bigdoor__label { font-size: 14px; line-height: 16px; }
  .cta { min-height: 44px; }

  /* ── The header on a phone: the mark only, at the top of the page; it scrolls away, so it never crosses copy ── */
  main { margin-top: 0; }
  .hd { position: absolute; left: 0; right: 0; top: 0; }
  .hd__end, .ihd .hd__end, .band__mob { display: none; }
  .hd__mark, .ihd .wm { display: inline-flex; align-items: center; min-height: 44px; }

  /* ── Home hero: M—G and the line at eye height, the caption over the dock, a shade under the dock's words ── */
  .band__tag { display: block; grid-column: 3 / -1; justify-self: end; text-align: right; font-size: 16px; line-height: 18px; text-wrap: balance; }
  .band__mark { display: inline-flex; align-items: center; min-height: 44px; }
  .hero__cap { bottom: calc(var(--dock) + 28px); right: var(--m); flex-wrap: wrap; gap: 4px 14px; }
  .hero__layer > .is-m { object-position: 50% 50%; } /* the phone's own portrait cut is already framed on her */
  .hero__frame::after { content: ""; position: absolute; inset: auto 0 0; z-index: 1; height: 38%; background: linear-gradient(rgb(13 11 12 / 0), rgb(13 11 12 / .46)); pointer-events: none; }

  /* ── Home intro: the statement, four lines of bio, two calls to action, her details ── */
  .intro { padding-block: 40px 0; }
  .intro__ctas { gap: 4px 32px; }
  .intro__meta dd { display: flex; align-items: center; min-height: 44px; }
  .intro__meta dd a { display: inline-flex; align-items: center; min-height: 44px; }
  .intro__meta dt { margin-bottom: 0; }

  /* ── Selected commercials: one unit per film; the row at the middle of the screen plays (js/reel.js) ── */
  .reel { display: block; position: relative; z-index: 2; background: var(--cal); padding-top: 72px; }
  .reel__head { align-items: baseline; padding-bottom: 16px; }
  .reel__head h2 { grid-column: 1 / span 4; }
  .reel__n { grid-column: 5 / -1; justify-self: end; color: var(--ink-soft); }
  .reel__list { display: grid; gap: 32px; }
  .reel__a { display: grid; gap: 12px; -webkit-tap-highlight-color: transparent; }
  .reel__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--sala); }
  .reel__media > img, .reel__media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .reel__loop { opacity: 0; transition: opacity .6s var(--quint); }
  .reel__item.is-playing .reel__loop { opacity: 1; }
  .reel__txt { display: grid; gap: 4px; padding-inline: var(--m); }
  .reel__b { font: 300 24px/1.1 var(--serif); font-variation-settings: "opsz" 48; }
  .reel__s { color: var(--ink-soft); }
  .reel__all { display: flex; align-items: center; min-height: 56px; margin: 36px var(--m) 0; border-block: 1px solid rgb(42 26 36 / .14); }
  .reel__all > span { transform: none !important; }
  .reel__a:active .reel__media > * { opacity: .85; }

  /* ── By theme: the four themes as a 2 × 2 of doors, each one tap into the archive ── */
  .stepper { margin-top: 64px; padding-bottom: 0; }
  .stepper__head { height: auto; padding-bottom: 16px; }
  .stepper__count, .stepper__bar, .step__i, .step__cap { display: none; }
  .stepper__title { grid-column: 1 / -1; }
  .stepper__items { grid-template-columns: 1fr 1fr; gap: 28px var(--g); }
  .step__media { aspect-ratio: 1; }
  .step__txt { display: block; padding: 10px 0 0; min-height: 0; }
  .step__more { margin-top: 6px; color: var(--ink-soft); }
  .step__link { -webkit-tap-highlight-color: transparent; }

  /* the split and the desktop's sticky index give way to the reel on a phone */
  .split, .tindex--home { display: none; }

  /* the archive doors repeat the dock and the «All commercials» row just above them (reviewer, 2026-10-20) */
  .approach { display: none; }
  .doors { grid-column: 1 / -1; }

  /* ── Inner heroes: 62 svh, the title at the foot of the picture, so the page's content starts on the first screen ── */
  .ihero, .ihero--short { height: 62svh; min-height: 440px; }
  .ihero__hold, .ihero--short .ihero__hold { height: 100%; }
  .ihero__title { height: 100%; align-content: end; padding-bottom: 72px; }
  .ihero__line { bottom: 20px; }
  .ihd { position: absolute; left: 0; right: 0; top: 0; }

  /* ── Commercials: the theme row sticks under the thumb's reach and swipes sideways; two films a row ── */
  .archive { padding-block: 0 96px; }
  .archive__bar { position: sticky; top: 0; z-index: 3; display: block; min-height: 0; padding: 0; box-shadow: 0 1px 0 rgb(42 26 36 / .1); }
  .archive__filters {
    display: flex; flex-wrap: nowrap; gap: 0 14px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    justify-self: stretch; width: auto; max-width: 100%; padding: 0 40px 0 calc(var(--m) + 8px);
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); /* the cut chip says «swipe» */
  }
  .archive__filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; min-height: 52px; -webkit-tap-highlight-color: transparent; } /* the moving dot is the feedback */
  .filter--sort { min-width: 44px; justify-content: center; margin-left: 6px; }
  .archive__shown { display: none; }
  .archive__grid { grid-template-columns: 1fr 1fr; gap: 28px var(--g); padding: 20px var(--m) 0; }
  .tile__a { gap: 8px; -webkit-tap-highlight-color: transparent; }
  .tile__txt { gap: 3px; }
  .tile__txt .t-18 { font-size: 17px; line-height: 19px; }
  .tile__meta { font-size: 13px; line-height: 16px; letter-spacing: 0; text-transform: none; }

  /* ── A film: no picture hero; the title on Cal, then the player edge to edge, then the next two films side by side ── */
  [data-page="film"] .ihero { height: auto; min-height: 0; background: var(--cal); color: var(--ink); }
  [data-page="film"] .ihero__media { display: none; }
  [data-page="film"] .ihd { position: relative; }
  [data-page="film"] .ihero__hold { position: relative; height: auto; }
  [data-page="film"] .ihero__title { height: auto; padding: 40px var(--m) 0; align-content: start; }
  [data-page="film"] .ihero__title .half--r { color: var(--ink-soft); }
  [data-page="film"] .ihero__line { position: static; padding: 14px var(--m) 0; color: var(--ink-soft); }
  .player { padding-block: 24px 0; row-gap: 20px; }
  .player__label { display: none; }
  .player__frame { justify-self: stretch; margin-inline: calc(-1 * var(--m)); width: auto; max-height: none; }
  .player__back { display: none; } /* the row under the doors takes it */
  .player__play { font-size: 14px; }
  .bigdoors--film, .bookdoors .bigdoors { grid-template-columns: 1fr 1fr; gap: var(--g); margin-top: 48px; padding-inline: var(--m); }
  .bookdoors .bigdoors { margin-top: 0; }
  .bigdoors--film .bigdoor, .bookdoors .bigdoor { height: auto; aspect-ratio: 4 / 5; }
  .bigdoors--film .bigdoor__layer, .bookdoors .bigdoor__layer { inset: 0; height: 100%; transform: none !important; } /* a short door: no drift, so its ground never shows */
  .bigdoor__track { display: flex; align-items: flex-end; padding: 14px 12px; }
  .bigdoor__label { position: relative; top: auto; margin: 0; width: auto; white-space: normal; }
  .bigdoor__track { background: linear-gradient(rgb(13 11 12 / 0) 50%, rgb(13 11 12 / .45)); }
  .bigdoor__sep { display: none; }
  .bigdoor__t { display: block; margin-top: 6px; font: 300 18px/1.15 var(--serif); font-variation-settings: "opsz" 20; letter-spacing: 0; text-transform: none; }
  .bigdoor__label::before { top: 7px; margin-top: 0; }
  .film__all { display: flex; align-items: center; min-height: 56px; margin: 28px var(--m) 72px; border-block: 1px solid rgb(42 26 36 / .14); }

  /* ── Bio ── */
  [data-page="bio"] .ihero { height: 64svh; }
  .member { padding-block: 18px 36px; }
  .about__contact a { display: inline-flex; align-items: center; min-height: 44px; }
  .about__contact { row-gap: 0; }
  .book { padding-block: 72px 32px; }

  /* ── Photography and a shoot ── */
  .folders { padding-block: 56px 96px; }
  .shoot { padding-block: 56px 96px; }
  body:has(.viewer:not([hidden])) .dock { visibility: hidden; } /* the viewer is the whole screen; its own bar has Previous, Next, Close */
  .viewer__bar { padding-bottom: env(safe-area-inset-bottom); }
  .viewer__nav button { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; }

  /* ── Contact: mail, call and Instagram as full-width rows you tap, then the form ── */
  .bk { padding-block: calc(var(--hd) + 40px) 80px; }
  .bk__facts { margin-top: 32px; }
  .bk__rows { gap: 0; }
  .bk__rows .ft__row { align-items: center; min-height: 56px; border-top: 1px solid rgb(42 26 36 / .14); }
  .bk__rows .ft__row:last-child { border-bottom: 1px solid rgb(42 26 36 / .14); }
  .bk__rows dd a { display: flex; align-items: center; min-height: 56px; font: 300 20px/1.1 var(--serif); font-variation-settings: "opsz" 20; background: none; }
  .bk__rows dt { color: var(--ink-soft); }
  .bk__formwrap { margin-top: 64px; }
  .field--check input { width: 22px; height: 22px; }
  .bk__send { width: 100%; height: 52px; }

  /* ── Footer: the rows are tap targets; the dock carries the sections, so the footer's own list steps out ── */
  .ft__rows { gap: 0; margin-top: 40px; }
  .ft__row { align-items: center; min-height: 44px; }
  .ft__row dd a { display: inline-flex; align-items: center; min-height: 44px; }
  .ft__nav { display: none; }
  .ft__legal { margin-top: 40px; }
  .ft__legal a { display: inline-flex; align-items: center; min-height: 44px; }
  .ft__label { bottom: calc(var(--dock) + 20px); }
  .ft__film::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(rgb(13 11 12 / 0), rgb(13 11 12 / .42)); pointer-events: none; }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .dock, .dock__a, .dock__a::after, .reel__loop { transition: none; }
}

/* touch screens: no hover to bring the films' colour back, so the doors show it at rest (the films are the only colour) */
@media (hover: none) {
  .bigdoor .duo img { filter: none; opacity: 1; mix-blend-mode: normal; }
  .bigdoor .duo::after { opacity: 0; }
}
