/* ============================================================================
   Verse Studio › Explore — the home (2026-10-04, Higgsfield-style rows; 2026-10-07 one
   whole card per AI tool), community masonry. Tokens come from studio.css. Radii 14 (bench) / 12 (cards) / 10 (media)
   / 6 / 999; rail gaps 12px, gallery gaps 4px. Media leads every card; words sit under it or
   over a scrim. Nothing enters on load: hover and focus are the only reveals, and a demo video
   plays only while it is on screen (never with reduced motion).
   The side gutter comes from the shell's .content-pad, so these sections add none.
   ============================================================================ */
.ex-section { max-width: 1440px; margin: 0 auto 44px; }
.ex-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }

/* ---------- a row's header: title and one line on the left, its actions on the right ---------- */
.ex-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.ex-head-text { min-width: 0; }
.ex-head-line { margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--text-muted); max-width: 64ch; }
.ex-head-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ex-arrows { display: flex; gap: 6px; }
.ex-arrow { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--gray-light); display: inline-flex; align-items: center; justify-content: center; color: var(--text); }
.ex-arrow[hidden] { display: none; }
.ex-arrow:hover:not(:disabled) { background: var(--gray-mid); }
.ex-arrow:disabled { opacity: .35; cursor: default; }
.ex-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- rails: one horizontal row that scrolls; the padding keeps focus rings inside the clip ---------- */
.ex-rail { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
  scroll-padding-inline: 4px; padding: 4px; margin: -4px; scrollbar-width: none; }
.ex-rail::-webkit-scrollbar { display: none; }
.ex-rail > * { flex: 0 0 auto; scroll-snap-align: start; }

/* ---------- demo slots: a real demo, or the drawing that stands in for it ---------- */
.ex-demo, .ex-ph { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.ex-demo { object-fit: cover; object-position: var(--focus, 50% 50%); background: #000; }   /* --focus: a gallery example's manifest "focus" */
.ex-ph-svg { display: block; width: 100%; height: 100%; }
.ex-ph-tag { position: absolute; right: 8px; bottom: 8px; width: 24px; height: 24px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; background: rgba(10,10,10,.62); color: rgba(255,255,255,.86); }

/* ---------- New on Verse: a filmstrip of what people published; every card shares one height ---------- */
.ex-on-rail { --rail-h: 208px; }
.ex-on { width: calc(var(--rail-h) * var(--ar, 1)); display: flex; flex-direction: column; text-align: left; }
.ex-on-media { position: relative; display: block; width: 100%; height: var(--rail-h); border-radius: 10px; overflow: hidden; background: var(--gray-dark); }
.ex-on-media > img, .ex-on-media > video, .ex-on-media > svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.ex-on-blank { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--text-dim); }
.ex-on-title { margin-top: 8px; font-size: 14px; font-weight: 600; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-on-sub { font-size: 13px; line-height: 1.4; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-on-play { position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-ink); opacity: 0; transform: translateY(4px); transition: opacity .15s ease, transform .15s ease; }
.ex-on:hover .ex-on-play, .ex-on:focus-visible .ex-on-play { opacity: 1; transform: none; }
.ex-on-dur { position: absolute; left: 8px; bottom: 8px; padding: 2px 7px; border-radius: 999px; font-size: 12px; font-variant-numeric: tabular-nums; background: rgba(10,10,10,.72); color: #fff; }
.ex-on:focus-visible { outline: none; }
.ex-on:focus-visible .ex-on-media { outline: 2px solid var(--accent); outline-offset: 2px; }
/* An empty spot in the row is an invitation: a dashed frame the same height as a card and its two lines. */
.ex-invite { height: calc(var(--rail-h) + 50px); border: 1.5px dashed var(--gray-light); border-radius: 12px; padding: 16px; gap: 8px; }
.ex-invite .st-tile-title { color: var(--text); }
.ex-invite-line { font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.ex-invite-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ex-invite-actions .btn { gap: 6px; }
.ex-invite-hint { font-size: 12px; color: var(--text-dim); }
.ex-invite-album { --ar: 3; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); align-items: center; gap: 22px;
  overflow: hidden; border-color: var(--accent-deep-soft); background: var(--accent-wash); }
.ex-invite-art { display: block; height: 100%; max-height: 100%; aspect-ratio: 1; color: var(--text-dim); }
.ex-invite-art svg { width: 100%; height: 100%; display: block; }
.ex-invite-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ex-invite-small { --ar: 1.3; display: flex; flex-direction: column; justify-content: flex-end; }
.ex-invite-icon { margin-bottom: auto; width: 40px; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--gray-light); color: var(--text-soft); }

/* ---------- Edit and make: the bench. Video and audio share the top row, three below. ---------- */
.ex-bench { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.ex-bench-card { position: relative; grid-column: span 2; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; isolation: isolate;
  background: var(--gray-dark); text-align: left; }
.ex-bench[data-count="5"] .ex-bench-card:nth-child(-n+2),
.ex-bench[data-count="4"] .ex-bench-card,
.ex-bench[data-count="2"] .ex-bench-card { grid-column: span 3; }
.ex-bench[data-count="1"] .ex-bench-card { grid-column: span 6; aspect-ratio: 21 / 8; }
.ex-bench-media { position: absolute; inset: 0; z-index: 0; }
/* the scrim that keeps the overlaid words readable on any demo */
.ex-bench-card::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(8,8,8,.95) 0%, rgba(8,8,8,.86) 24%, rgba(8,8,8,.42) 44%, rgba(8,8,8,0) 64%); }
.ex-bench-text { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2; display: flex; flex-direction: column; gap: 4px; }
.ex-bench-card .st-tile-title { font-size: 26px; line-height: 28px; color: #fff; }
.ex-bench[data-count="5"] .ex-bench-card:nth-child(-n+2) .st-tile-title { font-size: 34px; line-height: 36px; }
.ex-bench-line { font-size: 13px; line-height: 1.45; color: rgba(255,255,255,.78); max-width: 48ch; }
.ex-bench-card .ex-ph-tag { top: 14px; left: 14px; right: auto; bottom: auto; z-index: 2; }
.ex-bench-open { position: absolute; top: 14px; right: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 2px; padding: 6px 10px 6px 14px;
  border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--accent-ink); background: var(--accent);
  opacity: 0; transform: translateY(-4px); transition: opacity .15s ease, transform .15s ease; }
.ex-bench-card:hover .ex-bench-open, .ex-bench-card:focus-visible .ex-bench-open { opacity: 1; transform: none; }
.ex-bench-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- AI services (2026-10-07): one whole card per tool, stacked, so the page scrolls from tool to tool.
   The gallery leads each card: five examples on a four-column grid of 16:9 tiles, the first two columns by two rows
   (so it is 16:9 too) and carrying the prompt that made it. The models sit under it as quiet buttons; the card's one
   accent is its main action. ---------- */
.ex-tcs { display: flex; flex-direction: column; gap: 20px; }
.ex-tc { padding: 24px 24px 22px; border-radius: 14px; background: var(--gray-dark); border: 1px solid var(--gray-mid); }
.ex-tc .ex-head { margin-bottom: 18px; }
.ex-tc .ex-tc-title { font-size: 34px; line-height: 36px; }
.ex-tools { margin-top: 56px; }
.ex-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ex-ex { position: relative; margin: 0; min-width: 0; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #0d0d0d; }
.ex-ex.is-lead { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
/* the prompt over a scrim: always on the lead, on hover on the small tiles */
.ex-ex-cap { position: absolute; inset: auto 0 0 0; z-index: 1; display: flex; flex-direction: column; gap: 4px; padding: 48px 18px 16px;
  background: linear-gradient(to top, rgba(8,8,8,.92) 0%, rgba(8,8,8,.7) 45%, rgba(8,8,8,0) 100%); pointer-events: none; }
.ex-ex-prompt { font-size: 15px; line-height: 1.45; color: #fff; max-width: 62ch;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.ex-ex-model { font-size: 12px; line-height: 1.4; color: rgba(255,255,255,.72); }
.ex-ex:not(.is-lead) .ex-ex-cap { padding: 28px 10px 8px; opacity: 0; transition: opacity .15s ease; }
.ex-ex:not(.is-lead) .ex-ex-prompt { font-size: 12.5px; -webkit-line-clamp: 2; }
.ex-ex:not(.is-lead):hover .ex-ex-cap { opacity: 1; }
/* bottom left: a sound effect's drawn hit (and a speech burst) sits high on the left, where a top corner button hid it */
.ex-ex-play { position: absolute; bottom: 12px; left: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; background: var(--accent); color: var(--accent-ink); }
.ex-ex-play[aria-pressed="true"] { background: #fff; color: #121212; }
.ex-ex:not(.is-lead) .ex-ex-play { bottom: 8px; left: 8px; width: 36px; height: 36px; }
@media (max-width: 760px) {
  .ex-ex.is-lead .ex-ex-play { bottom: 8px; left: 8px; width: 36px; height: 36px; }
  .ex-ex:not(.is-lead) .ex-ex-play { bottom: 6px; left: 6px; width: 30px; height: 30px; }
}
/* an audio example's name, set under its waveform */
.ex-ex-name { position: absolute; left: 12px; right: 12px; bottom: 15%; z-index: 1; pointer-events: none; text-align: center;
  font-size: 13px; font-weight: 600; line-height: 1.3; color: rgba(255,255,255,.9); text-shadow: 0 1px 10px rgba(0,0,0,.5);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-ex.is-lead .ex-ex-name { bottom: 17%; font-size: 22px; }
@media (max-width: 760px) { .ex-ex.is-lead .ex-ex-name { font-size: 16px; } .ex-ex:not(.is-lead) .ex-ex-name { font-size: 12px; bottom: 10%; } }
/* a playing audio example: its bars move with the sound (scaled about their own centres), and the part already
   played is bright while the rest waits dim */
.ex-wb { transform-box: fill-box; transform-origin: center; transition: transform .07s linear, opacity .2s linear; }
.ex-ex.is-sounding[data-sounding=""] .ex-wb,
.ex-ex.is-sounding[data-sounding="before"] .ex-wb-before,
.ex-ex.is-sounding[data-sounding="after"] .ex-wb-after { opacity: .42; }
.ex-ex.is-sounding .ex-wb.is-played { opacity: 1; }
.ex-ex.is-sounding .ex-wb-before.is-played { fill: rgba(255,255,255,.88); }   /* the original's grey row lights up as it plays */
/* a piano roll while its song plays (rollTick): the playhead sweeps across with the song, the notes it has passed stay
   lit, the ones under it turn white and swell with the sound, and the rest wait dim */
.ex-pn { transform-box: fill-box; transform-origin: center; transition: opacity .2s linear, transform .07s linear; }
.ex-ex.is-sounding .ex-pn { opacity: .34; }
.ex-ex.is-sounding .ex-pn.is-played { opacity: 1; }
.ex-ex.is-sounding .ex-pn.is-on { opacity: 1; fill: #fff; }
.ex-ex.is-sounding .ex-pn-head { opacity: .95; }
.ex-ex.is-sounding .ex-pn-glow { opacity: .16; }
/* a voice change: a Play button at the left of each row (the rows start 17.5 % in), a label over the original and
   one under the new voice, both lined up with the bars */
.ex-ex .ex-ex-play.is-row { left: 3.2%; bottom: auto; width: 34px; height: 34px; transform: translateY(-50%); }
.ex-ex .ex-ex-play.is-row-before { top: 32.2%; }
.ex-ex .ex-ex-play.is-row-after { top: 68.9%; }
.ex-ex:not(.is-lead) .ex-ex-play.is-row { left: 3%; bottom: auto; width: 28px; height: 28px; }
.ex-row-label { position: absolute; left: 17.5%; z-index: 1; pointer-events: none; font-size: 12px; font-weight: 600; line-height: 1.3; color: rgba(255,255,255,.75); }
.ex-row-label.is-before { top: 8%; }
.ex-row-label.is-after { bottom: 6%; }
.ex-ex:not(.is-lead) .ex-row-label { font-size: 10.5px; }
.ex-ex:not(.is-lead) .ex-row-label.is-before { top: 5%; }
.ex-ex:not(.is-lead) .ex-row-label.is-after { bottom: 4%; }
/* after the rules above, so a phone's sizes win at the same specificity */
@media (max-width: 760px) {
  .ex-ex.is-lead .ex-ex-play.is-row { left: 2.5%; width: 28px; height: 28px; }
  .ex-ex:not(.is-lead) .ex-ex-play.is-row { left: 1.5%; width: 20px; height: 20px; }
  .ex-ex:not(.is-lead) .ex-ex-play.is-row .icon { width: 12px; height: 12px; }
  .ex-ex:not(.is-lead) .ex-row-label { display: none; }   /* a phone's small tile has no room for them; the buttons say which is which */
}
.ex-ex-play:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* before / after: the result underneath, the original over it clipped to the left of the line. The range input covers
   the tile, invisible, so the whole tile is the slider; the line and its knob only show where it is. */
.ex-cmp { --split: 50%; }
.ex-cmp .ex-cmp-before, .ex-cmp .ex-bd-before { clip-path: inset(0 calc(100% - var(--split)) 0 0); }
/* a frame-locked pair (2026-10-08): one video (original over result, invisible but decoding) and the canvas that
   paints both halves from its frame; the two stills show until the first frame is painted */
.ex-pair-slot, .ex-pair-stage { position: absolute; inset: 0; display: block; }
.ex-pair-stage .ex-cmp-pair { opacity: 0; pointer-events: none; }
.ex-cmp-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.ex-cmp-locked.is-drawn .ex-cmp-still { visibility: hidden; }
/* "fit": "contain": the whole frame in the middle, over a blurred, darkened copy of its still. No transform on the
   blur (a scaled element would scale its clip too and part from the line); its soft edge fades into the tile. */
.ex-ex.is-contain .ex-demo { object-fit: contain; background: transparent; }
.ex-bd { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none;
  filter: blur(22px) brightness(.42) saturate(1.15); }
.ex-cmp .ex-cmp-range { position: absolute; inset: 0; z-index: 3; display: block; width: 100%; height: 100%; margin: 0; padding: 0;
  opacity: 0; cursor: ew-resize; touch-action: pan-y; -webkit-appearance: none; appearance: none; background: transparent; }
/* a hairline thumb, so a click lands the line where the pointer is, edge to edge */
.ex-cmp .ex-cmp-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 2px; height: 100%; }
.ex-cmp .ex-cmp-range::-moz-range-thumb { width: 2px; height: 100%; border: 0; }
.ex-cmp-line { position: absolute; top: 0; bottom: 0; left: var(--split); z-index: 2; width: 2px; margin-left: -1px; pointer-events: none;
  background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.18); }
.ex-cmp-knob { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; background: #fff; color: #121212; box-shadow: 0 2px 12px rgba(0,0,0,.4); }
.ex-cmp-knob .icon { margin: 0 -3px; }
.ex-ex:not(.is-lead) .ex-cmp-knob { width: 32px; height: 32px; margin: -16px 0 0 -16px; }
.ex-cmp .ex-cmp-range:focus-visible ~ .ex-cmp-line .ex-cmp-knob { outline: 2px solid var(--accent); outline-offset: 3px; }
.ex-cmp-tag { position: absolute; top: 12px; z-index: 2; padding: 3px 10px; border-radius: 999px; pointer-events: none;
  font-size: 12px; line-height: 1.4; color: #fff; background: rgba(10,10,10,.62); transition: opacity .15s ease; }
.ex-cmp-tag.is-before { left: 12px; }
.ex-cmp-tag.is-after { right: 12px; }
.ex-cmp[data-edge="before"] .ex-cmp-tag.is-before, .ex-cmp[data-edge="after"] .ex-cmp-tag.is-after { opacity: 0; }
/* a finger drags the tile itself (studio-explore.js): an up or down swipe scrolls the page, and the input, which iOS
   moves only by its thumb and Chrome jumps to the finger, ignores touches (the keyboard and screen readers keep it) */
.ex-cmp { touch-action: pan-y; }
@media (pointer: coarse) { .ex-cmp .ex-cmp-range { pointer-events: none; } }
/* a phone's small tiles (about 150 x 84 px): smaller tags and knob, so the two tags and the knob never overlap */
@media (max-width: 760px) {
  .ex-ex:not(.is-lead) .ex-cmp-tag { top: 6px; padding: 1px 7px; font-size: 10.5px; }
  .ex-ex:not(.is-lead) .ex-cmp-tag.is-before { left: 6px; }
  .ex-ex:not(.is-lead) .ex-cmp-tag.is-after { right: 6px; }
  .ex-ex:not(.is-lead) .ex-cmp-knob { width: 24px; height: 24px; margin: -12px 0 0 -12px; }
  .ex-ex:not(.is-lead) .ex-cmp-knob .icon { width: 12px; height: 12px; margin: 0 -2px; }
}
/* a 3D example: the live model's canvas over the tile's drawing, shown once it has drawn its first frame */
.ex-3d { cursor: grab; }
.ex-3d:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ex-3d-slot { position: absolute; inset: 0; z-index: 1; }
.ex-3d-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: pan-y; opacity: 0; transition: opacity .5s ease; }
.ex-3d-canvas.is-ready { opacity: 1; }
.ex-3d-canvas:active { cursor: grabbing; }
/* "ref": a third input as a small photo, top left under the "Original" tag (the inputs are on the left of the line,
   the result on the right); its height follows the tile, its width the photo */
.ex-ref { position: absolute; left: 12px; top: 44px; z-index: 2; height: 40%; pointer-events: none; }
.ex-ref img { display: block; height: 100%; width: auto; border-radius: 6px; border: 2px solid rgba(255,255,255,.92);
  box-shadow: 0 6px 18px rgba(0,0,0,.5); background: #0d0d0d; }
.ex-ref-label { position: absolute; left: 0; top: calc(100% + 6px); padding: 2px 9px; border-radius: 999px; white-space: nowrap;
  font-size: 12px; line-height: 1.4; color: #fff; background: rgba(10,10,10,.62); }
.ex-ex:not(.is-lead) .ex-ref { left: 8px; top: 38px; height: 36%; }
.ex-ex:not(.is-lead) .ex-ref img { border-width: 1.5px; border-radius: 4px; }
.ex-ex:not(.is-lead) .ex-ref-label { font-size: 11px; padding: 1px 7px; top: calc(100% + 4px); }
/* a sequence: the original, then the result, on a click. Its two videos sit in one stage; the one not playing fades
   out. Two step markers, top left, say which is on (white) and which comes next. */
.ex-seq-stage { position: absolute; inset: 0; display: block; }
/* sound on hover: before the visitor's first click the browser would pause an unmuted clip, so the tile asks for one */
.ex-ex.wants-sound::after { content: 'Click for sound';   /* (a bench card's ::after is its scrim, so it gets no note) */ position: absolute; right: 12px; bottom: 12px; z-index: 4;
  padding: 3px 10px; border-radius: 999px; font-size: 12px; line-height: 1.4; color: #fff; background: rgba(10,10,10,.7); pointer-events: none; }
.ex-seq-steps { position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; pointer-events: none; color: rgba(255,255,255,.55); }
.ex-seq-step { padding: 3px 10px; border-radius: 999px; font-size: 12px; line-height: 1.4; color: rgba(255,255,255,.78); background: rgba(10,10,10,.58); transition: background .2s ease, color .2s ease; }
.ex-seq-step.is-on { background: #fff; color: #121212; }
.ex-ex:not(.is-lead) .ex-seq-steps { top: 8px; left: 8px; gap: 2px; }
.ex-ex:not(.is-lead) .ex-seq-step { font-size: 11px; padding: 2px 8px; }
@media (max-width: 760px) { .ex-ex:not(.is-lead) .ex-seq-step { font-size: 10px; padding: 1px 6px; } .ex-ex:not(.is-lead) .ex-seq-steps .icon { width: 10px; height: 10px; } }
/* the models: one quiet button each */
.ex-tc-count { margin: 18px 0 8px; font-size: 13px; color: var(--text-muted); }
.ex-model-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.ex-model { min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; text-align: left;
  border: 1px solid var(--gray-mid); border-radius: 10px; background: transparent; }
.ex-model:hover { border-color: var(--text-dim); background: rgba(255,255,255,.03); }
.ex-model:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ex-model-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ex-model-name { min-width: 0; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-model-badges { display: flex; gap: 4px; flex-shrink: 0; }
.ex-model-blurb { font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.ex-caps { font-size: 12px; line-height: 1.5; color: var(--text-dim); }
.ex-model-price { margin-top: auto; padding-top: 4px; font-size: 13px; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.ex-keys { font-size: 12px; line-height: 1.6; list-style: none; margin-top: 8px; }
.ex-recent { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 4px; }
.ex-recent-item { flex: 0 0 148px; display: flex; flex-direction: column; gap: 4px; text-align: left; }
.ex-recent-item img, .ex-recent-item video, .ex-recent-audio { width: 148px; height: 96px; object-fit: cover; border-radius: 6px; background: var(--gray-dark); }
.ex-recent-audio { display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.ex-recent-title { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1100px) {
  .ex-bench .ex-bench-card, .ex-bench[data-count] .ex-bench-card { grid-column: span 3; }
  .ex-bench .ex-bench-card:last-child:nth-child(odd) { grid-column: span 6; aspect-ratio: 32 / 9; }   /* as tall as the half-width cards beside it */
  .ex-bench[data-count="5"] .ex-bench-card:nth-child(-n+2) .st-tile-title { font-size: 28px; line-height: 30px; }
}
@media (max-width: 760px) {
  .ex-section { margin-bottom: 36px; }
  .ex-head { flex-wrap: wrap; align-items: flex-start; }
  .ex-arrows { display: none; }   /* a phone swipes the rail */
  .ex-on-rail { --rail-h: 168px; }
  .ex-invite-album { --ar: 2.1; gap: 14px; }
  .ex-bench { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px; margin: -4px; }
  .ex-bench::-webkit-scrollbar { display: none; }
  .ex-bench .ex-bench-card, .ex-bench[data-count] .ex-bench-card, .ex-bench .ex-bench-card:last-child:nth-child(odd) { flex: 0 0 84%; aspect-ratio: 4 / 3; scroll-snap-align: start; }
  .ex-bench[data-count="5"] .ex-bench-card:nth-child(-n+2) .st-tile-title, .ex-bench-card .st-tile-title { font-size: 24px; line-height: 26px; }
  /* a phone: the lead example runs the card's width, the other four sit two by two under it */
  .ex-tcs { gap: 16px; }
  .ex-tc { padding: 16px 14px; border-radius: 12px; }
  .ex-tc .ex-tc-title { font-size: 28px; line-height: 30px; }
  .ex-tools { margin-top: 44px; }
  .ex-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .ex-ex { border-radius: 8px; }
  .ex-ex.is-lead { grid-row: span 1; aspect-ratio: 16 / 9; }
  .ex-ex.is-lead .ex-ex-cap { padding: 32px 12px 10px; }
  .ex-ex.is-lead .ex-ex-prompt { font-size: 13.5px; -webkit-line-clamp: 2; }
  .ex-model-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 400px) {
  .ex-invite-album { --ar: 1.7; grid-template-columns: minmax(0, 1fr); }   /* narrower than the screen, so the next invitation peeks in */
  .ex-invite-album .ex-invite-art { display: none; }
  .ex-bench .ex-bench-card, .ex-bench[data-count] .ex-bench-card { flex-basis: 90%; }
}
@media (hover: none) {
  .ex-bench-open, .ex-on-play { opacity: 1; transform: none; }
  .ex-ex:not(.is-lead) .ex-ex-cap { display: none; }   /* no hover to reveal them: the lead's prompt speaks for the card */
}

/* ---------- community masonry: 5 -> 4 -> 3 -> 2 columns, 4px gaps ---------- */
.ex-masonry { column-count: 5; column-gap: 4px; }
.ex-card { position: relative; break-inside: avoid; margin: 0 0 4px; border-radius: 6px; overflow: hidden; background: var(--gray-dark); }
.ex-card img, .ex-card video { width: 100%; display: block; }
.ex-card.is-audio { aspect-ratio: 4 / 3; }
.ex-card-wave { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 100%; color: var(--text-muted); }
.ex-card-wave-title { font-size: 13px; color: var(--text-soft); padding: 0 8px; text-align: center; }
/* Reveal on intent: the actions are never on screen at rest and nothing enters on load. */
.ex-card-actions { position: absolute; inset: auto 0 0 0; display: flex; align-items: center; gap: 6px; padding: 8px;
  background: linear-gradient(to top, rgba(0,0,0,.8), transparent); opacity: 0; transition: opacity .12s ease; }
.ex-card:hover .ex-card-actions, .ex-card:focus-within .ex-card-actions { opacity: 1; }
.ex-card-by { margin-left: auto; font-size: 12px; color: var(--text-soft); }
/* The side gutter and the width cap come from the shell's .studio-wrap, so the page adds none. */
.ex-page { max-width: 1440px; margin: 0 auto; }
.ex-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.ex-more { display: flex; justify-content: center; padding: 16px 0; }
@media (max-width: 1440px) { .ex-masonry { column-count: 4; } }
@media (max-width: 1100px) { .ex-masonry { column-count: 3; } }
@media (max-width: 760px)  { .ex-masonry { column-count: 2; } }
@media (prefers-reduced-motion: reduce) {
  .ex-card-actions, .ex-on-play, .ex-bench-open, .ex-ex-cap, .ex-cmp-tag, .ex-3d-canvas, .ex-wb, .ex-pn, .ex-seq-step { transition: none; }
  .ex-rail { scroll-behavior: auto; }
}
/* A coarse pointer has no hover: the actions stay on screen there rather than hiding behind a state it cannot reach. */
@media (hover: none) { .ex-card-actions { opacity: 1; } }
/* The polite live region: off screen, never display:none (a hidden region is not announced). */
.ex-status { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
