/* Card Studio: a section per card, 4–5 designs each, sorted by importance. */
.index { position: sticky; top: 54px; z-index: 19; display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 12px; scrollbar-width: none;
  mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.index::-webkit-scrollbar { display: none; }
.index a { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px 7px 9px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--t2); text-decoration: none;
  background: rgba(255,255,255,.05); border: 1px solid var(--hair); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: color .2s, background .2s; }
.index a:first-child { margin-left: 18px; }
.index a span { font-size: 11px; font-weight: 700; color: rgb(var(--glow)); font-variant-numeric: tabular-nums; }
.index a:hover { color: var(--t1); background: rgba(255,255,255,.1); }

.studio-sec { scroll-margin-top: 110px; }
#proceeds { scroll-margin-top: 110px; }
.studio-head { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; margin: 96px 0 26px; }
.studio-head .rank, .section-head .rank { font-size: 64px; line-height: .9; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, rgb(var(--glow)), rgba(var(--deep), .25)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.studio-head h2 { margin: 2px 0 0; font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.studio-head .q { margin: 6px 0 0; font-size: 17px; font-weight: 500; color: var(--t1); }
.studio-head .why { margin: 4px 0 0; font-size: 14.5px; color: var(--t2); max-width: 720px; line-height: 1.45; }

.sgrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 30px 20px; grid-auto-flow: dense; align-items: start; }
.sgrid .size-full { grid-column: span 2; }
.sgrid .size-tile { grid-column: span 1; }
.sgrid .size-wide { grid-column: span 3; }
.sgrid .size-xl { grid-column: span 4; }
.size-tile .label { flex-wrap: wrap; row-gap: 6px; }
.size-tile .label > div { flex: 1 1 calc(100% - 36px); min-width: 0; }
.size-tile .label .pill { margin-left: 36px; }
.size-tile .label p { font-size: 12.5px; }
.size-tile .card { aspect-ratio: 1 / 1.04; display: flex; flex-direction: column; padding: 14px 15px 15px; }
.option .pill.pick { color: #fff; background: linear-gradient(90deg, rgba(var(--deep), .9), rgba(var(--primary), .9)); box-shadow: 0 0 14px rgba(var(--primary), .45); }

.s-reveal { opacity: 0; transform: translateY(14px) scale(.985); filter: blur(6px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); }
.s-reveal.in { opacity: 1; transform: none; filter: none; }
body.static .s-reveal { opacity: 1; transform: none; filter: none; }

/* Shared studio bits card files can use */
.s-chip { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--t1); background: rgba(255,255,255,.08); padding: 3px 9px; border-radius: 99px; }
.s-trail { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--t2); }
.s-fig { font-size: 34px; font-weight: 700; letter-spacing: -.025em; line-height: 1.08; font-variant-numeric: tabular-nums; }
.s-fig.sm { font-size: 28px; }
.s-fig.xl { font-size: 46px; }
.s-cap { font-size: 15px; font-weight: 500; color: var(--t1); }
.s-sub { font-size: 13.5px; color: var(--t2); line-height: 1.38; }
.s-sub b, .s-cap b { color: var(--t1); }
.s-box { position: relative; }
.s-box svg text { font-family: var(--font); font-variant-numeric: tabular-nums; }
.mt-auto { margin-top: auto; }

@media (max-width: 980px) { .sgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .sgrid .size-wide, .sgrid .size-xl { grid-column: span 4; } }
@media (max-width: 620px) {
  .sgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; }
  .sgrid .size-full, .sgrid .size-wide, .sgrid .size-xl { grid-column: span 2; }
  .studio-head { gap: 14px; } .studio-head .rank { font-size: 44px; } .studio-head h2 { font-size: 24px; }
  .index { top: 50px; }
}

/* ?only= screenshots */
body.only .intro, body.only #proceeds, body.only #board, body.only .board, body.only .footer { display: none; }
body.only.only-proceeds #proceeds { display: block; }
