/*
 * Yo B**** — custom project page styles.
 * Scoped under .yb so nothing leaks into the rest of the site. Reuses the global
 * design tokens (colors, fonts, radius, --max) from kb-overrides.css.
 */

.yb {
  --tw-blue: #0875bd;
  --yb-accent-text: var(--accent-dark);
  background: var(--bg);
  color: var(--ink);
}

:root[data-theme="dark"] .yb {
  --tw-blue: #4ab3f4;
}

.yb-inner {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.yb-section {
  padding: clamp(48px, 7vw, 92px) 0;
}

.yb-kicker {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yb-accent-text);
}

.yb-section h2 {
  margin: 0 0 18px;
  max-width: 16ch;
}

.yb-prose p {
  margin: 0 0 16px;
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.7;
}

/* idea + launch tweet, side by side */
.yb-idea {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}
.yb-idea-copy,
.yb-idea-aside,
.yb-tweet {
  min-width: 0;
}
.yb-idea-copy p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.7;
}
.yb-idea-copy p:last-child {
  margin-bottom: 0;
}
.yb-idea-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.yb-tweet-cap {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yb-accent-text);
}
.yb-idea-aside .yb-tweet {
  width: 100%;
  max-width: 460px;
  margin: 0;
}

@media (max-width: 800px) {
  .yb-idea {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* full-bleed dark band (screenshots pop on it regardless of theme) */
.yb-band--dark {
  position: relative;
  color: #f7f5fb;
  background:
    radial-gradient(
      120% 120% at 15% 0%,
      rgba(124, 58, 237, 0.35),
      transparent 55%
    ),
    radial-gradient(
      120% 120% at 100% 100%,
      rgba(239, 45, 111, 0.32),
      transparent 55%
    ),
    #110d18;
}

/* ---------- HERO ---------- */
.yb-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 76px);
  color: #f7f5fb;
  background:
    radial-gradient(
      120% 90% at 50% -10%,
      rgba(34, 211, 238, 0.28),
      transparent 55%
    ),
    radial-gradient(
      120% 120% at 100% 110%,
      rgba(239, 45, 111, 0.32),
      transparent 55%
    ),
    radial-gradient(
      120% 120% at 0% 110%,
      rgba(124, 58, 237, 0.3),
      transparent 55%
    ),
    #0e0b16;
}

.yb-hero-inner {
  position: relative;
  width: min(760px, calc(100% - 48px));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.yb-appicon {
  width: clamp(84px, 12vw, 120px);
  height: auto;
  border-radius: 23%;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.yb-title {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: none;
  margin: 0;
}

.yb-eyebrow {
  margin: 22px 0 14px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 245, 251, 0.62);
}

/* the hero is always dark, so it always uses the white wordmark */
.yb-logo {
  display: block;
  width: min(440px, 78%);
  height: auto;
}

.yb-lede {
  margin: 22px 0 0;
  max-width: 54ch;
  color: rgba(247, 245, 251, 0.82);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
}

.yb-facts {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 14px;
}
.yb-facts li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 16px;
  min-width: 120px;
  text-align: left;
  border: 1px solid rgba(247, 245, 251, 0.16);
  border-radius: var(--radius);
  background: rgba(247, 245, 251, 0.05);
  font-size: 13px;
  font-weight: 600;
}
.yb-facts span {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247, 245, 251, 0.55);
}

/* ---------- SOUNDBOARD ---------- */
.yb-board-wrap {
  position: relative;
  background:
    radial-gradient(
      100% 120% at 50% 0%,
      color-mix(in srgb, var(--accent) 8%, transparent),
      transparent 60%
    ),
    var(--band);
}
.yb-board-note {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 14px;
}
.yb-board-legal {
  margin: 26px 0 0;
  max-width: 64ch;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.yb-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr));
  gap: 14px;
}

/* each clip is an equal player card: play/pause control + label + waveform */
.yb-clip {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "viz label"
    "viz wave";
  align-items: center;
  column-gap: 14px;
  row-gap: 5px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background-color 0.2s,
    color 0.2s,
    transform 0.4s var(--ease);
}
.yb-clip:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
}
.yb-clip.is-playing {
  border-color: var(--accent);
}

/* the iconic line: a subtle accent ring instead of a giant button */
.yb-clip.is-primary {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}
.yb-clip.is-primary .yb-clip-label {
  color: var(--yb-accent-text);
}

.yb-clip-viz {
  grid-area: viz;
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  transition: background 0.2s ease;
}
.yb-clip.is-playing .yb-clip-viz {
  background: var(--accent);
  color: var(--accent-ink);
}
.yb-clip-play,
.yb-clip-pause {
  width: 16px;
  height: 16px;
}
.yb-clip-play {
  margin-left: 2px;
}
.yb-clip-pause {
  display: none;
}
.yb-clip.is-playing .yb-clip-play {
  display: none;
}
.yb-clip.is-playing .yb-clip-pause {
  display: block;
}

.yb-clip-label {
  grid-area: label;
  align-self: end;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
}

/* waveform silhouette; bars come alive while the clip plays */
.yb-clip-wave {
  grid-area: wave;
  align-self: start;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 18px;
  overflow: hidden;
}
.yb-clip-wave i {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 2px;
  background: color-mix(in srgb, var(--ink) 20%, transparent);
  transform-origin: bottom;
  transition: background 0.2s ease;
}
.yb-clip.is-playing .yb-clip-wave i {
  background: var(--accent);
  animation: yb-wave 0.85s ease-in-out infinite;
}
@keyframes yb-wave {
  0%,
  100% {
    transform: scaleY(0.35);
  }
  50% {
    transform: scaleY(1);
  }
}

/* ---------- SCREENSHOTS ---------- */
/* all five on screen at once: a staggered lineup that wraps responsively */
.yb-shots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(14px, 1.8vw, 26px) clamp(12px, 1.6vw, 24px);
  padding-bottom: 24px;
}
.yb-shot {
  flex: 0 1 auto;
  width: clamp(150px, 16.5vw, 198px);
  margin: 0;
  text-align: center;
}
.yb-shot:nth-child(even) {
  transform: translateY(26px);
}
.yb-shot img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.5));
  transition: transform 0.4s cubic-bezier(0.075, 0.82, 0.165, 1);
}
.yb-shot:hover img {
  transform: translateY(-6px);
}
.yb-shot figcaption {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(247, 245, 251, 0.6);
}

/* ---------- LAUNCH TWEET ---------- */
.yb-tweet {
  width: min(540px, 100%);
  margin: 0 0 36px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  text-align: left;
}
.yb-tweet-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.yb-tweet-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2a2a2e, #0c0c0e);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.02em;
}
.yb-tweet-id {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.yb-tweet-name {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.yb-tweet-name svg {
  width: 16px;
  height: 16px;
  color: var(--tw-blue);
}
.yb-tweet-handle {
  color: var(--muted);
  font-size: 14px;
}
.yb-tweet-bird {
  margin-left: auto;
  width: 22px;
  height: 22px;
  color: var(--tw-blue);
}
.yb-tweet-body {
  margin: 14px 0 0;
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.45;
  color: var(--ink);
}
.yb-tweet-link {
  color: var(--tw-blue);
  overflow-wrap: anywhere;
}
.yb-tweet-date {
  display: block;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- PRESS ---------- */
.yb-press-lede {
  margin: 0 0 26px;
  max-width: 60ch;
  color: var(--muted);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.7;
}
/* bento: a few big hitters + clustered smaller outlets */
.yb-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(86px, auto);
  grid-auto-flow: dense;
  gap: 12px;
}
.yb-bento-tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}
.yb-bento-tile:hover,
.yb-bento-tile:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
}
.yb-bento-tag {
  order: -1;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.yb-bento-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.15;
}
.yb-bento-sub {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.yb-bento-tile.is-wide {
  grid-column: span 2;
}
.yb-bento-tile.is-feature {
  grid-column: span 2;
  grid-row: span 2;
  justify-content: space-between;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #6d28d9, #be185d 58%, #c2410c);
}
.yb-bento-tile.is-feature .yb-bento-tag {
  color: rgba(255, 255, 255, 0.85);
}
.yb-bento-tile.is-feature .yb-bento-name {
  font-size: clamp(24px, 3vw, 34px);
}
.yb-bento-tile.is-feature .yb-bento-sub {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}
.yb-bento-tile.is-feature:hover {
  box-shadow: 0 16px 36px rgba(239, 45, 111, 0.3);
  transform: translateY(-2px);
}

/* Additional coverage stays readable without animation or JavaScript. */
.yb-outlets-label {
  margin: clamp(26px, 3.4vw, 40px) 0 0;
  font: 12px/1.6 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.yb-press-outlets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 14px 24px;
  list-style: none;
  margin: 22px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.yb-press-outlets li {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .yb-bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .yb-bento-tile.is-wide {
    grid-column: span 2;
  }
  .yb-bento-tile.is-feature {
    grid-column: span 2;
    grid-row: span 1;
  }
}
/* ---------- DETAILS (spec panel) ---------- */
.yb-specs {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  padding: clamp(26px, 3.2vw, 46px);
  overflow: hidden;
}
.yb-specs::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}
.yb-specs-head {
  margin-bottom: clamp(22px, 2.6vw, 34px);
}
.yb-specs-head h2 {
  margin: 8px 0 0;
}
.yb-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: clamp(20px, 2.2vw, 32px) clamp(26px, 3vw, 48px);
  margin: 0;
}
.yb-spec {
  margin: 0;
}
.yb-spec dt {
  margin-bottom: 7px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yb-accent-text);
}
.yb-spec dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}

/* ---------- CTA ---------- */
.yb-cta {
  text-align: center;
  padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 96px);
}
.yb-cta .button {
  font-size: 14px;
}

/* ---------- WATCH (video embeds + late-night link) ---------- */
.yb-videos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.2vw, 26px);
}
.yb-video {
  margin: 0;
}
.yb-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}
.yb-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.yb-video figcaption {
  margin-top: 11px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}
.yb-video:only-child {
  grid-column: 1 / -1;
  width: min(100%, 760px);
  justify-self: center;
}

.yb-watch-link {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(18px, 2.2vw, 26px);
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}
.yb-watch-link + .yb-watch-link {
  margin-top: 10px;
}
.yb-watch-link:hover,
.yb-watch-link:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
}
.yb-watch-play {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
}
.yb-watch-play svg {
  width: 15px;
  height: 15px;
  margin-left: 2px;
}
.yb-watch-text {
  font-size: 15px;
  line-height: 1.4;
}
.yb-watch-arrow {
  margin-left: auto;
  color: var(--yb-accent-text);
  font-size: 16px;
  flex: none;
}

@media (max-width: 680px) {
  .yb-videos {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .yb-clip-wave i {
    animation: none;
  }
  .yb-shot:hover img,
  .yb-clip:hover,
  .yb-bento-tile:hover,
  .yb-watch-link:hover {
    transform: none;
  }
}

/* The original product keeps its personality inside the portfolio's system. */
.yb-inner,
.yb-hero-inner {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
}
.yb-hero {
  background: #171d13;
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 65px 0;
}
.yb-hero-inner {
  align-items: flex-start;
  position: relative;
  padding-right: 180px;
}
.yb-appicon {
  position: absolute;
  right: 0;
  top: 10px;
  width: 110px;
  box-shadow: none;
}
.yb-title {
  justify-content: flex-start;
}
.yb-logo {
  width: min(450px, 80%);
}
.yb-eyebrow,
.yb-kicker {
  font: 12px/1.6 var(--font-mono);
  letter-spacing: 0.06em;
  font-weight: 400;
}
.yb-lede {
  margin-left: 0;
  max-width: 57ch;
}
.yb-facts {
  justify-content: flex-start;
}
.yb-facts li {
  border-radius: 3px;
  font-weight: 400;
}
.yb-facts span {
  font-size: 12px;
}
.yb-section h2 {
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 500;
  letter-spacing: -0.045em;
}
.yb-band--dark {
  background: #1b2316;
}
.yb-tweet,
.yb-video-frame,
.yb-clip {
  border-radius: 5px;
}
.yb-video-frame {
  max-width: 900px;
}
.yb-board {
  gap: 14px;
}
.yb-press-link {
  border-radius: 4px;
}
@media (max-width: 700px) {
  .yb-hero-inner {
    padding-right: 0;
  }
  .yb-appicon {
    position: static;
    width: 64px;
    margin-bottom: 5px;
  }
  .yb-hero {
    padding: 35px 0 45px;
  }
  .yb-title {
    margin-top: 10px;
  }
  .yb-logo {
    width: min(360px, 100%);
  }
  .yb-section h2 {
    font-size: 32px;
  }
}
