    :root{
      --bg:#080e1e;
      --surface:rgba(13,22,42,.70);
      --surface2:rgba(255,255,255,.03);
      --line:rgba(255,255,255,.08);
      --line2:rgba(255,255,255,.04);
      --text:#e8eaf2;
      --muted:#7e8ba8;
      --accent:#22d3ee;
      --accent2:#a78bfa;
      --accent3:#34d399;
      --radius:18px;
      --shadow:0 8px 40px rgba(0,0,0,.45);
    }

*{ box-sizing:border-box; }
html, body { height:100%; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height:1.6;
}

a{ color:inherit; text-decoration:none; }
a:hover{ opacity:.92; }

/* Base container (your index.html overrides max-width on purpose) */
.container{
  max-width:1100px;
  margin:0 auto;
  padding:28px 20px 70px;
  background: transparent;
}

/* =========================================================
   HERO LAYOUT
   ========================================================= */

.hero{
  position: relative;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
  align-items:stretch;
  margin-top:6px;

  min-height:620px; /* keeps both sides aligned */
}

.hero > .card{
  height:100%;
}


.hero-side{
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:12px;
  height:100%;
}

.hero-side .card{
  flex:1;
}

    /* Nav matches index.html */
    .wide{ max-width:1200px; margin:0 auto; padding:0 20px; }
    body .container{ max-width:none; padding:0; }
    .nav{
      position:sticky;
      top:0;
      z-index:1000;
      background:rgba(11,16,32,0.72);
      backdrop-filter:blur(14px);
      -webkit-backdrop-filter:blur(14px);
      border-bottom:1px solid var(--line);
      padding:14px 0;
      margin:0;
    }

  

    .nav .wide{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:25px;
    } 
    .brand-name{
      display:flex;
      flex-direction:column;
      line-height:1.3;
    }
    .brand-name strong{
      font-size:16px;
      font-weight:700;
      color:var(--text);
      letter-spacing:-.01em;
    }
    .brand-name span{
      font-size:12px;
      color:var(--muted);
    }

  html, body{ overflow-x: visible; }

    .nav-links{
      display:flex;
      gap:6px;
      flex-wrap:wrap;
      align-items:center;
    }

    .pill{
      display:inline-flex;
      align-items:center;
      padding:6px 16px;
      border:1px solid var(--line);
      border-radius:999px;
      font-size:12px;
      font-weight:500;
      color:var(--muted);
      background:rgba(255,255,255,.03);
      cursor:pointer;
      transition:color .18s, border-color .18s, background .18s;
      text-decoration:none;
      white-space:nowrap;
    }
    .pill:hover{
      color:var(--text);
      border-color:rgba(255,255,255,.18);
      background:rgba(255,255,255,.06);
      text-decoration:none;
    }
    .pill.primary{
      color:var(--accent);
      border-color:rgba(34,211,238,.25);
      background:rgba(34,211,238,.06);
    }
    .pill.primary:hover{
      background:rgba(34,211,238,.12);
      border-color:rgba(34,211,238,.4);
    }
    .pill[aria-current="page"]{
      color:var(--text);
      border-color:rgba(255,255,255,.18);
      background:rgba(255,255,255,.06);
    }

    .pill[aria-current="page"]:hover{
      background: rgba(255,255,255,.12);
    }


/* CARD */
.card{
  background: rgba(15,26,43,.72);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  backdrop-filter: blur(8px);
}

/* Common bits used across pages */
.header-eyebrow{
      display:inline-flex;
      align-items:center;
      gap:8px;
      font-family:'DM Mono', monospace;
      font-size:11px;
      letter-spacing:.12em;
      text-transform:uppercase;
      color:var(--accent);
      margin-bottom:14px;
      align-self:flex-start;
    }
    .header-eyebrow::before{
      content:'';
      display:inline-block;
      width:26px;
      height:1px;
      background:var(--accent);
      opacity:.6;
    }

.dot{
  width:8px; height:8px;
  border-radius:999px;
  background: var(--accent2);
  box-shadow: 0 0 0 4px rgba(52,211,153,.12);
}

.tags{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  }
.tag{
  font-size:14px;
  padding:5px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--muted);
  background:rgba(255,255,255,.025);
  white-space:nowrap;
}

.profile{
  display:flex;
  gap:12px;
  align-items:center;
  padding:0px;
  border:0px solid var(--line);
 /* border-radius:16px;
  background: rgba(255,255,255,.03); */
}
.avatar{
  width:72px; height:72px;
    overflow:hidden;
  border:1px solid var(--line);
  border-radius:16px;
  background: rgba(255,255,255,.04);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  font-size:12px;
}
.avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:16px;
  box-shadow:
    0 10px 35px rgba(0,0,0,.45),
    0 0 40px rgba(125,211,252,.08);
}

.profile-meta strong{ display:block; font-size:14px; }
.profile-meta span{ display:block; font-size:12px; color:var(--muted); margin-top:2px; }

/* .quicklist{
  padding:0px;
  border:0px solid var(--line);
  border-radius:0px;
  background: rgba(255,255,255,.03);
} */
.quicklist h3{
  margin:0 0 8px;
  font-size:13px;
  color:var(--text);
}
.quicklist ul{
  margin:0;
  padding-left:18px;
  color:var(--muted);
  font-size:13px;
}
.quicklist li{ margin:6px 0; }

.cta{
  margin-top:10px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}
.small{
  font-size:12px;
  color:var(--muted);
}

hr.sep{
  border:none;
  border-top:1px solid var(--line);
  margin:18px 0;
}

/* ===== Reveal transition (used with JS that adds/removes .in) ===== */
.reveal{
  opacity:0;
  transform: translateY(18px);
  transition: opacity .8s ease, transform .8s ease;
  will-change: opacity, transform;
}
.reveal.in{
  opacity:1;
  transform: translateY(0);
}

/* ===== Gallery: centered, no stretching ===== */
.gallery{
  display:grid;
  grid-template-columns: 1fr;
  gap:18px;
  margin-top:12px;
}

/* hide spacer paragraphs if present */
.gallery p{ display:none; }

.gallery img{
  justify-self:center;
  max-width:100%;
  max-height:520px;
  width:auto;
  height:auto;
  object-fit:contain;
  border-radius:14px;
  border:1px solid var(--line);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

@media (min-width: 900px){
  .gallery{ grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   ONE-CARD FEATURED CAROUSEL (the one your index.html uses)
   ========================================================= */

.carousel{ margin-top: 10px; }

.carousel-track{
  display:flex;
  gap:16px;

  overflow-x:auto;
  overflow-y:hidden;

  scroll-snap-type: x mandatory;
  scroll-padding: 50%;
  -webkit-overflow-scrolling: touch;

  padding: 8px 0 8px;

  /* hide scrollbar */
  scrollbar-width:none;
}
.carousel-track::-webkit-scrollbar{ display:none; }

/* each card is “one at a time” centered */
.carousel-track .hcard{
  scroll-snap-align:center;
  flex: 0 0 78%;
  max-width: 720px;
  margin: 0 auto;
}

@media (min-width: 1100px){
  .carousel-track .hcard{
    flex-basis: 62%;
    max-width: 760px;
  }
}

@media (max-width: 640px){
  .carousel-track .hcard{
    flex-basis: 92%;
    max-width: none;
  }
}

/* Card style */
.hcard{
  display:flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: rgba(15,26,43,.55);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration:none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.hcard:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
}

.hcard-media{
  height: 280px;
  border-bottom: 1px solid var(--line);
  overflow:hidden;
  background: rgba(255,255,255,.03);
}
.hcard-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.hcard-body{ padding:18px; }
.hcard-body h3{
  margin:0 0 8px;
  font-size:18px;
  letter-spacing:-.2px;
}
.hcard-body p{
  margin:0;
  color: var(--muted);
  font-size:14px;
  line-height:1.65;
}

/* Pagination indicator */
.carousel-indicator{
  display:flex;
  justify-content:center;
  margin-top:12px;
}
.indicator-track{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius:999px;
}
.ind-dot{
  width:6px;
  height:6px;
  border-radius:999px;
  background: rgba(255,255,255,.18);
  transition: width .22s ease, background .22s ease, opacity .22s ease;
  opacity:.85;
  cursor:pointer;
}
.ind-dot.active{
  width:30px;
  background: rgba(255,255,255,.35);
  opacity:1;
}

/* FEATURED header (used in index) */
.feature-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.feature-head h2{
  margin:0;
  font-size:28px;
  letter-spacing:-.3px;
}

/* =========================================================
   Research / Tiles helpers (index.html uses .tile/.tiles)
   ========================================================= */

/* ===== Research: one-row, uniform cards (no carousel) ===== */
.research-row{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
  align-items: stretch; /* equal height cards */
}

/* On smaller screens, wrap naturally */
@media (max-width: 980px){
  .research-row{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .research-row{ grid-template-columns: 1fr; }
}

.research-card{
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: rgba(15,26,43,.55);
  box-shadow: var(--shadow);
  padding: 18px;

  display: flex;
  flex-direction: column;
  gap: 10px;

  min-height: 320px; /* optional: makes them feel uniform */
}

.research-card h3{
  margin: 0;
  font-size: 18px;
  letter-spacing: -.2px;
}

.research-card p{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;

  /* optional: keep descriptions visually consistent */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.research-card .kws{
  margin-top: auto; /* pushes kws + buttons down */
}

.research-card .row{
  margin-top: 10px;
}
.research-card .row{
  min-height: 44px; /* keeps CTA row consistent */
  align-items: center;
}
/* ===== PROJECT CARD  ===== */

.project{
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

/* Image container */
.project .cover{
  height:200px;
  overflow:hidden;
  border-bottom:1px solid var(--line);
}

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

/* Content padding */
.project .content{
  padding:20px;
  display:flex;
  flex-direction:column;
  gap:12px;
  flex:1;
}

/* Title */
.project h3{
  margin:0;
  font-size:18px;
  line-height:1.35;
}

/* Description */
.project p{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.65;
}

/* Tags spacing */
.project .meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:6px;
}

/* CTA always bottom aligned */
.project .cta{
  margin-top:auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-top:10px;
  border-top:1px solid rgba(255,255,255,.05);
}

.table-wrap{
  overflow-x:auto;
  margin-top:12px;
}

.dataset-table{
  width:100%;
  border-collapse:collapse;
  font-size:14px;
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  background:rgba(255,255,255,.03);
}

.dataset-table th{
  text-align:left;
  padding:14px;
  background:rgba(255,255,255,.04);
  border-bottom:1px solid var(--line);
  font-weight:600;
}

.dataset-table td{
  padding:14px;
  border-bottom:1px solid rgba(255,255,255,.06);
  color:var(--muted);
}

.dataset-table tr:last-child td{
  border-bottom:none;
}

.dataset-table tr:hover{
  background:rgba(255,255,255,.03);
}

/* ── Universal portfolio image placeholder ── */

.img-placeholder {
  width: 100%;
  height: 320px;
  border-radius: calc(var(--radius) - 4px);
  border: 1px dashed rgba(255,255,255,.18);
  background:
    radial-gradient(900px 400px at 20% 10%, rgba(34,211,238,.08), transparent 60%),
    radial-gradient(700px 380px at 80% 70%, rgba(167,139,250,.08), transparent 60%),
    rgba(0,0,0,.25);

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.img-placeholder-inner {
  color: var(--muted);
}

.img-placeholder-icon {
  font-size: 26px;
  margin-bottom: 6px;
}

.img-placeholder-title {
  font-weight: 600;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.img-placeholder-sub {
  font-size: 12px;
  opacity: .7;
  text-align: center;
  color: var(--muted);
}

/* FOOTER */
.footer{
  margin-top:34px;
  padding-top:18px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:12px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:space-between;
}
.footer a{ color:var(--text); }

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; scroll-behavior:auto !important; }
}
