/* Genie feature slider: one panel open at a time, a picture behind, the Genie window over it.
   Used by showcase.html and the home page. Everything is prefixed gs- so it never meets site styles. */
@font-face { font-family: "Figtree"; src: url("v4/assets/v4/Figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

.gs { --gs-bg: #ece8df; --gs-soft: #e3ded2; --gs-raised: #fbfaf7; --gs-ink: #1d1c1a; --gs-muted: #5a564d; --gs-fill: #ff7a45;
  display: flex; flex-direction: column; color: var(--gs-ink); font-family: "Figtree", system-ui, sans-serif; }
.gs-tabs { display: none; gap: 6px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.gs-tab { appearance: none; border: 0; cursor: pointer; background: none; color: var(--gs-muted); font: 600 15px/1 "Figtree", sans-serif;
  min-height: 44px; padding: 0 16px; border-radius: 999px; white-space: nowrap; }
.gs-tab[aria-selected="true"] { background: var(--gs-ink); color: var(--gs-bg); }

.gs-stage { position: relative; display: flex; gap: 12px; flex: 1 1 auto; min-height: 480px; height: min(calc(100svh - 140px), 900px); touch-action: pan-y; }
.gs-panel { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: 24px; background: var(--gs-soft); cursor: pointer;
  isolation: isolate; container-type: size; }
.gs-panel.is-on { cursor: default; }
.gs-panel:focus-visible { outline: 2px solid var(--gs-ink); outline-offset: 4px; }
.gs-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 60%; }
.gs-panel:not(.is-on):hover .gs-photo { filter: brightness(1.05); }

/* Closed panels: a soft shade at the foot keeps the name readable on bright pictures. */
.gs-panel::after { content: ""; position: absolute; inset: 45% 0 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(10, 14, 18, .55), rgba(10, 14, 18, 0)); transition: opacity .4s; }
.gs-panel.is-on::after { opacity: 0; }
.gs-vlabel { position: absolute; z-index: 2; left: 0; right: 0; bottom: 24px; display: flex; flex-direction: column; align-items: center; gap: 14px;
  color: #fff; pointer-events: none; transition: opacity .3s; }
.gs-panel.is-on .gs-vlabel { opacity: 0; }
.gs-vlabel b { writing-mode: vertical-rl; transform: rotate(180deg); font: 600 21px/1 "Cal Sans", "Figtree", sans-serif; letter-spacing: -.01em; white-space: nowrap; }
.gs-vlabel span { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* The window sits to the right of the card so the two never overlap. */
.gs-slot { position: absolute; z-index: 2; top: 4%; bottom: 4%; left: 340px; right: 2.5%; display: grid; place-items: center; pointer-events: none; }
.gs-win { width: min(100%, 860px, calc((100cqh * .92 - 38px) * 1.6)); border-radius: 16px; overflow: hidden; background: var(--gs-raised);
  box-shadow: 0 40px 80px -30px rgba(10, 14, 18, .6), 0 10px 24px -12px rgba(10, 14, 18, .3); visibility: hidden; }
.gs-winbar { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; background: var(--gs-soft); }
.gs-winbar i { width: 10px; height: 10px; border-radius: 50%; background: #cfc7b6; }
.gs-winbar i:first-child { background: var(--gs-fill); }
.gs-winbar span { margin: 0 auto; transform: translateX(-26px); font-size: 13px; font-weight: 600; color: var(--gs-muted); white-space: nowrap; }
.gs-win svg { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; background: #fff; }
.gs-win svg text { font-family: "Figtree", system-ui, sans-serif; }

.gs-card { position: absolute; z-index: 3; left: 16px; bottom: 16px; width: min(306px, calc(100% - 32px)); padding: 20px 22px; border-radius: 18px;
  background: var(--gs-bg); visibility: hidden; }
.gs-card h2, .gs-card h3 { margin: 0 0 8px; font: 600 clamp(23px, 1.8vw, 29px)/1.05 "Cal Sans", "Figtree", sans-serif; letter-spacing: -.025em; text-wrap: balance; color: var(--gs-ink); }
.gs-card p { margin: 0 0 14px; color: var(--gs-muted); font-size: 15.5px; line-height: 1.45; text-wrap: pretty; }
.gs-card a { font-weight: 700; font-size: 15px; color: var(--gs-ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--gs-fill); text-decoration-thickness: 2px; }
.gs-timer { height: 3px; margin-top: 16px; border-radius: 3px; background: var(--gs-soft); overflow: hidden; }
.gs-timer i { display: block; height: 100%; background: var(--gs-ink); transform-origin: 0 50%; transform: scaleX(0); }

.gs-pause { position: absolute; z-index: 4; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 10px; cursor: pointer;
  display: grid; place-items: center; background: var(--gs-soft); color: var(--gs-ink); }
.gs-pause:hover { background: var(--gs-ink); color: var(--gs-bg); }
.gs-pause svg { width: 12px; height: 12px; }
.gs-pause .gs-play { display: none; }
.gs-stage.paused .gs-pause .gs-play { display: block; }
.gs-stage.paused .gs-pause .gs-halt { display: none; }

/* Below laptop width: tabs, one panel at a time (swipe to change), the window above the card. */
@media (max-width: 1100px) {
  .gs-tabs { display: flex; }
  .gs-stage { flex: none; height: 660px; min-height: 0; }
  .gs-stage { overflow: hidden; border-radius: 24px; }
  .gs-panel:not(.is-on) { display: none; }
  .gs-panel.gs-peek { display: block; position: absolute; inset: 0; }
  .gs-panel::after, .gs-vlabel { display: none; }
  .gs-slot { top: 60px; left: 12px; right: 12px; bottom: auto; height: calc(100% - 298px); }
  .gs-win { width: min(100%, calc((100cqh - 310px - 38px) * 1.6)); }
  .gs-card { left: 12px; right: 12px; bottom: 12px; width: auto; }
}
@media (max-width: 760px) { .gs-stage { height: 600px; } }
@media (max-width: 380px) { .gs-stage { height: 580px; } .gs-card p { font-size: 15px; } }

/* On the home page the slider sits straight under the hero. */
.band.gs-band { padding-block: clamp(8px, 2vw, 32px) clamp(48px, 6vw, 96px); }
