/* ===========================================================
   THE FLIP MACHINE - stylesheet
   Fonts: Fraunces (display) / Fjalla One (signage) / Hanken Grotesk (body)

   Ported from the standalone prototype (reference/prototype/styles.css in
   this plugin's own history). Two changes were needed to survive inside a
   real WordPress theme, and nothing else was restyled:

   1. Every class is prefixed `fm-` and every rule is scoped under the
      shortcode's own `.fm` root. The prototype owned the whole document,
      so it could style bare `body`, `h1`, `*` and generic names like
      `.grid` / `.ticket` / `.badge`. Inside consulting-wp those names are
      already taken, in both directions: the theme would repaint the
      cabinet, and the cabinet would repaint the theme.
   2. The custom properties live on `.fm`, not `:root`, for the same reason.
      Dark mode therefore keys off `.fm` too.
   =========================================================== */

.fm{
  --fm-bg: #F3ECDD;
  --fm-panel: #2C222A;
  --fm-panel-edge: #382A34;
  --fm-cabinet: #1D161C;
  --fm-bezel: #DCD3BE;
  --fm-bezel-shadow: rgba(29,22,28,0.45);
  --fm-chrome: #AE9C81;
  --fm-chrome-bright: #E9DFC7;
  --fm-ink: #201720;
  --fm-muted: #756658;
  --fm-card-bg: #F7F2E5;
  --fm-card-ink: #201720;
  --fm-card-muted: #7A6C5C;
  --fm-accent: #9C7A45;
  --fm-ring: rgba(32,23,32,0.14);
  --fm-shadow-lg: 0 30px 60px -20px rgba(20,14,18,0.35);
  --fm-shadow-md: 0 14px 28px -14px rgba(20,14,18,0.4);

  /* flavor cap hues. Spaced around the wheel on purpose, so no two caps that
     sit next to each other in the 4-up grid read as the same colour, and so
     every one of them is a colour with an opinion - there is no "neutral"
     cap any more (see FLAVOR_HUES / AUTO_HUES in flip-machine-logic.js).
     The chrome treatment the Custom Flip and every wp-admin-added flavor
     used to get read as a disabled button rather than a quiet one. */
  --fm-c-word: #B8402A;      --fm-c-word-deep: #7E2A1B;   /* vermilion  ~ 12deg */
  --fm-c-hero: #C08529;      --fm-c-hero-deep: #855A18;   /* gold       ~ 38deg */
  --fm-c-badidea: #8CA62B;   --fm-c-badidea-deep: #55651A; /* acid lime ~ 74deg */
  --fm-c-custom: #2FA36B;    --fm-c-custom-deep: #17663F;  /* emerald   ~150deg */
  --fm-c-song: #327764;      --fm-c-song-deep: #1E4E41;   /* pine teal  ~162deg */
  --fm-c-feedback: #2E7A8C;  --fm-c-feedback-deep: #1E4F5C; /* cyan     ~191deg */
  --fm-c-story: #385C86;     --fm-c-story-deep: #223A5B;  /* navy       ~212deg */
  --fm-c-nostalgia: #5C56B8; --fm-c-nostalgia-deep: #35306F; /* twilight indigo ~244deg */
  --fm-c-account: #6B4A87;   --fm-c-account-deep: #452F5B; /* violet    ~274deg */
  --fm-c-mystery: #AE3E96;   --fm-c-mystery-deep: #6E2159; /* magenta   ~309deg */
  --fm-c-critic: #8C3450;    --fm-c-critic-deep: #5C2035;  /* wine      ~340deg */

  /* Format-slot tints. Colour is the TYPE signal here, so these are grouped
     by what kind of action the slot is, not one per slug - see FORMAT_HUES in
     flip-machine-logic.js, which names the groups. Re-colouring a group is
     this block and nothing else.

     The old palette was two golds and a grey, which read as "primary,
     primary, disabled" rather than as three different kinds of act. These
     draw on the same flavor hues the caps above use, so the whole cabinet is
     one colour system. */
  --fm-fmt-book:   var(--fm-c-song);      --fm-fmt-book-deep:   var(--fm-c-song-deep);      /* Standard, Deal Slot - book and pay */
  --fm-fmt-trade:  var(--fm-c-nostalgia); --fm-fmt-trade-deep:  var(--fm-c-nostalgia-deep); /* Case Study - trade something else */
  --fm-fmt-studio: var(--fm-c-critic);    --fm-fmt-studio-deep: var(--fm-c-critic-deep);    /* Open Design Studio - show up */
  --fm-fmt-ask:    #4E6E8C;               --fm-fmt-ask-deep:    #2E4A63;                    /* Tell me more, I'm interested - commit to nothing */
  --fm-fmt-vote:   var(--fm-c-mystery);   --fm-fmt-vote-deep:   var(--fm-c-mystery-deep);   /* Vote to promote - spend influence */
  --fm-fmt-read:   var(--fm-c-custom);    --fm-fmt-read-deep:   var(--fm-c-custom-deep);    /* Read reviews - find out how it went */

  /* The login prompt in the Vote-to-promote branch, which is the only place
     it ever appears - so it wears that slot's colour. The step-3 sub-choice
     cards used to share this one fixed tint too; they now take a hue each
     from the flavor palette (OUTPUT_HUES / CASE_STUDY_HUES). */
  --fm-branch: var(--fm-fmt-vote);      --fm-branch-deep: var(--fm-fmt-vote-deep);

  /* ----- the token, and the two holes it has to fit through -----
     The token was 52px across and the slot it dropped into had a 26px
     opening: it was visibly twice the size of the thing it went into, which
     makes the whole machine read as a picture of a machine rather than as
     one. So the coin's diameter is a single number here and every aperture
     is derived from it, which is the only way the two cannot drift apart
     again.

     The coin's RING counts. `.fm-coin` carries a 3px spread box-shadow
     outside its border-box, so what the eye measures is the diameter plus
     6px - hence --fm-coin-span, which is what the apertures are sized from,
     not --fm-coin-size.

     And the LIP does not count. The mouth of a slot is a raised metal
     surround framing a carved-in slit; only the slit is a hole. Sizing the
     surround to the coin, which is what a naive reading of "make the slot
     as big as the token" gives you, still leaves an opening far too small.
     So the surround is the opening PLUS the lip, in that direction. */
  --fm-coin-size: 52px;
  --fm-coin-ring: 3px;
  --fm-coin-span: calc(var(--fm-coin-size) + var(--fm-coin-ring) * 2);
  /* Slop, so the token passes through rather than scraping past. */
  --fm-mouth-clearance: 6px;
  --fm-mouth-open-w: calc(var(--fm-coin-span) + var(--fm-mouth-clearance));
  --fm-mouth-open-h: 7px;
  /* The raised surround, per side. Not part of the opening. */
  --fm-mouth-lip-x: 8px;
  --fm-mouth-lip-y: 5px;

  background: var(--fm-bg);
  color: var(--fm-ink);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 72px) clamp(18px, 5vw, 40px) clamp(60px, 8vw, 100px);
  overflow-x: hidden;
}

@media (prefers-color-scheme: dark){
  .fm:not([data-theme="light"]){
    --fm-bg: #13101A;
    --fm-panel: #26202B;
    --fm-panel-edge: #332A37;
    --fm-cabinet: #17121B;
    --fm-bezel: #423846;
    --fm-bezel-shadow: rgba(0,0,0,0.55);
    --fm-chrome: #C6B99E;
    --fm-chrome-bright: #EEE5CE;
    --fm-ink: #F1E9DA;
    --fm-muted: #B4A899;
    --fm-accent: #D2AC6C;
    --fm-ring: rgba(241,233,218,0.16);
    --fm-shadow-lg: 0 30px 70px -20px rgba(0,0,0,0.6);
    --fm-shadow-md: 0 14px 32px -14px rgba(0,0,0,0.6);
  }
}
.fm[data-theme="dark"]{
  --fm-bg: #13101A;
  --fm-panel: #26202B;
  --fm-panel-edge: #332A37;
  --fm-cabinet: #17121B;
  --fm-bezel: #423846;
  --fm-bezel-shadow: rgba(0,0,0,0.55);
  --fm-chrome: #C6B99E;
  --fm-chrome-bright: #EEE5CE;
  --fm-ink: #F1E9DA;
  --fm-muted: #B4A899;
  --fm-accent: #D2AC6C;
  --fm-ring: rgba(241,233,218,0.16);
  --fm-shadow-lg: 0 30px 70px -20px rgba(0,0,0,0.6);
  --fm-shadow-md: 0 14px 32px -14px rgba(0,0,0,0.6);
}

.fm, .fm *, .fm *::before, .fm *::after{ box-sizing: border-box; }

/* ---------- marquee ---------- */
.fm-marquee{
  text-align: center;
  margin-bottom: clamp(32px, 5vw, 48px);
  animation: fm-rise 700ms cubic-bezier(.2,.8,.2,1) both;
}
.fm-eyebrow{
  font-family: "Fjalla One", system-ui, sans-serif;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--fm-accent);
  text-transform: uppercase;
  margin: 0 0 14px;
}
.fm .fm-title{
  font-family: "Fraunces", Georgia, serif;
  font-weight: 650;
  font-size: clamp(38px, 7vw, 66px);
  line-height: 1.03;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  padding: 0;
  color: var(--fm-ink);
  text-transform: none;
  text-wrap: balance;
}
.fm .fm-title em{ font-style: italic; font-weight: 500; color: var(--fm-accent); }
.fm .fm-title::after{ content: none; }
.fm-sub{
  max-width: 48ch;
  margin: 0 auto;
  color: var(--fm-muted);
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.55;
}
.fm-sub strong{ color: var(--fm-ink); font-weight: 600; }

/* ---------- resolution legend ---------- */
.fm-legend{
  max-width: 640px;
  margin: 24px auto clamp(30px, 5vw, 46px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--fm-ring);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--fm-ring);
}
.fm-legend div{ background: var(--fm-bg); padding: 14px 10px; text-align: center; }
.fm-legend .fm-tier{
  font-family: "Fjalla One", system-ui, sans-serif;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fm-ink); display: block; margin-bottom: 3px;
}
.fm-legend .fm-desc{ font-size: 12.5px; color: var(--fm-muted); }

.fm-value-line{
  text-align: center;
  margin: -14px 0 clamp(30px, 5vw, 46px);
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(14px, 1.6vw, 16px);
  color: var(--fm-muted);
}

/* ---------- LOOK: the calm bird's-eye view before the cabinet opens ----------
   A first state in front of today's cabinet (2026-09-24T1658). Server-
   rendered and printed `hidden` (see AJCFM_Shortcode::look_section()); the
   inline script printed right after [data-fm-root] opens is the only thing
   that ever removes that attribute, so there is no flash of the cabinet on a
   fresh load either way. Cabinet-coloured, like the studio block below it,
   because it stands where the cabinet itself would otherwise be. */
.fm-look-block{
  background: linear-gradient(180deg, var(--fm-panel-edge), var(--fm-panel) 8%, var(--fm-panel) 92%, var(--fm-panel-edge));
  border-radius: 30px;
  padding: clamp(22px, 5vw, 36px) clamp(16px, 4vw, 28px);
  box-shadow: var(--fm-shadow-lg), inset 0 1px 0 rgba(255,255,255,0.05);
  text-align: center;
  color: var(--fm-chrome-bright);
}
.fm-look-block[hidden]{ display: none; }

/* ---------- the invite strip (2026-09-24T1659) ----------
   The empty slot T1658 already reserves (`data-fm-invite-strip`), filled by
   flip-machine.js once admin-ajax has answered - never anything server-
   rendered here, because no invite data is ever printed into page HTML. */
.fm-look-invite{
  margin: 0 0 clamp(18px, 4vw, 28px);
  text-align: left;
}
.fm-look-invite[hidden]{ display: none; }
.fm-invite-note{
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(0,0,0,0.22);
  border: 1px solid color-mix(in srgb, var(--fm-c-hero) 30%, transparent);
  color: var(--fm-chrome-bright);
  font-size: 15px;
  line-height: 1.5;
}
.fm-invite-note p:first-child{ margin-top: 0; }
.fm-invite-note p:last-child{ margin-bottom: 0; }
/* For a logged-in admin only - see AJCFM_Invites::current_user_is_admin().
   Lets Andrew tell a dead link from a live one without opening wp-admin. */
.fm-invite-admin-marker{
  display: inline-block;
  margin-top: 6px;
  font-family: "Fjalla One", system-ui, sans-serif;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fm-muted);
}

.fm-look-flavors{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 14px; /* reserved so the line under it never jumps when JS fills the row */
  margin: 0 0 10px;
}
.fm-look-pip{
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--fm-tint, var(--fm-chrome));
  box-shadow: inset 0 0 0 1px var(--fm-tint-deep, var(--fm-chrome-bright));
}
.fm-look-flavors-line{
  margin: 0 0 clamp(20px, 4vw, 32px);
  font-size: 13px;
  color: var(--fm-chrome);
}

.fm-look-figure-wrap{
  max-width: 420px;
  margin: 0 auto clamp(20px, 4vw, 32px);
}
.fm-look-levels-label{
  margin: 0 0 8px;
  font-family: "Fjalla One", system-ui, sans-serif;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fm-chrome);
}
/* This figure's gates_figure() call carries its OWN id suffix ("Look") so
   its gradient ids never collide with the full "four levels" section's own
   fmgThrow/fmgThrowv/fmgMine/fmgMinev ids further down the page - a
   collision makes Chrome drop BOTH copies' gradients. Scoped selectors
   here, rather than the bare `.fm .fmg-fig-wide .fmg-throw` rule in the
   four-levels block below, are what point this smaller figure at ITS OWN
   defs instead of the other section's. */
.fm .fm-look-figure .fmg-fig-wide .fmg-throw{ fill: url(#fmgThrowLook); }
.fm .fm-look-figure .fmg-fig-wide .fmg-mine{ fill: url(#fmgMineLook); }

.fm-look-costs{ margin: 0 0 clamp(24px, 4vw, 36px); }
.fm-look-costs-label{
  margin: 0 0 10px;
  font-family: "Fjalla One", system-ui, sans-serif;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fm-chrome);
}
.fm-look-cost-list{
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fm-look-cost-row{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 8px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 14px;
  text-align: left;
}
.fm-look-cost-name{ color: var(--fm-chrome-bright); }
.fm-look-cost-price{ color: var(--fm-chrome); font-variant-numeric: tabular-nums; margin-left: auto; }
.fm-look-cost-not-yet{
  font-family: "Fjalla One", system-ui, sans-serif;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fm-muted);
}
/* FOR YOU, first and highlighted - Andrew's terms, not a public price. */
.fm-look-cost-row--invite{
  border-radius: 8px;
  border-bottom-color: transparent;
  background: color-mix(in srgb, var(--fm-c-hero) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fm-c-hero) 40%, transparent);
}
.fm-look-cost-row--invite .fm-look-cost-name{
  font-family: "Fjalla One", system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.fm-look-cost-row--invite .fm-look-cost-price{ color: var(--fm-chrome-bright); text-align: right; }
/* The invite's one rate line (2026-11-10T1615), under its price, in the
   same unit as the public rows below it. */
.fm-look-cost-rate{
  display: block;
  font-family: "Fjalla One", system-ui, sans-serif;
  font-size: 15px; letter-spacing: 0.04em;
}

.fm-look-open-btn{
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 14px 30px;
  font-family: "Fjalla One", system-ui, sans-serif;
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fm-cabinet);
  background: var(--fm-c-hero);
  cursor: pointer;
  transition: transform 140ms ease, filter 140ms ease;
}
.fm-look-open-btn:hover{ filter: brightness(1.06); transform: translateY(-1px); }
.fm-look-open-btn:active{ transform: translateY(1px); }
.fm-look-open-btn:focus-visible{ outline: 3px solid var(--fm-chrome-bright); outline-offset: 3px; }

/* ---------- cabinet ---------- */
.fm-cabinet{
  position: relative;
  background: linear-gradient(180deg, var(--fm-panel-edge), var(--fm-panel) 8%, var(--fm-panel) 92%, var(--fm-panel-edge));
  border-radius: 30px;
  padding: clamp(16px, 4vw, 28px);
  box-shadow: var(--fm-shadow-lg), inset 0 1px 0 rgba(255,255,255,0.05);
}
.fm-cabinet::before{
  content: "";
  position: absolute; inset: 10px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.06);
  pointer-events: none;
}

/* ---------- LOOK -> OPEN: the cabinet, hidden by LOOK, transitions in ----------
   .fm-look on the root is the ONLY thing this hides - the marquee, legend,
   review rail and everything below the cabinet stay exactly where they are
   (see AJCFM_Shortcode::look_state_script()). Going to OPEN adds a transient
   pair of classes (Machine.prototype.openFromLook()) that fade and lift the
   cabinet in with a real CSS transition, so `transitionend` genuinely fires -
   revealPanel() waits on it to know the cabinet's rendered height is real. */
.fm-look [data-fm-cabinet]{ display: none; }
[data-fm-cabinet].fm-cabinet-revealing{
  display: block;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms ease, transform 420ms ease;
}
[data-fm-cabinet].fm-cabinet-revealing.fm-cabinet-revealed{
  opacity: 1;
  transform: translateY(0);
}
.fm-rail{
  display: flex; justify-content: space-between; align-items: center;
  padding: 2px 10px 18px; color: var(--fm-chrome);
}
.fm-rail .fm-dot{ width: 8px; height: 8px; border-radius: 50%; background: var(--fm-chrome); opacity: 0.5; }
.fm-rail .fm-brand{
  font-family: "Fjalla One", system-ui, sans-serif;
  font-size: 11.5px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--fm-chrome-bright); opacity: 0.85;
}
/* Mobile: "Press flavor · mint a token · spend it" is too long to sit
   between the two pips without colliding. The pips are pure ambience (they
   carry no state), so below the point the brand line needs the room, they
   drop and the line gets to breathe centered on its own. */
@media (max-width: 520px){
  .fm-rail{ justify-content: center; padding-bottom: 14px; }
  .fm-rail .fm-dot{ display: none; }
  .fm-rail .fm-brand{
    font-size: 10.5px;
    letter-spacing: 0.16em;
    text-align: center;
    line-height: 1.4;
  }
}

/* ---------- loading: the cabinet "warming up" before the catalog lands ----------
   Server-rendered so the very first paint already reads as "working", not
   "broken" - a hard cache-bust or a slow REST route used to mean a blank
   cabinet for a beat, which reads as nothing loaded at all. JS lifts
   fm-is-loading the instant renderGrid()/renderSlotBank() actually run. */
.fm-cabinet.fm-is-loading{
  animation: fm-cabinet-breathe 2.4s ease-in-out infinite;
}
@keyframes fm-cabinet-breathe{
  0%, 100%{ box-shadow: var(--fm-shadow-lg), inset 0 1px 0 rgba(255,255,255,0.05), 0 0 0 0 rgba(0,0,0,0); }
  50%{ box-shadow: var(--fm-shadow-lg), inset 0 1px 0 rgba(255,255,255,0.05), 0 0 40px -4px color-mix(in srgb, var(--fm-accent) 35%, transparent); }
}
.fm-loading-label{
  display: none;
  align-items: center; justify-content: center; gap: 9px;
  margin: -4px 0 16px;
  font-family: "Fjalla One", system-ui, sans-serif;
  font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fm-chrome-bright);
  opacity: 0.75;
}
.fm-cabinet.fm-is-loading .fm-loading-label{ display: flex; }
.fm-loading-coin{
  width: 15px; height: 15px;
  border-radius: 50%;
  flex: none;
  background: radial-gradient(120% 120% at 30% 24%, color-mix(in srgb, var(--fm-accent) 60%, white 30%) 0%, var(--fm-accent) 55%, color-mix(in srgb, var(--fm-accent) 65%, black 25%) 100%);
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--fm-accent) 60%, black 15%);
  animation: fm-loading-coin-flip 900ms cubic-bezier(.5,0,.5,1) infinite;
}
@keyframes fm-loading-coin-flip{
  0%{ transform: scaleX(1) rotate(0deg); }
  50%{ transform: scaleX(0.15) rotate(180deg); }
  100%{ transform: scaleX(1) rotate(360deg); }
}

/* Skeleton plates: the exact bezel shape with a shimmer instead of a cap -
   "the buttons are being prepared", not an empty grid. renderGrid() /
   renderSlotBank() overwrite this markup outright, so it never has to be kept
   in sync with the real catalog. */
.fm-skel-cap{
  width: 100%; height: 100%;
  border-radius: 13px;
  background: linear-gradient(100deg, var(--fm-bezel) 25%, color-mix(in srgb, var(--fm-bezel) 55%, white 30%) 50%, var(--fm-bezel) 75%);
  background-size: 220% 100%;
  animation: fm-skel-shimmer 1.7s ease-in-out infinite;
  opacity: 0.6;
}
/* A skeleton plate has no cap inside it to give it a height, and since a
   plate is no longer shaped by an aspect-ratio (see .fm-plate) there is
   nothing else to stand it up either. This is the one place a plate carries
   its own height. It stays `grid` like every other plate so .fm-skel-cap,
   which is the bezel, actually fills it. */
.fm-plate.fm-skel{ min-height: 128px; }
@keyframes fm-skel-shimmer{
  0%{ background-position: 130% 0; }
  100%{ background-position: -30% 0; }
}

/* UNIFORM PLATES. This grid, .fm-slot-bank and the .fm-branch-grid family all
   carry the same three properties, and all three are load-bearing rather than
   decorative - see "Uniform plates" in README.md.

   `minmax(0, 1fr)` rather than `1fr`: a bare `1fr` is `minmax(auto, 1fr)`, so
   one long unbreakable label (ACCOUNTABILITY) raises its column's min-content
   floor and that column comes out wider than the other three. Columns must be
   identical, so the floor goes to 0 and .fm-label wraps instead.

   `grid-auto-rows: 1fr` levels every row in the section to the same height -
   the tallest row's, so nothing is truncated to get there - which is what
   makes uniformity per-SECTION and not merely per-row. `align-items: stretch`
   is what then makes each plate actually fill the row it was given. */
.fm-grid{
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: clamp(10px, 1.6vw, 16px);
}
@media (max-width: 860px){ .fm-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px){ .fm-grid{ grid-template-columns: minmax(0, 1fr); } }

/* ---------- the review rail ----------
   Andrew's worry about this was the right one: a rotating banner of
   testimonials is a hair away from a carnival hoarding. Three rules keep it
   the other side of that line, and all three are load-bearing.

   1. IT ONLY MOVES WHEN IT HAS TO. The carousel class is added by
      measurement, not by default - see syncRailMotion(). Content that fits
      sits perfectly still.
   2. IT CAROUSELS, IT DOES NOT DRIFT. This was the other way round first, on
      the theory that a constant slow crawl is calmer than something that
      jumps. Watching it says otherwise: continuous motion in the corner of
      the eye is the nauseating one, and a step followed by a rest is what
      lets the eye settle and actually read. One card-width step, a five-
      second dwell, an ease that decelerates into the stop.
   3. IT STOPS WHEN LOOKED AT. Hover or focus anywhere in the rail pauses it,
      because sliding a sentence away from someone who started reading it is
      the single most annoying thing this could do.

   The edges fade into the page rather than ending at a hard border, so it
   reads as a strip of something larger passing by, not as a widget. */
.fm-rail-wrap{
  margin: 0 0 clamp(26px, 4vw, 40px);
}
.fm-rail-wrap.fm-is-empty{ display: none; }
.fm-rail-label{
  margin: 0 0 10px;
  font-family: "Fjalla One", system-ui, sans-serif;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fm-muted);
  text-align: center;
}
.fm-rail-track{
  display: flex;
  gap: 14px;
  align-items: stretch;
  /* The fade is a mask rather than a pair of gradient overlays, so it works
     over whatever the page background happens to be. */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  overflow: hidden;
  padding: 2px 0;
}
.fm-rail-track.fm-is-carousel{
  width: max-content;
  will-change: transform;
}

/* A review card. The flavor cap's colour and materials at a quieter volume -
   it is a quotation, not a control, so it gets the tint and the bevel but not
   the 3D press or the gloss. */
/* NOTE ON COLOUR. The rail sits above the cabinet, on the PAGE background -
   which is light in light mode - not on the cabinet's permanently-dark
   interior. So these use --fm-ink and --fm-muted (which flip with the theme)
   rather than --fm-chrome-bright (which is cream in both, and is correct
   only inside the cabinet). Getting this wrong renders cream on cream. The
   tint is applied as a translucent wash for the same reason: it has to work
   over whichever background the page happens to have. */
.fm-review{
  flex: 0 0 auto;
  width: clamp(230px, 26vw, 310px);
  margin: 0;
  padding: 14px 16px 13px;
  border-radius: 13px;
  background: linear-gradient(165deg,
    color-mix(in srgb, var(--fm-tint) 20%, transparent),
    color-mix(in srgb, var(--fm-tint) 7%, transparent));
  border: 1px solid color-mix(in srgb, var(--fm-tint) 30%, transparent);
  border-left: 3px solid color-mix(in srgb, var(--fm-tint) 72%, transparent);
  box-shadow: 0 8px 18px -14px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.fm-review-tag{
  display: flex; align-items: center; gap: 7px;
  font-family: "Fjalla One", system-ui, sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--fm-tint) 60%, var(--fm-ink) 40%);
}
.fm-review-icon{
  width: 15px; height: 15px; flex: none;
  stroke: currentColor; fill: none; stroke-width: 1.7;
}
.fm-review-quote{
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--fm-ink);
}
.fm-review-who{
  margin-top: auto;
  font-size: 12px;
  color: var(--fm-muted);
}
/* Inside the "Read reviews" panel the same card IS on the cabinet's dark
   interior, so it goes back to the cabinet's own text colours. */
.fm-review-grid .fm-review-quote{ color: var(--fm-chrome-bright); }
.fm-review-grid .fm-review-who{ color: var(--fm-chrome); }
.fm-review-grid .fm-review-tag{ color: color-mix(in srgb, var(--fm-tint) 45%, var(--fm-chrome-bright) 55%); }

/* In the "Read reviews" panel they are a grid rather than a rail: nothing is
   passing by, you asked to see all of them. */
.fm-review-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
  margin: 0 0 20px;
}
.fm-review-grid .fm-review{ width: auto; }

/* ---------- plate bezel + button cap (retro plastic button) ---------- */
/* THE PLATE IS A GRID, AND THAT IS THE WHOLE FIX. The bezel is what you can
   actually see - the grey frame - and it used to be sized by `height: 100%`,
   which never resolved: a percentage height needs a parent with a definite
   height, and .fm-plate's computed height is `auto`. (It carried
   `aspect-ratio: 3 / 3.6`, but an aspect-ratio sets a box's USED size; it
   does not make its computed height definite for a child to measure against.)
   So the plate reserved a 3:3.6 slot in the grid and the bezel inside it drew
   itself at whatever height its own copy happened to need - which is a
   different height for every flavor, because .fm-cap-excerpt reserves one
   line box per line of that flavor's teaser. Ragged bezels inside tidy rows,
   with dead space under each one.

   As a single-cell grid container the bezel is a grid item and simply
   stretches to the plate in both axes, with no percentage to resolve. The
   height itself now comes from the section (grid-auto-rows: 1fr above), which
   is what makes every plate in the section the same box.

   `aspect-ratio` is deliberately gone rather than fixed. Once the bezel
   really does fill the plate, a locked 3:3.6 stops being a proportion and
   becomes a tower: at the one-column breakpoint a 390px-wide column would
   have made a 468px-tall button. Height is levelled across the section
   instead, which holds at every breakpoint and cannot run away. */
.fm-plate{
  position: relative;
  display: grid;
  min-width: 0;
}
.fm-bezel{
  display: grid;
  min-width: 0; min-height: 0;
  width: 100%; height: 100%;
  border-radius: 18px;
  padding: 8px;
  background: linear-gradient(155deg, var(--fm-bezel), color-mix(in srgb, var(--fm-bezel) 80%, #000));
  box-shadow:
    inset 0 2px 3px rgba(255,255,255,0.55),
    inset 0 -3px 6px var(--fm-bezel-shadow),
    0 2px 4px rgba(0,0,0,0.15);
}

.fm .fm-cap{
  all: unset;
  box-sizing: border-box;
  display: flex;
  cursor: pointer;
  width: 100%; height: 100%;
  border-radius: 13px;
  padding: 15px 13px 11px;
  flex-direction: column;
  justify-content: space-between;
  color: var(--fm-chrome-bright);
  background: radial-gradient(120% 90% at 28% 18%, color-mix(in srgb, var(--fm-tint) 60%, white 20%) 0%, var(--fm-tint) 42%, var(--fm-tint-deep) 100%);
  box-shadow:
    inset 0 3px 2px rgba(255,255,255,0.55),
    inset 0 -10px 16px rgba(0,0,0,0.28),
    0 7px 0 var(--fm-tint-deep),
    0 12px 18px -6px rgba(0,0,0,0.5);
  transform: translateY(0) scale(1);
  transition: transform 140ms cubic-bezier(.2,.7,.3,1.15), box-shadow 140ms ease-out, filter 140ms ease-out;
  position: relative;
  overflow: hidden;
}
.fm .fm-cap::after{
  content: "";
  position: absolute;
  top: -30%; left: -20%;
  width: 90%; height: 65%;
  background: linear-gradient(115deg, rgba(255,255,255,0.65), rgba(255,255,255,0) 60%);
  border-radius: 50%;
  transform: rotate(-8deg);
  pointer-events: none;
}
/* A tactile response to hover - small and quiet on purpose. Enough lift and
   brightness to read as "this is pressable", not enough to be a light show:
   every cap in the machine (flavor, format, branch, login) gets the same
   restrained touch. */
.fm .fm-cap:hover{
  filter: brightness(1.035);
  transform: translateY(-1.5px);
  box-shadow:
    inset 0 3px 2px rgba(255,255,255,0.55),
    inset 0 -10px 16px rgba(0,0,0,0.28),
    0 8px 0 var(--fm-tint-deep),
    0 15px 20px -8px rgba(0,0,0,0.5),
    0 0 0 1.5px color-mix(in srgb, var(--fm-tint) 22%, transparent);
}
.fm .fm-cap:focus-visible{
  outline: 3px solid var(--fm-chrome-bright);
  outline-offset: 3px;
}
.fm .fm-cap:active,
.fm .fm-cap--pressed{
  transform: translateY(6px) scale(0.985);
  filter: brightness(0.94);
  box-shadow:
    inset 0 3px 2px rgba(255,255,255,0.35),
    inset 0 -6px 10px rgba(0,0,0,0.32),
    0 1px 0 var(--fm-tint-deep),
    0 3px 6px -2px rgba(0,0,0,0.5);
  transition: transform 70ms ease-in, box-shadow 70ms ease-in, filter 70ms ease-in;
}

.fm-cap .fm-icon{
  width: 28px; height: 28px;
  stroke: currentColor; fill: none; stroke-width: 1.6;
  opacity: 0.95;
  transition: transform 200ms cubic-bezier(.3,.6,.3,1.4);
}
/* Flavor caps only (never the format slots, which stay compact so their body
   copy still fits) - the icon is the whole personality of the button, so it
   gets real room to read. */
.fm-cap:not(.fm-cap--slot) .fm-icon{
  width: clamp(40px, 7vw, 54px);
  height: clamp(40px, 7vw, 54px);
}
.fm .fm-cap:hover .fm-icon{ transform: scale(1.035); }
.fm .fm-cap.fm-cap--pressed .fm-icon,
.fm .fm-cap:active .fm-icon{ transform: scale(0.96); }

/* ---------- flavor cap: icon/label stay put, excerpt reveals below ----------
   The cap has room for both, so hovering never hides the icon or the title -
   it just fades in the teaser in the space already reserved under them.
   :hover/:focus-visible is the ENTIRE mechanism - no JS listens for hover,
   which is what keeps this instant and keeps the token-info panel free to
   mean "what's actually minted" rather than "whatever you're pointing at". */
.fm-cap-face{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  flex: 0 0 auto;
}
.fm-cap-excerpt{
  display: flex;
  align-items: flex-end;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  margin-top: 9px;
  padding-top: 2px;
  overflow: hidden;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: clamp(12.5px, 1.7vw, 14px);
  font-weight: 500;
  line-height: 1.38;
  color: var(--fm-chrome-bright);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 200ms ease, transform 200ms ease;
  pointer-events: none;
}
.fm .fm-cap:hover .fm-cap-excerpt,
.fm .fm-cap:focus-visible .fm-cap-excerpt{
  opacity: 0.95;
  transform: translateY(0);
}
.fm-cap .fm-label{
  font-family: "Fjalla One", system-ui, sans-serif;
  font-size: clamp(16px, 2.3vw, 19px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.16;
  /* The columns are minmax(0, 1fr) now, so a label can no longer widen its
     own column to fit. ACCOUNTABILITY wraps rather than overflowing a cap
     that clips it. */
  overflow-wrap: anywhere;
}
.fm-cap .fm-push{
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity 160ms ease;
}
.fm .fm-cap:hover .fm-push,
.fm .fm-cap:focus-visible .fm-push{
  opacity: 0; /* the excerpt filling in below is the "there's more here" cue now */
}

/* There was a `.fm-cap--ghost` treatment here: a hollow chrome-outlined cap
   for any flavor with no hue token (the Custom Flip, and anything added in
   wp-admin). It is gone on purpose - beside ten solid caps it read as a
   disabled button, not a quiet one. Every flavor now resolves to a real hue;
   see the --fm-c-* block at the top of this file. */

/* Grown for the same reason as .fm-slot-price below (9.5px was a tag nobody
   over forty reads), and the rotation and the dashed border are kept because
   they are what make it read as a paper tag rather than as a UI chip.

   THE ROTATION IS WHY THE OFFSETS MOVED. An unrotated box overhangs its plate
   by exactly `top`/`right`; a rotated one also overhangs by half the growth
   of its bounding box, which for -9deg is about `width * sin(9deg) / 2`
   vertically. At 9.5px that was ~3px and the badge already grazed the plate
   above it at the 10px gap; at 12.5px it would be ~4px and would genuinely
   overlap. Pulling the anchor in to -3/-4 puts the topmost rotated corner at
   about -7px, inside the 10px gap, at every breakpoint.

   Contrast: the ink on --fm-card-bg was already strong, so only the dashed
   border needed raising (--fm-card-muted on cream is ~3.6:1, which is what
   made the tag outline disappear at a distance). */
.fm-badge{
  position: absolute;
  top: -3px; right: -4px;
  z-index: 2;
  background: var(--fm-card-bg);
  color: var(--fm-card-ink);
  font-family: "Fjalla One", system-ui, sans-serif;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  line-height: 1.2;
  padding: 4px 9px 3px;
  border-radius: 4px;
  border: 1px dashed color-mix(in srgb, var(--fm-card-muted) 60%, var(--fm-card-ink));
  transform: rotate(-9deg);
  box-shadow: 0 3px 7px rgba(0,0,0,0.3);
  pointer-events: none;
}

/* ---------- step 1: the token dock, drawn as a cross-section projector ----------
   The dock is not a display case with a panel next to it. It is one machine
   seen in section: light comes up out of the hole in the pedestal, the token
   sitting in that light gets read, and the lens set into the dock's right
   wall throws the read-out across the gap onto the description panel, which
   is the screen. Everything below is that one idea - the tint of every part
   of it is --fm-token-tint, set by showTokenCommitted() in flip-machine.js,
   so the whole apparatus is the colour of whatever token is loaded. */
.fm-dock-wrap{
  --fm-dock-gap: clamp(16px, 3vw, 30px);
  /* The dock is square. One number drives the grid column, the stage and the
     housing, so the column can never be wider than the thing inside it -
     which is what would strand the projector ray in dead space, since the ray
     anchors to `left: 100%` of the stage and has to land on the panel. */
  --fm-dock-size: clamp(196px, 23vw, 260px);
  --fm-token-tint: var(--fm-chrome);
  margin-top: 20px;
  display: grid;
  grid-template-columns: var(--fm-dock-size) 1fr;
  /* Centred, not stretched: the dock is a fixed square and the panel's height
     is whatever its copy needs, so the square rides at the panel's midline
     instead of sitting at the top of a tall column. */
  align-items: center;
  gap: var(--fm-dock-gap);
}
@media (max-width: 760px){
  .fm-dock-wrap{ grid-template-columns: 1fr; align-items: stretch; }
}
.fm-dock-col{ text-align: center; }
.fm-dock-stage{
  position: relative;
  width: var(--fm-dock-size);
  margin: 0 auto;
}
.fm-step-label{
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin: 0 0 12px;
  font-family: "Fjalla One", system-ui, sans-serif;
  font-size: 14px; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--fm-chrome-bright); opacity: 0.85;
}
.fm-step-num{
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--fm-accent); color: var(--fm-cabinet);
  font-family: "Fjalla One", system-ui, sans-serif;
  font-size: 12px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fm-accent) 22%, transparent);
}
/* A machined housing, not a suggestion of one. The old border was
   rgba(255,255,255,0.05) against a near-black interior, which is invisible -
   the dock read as a hole in the cabinet rather than as a box mounted in it.
   Now it gets a real bezel edge in the same chrome the rest of the cabinet
   is machined from, a lip of light along the top, and a drop shadow that
   seats it into the panel behind it. */
.fm-dock{
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  background:
    radial-gradient(60% 38% at 50% 84%, color-mix(in srgb, var(--fm-accent) 40%, transparent), transparent 72%),
    radial-gradient(120% 90% at 50% 22%, color-mix(in srgb, var(--fm-accent) 14%, transparent), transparent 65%),
    linear-gradient(180deg, rgba(0,0,0,0.42), rgba(0,0,0,0.12) 34%, transparent);
  border: 1px solid color-mix(in srgb, var(--fm-chrome) 58%, transparent);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--fm-chrome-bright) 30%, transparent),
    inset 0 0 0 1px rgba(0,0,0,0.35),
    inset 0 -22px 34px -12px rgba(0,0,0,0.5),
    0 10px 24px -12px rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  padding: 26px 26px 40px;
  perspective: 700px;
  overflow: hidden;
}
/* A display case, not a bare box: a faint inset frame gives the dock
   structure on every side, and a small drawn "pedestal top" under the coin
   is the fanfare - "you just won this, and here is where it rests". */
.fm-dock::before{
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 14px;
  border: 1px dashed color-mix(in srgb, var(--fm-accent) 30%, transparent);
  opacity: 0.4;
  pointer-events: none;
}
.fm-dock::after{
  content: "";
  position: absolute;
  left: 50%; bottom: 22px;
  width: 112px; height: 13px;
  transform: translateX(-50%) perspective(40px) rotateX(55deg);
  border-radius: 50%;
  background: linear-gradient(180deg, var(--fm-bezel), color-mix(in srgb, var(--fm-bezel) 60%, black 25%));
  box-shadow:
    0 3px 0 color-mix(in srgb, var(--fm-bezel) 50%, black 35%),
    0 8px 14px -4px rgba(0,0,0,0.55);
  pointer-events: none;
}
/* ----- the chassis -----
   The machinery the light runs through, drawn as a technical cross-section by
   AJCFM_Shortcode::projector_chassis(). It sits UNDER everything else, in the
   chrome the rest of the cabinet is machined from, quiet enough to read as
   engraving rather than as decoration - until a token is loaded, when the
   parts nearest the beam pick up its colour. */
.fm-dock-chassis{
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}
.fm-dock-chassis path,
.fm-dock-chassis circle{
  fill: none;
  stroke: var(--fm-chrome);
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  opacity: 0.3;
  transition: opacity 320ms ease, stroke 320ms ease;
}
.fm-dock-chassis .fm-chassis-axis{
  stroke-dasharray: 2 7;
  opacity: 0.22;
}
.fm-dock-chassis .fm-chassis-screw circle{ opacity: 0.4; }
.fm-dock-chassis .fm-chassis-lamp{
  fill: var(--fm-token-tint);
  stroke: none;
  opacity: 0.35;
}
/* Loaded: the optics warm to the token's colour, the lamp comes up, and the
   axis they share becomes legible - so the parts read as a circuit the light
   is actually travelling, not as an illustration behind it. */
.fm-dock-wrap.fm-is-lit .fm-dock-chassis path,
.fm-dock-wrap.fm-is-lit .fm-dock-chassis circle{
  stroke: color-mix(in srgb, var(--fm-token-tint) 55%, var(--fm-chrome) 45%);
  opacity: 0.5;
}
.fm-dock-wrap.fm-is-lit .fm-dock-chassis .fm-chassis-axis{ opacity: 0.4; }
.fm-dock-wrap.fm-is-lit .fm-dock-chassis .fm-chassis-lamp{
  fill: color-mix(in srgb, var(--fm-token-tint) 70%, white 30%);
  opacity: 1;
  animation: fm-lamp-flicker 2.4s ease-in-out infinite;
}
@keyframes fm-lamp-flicker{
  0%, 100%{ opacity: 0.85; }
  40%{ opacity: 1; }
  55%{ opacity: 0.9; }
}

/* ----- the optics -----
   Stacking order inside the dock, bottom to top: chassis < pedestal (::after)
   < hole < beam < reflected beam < coin < scan bar < lens. The coin sits IN
   the beam, not on top of a picture of one, which is the whole point of the
   cross-section. */
.fm-dock-hole,
.fm-dock-beam,
.fm-dock-reflect,
.fm-dock-scan,
.fm-dock-lens,
.fm-projector-ray{
  position: absolute;
  pointer-events: none;
  transition: opacity 320ms ease;
}

/* The hole itself: a lit slot cut into the pedestal top. Dim when the dock is
   empty (the machine is powered, just idle), full when a token is loaded. */
.fm-dock-hole{
  left: 50%; bottom: 25px;
  width: 74px; height: 11px;
  transform: translateX(-50%);
  border-radius: 50%;
  z-index: 1;
  /* Kept narrower and cooler than the pedestal it sits in, so the pedestal
     still reads as a ring around it and the token stays the brightest thing
     in the box. A wider, whiter pool here reads as a spotlight shining DOWN,
     which is the opposite of the mechanism. */
  background: radial-gradient(closest-side,
    color-mix(in srgb, var(--fm-token-tint) 88%, white 12%),
    color-mix(in srgb, var(--fm-token-tint) 34%, transparent) 62%,
    transparent);
  box-shadow: 0 0 14px 2px color-mix(in srgb, var(--fm-token-tint) 26%, transparent);
  opacity: 0.28;
}

/* The light cone. Narrow at the hole, opening upward past the coin - the
   shape Andrew drew over the screenshot. `min()` keeps it inside the dock on
   a narrow phone; the clip-path is in percentages so the taper holds at any
   width. */
.fm-dock-beam{
  left: 50%; bottom: 28px;
  width: min(196px, 88%);
  height: calc(100% - 44px);
  transform: translateX(-50%);
  z-index: 2;
  clip-path: polygon(0 0, 100% 0, 73% 100%, 27% 100%);
  background: linear-gradient(to top,
    color-mix(in srgb, var(--fm-token-tint) 52%, transparent) 0%,
    color-mix(in srgb, var(--fm-token-tint) 24%, transparent) 42%,
    color-mix(in srgb, var(--fm-token-tint) 6%, transparent) 100%);
  mix-blend-mode: screen;
  opacity: 0.16;
}
/* Dust in the beam: the thing that makes a light cone read as volume rather
   than as a painted triangle. It travels visibly rather than creeping - a
   texture you have to stare at to catch moving may as well be static. */
.fm-dock-beam::after{
  content: "";
  position: absolute;
  inset: -60% 0 0;
  background: repeating-linear-gradient(96deg,
    rgba(255,255,255,0.2) 0 1px,
    transparent 1px 10px);
  opacity: 0.5;
}

/* ----- THE REFLECTION -----
   The beat that makes the whole apparatus add up. Light comes up out of the
   hole, hits the token, and part of it turns and heads for the lens in the
   right wall - so the throw landing on the panel is light that BOUNCED OFF
   THE TOKEN, which is the only reading under which a token-reader projecting
   a token's description makes any physical sense.

   Narrow at the token, opening slightly toward the lens. Only exists when
   something is actually loaded, because with an empty gate there is nothing
   for the beam to bounce off. */
.fm-dock-reflect{
  left: 50%; top: calc(50% - 20px);
  width: calc(50% - 6px);
  height: 74px;
  transform: translateY(-50%);
  z-index: 3;
  clip-path: polygon(0 40%, 0 60%, 100% 4%, 100% 96%);
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--fm-token-tint) 70%, white 12%),
    color-mix(in srgb, var(--fm-token-tint) 22%, transparent));
  mix-blend-mode: screen;
  opacity: 0;
}
/* Same travelling texture as the up-beam, running left to right instead, so
   the two read as one continuous piece of light making a turn. */
.fm-dock-reflect::after{
  content: "";
  position: absolute;
  inset: 0 -60% 0 0;
  background: repeating-linear-gradient(6deg,
    rgba(255,255,255,0.2) 0 1px,
    transparent 1px 10px);
  opacity: 0.5;
}

/* The scan bar. Sweeps up from the hole across the token once, each time a
   token is loaded or the docked token is pressed - the beat that "reads" the
   coin and causes the projection. Class-driven rather than :hover-driven so
   flip-machine.js can retrigger it. */
.fm-dock-scan{
  left: 50%; bottom: 30px;
  width: 132px; height: 3px;
  transform: translateX(-50%);
  z-index: 4;
  border-radius: 3px;
  background: linear-gradient(90deg,
    transparent,
    color-mix(in srgb, var(--fm-token-tint) 92%, white 45%) 50%,
    transparent);
  filter: blur(1px);
  mix-blend-mode: screen;
  opacity: 0;
}
.fm-dock-scan.fm-is-sweeping{ animation: fm-scan-sweep 760ms cubic-bezier(.35,0,.2,1) 1; }
@keyframes fm-scan-sweep{
  0%   { opacity: 0;    transform: translateX(-50%) translateY(0) scaleX(0.5); }
  14%  { opacity: 0.95; }
  74%  { opacity: 0.95; }
  100% { opacity: 0;    transform: translateX(-50%) translateY(calc(var(--fm-dock-size, 260px) * -0.62)) scaleX(1.15); }
}

/* The lens set into the dock's right wall, level with the coin (the coin
   rides 20px above the dock's own centre line because of its 26px
   margin-bottom, hence the offset here and on the ray). */
.fm-dock-lens{
  right: 0; top: calc(50% - 20px);
  width: 13px; height: 76px;
  transform: translateY(-50%);
  z-index: 5;
  border-radius: 14px 5px 5px 14px;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--fm-token-tint) 60%, white 10%),
    color-mix(in srgb, var(--fm-token-tint) 14%, transparent));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--fm-chrome) 45%, transparent),
    0 0 22px color-mix(in srgb, var(--fm-token-tint) 45%, transparent);
  opacity: 0.3;
}

/* The throw: out of the lens, across the grid gap, onto the panel. Narrow at
   the lens, fanning open where it lands - the blue lines Andrew drew. Carries
   the same travelling texture as the two beams inside the box, so the light
   is visibly moving the whole way from lamp to screen rather than only where
   it started. */
.fm-projector-ray::after{
  content: "";
  position: absolute;
  inset: 0 0 0 -60%;
  background: repeating-linear-gradient(8deg,
    rgba(255,255,255,0.18) 0 1px,
    transparent 1px 10px);
  opacity: 0.45;
}
.fm-projector-ray{
  left: 100%; top: calc(50% - 20px);
  width: calc(var(--fm-dock-gap) + 14px);
  height: 208px;
  transform: translateY(-50%);
  z-index: 3;
  clip-path: polygon(0 32%, 0 68%, 100% 100%, 100% 0);
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--fm-token-tint) 62%, transparent),
    color-mix(in srgb, var(--fm-token-tint) 10%, transparent));
  mix-blend-mode: screen;
  opacity: 0;
}

/* ----- idle: the gate advertises itself -----
   The counterpart to the slot mouths' pulse, at the other end of the token's
   trip. An unlit projector with a static dim smear in the pedestal reads as
   a drawing of a machine that is off; a gate that breathes reads as one that
   is powered and waiting for something. Cheap on purpose - opacity and a
   scale on a 74x11 element that is already there, both compositor-only, and
   it stops the instant a token lands (`.fm-is-lit` takes over below).

   Chrome-coloured rather than tinted, because --fm-token-tint falls back to
   --fm-chrome while nothing is loaded: the machine has no opinion yet about
   which flavor is coming. */
.fm-dock-wrap:not(.fm-is-lit) .fm-dock-hole{
  animation: fm-hole-waiting 2.8s ease-in-out infinite;
}
@keyframes fm-hole-waiting{
  0%, 100%{ opacity: 0.2;  transform: translateX(-50%) scaleX(0.86); }
  50%     { opacity: 0.55; transform: translateX(-50%) scaleX(1.06); }
}
/* And the prompt sitting in the gate breathes with it, so the two read as
   one invitation rather than as a label next to a light. */
.fm-dock-wrap:not(.fm-is-lit) .fm-dock-empty{
  animation: fm-dock-empty-waiting 2.8s ease-in-out infinite;
}
@keyframes fm-dock-empty-waiting{
  0%, 100%{ opacity: 0.45; }
  50%     { opacity: 0.78; }
}

/* Loaded: the whole apparatus comes up. */
.fm-dock-wrap.fm-is-lit .fm-dock-hole{ opacity: 1; animation: fm-hole-pulse 3.2s ease-in-out infinite; }
.fm-dock-wrap.fm-is-lit .fm-dock-beam{ opacity: 1; animation: fm-beam-breathe 3.2s ease-in-out infinite; }
.fm-dock-wrap.fm-is-lit .fm-dock-lens{ opacity: 1; }
.fm-dock-wrap.fm-is-lit .fm-projector-ray{ opacity: 0.9; }
.fm-dock-wrap.fm-is-lit .fm-dock-reflect{ opacity: 0.92; }
/* Every stretch of the light travels, and all three at the same rate, so the
   turn at the token reads as one beam changing direction. Fast enough to be
   seen without looking for it - the previous 5.5s crawl was invisible. */
.fm-dock-wrap.fm-is-lit .fm-dock-beam::after{ animation: fm-beam-dust 2.2s linear infinite; }
.fm-dock-wrap.fm-is-lit .fm-dock-reflect::after{ animation: fm-beam-dust-x 2.2s linear infinite; }
.fm-dock-wrap.fm-is-lit .fm-projector-ray::after{ animation: fm-beam-dust-x 2.2s linear infinite; }

@keyframes fm-hole-pulse{
  0%, 100%{ opacity: 0.85; }
  50%{ opacity: 1; }
}
@keyframes fm-beam-breathe{
  0%, 100%{ opacity: 0.9; }
  50%{ opacity: 1; }
}
/* Travels UP the cone - the light is coming out of the hole, so the motes go
   the way the light goes. The distance is a whole number of the 10px stripe
   period so the loop has no visible jump. */
@keyframes fm-beam-dust{
  from{ transform: translateY(0); }
  to{ transform: translateY(-40px); }
}
/* The same travel, turned to run along the two horizontal stretches. */
@keyframes fm-beam-dust-x{
  from{ transform: translateX(0); }
  to{ transform: translateX(40px); }
}

/* Hovering the token leans into the beam: the source brightens and the throw
   opens up, which is the mechanical reading of "you're touching the thing
   being scanned". :has() is the whole mechanism - where it is unsupported
   this simply does not happen, and nothing else changes. */
.fm-dock-wrap.fm-is-lit .fm-dock:has(.fm-coin:hover) ~ .fm-projector-ray,
.fm-dock-wrap.fm-is-lit .fm-dock:has(.fm-coin:focus-visible) ~ .fm-projector-ray{ opacity: 1; }
.fm-dock-wrap.fm-is-lit .fm-dock:has(.fm-coin:hover) .fm-dock-beam,
.fm-dock-wrap.fm-is-lit .fm-dock:has(.fm-coin:hover) .fm-dock-hole{ filter: brightness(1.5); }
.fm-dock-wrap.fm-is-lit .fm-dock:has(.fm-coin:hover) .fm-dock-lens{ filter: brightness(1.4); }

/* ----- mobile: the same machine, folded a quarter turn -----
   Under 760px the panel stacks below the dock instead of beside it, so the
   lens moves to the floor of the dock and the throw goes down. The cone
   inside the dock still rises out of the hole and still reads the token;
   only the exit is folded, which is what a real projector does with a mirror
   and is the cheapest honest answer for the stacked layout. */
@media (max-width: 760px){
  .fm-dock-lens{
    right: auto; left: 50%; top: auto; bottom: 0;
    width: 76px; height: 13px;
    transform: translateX(-50%);
    border-radius: 14px 14px 5px 5px;
    background: linear-gradient(180deg,
      color-mix(in srgb, var(--fm-token-tint) 60%, white 10%),
      color-mix(in srgb, var(--fm-token-tint) 14%, transparent));
  }
  .fm-projector-ray{
    left: 0; right: 0; top: 100%;
    width: auto;
    height: calc(var(--fm-dock-gap) + 14px);
    transform: none;
    clip-path: polygon(32% 0, 68% 0, 100% 100%, 0 100%);
    background: linear-gradient(180deg,
      color-mix(in srgb, var(--fm-token-tint) 62%, transparent),
      color-mix(in srgb, var(--fm-token-tint) 10%, transparent));
  }
}

.fm-dock .fm-coin{ position: relative; opacity: 1; z-index: 3; margin-bottom: 26px; }
.fm-dock-empty{
  position: relative;
  z-index: 4; /* above the idle beam, which is a screen-blended layer */
  margin: 0;
  font-family: "Fjalla One", system-ui, sans-serif;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fm-chrome);
  opacity: 0.55;
  text-align: center;
}

/* Once a coin is docked it is a real control, not a static illustration.
   A clearly-readable always-on breathing motion says "this is alive, touch
   me"; hovering plays one full flip around the vertical axis - a genuine
   coin flip, not just a lift - then settles into a lifted, glowing rest
   pose for as long as the pointer stays; it squishes flat on press. */
/* THE RESTING TOKEN, WHEREVER IT IS RESTING. `:is(.fm-dock, .fm-perch-well)`
   rather than `.fm-dock`, because a token at rest on step 3's perch is the
   same object doing the same job as one in the projector - it breathes, it
   flips when you hover it, it lifts when you press it. :is() takes the
   specificity of its most specific argument, so every specificity fight
   described below is exactly the fight it was before. What stays dock-only is
   the LAYOUT above (the 26px that lifts the coin into the gate's light), which
   is genuinely about the projector and not about resting.

   ONE PROPERTY PER JOB. Everything the docked coin does used to be written
   into `transform` and into the `animation` shorthand, and `animation` is a
   single property: whichever rule wins it, wins it outright. That is what
   made every state change snap.

   - Un-hovering replaced the hover rule's animation with the idle one, which
     RESTARTED idle at frame 0 and dropped the lifted pose in the same frame,
     so the coin teleported home instead of settling.
   - The click bounce was worse: `fm-coin--bounce` was added and never
     removed, so after one press the coin was permanently stuck on a finished
     animation - breathing dead, and `:hover` (equal specificity, earlier in
     the file) beaten by it, so the flip stopped working too.

   CSS has four independent transform channels, so the fix is to stop making
   them share:

     translate  -> the hover lift.   Only ever TRANSITIONED, never animated.
     scale      -> the idle breath.  Only ever ANIMATED, never transitioned.
     rotate     -> the idle tilt.    Same.
     transform  -> the one-shot gestures (flip, recycle), which start and end
                   at identity so any handoff is between equal states.

   Nothing overwrites anything, so hover in and hover out are plain
   transitions and always tween. And the one-shot rules APPEND to the idle
   animation rather than replacing it - `fm-coin-idle` stays at index 0 of
   the list, and an animation that keeps its name and position is not
   restarted when the list around it changes, so the breathing runs
   uninterrupted straight through a flip and out the other side. */
:is(.fm-dock, .fm-perch-well) .fm-coin{
  /* THE fix for "the docked token has no hover or click animation". The base
     .fm-coin rule sets pointer-events:none, because the travelling coin is a
     projectile inside .fm-coin-layer and must not eat clicks meant for the
     caps underneath it. Docking it never turned that back on, so the docked
     coin could not be hovered (no :hover rule ever matched) and could not be
     clicked (the coin was never the event target, so the dock listener's
     e.target.closest('.fm-coin') always came back null). Every animation
     below was correct and simply unreachable. */
  pointer-events: auto;
  cursor: pointer;
  transform-origin: 50% 50%;
  translate: 0 0;
  animation: fm-coin-idle 3.2s ease-in-out infinite;
  transition:
    translate 300ms cubic-bezier(.25,.7,.3,1.15),
    filter 260ms ease,
    box-shadow 300ms ease;
}
:is(.fm-dock, .fm-perch-well) .fm-coin:hover{
  translate: 0 -5px;
  filter: brightness(1.09);
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--fm-tint-deep) 55%, black 10%),
    inset 0 2px 2px rgba(255,255,255,0.55),
    inset 0 -4px 6px rgba(0,0,0,0.25),
    0 14px 22px -8px rgba(0,0,0,0.5),
    0 0 22px -2px color-mix(in srgb, var(--fm-tint) 70%, transparent);
}
/* No `animation: none` here - that would kill the breathing and restart it
   on release, which is the snap this whole block exists to remove. */
:is(.fm-dock, .fm-perch-well) .fm-coin:active{
  translate: 0 1px;
  filter: brightness(0.94);
  transition-duration: 110ms;
}
@keyframes fm-coin-idle{
  0%, 100%{ scale: 1;     rotate: 0deg; }
  50%     { scale: 1.035; rotate: -1.4deg; }
}
/* The flip is driven by a class, not by :hover, so flip-machine.js can refuse
   to restart one that is already running - see flipCoin(). A :hover-driven
   animation restarts every time the pointer re-enters, which is exactly the
   "triggered too many times quickly" jitter. */
:is(.fm-dock, .fm-perch-well) .fm-coin.fm-coin--flipping{
  animation:
    fm-coin-idle 3.2s ease-in-out infinite,
    fm-coin-flip 720ms cubic-bezier(.4,.05,.25,1) 1;
}
@keyframes fm-coin-flip{
  from{ transform: rotateY(0deg); }
  to  { transform: rotateY(360deg); }
}
/* The token being handed back for step 3: it drops onto the perch rather than
   appearing on it, so the panel reads as the machine RETURNING the token the
   slot just took. Scoped and ordered exactly as the flip is, and for the same
   two reasons - idle first in the list so the breathing runs straight through
   it, and specific enough to out-rank the idle rule that would otherwise own
   `animation` outright. */
:is(.fm-dock, .fm-perch-well) .fm-coin.fm-coin--arriving{
  animation:
    fm-coin-idle 3.2s ease-in-out infinite,
    fm-coin-arrive 420ms cubic-bezier(.2,.9,.3,1.2) 1;
}
@keyframes fm-coin-arrive{
  from{ opacity: 0; transform: translateY(-34px) scale(0.55); }
  to  { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- step 1: the token-info panel ----------
   Sits beside the dock rather than the coin standing alone: hover a flavor
   cap for its excerpt, or read the fuller description of whichever flavor is
   actually minted. */
/* --fm-token-tint is NOT declared here on purpose - it is inherited from
   .fm-dock-wrap, so the panel and the projector optics that throw the image
   onto it are guaranteed to be the same colour. One declaration, one tint. */
.fm-token-info{
  position: relative;
  border-radius: 18px;
  padding: 22px 26px 22px 24px;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  background:
    linear-gradient(155deg, color-mix(in srgb, var(--fm-token-tint) 14%, transparent), color-mix(in srgb, var(--fm-token-tint) 3%, transparent) 55%),
    linear-gradient(155deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid color-mix(in srgb, var(--fm-token-tint) 20%, rgba(255,255,255,0.06));
  border-left: 4px solid color-mix(in srgb, var(--fm-token-tint) 55%, transparent);
  box-shadow: var(--fm-shadow-md);
  transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
  /* The corner glow below is clipped by its own radial falloff, and the
     kicker ribbon is supposed to hang off the left edge - so `hidden` here
     would only ever clip the thing it should not. */
  overflow: visible;
}
/* A little more color than a flat panel, without competing with the copy:
   one soft tinted glow in the corner, keyed to the same tint the border and
   kicker already use. */
.fm-token-info::before{
  content: "";
  position: absolute;
  top: -45%; right: -15%;
  width: 65%; height: 150%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--fm-token-tint) 20%, transparent), transparent 70%);
  pointer-events: none;
}
.fm-token-info--filled{
  border-color: color-mix(in srgb, var(--fm-token-tint) 55%, transparent);
  box-shadow: var(--fm-shadow-md), inset 0 0 0 1px color-mix(in srgb, var(--fm-token-tint) 25%, transparent);
}
/* The panel is the screen the dock's lens throws onto, so the edge the light
   lands on is lit: the left edge on the two-column layout, the top edge once
   the projector folds a quarter turn for the stacked one. */
.fm-token-info--filled{
  border-left-color: color-mix(in srgb, var(--fm-token-tint) 92%, white 20%);
  box-shadow:
    var(--fm-shadow-md),
    inset 0 0 0 1px color-mix(in srgb, var(--fm-token-tint) 25%, transparent),
    inset 26px 0 44px -32px color-mix(in srgb, var(--fm-token-tint) 90%, white 30%);
}
@media (max-width: 760px){
  .fm-token-info{
    border-left-width: 1px;
    border-top: 4px solid color-mix(in srgb, var(--fm-token-tint) 55%, transparent);
  }
  .fm-token-info--filled{
    border-top-color: color-mix(in srgb, var(--fm-token-tint) 92%, white 20%);
    box-shadow:
      var(--fm-shadow-md),
      inset 0 0 0 1px color-mix(in srgb, var(--fm-token-tint) 25%, transparent),
      inset 0 26px 44px -32px color-mix(in srgb, var(--fm-token-tint) 90%, white 30%);
  }
}

/* "Projected into existence": the panel does not fade in, it resolves - out
   of focus and over-bright first, the way an image does when a projector
   catches it, swinging flat from the lens side. Retriggered by
   showTokenCommitted() and by pressing the docked token (see rescan()). */
.fm-token-info--projecting{
  transform-origin: left center;
  animation: fm-project-in 620ms cubic-bezier(.2,.75,.25,1) both;
}
@keyframes fm-project-in{
  0%  { opacity: 0; transform: perspective(760px) rotateY(-15deg) scale(0.9); filter: blur(8px) brightness(2); }
  45% { opacity: 1; filter: blur(2.4px) brightness(1.35); }
  100%{ opacity: 1; transform: perspective(760px) rotateY(0deg) scale(1); filter: blur(0) brightness(1); }
}
@media (max-width: 760px){
  .fm-token-info--projecting{
    transform-origin: center top;
    animation-name: fm-project-in-stacked;
  }
  @keyframes fm-project-in-stacked{
    0%  { opacity: 0; transform: perspective(760px) rotateX(13deg) scale(0.92); filter: blur(8px) brightness(2); }
    45% { opacity: 1; filter: blur(2.4px) brightness(1.35); }
    100%{ opacity: 1; transform: perspective(760px) rotateX(0deg) scale(1); filter: blur(0) brightness(1); }
  }
}
.fm-token-info-empty{
  margin: 0;
  font-size: 15px;
  color: var(--fm-chrome);
  opacity: 0.65;
}
/* Same move as the ticket ribbon: the hue moves off the letters and onto a
   plate behind them, so the label reads as a part of the machine and the text
   stops being tinted-on-dark. This one runs out through the panel's left
   padding and sits on the lit screen edge the projector throws onto. */
.fm-token-info-kicker{
  position: relative;
  align-self: flex-start;
  max-width: calc(100% + 38px);
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 14px -38px;
  padding: 9px 20px 9px 38px;
  border-radius: 0 8px 8px 0;
  font-family: "Fjalla One", system-ui, sans-serif;
  font-size: clamp(14px, 1.5vw, 16.5px);
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--fm-chrome-bright);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--fm-token-tint) 90%, white 8%),
    color-mix(in srgb, var(--fm-token-tint) 72%, black 28%));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    0 6px 14px -7px rgba(0,0,0,0.7);
}
.fm-token-info-kicker::before{
  content: "";
  position: absolute;
  left: 0; bottom: -8px;
  width: 12px; height: 8px;
  background: color-mix(in srgb, var(--fm-token-tint) 45%, black 55%);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
@media (max-width: 760px){
  /* Stacked layout puts the lit edge on TOP, so the ribbon stops hanging off
     the side and sits square inside the panel instead. */
  .fm-token-info-kicker{
    margin-left: 0;
    padding-left: 18px;
    border-radius: 8px;
  }
  .fm-token-info-kicker::before{ display: none; }
}
.fm-token-info-icon{
  width: 26px; height: 26px; flex: none;
  stroke: currentColor; fill: none; stroke-width: 1.6;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--fm-token-tint) 55%, transparent));
}
.fm-token-info-tag{
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fm-chrome); opacity: 0.7;
}
/* Sits INSIDE the kicker plate now, so it is punched out of it rather than
   outlined against the panel. */
.fm-token-info-badge{
  font-family: "Fjalla One", system-ui, sans-serif;
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 8px 2px;
  border-radius: 4px;
  background: rgba(0,0,0,0.34);
  border: 1px solid rgba(255,255,255,0.22);
  color: var(--fm-chrome-bright);
}
.fm-token-info-excerpt,
.fm-token-info-full{
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--fm-chrome-bright);
}
/* The projected copy. Selectors are deliberately over-specific (.fm .fm-x
   rather than .fm-x) because this text renders inside the page content, where
   a theme's `.entry-content p` is a 0-2-1 selector and would otherwise win
   every one of these outright.

   WONK is the Fraunces axis that swaps in its wonky terminals - the same
   family with more character, no extra font request, and no legibility cost
   at this size. SOFT rounds the corners slightly to match. Neither is applied
   to anything small; see the note on FONTS_URL. */
.fm .fm-token-info-full{
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-variation-settings: "SOFT" 40, "WONK" 1;
  font-size: clamp(15px, 1.45vw, 16.5px);
  line-height: 1.55;
  color: var(--fm-chrome-bright);
  text-wrap: pretty;
}
/* Paragraph breaks in the invite are how a four-part argument reads as four
   parts instead of one wall - the belief, then the offer, then who I am.
   Andrew writes them as ordinary paragraphs in wp-admin. */
.fm .fm-token-info-full p{
  margin: 0 0 0.85em;
  padding: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  font-family: inherit;
  font-style: inherit;
  font-weight: inherit;
}
.fm .fm-token-info-full p:last-child{ margin-bottom: 0; }

/* THE SPEC PLATE. The resolution/price line used to be 13.5px of dimmed grey
   floating under the copy, which is where a reader's eye goes last and where
   the one piece of hard information on the panel was sitting. It is a plate
   now: rule above it, its own label, and the numbers set in the signage face
   rather than the body one. */
.fm .fm-token-info-meta{
  position: relative;
  margin: 16px 0 0;
  padding: 11px 14px 10px 40px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--fm-token-tint) 13%, rgba(0,0,0,0.28));
  border: 1px solid color-mix(in srgb, var(--fm-token-tint) 30%, transparent);
  border-left: 3px solid color-mix(in srgb, var(--fm-token-tint) 70%, transparent);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: color-mix(in srgb, var(--fm-chrome) 55%, var(--fm-chrome-bright) 45%);
  opacity: 1;
}
/* A stamped "SPEC" tab down the left edge, so the plate reads as part of the
   machine rather than as a callout box. */
.fm .fm-token-info-meta::before{
  content: "spec";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 28px;
  display: flex; align-items: center; justify-content: center;
  font-family: "Fjalla One", system-ui, sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--fm-chrome-bright);
  background: color-mix(in srgb, var(--fm-token-tint) 42%, transparent);
  border-radius: 0 0 0 7px;
}
.fm .fm-token-info-meta b{
  font-family: "Fjalla One", system-ui, sans-serif;
  font-weight: 400;
  font-size: 15.5px;
  letter-spacing: 0.02em;
  color: var(--fm-chrome-bright);
}

/* ---------- the coin token + its travel layer ---------- */
.fm-coin-layer{
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 6;
}
.fm-track-svg{
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
}
.fm-coin-track{
  fill: none;
  stroke: color-mix(in srgb, var(--fm-chrome) 55%, transparent);
  stroke-width: 8;
  stroke-linecap: round;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.3));
}
.fm-coin-track--static{ stroke-dasharray: 3 7; }

.fm-coin{
  position: absolute;
  top: 0; left: 0;
  /* travelCoin() measures this off the element rather than assuming it - the
     routed path is drawn through centres, so half of whatever this is has to
     come off every endpoint. Changing it here is enough. */
  width: var(--fm-coin-size); height: var(--fm-coin-size);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 120% at 30% 24%, color-mix(in srgb, var(--fm-tint) 55%, white 30%) 0%, var(--fm-tint) 46%, var(--fm-tint-deep) 100%);
  box-shadow:
    0 0 0 var(--fm-coin-ring) color-mix(in srgb, var(--fm-tint-deep) 60%, black 10%),
    inset 0 2px 2px rgba(255,255,255,0.5),
    inset 0 -4px 6px rgba(0,0,0,0.25),
    0 6px 14px -4px rgba(0,0,0,0.45);
  opacity: 0;
  z-index: 7;
  pointer-events: none;
}
.fm-coin-icon{
  width: 24px; height: 24px;
  stroke: var(--fm-chrome-bright); fill: none; stroke-width: 1.7;
  opacity: 0.95;
}
/* Recycling is the one gesture that SHOULD stop the breathing: the coin is
   leaving, and there is nothing left to keep alive. So unlike the flip above
   it genuinely replaces the animation list, and it stays scoped as
   `.fm-dock .fm-coin.fm-coin--___` to outrank fm-coin-idle - `animation` is
   a single shorthand, and whichever matching rule has the higher specificity
   wins it outright.

   Losing that fight is exactly what once hung recycleDockedCoin()/clearAll():
   both await this animation's `animationend`, which idle's infinite loop
   never fires, which meant `busy` never cleared, which is what made it look
   like selecting a different flavor (or hitting "start over") had stopped
   working entirely. awaitEventOrTimeout()'s fallback timer is the belt to
   this braces. */
:is(.fm-dock, .fm-perch-well) .fm-coin.fm-coin--recycling{ animation: fm-coin-recycle 340ms cubic-bezier(.4,0,.7,.4) forwards; }
@keyframes fm-coin-recycle{
  0%{ opacity: 1; transform: scale(1) translateY(0); }
  100%{ opacity: 0; transform: scale(0.3) translateY(-40px); }
}
/* ---------- the token, floating outside a mouth ("this is where it goes") ----------
   Hovering a cap that takes tokens lifts the actual token out of its holder
   and parks it just outside that cap's mouth, where it bobs until the pointer
   moves on. See previewIntent() in flip-machine.js.

   THE POSITION IS ON `translate`, THE BOB IS ON `transform`, AND THAT SPLIT IS
   LOAD-BEARING - same principle as the docked coin's four channels above.
   flip-machine.js writes the park position inline as `translate`, and an
   animation beats an inline style for the property it animates: a bob written
   into `transform` composes with that position, while a bob written into
   `translate` would fight it and win, dropping the token in the corner of the
   coin layer. fm-coin-insert, which plays the instant this token reaches a
   mouth, is a `transform` animation for the same reason. */
.fm-coin--hovering{
  opacity: 1;
  z-index: 8;
  transition: translate 380ms cubic-bezier(.32,.72,.28,1);
  animation: fm-coin-float 1.9s ease-in-out infinite;
  filter: drop-shadow(0 10px 12px rgba(0,0,0,0.45));
}
@keyframes fm-coin-float{
  0%, 100%{ transform: translateY(0) rotate(-3deg); }
  50%     { transform: translateY(-5px) rotate(3deg); }
}
/* And the drop from there into the mouth: a short straight fall, because the
   token is already hanging over the slit. The routed pipe is for a trip that
   crosses the cabinet, and flying this one back to the projector first to
   "start properly" would undo the gesture the visitor just made. */
.fm-coin--dropping{
  opacity: 1;
  z-index: 8;
  transition: translate 280ms cubic-bezier(.45,.05,.55,1);
}

/* The coin's last beat when it's spent on a format: instead of vanishing
   the instant it arrives, it visibly drops through the slot - shrinking
   and dipping down as if slipping into the mouth, timed with the slot's
   fm-cap--receiving flash above. See insertCoin() in flip-machine.js. */
.fm-coin--inserting{ animation: fm-coin-insert 240ms cubic-bezier(.4,0,.7,.4) forwards; }
@keyframes fm-coin-insert{
  0%{ transform: scale(1) translateY(0); opacity: 1; }
  55%{ transform: scale(0.5) translateY(3px); opacity: 0.85; }
  100%{ transform: scale(0.1) translateY(6px); opacity: 0; }
}

/* ---------- step 2: the format slot bank ---------- */
.fm-slot-bank-wrap{
  margin-top: 30px;
  opacity: 0.45;
  filter: grayscale(0.35);
  transition: opacity 260ms ease, filter 260ms ease;
}
.fm-slot-bank-wrap.fm-is-active{ opacity: 1; filter: none; }
/* Step 2 is the pivot of the whole flow - what you actually do with the
   token you just minted - so it earns more than the same quiet label
   treatment as step 1: bigger, brighter, and a slightly bolder step-number
   chip to call it out among "a handful of steps". */
.fm-slot-bank-wrap .fm-step-label{
  color: var(--fm-chrome-bright);
  font-size: 17px;
  opacity: 1;
}
.fm-slot-bank-wrap .fm-step-num{
  width: 26px; height: 26px; font-size: 13.5px;
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--fm-accent) 30%, transparent),
    0 0 16px -2px color-mix(in srgb, var(--fm-accent) 65%, transparent);
}

/* The free row's own label. Quieter than the step-2 label above it (no
   step-num chip - it is not a new step, just a second row of the same one)
   and specific enough to win over `.fm-slot-bank-wrap .fm-step-label`
   rather than losing that tie on source order alone. */
.fm-slot-bank-wrap .fm-step-label--free{
  color: var(--fm-chrome-bright);
  font-size: 13px;
  opacity: 0.72;
  margin-top: 22px;
}

/* Same three uniformity properties as .fm-grid, for the same reason. This
   section needs them more, not less: a slot cap carries a whole sentence of
   body copy and every format's sentence is a different length, so left to
   itself no two slots in the bank are ever the same height. Levelling the
   rows to the tallest is what makes them a bank of identical slots, and it
   truncates nothing to do it. */
.fm-slot-bank{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: clamp(10px, 1.4vw, 14px);
}
@media (max-width: 900px){ .fm-slot-bank{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px){ .fm-slot-bank{ grid-template-columns: minmax(0, 1fr); } }

/* ---------- step 2, row two: the free row ----------
   Four formats that spend the same token but cost nothing, styled DOWN
   rather than disabled: smaller and lower-contrast, never
   .fm-plate--locked's grayscale/opacity treatment, which says "not on
   offer" and is the opposite of what these plates mean. .fm-slot-bank--free
   is a second .fm-slot-bank (same grid, same three uniformity properties,
   its own section per the README's "per row is the floor, per section is
   what is implemented" rule), so it is not added to plate-uniformity's grid
   lists - the base .fm-slot-bank selector already reaches it.

   Nothing here touches .fm-cap-mouth or the --fm-mouth-* custom properties:
   the coin is the same physical size whichever row it drops into, so the
   hole it drops through cannot shrink here without it starting to scrape -
   see tests/js/token-fit.test.js. */
.fm-slot-bank--free{
  margin-top: 4px;
}
/* Scoped to the plate's own class rather than the container: a free-row
   plate is quieter wherever it is asked to render, not only inside this
   particular grid. */
.fm-plate--slot-free .fm-cap--slot .fm-icon{
  width: 17px; height: 17px;
}
.fm-plate--slot-free .fm-label{
  font-size: 12.5px;
}
.fm-plate--slot-free .fm-cap-desc{
  opacity: 0.76;
}

/* ---------- glossy button system, shared by flavor caps and token-receiving
   caps (.fm-cap--slot): same plastic-plate language throughout, distinguished
   only by the coin-mouth notch a slot cap carries. ---------- */
/* `aspect-ratio: auto` used to live here to undo the flavor plate's 3:3.6.
   .fm-plate no longer sets a ratio at all, so there is nothing to undo; a
   slot plate inherits `display: grid` from .fm-plate and is levelled by
   .fm-slot-bank's rows like every other plate. */
.fm-plate--slot{
  position: relative;
  transition: opacity 200ms ease, filter 200ms ease;
}
.fm-plate--locked{
  opacity: 0.4;
  filter: grayscale(0.6);
}
/* A format that is on the bank, priced and openable, but not for sale yet
   (see openNotYetBranch() in flip-machine.js). Dimmed relative to a live
   slot, but deliberately NOT .fm-plate--locked above: a greyed, desaturated
   control says "not on offer", which the FLAVOR_HUES comment near the top of
   this file already rejected once for a colourless cap, and it is the
   opposite of what this state means. No grayscale here, on purpose. */
.fm-plate--not-yet{
  opacity: 0.78;
}
/* The corner tag that says so, in the OTHER top corner from the price pill so
   the two never collide - a slot can carry both at once. Same pill language,
   in a neutral chrome rather than the slot's own tint: this is a status, not
   a colour signal. */
.fm-slot-not-yet{
  position: absolute;
  top: -6px; left: -4px;
  z-index: 2;
  font-family: "Fjalla One", system-ui, sans-serif;
  font-size: 12px; letter-spacing: 0.04em;
  line-height: 1.2;
  background: color-mix(in srgb, var(--fm-chrome-bright) 18%, #16111A);
  color: var(--fm-chrome-bright);
  padding: 4px 10px 4px 9px;
  border-radius: 999px;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--fm-chrome) 55%, transparent),
    0 3px 8px rgba(0,0,0,0.4);
  pointer-events: none;
}
/* The price pill wears its own slot's colour, not one global gold. It reads
   as part of the slot rather than as a sticker applied to the cabinet, and
   with the slot palette no longer gold it is the difference between a system
   and a leftover. --fm-tint is set on the PLATE (see renderSlotBank) so this
   sibling of the bezel can see it. */
/* SIZE AND CONTRAST ARE THE POINT HERE, not decoration. This was 10.5px on
   --fm-tint-deep, which is unreadable at arm's length on a phone by anyone
   who left their glasses somewhere else - and the price is the one number on
   a slot that a visitor actually has to be able to read.

   Two things about the geometry, both load-bearing if this ever grows again:

   - It is anchored top/right, so it grows DOWN and LEFT, into its own plate.
     Its overhang past the plate edge is exactly `top`/`right` and nothing
     else, so a bigger font cannot push it further toward the plate beside it.
     Both offsets were still pulled in (-8/-6 to -6/-4), so the clearance to
     the neighbouring plate is now larger than it was before the pill grew:
     4px inside the tightest gap in any of the three grids (10px, on .fm-grid
     and .fm-slot-bank below their narrow breakpoints).
   - The tint is darkened toward the cabinet rather than used raw. Cream on a
     raw --fm-tint-deep is the weakest pairing on the page (#855A18 gives
     ~4.7:1); mixing 82% tint with the cabinet ink keeps it recognisably the
     slot's own colour and takes the worst case to ~6.1:1, with every actual
     format tint well above that. */
.fm-slot-price{
  position: absolute;
  top: -6px; right: -4px;
  z-index: 2;
  font-family: "Fjalla One", system-ui, sans-serif;
  font-size: 15px; letter-spacing: 0.04em;
  line-height: 1.2;
  background: color-mix(in srgb, var(--fm-tint-deep, var(--fm-ink)) 82%, #16111A);
  color: color-mix(in srgb, var(--fm-chrome-bright) 82%, white);
  padding: 5px 12px 5px 11px;
  border-radius: 999px;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--fm-tint, var(--fm-accent)) 70%, transparent),
    0 3px 8px rgba(0,0,0,0.4);
  pointer-events: none;
}

.fm .fm-cap--slot{
  /* Clears the mouth below - the coin's opening, plus its lip, plus room.
     The mouth is anchored 7px down, so the clearance this leaves under it is
     whatever is left of the leading 14px. */
  padding-top: calc(14px + var(--fm-mouth-open-h) + var(--fm-mouth-lip-y) * 2);
  gap: 6px;
  /* Every slot in the bank is now as tall as the wordiest one, so a slot with
     short copy has slack in it. The base cap's `space-between` would spend
     that slack by pushing the icon and the sentence apart, which makes the
     short slots look like different components rather than like the same one
     with less to say. Stack from the top (as .fm-cap--branch already does)
     and let the slack fall below the copy. */
  justify-content: flex-start;
}
/* A real coin slot, not just a dark bar: a raised metal surround (its own
   little bezel, catching light top-left same as the cabinet's bezels do)
   framing a genuinely carved-in slit. This is also the exact spot the coin
   animation lands on and drops through - see travelCoin()/insertCoin() in
   flip-machine.js and the fm-cap--receiving flash below. */
.fm-cap-mouth{
  position: absolute;
  top: 7px; left: 50%;
  transform: translateX(-50%);
  /* The surround = the opening + the lip on each side. The lip is metal, not
     hole, so it is added to the aperture rather than eating into it. */
  width: calc(var(--fm-mouth-open-w) + var(--fm-mouth-lip-x) * 2);
  height: calc(var(--fm-mouth-open-h) + var(--fm-mouth-lip-y) * 2);
  border-radius: 9px;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--fm-bezel) 92%, white 12%) 0%,
    color-mix(in srgb, var(--fm-bezel) 55%, #000) 55%,
    color-mix(in srgb, var(--fm-bezel) 32%, #000) 100%);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.5),
    inset 0 -2px 3px rgba(0,0,0,0.35),
    0 1px 2px rgba(0,0,0,0.25);
}
/* The opening itself - the only part of the mouth a token can go through,
   and therefore the part that has to be as wide as the token is. */
.fm-cap-mouth::after{
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: var(--fm-mouth-open-w); height: var(--fm-mouth-open-h);
  border-radius: calc(var(--fm-mouth-open-h) / 2);
  background: #000;
  box-shadow:
    inset 0 2px 3px rgba(0,0,0,0.9),
    inset 0 -1px 0 rgba(255,255,255,0.08),
    0 1px 0 rgba(255,255,255,0.22);
  transition: box-shadow 200ms ease;
}

/* ----- "a token goes in HERE" -----
   A live bank of slots that never move look like printed decoration. This
   lights the EMPTY SPACE INSIDE the slit - not the plate, not the lip, the
   hole - in the slot's own colour, so the affordance is the aperture rather
   than a glow applied to the button. One inset box-shadow keyframe on an
   element that already exists: no new markup, nothing that lays out, and
   nothing that runs when there is no token to spend.

   Only while the bank is live and this slot is actually takeable: a dimmed
   bank or a slot this flavor cannot use must not advertise an opening it
   will refuse. Step 3's cards are the same object one step further on - a
   mouth that will genuinely take the token - so they pulse on the same rule
   rather than on a copy of it that could drift away from this one. */
.fm-branch-panel .fm-plate--branch:not(.fm-plate--undefined) .fm-cap--takes-token .fm-cap-mouth::after,
.fm-slot-bank-wrap.fm-is-active .fm-plate--slot:not(.fm-plate--locked) .fm-cap-mouth::after{
  /* LONGHANDS, deliberately. Written as the `animation` shorthand this rule
     resets animation-delay to 0 - and it out-specifies anything that tries to
     set the delay from a shorter selector, so the stagger below was applied,
     overridden, and silently dead. Nothing about that looked broken: the
     bank just pulsed in lockstep.

     The delay itself rides in on a custom property renderSlotBank() sets on
     each plate, which inherits down to this pseudo-element. That beats a
     ladder of :nth-child rules on both counts: it cannot lose a specificity
     fight, and it does not quietly stop staggering the moment the catalog has
     an eighth slot in it. */
  animation-name: fm-mouth-ready;
  animation-duration: 2.6s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  /* Staggered, so the bank ripples across rather than strobing as one block -
     seven slots pulsing in lockstep reads as a warning light. */
  animation-delay: var(--fm-slot-delay, 0s);
}
@keyframes fm-mouth-ready{
  0%, 100%{
    box-shadow:
      inset 0 2px 3px rgba(0,0,0,0.9),
      inset 0 -1px 0 rgba(255,255,255,0.08),
      0 1px 0 rgba(255,255,255,0.22);
  }
  50%{
    box-shadow:
      inset 0 2px 3px rgba(0,0,0,0.9),
      inset 0 0 7px 1px color-mix(in srgb, var(--fm-tint) 75%, white 10%),
      inset 0 -1px 0 rgba(255,255,255,0.08),
      0 1px 0 rgba(255,255,255,0.22),
      0 0 10px -1px color-mix(in srgb, var(--fm-tint) 45%, transparent);
  }
}
/* Hovering answers the question the pulse was asking, so it stops asking and
   just holds the light on - which is also the moment the token itself arrives
   overhead, so the lit slit is what it is hanging above. */
.fm-branch-panel .fm-plate--branch .fm-cap--takes-token:hover .fm-cap-mouth::after,
.fm-branch-panel .fm-plate--branch .fm-cap--takes-token:focus-visible .fm-cap-mouth::after,
.fm-slot-bank-wrap.fm-is-active .fm-plate--slot:not(.fm-plate--locked) .fm-cap--slot:hover .fm-cap-mouth::after,
.fm-slot-bank-wrap.fm-is-active .fm-plate--slot:not(.fm-plate--locked) .fm-cap--slot:focus-visible .fm-cap-mouth::after{
  animation: none;
  box-shadow:
    inset 0 2px 3px rgba(0,0,0,0.9),
    inset 0 0 8px 1px color-mix(in srgb, var(--fm-tint) 85%, white 12%),
    inset 0 -1px 0 rgba(255,255,255,0.08),
    0 1px 0 rgba(255,255,255,0.22),
    0 0 12px -1px color-mix(in srgb, var(--fm-tint) 55%, transparent);
}
.fm-cap--slot .fm-icon{ width: 22px; height: 22px; }
.fm-cap-desc{
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 11.5px;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
  opacity: 0.92;
}
/* Fired the instant the coin actually arrives (see insertCoin() in
   flip-machine.js) rather than when the trip departs, so the slot's
   tactile "thunk" and the slit's glint land exactly when the token does. */
.fm .fm-cap--receiving{ animation: fm-cap-receive 260ms ease; }
.fm .fm-cap--receiving .fm-cap-mouth::after{ animation: fm-mouth-flash 320ms ease; }
@keyframes fm-mouth-flash{
  0%, 100%{
    box-shadow:
      inset 0 2px 3px rgba(0,0,0,0.9),
      inset 0 -1px 0 rgba(255,255,255,0.08),
      0 1px 0 rgba(255,255,255,0.22);
  }
  40%{
    box-shadow:
      inset 0 0 3px 1px rgba(255,255,255,0.9),
      0 0 8px 2px color-mix(in srgb, var(--fm-tint, var(--fm-accent)) 70%, white 20%);
  }
}
@keyframes fm-cap-receive{
  0%{ transform: translateY(6px); }
  45%{ transform: translateY(3px) scale(0.96); box-shadow: 0 0 0 3px rgba(255,255,255,0.4), inset 0 3px 2px rgba(255,255,255,0.55), inset 0 -10px 16px rgba(0,0,0,0.28), 0 3px 0 var(--fm-tint-deep); }
  100%{ transform: translateY(6px); }
}

/* ---------- step-3 sub-choice cards (Case Study / Vote-to-promote) ----------
   These used to be a bespoke flat rectangle on one fixed gold. They are now
   the SAME plate / bezel / cap object as a flavor cap and a format slot,
   because that is what they are: a labelled, described, pressable choice.
   Everything above in the .fm-cap block applies; this is only the sizing.
   Each card carries its own --fm-tint from OUTPUT_HUES / CASE_STUDY_HUES.

   A card on a panel that is a CHOICE also carries a coin mouth, because it is
   the last step of the same spend and the token is genuinely put into it - see
   perchToken() and spendOnBranch(). A card that cannot be pressed does not get
   one: an aperture the machine will refuse is the machine advertising a press
   it is going to ignore. */
/* As with .fm-plate--slot: no ratio to undo any more, and the branch grids
   below level these to a single height per section. */
/* Two rows, and only one of them ever has a size: the bezel takes the 1fr and
   the disclosure control below it takes what it needs. A card with no
   explanation has no control, so its second row collapses to nothing and the
   bezel fills the plate exactly as it did before this row existed. */
.fm-plate--branch{
  position: relative;
  grid-template-rows: 1fr auto;
  transition: filter 200ms ease, opacity 200ms ease;
}
.fm .fm-cap--branch{
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  gap: 7px;
  padding: 15px 14px 13px;
  min-height: 128px;
  /* Weighted darker than a flavor cap's gradient. A branch card carries a
     whole sentence in near-white where a flavor cap mostly carries a big
     display label, so it needs more of the -deep end under the text. */
  background: radial-gradient(125% 95% at 26% 16%,
    color-mix(in srgb, var(--fm-tint) 82%, white 10%) 0%,
    color-mix(in srgb, var(--fm-tint) 90%, black 14%) 46%,
    var(--fm-tint-deep) 100%);
}
/* Same reason: the gloss sweep lands exactly where the icon and the label sit,
   so it is pulled back here rather than lightening the two things that most
   need to stay legible. */
.fm .fm-cap--branch::after{
  height: 42%;
  background: linear-gradient(115deg, rgba(255,255,255,0.34), rgba(255,255,255,0) 60%);
}
.fm .fm-cap--branch .fm-icon{ width: 24px; height: 24px; opacity: 1; }
.fm .fm-cap--branch .fm-cap-desc{ opacity: 0.95; }
/* Room for the mouth, on the cards that have one. Same shape the slot caps
   use (see .fm .fm-cap--slot), leading with this card's own 15px so what is
   left under the mouth is 8px of clearance rather than a hairline. */
.fm .fm-cap--branch.fm-cap--takes-token{
  padding-top: calc(15px + var(--fm-mouth-open-h) + var(--fm-mouth-lip-y) * 2);
}
.fm .fm-cap--branch .fm-label{
  font-size: clamp(13.5px, 1.35vw, 15.5px);
  line-height: 1.15;
}
/* "Definition still being worked out" - real, and not pressable yet.
   The dimming is on the BEZEL rather than the whole plate on purpose: a card
   you cannot vote for is exactly the card whose explanation people want, so
   its disclosure control and the panel that control opens have to stay at
   full contrast while the button itself reads as switched off. */
.fm-plate--branch.fm-plate--undefined > .fm-bezel{
  filter: grayscale(0.7) brightness(0.78);
}
.fm .fm-cap--branch:disabled{
  cursor: default;
  pointer-events: none;
}
/* ---------- a second-tier card's own explanation ----------
   A duration, a vote output and a case-study option each carry a long form
   that will not fit on the card. Pressing the card still COMMITS - the cap is
   a slot and the token really goes into it - so the explanation cannot be
   opened by pressing the card, and it cannot live inside button.fm-cap either
   because a button inside a button does not survive parsing. Hence a real
   control of its own, a sibling of the bezel.

   THE OPEN REGION IS ABSOLUTELY POSITIONED, and that is the load-bearing
   decision here rather than a styling one. Every branch grid carries
   `grid-auto-rows: 1fr`, which levels every row in the section to the tallest
   one - so a card that grew when its explanation opened would not merely push
   its own row down, it would resize EVERY card on the panel. Out of flow, one
   card's explanation moves nothing. */
.fm .fm-disclosure{
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  margin-top: 7px;
  padding: 6px 10px;
  border-radius: 9px;
  font-family: "Fjalla One", system-ui, sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-align: center;
  color: var(--fm-chrome-bright);
  opacity: 0.82;
  background: color-mix(in srgb, var(--fm-tint, var(--fm-accent)) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fm-tint, var(--fm-accent)) 45%, transparent);
  transition: opacity 160ms ease, background-color 160ms ease;
}
.fm .fm-disclosure:hover,
.fm .fm-disclosure:focus-visible{
  opacity: 1;
  background: color-mix(in srgb, var(--fm-tint, var(--fm-accent)) 30%, transparent);
}
.fm .fm-disclosure:focus-visible{
  outline: 2px solid var(--fm-accent);
  outline-offset: 2px;
}
.fm-disclosure-caret{
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 180ms ease;
}
.fm .fm-disclosure.fm-is-open .fm-disclosure-caret{ transform: rotate(180deg); }

.fm-card-detail{
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  z-index: 14;
  /* A long explanation scrolls inside its own box rather than running off the
     bottom of the page. Contained, so reaching the end does not then scroll
     the page out from under the reader. */
  max-height: min(58vh, 460px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px 15px;
  border-radius: 13px;
  /* Typography, colour and the margin reset come from .fm-branch-detail, which
     this box also carries: an explanation reads the same whether it is the
     panel's own prose or a card's. Only the popover mechanics are here. */
  background: color-mix(in srgb, var(--fm-cabinet) 88%, black 12%);
  border: 1px solid color-mix(in srgb, var(--fm-tint, var(--fm-accent)) 42%, transparent);
  box-shadow: 0 14px 30px -8px rgba(0,0,0,0.65);
  animation: fm-rise 220ms cubic-bezier(.2,.8,.2,1) both;
}
/* The reduced-motion answer for both of these lives in the single
   prefers-reduced-motion block at the foot of this file, not in a second one
   here: the stylesheet deliberately has exactly one (projector.test.js
   asserts it), so there is one place to look for what stops moving. */
.fm-card-detail[hidden]{ display: none; }

.fm-output-count{
  display: inline-block;
  margin-top: auto;
  padding-top: 8px;
  font-family: "Fjalla One", system-ui, sans-serif;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fm-chrome-bright);
  opacity: 0.85;
  position: relative; z-index: 1;
}

/* ---------- sub-branch panel (Case Study / Vote to promote) ---------- */
/* The panel is tinted by the FORMAT that opened it (see tintBranchPanel), so
   step 3 visibly belongs to the slot that was pressed instead of floating
   free of it. */
.fm-branch-panel{
  display: none;
  margin-top: 22px;
  padding: 20px clamp(16px, 3vw, 26px) 24px;
  /* Headroom for revealPanel()'s top-aligned scroll, so a tall panel does not
     arrive tucked under the theme's fixed header. */
  scroll-margin-top: 96px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--fm-tint, transparent) 10%, transparent), transparent 45%),
    linear-gradient(180deg, rgba(0,0,0,0.34), rgba(0,0,0,0.08) 30%, transparent);
  border: 1px solid color-mix(in srgb, var(--fm-tint, rgba(255,255,255,0.05)) 28%, transparent);
  border-top: 3px solid color-mix(in srgb, var(--fm-tint, var(--fm-accent)) 75%, transparent);
  color: var(--fm-chrome-bright);
}
.fm-branch-panel.fm-is-open{
  display: block;
  animation: fm-rise 320ms cubic-bezier(.2,.8,.2,1) both;
}
/* This is the HEADLINE of step 3, so it is set like one. It used to wear
   .fm-eyebrow - 13px, all caps, tracked out to 0.22em, in dim gold - which
   is a style that works above a headline and falls apart as one: at that
   size the tracking pulls the letters apart faster than the eye can group
   them into words. Bigger, barely tracked, in cream. */
.fm .fm-branch-kicker{
  margin: 0 0 8px;
  padding: 0;
  font-family: "Fjalla One", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(19px, 2.1vw, 24px);
  letter-spacing: 0.015em;
  line-height: 1.18;
  text-transform: none;
  color: var(--fm-chrome-bright);
}
/* Which flavor this is about, in the colour of the slot that got here. */
.fm-branch-for{
  color: color-mix(in srgb, var(--fm-tint, var(--fm-accent)) 62%, white 38%);
}
.fm-branch-intro{
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fm-chrome);
  opacity: 0.95;
  max-width: 62ch;
}
/* Same three uniformity properties again, on all three branch grids - a tier
   ladder whose rungs are different heights is the one thing that stops it
   reading as a ladder. */
.fm-branch-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 14px;
}
.fm-branch-grid--output{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* The duration ladder reads left-to-right as it climbs, so all four rungs
   want to be on one line where there is room for them. */
.fm-branch-grid--tier{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px){ .fm-branch-grid--tier{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px){
  .fm-branch-grid, .fm-branch-grid--output{ grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px){ .fm-branch-grid--tier{ grid-template-columns: minmax(0, 1fr); } }

/* ---------- step 3's perch: the token, handed back ----------
   The format slot swallowed the token; this is where the machine gives it
   back for the choice that actually commits. A pedestal beside the panel's
   headline, holding exactly one token - so the cards below it are pressed
   with the same object the whole machine runs on rather than with a button
   that happens to come after it. */
.fm-branch-head--token{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(14px, 3vw, 30px);
}
.fm-branch-head--token .fm-branch-head-text{ flex: 1 1 auto; min-width: 0; }
.fm-perch{
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  max-width: 118px;
}
/* Carved into the cabinet the same way the projector's gate is: a dark well
   with a rim of light on it, tinted by whichever slot opened this panel. */
.fm-perch-well{
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: calc(var(--fm-coin-span) + 20px);
  height: calc(var(--fm-coin-span) + 20px);
  border-radius: 50%;
  background:
    radial-gradient(78% 78% at 50% 32%,
      color-mix(in srgb, var(--fm-tint, var(--fm-accent)) 22%, transparent),
      transparent 72%),
    rgba(0,0,0,0.34);
  box-shadow:
    inset 0 2px 5px rgba(0,0,0,0.6),
    inset 0 -1px 0 rgba(255,255,255,0.14),
    0 1px 0 rgba(255,255,255,0.07);
}
/* Layout only - everything the token DOES on this pedestal comes from the
   resting-coin rules it shares with the dock. */
.fm-perch-well .fm-coin{ position: relative; opacity: 1; z-index: 1; }
.fm-perch-note{
  font-family: "Fjalla One", system-ui, sans-serif;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  line-height: 1.4;
  text-align: center;
  color: var(--fm-chrome);
  opacity: 0.62;
}
@media (max-width: 560px){
  /* Two lines of headline beside a pedestal is not a layout at this width.
     The token goes above the copy instead, still on its own. */
  .fm-branch-head--token{ flex-direction: column-reverse; align-items: flex-start; gap: 14px; }
  .fm-perch{ flex-direction: row; align-items: center; gap: 12px; max-width: none; }
  .fm-perch-note{ text-align: left; }
}

/* ---------- an info panel's prose ----------
   The Deal Slot schedule, the "Tell me more" fuller picture. Andrew writes
   this in a WYSIWYG, so it arrives as real paragraphs and lists and has to be
   readable as an article rather than as UI chrome - wider leading, a measure
   that stops at a sane line length, and the machine's own colours. */
.fm-branch-detail{
  max-width: 68ch;
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.62;
  color: color-mix(in srgb, var(--fm-chrome) 55%, var(--fm-chrome-bright) 45%);
}
.fm-branch-detail > :first-child{ margin-top: 0; }
.fm-branch-detail > :last-child{ margin-bottom: 0; }
.fm-branch-detail p{ margin: 0 0 12px; }
.fm-branch-detail b,
.fm-branch-detail strong{ color: var(--fm-chrome-bright); font-weight: 600; }
.fm-branch-detail a{ color: color-mix(in srgb, var(--fm-tint, var(--fm-accent)) 55%, white 45%); }
.fm-branch-detail ul,
.fm-branch-detail ol{ margin: 0 0 12px; padding-left: 20px; }
.fm-branch-detail li{ margin: 0 0 5px; }

/* ---------- a panel's own buttons ----------
   Not the plastic cap language: these are ordinary controls at the FOOT of a
   panel ("register my interest", "make my ticket"), and dressing them as
   cabinet hardware would make them compete with the actual choices above. */
.fm-branch-actions{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.fm .fm-branch-action{
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  font-family: "Fjalla One", system-ui, sans-serif;
  font-size: 13.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fm-chrome-bright);
  padding: 11px 20px;
  border-radius: 9px;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--fm-tint, var(--fm-accent)) 88%, white 6%),
    color-mix(in srgb, var(--fm-tint, var(--fm-accent)) 70%, black 30%));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    0 4px 0 color-mix(in srgb, var(--fm-tint, var(--fm-accent)) 55%, black 45%),
    0 10px 18px -10px rgba(0,0,0,0.7);
  transition: transform 130ms cubic-bezier(.2,.7,.3,1.15), box-shadow 130ms ease, filter 130ms ease;
}
.fm .fm-branch-action:hover{ filter: brightness(1.06); transform: translateY(-1px); }
.fm .fm-branch-action:active{
  transform: translateY(3px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 1px 0 color-mix(in srgb, var(--fm-tint, var(--fm-accent)) 55%, black 45%);
}
.fm .fm-branch-action:focus-visible{ outline: 3px solid var(--fm-chrome-bright); outline-offset: 3px; }
.fm .fm-branch-action:disabled{ cursor: default; filter: grayscale(0.5) brightness(0.7); transform: none; }
/* The way out that is not the main act - "no thanks, just looking". Present
   and pressable, but it must not look like the thing being asked for. */
.fm .fm-branch-action--quiet{
  background: rgba(0,0,0,0.24);
  color: var(--fm-chrome);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fm-chrome) 32%, transparent);
}
.fm .fm-branch-action--quiet:hover{ color: var(--fm-chrome-bright); filter: none; }
.fm .fm-branch-action--quiet:active{ transform: translateY(2px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fm-chrome) 32%, transparent); }

/* ---------- the question form ----------
   The machine's own markup, not an embedded form plugin's - see
   AJCFM_Questions for why. Which means it has to be styled like the rest of
   the cabinet rather than inheriting a theme's input styles. */
.fm-question{
  max-width: 62ch;
  margin: 0 0 20px;
  padding: 18px 18px 16px;
  border-radius: 12px;
  background: rgba(0,0,0,0.22);
  border: 1px solid color-mix(in srgb, var(--fm-tint, var(--fm-chrome)) 22%, transparent);
}
.fm-question-lead{
  margin: 0 0 12px;
  font-family: "Fjalla One", system-ui, sans-serif;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fm-chrome-bright);
}
.fm .fm-question-field{
  display: block;
  margin: 0 0 12px;
}
.fm .fm-question-field > span{
  display: block;
  margin: 0 0 5px;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fm-chrome);
}
.fm .fm-question-field textarea,
.fm .fm-question-field input{
  /* `all: unset` rather than a reset list: this sits inside a WordPress theme
     that has its own opinions about every one of these properties. */
  all: unset;
  box-sizing: border-box;
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--fm-chrome-bright);
  background: rgba(0,0,0,0.35);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fm-chrome) 26%, transparent);
  transition: box-shadow 160ms ease;
}
.fm .fm-question-field textarea{ resize: vertical; min-height: 84px; }
.fm .fm-question-field textarea::placeholder,
.fm .fm-question-field input::placeholder{ color: var(--fm-chrome); opacity: 0.55; }
.fm .fm-question-field textarea:focus,
.fm .fm-question-field input:focus{
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--fm-tint, var(--fm-accent)) 65%, transparent);
}
.fm-question-foot{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.fm-question-status{
  margin: 0;
  font-size: 13px;
  color: var(--fm-chrome);
}
.fm-question-status--warn{ color: color-mix(in srgb, var(--fm-c-word) 45%, var(--fm-chrome-bright) 55%); }
.fm-question-sent{
  margin: 0;
  font-family: "Fjalla One", system-ui, sans-serif;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--fm-chrome-bright);
}

/* ---------- FOR YOU (2026-09-24T1659) ----------
   The one plate on the paid row that is not a format - see
   Machine.prototype.renderInvitePlate(). Highlighted with the same hero hue
   the LOOK cost row's invite highlight uses, so the two read as one thing
   (its outline lives in the 2026-11-10T1615 block below). */

/* ---------- the invite step shows the gift (2026-11-10T1615) ----------
   On an invite visit FOR YOU is the one obvious thing on step 2: alone on
   its own full-width line above the paid row (.fm-invite-lead, a sibling of
   .fm-slot-bank inside the same wrap, so the paid row's grid levels its
   own plates and nothing else), carrying a ribbon, one rate line and a
   button face. Under it the regular prices sit smaller and flatter, under
   their own heading, and take no token. All drawn in the machine's own
   look: the same plates, the same hero gold the FOR YOU outline already
   wears, the same pill language as the price and not-yet tags. */
.fm-invite-lead{ margin: 0 0 6px; }
.fm-invite-lead[hidden]{ display: none; }
.fm .fm-plate--invite .fm-bezel{
  box-shadow:
    inset 0 0 0 3px color-mix(in srgb, var(--fm-c-hero) 75%, transparent),
    0 0 18px -4px color-mix(in srgb, var(--fm-c-hero) 55%, transparent);
}
.fm .fm-cap--invite{
  align-items: flex-start;
  gap: 4px;
  padding-left: clamp(14px, 2.4vw, 22px);
  padding-right: clamp(14px, 2.4vw, 22px);
  padding-bottom: 16px;
}
.fm .fm-cap--invite .fm-label{
  font-size: clamp(20px, 3.2vw, 26px);
  line-height: 1.1;
}
.fm .fm-cap--invite .fm-cap-desc{ font-size: 13px; }
/* The one rate line: the invite's price per half hour, in the same unit as
   every regular pill below it. Bigger than the line above it, because it is
   the number the eye compares. */
.fm-invite-rate{
  font-family: "Fjalla One", system-ui, sans-serif;
  font-size: clamp(18px, 2.6vw, 22px);
  letter-spacing: 0.04em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--fm-chrome-bright) 82%, white);
}
/* The visible button face. Not a second button: it is inside the one
   [data-fm-invite] cap, so it is the same click target as the plate. */
.fm-invite-use{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: "Fjalla One", system-ui, sans-serif;
  font-size: 15px;
  letter-spacing: 0.05em;
  line-height: 1.2;
  background: color-mix(in srgb, var(--fm-tint-deep, var(--fm-ink)) 82%, #16111A);
  color: color-mix(in srgb, var(--fm-chrome-bright) 82%, white);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--fm-c-hero) 70%, transparent),
    0 3px 8px rgba(0,0,0,0.35);
}
.fm-invite-use-arrow{ font-size: 17px; line-height: 1; }
.fm-slot-bank-wrap:not(.fm-is-active) .fm-invite-use-arrow{ display: none; }
/* The "one-time price" ribbon: the not-yet tag's corner and shape, in the
   invite's own gold rather than a neutral status chrome. */
.fm-invite-ribbon{
  position: absolute;
  top: -6px; left: -4px;
  z-index: 2;
  font-family: "Fjalla One", system-ui, sans-serif;
  font-size: 13px; letter-spacing: 0.05em;
  line-height: 1.2;
  background: color-mix(in srgb, var(--fm-c-hero-deep) 82%, #16111A);
  color: color-mix(in srgb, var(--fm-chrome-bright) 82%, white);
  padding: 4px 11px 4px 10px;
  border-radius: 999px;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--fm-c-hero) 80%, transparent),
    0 3px 8px rgba(0,0,0,0.4);
  pointer-events: none;
}
/* What a press on a regular plate says during an invite visit. */
.fm-invite-better{
  margin: 10px 2px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--fm-chrome-bright);
}
.fm-invite-better[hidden]{ display: none; }
/* FOR YOU pulses once when a regular plate is pressed. */
.fm-plate--invite.fm-plate--nudge .fm-bezel{ animation: fm-invite-nudge 900ms ease-out 1; }
@keyframes fm-invite-nudge{
  0%, 100%{
    box-shadow:
      inset 0 0 0 3px color-mix(in srgb, var(--fm-c-hero) 75%, transparent),
      0 0 18px -4px color-mix(in srgb, var(--fm-c-hero) 55%, transparent);
  }
  40%{
    box-shadow:
      inset 0 0 0 3px var(--fm-c-hero),
      0 0 30px 4px color-mix(in srgb, var(--fm-c-hero) 80%, transparent);
  }
}
.fm-regular-head{ margin: 22px 0 10px; }
.fm-regular-heading{
  margin: 0;
  font-family: "Fjalla One", system-ui, sans-serif;
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fm-chrome-bright);
  opacity: 0.85;
}
.fm-regular-sub{
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--fm-chrome);
}
/* The regular plates on an invite visit: smaller and flatter than FOR YOU,
   no mouth to clear, and no press animation, since a press opens nothing.
   The prices stay exactly as legible as on a public visit. */
.fm .fm-slot-bank--regular .fm-cap--slot{
  padding-top: 13px;
  cursor: default;
  box-shadow:
    inset 0 2px 1px rgba(255,255,255,0.35),
    inset 0 -6px 10px rgba(0,0,0,0.22),
    0 3px 0 var(--fm-tint-deep);
}
.fm .fm-slot-bank--regular .fm-cap--slot:hover,
.fm .fm-slot-bank--regular .fm-cap--slot:active{
  transform: none;
  filter: none;
  box-shadow:
    inset 0 2px 1px rgba(255,255,255,0.35),
    inset 0 -6px 10px rgba(0,0,0,0.22),
    0 3px 0 var(--fm-tint-deep);
}
.fm .fm-slot-bank--regular .fm-cap--slot::after{ opacity: 0.45; }
.fm .fm-slot-bank--regular .fm-cap--slot .fm-icon{ width: 17px; height: 17px; }
.fm .fm-slot-bank--regular .fm-label{ font-size: 12.5px; }
.fm .fm-slot-bank--regular .fm-cap-desc{ opacity: 0.76; }

/* The recording-level radio group, when an invite asks - a plain question
   above the ticket's button, not a second token perch. */
.fm-invite-recording{
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}
.fm-invite-recording legend{
  margin: 0 0 8px;
  padding: 0;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fm-chrome);
}
.fm-invite-recording-option{
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--fm-chrome-bright);
  cursor: pointer;
}
.fm-invite-newsletter{
  display: flex !important;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px !important;
  cursor: pointer;
}
.fm-invite-recording-option input[type="radio"]{
  width: 16px; height: 16px;
  accent-color: var(--fm-tint, var(--fm-c-hero));
}
/* The newsletter checkbox (2026-10-06). `.fm .fm-question-field input` opens
   with `all: unset` and styles every input as a text box, which strips the
   native checkbox drawing: the box showed as a padded dark rectangle with no
   tick and no checked state, and `accent-color` has nothing native left to
   tint. So this draws the box itself (appearance: none), with the tick as an
   inline SVG background, in the tray's own chrome palette: a light edge when
   empty, a filled light box with a dark tick when checked, and a focus ring.
   24px square, inside a label that is the whole tap target. Selector is
   `.fm .fm-invite-newsletter input[type="checkbox"]` (0,3,1) so it outranks
   the text-input rule (0,2,1) without touching it: text inputs keep their
   `all: unset` look. */
.fm .fm-invite-newsletter input[type="checkbox"]{
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 24px;
  box-sizing: border-box;
  display: block;
  width: 24px;
  height: 24px;
  min-height: 24px;
  margin: 0;
  padding: 0;
  cursor: pointer;
  border-radius: 6px;
  background-color: rgba(0,0,0,0.35);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
  box-shadow: inset 0 0 0 2px var(--fm-chrome);
  transition: background-color 120ms ease, box-shadow 120ms ease;
}
.fm .fm-invite-newsletter input[type="checkbox"]:checked{
  background-color: var(--fm-chrome-bright);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.5' fill='none' stroke='%23201720' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  box-shadow: inset 0 0 0 2px var(--fm-chrome-bright);
}
.fm .fm-invite-newsletter input[type="checkbox"]:focus-visible{
  outline: 3px solid var(--fm-chrome-bright);
  outline-offset: 2px;
}
/* The label text beside the box: sentence case and 14px, because the shared
   `.fm-question-field > span` is a 12px uppercase caption and this one is a
   sentence a buyer is agreeing to. */
.fm .fm-invite-newsletter > span{
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fm-chrome-bright);
}
/* The consent line under the box, with the Privacy Policy link. */
.fm .fm-invite-consent{
  flex: 1 1 100%;
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.5;
  color: color-mix(in srgb, var(--fm-chrome) 78%, var(--fm-chrome-bright) 22%);
}
.fm .fm-invite-consent a{
  color: var(--fm-chrome-bright);
  text-decoration: underline;
}

/* ---------- login-gate prompt (Vote to promote, logged out) - fixed
   --fm-branch palette, matching the branch cards it sits alongside ---------- */
.fm .fm-login-prompt{
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 13px;
  padding: 14px 26px;
  margin-top: 4px;
  font-family: "Fjalla One", system-ui, sans-serif;
  font-size: 13.5px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--fm-chrome-bright);
  background: radial-gradient(120% 90% at 28% 18%, color-mix(in srgb, var(--fm-branch) 60%, white 20%) 0%, var(--fm-branch) 42%, var(--fm-branch-deep) 100%);
  box-shadow:
    inset 0 3px 2px rgba(255,255,255,0.55),
    inset 0 -10px 16px rgba(0,0,0,0.28),
    0 6px 0 var(--fm-branch-deep),
    0 10px 16px -6px rgba(0,0,0,0.5);
  transition: transform 140ms cubic-bezier(.2,.7,.3,1.15), box-shadow 140ms ease-out, filter 140ms ease-out;
}
.fm .fm-login-prompt::after{
  content: "";
  position: absolute;
  top: -30%; left: -20%;
  width: 90%; height: 65%;
  background: linear-gradient(115deg, rgba(255,255,255,0.6), rgba(255,255,255,0) 60%);
  border-radius: 50%;
  transform: rotate(-8deg);
  pointer-events: none;
}
.fm .fm-login-prompt:hover{
  filter: brightness(1.035);
  transform: translateY(-1.5px);
  box-shadow:
    inset 0 3px 2px rgba(255,255,255,0.55),
    inset 0 -10px 16px rgba(0,0,0,0.28),
    0 7px 0 var(--fm-branch-deep),
    0 13px 18px -8px rgba(0,0,0,0.45),
    0 0 0 1.5px color-mix(in srgb, var(--fm-branch) 22%, transparent);
}
.fm .fm-login-prompt:focus-visible{ outline: 3px solid var(--fm-chrome-bright); outline-offset: 2px; }
.fm .fm-login-prompt:active{ transform: translateY(4px) scale(0.985); transition-duration: 70ms; box-shadow: inset 0 3px 2px rgba(255,255,255,0.35), inset 0 -6px 10px rgba(0,0,0,0.32), 0 2px 0 var(--fm-branch-deep); }

/* ---------- ticket (universal receipt) ----------
   The payoff of the whole machine - the one thing a visitor walks away with -
   so it is deliberately the loudest surface in the cabinet: lit in the
   flavor's own tint, a real border and glow instead of a flat panel, and an
   entrance that pops rather than just fades. */
.fm-ticket-wrap{ margin-top: 30px; }
.fm-ticket{
  --fm-ticket-pad-x: clamp(24px, 4vw, 36px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  padding: clamp(22px, 3.4vw, 30px) var(--fm-ticket-pad-x) 22px;
  /* Enough headroom that scrolling this into view from the top does not tuck
     it under the theme's fixed header. */
  scroll-margin-top: 96px;
  border-radius: 20px;
  background:
    radial-gradient(140% 180% at 100% -10%, color-mix(in srgb, var(--fm-ticket-flavor, var(--fm-accent)) 26%, transparent), transparent 60%),
    linear-gradient(155deg, rgba(255,255,255,0.07), rgba(255,255,255,0.015));
  border: 1.5px solid color-mix(in srgb, var(--fm-ticket-flavor, var(--fm-accent)) 55%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 24px 48px -20px rgba(0,0,0,0.6),
    0 0 0 1px rgba(0,0,0,0.2),
    0 0 46px -10px color-mix(in srgb, var(--fm-ticket-flavor, var(--fm-accent)) 55%, transparent);
  position: relative;
  /* Visible, not hidden: the stub notch below and the kicker ribbon both hang
     off the left edge on purpose. `hidden` was quietly clipping the notch. */
  overflow: visible;
}
/* The stub notch - where this ticket was torn off the roll. */
.fm-ticket::before{
  content: "";
  position: absolute;
  left: -9px; top: 74px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--fm-panel);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
  z-index: 3;
}
.fm-ticket.fm-is-shown{ animation: fm-ticket-in 460ms cubic-bezier(.22,.85,.25,1.15) 60ms forwards; }
.fm-ticket.fm-is-hidden{ display: none; }
@keyframes fm-ticket-in{ to{ opacity: 1; transform: translateY(0) scale(1); } }

/* ---------- STRUCTURAL LABELS ----------
   "ACCOUNTABILITY FLIP · OPEN DESIGN STUDIO" used to be tinted small caps
   floating on the panel at 12.5px tracked to 0.12em. Two problems at once: a
   saturated tint as TEXT colour on a dark ground is the worst place to put a
   hue, and tracked-out small caps stop reading as words. The fix is the one
   this machine wants anyway - give the label a container. The hue moves from
   the letters to the plate behind them, the letters go cream, and the label
   becomes a physical part rather than an annotation.

   This is a ribbon: it starts outside the ticket's left edge, runs in past
   the padding, and folds under. Same trick is available to any label that
   needs to stop being decoration and start being a part. */
.fm-ticket .fm-ticket-kicker{
  position: relative;
  z-index: 2;
  align-self: flex-start;
  max-width: calc(100% + var(--fm-ticket-pad-x));
  display: inline-flex; align-items: center; gap: 11px;
  margin: -4px 0 2px calc(-1 * var(--fm-ticket-pad-x) - 14px);
  padding: 9px 22px 9px calc(var(--fm-ticket-pad-x) + 14px);
  border-radius: 0 9px 9px 0;
  font-family: "Fjalla One", system-ui, sans-serif;
  font-size: clamp(14px, 1.6vw, 17px);
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--fm-chrome-bright);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--fm-ticket-flavor, var(--fm-accent)) 94%, white 6%),
    color-mix(in srgb, var(--fm-ticket-flavor, var(--fm-accent)) 76%, black 24%));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.3),
    inset 0 -1px 0 rgba(0,0,0,0.25),
    0 8px 16px -8px rgba(0,0,0,0.75);
}
/* The fold: the wedge that makes the ribbon read as wrapped around the ticket
   rather than laid on top of it. */
.fm-ticket .fm-ticket-kicker::before{
  content: "";
  position: absolute;
  left: 0; bottom: -9px;
  width: 14px; height: 9px;
  background: color-mix(in srgb, var(--fm-ticket-flavor, var(--fm-accent)) 48%, black 52%);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
/* "your flip" - a stamped tab in the corner, not dim text hovering near it. */
.fm-ticket-stamp{
  position: absolute;
  top: 14px; right: 16px;
  z-index: 2;
  font-family: "Fjalla One", system-ui, sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fm-chrome-bright);
  padding: 4px 9px 3px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--fm-ticket-flavor, var(--fm-accent)) 26%, rgba(0,0,0,0.5));
  border: 1px solid color-mix(in srgb, var(--fm-ticket-flavor, var(--fm-accent)) 45%, transparent);
  opacity: 0.95;
  pointer-events: none;
}
.fm-ticket-icon-badge{
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: radial-gradient(120% 120% at 30% 24%, color-mix(in srgb, var(--fm-ticket-flavor, var(--fm-accent)) 65%, white 25%) 0%, var(--fm-ticket-flavor, var(--fm-accent)) 60%, color-mix(in srgb, var(--fm-ticket-flavor, var(--fm-accent)) 70%, black 30%) 100%);
  box-shadow:
    inset 0 2px 2px rgba(255,255,255,0.5),
    inset 0 -3px 5px rgba(0,0,0,0.3),
    0 4px 10px -3px rgba(0,0,0,0.5);
}
.fm-ticket-icon{ width: 17px; height: 17px; flex: none; stroke: var(--fm-chrome-bright); fill: none; stroke-width: 1.8; }
/* Same over-specific selectors and the same WONK treatment as the projection
   panel, and for the same two reasons: a theme's `.entry-content p` would
   otherwise beat a single-class rule, and the invite copy printed in here
   arrives already wrapped in paragraphs of its own. */
.fm .fm-ticket-body{
  margin: 14px 0 6px;
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-variation-settings: "SOFT" 40, "WONK" 1;
  font-size: clamp(15.5px, 1.7vw, 18.5px);
  line-height: 1.45;
  color: var(--fm-chrome-bright);
  text-wrap: pretty;
}
.fm .fm-ticket-body p{
  margin: 0 0 0.8em;
  padding: 0;
  font: inherit;
  color: inherit;
}
.fm .fm-ticket-body p:last-child{ margin-bottom: 0; }
.fm-ticket .fm-ticket-meta{
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px dashed color-mix(in srgb, var(--fm-ticket-flavor, var(--fm-accent)) 35%, var(--fm-chrome) 65%);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 13px;
  color: color-mix(in srgb, var(--fm-chrome) 70%, var(--fm-chrome-bright) 30%);
  line-height: 1.55;
}
.fm-ticket .fm-ticket-meta b{ color: var(--fm-chrome-bright); font-weight: 600; }

/* ---------- the commit button ----------
   The one control on the whole page that starts a payment, so it is the one
   thing on the ticket allowed to look like a primary action. It wears the
   docked FLAVOR's colour rather than a single global gold, the way the rest
   of the ticket already does: this is the button for THIS flip, not a generic
   buy button that happens to be here.

   Sits under the dashed meta rule, inside .fm-ticket-meta, because the meta
   line is the sentence it acts on - it says what was chosen, and this is the
   one thing left to do about it. Rendered only when the server has said the
   choice is actually buyable, so there is no disabled state to style: a
   checkout that cannot complete is never drawn at all. */
.fm-ticket .fm-buy{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 14px;
}
.fm .fm-buy-btn{
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  font-family: "Fjalla One", system-ui, sans-serif;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fm-chrome-bright);
  padding: 12px 24px;
  border-radius: 9px;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--fm-ticket-flavor, var(--fm-accent)) 88%, white 6%),
    color-mix(in srgb, var(--fm-ticket-flavor, var(--fm-accent)) 70%, black 30%));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    0 4px 0 color-mix(in srgb, var(--fm-ticket-flavor, var(--fm-accent)) 55%, black 45%),
    0 10px 18px -10px rgba(0,0,0,0.7);
  transition: transform 130ms cubic-bezier(.2,.7,.3,1.15), box-shadow 130ms ease, filter 130ms ease;
}
.fm .fm-buy-btn:hover{ filter: brightness(1.06); transform: translateY(-1px); }
.fm .fm-buy-btn:active{
  transform: translateY(3px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 1px 0 color-mix(in srgb, var(--fm-ticket-flavor, var(--fm-accent)) 55%, black 45%);
}
.fm .fm-buy-btn:focus-visible{ outline: 3px solid var(--fm-chrome-bright); outline-offset: 3px; }
/* What happens next, said before the press rather than after it. Small, but
   never below the 12px floor the other tags on this machine hold to. */
.fm-ticket .fm-buy-note{
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 12px;
  line-height: 1.4;
  color: color-mix(in srgb, var(--fm-chrome) 78%, var(--fm-chrome-bright) 22%);
}

.fm .fm-clear-btn{
  all: unset;
  cursor: pointer;
  align-self: flex-end;
  margin-top: 14px;
  font-family: "Fjalla One", system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  /* Was 10.5px at 0.6 opacity in mid-chrome, which is close to invisible on
     this panel. It is a real control, so it is given a real edge. */
  color: var(--fm-chrome-bright);
  opacity: 0.85;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--fm-ticket-flavor, var(--fm-chrome)) 40%, transparent);
  background: rgba(0,0,0,0.22);
  transition: opacity 150ms ease, transform 150ms ease, background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.fm .fm-clear-btn:hover{
  opacity: 1;
  color: var(--fm-chrome-bright);
  background: color-mix(in srgb, var(--fm-ticket-flavor, var(--fm-chrome)) 24%, rgba(0,0,0,0.22));
  border-color: color-mix(in srgb, var(--fm-ticket-flavor, var(--fm-chrome)) 70%, transparent);
  transform: translateY(-1px);
}
.fm .fm-clear-btn:active{ transform: translateY(0) scale(0.94); }
.fm .fm-clear-btn:focus-visible{ outline: 2px solid var(--fm-chrome-bright); outline-offset: 2px; }
.fm .fm-clear-btn.fm-is-shown{ display: inline-block; }
.fm .fm-clear-btn:not(.fm-is-shown){ display: none; }

.fm-sr-only{
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- the standing Open Design Studio block ----------
   Deliberately NOT a plate, and that is the whole design. The studio is free,
   open and standing: it is not spent with a token, it is not on the slot bank,
   it does not dim with the bank, and it carries no bezel, no cap, no mouth and
   no price pill. So it is built from none of those parts - one panel, one
   heading, one control - and `plate-uniformity.test.js` never sees it, which
   is the intended outcome rather than a coincidence.

   Its one borrowed part is the disclosure: the same `.fm-disclosure` control
   every second-tier card wears, the same hidden region, wired by the same
   `Machine.bindCardDisclosures()`. Matching what the page already does is
   worth more here than any improvement, so only the SHAPE is overridden below
   - a card has room for a small centered pill and a standing block does not
   want one.

   Cabinet-coloured on purpose. The open region also carries
   `.fm-branch-detail`, so the prose reads identically to every other
   explanation on this page, and that class sets cream text for a dark ground
   while this block sits out on the page's own cream background. */
.fm-studio{
  --fm-tint: var(--fm-fmt-studio);
  --fm-tint-deep: var(--fm-fmt-studio-deep);
  max-width: 760px;
  margin: clamp(40px, 6vw, 60px) auto 0;
  padding: clamp(16px, 2.6vw, 24px);
  border-radius: 18px;
  background: var(--fm-cabinet);
  border: 1px solid color-mix(in srgb, var(--fm-tint) 42%, transparent);
  box-shadow: var(--fm-shadow-md);
}
.fm-studio-heading{
  margin: 0;
  font: inherit;
}
/* The whole header IS the control: the name and the one-line description are
   a single press, in every state of the machine, with no token and no flavor
   docked. The base `.fm-disclosure` is a small centered uppercase pill sized
   for the foot of a card; here it runs the width of the block and reads left
   to right like the thing it is. */
.fm .fm-studio-toggle{
  width: 100%;
  gap: clamp(12px, 2vw, 20px);
  justify-content: space-between;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  font-family: inherit;
  font-size: inherit;
  margin-top: 0;
  padding: clamp(10px, 1.6vw, 14px);
  border-radius: 13px;
  opacity: 1;
}
.fm-studio-text{
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.fm-studio-name{
  font-family: "Fraunces", Georgia, serif;
  font-weight: 650;
  font-size: clamp(21px, 2.8vw, 27px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--fm-chrome-bright);
  overflow-wrap: anywhere;
}
.fm-studio-line{
  font-size: 15px;
  line-height: 1.5;
  color: var(--fm-chrome);
}
/* A long name must not squeeze the caret out of existence. */
.fm .fm-studio-toggle .fm-disclosure-caret{ flex: none; }

/* In flow, unlike `.fm-card-detail`. That box is absolutely positioned
   because a plate that grew on open would resize every card in a
   `grid-auto-rows: 1fr` panel. Nothing here is in a grid, there is nothing
   beside this block to disturb, and a standing block is allowed to get
   taller. */
.fm-studio-detail{
  margin: clamp(14px, 2vw, 18px) 0 0;
  padding: clamp(14px, 2vw, 18px) 0 0;
  border-top: 1px solid color-mix(in srgb, var(--fm-tint) 30%, transparent);
}
.fm-studio-detail[hidden]{ display: none; }

/* The hour and the way in. Each is absent entirely when its setting is empty:
   no dead control, no broken anchor, no "TBD". */
.fm-studio-facts{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed color-mix(in srgb, var(--fm-tint) 34%, transparent);
}
.fm-studio-fact{
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--fm-chrome-bright);
  overflow-wrap: anywhere;
}
.fm-studio-fact:last-child{ margin-bottom: 0; }
.fm-studio-fact-label{
  display: inline-block;
  margin-right: 8px;
  font-family: "Fjalla One", system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--fm-chrome);
}
.fm .fm-studio-link{
  color: color-mix(in srgb, var(--fm-tint) 45%, white 55%);
}
@media (max-width: 560px){
  .fm .fm-studio-toggle{ align-items: flex-start; }
  .fm .fm-studio-toggle .fm-disclosure-caret{ margin-top: 10px; }
}

/* ---------- the four levels (class names stay `fm-gate*`) ----------

   The section is a DRAWING with a caption, not a list. Everything it has to
   say is in the figure three separate ways - how far out each gate sits, how
   much bigger each gate is than the one it encloses, and how much of a seven
   cell week is lit past it - so it survives being skimmed, and it says the
   thing the words could only assert: the cabinet's light runs out before the
   fourth gate, and what is past it comes out of the person standing there.

   The <ol> is still rendered, off screen, because the figure is aria-hidden
   and the four names and meanings are real content: a screen reader, a
   crawler and a no-CSS render all get the list, and the PHP builds both from
   one array so the two cannot drift.

   The wide and the tall figure are the same geometry read at ninety degrees.
   Only one of them is ever in the layout; they swap at the same 720px the
   rest of the cabinet uses for its narrow rules.
   -------------------------------------------------------------------- */
.fm-gates{
  text-align: center;
  max-width: 1080px;
  margin: clamp(40px, 6vw, 60px) auto 0;
}
.fm-gates-heading{
  font-family: "Fraunces", Georgia, serif;
  font-weight: 650;
  font-size: clamp(24px, 3.4vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--fm-ink);
}
.fm-gates-intro{
  margin: 0 auto 22px;
  max-width: 560px;
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(14px, 1.6vw, 16px);
  color: var(--fm-muted);
}
.fm-gates-close{
  margin: 22px auto 0;
  max-width: 560px;
  font-size: 12.5px;
  color: var(--fm-muted);
}

/* the figure */
.fm .fmg-fig{ display: block; width: 100%; height: auto; overflow: visible; }
.fm .fmg-fig-tall{ display: none; }
@media (max-width: 720px){
  .fm .fmg-fig-wide{ display: none; }
  .fm .fmg-fig-tall{ display: block; }
}

/* light. The gradients carry the falloff; the stop colour is the flavor gold
   the rest of the cabinet already uses, set here so no hex lives in the PHP. */
.fm .fmg-stop{ stop-color: var(--fm-c-hero); }
.fm .fmg-fig-wide .fmg-throw{ fill: url(#fmgThrow); }
.fm .fmg-fig-wide .fmg-mine{ fill: url(#fmgMine); }
.fm .fmg-fig-tall .fmg-throw{ fill: url(#fmgThrowv); }
.fm .fmg-fig-tall .fmg-mine{ fill: url(#fmgMinev); }
.fm .fmg-ray{
  fill: none; stroke: var(--fm-c-hero-deep); stroke-opacity: .38;
  stroke-width: 1.4; stroke-linecap: round;
}

/* the cone the gates sit in, drawn past where the light gives out */
.fm .fmg-edge{
  fill: none; stroke: var(--fm-c-hero-deep); stroke-opacity: .30;
  stroke-width: 1; stroke-dasharray: 1.5 5;
}
.fm .fmg-axis{
  fill: none; stroke: var(--fm-ink); stroke-opacity: .15;
  stroke-width: 1; stroke-dasharray: 2 7;
}

/* the gates themselves */
.fm .fmg-frame{
  fill: none; stroke: var(--fm-ink); stroke-opacity: .30;
  stroke-width: 1.3; stroke-linecap: round;
}
.fm .fmg-gate{
  fill: none; stroke: var(--fm-c-hero-deep); stroke-opacity: .85;
  stroke-linecap: round;
}
.fm .fmg-gate-open{ stroke-dasharray: 9 8; stroke-opacity: .7; }
.fm .fmg-post{ fill: var(--fm-ink); fill-opacity: .8; }   /* --fm-ink, not --fm-cabinet: the posts have to stay visible when the cabinet goes dark */
.fm .fmg-lead{ fill: none; stroke: var(--fm-ink); stroke-opacity: .20; stroke-width: 1; }

/* a week, seven cells of it */
.fm .fmg-cell-on{ fill: var(--fm-c-hero); stroke: var(--fm-c-hero-deep); stroke-width: 1; }
.fm .fmg-cell-seen{
  fill: var(--fm-c-hero); fill-opacity: .2;
  stroke: var(--fm-c-hero-deep); stroke-opacity: .85;
  stroke-width: 1; stroke-dasharray: 3 2.5;
}
.fm .fmg-cell-off{ fill: none; stroke: var(--fm-ink); stroke-opacity: .28; stroke-width: 1; }
.fm .fmg-cell-next{
  fill: var(--fm-c-hero); fill-opacity: .32;
  stroke: var(--fm-c-hero-deep); stroke-opacity: .45; stroke-width: 1;
}

/* the cabinet, and you */
.fm .fmg-cab{ fill: var(--fm-cabinet); stroke: var(--fm-chrome); stroke-opacity: .30; stroke-width: 1; }
.fm .fmg-cab-slot{ fill: var(--fm-chrome); }
.fm .fmg-lens{ fill: var(--fm-c-hero); stroke: var(--fm-cabinet); stroke-width: 3; }
.fm .fmg-you{ fill: var(--fm-c-hero); stroke: var(--fm-c-hero-deep); stroke-width: 1.8; }
.fm .fmg-pip{ fill: var(--fm-c-hero-deep); }

/* the labels, set in the cabinet's own signage and body faces */
.fm .fmg-name{
  font-family: "Fjalla One", system-ui, sans-serif;
  font-size: 14px; letter-spacing: .08em;
  fill: var(--fm-ink); text-anchor: middle;
}
.fm .fmg-mean{
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 15px; fill: var(--fm-muted); text-anchor: middle;
}

/* ---------- plaque / non-hierarchy pull quote ---------- */
.fm-plaque{
  text-align: center;
  max-width: 620px;
  margin: clamp(48px, 7vw, 76px) auto 0;
}
.fm-plaque blockquote{
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  quotes: none;
  font-family: "Fraunces", Georgia, serif;
  font-style: italic; font-weight: 500;
  font-size: clamp(21px, 3vw, 28px);
  line-height: 1.4;
  color: var(--fm-ink);
  text-wrap: balance;
}
.fm-plaque blockquote::before,
.fm-plaque blockquote::after{ content: none; }
.fm-plaque cite{
  display: block; margin-top: 14px;
  font-style: normal;
  font-family: "Fjalla One", system-ui, sans-serif;
  font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fm-muted);
}

@media (prefers-reduced-motion: reduce){
  .fm-marquee{ animation: none; }
  .fm .fm-cap,
  .fm-plate--branch,
  .fm .fm-login-prompt,
  .fm .fm-clear-btn,
  :is(.fm-dock, .fm-perch-well) .fm-coin,
  .fm-cap .fm-icon{ transition: none; }
  :is(.fm-dock, .fm-perch-well) .fm-coin,
  :is(.fm-dock, .fm-perch-well) .fm-coin:hover,
  :is(.fm-dock, .fm-perch-well) .fm-coin.fm-coin--flipping{ animation: none; }
  :is(.fm-dock, .fm-perch-well) .fm-coin{ translate: 0 0 !important; }
  .fm-coin--flipping, .fm-coin--recycling, .fm-coin--inserting, .fm-coin--arriving{ animation: none !important; }
  /* previewIntent() never runs under reduced motion, so there is normally no
     floating token at all - this is the belt to that braces, and it also
     flattens the straight drop glideToken() would otherwise animate. */
  .fm-coin--hovering, .fm-coin--dropping{ animation: none !important; transition: none !important; }
  /* The projector still LOOKS like a projector under reduced motion - the
     beam, the hole and the throw are all static geometry. What stops is the
     movement: no breathing, no drifting dust, no scan sweep, and the panel
     appears rather than resolving into focus. */
  .fm-dock-wrap.fm-is-lit .fm-dock-hole,
  .fm-dock-wrap.fm-is-lit .fm-dock-beam,
  .fm-dock-wrap.fm-is-lit .fm-dock-beam::after,
  .fm-dock-wrap.fm-is-lit .fm-dock-reflect::after,
  .fm-dock-wrap.fm-is-lit .fm-projector-ray::after,
  .fm-dock-wrap.fm-is-lit .fm-dock-chassis .fm-chassis-lamp{ animation: none; }
  .fm-dock-scan, .fm-dock-scan.fm-is-sweeping{ animation: none !important; opacity: 0; }
  /* The two idle affordances - the gate breathing and the slot mouths
     pulsing - are movement whose whole job is to catch the eye, which is
     precisely what this media query is here to switch off. The apertures
     stay the size they are: they were sized so the token FITS, which is
     geometry, not motion. */
  .fm-dock-wrap:not(.fm-is-lit) .fm-dock-hole,
  .fm-dock-wrap:not(.fm-is-lit) .fm-dock-empty{ animation: none; }
  .fm-cap-mouth::after{ animation: none !important; }
  /* FOR YOU's one pulse on a regular press. sayBetterOffer() skips the
     class under reduced motion; this is belt to that braces. */
  .fm-plate--invite.fm-plate--nudge .fm-bezel{ animation: none; }
  /* A card's explanation still opens and still closes; it just arrives rather
     than rising into place, and the caret flips without sweeping. */
  .fm-card-detail{ animation: none; }
  .fm-disclosure-caret{ transition: none; }
  .fm-token-info--projecting{ animation: none; }
  .fm-dock-hole, .fm-dock-beam, .fm-dock-reflect, .fm-dock-scan, .fm-dock-lens, .fm-projector-ray{ transition: none; }
  .fm-dock-chassis path, .fm-dock-chassis circle{ transition: none; }
  .fm-branch-panel.fm-is-open{ animation: none; }
  .fm-ticket.fm-is-shown{ animation: none; opacity: 1; transform: none; }
  .fm-cabinet.fm-is-loading{ animation: none; }
  .fm-loading-coin{ animation: none; }
  .fm-skel-cap{ animation: none; opacity: 0.45; }
  /* The rail becomes a plain static strip. syncRailMotion() bails out before
     ever adding the class, so this is belt to that braces. */
  .fm-rail-track, .fm-rail-track.fm-is-carousel{ animation: none !important; transform: none !important; transition: none !important; }
  /* LOOK -> OPEN: openFromLook() already skips straight to revealPanel()
     under reduced motion without adding fm-cabinet-revealing at all - this
     is belt to that braces, and covers anyone who reaches this state some
     other way. */
  .fm-cabinet-revealing{ transition: none !important; opacity: 1 !important; transform: none !important; }
}

@keyframes fm-rise{
  from{ opacity: 0; transform: translateY(14px); }
  to{ opacity: 1; transform: translateY(0); }
}
