:root{
  --bg:#fffdf9;
  --bg-soft:#fff8e6;
  --bg-soft-2:#fff2ca;
  --card:#ffffff;

  --text:#1c2230;
  --muted:#677184;

  --yellow:#f4b400;
  --yellow-dark:#c78f00;
  --yellow-soft:#fff2be;

  --line:#ecdca7;
  --line-soft:#f3e8c1;

  --shadow-sm:0 10px 24px rgba(28,34,48,.05);
  --shadow-md:0 18px 42px rgba(28,34,48,.08);
  --shadow-lg:0 30px 70px rgba(28,34,48,.10);

  --radius:20px;
  --radius-lg:30px;
  --max:1180px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(900px 360px at 12% 0%, rgba(244,180,0,.08), transparent 60%),
    radial-gradient(800px 320px at 88% 4%, rgba(244,180,0,.06), transparent 60%),
    linear-gradient(180deg, #fffefb 0%, #fffdf9 100%);
}

a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.container{max-width:var(--max);margin:0 auto;padding:0 22px}

/* ===== HEADER ===== */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,253,249,.92);
  backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(236,220,167,.72);
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:16px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:240px;
}
.brand-logo{
  width:68px;
  height:68px;
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  border:1px solid rgba(199,143,0,.22);
  border-radius:20px;
  box-shadow:var(--shadow-sm);
  overflow:hidden;
}
.brand-logo img{
  width:90%;
  height:90%;
  object-fit:contain;
}
.brand-title{
  font-weight:900;
  font-size:22px;
  line-height:1.05;
  letter-spacing:-.4px;
}
.brand-sub{
  font-size:12.5px;
  color:var(--muted);
  margin-top:4px;
  line-height:1.35;
}

.nav{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.nav a{
  padding:11px 14px;
  border-radius:999px;
  font-size:14px;
  font-weight:700;
  color:#505a6d;
  transition:.18s ease;
}
.nav a:hover{
  background:#fff5d0;
  color:#222937;
}
.nav a.active{
  background:var(--yellow-soft);
  border:1px solid #f0dd98;
  color:#222937;
  box-shadow:0 8px 18px rgba(244,180,0,.10);
}

/* ===== BUTTONS ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:13px 18px;
  border-radius:14px;
  border:1px solid #e7d491;
  font-weight:800;
  font-size:14px;
  transition:.18s ease;
}
.btn:hover{transform:translateY(-1px)}
.btn-primary{
  background:linear-gradient(180deg,#ffd651 0%, var(--yellow) 100%);
  color:#2a2412;
  box-shadow:0 14px 30px rgba(244,180,0,.18);
}
.btn-secondary{
  background:#fff;
  color:#2b3240;
  border:1px solid #ebdfbb;
  box-shadow:var(--shadow-sm);
}

/* ===== SECTIONS ===== */
.section{padding:64px 0}
.section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:22px;
}
.section-title{
  margin:0;
  font-size:30px;
  letter-spacing:-.5px;
  line-height:1.1;
}
.section-note{
  margin:0;
  color:var(--muted);
  font-size:14px;
}

/* ===== HERO ===== */
.hero{
  padding:28px 0 18px;
}
.hero-banner{
  position:relative;
  border-radius:34px;
  overflow:hidden;
  min-height:320px;
  box-shadow:var(--shadow-lg);
  background:#fff4c8;
}
.hero-banner img{
  width:100%;
  height:320px;
  object-fit:cover;
  object-position:center;
}
.hero-banner-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.12) 100%),
    linear-gradient(90deg, rgba(255,249,232,.10) 0%, rgba(255,249,232,.05) 100%);
}

.hero-panel{
  margin-top:-54px;
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:1.25fr .75fr;
  gap:18px;
  align-items:start;
}
.hero-left{
  background:rgba(255,252,244,.96);
  border:1px solid rgba(236,220,167,.78);
  border-radius:30px;
  padding:30px;
  box-shadow:var(--shadow-md);
}
.hero-right{
  display:grid;
  gap:14px;
}
.hero-mini-card{
  background:rgba(255,255,255,.94);
  border:1px solid rgba(236,220,167,.78);
  border-radius:22px;
  padding:18px;
  box-shadow:var(--shadow-sm);
}
.hero-mini-card h3{
  margin:0 0 8px;
  font-size:18px;
}
.hero-mini-card p{
  margin:0;
  color:var(--muted);
  line-height:1.65;
}

.hero-badge{
  display:inline-flex;
  gap:10px;
  align-items:center;
  padding:10px 14px;
  border-radius:999px;
  background:#fff1bc;
  border:1px solid #efd877;
  color:#6b5400;
  font-weight:800;
  font-size:13px;
}
.hero-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--yellow-dark);
}
.hero h1{
  margin:18px 0 12px;
  font-size:64px;
  line-height:.96;
  letter-spacing:-1.7px;
}
.hero p{
  margin:0;
  color:#5e687b;
  font-size:17px;
  line-height:1.82;
  max-width:58ch;
}
.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:22px;
}

/* ===== CARDS / GRIDS ===== */
.grid-3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
.grid-2{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:18px;
}
.card{
  background:var(--card);
  border:1px solid var(--line-soft);
  border-radius:22px;
  box-shadow:var(--shadow-sm);
  padding:22px;
}
.card h3,.card h4{
  margin:0 0 8px;
  line-height:1.2;
}
.card p{
  margin:0;
  color:var(--muted);
  line-height:1.75;
}
.tag-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}
.tag{
  display:inline-flex;
  align-items:center;
  padding:8px 10px;
  border-radius:999px;
  background:#fff6cd;
  border:1px solid #efd885;
  color:#6b5400;
  font-size:12px;
  font-weight:800;
}

/* ===== VIDEOS ===== */
.video-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}
.video-card{
  display:block;
  background:#fff;
  border:1px solid var(--line-soft);
  border-radius:22px;
  overflow:hidden;
  box-shadow:var(--shadow-sm);
  transition:.18s ease;
}
.video-card:hover{
  transform:translateY(-3px);
  box-shadow:var(--shadow-md);
}
.video-thumb{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  display:block;
  background:#fff2bf;
}
.video-body{
  padding:16px 18px 18px;
}
.video-title{
  margin:0 0 6px;
  font-weight:900;
  font-size:16px;
  line-height:1.35;
}
.video-sub{
  margin:0;
  color:var(--muted);
  font-size:13px;
}

/* ===== NEWS / PAPERS ===== */
.news-list,.paper-list{
  display:grid;
  gap:18px;
}
.news-card,.paper-card{
  display:grid;
  grid-template-columns:280px 1fr;
  gap:0;
  background:#fff;
  border:1px solid var(--line-soft);
  border-radius:24px;
  overflow:hidden;
  box-shadow:var(--shadow-sm);
}
.news-media{
  background:#fff5d3;
  min-height:190px;
  position:relative;
}
.news-media img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.news-fallback{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  padding:24px;
  background:linear-gradient(180deg,#fff4c0 0%, #fffdf5 100%);
  color:#6f5902;
}
.news-fallback .nf-source{
  font-size:12px;
  font-weight:900;
  letter-spacing:.5px;
  text-transform:uppercase;
}
.news-fallback .nf-title{
  font-size:22px;
  font-weight:900;
  line-height:1.12;
  margin-top:8px;
}
.news-body,.paper-body{
  padding:22px 24px;
}
.news-title,.paper-title{
  margin:0 0 8px;
  font-size:22px;
  line-height:1.25;
  letter-spacing:-.25px;
}
.news-meta,.paper-meta{
  font-size:13px;
  color:var(--muted);
  margin-bottom:10px;
}
.news-note,.paper-note{
  color:var(--muted);
  line-height:1.72;
}
.news-actions,.paper-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}

/* ===== FOUNDER ===== */
.founder-wrap{
  display:grid;
  grid-template-columns:340px 1fr;
  gap:20px;
  align-items:start;
}
.founder-photo{
  background:#fff;
  border:1px solid var(--line-soft);
  border-radius:24px;
  overflow:hidden;
  box-shadow:var(--shadow-sm);
}
.founder-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  min-height:420px;
}
.founder-fallback{
  min-height:420px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(180deg,#fff4c0 0%, #fffdf5 100%);
  color:#7b6200;
  font-weight:900;
  text-align:center;
  padding:20px;
}
.founder-card{
  background:#fff;
  border:1px solid var(--line-soft);
  border-radius:24px;
  box-shadow:var(--shadow-sm);
  padding:26px;
}
.founder-name{
  font-size:31px;
  line-height:1.1;
  margin:0 0 6px;
}
.founder-role{
  margin:0;
  color:#7b6200;
  font-weight:800;
}
.founder-bio{
  margin-top:16px;
  color:var(--muted);
  line-height:1.82;
}

/* ===== CONTACT ===== */
.contact-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:18px;
}

/* ===== FOOTER ===== */
.footer{
  margin-top:38px;
  border-top:1px solid rgba(236,220,167,.7);
  background:#fff9ea;
  padding:24px 0;
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}
.footer-text,.small{
  font-size:13px;
  color:var(--muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px){
  .hero h1{font-size:54px}
  .hero-panel{grid-template-columns:1fr}
}
@media (max-width: 980px){
  .grid-3,
  .grid-2,
  .video-grid,
  .founder-wrap,
  .contact-grid{
    grid-template-columns:1fr;
  }

  .news-card,.paper-card{
    grid-template-columns:1fr;
  }

  .hero-banner img{
    height:240px;
  }

  .hero-panel{
    margin-top:18px;
  }

  .founder-photo img,
  .founder-fallback{
    min-height:280px;
  }
}
@media (max-width: 640px){
  .container{padding:0 16px}

  .topbar-inner{
    flex-direction:column;
    align-items:flex-start;
  }

  .nav{
    justify-content:flex-start;
  }

  .brand-logo{
    width:62px;
    height:62px;
    border-radius:18px;
  }

  .brand-title{
    font-size:20px;
  }

  .hero{
    padding-top:22px;
  }

  .hero-left{
    padding:22px;
  }

  .hero h1{
    font-size:42px;
    line-height:1.01;
  }

  .section{
    padding:52px 0;
  }

  .section-title{
    font-size:26px;
  }
}
/* ===== Equality Times GIF + Quote section (Home) ===== */
.et-quote-section{
  padding-top: 0; /* keeps spacing consistent with your layout */
}

.et-quote-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
  align-items:stretch;
}

.et-quote-media{
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  overflow:hidden;
  box-shadow: var(--shadow-sm);
  min-height: 260px;
  display:flex;
}

.et-quote-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.et-quote-card{
  background: linear-gradient(180deg, var(--bg-soft) 0%, #ffffff 100%);
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  padding:24px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.et-quote-label{
  display:inline-block;
  font-size:12px;
  font-weight:900;
  letter-spacing:.6px;
  text-transform:uppercase;
  color:#6b5400;
  background: var(--yellow-soft);
  border: 1px solid #f0dd98;
  padding:8px 10px;
  border-radius:999px;
  width:max-content;
}

.et-quote-text{
  margin-top:16px;
  font-size:34px;
  font-weight:900;
  line-height:1.12;
  letter-spacing:-.3px;
  color: var(--text);
}

.et-quote-sub{
  margin-top:12px;
  color: var(--muted);
  line-height:1.7;
  font-size:14px;
  max-width: 60ch;
}

/* Responsive */
@media (max-width: 980px){
  .et-quote-grid{
    grid-template-columns: 1fr;
  }
  .et-quote-text{
    font-size:28px;
  }
  .et-quote-media{
    min-height: 220px;
  }
}
.social-row-home{
  margin-top:-18px; /* pulls it up into the empty space */
  margin-bottom:18px;
}
/* ===== Social buttons (Home) ===== */
.social-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.social-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--line-soft);
  background:#fff;
  box-shadow:var(--shadow-sm);
  font-weight:800;
  font-size:13px;
  transition:.18s ease;
}

.social-btn:hover{
  transform:translateY(-1px);
  border-color:#f0dd98;
  background:#fff8e6;
}

.social-icon{
  width:34px;
  height:34px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--yellow-soft);
  border:1px solid #f0dd98;
}

.social-icon svg{
  fill:#6b5400;
}

.social-text{
  white-space:nowrap;
}

/* Disabled buttons until links are ready */
.is-disabled{
  opacity:.55;
  pointer-events:none;
}

/* Mobile: icons only */
@media (max-width:520px){
  .social-text{display:none;}
  .social-btn{padding:10px;}
}
/* Compact Contributor Card (unique from founder) */
.contrib-card{
  background:#fffdf5;
  border:1px solid rgba(122,98,2,.22);
  border-radius:18px;
  padding:16px;
  box-shadow: 0 10px 28px rgba(0,0,0,.05);
  max-width: 860px;
}

.contrib-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:12px;
}

.contrib-title{
  font-weight:900;
  letter-spacing:.2px;
  color:#1c1c1c;
}

.contrib-pill{
  font-weight:900;
  font-size:12px;
  padding:7px 10px;
  border-radius:999px;
  background: linear-gradient(180deg, #fff4bf 0%, #fffdf5 100%);
  border:1px solid rgba(122,98,2,.25);
  color:#7a6202;
  white-space:nowrap;
}

.contrib-row{
  display:flex;
  gap:14px;
  align-items:flex-start;
}

.contrib-avatar{
  width:46px;
  height:46px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  color:#1c1c1c;
  background: linear-gradient(180deg, #fff4bf 0%, #fffdf5 100%);
  border:1px solid rgba(122,98,2,.25);
  flex:0 0 auto;
}

.contrib-info{ flex:1; min-width:0; }

.contrib-name{
  font-size:16px;
  font-weight:900;
  line-height:1.2;
}

.contrib-role{
  margin-top:4px;
  font-weight:800;
  color:#7a6202;
  font-size:13px;
}

.contrib-bio{
  margin:10px 0 0;
  color:#3b3b3b;
  line-height:1.7;
  font-size:14px;
}

.contrib-actions{
  flex:0 0 auto;
}

@media (max-width: 820px){
  .contrib-row{ flex-direction:column; }
  .contrib-actions{ width:100%; }
  .contrib-actions .btn{ width:100%; text-align:center; }
}
