/* =============================================================
   Yashmit Bhaverisetti — Portfolio
   Minimal monochrome "liquid glass" — ink & paper
   ============================================================= */

/* ===== FONTS ===== */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");

/* ===== DESIGN TOKENS ===== */
:root {
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --max: 1120px;
  --nav-h: 72px;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* The single functional accent — used only for "live" / "available" */
  --pop: #34d399;

  /* THEME: DARK (default) */
  --bg: #08080a;
  --bg-2: #0e0e11;
  --text: #f4f4f5;
  --text-soft: rgba(244, 244, 245, 0.6);
  --text-faint: rgba(244, 244, 245, 0.36);

  --glass: rgba(255, 255, 255, 0.04);
  --glass-2: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.1);
  --stroke: rgba(255, 255, 255, 0.1);
  --stroke-soft: rgba(255, 255, 255, 0.06);
  --sheen: rgba(255, 255, 255, 0.45);
  --shadow: 0 30px 70px -28px rgba(0, 0, 0, 0.8);
  --shadow-sm: 0 12px 30px -16px rgba(0, 0, 0, 0.7);
  --glare: rgba(255, 255, 255, 0.1);

  --cover-bg: linear-gradient(150deg, #1c1c20, #0c0c0e);
  --mono-faint: rgba(255, 255, 255, 0.05);
  --menu-bg: rgba(10, 10, 13, 0.94);
  --scrim: rgba(0, 0, 0, 0.5);

  --blob-1: rgba(255, 255, 255, 0.05);
  --blob-2: rgba(255, 255, 255, 0.035);
  --blob-3: rgba(255, 255, 255, 0.04);
}

body.light-theme {
  --bg: #f4f4f5;
  --bg-2: #ebebed;
  --text: #0b0b0d;
  --text-soft: rgba(11, 11, 13, 0.62);
  --text-faint: rgba(11, 11, 13, 0.4);

  --glass: rgba(255, 255, 255, 0.6);
  --glass-2: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.86);
  --stroke: rgba(11, 11, 13, 0.1);
  --stroke-soft: rgba(11, 11, 13, 0.06);
  --sheen: rgba(255, 255, 255, 0.95);
  --shadow: 0 30px 60px -30px rgba(20, 20, 25, 0.28);
  --shadow-sm: 0 14px 30px -18px rgba(20, 20, 25, 0.22);
  --glare: rgba(255, 255, 255, 0.7);

  --cover-bg: linear-gradient(150deg, #e7e7ea, #d3d3d7);
  --mono-faint: rgba(11, 11, 13, 0.06);
  --menu-bg: rgba(244, 244, 245, 0.96);
  --scrim: rgba(40, 40, 50, 0.35);

  --blob-1: rgba(0, 0, 0, 0.04);
  --blob-2: rgba(0, 0, 0, 0.03);
  --blob-3: rgba(0, 0, 0, 0.035);
}

/* ===== RESET ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.6s var(--ease), color 0.4s var(--ease);
}

a {
  color: inherit;
  text-decoration: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
ul {
  list-style: none;
}

::selection {
  background: var(--text);
  color: var(--bg);
}

/* ===== ATMOSPHERE (subtle monochrome glow) ===== */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
.bg-orbs::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 80% at 50% -10%,
    transparent 45%,
    rgba(0, 0, 0, 0.4) 100%
  );
}
body.light-theme .bg-orbs::after {
  background: radial-gradient(
    120% 80% at 50% -10%,
    transparent 50%,
    rgba(150, 150, 160, 0.18) 100%
  );
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  will-change: transform;
}
.orb--1 {
  width: 52vw;
  height: 52vw;
  background: var(--blob-1);
  top: -14vw;
  left: -10vw;
  animation: drift1 24s var(--ease) infinite alternate;
}
.orb--2 {
  width: 46vw;
  height: 46vw;
  background: var(--blob-2);
  top: 22vh;
  right: -14vw;
  animation: drift2 28s var(--ease) infinite alternate;
}
.orb--3 {
  width: 44vw;
  height: 44vw;
  background: var(--blob-3);
  bottom: -18vw;
  left: 26vw;
  animation: drift3 32s var(--ease) infinite alternate;
}
@keyframes drift1 {
  to {
    transform: translate(12vw, 8vh) scale(1.1);
  }
}
@keyframes drift2 {
  to {
    transform: translate(-8vw, 6vh) scale(1.08);
  }
}
@keyframes drift3 {
  to {
    transform: translate(6vw, -8vh) scale(1.12);
  }
}

/* ===== SCROLL PROGRESS ===== */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  z-index: 200;
  background: var(--text);
  transition: width 0.08s linear;
}

/* ===== LAYOUT HELPERS ===== */
.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}
.section {
  padding-block: clamp(4rem, 9vw, 7.5rem);
  position: relative;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.eyebrow i {
  font-size: 1rem;
  color: var(--text-soft);
}
.section__head {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section__title {
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-top: 1rem;
}
.section__sub {
  margin-top: 0.85rem;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  max-width: 56ch;
}

/* Monochrome "gradient" text — a quiet vertical fade, not rainbow */
.grad-text {
  background: linear-gradient(180deg, var(--text) 35%, var(--text-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== GLASS PRIMITIVE ===== */
.glass {
  background: var(--glass);
  border: 1px solid var(--stroke);
  -webkit-backdrop-filter: blur(30px) saturate(120%);
  backdrop-filter: blur(30px) saturate(120%);
  box-shadow: var(--shadow);
  position: relative;
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    160deg,
    var(--sheen),
    transparent 30%,
    transparent 70%,
    rgba(255, 255, 255, 0.06)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
  pointer-events: none;
}

/* ===== BUTTONS ===== */
.btn {
  --pad-y: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: var(--pad-y) 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
  isolation: isolate;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease),
    background 0.3s var(--ease), color 0.3s var(--ease), opacity 0.3s var(--ease);
  will-change: transform;
}
.btn i {
  font-size: 1.2rem;
}
.btn:hover {
  transform: translateY(-3px);
}
.btn:active {
  transform: translateY(-1px) scale(0.985);
}

/* Solid ink button — inverts against the page */
.btn--primary {
  color: var(--bg);
  background: var(--text);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  opacity: 0.88;
}
.btn--ghost {
  color: var(--text);
  background: var(--glass-2);
  border-color: var(--stroke);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.btn--ghost:hover {
  background: var(--glass-strong);
}

/* ===== NAVBAR (floating glass pill) ===== */
.nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(100% - 2rem, var(--max));
  height: 58px;
  padding: 0 0.6rem 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 999px;
  background: var(--glass-2);
  border: 1px solid var(--stroke);
  -webkit-backdrop-filter: blur(26px) saturate(120%);
  backdrop-filter: blur(26px) saturate(120%);
  box-shadow: var(--shadow-sm);
  transition: top 0.45s var(--ease), box-shadow 0.45s var(--ease),
    background 0.45s var(--ease);
}
.nav.scrolled {
  top: 10px;
  box-shadow: var(--shadow);
}
/* draggable, liquid feel (desktop) */
@media (pointer: fine) {
  .nav {
    cursor: grab;
  }
}
.nav.dragging {
  cursor: grabbing;
  box-shadow: var(--shadow);
}
.nav--return {
  transition: transform 0.65s var(--ease-spring), top 0.45s var(--ease),
    box-shadow 0.45s var(--ease), background 0.45s var(--ease);
}
.nav__link,
.nav__logo,
.theme-toggle,
.nav__cta,
.nav__burger {
  cursor: pointer;
}

/* Mobile menu scrim */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--scrim);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.nav-scrim.show {
  opacity: 1;
  visibility: visible;
}
body.menu-open {
  overflow: hidden;
}
.nav__logo {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.nav__logo .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text);
}
.nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.nav__link {
  position: relative;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav__link:hover {
  color: var(--text);
}
.nav__link.active {
  color: var(--text);
  background: var(--glass-strong);
  box-shadow: inset 0 0 0 1px var(--stroke);
}
/* icons + mobile-only items are only shown inside the phone menu */
.nav__link i,
.nav__sep,
.nav__mobile-only {
  display: none;
}
.nav__right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav__cta {
  padding: 0.55rem 1.1rem;
  font-size: 0.86rem;
}
.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: var(--glass);
  border: 1px solid var(--stroke);
  color: var(--text);
  font-size: 1.25rem;
  transition: transform 0.5s var(--ease-spring), background 0.3s var(--ease);
}
.theme-toggle:hover {
  transform: rotate(25deg) scale(1.06);
  background: var(--glass-strong);
}
.nav__burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  place-items: center;
  cursor: pointer;
  background: var(--glass);
  border: 1px solid var(--stroke);
  color: var(--text);
  font-size: 1.5rem;
}

/* ===== HERO ===== */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3rem;
  padding-top: calc(var(--nav-h) + 2rem);
  padding-bottom: 3rem;
}
.hero__avail {
  margin-bottom: 1.5rem;
}
.hero__avail .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pop);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% {
    box-shadow: 0 0 0 8px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}
.hero__title {
  font-size: clamp(2.7rem, 7vw, 4.7rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
}
.hero__title span {
  display: block;
}
.hero__role {
  margin-top: 1.4rem;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  font-weight: 500;
  color: var(--text);
}
.hero__role b {
  font-weight: 700;
}
.hero__desc {
  margin-top: 1.1rem;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  max-width: 50ch;
}
.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.6rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-soft);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.chip i {
  color: var(--text-soft);
  font-size: 1.05rem;
}
/* mobile-only quick highlights (hidden on desktop) */
.hero__quick {
  display: none;
}
.qf {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  flex: 1;
  padding: 0.85rem 0.5rem;
  border-radius: var(--radius-md);
  background: var(--glass);
  border: 1px solid var(--stroke);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.qf b {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.qf span {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}
.hero__social {
  display: flex;
  gap: 0.6rem;
  margin-top: 2rem;
}
.social-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  color: var(--text-soft);
  background: var(--glass);
  border: 1px solid var(--stroke);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: transform 0.4s var(--ease-spring), color 0.3s var(--ease),
    background 0.3s var(--ease);
}
/* playful invert on hover */
.social-icon:hover {
  transform: translateY(-4px);
  color: var(--bg);
  background: var(--text);
  border-color: var(--text);
}

/* Hero portrait */
.hero__media {
  display: grid;
  place-items: center;
  position: relative;
}
.portrait {
  position: relative;
  width: min(74%, 360px);
  aspect-ratio: 1;
}
.portrait__ring {
  position: absolute;
  inset: -6%;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent,
    var(--stroke) 20%,
    transparent 45%,
    var(--text-faint) 70%,
    transparent 90%
  );
  opacity: 0.8;
  animation: spin 18s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.portrait__glass {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  background: var(--glass-2);
  border: 1px solid var(--stroke);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}
.portrait__glass img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 4%;
}
.portrait__badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  border-radius: 14px;
  background: var(--glass-strong);
  border: 1px solid var(--stroke);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
  box-shadow: var(--shadow-sm);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  animation: float 5s var(--ease) infinite alternate;
}
.portrait__badge i {
  font-size: 1.2rem;
  color: var(--text);
}
.portrait__badge small {
  display: block;
  font-weight: 400;
  color: var(--text-faint);
  font-size: 0.7rem;
}
.portrait__badge--1 {
  top: 6%;
  left: -10%;
  animation-delay: 0s;
}
.portrait__badge--2 {
  bottom: 12%;
  right: -12%;
  animation-delay: 1s;
}
@keyframes float {
  to {
    transform: translateY(-12px);
  }
}

.scroll-cue {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-faint);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.scroll-cue .mouse {
  width: 22px;
  height: 36px;
  border: 1.5px solid var(--text-faint);
  border-radius: 12px;
  position: relative;
}
.scroll-cue .mouse::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 7px;
  border-radius: 2px;
  background: var(--text-soft);
  animation: wheel 1.6s var(--ease) infinite;
}
@keyframes wheel {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
}

/* ===== STATS STRIP ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  border-radius: var(--radius-lg);
  padding: 1.6rem;
}
.stat {
  text-align: center;
  padding: 0.5rem;
  position: relative;
}
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  height: 64%;
  width: 1px;
  background: var(--stroke);
}
.stat__num {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.stat__label {
  margin-top: 0.25rem;
  font-size: 0.82rem;
  color: var(--text-soft);
}

/* ===== ABOUT ===== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.about__photo {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  background: radial-gradient(
      115% 85% at 50% 16%,
      rgba(255, 255, 255, 0.12),
      transparent 58%
    ),
    var(--cover-bg);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  will-change: transform;
}
/* soft floor so the cut-out figure grounds instead of floating */
.about__photo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.28), transparent);
  pointer-events: none;
  z-index: 1;
}
body.light-theme .about__photo::after {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.12), transparent);
}
.about__photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  position: relative;
  z-index: 2;
}

/* About terminal card */
.term {
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  will-change: transform;
}
.term__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--stroke-soft);
  background: var(--glass-2);
}
.term__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--text-faint);
  opacity: 0.6;
}
.term__name {
  margin-left: auto;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas,
    monospace;
}
.term__body {
  margin: 0;
  padding: 1.5rem 1.6rem 1.7rem;
  overflow-x: auto;
}
.term__body code {
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas,
    monospace;
  font-size: clamp(0.82rem, 1.4vw, 0.98rem);
  line-height: 1.85;
  color: var(--text);
  white-space: pre;
}
/* monochrome "syntax" — distinguished by weight / opacity, not hue */
.term__body .k {
  font-weight: 700;
  color: var(--text);
}
.term__body .fn {
  font-weight: 600;
  color: var(--text);
}
.term__body .s {
  color: var(--text-soft);
}
.term__body .o {
  color: var(--text-faint);
}
.term__body .b {
  font-weight: 600;
  color: var(--text);
}
.term__body .c {
  color: var(--text-faint);
}
.term__body .cm {
  color: var(--text-faint);
  font-style: italic;
}
.term__body .cur {
  display: inline-block;
  width: 9px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--text);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.about__lead {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
}
.about__text {
  color: var(--text-soft);
  margin-bottom: 1rem;
}
.about__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.6rem;
}
.fact {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: var(--glass);
  border: 1px solid var(--stroke);
}
.fact__k {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.fact__v {
  font-weight: 700;
  margin-top: 0.2rem;
  letter-spacing: -0.01em;
}

/* ===== EXPERIENCE TIMELINE ===== */
.timeline {
  display: grid;
  gap: 1.1rem;
}
.tl {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  padding: 1.6rem 1.8rem;
  border-radius: var(--radius-lg);
  transition: transform 0.5s var(--ease), background 0.4s var(--ease);
}
.tl:hover {
  transform: translateY(-4px);
}
.tl__when {
  color: var(--text-soft);
  font-size: 0.9rem;
}
.tl__when .role {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
}
.tl__org {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.tl__org i {
  color: var(--text-soft);
}
.tl__place {
  color: var(--text-faint);
  font-size: 0.85rem;
  margin-bottom: 0.85rem;
}
.tl__points {
  display: grid;
  gap: 0.5rem;
}
.tl__points li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-soft);
  font-size: 0.96rem;
}
.tl__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-soft);
}
.tl__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

/* ===== SKILLS ===== */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}
.skillcat {
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  transition: transform 0.5s var(--ease);
}
.skillcat:hover {
  transform: translateY(-4px);
}
.skillcat__head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}
.skillcat__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  color: var(--bg);
  background: var(--text);
}
.skillcat__title {
  font-weight: 700;
  letter-spacing: -0.01em;
}
.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.skill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  background: var(--glass-2);
  border: 1px solid var(--stroke);
  transition: transform 0.35s var(--ease-spring), background 0.3s var(--ease),
    color 0.3s var(--ease);
}
.skill:hover {
  transform: translateY(-3px);
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.skill:hover i,
.skill:hover svg {
  color: var(--bg);
}
.skill i,
.skill svg {
  font-size: 1.2rem;
  width: 1.2rem;
  height: 1.2rem;
  color: var(--text-soft);
  transition: color 0.3s var(--ease);
}

/* ===== PROJECTS ===== */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.3rem;
}
.card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  will-change: transform;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    220px circle at var(--mx, 50%) var(--my, 0%),
    var(--glare),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
  z-index: 3;
}
.card:hover::after {
  opacity: 1;
}
.card:hover {
  box-shadow: var(--shadow);
}
.card__cover {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--stroke-soft);
}
.card__cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cover-bg);
}
.card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 120% at 80% 0%,
    rgba(255, 255, 255, 0.08),
    transparent 55%
  );
}
.card__glyph {
  position: relative;
  z-index: 2;
  font-size: 3.2rem;
  color: var(--text);
  opacity: 0.92;
  transition: transform 0.6s var(--ease-spring);
}
.card:hover .card__glyph {
  transform: scale(1.12) rotate(-4deg);
}
.card__mono {
  position: absolute;
  inset: 0;
  z-index: 1;
  font-size: 11rem;
  font-weight: 900;
  color: var(--mono-faint);
  display: grid;
  place-items: center;
  letter-spacing: -0.05em;
  user-select: none;
}
.card__status {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  background: var(--glass-strong);
  border: 1px solid var(--stroke);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.card__status .live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pop);
  box-shadow: 0 0 8px var(--pop);
}
.card__body {
  padding: 1.5rem 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card__title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.card__desc {
  margin-top: 0.55rem;
  color: var(--text-soft);
  font-size: 0.95rem;
  flex: 1;
}
.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.1rem;
}
.tag {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-soft);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--glass-2);
  border: 1px solid var(--stroke);
}
.card__links {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.3rem;
}
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  background: var(--glass-2);
  border: 1px solid var(--stroke);
  transition: transform 0.35s var(--ease-spring), background 0.3s var(--ease),
    color 0.3s var(--ease), opacity 0.3s var(--ease);
}
.card__link i {
  font-size: 1.1rem;
}
.card__link:hover {
  transform: translateY(-2px);
  background: var(--glass-strong);
}
.card__link--primary {
  color: var(--bg);
  background: var(--text);
  border-color: var(--text);
}
.card__link--primary:hover {
  opacity: 0.88;
  background: var(--text);
}

/* ===== LEADERSHIP ===== */
.lead__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.lead {
  padding: 1.8rem;
  border-radius: var(--radius-lg);
  transition: transform 0.5s var(--ease);
}
.lead:hover {
  transform: translateY(-6px);
}
.lead__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  color: var(--bg);
  margin-bottom: 1.1rem;
  background: var(--text);
}
.lead__title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.lead__role {
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.15rem;
}
.lead__when {
  color: var(--text-faint);
  font-size: 0.82rem;
  margin-bottom: 0.9rem;
}
.lead__points {
  display: grid;
  gap: 0.5rem;
}
.lead__points li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}
.lead__points li i {
  position: absolute;
  left: 0;
  top: 0.18em;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* ===== CONTACT / CTA ===== */
.contact {
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}
.contact h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.contact p {
  color: var(--text-soft);
  max-width: 50ch;
  margin: 1rem auto 0;
  font-size: 1.05rem;
}
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 2rem;
}

/* ===== FOOTER ===== */
.footer {
  padding: 3rem 0 2.5rem;
  border-top: 1px solid var(--stroke-soft);
  margin-top: 5rem;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.footer__brand {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.footer__brand span {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--text-faint);
}
.footer__social {
  display: flex;
  gap: 0.55rem;
}
.footer__social .social-icon {
  width: 42px;
  height: 42px;
  font-size: 1.25rem;
}
.footer__copy {
  width: 100%;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.82rem;
  margin-top: 2rem;
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===== DEVICE-TILT PARALLAX + LIQUID LIGHT (phones) — DISABLED =====
   Felt awkward; turned off for now (JS no longer adds .tilt-on, so this is
   already inert). Kept commented out so we can refine and re-enable later.
   Driven by --tx / --ty (set by JS from the gyroscope, -1..1). */
:root {
  --tx: 0;
  --ty: 0;
}
/* --- effects disabled; uncomment to restore ---
   1 — aurora parallaxes behind everything (deep layer, big move)
   .tilt-on .bg-orbs {
     transform: translate3d(
       calc(var(--tx) * 55px),
       calc(var(--ty) * 55px),
       0
     );
     transition: transform 0.05s linear;
   }
   2 — hero copy drifts the other way (foreground depth)
   .tilt-on .hero__copy {
     transform: translate3d(calc(var(--tx) * -14px), calc(var(--ty) * -14px), 0);
   }
   3 — the portrait itself catches a bright specular glare that sweeps with tilt.
   .tilt-on .portrait__glass::after {
     content: "";
     position: absolute;
     inset: 0;
     border-radius: 50%;
     pointer-events: none;
     z-index: 2;
     mix-blend-mode: screen;
     background: radial-gradient(
       60% 60% at calc(50% + var(--tx) * 55%) calc(38% + var(--ty) * 55%),
       rgba(255, 255, 255, 0.55),
       rgba(255, 255, 255, 0.12) 35%,
       transparent 62%
     );
   }
   4 — liquid-glass light slides across every glass tile as you tilt
   .tilt-on .qf,
   .tilt-on .term,
   .tilt-on .skillcat,
   .tilt-on .lead {
     background-image: radial-gradient(
       70% 70% at calc(50% + var(--tx) * 70%) calc(32% + var(--ty) * 70%),
       rgba(255, 255, 255, 0.32),
       rgba(255, 255, 255, 0.08) 40%,
       transparent 66%
     );
   }
   5 — project cards glint toward the light as you tilt
   .tilt-on .card::after {
     opacity: 1;
     background: radial-gradient(
       260px circle at calc(50% + var(--tx) * 55%) calc(45% + var(--ty) * 55%),
       var(--glare),
       transparent 60%
     );
   }
*/

/* ===== RESPONSIVE ===== */
@media (max-width: 940px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
    min-height: auto;
  }
  .hero__chips,
  .hero__actions,
  .hero__social {
    justify-content: center;
  }
  .hero__desc {
    margin-inline: auto;
  }
  .hero__media {
    order: -1;
  }
  .about__grid {
    grid-template-columns: 1fr;
  }
  .about__photo {
    max-width: 420px;
    margin-inline: auto;
  }
  .skills__grid,
  .projects__grid {
    grid-template-columns: 1fr;
  }
  .lead__grid {
    grid-template-columns: 1fr;
  }
  .tl {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .scroll-cue {
    display: none;
  }
}

@media (max-width: 760px) {
  .nav__list {
    position: fixed;
    top: calc(var(--nav-h) + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(-12px);
    flex-direction: column;
    gap: 0.25rem;
    width: min(100% - 1.5rem, 360px);
    padding: 0.7rem;
    border-radius: var(--radius-lg);
    background: var(--menu-bg);
    border: 1px solid var(--stroke);
    -webkit-backdrop-filter: blur(26px) saturate(140%);
    backdrop-filter: blur(26px) saturate(140%);
    box-shadow: var(--shadow);
    z-index: 5;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease),
      visibility 0.4s;
  }
  .nav__list.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
  .nav__link {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-align: left;
    font-size: 1.02rem;
    font-weight: 500;
    padding: 0.9rem 1rem;
    border-radius: 14px;
  }
  .nav__link i {
    display: inline-flex;
    justify-content: center;
    width: 1.5rem;
    font-size: 1.35rem;
    color: var(--text-soft);
  }
  .nav__link.active i {
    color: var(--text);
  }
  .nav__sep {
    display: block;
    height: 1px;
    background: var(--stroke);
    margin: 0.5rem 0.6rem;
  }
  .nav__mobile-only {
    display: block;
  }
  .nav__link--cta {
    justify-content: center;
    background: var(--text);
    color: var(--bg);
    font-weight: 600;
  }
  .nav__link--cta i {
    color: var(--bg);
  }
  .nav__cta {
    display: none;
  }
  .nav__burger {
    display: grid;
  }
  /* floating badges crowd the hero on phones — hide them */
  .portrait__badge {
    display: none;
  }

  /* cleaner, scannable hero on phones — key info visible on load */
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-h) + 1rem);
    padding-bottom: 2rem;
    gap: 0.9rem;
  }
  /* push the profile circle down, clear of the nav */
  .hero__media {
    margin-top: 9%;
  }
  .portrait {
    width: min(46%, 185px);
  }
  .hero__avail {
    margin-bottom: 1rem;
  }
  /* "Hi, I'm Yashmit." on a single line */
  .hero__title {
    font-size: clamp(1.9rem, 8.6vw, 2.5rem);
  }
  .hero__title span {
    display: inline;
  }
  .hero__role {
    margin-top: 0.85rem;
    font-size: 1.05rem;
  }
  .hero__desc,
  .hero__chips {
    display: none;
  }
  .hero__quick {
    display: flex;
    gap: 0.55rem;
    margin-top: 1.2rem;
  }
  /* LinkedIn + Résumé share a row; View my work drops below (on scroll) */
  .hero__actions {
    margin-top: 1.2rem;
    gap: 0.6rem;
  }
  .hero__actions .btn {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 0.75rem;
  }
  .btn__pre {
    display: none;
  }
  .hero__actions .hero__action-more {
    flex: 0 0 100%;
  }
  /* hero already surfaces the key numbers on mobile — avoid repeating them */
  section[aria-label="Highlights"] {
    display: none;
  }
}

@media (max-width: 560px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .stat + .stat:nth-child(odd)::before {
    display: none;
  }
  .about__facts {
    grid-template-columns: 1fr;
  }
  .card__links {
    flex-direction: column;
  }
  .card__link {
    justify-content: center;
  }
}
