/* ===== The Tribes ===== */
:root { --acc: #8b6dff; }
body { background: #08060f; color: var(--text); }

/* Cinematic backdrop: purple-duotone packed crowd */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background:
    repeating-linear-gradient(135deg, rgba(139,109,255,.025) 0 1px, transparent 1px 50px),
    linear-gradient(180deg, rgba(8,6,15,.8), rgba(8,6,15,.88) 50%, rgba(5,4,10,.97)),
    url("../assets/tribes-bg.jpg") center / cover no-repeat fixed;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 45% at 50% 8%, rgba(139,109,255,.14), transparent 60%);
}

/* Shared */
.t-kicker, .t-eyebrow { font-family: var(--sans); font-weight: 700; text-transform: uppercase; color: var(--acc); }
.t-kicker { font-size: 12px; letter-spacing: .3em; margin-bottom: 22px; }
.t-eyebrow { font-size: 11px; letter-spacing: .26em; margin-bottom: 14px; }
.t-eyebrow.center, .t-h2.center, .t-note.center { text-align: center; }
.t-h2 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 4.4vw, 54px); color: #fff; line-height: 1.02; letter-spacing: -.005em; }
.t-note { font-family: var(--sans); font-size: clamp(14px, 1.5vw, 16px); line-height: 1.6; color: #c2bcd2; max-width: 620px; }
.t-note.center { margin-left: auto; margin-right: auto; }

/* Hero */
.t-hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 110px clamp(20px, 6vw, 80px) 70px; }
.t-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(55% 42% at 50% 18%, rgba(139,109,255,.16), transparent 60%); pointer-events: none; }
.t-title { position: relative; z-index: 2; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 7vw, 104px); line-height: .95; color: #fff; letter-spacing: -.01em; text-shadow: 0 8px 50px rgba(0,0,0,.6); }
.t-sub { position: relative; z-index: 2; max-width: 640px; margin: 26px auto 0; font-family: var(--sans); font-size: clamp(15px, 1.7vw, 18px); line-height: 1.6; color: #d3cde0; }
.t-scrollcue { position: relative; z-index: 2; margin-top: 44px; font-family: var(--sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #847d96; }
.t-scrollcue span { display: inline-block; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ---- The giants (club explorer) ---- */
.giants { max-width: 1180px; margin: 0 auto; padding: clamp(60px, 9vw, 120px) clamp(20px, 5vw, 60px); }
.giants-head { max-width: 640px; margin-bottom: 44px; }
.giants-head .t-note { margin-top: 14px; }
.giants-stage { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.club-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.club-tile { position: relative; aspect-ratio: 5 / 3; border-radius: 14px; overflow: hidden; cursor: pointer; padding: 0;
  border: 1px solid rgba(255,255,255,.1); background: linear-gradient(125deg, var(--c1) 0 47%, var(--c2) 53% 100%);
  transition: transform .25s, box-shadow .25s, border-color .25s; }
.club-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(0,0,0,.62)); }
.club-tile-name { position: absolute; left: 15px; right: 12px; bottom: 12px; z-index: 2; font-family: var(--display); font-weight: 400; font-size: clamp(15px, 1.5vw, 19px); color: #fff; text-align: left; line-height: 1.04; text-shadow: 0 2px 12px rgba(0,0,0,.85); }
.club-tile:hover { transform: translateY(-3px); }
.club-tile.active { transform: translateY(-4px); border-color: transparent; box-shadow: 0 16px 40px rgba(139,109,255,.35), 0 0 0 2px var(--acc); }

.club-panel { position: sticky; top: 24px; background: linear-gradient(180deg, rgba(16,12,24,.76), rgba(9,7,14,.84)); border: 1px solid rgba(255,255,255,.09); border-radius: 20px; padding: clamp(26px, 3vw, 40px); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 30px 70px rgba(0,0,0,.5); overflow: hidden; }
.cp-colors { display: flex; gap: 6px; margin-bottom: 18px; }
.cp-colors span { width: 34px; height: 10px; border-radius: 3px; border: 1px solid rgba(255,255,255,.25); }
.cp-city { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--acc); }
.cp-name { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4vw, 50px); color: #fff; line-height: 1; margin: 8px 0 8px; }
.cp-tag { font-family: var(--serif); font-style: italic; font-size: clamp(16px, 1.9vw, 21px); color: #cdbcff; margin-bottom: 18px; }
.cp-desc { font-family: var(--sans); font-size: 15px; line-height: 1.65; color: #d8d2e2; }
.cp-love { font-family: var(--sans); font-weight: 600; font-size: 15px; color: #fff; margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: rgba(139,109,255,.12); border: 1px solid rgba(139,109,255,.28); }
.cp-note { font-family: var(--sans); font-size: 13px; color: var(--acc); margin-top: 14px; }

/* ---- Rivalries ---- */
.rivalries-section { max-width: 920px; margin: 0 auto; padding: clamp(50px, 8vw, 100px) clamp(20px, 5vw, 60px); }
.rivalries-section .t-note { margin: 12px auto 44px; }
.rivalries { display: flex; flex-direction: column; gap: 20px; }
.rivalry { border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); background: rgba(10,8,16,.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.rivalry-duel { position: relative; display: flex; height: 116px; }
.side { flex: 1; display: flex; align-items: center; padding: 0 26px; background: linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.5)), var(--c); }
.side.right { justify-content: flex-end; }
.side span { font-family: var(--display); font-weight: 400; font-size: clamp(18px, 2.3vw, 30px); color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.7); letter-spacing: .01em; }
.vs { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 24px; color: #fff; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(8,6,14,.85); border: 1px solid rgba(255,255,255,.2); }
.rivalry-body { padding: 24px 28px 26px; }
.rivalry-name { font-family: var(--display); font-weight: 400; font-size: clamp(22px, 2.6vw, 32px); color: #fff; margin-bottom: 10px; }
.rivalry-story { font-family: var(--sans); font-size: 15px; line-height: 1.62; color: #d2ccde; }
.rivalry-stat { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--acc); margin-top: 12px; }

/* ---- Payoff ---- */
.t-payoff { position: relative; text-align: center; padding: clamp(80px, 14vw, 160px) clamp(20px, 6vw, 80px); }
.t-payoff::before { content: ""; position: absolute; inset: 0; background: radial-gradient(55% 55% at 50% 50%, rgba(139,109,255,.13), transparent 65%); pointer-events: none; }
.payoff-title { position: relative; z-index: 2; font-family: var(--display); font-weight: 400; font-size: clamp(30px, 5vw, 60px); color: #fff; line-height: 1; }
.payoff-sub { position: relative; z-index: 2; max-width: 560px; margin: 22px auto 30px; font-family: var(--sans); font-size: clamp(15px, 1.7vw, 18px); line-height: 1.6; color: #d3cde0; }
.btn-primary { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; background: var(--acc); color: #0b0818; font-family: var(--sans); font-weight: 600; font-size: 14px; text-decoration: none; padding: 14px 26px; border-radius: 100px; transition: transform .2s, background .2s; }
.btn-primary span { transition: transform .2s; }
.btn-primary:hover { transform: translateY(-2px); background: #a48cff; }
.btn-primary:hover span { transform: translateX(3px); }

/* Back home */
#goat-home { position: fixed; top: 18px; left: 18px; z-index: 60; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .04em; color: #fff; text-decoration: none; padding: 8px 14px; border-radius: 100px; background: rgba(12,9,18,.55); border: 1px solid rgba(255,255,255,.14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: .85; transition: opacity .2s, border-color .2s, color .2s; }
#goat-home:hover { opacity: 1; border-color: var(--acc); color: var(--acc); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 820px) {
  .giants-stage { grid-template-columns: 1fr; }
  .club-panel { position: relative; top: 0; }
  .club-grid { grid-template-columns: repeat(2, 1fr); }
  .side span { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .t-scrollcue span { animation: none; } .reveal { opacity: 1; transform: none; transition: none; } }
