/* GSAP & Lenis Sticky Section Layout System */
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,300..800;1,300..800&family=Syne:wght@500;700;800&family=Fira+Code:wght@400;500&display=swap');

:root {
  /* Colors */
  --color-just-black: #000000;
  --color-surface-cream: #fffce1;
  --color-surface-50: #7c7c6f;
  --color-surface-25: #222222;
  --color-off-black: #0a0a0a;
  --color-shockingly-green: #0ae448;
  --gradient-shockingly-green: linear-gradient(114.41deg, #0ae448 20.74%, #abff84 65.5%);
  --color-light-green: #abff84;
  --color-orangey: #ff8709;
  --color-pink: #fec5fb;
  --color-lilac: #9d95ff;
  --color-blue: #00bae2;

  /* Typography — Font Families */
  --font-display: 'Syne', 'Inter Tight', system-ui, sans-serif;
  --font-mori: 'Inter Tight', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Fira Code', monospace;

  /* Responsive Typography Scale */
  --text-caption: 13.5px;
  --leading-caption: 1.4;
  --text-body-sm: 15px;
  --text-body: clamp(16px, 2vw, 18px);
  --leading-body: 1.45;
  --text-body-lg: clamp(18px, 2.5vw, 21px);
  --leading-body-lg: 1.45;
  --text-subheading: clamp(20px, 2.6vw, 28px);
  --text-heading-sm: clamp(22px, 3vw, 34px);
  --text-heading: clamp(26px, 3.8vw, 44px);
  --text-display: clamp(36px, 8.5vw, 96px);
  --leading-display: 1.0;
  --tracking-display: -0.04em;

  /* Spacing */
  --spacing-8: 8px;
  --spacing-12: 12px;
  --spacing-16: 16px;
  --spacing-20: 20px;
  --spacing-24: 20px;
  --spacing-32: 32px;

  /* Layout */
  --page-max-width: 1280px;

  /* Surfaces */
  --surface-canvas: #000000;
  --surface-nested-panel: #0a0a0a;
  --surface-cream-surface: #fffce1;
}

/* Reset & Core Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: #000000;
  color: var(--color-surface-cream);
  font-family: var(--font-mori);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html:focus, body:focus {
  outline: none;
}

a,
button,
.why-card,
.project-card,
.code-box,
.nav-toggle,
.nav-hide-btn,
.nav-show-btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Lenis Smooth Scroll Setup */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

body {
  background-color: #000000;
  color: var(--color-surface-cream);
  overflow-x: hidden;
  position: relative;
  line-height: var(--leading-body);
  font-size: var(--text-body);
}

a, button {
  color: inherit;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Top Progress Line */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--gradient-shockingly-green);
  z-index: 10000;
  width: 0%;
  transition: width 0.1s ease-out;
}

/* Custom Pointer Ring */
.gsap-cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-shockingly-green);
  border-radius: 0;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

.gsap-cursor-ring {
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(10, 228, 72, 0.5);
  border-radius: 0;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
}

@media (max-width: 768px) {
  .gsap-cursor-dot, .gsap-cursor-ring {
    display: none !important;
  }
}

body.hovering .gsap-cursor-ring {
  width: 54px;
  height: 54px;
  border-color: var(--color-shockingly-green);
  border-width: 2px;
}

/* FULLSCREEN INTRO SCREEN (STICKY TOP 0) */
.intro-screen {
  position: sticky;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000000;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  overflow: hidden;
  will-change: transform, opacity, filter;
  transform-origin: center top;
}

/* MINIMALIST CLEAN STATUS BAR (NO PILL BADGE) */
.intro-status-bar {
  position: absolute;
  top: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--color-surface-50);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status-indicator-clean {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-shockingly-green);
  font-size: 13px;
  font-weight: 500;
}

.status-dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-shockingly-green);
  box-shadow: 0 0 8px var(--color-shockingly-green);
  animation: pulseDot 1.8s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.intro-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1280px;
}

/* SINGLE LINE NAME FIT ON INTRO */
.intro-name {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--color-surface-cream);
  text-transform: uppercase;
  white-space: nowrap;
  width: 100%;
  text-align: center;
  margin: 16px 0 28px 0;
  text-shadow: 0 0 60px rgba(10, 228, 72, 0.12);
  will-change: transform, opacity;
}

.intro-name .char {
  display: inline-block;
  will-change: transform, opacity;
}

.scroll-prompt {
  position: absolute;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--color-surface-50);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: bouncePrompt 2s infinite ease-in-out;
}

@keyframes bouncePrompt {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* FLOATING NAVBAR */
.site-header {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%) translateY(-30px);
  z-index: 1000;
  width: calc(100% - 64px);
  max-width: 1280px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

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

.nav-row {
  background: #fffce1;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 2px solid #0a0a0a;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 60px;
  padding: 0 32px;
  box-shadow: 4px 4px 0px var(--color-shockingly-green);
  position: relative;
}

.nav-row .btn-pill-gradient {
  margin-left: auto;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #000000;
  font-weight: 600;
}

.nav-status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-shockingly-green);
  box-shadow: 0 0 8px var(--color-shockingly-green);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

/* Hamburger toggle — desktop hidden, mobile shown */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 0;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #0a0a0a;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-row.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-row.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-row.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Desktop nav hide / show buttons */
.nav-hide-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-left: 8px;
  background: #0a0a0a;
  color: #fffce1;
  border: 2px solid #0a0a0a;
  cursor: pointer;
  box-shadow: 2px 2px 0px var(--color-shockingly-green);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-hide-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px var(--color-shockingly-green);
}

.nav-show-btn {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%) translateY(-80px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  background: #fffce1;
  color: #0a0a0a;
  border: 2px solid #0a0a0a;
  box-shadow: 3px 3px 0px var(--color-shockingly-green);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.site-header.nav-hidden {
  transform: translateX(-50%) translateY(-150%);
  opacity: 0;
  pointer-events: none;
}

.mobile-only-btn {
  display: none;
}

.nav-link {
  font-size: 14px;
  color: #3a3a3a;
  font-weight: 600;
  transition: color 0.2s ease;
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1.5px;
  background-color: #000000;
  transition: width 0.25s ease;
}

.nav-link:hover {
  color: #000000;
}

.nav-link:hover::after {
  width: 100%;
}

.btn-pill-cream {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border: 2px solid #fffce1;
  border-radius: 0;
  background: #fffce1;
  color: #000000;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  text-decoration: none;
  /* Rectangular green drop shadow — neo-brutalist */
  box-shadow: 4px 4px 0px var(--color-shockingly-green);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-pill-cream:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--color-shockingly-green);
  background: #fffce1;
  color: #000000;
}

.btn-pill-gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 0;
  background: #000000;
  color: #fffce1;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid #000000;
  box-shadow: 4px 4px 0px var(--color-shockingly-green);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-pill-gradient:hover {
  background: var(--color-shockingly-green);
  border-color: var(--color-shockingly-green);
  color: #000000;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px rgba(0,0,0,0.5);
}

/* STICKY SECTION LAYOUT (CARD STACKING) */
.site-wrapper {
  position: relative;
  /* No z-index here — let panel sections compete directly in root stacking context */
  width: 100%;
  /* Clip the full-viewport cover pseudo-elements at the wrapper's edge so the
     last panel's cover doesn't add a trailing screen of blank scroll space.
     overflow: clip (not hidden) keeps position: sticky pinned to the viewport. */
  overflow: clip;
}

.panel-section {
  position: sticky;
  top: 0;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  background-color: #000000;
  /* Absolutely opaque — never see-through */
  background-clip: padding-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: clamp(80px, 10vh, 120px);
  padding-bottom: clamp(60px, 8vh, 100px);
  border-top: none;
  box-shadow: 0 -1px 0 rgba(0, 0, 0, 1), 0 -40px 60px rgba(0, 0, 0, 1);
  will-change: transform;
  transform-origin: center top;
  isolation: isolate;
}

.panel-section > .container {
  width: 100%;
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 24px);
}

/* Desktop: compact spacing so project cards fit within the pinned viewport */
@media (min-width: 769px) {
  .panel-section {
    padding-top: clamp(60px, 8vh, 88px);
    padding-bottom: clamp(40px, 6vh, 64px);
  }

  .project-card {
    margin-top: 16px;
  }

  .project-details {
    padding: 24px 22px;
  }

  #project-seeya h2,
  #project-tax h2,
  #project-anantvyom h2 {
    font-size: clamp(26px, 3.2vw, 38px) !important;
    margin-bottom: 16px !important;
  }
}

/* ASCENDING STICKY Z-INDICES FOR PERFECT CARD OVERLAP */
#hero { z-index: 20; }
#approach { z-index: 30; }
#project-seeya { z-index: 40; }
#project-tax { z-index: 43; }
#project-anantvyom { z-index: 46; }
#skills { z-index: 50; }
#education { z-index: 60; }
#contact { z-index: 70; }
.site-footer { position: relative; z-index: 80; }

/* Closing screen: fill the viewport and center content, so scrolling stops
   cleanly on the last page with no trailing blank. */
#contact {
  min-height: 100vh;
  min-height: 100dvh;
  justify-content: center;
}

#contact > .container {
  flex: 0 1 auto;
}

.container {
  width: 100%;
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 24px);
}

.curly-eyebrow {
  font-size: 13px;
  color: var(--color-surface-50);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.curly-eyebrow .bracket {
  color: var(--color-shockingly-green);
}

/* Hero Section */
.hero-display-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 64px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--color-surface-cream);
  text-transform: uppercase;
  margin: 12px 0 20px 0;
  display: flex;
  flex-direction: column;
}

.hero-display-headline .hero-line {
  display: block;
}


.hero-display-headline .highlight-word {
  color: var(--color-shockingly-green);
}

.jump-char {
  display: inline-block;
  will-change: transform;
}


.hero-kinetic-row {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 700;
  color: var(--color-surface-cream);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.kinetic-box {
  display: inline-block;
  overflow: hidden;
  height: 1.25em;
  position: relative;
  vertical-align: bottom;
}

.kinetic-word {
  display: block;
  color: var(--color-shockingly-green);
  will-change: transform, opacity;
}

.hero-subrow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 16px;
}

@media (min-width: 768px) {
  .hero-subrow {
    grid-template-columns: 2fr 1fr;
    align-items: end;
  }
}

.hero-subtext {
  font-size: var(--text-body-lg);
  color: var(--color-surface-cream);
  max-width: 720px;
  line-height: var(--leading-body-lg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 32px;
}

/* Discipline Taxonomy Bar — Hidden (removed per design) */
.taxonomy-bar {
  display: none;
}

/* Category Colors */
.cat-label {
  font-size: var(--text-body);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 8px;
}

.cat-label.green { color: var(--color-shockingly-green); }
.cat-label.orange { color: var(--color-orangey); }
.cat-label.pink { color: var(--color-pink); }

/* Engineering Approach Cards */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.why-card {
  background-color: #fffce1;
  border: 2px solid #0a0a0a;
  border-radius: 0;
  padding: 28px 20px;
  box-shadow: 4px 4px 0px var(--color-shockingly-green);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.why-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--color-shockingly-green);
}

/* Force dark text for bold/strong inside off-white cards */
.why-card strong,
.why-card b,
.project-details strong,
.project-details b {
  color: #0a0a0a;
}

.why-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.why-card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #0a0a0a;
  margin-bottom: 8px;
}

.why-card-desc {
  font-size: 14.5px;
  color: #3a3a3a;
  line-height: 1.45;
}

/* REALISTIC PROJECT SHOWCASE CARDS */
.project-card {
  background-color: #fffce1;
  border: 2px solid #0a0a0a;
  border-radius: 0;
  margin-top: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  box-shadow: 6px 6px 0px var(--color-shockingly-green);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

@media (min-width: 768px) {
  .project-card {
    grid-template-columns: 1.1fr 1fr;
  }
}

.project-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0px var(--color-shockingly-green);
}

.project-visual {
  display: none;
}

@media (min-width: 768px) {
  .project-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 300px;
  }

  .project-lucide-icon {
    width: 140px;
    height: 140px;
    color: var(--color-off-black);
    stroke-width: 1.5;
    animation: floatIcon 6s ease-in-out infinite;
    filter: drop-shadow(6px 6px 0 var(--color-shockingly-green));
    position: relative;
    z-index: 2;
  }
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-10px) rotate(-3deg); }
  50% { transform: translateY(0) rotate(0deg); }
  75% { transform: translateY(10px) rotate(3deg); }
}

.project-code-preview {
  background-color: #050505;
  border-bottom: 1px solid var(--color-surface-25);
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  color: #d1d5db;
  overflow-x: auto;
  position: relative;
  border-radius: 0;
}

@media (min-width: 768px) {
  .project-code-preview {
    border-bottom: none;
    border-right: 1px solid var(--color-surface-25);
  }
}

.code-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 252, 225, 0.08);
  font-size: 11.5px;
  color: var(--color-surface-50);
}

.window-dots {
  display: flex;
  gap: 5px;
}

.window-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-surface-25);
}

.kw { color: #ff79c6; }
.fn { color: #50fa7b; }
.st { color: #f1fa8c; }
.cm { color: var(--color-surface-50); font-style: italic; }

.project-details {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  /* Explicitly off-white so right panel matches card bg */
  background-color: #fffce1;
}

.project-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: #0a0a0a;
  margin-top: 6px;
  margin-bottom: 10px;
}

.project-body {
  font-size: 15px;
  color: #3a3a3a;
  line-height: 1.45;
  margin-bottom: 20px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

/* Project card buttons override — black on cream card */
.project-details .btn-pill-cream {
  background: #0a0a0a;
  color: #fffce1;
  border: 2px solid #0a0a0a;
  box-shadow: 4px 4px 0px var(--color-shockingly-green);
}

.project-details .btn-pill-cream:hover {
  background: var(--color-shockingly-green);
  border-color: var(--color-shockingly-green);
  color: #000000;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px rgba(0,0,0,0.4);
}

/* Tag badges — sharp rectangle on off-white card */
.tag-badge {
  font-size: 12.5px;
  padding: 4px 10px;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: #1a1a1a;
  font-weight: 500;
}

/* Email copy box — off-white with green shadow */
.code-box {
  background-color: #fffce1;
  border: 2px solid #0a0a0a;
  border-radius: 0;
  padding: 16px 20px;
  font-family: var(--font-mori);
  font-size: 16px;
  color: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  max-width: 540px;
  word-break: break-all;
  box-shadow: 4px 4px 0px var(--color-shockingly-green);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.code-box:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--color-shockingly-green);
}

/* ===== FOOTER ===== */
.site-footer {
  background-color: #000000;
  border-top: 2px solid #fffce1;
  padding: 56px 0 32px;
  position: relative;
  z-index: 80;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.footer-brand h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  color: #fffce1;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--color-surface-50);
  line-height: 1.5;
  max-width: 280px;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-shockingly-green);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--color-surface-50);
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.footer-links a:hover {
  color: #fffce1;
}

.footer-divider {
  border: none;
  border-top: 1px solid var(--color-surface-25);
  margin-bottom: 24px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--color-surface-50);
}

.footer-bottom .green-accent {
  color: var(--color-shockingly-green);
  font-weight: 600;
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #fffce1;
  color: #000000;
  padding: 10px 20px;
  border-radius: 0;
  border: 2px solid #000000;
  box-shadow: 4px 4px 0px var(--color-shockingly-green);
  font-weight: 700;
  font-size: 13.5px;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 1000;
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* ===== RESPONSIVE / MOBILE OPTIMIZATIONS ===== */
@media (max-width: 768px) {
  .site-header {
    width: calc(100% - 24px);
    top: 10px;
  }

  .nav-row {
    height: 50px;
    padding: 0 16px;
  }

  .panel-section {
    position: sticky;
    top: 0;
    min-height: 0;
    padding-top: 46px;
    padding-bottom: 14px;
    box-shadow: none;
    border-top: none;
  }

  /* Full-viewport opaque cover so a content-height panel fully hides the one behind it */
  .panel-section::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    background-color: #000000;
    z-index: -1;
  }

  .hero-display-headline {
    margin: 8px 0 16px 0;
  }

  .hero-subrow {
    gap: 16px;
    margin-top: 8px;
  }

  .btn-pill-cream,
  .btn-pill-gradient {
    padding: 10px 18px;
    font-size: 12px;
  }

  .why-grid {
    margin-top: 24px;
  }

  .why-card {
    padding: 22px 16px;
  }

  .project-details {
    padding: 14px 14px;
  }

  .project-details .btn-pill-cream {
    padding: 8px 14px;
    font-size: 12px;
  }

  .project-details > div:nth-child(2) {
    margin-top: 12px !important;
  }

  .project-title {
    font-size: 21px;
    margin-top: 3px;
    margin-bottom: 7px;
  }

  .project-body {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 12px;
  }

  .project-code-preview {
    padding: 12px;
    font-size: 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .project-code-preview::-webkit-scrollbar {
    display: none;
  }

  .project-code-preview .code-header-bar {
    padding-bottom: 8px;
    margin-bottom: 10px;
  }

  .project-card {
    box-shadow: 4px 4px 0px var(--color-shockingly-green);
    margin-top: 12px !important;
  }

  .project-tags {
    margin-bottom: 12px;
  }

  .panel-section h2 {
    margin-bottom: 12px !important;
    font-size: clamp(22px, 7.5vw, 27px) !important;
    line-height: 1.1 !important;
  }

  .code-box {
    padding: 14px 16px;
    max-width: 100%;
  }

  .curly-eyebrow {
    margin-bottom: 6px;
    font-size: 12px;
  }

  .intro-name {
    font-size: clamp(30px, 9vw, 48px);
    margin: 12px 0 20px 0;
  }
}

@media (max-width: 640px) {
  .desktop-only-btn {
    display: none !important;
  }
  .mobile-only-btn {
    display: block;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-hide-btn {
    margin-left: auto;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
  }



  .why-card {
    padding: 14px 12px;
  }

  .why-card-title {
    font-size: 15px;
  }

  .why-card-desc {
    font-size: 12px;
  }

  .why-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 10px;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fffce1;
    border: 2px solid #0a0a0a;
    border-top: none;
    box-shadow: 4px 4px 0px var(--color-shockingly-green);
    padding: 8px 24px 14px;
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .nav-row.nav-open .nav-links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 13px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .nav-link::after {
    display: none;
  }

  .project-code-preview {
    padding: 12px;
    font-size: 12px;
  }
}
