/* Lifestyle Access: design tokens. Components below reference these only.
   Ink, paper and one metal; the colour comes from Praj's film and photographs. */
:root {
  --background: 193 47% 10%; /* petrol ink #0D1F24: the shadow colour of the film */
  --surface: 193 47% 15%; /* deep petrol #143038 */
  --foreground: 38 39% 89%; /* paper #EEE6D8: an invitation card */
  --muted: 172 11% 62%; /* sea glass #93A9A6 */
  --faint: 182 11% 43%;
  --line: 38 39% 89%;

  --shade-card: linear-gradient(180deg, hsl(var(--background) / 0.55) 0%, hsl(var(--background) / 0) 30%, hsl(var(--background) / 0) 46%, hsl(var(--background) / 0.88) 100%);
  --shade-hero: linear-gradient(180deg, hsl(var(--background) / 0.45) 0%, hsl(var(--background) / 0) 30%);

  /* one family, Libre Caslon: English printing type, the face of trade cards and club
     invitations. Display for names and titles, Text for reading and the italic notes. */
  --font-display: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --font-body: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  /* the logo's own face, and the mono that prints an Entry's number and cities */
  --font-logo: "Fraunces", Georgia, "Times New Roman", serif;
  --font-mono: "DM Mono", ui-monospace, Menlo, monospace;
  --font-text: "Mukta", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* the one accent: acid lime, for labels (Praj, 2026-11-23; it retires Emerald, which he found
     didn't look premium, and brass). On dark, every small mono label that names something is
     lime, and so are the Doorlight and the byline; headlines, values and prices stay ivory. On
     Paper, lime text can't be read (1.1:1), so labels go navy there and lime shows only as a
     fill behind navy (14:1), as on the Request button, or as the Doorlight on a navy chip. */
  --accent: #B6FF3B;
  --accent-ink: #15182E; /* night navy: text on a lime fill, and the labels on Paper */

  /* sizes from the classic typographic scale: 13, 16, 21, 36, 48, 72 */
  --text-opening: clamp(2.75rem, 1.6rem + 5vw, 6rem);
  --text-title: clamp(2.5rem, 1.7rem + 3.6vw, 4rem);
  --text-label: 0.8125rem;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --radius: 3px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background: hsl(var(--background));
  font: 400 1rem/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* film grain over everything, photographs included */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

/* iPhone haptics: a transparent label over each tappable thing, wired to a hidden switch
   (see tapHaptics in feel.js) */
.haptic-tap {
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  cursor: inherit;
  -webkit-tap-highlight-color: transparent;
}
.haptic-tap input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  visibility: hidden;
}
.icon-btn, .wordmark, .back, .pager a, .e-pager a, .e-btn, .wk-play, .step button, .sheet-chips button { position: relative; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* small labels are an italic note in sentence case, like a line written on stationery */
.label {
  font: italic 400 var(--text-label)/1.3 var(--font-body);
  color: hsl(var(--muted));
  font-variant-numeric: lining-nums tabular-nums;
}
.label-accent { color: var(--accent); }

/* ---------- shared chrome ---------- */

.topbar {
  grid-area: top;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) var(--gutter) 6px;
}

/* the Doorlight lockup: the mark beside the name in Fraunces Light, "Access" in italic,
   all in white */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.2em;
  font: 300 1.3125rem/1 var(--font-logo);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  letter-spacing: -0.03em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark svg { width: 0.56em; height: 0.85em; fill: var(--accent); flex: none; } /* the Doorlight, lime; the words stay ivory */
.wordmark i { font-style: italic; }

/* figures in display names (F1) take lining numerals, to sit with the capitals */
.fig { font-variant-numeric: lining-nums; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid hsl(var(--line) / 0.14);
  border-radius: 50%;
  background: transparent;
  color: hsl(var(--muted));
  cursor: pointer;
  transition: color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), scale 0.4s var(--spring);
}
.icon-btn:hover { color: hsl(var(--foreground)); border-color: hsl(var(--line) / 0.32); }
.icon-btn:active { scale: 0.88; transition-duration: 0.1s; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .ic-off { display: none; }
.icon-btn[aria-pressed="false"] .ic-on { display: none; }
.icon-btn[aria-pressed="false"] .ic-off { display: block; }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 54px;
  padding: 0 28px;
  border-radius: var(--radius);
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  font: 400 1rem/1 var(--font-body);
  text-decoration: none;
  transition: background-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.btn:hover { background: var(--accent); color: var(--accent-ink); }
.btn:active { transform: scale(0.985); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* the discovery call: a WhatsApp circle that floats bottom right on every page. Its label
   slides out when it matters (first arrival, the end of a design) and folds back in. */
.fab {
  position: fixed;
  z-index: 40;
  right: calc(var(--gutter) + env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  height: 58px;
  border-radius: 29px;
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  text-decoration: none;
  translate: 0 calc(var(--host-badge, 0px) * -1); /* above the host's badge, see feel.js */
  transition: background-color 0.3s var(--ease-out), scale 0.45s var(--spring), translate 0.5s var(--ease-out);
}
.fab::before {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid hsl(var(--foreground) / 0.3);
  border-radius: inherit;
  pointer-events: none;
  transition: inset 0.45s var(--ease-out), opacity 0.45s var(--ease-out);
}
.fab:hover { background: var(--accent); color: var(--accent-ink); }
.fab:active { scale: 0.92; transition-duration: 0.12s; }
.fab:active::before { inset: -11px; opacity: 0; }
.fab-icon { display: grid; place-items: center; width: 58px; height: 58px; flex: none; }
.fab-icon svg { width: 26px; height: 26px; }
.fab-label {
  overflow: hidden;
  max-width: 0;
  padding-left: 0;
  opacity: 0;
  white-space: nowrap;
  font: 400 0.9375rem/1 var(--font-body);
  transition: max-width 0.6s var(--ease-out), padding 0.6s var(--ease-out), opacity 0.35s var(--ease-out);
}
.fab.is-open .fab-label { max-width: 15rem; padding-left: 22px; opacity: 1; transition-delay: 0s, 0s, 0.1s; }
@media (prefers-reduced-motion: no-preference) {
  .fab { animation: fab-in 0.8s var(--spring) 0.75s backwards; }
}
@keyframes fab-in { from { opacity: 0; scale: 0.4; } }
@media (min-width: 960px) and (hover: hover) {
  .fab { bottom: 32px; }
  .fab .fab-label { max-width: 15rem; padding-left: 24px; opacity: 1; }
}

/* ---------- home ---------- */

/* one screen and two layers: Praj's film, and the designs over it. The first scroll raises the
   cards into the middle of the screen while the film steps back under a dark veil; every scroll
   after that moves the row. --t runs from 0 (the film) to 1 (the cards landed), set by deck.js
   from the same position that drives the row, so a finger or a wheel scrubs it either way. */
.home {
  --t: 0;
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none; /* every gesture here is the stage's */
}
.home .topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
  pointer-events: none;
}
.home .topbar > * { pointer-events: auto; }
/* the sound toggle sits on the film, so it gets a little frosted glass */
.home .icon-btn {
  border-color: hsl(var(--line) / 0.22);
  background: hsl(var(--background) / 0.22);
  color: hsl(var(--foreground) / 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.stage { position: absolute; inset: 0; }

/* layer one: the film, the whole screen, with the title in the middle of it */
.opening {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: hsl(var(--background));
}
.reel {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* stepping back: a touch smaller and softly rounded, like a stage set behind the cards */
  overflow: hidden;
  border-radius: calc(var(--t) * 18px);
  scale: calc(1 - var(--t) * 0.06);
}
.reel-media { position: absolute; inset: 0; }
.reel-media img, .reel-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reel-video { opacity: 0; transition: opacity 1.4s var(--ease-out); }
.reel.is-playing .reel-video { opacity: 1; }
/* shade for the wordmark at the top, the title in the middle and the cue at the foot */
.reel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, hsl(var(--background) / 0.55) 0%, hsl(var(--background) / 0) 20%),
    radial-gradient(ellipse 95% 32% at 50% 50%, hsl(var(--background) / 0.66), hsl(var(--background) / 0.24) 62%, hsl(var(--background) / 0) 100%),
    linear-gradient(0deg, hsl(var(--background) / 0.85) 0%, hsl(var(--background) / 0.4) 10%, hsl(var(--background) / 0) 28%);
}
/* the survey map: hairline contours laid over the film, as if the footage were seen through
   the sheet you'd plan the trip on. The sheet covers the frame like the film does, but its lines
   stay one pixel at any size. It sits under the shade, which quiets it behind the title, and it
   never moves with the footage: a still plate over a moving place. */
.contours {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0.3;
  pointer-events: none;
  user-select: none;
}
/* as the cards come up the map slides a touch further than the film: two depths, not one */
.reel .contours { height: calc(100% + 48px); translate: 0 calc(var(--t, 0) * -48px); }
/* the hero is a smaller window than the opening: open the sheet out so its lines don't crowd */
.hero .contours { left: -50%; top: -50%; width: 200%; height: 200%; } /* larger box, not scale: scaling would thicken the lines */
@media (prefers-reduced-motion: no-preference) {
  .contours { animation: map-in 3.2s var(--ease-out) 0.5s both; }
}
@keyframes map-in { from { opacity: 0; transform: scale(1.035); } }

/* the veil: the film keeps playing, but darkened, so the cards take all the attention */
.veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: hsl(var(--background));
  opacity: calc(var(--t) * 0.76);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .reel { animation: fade-in 1.4s var(--ease-out) both; }
  .reel-media { animation: settle 2.6s var(--ease-out) both; }
}
@keyframes fade-in { from { opacity: 0; } }
@keyframes settle { from { transform: scale(1.06); } }

.opening-title {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter);
  text-align: center;
  text-shadow: 0 1px 2px hsl(var(--background) / 0.35), 0 2px 28px hsl(var(--background) / 0.6);
  /* the title lifts away and fades as the cards come up */
  opacity: calc(1 - var(--t) * 1.8);
  translate: 0 calc(var(--t) * -56px);
}
.opening-title h1 {
  margin: 0 0 18px;
  font: 400 var(--text-opening)/1 var(--font-display);
  letter-spacing: -0.012em;
  text-wrap: balance;
}
/* the credit under the title: the byline is lime, as on the guest PDF; lime holds on any frame */
.opening-title .label { font-size: 1.125rem; color: var(--accent); }

/* the way in: a hairline with a lime bead running along it */
.cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 0;
  translate: -50% 0;
  text-decoration: none;
  opacity: calc(1 - var(--t) * 3);
  transition: scale 0.4s var(--spring);
}
.cue:active { scale: 0.94; transition-duration: 0.1s; }
.cue .label { font-size: 0.9375rem; color: hsl(var(--foreground) / 0.8); }
.cue-line {
  position: relative;
  width: 1px;
  height: 40px;
  overflow: hidden;
  background: hsl(var(--line) / 0.22);
}
.cue-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 14px;
  background: var(--accent);
  translate: 0 -14px;
}
@media (prefers-reduced-motion: no-preference) {
  .cue-line::after { animation: cue 2.4s var(--ease-out) 1.6s infinite; }
}
@keyframes cue { 0% { translate: 0 -14px; } 70%, 100% { translate: 0 40px; } }

/* layer two: the deck, its readout, and the houses Praj has worked with. Out of the way
   (and out of the tab order) until the cards start to rise. */
.designs {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto auto;
  grid-template-areas: "deck" "readout" "collab";
  padding-top: calc(56px + env(safe-area-inset-top));
  pointer-events: none;
}
.designs > * { min-width: 0; }
.home.is-cards .designs { pointer-events: auto; }
.home:not(.has-cards) .designs { visibility: hidden; }
.designs .readout, .designs .collab { opacity: calc((var(--t) - 0.6) * 2.5); }
.designs .deck-ruler { opacity: calc((var(--t) - 0.5) * 2); }

/* the deck: a single row of cards. Clipped to its box: the cards out past the screen edge
   would otherwise widen a phone's layout viewport and push the page off-screen */
.deck {
  grid-area: deck;
  position: relative;
  z-index: 3;
  overflow: hidden;
  overflow: clip;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  cursor: grab;
  outline: none;
}
.deck.is-dragging { cursor: grabbing; }

.card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: hsl(var(--surface));
  color: hsl(var(--foreground));
  text-decoration: none;
  -webkit-user-drag: none;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px hsl(var(--line) / 0.14);
  pointer-events: none;
}
.card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  pointer-events: none;
}
/* the photo layer: scaled past the card edge so drift and parallax never show a border */
.card-media { position: absolute; inset: 0; overflow: hidden; will-change: transform; }
.card-media img { transform: scale(1.14); }
.card-shade { position: absolute; inset: 0; background: var(--shade-card); }
.card-top {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  color: hsl(var(--foreground) / 0.82);
}
.card-body {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 13px;
}
.card-name {
  display: block;
  font: 400 clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem)/1.02 var(--font-display);
  letter-spacing: -0.005em;
}
.card-line {
  display: block;
  margin-top: 7px;
  max-width: 36ch;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: hsl(var(--foreground) / 0.8);
  transition: opacity 0.35s var(--ease-out);
}
.card-dim {
  position: absolute;
  inset: 0;
  background: hsl(var(--background));
  opacity: var(--dim, 0);
  pointer-events: none;
}

/* Private Request is a poster like the rest: a photograph of craftsmanship (Praj, 2026-11-28).
   It replaced the lime Doorlight and its glow, which fought the photograph. */
.card-yours { background: hsl(var(--surface)); }
/* its foot carries a full line as well as the title, over a busy engraving, so the shade reaches higher */
.card-poster.card-yours .card-shade {
  background: linear-gradient(180deg, rgb(8 14 18 / 0.6) 0%, rgb(8 14 18 / 0) 28%, rgb(8 14 18 / 0) 38%, rgb(8 14 18 / 0.9) 82%, rgb(8 14 18 / 0.94) 100%);
}

.design-head .place { display: flex; flex-wrap: wrap; gap: 0 0.9em; }

/* in a row only when the deck script runs: every card starts at the centre, and the
   script slides it along the line */
.js .deck .card {
  position: absolute;
  top: var(--cy, 50%);
  left: 50%;
  width: var(--card-w, 240px);
  height: var(--card-h, 300px);
  margin: calc(var(--card-h, 300px) / -2) 0 0 calc(var(--card-w, 240px) / -2);
  transform-origin: 50% 50%;
  will-change: transform;
  transition: scale 0.3s var(--ease-out);
}
.js .deck .card.is-pressed { scale: 0.965; transition-duration: 0.14s; }
/* only the centred card carries words; the others are photographs, and the text fades in
   as each card arrives */
.js .deck .card-top, .js .deck .card-body { transition: opacity 0.35s var(--ease-out); }
.js .deck .card:not(.is-center) :is(.card-top, .card-body) { opacity: 0; }
/* a Poster keeps its words beside the centre too; the card dims as a whole */
.js .deck .card-poster:not(.is-center) :is(.card-top, .card-body) { opacity: 1; }

/* the ruler under the row: one hairline mark per design, the centred one taller and lime */
.deck-ruler {
  position: absolute;
  top: calc(var(--cy, 50%) + var(--card-h, 300px) / 2 + 20px);
  left: 50%;
  display: flex;
  align-items: flex-end;
  gap: 9px;
  height: 12px;
  translate: -50% 0;
  pointer-events: none;
}
.deck-ruler span {
  width: 1px;
  height: 6px;
  background: hsl(var(--foreground) / 0.28);
  transition: height 0.4s var(--ease-out), background-color 0.4s var(--ease-out);
}
.deck-ruler span.is-on { height: 12px; background: var(--accent); }

/* micro motion: the centred photo drifts slowly; the others hold still until they arrive */
@media (prefers-reduced-motion: no-preference) {
  .card-media img { animation: drift-card 18s ease-in-out infinite alternate; animation-delay: var(--drift-delay, 0s); }
  .hero:not(.entry-strip) > img:not(.contours) { animation: drift 18s ease-in-out infinite alternate; }
  .js .deck .card:not(.is-center) .card-media img { animation-play-state: paused; }
}
/* motion clips: a silent loop fades in over the photo once it is really playing */
.card-video, .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s var(--ease-out);
}
.card-video { transform: scale(1.14); } /* the same overscan as the photo, for the parallax */
.card.is-playing .card-video, .hero.is-playing .hero-video { opacity: 1; }
.card.is-playing .card-media img { animation-play-state: paused; }

@keyframes drift-card {
  from { transform: scale(1.14) translate3d(-1.4%, 1%, 0); }
  to { transform: scale(1.2) translate3d(1.4%, -1.2%, 0); }
}
@keyframes drift {
  from { transform: scale(1.08) translate3d(-1.4%, 1%, 0); }
  to { transform: scale(1.15) translate3d(1.4%, -1.2%, 0); }
}

/* without the script the deck is a row you scroll sideways */
html:not(.js) .deck {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  align-items: center;
  padding: 12px var(--gutter);
  touch-action: auto;
  cursor: auto;
}
html:not(.js) .deck .card { flex: 0 0 62%; max-width: 320px; aspect-ratio: 4 / 5; scroll-snap-align: center; }
html:not(.js) .readout,
html:not(.js) .collab-this { display: none; }

.readout {
  grid-area: readout;
  display: flex;
  justify-content: center;
  gap: 0.9em; /* facts set apart by space, not by middle dots */
  padding: 12px var(--gutter) 0;
  white-space: nowrap;
  overflow: hidden;
}
.readout .ro-coords { color: hsl(var(--faint)); }
.readout [hidden] { display: none; }

/* left-aligned, and stopping short of the floating WhatsApp button on the right */
.collab {
  /* logos are white, and sized by build.py's --lh so a tall crest and a long word weigh the same */
  --logo: 26px;
  grid-area: collab;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 16px calc(var(--gutter) + 72px) calc(20px + env(safe-area-inset-bottom) + var(--host-badge, 0px)) var(--gutter);
  transition: padding-bottom 0.5s var(--ease-out);
}
.collab > * { grid-area: 1 / 1; min-width: 0; transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out); }
.collab-label { display: block; color: hsl(var(--faint)); }
.collab-track {
  margin-top: 12px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 78%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 78%, transparent);
}
.collab-row {
  display: flex;
  align-items: center;
  gap: 44px;
  width: max-content;
  min-height: calc(var(--logo) * 1.7);
  padding-right: 44px;
  animation: marquee 40s linear infinite;
}
.collab-row img { height: calc(var(--logo) * var(--lh, 1)); width: auto; opacity: 0.62; }
.collab-this {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}
.collab-this-marks {
  display: flex;
  align-items: center;
  gap: 28px;
  height: calc(var(--logo) * 1.7);
  margin-top: 12px;
}
.collab-this-marks img { height: calc(var(--logo) * var(--lh, 1)); width: auto; }
.collab-this-marks .brand-text { font: 400 1.25rem/1 var(--font-display); }
.collab.has-this .collab-all { opacity: 0; transform: translateY(-6px); }
.collab.has-this .collab-this { opacity: 1; transform: none; }

@keyframes marquee { to { transform: translateX(-50%); } }

/* load sequence */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.9s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms + 80ms); }
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* short phones: give the deck the room */
@media (max-height: 640px) {
  .collab { --logo: 22px; padding-top: 10px; }
  .collab-track, .collab-this-marks { margin-top: 8px; }
  .fab { height: 50px; bottom: calc(12px + env(safe-area-inset-bottom)); }
  .fab-icon { width: 50px; height: 50px; }
  .fab-icon svg { width: 23px; height: 23px; }
  .fab .fab-label { font-size: 0.875rem; }
}

/* wide screens: the row runs the full width, and the readout and the collaborators share the
   bottom line */
@media (min-width: 960px) {
  :root { --gutter: 56px; --text-label: 0.875rem; }
  .wordmark { font-size: 1.5rem; }
  .topbar { padding-top: 24px; }
  .opening-title .label { font-size: 1.3125rem; }
  .designs {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    grid-template-areas: "deck deck" "readout collab";
    padding-top: 88px;
  }
  .cue { bottom: 32px; }
  /* the row fades out at the edges of the screen instead of being cut off */
  .deck {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  }
  .readout { align-self: end; justify-content: flex-start; padding: 28px 0 40px var(--gutter); }
  /* stopping short of the floating button, whose label stays open on a wide screen */
  .collab { align-self: end; padding: 28px calc(var(--gutter) + 290px) calc(32px + var(--host-badge, 0px)) 0; }
  .collab-track { -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent); mask-image: linear-gradient(90deg, #000 80%, transparent); }
}

/* ---------- design page ---------- */

.design-grid {
  display: grid;
  grid-template-areas: "top" "hero" "body";
  align-content: start; /* a short page (a Coming soon) keeps its top bar at the top */
  min-height: 100dvh;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  text-decoration: none;
  transition: color 0.25s var(--ease-out);
}
.back:hover { color: hsl(var(--foreground)); }
.back svg { width: 14px; height: 14px; }

.hero {
  grid-area: hero;
  position: relative;
  margin: 6px var(--gutter) 0;
  aspect-ratio: 16 / 9;
  max-height: 42dvh;
  width: auto;
  overflow: hidden;
  border-radius: var(--radius);
  background: hsl(var(--surface));
}
.hero:not(.entry-strip) > img:not(.contours) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  view-transition-name: hero;
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--shade-hero); pointer-events: none; }
.hero.has-with::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  z-index: 1;
  background: linear-gradient(0deg, hsl(var(--background) / 0.75), transparent);
  pointer-events: none;
}
.hero .card-top { z-index: 2; }
/* the collaborating house, signed on the photograph itself */
.hero-with {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-with img { height: calc(24px * var(--lh, 1)); width: auto; }
.hero-with .brand-text { font: 400 1.125rem/1 var(--font-display); }
.tag-real {
  position: absolute;
  z-index: 2;
  left: 14px;
  bottom: 12px;
  padding: 6px 9px;
  border-radius: 2px;
  background: hsl(var(--background) / 0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.design-body { grid-area: body; min-width: 0; padding-bottom: var(--host-badge, 0px); }
.design-head { padding: 18px var(--gutter) 0; }
.design-head h1 {
  margin: 10px 0 14px;
  font: 400 var(--text-title)/1 var(--font-display);
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.lede {
  margin: 0;
  max-width: 34ch;
  font: italic 400 1.3125rem/1.34 var(--font-body);
  color: hsl(var(--foreground) / 0.86);
}

.block { padding: 22px var(--gutter) 0; }
.block > h2 { margin: 0 0 10px; }

.access {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid hsl(var(--line) / 0.12);
}
.access li {
  padding: 11px 0;
  border-bottom: 1px solid hsl(var(--line) / 0.12);
  line-height: 1.38;
}
/* a dated edition's days are a real sequence, so only they are numbered */
.access.is-days li { display: grid; grid-template-columns: 30px 1fr; }
.access .n { padding-top: 2px; font-style: normal; }
.access .day-title { display: block; font: 400 1.1875rem/1.15 var(--font-display); }
.access .day-text { display: block; margin-top: 3px; font-size: 0.875rem; color: hsl(var(--muted)); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chips li {
  padding: 6px 11px;
  border: 1px solid hsl(var(--line) / 0.16);
  border-radius: 999px;
  font-size: 0.8125rem;
  line-height: 1.2;
  color: hsl(var(--foreground) / 0.86);
}

.quote { margin: 0; }
.quote p { margin: 0; font: italic 400 1.3125rem/1.4 var(--font-body); }
.quote footer { margin-top: 10px; }

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 22px var(--gutter) 0;
  padding: 14px 0;
  border-top: 1px solid hsl(var(--line) / 0.12);
}
.pager a { display: block; text-decoration: none; transition: translate 0.4s var(--spring); }
.pager a:active { translate: 0 1px; transition-duration: 0.1s; }
.pager a:last-child { text-align: right; }
.pager .pager-name { display: block; margin-top: 6px; font: 400 1.25rem/1.1 var(--font-display); transition: color 0.25s var(--ease-out); }
.pager a:hover .pager-name { color: var(--accent); }

.foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  /* the bottom stays clear of the floating WhatsApp button */
  padding: 8px var(--gutter) calc(96px + env(safe-area-inset-bottom));
  color: hsl(var(--faint));
}
.foot a { text-decoration: none; }
.foot a:hover { color: hsl(var(--foreground)); }

@media (min-width: 960px) {
  .design-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "hero top" "hero body";
  }
  .hero {
    position: sticky;
    top: 0;
    height: 100dvh;
    max-height: none;
    aspect-ratio: auto;
    margin: 0;
    border-radius: 0;
  }
  .hero .card-top { top: 24px; left: 28px; right: 28px; }
  .tag-real { left: 28px; bottom: 24px; }
  .hero-with { right: 28px; bottom: 24px; }
  .hero-with img { height: calc(30px * var(--lh, 1)); }
  .design-top, .design-body { max-width: 680px; }
  .design-head { padding-top: 48px; }
}

/* page-to-page: the card image grows into the hero */
@view-transition { navigation: auto; }
::view-transition-group(hero) { animation-duration: 0.55s; animation-timing-function: var(--ease-out); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .collab-row { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .collab-row img[aria-hidden="true"] { display: none; }
}

/* ---------- the home row: Entry Posters ---------- */
/* One full-bleed photo or film per card, its facts printed on a soft shade at the foot.
   No frame, no mat, no border: the photograph is the card. */
.card-poster { border-radius: 6px; background: #0b1418; color: #fff; }
.card-poster::after { content: none; }
.card-poster .card-shade {
  background: linear-gradient(180deg, rgb(8 14 18 / 0.6) 0%, rgb(8 14 18 / 0) 28%, rgb(8 14 18 / 0) 48%, rgb(8 14 18 / 0.82) 100%);
}
.card-poster .card-media img, .card-poster .card-video { object-fit: cover; }
/* the lime labels keep their edge on bright photos too (fog, snow, sky) */
.poster-top { top: 16px; left: 16px; right: 16px; color: var(--accent); text-shadow: 0 1px 6px rgb(8 14 18 / 0.6); }
.poster-top, .poster-cities {
  font: 400 0.65625rem/1.3 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.poster-body { left: 16px; right: 16px; bottom: 16px; display: grid; gap: 6px; color: #fff; }
.poster-title {
  font: 300 clamp(1.75rem, 1.35rem + 1.5vw, 2.25rem)/1.02 var(--font-logo);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.poster-line { max-width: 32ch; font: 300 0.9375rem/1.4 var(--font-text); color: rgb(255 255 255 / 0.85); }
.poster-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid rgb(255 255 255 / 0.3);
  font: 400 0.875rem/1.2 var(--font-text);
}
/* not open yet: the photograph greyed to 45%, a lime dot for what's coming */
.card-soon .card-media > * { filter: saturate(0.45); }
.soon-mark::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 0.1em;
}

/* ---------- an Entry's page ---------- */
/* One setting (site.entry_ground) sets the ground: Petrol, the site's own colours, or Paper. */
.entry-page {
  --g-bg: #0D1F24;
  --g-fg: #EEE6D8;
  --g-fg2: #93A9A6;
  --g-rule: rgb(238 230 216 / 0.14);
  --g-chip: rgb(238 230 216 / 0.08);
  --g-lbl: var(--accent); /* labels: lime on dark */
  --g-btn: var(--accent);
  --g-btn-fg: var(--accent-ink);
  --g-on: var(--accent);
  --g-link: var(--g-fg);
  background: var(--g-bg);
  color: var(--g-fg);
  font: 400 1rem/1.55 var(--font-text);
  transition: background-color 0.4s, color 0.4s;
}
.entry-page[data-ground="paper"] {
  --g-bg: #F4F3EF;
  --g-fg: #15182E;
  --g-fg2: #5A5E73;
  --g-rule: #DAD9D3;
  --g-chip: #EAE9E4;
  --g-lbl: #15182E; /* labels: navy on Paper, where lime can't be read */
  --g-btn: var(--accent); /* lime only as a fill behind navy */
  --g-btn-fg: var(--accent-ink);
  --g-on: #15182E;
  --g-link: #15182E;
}
.lbl { font: 400 0.65625rem/1.4 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; }

/* the top: the Entry's photo or film, and the week on a line over it */
.e-hero {
  position: relative;
  height: max(400px, 58svh);
  overflow: hidden;
  background: #0D1F24;
  color: #fff;
  transition: height 0.5s var(--ease-out);
}
.is-full .e-hero { height: 100svh; }

.wk { position: absolute; inset: 0; overflow: hidden; }
.wk .layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.9s ease; }
.wk .layer.on { opacity: 1; }
.wk .cover img, .wk .cover video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wk .cover video { opacity: 0; transition: opacity 1s var(--ease-out); }
.wk .cover.is-playing video { opacity: 1; }
.cover-img { view-transition-name: hero; } /* the Poster it was opened from grows into it */
@media (prefers-reduced-motion: no-preference) {
  .wk .layer.on { animation: day-drift 9s linear forwards; }
}
@keyframes day-drift { from { transform: scale(1); } to { transform: scale(1.07); } }
.wk-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgb(8 14 18 / 0.5) 0%, rgb(8 14 18 / 0) 24%, rgb(8 14 18 / 0) 42%, rgb(8 14 18 / 0.86) 82%, rgb(8 14 18 / 0.94) 100%);
}
.wk-cap { position: absolute; left: 20px; right: 20px; bottom: 92px; z-index: 3; min-height: 96px; }
.wk-cap > div {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 6px;
  transition: opacity 0.45s, transform 0.6s var(--ease-out);
}
.wk-cap .t, .wk-cap .x { margin: 0; font-family: var(--font-logo); font-weight: 300; font-variation-settings: "SOFT" 0, "WONK" 0; text-wrap: balance; }
.wk-cap .t { font-size: 2.125rem; line-height: 1; letter-spacing: -0.025em; }
.wk-cap .x { font-size: 1.5rem; line-height: 1.18; letter-spacing: -0.01em; }
.wk-cap .k { color: var(--accent); }
.wk .cap-day { opacity: 0; transform: translateY(10px); }
.wk.day .cap-day { opacity: 1; transform: none; }
.wk.day .cap-cover { opacity: 0; transform: translateY(-10px); }
.wk.is-soon .wk-cap { bottom: 24px; }
/* full screen reaches the foot of the screen, where the host's badge sits: the controls step over it */
.is-full .wk-ctl { bottom: calc(18px + var(--host-badge, 0px)); }
.is-full .wk-cap { bottom: calc(92px + var(--host-badge, 0px)); }
.is-full .wk.is-soon .wk-cap { bottom: calc(24px + var(--host-badge, 0px)); }

.wk-ctl {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 18px;
  z-index: 4;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}
.wk-play {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px 0 6px;
  border: 0;
  border-radius: 19px;
  background: rgb(255 255 255 / 0.16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  white-space: nowrap;
  cursor: pointer;
}
.wk-play i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; }
.wk-play svg { width: 10px; height: 10px; fill: #0D1F24; }
.wk-play .ic-pause, .wk.playing .wk-play .ic-play { display: none; }
.wk.playing .wk-play .ic-pause { display: block; }
.wk-scale { position: relative; height: 44px; color: #fff; }
.wk-scale .sc {
  position: absolute;
  left: 0;
  right: 0;
  top: 14px;
  height: 9px;
  opacity: 0.6;
  background:
    linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px calc(100% / var(--q))) left bottom / 100% 45% no-repeat;
}
.wk-scale .dt { position: absolute; top: 8px; width: 1px; height: 15px; background: rgb(255 255 255 / 0.8); }
.wk-scale .mk {
  position: absolute;
  top: 6px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.55);
  transition: background-color 0.3s, transform 0.3s;
}
.wk-scale .mk.past { background: #fff; }
.wk-scale .mk.on { background: var(--accent); transform: scale(1.5); }
.wk-scale .lb { position: absolute; top: 28px; transform: translateX(-50%); font: 400 0.59375rem/1 var(--font-mono); letter-spacing: 0.06em; color: var(--accent); }
.wk-scale .knob {
  position: absolute;
  top: 2px;
  width: 2px;
  height: 26px;
  margin-left: -1px;
  background: var(--accent);
  pointer-events: none;
  transition: left 0.9s var(--ease-out);
}
.wk-scale .knob::after {
  content: "";
  position: absolute;
  left: -5px;
  top: -5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgb(8 14 18 / 0.45); /* a dark ring to lift it off the photo; no glow */
}
.wk-scale.drag .knob { transition: none; }
.wk-scale input { position: absolute; inset: -6px 0; width: 100%; height: calc(100% + 12px); margin: 0; opacity: 0; cursor: ew-resize; touch-action: none; }
.wk-scale input:focus-visible ~ .knob::after, .wk-scale:has(input:focus-visible) .knob::after { box-shadow: 0 0 0 4px rgb(182 255 59 / 0.55); }
@media (max-width: 420px) {
  .wk-play .lbl { display: none; }
  .wk-play { padding: 0 6px; }
}

.e-top {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top));
  left: 16px;
  right: 16px;
  z-index: 6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
}
.e-top-r { display: flex; align-items: center; gap: 10px; }
.e-top .icon-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgb(8 14 18 / 0.38);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
}
.e-top .icon-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.e-top .ic-shut, .is-full .e-top .ic-open { display: none; }
.is-full .e-top .ic-shut { display: inline; }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); } /* the time there: a label */
.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* under the top */
.e-body { padding: 22px 20px 0; }
.e-line {
  margin: 0 0 20px;
  font: 300 1.1875rem/1.35 var(--font-logo);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  text-wrap: pretty;
}
.e-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid var(--g-rule);
  border-bottom: 1px solid var(--g-rule);
}
.e-facts dt { color: var(--g-lbl); }
.e-facts dd { margin: 4px 0 0; font-size: 0.96875rem; line-height: 1.25; }
.e-facts dd b { font-weight: 500; }
.e-incl { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.e-incl span { padding: 6px 10px; border-radius: 2px; background: var(--g-chip); font-size: 0.875rem; line-height: 1.2; }
.e-dh { display: flex; justify-content: space-between; margin: 26px 0 10px; color: var(--g-lbl); }
.e-days { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--g-fg); }
.e-days li { border-bottom: 1px solid var(--g-rule); }
.e-days button {
  position: relative;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  padding: 12px 0 12px 10px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.e-days button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: transparent;
  transition: background-color 0.3s;
}
.e-days .on button::before { background: var(--g-on); }
.e-days .d { padding-top: 3px; color: var(--g-lbl); line-height: 1.5; }
/* a moment's title, in the label face, above its line */
.e-days .tt { display: block; margin-bottom: 4px; letter-spacing: 0.1em; color: var(--g-lbl); text-wrap: balance; }
/* a day with two moments: the second sits under the first, with no rule between them */
.e-days li.joined { border-bottom-color: transparent; }
.e-days li.joined button { padding-bottom: 6px; }
.e-days li.same button { padding-top: 6px; }
.e-days .d b { display: block; font-weight: 400; color: var(--g-fg); }
.e-days .x {
  display: block;
  font: 300 1.125rem/1.3 var(--font-logo);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  color: var(--g-fg2);
  transition: color 0.3s;
}
.e-days .on .x, .e-days button:hover .x { color: var(--g-fg); }
.e-days .at { display: block; margin-top: 2px; font: 400 0.65625rem/1.4 var(--font-mono); letter-spacing: 0.1em; color: var(--g-lbl); }
.e-note { margin: 0; padding: 14px 0 6px; font-size: 0.875rem; color: var(--g-fg2); }

/* the one thing to do, held at the foot of the screen (and clear of the host's badge) */
.e-cta {
  position: sticky;
  bottom: 0;
  z-index: 7;
  display: grid;
  gap: 8px;
  margin: 10px -20px 0;
  padding: 14px 20px calc(22px + env(safe-area-inset-bottom) + var(--host-badge, 0px));
  background: linear-gradient(180deg, transparent, var(--g-bg) 30%);
}
.e-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 2px;
  background: var(--g-btn);
  color: var(--g-btn-fg);
  font: 400 0.78125rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), filter 0.2s;
}
.e-btn:hover { filter: brightness(1.06); }
.e-btn:active { transform: scale(0.985); }
.e-btn svg { width: 17px; height: 17px; flex: none; }
.e-cta small { text-align: center; font-size: 0.8125rem; color: var(--g-fg2); }
.e-cta small a { color: var(--g-link); text-underline-offset: 3px; }

.e-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--g-rule);
}
.e-pager a { color: inherit; text-decoration: none; }
.e-pager a:last-child { text-align: right; }
.e-pager .lbl { color: var(--g-lbl); }
.e-pager-name {
  display: block;
  margin-top: 6px;
  font: 300 1.25rem/1.1 var(--font-logo);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  transition: color 0.25s var(--ease-out);
}
.e-pager a:hover .e-pager-name { color: var(--g-link); }
.e-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 18px 0 calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--g-rule);
  color: var(--g-fg2);
}
.e-foot .wordmark { font-size: 1.125rem; color: var(--g-fg); }
/* on Paper the Doorlight sits on a navy chip, the one way lime reads on a light ground */
.entry-page[data-ground="paper"] .e-foot .wordmark svg { box-sizing: content-box; padding: 0.24em 0.32em; border-radius: 4px; background: #15182E; }
/* and focus rings go navy there too */
.entry-page[data-ground="paper"] :is(.e-body, .sheet) :focus-visible { outline-color: #15182E; }
.e-foot a { color: inherit; text-decoration: none; }

/* the request sheet */
.sheet-scrim {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgb(5 10 14 / 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.sheet-scrim.on { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 61;
  max-width: 560px;
  margin: 0 auto;
  padding: 10px 20px calc(22px + env(safe-area-inset-bottom) + var(--host-badge, 0px)); /* clear of the host's badge */
  border-radius: 18px 18px 0 0;
  background: var(--g-bg);
  color: var(--g-fg);
  box-shadow: 0 -20px 40px -20px rgb(0 0 0 / 0.5);
  transform: translateY(calc(100% + 48px)); /* its shadow goes out of sight with it */
  transition: transform 0.45s var(--ease-out);
  touch-action: none;
}
.sheet.on { transform: none; }
.sheet.drag { transition: none; }
.sheet-grab { display: block; width: 38px; height: 4px; margin: 0 auto 16px; border-radius: 2px; background: var(--g-rule); }
.sheet-h {
  margin: 0 0 4px;
  font: 300 1.5rem/1.15 var(--font-logo);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  letter-spacing: -0.015em;
}
/* Mukta has no º, so a line that carries "Nº" is set in Fraunces */
.sheet-sub { margin: 0 0 16px; font: 300 0.875rem/1.4 var(--font-logo); color: var(--g-fg2); }
.sheet-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid var(--g-rule); }
.step { display: flex; align-items: center; gap: 14px; }
.step button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--g-rule);
  border-radius: 50%;
  background: none;
  color: inherit;
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
}
.step button:disabled { opacity: 0.35; cursor: default; }
.step output { min-width: 1.2em; text-align: center; font: 300 1.375rem/1 var(--font-logo); }
.sheet-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0 16px; border-top: 1px solid var(--g-rule); }
.sheet-chips button {
  padding: 7px 12px;
  border: 1px solid var(--g-rule);
  border-radius: 20px;
  background: none;
  color: inherit;
  font: 400 0.875rem/1.2 var(--font-text);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.sheet-chips button[aria-pressed="true"] { background: var(--g-fg); color: var(--g-bg); border-color: var(--g-fg); }
.sheet-msg {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px 10px 10px 2px;
  background: var(--g-chip);
  font: 300 0.875rem/1.45 var(--font-logo);
  color: var(--g-fg2);
}

/* wide screens: the week on the left, full height; the day by day beside it */
@media (min-width: 960px) {
  .e-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .e-hero { grid-column: 1; position: sticky; top: 0; height: 100dvh; }
  .is-full .e-hero { position: fixed; inset: 0; z-index: 40; height: 100dvh; }
  .e-body { grid-column: 2; max-width: 640px; padding: 56px 56px 0; }
  .e-cta { margin: 10px -56px 0; padding-left: 56px; padding-right: 56px; }
  .wk-cap { left: 28px; right: 28px; bottom: 104px; }
  .wk-cap .t { font-size: clamp(2.125rem, 4vw, 3.25rem); }
  .wk-cap .x { font-size: clamp(1.5rem, 2.8vw, 2.125rem); }
  .wk-ctl { left: 24px; right: 24px; bottom: 24px; }
  .e-top { top: 24px; left: 24px; right: 24px; }
  .wk.is-soon .wk-cap { bottom: 40px; }
  .is-full .wk-ctl { bottom: calc(24px + var(--host-badge, 0px)); }
  .is-full .wk-cap { bottom: calc(104px + var(--host-badge, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  .wk-cap > div, .wk .cap-day, .wk.day .cap-cover { transform: none !important; }
  .wk-scale .knob, .e-hero, .sheet { transition-duration: 0.01ms; }
}

.not-found .nf { padding: 18px var(--gutter); }

/* ---------- the glass finish (site.finish = "glass") ---------- */
/* Liquid glass on the cards and the buttons: a lens over the photograph rather than a panel on
   it. What's behind is blurred and its colour lifted; light catches the top edge in a bright
   line and the foot in a faint one; a hairline rim brightens at the corners the light comes
   from (top left, and its reflection bottom right). Pressed, the glass swells and fills with
   light instead of sinking. All CSS, so it holds in Safari on an iPhone. Every rule sits under
   [data-finish="glass"], so setting the finish to "flat" takes it all off. */
[data-finish="glass"] {
  --glass-blur: blur(18px) saturate(1.8);
  --glass-sheen: linear-gradient(180deg, rgb(255 255 255 / 0.16), rgb(255 255 255 / 0.03) 60%, rgb(255 255 255 / 0.06));
  --glass-dark: rgb(10 18 22 / 0.32); /* clear glass, smoked just enough for white words on snow */
  --glass-light: inset 0 1px 0.5px rgb(255 255 255 / 0.5), inset 0 -1px 0.5px rgb(255 255 255 / 0.12), inset 0 0 18px rgb(255 255 255 / 0.06);
  --glass-glow: inset 0 1px 0.5px rgb(255 255 255 / 0.7), inset 0 -1px 0.5px rgb(255 255 255 / 0.2), inset 0 0 22px rgb(255 255 255 / 0.3);
  --glass-drop: 0 10px 28px -10px rgb(0 0 0 / 0.45);
  --glass-rim: linear-gradient(135deg, rgb(255 255 255 / 0.8), rgb(255 255 255 / 0.14) 30%, rgb(255 255 255 / 0) 50%, rgb(255 255 255 / 0.1) 72%, rgb(255 255 255 / 0.5));
}

/* the rim: a 1px ring cut from a gradient, on every glass surface */
[data-finish="glass"] :is(.card-poster, .poster-body, .icon-btn, .fab, .wk-play, .e-btn, .step button, .sheet-chips button)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 1px;
  border-radius: inherit;
  background: var(--glass-rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* --- the cards: the photograph under a slab of glass, its facts on a lens at the foot --- */
[data-finish="glass"] .card-poster {
  border-radius: 22px;
  box-shadow: 0 28px 50px -24px rgb(0 0 0 / 0.6);
}
[data-finish="glass"] .card-poster::after { z-index: 3; opacity: 0.7; }
[data-finish="glass"] .card-poster .card-shade {
  background: linear-gradient(180deg, rgb(8 14 18 / 0.42) 0%, rgb(8 14 18 / 0) 24%, rgb(8 14 18 / 0) 58%, rgb(8 14 18 / 0.3) 100%);
}
[data-finish="glass"] .poster-top { top: 18px; left: 20px; right: 20px; text-shadow: 0 1px 8px rgb(0 0 0 / 0.35); }
/* the lens: 10px in from the card, so its corners run concentric with the card's (22 - 10 = 12) */
[data-finish="glass"] .poster-body {
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 14px 14px 12px;
  border-radius: 12px;
  background: var(--glass-sheen), var(--glass-dark);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-light), var(--glass-drop);
  text-shadow: 0 1px 10px rgb(0 0 0 / 0.25);
}
[data-finish="glass"] .poster-meta { border-top-color: rgb(255 255 255 / 0.22); }
/* --- the buttons over photographs and film: clear glass --- */
[data-finish="glass"] :is(.home .icon-btn, .e-top .icon-btn, .wk-play) {
  border: 0;
  background: var(--glass-sheen), var(--glass-dark);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-light), 0 6px 18px -8px rgb(0 0 0 / 0.45);
  color: #fff;
  transition: scale 0.45s var(--spring), box-shadow 0.3s var(--ease-out);
}
[data-finish="glass"] .home .icon-btn { width: 42px; height: 42px; }
[data-finish="glass"] .wk-play { height: 40px; border-radius: 20px; padding-right: 15px; }
[data-finish="glass"] .wk-play i { box-shadow: 0 1px 3px rgb(0 0 0 / 0.25), inset 0 -1px 1px rgb(0 0 0 / 0.08); }

/* the WhatsApp circle: paper-tinted glass, its ring kept */
[data-finish="glass"] .fab {
  background: linear-gradient(180deg, rgb(255 255 255 / 0.55), rgb(255 255 255 / 0.08) 55%, rgb(255 255 255 / 0.18)), rgb(238 230 216 / 0.66);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0.5px rgb(255 255 255 / 0.9), inset 0 -1px 0.5px rgb(255 255 255 / 0.3), inset 0 0 16px rgb(255 255 255 / 0.25), 0 12px 30px -10px rgb(0 0 0 / 0.5);
  transition: background-color 0.3s var(--ease-out), scale 0.45s var(--spring), translate 0.5s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
[data-finish="glass"] .fab:hover { background: linear-gradient(180deg, rgb(255 255 255 / 0.5), rgb(255 255 255 / 0.06) 55%, rgb(255 255 255 / 0.16)), rgb(182 255 59 / 0.8); }

/* --- the one thing to do: lime glass, a capsule floating over the page as it scrolls --- */
[data-finish="glass"] .e-btn {
  height: 54px;
  border-radius: 27px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.2), rgb(255 255 255 / 0) 46%, rgb(255 255 255 / 0.06)),
    color-mix(in srgb, var(--g-btn) 93%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  backdrop-filter: blur(14px) saturate(1.6);
  box-shadow:
    inset 0 1px 0.5px rgb(255 255 255 / 0.55),
    inset 0 -1px 0.5px rgb(255 255 255 / 0.18),
    inset 0 0 18px rgb(255 255 255 / 0.12),
    0 10px 22px -12px color-mix(in srgb, var(--g-btn) 70%, black);
  transition: scale 0.45s var(--spring), box-shadow 0.3s var(--ease-out), filter 0.2s;
}
/* the page now passes behind the capsule, and only fades under the line beneath it */
[data-finish="glass"] .e-cta { background: linear-gradient(180deg, transparent 0, transparent 34%, var(--g-bg) 64%); }

/* --- the request sheet: frosted ground, glass stepper and chips --- */
[data-finish="glass"] .entry-page { --g-glass: rgb(255 255 255 / 0.08); --g-glass-hi: rgb(255 255 255 / 0.22); }
[data-finish="glass"] .entry-page[data-ground="paper"] { --g-glass: rgb(255 255 255 / 0.55); --g-glass-hi: rgb(255 255 255 / 0.95); }
[data-finish="glass"] .sheet {
  border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, var(--g-glass-hi), transparent 90px), color-mix(in srgb, var(--g-bg) 89%, transparent);
  -webkit-backdrop-filter: blur(30px) saturate(1.7);
  backdrop-filter: blur(30px) saturate(1.7);
  box-shadow: inset 0 1px 0.5px var(--g-glass-hi), 0 -24px 48px -24px rgb(0 0 0 / 0.5);
}
[data-finish="glass"] :is(.step button, .sheet-chips button) {
  border: 0;
  background: linear-gradient(180deg, var(--g-glass-hi), var(--g-glass));
  box-shadow: inset 0 0 0 1px var(--g-rule), 0 4px 12px -6px rgb(0 0 0 / 0.22);
  transition: scale 0.4s var(--spring), background-color 0.2s, color 0.2s, box-shadow 0.25s var(--ease-out);
}
[data-finish="glass"] .sheet-chips button { padding: 8px 14px; }
[data-finish="glass"] .sheet-chips button[aria-pressed="true"] {
  background: linear-gradient(180deg, rgb(255 255 255 / 0.22), rgb(255 255 255 / 0) 60%), var(--g-fg);
  box-shadow: inset 0 1px 0.5px rgb(255 255 255 / 0.4), 0 6px 14px -6px rgb(0 0 0 / 0.4);
}
[data-finish="glass"] .sheet-msg { border-radius: 16px 16px 16px 4px; }

/* pressed: glass swells a touch and fills with light, rather than sinking */
[data-finish="glass"] :is(.icon-btn, .wk-play, .e-btn, .step button:not(:disabled), .sheet-chips button):active {
  scale: 1.06;
  transform: none;
  box-shadow: var(--glass-glow), 0 8px 22px -8px rgb(0 0 0 / 0.4);
  transition-duration: 0.12s;
}
[data-finish="glass"] .e-btn:active { scale: 1.025; }
[data-finish="glass"] .fab:active { scale: 1.06; box-shadow: var(--glass-glow), 0 14px 34px -10px rgb(0 0 0 / 0.5); }

/* where the browser can't blur what's behind, or the visitor asks for less transparency,
   the glass turns to a solid tint and keeps its edge light */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  [data-finish="glass"] { --glass-dark: rgb(10 18 22 / 0.72); }
  [data-finish="glass"] .fab { background-color: hsl(var(--foreground)); }
}
@media (prefers-reduced-transparency: reduce) {
  [data-finish="glass"] { --glass-dark: rgb(10 18 22 / 0.72); }
  [data-finish="glass"] .sheet { background: var(--g-bg); }
}
