/* r6-groupme-stream.65463ff2.css: the Knit page told in the YouTube-styled film's own look (FILMS/r5-stream, v2).
   Every value below lives in the one :root block. Colours and faces: the film's lib/tokens.js (YT.color, YT.font).
   Sizes: the film's style.css stage values divided by its 1.625 phone scale (its header comment), rounded to the
   4 px grid; spacing steps the film lacks come from design-tokens dist/tokens.css (--spacing-*).
   Two radii: 8 px (chips, thumbnails, badges, location chip) and 12 px (the group card, photo, event card, guide
   items, composer, dialog), plus 9999 px pills and 50% faces. Outside :root the only numbers are the @font-face
   weight descriptors and the one breakpoint, which CSS cannot read from a custom property. */
:root {
  /* palette: lib/tokens.js YT.color */
  --c-bg: #0F0F0F;
  --c-text: #F1F1F1;
  --c-text2: #AAAAAA;
  --c-raised: #212121;
  --c-raised2: #272727;
  --c-tonal: rgba(255, 255, 255, 0.1);
  --c-tonal-hover: rgba(255, 255, 255, 0.2);
  --c-divider: rgba(255, 255, 255, 0.1);
  --c-search: #121212;
  --c-search-line: #303030;
  --c-focus: #1C62B9;
  --c-disabled: #717171;
  --c-red: #FF0033;
  --c-red-tonal: rgba(255, 0, 51, 0.15);
  --c-on-white: #0F0F0F;
  --c-white-hover: #D9D9D9;
  --c-white: #FFFFFF;
  /* derived, not new hues: the accent lifted toward the film's text white so red words on the tonal fills clear
     WCAG AA 4.5:1 (#FF0033 on rgba(255,0,51,.15) over #212121 measures 3.7:1); press state = hover deepened */
  --c-red-text: color-mix(in srgb, var(--c-red) 65%, var(--c-text));
  --c-white-press: color-mix(in srgb, var(--c-white-hover) 88%, var(--c-on-white));
  --c-scrim: rgba(0, 0, 0, 0.72);

  /* faces: lib/tokens.js YT.font (Roboto Flex shipped as the film's wght 800 / wdth 40 / opsz 144 instance) */
  --f-ui: "Roboto", system-ui, sans-serif;
  --f-display: "Roboto Flex", "Roboto", sans-serif;
  --f-knit: "Bricolage Grotesque", sans-serif;
  --w-body: 400;
  --w-label: 500;
  --w-strong: 700;
  --w-display: 800;
  --w-knit: 600;

  /* type ramp (film stage px / 1.625; caption, body and display floors from mobile-web-design + tokens.css) */
  --t-caption: 12px;
  --t-small: 14px;
  --t-body: 16px;
  --t-name: 18px;
  --t-title: 20px;
  --t-knit-mast: 24px;
  --t-knit-rail: 28px;
  --t-knit-dialog: 32px;
  --t-find: clamp(24px, 6.4vw, 40px);
  --t-display: clamp(34px, 9.6vw, 72px);
  --t-end-line: clamp(28px, 4.8vw, 44px);
  --t-end-knit: clamp(104px, 25vw, 208px);
  --lh-none: 1;
  --lh-display: 1.08;
  --lh-snug: 1.3;
  --lh-body: 1.5;
  --tr-display: -0.005em;
  --tr-find: -0.01em;
  --tr-knit: -0.02em;
  --measure: 60ch;

  /* spacing: design-tokens dist/tokens.css --spacing-* */
  --sp-2: 2px;
  --sp-4: 4px;
  --sp-6: 6px;
  --sp-8: 8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-24: 24px;
  --sp-32: 32px;
  --sp-48: 48px;
  --sp-64: 64px;
  --sp-72: 72px;
  --gutter: 16px;
  --gutter-lg: 24px;

  /* radii: the film's chip 13 / card 20 at 1.625 scale */
  --r-sm: 8px;
  --r-lg: 12px;
  --r-full: 9999px;
  --r-round: 50%;

  /* component sizes (film stage px / 1.625) */
  --mast-h: 56px;
  --search-h: 40px;
  --search-w: 560px;
  --search-btn-w: 64px;
  --target: 36px;
  --target-coarse: 44px;
  --target-min: 24px;
  --pill-lg: 44px;
  --chip-h: 32px;
  --chip-inset: calc((var(--target) - var(--chip-h)) / 2);
  --badge-h: 24px;
  --icon: 24px;
  --icon-sm: 20px;
  --icon-xs: 16px;
  --emoji: 72px;
  --emoji-lg: 96px;
  --emoji-done: 24px;
  --stage-h: 184px;
  --stage-h-lg: 240px;
  --done-h: 32px;
  --dot: 0.16em;
  --dot-gap: 0.05em;
  --dot-dim: 0.25;
  --dot-small: 0.7;
  --thumb: 48px;
  --thumb-lg: 64px;
  --face-sm: 24px;
  --face-md: 32px;
  --face-ring: 2px;
  --face-overlap: -8px;
  --av: 36px;
  --rail-w: 240px;
  --rail-thumb: 40px;
  --col-max: 880px;
  --app-max: 1200px;
  --chat-max: 760px;
  --photo-w: 320px;
  --event-w: 420px;
  --ev-thumb: 64px;
  --more-h: 48px;
  --send: 32px;
  --loc-h: 28px;
  --caret-w: 2px;
  --caret-h: 20px;
  --soon: 48px;
  --dialog-w: 400px;
  --hair: 1px;
  --focus-w: 2px;
  --focus-off: 2px;
  --ring-inset: inset 0 0 0 1px var(--c-focus);
  --sk-line: 12px;
  --sk-w1: 55%;
  --sk-w2: 85%;
  --sk-pill-w: 64px;
  --skip-off: -64px;
  --sr-size: 1px;

  /* layout primitives */
  --none: 0;
  --grow: 1;
  --full: 100%;
  --mid: 50%;
  --col-fluid: minmax(0, 1fr);
  --vh-full: 100dvh;
  --rail-h: calc(var(--vh-full) - var(--mast-h));
  --z-mast: 10;
  --z-head: 5;
  --z-under: -1;
  --z-skip: 20;

  /* motion: design-tokens durations and curves; the film's spring-in, row step and breathing dots */
  --d-quick: 150ms;
  --d-std: 200ms;
  --d-step: 300ms;
  --d-breath: 480ms;
  --d-pulse: 700ms;
  --dot-phase: 211ms;
  --dot-phase-2: 422ms;
  --chip-lag: 80ms;
  --stagger: 60ms;
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-snap: cubic-bezier(0.27, 1.06, 0.18, 1);
  --scale-in: 0.92;
  --rise: 8px;
  --o-0: 0;
  --o-1: 1;
  --o-sk: 0.5;
}

@font-face {
  font-family: "Roboto";
  src: url("/v/r6-groupme-stream/fonts/roboto-400-700-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Flex";
  src: url("/v/r6-groupme-stream/fonts/roboto-flex-condensed-800-latin.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/knit-bricolage-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  background: var(--c-bg);
  color: var(--c-text);
  scroll-padding-top: var(--mast-h);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}
body {
  margin: var(--none);
  font-family: var(--f-ui);
  font-weight: var(--w-body);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
img { display: block; max-width: var(--full); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: var(--focus-w) solid var(--c-focus); outline-offset: var(--focus-off); }
.i { width: var(--icon); height: var(--icon); fill: currentColor; flex: none; display: block; }
.ic { display: inline-grid; place-items: center; flex: none; }
.ic svg { width: var(--icon); height: var(--icon); fill: currentColor; display: block; }
.sprite { position: absolute; width: var(--none); height: var(--none); overflow: hidden; }
.sr {
  position: absolute; width: var(--sr-size); height: var(--sr-size); overflow: hidden;
  clip-path: inset(var(--mid)); white-space: nowrap;
}
.skip {
  position: absolute; left: var(--sp-8); top: var(--skip-off); z-index: var(--z-skip);
  padding: var(--sp-8) var(--sp-16); border-radius: var(--r-full); background: var(--c-text); color: var(--c-on-white);
  font-weight: var(--w-label); text-decoration: none;
}
.skip:focus { top: var(--sp-8); }

/* pills: the film's white primary pill and tonal pill (style.css .pill.white, .chip) */
.btn-white, .btn-tonal, .btn-ink {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-6);
  min-height: var(--target); padding: var(--none) var(--sp-16);
  border: var(--none); border-radius: var(--r-full);
  font-size: var(--t-small); font-weight: var(--w-label); line-height: var(--lh-none); white-space: nowrap;
  text-decoration: none;
  transition: background-color var(--d-quick) var(--ease-out);
}
.btn-white { background: var(--c-text); color: var(--c-on-white); }
.btn-white:hover { background: var(--c-white-hover); }
.btn-white:active { background: var(--c-white-press); }
.btn-tonal { background: var(--c-tonal); color: var(--c-text); }
.btn-tonal:hover { background: var(--c-tonal-hover); }
.btn-tonal:active { background: var(--c-tonal-hover); }
.btn-ink { background: var(--c-bg); color: var(--c-text); }
.btn-ink:hover { background: var(--c-raised); }
.btn-ink:active { background: var(--c-raised2); }
.btn-lg { min-height: var(--pill-lg); padding: var(--none) var(--sp-24); font-size: var(--t-body); }
.btn-white .i, .btn-tonal .i { width: var(--icon-sm); height: var(--icon-sm); }

/* ---------- masthead: wordmark, search field + button, Log in, Sign up ---------- */
.mast {
  position: sticky; top: var(--none); z-index: var(--z-mast);
  display: flex; align-items: center; gap: var(--sp-8);
  height: var(--mast-h);
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
  background: var(--c-bg);
}
.mast-knit {
  display: inline-flex; align-items: center; min-height: var(--target);
  font-family: var(--f-knit); font-weight: var(--w-knit); font-size: var(--t-knit-mast);
  letter-spacing: var(--tr-knit); line-height: var(--lh-none); text-decoration: none;
}
.mast-search { display: none; align-items: center; gap: var(--sp-8); flex: var(--grow); min-width: var(--none); }
.mast-field { display: flex; flex: var(--grow); min-width: var(--none); height: max(var(--search-h), var(--target)); }
.mast-field input {
  flex: var(--grow); min-width: var(--none); height: var(--full);
  padding: var(--none) var(--sp-16);
  background: var(--c-search); border: var(--hair) solid var(--c-search-line); border-right: var(--none);
  border-radius: var(--r-full) var(--none) var(--none) var(--r-full);
  font-size: var(--t-body);
}
.mast-field input::placeholder { color: var(--c-text2); }
.mast-field input:focus-visible { outline: none; border-color: var(--c-focus); box-shadow: var(--ring-inset); }
.mast-field input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.mast-go {
  display: grid; place-items: center; width: var(--search-btn-w); height: var(--full);
  background: var(--c-raised); border: var(--hair) solid var(--c-search-line);
  border-radius: var(--none) var(--r-full) var(--r-full) var(--none);
}
.mast-go:hover { background: var(--c-raised2); }
.mast-back, .mast-find {
  display: grid; place-items: center; flex: none;
  width: var(--target); height: var(--target); padding: var(--none);
  border: var(--none); border-radius: var(--r-round); background: transparent;
  transition: background-color var(--d-quick) var(--ease-out);
}
.mast-back:hover, .mast-find:hover { background: var(--c-tonal); }
.mast-end { display: flex; align-items: center; gap: var(--sp-8); margin-left: auto; }
.mast.is-searching .mast-knit, .mast.is-searching .mast-end { display: none; }
.mast.is-searching .mast-search { display: flex; }

/* ---------- 1-2 the scan (film beats 0.0 to 4.0) ---------- */
.scan {
  display: grid; justify-items: center; text-align: center;
  padding: var(--sp-32) var(--gutter) var(--sp-48);
}
.scan-hl {
  margin: var(--none);
  font-family: var(--f-display); font-weight: var(--w-display); font-size: var(--t-display);
  line-height: var(--lh-display); letter-spacing: var(--tr-display);
  text-wrap: balance;
}
.scan-last { white-space: nowrap; }
.scan-dots { display: inline-flex; align-items: center; gap: var(--dot-gap); margin-left: var(--dot-gap); vertical-align: baseline; }
.scan-dots i {
  display: block; width: var(--dot); height: var(--dot); border-radius: var(--r-round); background: var(--c-red);
  animation: breathe var(--d-breath) var(--ease-in-out) infinite alternate both; /* deliberate */
}
.scan-dots i + i { animation-delay: var(--dot-phase); }
.scan-dots i + i + i { animation-delay: var(--dot-phase-2); }
.scan.is-done .scan-dots { display: none; }
@keyframes breathe {
  from { opacity: var(--dot-dim); transform: scale(var(--dot-small)); }
  to { opacity: var(--o-1); transform: none; }
}
.scan-stage {
  display: grid; grid-template-areas: "stage"; place-items: center;
  width: var(--full); min-height: var(--stage-h); margin-top: var(--sp-24);
}
.scan-look, .find { grid-area: stage; }
.scan-look {
  display: flex; align-items: center; gap: var(--sp-8); margin: var(--none);
  color: var(--c-text2); font-size: var(--t-body);
}
.scan-look .i { width: var(--icon-sm); height: var(--icon-sm); }
.find { display: grid; justify-items: center; gap: var(--sp-12); }
.find img { width: var(--emoji); height: var(--emoji); }
.find-title {
  margin: var(--none); font-size: var(--t-find); font-weight: var(--w-strong);
  line-height: var(--lh-snug); letter-spacing: var(--tr-find);
}
.find-chip {
  display: inline-flex; align-items: center; height: var(--chip-h); padding: var(--none) var(--sp-12);
  border-radius: var(--r-sm); background: var(--c-tonal);
  font-size: var(--t-small); font-weight: var(--w-label);
}
.scan.is-live .find:not([hidden]) { animation: find-in var(--d-step) var(--ease-snap) both; }
.scan.is-live .find:not([hidden]) .find-chip { animation: find-in var(--d-step) var(--ease-snap) var(--chip-lag) both; }
@keyframes find-in {
  from { opacity: var(--o-0); transform: scale(var(--scale-in)); }
}
.scan-done {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-8);
  min-height: var(--done-h); margin: var(--sp-8) var(--none) var(--none);
  color: var(--c-text2); font-size: var(--t-body);
  visibility: hidden;
}
.scan-done img { width: var(--emoji-done); height: var(--emoji-done); }
.scan.is-done .scan-done { visibility: visible; animation: rise var(--d-step) var(--ease-out) both; }
@keyframes rise {
  from { opacity: var(--o-0); transform: translateY(var(--rise)); }
}
.scan-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-12); margin-top: var(--sp-24); }
.scan-lede { max-width: var(--measure); margin: var(--sp-16) auto var(--none); color: var(--c-text2); font-size: var(--t-small); }

/* ---------- the calibrate picker: the hero's honest interaction (chips filter the group list live) ---------- */
.cal {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-8);
  max-width: var(--col-max); margin-top: var(--sp-24);
}
.cal-chip {
  flex: none; min-height: var(--target); padding: var(--none) var(--sp-16);
  border: var(--none); border-radius: var(--r-full); background: var(--c-tonal); color: var(--c-text);
  font-size: var(--t-small); font-weight: var(--w-label); line-height: var(--lh-none); white-space: nowrap;
  transition: background-color var(--d-quick) var(--ease-out), color var(--d-quick) var(--ease-out), box-shadow var(--d-quick) var(--ease-out);
}
.cal-chip:hover { background: var(--c-tonal-hover); }
.cal-chip[aria-pressed="true"] {
  background: var(--c-red-tonal); color: var(--c-red-text);
  box-shadow: inset 0 0 0 var(--hair) var(--c-red);
}
.soon-badge {
  display: inline-flex; align-items: center; gap: var(--sp-6);
  min-height: var(--badge-h); margin: var(--sp-12) var(--none) var(--none); padding: var(--none) var(--sp-12);
  border-radius: var(--r-full); background: var(--c-red-tonal); color: var(--c-red-text);
  font-size: var(--t-caption); font-weight: var(--w-label); white-space: nowrap;
}

/* ---------- 3 groups near Austin (film beats 4.2 to 8.85) ---------- */
.groups { padding: var(--sp-32) var(--gutter) var(--sp-64); }
.groups > * { max-width: var(--col-max); margin-inline: auto; }
.groups-hl {
  margin: var(--none) auto; text-align: center;
  font-family: var(--f-display); font-weight: var(--w-display); font-size: var(--t-display);
  line-height: var(--lh-display); letter-spacing: var(--tr-display);
}
.groups-sub { margin: var(--sp-8) auto var(--none); text-align: center; color: var(--c-text2); font-size: var(--t-small); }
.chips {
  display: flex; gap: var(--sp-12); margin-top: var(--sp-16);
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  position: relative; isolation: isolate; flex: none;
  min-height: var(--target); padding: var(--none) var(--sp-12);
  border: var(--none); background: transparent; color: var(--c-text);
  font-size: var(--t-small); font-weight: var(--w-label); line-height: var(--lh-none);
}
.chip::before {
  content: ""; position: absolute; z-index: var(--z-under);
  inset: var(--chip-inset) var(--none);
  border-radius: var(--r-sm); background: var(--c-tonal);
  transition: background-color var(--d-quick) var(--ease-out);
}
.chip:hover::before { background: var(--c-tonal-hover); }
.chip[aria-pressed="true"] { color: var(--c-on-white); }
.chip[aria-pressed="true"]::before { background: var(--c-text); }
.gcard { margin-top: var(--sp-12); border-radius: var(--r-lg); background: var(--c-raised); overflow: hidden; }
.glist, .gskel { list-style: none; margin: var(--none); padding: var(--none); }
.grow {
  display: grid; grid-template-columns: var(--thumb) var(--col-fluid) auto; align-items: center;
  column-gap: var(--sp-12); padding: var(--sp-12) var(--sp-16);
}
.grow + .grow { border-top: var(--hair) solid var(--c-divider); }
.gthumb { width: var(--thumb); height: var(--thumb); border-radius: var(--r-sm); object-fit: cover; }
.gname {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4) var(--sp-8);
  margin: var(--none); font-size: var(--t-body); font-weight: var(--w-label); line-height: var(--lh-snug);
}
.badge {
  display: inline-flex; align-items: center; gap: var(--sp-4);
  height: var(--badge-h); padding: var(--none) var(--sp-8) var(--none) var(--sp-6);
  border-radius: var(--r-sm); background: var(--c-red-tonal); color: var(--c-red-text);
  font-size: var(--t-caption); font-weight: var(--w-label); white-space: nowrap;
}
.badge .i { width: var(--icon-xs); height: var(--icon-xs); }
.gmeta { margin: var(--sp-2) var(--none) var(--none); color: var(--c-text2); font-size: var(--t-small); line-height: var(--lh-snug); }
.gfriends {
  display: flex; align-items: center; gap: var(--sp-8); margin: var(--sp-6) var(--none) var(--none);
  color: var(--c-text2); font-size: var(--t-caption); line-height: var(--lh-snug);
}
.faces { display: inline-flex; flex: none; }
.faces img {
  width: var(--face-sm); height: var(--face-sm); margin-left: var(--face-overlap);
  border-radius: var(--r-round); border: var(--face-ring) solid var(--c-raised); object-fit: cover;
}
.faces img:first-child { margin-left: var(--none); }
.grow .btn-white { justify-self: end; }
.glist.is-rising .grow:not([hidden]) {
  animation: rise var(--d-step) var(--ease-out) both;
  animation-delay: calc(var(--i) * var(--stagger));
}
.sk { display: block; border-radius: var(--r-full); background: var(--c-tonal); animation: pulse var(--d-pulse) var(--ease-in-out) infinite alternate both; /* deliberate */ }
.sk-thumb { width: var(--thumb); height: var(--thumb); border-radius: var(--r-sm); }
.sk-lines { display: grid; gap: var(--sp-8); }
.sk-l1 { width: var(--sk-w1); height: var(--sk-line); }
.sk-l2 { width: var(--sk-w2); height: var(--sk-line); }
.sk-pill { width: var(--sk-pill-w); height: var(--target); }
@keyframes pulse { to { opacity: var(--o-sk); } }
.gempty { padding: var(--sp-32) var(--sp-16); text-align: center; }
.gempty p { margin: var(--none) var(--none) var(--sp-16); color: var(--c-text2); }
.gmore {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-6);
  width: var(--full); min-height: var(--more-h); padding: var(--none);
  border: var(--none); border-top: var(--hair) solid var(--c-divider); background: transparent;
  font-size: var(--t-small); font-weight: var(--w-label);
  transition: background-color var(--d-quick) var(--ease-out);
}
.gmore:hover { background: var(--c-tonal); }

/* ---------- 4 the group: guide rail + chat (film beats 9.0 to 13.7) ---------- */
.app { border-top: var(--hair) solid var(--c-divider); }
.rail {
  display: grid; grid-template-columns: auto var(--col-fluid); grid-template-areas: "me search" "scroll scroll";
  align-items: center; gap: var(--sp-12);
  padding: var(--sp-12) var(--gutter);
  border-bottom: var(--hair) solid var(--c-divider);
}
.rail-top { display: none; }
.rail-knit { font-family: var(--f-knit); font-weight: var(--w-knit); font-size: var(--t-knit-rail); letter-spacing: var(--tr-knit); line-height: var(--lh-none); }
.rail-tog { color: var(--c-text2); }
.rail-search {
  display: flex; align-items: center; gap: var(--sp-12); min-width: var(--none);
  min-height: max(var(--search-h), var(--target)); padding: var(--none) var(--sp-16);
  border: var(--hair) solid var(--c-search-line); border-radius: var(--r-full); background: var(--c-search);
  color: var(--c-text2); font-size: var(--t-small); text-decoration: none; white-space: nowrap;
}
.rail-search .i { width: var(--icon-sm); height: var(--icon-sm); }
.rail-search { grid-area: search; }
.rail-scroll {
  grid-area: scroll; display: flex; align-items: center; gap: var(--sp-8);
  overflow-x: auto; scrollbar-width: none;
}
.rail-scroll::-webkit-scrollbar { display: none; }
.rail-nav, .rail-groups { display: contents; list-style: none; margin: var(--none); padding: var(--none); }
.rail-nav li, .rail-groups li { flex: none; }
.rail-item, .rail-group {
  display: flex; align-items: center; gap: var(--sp-12); flex: none;
  min-height: var(--target); padding: var(--none) var(--sp-12);
  border-radius: var(--r-lg); text-decoration: none; font-size: var(--t-small);
  transition: background-color var(--d-quick) var(--ease-out);
}
.rail-item:hover, .rail-group:hover { background: var(--c-tonal); }
.rail-item .i { width: var(--icon); height: var(--icon); }
.rail-chk { width: var(--icon-sm); height: var(--icon-sm); margin-left: auto; }
.rail-label { margin: var(--none); }
.rail-group { padding: var(--sp-6) var(--sp-12) var(--sp-6) var(--sp-6); }
.rail-group[aria-current="page"] { background: var(--c-raised2); }
.rail-group img { width: var(--rail-thumb); height: var(--rail-thumb); border-radius: var(--r-sm); object-fit: cover; flex: none; }
.rail-gtext { display: grid; min-width: var(--none); line-height: var(--lh-snug); }
.rail-gname { font-weight: var(--w-label); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-snip { color: var(--c-text2); font-size: var(--t-caption); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-me { grid-area: me; display: flex; align-items: center; gap: var(--sp-12); line-height: var(--lh-snug); }
.rail-me img { width: var(--rail-thumb); height: var(--rail-thumb); border-radius: var(--r-round); object-fit: cover; }
.rail-mename { display: block; font-size: var(--t-small); font-weight: var(--w-label); white-space: nowrap; }
.rail-meloc { display: block; color: var(--c-text2); font-size: var(--t-caption); white-space: nowrap; }

.chat { min-width: var(--none); }
.chat-head {
  display: flex; align-items: center; gap: var(--sp-12);
  padding: var(--sp-12) var(--gutter); border-bottom: var(--hair) solid var(--c-divider);
}
.chat-id { flex: var(--grow); min-width: var(--none); }
.chat-name { margin: var(--none); font-size: var(--t-name); font-weight: var(--w-label); line-height: var(--lh-snug); }
.chat-meta { margin: var(--none); color: var(--c-text2); font-size: var(--t-caption); }
.faces-md img { width: var(--face-md); height: var(--face-md); border-color: var(--c-bg); }
.chat-col { display: flex; flex-direction: column; max-width: var(--chat-max); }
.log { list-style: none; margin: var(--none); padding: var(--sp-16) var(--gutter) var(--sp-24); display: grid; gap: var(--sp-16); }
.log-day { text-align: center; color: var(--c-text2); font-size: var(--t-caption); font-weight: var(--w-label); }
.log-sys { display: flex; justify-content: center; }
.sys {
  display: inline-flex; align-items: center; gap: var(--sp-8);
  padding: var(--sp-6) var(--sp-12); border-radius: var(--r-full); background: var(--c-tonal);
  font-size: var(--t-caption); line-height: var(--lh-snug); text-align: left;
}
.sys .i { width: var(--icon-xs); height: var(--icon-xs); color: var(--c-text2); }
.sys b { color: var(--c-red-text); font-weight: var(--w-label); }
.msg { display: grid; grid-template-columns: var(--av) var(--col-fluid); column-gap: var(--sp-12); }
.msg-av { width: var(--av); height: var(--av); border-radius: var(--r-round); object-fit: cover; }
.msg-head { display: flex; align-items: baseline; gap: var(--sp-8); margin: var(--none); line-height: var(--lh-snug); }
.msg-name { font-size: var(--t-small); font-weight: var(--w-label); }
.msg-time { color: var(--c-text2); font-size: var(--t-caption); }
.msg-text { margin: var(--sp-2) var(--none) var(--none); max-width: var(--measure); }
.msg-photo { width: var(--photo-w); height: auto; margin-top: var(--sp-8); border-radius: var(--r-lg); }
.event {
  display: grid; grid-template-columns: var(--ev-thumb) var(--col-fluid); gap: var(--sp-12);
  max-width: var(--event-w); margin-top: var(--sp-8); padding: var(--sp-12);
  border-radius: var(--r-lg); background: var(--c-raised2);
}
.ev-thumb { width: var(--ev-thumb); height: var(--ev-thumb); border-radius: var(--r-sm); object-fit: cover; }
.ev-title { margin: var(--none); font-weight: var(--w-label); line-height: var(--lh-snug); }
.ev-meta { margin: var(--none); color: var(--c-text2); font-size: var(--t-small); line-height: var(--lh-snug); }
.ev-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-8); margin-top: var(--sp-8); }
.ev-foot .faces img { border-color: var(--c-raised2); }
.ev-count { color: var(--c-text2); font-size: var(--t-small); }
.ev-foot .btn-tonal { margin-left: auto; }

/* composer: the film's search-box-style field (search fill, search hairline, blue focus) */
.composer {
  display: grid; gap: var(--sp-8); align-self: stretch;
  margin: var(--none) var(--gutter) var(--sp-24);
  padding: var(--sp-12) var(--sp-12) var(--sp-8) var(--sp-16);
  border: var(--hair) solid var(--c-search-line); border-radius: var(--r-lg);
  background: var(--c-search); color: var(--c-text); text-align: left; cursor: text;
  transition: border-color var(--d-quick) var(--ease-out);
}
.composer:hover, .composer.is-typing { border-color: var(--c-focus); }
.composer.is-typing { box-shadow: var(--ring-inset); }
.cmp-line { display: flex; align-items: center; min-height: var(--sp-24); white-space: nowrap; overflow: hidden; }
.cmp-ph { color: var(--c-text2); }
.cmp-caret { flex: none; width: var(--caret-w); height: var(--caret-h); background: var(--c-text); }
.cmp-bar { display: flex; align-items: center; gap: var(--sp-8); color: var(--c-text); }
.cmp-loc {
  display: inline-flex; align-items: center; gap: var(--sp-4);
  height: var(--loc-h); padding: var(--none) var(--sp-8) var(--none) var(--sp-6);
  border-radius: var(--r-sm); background: var(--c-tonal); font-size: var(--t-caption);
}
.cmp-loc .i { width: var(--icon-xs); height: var(--icon-xs); }
.cmp-sp { flex: var(--grow); }
.cmp-send {
  display: grid; place-items: center; width: var(--send); height: var(--send);
  border-radius: var(--r-round); background: var(--c-tonal); color: var(--c-disabled);
}
.cmp-send .i { width: var(--icon-sm); height: var(--icon-sm); }
.composer.has-draft .cmp-send { background: var(--c-text); color: var(--c-on-white); }

/* ---------- 5 the end card: flat accent red, white wordmark, "Find your people." ---------- */
.end {
  display: grid; justify-items: center; text-align: center; gap: var(--sp-16);
  padding: var(--sp-72) var(--gutter);
  background: var(--c-red); color: var(--c-white);
}
.end :focus-visible { outline-color: var(--c-white); }
.end-knit {
  margin: var(--none); font-family: var(--f-knit); font-weight: var(--w-knit); font-size: var(--t-end-knit);
  line-height: var(--lh-none); letter-spacing: var(--tr-knit);
}
.end-line { margin: var(--none); font-size: var(--t-end-line); font-weight: var(--w-label); line-height: var(--lh-snug); letter-spacing: var(--tr-display); }
.end-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-12); margin-top: var(--sp-16); }
.end-acts .btn-ink { min-height: var(--pill-lg); padding: var(--none) var(--sp-24); font-size: var(--t-body); }

/* Google button (contract markup), white pill in the band and in the dialog */
.gbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-12);
  min-height: var(--pill-lg); padding: var(--none) var(--sp-24) var(--none) var(--sp-16);
  border: var(--none); border-radius: var(--r-full); background: var(--c-text); color: var(--c-on-white);
  font-size: var(--t-body); font-weight: var(--w-label); line-height: var(--lh-none); white-space: nowrap;
  transition: background-color var(--d-quick) var(--ease-out);
}
.gbtn:hover { background: var(--c-white-hover); }
.gbtn:active { background: var(--c-white-press); }
.gbtn[aria-busy="true"] { cursor: progress; }
.gbtn .g { display: inline-grid; place-items: center; width: var(--icon-sm); height: var(--icon-sm); }
.gbtn .g svg { width: var(--full); height: var(--full); display: block; }

/* ---------- footer ---------- */
.foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-8) var(--sp-24);
  padding: var(--sp-24) max(var(--gutter), env(safe-area-inset-right)) max(var(--sp-24), env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  color: var(--c-text2); font-size: var(--t-small);
}
.foot-knit { font-family: var(--f-knit); font-weight: var(--w-knit); font-size: var(--t-title); letter-spacing: var(--tr-knit); color: var(--c-text); }
.foot-links { display: flex; gap: var(--sp-16); }
.foot-links a { display: inline-flex; align-items: center; min-height: var(--target); text-decoration: none; }
.foot-links a:hover { color: var(--c-text); text-decoration: underline; }

/* ---------- the auth dialog (ids and views verbatim from the original; dressed as the film's raised surface) ---------- */
.modal {
  width: min(var(--dialog-w), calc(var(--full) - var(--gutter) - var(--gutter)));
  max-height: calc(var(--vh-full) - var(--sp-32));
  padding: var(--sp-32) var(--sp-24) var(--sp-24);
  border: var(--none); border-radius: var(--r-lg);
  background: var(--c-raised); color: var(--c-text); text-align: center;
  opacity: var(--o-1); transform: none;
  transition: opacity var(--d-std) var(--ease-out), transform var(--d-std) var(--ease-out), overlay var(--d-std) allow-discrete, display var(--d-std) allow-discrete;
}
.modal:not([open]) { opacity: var(--o-0); transform: translateY(var(--rise)); }
@starting-style {
  .modal[open] { opacity: var(--o-0); transform: translateY(var(--rise)); }
}
.modal::backdrop { background: var(--c-scrim); }
.modal .view { display: grid; justify-items: center; }
.modal .close {
  position: absolute; top: var(--sp-8); right: var(--sp-8);
  display: grid; place-items: center; width: var(--target); height: var(--target); padding: var(--none);
  border: var(--none); border-radius: var(--r-round); background: transparent; color: var(--c-text);
  transition: background-color var(--d-quick) var(--ease-out);
}
.modal .close:hover { background: var(--c-tonal); }
.modal .wordmark {
  margin-bottom: var(--sp-12); font-family: var(--f-knit); font-weight: var(--w-knit); font-size: var(--t-knit-dialog);
  letter-spacing: var(--tr-knit); line-height: var(--lh-none);
}
.modal h2 { margin: var(--none); font-size: var(--t-title); font-weight: var(--w-label); line-height: var(--lh-snug); }
.modal .sub { margin: var(--sp-8) var(--none) var(--sp-24); color: var(--c-text2); font-size: var(--t-small); }
.modal .gbtn { width: var(--full); }
.modal .legal { margin: var(--sp-16) var(--none) var(--none); color: var(--c-text2); font-size: var(--t-caption); line-height: var(--lh-body); }
.modal .legal a { color: var(--c-text); }
.modal .switch { margin: var(--sp-16) var(--none) var(--none); color: var(--c-text2); font-size: var(--t-small); }
.modal .linkbtn {
  min-height: var(--target-min); padding: var(--none); border: var(--none); background: none;
  color: var(--c-text); font-weight: var(--w-label); text-decoration: underline;
}
.modal .soon-ic {
  display: grid; place-items: center; width: var(--soon); height: var(--soon); margin-bottom: var(--sp-16);
  border-radius: var(--r-round); background: var(--c-tonal); color: var(--c-text);
}
.modal .pill {
  display: flex; align-items: center; justify-content: center; width: var(--full);
  min-height: var(--pill-lg); margin-top: var(--sp-8); padding: var(--none) var(--sp-24);
  border: var(--none); border-radius: var(--r-full); background: var(--c-text); color: var(--c-on-white);
  font-size: var(--t-body); font-weight: var(--w-label);
  transition: background-color var(--d-quick) var(--ease-out);
}
.modal .pill:hover { background: var(--c-white-hover); }

/* ---------- touch: the 44 px floor rides the pointer, not the width (html[data-variant] outranks :root) ---------- */
@media (pointer: coarse) {
  html[data-variant] { --target: var(--target-coarse); }
}

/* ---------- expanded window (M3 840): the masthead search, the guide rail beside the chat ---------- */
@media (min-width: 840px) {
  html[data-variant] { --gutter: var(--gutter-lg); --emoji: var(--emoji-lg); --stage-h: var(--stage-h-lg); --thumb: var(--thumb-lg); }
  .mast { display: grid; grid-template-columns: var(--col-fluid) minmax(var(--none), var(--search-w)) var(--col-fluid); }
  .mast-search, .mast.is-searching .mast-search { display: flex; }
  .mast-back, .mast-find { display: none; }
  .mast-end { justify-self: end; }
  .scan { padding-top: var(--sp-48); }
  .groups { padding-top: var(--sp-48); }
  .chips { margin-top: var(--sp-24); }
  .app {
    display: grid; grid-template-columns: var(--rail-w) var(--col-fluid);
    max-width: var(--app-max); margin-inline: auto;
    border-inline: var(--hair) solid var(--c-divider);
  }
  .rail {
    position: sticky; top: var(--mast-h); align-self: start;
    display: flex; flex-direction: column; align-items: stretch; gap: var(--sp-4);
    height: var(--rail-h); overflow-y: auto;
    padding: var(--sp-12); border-bottom: var(--none);
  }
  .chat { border-left: var(--hair) solid var(--c-divider); }
  .rail-top { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-8) var(--sp-8) var(--sp-12) var(--sp-12); }
  .rail-search { margin-bottom: var(--sp-8); }
  .rail-scroll { display: grid; gap: var(--sp-4); overflow: visible; }
  .rail-nav, .rail-groups { display: grid; gap: var(--sp-4); }
  .rail-label {
    margin-top: var(--sp-12); padding: var(--sp-16) var(--sp-12) var(--sp-4);
    border-top: var(--hair) solid var(--c-divider); font-weight: var(--w-label);
  }
  .rail-label.sr { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .rail-me { margin-top: auto; padding: var(--sp-12) var(--sp-8) var(--sp-4); }
  .chat-head { position: sticky; top: var(--mast-h); z-index: var(--z-head); background: var(--c-bg); }
}

/* ---------- reduced motion: every animation and transition in this file stops ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .scan-dots i { opacity: var(--o-1); }
}


/* ---------- mobile floor (<=839px): 44 px thumb targets, no sideways scroll, band clear of the fold ---------- */
@media (max-width: 839px) {
  /* every auth / chip / rail / join control is a real thumb target, not the desktop 36 px */
  html[data-variant] { --target: 44px; }
  /* the filter chips (473 px) wrap instead of scrolling sideways in a 358 px box */
  .chips { flex-wrap: wrap; overflow-x: visible; }
  /* the group rail (505 px) wraps instead of scrolling sideways */
  .rail-scroll { flex-wrap: wrap; overflow-x: visible; }
  .rail-item, .rail-group { max-width: var(--full); }
  /* pull the red sign-up band up so its Google CTA clears the 844 fold (was 855) and the band clears 640 at 360 */
  .scan { padding-bottom: var(--sp-24); }
  .scan-lede { margin-top: var(--sp-8); }
  .end { padding-top: var(--sp-48); }
}

/* ============================================================================
   r5-stream page layer -- Substack's architecture (https://substack.com/):
   NO hero and NO headline; the first screen is a live feed, and the sign-up
   prompt is a CARD seeded into the stream. Only the classes below are new.
   ============================================================================ */
.st-bar {
  position: sticky; top: var(--none); z-index: var(--z-mast);
  display: flex; align-items: center; gap: var(--sp-12);
  height: var(--mast-h);
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
  background: var(--c-bg); border-bottom: var(--hair) solid var(--c-divider);
}
.st-knit {
  display: inline-flex; align-items: center; min-height: var(--target);
  font-family: var(--f-knit); font-weight: var(--w-knit); font-size: var(--t-knit-mast);
  letter-spacing: var(--tr-knit); line-height: var(--lh-none); text-decoration: none;
}
.st-tabs { display: flex; gap: var(--sp-4); min-width: var(--none); overflow-x: auto; scrollbar-width: none; }
.st-tabs::-webkit-scrollbar { display: none; }
.st-tab {
  flex: none; min-height: var(--target); padding: var(--none) var(--sp-12);
  border: var(--none); border-radius: var(--r-full); background: transparent; color: var(--c-text2);
  font-size: var(--t-small); font-weight: var(--w-label); line-height: var(--lh-none); white-space: nowrap;
  transition: background-color var(--d-quick) var(--ease-out), color var(--d-quick) var(--ease-out);
}
.st-tab:hover { background: var(--c-tonal); color: var(--c-text); }
.st-tab[aria-current="true"] { background: var(--c-tonal); color: var(--c-text); }
.st-end { display: flex; align-items: center; gap: var(--sp-8); margin-left: auto; }

.st { max-width: 640px; margin-inline: auto; padding: var(--sp-16) var(--gutter) var(--sp-64); }
.st-live {
  display: inline-flex; align-items: center; gap: var(--sp-6); margin: var(--none) var(--none) var(--sp-12);
  color: var(--c-text2); font-size: var(--t-small); font-weight: var(--w-label);
}
.st-live i { display: block; width: 8px; height: 8px; border-radius: var(--r-round); background: var(--c-red); }
.st-feed { list-style: none; margin: var(--none); padding: var(--none); display: grid; gap: var(--sp-12); }

/* the sign-up card, seeded into the stream like a post */
.st-ccard {
  display: grid; justify-items: start; gap: var(--sp-8);
  padding: var(--sp-24); border-radius: var(--r-lg);
  background: var(--c-red-tonal); box-shadow: inset 0 0 0 var(--hair) var(--c-red);
}
.st-ccard-sm { justify-items: start; }
.st-cjoin { margin: var(--none); color: var(--c-red-text); font-size: var(--t-caption); font-weight: var(--w-strong); letter-spacing: 0.02em; text-transform: uppercase; }
.st-ch { margin: var(--none); font-family: var(--f-display); font-weight: var(--w-display); font-size: var(--t-title); line-height: var(--lh-snug); letter-spacing: var(--tr-display); }
.st-csub { margin: var(--none); color: var(--c-text2); font-size: var(--t-small); }

/* a post */
.st-post {
  display: grid; grid-template-columns: var(--av) minmax(var(--none), 1fr); gap: var(--sp-12);
  padding: var(--sp-16); border-radius: var(--r-lg); background: var(--c-raised);
}
.st-av { width: var(--av); height: var(--av); border-radius: var(--r-round); object-fit: cover; }
.st-body { min-width: var(--none); display: grid; gap: var(--sp-8); }
.st-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--sp-6); margin: var(--none); }
.st-name { font-weight: var(--w-strong); }
.st-grp { color: var(--c-text2); font-size: var(--t-small); }
.st-time { margin-left: auto; color: var(--c-text2); font-size: var(--t-caption); }
.st-text { margin: var(--none); line-height: var(--lh-body); }
.st-photo { width: var(--full); height: auto; border-radius: var(--r-lg); }
.st-row { display: flex; flex-wrap: wrap; gap: var(--sp-8); }
.st-i {
  display: inline-flex; align-items: center; gap: var(--sp-6); min-height: var(--target); padding: var(--none) var(--sp-12);
  border: var(--none); border-radius: var(--r-full); background: var(--c-tonal); color: var(--c-text);
  font-size: var(--t-small); font-weight: var(--w-label); line-height: var(--lh-none); white-space: nowrap;
  transition: background-color var(--d-quick) var(--ease-out), color var(--d-quick) var(--ease-out);
}
.st-i:hover { background: var(--c-tonal-hover); }
.st-i .i { width: var(--icon-xs); height: var(--icon-xs); }
.st-in { background: var(--c-red-tonal); color: var(--c-red-text); }
.st-in:hover { background: var(--c-red-tonal); color: var(--c-text); }

@media (max-width: 600px) {
  .st-tabs .st-tab:nth-child(n + 2) { display: none; }
}
@media (max-width: 380px) {
  .st-tabs { display: none; }
}
