:root {
  --desk: #e4e6ea;
  --paper: #ffffff;
  --bg: var(--paper);
  --ink: #111214;
  --muted: #6b717b;
  --line: #d7dade;
  --soft: #eef0f2;
  --accent: #ff4f1a;
  --on-accent: #ffffff;
  --tile-a: #dfe3e8;
  --tile-b: #c3cad3;
  --sans: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --desk: #0d0e10;
    --paper: #1a1c1f;
    --ink: #eef0f2;
    --muted: #8a919b;
    --line: #2c2f34;
    --soft: #24272b;
    --accent: #ff6a3d;
    --on-accent: #0d0e10;
    --tile-a: #2a2e33;
    --tile-b: #3a4048;
  }
}

* { box-sizing: border-box; }

html, body { margin: 0; }
html { scroll-padding-top: 90px; }

body {
  background: var(--desk);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* Header: wordmark + one index tab per example */

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  gap: 28px;
  padding: 14px max(16px, calc((100% - 1120px) / 2)) 0;
  background: var(--desk);
  border-bottom: 2px solid var(--ink);
}

.mark {
  padding-bottom: 8px;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.04em;
  text-decoration: none;
}
.mark i { font-style: normal; color: var(--accent); }

.index {
  display: flex;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.index::-webkit-scrollbar { display: none; }

.index a {
  flex: none;
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 8px 14px 7px;
  border: 2px solid transparent;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  font-size: 14px;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.index a b { font: 500 11px var(--mono); }
.index a:hover { color: var(--ink); }
.index a.active {
  background: var(--paper);
  border-color: var(--ink);
  color: var(--ink);
  margin-bottom: -2px;
  padding-bottom: 9px;
}
.index a.active b { color: var(--accent); }

/* Intro */

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.intro {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: end;
  padding: 88px 0 72px;
}

h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(48px, 9vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.055em;
}
h1 em {
  font-style: normal;
  color: var(--accent);
}

.intro-side p { margin: 0; max-width: 340px; }
.tally { margin-top: 18px !important; }

/* Filter row: how the content switches */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 40px;
}

.filter {
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
  padding: 8px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font: 600 15px var(--sans);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.filter b { font: 500 11px var(--mono); color: var(--muted); transition: color 0.2s; }
.filter:hover { background: var(--paper); }
.filter.active { background: var(--ink); color: var(--paper); }
.filter.active b { color: var(--accent); }

.entry[hidden], .index a[hidden] { display: none; }

/* Each example is a folder: a tab on top, the card below */

.list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.entry { margin-bottom: 56px; }

.entry-tab {
  display: inline-flex;
  gap: 12px;
  align-items: baseline;
  padding: 12px 22px 8px;
  border-radius: 14px 14px 0 0;
  background: var(--paper);
}
.entry-tab .num {
  font: 500 12px var(--mono);
  color: var(--accent);
}

.entry-name {
  margin: 0;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.entry-card {
  --bg: var(--paper);
  padding: 28px;
  border-radius: 0 18px 18px 18px;
  background: var(--paper);
}

.entry-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 32px;
  align-items: start;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.entry-meta span {
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--soft);
}
.entry-meta span:first-child {
  background: var(--ink);
  color: var(--paper);
}
.entry-meta span.tag-trigger {
  background: var(--accent);
  color: var(--on-accent);
}

.entry-source {
  padding: 6px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.entry-source:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.entry-note {
  grid-column: 1 / -1;
  max-width: 640px;
  margin: 4px 0 0;
  color: var(--muted);
}

.demo-wrap { margin-top: 24px; }
.demo-hint { margin: 10px 0 0; }

.foot {
  display: flex;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  border-top: 2px solid var(--ink);
}

@media (max-width: 760px) {
  .top { flex-direction: column; align-items: stretch; gap: 6px; }
  .mark { padding-bottom: 0; }
  .intro { grid-template-columns: 1fr; padding: 48px 0 48px; }
  .entry-card { padding: 18px; }
  .entry-head { grid-template-columns: 1fr; }
  .entry-source { justify-self: start; }
}

/* Demo: scroll-driven stack (qoves.com) */

.scrollstack {
  position: relative;
  height: 480px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.scrollstack::-webkit-scrollbar { display: none; }

.ss-track { position: relative; }

.ss-stage {
  position: sticky;
  top: 0;
  height: 480px;
  display: grid;
  grid-template-columns: 1fr minmax(220px, 300px) 1fr 24px;
  gap: 24px;
  padding: 0 24px;
  align-items: center;
  overflow: hidden;
}

.ss-copy h3 {
  margin: 12px 0 18px;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.ss-copy h3 span { color: var(--muted); }

.ss-btn {
  font: inherit;
  font-size: 14px;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
}

.ss-items {
  position: relative;
  height: 156px;
}

.ss-item {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease-in-out;
}

.ss-tile {
  position: relative;
  border-radius: 8px;
  background: linear-gradient(160deg, var(--tile-a), var(--tile-b));
}
.ss-tile b {
  position: absolute;
  left: 8px;
  bottom: 6px;
  font: 400 11px var(--mono);
  color: var(--muted);
}

.ss-side {
  font-size: 13px;
  color: var(--muted);
  max-width: 180px;
}

.ss-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font: 400 11px var(--mono);
  color: var(--muted);
}

.ss-bar {
  position: relative;
  width: 3px;
  height: 180px;
  border-radius: 3px;
  background: var(--soft);
}

.ss-thumb {
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 10%;
  border-radius: 3px;
  background: var(--muted);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 760px) {
  .ss-stage { grid-template-columns: 1fr 24px; padding: 0 16px; }
  .ss-copy, .ss-side { display: none; }
}

/* Demo: scrollspy vertical tabs (musesoftware.ai) */

.spy {
  position: relative;
  height: 480px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 1.6fr;
  gap: 32px;
  padding: 0 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.spy::-webkit-scrollbar { display: none; }

.spy-side {
  position: sticky;
  top: 0;
  align-self: start;
  padding: 28px 0;
}

.spy-title {
  margin: 0 0 28px;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.spy-tabs {
  position: relative;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
}

.spy-accent {
  position: absolute;
  left: -2px;
  top: 0;
  width: 3px;
  border-radius: 3px;
  background: #9fc0e0;
  transition: top 0.3s linear, height 0.3s linear;
}

.spy-tab {
  padding: 7px 0 7px 22px;
  border: 0;
  background: none;
  font: 15px Georgia, "Times New Roman", serif;
  text-align: left;
  color: color-mix(in srgb, var(--ink) 30%, transparent);
  cursor: pointer;
  transition: color 0.3s linear;
}
.spy-tab:hover, .spy-tab.active { color: var(--ink); }

.spy-toggle { display: none; }

.spy-panes { padding: 28px 0 200px; }

.spy-pane { padding-bottom: 72px; }

.spy-pic {
  position: relative;
  aspect-ratio: 16 / 7.5;
  border-radius: 8px;
  background: linear-gradient(160deg, var(--tile-a), var(--tile-b));
}

.spy-chip {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--bg);
  font-size: 12px;
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.08);
}

.spy-pane h4 {
  margin: 18px 0 6px;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.spy-pane p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--muted);
}

.spy-pane .ss-btn { display: inline-block; font-size: 12px; }

@media (max-width: 760px) {
  .spy { grid-template-columns: 1fr; gap: 0; padding: 0 16px; }
  .spy-side {
    z-index: 2;
    padding: 16px 0 12px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .spy-title { margin-bottom: 12px; font-size: 18px; }
  .spy-toggle {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
    color: var(--ink);
    text-align: left;
  }
  .spy-tabs { display: none; margin-top: 8px; }
  .spy.open .spy-tabs { display: flex; }
  .spy-panes { padding-top: 20px; }
}

/* Demos: autoplay tabs (hyros.com, webflow.com) */

.auto {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 40px;
  align-items: center;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
}

.auto-title {
  margin: 0 0 28px;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.auto-list { display: flex; flex-direction: column; }

.auto-tab {
  display: flex;
  gap: 14px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.auto-track {
  position: relative;
  flex: none;
  overflow: hidden;
  border-radius: 6px;
  background: var(--soft);
}

.auto-fill {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 6px;
  background: var(--ink);
}

.auto-body { display: flex; flex-direction: column; }

.auto-name { font-size: 15px; }

.auto-text {
  display: grid;
  max-height: 0;
  overflow: hidden;
  font-size: 13px;
  color: var(--muted);
  opacity: 0;
  transition: max-height 0.45s cubic-bezier(0.45, 0, 0.55, 1), opacity 0s 0.45s, margin 0.45s cubic-bezier(0.45, 0, 0.55, 1);
}
/* The opening panel shows its text at once while the closing one keeps it
   until fully shut; both heights move together */
.auto-tab.active .auto-text { max-height: 80px; opacity: 1; margin-top: 6px; transition: max-height 0.45s cubic-bezier(0.45, 0, 0.55, 1), opacity 0s, margin 0.45s cubic-bezier(0.45, 0, 0.55, 1); }

.auto-pic {
  position: relative;
  aspect-ratio: 4 / 3.4;
  border-radius: 10px;
}

.auto-layer {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, var(--tile-a), var(--tile-b));
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.45, 0, 0.55, 1);
}
.auto-layer.on { opacity: 1; }
.auto-layer[data-step="1"] { background: linear-gradient(160deg, var(--tile-b), var(--soft)); }
.auto-layer[data-step="2"] { background: linear-gradient(220deg, var(--soft), var(--tile-b)); }
.auto-layer[data-step="3"] { background: linear-gradient(120deg, var(--tile-b), var(--tile-a)); }

/* Hyros: small vertical bar beside each step */
.auto-bars { background: var(--soft); }
.auto-bars .auto-track { width: 6px; height: 28px; background: color-mix(in srgb, var(--ink) 8%, transparent); }
.auto-bars .auto-fill { width: 100%; height: 0; }
.auto-bars .auto-pic { background: var(--bg); }

/* Webflow: line across the top of the open tab, dividers between */
.auto-line .auto-tab {
  flex-direction: column;
  gap: 0;
  padding: 0 0 18px;
  border-top: 1px solid var(--line);
}
.auto-line .auto-track { height: 2px; margin: -1px 0 16px; background: none; border-radius: 0; }
.auto-line .auto-fill { height: 100%; width: 0; border-radius: 0; }
.auto-line .auto-name { font-size: 17px; font-weight: 500; color: var(--muted); transition: color 0.3s; }
.auto-line .auto-tab.active .auto-name { color: var(--ink); }
.auto-line .auto-text { font-size: 14px; color: var(--ink); }
.auto-line .auto-tab.active .auto-text { margin-top: 10px; }

@media (max-width: 760px) {
  .auto { grid-template-columns: 1fr; gap: 24px; padding: 20px; }
  .auto-pic { aspect-ratio: 16 / 10; }
}

/* Hyros: the card is pinned inside a scrolling frame */
.auto-scroller {
  height: 480px;
  overflow-y: auto;
  border-radius: 14px;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.auto-scroller::-webkit-scrollbar { display: none; }
.auto-pinned { position: sticky; top: 0; height: 480px; }
.auto-pinned .auto-pic { max-height: 400px; justify-self: stretch; }

@media (max-width: 760px) {
  .auto-pinned .auto-pic { display: none; }
}

/* Demo: hover tabs (webflow.com, all features) */

.hov {
  --wf-blue: #146ef5;
  position: relative;
  height: 480px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 40px;
  padding: 32px 32px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.hov::-webkit-scrollbar { display: none; }

.hov-group {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  align-items: start;
  min-height: 420px;
}
.hov-group:last-child { min-height: 460px; }

.hov-label { margin: 0; font-size: 15px; color: var(--muted); }

.hov-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: color 0.3s cubic-bezier(0.455, 0.03, 0.515, 0.955), border-color 0.3s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}
.hov-arrow { transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); }
.hov-item:hover, .hov-item:focus-visible { color: var(--wf-blue); border-color: var(--wf-blue); outline: none; }
.hov-item:hover .hov-arrow, .hov-item:focus-visible .hov-arrow { transform: translateX(6px); }

.hov-side { position: relative; }

.hov-stage {
  position: sticky;
  top: 0;
  aspect-ratio: 16 / 11.5;
}

.hov-layer {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(160deg, var(--tile-a), var(--tile-b));
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}
.hov-layer.on { opacity: 1; }
.hov-layer[data-step="1"] { background: linear-gradient(160deg, var(--tile-b), var(--soft)); }
.hov-layer[data-step="2"] { background: linear-gradient(220deg, var(--soft), var(--tile-b)); }
.hov-layer[data-step="3"] { background: linear-gradient(120deg, var(--tile-b), var(--tile-a)); }

@media (prefers-color-scheme: dark) {
  .hov { --wf-blue: #4d8dff; }
}

@media (max-width: 760px) {
  .hov { grid-template-columns: 1fr; padding: 20px 16px 0; }
  .hov-group { grid-template-columns: 1fr; gap: 12px; min-height: 0; padding-bottom: 32px; }
  .hov-side { display: none; }
}

/* Demo: stacked card tabs (webflow.com/enterprise, get a demo) */

.deck {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 64px 24px 28px;
  border-radius: 14px;
  background: #080808;
  color: #fff;
}

.deck-bg { position: absolute; inset: 0; z-index: -1; }

/* One blurred backdrop per site, cross-fading like the real background images */
.deck-bg-img {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(35% 45% at 22% 55%, hsl(var(--h) 55% 45%), transparent 70%),
    radial-gradient(40% 50% at 80% 40%, hsl(calc(var(--h) + 35) 45% 55%), transparent 70%),
    hsl(var(--h) 30% 18%);
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.45, 0, 0.55, 1);
}
.deck-bg-img.on { opacity: 1; }

/* Stand-in for the fluted-glass shader: vertical ribs + 32px blur */
.deck-glass {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  background:
    repeating-linear-gradient(90deg, rgb(255 255 255 / 0.07) 0 1px, transparent 1px 10px, rgb(0 0 0 / 0.08) 10px 18px, transparent 18px 24px),
    linear-gradient(170deg, rgb(8 8 8 / 0.7), rgb(8 8 8 / 0.05) 75%);
}

.deck-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgb(0 0 0 / 0) 10%, #080808);
}

.deck-stack {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
}

.deck-card {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 6px;
  background: hsl(var(--h) 35% 22%);
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.35);
  transform-origin: 50% 50%;
}

.deck-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  background: hsl(var(--h) 30% 92%);
  color: hsl(var(--h) 40% 20%);
  font-size: 11px;
}
.deck-bar b { margin-right: auto; font-weight: 600; }
.deck-bar span { width: 28px; height: 4px; border-radius: 2px; background: currentColor; opacity: 0.3; }

.deck-hero { display: grid; gap: 8px; padding: 14% 10% 0; }
.deck-hero i { display: block; height: 14px; border-radius: 3px; background: rgb(255 255 255 / 0.85); }
.deck-hero i:nth-child(1) { width: 70%; height: 22px; }
.deck-hero i:nth-child(2) { width: 55%; height: 22px; }
.deck-hero i:nth-child(3) { width: 35%; opacity: 0.5; margin-top: 8px; }

.deck-foot {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 540px;
  margin: 28px auto 0;
  font-size: 14px;
}

.deck-label { transition: opacity 0.18s ease-out; }
.deck-label.out { opacity: 0; transition: opacity 0.18s ease-in; }

.deck-btns { display: flex; gap: 8px; }

.deck-btn {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font: inherit;
  cursor: pointer;
}
.deck-btn:hover { background: var(--accent); color: #fff; }

@media (max-width: 760px) {
  .deck { padding: 40px 16px 16px; }
}

/* Demo: sticky picture with wipe (webflow.com, platform works) */

.pile {
  position: relative;
  height: 480px;
  overflow-y: auto;
  padding: 28px 28px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.pile::-webkit-scrollbar { display: none; }

.pile-title {
  margin: 0 0 24px;
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.pile-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
}

.pile-copy { display: flex; flex-direction: column; justify-content: center; min-height: 460px; }
.pile-texts { padding-bottom: 420px; }
.pile-copy h4 { margin: 0 0 8px; font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }
.pile-copy p { margin: 0; font-size: 14px; color: var(--muted); }

.pile-stage {
  position: sticky;
  top: 24px;
  height: 340px;
  align-self: start;
}

.pile-pic {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(160deg, var(--tile-a), var(--tile-b));
  clip-path: inset(0 0 0 100%);
  transition: clip-path 0.45s cubic-bezier(0.77, 0, 0.175, 1);
}
.pile-pic.shown { clip-path: inset(0); }
.pile-pic[data-step="1"] { background: linear-gradient(160deg, var(--tile-b), var(--soft)); }
.pile-pic[data-step="2"] { background: linear-gradient(200deg, var(--soft), var(--tile-b)); }

@media (max-width: 760px) {
  .pile { padding: 20px 16px 0; }
  .pile-grid { grid-template-columns: 1fr; }
  .pile-copy { min-height: 0; padding-bottom: 28px; }
  .pile-texts { padding-bottom: 0; }
  .pile-stage { display: none; }
}

/* Demo: sticky dot nav (webflow.com/source) */

.dot {
  position: relative;
  height: 480px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 24px 28px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.dot::-webkit-scrollbar { display: none; }

.dot-nav {
  position: sticky;
  top: 160px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 140px;
}

.dot-link {
  position: relative;
  padding-left: 14px;
  font-size: 14px;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.2s;
}
.dot-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.2s;
}
.dot-link.active { color: #3d6df2; }
.dot-link.active::before { opacity: 1; }

.dot-sec { padding-bottom: 48px; }
.dot-sec:last-child { padding-bottom: 120px; }
.dot-sec h4 { margin: 0 0 16px; font-weight: 800; font-size: 26px; letter-spacing: -0.04em; }
.dot-sec .pile-pic { position: static; height: 300px; clip-path: none; }

@media (prefers-color-scheme: dark) {
  .dot-link.active { color: #7a9cff; }
}

@media (max-width: 760px) {
  .dot { grid-template-columns: 1fr; padding: 16px 16px 0; }
  .dot-nav {
    top: 0;
    z-index: 2;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin: 0;
    padding: 8px 0;
    background: var(--bg);
  }
  .dot-sec .pile-pic { height: 180px; }
}

/* Demo: autoplay tabs under a picture (webflow.com, collaboration) */
.auto-cols { grid-template-columns: 1fr; gap: 24px; }
.auto-cols .auto-copy { order: 2; }
.auto-cols .auto-title { margin-bottom: 0; font-size: 15px; font-weight: 400; color: var(--muted); }
.auto-cols .auto-pic { order: 1; aspect-ratio: 16 / 7; }
.auto-cols .auto-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 4px; }
.auto-cols .auto-tab {
  flex-direction: column;
  gap: 0;
  padding: 0;
  opacity: 0.5;
  transition: opacity 0.3s cubic-bezier(0.45, 0, 0.55, 1);
}
.auto-cols .auto-tab.active { opacity: 1; }
.auto-cols .auto-track { width: 100%; height: 2px; margin-bottom: 18px; border-radius: 0; background: var(--line); }
.auto-cols .auto-fill { height: 100%; width: 0; border-radius: 0; }
.auto-cols .auto-name { font-size: 15px; font-weight: 600; }
/* Descriptions stay visible on every tab */
.auto-cols .auto-text,
.auto-cols .auto-tab.active .auto-text { max-height: none; opacity: 1; margin-top: 6px; transition: none; }

@media (max-width: 760px) {
  .auto-cols .auto-list { grid-template-columns: 1fr; gap: 20px; }
}

/* Demo: autoplay list with spotlight card */

.fl {
  --fl-accent: var(--accent);
  --fl-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.9fr);
  gap: 48px;
  align-items: center;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
}

.fl-stage {
  display: grid;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
}

.fl-slide {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--fl-ease), transform 0.5s var(--fl-ease);
  pointer-events: none;
}
.fl-slide.active { opacity: 1; transform: none; pointer-events: auto; }

.fl-num {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 52px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--muted);
}
.fl-slide h4 { margin: 0 0 12px; font-weight: 600; font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; }
.fl-slide p { margin: 0; max-width: 52ch; font-size: 15px; line-height: 1.6; color: var(--muted); }

.fl-nav { display: flex; gap: 18px; align-items: center; margin-top: 24px; }

.fl-arrow {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  transition: color 0.25s var(--fl-ease), border-color 0.25s var(--fl-ease);
}
.fl-arrow:hover { color: var(--ink); border-color: var(--ink); }

.fl-counter { flex: 0 0 56px; text-align: center; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fl-counter b { font-weight: 400; color: var(--ink); }

.fl-row {
  position: relative;
  display: block;
  width: 100%;
  padding: 12px 4px;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.fl-progress { position: absolute; left: 0; right: 0; top: -1px; height: 2px; overflow: hidden; }
.fl-fill { display: block; height: 100%; width: 0; background: var(--fl-accent); transition: width 0.1s linear; }

.fl-row-head { display: flex; gap: 12px; align-items: baseline; }
.fl-row-num { flex: none; width: 1.1em; font-size: 12px; color: color-mix(in srgb, var(--ink) 32%, transparent); transition: color 0.3s var(--fl-ease); }
.fl-row-title { font-weight: 600; font-size: 15px; color: var(--muted); transition: color 0.3s var(--fl-ease); }
.fl-row:hover .fl-row-title { color: color-mix(in srgb, var(--ink) 70%, transparent); }
.fl-row.active .fl-row-num, .fl-row.active .fl-row-title { color: var(--ink); }
.fl-row-body { display: none; }

@media (prefers-reduced-motion: reduce) {
  .fl-slide, .fl-fill { transition: none; }
}

/* Narrow: the card goes, the list becomes an accordion */
@media (max-width: 880px) {
  .fl { grid-template-columns: 1fr; gap: 0; padding: 20px; }
  .fl-left { display: none; }
  .fl-row-title { color: var(--ink); }
  .fl-row-num { color: var(--muted); }
  .fl-row-body {
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
    transition: max-height 0.4s var(--fl-ease), opacity 0.3s var(--fl-ease), padding 0.4s var(--fl-ease);
  }
  .fl-row.active .fl-row-body { max-height: 200px; opacity: 1; padding-top: 10px; }
  .fl-row.active .fl-progress { right: auto; width: 40px; background: var(--fl-accent); }
}
