/* Handsome Boy — Phase 3C.
   Built to briefs/2026-10-3C/design-reference/. Exact values come from those
   boards; the nav comes from nav-current-page-underline.html, not from the
   page boards, which still show the old pink box.

   Rules that never bend: white / pink / black and no fourth value,
   border-radius 0 everywhere, no shadows, no gradients, no hairlines,
   6px gutters, and the middot as the only separator. */

/* ─────────────────────────────────────────────────────────────────────────
   FONTS — self-hosted, SIL OFL 1.1 (licences in assets/fonts/). Here rather
   than in a separate fonts.css so the page has one render-blocking
   stylesheet; the Fraunces and Archivo latin files are also preloaded in each
   page's <head>.
   Fraunces is subset to exactly the characters the site sets in it, all four
   axes intact (the wordmark needs SOFT 100 and WONK 1); build.mjs fails if
   the site ever asks it for a character the subset lacks. Archivo 400 and 500
   share one variable file per subset, so two faces point at the same URL.
   ───────────────────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/fraunces-var-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Archivo';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/archivo-400-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/archivo-400-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/archivo-400-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/archivo-400-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/archivo-400-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/archivo-400-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --white: #FFFFFF;
  --pink:  #EC3E96;
  --black: #000000;
  --ratio: 2.39;            /* the letterbox band */
  --gutter: 6px;

  /* One scale unit for the whole composition, so the page resizes like video
     rather than reflowing. --u is 1% of the EFFECTIVE width: normally 1vw, but
     on a short wide window the band is height-bound, so the width that matters
     is the one the height allows. --s is then 1px-at-1440, which every size
     below is expressed in. */
  --u: min(1vw, calc(100vh * var(--ratio) / 100));
  --s: calc(var(--u) / 14.4);
  --layout: desktop;          /* site.js reads this; the PHONE block sets phone */
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--black);
  font-family: Archivo, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--pink); text-decoration: none; }
a:hover { color: var(--black); }

.vh {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--pink); color: var(--white); padding: 10px 14px; font-size: 13px;
}
.skip:focus { top: 8px; color: var(--white); }

:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }

/* ─────────────────────────────────────────────────────────────────────────
   DESKTOP — the letterbox frame. One screen, no scrolling.
   ───────────────────────────────────────────────────────────────────────── */
.frame {
  height: 100vh;
  background: var(--black);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.band {
  width: 100%;
  height: calc(var(--u) * 100 / var(--ratio));
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.col {
  width: calc(1120 * var(--s));           /* 1120px at a 1440 window */
  display: flex;
  flex-direction: column;
  gap: calc(36 * var(--s));
}
.col--tight { gap: calc(28 * var(--s)); } /* UGC and Contact */

/* masthead — identical on every page */
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: calc(24 * var(--s));
}
.masthead__left { display: flex; flex-direction: column; align-items: flex-start; gap: calc(14 * var(--s)); }
.wordmark {
  font-family: Fraunces, Georgia, serif;
  font-weight: 900;
  font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144;
  font-size: calc(72 * var(--s));
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--pink);
  white-space: nowrap;
}
.wordmark:hover { color: var(--pink); }
.byline {
  margin: 0;
  font-size: max(10px, calc(12 * var(--s)));
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--black);
}
.nav { display: flex; gap: calc(28 * var(--s)); }
.nav a {
  /* Pinned at an 11px floor, so the letterbox holds on any landscape screen.
     13px * (1220/1440) = 11.0px, so the floor takes over below a 1220 window
     and the nav stops shrinking with everything else. */
  font-size: max(11px, calc(13 * var(--s)));
  font-weight: 500;
  letter-spacing: 0.12em;
  white-space: nowrap;
  /* black, not pink: pink on white is 3.68:1, under the 4.5:1 small text
     needs. The current page and hover stay pink (Barry, Gate E). */
  color: var(--black);
}
.nav a:hover { color: var(--pink); }
/* current page: pink, with a 3px pink underline, never a fill */
.nav a[aria-current="page"] {
  color: var(--pink);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}

/* tiles
   The <a>/<div> wrapper and the <picture> must carry the tile's height, or
   `height: 100%` on the image has no containing block to resolve against and
   the image falls back to its natural aspect. That caused two bugs at once:
   Blacklane rendered 16:9 inside its 3.5:1 cell and overflowed the band, and
   the UGC thumbnails (0.560-0.627 wide-to-tall, not exactly 9:16) showed the
   tile's black background as bars. overflow: hidden is the backstop so no
   image can ever escape its cell. */
.tile { display: block; position: relative; background: var(--black); overflow: hidden; }
.tile__frame { display: block; width: 100%; height: 100%; }
.tile picture { display: block; width: 100%; height: 100%; }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Vertical tiles crop the extra width from the RIGHT: the client logos sit
   top-left and must never be clipped. */
.ar-9x16 img, .ar-9x16 video { object-position: left center; }
.ar-16x9 { aspect-ratio: 16 / 9; }
.ar-9x16 { aspect-ratio: 9 / 16; }
.tile__loop { position: absolute; inset: 0; opacity: 0; }
.tile.is-playing .tile__loop { opacity: 1; }

/* grids */
.grid { display: grid; gap: var(--gutter); }
.grid--home { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--ugc  { grid-template-columns: repeat(14, minmax(0, 1fr)); }

.tiers { display: flex; flex-direction: column; gap: var(--gutter); }
.tier  { display: grid; gap: var(--gutter); }
.tier--1 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tier--2 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.areagrid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-template-rows: repeat(4, calc(76 * var(--s)));   /* 76px at 1440 */
  gap: var(--gutter);
}
.areagrid .tile { aspect-ratio: auto; height: 100%; }

/* contact */
.contact { display: grid; grid-template-columns: calc(448 * var(--s)) minmax(0, 1fr); column-gap: calc(56 * var(--s)); align-items: start; }
.contact__text { display: flex; flex-direction: column; gap: calc(20 * var(--s)); }
.bio { margin: 0; font-size: calc(17 * var(--s)); font-weight: 400; line-height: 1.55; }
.email {
  font-family: Fraunces, Georgia, serif;
  font-weight: 900;
  font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144;
  font-size: calc(30 * var(--s));
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--pink);
  white-space: nowrap;
}
.social { font-size: calc(12 * var(--s)); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--black); }

/* the pancake button only exists below the breakpoint */
.pancake { display: none; }

/* 404: one centred line where the grid would be, the same height as Home's
   grid, so the masthead does not move when you land here. The nav is the way
   back. */
.notfound {
  margin: 0; height: calc(316 * var(--s));
  display: flex; align-items: center; justify-content: center;
  font-size: max(13px, calc(17 * var(--s))); color: var(--black); text-align: center;
}

/* ─────────────────────────────────────────────────────────────────────────
   PHONE — any portrait screen, plus any landscape window too small for the
   desktop nav at its 11px floor. Below the 1220 floor the nav stops shrinking
   while the column keeps going, so it overruns the column at 926px wide or
   387px tall and is clipped by about 800 (iPhone SE landscape). The switch
   sits a little above that (940 / 394), for engines that set the text a few
   pixels wider. Barry's calls: orientation at Gate D, the size limit at Gate E.

   This exact condition is used twice (here and the lightbox), and build.mjs
   fails if any layout @media differs from it. site.js never repeats it: it
   reads --layout, so the JS can never disagree with the CSS.
   ───────────────────────────────────────────────────────────────────────── */
@media (orientation: portrait), (max-width: 939px), (max-height: 393px) {
  :root { --layout: phone; }
  html, body { height: auto; }
  .frame {
    height: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 56px 0;                 /* the two black bars */
    overflow: visible;
  }
  .band {
    height: auto;
    flex: 1;                         /* white fills to the closing bar */
    display: block;
    padding: 28px 16px 32px;
  }
  .col, .col--tight { width: 100%; gap: 24px; }

  .masthead { flex-direction: column; align-items: flex-start; gap: 8px; }
  .masthead__left { gap: 10px; }
  .wordmark { font-size: 38px; }
  .byline { font-size: 12px; letter-spacing: 0.06em; }

  .nav { display: none; }            /* the four labels live in the menu */
  .pancake {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0; margin: 0; border: 0;
    background: transparent; cursor: pointer; align-self: center;
  }

  /* The grids depend on the screen's shape, not on which layout is on.
     These two nested rules are geometry inside the phone layout; the
     layout switch itself is the condition on this block. */

  /* Portrait: the phone design as drawn at 390. */
  @media (orientation: portrait) {
    .grid--home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid--ugc  { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .tier--1 { grid-template-columns: minmax(0, 1fr); }
    .tier--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    /* Commercial stacks by span: Frito full, Lenovo + Cerebral side by side,
       Blacklane full at about 3.5:1 */
    .areagrid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
    .areagrid .tile { grid-column: auto !important; grid-row: auto !important; aspect-ratio: 16 / 9; height: auto; }
    .areagrid .tile[data-phone-span="full"] { grid-column: 1 / -1 !important; }
    .areagrid .tile[data-wide="1"] { aspect-ratio: 3.5 / 1; }
  }

  /* Landscape (a phone on its side, or a short wide window): still the
     scrolling page, but the desktop grids, which suit a wide screen. Home 4
     across, Film & TV 3 over 5 and the Commercial mosaic come from the
     desktop rules unchanged; UGC is 7 across. No tile may be taller than
     about 60% of the screen, so each page's column is capped at the width
     where its tallest tile reaches 60svh (vh where svh is not supported), and
     centred. Barry, Gate E. */
  @media (orientation: landscape) {
    .grid--ugc { grid-template-columns: repeat(7, minmax(0, 1fr)); }
    /* the mosaic's desktop proportion: 1120 wide, 4 rows of 76 + 3 gutters */
    .areagrid { aspect-ratio: 1120 / 322; grid-template-rows: repeat(4, minmax(0, 1fr)); }

    .col { margin-inline: auto; }
    /* 16:9 tiles 4 across: 4 x (60 x 16/9) + 3 gutters */
    .page-home .col { max-width: calc(426.67vh + 18px); max-width: calc(426.67svh + 18px); }
    /* tier 1, 16:9 tiles 3 across */
    .page-film .col { max-width: calc(320vh + 12px); max-width: calc(320svh + 12px); }
    /* 9:16 tiles 7 across: 7 x (60 x 9/16) + 6 gutters */
    .page-ugc .col { max-width: calc(236.25vh + 36px); max-width: calc(236.25svh + 36px); }
    /* Frito Lay is the mosaic's full height: 60 x 1120/322 */
    .page-commercial .col { max-width: 208.7vh; max-width: 208.7svh; }
    /* the Contact portrait is 16:9 */
    .contact__portrait { max-width: 106.67vh; max-width: 106.67svh; }
  }

  .contact { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .contact__text { gap: 16px; order: 2; }
  .contact__portrait { order: 1; }
  .bio { font-size: 16px; order: 3; }
  .email { font-size: 23px; line-height: 1.05; }
  .social { font-size: 12px; padding: 6px 0; }
  .notfound { height: auto; padding: 96px 0; font-size: 16px; }
}

/* ─────────────────────────────────────────────────────────────────────────
   PHONE MENU — the whole screen cuts to black
   ───────────────────────────────────────────────────────────────────────── */
.menu[hidden] { display: none !important; }
.menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--black);
  color: var(--white);
  /* the spacing gives way on a short landscape phone so Contact stays on
     screen (84/56 on any portrait phone); it scrolls as a last resort */
  padding: min(84px, 12vh) 16px 32px;
  display: flex; flex-direction: column; gap: min(56px, 8vh);
  overflow-y: auto;
}
.menu__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.menu__left { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.menu .byline { color: var(--white); }
.menu__close {
  width: 44px; height: 44px; margin: -8px -10px 0 0; padding: 0; border: 0;
  background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.menu__nav { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.menu__nav a {
  font-size: 20px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; white-space: nowrap; padding: 10px 0;
  color: var(--white);
}
.menu__nav a:hover { color: var(--white); }
.menu__nav a[aria-current="page"] {
  color: var(--pink);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 7px;
}
body.menu-open { overflow: hidden; }

/* ─────────────────────────────────────────────────────────────────────────
   LIGHTBOX — the site's own player. No host chrome, no native controls.
   ───────────────────────────────────────────────────────────────────────── */
.lb[hidden] { display: none !important; }
.lb:focus { outline: none; }   /* the dialog takes focus on a touch open; it is not a control */
.lb {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0, 0, 0, 0.94);
  display: flex; flex-direction: column;
}
.lb__bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; gap: 16px; flex: 0 0 auto;
}
.lb__nav { display: flex; gap: 8px; }
.lb button {
  background: transparent; border: 0; color: var(--white); cursor: pointer;
  font: 500 13px/1 Archivo, system-ui, sans-serif; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 10px 12px; min-width: 44px; min-height: 44px;
}
.lb button:hover { color: var(--pink); }
.lb button[disabled] { opacity: 0.35; cursor: default; }
.lb button[disabled]:hover { color: var(--white); }
.lb__stage {
  flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 0 16px 16px;
}
.lb__frame { display: flex; align-items: center; justify-content: center; max-width: 100%; max-height: 100%; min-height: 0; }
.lb__frame video {
  display: block; background: var(--black);
  max-width: 100%; max-height: 100%;
}
/* The frame takes every pixel of height the stage can spare and becomes a
   size container, so the video is its true shape at the largest size that
   fits, from the first frame. Never size it from the video itself: a
   percentage height resolved to auto in WebKit (the frame had only a
   max-height), so 9:16 fell back to its own pixel size, tiny on iPhone, and
   16:9 grew mid-play when the stream switched up to 1080p. */
.lb__frame--tall, .lb__frame--wide { flex: 1 1 0; align-self: stretch; container-type: size; }
.lb__frame--tall video {
  aspect-ratio: 9 / 16; height: 100%; width: auto;   /* without container units */
  width: min(100cqw, 100cqh * 9 / 16); height: auto;
}
.lb__frame--wide video {
  aspect-ratio: 16 / 9; width: 100%; height: auto;
  width: min(100cqw, 100cqh * 16 / 9);
}
.lb__caption {
  margin: 0; color: var(--white); font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; text-align: center;
}
/* our own minimal transport: no native controls anywhere */
.lb__controls { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 900px; }
/* A slider: a 44px touch target drawing a 5px track, the fill inside it,
   both centred. touch-action: none so a drag never scrolls the page or
   starts Safari's back-swipe; the track thickens while it is being dragged. */
.lb__seek {
  flex: 1 1 auto; height: 44px; position: relative; cursor: pointer;
  touch-action: none; -webkit-user-select: none; user-select: none;
}
.lb__seek::before, .lb__seek span {
  content: ''; position: absolute; left: 0; top: 50%; height: 5px; margin-top: -2.5px;
}
.lb__seek::before { right: 0; background: rgba(255, 255, 255, 0.3); }
.lb__seek span { width: 0; background: var(--pink); display: block; }
.lb--seeking .lb__seek::before, .lb--seeking .lb__seek span { height: 9px; margin-top: -4.5px; }
.lb__time { color: var(--white); font-size: 11px; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
/* the browser refused to start playback: Play is the next tap */
.lb--tap .lb__play {
  color: var(--pink);
  text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 7px;
}

/* phone layout: full-screen black, the layout's gutters */
@media (orientation: portrait), (max-width: 939px), (max-height: 393px) {
  .lb { background: var(--black); }
  .lb__stage { padding: 0 0 12px; }
  .lb__controls, .lb__caption { padding: 0 16px; }
  /* Geometry, not the layout switch: on a portrait screen 16:9 is always
     width-bound, so the frame hugs the video and the controls stay right
     under it (without a block-size container, 100cqh falls back to the
     viewport height and 100cqw wins). A landscape phone is height-bound, so
     there 16:9 keeps the size container like the desktop. */
  @media (orientation: portrait) {
    .lb__frame--wide { flex: 0 0 auto; container-type: inline-size; }
  }

  /* Landscape phone: the video takes the whole screen, at its true shape,
     and the bar and the controls float over it on a light black gradient
     (Barry's call: the one gradient on the site, only here). The caption is
     kept for screen readers (it is the live region) but not shown. site.js
     reads --lb-overlay and hides the overlay after 2.5s of playing without a
     touch; .lb--quiet only has an effect in this mode. */
  @media (orientation: landscape) {
    .lb { --lb-overlay: 1; }
    .lb__stage { position: absolute; inset: 0; padding: 0; gap: 0; }
    .lb__bar, .lb__controls {
      position: absolute; left: 0; right: 0; z-index: 2;
      transition: opacity 300ms ease;
    }
    .lb__bar { top: 0; padding: 8px 16px 20px; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0)); }
    .lb__controls {
      bottom: 0; max-width: none; padding: 20px 16px 6px;
      background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
    }
    .lb__caption {
      position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
      overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
    }
    .lb--quiet .lb__bar, .lb--quiet .lb__controls { opacity: 0; pointer-events: none; }
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   MOTION — staggered fade-in once, and the page-to-page fade.
   Both are removable: delete the .fade rules and the body class.
   ───────────────────────────────────────────────────────────────────────── */
@keyframes tile-in { from { opacity: 0 } to { opacity: 1 } }
.js .tile { opacity: 0; animation: tile-in 260ms ease-out forwards; animation-delay: var(--d, 0ms); }
.no-js .tile { opacity: 1; }

/* Page-to-page fade. Only <main> moves: the black bars, the wordmark, the
   byline and the nav hold perfectly still through the transition, so the frame
   reads as fixed and the work inside it changes. */
@keyframes page-in { from { opacity: 0 } to { opacity: 1 } }
.js main { animation: page-in 400ms ease-in-out both; }
body.is-leaving main { opacity: 0; transition: opacity 300ms ease-in-out; }

@media (prefers-reduced-motion: reduce) {
  .js .tile, .js main { animation: none !important; opacity: 1 !important; }
  body.is-leaving main { transition: none; opacity: 1; }
  .lb__bar, .lb__controls { transition: none !important; }   /* the overlay hides instantly */
  * { scroll-behavior: auto !important; }
}
