/* ==========================================================================
   RAKESH BABU GAJULA — PORTFOLIO DESIGN SYSTEM
   Awwwards Quiet Luxury (Monochrome: Paper, Ink, Mute)
   --paper: #f4f2ee (warm off-white canvas)
   --card:  #ffffff (pure white surfaces)
   --ink:   #0d0d0d (deep carbon black)
   --ink-2: #3a3a3a (charcoal body text)
   --mute:  #77756f (warm secondary gray)
   --faint: #a9a6a0 (subtle border/meta gray)
   --line:  rgba(13, 13, 13, 0.09)
   --line-strong: rgba(13, 13, 13, 0.18)
   --soft:  #e9e6e0 (delicate hover/divider tone)
   --ease:  cubic-bezier(0.16, 1, 0.3, 1)
   ========================================================================== */

:root {
  --paper: #f4f2ee;
  --card: #ffffff;
  --ink: #0d0d0d;
  --ink-2: #3a3a3a;
  --mute: #77756f;
  --faint: #a9a6a0;
  --line: rgba(13, 13, 13, 0.09);
  --line-strong: rgba(13, 13, 13, 0.18);
  --soft: #e9e6e0;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(20px, 4.5vw, 64px);
  --max-width: 1320px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;
  --font-sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: auto; /* Handled smoothly by Lenis */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

::selection {
  background-color: var(--ink);
  color: var(--paper);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.25s var(--ease), color 0.25s var(--ease);
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

/* Top Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2.5px;
  background-color: var(--ink);
  z-index: 1000;
  pointer-events: none;
  transition: width 0.08s linear;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Typography Utilities */
.font-serif {
  font-family: var(--font-serif);
  font-weight: 400;
}

.font-mono {
  font-family: var(--font-mono);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 1.25rem;
}

.section-tag::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--ink);
}

.section-heading {
  font-size: clamp(2.25rem, 4.8vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 2.5rem;
}

.section-heading em {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: normal;
  color: var(--mute);
}

.section-desc {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--ink-2);
  line-height: 1.7;
  max-width: 680px;
}

/* Pill Buttons */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-pill-primary {
  background-color: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}

.btn-pill-primary:hover {
  background-color: #262626;
  border-color: #262626;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 13, 13, 0.15);
}

.btn-pill-secondary {
  background-color: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn-pill-secondary:hover {
  background-color: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(13, 13, 13, 0.1);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 900;
  padding: 22px 0;
  transition: padding 0.4s var(--ease);
}

.site-header.scrolled {
  padding: 12px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--ink);
  background-color: transparent;
  transition: all 0.5s var(--ease);
}

.avatar-badge:hover {
  transform: rotate(360deg);
}

.site-header.scrolled .avatar-badge {
  background-color: var(--ink);
  color: var(--paper);
}

.brand-name {
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: opacity 0.4s var(--ease);
}

/* Frosted Center Pill Navbar */
.nav-pill-wrapper {
  position: relative;
  background: rgba(244, 242, 238, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 5px 6px;
  display: flex;
  align-items: center;
  gap: 2px;
  transition: all 0.4s var(--ease);
}

.site-header.scrolled .nav-pill-wrapper {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(13, 13, 13, 0.12);
  box-shadow: 0 10px 30px rgba(13, 13, 13, 0.06);
}

.nav-link {
  position: relative;
  padding: 8px 15px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--mute);
  border-radius: var(--radius-pill);
  transition: color 0.3s var(--ease);
  z-index: 2;
}

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

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

.nav-active-pill {
  position: absolute;
  top: 5px;
  left: 6px;
  height: calc(100% - 10px);
  background-color: var(--ink);
  border-radius: var(--radius-pill);
  transition: all 0.35s var(--ease);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
}

.nav-pill-wrapper.has-active .nav-active-pill {
  opacity: 1;
}

.menu-toggle {
  display: none;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

/* Mobile Menu Overlay */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--paper);
  z-index: 995;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  clip-path: circle(0% at top right);
  transition: clip-path 0.5s var(--ease);
  pointer-events: none;
}

.mobile-overlay.open {
  clip-path: circle(150% at top right);
  pointer-events: auto;
}

.mobile-close-btn {
  position: absolute;
  top: 24px;
  right: var(--gutter);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-link {
  font-size: clamp(2rem, 7vw, 3.25rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.mobile-nav-link span {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--mute);
}

/* ==========================================================================
   00. HERO SECTION (Layout Matching Reference Image 1)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: clamp(100px, 14vh, 130px);
  padding-bottom: clamp(40px, 6vh, 60px);
  overflow: hidden;
}

/* Giant Ghost Background Word */
.hero-ghost-text {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(6rem, 20vw, 22rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(13, 13, 13, 0.07);
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
  z-index: 1;
}

/* Center Standing Video Stage */
.hero-center-stage {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-video-wrapper {
  position: relative;
  width: min(84vw, 480px);
  height: clamp(380px, 62svh, 580px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background-color: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(13, 13, 13, 0.08);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
  cursor: pointer;
}

.hero-video-wrapper:hover {
  transform: translateY(-4px) scale(1.008);
  box-shadow: 0 30px 80px rgba(13, 13, 13, 0.12);
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  background-color: #ffffff;
}

/* Hero Bottom Bar: Equal Priority Name & Role */
.hero-bottom-bar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 2rem;
}

.hero-identity {
  display: flex;
  flex-direction: column;
}

.hero-name-eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(0.875rem, 1.2vw, 1.125rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 6px;
  font-weight: 600;
}

.hero-role-heading {
  font-size: clamp(2.25rem, 4.8vw, 4.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.hero-role-heading em {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: normal;
  color: var(--mute);
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   01. ABOUT SECTION — 2 COLUMN (FRONT-ONLY ID CARD WITH BATCH)
   ========================================================================== */
section {
  padding-top: clamp(80px, 12vh, 130px);
  padding-bottom: clamp(80px, 12vh, 130px);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.about-text-col {
  display: flex;
  flex-direction: column;
}

.about-name-greeting {
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
}

.about-body-paragraph {
  font-size: clamp(1.0625rem, 1.2vw, 1.2rem);
  line-height: 1.8;
  color: var(--ink-2);
  margin-bottom: 2rem;
}

.about-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Lanyard & Front-Facing ID Card Stage */
.lanyard-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  user-select: none;
}

.lanyard-anchor {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 5;
}

.lanyard-strap {
  width: 28px;
  height: 64px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(13, 13, 13, 0.2);
}

.strap-text-track {
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  white-space: nowrap;
  animation: strapScroll 10s linear infinite;
  padding: 4px 0;
}

@keyframes strapScroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.lanyard-clip {
  width: 20px;
  height: 16px;
  background: #a9a6a0;
  border: 1.5px solid #77756f;
  border-radius: 3px;
  margin-top: -2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.lanyard-ring {
  width: 14px;
  height: 14px;
  border: 2px solid #77756f;
  border-radius: 50%;
  margin-top: -3px;
}

/* Front-Only Card Wrapper with physics pendulum sway */
.id-card-wrapper {
  width: 320px;
  height: 430px;
  position: relative;
  border-radius: var(--radius-lg);
  background-color: var(--card);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 48px rgba(13, 13, 13, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-top: -6px;
  transition: box-shadow 0.4s var(--ease);
}

.id-card-wrapper:hover {
  box-shadow: 0 28px 60px rgba(13, 13, 13, 0.14);
}

.id-top-band {
  background-color: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.id-top-band span {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  font-weight: 700;
}

.id-clip-slot {
  width: 32px;
  height: 6px;
  background-color: var(--paper);
  border-radius: 4px;
}

.id-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.id-portrait-frame {
  width: 120px;
  height: 140px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 6px 18px rgba(13, 13, 13, 0.08);
  margin-bottom: 14px;
  background-color: #ebe8e2;
  transition: transform 0.4s var(--ease);
}

.id-portrait-frame:hover {
  transform: scale(1.05);
}

.id-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.id-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 3px;
}

.id-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--mute);
  margin-bottom: 16px;
}

.id-meta-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  text-align: left;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-bottom: 14px;
}

.id-meta-item label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mute);
}

.id-meta-item span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
}

.id-card-bottom {
  margin-top: auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}

.id-barcode {
  display: flex;
  gap: 2px;
  height: 22px;
  align-items: flex-end;
}

.barcode-bar {
  background-color: var(--ink);
  height: 100%;
}

.id-hologram {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0ded9 0%, #ffffff 50%, #c4c1ba 100%);
  border: 1px solid rgba(13, 13, 13, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--mute);
}

/* ==========================================================================
   02. SKILLS SECTION — PERIODIC TABLE & LOGO INSPECTOR (Image 2 Style)
   ========================================================================== */
.skills-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.skill-chip {
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--mute);
  background-color: var(--card);
  border: 1px solid var(--line);
  transition: all 0.25s var(--ease);
}

.skill-chip:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.skill-chip.active {
  background-color: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.skills-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

/* Periodic Grid */
.periodic-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.element-tile {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 1 / 1.12;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

.element-tile:hover, .element-tile.selected {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: 0 12px 28px rgba(13, 13, 13, 0.08);
}

.element-tile.dimmed {
  opacity: 0.22;
  filter: grayscale(1);
  transform: none;
  pointer-events: none;
}

.tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--mute);
}

.tile-symbol {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-top: 4px;
}

.tile-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Inspector Panel with Prominent Brand Logo (Image 2) */
.skills-inspector {
  position: sticky;
  top: 90px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: 0 16px 40px rgba(13, 13, 13, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.4s var(--ease);
}

.inspector-logo-stage {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle, rgba(244, 242, 238, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
  transition: transform 0.4s var(--ease);
}

.inspector-logo-stage:hover {
  transform: scale(1.08);
}

.inspector-logo-stage svg {
  width: 100px;
  height: 100px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.inspector-header-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.inspector-atomic {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--mute);
}

.inspector-family {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background-color: var(--soft);
  color: var(--ink);
  text-transform: uppercase;
}

.inspector-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.inspector-desc {
  font-size: 0.875rem;
  color: var(--ink-2);
  line-height: 1.65;
  margin-bottom: 18px;
  text-align: left;
}

.inspector-projects {
  width: 100%;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  text-align: left;
}

.inspector-projects label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 8px;
}

.inspector-projects-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.inspector-project-tag {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background-color: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-2);
}

/* ==========================================================================
   03. WORK SECTION — VERTICAL ACCORDION STACK (MATCHING SKETCH)
   ========================================================================== */
.work-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  height: auto;
}

.accordion-panel {
  width: 100%;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.accordion-panel:hover {
  border-color: var(--line-strong);
}

.accordion-panel.active {
  border-color: var(--ink);
  box-shadow: 0 16px 40px rgba(13, 13, 13, 0.05);
}

.project-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  cursor: pointer;
  user-select: none;
  background-color: var(--card);
  transition: background-color 0.25s var(--ease);
  gap: 16px;
}

.accordion-panel:hover .project-row-header {
  background-color: rgba(13, 13, 13, 0.015);
}

.accordion-panel.active .project-row-header {
  border-bottom: 1px solid var(--line);
}

.header-left {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 24px);
  min-width: 0;
  flex: 1;
}

.project-num {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--mute);
  flex-shrink: 0;
  width: 28px;
}

.accordion-panel.active .project-num {
  color: var(--ink);
}

.header-titles {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.project-header-title {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
}

.project-header-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--mute);
  letter-spacing: 0.02em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.accordion-toggle-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--ink);
  transition: transform 0.35s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
  flex-shrink: 0;
}

.accordion-panel:hover .accordion-toggle-icon {
  border-color: var(--ink);
}

.accordion-panel.active .accordion-toggle-icon {
  transform: rotate(45deg);
  background-color: var(--ink);
  color: var(--paper);
}

.panel-expanded-content {
  display: none;
  width: 100%;
  padding: 30px 28px 34px 28px;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 3.5vw, 44px);
  animation: panelSlideDown 0.35s var(--ease) forwards;
  overflow: visible;
  max-height: none;
  height: auto;
}

.accordion-panel.active .panel-expanded-content {
  display: grid;
}

@keyframes panelSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-details-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 20px;
  overflow: visible;
  max-height: none;
  height: auto;
}

.project-meta-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.project-title {
  font-size: clamp(1.4rem, 2.2vw, 2.1rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 14px;
}

.project-desc {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 16px;
}

.project-features {
  list-style: none;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-features li {
  font-size: 0.84rem;
  color: var(--ink-2);
  line-height: 1.5;
  position: relative;
  padding-left: 14px;
}

.project-features li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--mute);
}

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

.tech-chip {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background-color: var(--soft);
  color: var(--ink);
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ==========================================================================
   HANDCRAFTED PURE CSS/HTML ILLUSTRATIVE MINI-UIs
   ========================================================================== */
.illustrative-ui-box {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 340px;
  background: #fbfaf8;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.02);
}

.ui-tag-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-pill);
  z-index: 10;
}

/* Mini UI 1: UAV Airspace Radar Simulation */
.radar-screen {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  margin: 10px auto;
  overflow: hidden;
  background: radial-gradient(circle, rgba(13, 13, 13, 0.03) 0%, rgba(13, 13, 13, 0.08) 100%);
}

.radar-sweep-beam {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 110px;
  height: 110px;
  transform-origin: top left;
  background: conic-gradient(from 0deg, rgba(13, 13, 13, 0.35) 0deg, transparent 60deg);
  animation: radarSpin 4s linear infinite;
}

@keyframes radarSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.radar-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(13, 13, 13, 0.15);
}

.drone-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
}

.radar-telemetry {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--mute);
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

/* Mini UI 2: ExamIntellect Proctoring Wireframe */
.proctor-stage {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  justify-content: center;
}

.proctor-viewport {
  position: relative;
  height: 160px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #f0eee9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bounding-box {
  width: 70px;
  height: 90px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bounding-box::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--ink);
}

.proctor-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
}

.proctor-stat-chip {
  padding: 6px 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

/* Mini UI 3: ECOS Agent Compliance Nodes */
.ecos-pipeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  justify-content: center;
}

.ecos-node {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
}

.ecos-node span {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--mute);
}

/* Mini UI 4: Govinda Marg QR Ticket */
.ticket-mockup {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: auto 0;
}

.ticket-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
}

.ticket-qr-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.qr-matrix-sim {
  width: 64px;
  height: 64px;
  background: repeating-conic-gradient(#0d0d0d 0% 25%, #ffffff 0% 50%) 50% / 8px 8px;
  border: 1px solid var(--ink);
  border-radius: 4px;
}

/* Mini UI 5: Abhi's SeatSure Seat Grid */
.seat-map-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 200px;
  margin: 10px auto;
}

.seat-box {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  background: var(--card);
}

.seat-box.booked {
  background: var(--soft);
  color: var(--mute);
}

.seat-box.selected {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* Mini UI 6: Voice Translator Waveform */
.audio-stream-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  height: 100%;
}

.waveform-bars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 60px;
}

.wave-bar {
  width: 4px;
  background: var(--ink);
  border-radius: 4px;
  animation: wavePulse 1.2s ease-in-out infinite alternate;
}

@keyframes wavePulse {
  0% { height: 10px; }
  100% { height: 55px; }
}

/* Mini UI 7: Zepto ETL Pipeline & Data Parity */
.etl-pipeline-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  justify-content: center;
}

.etl-step {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  transition: transform 0.2s var(--ease);
}

.etl-step:hover {
  transform: translateX(3px);
  border-color: var(--line-strong);
}

.etl-step span {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--mute);
}

.etl-parity-badge {
  background: #edf7ed;
  border: 1px solid #c8e6c9;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: #1b5e20;
  font-weight: 700;
}

.etl-telemetry {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--mute);
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

/* Mini UI 8: Titanic ML Pipeline & Scorecard */
.ml-scorecard-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  justify-content: center;
}

.ml-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ml-metric-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ml-metric-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--mute);
  text-transform: uppercase;
}

.ml-metric-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.ml-artifact-card {
  background: #f0f4f8;
  border: 1px solid #d0dbe5;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: #1e3a5f;
  font-weight: 600;
}

.ml-telemetry {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--mute);
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

/* Mini UI 9: Zepto Support AI LangGraph RAG */
.rag-graph-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  justify-content: center;
}

.rag-node-item {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  transition: transform 0.2s var(--ease);
}

.rag-node-item:hover {
  transform: translateX(3px);
  border-color: var(--line-strong);
}

.rag-node-item span {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--mute);
}

.rag-node-active {
  border-color: var(--ink);
  background: #f4f3ef;
}

.rag-schema-badge {
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: #5b21b6;
  font-weight: 700;
}

.rag-telemetry {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--mute);
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

/* ==========================================================================
   04. EXPERIENCE SECTION (DEDICATED)
   ========================================================================== */
.experience-timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

.experience-card-item {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 36px);
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(13, 13, 13, 0.04);
  transition: all 0.4s var(--ease);
}

.experience-card-item:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 40px rgba(13, 13, 13, 0.08);
}

.exp-date-tag {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--mute);
  margin-bottom: 6px;
}

.exp-role-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.exp-company-sub {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 14px;
}

.exp-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.exp-bullets li {
  font-size: 0.875rem;
  color: var(--ink-2);
  line-height: 1.6;
  position: relative;
  padding-left: 14px;
}

.exp-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--mute);
}

/* ==========================================================================
   05. EDUCATION SECTION (DEDICATED & BEAUTIFUL)
   ========================================================================== */
.education-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 1.5rem;
}

.education-card {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(13, 13, 13, 0.04);
  transition: all 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}

.education-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 20px 48px rgba(13, 13, 13, 0.08);
}

.edu-image-header {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background-color: var(--soft);
  position: relative;
}

.edu-image-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.education-card:hover .edu-image-header img {
  transform: scale(1.05);
}

.edu-badge-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.edu-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.edu-institution-name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 6px;
}

.edu-degree-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 10px;
}

.edu-meta-line {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--mute);
  margin-bottom: 12px;
}

.edu-details-text {
  font-size: 0.84rem;
  color: var(--ink-2);
  line-height: 1.6;
  margin-top: auto;
}

/* ==========================================================================
   06. CERTIFICATIONS SECTION (Ink-Flood + Multi-Image Slider Modal)
   ========================================================================== */
.cert-index-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.cert-left-sticky {
  position: sticky;
  top: 110px;
}

.cert-flood-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-strong);
}

.cert-flood-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 18px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  overflow: hidden;
  transition: color 0.35s var(--ease);
}

.cert-flood-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s var(--ease);
  z-index: 1;
}

.cert-flood-row:hover::before {
  transform: scaleX(1);
}

.cert-row-main {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 18px;
}

.cert-num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--mute);
  transition: color 0.35s var(--ease);
}

.cert-info h4 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  transition: color 0.35s var(--ease);
}

.cert-info p {
  font-size: 0.8125rem;
  color: var(--mute);
  transition: color 0.35s var(--ease);
}

.cert-arrow {
  position: relative;
  z-index: 2;
  font-size: 1.25rem;
  color: var(--mute);
  transform: translateX(-6px);
  opacity: 0;
  transition: all 0.35s var(--ease);
}

.cert-flood-row:hover .cert-num,
.cert-flood-row:hover .cert-info h4,
.cert-flood-row:hover .cert-info p,
.cert-flood-row:hover .cert-arrow {
  color: var(--paper);
}

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

/* Certificate Modal Detail & Multi-Image Slider */
.cert-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(13, 13, 13, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
  overscroll-behavior: contain;
}

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

.cert-modal-dialog {
  background-color: var(--card);
  border-radius: var(--radius-lg);
  max-width: 820px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  position: relative;
  padding: clamp(24px, 4vw, 36px);
  transform: translateY(20px);
  transition: transform 0.4s var(--ease);
}

/* Custom scrollbars for panels & cert modal */
.panel-expanded-content::-webkit-scrollbar,
.cert-modal-dialog::-webkit-scrollbar {
  width: 6px;
}

.panel-expanded-content::-webkit-scrollbar-track,
.cert-modal-dialog::-webkit-scrollbar-track {
  background: transparent;
}

.panel-expanded-content::-webkit-scrollbar-thumb,
.cert-modal-dialog::-webkit-scrollbar-thumb {
  background-color: var(--line-strong);
  border-radius: 4px;
}

.panel-expanded-content::-webkit-scrollbar-thumb:hover,
.cert-modal-dialog::-webkit-scrollbar-thumb:hover {
  background-color: var(--ink);
}

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

.cert-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
}

/* Reduced size & centered slider for certificate images */
.modal-slider-box {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 280px;
  margin: 0 auto 24px auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background-color: #faf9f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-slider-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.slider-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 10;
  transition: transform 0.25s var(--ease);
}

.slider-arrow-btn:hover {
  transform: translateY(-50%) scale(1.1);
}

.slider-prev-btn {
  left: 12px;
}

.slider-next-btn {
  right: 12px;
}

.cert-details-content h3 {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 6px;
}

.cert-details-content .cert-issuer-line {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--mute);
  margin-bottom: 16px;
}

.cert-details-content h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-top: 14px;
  margin-bottom: 8px;
}

.cert-details-content p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 12px;
}

.cert-learning-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.cert-learning-list li {
  font-size: 0.875rem;
  color: var(--ink-2);
  line-height: 1.6;
  position: relative;
  padding-left: 16px;
}

.cert-learning-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--mute);
}

/* ==========================================================================
   07. CONTACT SECTION WITH PRESERVED MAP & LETTER HOPPING HEADING
   ========================================================================== */
.hopping-heading {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 3.5rem;
  display: block;
}

.hop-char {
  display: inline-block;
  transition: transform 0.25s var(--ease);
}

.hop-char:hover {
  transform: translateY(-8px);
  color: #262626;
}

.hopping-heading em {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  color: var(--mute);
}

.contact-layout-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card-box {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 10px 30px rgba(13, 13, 13, 0.03);
}

.copy-email-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.email-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 4px;
}

.email-address {
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.copy-chip-btn {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background-color: var(--soft);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s var(--ease);
}

.copy-chip-btn:hover {
  background-color: var(--ink);
  color: var(--paper);
}

.contact-social-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-map-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.map-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 4px 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink-2);
}

.status-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
  animation: pulseBeacon 2s infinite;
}

@keyframes pulseBeacon {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.map-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-top: 12px;
  background: #f4f2ee;
}

.vector-map-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, #ece8e1 100%);
  overflow: hidden;
  transition: opacity 0.3s var(--ease);
}

.map-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(13, 13, 13, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(13, 13, 13, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}

.map-waterway {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-landmark {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--mute);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--line);
  pointer-events: none;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.radar-beacon-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-beacon-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  z-index: 3;
}

.radar-beacon-ring {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  opacity: 0.8;
  animation: radarPing 2.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.radar-beacon-ring.ring-2 {
  animation-delay: 1.25s;
}

@keyframes radarPing {
  0% { transform: scale(0.2); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

.map-coords-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  background: var(--card);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  z-index: 4;
}

.map-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(0.85) contrast(1.05);
  transition: opacity 0.3s var(--ease), filter 0.3s var(--ease);
}

.map-wrapper.vector-mode iframe {
  opacity: 0;
  pointer-events: none;
}

.map-footer-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.map-toggle-btn {
  background: none;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.map-toggle-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.map-direct-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink);
  text-decoration: underline;
  font-weight: 600;
}

.contact-form-box {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 40px);
  box-shadow: 0 10px 30px rgba(13, 13, 13, 0.03);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 6px;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background-color: var(--paper);
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--ink);
  background-color: var(--card);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  font-size: 0.875rem;
  color: var(--mute);
}

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

.back-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink);
  transition: transform 0.25s var(--ease);
}

.back-to-top-btn:hover {
  transform: translateY(-2px);
}

/* Scroll Reveal (.rv) */
.rv {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.08s);
}

.rv.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .periodic-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .skills-layout {
    grid-template-columns: 1fr;
  }
  
  .skills-inspector {
    position: static;
  }

  .work-accordion {
    gap: 12px;
  }

  .project-row-header {
    padding: 16px 18px;
  }

  .header-chips {
    display: none;
  }

  .panel-expanded-content {
    grid-template-columns: 1fr;
    padding: 20px 18px 26px;
    gap: 22px;
  }

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

  .cert-index-layout {
    grid-template-columns: 1fr;
  }

  .cert-left-sticky {
    position: static;
  }
}

@media (max-width: 860px) {
  .about-grid, .contact-layout-grid {
    grid-template-columns: 1fr;
  }

  .lanyard-stage {
    margin-top: 2rem;
  }

  .nav-pill-wrapper {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .periodic-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .id-card-wrapper {
    width: 290px;
    height: 400px;
  }
}
