/* ───────────────────────────────────────────────────────────────────────────
   TrebleTribe · Afrofuturist Xhosa beadwork layer — BOLD · LOUD · PROUD
   Umbhaco banding (parallel black lines on ochre-white), beaded diamonds and
   chevrons, every geometric shape softened with intentional curves.
   ─────────────────────────────────────────────────────────────────────────── */
:root {
  --bead-scarlet: #f6334c;
  --bead-black: #0a090b;
  --bead-white: #f6efe8;
  --bead-ochre: #e8b04a;
  --bead-turquoise: #19c3b2;
  --bead-cobalt: #2f5bff;
  /* beaded chevron band: diamonds + triangles, 48×16 tile */
  --band-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='16' viewBox='0 0 48 16'%3E%3Cpath d='M0 16 8 0l8 16z' fill='%23f6334c'/%3E%3Cpath d='M16 16 24 0l8 16z' fill='%230a090b'/%3E%3Cpath d='M32 16 40 0l8 16z' fill='%23f6efe8'/%3E%3Ccircle cx='8' cy='11' r='1.6' fill='%23f6efe8'/%3E%3Ccircle cx='24' cy='11' r='1.6' fill='%23e8b04a'/%3E%3Ccircle cx='40' cy='11' r='1.6' fill='%23f6334c'/%3E%3C/svg%3E");
  /* beaded diamond lattice, 28×28 */
  --band-diamond: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M14 2 26 14 14 26 2 14z' fill='none' stroke='%23f6334c' stroke-width='2.4' stroke-linejoin='round'/%3E%3Cpath d='M14 9 19 14 14 19 9 14z' fill='%23f6efe8'/%3E%3Ccircle cx='14' cy='14' r='1.8' fill='%230a090b'/%3E%3C/svg%3E");
  /* umbhaco stripes: black parallel bands */
  --band-umbhaco: repeating-linear-gradient(90deg, var(--bead-black) 0 6px, transparent 6px 10px, var(--bead-black) 10px 12px, transparent 12px 22px);
  --curve: 22px 6px 22px 6px; /* intentional asymmetric curve on geometric shapes */
}

/* Beaded collar under every page title */
.tt-head h1 { text-transform: uppercase; letter-spacing: -.04em; }
.tt-head h1::after {
  content: ''; display: block; width: min(320px, 70%); height: 14px; margin-top: 12px;
  background: var(--band-chevron) left center / 42px 14px repeat-x;
  border-radius: 7px; filter: drop-shadow(0 0 12px rgba(246, 51, 76, .45));
}

/* Glass panels become beaded cards: curved-geometric corners, beaded edge */
.tt-screen .tt-glass {
  position: relative; border-radius: var(--curve); overflow: hidden;
  border: 1px solid rgba(246, 51, 76, .28);
  background: radial-gradient(120% 140% at 100% 0, rgba(246, 51, 76, .14), transparent 55%), #17121a;
  padding: 22px 22px 22px 30px;
}
.tt-screen .tt-glass::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 10px;
  background: var(--band-diamond) center top / 10px 10px repeat-y, var(--bead-black);
  border-right: 2px solid var(--bead-scarlet);
}

/* Buttons: loud, proud, curved diamonds */
.tt-screen .button.primary {
  background: linear-gradient(105deg, #ff3d58, #c3002b); font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  border-radius: 18px 4px 18px 4px; box-shadow: 0 6px 24px rgba(246, 51, 76, .35);
}
.tt-screen .button.outline { border-radius: 18px 4px 18px 4px; border-width: 2px; }

/* Shuffle the tribe: the loudest button on the page */
.tt-shuffle-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 20px; }
.tt-shuffle-tribe { min-height: 54px !important; padding-inline: 26px; font-size: 16px; position: relative; }
.tt-shuffle-tribe::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: -8px; height: 6px; background: var(--band-chevron) 0 0 / 18px 6px repeat-x; border-radius: 3px; }

/* Badge + kicker */
.tt-badge { display: inline-block; font: 800 11px/1 var(--display, sans-serif); font-style: normal; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 10px 3px 10px 3px; color: var(--bead-black); background: linear-gradient(90deg, var(--bead-ochre), #ffd47a); vertical-align: middle; }
.tt-kicker { display: inline-block; font: 800 12px/1 var(--display, sans-serif); letter-spacing: .18em; color: var(--bead-ochre); margin-bottom: 8px; }

/* The Tribe directory */
.tt-tribe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.tt-tribe-card { display: flex; flex-direction: column; gap: 4px; padding: 14px; color: inherit; text-decoration: none;
  border-radius: var(--curve); background: #17121a; border: 1px solid rgba(246, 239, 232, .08); transition: transform .2s, border-color .2s; }
.tt-tribe-card:hover, .tt-tribe-card:focus-visible { transform: translateY(-3px); border-color: var(--bead-scarlet); }
.tt-tribe-card small { color: var(--tt-muted, #c3b6bc); }
.tt-avatar { aspect-ratio: 1; display: block; margin-bottom: 8px; padding: 6px; border-radius: 50% 50% 46% 46% / 40% 40% 60% 60%;
  background: conic-gradient(from 45deg, var(--bead-scarlet) 0 25%, var(--bead-white) 0 50%, var(--bead-black) 0 75%, var(--bead-ochre) 0); }
.tt-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; background: var(--bead-black); }

/* Artist hero */
.tt-artist-hero { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.tt-artist-photo { width: 132px; height: 132px; object-fit: cover; padding: 6px;
  border-radius: 50% 50% 46% 46% / 40% 40% 60% 60%;
  background: conic-gradient(from 45deg, var(--bead-scarlet) 0 25%, var(--bead-white) 0 50%, var(--bead-black) 0 75%, var(--bead-ochre) 0); }
.tt-services { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tt-services li { padding: 8px 14px; border-radius: 14px 4px 14px 4px; background: rgba(246, 51, 76, .16); border: 1px solid rgba(246, 51, 76, .5); font-weight: 650; }
.tt-share { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }
.tt-share input { flex: 1 1 220px; min-height: 43px; padding: 0 12px; border-radius: 12px; border: 1px solid #51454b; background: #0f0b10; color: inherit; }

/* Rows used by projects, bookings, desk */
.tt-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px dashed rgba(246, 239, 232, .12); }
.tt-row > span:first-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 260px; }
.tt-row small { color: var(--tt-muted, #c3b6bc); }
.tt-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tt-invite-form input, .tt-invite-form select { min-height: 43px; padding: 0 12px; border-radius: 12px; border: 1px solid #51454b; background: #0f0b10; color: inherit; flex: 1 1 160px; }
.tt-invite-form label { display: flex; flex-direction: column; gap: 4px; flex: 1 1 200px; }
.tt-pending { color: var(--bead-ochre) !important; } .tt-accepted { color: var(--bead-turquoise) !important; } .tt-declined { color: #ff8a9b !important; }
.tt-project { margin: 18px 0; }

/* Platform figures + ambassador stats */
.tt-platform-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.tt-platform { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 14px 4px 14px 4px; background: #0f0b10; border: 1px solid #2e2b32; }
.tt-platform label { display: flex; flex-direction: column; font-size: 13px; color: var(--tt-muted, #c3b6bc); gap: 2px; }
.tt-platform input { min-height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid #51454b; background: #17121a; color: var(--bead-white); }
.tt-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 8px; }
.tt-stats div { padding: 12px; border-radius: 14px 4px 14px 4px; background: #0f0b10; text-align: center; }
.tt-stats dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--tt-muted, #c3b6bc); }
.tt-stats dd { margin: 4px 0 0; font: 800 26px/1 var(--display, sans-serif); color: var(--bead-white); }
.tt-dsp-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }

/* Node partner hero */
.tt-node-hero { margin-bottom: 18px; background: var(--band-umbhaco), radial-gradient(120% 140% at 100% 0, rgba(232, 176, 74, .25), transparent 60%), #17121a !important;
  background-size: 22px 100%, auto, auto !important; background-repeat: repeat-y, no-repeat, no-repeat !important; background-position: right top !important; }
.tt-node-hero h2 { font: 850 clamp(30px, 6vw, 54px)/1 var(--display, sans-serif); letter-spacing: -.04em; color: var(--bead-ochre); }

/* Sidebar + mobile brand get a beaded spine */
.sidebar { background-image: var(--band-diamond); background-size: 10px 10px; background-repeat: repeat-y; background-position: right top; }

@media (max-width: 600px) {
  .tt-screen .tt-glass { padding: 18px 16px 18px 24px; }
  .tt-stats dd { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .tt-tribe-card { transition: none; } }

/* Social links + terms */
.tt-socials { border: 1px solid rgba(246, 51, 76, .3); border-radius: var(--curve); padding: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 0; }
.tt-socials legend { padding: 0 8px; font-weight: 800; letter-spacing: .04em; color: var(--bead-ochre); }
.tt-terms h2 { margin-top: 18px; font-size: 18px; color: var(--bead-ochre); }
.tt-terms p { color: var(--tt-muted, #c3b6bc); line-height: 1.6; }
.tt-feature .tt-kicker { display: block; }
.checklabel a { color: var(--bead-ochre); }

/* ── Cinematic CTA + footer (liquid glass) ── */
.tt-serif { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; letter-spacing: -.02em; }
.tt-cta { position: relative; overflow: hidden; margin: 48px 0 0; padding: 120px 24px 32px; text-align: center; background: #000; border-radius: 28px 8px 28px 8px; isolation: isolate; }
.tt-cta-media { position: absolute; inset: 0; z-index: -2; }
.tt-cta-media img, .tt-cta-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; filter: saturate(1.15) contrast(1.05); }
.tt-cta-media img { animation: tt-drift 24s ease-in-out infinite alternate; }
.tt-cta-video[data-ready="1"] + img { display: none; }
.tt-cta-media::after { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 40%, rgba(246, 51, 76, .28), transparent 70%), var(--band-diamond) right top / 14px 14px repeat-y; mix-blend-mode: screen; }
.tt-cta-fade { position: absolute; left: 0; right: 0; height: 180px; z-index: -1; pointer-events: none; }
.tt-cta-fade.top { top: 0; background: linear-gradient(to bottom, #000, transparent); }
.tt-cta-fade.bottom { bottom: 0; background: linear-gradient(to top, #000, transparent); }
.tt-cta-content h2 { font-size: clamp(46px, 8vw, 92px); line-height: .9; margin: 10px auto 16px; max-width: 14ch; color: #fff; }
.tt-cta-content p { max-width: 46ch; margin: 0 auto 30px; color: rgba(255, 255, 255, .7); font-weight: 300; }
.tt-cta-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.tt-glass-btn, .tt-solid-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; transition: background .2s, transform .2s; }
.tt-glass-btn { position: relative; overflow: hidden; color: #fff; background: rgba(255, 255, 255, .02); backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
  box-shadow: 4px 4px 4px rgba(0, 0, 0, .05), inset 0 1px 1px rgba(255, 255, 255, .15); }
.tt-glass-btn::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.4px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(246, 51, 76, .45) 20%, transparent 40%, transparent 60%, rgba(232, 176, 74, .45) 80%, rgba(255, 255, 255, .5));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.tt-glass-btn:hover { background: rgba(255, 255, 255, .1); transform: translateY(-2px); }
.tt-solid-btn { background: #fff; color: #000; }
.tt-solid-btn:hover { background: var(--bead-ochre); transform: translateY(-2px); }
.tt-footer { margin-top: 96px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
.tt-footer p { margin: 0; font-size: 12px; color: rgba(255, 255, 255, .45); }
.tt-footer nav { display: flex; gap: 22px; }
.tt-footer a { font-size: 12px; color: rgba(255, 255, 255, .45); text-decoration: none; }
.tt-footer a:hover { color: rgba(255, 255, 255, .8); }
@keyframes tt-drift { from { transform: scale(1.05) translateX(-1.5%); } to { transform: scale(1.12) translateX(1.5%); } }
@media (prefers-reduced-motion: reduce) { .tt-cta-media img { animation: none; } }
@media (max-width: 600px) { .tt-cta { padding: 90px 18px 24px; } .tt-footer { justify-content: center; text-align: center; } }
