/* =========================================================
   style.css — FIXED: keep site look + fix mute badge + carousels
   BUILD: 2026-02-03-v13
========================================================= */

/* -------------------------
   Theme tokens
------------------------- */
:root{
  --bg0:#070a0f;
  --bg1:#0b0f14;

  --panel: rgba(255,255,255,.065);
  --panel2: rgba(255,255,255,.085);
  --border: rgba(255,255,255,.12);

  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --muted2: rgba(255,255,255,.56);

  --accent: rgba(120,160,255,.95);
  --accent2: rgba(160,120,255,.80);

  --shadow: 0 18px 46px rgba(0,0,0,.44);
  --shadow2: 0 10px 26px rgba(0,0,0,.30);

  --radius: 18px;
  --maxw: 1120px;
}

[data-theme="light"]{
  --bg0:#f7f9fc;
  --bg1:#eef3fb;

  --panel: rgba(0,0,0,.05);
  --panel2: rgba(0,0,0,.06);
  --border: rgba(0,0,0,.12);

  --text: rgba(0,0,0,.88);
  --muted: rgba(0,0,0,.62);
  --muted2: rgba(0,0,0,.50);

  --accent: rgba(20,90,255,.95);
  --accent2: rgba(120,90,255,.70);

  --shadow: 0 18px 46px rgba(0,0,0,.14);
  --shadow2: 0 10px 26px rgba(0,0,0,.10);
}

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

body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(120,160,255,.22), transparent 55%),
    radial-gradient(900px 650px at 92% 8%, rgba(160,120,255,.16), transparent 55%),
    radial-gradient(900px 650px at 55% 105%, rgba(120,255,200,.08), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 55%, var(--bg0));
  background-attachment: fixed;
  overflow-x:hidden;
}

@media (max-width: 980px){
  body{ background-attachment: scroll; }
}

a{ color:inherit; text-decoration:none; }
img, video{ max-width:100%; display:block; }
button{ font: inherit; }

.container{
  width:min(var(--maxw), calc(100% - 40px));
  margin:0 auto;
}

/* -------------------------
   Skip link
------------------------- */
.skip{
  position:absolute;
  left:-999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip:focus{
  left:18px;
  top:18px;
  width:auto;
  height:auto;
  padding:10px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.18);
  z-index: 9999;
}

/* -------------------------
   Topbar / Nav
------------------------- */
.topbar{
  position: sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(16px);
  background: rgba(10,14,20,.62);
  border-bottom: 1px solid rgba(255,255,255,.07);
}

[data-theme="light"] .topbar{
  background: rgba(245,248,255,.78);
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width: 220px;
}

.brand__logo{
  width: 30px;
  height: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow2);
  object-fit: cover;
}

.brand__name{
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: 18px;
}

.nav{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content:center;
}

.nav a{
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav a:hover{
  color: var(--text);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.10);
  transform: translateY(-1px);
}

.nav a.is-active{
  color: var(--text);
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.14);
}

.topbar__actions{
  display:flex;
  align-items:center;
  gap: 10px;
}

.navToggle{
  display:none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.20);
  background: rgba(0,0,0,.14);
  cursor: pointer;
  align-items:center;
  justify-content:center;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

[data-theme="light"] .navToggle{
  background: rgba(0,0,0,.05);
  border-color: rgba(0,0,0,.14);
}

/* ===== Fix hamburger icon (3 clean bars) ===== */
.navToggle__bars{
  width: 18px;
  height: 2px;
  display: block;
  position: relative;
  border-radius: 2px;
  background: rgba(255,255,255,.92); /* middle bar */
}

.navToggle__bars::before,
.navToggle__bars::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  height: 2px;
  border-radius: 2px;
  background: rgba(255,255,255,.92);
}

.navToggle__bars::before{ top: -5px; } /* top bar */
.navToggle__bars::after { top:  5px; } /* bottom bar */

/* Light theme */
[data-theme="light"] .navToggle__bars,
[data-theme="light"] .navToggle__bars::before,
[data-theme="light"] .navToggle__bars::after{
  background: rgba(0,0,0,.86);
}

.navScrim{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(2px);
  z-index: 60;
}

.navMobile{
  position: fixed;
  top: 70px;
  right: 18px;
  width: min(340px, calc(100% - 36px));
  z-index: 70;
}

.navMobile__panel{
  border-radius: 18px;
  background: rgba(20,26,36,.72);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 24px 62px rgba(0,0,0,.52);
  padding: 12px;
  backdrop-filter: blur(16px);
}

[data-theme="light"] .navMobile__panel{
  background: rgba(250,252,255,.82);
  border-color: rgba(0,0,0,.12);
  box-shadow: 0 24px 62px rgba(0,0,0,.18);
}

.navMobile__links{
  display:flex;
  flex-direction:column;
  gap: 6px;
}

.navMobile__links a{
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text);
  border: 1px solid transparent;
  background: rgba(255,255,255,.06);
}
.navMobile__links a:hover{
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.09);
}
.navMobile__links a.is-active{
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.12);
}

[data-theme="light"] .navMobile__links a{
  background: rgba(0,0,0,.04);
}
[data-theme="light"] .navMobile__links a.is-active{
  background: rgba(0,0,0,.07);
  border-color: rgba(0,0,0,.12);
}

.navMobile__cta{
  display:flex;
  gap: 8px;
  flex-wrap:wrap;
  margin-top: 10px;
}

@media (max-width: 980px){
  .nav--desktop{ display:none; }
  .navToggle{ display:inline-flex; }
  .topbar__resume{ display:none; }
  .brand{ min-width: unset; }
}

/* -------------------------
   Buttons / chips
------------------------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.10);
  color: var(--text); /* fixes “black text” issue */
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  cursor:pointer;
  font-weight: 650;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 14px 32px rgba(0,0,0,.22);
}

.btn--ghost{
  background: rgba(0,0,0,.12);
  border: 1px solid rgba(255,255,255,.22);
}

[data-theme="light"] .btn--ghost{
  background: rgba(0,0,0,.05);
  border-color: rgba(0,0,0,.14);
}

.btn--disabled{
  cursor: default;
  opacity: .55;
  pointer-events: none;
}

.chips{ display:flex; gap:8px; flex-wrap:wrap; margin-top: 10px; }
.chips--tight{ margin-top: 10px; }
.chip{
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.10);
  color: var(--muted);
  font-size: 13px;
}

/* -------------------------
   Sections / headers
------------------------- */
.section{ padding: 46px 0; }
.section--tight{ padding: 28px 0; }
.section--compact{ padding: 18px 0 26px; }

.section__header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  margin-bottom:16px;
}
.section__header h2{ margin:0; font-size: 22px; letter-spacing:-.02em; }
.section__header p{ margin:0; color:var(--muted); }

.section__footer{ margin-top: 16px; }

.pagehead{ padding: 38px 0 18px; }
.pagehead__title{ margin:0; font-size: 34px; letter-spacing:-.03em; }
.pagehead__lede{ margin:8px 0 0; color:var(--muted); max-width: 70ch; }

/* -------------------------
   Cards
------------------------- */
.card{
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 18px;
}

.card__title{ margin:0; font-size: 18px; letter-spacing:-.02em; }
.card__text{ margin: 10px 0 0; color: var(--muted); line-height: 1.65; }

.cardDivider{
  height: 1px;
  margin: 16px 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent);
  opacity: .8;
}

.stack__sep{
  height: 1px;
  margin-top: 18px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent);
  opacity: .7;
}

/* -------------------------
   Hero (index)
------------------------- */
.hero{
  padding: 44px 0 10px;
}

.hero__inner{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
  align-items: start;
}

@media (max-width: 980px){
  .hero__inner{ grid-template-columns: 1fr; }
}

.eyebrow{
  margin:0 0 10px;
  color: var(--muted2);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero h1{
  margin: 0;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.lede{
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 70ch;
}

.cta{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.hero__card .card{
  padding: 18px;
}

.metrics{
  display:grid;
  gap: 10px;
}

.metrics--stack{
  grid-template-columns: 1fr;
}

.metric{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}

.metric__value{
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: 18px;
  white-space: nowrap;
}

.metric__label{
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  text-align: right;
}

/* -------------------------
   About section (index)
------------------------- */
.aboutSection{
  display:grid;
  grid-template-columns: 230px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
}

@media (max-width: 760px){
  .aboutSection{ grid-template-columns: 1fr; }
}

.aboutSection__media{
  width: 100%;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  aspect-ratio: 1 / 1;
}

.aboutSection__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aboutSection__title{
  margin:0;
  font-size: 22px;
  letter-spacing:-.02em;
}

.aboutSection__text{
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

/* -------------------------
   Projects page blocks
------------------------- */
.project{
  display:grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
  align-items:start;
}

@media (max-width: 980px){
  .project{ grid-template-columns: 1fr; }
}

.project__title{ margin: 0; font-size: 22px; letter-spacing:-.02em; }
.project__meta{ margin: 6px 0 0; color: var(--muted2); font-size: 13px; }
.project__desc{ margin: 12px 0 0; color: var(--muted); line-height: 1.65; }
.project__links{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 14px; }

/* shared bullets/list */
.bullets{ margin: 12px 0 0; padding-left: 18px; color: var(--muted); }
.bullets li{ margin: 6px 0; }
.bullets--tight li{ margin: 5px 0; }

.micro{ margin-top: 12px; color: var(--muted2); font-size: 13px; }

/* -------------------------
   Media frames (16:10 only here)
------------------------- */
.media{
  border-radius: 22px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.35);
  box-shadow: 0 18px 44px rgba(0,0,0,.30);
}

.media--xl{
  border-radius: 26px;
  box-shadow: 0 22px 56px rgba(0,0,0,.34);
}

.media__frame{
  width: 100%;
  aspect-ratio: 16 / 10;   /* ✅ ONLY media frames are forced */
  position: relative;
  overflow: hidden;
  background: #000;
}

.media__frame img,
.media__frame video{
  width:100%;
  height:100%;
  object-fit: cover;
  background:#000;
}

/* -------------------------
   Carousels (key change)
   ✅ Default carousel is NOT forced to 16:10 (fixes Featured Projects)
   ✅ Only .carousel--media is forced to 16:10
------------------------- */
.carousel{
  position: relative;
  overflow: hidden;
}

.carousel__viewport{
  position: relative; /* anchor for badge */
  overflow: hidden;
}

/* track always slides horizontally */
.carousel__track{
  display:flex;
  width:100%;
  transform: translate3d(0,0,0);
  transition: transform 360ms cubic-bezier(.2,.85,.2,1);
  will-change: transform;
}

.carousel__track > *{
  flex: 0 0 100%;
  width:100%;
}

/* --- Media carousels: enforce 16:10 viewport --- */
.carousel--media .carousel__viewport{
  width: 100%;
  aspect-ratio: 16 / 10;
  background:#000;
}

.carousel--media .carousel__track{
  height: 100%;
}

.carousel--media .carousel__track > *{
  height: 100%;
}

.carousel--media video,
.carousel--media img{
  width:100%;
  height:100%;
  object-fit: cover;
  background:#000;
}

/* controls bar */
.carousel__bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}

/* media bar tighter */
.carousel__bar--media{
  padding: 10px 12px 12px;
}

/* featured carousel bar inset feel */
.carousel--featured .carousel__bar{
  padding: 12px 16px 14px;
}

/* buttons */
.carousel__btn{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.38);
  color: white;
  font-size: 20px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.carousel__btn:hover{
  transform: translateY(-1px);
  background: rgba(0,0,0,.52);
  border-color: rgba(255,255,255,.26);
}

.carousel__btn--sm{
  width: 32px;
  height: 32px;
  font-size: 19px;
}

/* your "bar buttons" name */
.carousel__btn--bar{
  width: 36px;
  height: 36px;
}

/* dots */
.carousel__dots{
  display:flex;
  gap: 7px;
  align-items:center;
  justify-content:center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  backdrop-filter: blur(10px);
}

.carousel__dots--light{
  background: rgba(255,255,255,.06);
}

.dot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.28);
  cursor:pointer;
  transition: transform 160ms ease, background 160ms ease;
}
.dot:hover{ transform: scale(1.15); }
.dot.is-active{ background: rgba(255,255,255,.90); }

/* -------------------------
   Mute / Play badge overlay
   ✅ anchored to .carousel__viewport (video-only)
------------------------- */
.unmuteBadge{
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 30;
  pointer-events: auto;

  display:inline-flex;
  align-items:center;
  gap: 8px;

  padding: 8px 10px;
  border-radius: 999px;

  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.42);
  color: rgba(255,255,255,.92);

  backdrop-filter: blur(12px);
  box-shadow: 0 12px 28px rgba(0,0,0,.35);

  font-size: 12.5px;
  font-weight: 650;
  cursor: pointer;

  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.unmuteBadge:hover{
  background: rgba(0,0,0,.55);
  border-color: rgba(255,255,255,.22);
  transform: translateY(-1px);
}

.unmuteBadge::before{
  content:"";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(120,160,255,.95);
  box-shadow: 0 0 0 4px rgba(120,160,255,.15);
}

.unmuteBadge[hidden]{ display:none !important; }

/* -------------------------
   Featured Projects slide layout (index)
------------------------- */
.carousel--featured{
  padding: 0;
}

.slide{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 16px;
  padding: 18px;
  align-items: center;
}

@media (max-width: 980px){
  .slide{
    grid-template-columns: 1fr;
    align-items: start;
  }
}

.slide__title{
  margin:0;
  font-size: 20px;
  letter-spacing:-.02em;
}

.slide__meta{
  margin: 6px 0 0;
  color: var(--muted2);
  font-size: 13px;
}

.slide__desc{
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.miniList{
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.miniList li{ margin: 5px 0; }

.slide__links{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.slide__media{
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.28);
  aspect-ratio: 16 / 10; /* nice for the image on the right */
}

.slide__media img{
  width:100%;
  height:100%;
  object-fit: cover;
}

/* -------------------------
   Grids (skills/contact)
------------------------- */
.grid{
  display:grid;
  gap: 14px;
}
.grid--2{
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 900px){
  .grid--2{ grid-template-columns: 1fr; }
}

.list{
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.list li{ margin: 6px 0; }

.quote{
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
}

.contact{
  display:flex;
  flex-direction:column;
  gap: 10px;
  margin-top: 10px;
}

/* -------------------------
   Timeline (clubs/work/volunteer)
------------------------- */
.timeline{
  display:flex;
  flex-direction:column;
  gap: 14px;
}

.item h3{
  margin:0;
  font-size: 18px;
  letter-spacing:-.02em;
}

.item__meta{
  margin: 6px 0 0;
  color: var(--muted2);
  font-size: 13px;
}

.item__desc{
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

/* -------------------------
   Footer
------------------------- */
.footer{
  padding: 34px 0;
  color: var(--muted2);
}
.footer__inner{
  display:flex;
  gap: 10px;
  align-items:center;
  justify-content:center;
}
.footer__dot{ opacity:.6; }


/* =========================================================
   MOBILE OPTIMIZATION (<= 980px)
   - fixes nav dropdown
   - fixes "blue streak" / overscroll glow
   - tightens layout & typography everywhere
========================================================= */

/* --- kill weird blue streak / glow + stabilize background --- */
html{
  background: var(--bg0); /* prevents showing default browser background behind body */
  overflow-x: hidden;
  overscroll-behavior: none; /* removes Chrome mobile glow */
}

body{
  background-color: var(--bg0);
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent; /* removes blue tap/drag highlight */
}

/* keep keyboard focus accessible but not ugly */
:focus{ outline: none; }
:focus-visible{
  outline: 2px solid rgba(120,160,255,.65);
  outline-offset: 3px;
  border-radius: 10px;
}

/* avoid horizontal "micro scroll" causing ugly edges */
img, video, .media, .card, .carousel, .navMobile__panel{
  max-width: 100%;
}

/* --- <= 980px layout polish --- */
@media (max-width: 980px){

  /* container spacing */
  .container{
    width: min(var(--maxw), calc(100% - 28px));
  }

  /* topbar height/spacing */
  .topbar__inner{
    padding: 10px 0;
    gap: 12px;
  }

  .brand__logo{
    width: 28px;
    height: 28px;
    border-radius: 10px;
  }

  .brand__name{
    font-size: 16px;
    letter-spacing: -.015em;
  }

  /* make sure nav toggle feels good on touch */
  .navToggle{
    width: 44px;
    height: 44px;
    border-radius: 14px;
    touch-action: manipulation;
  }

  /* ---- MOBILE NAV DROPDOWN FIX ---- */
  .navScrim{
    z-index: 60;
    backdrop-filter: blur(6px);
  }

  .navMobile{
    left: 12px;
    right: 12px;
    width: auto;
    top: calc(62px + env(safe-area-inset-top)); /* avoids notch overlap */
    z-index: 70;
  }

  .navMobile__panel{
    padding: 10px;
    border-radius: 18px;

    /* key: prevent panel going off-screen */
    max-height: calc(100vh - (86px + env(safe-area-inset-top)));
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .navMobile__links{
    gap: 8px;
  }

  .navMobile__links a{
    padding: 12px 12px;
    border-radius: 14px;
    font-size: 15px;
    line-height: 1.15;
  }

  .navMobile__cta{
    gap: 10px;
    margin-top: 10px;
  }

  /* sections / headers */
  .section{ padding: 34px 0; }
  .section--tight{ padding: 22px 0; }
  .section--compact{ padding: 14px 0 22px; }

  .section__header{
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
  }
  .section__header h2{ font-size: 20px; }

  .pagehead{ padding: 26px 0 12px; }
  .pagehead__title{ font-size: 28px; }
  .pagehead__lede{ font-size: 15px; }

  /* hero */
  .hero{ padding: 30px 0 8px; }
  .lede{ font-size: 15px; }

  /* cards */
  .card{
    padding: 16px;
    border-radius: 18px;
  }

  /* about section spacing */
  .aboutSection{
    padding: 16px;
    gap: 14px;
  }
  .aboutSection__title{ font-size: 20px; }

  /* projects blocks */
  .project__title{ font-size: 20px; }
  .project__desc{ font-size: 15px; }

  /* grids should never look cramped */
  .grid{ gap: 12px; }

  /* timeline text sizing */
  .item h3{ font-size: 17px; }
  .item__desc{ font-size: 15px; }

  /* carousels: make controls easier + stop bars looking “tight” */
  .carousel__bar{
    padding: 10px 12px 12px;
    gap: 12px;
  }

  .carousel__btn{
    width: 40px;
    height: 40px;
    border-radius: 14px;
    font-size: 20px;
  }

  .carousel__dots{
    padding: 7px 10px;
    gap: 8px;
  }

  .dot{
    width: 10px;
    height: 10px;
  }
 
  /* mute badge: smaller + not obnoxious on mobile */
  .unmuteBadge{
    top: 10px;
    right: 10px;
    padding: 7px 9px;
    font-size: 12px;
  }
}

/* extra-tight phones (helps <= 420px without breaking your look) */
@media (max-width: 420px){
  .container{ width: min(var(--maxw), calc(100% - 22px)); }
  .pagehead__title{ font-size: 26px; }
  .carousel__btn{ width: 38px; height: 38px; }
}

/* ============================
   Mobile nav: nicer + not transparent + proper open/close states
============================ */

/* Hide by default (JS will toggle) */
.navScrim[hidden],
.navMobile[hidden]{
  display: none !important;
}

/* Optional: if you prefer class-based toggling too */
body.nav-open .navScrim,
body.nav-open .navMobile{
  display: block;
}

/* Lock page scroll when menu is open */
body.nav-open{
  overflow: hidden;
}

/* Make scrim reliably clickable */
.navScrim{
  pointer-events: auto;
}

/* Make dropdown panel look solid / premium (less transparent) */
.navMobile__panel{
  background: rgba(20,26,36,.92);              /* more opaque */
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 28px 76px rgba(0,0,0,.62);
  backdrop-filter: blur(18px) saturate(140%);
}

/* Light theme version */
[data-theme="light"] .navMobile__panel{
  background: rgba(255,255,255,.94);
  border-color: rgba(0,0,0,.12);
  box-shadow: 0 28px 76px rgba(0,0,0,.18);
}

/* Link sizing/padding feels better on mobile */
.navMobile__links a{
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}
[data-theme="light"] .navMobile__links a{
  background: rgba(0,0,0,.04);
  border-color: rgba(0,0,0,.10);
}

/* Tiny open animation (optional but nice) */
.navMobile__panel{
  transform-origin: top right;
  animation: navPop 120ms ease-out;
}
@keyframes navPop{
  from{ transform: translateY(-6px) scale(.98); opacity: .0; }
  to  { transform: translateY(0) scale(1);     opacity: 1; }
}

/* ===== Mobile nav visual fix ===== */
.navScrim{
  z-index: 999;
  background: rgba(0,0,0,.60); /* darker = looks intentional */
  pointer-events: auto;
}

.navMobile{
  z-index: 1000;
}

/* Make menu panel more solid / premium */
.navMobile__panel{
  background: rgba(20,26,36,.92);  /* was .72 */
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 28px 76px rgba(0,0,0,.62);
  backdrop-filter: blur(18px) saturate(140%);
}

[data-theme="light"] .navMobile__panel{
  background: rgba(255,255,255,.94);
  border-color: rgba(0,0,0,.12);
  box-shadow: 0 28px 76px rgba(0,0,0,.18);
}

/* lock scroll when open (JS adds nav-open class) */
body.nav-open{
  overflow: hidden;
}

/* ===== Mobile menu: prevent click-through ===== */
.navScrim{
  position: fixed;
  inset: 0;
  z-index: 10000;            /* above sticky header */
  background: rgba(0,0,0,.60);
  pointer-events: auto;
}

.navMobile{
  position: fixed;
  z-index: 10001;            /* above scrim */
}

/* make panel more solid */
.navMobile__panel{
  background: rgba(20,26,36,.92);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 28px 76px rgba(0,0,0,.62);
  backdrop-filter: blur(18px) saturate(140%);
}

[data-theme="light"] .navMobile__panel{
  background: rgba(255,255,255,.94);
  border-color: rgba(0,0,0,.12);
  box-shadow: 0 28px 76px rgba(0,0,0,.18);
}

/* lock scroll */
body.nav-open{ overflow: hidden; }
