/* Ghazayel theme — homepage-only styles, loaded alongside theme.css v2.4.0 */

body.home{
  --surface-2:#242830;
  --border-hi:rgba(255,255,255,.16);
  --verify-true:#2fd480;
  --verify-false:#ff5468;
  --verify-mixed:#ffb020;
  --serif:'Instrument Serif', Georgia, serif;
  --radius:14px;
  --maxw:1180px;

  overflow-x:hidden;
}

body.home::before{
  content:"";
  position:fixed; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size:42px 42px;
  pointer-events:none;
  z-index:0;
  mask-image:radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 90%);
}

body.home section, body.home header, body.home footer{position:relative; z-index:1;}
body.home :focus-visible{outline:2px solid var(--accent-2); outline-offset:3px;}

body.home .eyebrow{
  font-family:var(--mono); font-size:.7rem; letter-spacing:.14em; text-transform:uppercase;
  color:var(--muted); display:inline-flex; align-items:center; gap:.5rem;
}
body.home .live-dot{
  width:7px; height:7px; border-radius:50%; background:var(--verify-true);
  box-shadow:0 0 0 0 rgba(47,212,128,.6);
  animation:home-pulse 2s infinite;
  flex:none;
}
@keyframes home-pulse{
  0%{box-shadow:0 0 0 0 rgba(47,212,128,.55);}
  70%{box-shadow:0 0 0 7px rgba(47,212,128,0);}
  100%{box-shadow:0 0 0 0 rgba(47,212,128,0);}
}

/* ============ NAV (homepage variant: sticky + overlay) ============ */
body.home nav{
  position:sticky; top:0; z-index:50;
  display:flex; align-items:center; justify-content:space-between;
  padding:1.1rem 1.5rem;
  border-bottom:1px solid var(--border);
}
body.home nav::before{
  content:""; position:absolute; inset:0; z-index:-1;
  background:rgba(20,23,29,.75);
  backdrop-filter:blur(10px);
}
body.home .nav-links{display:flex; gap:1.75rem; list-style:none; font-size:.85rem;}
body.home .nav-links a{color:var(--muted); transition:color .2s;}
body.home .nav-links a:hover{color:var(--text);}
body.home .nav-mobile-toggle{display:none; background:none; border:0; color:var(--text); font-size:1.4rem;}
body.home .build-tag{
  position:fixed; bottom:.6rem; right:.6rem; z-index:40;
  font-family:var(--mono); font-size:.62rem; letter-spacing:.04em;
  color:rgba(255,255,255,.25);
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.06);
  border-radius:5px; padding:.2rem .45rem;
  pointer-events:none; user-select:none;
}

@media (max-width:820px){
  body.home .nav-overlay{
    position:fixed; top:64px; left:0; right:0; bottom:0; z-index:60;
    background-color:#14171d;
    transform:translateY(-12px);
    visibility:hidden; pointer-events:none;
    transition:transform .25s ease, visibility .25s;
  }
  body.home .nav-overlay.open{transform:translateY(0); visibility:visible; pointer-events:auto;}
  body.home .nav-overlay .nav-links{
    flex-direction:column; padding:2rem 1.5rem; gap:1.25rem; font-size:1.1rem;
  }
  body.home .nav-mobile-toggle{display:block;}
}
@media (min-width:821px){
  body.home .nav-overlay{display:contents;}
}

/* ============ HERO ============ */
body.home .hero{
  padding:4.5rem 1.5rem 3rem;
  max-width:var(--maxw); margin:0 auto;
  display:grid; grid-template-columns:1fr auto; gap:3rem; align-items:center;
}
body.home .hero-photo-wrap{
  width:220px; height:220px; border-radius:50%; position:relative;
  justify-self:center;
}
body.home .hero-photo-wrap::before{
  content:""; position:absolute; inset:-10px; border-radius:50%;
  background:conic-gradient(from 0deg, var(--accent), var(--verify-true), var(--accent-2), var(--accent));
  opacity:.5; filter:blur(14px);
}
body.home .hero-photo-wrap img{
  position:relative; width:100%; height:100%; border-radius:50%; object-fit:cover;
  border:3px solid var(--bg);
}
body.home .hero-scan{
  position:absolute; inset:-10px; border-radius:50%; overflow:hidden; pointer-events:none;
}
body.home .hero-scan::after{
  content:""; position:absolute; left:0; right:0; height:34%;
  background:linear-gradient(to bottom, transparent, rgba(47,212,128,.35), transparent);
  animation:home-scan 3.2s linear infinite;
}
@keyframes home-scan{ 0%{top:-40%;} 100%{top:100%;} }

body.home .hero-eyebrow{margin-bottom:1.1rem;}
body.home .hero-name-block{display:flex; align-items:baseline; gap:.8rem; flex-wrap:wrap; margin-bottom:.35rem;}
body.home h1.hero-name{font-size:clamp(2.1rem, 5vw, 3.4rem); font-weight:800; letter-spacing:-.02em;}
body.home .hero-name-ar{font-size:1.3rem; color:var(--muted); font-weight:500;}
body.home .hero-role-line{font-family:var(--mono); font-size:.85rem; color:var(--accent-2); margin-bottom:1.1rem;}
body.home .hero-role-line span.org{color:var(--muted);}
body.home .hero-bio{
  font-size:1.05rem; color:#c3c8d1; max-width:52ch; margin-bottom:1.6rem;
}
body.home .hero-bio strong{color:var(--text); font-family:var(--serif); font-style:italic; font-weight:400; font-size:1.15em;}

body.home .hero-cta{display:flex; gap:.9rem; flex-wrap:wrap; margin-bottom:2rem;}
body.home .btn{
  font-family:var(--mono); font-size:.8rem; letter-spacing:.03em;
  padding:.75rem 1.4rem; border-radius:8px; display:inline-flex; align-items:center; gap:.5rem;
  transition:transform .15s, box-shadow .15s, background .15s;
}
body.home .btn-solid{background:var(--accent); color:#fff;}
body.home .btn-solid:hover{transform:translateY(-2px); box-shadow:0 8px 24px rgba(232,68,10,.35);}
body.home .btn-ghost{border:1px solid var(--border-hi); color:var(--text);}
body.home .btn-ghost:hover{border-color:var(--accent-2); transform:translateY(-2px);}

body.home .hero-stats{display:flex; gap:1.8rem; flex-wrap:wrap;}
body.home .hstat .n{display:block; font-family:var(--mono); font-size:1.3rem; color:var(--text); font-weight:600;}
body.home .hstat .l{display:block; font-size:.7rem; color:var(--muted); text-transform:uppercase; letter-spacing:.06em; margin-top:.15rem;}

@media (max-width:820px){
  body.home .hero{grid-template-columns:1fr; text-align:center;}
  body.home .hero-name-block, body.home .hero-cta, body.home .hero-stats{justify-content:center;}
  body.home .hero-bio{margin-left:auto; margin-right:auto;}
}

/* ============ VERDICT TICKER (signature element) ============ */
body.home .ticker{
  border-top:1px solid var(--border); border-bottom:1px solid var(--border);
  background:var(--surface);
  overflow:hidden; white-space:nowrap;
  padding:.8rem 0;
}
body.home .ticker-track{display:inline-flex; gap:2.5rem; animation:home-scroll-left 95s linear infinite;}
body.home .ticker:hover .ticker-track{animation-play-state:paused;}
@keyframes home-scroll-left{ from{transform:translateX(0);} to{transform:translateX(-50%);} }
body.home .verdict{font-family:var(--mono); font-size:.78rem; color:var(--muted); display:inline-flex; align-items:center; gap:.6rem;}
body.home .tag{
  font-size:.65rem; font-weight:700; letter-spacing:.05em; padding:.15rem .5rem; border-radius:4px;
}
body.home .tag.true{background:rgba(47,212,128,.15); color:var(--verify-true);}
body.home .tag.false{background:rgba(255,84,104,.15); color:var(--verify-false);}
body.home .tag.mixed{background:rgba(255,176,32,.15); color:var(--verify-mixed);}

/* ============ SECTION HEADERS ============ */
body.home section{padding:5rem 1.5rem;}
body.home .sh{display:flex; align-items:center; gap:1rem; max-width:var(--maxw); margin:0 auto 2.5rem;}
body.home .sh-n{font-family:var(--mono); font-size:.75rem; color:var(--accent); border:1px solid rgba(232,68,10,.35); border-radius:5px; padding:.2rem .5rem;}
body.home .sh-t{font-size:clamp(1.5rem, 3vw, 2rem); font-weight:800; letter-spacing:-.01em;}
body.home .sh-line{flex:1; height:1px; background:linear-gradient(90deg, var(--border-hi), transparent);}

/* ============ EXPERTISE ============ */
body.home .exp-grid{max-width:var(--maxw); margin:0 auto; display:grid; grid-template-columns:repeat(3,1fr); gap:1.1rem;}
body.home .exp-c{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:1.6rem; transition:border-color .2s, transform .2s;
}
body.home .exp-c:hover{border-color:var(--accent); transform:translateY(-3px);}
body.home .exp-icon{
  width:42px; height:42px; border-radius:11px;
  background:rgba(232,68,10,.1); border:1px solid rgba(232,68,10,.2);
  display:flex; align-items:center; justify-content:center;
  color:var(--accent-2); margin-bottom:.9rem;
}
body.home .exp-icon svg{width:21px; height:21px;}
body.home .exp-c .ec-head{display:flex; align-items:center; justify-content:space-between;}
body.home .exp-c .ec-num{font-family:var(--mono); font-size:.7rem; color:var(--muted);}
body.home .exp-c h3{font-size:1.05rem; margin:.6rem 0 .5rem; font-weight:700;}
body.home .exp-c p{font-size:.88rem; color:var(--muted); line-height:1.55;}
@media (max-width:900px){ body.home .exp-grid{grid-template-columns:1fr 1fr;} }
@media (max-width:600px){ body.home .exp-grid{grid-template-columns:1fr;} }

/* ============ WORK GRID (Interviews / Press / Trainings / Blog cards) ============ */
body.home .work-grid{max-width:var(--maxw); margin:0 auto; display:grid; grid-template-columns:repeat(3,1fr); gap:1.1rem;}
body.home .wk-card{background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; transition:transform .2s, border-color .2s; display:block;}
body.home .wk-card:hover{transform:translateY(-3px); border-color:var(--accent);}
body.home .wk-card img{width:100%; height:160px; object-fit:cover;}
body.home .wk-body{padding:1rem 1.1rem;}
body.home .wk-cat{font-family:var(--mono); font-size:.65rem; color:var(--accent-2); text-transform:uppercase; letter-spacing:.05em;}
body.home .wk-body h3{font-size:.95rem; margin:.5rem 0 .5rem; line-height:1.4; color:var(--text);}
body.home .wk-body p{font-size:.82rem; color:var(--muted); line-height:1.5;}
body.home .wk-date{font-family:var(--mono); font-size:.68rem; color:var(--muted); margin-top:.6rem; display:block;}
body.home [dir="rtl"], body.home [lang="ar"]{direction:rtl; text-align:right; font-family:var(--display);}
@media (max-width:900px){ body.home .work-grid{grid-template-columns:1fr 1fr;} }
@media (max-width:600px){ body.home .work-grid{grid-template-columns:1fr;} }

/* ============ BOOK ============ */
body.home .book-inner{max-width:var(--maxw); margin:0 auto; display:grid; grid-template-columns:280px 1fr; gap:3rem; align-items:center;}
body.home .book-cover img{border-radius:10px; border:1px solid var(--border); box-shadow:0 20px 50px rgba(0,0,0,.5);}
body.home .bk-btns{display:flex; flex-direction:column; gap:.7rem; margin-top:1.2rem;}
body.home .bk-pub{font-family:var(--mono); font-size:.72rem; color:var(--muted); text-transform:uppercase; letter-spacing:.05em; margin-bottom:.6rem;}
body.home .bk-title{font-size:clamp(1.5rem,3vw,2.1rem); font-weight:800; margin-bottom:1rem; line-height:1.2;}
body.home .bk-desc{color:#c3c8d1; font-size:.95rem; line-height:1.65; max-width:60ch; margin-bottom:1.3rem;}
body.home .bk-quote{
  font-family:var(--serif); font-style:italic; font-size:1.25rem; color:var(--accent-2);
  border-left:2px solid var(--accent); padding-left:1.1rem; line-height:1.5;
}
@media (max-width:820px){ body.home .book-inner{grid-template-columns:1fr; text-align:center;} body.home .bk-quote{border-left:0; border-top:2px solid var(--accent); padding-left:0; padding-top:1rem;} body.home .book-cover{max-width:220px; margin:0 auto;} }

/* ============ EXPERIENCE ============ */
body.home .exp-layout{max-width:var(--maxw); margin:0 auto; display:grid; grid-template-columns:260px 1fr; gap:3rem;}
body.home .exp-intro{color:var(--muted); font-size:.9rem; line-height:1.6; margin-bottom:1.3rem;}
body.home .org-list{display:flex; flex-wrap:wrap; gap:.5rem; margin-bottom:1.5rem;}
body.home .org-item{font-family:var(--mono); font-size:.68rem; border:1px solid var(--border); border-radius:6px; padding:.35rem .6rem; color:var(--muted);}
body.home .xitem{display:grid; grid-template-columns:150px 1fr; gap:1.2rem; padding:1.3rem 0; border-bottom:1px solid var(--border);}
body.home .xitem:last-child{border-bottom:0;}
body.home .xdate{font-family:var(--mono); font-size:.72rem; color:var(--muted); line-height:1.5;}
body.home .xnow{color:var(--verify-true); font-weight:600;}
body.home .xorg{font-size:.72rem; color:var(--accent-2); font-family:var(--mono); text-transform:uppercase; letter-spacing:.04em;}
body.home .xrole{font-size:1.02rem; font-weight:700; margin:.3rem 0 .4rem; color:var(--text);}
body.home .xbody{font-size:.85rem; color:var(--muted); line-height:1.55;}
@media (max-width:820px){ body.home .exp-layout{grid-template-columns:1fr;} body.home .xitem{grid-template-columns:1fr; gap:.4rem;} }

/* ============ FOOTER (homepage variant: rich, multi-column) ============ */
body.home footer{
  border-top:1px solid var(--border); padding:3.5rem 1.5rem 2.5rem;
  display:flex; flex-wrap:wrap; gap:2rem; align-items:flex-end;
  max-width:var(--maxw); margin:0 auto;
  text-align:left;
  font-family:var(--display);
  color:var(--text);
}
body.home footer .ft-name{font-size:1.4rem; font-weight:800; font-family:var(--display);}
body.home footer .ft-sub{color:var(--muted); font-size:.85rem; margin-top:.3rem; font-family:var(--display);}
body.home footer .ft-col{display:flex; flex-direction:column; gap:.5rem; font-size:.85rem; margin-left:auto; text-align:right; font-family:var(--display);}
body.home footer .ft-col a{color:var(--muted); transition:color .2s;}
body.home footer .ft-col a:hover{color:var(--accent-2);}
body.home footer .ft-bottom{
  width:100%; font-family:var(--mono); font-size:.72rem; color:var(--muted);
  padding-top:1.5rem; margin-top:1.5rem; border-top:1px solid var(--border);
  text-align:left;
}
@media (max-width:600px){
  body.home footer{flex-direction:column; align-items:flex-start;}
  body.home footer .ft-col{margin-left:0; text-align:left;}
}

/* ============================================================
   HOMEPAGE POLISH PASS — additions to home.css
   Append these rules to the end of home.css
   ============================================================ */

/* ---- FIX: global image reset (missing — was causing Publication
   section book cover to overflow its grid column and overlap text) ---- */
body.home img{max-width:100%; height:auto; display:block;}


/* ---- 1. "What I Do" (expertise) — remove numbers, add life ---- */

/* Numbers removed from markup; if any .ec-num remain, hide them */
body.home .ec-num{display:none;}

body.home .exp-c{
  position:relative;
  overflow:hidden;
  transition:border-color .25s, transform .25s, background .25s;
}
body.home .exp-c::before{
  content:'';
  position:absolute; inset:0;
  background:radial-gradient(circle at 85% 15%, rgba(232,68,10,.08), transparent 60%);
  opacity:0; transition:opacity .3s;
  pointer-events:none;
}
body.home .exp-c:hover::before{opacity:1;}
body.home .exp-c:hover{
  border-color:var(--accent);
  transform:translateY(-5px);
  background:rgba(255,255,255,.02);
}
body.home .exp-icon{
  transition:transform .3s, color .3s, border-color .3s;
}
body.home .exp-c:hover .exp-icon{
  transform:scale(1.08) rotate(-4deg);
  color:var(--accent-2);
  border-color:var(--accent);
}
body.home .exp-c h3{transition:color .25s;}
body.home .exp-c:hover h3{color:var(--accent-2);}


/* ---- 2. Daily Videos — full overhaul ---- */

body.home .vid-grid{
  max-width:var(--maxw);
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0, 1.1fr) minmax(0, .9fr);
  gap:1.3rem;
  align-items:stretch;
}
body.home .vid-col-side{
  display:flex;
  flex-direction:column;
  gap:1.3rem;
  min-width:0;
  width:100%;
  height:100%;
}

body.home .vid-cell{
  background:var(--surface, rgba(255,255,255,.02));
  border:1px solid var(--border);
  border-radius:12px;
  padding:1.3rem;
  display:flex;
  flex-direction:column;
  align-self:start;
  width:100%;
  box-sizing:border-box;
}
body.home .vid-col-side .vid-cell:last-child{
  flex:1;
  justify-content:center;
}
body.home .vid-cell.vid-cell-connect{
  flex-direction:row;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:.9rem;
}
body.home .vid-cell.vid-cell-connect .vid-cell-head-long{
  margin-bottom:0;
  text-align:left;
  flex:1;
  min-width:140px;
}

body.home .vid-cell-head{
  font-family:var(--mono);
  font-size:.78rem;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--muted);
  display:flex; align-items:center; gap:.5rem;
  margin-bottom:1rem;
}
/* Longer, sentence-style headings (e.g. the SEO-friendly follow heading)
   read better in normal case with a touch more line-height than the
   short uppercase mono labels above. */
body.home .vid-cell-head.vid-cell-head-long{
  text-transform:none;
  letter-spacing:normal;
  font-family:var(--display);
  font-size:.92rem;
  font-weight:600;
  color:var(--text);
  line-height:1.35;
  text-align:center;
  justify-content:center;
}

body.home .live-dot{
  width:7px; height:7px; border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 0 0 rgba(232,68,10,.6);
  animation:live-pulse 2s infinite;
}
@keyframes live-pulse{
  0%{box-shadow:0 0 0 0 rgba(232,68,10,.5);}
  70%{box-shadow:0 0 0 7px rgba(232,68,10,0);}
  100%{box-shadow:0 0 0 0 rgba(232,68,10,0);}
}

/* Latest episode — vertical embed */
body.home .vid-vertical{
  position:relative;
  width:100%;
  max-width:400px;
  margin:0 auto;
  aspect-ratio:9/16;
  border-radius:10px;
  overflow:hidden;
  background:#000;
}
body.home .vid-vertical iframe{
  position:absolute; inset:0; width:100%; height:100%; border:0;
}

/* Recent Fact Checks — 2x2 grid, stretched to fill available space */
body.home .vid-fc-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1rem;
  width:100%;
}
body.home .vid-fc-item{
  position:relative;
  display:block;
  border-radius:10px;
  overflow:hidden;
  border:1px solid var(--border);
  background:#000;
  aspect-ratio:1/1;
  transition:border-color .2s, transform .2s;
}
body.home .vid-fc-item:hover{border-color:var(--accent); transform:translateY(-3px);}
body.home .vid-fc-item img{
  position:absolute; inset:0;
  width:100%; height:100%; object-fit:cover;
  transition:transform .4s, filter .4s;
  filter:brightness(.7);
}
body.home .vid-fc-item:hover img{transform:scale(1.06); filter:brightness(.85);}
body.home .vid-fc-item .vid-fc-play{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); z-index:2;
  width:46px; height:46px; border-radius:50%;
  background:rgba(232,68,10,.92);
  display:flex; align-items:center; justify-content:center;
  transition:background .25s, transform .25s;
}
body.home .vid-fc-item:hover .vid-fc-play{background:var(--accent-2); transform:translate(-50%,-50%) scale(1.1);}
body.home .vid-fc-item .vid-fc-play svg{width:17px; height:17px; fill:#fff; margin-left:2px;}

/* Connect & Follow — compact horizontal row of icon-only chips, centered */
body.home .vid-follow-list{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:.6rem;
}
body.home .vid-follow-link{
  display:flex;
  align-items:center;
  justify-content:center;
  width:44px; height:44px;
  border-radius:10px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.02);
  transition:border-color .2s, background .2s, transform .2s;
}
body.home .vid-follow-link:hover{
  border-color:var(--accent);
  background:var(--accent);
  transform:translateY(-2px);
}
body.home .vid-follow-icon{
  display:flex; align-items:center; justify-content:center;
  color:var(--muted);
  transition:color .2s;
}
body.home .vid-follow-link:hover .vid-follow-icon{color:#fff;}
body.home .vid-follow-icon svg{width:19px; height:19px;}
body.home .vid-follow-text{
  position:absolute;
  width:1px; height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
}

/* Recent Fact Checks section hidden on mobile per request */
@media (max-width:900px){
  body.home .vid-cell.vid-cell-fc{display:none;}
  body.home .vid-grid{grid-template-columns:1fr;}
}

