/* ============================================
     Team Building Platform — unique visual grammar
     METAPHOR: team pod badges + live scoreboard tiles
     Professional in-person events — not poker cards or yard signs
     ============================================ */

  :root {
    --tb-accent: oklch(0.52 0.14 250);
    --tb-accent-ink: oklch(0.98 0.005 250);
    --tb-accent-dim: oklch(0.62 0.12 250);
  }

  .crumb {
    padding: 20px 0 0;
    font-size: 13px; color: var(--fg-mute);
    display: flex; gap: 10px; align-items: center;
  }
  .crumb a { color: var(--fg-mute); }
  .crumb a:hover { color: var(--accent); }
  .crumb .sep { opacity: 0.4; }

  /* ─── HERO ─────────────────────── */
  .tb-hero {
    padding: 48px 0 72px;
    position: relative;
    overflow: hidden;
  }
  .tb-hero::before {
    content: "";
    position: absolute; inset: 0;
    background:
      radial-gradient(ellipse 55% 45% at 80% 15%, color-mix(in oklch, var(--tb-accent) 16%, transparent), transparent 70%),
      repeating-linear-gradient(
        90deg,
        transparent 0,
        transparent 47px,
        color-mix(in oklch, var(--border) 35%, transparent) 47px,
        color-mix(in oklch, var(--border) 35%, transparent) 48px
      );
    opacity: 0.4;
    pointer-events: none;
  }
  .tb-hero-grid {
    display: grid; grid-template-columns: 1.1fr minmax(300px, 1fr);
    gap: 56px; align-items: center;
    position: relative;
  }
  @media (max-width: 980px) { .tb-hero-grid { grid-template-columns: 1fr; } }

  .tb-hero-viz {
    width: 100%;
    min-width: 300px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
  @media (max-width: 980px) {
    .tb-hero-viz { justify-content: center; min-width: 0; }
  }

  .platform-tag {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 10px 5px 8px; border-radius: 999px;
    background: color-mix(in oklch, var(--tb-accent) 12%, var(--bg-card));
    border: 1px solid color-mix(in oklch, var(--tb-accent) 35%, var(--border));
    font-size: 11.5px; font-family: "Geist Mono", monospace; letter-spacing: 0.06em;
    color: var(--tb-accent);
    margin-bottom: 22px;
  }
  .platform-tag::before {
    content: ""; display: inline-block; width: 6px; height: 6px;
    background: var(--tb-accent); border-radius: 50%;
  }
  .tb-hero h1 {
    font-size: clamp(48px, 6.5vw, 96px);
    line-height: 0.94; letter-spacing: -0.04em; font-weight: 600;
    margin: 0 0 22px; max-width: 13ch;
  }
  .tb-hero h1 em {
    font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400;
    letter-spacing: -0.02em; color: var(--tb-accent);
  }
  .tb-hero .lede {
    font-size: 19px; color: var(--fg-dim); max-width: 52ch;
    line-height: 1.5; margin: 0 0 28px;
  }
  .hero-meta {
    display: flex; flex-wrap: wrap; gap: 16px 24px;
    margin-top: 20px;
    font-size: 13px; color: var(--fg-mute);
  }
  .hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
  .hero-meta .check {
    width: 16px; height: 16px; border-radius: 50%;
    background: color-mix(in oklch, var(--tb-accent) 20%, transparent);
    border: 1px solid color-mix(in oklch, var(--tb-accent) 40%, transparent);
    position: relative;
  }
  .hero-meta .check::after {
    content: ""; position: absolute; left: 5px; top: 3px;
    width: 4px; height: 7px;
    border: solid var(--tb-accent);
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
  }

  /* team pod stack (hero visual) */
  .pod-stack {
    position: relative;
    width: 400px;
    height: 400px;
    max-width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
  }
  @media (max-width: 980px) {
    .pod-stack { width: min(100%, 360px); height: 360px; margin: 0 auto; }
  }
  @media (max-width: 480px) {
    .pod-stack { width: 100%; height: 340px; max-width: 320px; }
  }
  .pod-card {
    position: absolute;
    width: 260px;
    max-width: 88%;
    padding: 22px 24px 26px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-strong);
    box-shadow: 0 16px 48px -20px rgba(0,0,0,0.22);
    box-sizing: border-box;
    transition: transform 280ms ease, box-shadow 280ms ease;
  }
  .pod-card .pod-id {
    font-family: "Geist Mono", monospace; font-size: 10px;
    letter-spacing: 0.14em; text-transform: uppercase;
    margin-bottom: 10px; opacity: 0.8;
  }
  .pod-card .pod-title {
    font-family: "Instrument Serif", serif; font-style: italic;
    font-size: clamp(28px, 3.2vw, 40px); line-height: 0.95;
    letter-spacing: -0.02em; margin-bottom: 8px;
  }
  .pod-card .pod-sub {
    font-family: "Geist Mono", monospace; font-size: 11px;
    letter-spacing: 0.06em;
  }
  .pod-card .pod-avatars {
    display: flex; margin-top: 16px; padding-top: 14px;
    border-top: 1px solid color-mix(in oklch, currentColor 15%, transparent);
  }
  .pod-card .av {
    width: 28px; height: 28px; border-radius: 50%;
    border: 2px solid var(--bg-card);
    margin-left: -8px;
    background: linear-gradient(135deg, var(--tb-accent-dim), var(--accent));
  }
  .pod-card .av:first-child { margin-left: 0; }
  .pod-card .av.more {
    display: grid; place-items: center;
    font-family: "Geist Mono", monospace; font-size: 9px;
    background: var(--bg-elev); color: var(--fg-dim);
  }
  .pod-card.p1 {
    top: 8px; left: 12px;
    background: var(--bg-card);
    color: var(--fg);
    transform: rotate(-5deg);
    z-index: 1;
  }
  .pod-card.p2 {
    top: 108px; right: 0; left: auto;
    background: var(--tb-accent);
    color: var(--tb-accent-ink);
    border-color: oklch(0.42 0.14 250);
    transform: rotate(3deg);
    z-index: 3;
  }
  .pod-card.p2 .pod-id { color: oklch(0.92 0.02 250); }
  .pod-card.p3 {
    bottom: 8px; left: 36px;
    background: var(--ps-bg);
    color: var(--ps-fg);
    border-color: var(--ps-border);
    transform: rotate(-1.5deg);
    z-index: 2;
  }
  .pod-card.p3 .pod-id { color: oklch(0.72 0.12 250); }
  .pod-card.p3 .pod-sub { color: var(--ps-mute); }
  .pod-card.p3 .pod-avatars { border-color: var(--ps-border); }
  @media (max-width: 480px) {
    .pod-card { width: 230px; padding: 18px 20px 22px; }
    .pod-card.p1 { top: 4px; left: 4px; }
    .pod-card.p2 { top: 96px; right: 0; }
    .pod-card.p3 { bottom: 4px; left: 20px; }
  }
  .pod-stack:hover .pod-card.p1 { transform: rotate(-7deg) translateY(-6px); }
  .pod-stack:hover .pod-card.p2 { transform: rotate(5deg) translateY(-10px); }
  .pod-stack:hover .pod-card.p3 { transform: rotate(-2.5deg) translateY(-4px); }
  @media (prefers-reduced-motion: reduce) {
    .pod-card, .pod-stack:hover .pod-card { transition: none; }
    .pod-stack:hover .pod-card.p1 { transform: rotate(-5deg); }
    .pod-stack:hover .pod-card.p2 { transform: rotate(3deg); }
    .pod-stack:hover .pod-card.p3 { transform: rotate(-1.5deg); }
  }

  /* relay rule */
  .relay-rule {
    display: flex; align-items: center; gap: 16px;
    padding: 48px 0;
    color: var(--fg-mute);
    font-family: "Geist Mono", monospace; font-size: 10px;
    letter-spacing: 0.2em; text-transform: uppercase;
  }
  .relay-rule::before, .relay-rule::after {
    content: ""; flex: 1; height: 1px; background: var(--border);
  }

  /* quote */
  .tb-quote {
    position: relative;
    padding: 48px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background:
      linear-gradient(135deg, color-mix(in oklch, var(--tb-accent) 10%, var(--bg-elev)) 0%, var(--bg-elev) 55%),
      var(--bg-elev);
    border: 1px solid var(--border);
  }
  .tb-quote blockquote {
    margin: 0; max-width: 34ch;
    font-family: "Instrument Serif", serif; font-style: italic;
    font-size: clamp(28px, 3.5vw, 44px); line-height: 1.08;
    letter-spacing: -0.02em;
  }
  .tb-quote cite {
    display: block; margin-top: 18px;
    font-family: "Geist", sans-serif; font-style: normal;
    font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--fg-mute);
  }

  /* journey steps */
  .journey-strip {
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 14px; counter-reset: tbstep;
  }
  @media (max-width: 1100px) { .journey-strip { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 540px) { .journey-strip { grid-template-columns: 1fr; } }
  .journey-step {
    background: var(--bg-elev); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 22px 20px;
    counter-increment: tbstep;
    cursor: default;
  }
  .journey-step::before {
    content: "Phase " counter(tbstep, decimal-leading-zero);
    display: block; font-family: "Geist Mono", monospace;
    font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--tb-accent); margin-bottom: 14px;
  }
  .team-badge {
    display: inline-block;
    padding: 5px 10px;
    background: color-mix(in oklch, var(--tb-accent) 10%, var(--bg-card));
    border: 1px solid color-mix(in oklch, var(--tb-accent) 30%, var(--border));
    border-radius: 4px;
    font-family: "Geist Mono", monospace; font-size: 10px;
    color: var(--tb-accent); margin-bottom: 14px;
    letter-spacing: 0.06em;
  }
  .journey-step h4 { margin: 0 0 6px; font-size: 16px; font-weight: 500; }
  .journey-step p { margin: 0; font-size: 13px; color: var(--fg-mute); line-height: 1.5; }

  /* versus */
  .versus {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    overflow: hidden; background: var(--bg-elev);
  }
  @media (max-width: 720px) { .versus { grid-template-columns: 1fr; } }
  .vs-side { padding: 32px; }
  .vs-side.old {
    border-right: 1px solid var(--border);
    color: var(--fg-dim);
  }
  @media (max-width: 720px) {
    .vs-side.old { border-right: 0; border-bottom: 1px solid var(--border); }
  }
  .vs-side.new {
    background:
      radial-gradient(700px 200px at 100% 0%, color-mix(in oklch, var(--tb-accent) 14%, transparent), transparent 55%),
      var(--bg-elev);
  }
  .vs-side .label {
    font-family: "Geist Mono", monospace; font-size: 11px;
    letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 8px;
  }
  .vs-side.old .label { color: var(--fg-mute); }
  .vs-side.new .label { color: var(--tb-accent); }
  .vs-side h3 { font-size: 22px; font-weight: 500; margin: 0 0 20px; letter-spacing: -0.02em; }
  .vs-side ul { list-style: none; padding: 0; margin: 0; }
  .vs-side li {
    padding: 11px 0; border-top: 1px solid var(--border);
    font-size: 14px; display: flex; gap: 10px; align-items: flex-start;
  }
  .vs-side li:first-child { border-top: 0; }
  .vs-side.old li::before {
    content: "×"; color: var(--fg-mute); font-weight: 600; flex-shrink: 0;
  }
  .vs-side.new li::before {
    content: "✓"; color: var(--tb-accent); font-weight: 600; flex-shrink: 0;
  }

  /* event format bento */
  .format-bento {
    display: grid; grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(130px, auto);
    gap: 12px;
  }
  .fmt-card {
    grid-column: span 4;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-elev);
    cursor: default;
    transition: border-color 200ms ease, background 200ms ease;
  }
  .fmt-card:hover { border-color: var(--border-strong); background: var(--bg-card); }
  .fmt-card.wide { grid-column: span 6; }
  .fmt-card.featured {
    grid-column: span 6; grid-row: span 2;
    background:
      radial-gradient(480px 200px at 100% 0%, color-mix(in oklch, var(--tb-accent) 14%, transparent), transparent 55%),
      var(--bg-elev);
    border-color: color-mix(in oklch, var(--tb-accent) 30%, var(--border));
  }
  @media (max-width: 900px) {
    .fmt-card, .fmt-card.wide, .fmt-card.featured { grid-column: span 6; grid-row: span 1; }
  }
  @media (max-width: 540px) {
    .fmt-card, .fmt-card.wide, .fmt-card.featured { grid-column: span 12; }
  }
  .fmt-card .fc-num {
    font-family: "Geist Mono", monospace; font-size: 10px;
    letter-spacing: 0.12em; color: var(--tb-accent); margin-bottom: 12px;
  }
  .fmt-card h4 { margin: 0 0 8px; font-size: 17px; font-weight: 500; }
  .fmt-card.featured h4 { font-size: 22px; }
  .fmt-card p { margin: 0; font-size: 13px; color: var(--fg-mute); line-height: 1.45; }
  .fmt-card .fc-tags {
    display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px;
  }
  .fmt-card .fc-tags span {
    font-family: "Geist Mono", monospace; font-size: 9px;
    letter-spacing: 0.06em; text-transform: uppercase;
    padding: 4px 8px; border-radius: 4px;
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--fg-dim);
  }

  /* buyer catalog */
  .buyer-catalog {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-elev);
  }
  .buyer-row {
    display: grid; grid-template-columns: 110px 1fr 140px auto;
    gap: 20px; align-items: center;
    padding: 20px 28px;
    border-top: 1px solid var(--border);
    cursor: default;
    transition: background 160ms ease;
  }
  .buyer-row:first-child { border-top: 0; }
  .buyer-row:hover { background: var(--bg-card); }
  @media (max-width: 800px) {
    .buyer-row { grid-template-columns: 80px 1fr auto; }
    .buyer-row .buyer-use { display: none; }
  }
  .buyer-row .id {
    font-family: "Geist Mono", monospace; font-size: 11px;
    color: var(--tb-accent); letter-spacing: 0.06em;
  }
  .buyer-row .name { font-size: 17px; font-weight: 500; }
  .buyer-row .desc { font-size: 13px; color: var(--fg-mute); margin-top: 3px; }
  .buyer-row .buyer-use {
    font-family: "Geist Mono", monospace; font-size: 11px; color: var(--fg-mute);
  }

  /* live scoreboard (dark) */
  .score-mat {
    background: var(--ps-bg); border: 1px solid var(--ps-border);
    border-radius: var(--radius-lg); padding: 28px 32px;
    position: relative; overflow: hidden;
  }
  .score-mat::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(600px 240px at 100% 0%, color-mix(in oklch, var(--tb-accent) 18%, transparent), transparent 55%);
    pointer-events: none;
  }
  .score-mat > * { position: relative; }
  .score-mat .head {
    display: flex; justify-content: space-between; align-items: baseline;
    padding-bottom: 16px; border-bottom: 1px solid var(--ps-border);
    color: var(--ps-fg); margin-bottom: 8px;
  }
  .score-mat .head .live {
    font-family: "Geist Mono", monospace; font-size: 11px;
    color: oklch(0.72 0.14 250); letter-spacing: 0.08em;
  }
  .score-mat .head .live::before {
    content: ""; display: inline-block;
    width: 6px; height: 6px; background: oklch(0.62 0.14 250);
    border-radius: 50%; margin-right: 6px; vertical-align: middle;
    animation: pulse 1.8s ease-out infinite;
  }
  @media (prefers-reduced-motion: reduce) {
    .score-mat .head .live::before { animation: none; }
  }
  .score-row {
    display: grid; grid-template-columns: 36px 1fr auto auto;
    gap: 14px; align-items: center;
    padding: 14px 0; border-top: 1px solid var(--ps-border);
    color: var(--ps-fg);
  }
  .score-row:first-of-type { border-top: 0; }
  .score-row.lead {
    background: color-mix(in oklch, var(--tb-accent) 12%, transparent);
    margin: 0 -16px; padding-left: 16px; padding-right: 16px;
    border-radius: var(--radius);
  }
  .score-row .rank {
    font-family: "Instrument Serif", serif; font-style: italic;
    font-size: 22px; color: var(--ps-mute);
  }
  .score-row.lead .rank { color: oklch(0.78 0.14 250); }
  .score-row .nm { font-weight: 500; font-size: 14px; }
  .score-row .sub { font-size: 12px; color: var(--ps-mute); margin-top: 2px; }
  .score-row .pts {
    font-family: "Geist Mono", monospace; font-size: 13px;
    color: oklch(0.78 0.14 250); font-weight: 500;
  }
  .score-row .prog {
    font-family: "Geist Mono", monospace; font-size: 10px;
    padding: 4px 8px; border-radius: 4px;
    background: color-mix(in oklch, var(--tb-accent) 20%, transparent);
    color: var(--ps-fg); letter-spacing: 0.04em;
  }

  /* big number */
  .big-number { text-align: center; padding: 40px 0; }
  .big-number .n {
    font-family: "Instrument Serif", serif; font-style: italic;
    font-size: clamp(100px, 14vw, 200px); line-height: 0.85;
    letter-spacing: -0.05em; color: var(--tb-accent);
  }
  .big-number .label {
    margin-top: 20px; font-size: 17px; color: var(--fg-dim);
    max-width: 48ch; margin-left: auto; margin-right: auto;
  }

  /* features grid */
  .tb-feats {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  }
  @media (max-width: 720px) { .tb-feats { grid-template-columns: 1fr; } }
  .tf {
    display: grid; grid-template-columns: auto 1fr; gap: 16px;
    padding: 22px; border: 1px solid var(--border);
    border-radius: var(--radius); background: var(--bg-elev);
    transition: background 180ms ease, border-color 180ms ease;
  }
  .tf:hover { background: var(--bg-card); border-color: var(--border-strong); }
  .tf .icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--bg-card); border: 1px solid var(--border);
    display: grid; place-items: center;
  }
  .tf h4 { margin: 0 0 4px; font-size: 16px; font-weight: 500; }
  .tf p { margin: 0; font-size: 13px; color: var(--fg-mute); line-height: 1.45; }

  /* organizer story */
  .org-story {
    display: grid; grid-template-columns: 0.85fr 1fr; gap: 48px;
    align-items: center; padding: 20px 0;
  }
  @media (max-width: 900px) { .org-story { grid-template-columns: 1fr; } }
  .org-photo {
    aspect-ratio: 4/3; border-radius: var(--radius-lg);
    background:
      linear-gradient(135deg, color-mix(in oklch, var(--tb-accent) 16%, var(--bg-card)), var(--bg-card)),
      var(--bg-card);
    border: 1px solid var(--border);
    display: grid; place-items: center;
    font-family: "Geist Mono", monospace; font-size: 11px; color: var(--fg-mute);
  }
  .org-story .pull {
    display: inline-block; padding: 4px 12px;
    background: color-mix(in oklch, var(--tb-accent) 12%, transparent);
    color: var(--tb-accent);
    font-family: "Geist Mono", monospace; font-size: 11px;
    letter-spacing: 0.1em; text-transform: uppercase;
    margin-bottom: 20px; border-radius: 4px;
  }
  .org-story .quote {
    font-family: "Instrument Serif", serif; font-style: italic;
    font-size: clamp(26px, 3.2vw, 38px); line-height: 1.12;
    margin: 0 0 20px;
  }

  /* other platforms */
  .other-platforms {
    display: flex; flex-direction: column;
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    overflow: hidden; background: var(--bg-elev);
  }
  .op-row {
    display: grid; grid-template-columns: 100px 1fr auto;
    gap: 24px; align-items: center;
    padding: 18px 24px; border-top: 1px solid var(--border);
    text-decoration: none; color: inherit;
    cursor: pointer;
    transition: background 160ms ease;
  }
  .op-row:first-child { border-top: 0; }
  .op-row:hover { background: var(--bg-card); }
  .op-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
  .op-row .id { font-family: "Geist Mono", monospace; font-size: 11px; color: var(--accent); }
  .op-row .name { font-size: 17px; font-weight: 500; }
  .op-row .desc { font-size: 13px; color: var(--fg-mute); margin-top: 2px; }
  .op-row .arrow { transition: transform 160ms, color 160ms; color: var(--fg-mute); }
  .op-row:hover .arrow { color: var(--accent); transform: translateX(4px); }

  /* CTA */
  .tb-cta {
    text-align: center; padding: 88px 32px;
    border-radius: var(--radius-lg);
    background:
      radial-gradient(700px 280px at 50% 100%, color-mix(in oklch, var(--tb-accent) 16%, transparent), transparent 55%),
      radial-gradient(500px 200px at 20% 0%, color-mix(in oklch, var(--accent) 10%, transparent), transparent 50%),
      var(--ps-bg);
    border: 1px solid var(--ps-border);
    color: var(--ps-fg);
    position: relative; overflow: hidden;
  }
  .tb-cta h2 {
    font-size: clamp(40px, 5vw, 64px);
    letter-spacing: -0.035em; line-height: 1; margin: 0 0 18px;
  }
  .tb-cta h2 em {
    font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400;
    color: oklch(0.78 0.14 250);
  }
  .tb-cta p { color: var(--ps-mute); font-size: 18px; max-width: 48ch; margin: 0 auto 28px; }
