/* ============================================================
   FAIZ KHAN — plain black & white site
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

*{ box-sizing: border-box; margin: 0; padding: 0; }
html,body{ height: 100%; }
body{
  background: #000;
  color: #fff;
  font-family: 'Space Grotesk', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a{ color: inherit; text-decoration: none; }
img,video{ max-width: 100%; display: block; }
::selection{ background: #fff; color: #000; }
button{ font-family: inherit; }

::-webkit-scrollbar{ width: 8px; }
::-webkit-scrollbar-track{ background: #000; }
::-webkit-scrollbar-thumb{ background: #444; }

/* ============ top bar (minimal, home link only) ============ */
.topbar{
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wordmark{
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.wordmark:hover{ opacity: .6; }

/* ============ main area ============ */
main{
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ============ hero (index) ============ */
.hero{
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 120px;
}
.hero-name{
  font-size: clamp(56px, 12vw, 160px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: .95;
  text-align: center;
  text-transform: uppercase;
}

/* ============ page header (inner pages) ============ */
.page-head{
  padding: 60px 32px 40px;
  text-align: center;
  border-bottom: 1px solid #2a2a2a;
}
.page-title{
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

/* ============ wrap / sections ============ */
.wrap{ max-width: 900px; margin: 0 auto; padding: 0 32px; width: 100%; }
.section{ padding: 48px 32px; border-bottom: 1px solid #2a2a2a; flex: 1 0 auto; }
.section:last-of-type{ border-bottom: none; }
.section-title{
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 26px;
}

/* ============ experience ============ */
.exp-block{
  border-bottom: 1px solid #1f1f1f;
  padding: 24px 0;
}
.exp-block:first-of-type{ padding-top: 0; }
.exp-block:last-child{ border-bottom: none; }
.exp-block .tag{
  font-size: 12px;
  letter-spacing: .1em;
  color: #888;
  margin-bottom: 8px;
  display: block;
  text-transform: uppercase;
}
.exp-role{ font-size: 19px; font-weight: 600; margin-bottom: 4px; }
.exp-org{ font-size: 14px; color: #999; margin-bottom: 14px; }
.exp-block ul{ padding-left: 18px; }
.exp-block li{ font-size: 14.5px; line-height: 1.65; color: #ddd; margin-bottom: 6px; }

.skills-grid{ display: flex; flex-wrap: wrap; gap: 10px; }
.skill-pill{
  font-size: 13px;
  padding: 7px 14px;
  border: 1px solid #333;
  color: #fff;
}

.edu-block .exp-role{ margin-bottom: 6px; }

/* ============ projects ============ */
.proj-grid{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: #1f1f1f; margin-bottom: 8px; }
.proj-card{ background: #000; padding: 26px; }
.proj-tool{ font-size: 12px; color: #888; letter-spacing: .06em; margin-bottom: 10px; text-transform: uppercase; }
.proj-title{ font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.proj-desc{ font-size: 14px; line-height: 1.6; color: #ccc; }

.reel-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #1f1f1f; }
.reel-card{ background: #000; }
.reel-card video{ width: 100%; display: block; background: #000; filter: grayscale(1) contrast(1.05); }
.reel-meta{ padding: 16px 18px 20px; }
.reel-tag{ font-size: 11.5px; color: #888; letter-spacing: .08em; margin-bottom: 6px; display: block; text-transform: uppercase; }
.reel-title{ font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.reel-desc{ font-size: 13px; line-height: 1.55; color: #aaa; }
.section-note{ font-size: 12.5px; color: #777; margin-top: 14px; }

.cubelab-wrap{ border: 1px solid #2a2a2a; }
.cubelab-bar{
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px; border-bottom: 1px solid #2a2a2a;
  font-size: 12px; letter-spacing: .08em; color: #999; text-transform: uppercase;
}
.cubelab-wrap iframe{ width: 100%; height: 640px; border: 0; display: block; background: #000; }

/* ============ blog ============ */
.blog-article{ max-width: 700px; margin: 0 auto; }
.blog-article .meta{ font-size: 12.5px; color: #888; letter-spacing: .08em; margin-bottom: 24px; text-transform: uppercase; }
.blog-article .lede{ font-size: 16px; line-height: 1.75; color: #eee; border-left: 2px solid #444; padding-left: 18px; margin-bottom: 30px; }
.blog-article h2{ font-size: 18px; font-weight: 600; margin: 34px 0 12px; }
.blog-article p{ font-size: 15px; line-height: 1.8; color: #ccc; margin-bottom: 16px; }
.blog-article blockquote{ font-size: 16px; font-style: italic; color: #fff; border-left: 2px solid #fff; padding: 12px 18px; margin: 20px 0; }
.blog-article ul{ padding-left: 20px; }
.blog-article li{ font-size: 14px; line-height: 1.7; color: #ccc; margin-bottom: 6px; }
.blog-article .refs{ font-size: 13px; line-height: 1.8; color: #888; }
.blog-more{ text-align: center; font-size: 12.5px; color: #777; margin-top: 46px; padding-top: 22px; border-top: 1px dashed #2a2a2a; text-transform: uppercase; letter-spacing: .08em; }

/* ============ bottom tab bar ============ */
.tabbar{
  position: sticky;
  bottom: 0;
  left: 0; right: 0;
  border-top: 1px solid #2a2a2a;
  background: #000;
  display: flex;
  justify-content: center;
  z-index: 100;
}
.tabbar-inner{
  display: flex;
  width: 100%;
  max-width: 720px;
}
.tab{
  flex: 1;
  text-align: center;
  padding: 18px 10px;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #888;
  border-left: 1px solid #2a2a2a;
  position: relative;
  cursor: pointer;
}
.tab:first-child{ border-left: none; }
.tab:hover{ color: #fff; }
.tab.active{ color: #fff; }
.tab.active::after{
  content: "";
  position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 2px;
  background: #fff;
}

/* contact dropdown */
.contact-panel{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #000;
  border-top: 1px solid #2a2a2a;
  z-index: 99;
  display: flex;
  justify-content: center;
  transform: translateY(100%);
  transition: transform .22s ease;
}
.contact-panel.open{ transform: translateY(-56px); }
.contact-panel-inner{
  width: 100%;
  max-width: 720px;
  padding: 26px 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid #1a1a1a;
}
.contact-row:last-child{ border-bottom: none; }
.contact-row .label{ color: #777; letter-spacing: .08em; text-transform: uppercase; font-size: 11.5px; }
.contact-row a:hover{ text-decoration: underline; }

/* ============ responsive ============ */
@media (max-width: 760px){
  .proj-grid{ grid-template-columns: 1fr; }
  .reel-grid{ grid-template-columns: 1fr; }
  .cubelab-wrap iframe{ height: 460px; }
  .tab{ font-size: 11px; padding: 16px 4px; }
}

a:focus-visible, button:focus-visible, .tab:focus-visible{ outline: 1px solid #fff; outline-offset: 2px; }
