/* ═══════════════════════════════════════════════
   Castquill — studio.css
   Studio page (creator roster showcase).
   Loaded after style.css + pages.css.
   Uses the core brand palette one notch brighter:
   the mid gradient stops (#A855F7 / #EC4899 / #FB7185)
   and the soft tints as section backgrounds.
   ═══════════════════════════════════════════════ */

:root {
  --st-violet:   #A855F7;
  --st-magenta:  #EC4899;
  --st-coral:    #FB7185;
  --st-lilac:    #C4B5FD;
  --st-peach:    #FDA4AF;
  --st-gradient: linear-gradient(140deg, #A855F7 0%, #EC4899 55%, #FB7185 100%);
}

/* ── shared bits ── */
.st-inner { max-width: 980px; margin: 0 auto; }
.st-section { padding: 96px 24px; }
.st-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--st-violet); margin-bottom: 14px; }
.st-title { font-size: clamp(28px,4.5vw,48px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin-bottom: 16px; max-width: 560px; }
.st-lede { font-size: 16px; color: var(--muted); line-height: 1.65; max-width: 520px; }
.st-note { font-size: 12.5px; color: var(--muted); margin-top: 24px; opacity: .8; }
.st-grad-text {
  background: var(--st-gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.st-btn-ghost {
  padding: 11px 24px; font-size: 14px; font-weight: 600;
  border: 1.5px solid var(--border); border-radius: 980px;
  color: var(--ink); background: var(--white); text-decoration: none;
  display: inline-block; transition: border-color .15s, transform .15s;
}
.st-btn-ghost:hover { border-color: var(--st-violet); color: var(--st-violet); transform: translateY(-2px); }

/* ── HERO: intro left · collage right ── */
.studio-hero { position: relative; overflow: hidden; padding: 72px 24px 88px; background: linear-gradient(180deg, #faf8ff 0%, var(--white) 100%); }
.studio-hero::before {
  content: ''; position: absolute; top: -220px; left: -160px;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,.14), transparent 65%);
  pointer-events: none;
}
.studio-hero::after {
  content: ''; position: absolute; bottom: -240px; right: -140px;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(251,113,133,.16), transparent 65%);
  pointer-events: none;
}
.studio-hero-inner {
  max-width: 980px; margin: 0 auto; position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,400px);
  gap: 64px; align-items: center;
}
.studio-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--border); background: var(--white);
  padding: 6px 16px; border-radius: 980px; margin-bottom: 22px;
}
.studio-hero h1 { font-size: clamp(38px,5.5vw,64px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; margin-bottom: 18px; }
.studio-hero h1 em { font-style: normal; }
.studio-sub { font-size: clamp(15px,2vw,17.5px); color: var(--muted); max-width: 460px; line-height: 1.65; margin-bottom: 32px; }
.studio-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.studio-niche-chips { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 26px; }
.studio-niche-chips span {
  font-size: 13px; font-weight: 600; background: var(--white);
  border: 1.5px solid var(--border); padding: 7px 15px; border-radius: 980px;
}

/* collage */
.studio-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; position: relative; }
/* align-content keeps an odd clip count balanced: the shorter column centres
   against the taller one instead of hanging off the top. */
.studio-collage-col { display: grid; gap: 16px; align-content: center; }
.studio-collage-col:first-child { transform: translateY(30px); }
.st-tile {
  aspect-ratio: 9/15; border-radius: 18px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; padding: 14px;
  color: #fff; box-shadow: 0 14px 34px rgba(14,14,16,.14);
  animation: stBob 7s ease-in-out infinite;
}
.st-tile:nth-child(odd) { animation-delay: -3.5s; }
@keyframes stBob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-7px)} }
.st-tile-top { display: flex; justify-content: space-between; align-items: center; }
.st-emoji { font-size: 17px; }
.st-dur { font-size: 10.5px; font-weight: 600; background: rgba(14,14,16,.42); padding: 3px 8px; border-radius: 6px; backdrop-filter: blur(4px); }
.st-tile-name { font-weight: 700; font-size: 14px; line-height: 1.25; }
.st-tile-by { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .85; margin-top: 3px; }
/* tiles playing a real creator clip: footage fills the tile, a two-ended scrim
   keeps the duration badge and the caption legible over whatever it lands on */
.st-tile-video { color: #fff; }
.st-tile-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.st-tile-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(14,14,16,.46), rgba(14,14,16,0) 30%,
                                      rgba(14,14,16,0) 50%, rgba(14,14,16,.74));
}
.st-tile-video .st-tile-top, .st-tile-video .st-tile-id { position: relative; z-index: 2; }
.st-tile-video .st-dur { background: rgba(14,14,16,.5); }
/* floating chips */
.st-chip {
  position: absolute; z-index: 3; font-size: 12.5px; font-weight: 700;
  padding: 9px 16px; border-radius: 980px; box-shadow: 0 10px 24px rgba(14,14,16,.16);
  white-space: nowrap;
}
.st-chip-vet { top: -12px; right: -6px; background: var(--st-gradient); color: #fff; transform: rotate(3deg); }
/* Sits under the collage, not on it: at bottom:12px this landed square on the
   bottom-left tile's caption, which was survivable while that tile was a
   gradient placeholder and not once it carried a creator's name. */
.st-chip-speed { bottom: -30px; left: -18px; background: var(--white); color: var(--st-violet); border: 1.5px solid var(--violet-soft); transform: rotate(-3deg); }
/* stop control for the looping clips — quiet until hovered or focused */
.st-clip-toggle {
  position: absolute; z-index: 4; right: -6px; bottom: -26px;   /* shares a centre line with .st-chip-speed */
  display: inline-flex; align-items: center; gap: 7px;
  font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer;
  padding: 7px 13px; border-radius: 980px;
  background: var(--white); color: var(--st-violet);
  border: 1.5px solid var(--violet-soft); box-shadow: 0 8px 20px rgba(14,14,16,.12);
  opacity: .82; transition: opacity .18s, transform .18s;
}
.st-clip-toggle:hover { opacity: 1; transform: translateY(-1px); }
.st-clip-toggle:focus-visible { opacity: 1; }
.st-clip-icon { font-size: 9px; letter-spacing: 1px; }
@media (max-width: 860px) {
  .studio-hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .studio-collage { max-width: 400px; }
  .st-chip-vet { right: 0; }
  .st-chip-speed { left: 0; }
  .st-clip-toggle { right: 0; }
}

/* ── TICKER ── */
.studio-ticker { padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; background: var(--white); }
.studio-ticker-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.studio-ticker-track { display: flex; gap: 44px; align-items: center; animation: stTicker 26s linear infinite; width: max-content; }
.studio-ticker-track:hover { animation-play-state: paused; }
@keyframes stTicker { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.st-tick { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; opacity: .55; }
.st-tick b { color: var(--st-coral); font-weight: 400; opacity: .9; }

/* ── ROSTER ── */
.st-section-violet { background: #f6f2ff; }
.studio-roster-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.studio-rail-wrap { position: relative; }
.st-arrow {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--border); background: var(--white); color: var(--ink);
  font-size: 16px; cursor: pointer; transition: background .18s, color .18s, border-color .18s;
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  box-shadow: 0 6px 18px rgba(14,14,16,.16);
}
.st-arrow-prev { left: -12px; }
.st-arrow-next { right: -12px; }
.st-arrow:hover { background: var(--st-violet); color: #fff; border-color: var(--st-violet); }
.studio-rail {
  display: flex; gap: 20px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding: 6px 6px 24px;
  scrollbar-width: none;
}
.studio-rail::-webkit-scrollbar { display: none; }

/* Poster card: the photo fills the whole card, info sits on the bottom scrim,
   glass chips at the top. 320×448 is the design size — the aspect holds when
   the flex basis shrinks on small screens. */
.st-card {
  position: relative; flex: 0 0 min(320px, 86vw); aspect-ratio: 320/448;
  scroll-snap-align: start;
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 18px 44px rgba(40,24,90,.22);
  transition: transform .18s ease;
}
.st-card:hover { transform: translateY(-4px); }
.st-card-media { position: absolute; inset: 0; display: block; color: #fff; }
.st-card-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Production photos are clean — all darkening happens here. Keep the text-zone
   stop at .90: the info block's contrast depends on it. */
.st-card-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,8,28,.32) 0%, rgba(12,8,28,0) 26%, rgba(12,8,28,0) 38%, rgba(12,8,28,.90) 84%);
}
.st-card-ring {
  position: absolute; inset: 0; border-radius: 24px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); pointer-events: none; z-index: 4;
}
.st-card-top {
  position: absolute; top: 14px; left: 14px; right: 14px; z-index: 3;
  display: flex; justify-content: space-between; align-items: center;
}
.st-card-index {
  background: rgba(255,255,255,.14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.22); color: #fff;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px; font-weight: 600; letter-spacing: .08em;
  padding: 4px 9px; border-radius: 8px;
}
.st-card-signed {
  background: rgba(255,255,255,.14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.22); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 8px;
}
.st-card-initials {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 64px; color: rgba(255,255,255,.28); letter-spacing: -.03em;
}
.st-card-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 20px; display: block; text-align: left; }
.st-card-cat { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #C9B8FF; }
.st-card-name { display: block; font-size: 24px; font-weight: 800; color: #fff; letter-spacing: -.01em; margin-top: 4px; }
.st-card-bio { display: block; font-size: 13px; line-height: 1.5; color: rgba(235,232,248,.85); margin-top: 6px; }
.st-card-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.st-card-chips span {
  background: rgba(255,255,255,.13); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.22); color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.st-card-meta {
  display: flex; justify-content: space-between;
  margin-top: 15px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.18);
}
.st-meta-right { text-align: right; }
.st-meta-l { display: block; font-size: 9px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: rgba(235,232,248,.6); }
.st-meta-v { display: block; font-size: 12.5px; font-weight: 800; color: #fff; margin-top: 2px; }

/* The profile dialog (js/roster.js) still builds its facts list with these. */
.st-sheet-data { margin-top: 13px; display: grid; gap: 7px; }
.st-sheet-row { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; }
.st-sheet-row dt { color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; opacity: .75; }
.st-sheet-row dd { color: var(--ink); text-align: right; font-weight: 700; }

/* ── VETTING ── */
.st-section-coral { background: var(--coral-soft); }
.studio-vet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 16px; margin-top: 48px; }
.st-vet {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: 0 6px 20px rgba(14,14,16,.04);
  transition: transform .2s, box-shadow .2s;
}
.st-vet:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(251,113,133,.18); }
.st-vet .ico {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--violet-soft), var(--coral-soft));
  border: 1px solid var(--border);
}
.st-vet h3 { font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 8px; }
.st-vet p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── PROCESS ── */
.studio-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 16px; margin-top: 48px; }
.st-step {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: 0 6px 20px rgba(14,14,16,.04);
}
.st-step-num {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--st-coral); background: var(--coral-soft);
  padding: 5px 12px; border-radius: 980px;
}
.st-step h3 { font-size: 17px; font-weight: 700; margin: 15px 0 9px; }
.st-step p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.studio-process-cta { margin-top: 42px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.studio-process-cta .pricing-link { font-size: 13px; color: var(--muted); }
.studio-process-cta .pricing-link a { color: var(--st-violet); font-weight: 600; text-decoration: none; }
.studio-process-cta .pricing-link a:hover { text-decoration: underline; }

/* ── FINAL CTA ── */
.studio-cta-block {
  background: var(--st-gradient);
  border-radius: 26px; padding: 72px 40px; text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.studio-cta-block::before {
  content: ''; position: absolute; top: -160px; right: -110px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.24), transparent 68%);
}
.studio-cta-block::after {
  content: ''; position: absolute; bottom: -150px; left: -90px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.16), transparent 68%);
}
.studio-cta-block h2 { font-size: clamp(26px,3.5vw,40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; max-width: 20ch; margin: 0 auto 14px; position: relative; z-index: 2; }
.studio-cta-block p { font-size: 15px; color: rgba(255,255,255,.85); max-width: 46ch; margin: 0 auto 32px; line-height: 1.6; position: relative; z-index: 2; }
.studio-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 2; }
.studio-cta-block .st-btn-outline {
  padding: 13px 28px; font-size: 14px; font-weight: 600;
  border: 1.5px solid rgba(255,255,255,.5); border-radius: 980px;
  color: #fff; text-decoration: none; display: inline-block;
  transition: border-color .15s, transform .15s;
}
.studio-cta-block .st-btn-outline:hover { border-color: #fff; transform: translateY(-2px); }

/* ── FOR CREATORS: profile setup intro ──
   Text left, the setup walkthrough right — a landscape screen recording, so
   it sits like an embedded player card rather than a phone frame. */
.st-guide-grid {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,480px);
  gap: 56px; align-items: center;
}
.st-guide-perks { list-style: none; margin: 22px 0 30px; padding: 0; display: grid; gap: 10px; }
.st-guide-perks li {
  font-size: 14.5px; font-weight: 600; display: flex; align-items: baseline; gap: 10px;
}
.st-guide-perks li::before {
  content: '✓'; flex: 0 0 auto; font-size: 11px; font-weight: 800; color: #fff;
  width: 18px; height: 18px; border-radius: 50%; text-align: center; line-height: 18px;
  background: var(--st-gradient); transform: translateY(-1px);
}
.st-guide-vid {
  display: block; width: 100%; height: auto; aspect-ratio: 1440/1072;
  border-radius: 18px; box-shadow: 0 14px 34px rgba(14,14,16,.14);
  background: #17151F;   /* controls-bar tone while the poster loads */
}
.st-guide-dur { margin-top: 12px; font-size: 12.5px; font-weight: 600; color: var(--muted); text-align: center; }
.st-guide-example { margin-top: 6px; font-size: 12.5px; color: var(--muted); text-align: center; }
.st-guide-example a { color: var(--st-violet); font-weight: 600; text-decoration: none; }
.st-guide-example a:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .st-guide-grid { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 640px) {
  .st-section { padding: 64px 20px; }
  .studio-hero { padding: 52px 20px 64px; }
  .studio-cta-block { padding: 52px 24px; }
}

/* ── CLICKABLE ROSTER CARD ──
   Cards with a real account behind them are a single full-bleed button that
   opens the profile dialog. The reset keeps the <button> looking exactly like
   the <div> the unlinked cards still use; the ring is drawn inside the card
   because overflow:hidden would clip an outset outline at the corners. */
.st-card-open {
  width: 100%; height: 100%; border: 0; padding: 0; font: inherit;
  text-align: left; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.st-card-open:focus-visible { outline: 2px solid #7C44EE; outline-offset: -2px; }

/* ── STUDIO INSIDE THE DASHBOARD ──
   Same rail, centred: the dashboard has less width than the marketing page. */
.studio-panel { max-width: 860px; margin: 0 auto; }
.studio-panel .studio-rail { justify-content: safe center; }
@media (max-width: 720px) {
  .studio-panel .st-arrow { display: none; }
}
