/* ========================================
   DESIGN TOKENS
   ======================================== */
:root {
  /* --- Spacing Scale (8pt grid) --- */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --space-4xl: 128px;

  /* --- Backgrounds --- */
  --bg: #07070f;
  --bg-elevated: #0f0f1a;
  --bg-card: #0d0d18;

  /* --- Glass --- */
  --glass: rgba(14, 14, 24, 0.55);
  --glass-strong: rgba(20, 20, 30, 0.7);

  /* --- Borders --- */
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.14);

  /* --- Text --- */
  --text: #EDEDED;
  --text-secondary: #6b7280;
  --text-tertiary: #3f4452;

  /* --- Accent --- */
  --accent: #7c6df0;
  --accent-hover: #9585ff;
  --accent-glow: rgba(124, 109, 240, 0.35);

  /* --- Green --- */
  --green: #34d399;
  --green-glow: rgba(52, 211, 153, 0.35);

  /* --- Typography --- */
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* --- Layout --- */
  --max-w: 1100px;
  --max-w-narrow: 900px;

  /* --- Radius --- */
  --radius-card: 14px;
  --radius-lg: 14px;
  --radius-pill: 100px;
  --radius-btn: 0px;
  --radius-sm: 8px;

  /* --- Easing --- */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

/* Grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  background-repeat: repeat;
  opacity: 0.028;
  mix-blend-mode: overlay;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

/* ========================================
   LAYOUT
   ======================================== */
.container {
  width: min(var(--max-w), calc(100% - 2rem));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ========================================
   MATHEMATICAL GRID
   ======================================== */

/* Heavy Top Rule — tight header pair, massive content gap */
.section-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  /* 16px — eyebrow + heading tight */
}

.section-content-gap {
  margin-top: var(--space-2xl);
  /* 64px — massive gap before content */
}

/* Bento Grid Foundation */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: var(--space-sm);
  /* 16px */
}

.bento-span-2col {
  grid-column: span 2;
}

.bento-span-2row {
  grid-row: span 2;
}

.section {
  padding: clamp(56px, 7vw, 88px) 0;
}

/* ========================================
   SECTION LABELS & HEADINGS
   ======================================== */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 700px;
  margin-top: 0;
  margin-bottom: 48px;
}

/* Projects + Background eyebrows — same size as global, no override */
#background .section-eyebrow,
#projects .section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ========================================
   GLASS CARD
   ======================================== */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  border: none;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hover);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

/* ========================================
   FLOATING NAV — DYNAMIC ISLAND
   ======================================== */
.floating-nav {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px) scale(0.95);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.floating-nav.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.nav-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(14, 14, 24, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 8px;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Brand element */
.nav-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s var(--ease);
  z-index: 1;
}

.nav-brand:hover {
  background: var(--accent-hover);
  transform: scale(1.08);
}

.nav-brand-text {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* Separator */
.nav-sep {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 4px;
  flex-shrink: 0;
}

/* Sliding active indicator */
.nav-active-pill {
  position: absolute;
  top: 6px;
  left: 8px;
  height: calc(100% - 12px);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
  transition: width 0.35s var(--ease), transform 0.35s var(--ease);
  z-index: 0;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  white-space: nowrap;
  z-index: 1;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link.active {
  color: var(--text);
}

/* Icon styling */
.nav-icon {
  flex-shrink: 0;
  transition: color 0.2s;
}

.nav-label {
  transition: opacity 0.2s var(--ease), max-width 0.3s var(--ease), margin 0.3s var(--ease);
  overflow: hidden;
}

/* CTA button */
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  margin-left: 4px;
  border-radius: 0;
}

.nav-cta:hover {
  background: var(--accent-hover) !important;
}

.nav-cta .nav-icon {
  color: #fff;
}

/* ========================================
   NAV — ICON-ONLY MOBILE
   ======================================== */
@media (max-width: 640px) {
  .floating-nav {
    top: 16px;
  }

  .nav-label {
    max-width: 0;
    opacity: 0;
    margin: 0;
  }

  .nav-link {
    padding: 10px;
  }

  .nav-cta {
    margin-left: 4px;
  }

  .nav-sep {
    margin: 0 2px;
  }
}

/* ========================================
   NAV — DESKTOP EXPAND ON HOVER
   ======================================== */
@media (min-width: 641px) {
  .nav-pill:hover .nav-label {
    max-width: 120px;
    opacity: 1;
  }
}

/* ========================================
   HERO — CINEMATIC FULL-SCREEN
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: clamp(48px, 6vw, 88px);
  align-items: center;
  width: min(var(--max-w), calc(100% - 3rem));
  margin: 0 auto;
  padding: clamp(80px, 10vw, 120px) 0 clamp(64px, 8vw, 100px);
}

/* Photo column */
.hero-photo-col {
  display: flex;
  justify-content: center;
}

.hero-photo-wrap {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin-left: auto;
}

.hero-photo-card {
  position: relative;
  z-index: 1;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4/5;
  width: 100%;
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.hero-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.7s var(--ease);
}

.hero-photo-card:hover .hero-photo-img {
  transform: scale(1.04);
}

.hero-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 8, 16, 0.8) 0%, rgba(8, 8, 16, 0.08) 45%, transparent 70%);
  pointer-events: none;
}

.hero-availability {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 16px;
  border: 1px solid rgba(52, 211, 153, 0.2);
  background: rgba(52, 211, 153, 0.06);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--green);
  letter-spacing: 0.04em;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    box-shadow: 0 0 0 0 var(--green-glow);
  }

  50% {
    box-shadow: 0 0 0 6px transparent;
  }
}

/* Text column */
.hero-text-col {
  display: flex;
  flex-direction: column;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  overflow: hidden;
}

.hero-eyebrow-line {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
  transform: scaleX(0);
  transform-origin: left center;
}

.hero-eyebrow-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(52px, 9vw, 96px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
  user-select: none;
}

.hero-name-first {
  display: block;
  color: var(--text);
}

.hero-name-last {
  display: block;
  background: linear-gradient(135deg, var(--accent) 0%, #a78bfa 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200%;
  animation: name-shimmer 4s ease-in-out infinite;
}

@keyframes name-shimmer {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.hero-tagline {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.78;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 28px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
}

.hero-meta-sep {
  color: var(--border-hover);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  position: relative;
  letter-spacing: 0.01em;
}

.hero-btn--primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.hero-btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.hero-btn--secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hover);
}

.hero-btn--secondary:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
}

.hero-scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), transparent);
  animation: scroll-line 1.8s ease-in-out infinite;
}

@keyframes scroll-line {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

.hero-scroll-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* ========================================
   ABOUT
   ======================================== */
.about {
  padding: clamp(56px, 7vw, 96px) 0;
}

.about-top {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 40px;
}

.about-heading-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-heading {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

.about-heading-dot {
  color: var(--accent);
}

.about-bio-col {
  display: flex;
  flex-direction: column;
  padding-top: 6px;
}

.about-bio-text {
  font-size: 16px;
  line-height: 1.82;
  color: var(--text-secondary);
}

.about-stack {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-stack-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  border-bottom: 1px solid var(--border);
  min-height: 64px;
}

.about-stack-row:first-child {
  border-top: 1px solid var(--border);
}

.about-stack-row-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0 20px;
  border-right: 1px solid var(--border);
  height: 100%;
  display: flex;
  align-items: center;
  background: rgba(124, 109, 240, 0.04);
}

.about-stack-row-items {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 8px;
  flex-wrap: wrap;
}

.about-stack-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: background 0.2s var(--ease), border-color 0.2s;
  cursor: default;
}

.about-stack-item:hover {
  background: var(--bg-elevated);
  border-color: var(--border-hover);
}

.about-stack-item i {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.about-stack-item-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.about-stack-item span {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}

@media (max-width: 860px) {
  .about-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-bio-col {
    padding-top: 0;
  }

  .about-stack-row {
    grid-template-columns: 100px 1fr;
  }
}

@media (max-width: 480px) {
  .about-stack-row {
    grid-template-columns: 1fr;
  }

  .about-stack-row-label {
    border-right: none;
    border-bottom: 1px solid var(--border);
    height: auto;
    padding: 10px 16px;
  }
}

.bento-card {
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--bg-card);
  position: relative;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.bento-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
  pointer-events: none;
}

.bento-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.bento-card-inner {
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bento-card-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}

/* STACK — inside right column */

.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.stack-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 6px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  transition: all 0.25s var(--ease);
  cursor: default;
}

.stack-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.stack-item i {
  font-size: 26px;
  display: block;
  line-height: 1;
  transition: transform 0.3s var(--ease);
}

.stack-item:hover i {
  transform: scale(1.15);
}

.stack-grid .stack-item {
  border-radius: 0 !important;
}

.devicon-nextjs-plain {
  color: #f0f0f0 !important;
}

.stack-item span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
  text-align: center;
}

.bento-location .bento-card-inner,
.bento-location-inner {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 20px 24px;
}

.bento-location-pin {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  flex-shrink: 0;
  animation: pin-pulse 3s ease-in-out infinite;
}

@keyframes pin-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.15);
  }

  50% {
    box-shadow: 0 0 0 8px transparent;
  }
}

.bento-location-city {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.bento-location-country {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ========================================
   PROJECTS — HOVER REVEAL EDITORIAL LIST
   ======================================== */
.project-list {
  display: flex;
  flex-direction: column;
}

.project-row {
  display: block;
  padding: var(--space-xl) 0;
  /* 48px */
  border-bottom: 1px solid var(--border);
  position: relative;
  cursor: pointer;
}

.project-row:first-child {
  border-top: 1px solid var(--border);
}

.project-row-inner {
  display: grid;
  grid-template-columns: 140px 1fr 80px;
  gap: var(--space-md);
  align-items: start;
}

.project-thumb {
  width: 140px;
  height: 90px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.project-row:hover .project-thumb img {
  transform: scale(1.05);
}

.project-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.project-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-btn);
  font-weight: 500;
}

.project-badge--live {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: var(--green);
}

.project-badge--type {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-tertiary);
}

.project-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #8892a8;
  margin-bottom: var(--space-sm);
  transition: color 0.35s var(--ease);
}

.project-row:hover .project-title {
  color: var(--text);
}

.project-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 650px;
  margin-bottom: 12px;
}

.project-metric {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-metric::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.project-tags span {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  color: var(--text-tertiary);
}

.project-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.project-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  transition: all 0.2s var(--ease);
}

.project-links a:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.04);
}

.project-links a svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* Arrow with stretching line */
.project-arrow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  color: var(--text-tertiary);
  transition: color 0.35s var(--ease);
}

.project-arrow-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.project-row:hover .project-arrow-text {
  opacity: 1;
  transform: translateX(0);
}

.project-row:hover .project-arrow {
  color: var(--text);
}

.project-arrow-line {
  display: block;
  width: 0;
  height: 1px;
  background: var(--text-tertiary);
  transition: width 0.4s var(--ease), background 0.35s var(--ease);
}

.project-row:hover .project-arrow-line {
  width: 40px;
  background: var(--text);
}

/* Floating preview image */
.project-preview {
  position: fixed;
  width: 300px;
  height: 200px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  pointer-events: none;
  z-index: 90;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  border: 1px solid var(--border);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.project-preview.active {
  opacity: 1;
  transform: scale(1);
}

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

/* ========================================
   BACKGROUND — EXPERIENCE & EDUCATION
   ======================================== */

/* --- Experience Card --- */
.bg-exp-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.bg-exp-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.015) 0%, transparent 50%);
  pointer-events: none;
}

.bg-exp-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
}

.bg-exp-left {
  background: rgba(124, 109, 240, 0.04);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 32px;
}

.bg-exp-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}

.bg-exp-right {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bg-exp-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bg-exp-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.bg-exp-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.bg-exp-company {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.bg-exp-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.bg-exp-role-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bg-exp-role {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
}

.bg-exp-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-btn);
  background: rgba(124, 109, 240, 0.1);
  border: 1px solid rgba(124, 109, 240, 0.25);
  color: var(--accent);
  font-weight: 500;
}

.bg-exp-context {
  font-size: 13px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.bg-exp-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 620px;
}

/* Contribution list */
.bg-exp-contributions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bg-contrib-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.bg-contrib-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 8px;
}

/* Tech tags inside experience card */
.bg-exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

.bg-exp-tags span {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  color: var(--text-tertiary);
  transition: border-color 0.2s, color 0.2s;
}

.bg-exp-tags span:hover {
  border-color: var(--border-hover);
  color: var(--text-secondary);
}

/* --- Education Grid --- */
.bg-edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.bg-edu-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

.bg-edu-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.015) 0%, transparent 50%);
  pointer-events: none;
}

.bg-edu-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.bg-edu-card--accent {
  border-color: rgba(124, 109, 240, 0.18);
}

.bg-edu-card--accent:hover {
  border-color: rgba(124, 109, 240, 0.35);
  box-shadow: 0 8px 32px rgba(124, 109, 240, 0.1);
}

.bg-edu-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(124, 109, 240, 0.08);
  border: 1px solid rgba(124, 109, 240, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 4px;
}

.bg-edu-card:not(.bg-edu-card--accent) .bg-edu-icon {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text-secondary);
}

.bg-edu-year {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.bg-edu-card:not(.bg-edu-card--accent) .bg-edu-year {
  color: var(--text-secondary);
}

.bg-edu-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.bg-edu-org {
  font-size: 14px;
  color: var(--text-secondary);
}

.bg-edu-detail {
  font-size: 13px;
  color: var(--text-tertiary);
  font-style: italic;
}

.bg-edu-cgpa {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* --- Mobile --- */
@media (max-width: 860px) {
  .bg-exp-card {
    grid-template-columns: 1fr;
  }

  .bg-exp-left {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 16px;
    justify-content: flex-start;
  }

  .bg-exp-label {
    writing-mode: horizontal-tb;
    transform: none;
  }

  .bg-exp-right {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .bg-edu-grid {
    grid-template-columns: 1fr;
  }

  .bg-exp-right {
    padding: 20px;
  }
}

/* ========================================
   CONTACT
   ======================================== */
.contact-subtext {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  margin-top: 12px;
  margin-bottom: 40px;
  line-height: 1.75;
}

/* --- Primary CTA Card --- */
.contact-primary {
  background: var(--bg-card);
  border: 1px solid rgba(124, 109, 240, 0.2);
  border-radius: var(--radius-card);
  padding: 36px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.contact-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(124, 109, 240, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.contact-primary:hover {
  border-color: rgba(124, 109, 240, 0.35);
  box-shadow: 0 8px 40px rgba(124, 109, 240, 0.08);
}

.contact-primary-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-availability {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--green);
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border: 1px solid rgba(52, 211, 153, 0.2);
  background: rgba(52, 211, 153, 0.06);
}

.contact-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.contact-location svg {
  flex-shrink: 0;
}

.contact-primary-email {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.contact-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s var(--ease);
  align-self: flex-start;
  letter-spacing: 0.01em;
}

.contact-primary-btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.contact-primary-btn svg {
  flex-shrink: 0;
}

/* --- Secondary Cards --- */
.contact-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-card--secondary {
  padding: 28px;
  text-align: left;
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.contact-card--secondary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.015) 0%, transparent 50%);
  pointer-events: none;
}

.contact-card--secondary svg {
  color: var(--text-secondary);
  transition: color 0.25s;
}

.contact-card--secondary h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.contact-card--secondary p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.contact-card-arrow {
  font-size: 16px;
  color: var(--text-tertiary);
  transition: color 0.25s, transform 0.25s var(--ease);
  margin-top: 4px;
}

.contact-card--secondary:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.contact-card--secondary:hover svg {
  color: var(--accent);
}

.contact-card--secondary:hover .contact-card-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* --- Footer Note --- */
.contact-footer-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  text-align: center;
}

/* --- Mobile --- */
@media (max-width: 640px) {
  .contact-primary {
    padding: 24px;
  }

  .contact-primary-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-secondary {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   PROJECT MODALS — SIDE DRAWER
   ======================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 800px;
  height: 100vh;
  background: var(--bg-elevated);
  border-left: 1px solid var(--border);
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
}

.modal-overlay.active .modal {
  transform: translateX(0);
}

.modal::-webkit-scrollbar {
  width: 6px;
}

.modal::-webkit-scrollbar-track {
  background: transparent;
}

.modal::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.modal-close {
  position: sticky;
  top: 16px;
  float: right;
  margin: 16px 16px 0 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}

.modal-close:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.08);
}

/* Cover image — full bleed at top */
.modal-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

.modal-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  cursor: zoom-in;
  transition: transform 0.4s var(--ease);
}

.modal-cover img:hover {
  transform: scale(1.02);
}

/* Lightbox overlay */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
  cursor: zoom-out;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.8);
  transform: scale(0.94);
  transition: transform 0.35s var(--ease);
}

.lightbox.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Header below cover */
.modal-header {
  padding: var(--space-xl) var(--space-lg) var(--space-md);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-header>* {
  max-width: 680px;
  width: 100%;
  text-align: left;
}

.modal-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.modal-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.modal-header-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.modal-header-tags span {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

/* Content column — centered, max-width 600px */
.modal-body {
  padding: var(--space-lg) var(--space-lg) var(--space-2xl);
  max-width: 680px;
  margin: 0 auto;
}

.modal-section {
  margin-bottom: var(--space-lg);
}

.modal-section:last-child {
  margin-bottom: 0;
}

.modal-section h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

.modal-section p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.modal-outcome-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.modal-outcome-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
  font-weight: 500;
}

.modal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-list li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 18px;
  position: relative;
}

.modal-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.modal-list li strong {
  color: var(--text);
  font-weight: 500;
}

.modal-footer {
  padding: var(--space-md) var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--border);
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.modal-footer .btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  font-size: 13px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  text-decoration: none;
}

.modal-footer .btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.modal-footer .btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.modal-footer .btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.modal-footer .btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-hover);
}

.modal-footer .btn-outline:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

/* Mobile: bottom sheet */
@media (max-width: 920px) {
  .modal {
    max-width: none;
    height: 92vh;
    border-left: none;
    border-top: 1px solid var(--border);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    top: auto;
    bottom: 0;
    transform: translateY(100%);
  }

  .modal-overlay.active .modal {
    transform: translateY(0);
  }

  .modal-overlay {
    align-items: flex-end;
  }

  .modal-header {
    padding: var(--space-lg) var(--space-md) var(--space-md);
  }

  .modal-body {
    padding: var(--space-md);
  }

  .modal-footer {
    padding: var(--space-md);
  }

  .modal-cover {
    aspect-ratio: 16 / 10;
  }
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ========================================
   GSAP INITIAL STATES
   ======================================== */
.anim-item {
  opacity: 0;
  transform: translateY(30px);
}

/* ========================================
   PAGE LOADER
   ======================================== */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99999;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
}

.page-loader-bar {
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
}

/* ========================================
   CUSTOM CURSOR
   ======================================== */
@media (pointer: fine) {
  * {
    cursor: none !important;
  }

  .cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--text);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s var(--ease), height 0.2s var(--ease), background 0.2s;
    will-change: transform;
  }

  .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.35s var(--ease), height 0.35s var(--ease),
      border-color 0.25s, background 0.25s;
    will-change: transform;
  }

  /* Hover state — links, buttons */
  .cursor-dot.is-hovering {
    width: 10px;
    height: 10px;
    background: var(--accent);
  }

  .cursor-ring.is-hovering {
    width: 56px;
    height: 56px;
    border-color: rgba(124, 109, 240, 0.45);
    background: rgba(124, 109, 240, 0.06);
  }

  /* Click state */
  .cursor-dot.is-clicking {
    width: 4px;
    height: 4px;
  }

  .cursor-ring.is-clicking {
    width: 28px;
    height: 28px;
  }
}

/* Hide cursor elements on touch devices */
@media (pointer: coarse) {

  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

@media (max-width: 920px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-right {
    position: static;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .project-row-inner {
    grid-template-columns: 1fr;
  }

  .project-thumb {
    display: none;
  }

  .project-arrow {
    display: none;
  }

  .project-preview {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: clamp(72px, 10vw, 90px) 0 clamp(40px, 6vw, 56px);
    gap: 36px;
  }

  .hero-photo-col {
    order: 2;
  }

  .hero-photo-wrap {
    max-width: 200px;
    margin: 0 auto;
  }

  .hero-name {
    font-size: clamp(40px, 11vw, 58px);
  }

  .hero-text-col {
    order: 1;
    align-items: center;
    text-align: center;
  }

  .hero-eyebrow {
    justify-content: center;
  }

  .hero-tagline {
    text-align: center;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-meta {
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .bento-location .bento-card-inner {
    flex-direction: row;
    justify-content: center;
  }

  .stack-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .section {
    padding: 56px 0;
  }

  .timeline-card {
    padding: 24px;
  }

  .edu-timeline-line {
    left: 20px;
  }

  .edu-item {
    grid-template-columns: 40px 1fr;
  }

  .edu-item.left .edu-item-content,
  .edu-item.right .edu-item-content {
    grid-column: 2;
    text-align: left;
    padding-left: 16px;
  }

  .edu-item.left .edu-item-dot,
  .edu-item.right .edu-item-dot {
    grid-column: 1;
    justify-self: center;
  }
}

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .anim-item {
    opacity: 1;
    transform: none;
  }
}