/* uberdesigner — the home's showcase: MCP in an agent's chat, a live rail of the library, the tools with their
   effects, and banners for the brief and Awards. Same tokens as home.css. */

/* ---------- MCP ---------- */
.agent__grid > *, .tgrid > *, .bn > * { min-width: 0; }
.agent__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; align-items: stretch; }
.chat { position: relative; display: flex; flex-direction: column; min-height: 470px; border-radius: 26px; overflow: hidden; background: linear-gradient(180deg, #121216, #0b0b0e); box-shadow: inset 0 0 0 1px var(--stroke-secondary), 0 40px 90px -40px #5b2fd680; }
.chat::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; aspect-ratio: 1; background: radial-gradient(closest-side, #8657e72e, transparent); pointer-events: none; }
.chat__bar { display: flex; align-items: center; gap: 7px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--stroke-secondary); font: 500 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text-tertiary); }
.chat__bar i { width: 10px; height: 10px; border-radius: 50%; background: #ffffff1f; }
.chat__bar span:first-of-type { margin-left: 10px; color: var(--text-secondary); }
.chat__bar span:last-of-type { margin-left: auto; }
.chat__log { position: relative; flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 22px; font: 400 13.5px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text-secondary); }
.cl { opacity: 0; transform: translateY(8px); transition: opacity .45s var(--micro-ease), transform .6s var(--spring-ease); }
.cl.is-on { opacity: 1; transform: none; }
.cl--me { align-self: flex-end; max-width: 86%; padding: 12px 15px; border-radius: 16px 16px 4px 16px; background: #ffffff12; box-shadow: inset 0 0 0 1px var(--stroke-secondary); color: var(--text-primary); font-family: var(--font-sans); font-size: 15px; }
.cl--tool { display: flex; flex-direction: column; gap: 3px; }
.cl--tool b { font-weight: 500; color: var(--text-primary); }
.cl--tool b::before { content: "⏺ "; color: var(--accent-ink); }
.cl--tool span { padding-left: 18px; color: var(--text-tertiary); }
.cl--ok { padding-left: 18px; color: #7ee2a8; }
.cl--ok::before { content: "✓ "; }
.cl--picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-left: 18px; }
.pk { position: relative; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--stroke-secondary); background: #ffffff08; transition: transform .5s var(--spring-ease), box-shadow .3s, opacity .3s; }
.pk img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pk b { display: block; padding: 7px 9px; font: 500 12px/1.2 var(--font-sans); color: var(--text-primary); }
.cl--picks.is-picked .pk { opacity: .45; }
.cl--picks.is-picked .pk.is-pick { opacity: 1; transform: translateY(-4px); box-shadow: 0 0 0 2px var(--accent), 0 16px 34px -14px #8657e7; }
.pk__b { position: absolute; top: 7px; left: 7px; padding: 3px 7px; border-radius: 999px; background: var(--accent-fill); color: #fff; font: 600 10px/1 var(--font-sans); letter-spacing: .04em; opacity: 0; transform: scale(.8); transition: opacity .3s, transform .45s var(--bounce); }
.is-picked .is-pick .pk__b { opacity: 1; transform: none; }
.cl--done { margin-top: auto; padding: 12px 15px; border-radius: 16px 16px 16px 4px; background: linear-gradient(135deg, #8657e733, #8657e714); box-shadow: inset 0 0 0 1px #8657e766; color: var(--text-primary); font-family: var(--font-sans); font-size: 15px; }
.cl--done u { text-decoration-color: var(--accent-ink); text-underline-offset: 3px; }

.agent__side { display: flex; flex-direction: column; gap: 22px; padding: 26px; border-radius: 26px; background: #ffffff06; box-shadow: inset 0 0 0 1px var(--stroke-secondary); }
.seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: #ffffff0a; box-shadow: inset 0 0 0 1px var(--stroke-secondary); align-self: flex-start; }
.seg button { height: 34px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--text-secondary); transition: background-color var(--micro), color var(--micro); }
.seg button:hover { color: var(--text-primary); }
.seg button[aria-selected="true"] { background: #fff; color: #0a0a0b; }
.steps { list-style: none; counter-reset: st; display: flex; flex-direction: column; gap: 18px; }
.steps li { counter-increment: st; position: relative; display: flex; flex-direction: column; gap: 6px; padding-left: 42px; }
.steps li::before { content: counter(st); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #8657e726; box-shadow: inset 0 0 0 1px #8657e766; color: var(--accent-ink); font-size: 13px; font-weight: 600; }
.steps b { font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.steps li > span { color: var(--text-secondary); font-size: 15px; line-height: 1.45; }
.steps__asks { display: flex; flex-wrap: wrap; gap: 6px; }
.steps__asks em { font-style: normal; padding: 5px 10px; border-radius: 999px; background: #ffffff0d; color: var(--text-primary); font-size: 13.5px; }
.cmd { display: flex; align-items: center; gap: 10px; margin-top: 4px; padding: 8px 8px 8px 14px; border-radius: 12px; background: #000; box-shadow: inset 0 0 0 1px var(--stroke-primary); font: 400 12.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: #e9e3ff; }
.cmd span { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.cmd button { flex: none; height: 30px; padding: 0 12px; border-radius: 8px; background: #ffffff14; font: 500 13px/1 var(--font-sans); transition: background-color var(--micro); }
.cmd button:hover { background: #ffffff26; }
.agent__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: auto; }
.agent__cta p { font-size: 14px; color: var(--text-tertiary); }
.agent .mcp { margin-top: 20px; }

/* ---------- the library rail ---------- */
.rail { margin-top: 20px; padding: 22px 0 6px; border-radius: 28px; background: #ffffff05; box-shadow: inset 0 0 0 1px var(--stroke-secondary); }
.rail__bar { display: flex; align-items: center; gap: 16px; padding: 0 22px 18px; }
.rail__t { font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.chips button { flex: none; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--text-secondary); box-shadow: inset 0 0 0 1px var(--stroke-secondary); transition: background-color var(--micro), color var(--micro), box-shadow var(--micro); }
.chips button:hover { color: var(--text-primary); box-shadow: inset 0 0 0 1px var(--stroke-primary); }
.chips button[aria-selected="true"] { background: #fff; color: #0a0a0b; box-shadow: none; }
.rail__nav { display: flex; gap: 6px; margin-left: auto; }
.rail__nav button { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--stroke-primary); transition: background-color var(--micro); }
.rail__nav button:hover { background: #ffffff14; }
.rail__nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rail__track { display: flex; gap: 14px; padding: 2px 22px 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 22px; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail__track::-webkit-scrollbar { display: none; }
.rc { flex: none; width: min(300px, 74vw); scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; }
.rc__m { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #ffffff0a; box-shadow: inset 0 0 0 1px var(--stroke-secondary); }
.rc__m img, .rc__m video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--spring-ease), opacity .3s; }
.rc__m video { opacity: 0; }
.rc.is-playing .rc__m video { opacity: 1; }
.rc:hover .rc__m img, .rc:hover .rc__m video { transform: scale(1.04); }
.rc__f { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 4px; }
.rc__f b { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc__f em { flex: none; font-style: normal; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; background: #ffffff12; color: var(--text-secondary); }
.rc__f em.is-pro { background: #8657e733; color: var(--accent-ink); }
.rc__s { padding: 0 4px; font-size: 13.5px; line-height: 1.4; color: var(--text-tertiary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rc--all { justify-content: center; align-items: center; aspect-ratio: auto; }
.rc--all .rc__m { display: grid; place-items: center; width: 100%; background: radial-gradient(80% 80% at 30% 20%, #8657e74d, #ffffff08); }
.rc--all .rc__m span { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 18px; font-weight: 500; }
.rc--all .rc__m small { font-size: 14px; color: var(--text-secondary); font-weight: 400; }

/* ---------- tools ---------- */
.tgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.tc { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 12px 12px 18px; border-radius: 24px; background: #ffffff06; box-shadow: inset 0 0 0 1px var(--stroke-secondary); transition: box-shadow .25s, transform .5s var(--spring-ease); }
.tc:hover { box-shadow: inset 0 0 0 1px var(--stroke-primary); transform: translateY(-3px); }
.tc--up { grid-row: span 2; }
.tc--depth { grid-column: span 2; }
.tc--depth .tc__m { min-height: 240px; }
.tc__m { position: relative; display: block; flex: 1; min-height: 200px; border-radius: 16px; overflow: hidden; background: #000; }
.tc__m img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tc__f { display: flex; flex-direction: column; gap: 4px; padding: 0 8px; }
.tc__f b { font-size: 19px; font-weight: 500; letter-spacing: -.02em; }
.tc__f span { font-size: 14.5px; line-height: 1.45; color: var(--text-secondary); }
.tc__tag { position: absolute; top: 24px; right: 24px; padding: 5px 10px; border-radius: 999px; background: #000000a6; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 12px; font-weight: 600; box-shadow: inset 0 0 0 1px #ffffff26; }
/* before and after: the split follows the cursor, or sweeps on its own */
.ba { --x: 50%; }
.ba__lo { filter: blur(5px) saturate(.7) contrast(.85); transform: scale(1.04); }
.ba__hi { clip-path: inset(0 0 0 var(--x)); }
.ba__h { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 18px #fff; }
.ba__h::after { content: ""; position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center / 18px no-repeat; box-shadow: 0 6px 20px #0008; }
.ba__l, .ba__r { position: absolute; bottom: 14px; padding: 5px 10px; border-radius: 999px; background: #000000a6; font: 600 12px/1 var(--font-sans); font-style: normal; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ba__l { left: 14px; } .ba__r { right: 14px; }
/* fluted glass */
.fluted { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, #ffffff1f 0, #ffffff00 6px, #0000002e 16px, #ffffff1f 22px); -webkit-backdrop-filter: blur(7px) saturate(1.3); backdrop-filter: blur(7px) saturate(1.3); -webkit-mask: linear-gradient(90deg, #000 var(--g, 55%), transparent calc(var(--g, 55%) + 1%)); mask: linear-gradient(90deg, #000 var(--g, 55%), transparent calc(var(--g, 55%) + 1%)); }
/* light that follows the cursor */
.tc--light .tc__m img { filter: brightness(.45) saturate(.8); }
.lightfx { --lx: 60%; --ly: 35%; position: absolute; inset: 0; background: radial-gradient(38% 50% at var(--lx) var(--ly), #ffe7b8, #ffb76b55 40%, transparent 70%); mix-blend-mode: overlay; }
.lightfx::after { content: ""; position: absolute; inset: 0; background: radial-gradient(28% 36% at var(--lx) var(--ly), #ffffff55, transparent 70%); mix-blend-mode: soft-light; }
/* depth map */
.depthfx { filter: grayscale(1) contrast(1.6) brightness(1.1) blur(1.5px); -webkit-mask: linear-gradient(180deg, transparent var(--d, 45%), #000 calc(var(--d, 45%) + 1%)); mask: linear-gradient(180deg, transparent var(--d, 45%), #000 calc(var(--d, 45%) + 1%)); }
.tc--depth .tc__m::after { content: ""; position: absolute; left: 0; right: 0; top: var(--d, 45%); height: 2px; background: #fff; box-shadow: 0 0 16px #fff; pointer-events: none; }

/* ---------- the brief and Awards ---------- */
.also { display: grid; gap: 20px; }
.bn { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; min-height: 460px; padding: 48px; border-radius: 30px; overflow: hidden; isolation: isolate; box-shadow: inset 0 0 0 1px var(--stroke-secondary); }
.bn__t { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.bn__h { font-size: clamp(32px, 3.8vw, 52px); line-height: 1; font-weight: 500; letter-spacing: -.045em; text-wrap: balance; }
.bn__p { font-size: 17px; line-height: 1.5; color: var(--text-secondary); max-width: 30em; text-wrap: pretty; }
.bn__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.bn--brief { background: radial-gradient(70% 90% at 100% 50%, #8657e740, transparent 70%), linear-gradient(180deg, #121216, #0b0b0e); }
.deck { position: relative; height: 380px; }
.dk { position: absolute; top: 50%; left: 50%; width: 250px; aspect-ratio: 3 / 4; margin: -166px 0 0 -160px; border-radius: 20px; overflow: hidden; background: #18181c; box-shadow: 0 0 0 1px #ffffff26, 0 30px 60px -20px #000; transition: transform .7s var(--spring-ease), opacity .5s; }
.dk img { width: 100%; height: 72%; object-fit: cover; }
.dk p { padding: 12px 14px; font-size: 15px; font-weight: 500; }
.dk p span { display: block; margin-top: 3px; font-size: 13px; font-weight: 400; color: var(--text-tertiary); }
.dk__s { position: absolute; top: 16px; padding: 6px 12px; border-radius: 10px; font: 700 14px/1 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; opacity: 0; transition: opacity .25s; }
.dk__s--y { left: 16px; color: #7ee2a8; box-shadow: inset 0 0 0 2px #7ee2a8; transform: rotate(-10deg); }
.dk__s--n { right: 16px; color: #ff8a8a; box-shadow: inset 0 0 0 2px #ff8a8a; transform: rotate(10deg); }
.dk.is-y .dk__s--y, .dk.is-n .dk__s--n { opacity: 1; }
.bn--aw { grid-template-columns: 1.1fr 1fr; padding: 20px 48px 20px 20px; background: linear-gradient(180deg, #121216, #0b0b0e); }
.bn__shot { position: relative; display: block; height: 100%; min-height: 420px; border-radius: 20px; overflow: hidden; }
.bn__shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--spring-ease); }
.bn__shot:hover img { transform: scale(1.03); }
.bn__badge { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: #000000b3; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 14px; font-weight: 600; box-shadow: inset 0 0 0 1px #ffffff2e; }
.bn__badge svg { width: 15px; height: 15px; fill: #ffd66b; }
.bn__noms { list-style: none; display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 420px; }
.bn__noms a { display: flex; align-items: center; gap: 12px; padding: 6px; border-radius: 14px; transition: background-color var(--micro); }
.bn__noms a:hover { background: #ffffff0d; }
.bn__noms img { width: 64px; height: 44px; border-radius: 8px; object-fit: cover; object-position: top; box-shadow: 0 0 0 1px var(--stroke-secondary); }
.bn__noms span { display: flex; flex-direction: column; font-size: 13px; color: var(--text-tertiary); }
.bn__noms b { font-size: 15px; font-weight: 500; color: var(--text-primary); }

@media (max-width: 999px) {
  .agent__grid { grid-template-columns: minmax(0, 1fr); }
  .tgrid { grid-template-columns: 1fr 1fr; }
  .tc--up { grid-column: span 2; grid-row: auto; }
  .tc--depth { grid-column: span 2; }
  .tc--up .tc__m { min-height: 300px; }
  .bn, .bn--aw { grid-template-columns: 1fr; padding: 28px 22px; gap: 28px; }
  .bn--aw .bn__shot { min-height: 260px; }
  .deck { height: 340px; }
}
@media (max-width: 640px) {
  .chat { min-height: 0; }
  .chat__log { padding: 16px; font-size: 12.5px; }
  .agent__side { padding: 20px; }
  .rail__bar { flex-wrap: wrap; padding: 0 16px 14px; }
  .rail__nav { display: none; }
  .chips { order: 3; width: 100%; }
  .rail__track { padding: 2px 16px 16px; scroll-padding: 16px; }
  .tgrid { grid-template-columns: minmax(0, 1fr); }
  .tc--up, .tc--depth { grid-column: auto; }
  .bn__acts .btn--xl { height: 50px; padding-inline: 22px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .cl, .dk, .rc__m img { transition: none; } }

/* ---------- the feed: the library as a marketplace, with uberdesigner between its rows ---------- */
.feed { position: relative; }
.feed__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin-bottom: 30px; }
.feed__head > div:first-child { display: flex; flex-direction: column; gap: 14px; }
.feed__bar { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; min-width: 0; }
.feed__all { font-size: 15px; color: var(--text-secondary); white-space: nowrap; text-decoration: underline; text-decoration-color: #ffffff33; text-underline-offset: 4px; transition: color var(--micro); }
.feed__all:hover { color: #fff; text-decoration-color: currentColor; }
.feed__all span { color: var(--text-tertiary); }
.fgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 18px; list-style: none; }
.fc { display: flex; flex-direction: column; gap: 10px; min-width: 0; animation: fc-in .7s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes fc-in { from { opacity: 0; transform: translateY(14px); } }
.fc__a { display: block; border-radius: 10px; outline-offset: 4px; }
.fc__m { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: #ffffff08; isolation: isolate; }
.fc__m::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px #ffffff12; pointer-events: none; }
.fc__m img, .fc__m video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fc__m img { transition: transform 1.4s cubic-bezier(.2, .8, .2, 1); }
.fc__m video { opacity: 0; transition: opacity .4s; }
.fc.is-playing .fc__m video { opacity: 1; }
.fc:hover .fc__m img { transform: scale(1.03); }
.fc__f { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 0 2px; }
.fc__f b { min-width: 0; font-size: 15px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc__f em { flex: none; font-style: normal; font-size: 13px; color: var(--text-tertiary); }
.fc__f em.is-pro { color: var(--text-primary); }
.fc__f em.is-pro::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: var(--accent-ink); vertical-align: 2px; }
.fc__s { padding: 0 2px; font-size: 13px; color: var(--text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fslot { grid-column: 1 / -1; padding: 28px 0; }
.fslot .sec { padding-top: 40px; padding-bottom: 20px; }
.fslot .mcp, .fslot .bn { margin: 0; }
.fslot .sec__head { margin-bottom: 32px; }
.feed__end { height: 1px; }
.feed__more { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 56px; }
.feed__more[hidden] { display: none; }
@media (max-width: 1199px) { .fgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899px) { .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; } .feed { padding-top: 90px; } }
@media (max-width: 599px) { .feed__bar { width: 100%; } .feed__bar .chips { width: 100%; } .fc__s { display: none; } .fc__f b { font-size: 14px; } .fslot { padding: 16px 0; } }
@media (max-width: 339px) { .fgrid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- one grid for the whole home: the same width as the feed, and one rhythm ----------
   between sections: --gap-sec; inside the feed, a block sits one row-gap from the cards, like another row */
:root { --wrap: 1360px; --gap-row: 40px; --gap-sec: 120px; }
.sec { padding-top: var(--gap-sec); }
.feed { padding-top: var(--gap-sec); }
.end { margin-top: var(--gap-sec); }
.fgrid { gap: var(--gap-row) 18px; }
.fslot { padding: 0; }
.fslot .sec { padding-top: 0; padding-bottom: 0; }
.feed__more { padding-top: var(--gap-row); }
@media (max-width: 899px) { :root { --gap-row: 28px; --gap-sec: 96px; } .fgrid { gap: var(--gap-row) 12px; } .feed { padding-top: var(--gap-sec); } }
@media (max-width: 699px) { .sec { padding-top: var(--gap-sec); } .end { margin-top: var(--gap-sec); } }
@media (max-width: 599px) { :root { --gap-sec: 80px; } .fslot { padding: 0; } }

/* ---------- a card's text: the name and its line read as one group, close to the picture ---------- */
.fc { gap: 0; }
.fc__a { margin-bottom: 12px; }
.fc__f { line-height: 1.25; }
.fc__s { margin-top: 3px; line-height: 1.35; }
.fgrid { row-gap: calc(var(--gap-row) + 8px); }

/* ---------- the feed in sections: a title, two rows fading out, and the way into that part of the library ---------- */
:root { --gap-sec: 180px; }
@media (max-width: 899px) { :root { --gap-sec: 128px; } }
@media (max-width: 599px) { :root { --gap-sec: 104px; } }
.feed__head { margin-bottom: 0; }
.fsecs { display: flex; flex-direction: column; gap: var(--gap-sec); padding-top: 72px; }
.fsec__h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; margin-bottom: 28px; }
.fsec__h :is(h2, h3) { font-size: clamp(36px, 4.6vw, 68px); line-height: 1; font-weight: 500; letter-spacing: -.045em; }
.fsec__h p { font-size: 15px; color: var(--text-tertiary); } .fsec__h p b { font-weight: 500; color: var(--text-primary); }
.fsec__body { position: relative; }
.fsec__body .fgrid { gap: calc(var(--gap-row) + 8px) 18px; }
.fsec__body .fgrid > .fc:nth-child(n) { animation: none; }
.fsec__fade { position: absolute; left: -2px; right: -2px; bottom: -2px; height: 62%; display: grid; place-items: center; padding-top: 12%; background: linear-gradient(180deg, transparent 0%, #06060899 30%, var(--bg) 72%); pointer-events: none; }
.fsec__go { pointer-events: auto; display: inline-flex; align-items: center; height: 60px; padding: 0 30px; border-radius: 999px; font-size: 18px; font-weight: 500; color: #fff; background: #ffffff14; -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: inset 0 0 0 1px #ffffff40, inset 0 1px 0 #ffffff33, inset 0 -8px 16px #ffffff0a, 0 20px 50px -20px #000; transition: transform .45s var(--spring-ease), background-color .2s, box-shadow .25s; }
.fsec__go:hover { transform: translateY(-2px) scale(1.02); background: #ffffff1f; box-shadow: inset 0 0 0 1px #ffffff66, inset 0 1px 0 #ffffff40, 0 24px 60px -20px #000, 0 0 0 6px #ffffff12; }
.fsec__go:active { transform: scale(.97); }
.fsecs > .fslot { padding: 0; }
@media (max-width: 599px) { .fsec__go { height: 52px; padding: 0 24px; font-size: 16px; } .fsec__fade { height: 70%; } }
.fsec__under { display: flex; justify-content: center; padding-top: 36px; }
.fsec__fade { height: 34%; padding-top: 6%; }
@media (max-width: 599px) { .fsec__fade { height: 30%; } }
.fsec__fade { height: 26%; padding-top: 4%; }
@media (max-width: 599px) { .fsec__fade { height: 24%; } }
.fsecs { padding-top: 0; }
.fsec__k { flex-basis: 100%; margin-bottom: 6px; }
.fsec__k a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* big screens: five, then six templates in a row */
@media (min-width: 1920px) { .fgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 44px 22px; } }
@media (min-width: 2400px) { .fgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

