/* ============================================================
   DESIGN SYSTEM — Arka Datta Portfolio
   ============================================================ */
:root {
  --bg:            #0a0a0a;
  --bg-color:      #0a0a0a;
  --text:          #f0ede8;
  --text-color:    #f0ede8;
  --muted:         #888888;
  --text-muted:    #888888;
  --accent:        #00f0ff;
  --accent-color:  var(--accent);
  --border:        #1e1e1e;
  --border-color:  #1e1e1e;
  --card-bg:       #111111;
  --glass-bg:      rgba(255, 255, 255, 0.05);
  --glass-border:  rgba(255, 255, 255, 0.10);
  --line:          rgba(255, 255, 255, 0.10);
  --font-primary:  'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif:    'Playfair Display', Georgia, serif;
  --speed:         0.3s;
  --transition-speed: 0.3s;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-primary);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

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

/* ============================================================
   SCROLL-REVEAL UTILITY
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all .9s cubic-bezier(.165, .84, .44, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 4%;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 100;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.site-header.scrolled {
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text);
  z-index: 101;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-links a {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  padding: 0.45rem 1.2rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--speed) ease, background var(--speed) ease, border-color var(--speed) ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.nav-links .btn-sm {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.3px;
}

.nav-links .btn-sm:hover {
  background: rgba(0, 240, 255, 0.82);
  color: var(--bg);
  border-color: var(--accent);
}

/* ============================================================
   HAMBURGER BUTTON
   ============================================================ */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  z-index: 200;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   MOBILE NAV DRAWER
   ============================================================ */
.nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: rgba(8, 8, 8, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid var(--glass-border);
  padding: 6rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  z-index: 150;
  transition: right 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-drawer.open { right: 0; }

.nav-drawer a {
  padding: 1rem;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 500;
  border-bottom: 1px solid var(--glass-border);
  transition: color var(--speed) ease, padding-left var(--speed) ease;
  display: block;
}

.nav-drawer a:hover {
  color: var(--text);
  padding-left: 1.5rem;
}

.nav-drawer a.drawer-contact {
  margin-top: 1.5rem;
  text-align: center;
  background: var(--accent);
  color: var(--bg);
  border-radius: 30px;
  font-weight: 700;
  border: none;
  padding: 0.85rem 1rem;
}

.nav-drawer a.drawer-contact:hover {
  background: rgba(0, 240, 255, 0.85);
  padding-left: 1rem;
}

.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 149;
  backdrop-filter: blur(2px);
}

.drawer-overlay.visible { display: block; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  min-height: 95vh;
  border-radius: 0 0 60px 60px;
  overflow: hidden;
  position: relative;
  --hero-parallax: 0px;
}

/* Inset vignette — fades in on scroll */
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 115%, rgba(0, 0, 0, 0.85) 0%, transparent 65%);
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hero-section.hero-active::after { opacity: 1; }

/* Layered radial background */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 75% 50%, rgba(0, 240, 255, 0.11) 0%, transparent 58%),
    radial-gradient(ellipse at 25% 70%, rgba(0, 0, 0, 0.6)       0%, transparent 70%),
    var(--bg);
  z-index: 0;
}

/* Radar / sensor halo — on-theme motion */
.hero-halo {
  position: absolute;
  top: 50%;
  left: 73%;
  transform: translate(-50%, -50%);
  width: clamp(280px, 48vw, 580px);
  height: clamp(280px, 48vw, 580px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.18) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
  animation: radar-pulse 4.8s ease-in-out infinite;
}

@keyframes radar-pulse {
  0%   { transform: translate(-50%, -50%) scale(0.88); opacity: 0.55; }
  50%  { transform: translate(-50%, -50%) scale(1.04); opacity: 1;    }
  100% { transform: translate(-50%, -50%) scale(0.88); opacity: 0.55; }
}

/* Hero photo — bottom-anchored, spans almost the full section height */
.hero-cutout {
  position: absolute;
  bottom: 0;
  left: 76%;
  transform: translateX(-50%) translateY(var(--hero-parallax));
  width: min(46vw, 620px);
  height: 96%;
  background: url('images/hero-photo.png') no-repeat bottom center;
  background-size: contain;
  pointer-events: none;
  z-index: 1;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 8%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 8%);
}

/* 2-column hero grid */
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  padding: 10rem 8% 6rem;
  align-items: center;
  position: relative;
  z-index: 2;
  min-height: 95vh;
}

.hero-eyebrow {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 3.5px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.1rem;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -3px;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

/* 2×2 focus chips */
.hero-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  max-width: 460px;
}

.hero-chip {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--text);
  transition: border-color var(--speed) ease, background var(--speed) ease;
}

.hero-chip:hover {
  border-color: rgba(0, 240, 255, 0.4);
  background: rgba(0, 240, 255, 0.04);
}

.hero-chip svg { flex-shrink: 0; color: var(--accent); }

/* Glass pitch panel — right column */
.hero-pitch {
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(22px) saturate(120%);
  -webkit-backdrop-filter: blur(22px) saturate(120%);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.5rem;
  width: 100%;
  position: relative;
  top: 220px;
  left: 50px;
  z-index: 2;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.hero-pitch p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(240, 237, 232, 0.88);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.hero-pitch p strong { color: var(--accent); font-weight: 600; }

/* ============================================================
   EARLY BUILDS MARQUEE
   ============================================================ */
.marquee-section {
  overflow: hidden;
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.marquee-header {
  padding: 0 8%;
  margin-bottom: 2rem;
}

.section-eyebrow {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 3.5px;
  color: var(--muted);
  font-weight: 600;
}

/* Fade-out edges */
.marquee-section::before,
.marquee-section::after {
  content: '';
  position: absolute;
  top: 0;
  width: 140px;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}
.marquee-section::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}
.marquee-section::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.marquee-track {
  display: flex;
  gap: 20px;
  animation: marquee-scroll 40s linear infinite;
  width: max-content;
  padding: 4px 10px;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-section:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-card {
  flex-shrink: 0;
  width: 260px;
  height: 180px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.35s ease, border-color 0.35s ease;
  cursor: default;
}

.marquee-card:hover {
  transform: scale(1.05);
  border-color: rgba(0, 240, 255, 0.32);
}

/* Only show a pointer cursor once a card actually has a link set */
.marquee-card[data-link]:not([data-link=""]) { cursor: pointer; }

.marquee-card-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  font-weight: 700;
}

.marquee-card-name {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.marquee-card-tech {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.2px;
}

/* ============================================================
   SECTION LAYOUT
   ============================================================ */
.section-container {
  padding: 5rem 8%;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -1px;
  margin-bottom: 2.5rem;
}

/* ============================================================
   ORIGINS / INITIAL PORTFOLIO
   ============================================================ */
.origins-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  min-height: 30vh;
}

.origins-left { padding-right: 5rem; }

.origins-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 3.7rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -1px;
  color: var(--text);
  white-space: nowrap;
}

.origins-heading .drop-cap {
  font-size: 2.1em;
  line-height: 0.7;
}

.origins-right {
  border-left: 1px solid var(--border);
  padding-left: 5rem;
}

.origins-desc {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.85;
  max-width: 520px;
  text-align: right;
  margin-left: auto;
}

/* ============================================================
   FEATURED PROJECTS GRID
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition:
    transform  0.4s cubic-bezier(0.25, 1, 0.5, 1),
    border-color 0.4s ease;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(0, 240, 255, 0.4);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.project-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  font-weight: 700;
}

.project-arrow {
  font-size: 1.2rem;
  color: var(--muted);
  transition: transform 0.4s ease, color 0.4s ease;
}

.project-card:hover .project-arrow {
  transform: translateX(6px);
  color: var(--accent);
}

.project-name {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  transition: color 0.4s ease;
}

.project-card:hover .project-name { color: var(--accent); }

.project-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.project-footer { margin-top: auto; }

.project-tech {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

/* ============================================================
   ABOUT / EXPERIENCE — 3-COLUMN
   ============================================================ */
#experience {
  padding: 0;
}

#experience .about-grid {
  border-radius: 0;
}

.about-grid {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding: 3rem;
}

/* Full-bleed background photo layer — drop an <img> or background-image here */
.about-photo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('images/experience-bg.png') center / cover no-repeat, var(--bg);
}

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

/* Scrim so the overlaid text stays legible on top of the photo */
.about-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.1) 30%,
    rgba(0, 0, 0, 0.1) 70%,
    rgba(0, 0, 0, 0.55) 100%
  );
  pointer-events: none;
}

.about-left,
.about-right {
  position: relative;
  z-index: 2;
  padding: 1rem 0;
  max-width: 320px;
}

.about-right {
  text-align: right;
  margin-left: auto;
}

/* Sub-headings inside about/experience */
#experience .section-title {
  font-size: 0.72rem;
  letter-spacing: 2.5px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

#experience .section-title::after { display: none; }

.subsection-title { margin-top: 2rem; }

.timeline-item {
  margin-bottom: 0.25rem;
  position: relative;
}

.timeline-item::before { display: none; }

.timeline-title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  padding: 0;
}

.timeline-subtitle {
  font-size: 0.74rem;
  color: var(--muted);
  margin: 0;
  padding: 0;
  line-height: 1.2;
}

.timeline-date, .timeline-desc {
  font-size: 0.65rem;
  color: var(--muted);
  margin: 0;
  padding: 0;
  line-height: 1.2;
}

.timeline-date { color: var(--accent); }

/* Legacy compat */
.two-column-layout { display: none; }
.column, .column--right { display: none; }

/* ============================================================
   TECH STACK — 2-COLUMN
   ============================================================ */
#stack .section-title { margin-bottom: 2.5rem; }

.stack-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.stack-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
  gap: 1.2rem;
}

.stack-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  transition: transform var(--speed) ease;
  cursor: default;
}

.stack-icon-item:hover { transform: translateY(-5px); }

.stack-icon-item img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.stack-icon-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  opacity: 0;
  transition: opacity var(--speed) ease;
  text-align: center;
}

.stack-icon-item:hover .stack-icon-label { opacity: 0.7; }

.stack-desc-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stack-desc-col p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--muted);
}

.stack-desc-col p strong {
  color: var(--accent);
  font-weight: 600;
}

/* Hide legacy stack grid */
.stack-logo-grid { display: none !important; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #000;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.footer-name {
  font-size: clamp(4rem, 18vw, 14rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.055);
  pointer-events: none;
  user-select: none;
  line-height: 1;
  white-space: nowrap;
  padding: 3rem 8% 0;
  overflow: hidden;
  letter-spacing: -4px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  padding: 3rem 8%;
  border-bottom: 1px solid var(--border);
}

.footer-brand .logo {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -1px;
  display: block;
  margin-bottom: 0.6rem;
}

.footer-brand p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 200px;
}

.footer-nav-col,
.footer-socials-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav-col span,
.footer-socials-col span {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  opacity: 0.6;
  margin-bottom: 0.3rem;
}

.footer-nav-col a,
.footer-socials-col a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color var(--speed) ease;
  font-weight: 500;
}

.footer-nav-col a:hover,
.footer-socials-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 8%;
}

.copyright { color: var(--muted); font-size: 0.82rem; }
.footer-tagline { color: var(--muted); font-size: 0.82rem; font-style: italic; }

/* ============================================================
   GLASS CTA (fixed bottom-center)
   ============================================================ */
#glass-button-container {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 24px rgba(0, 240, 255, 0.12);
  overflow: hidden;
  cursor: pointer;
  z-index: 9000;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

#glass-button-container:hover {
  transform: translateX(-50%) scale(1.12);
  box-shadow: 0 8px 36px rgba(0, 240, 255, 0.28);
}

.glass-button-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.95);
  font-family: var(--font-primary);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  pointer-events: none;
  z-index: 2;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
}

/* ============================================================
   GITHUB TOGGLE + POPUP
   ============================================================ */
#github-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  z-index: 8500;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

#github-toggle:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.2);
}

#github-toggle svg { pointer-events: none; }

#github-popup {
  position: fixed;
  bottom: -240px;
  right: 2rem;
  width: 290px;
  padding: 1.5rem;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  z-index: 8000;
  transition: bottom 0.42s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

#github-popup.visible { bottom: 5.5rem; }

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.popup-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
}

.popup-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s ease;
}
.popup-close:hover { color: var(--text); }

.popup-desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.1rem;
  line-height: 1.55;
}

.popup-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: gap 0.2s ease, opacity 0.2s ease;
}
.popup-link:hover { gap: 0.7rem; opacity: 0.85; }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 8rem 6% 4rem;
    gap: 3rem;
    min-height: auto;
  }
  .hero-chips { max-width: 100%; }
  .hero-pitch { max-width: 560px; }
  .hero-halo  { left: 80%; }
  .about-grid { padding: 2rem; }
  .about-left, .about-right { max-width: 260px; }
  .stack-inner { grid-template-columns: 1fr; gap: 3rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero-section { border-radius: 0 0 36px 36px; }
  .origins-grid { grid-template-columns: 1fr; }
  .origins-left { padding-right: 0; padding-bottom: 2.5rem; }
  .origins-heading { white-space: normal; font-size: clamp(2rem, 8vw, 3.7rem); }
  .origins-right {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 2.5rem;
  }
  .about-grid {
    flex-direction: column;
    justify-content: flex-end;
    gap: 1.5rem;
    padding: 1.5rem;
  }
  .about-right { text-align: left; margin-left: 0; }
  .about-left, .about-right { max-width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.4rem; text-align: center; }
  .footer-name { padding-bottom: 1rem; }
}

@media (max-width: 600px) {
  .nav-links  { display: none; }
  .hamburger  { display: flex; }
  .section-container { padding: 3.5rem 5%; }
  .hero-inner { padding: 7rem 5% 3rem; }
  .hero-title { letter-spacing: -2px; }
  #glass-button-container { width: 84px; height: 84px; }
  .marquee-card { width: 220px; height: 165px; }
}

@media (max-width: 480px) {
  .hero-chips { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .stack-icon-grid { grid-template-columns: repeat(auto-fit, minmax(50px, 1fr)); }
  .footer-name { font-size: clamp(3rem, 18vw, 14rem); }
}
