/* =====================================================================
   malikbiyi.com — visual system
   Implements 07-web design "Malikbiyi Hub Redesign".

   Dark technical ground, one lime accent, one violet accent, mono
   typography for everything structural and a light sans for prose.
   Nothing here is content: every string on the page comes from
   js/site.config.js and is written in by js/hub.js.
   ===================================================================== */

:root{
  --bg:         #080c12;
  --panel:      rgba(13,21,32,.8);
  --border:     #1a2d45;
  --text:       #c8dde8;
  --white:      #e8f4ff;
  --muted:      #4a6070;   /* 9-11px uppercase mono metadata ONLY - fails AA at body sizes */
  --muted-2:    #7b93a6;   /* body-weight secondary text - clears 4.5:1 on --bg and --panel */
  --dim:        #3d5266;
  --accent:     #c8f31d;
  --accent-hi:  #e6ff6a;
  --accent-ink: #0a0a0f;
  --violet:     #7b2dff;
  --live:       #f43f5e;
  --mono: 'SF Mono','Roboto Mono',Menlo,Consolas,monospace;
  --sans: -apple-system,BlinkMacSystemFont,'Segoe UI',Inter,sans-serif;
  --pad: clamp(20px,4vw,56px);
  --max: 1240px;
}

*{ box-sizing:border-box }
[hidden]{ display:none !important }
html,body{ margin:0; padding:0; background:var(--bg) }
html{ scroll-behavior:smooth }
body{
  position:relative;
  color:var(--text);
  font-family:var(--sans);
  font-weight:300;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
a{ color:var(--accent); text-decoration:none }
a:hover{ color:var(--accent-hi) }
::selection{ background:rgba(200,243,29,.25) }

/* --- motion ---------------------------------------------------------- */
@keyframes drift{
  0%  { transform:translate3d(0,0,0) scale(1) }
  50% { transform:translate3d(3vw,-2vh,0) scale(1.08) }
  100%{ transform:translate3d(0,0,0) scale(1) }
}
@keyframes drift2{
  0%  { transform:translate3d(0,0,0) scale(1.05) }
  50% { transform:translate3d(-4vw,3vh,0) scale(1) }
  100%{ transform:translate3d(0,0,0) scale(1.05) }
}
@keyframes pulse{
  70% { box-shadow:0 0 0 10px rgba(244,63,94,0) }
  100%{ box-shadow:0 0 0 0  rgba(244,63,94,0) }
}
@keyframes sweep{
  0%  { transform:translateY(-100%) }
  100%{ transform:translateY(400%) }
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{ animation:none !important; transition:none !important }
  html{ scroll-behavior:auto }
}

/* --- ambient background ---------------------------------------------- */
.ambient{ position:fixed; inset:0; z-index:0; pointer-events:none; overflow:hidden }
.blob{ position:absolute; border-radius:50%; filter:blur(30px) }
.blob-lime{
  width:70vw; height:70vw; left:-14vw; top:-24vw;
  background:radial-gradient(circle,rgba(200,243,29,.16),transparent 62%);
  animation:drift 26s ease-in-out infinite;
}
.blob-violet{
  width:62vw; height:62vw; right:-16vw; top:2vw;
  background:radial-gradient(circle,rgba(123,45,255,.22),transparent 62%);
  animation:drift2 34s ease-in-out infinite;
}
.grid{
  position:absolute; inset:0; opacity:.28;
  background:
    linear-gradient(var(--border) 1px,transparent 1px) 0 0/100% 88px,
    linear-gradient(90deg,var(--border) 1px,transparent 1px) 0 0/88px 100%;
  -webkit-mask-image:radial-gradient(120vw 90vh at 50% 0%,#000,transparent 78%);
          mask-image:radial-gradient(120vw 90vh at 50% 0%,#000,transparent 78%);
}
.scan{
  position:absolute; inset:0;
  background:repeating-linear-gradient(0deg,rgba(200,243,29,.022) 0 1px,transparent 1px 3px);
}
.cursor-glow{
  position:fixed; left:0; top:0; width:520px; height:520px; margin:-260px 0 0 -260px;
  border-radius:50%; z-index:1; pointer-events:none; opacity:0;
  transition:opacity .5s ease;
  background:radial-gradient(circle,rgba(200,243,29,.09),transparent 60%);
}

/* --- header ----------------------------------------------------------- */
/* flex-wrap is not in the prototype, and without it the header breaks at phone
   width: the wordmark carries white-space:nowrap, so when the brand link
   shrinks below its text the wordmark paints straight over the nav. Verified
   against the prototype at 375px — it does the same. Wrapping costs nothing
   above ~700px (the row still fits on one line, so desktop is untouched) and
   drops the nav to a second line on a phone. */
.topbar{
  position:sticky; top:0; z-index:60;
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
  gap:12px 24px;
  padding:20px var(--pad);
  border-bottom:1px solid rgba(26,45,69,0);
  -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px);
  transition:padding .3s ease,border-color .3s ease,background .3s ease;
}
.topbar.stuck{
  padding:12px var(--pad);
  border-bottom-color:var(--border);
  background:rgba(8,12,18,.82);
}
.brand{ display:flex; align-items:center; gap:13px; min-width:0 }
.dot{ width:9px; height:9px; border-radius:50%; flex:none; background:var(--muted) }
.dot.live{ background:var(--live); box-shadow:0 0 0 0 rgba(244,63,94,.6); animation:pulse 2s infinite }
.logo{
  font-family:var(--mono); font-weight:700; letter-spacing:.3em;
  color:var(--white); font-size:16px; white-space:nowrap;
}
.logo b{ color:var(--accent); font-weight:700 }

.nav{
  display:flex; flex-wrap:wrap; align-items:center; gap:clamp(14px,2.4vw,32px);
  font-family:var(--mono); font-size:10.5px;
  text-transform:uppercase; letter-spacing:.2em;
}
.nav a{ color:var(--muted-2); transition:color .2s ease }
.nav a:hover{ color:var(--white) }
.nav-cta{
  display:none; align-items:center; gap:8px;
  padding:9px 15px; border:1px solid var(--border); border-radius:3px;
  color:var(--accent) !important;
  transition:background .2s ease,border-color .2s ease;
}
.nav-cta:hover{ border-color:var(--accent); background:rgba(200,243,29,.1) }
.topbar.stuck .nav-cta{ display:inline-flex }

main{ position:relative; z-index:2 }

/* --- hero ------------------------------------------------------------- */
.hero{
  max-width:var(--max); margin:0 auto;
  padding:clamp(48px,9vh,110px) var(--pad) clamp(60px,10vh,120px);
}
.hero-row{ display:flex; flex-wrap:wrap; gap:clamp(28px,5vw,72px); align-items:flex-end }
.hero-copy{ flex:1.55 1 440px; min-width:0 }

.eyebrow{
  display:flex; align-items:center; gap:12px;
  margin:0 0 clamp(20px,4vh,34px);
  font-family:var(--mono); font-size:11px;
  text-transform:uppercase; letter-spacing:.24em; color:var(--muted);
  text-wrap:balance;
}
.rule{ width:34px; height:1px; background:var(--accent); display:inline-block; flex:none }

.headline{
  margin:0; font-family:var(--mono); font-weight:700;
  font-size:clamp(52px,11.5vw,158px); line-height:.9; letter-spacing:-.045em;
  color:var(--white);
}
.accent{ color:var(--accent) }
.accent-violet{ color:var(--violet) }

.kicker{
  margin:clamp(22px,4vh,34px) 0 0;
  font-family:var(--mono); font-size:clamp(11px,1.4vw,13px);
  text-transform:uppercase; letter-spacing:.22em; color:var(--text);
}
.kicker .sep{ color:var(--muted) }

.lede{
  margin:22px 0 0; font-size:clamp(16px,1.7vw,19px); line-height:1.65;
  color:var(--text); max-width:46ch; text-wrap:pretty;
}

.btn-row{ display:flex; flex-wrap:wrap; gap:12px; margin-top:clamp(28px,5vh,42px) }
.btn{
  display:inline-flex; align-items:center; gap:11px;
  font-family:var(--mono); font-size:12.5px; font-weight:700;
  text-transform:uppercase; letter-spacing:.16em;
  padding:16px 26px; border-radius:3px;
}
.btn-solid{
  background:var(--accent); color:var(--accent-ink); border:1px solid var(--accent);
  transition:transform .16s ease,filter .16s ease,box-shadow .16s ease;
}
.btn-solid:hover{
  color:var(--accent-ink); filter:brightness(1.08);
  transform:translateY(-2px); box-shadow:0 12px 34px rgba(200,243,29,.22);
}
.btn-ghost{
  background:transparent; color:var(--text); border:1px solid var(--border);
  transition:border-color .16s ease,color .16s ease,transform .16s ease;
}
.btn-ghost:hover{ border-color:var(--accent); color:var(--white); transform:translateY(-2px) }

/* --- stream status panel ---------------------------------------------- */
.status{
  flex:1 1 300px; min-width:0; position:relative; overflow:hidden;
  background:linear-gradient(160deg,rgba(13,21,32,.94),rgba(8,12,18,.86));
  border:1px solid var(--border); border-radius:3px;
  padding:clamp(22px,2.6vw,30px);
}
.sweep{
  position:absolute; left:0; right:0; top:0; height:22%;
  background:linear-gradient(180deg,rgba(200,243,29,.12),transparent);
  animation:sweep 7s linear infinite;
}
.status-top{
  margin:0 0 20px; display:flex; align-items:center; justify-content:space-between; gap:12px;
  font-family:var(--mono); font-size:10px; text-transform:uppercase;
  letter-spacing:.22em; color:var(--muted);
}
.badge{
  font-family:var(--mono); font-size:9px; text-transform:uppercase; letter-spacing:.2em;
  padding:5px 9px; border-radius:3px; color:var(--muted); border:1px solid var(--border);
}
.badge.live{ color:var(--white); background:var(--live); border-color:var(--live) }
.status-head{
  margin:0; font-family:var(--mono); font-weight:700;
  font-size:clamp(24px,2.9vw,34px); line-height:1.08; letter-spacing:-.02em;
  color:var(--white);
}
.status-head #statusHeadB{ color:var(--accent) }
.status-head.is-live #statusHeadB{ color:var(--live) }
.status-now{ margin:16px 0 0; font-size:14.5px; line-height:1.6; color:var(--text) }
.status-dl{
  margin:24px 0 0; padding:20px 0 0; border-top:1px solid var(--border);
  display:grid; gap:16px; font-family:var(--mono);
}
.status-dl dt{
  font-size:9.5px; text-transform:uppercase; letter-spacing:.22em;
  color:var(--muted); margin-bottom:6px;
}
.status-dl dd{ margin:0; font-size:14px; color:var(--white); font-variant-numeric:tabular-nums }
.status-dl dd.accent{ color:var(--accent) }
.cta{
  margin-top:24px; display:flex; align-items:center; justify-content:center; gap:10px;
  font-family:var(--mono); font-size:12px; font-weight:700;
  text-transform:uppercase; letter-spacing:.16em;
  padding:15px 20px; border-radius:3px;
  background:var(--accent); color:var(--accent-ink); border:1px solid var(--accent);
  transition:transform .16s ease,filter .16s ease;
}
.cta:hover{ color:var(--accent-ink); filter:brightness(1.08); transform:translateY(-2px) }
.cta.live{ background:var(--live); color:var(--white); border-color:var(--live) }
.cta.live:hover{ color:var(--white) }
.tzline{
  margin:14px 0 0; font-family:var(--mono); font-size:10px;
  letter-spacing:.1em; color:var(--muted);
}

/* --- section chrome --------------------------------------------------- */
.band{ max-width:var(--max); margin:0 auto; padding:clamp(50px,8vh,96px) var(--pad) }
.band-tight{ padding:0 var(--pad) clamp(50px,8vh,90px) }
.band-violet{
  position:relative; max-width:none; padding:clamp(50px,8vh,96px) 0;
  border-top:1px solid var(--border); border-bottom:1px solid var(--border);
  background:linear-gradient(180deg,rgba(123,45,255,.07),transparent 60%);
}
.band-inner{ max-width:var(--max); margin:0 auto; padding:0 var(--pad) }

.sec-head{
  display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:22px;
}
.sec-head.bordered{ padding-bottom:26px; border-bottom:1px solid var(--border) }
.sec-index{
  margin:0 0 14px; font-family:var(--mono); font-size:10px;
  text-transform:uppercase; letter-spacing:.24em; color:var(--muted);
}
.sec-head h2{
  margin:0; font-family:var(--mono); font-weight:700;
  font-size:clamp(30px,5vw,62px); line-height:.95; letter-spacing:-.035em;
  color:var(--white);
}
/* The gaming header is the one section head with a fluid gutter — 01 and 03
   sit at a flat 22px. At 1280px that is a 29px difference in the heading
   column, so it is not interchangeable. */
#gaming .sec-head{ gap:clamp(24px,4vw,60px) }
#gaming .sec-head>div{ flex:1 1 320px; min-width:0 }
.sec-blurb{
  flex:1.15 1 300px; min-width:0; margin:0;
  font-size:16px; line-height:1.65; color:var(--text); max-width:44ch; text-wrap:pretty;
}
.sec-note{
  margin:0; font-family:var(--mono); font-size:10.5px; letter-spacing:.12em;
  color:var(--muted-2); max-width:34ch; line-height:1.9;
}
.foot-note{
  margin:18px 0 0; font-family:var(--mono); font-size:10.5px;
  letter-spacing:.12em; color:var(--muted-2);
}

/* --- 01 feed ---------------------------------------------------------- */
.filters{ display:flex; flex-wrap:wrap; gap:8px }
.filters button{
  font-family:var(--mono); font-size:10.5px; font-weight:700;
  text-transform:uppercase; letter-spacing:.18em;
  padding:11px 18px; border-radius:3px; cursor:pointer;
  background:transparent; color:var(--muted); border:1px solid var(--border);
  transition:all .2s ease;
}
.filters button:hover{ color:var(--white); border-color:var(--muted) }
.filters button[aria-pressed="true"]{
  background:var(--accent); color:var(--accent-ink); border-color:var(--accent);
}

.cards{
  display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,290px),1fr));
  gap:14px; margin-top:26px;
}
.card{
  display:flex; flex-direction:column;
  background:var(--panel); border:1px solid var(--border); border-radius:3px;
  overflow:hidden;
  transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease;
}
.card:hover{ transform:translateY(-4px); border-color:var(--accent); box-shadow:0 16px 40px rgba(0,0,0,.5) }
.card-thumb{
  aspect-ratio:16/10; border-bottom:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  background:repeating-linear-gradient(135deg,#0b131d 0 9px,#0e1826 9px 18px);
}
.card-thumb img{ width:100%; height:100%; object-fit:cover; display:block }
.card-thumb span{
  font-family:var(--mono); font-size:10px; text-transform:uppercase;
  letter-spacing:.24em; color:var(--dim);
}
.card-body{ padding:16px 17px 18px; display:flex; flex-direction:column; gap:10px; flex:1 }
.card-kind{
  font-family:var(--mono); font-size:9.5px; text-transform:uppercase;
  letter-spacing:.2em; color:var(--accent);
}
.card-title{ font-size:15.5px; line-height:1.4; color:var(--white) }
.card-desc{ font-size:13px; line-height:1.55; color:var(--muted-2) }
.card-meta{
  margin-top:auto; padding-top:6px; display:flex; gap:12px;
  font-family:var(--mono); font-size:9.5px; text-transform:uppercase;
  letter-spacing:.16em; color:var(--muted);
}
.empty{
  margin:26px 0 0; border:1px dashed var(--border); border-radius:3px;
  padding:42px 24px; text-align:center;
  font-family:var(--mono); font-size:12.5px; line-height:1.8; color:var(--muted-2);
}

/* --- 02 in rotation --------------------------------------------------- */
/* Two grids on purpose: one auto-fit grid goes 3-up around 920px and orphans
   the second weekly slot on its own row, splitting the schedule pair. */
.rotation{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));
  gap:14px;
}
.rotation-games{ margin-top:clamp(28px,4vh,44px) }
.rotation-slots{ margin-top:14px }
/* Game and slot tiles are NOT the same box. The game tile is block flow, so
   the tag's `margin-bottom:auto` does nothing and the name's 34px top margin
   sets the gap. The slot tile is a flex column, where that auto margin does
   push the name and time to the bottom. Collapsing them into one flex rule
   changes both tiles' internal spacing. */
.tile{
  background:var(--panel); border:1px solid var(--border); border-radius:3px;
  padding:22px;
}
.tile-game{
  position:relative; overflow:hidden;
  transition:border-color .22s ease,transform .22s ease;
}
.tile-game:hover{ border-color:var(--violet); transform:translateY(-3px) }
.tile-slot{
  display:flex; flex-direction:column;
  border-left:2px solid var(--accent);
}
.tile-tag{
  margin:0 0 auto; font-family:var(--mono); font-size:9.5px;
  text-transform:uppercase; letter-spacing:.2em; color:var(--violet);
}
.tile-slot .tile-tag{ color:var(--muted) }
.tile-name{
  margin:34px 0 0; font-family:var(--mono); font-weight:700; font-size:21px;
  letter-spacing:-.01em; color:var(--white);
}
.tile-note{ margin:8px 0 0; font-size:13.5px; line-height:1.55; color:var(--muted-2) }
.tile-time{
  margin:8px 0 0; font-family:var(--mono); font-size:13.5px;
  color:var(--accent); font-variant-numeric:tabular-nums;
}

/* --- 03 ecosystem ----------------------------------------------------- */
.groups{ margin-top:clamp(28px,4vh,44px); display:grid; gap:14px }
.group{
  display:flex; flex-wrap:wrap; gap:clamp(16px,3vw,40px); align-items:flex-start;
  padding-top:20px; border-top:1px solid var(--border);
}
.group-key{ flex:0 1 150px; max-width:150px; min-width:0 }
.group-key p:first-child{
  margin:0; font-family:var(--mono); font-weight:700; font-size:13px;
  text-transform:uppercase; letter-spacing:.24em; color:var(--white);
}
.group-key p+p{ margin:8px 0 0; font-size:13px; line-height:1.5; color:var(--muted-2) }
.group-items{
  flex:1 1 260px; min-width:0; display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr)); gap:12px;
}
.plat{
  position:relative; display:flex; flex-direction:column; gap:9px;
  background:var(--panel); border:1px solid var(--border); border-radius:3px; padding:20px;
  transition:background .22s ease,border-color .22s ease,transform .22s ease;
}
/* Hover is an affordance — only the card that actually goes somewhere
   gets it. Unverified cards render as a div, so this never matches. */
a.plat:hover{ border-color:var(--accent); background:rgba(200,243,29,.07); transform:translateY(-3px) }
div.plat{ cursor:default }
.plat-top{ display:flex; align-items:baseline; justify-content:space-between; gap:12px }
.plat-name{
  font-family:var(--mono); font-weight:700; font-size:15px;
  letter-spacing:.04em; color:var(--white);
}
.plat-flag{
  font-family:var(--mono); font-size:8.5px; text-transform:uppercase;
  letter-spacing:.18em; color:var(--muted); white-space:nowrap;
}
.plat-handle{ font-family:var(--mono); font-size:12.5px; color:var(--accent) }
.plat-note{ font-size:13px; line-height:1.55; color:var(--muted-2) }

/* --- 04 work with me --------------------------------------------------- */
.work{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:24px;
  background:linear-gradient(120deg,rgba(200,243,29,.09),rgba(123,45,255,.09));
  border:1px solid var(--border); border-radius:3px;
  padding:clamp(26px,4vw,42px);
}
#work .sec-index{ margin-bottom:12px }
.work h2{
  margin:0; font-family:var(--mono); font-weight:700;
  font-size:clamp(22px,3.2vw,36px); line-height:1.1; letter-spacing:-.025em;
  color:var(--white);
}

/* --- footer ------------------------------------------------------------ */
footer{
  position:relative; z-index:2; border-top:1px solid var(--border);
  padding:26px var(--pad) 44px;
  display:flex; flex-wrap:wrap; gap:12px 28px; justify-content:space-between;
  font-family:var(--mono); font-size:11px; letter-spacing:.1em; color:var(--muted-2);
}
.motto .arrow{ color:var(--accent) }

/* --- focus ------------------------------------------------------------
   Not in the prototype; the handoff requires it. One rule, every control. */
a:focus-visible,
button:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:2px;
  border-radius:3px;
}

/* --- reveal-on-scroll (JS adds .reveal-ready, then .in) ---------------- */
[data-reveal].reveal-ready{
  opacity:0; transform:translateY(26px);
  transition:opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
[data-reveal].reveal-ready.in{ opacity:1; transform:none }

/* --- touch --------------------------------------------------------------
   11px padding puts the pills at 41px; a coarse pointer needs 44px. Nav
   links are NOT hidden on narrow screens — they wrap. The layout is
   flex-wrap and auto-fit all the way down, so there are no other queries. */
@media (hover:none){
  /* The handoff prescribes 13px 18px to clear 44px, but that arithmetic
     assumes a taller line box than a 10.5px mono label actually produces —
     measured, it lands at 40px. Pin the height instead of guessing at
     padding, so the target holds whatever the font metrics do. */
  .filters button{
    padding:13px 18px;
    min-height:44px;
    display:inline-flex;
    align-items:center;
  }
}
