/* Força13 design system: tokens, base, type, header, bottom bar, the full-screen menu, the bottom sheet, footer, the hero player, the film pages, then one block per page. */

:root {
  --ink: #23262b;
  --ink-soft: #4a4e55;
  --paper: #fbfaf7;
  --grey: #8a8d93;
  --hairline: #d9d7d1;
  --red: #f2c40f; /* Accent yellow (the name predates the colour). */
  --black: #101114;
  --serif: "Fraunces", Georgia, serif;
  --grot: "Archivo", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --pad: clamp(1.1rem, 4vw, 2.5rem);
  --bar: 4.5rem; /* Bottom bar height, without the safe-area inset (partials/bottombar.html). */
}

/* Base */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  font-family: var(--grot);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

img,
video {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

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

/* Small mono caption text */

.note {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
}

.note b {
  color: var(--red);
  font-weight: 500;
}

.note a {
  text-decoration: none;
}

.note a:hover {
  color: var(--ink);
}

/* Serif display type */

.display {
  font-family: var(--serif);
  font-variation-settings: "opsz" 100;
  font-weight: 480;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

/* Dark slot with vignette and film grain */

.slot {
  position: relative;
  background: var(--black);
  color: #e8e6e1;
  overflow: hidden;
}

.slot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 38%, #1d1f24 0%, var(--black) 78%);
}

.slot::after {
  content: "";
  position: absolute;
  inset: -60%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.4s steps(4) infinite;
  pointer-events: none;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-2%, -2%); }
  100% { transform: translate(0, 0); }
}

.slot > * {
  position: relative;
  z-index: 1;
}

.slot .note {
  color: #9a9da3;
}

.slot .note b {
  color: #ffd84d;
}

/* Layout helpers */

.wrap {
  padding-inline: var(--pad);
  max-width: 72rem;
  margin-inline: auto;
}

.rule {
  border: 0;
  border-top: 1px solid var(--hairline);
}

/* Keep text for screen readers and the document outline without drawing it. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Site header and burger */

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--pad);
  position: relative;
  z-index: 10;
}

/* Header laid over the top of a dark section such as the hero. */
.site-head.over {
  position: absolute;
  inset: 0 0 auto 0;
}

.brand img {
  height: 26px;
  width: auto;
}

@media (min-width: 760px) {
  .brand img {
    height: 32px;
  }
}

/* The burger: three lines, 6px apart. While its menu is open (body.nav-open) the outer two
   meet in the middle as a cross and the middle one fades out, over 250ms; under reduced
   motion the base rule above drops the transition, so it changes at once. The bar's burger
   (the "Bottom bar" block below) is drawn the same way. */
.burger {
  background: none;
  border: 0;
  cursor: pointer;
  width: 40px;
  height: 32px;
  display: grid;
  place-content: center;
  gap: 6px;
  color: var(--ink);
}

.burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-head.over .burger {
  color: #e8e6e1;
}

body.nav-open .burger span:first-child {
  transform: translateY(8px) rotate(45deg);
}

body.nav-open .burger span:nth-child(2) {
  opacity: 0;
}

body.nav-open .burger span:last-child {
  transform: translateY(-8px) rotate(-45deg);
}

/* The header's links (templates/base.html). The menu is the full-screen panel below (the
   "Full-screen menu" block), which the burger opens. Book stays in the header beside the
   burger, outside the panel, as it stays in the bar on the film pages. The inline links,
   Services, People, About and the Menu link that opens the same panel, are displayed from
   1024px only, in place of the burger. */

.head-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.menu {
  display: none;
}

.m-item {
  font-family: var(--serif);
  font-weight: 490;
  font-size: 1.15rem;
  line-height: 1.15;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.005em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
  transition: color 0.2s;
}

.m-item:hover {
  color: #ffd84d;
}

.m-item.book {
  color: #f2c40f;
}

/* While the panel is open the header stays over its top: the logo, Book and the burger
   folded into a cross, in the light colours the black panel needs. The panel's content
   starts below the header. */
body.nav-open .site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
}

body.nav-open .site-head .burger {
  color: #e8e6e1;
}

.site-head ~ .mn .mn-inner {
  padding-top: calc(5.5rem + env(safe-area-inset-top, 0px));
}

/* From 1024px the links sit inline in the header row, with middots between them and before
   Book, and the burger is not displayed. */
@media (min-width: 1024px) {
  .burger {
    display: none;
  }

  .menu {
    display: flex;
    align-items: baseline;
    gap: 0.85rem;
  }

  .head-links {
    align-items: baseline;
  }

  .m-item + .m-item::before,
  .menu + .m-item::before {
    content: "·";
    margin-right: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
  }
}

/* From 1440px the header row is capped at that width and centred. */
@media (min-width: 1440px) {
  .site-head {
    max-width: 1440px;
    margin-inline: auto;
  }
}

/* Bottom bar (templates/partials/bottombar.html, after docs/mockups/guggenheim.html on the lab
   branch): a black bar at the foot of the page, above the home indicator, with the burger on
   the left, the page's own content centred and Book on the right. Book is a white outline
   that fills white with black text on press. The page lays the bar out (the feed pins it to
   the foot of the screen) and wires the burger; body.nav-open folds it into a cross. */

.bottombar {
  position: relative;
  z-index: 30;
  height: calc(var(--bar) + env(safe-area-inset-bottom, 0px));
  padding: 0 var(--pad) env(safe-area-inset-bottom, 0px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: var(--black);
  color: #e8e6e1;
}

.bb-burger {
  justify-self: start;
  background: none;
  border: 0;
  cursor: pointer;
  width: 44px;
  height: 44px;
  margin-left: -9px;
  display: grid;
  place-content: center;
  gap: 6px;
  color: currentColor;
}

/* Three lines, folding into a cross as the site header's burger does. */
.bb-burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

body.nav-open .bb-burger span:first-child {
  transform: translateY(8px) rotate(45deg);
}

body.nav-open .bb-burger span:nth-child(2) {
  opacity: 0;
}

body.nav-open .bb-burger span:last-child {
  transform: translateY(-8px) rotate(-45deg);
}

.bb-centre {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.bb-book {
  justify-self: end;
  font-family: var(--grot);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  border: 1.5px solid #fff;
  border-radius: 999px;
  padding: 0.6rem 0.95rem;
  transition: background-color 0.15s, color 0.15s;
}

.bb-book:active {
  background: #fff;
  color: var(--black);
}

@media (hover: hover) {
  .bb-book:hover {
    background: #fff;
    color: var(--black);
  }
}

/* Full-screen menu (templates/partials/menu.html and static/js/menu.js), after the Guggenheim
   Bilbao site: a black panel over the whole screen, hidden until the page's burger (or the
   Menu link beside the inline links, from 1024px) opens it, holding the site in white type.
   Top to bottom: three section headings in the serif that unfold to their links one at a
   time, the Availability link and Instagram. On the film pages the bar stays over its foot, above
   the panel, with the burger folded into a cross and Book outside the panel (the "Home page"
   block below); on a page with the site header, the header stays over its top (the "Site
   header" block above). It fades in over 250ms with the blocks following each other 40ms
   apart, fades out in the same time, and under reduced motion simply appears and disappears.
   It scrolls itself when its content is taller than the screen, keeps clear of the safe-area
   insets, and locks the page behind it. */

.mn {
  position: fixed;
  inset: 0;
  z-index: 20;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: #000;
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mn[hidden] {
  display: none;
}

.mn.is-open {
  opacity: 1;
}

/* The page behind the open panel does not scroll. */
html:has(.mn.is-open),
html:has(.mn.is-open) body {
  overflow: hidden;
}

.mn-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: calc(1.5rem + env(safe-area-inset-top, 0px)) calc(var(--pad) + env(safe-area-inset-right, 0px)) calc(1.5rem + env(safe-area-inset-bottom, 0px)) calc(var(--pad) + env(safe-area-inset-left, 0px));
}

/* The blocks fade up one after another as the panel opens: the four sections first, then
   the Availability link and Instagram. On the way out they go with the panel, with no delays. */
.mn-section,
.mn-inner > :not(.mn-nav) {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.mn.is-open .mn-section,
.mn.is-open .mn-inner > :not(.mn-nav) {
  opacity: 1;
  transform: none;
}

.mn.is-open .mn-section:nth-child(2) { transition-delay: 40ms; }
.mn.is-open .mn-section:nth-child(3) { transition-delay: 80ms; }
.mn.is-open .mn-section:nth-child(4) { transition-delay: 120ms; }
.mn.is-open .mn-inner > :nth-child(2) { transition-delay: 160ms; }
.mn.is-open .mn-inner > :nth-child(3) { transition-delay: 200ms; }

/* A panel open on arrival (menu.js, the history) is shown as it is, not faded in. */
.mn.no-fade,
.mn.no-fade .mn-section,
.mn.no-fade .mn-inner > :not(.mn-nav) {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .mn,
  .mn-section,
  .mn-inner > :not(.mn-nav),
  .mn-head::after {
    transition: none;
  }
}

/* Sections: each a heading in the serif on a hairline, with a thin plus at its right that
   turns into a cross while the section is unfolded. */
.mn-nav {
  display: grid;
}

.mn-section {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.mn-section:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mn-h {
  margin: 0;
  font-size: inherit;
}

.mn-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.6rem 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--serif);
  font-weight: 420;
  font-size: clamp(2rem, 8.5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #fff;
}

.mn-head::after {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  background:
    linear-gradient(#fff, #fff) center / 100% 1.5px no-repeat,
    linear-gradient(#fff, #fff) center / 1.5px 100% no-repeat;
  opacity: 0.7;
  transition: transform 0.25s ease;
}

.mn-head[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

/* About: the heading is the link to its page, set like the other two but with no cross. */
.mn-head-link {
  text-decoration: none;
}

.mn-head-link::after {
  display: none;
}

.mn-links {
  list-style: none;
  margin: 0;
  padding: 0.1rem 0 1.1rem;
  display: grid;
  gap: 0.2rem;
}

.mn-link {
  display: inline-block;
  padding: 0.3rem 0;
  font-family: var(--grot);
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.mn-link:hover,
.mn-link:focus-visible {
  color: #fff;
}

/* The Availability link (the block below), as the home page's, without the shadow it needs
   over the film. */
.mn-avail-line {
  margin: 0;
}

.mn-avail {
  font-size: 0.95rem;
}

/* Instagram, under the Availability link. */
.mn-social {
  margin: 0;
}

.mn-insta {
  font-size: 0.95rem;
  color: #fff;
  text-decoration: none;
}

.mn-insta:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* From 1024px the panel is two columns, capped at 1440px: the sections on the left, the
   Availability link and Instagram on the right. */
@media (min-width: 1024px) {
  .mn-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "nav avail"
      "nav social";
    column-gap: 4rem;
    row-gap: 1.5rem;
    width: 100%;
    max-width: 1440px;
    margin-inline: auto;
  }

  .mn-nav { grid-area: nav; align-self: start; }
  .mn-avail-line { grid-area: avail; }
  .mn-social { grid-area: social; align-self: start; }

  .mn-head {
    font-size: 3.25rem;
  }

  .mn-link {
    font-size: 1.3rem;
  }
}


/* The Menu link beside the inline links from 1024px: it reads Menu, and Close while the panel
   is open. */
[aria-controls="menu"][aria-expanded="true"] .when-closed,
[aria-controls="menu"][aria-expanded="false"] .when-open {
  display: none;
}

/* Bottom sheet (templates/partials/sheet.html and static/js/sheet.js): the feed's menu as a
   light, TikTok-style sheet. Hidden until the bar's burger opens it; then it slides up over
   250ms from below the bar to two-thirds of the screen, black at 92% with a drag handle at
   its top edge, while the film above it dims to 40% under the .sh-dim layer, which takes the
   tap that closes it. The bar stays over the sheet's foot, so the sheet pads its content
   clear of the bar and the home indicator, and of the side insets. A pull on the sheet
   follows the finger (sheet.js sets the transform while .is-dragging, with no transition)
   and lets go either back up or down and away; under reduced motion the sheet appears and
   disappears at once. Top to bottom: two links in the serif, on hairlines, and the
   Availability link, at the foot. The feed's filter sheet (the "Feed page" block below) is a sheet of the
   same kind, and takes this block's sheet, dim layer, handle and chips as they are. */

.sh-dim {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.sh-dim.is-open {
  opacity: 1;
}

.sh {
  position: absolute;
  left: 0;
  right: 0;
  top: 33.333%;
  bottom: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.9rem calc(var(--pad) + env(safe-area-inset-right, 0px)) calc(var(--chrome-b) + 1rem) calc(var(--pad) + env(safe-area-inset-left, 0px));
  border-radius: 18px 18px 0 0;
  background: rgba(0, 0, 0, 0.92);
  color: #fff;
  transform: translateY(100%);
  transition: transform 0.25s ease;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.sh.is-open {
  transform: none;
}

/* No slide while a pull is on, nor for a sheet open on arrival (sheet.js, the history). */
.sh.is-dragging,
.sh.no-slide,
.sh-dim.no-slide {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .sh,
  .sh-dim {
    transition: none;
  }
}

.sh-handle {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 36px;
  height: 4px;
  margin-left: -18px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
}

/* Chips: pills in the mono; a chosen one (aria-pressed) fills white with black text. The
   feed's tag chips, in its filter sheet and its desktop column, are these. */
.sh-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  cursor: pointer;
  padding: 0.6rem 1rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  color: rgba(232, 230, 225, 0.85);
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.sh-chip:not([aria-pressed="true"]):hover {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.sh-chip[aria-pressed="true"] {
  background: #fff;
  border-color: #fff;
  color: var(--black);
}

/* The links, in the serif, one under another on hairlines. */
.sh-nav {
  display: grid;
}

.sh-link {
  display: block;
  padding: 0.7rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--serif);
  font-variation-settings: "opsz" 100;
  font-weight: 440;
  font-size: clamp(1.6rem, 6.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
  -webkit-user-drag: none;
}

.sh-link:first-child {
  border-top: 0;
}

.sh-link:hover {
  color: #e8e6e1;
}

/* The foot of the sheet, above the bar: the link that opens the feed's how-to again
   (a button, set as a link in the page's type, 44px tall) over the Availability link (the
   block below), as the home page's. Each is no wider than its text, so only the text takes
   the tap. */
.sh-foot {
  display: grid;
  justify-items: start;
  margin: auto 0 0;
}

.sh-how {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.2;
  color: #fff;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
  .sh-how:hover {
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }
}

.sh-avail {
  font-size: 0.95rem;
  -webkit-user-drag: none;
}

/* Availability link (templates/partials/availability.html): "Availability" with a small
   arrow, to the booking page, wherever the live opening-hours line stood: over the film on
   the home page and on /about (.hm-avail), in the full-screen menu (.mn-avail) and in the
   feed's menu sheet (.sh-avail). White, in the page's own type, at least 44px tall so it is
   easy to tap, with the arrow sliding a little to the right on hover. Each place sets its
   size and where it sits. */
.avail {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-weight: 400;
  line-height: 1.2;
  color: #fff;
  text-decoration: none;
}

.avail-arrow {
  flex: none;
  width: 0.8em;
  height: 0.8em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s ease;
}

.avail:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

@media (hover: hover) {
  .avail:hover {
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }

  .avail:hover .avail-arrow {
    transform: translateX(3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .avail-arrow {
    transition: none;
  }
}


/* Footer */

.site-foot {
  padding-block: 3rem 2.2rem;
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 1.4rem;
}

.foot-mark {
  font-size: 1.5rem;
  font-weight: 500;
}

.foot-mark .note {
  margin-left: 0.3rem;
}

/* Shared hero player (templates/partials/hero-player.html): two stacked clips that fill the
   stage, the one on show (is-on) on top, and the play control the script shows only when
   autoplay is refused. Under reduced motion the script never plays, so the poster stays. */
.hero-player {
  position: absolute;
  inset: 0;
  background: var(--black);
}

.hero-clip {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-clip.is-on {
  z-index: 2;
}

/* Play control: a white disc centred over the poster, as in the feed. */
.hero-play {
  display: grid;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: #101114;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.hero-play[hidden] {
  display: none;
}

.hero-play svg {
  margin-left: 3px;
}

/* Home page (templates/index.html, the Guggenheim variant from the lab branch): the shared
   hero player filling the stage, the Availability link and the film controls over the foot
   of the film above the bar, the full-screen menu the burger opens and, from 1024px, the
   links inline in the bar's centre in place of the burger. The stage filling the screen, the bar
   on its gradient and the logo under the top scrim are the film-page rules below, shared
   with the feed. Every rule here is scoped to body.home. */

body.home {
  --light: #e8e6e1;
}

body.home ::selection {
  background: var(--light);
  color: var(--black);
}

/* The player is its own stacking context at the bottom of the stage, so its clips and play
   control sit together beneath the scrim, the grain, the bar's gradient and the controls. */
.home .hero-player {
  z-index: 0;
}

.home .stage-area > .fd-scrim {
  z-index: 1;
}

.hm-grain {
  position: absolute;
  inset: -60%;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.4s steps(4) infinite;
  pointer-events: none;
}

/* The Availability link and the film controls, over the film just above the bar, on the
   bar's gradient. */
.hm-ui {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--chrome-b) + 1rem);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 var(--pad);
  transition: opacity 0.25s ease;
}

/* While the menu is open the Availability link and the controls fade out from under it. */
body.home.nav-open .hm-ui {
  opacity: 0;
  pointer-events: none;
}

/* The Availability link (the "Availability link" block above), with the shadow it needs
   over the film. */
.hm-avail {
  font-size: 0.95rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.hm-avail .avail-arrow {
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5));
}

.hm-ctl {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hm-ctl button {
  background: none;
  border: 0;
  cursor: pointer;
  color: #fff;
  display: grid;
  place-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
}

.hm-ctl .hm-pp {
  width: 54px;
  height: 54px;
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
}

.hm-ctl svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hm-ctl .hm-mute svg {
  width: 28px;
  height: 28px;
}

.hm-ctl .hm-pp svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.hm-ctl .hm-pp .ic-play {
  fill: currentColor;
  stroke: none;
  transform: translateX(1.5px);
}

/* Each button shows one of its two icons; the script moves data-off between them. */
.hm-ctl [data-off] {
  display: none;
}

/* About page (templates/about.html, body.about as well as body.home): the feed's CC button
   before the speaker, a 40px outlined disc reading CC in the mono that fills white with a
   black glyph while the subtitles are on (the script sets .on and aria-pressed, as the feed
   does); the subtitle overlay fades out under the menu with the Availability link and the
   controls. The About clips are portrait: under 1024px they fill the screen as the feed's
   films do; from 1024px the whole frame is shown, centred on the black stage, rather than
   a band of it.*/
.hm-ctl .fd-cc {
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.hm-ctl .fd-cc.on {
  background: #fff;
  color: var(--black);
  border-color: #fff;
  text-shadow: none;
}

.home .fd-sub {
  transition: opacity 0.25s ease;
}

body.home.nav-open .fd-sub {
  opacity: 0;
}

@media (min-width: 1024px) {
  .about .hero-clip {
    object-fit: contain;
  }
}

/* Menu: the full-screen panel (the "Full-screen menu" block above), which the bar's burger
   opens. It keeps clear of the logo at the top and of the bar at the foot, both of which
   stay over it. The inline links, Services, People, About and the Menu link that opens the
   same panel, are rendered in the bar's centre slot and displayed from 1024px only. */
.home .hm-menu {
  display: none;
}

.home.nav-open .fd-brand {
  z-index: 21;
}

.home .mn-inner {
  padding-top: calc(env(safe-area-inset-top, 0px) + 1.25rem + 30px + 2rem);
  padding-bottom: calc(var(--chrome-b) + 1rem);
}

.home .hm-item {
  font-family: var(--serif);
  font-weight: 490;
  font-size: 1.15rem;
  line-height: 1.15;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.005em;
  transition: color 0.2s;
}

.home .hm-item:hover {
  color: var(--light);
}

/* From 1024px the links sit inline in the bar's centre, with middots between them, in place
   of the burger, which is not displayed; Book stays on the right. */
@media (min-width: 1024px) {
  .home .bb-burger {
    display: none;
  }

  /* The bar's three columns stay put without the burger in the first. */
  .home .bb-centre {
    grid-column: 2;
  }

  .home .bb-book {
    grid-column: 3;
  }

  .home .hm-menu {
    display: flex;
    align-items: baseline;
    gap: 0.85rem;
  }

  .home .hm-item + .hm-item::before {
    content: "·";
    margin-right: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
  }
}

/* Not found page: a dark slot the height of the viewport. */

.not-found {
  min-height: 100svh;
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: var(--pad);
}

.not-found h1 {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
}

.not-found .note a:hover {
  color: #fff;
}

/* Film pages: the feed (/cases) and the home page. Each is a full-screen app, not a
   document, and renders no site header or footer. Under 1024px the stage is the whole
   screen: #app fills the dynamic viewport (the page's head sets viewport-fit=cover), so the
   film runs under the status bar and to the bottom edge. The logo and the bottom bar are
   layers over the film, not blocks beside it: the bar sits on a gradient over the bottom of
   the film and the logo under the light scrim over its top. Focus rings are white, as
   everything on the film is. The rules here are shared by the two pages; each page's own
   block follows (the feed's below, the home page's above). */

html:has(body.feed),
html:has(body.home) {
  height: 100%;
  overscroll-behavior: none;
}

body.feed,
body.home {
  height: 100%;
  overscroll-behavior: none;
}

.feed,
.home {
  /* The chrome at the foot of the stage: the bar plus the home indicator under it. What
     sits over the film keeps above it; the feed drops it to 0 from 1024px, where it has
     no bar. */
  --chrome-b: calc(var(--bar) + env(safe-area-inset-bottom, 0px));
  /* How far the bar's gradient fades up into the film above the bar. */
  --bar-fade: 5rem;
}

.feed #app,
.home #app {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100dvh;
  background: #000;
  color: #e8e6e1;
}

.feed :focus-visible,
.home :focus-visible {
  outline-color: #fff;
}

.feed .stage-area,
.home .stage-area {
  position: absolute;
  inset: 0;
}

/* The bar's gradient: clear at the top, darkening over the bottom of the film to a dark but
   not black foot under the bar, so the bar's text reads over any footage and the feed's
   subtitles sit just above it on a clear part of the film. It paints over the film and under the
   controls (z-index 1 against their 2) and the progress bar, and takes no taps. */
.feed .stage-area::after,
.home .stage-area::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--chrome-b) + var(--bar-fade));
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.22) 30%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0.72) 100%);
  pointer-events: none;
}

/* The bar lies over the foot of the stage on that gradient; its own background is clear. */
.feed .bottombar,
.home .bottombar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
}

/* Logo centred over the top of the film, below the status bar and under the top scrim,
   linking home. */
.feed .fd-brand,
.home .fd-brand {
  position: absolute;
  top: calc(1.25rem + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  filter: drop-shadow(0 1px 8px rgba(0, 0, 0, 0.5));
}

.feed .fd-brand img,
.home .fd-brand img {
  height: 30px;
  width: auto;
}

/* Top scrim: light at the top, where the status bar and the logo lie over the film, clear
   by a third of the way down. The feed draws one in every case, the home page one over
   its stage. */
.feed .fd-scrim,
.home .fd-scrim {
  position: absolute;
  inset: 0;
  bottom: auto;
  height: 32%;
  background: linear-gradient(180deg, rgba(8, 9, 11, 0.62) 0%, rgba(8, 9, 11, 0.3) 45%, rgba(8, 9, 11, 0) 100%);
}

/* Subtitles: the current cue of the chosen track, written by static/js/subtitles.js (the
   browser never draws the tracks themselves, so nothing of the VTT's own styling or placement
   gets through; only its italics and bold do). Centred over the film just above the bar's
   gradient, and kept clear of the feed's control stack by the side insets; on the About page
   it sits above the Availability link and the controls. White Archivo with a soft dark shadow on a
   faint translucent panel that hugs the text. The whole cue always shows, never cut: the
   panel is anchored at its bottom and grows upward by as many lines as the cue needs, keeping
   the line breaks written in the VTT (pre-line) and wrapping a line too long for it. Nothing
   draws outside the panel (overflow: hidden), and the panel has its own compositing layer
   (translateZ(0)) so its rounded, blurred edge renders without a seam in Safari. The script
   hides it between cues; the feed drops it in a few more states (its own block below). */
.feed .fd-sub,
.home .fd-sub {
  position: absolute;
  left: 4.25rem;
  right: 4.25rem;
  bottom: calc(var(--chrome-b) + var(--bar-fade) + 0.5rem);
  z-index: 2;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 0.3em 0.7em;
  border-radius: 10px;
  background: rgba(8, 9, 11, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--grot);
  font-size: clamp(0.95rem, 2.4vw + 0.45rem, 1.15rem);
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7), 0 0 14px rgba(0, 0, 0, 0.45);
  text-wrap: balance;
  overflow-wrap: anywhere;
  white-space: pre-line;
  overflow: hidden;
  transform: translateZ(0);
  pointer-events: none;
}

.feed .fd-sub i,
.home .fd-sub i {
  font-style: italic;
}

.feed .fd-sub b,
.home .fd-sub b {
  font-weight: 700;
}

/* Feed page (/cases).
   Every rule from here is scoped to body.feed, so nothing can reach the other pages. */

/* The bar: the Filter button sits at the left, beside the burger, with Book at the right. So
   on the feed the bar's three columns are the burger, the rest of the row and Book, and the
   bar's centre lays its content out from the left. The button is a frosted pill that carries
   the number of filters in force. */
.feed .bottombar {
  grid-template-columns: auto 1fr auto;
}

.feed .bb-centre {
  justify-content: flex-start;
  padding-left: 0.5rem;
}

.feed .ft-open {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(10, 11, 13, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  font-family: var(--grot);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.feed .ft-n {
  display: grid;
  place-items: center;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.3rem;
  margin-right: -0.35rem;
  border-radius: 999px;
  background: #fff;
  color: var(--black);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0;
}

@media (hover: hover) {
  .feed .ft-open:hover {
    border-color: rgba(255, 255, 255, 0.55);
  }
}

/* The feed: the stage box (#channels) and, inside it, the one section (.channel) that
   scrolls, a vertical y-snap list of the items, filling the box as its one flex item. The
   names are from when the feed was a row of channels. Nothing of that row's sideways scroll
   is left on either: the box neither scrolls nor clips (the section is exactly its size),
   and the only scrolling and snapping is the section's own, down the items. */

.feed #channels {
  position: absolute;
  inset: 0;
  display: flex;
}

.feed .channel {
  flex: 0 0 100%;
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}

.feed .channel::-webkit-scrollbar {
  display: none;
}

.feed .fd-item {
  height: 100%;
  position: relative;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  background: #0b0c0e;
}

.feed .fd-stage {
  position: absolute;
  inset: 0;
}

/* From 600px wide the stage becomes a centred 9:16 column. */
@media (min-width: 600px) {
  .feed .fd-stage {
    margin: auto;
    height: 100%;
    width: auto;
    aspect-ratio: 9 / 16;
    max-width: 100%;
  }
}

/* Side nav: previous and next case */

.feed .navs {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  display: grid;
  gap: 0.65rem;
  opacity: 0.55;
  transition: opacity 0.25s;
}

.feed .navs:hover {
  opacity: 1;
}

.feed .nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  cursor: pointer;
  background: rgba(10, 11, 13, 0.45);
  color: #e8e6e1;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.feed .nav-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.feed .nav-btn:active {
  transform: scale(0.94);
}

.feed .nav-btn[disabled] {
  opacity: 0.4;
  cursor: default;
  transform: none;
}

/* Rotate gate: shown only in landscape under 520px tall */

.feed .rotate-gate {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--black);
  display: none;
  place-items: center;
  align-content: center;
  justify-items: center;
  gap: 1rem;
  text-align: center;
}

.feed .rotate-gate img {
  opacity: 0.9;
}

.feed .rotate-gate .note {
  color: #9a9da3;
  letter-spacing: 0.14em;
}

@media (orientation: landscape) and (max-height: 520px) {
  .feed .rotate-gate {
    display: grid;
  }
}

/* Case: film, top scrim (the film-page rule above), the control stack, subtitles, progress
   bar, end card. No text is drawn over the film but the subtitles (the title is kept for
   screen readers only): only the side nav at the right edge, the controls in the
   bottom-right corner, the current cue above the bar and the 3px progress bar along the
   bottom. */

.feed .fd-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Controls: a stack of round buttons in the bottom-right corner of the stage, just above
   the bottom bar (which lies over the stage) and clear of the progress bar. Bottom to top:
   sound, play/pause, speed and, on a case with subtitles, CC. */
.feed .fd-ctl {
  position: absolute;
  right: 0.85rem;
  bottom: calc(var(--chrome-b) + 1rem);
  z-index: 2;
  display: grid;
  gap: 0.55rem;
}

.feed .fd-ctl button {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(10, 11, 13, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.feed .fd-ctl svg {
  grid-area: 1 / 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

/* Sound: the crossed speaker while muted, the speaker with waves on white while sound is
   on (feed.js sets .on and aria-pressed). */
.feed .fd-sound .ic-on,
.feed .fd-sound.on .ic-off {
  display: none;
}

.feed .fd-sound.on .ic-on {
  display: block;
}

/* The states fill white with a black glyph: sound on, subtitles on, a speed other than 1x
   (feed.js sets .set on the speed buttons), the press and hold at 2x, and the paused film. */
.feed .fd-sound.on,
.feed .fd-cc.on,
.feed .fd-speed.set,
.feed .fd-item.hold .fd-speed,
.feed .fd-item.paused .fd-pp {
  background: #fff;
  color: var(--black);
  border-color: #fff;
  text-shadow: none;
}

.feed .fd-sound.on svg,
.feed .fd-item.paused .fd-pp svg {
  filter: none;
}

/* Play/pause: the pause bars while the film plays, the play triangle while it is paused. */
.feed .fd-pp .ic-play,
.feed .fd-item.paused .fd-pp .ic-pause {
  display: none;
}

.feed .fd-item.paused .fd-pp .ic-play {
  display: block;
  margin-left: 2px;
}

/* The subtitle overlay is the film-page rule above, shared with the About page. Not shown
   while the poster is up (item.tap), while the end card is up (item.ended), or, once autoplay
   was refused (body.lpm, Low Power Mode), while the film is paused. */
.feed .fd-item.tap .fd-sub,
.feed .fd-item.ended .fd-sub,
body.lpm .fd-item.paused .fd-sub {
  display: none;
}

/* Subtitle picker (a film with more than one language: Off, English, Español): a small panel
   with Off and then each language, each entry at least 44px tall; the page's script opens
   it from the CC button and marks the chosen entry (aria-pressed), which carries a dot. On
   the feed it sits to the left of the CC button, level with it (feed.js); on /about, whose
   controls are a row, above the CC button (templates/about.html, the rule after this
   block). */
.feed .fd-cc-menu,
.about .fd-cc-menu {
  position: absolute;
  z-index: 3;
  display: grid;
  padding: 0.3rem;
  border-radius: 12px;
  background: rgba(10, 11, 13, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.feed .fd-cc-menu[hidden],
.about .fd-cc-menu[hidden] {
  display: none;
}

.feed .fd-cc-menu {
  right: calc(0.85rem + 40px + 0.6rem);
  bottom: calc(var(--chrome-b) + 1rem + 3 * (40px + 0.55rem));
}

.feed .cc-item,
.about .hm-ctl .cc-item {
  display: block;
  width: auto;
  height: auto;
  min-height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 230, 225, 0.72);
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
}

.feed .cc-item:hover,
.about .hm-ctl .cc-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.feed .cc-item[aria-pressed="true"],
.about .hm-ctl .cc-item[aria-pressed="true"] {
  color: #fff;
}

.feed .cc-item[aria-pressed="true"]::before,
.about .hm-ctl .cc-item[aria-pressed="true"]::before {
  content: "\2022";
  margin-right: 0.5rem;
}

/* /about: the CC button and its picker share a box in the row of controls, and the picker
   opens above the button, its right edge on the button's. */
.about .hm-cc {
  position: relative;
  display: grid;
}

.about .hm-cc .fd-cc-menu {
  right: 0;
  bottom: calc(100% + 0.6rem);
  /* It opens over the subtitle, so it is near-opaque: the cue must not show through it. */
  background: rgba(10, 11, 13, 0.95);
}

/* The controls lie over the subtitle overlay, so the open picker, which reaches up into the
   overlay's place, is drawn over the cue and not under it. */
.about .hm-ui {
  z-index: 3;
}

/* A press and hold on the film must not open the system callout or select anything. */
.feed .fd-stage {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* End card: shown over the stage for four seconds when the film ends (item.ended). A white
   Book button and a white Share button the same size sit side by side, centred over a dimmed
   last frame, Book with a thin white ring that runs down over the four seconds; then feed.js
   moves on to the next case. While a share is under way (item.held) the ring holds still. */
.feed .fd-end {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  grid-auto-flow: column;
  place-content: center;
  align-items: center;
  gap: 2rem;
  background: rgba(8, 9, 11, 0.45);
  cursor: default;
}

.feed .fd-end[hidden] {
  display: none;
}

.feed .fd-book,
.feed .fd-share {
  position: relative;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #fff;
  color: var(--black);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.3);
}

.feed .fd-book:hover,
.feed .fd-share:hover {
  background: #e8e6e1;
}

/* Share: a button, so the link's look is restated; the icon over the label, which wraps to
   two lines for "Link copied", when the icon steps aside. */
.feed .fd-share {
  align-content: center;
  gap: 0.3rem;
  padding: 0;
  border: 0;
  cursor: pointer;
}

.feed .fd-share span {
  max-width: 4.6rem;
  text-align: center;
  line-height: 1.2;
}

.feed .fd-share.copied svg {
  display: none;
}

.feed .fd-ring {
  position: absolute;
  inset: -10px;
  width: 112px;
  height: 112px;
  transform: rotate(-90deg);
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
}

.feed .fd-item.ended .fd-ring {
  animation: ring 4s linear forwards;
}

.feed .fd-item.ended.held .fd-ring {
  animation-play-state: paused;
}

@keyframes ring {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: 100; }
}

/* Play control: a white disc centred over the poster, shown while the case is tap-to-play
   (item.tap): autoplay refused (Low Power Mode, or a browser that blocks it), or always
   under reduced motion. A tap on it, or anywhere on the film, plays the film muted. */
.feed .fd-play {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: #101114;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.feed .fd-item.tap .fd-play {
  display: grid;
}

.feed .fd-play svg {
  margin-left: 3px;
}

/* Nothing plays while the control is up or the film is paused, so the progress bar waits too. */
.feed .fd-item.tap .pl-progress b,
.feed .fd-item.paused .pl-progress b {
  animation-play-state: paused;
}

/* The progress bar runs along the top edge of the bottom bar, the bottom of the film in view.
   It is also the scrub control: a slider (feed.js keeps its aria values and its tab stop) whose
   hit area, the ::before, is 32px tall centred on the 3px line. touch-action: none, so a touch
   that starts on it scrubs and never scrolls the cases. It sits above the
   bottom bar (z-index 30), whose top strip the lower half of the hit area overlaps; while the
   sheet is open it fades out and takes no taps (the last block in this file). */
.feed .pl-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--chrome-b);
  height: 3px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 -1px 6px rgba(0, 0, 0, 0.45);
  z-index: 31;
  touch-action: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  outline-offset: 6px;
  transition: height 0.12s ease, opacity 0.2s ease;
}

.feed .pl-progress::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 32px;
  transform: translateY(-50%);
}

/* While scrubbing (feed.js sets .scrubbing while the pointer is down) the line is 6px, a round
   thumb marks the position (--pos, the film's position as a fraction, from feed.js) and the
   readout above it gives the time and the length as m:ss / m:ss. */
.feed .pl-progress.scrubbing {
  height: 6px;
}

.feed .pl-thumb {
  position: absolute;
  top: 50%;
  left: calc(var(--pos, 0) * 100%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.12s ease;
  pointer-events: none;
}

.feed .pl-progress.scrubbing .pl-thumb {
  transform: translate(-50%, -50%) scale(1);
}

.feed .pl-time {
  position: absolute;
  bottom: calc(100% + 1rem);
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(10, 11, 13, 0.7);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.12s ease;
  pointer-events: none;
}

.feed .pl-progress.scrubbing .pl-time {
  opacity: 1;
}

.feed .pl-progress b {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
  /* feed.js sets the duration to the film's length over its speed and a negative delay to
     the film's position, so the bar follows the film at any speed. */
  animation: prog 12.8s linear forwards;
}

@keyframes prog {
  from { width: 0; }
  to { width: 100%; }
}

/* Tags (templates/cases.html and the second half of feed.js): the filter sheet under 1024px,
   the same groups in the desktop column from 1024px (the "Desktop feed" block below), and
   the closing card of a filtered feed. */

/* The tag groups, in the filter sheet and in the desktop column: each a small mono label over
   its chips. The chips are the menu sheet's pills (.sh-chip): the chosen ones fill white
   (aria-pressed), and a chip that would add nothing to the feed is greyed and takes no tap
   (aria-disabled, which feed.js sets). */
.feed .ft-groups {
  display: grid;
  gap: 1.15rem;
}

.feed .ft-label {
  margin-bottom: 0.6rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  color: rgba(232, 230, 225, 0.6);
}

.feed .ft-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feed .ft-chip[aria-disabled="true"],
.feed .ft-chip[aria-disabled="true"]:hover {
  background: none;
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(232, 230, 225, 0.3);
  cursor: default;
}

/* The filter sheet: the menu sheet's look (.sh), as tall as its content needs and no taller
   than the stage under the logo. Only where a small screen cannot hold the groups do they
   scroll (feed.js sets .scrolls when the sheet does not fit); otherwise they are not a
   scroll container, so a pull that starts on the chips still takes the sheet down. At its
   foot, the confirm button with the live count, a white pill across the sheet. At its top
   right, level with the first group's label, Clear all while any chip is chosen: it is laid
   over the corner, not in the flow, so the sheet does not jump as it comes and goes. */
.feed .ft-sheet {
  top: auto;
  max-height: calc(100% - 5.5rem - env(safe-area-inset-top, 0px));
  gap: 1.4rem;
}

.feed .ft-sheet .ft-groups.scrolls {
  min-height: 0;
  overflow-y: auto;
  touch-action: pan-y;
  scrollbar-width: none;
}

.feed .ft-foot {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.feed .ft-apply {
  flex: 1;
  min-height: 48px;
  padding: 0 1.2rem;
  border: 1.5px solid #fff;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--grot);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  background: #fff;
  color: var(--black);
  transition: background-color 0.15s, border-color 0.15s;
}

.feed .ft-apply:active {
  background: #e8e6e1;
  border-color: #e8e6e1;
}

.feed .ft-reset,
.feed .ft-clear {
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.feed .ft-reset {
  position: absolute;
  top: 0.8rem;
  right: calc(var(--pad) + env(safe-area-inset-right, 0px) - 0.6rem);
  z-index: 1;
  min-height: 44px;
  padding: 0 0.6rem;
}

/* The closing card: the last item of a filtered feed, a dark slot the size of the stage with
   the line naming the filters in the serif and, under it, Clear filters and Book as the end
   card's two white discs. It is one more stop in the feed, so it arrives as a case does. */
.feed .ft-last-in {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 2.2rem;
  padding: 5rem 2rem calc(var(--chrome-b) + 2rem);
  text-align: center;
}

.feed .ft-last-line {
  max-width: 17ch;
  font-size: clamp(1.7rem, 7.4vw, 2.2rem);
  text-wrap: balance;
  color: #fff;
}

.feed .ft-last-btns {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.feed .ft-last-clear,
.feed .ft-last-book {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--black);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.3);
}

.feed .ft-last-clear:hover,
.feed .ft-last-book:hover {
  background: #e8e6e1;
}

/* The filter sheet's dimmed layer is the menu sheet's (.sh-dim). While the filter sheet is
   open the bar's centre fades back as it does under the menu sheet (the feed's last block),
   and the burger is the cross that closes it. */

/* Debug readout (feed.js builds it, only with ?debug=1 in the URL): each film's loading and
   playing state as text, top-left under the logo, for reading off a phone's screen. Cyan as
   the ruler is, over everything, taking no taps; long lines wrap inside the stage. */

.feed .dbg {
  position: absolute;
  left: 0.6rem;
  top: calc(env(safe-area-inset-top, 0px) + 4rem);
  z-index: 80;
  max-width: calc(100% - 1.2rem);
  margin: 0;
  padding: 0.4rem 0.55rem;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.45;
  color: #28e0ff;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(40, 224, 255, 0.6);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  pointer-events: none;
}

/* Measurement mode (feed.js builds it, only with ?ruler=1 in the URL): a readout top-left of
   the stage's size, aspect ratio and how much of a 9:16 film shows at object-fit cover, and
   labelled lines at the top of the bar's gradient, the bottom of the top scrim and the left
   edge of the control stack. Cyan, over everything, taking no taps. */

.feed .ruler {
  position: absolute;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  color: #28e0ff;
}

.feed .ruler-out {
  position: absolute;
  left: 0.6rem;
  /* Below the logo, which sits 1.25rem under the status bar and is 30px tall. */
  top: calc(env(safe-area-inset-top, 0px) + 4rem);
  margin: 0;
  padding: 0.4rem 0.55rem;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(40, 224, 255, 0.6);
  white-space: pre;
}

.feed .ruler-line {
  position: absolute;
  background: #28e0ff;
}

.feed .ruler-h {
  left: 0;
  right: 0;
  height: 1px;
}

.feed .ruler-v {
  top: 0;
  bottom: 0;
  width: 1px;
}

.feed .ruler-line::after {
  content: attr(data-name) " " attr(data-pos);
  position: absolute;
  padding: 0 0.3rem;
  background: rgba(0, 0, 0, 0.72);
  white-space: nowrap;
}

.feed .ruler-h::after {
  left: 0.6rem;
  bottom: 2px;
}

.feed .ruler-v::after {
  right: 3px;
  top: 40%;
}

/* Reads the safe-area insets for the readout. */
.feed .ruler-probe {
  position: absolute;
  visibility: hidden;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Desktop feed (1024px and up): a left column and the stage area, on black.
   The left column holds the logo, the filters ("Filter", the tag groups as always-visible
   chips, then the count and, while any filter is on, Clear), the list of the items in the
   feed and Book. The stage is the feed's box itself, sized to 9:16 and no taller than 90vh,
   centred in the remaining space, so every overlay inside it stays where it is. The centred
   logo, the bottom bar, the two sheets and the rotate gate are never displayed at these
   widths: the column's own chips show what is on. */

.feed .side {
  display: none;
}

@media (min-width: 1024px) {
  .feed {
    --chrome-b: 0px;
  }

  .feed #app {
    --side-w: 320px;
    display: grid;
    grid-template-columns: var(--side-w) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
  }

  .feed .fd-brand,
  .feed .bottombar,
  .feed .sh,
  .feed .sh-dim,
  .feed .rotate-gate {
    display: none;
  }

  /* Left column */

  .feed .side {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    min-height: 0;
    padding: 1.6rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    overflow-y: auto;
    scrollbar-width: thin;
  }

  .feed .sd-home {
    align-self: flex-start;
    padding: 0.2rem 0;
  }

  .feed .sd-home img {
    height: 26px;
    width: auto;
  }

  .feed .sd-filter {
    display: grid;
    gap: 1.1rem;
  }

  .feed .ft-title {
    font-family: var(--serif);
    font-variation-settings: "opsz" 100;
    font-weight: 480;
    font-size: 1.45rem;
    line-height: 1.15;
    letter-spacing: -0.005em;
    color: #fff;
  }

  .feed .side .ft-chips {
    gap: 0.4rem;
  }

  .feed .side .ft-chip {
    padding: 0.5rem 0.8rem;
    font-size: 0.6rem;
    letter-spacing: 0.08em;
  }

  .feed .sd-tally {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-height: 1.6rem;
  }

  .feed .side .ft-count {
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1;
    color: #9a9da3;
  }

  .feed .side .ft-clear {
    padding: 0.4rem 0;
    font-size: 0.62rem;
  }

  .feed .case-list {
    list-style: none;
    display: grid;
    gap: 0.15rem;
  }

  .feed .cl-item {
    display: grid;
    gap: 0.2rem;
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    cursor: pointer;
    color: inherit;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
  }

  .feed .cl-item:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  .feed .cl-item.on {
    background: rgba(255, 255, 255, 0.08);
  }

  .feed .cl-code {
    font-family: var(--mono);
    font-size: 0.58rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #9a9da3;
  }

  .feed .cl-item.on .cl-code {
    color: #fff;
  }

  .feed .cl-title {
    font-family: var(--grot);
    font-size: 0.86rem;
    line-height: 1.35;
    color: rgba(232, 230, 225, 0.75);
  }

  .feed .cl-item.on .cl-title {
    color: #fff;
  }

  .feed .sd-book {
    margin-top: auto;
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    background: none;
    border: 1.5px solid #fff;
    color: #fff;
    border-radius: 999px;
    padding: 0.85rem 1.4rem;
    transition: background-color 0.15s, color 0.15s;
  }

  .feed .sd-book:hover,
  .feed .sd-book:active {
    background: #fff;
    color: var(--black);
  }

  /* The closing card needs no room for the logo here. */
  .feed .ft-last-in {
    padding-top: 2rem;
  }

  /* Stage area: the feed's box becomes a 9:16 box, no taller than 90vh and never wider than
     the area less room for the side nav, centred; the side nav sits just outside its right edge. */

  .feed .stage-area {
    --stage-w: min(calc(90vh * 9 / 16), calc(100% - 9rem));
    position: relative;
    inset: auto;
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
  }

  .feed .stage-area::after {
    display: none;
  }

  .feed #channels {
    position: relative;
    inset: auto;
    width: var(--stage-w);
    height: auto;
    aspect-ratio: 9 / 16;
  }

  .feed .fd-stage {
    width: 100%;
    aspect-ratio: auto;
  }

  .feed .navs {
    position: absolute;
    right: auto;
    left: calc(50% + var(--stage-w) / 2 + 1rem);
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.75;
  }
}

/* From 1440px the column is 360px and the whole feed is capped at 1440px wide, centred on black. */
@media (min-width: 1440px) {
  body.feed {
    background: #000;
  }

  .feed #app {
    --side-w: 360px;
    max-width: 1440px;
    margin-inline: auto;
  }
}


/* How-to (templates/partials/howto.html, run by feed.js): the full-screen pop-up of a first
   visit to the feed, and of the menu sheet's "How to use the feed" link. It lies over the
   whole feed, bar and logo included, under the rotate gate alone. The shade is an SVG the
   size of the screen whose path feed.js writes with a hole round each control the callouts
   point at, so the real Filter, CC and sound buttons show through undimmed, each in a white
   ring. In the middle, kept to the stage's column and above the callouts by the variables
   feed.js sets (--ht-l, --ht-r, --ht-t, --ht-b): the title in the mono, the demonstration
   (a phone with a finger swiping up and the next case rising under it; where the pointer is
   a mouse, a mouse with its wheel turning and the two arrow keys), its line in the serif,
   and the white button. The callouts are placed by feed.js beside their controls, each with
   a hairline leading to its ring.

   It appears in order: the demonstration and its line, then the callouts one after another
   with their rings, then the button. White on black, like everything over the film; no
   accent colour. Under reduced motion every animation is off (the rule at the top of this
   file), so it is all there at once and nothing moves; the finger rests part-way up with
   its arrow. */
.feed .ht {
  position: absolute;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  padding: calc(var(--ht-t, 0px) + env(safe-area-inset-top, 0px) + 4.75rem) calc(var(--ht-r, 0px) + 1.5rem) calc(var(--ht-b, 0px) + 1rem) calc(var(--ht-l, 0px) + 1.5rem);
  color: #fff;
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.feed .ht[hidden] {
  display: none;
}

.feed .ht.is-open {
  opacity: 1;
}

.feed .ht-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.feed .ht-dim {
  fill: rgba(6, 7, 9, 0.86);
}

.feed .ht-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 1.5;
}

.feed .ht-title {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.2;
  color: rgba(232, 230, 225, 0.72);
}

/* The demonstration. Its height gives way first on a short screen. */
.feed .ht-demo {
  position: relative;
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  min-height: 0;
}

.feed .ht-touch {
  position: relative;
  display: block;
  padding: 0 34px;
}

.feed .ht-phone {
  position: relative;
  display: block;
  width: 78px;
  height: clamp(84px, 17vh, 140px);
  border: 2px solid #fff;
  border-radius: 16px;
  overflow: hidden;
}

/* The two cases in the phone: the one in view, and the next one, rising under the finger. */
.feed .ht-card {
  position: absolute;
  inset: 5px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
}

.feed .ht-card + .ht-card {
  transform: translateY(calc(100% + 10px));
}

.feed .ht-finger {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.22);
}

/* The way the finger goes: a small arrow above it, which shows the direction where nothing moves. */
.feed .ht-finger::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -22px;
  width: 9px;
  height: 9px;
  margin-left: -5px;
  border-left: 2px solid #fff;
  border-top: 2px solid #fff;
  transform: rotate(45deg);
  opacity: 0.85;
}

.feed .ht.is-open .ht-finger {
  animation: ht-finger 2.4s ease-in-out infinite;
}

.feed .ht.is-open .ht-card {
  animation: ht-card 2.4s ease-in-out infinite;
}

.feed .ht.is-open .ht-card + .ht-card {
  animation-name: ht-card-next;
}

@keyframes ht-finger {
  0%, 12% { transform: translateY(26px); opacity: 0; }
  22% { transform: translateY(26px); opacity: 1; }
  58% { transform: translateY(-26px); opacity: 1; }
  70%, 100% { transform: translateY(-26px); opacity: 0; }
}

@keyframes ht-card {
  0%, 22% { transform: none; }
  58%, 100% { transform: translateY(calc(-100% - 10px)); }
}

@keyframes ht-card-next {
  0%, 22% { transform: translateY(calc(100% + 10px)); }
  58%, 100% { transform: none; }
}

/* Where the pointer is a mouse: a mouse with its wheel, and the up and down arrow keys. */
.feed .ht-mouse {
  position: relative;
  width: 34px;
  height: 54px;
  border: 2px solid #fff;
  border-radius: 17px;
}

.feed .ht-wheel {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 4px;
  height: 10px;
  margin-left: -2px;
  border-radius: 2px;
  background: #fff;
}

.feed .ht.is-open .ht-wheel {
  animation: ht-wheel 1.8s ease-in-out infinite;
}

@keyframes ht-wheel {
  0%, 20% { transform: none; opacity: 1; }
  70%, 100% { transform: translateY(12px); opacity: 0; }
}

.feed .ht-keys {
  display: grid;
  gap: 6px;
}

.feed .ht-key {
  display: grid;
  place-items: center;
  width: 34px;
  height: 30px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 7px;
}

.feed .ht-key svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feed .ht.is-open .ht-key-down {
  animation: ht-key 1.8s ease-in-out infinite;
}

@keyframes ht-key {
  0%, 30%, 60%, 100% { background: transparent; }
  40%, 50% { background: rgba(255, 255, 255, 0.3); }
}

/* One demonstration and one line: the phone and "Swipe up" for a finger, the mouse, the keys
   and "Scroll or use the arrow keys" for a mouse. The other is not displayed, so it is not
   read out either. */
.feed .ht-mouse,
.feed .ht-keys,
.feed .ht-for-mouse {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .feed .ht-touch,
  .feed .ht-for-touch {
    display: none;
  }

  .feed .ht-mouse {
    display: block;
  }

  .feed .ht-keys {
    display: grid;
  }

  .feed .ht-for-mouse {
    display: inline;
  }
}

.feed .ht-swipe {
  margin: 0;
  max-width: 15rem;
  font-family: var(--serif);
  font-variation-settings: "opsz" 100;
  font-weight: 440;
  font-size: clamp(1.35rem, 5.6vw, 1.7rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.feed .ht-ok {
  flex: none;
  min-height: 48px;
  padding: 0 2.2rem;
  border: 1.5px solid #fff;
  border-radius: 999px;
  background: #fff;
  color: var(--black);
  cursor: pointer;
  font-family: var(--grot);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
}

.feed .ht-ok:active {
  background: #e8e6e1;
  border-color: #e8e6e1;
}

.feed .ht-ok:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

/* A callout: a short line of text beside its control (feed.js sets where, and data-side),
   with a hairline from it to the control's ring. To the left of a control its text is
   ranged right, and its line runs right; to the right, the mirror of that; above a control
   it is ranged left and its line drops to the ring from over the control's middle. */
.feed .ht-tip {
  position: absolute;
  margin: 0;
  max-width: 11.5rem;
  font-family: var(--grot);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
  text-wrap: balance;
}

.feed .ht-tip[hidden] {
  display: none;
}

.feed .ht-tip::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.7);
}

.feed .ht-tip[data-side="left"] {
  translate: 0 -50%;
  text-align: right;
}

.feed .ht-tip[data-side="left"]::after {
  left: calc(100% + 8px);
  top: 50%;
  width: 22px;
  height: 1px;
}

.feed .ht-tip[data-side="right"] {
  translate: 0 -50%;
  text-align: left;
}

.feed .ht-tip[data-side="right"]::after {
  right: calc(100% + 8px);
  top: 50%;
  width: 22px;
  height: 1px;
}

/* Narrow, so that it stands as a short column clear of the callout beside it. */
.feed .ht-tip[data-side="up"] {
  max-width: 8rem;
  text-align: left;
}

.feed .ht-tip[data-side="up"]::after {
  left: var(--ht-tip-x, 1.5rem);
  top: calc(100% + 8px);
  width: 1px;
  height: 22px;
}

/* The order it appears in: the title, the demonstration and its line; then each callout with
   its ring; then the button. */
@keyframes ht-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@keyframes ht-show {
  from { opacity: 0; }
  to { opacity: 1; }
}

.feed .ht.is-open .ht-title,
.feed .ht.is-open .ht-demo,
.feed .ht.is-open .ht-swipe {
  animation: ht-in 0.4s ease 0.1s both;
}

.feed .ht.is-open .ht-tip,
.feed .ht.is-open .ht-ring {
  animation: ht-show 0.4s ease both;
}

.feed .ht.is-open [data-at="filter"] { animation-delay: 0.9s; }
.feed .ht.is-open [data-at="cc"] { animation-delay: 1.3s; }
.feed .ht.is-open [data-at="sound"] { animation-delay: 1.7s; }

.feed .ht.is-open .ht-ok {
  animation: ht-in 0.4s ease 2.1s both;
}

@media (prefers-reduced-motion: reduce) {
  .feed .ht {
    transition: none;
  }
}

/* While it is up no film plays (feed.js sets body.how-open), so the progress bar waits too. */
.feed.how-open .pl-progress b {
  animation-play-state: paused;
}

/* The feed's sheets: the menu sheet (the "Bottom sheet" block above), which the bar's burger
   opens, and the filter sheet, which the Filter button opens. While either is open
   (body.nav-open, which sheet.js and feed.js set and the bar's own rule folds the burger on)
   the control stack, the subtitle overlay, the progress bar and the side nav fade out from
   under the dimmed film, and the Filter button in the bar fades back and takes no taps.
   These rules come after all the feed's own so they hold over every state those give the
   layers; only the About page's chapters follow. From 1024px there is no bar and no sheet
   (the "Desktop feed" block above). */
.feed .fd-ctl,
.feed .fd-sub,
.feed .bb-centre {
  transition: opacity 0.2s ease;
}

.feed.nav-open .fd-ctl,
.feed.nav-open .fd-sub,
.feed.nav-open .pl-progress,
.feed.nav-open .navs {
  opacity: 0;
  pointer-events: none;
}

.feed.nav-open .bb-centre {
  opacity: 0.5;
  pointer-events: none;
}


/* About page: the chapters (/about, templates/about-chapters.html, body.chapters and
   body.chlist as well as body.home and body.about): the shared About template's page with
   the long film's chapters. These rules come last in the file, after the home page's, the
   About template's and the feed's, which they build on. The first part (body.chapters): the
   still a jump shows until the film plays again, filling the stage as the clips do (whole
   from 1024px, as the About clips are); and the feed's progress bar along the top of the
   bar (the feed's own rules, scoped to the feed, are restated here for body.chapters), with
   thin markers at the chapter starts while the long film is on show and, while scrubbing,
   the chapter's number and title under the time. The second part, body.chlist, is the split
   and the chapter list. */

.chapters .ch-still {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .chapters .ch-still {
    object-fit: contain;
  }
}

/* The progress bar, as the feed's: the 3px line along the top of the bar with a 32px hit
   area, 6px with the thumb and the readout while scrubbing, the markers at the chapter
   starts while the long film is on show. */
.chapters .pl-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--chrome-b);
  height: 3px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 -1px 6px rgba(0, 0, 0, 0.45);
  z-index: 31;
  touch-action: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  outline-offset: 6px;
  transition: height 0.12s ease, opacity 0.2s ease;
}

.chapters .pl-progress::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 32px;
  transform: translateY(-50%);
}

.chapters .pl-progress.scrubbing {
  height: 6px;
}

.chapters .pl-progress b {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
  animation: prog 12.8s linear forwards;
}

.chapters .pl-marks {
  display: none;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.chapters .pl-progress.on-film .pl-marks {
  display: block;
}

.chapters .pl-marks i {
  position: absolute;
  top: 50%;
  width: 1px;
  height: 9px;
  margin-left: -0.5px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
  transform: translateY(-50%);
}

.chapters .pl-marks i:first-child {
  display: none;
}

.chapters .pl-thumb {
  position: absolute;
  top: 50%;
  left: calc(var(--pos, 0) * 100%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.12s ease;
  pointer-events: none;
}

.chapters .pl-progress.scrubbing .pl-thumb {
  transform: translate(-50%, -50%) scale(1);
}

.chapters .pl-time {
  position: absolute;
  bottom: calc(100% + 1rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.3rem 0.65rem;
  border-radius: 12px;
  background: rgba(10, 11, 13, 0.7);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.12s ease;
  pointer-events: none;
}

.chapters .pl-progress.scrubbing .pl-time {
  opacity: 1;
}

.chapters .pl-chap {
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
}

.chapters .pl-chap[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .chapters .pl-progress,
  .chapters .pl-thumb,
  .chapters .pl-time {
    transition: none;
  }
}

/* The split and the chapter list (body.chlist). The list is one
   layer over the foot of the stage, on black. Under 1024px, during the opener, its top edge
   peeks above the bar as a 48px strip (--peek), the button with the drag handle and
   "10 chapters", and the Availability link, the controls, the subtitles and the progress bar sit
   that much higher over the film; three seconds in, the strip lifts 8px and settles once
   (.cl-nudge). While the list is open (body.split: the long film on show, or the visitor
   opened it early during the opener, body.early) the stage eases over 350ms up into the top
   half of the screen, the film cropped to fill it at the film's crop_y (--crop-y, set in the
   page's head from data/about.json), and the list's top rises with the stage's foot to fill
   the lower half: the strip folds to its handle while the list is open early and away on
   the film, the head and the rows show. Over the film the progress bar runs along the
   stage's foot, CC, the speaker and play/pause sit at its bottom-right just above the bar,
   the subtitles centred above them, on a shorter gradient; the bar turns black at the foot
   of the screen. The list is padded at the foot so its last row clears the bar. From 1024px
   there is no strip: the stage and the frame stay as they are, the list is a column to the
   right of the portrait frame from the start, dimmed to 40% during the opener, and the
   overlay on the film keeps to the frame. Under reduced motion nothing eases or lifts (the
   base rule). The stage clips what it holds (the grain reaches past it). */

.chlist {
  --cl-ease: 0.35s ease;
  --peek: 48px;
  --cl-vh: 100vh;
  /* The frame's half width from 1024px, where the portrait film shows whole at full height. */
  --cl-half: min(50%, calc(var(--cl-vh) * 9 / 32));
}

@supports (height: 100dvh) {
  .chlist {
    --cl-vh: 100dvh;
  }
}

.chlist .stage-area {
  overflow: hidden;
  transition: bottom var(--cl-ease);
}

.chlist .stage-area::after {
  height: calc(var(--chrome-b) + var(--peek) + var(--bar-fade));
  transition: height var(--cl-ease);
}

.chlist .hero-clip,
.chlist .ch-still {
  transition: object-position var(--cl-ease);
}

/* Over the film during the opener: above the strip. */
.chlist .hm-ui {
  bottom: calc(var(--chrome-b) + var(--peek) + 1rem);
  transition: opacity 0.25s ease, bottom var(--cl-ease), left var(--cl-ease), right var(--cl-ease);
}

.chlist .fd-sub {
  bottom: calc(var(--chrome-b) + var(--peek) + var(--bar-fade) + 0.5rem);
  transition: opacity 0.25s ease, bottom var(--cl-ease), left var(--cl-ease), right var(--cl-ease);
}

.chlist .pl-progress {
  bottom: calc(var(--chrome-b) + var(--peek));
  transition: height 0.12s ease, opacity 0.2s ease, bottom var(--cl-ease), left var(--cl-ease), right var(--cl-ease);
}

.chlist .bottombar {
  transition: background-color var(--cl-ease);
}

/* The control stack alone over the film once the Availability link has gone to the list. */
.chlist.split .hm-ui {
  justify-content: flex-end;
}

/* The list: the strip, the head with the Availability link, then the rows, on black, scrolling
   on its own when the rows outrun it. */
.chlist .cl {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - var(--chrome-b) - var(--peek));
  bottom: 0;
  z-index: 5;
  overflow: hidden;
  overscroll-behavior: contain;
  padding: 0 calc(var(--pad) + env(safe-area-inset-right, 0px)) calc(var(--chrome-b) + 0.5rem) calc(var(--pad) + env(safe-area-inset-left, 0px));
  scroll-padding-top: 0.85rem;
  background: #000;
  color: #fff;
  transition: top var(--cl-ease), opacity 0.25s ease;
}

.chlist.split .cl {
  overflow-y: auto;
}

/* The full-screen menu opens over the list; the list fades from under it, as the controls
   do, and so does the progress bar, which lies above the bar and so above the panel. */
body.chlist.nav-open .cl,
body.chapters.nav-open .pl-progress {
  opacity: 0;
  pointer-events: none;
}

/* The strip: the handle and "10 chapters" with an up-chevron, the whole strip a button. It
   takes the pointer for its own swipe. */
.chlist .cl-peek {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  width: 100%;
  height: var(--peek);
  padding: 0.5rem 0 0;
  border: 0;
  background: none;
  color: rgba(232, 230, 225, 0.85);
  font: inherit;
  cursor: pointer;
  overflow: hidden;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  transition: height var(--cl-ease), visibility 0s;
}

.chlist .cl-peek:focus-visible {
  outline-offset: -2px;
}

.chlist .cl-handle {
  flex: none;
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
}

.chlist .cl-peek-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.chlist .cl-peek-line svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Open early: the strip folds to its handle at the top of the list. */
.chlist.split.early .cl-peek {
  height: 1.4rem;
}

.chlist.split .cl-peek-line {
  opacity: 0;
}

/* Open on the film: the strip folds away. */
.chlist.split:not(.early) .cl-peek {
  height: 0;
  padding: 0;
  visibility: hidden;
  transition: height var(--cl-ease), padding var(--cl-ease), visibility 0s linear 0.35s;
}

/* The lift three seconds into the opener. */
@keyframes cl-nudge {
  40% {
    top: calc(100% - var(--chrome-b) - var(--peek) - 8px);
  }
}

.chlist .cl.cl-nudge {
  animation: cl-nudge 0.7s ease;
}

/* The Availability link as the list's first line: small and greyer, 32px tall where the
   list's rows begin just under it. */
.chlist .cl-head {
  min-height: 2rem;
  padding-top: 0.35rem;
  margin-bottom: 0;
  box-sizing: content-box;
}

.chlist .cl .hm-avail {
  gap: 0.4rem;
  min-height: 2rem;
  font-size: 0.78rem;
  color: rgba(232, 230, 225, 0.75);
  text-shadow: none;
}

.chlist .cl .hm-avail .avail-arrow {
  filter: none;
}

.chlist .cl-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* A row: the number and the start time in the mono either side of the title in the serif,
   at least 44px tall, on hairlines; the current one white and bold, the rest grey. */
.chlist .cl-row {
  display: grid;
  grid-template-columns: 2.2rem 1fr auto;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 44px;
  padding: 0.45rem 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: none;
  color: var(--grey);
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.chlist .cl-list li:first-child .cl-row {
  border-top: 0;
}

.chlist .cl-n,
.chlist .cl-at {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.chlist .cl-t {
  font-family: var(--serif);
  font-variation-settings: "opsz" 100;
  font-weight: 440;
  font-size: clamp(1.05rem, 4.2vw, 1.25rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

@media (hover: hover) {
  .chlist .cl-row:hover {
    color: #e8e6e1;
  }
}

.chlist .cl-row.on {
  color: #fff;
}

.chlist .cl-row.on .cl-t {
  font-weight: 700;
}

.chlist .cl-row:focus-visible {
  outline-offset: -2px;
}

/* Under 1024px: the folded list shows only its strip; the head and the rows wait (out of
   the tab order) until it opens, and stay while it folds back. Open, the split. */
@media (max-width: 1023.98px) {
  .chlist:not(.split) .cl-head,
  .chlist:not(.split) .cl-list {
    visibility: hidden;
    transition: visibility 0s linear 0.35s;
  }

  .chlist.split .cl {
    top: 50%;
  }

  .chlist.split .stage-area {
    bottom: 50%;
  }

  /* The bar's gradient, shorter, at the foot of the film for the controls and subtitles. */
  .chlist.split .stage-area::after {
    height: 9rem;
  }

  .chlist.split .hero-clip,
  .chlist.split .ch-still {
    object-position: 50% var(--crop-y, 50%);
  }

  .chlist.split .hm-ui {
    bottom: 0.75rem;
  }

  .chlist.split .pl-progress {
    bottom: 0;
  }

  /* The bar's hit area runs up from its line, clear of the strip and the list below it. */
  .chlist .pl-progress::before {
    top: auto;
    bottom: 0;
    height: 24px;
    transform: none;
  }

  /* Above the control stack: the play/pause disc is 54px. */
  .chlist.split .fd-sub {
    bottom: calc(0.75rem + 54px + 0.6rem);
  }

  .chlist.split .bottombar {
    background: #000;
  }
}

/* From 1024px: no strip. The frame stays whole and centred; the list is a column on its
   right from the logo's line to the bar, there from the start, dimmed during the opener;
   the overlay on the film keeps to the frame. */
@media (min-width: 1024px) {
  .chlist {
    --peek: 0px;
  }

  .chlist .cl-peek {
    display: none;
  }

  .chlist .cl {
    top: calc(1.25rem + env(safe-area-inset-top, 0px));
    bottom: var(--chrome-b);
    left: calc(50% + var(--cl-half) + 2.5rem);
    right: auto;
    width: min(24rem, calc(50% - var(--cl-half) - 2.5rem - var(--pad)));
    overflow-y: auto;
    padding: 0 0.5rem 1rem;
    background: transparent;
    opacity: 0.4;
    transition: opacity var(--cl-ease);
  }

  .chlist .cl-head {
    padding-top: 0.25rem;
  }

  .chlist.split .cl {
    opacity: 1;
  }

  .chlist .hm-ui {
    left: calc(50% - var(--cl-half));
    right: calc(50% - var(--cl-half));
    padding: 0 1rem;
  }

  .chlist .pl-progress {
    left: calc(50% - var(--cl-half));
    right: calc(50% - var(--cl-half));
  }

  .chlist .fd-sub {
    left: calc(50% - var(--cl-half) + 1rem);
    right: calc(50% - var(--cl-half) + 1rem);
  }
}


/* Join page (/join, templates/join.html, body.join as well as body.home and body.about):
   the About page with a scroll added. The film pages are fixed to the
   screen; this one is a document, so the page scrolls again and the stage (#app, with the
   logo, the film, the controls and the bar over its foot) is its first screen, the height of
   the small viewport so it does not resize as a phone's toolbar folds away on the scroll,
   and clipped, since the grain and the menu's haze reach past its edges. All of it scrolls
   away with the film: nothing stays over the page below. There is no Availability link, so the
   controls keep to the right; the scroll cue sits in the bar's centre under 1024px and
   above the bar from there, where the bar's centre holds the menu links.

   Below the film the page's words (.jn) are on the site's paper, in its neutral colours
   alone: ink for the text, the softer ink for secondary text, grey for the mono labels and
   the hairline for borders; no accent, so the focus ring and the selection are ink too. In a
   column 640px wide at most: the h1 as a label over the pitch in the large serif, then the
   roles, each a card with a hairline border. A card's header (the title, an h2 in the serif
   whose button's hit area is the whole header, a mono summary line and a chevron) opens and
   closes its body (the spec sheet in the mono, the description and Apply, an ink outline
   that fills ink with paper text on press) over 200ms, from the button's aria-expanded; at
   once under reduced motion (the rule at the top of this file). The cards are closed only
   where the page is scripted (html.js), so without JavaScript they are open. A placeholder
   for a detail still to confirm (.jn-tbc) is in the mono and the softer ink wherever it
   falls. */

html:has(body.join) {
  height: auto;
}

body.join {
  height: auto;
  background: var(--paper);
  color: var(--ink);
}

.join #app {
  position: relative;
  inset: auto;
  height: 100vh;
  height: 100svh;
  min-height: 26rem;
  overflow: hidden;
  overflow: clip;
}

.join .hm-ui {
  justify-content: flex-end;
}

/* The scroll cue: the word over a chevron that dips, a link to the words below. It lies
   over the bar (z-index 31 against the bar's 30), centred in it. */
.jn-cue {
  position: absolute;
  left: 50%;
  bottom: env(safe-area-inset-bottom, 0px);
  z-index: 31;
  height: var(--bar);
  padding: 0 0.75rem;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  transition: opacity 0.25s ease;
}

/* The cue lies above the bar and so above the full-screen menu: it fades out while the menu
   is open, as the controls do. */
body.join.nav-open .jn-cue {
  opacity: 0;
  pointer-events: none;
}

.jn-cue span {
  margin-right: -0.12em;
}

.jn-cue svg,
.jn-chev {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.jn-cue svg {
  width: 14px;
  height: 9px;
  animation: jn-dip 1.8s ease-in-out infinite;
}

@keyframes jn-dip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

/* The words. */
.jn {
  max-width: calc(640px + 2 * var(--pad));
  margin-inline: auto;
  padding: 0 var(--pad) calc(3rem + env(safe-area-inset-bottom, 0px));
}

.jn :focus-visible {
  outline-color: var(--ink);
}

body.join .jn ::selection {
  background: var(--ink);
  color: var(--paper);
}

.jn-tbc {
  font-family: var(--mono);
  font-variation-settings: normal;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-soft);
}

.jn-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
}

.jn-intro {
  padding-block: 2.5rem 2rem;
}

.jn-pitch {
  margin-top: 0.9rem;
  font-size: clamp(1.8rem, 7.6vw, 2.6rem);
  text-wrap: balance;
}

/* The cards. */
.jn-roles {
  display: grid;
  gap: 0.9rem;
  scroll-margin-top: 1rem;
}

.jn-card {
  border: 1px solid var(--hairline);
}

/* The header: the title over the summary line, the chevron at the right. The title's
   button is stretched over the whole header, so a tap anywhere on it opens the card while
   the h2 stays the title alone; its focus ring is drawn round the header. */
.jn-head {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 1rem;
  align-items: center;
  padding: 1.05rem 1.1rem 1.1rem;
}

.jn-title {
  grid-column: 1;
  font-size: clamp(1.4rem, 5.8vw, 1.75rem);
  text-wrap: balance;
}

.jn-toggle {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-variation-settings: inherit;
  letter-spacing: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.jn-toggle::after {
  content: "";
  position: absolute;
  inset: 0;
}

.jn-toggle:focus-visible {
  outline: none;
}

.jn-toggle:focus-visible::after {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.jn-sum {
  grid-column: 1;
  margin-top: 0.45rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.jn-chev {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 16px;
  height: 10px;
  color: var(--ink-soft);
  transition: transform 0.2s ease;
}

.jn-card:has(.jn-toggle[aria-expanded="true"]) .jn-chev {
  transform: rotate(180deg);
}

/* The body: a one-row grid eased from no height to its own (0fr to 1fr), and hidden while
   closed, so nothing in a closed card is read out or takes the focus. */
.js .jn-body {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.2s ease, visibility 0s 0.2s;
}

.js .jn-card:has(.jn-toggle[aria-expanded="true"]) .jn-body {
  grid-template-rows: 1fr;
  visibility: visible;
  transition-delay: 0s;
}

/* Positioned, so the Apply link's visually hidden text is clipped with the rest and does not
   lengthen the page from inside a closed card. */
.jn-body-in {
  position: relative;
  min-height: 0;
  overflow: hidden;
  padding-inline: 1.1rem;
}

/* Unscripted, the cards are open and stay so: no chevron, and the title is not a control. */
html:not(.js) .jn-chev {
  display: none;
}

html:not(.js) .jn-toggle {
  cursor: default;
}

/* The spec sheet: a row per detail on hairlines, the label in grey capitals beside its
   value; the requirements one to a line. */
.jn-spec {
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.45;
  border-bottom: 1px solid var(--hairline);
}

.jn-spec > div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  column-gap: 0.75rem;
  padding: 0.36rem 0;
  border-top: 1px solid var(--hairline);
}

.jn-spec dt {
  padding-top: 0.1em;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
}

.jn-spec ul {
  list-style: none;
}

.jn-spec li + li {
  margin-top: 0.3rem;
}

.jn-desc {
  margin-top: 1rem;
  max-width: 34em;
  font-size: 0.95rem;
  line-height: 1.45;
}

/* Apply: an ink outline that fills ink with paper text on press. The last thing in a card,
   it carries the space under it. */
.jn-apply {
  display: inline-block;
  margin: 1.1rem 0 1.25rem;
  font-family: var(--grot);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  transition: background-color 0.15s, color 0.15s;
}

.jn-apply:active {
  background: var(--ink);
  color: var(--paper);
}

.jn-apply-none {
  margin-bottom: 1.25rem;
}

@media (hover: hover) {
  .jn-apply:hover {
    background: var(--ink);
    color: var(--paper);
  }

  .jn-head:hover .jn-chev {
    color: var(--ink);
  }
}

/* From 1024px the film keeps its whole portrait frame, centred, as on /about; the cue rises
   above the bar, whose centre holds the menu links; the words are a little larger. */
@media (min-width: 1024px) {
  .jn-cue {
    bottom: calc(var(--chrome-b) + 1rem);
    height: auto;
    padding: 0.5rem 0.75rem;
  }

  .jn {
    padding-bottom: 5rem;
  }

  .jn-intro {
    padding-block: 4.5rem 3rem;
  }

  .jn-head {
    padding: 1.35rem 1.5rem 1.4rem;
  }

  .jn-body-in {
    padding-inline: 1.5rem;
  }

  .jn-spec {
    font-size: 0.8rem;
  }

  .jn-spec > div {
    grid-template-columns: 9rem 1fr;
    padding: 0.55rem 0;
  }

  .jn-desc {
    font-size: 1.05rem;
  }

  .jn-apply {
    margin-bottom: 1.5rem;
  }
}
