/* =====================================================================
   The About page, every device (owner, 8 Oct 2026; settled in design/about/devices.html, preset "To build", with
   the iPad Pro 13 on the words-over-the-photograph hero as the other iPads, owner, 8 Oct). Record:
   docs/about-page/ABOUT_DEVICES.md. Built from the playground's switches (design/about/devices/devices.css) at the
   chosen values, one media query per device class, as the home page's round:
     phones up to 700 · iPad mini, Air, Pro 11 upright 701–899 · iPad Pro 13 upright 900–1099 · 1100 and up as built.
   js/about.js places the hero's and the band's photographs on her face, and lays the shade over the red strip at the
   top of IC-043 on every device (the desktop included). Without JavaScript the photographs are cropped to fill.
   Every rule starts with .ab (the page's <main>), so it outweighs the page's own stacking rules in site.css.
   It is its own file, loaded by about.html after site.css (8 Oct), so the About Design Lab can switch the whole
   round off ("Before the device round"); that also works on a page opened from disk.
   ===================================================================== */
@media (max-width:1099px){
  /* ---------- The hero: the photograph is the whole first screen, her words over its foot on a shade ---------- */
  .ab .ab-hero{display:block!important;height:100vh!important;height:100svh!important;min-height:0!important;padding:0!important;container-type:normal!important}
  .ab .ab-hero .ph{position:absolute!important;inset:0!important;width:auto!important;height:auto!important;margin:0!important;
    -webkit-mask-composite:source-over!important;mask-composite:add!important}
  .ab .ab-hero .ph img{position:absolute;max-width:none;object-fit:fill;transform:none!important;inset:auto}
  /* a shade at the top, over the studio above the backdrop (a CSS shade: layout, not a change to the file) */
  .ab .ab-hero .ph::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none}
  .ab .ab-hero::after{content:"";position:absolute;inset:0;z-index:5;pointer-events:none}
  .ab .ab-hero .ttl{position:absolute!important;left:var(--gutter)!important;right:var(--gutter);top:auto!important;width:auto!important;
    transform:none!important;margin:0!important;text-align:left}
  .ab .ab-hero .sub{position:static!important;width:auto!important;max-width:32ch;text-align:left}
  .ab .ab-cue{position:absolute!important;left:var(--gutter)!important;top:auto!important;margin:0!important}
  .ab .ab-cue .thr{left:9px!important}
  .ab .ab-intro::after{left:calc(var(--gutter) + 9px)!important}
  /* without JavaScript the header is not laid over the photograph but above it, so the hero takes what it leaves */
  html:not(.js) .ab .ab-hero{height:calc(100vh - var(--hdr))!important;height:calc(100svh - var(--hdr))!important}
  /* and there is no shade over the red strip, so the top shade reaches a little further */
  html:not(.js) .ab .ab-hero .ph::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
    background:linear-gradient(to bottom,rgba(14,13,13,.94) 0,rgba(14,13,13,.94) 18%,rgba(14,13,13,0) 25%)}

  /* ---------- The closing band: the photograph, framed on her face, the words beneath it, centred ---------- */
  .ab .ab-end .ph img{position:absolute;max-width:none;object-fit:fill;inset:auto}
  .ab .ab-end .s{margin-top:20px!important}
  .ab .ab-end .t,.ab .ab-end .s{margin-left:auto!important;margin-right:auto!important;padding:0 var(--gutter);text-align:center}
  .ab .ab-end .ab-mark{align-self:center;align-items:center}
  .ab .ab-end{display:flex!important;flex-direction:column;height:auto!important;min-height:0!important;container-type:normal!important;padding-bottom:10px!important}
  .ab .ab-end .ph{position:relative!important;inset:auto!important;width:100%!important;margin:0!important;
    -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 12%,#000 78%,transparent 100%)!important;
            mask-image:linear-gradient(to bottom,transparent 0,#000 12%,#000 78%,transparent 100%)!important;
    -webkit-mask-composite:source-over!important;mask-composite:add!important}
  .ab .ab-end .scr{display:none!important}
  .ab .ab-end .t,.ab .ab-end .s{position:relative!important;left:auto!important;top:auto!important;width:auto!important;transform:none!important}
  .ab .ab-mark{position:relative!important;left:auto!important;bottom:auto!important;margin-top:48px!important}
}

/* ---------- Phones, up to 700 ---------- */
@media (max-width:700px){
  .ab .ab-hero .ph{-webkit-mask-image:linear-gradient(to top,transparent 0,#000 10%)!important;mask-image:linear-gradient(to top,transparent 0,#000 10%)!important}
  .ab .ab-hero .ph::after{background:linear-gradient(to bottom,rgba(14,13,13,.7) 0,rgba(14,13,13,.49) 11%,rgba(14,13,13,0) 20%)}
  .ab .ab-hero::after{background:linear-gradient(to top,rgba(14,13,13,.78) 0,rgba(14,13,13,.6396) 26%,rgba(14,13,13,0) 52%)}
  .ab .ab-hero h1{font-size:40px}
  .ab .ab-hero .sub{font-size:19px;margin-top:18px!important}
  .ab .ab-hero .ttl{bottom:94px}                        /* the cue's 52 px, its own 12, and 30 between */
  .ab .ab-cue{bottom:52px}
  .ab .ab-cue .thr{height:39px!important}

  /* The Journey: both pictures above their words, edge to edge */
  .ab .ab-blk{padding-top:28px;padding-bottom:28px}
  .ab .ab-blk.ab-last{padding-bottom:72px}
  .ab .ab-blk.inter{padding-top:28px;padding-bottom:19.6px}
  .ab .ab-blk.left .row,.ab .ab-blk.right .row{grid-template-columns:minmax(0,1fr)!important;gap:26px!important}
  .ab .ab-fr.f041{order:-1;width:100%;max-width:none;margin:0;aspect-ratio:auto!important;height:50vh!important;height:50svh!important}
  .ab .ab-fr.f113{order:-1;width:100%;max-width:none;margin:0 auto!important;aspect-ratio:auto!important;height:64vh!important;height:64svh!important}
  .ab .ab-fr.f041,.ab .ab-fr.f113{width:100vw;margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important}
  .ab .ab-fr.f041 img{object-position:50% 22%}
  .ab .ab-fr.f113 img{object-position:50% 30%}

  /* R.K. Shriramkumar: the picture edge to edge, both faces whole (it fades on its top and foot only, without the
     site's 6 % zoom), her words beneath */
  .ab .ab-blk.inter .row{grid-template-columns:minmax(0,1fr)!important;gap:28px!important}
  .ab .ab-fr.f135{width:100%;max-width:none;margin:0;aspect-ratio:auto!important;height:38vh!important;height:38svh!important}
  .ab .ab-fr.f135{width:100vw;margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important}
  .ab .ab-fr.f135{-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 13%),linear-gradient(to top,transparent 0,#000 13%)!important;
                          mask-image:linear-gradient(to bottom,transparent 0,#000 13%),linear-gradient(to top,transparent 0,#000 13%)!important}
  .ab .ab-fr.f135 img{transform:none!important;object-position:92% 44%}
  .ab .ab-q.rs{font-size:21px;width:auto;max-width:34ch}

  /* the closing band */
  .ab .ab-end .t{font-size:28px!important;margin-top:-70px!important}
  .ab .ab-end .s{font-size:18px!important}
  .ab .ab-end .t,.ab .ab-end .s{max-width:34ch!important}
  .ab .ab-end .ph{height:66vh!important;height:66svh!important}
}

/* ---------- iPad mini, Air, Pro 11 upright, 701–899 ---------- */
@media (min-width:701px) and (max-width:899px){
  .ab .ab-hero .ph{-webkit-mask-image:linear-gradient(to top,transparent 0,#000 8%)!important;mask-image:linear-gradient(to top,transparent 0,#000 8%)!important}
  .ab .ab-hero .ph::after{background:linear-gradient(to bottom,rgba(14,13,13,.7) 0,rgba(14,13,13,.49) 9.9%,rgba(14,13,13,0) 18%)}
  .ab .ab-hero::after{background:linear-gradient(to top,rgba(14,13,13,.8) 0,rgba(14,13,13,.656) 23%,rgba(14,13,13,0) 46%)}
  .ab .ab-hero h1{font-size:58px}
  .ab .ab-hero .sub{font-size:23px;margin-top:18px!important}
  .ab .ab-hero .ttl{bottom:112px}                       /* 60 + 12 + 40 */
  .ab .ab-cue{bottom:60px}
  .ab .ab-cue .thr{height:47px!important}

  /* The Journey: FB-041 (landscape) above its words, the column's width; FB-113 (portrait) beside its words */
  .ab .ab-blk{padding-top:28px;padding-bottom:28px}
  .ab .ab-blk.ab-last{padding-bottom:72px}
  .ab .ab-blk.inter{padding-top:28px;padding-bottom:19.6px}
  .ab .ab-blk.left .row{grid-template-columns:minmax(0,1fr)!important;gap:28px!important}
  .ab .ab-fr.f041{order:-1;width:100%;max-width:none;margin:0;aspect-ratio:auto!important;height:44vh!important;height:44svh!important}
  .ab .ab-blk.right .row{grid-template-columns:minmax(0,1fr) 38%!important;gap:32px!important;align-items:stretch}
  .ab .ab-fr.f113{order:0!important;width:auto;max-width:none;margin:0!important;aspect-ratio:auto!important;height:auto!important;min-height:360px}
  .ab .ab-blk.right .ab-tx{align-self:center}
  .ab .ab-fr.f041 img{object-position:50% 22%}
  .ab .ab-fr.f113 img{object-position:50% 34%}

  /* R.K. Shriramkumar: the picture the column's width, her words beneath */
  .ab .ab-blk.inter .row{grid-template-columns:minmax(0,1fr)!important;gap:28px!important}
  .ab .ab-fr.f135{width:100%;max-width:none;margin:0;aspect-ratio:auto!important;height:44vh!important;height:44svh!important}
  .ab .ab-fr.f135 img{object-position:52% 42%}
  .ab .ab-q.rs{font-size:24px;width:auto;max-width:40ch}

  /* the closing band */
  .ab .ab-end .t{font-size:38px!important;margin-top:-80px!important}
  .ab .ab-end .s{font-size:22px!important}
  .ab .ab-end .t,.ab .ab-end .s{max-width:38ch!important}
  .ab .ab-end .ph{height:64vh!important;height:64svh!important}
}

/* ---------- iPad Pro 13 upright, 900–1099: the hero as the other iPads (owner, 8 Oct); the Journey and FB-135 as
   built ---------- */
@media (min-width:900px) and (max-width:1099px){
  .ab .ab-hero .ph{-webkit-mask-image:linear-gradient(to top,transparent 0,#000 8%)!important;mask-image:linear-gradient(to top,transparent 0,#000 8%)!important}
  .ab .ab-hero .ph::after{background:linear-gradient(to bottom,rgba(14,13,13,.7) 0,rgba(14,13,13,.49) 8.8%,rgba(14,13,13,0) 16%)}
  .ab .ab-hero::after{background:linear-gradient(to top,rgba(14,13,13,.8) 0,rgba(14,13,13,.656) 22%,rgba(14,13,13,0) 44%)}
  .ab .ab-hero h1{font-size:66px}
  .ab .ab-hero .sub{font-size:25px;margin-top:20px!important}
  .ab .ab-hero .ttl{bottom:120px}                       /* 64 + 12 + 44 */
  .ab .ab-cue{bottom:64px}
  .ab .ab-cue .thr{height:51px!important}

  /* the closing band */
  .ab .ab-end .t{font-size:42px!important;margin-top:-90px!important}
  .ab .ab-end .s{font-size:24px!important}
  .ab .ab-end .t,.ab .ab-end .s{max-width:38ch!important}
  .ab .ab-end .ph{height:62vh!important;height:62svh!important}
}
