/* Crew's page, its own object only, on fift.css's tokens: the home's first screen, then why, the wall of every real function,
   the reasons, the facts and the door (CREW-WALL). One space between beats (--beat: 144 on a laptop and a tablet, 64 on a phone). */
main{--beat:144px}
@media (max-width:767px){main{--beat:64px}}
/* lane 1 (SUBPAGES-LANES-1-3, Bianca 16 Nov): the first screen is the home's. A founder from the home's set, as large as the home
   draws hers (the same files and sizes, picked by drawn size), the words on her dark side, the home's shade over her; a phone and a
   tall window stack her above the words. Nothing moves: she is there on the first paint, with or without script. */
main>.lit.stage.hero{min-height:calc(100svh - var(--bar-h));justify-content:center;padding:var(--g2) 0}
.hero .she{position:absolute;inset:0;z-index:-2}
.hero .she img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:0 40%}
.hero .she-sh{position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(90deg,rgba(13,12,11,.86) 0,rgba(13,12,11,.5) 30%,rgba(13,12,11,0) 56%),linear-gradient(180deg,rgba(13,12,11,.6) 0,rgba(13,12,11,0) 20%,rgba(13,12,11,0) 70%,var(--bg) 100%)}
.hero .wrap{position:relative;width:100%}
.hero h1,.hero .lede{max-width:min(46vw,900px)}
.hero .aicap{position:absolute;z-index:1;right:26px;bottom:20px;margin:0;font:400 var(--t12)/1.4 var(--sans);color:var(--ter);letter-spacing:.01em;pointer-events:none}
@media (min-width:768px) and (max-aspect-ratio:16/10){.hero .she img{object-position:20% 40%}}
@media (min-width:768px) and (max-aspect-ratio:13/10){.hero .she img{object-position:42% 40%}}
@media (max-width:767px),(min-width:768px) and (max-aspect-ratio:11/10){
  main>.lit.stage.hero{justify-content:flex-end;padding:0 0 var(--g1)}
  .hero .she,.hero .she-sh{inset:0 0 auto 0;height:62%}
  .hero .she img{object-position:15% 0}
  .hero .she-sh{background:linear-gradient(180deg,rgba(13,12,11,.5) 0,rgba(13,12,11,0) 14%,rgba(13,12,11,0) 46%,var(--bg) 100%)}
  .hero h1,.hero .lede{max-width:none}
  .hero .aicap{bottom:auto;top:12px;right:20px}}
@media (min-width:768px) and (max-aspect-ratio:11/10){.hero .she img{object-position:62% 0}}
main>.end{padding:var(--beat) 0 0;border:0}
/* round 42: each chapter is one screen: at least the screen's height under the bar, its label-to-caption block in the middle, so
   when a chapter is in view no other headline is (FLAWLESS.md, "one headline per screen") */
main>.chap{display:flex;flex-direction:column;justify-content:center;min-height:calc(100svh - var(--bar-h));padding:var(--g1) 0;border:0;box-sizing:border-box}
main>.chap>.wrap{width:100%}

/* CREW-WALL (Bianca 16 Nov, on Sunny's "think about it as wall of fame to show off all awesome functions"): after the first
   screen, one statement of why, then THE WALL: a tile for every real thing Crew 0.8.19 does (INVENTORY.md), in six groups,
   each group one screen at least so no two group headings share one; then five reasons, the facts, the door. */
.chap .wrap{text-align:center}
.chap h2{margin:0;font:400 var(--h-big)/1.02 var(--serif);letter-spacing:-.03em;text-wrap:balance}
.chap .kick,.grp .kick{margin:0 0 16px;color:var(--sec);font:var(--f-kick);letter-spacing:.01em}
.chap .line{max-width:32em;margin:24px auto 0;color:var(--sec);font:400 var(--lede)/1.45 var(--sans);text-wrap:balance}
/* round 3 (Bianca): "Tell it once" is why's second line, not a star of words alone, until its picture exists (WHAT-CREW-IS: never
   run by a real new founder) */
.chap .line2{max-width:34em;margin:20px auto 0;color:var(--ter);font:400 var(--t17)/1.5 var(--sans);text-wrap:balance}
.chap .line2 b{color:var(--sec);font-weight:500}
.how{scroll-margin-top:-24px} /* with the page's scroll-padding (bar + 24) the wall's first group starts right under the bar */

/* a group: its label and serif line centred, its tiles under them; at least one screen tall, so its heading is alone in view */
.grp{display:flex;flex-direction:column;justify-content:center;min-height:calc(100svh - var(--bar-h));padding:var(--g1) 0;box-sizing:border-box}
.grp>.wrap{width:100%}
.gh{text-align:center;margin:0 0 48px}
.gh h2{margin:0;font:400 clamp(40px,4.2vw,60px)/1.04 var(--serif);letter-spacing:-.03em;text-wrap:balance}
@media (max-width:767px){.gh{margin-bottom:32px}.gh h2{font-size:var(--t40)}}

/* the tiles, round 2 (o-cd32284d, Sunny 16 Nov: "show more visuals, less text"): a tile IS its picture, a real Crew 0.8.19 capture
   or film filling the card edge to edge, then its name and one short line. A row of tiles is one row of pictures: each tile takes
   the row's width in proportion to its picture's shape (--a, width over height), so every picture in a row is the same height,
   the row is always full, and no picture is cropped, stretched or letterboxed (each file is cut to its own shape). On a phone the
   tiles stand one under another, each with its phone cut (--ap). The app's own words and the longer lines wait for up close. */
.tiles{display:flex;gap:16px;max-width:1200px;margin:0 auto;padding:0;list-style:none;text-align:left}
.tiles+.tiles{margin-top:16px}
.tile{position:relative;display:flex;flex-direction:column;flex:calc(var(--a) * 100) 1 0;min-width:0;margin:0;border-radius:var(--r18);background:var(--panel);box-shadow:inset 0 0 0 1px var(--line);overflow:hidden}
.pic{position:relative;margin:0;aspect-ratio:var(--a);background:#0d0c0b;overflow:hidden}
.tile .pic{flex:none;border-bottom:1px solid var(--line)}
.pic picture,.pic .ph{display:block;width:100%;height:100%}
.pic>picture img,.pic>video,.pic>.ph img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 0}
.pic .ph{display:none}
.tile .tw{padding:18px 22px 22px}
.tile h3{margin:0;font:400 22px/1.2 var(--serif);letter-spacing:-.01em;text-wrap:balance}
.tile .say{margin:6px 0 0;color:var(--sec);font:400 15px/1.45 var(--sans);text-wrap:pretty}
.tile .long{display:none}
html:not(.js) .tile .long{display:block}
.tile .long p{margin:10px 0 0;color:var(--sec);font:400 15px/1.5 var(--sans)}
/* under 900 the small tiles stand one under another, at most 520 wide (a row of them would squeeze their words) */
@media (max-width:899px){.tiles{flex-direction:column;align-items:center}.tile{flex:none;width:100%;max-width:520px}}
@media (max-width:639px){
  .pic{aspect-ratio:var(--ap,var(--a))}
  .pic .lap{display:none}
  .pic .ph{display:block}
  .tile .tw{padding:16px 20px 20px}
  .tile .say,.tile .long p{font-size:16px}}
/* the app's own words for the thing, as quiet pills, up close (and under the line without script) */
.app{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 0}
.app span:not(.sr-only){padding:4px 10px;border:1px solid rgba(236,232,225,.14);border-radius:var(--r99);color:var(--sec);font:400 15px/1.35 var(--sans);white-space:nowrap}
@media (max-width:767px){.app span:not(.sr-only){font-size:16px}}
/* FIFT's own six faces, as one picture: six across, three on a phone */
.pic.six .cast{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:2px;height:100%;background:var(--bg)}
.pic.six .cast figure{margin:0;background:#0d0c0b}
.pic.six .cast picture{display:block;height:100%}
.pic.six .cast img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 18%;filter:brightness(.8) saturate(.7) contrast(1.08)}
@media (max-width:639px){.pic.six .cast{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr))}} /* round 3: both rows of faces whole on a phone */

/* THE SIX STARS (o-715be472): the page's main focus, right under why. Each its own screen: a quiet label, a proud name, one
   short line, then its pictures large. A row of a star's pictures shares one height, at most --cap (none draws past its own
   pixels), and is centred; on a phone they stand one under another at their phone cuts. */
.star{display:flex;flex-direction:column;justify-content:center;min-height:calc(100svh - var(--bar-h));padding:48px 0;box-sizing:border-box}
.star>.wrap{width:100%}
.star .sh{max-width:36em;margin:0 auto 32px;text-align:center}
.star .kick{margin:0 0 16px;color:var(--sec);font:var(--f-kick);letter-spacing:.01em}
.star h2{margin:0;font:400 clamp(40px,4.4vw,64px)/1.04 var(--serif);letter-spacing:-.03em;text-wrap:balance}
.star .line{margin:20px auto 0;color:var(--sec);font:400 var(--lede)/1.45 var(--sans);text-wrap:balance}
.star .more-line{margin:12px auto 0;color:var(--ter);font:400 var(--t17)/1.5 var(--sans);text-wrap:balance}
/* a star whose picture waits: its words alone, larger, the screen its own */
.star.words h2{font-size:clamp(56px,7vw,104px);letter-spacing:-.04em}
.star.words .line{max-width:30em}
.sm .srow{display:flex;gap:16px;max-width:min(1200px,calc(var(--s) * var(--cap) + (var(--n) - 1) * 16px));margin:0 auto}
.sm .srow+.srow{margin-top:16px}
.sm .pic{flex:calc(var(--a) * 100) 1 0;min-width:0;border-radius:var(--r10);box-shadow:0 0 0 1px rgba(255,255,255,.1),0 24px 60px rgba(0,0,0,.5)}
.star .note{margin:16px 0 0;color:var(--ter);font:400 var(--t14)/1.45 var(--sans);text-align:center}
@media (max-width:767px){.star .sh{margin-bottom:28px}.star h2{font-size:var(--t40)}}
@media (max-width:639px){.sm .srow{flex-direction:column;max-width:none}.sm .pic{flex:none}
  /* round 3 (Bianca: no star taller than a phone's screen): a laptop's extra picture stays off a phone, and a tall one is drawn
     at most --phw wide, centred */
  .sm .pic.lap-only{display:none}
  .sm .pic{width:100%;max-width:var(--phw,none);margin:0 auto}}

/* what Crew does with no picture yet: no tile, one quiet line of names at the group's foot; a name becomes a tile when its picture
   lands (tools/crew-pictures.mjs). Then the group's one caption. */
.also-in{max-width:44em;margin:28px auto 0;color:var(--sec);font:400 15px/1.6 var(--sans);text-align:center;text-wrap:balance}
.grp .note{margin:12px 0 0;color:var(--ter);font:400 var(--t14)/1.45 var(--sans);text-align:center}
@media (max-width:767px){.also-in{font-size:16px}}

/* a press opens a tile up close (o/crew.js): the whole tile is its button */
.tile .go{all:unset;cursor:pointer}
.tile .go:after{content:"";position:absolute;inset:0;z-index:1;border-radius:var(--r18)}
.tile .go:focus-visible:after{outline:2px solid var(--ivory);outline-offset:3px}
@media (hover:hover){.wall-on .tile{transition:box-shadow .2s}.wall-on .tile:hover{box-shadow:inset 0 0 0 1px rgba(236,232,225,.22)}}
@media (prefers-reduced-motion:reduce){.wall-on .tile{transition:none}}

dialog.up{width:100%;max-width:none;height:100%;max-height:none;margin:0;padding:24px;border:0;background:none;color:var(--ink);box-sizing:border-box;overscroll-behavior:contain}
dialog.up[open]{display:flex;align-items:center;justify-content:center}
dialog.up::backdrop{background:rgba(13,12,11,.88);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.up .box{position:relative;width:min(1100px,100%);max-height:100%;overflow:auto;padding:48px;border-radius:var(--r18);background:var(--panel);box-shadow:inset 0 0 0 1px var(--line);box-sizing:border-box}
.up .shot{margin:0 0 32px}
.up .shot img,.up .shot video{display:block;width:auto;height:auto;max-width:100%;max-height:min(66svh,900px);margin:0 auto;border-radius:var(--r10);box-shadow:0 0 0 1px rgba(255,255,255,.1),0 24px 60px rgba(0,0,0,.5)}
.up .shot figcaption{margin:12px 0 0;color:var(--ter);font:400 var(--t14)/1.45 var(--sans);text-align:center}
.up .tw{max-width:40em;margin:0 auto;text-align:center}
.up .app{justify-content:center;margin:20px 0 0}
.up h3{margin:0;font:400 var(--h-sec)/1.08 var(--serif);letter-spacing:-.025em;text-wrap:balance}
.up .say{margin:16px 0 0;color:var(--sec);font:400 var(--lede)/1.45 var(--sans);text-wrap:balance}
.up .long{display:block}
.up .long p{margin:12px 0 0;color:var(--sec);font:400 var(--t17)/1.55 var(--sans)}
.up .x{position:absolute;z-index:2;top:12px;right:12px;width:44px;height:44px;padding:0;border:1px solid rgba(236,232,225,.3);border-radius:50%;background:var(--panel);cursor:pointer}
.up .x:before,.up .x:after{content:"";position:absolute;left:50%;top:50%;width:14px;height:1.5px;margin:-.75px 0 0 -7px;background:var(--ink);transform:rotate(45deg)}
.up .x:after{transform:rotate(-45deg)}
@media (max-width:767px){dialog.up{padding:12px}.up .box{padding:56px 20px 28px}.up h3{font-size:32px}}
@media (prefers-reduced-motion:no-preference){dialog.up[open] .box{animation:up-in .24s var(--ease,ease-out)}@keyframes up-in{from{opacity:0;transform:translateY(8px)}}}

/* why founders come: five lines in big type, one under another, one screen */
.five{max-width:22em;margin:var(--g1) auto 0;padding:0;list-style:none;font:400 var(--h-sec)/1.2 var(--serif);letter-spacing:-.02em}
.five li{padding:18px 0;border-top:1px solid var(--line);text-wrap:balance}
.five li:last-child{border-bottom:1px solid var(--line)}
@media (max-width:767px){.five{font-size:var(--t28)}.five li{padding:14px 0}}

/* the cost: the home's four facts, as the home draws them; the words at least 16 px on a phone */
.cost .facts4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:48px 24px;max-width:var(--cap,100%);margin:var(--g1) auto 0;text-align:center}
.facts4 dt{font:400 clamp(48px,5vw,72px)/1 var(--serif);letter-spacing:-.04em;white-space:nowrap}
.facts4 dd{max-width:15em;margin:16px auto 0;color:var(--sec);font:400 var(--lede)/1.4 var(--sans);text-wrap:balance}
.facts4 small{display:block;margin-top:8px;color:var(--ter);font:400 15px/1.5 var(--sans)}
.cost .aside{max-width:40em;margin:var(--g1) auto 0;color:var(--ter);font:400 15px/1.5 var(--sans)}
/* round 42: past the first screen no line under 15 px on a laptop, 16 on a phone, captions apart (FLAWLESS.md) */
.end .fine{font-size:15px}
@media (max-width:767px){.facts4 small,.cost .aside,.end .fine{font-size:16px}}
.cost .go{display:flex;justify-content:center;margin:24px 0 0}
@media (max-width:999px){.cost .facts4{grid-template-columns:repeat(2,minmax(0,1fr))}.facts4 dt{font-size:var(--t72)}}
@media (max-width:767px){.cost .facts4{gap:40px 16px}.facts4 dt{font-size:var(--t40)}.facts4 dd{font-size:var(--t17)}}

/* the close: the line, the button, two quiet links to the pages that hold the rest */
.end{position:relative;text-align:center}
main>.end{padding-bottom:var(--beat)}
.end h2{margin:0;font:400 var(--tD)/.98 var(--serif);letter-spacing:-.04em;text-wrap:balance}
.end .also{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 32px;margin:24px 0 0}


/* while a tile is open up close the page behind it stands still */
html.up-open{overflow:hidden}
