/* ── /collab media kit — components ──────────────────────────────────
   Colors come from the :root tokens defined in custom.css (loaded first). */

.work { max-width: 980px; margin: 0 auto; padding: 0 20px 90px; }

/* top bar */
.work-nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.work-nav .back { color: rgb(var(--cream-rgb) / .72); text-decoration: none; font-size: .95rem; }
.work-nav .back:hover { color: var(--gold); }

/* hero */
.work-hero { text-align: center; padding: 20px 0 6px; }
.work-hero h1 {
  font-family: "Fredoka", "Open Sans", sans-serif; font-weight: 600;
  font-size: clamp(2rem, 8vw, 3.2rem); color: var(--cream); margin: 0 0 .5rem;
}
.work-hero p { color: rgb(var(--cream-rgb) / .8); max-width: 42ch; margin: 0 auto 1.4rem; }

/* CTA button */
.btn-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--cream); color: var(--indigo); font-weight: 700;
  padding: .8rem 1.5rem; border-radius: 14px; text-decoration: none;
  border: 1px solid rgb(var(--gold-rgb) / .7);
  transition: transform .15s ease, box-shadow .2s ease;
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgb(var(--ink-rgb) / .5), 0 0 22px rgb(var(--gold-rgb) / .35);
}

/* LittleLink's dark theme colors every non-.button link blue via
   `:root.theme-dark a:not(.button)`, which out-specifies the rules above.
   Re-scope ours so CTA text stays deep purple and the back link stays cream. */
:root.theme-dark a.btn-cta,
:root.theme-dark a.btn-cta:hover        { color: var(--indigo); }
:root.theme-dark .work-nav a.back       { color: rgb(var(--cream-rgb) / .72); }
:root.theme-dark .work-nav a.back:hover { color: var(--gold); }

/* sections */
.work section { margin-top: 60px; }
.work h2 {
  font-family: "Fredoka", "Open Sans", sans-serif; font-weight: 600;
  color: var(--cream); font-size: clamp(1.4rem, 5vw, 2rem);
  text-align: center; margin: 0 0 1.5rem;
}
.section-note { text-align: center; color: rgb(var(--cream-rgb) / .5); font-size: .82rem; margin-top: .6rem; }

/* stat tiles */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
/* auto-fit so the tile count can grow without re-tuning the grid */
@media (min-width: 720px) { .stats { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.stat {
  background: rgb(var(--cream-rgb) / .06); border: 1px solid rgb(var(--cream-rgb) / .16);
  border-radius: 18px; padding: 22px 14px; text-align: center;
}
.stat b {
  display: block; font-family: "Fredoka", sans-serif;
  font-size: clamp(1.6rem, 6vw, 2.2rem); color: var(--cream); line-height: 1;
}
.stat span { display: block; margin-top: .45rem; font-size: .82rem; color: rgb(var(--cream-rgb) / .72); }

/* platform cards */
.platforms { display: grid; grid-template-columns: 1fr; gap: 12px; }
/* auto-fit: 2 platforms balance as 2 columns, 3 as 3 — no CSS change when one is added */
@media (min-width: 720px) { .platforms { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); } }
.platform {
  background: rgb(var(--cream-rgb) / .05); border: 1px solid rgb(var(--cream-rgb) / .14);
  border-radius: 16px; padding: 16px;
}
.platform-head { display: flex; align-items: center; gap: 10px; }
.platform-head img { width: 26px; height: 26px; flex: none; filter: var(--tint-cream); }
.platform-head b { color: var(--cream); font-size: .98rem; }
/* handle links to the profile — no underline, out-specifies LittleLink's blue `a:not(.button)` */
:root.theme-dark a.platform-handle,
.platform-handle { color: rgb(var(--cream-rgb) / .55); font-size: .8rem; text-decoration: none; }
:root.theme-dark a.platform-handle:hover { color: var(--gold); }
.platform-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.platform-stats div { text-align: center; }
.platform-stats b {
  display: block; font-family: "Fredoka", sans-serif; color: var(--cream);
  font-size: 1.25rem; line-height: 1.1; font-variant-numeric: tabular-nums;
}
.platform-stats span { display: block; font-size: .7rem; color: rgb(var(--cream-rgb) / .6); margin-top: 3px; }
.platform.soon { opacity: .6; }

/* demographics */
.demo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.demo .stat b { color: var(--cream); font-size: clamp(1.05rem, 4.2vw, 1.45rem); }

/* Audience insight cards — hero stat + ranked bars.
   Each card is ONE measure, so bars use a single hue (never a value-ramp);
   labels/values wear text tokens, only the bar carries the accent. */
.insights { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 760px) { .insights { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.insight-card {
  background: rgb(var(--cream-rgb) / .06);
  border: 1px solid rgb(var(--cream-rgb) / .16);
  border-radius: 18px; padding: 20px 18px;
}
/* section header with a platform selector: title stays centred, selector sits
   top-right on desktop and drops below the title on narrow screens */
.section-head { position: relative; margin-bottom: 1.5rem; }
.section-head h2 { margin: 0; }
.platform-toggle { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
@media (min-width: 760px) {
  .platform-toggle { position: absolute; right: 0; top: 50%; transform: translateY(-50%); margin-top: 0; }
}
.pt-btn {
  /* LittleLink styles bare <button> at 300x48 (.button,button) — reset that first */
  width: auto; min-height: 0;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgb(var(--cream-rgb) / .06);
  border: 1px solid rgb(var(--cream-rgb) / .18);
  color: rgb(var(--cream-rgb) / .75);
  border-radius: 999px; padding: .4rem .85rem;
  font: inherit; font-size: .82rem; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.pt-btn:hover { background: rgb(var(--cream-rgb) / .12); }
.pt-btn img { width: 15px; height: 15px; filter: var(--tint-cream); opacity: .85; }
.pt-btn[aria-pressed="true"] {
  background: rgb(var(--cream-rgb) / .16);
  border-color: rgb(var(--gold-rgb) / .5);
  color: var(--cream);
}

.insight-title {
  display: block; text-transform: uppercase; letter-spacing: .09em;
  font-size: .7rem; font-weight: 600; color: rgb(var(--cream-rgb) / .5);
  margin-bottom: 12px;
}
.insight-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.insight-rows li { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; min-height: 24px; } /* >=24px hit target */
.ir-label { color: rgb(var(--cream-rgb) / .85); font-size: .85rem; }
.ir-pct   { color: rgb(var(--cream-rgb) / .7);  font-size: .85rem; font-variant-numeric: tabular-nums; }
.ir-bar {
  grid-column: 1 / -1; height: 6px; border-radius: 999px;
  background: rgb(var(--cream-rgb) / .12);
}
.ir-bar i { display: block; height: 100%; border-radius: 999px; background: var(--gold); }

/* phone frame */
/* The frame takes its height from the clip (all sources are 720x1280), rather than
   forcing a 9/19.5 phone body that cropped the top and bottom off every video.
   Width is fluid, so these just scale down on narrow screens. */
.phone {
  position: relative; width: 100%; max-width: 280px; margin: 0 auto;
  background: var(--bezel); border-radius: 34px; padding: 9px;
  box-shadow: 0 22px 55px rgb(var(--bezel-shadow-rgb) / .6), 0 0 0 1px rgb(var(--cream-rgb) / .12);
}
.phone__screen { position: relative; width: 100%; border-radius: 26px; overflow: hidden; background: #000; }
.phone__screen > img, .phone__screen > video {
  width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; display: block;
}
.phone::before {
  content: ""; position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 20px; background: var(--bezel); border-radius: 0 0 14px 14px; z-index: 3;
}

/* featured collab */
.featured { display: grid; grid-template-columns: 1fr; gap: 26px; align-items: center; }
@media (min-width: 760px) { .featured { grid-template-columns: 280px 1fr; } }
.featured .info h3 { font-family: "Fredoka", sans-serif; color: var(--cream); font-size: 1.5rem; margin: .2rem 0 .6rem; }
.featured .info p { color: rgb(var(--cream-rgb) / .78); margin: 0; }
.metric-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 1rem 0 0; }
.metric {
  background: rgb(var(--gold-rgb) / .14); border: 1px solid rgb(var(--gold-rgb) / .4);
  color: var(--gold); border-radius: 999px; padding: .35rem .85rem; font-size: .85rem; font-weight: 600;
}

/* content grid */
.videos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
@media (min-width: 760px) { .videos { grid-template-columns: repeat(3, 1fr); } }
.video-card { text-align: center; }
.video-card .brandline { margin-top: .8rem; color: var(--cream); font-weight: 600; }
.video-card .stats-inline { color: rgb(var(--cream-rgb) / .62); font-size: .82rem; margin-top: .2rem; }

/* logo wall — wordmarks tinted monochrome cream, directly on the night sky (no chips) */
.logos { display: flex; flex-wrap: wrap; gap: 48px; justify-content: center; align-items: center; }
.brand-logo {
  height: 42px; max-width: 210px; object-fit: contain;
  filter: var(--tint-cream);
  opacity: .9;
}

/* collab types */
.collab-types { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 0; margin: 0; }
.collab-types li {
  list-style: none; background: rgb(var(--cream-rgb) / .06); border: 1px solid rgb(var(--cream-rgb) / .16);
  border-radius: 999px; padding: .5rem 1rem; color: rgb(var(--cream-rgb) / .85); font-size: .9rem;
}

/* about + contact */
.about { max-width: 62ch; margin: 0 auto; text-align: center; color: rgb(var(--cream-rgb) / .8); }
.contact { text-align: center; }
