/* ==========================================================================
   DESIGN SYSTEM & CSS VARIABLES (Apple-inspired Titanium Dark Theme)
   ========================================================================== */
:root {
  --bg-primary: #050508;
  --bg-secondary: #0b0c10;
  --bg-card: rgba(18, 19, 26, 0.65);
  --bg-card-hover: rgba(26, 28, 38, 0.8);
  --bg-glass: rgba(15, 16, 23, 0.7);
  --bg-glass-nav: rgba(5, 5, 8, 0.75);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(255, 255, 255, 0.2);
  --border-glow: rgba(56, 189, 248, 0.35);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-muted: #475569;

  --accent-cyan: #38bdf8;
  --accent-indigo: #818cf8;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  --gradient-text: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
  --gradient-tech: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  --gradient-emerald: linear-gradient(135deg, #34d399 0%, #059669 100%);
  --gradient-card-border: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.02) 80%);

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "JetBrains Mono", Menlo, Consolas, monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 40px rgba(56, 189, 248, 0.15);

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  font-size: 16px;
  background-color: var(--bg-primary);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  selection-background-color: var(--accent-cyan);
}

::selection {
  background: rgba(56, 189, 248, 0.25);
  color: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* ==========================================================================
   BACKGROUND CANVAS & AMBIENT GLOW
   ========================================================================== */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.ambient-light-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.orb-1 {
  top: -10vh;
  left: 15vw;
  width: 50vw;
  height: 45vh;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25), transparent 70%);
}

.orb-2 {
  top: 45vh;
  right: -10vw;
  width: 55vw;
  height: 50vh;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.2), transparent 70%);
}

.orb-3 {
  bottom: -15vh;
  left: 20vw;
  width: 60vw;
  height: 45vh;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15), transparent 70%);
}

/* Dynamic Cursor Glow Spotlight */
.cursor-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.06), transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: opacity 0.3s ease;
}

/* ==========================================================================
   NAVIGATION (Apple-style Frosted Dynamic Bar)
   ========================================================================== */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gradient-tech);
  z-index: 1000;
  transition: width 0.1s linear;
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1040px;
  z-index: 900;
  transition: all var(--transition-normal);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: var(--bg-glass-nav);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse-dot 2.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.brand-title {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.brand-tag {
  color: var(--text-tertiary);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
}

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

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.07);
}

.nav-cta {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan) !important;
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-weight: 500;
}

.nav-cta:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.25);
}

/* External "Tools" hub link — the little arrow signals it leaves the site. */
.nav-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-tools svg {
  opacity: 0.55;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.nav-tools:hover svg {
  opacity: 1;
  transform: translate(1px, -1px);
}

/* --- Mobile navigation toggle (hamburger) -------------------------------
   Hidden on desktop; the <= 768px query flips .mobile-menu-btn to flex. */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-menu-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Hamburger morphs into an X while the drawer is open. */
body.nav-open .mobile-menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .mobile-menu-bar:nth-child(2) {
  opacity: 0;
}

body.nav-open .mobile-menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Mobile drawer ---------------------------------------------------- */
.mobile-drawer,
.mobile-drawer-backdrop {
  display: none;
}

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 4, 6, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 950;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

.mobile-drawer-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 78px;
  left: 12px;
  right: 12px;
  max-height: calc(100vh - 92px);
  max-height: calc(100dvh - 92px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: var(--bg-glass-nav);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 18px;
  z-index: 970;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px) scale(0.98);
  transform-origin: top center;
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
}

.mobile-drawer.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.mobile-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  /* Comfortably past the 44px minimum tap target. */
  min-height: 48px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.mobile-drawer-link:hover,
.mobile-drawer-link:focus-visible {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
}

.mobile-drawer-cta {
  justify-content: center;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.mobile-drawer-ext {
  font-size: 0.8rem;
  opacity: 0.7;
}

.mobile-drawer-foot {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mobile-drawer-social {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
}

/* Stop the page behind the drawer from scrolling. */
body.nav-open {
  overflow: hidden;
}

/* ==========================================================================
   LAYOUT WRAPPER
   ========================================================================== */
.main-content {
  position: relative;
  z-index: 10;
  max-width: 1160px;
  margin: 0 auto;
  padding: 130px 24px 80px;
}

/* Section Common Styles */
.section {
  padding: 90px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 40px;
  padding-bottom: 70px;
}

.hero-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 0.8rem;
  color: #6ee7b7;
  font-weight: 500;
  margin-bottom: 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.1);
}

.status-dot-pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
}

.status-dot-pulse::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent-emerald);
  animation: ripple 2s infinite cubic-bezier(0.25, 1, 0.5, 1);
}

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

.hero-title {
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 24px;
}

.hero-title .gradient-word {
  background: var(--gradient-tech);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-description {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 720px;
  line-height: 1.6;
  margin-bottom: 38px;
  font-weight: 400;
}

.hero-description strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: #ffffff;
  color: #050508;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 255, 255, 0.25), 0 0 0 1px #ffffff;
  background: #f8fafc;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
}

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

/* Live Telemetry Bar in Hero (Tech & SRE element) */
.hero-telemetry {
  width: 100%;
  max-width: 820px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
}

.telemetry-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-right: 1px solid var(--border-subtle);
}

.telemetry-item:last-child {
  border-right: none;
}

.telemetry-label {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.telemetry-val {
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.telemetry-val.highlight {
  color: var(--accent-cyan);
}

.telemetry-val.emerald {
  color: var(--accent-emerald);
}

/* ==========================================================================
   ABOUT ME SECTION
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 40px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.profile-card-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 2px;
  background: var(--gradient-card-border);
  box-shadow: var(--shadow-lg), 0 0 50px rgba(56, 189, 248, 0.1);
  overflow: hidden;
}

.profile-image-container {
  position: relative;
  border-radius: calc(var(--radius-xl) - 2px);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #0f1016;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: contrast(1.05) brightness(0.95);
  transition: transform var(--transition-slow), filter var(--transition-normal);
}

.profile-card-wrapper:hover .profile-img {
  transform: scale(1.04);
  filter: contrast(1.08) brightness(1.02);
}

.profile-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 5, 8, 0.95) 0%, rgba(5, 5, 8, 0.2) 50%, transparent 100%);
  pointer-events: none;
}

.profile-card-info {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 2;
}

.profile-name {
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.profile-role {
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-floating-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(15, 17, 26, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 3;
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.about-lead {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.about-lead span {
  color: var(--accent-cyan);
}

.about-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* Pillar Cards (SRE, AI, Technology) */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 10px;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  transition: all var(--transition-fast);
  backdrop-filter: blur(16px);
}

.pillar-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

/* Martian Book Style Quote Callout */
.martian-quote {
  background: rgba(56, 189, 248, 0.05);
  border-left: 3px solid var(--accent-cyan);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px;
  font-style: italic;
  color: #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 14px 0;
}

.martian-quote strong {
  color: var(--accent-cyan);
  font-style: normal;
}

/* Industry Showcase Chips */
.industries-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.industry-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.industry-chip:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.4);
  color: #ffffff;
  transform: translateY(-2px);
}

.industry-chip .chip-emoji {
  font-size: 1rem;
}

/* LinkedIn Action Button */
.btn-linkedin {
  background: rgba(10, 102, 194, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(10, 102, 194, 0.4);
}

.btn-linkedin:hover {
  background: #0a66c2;
  color: #ffffff;
  border-color: #0a66c2;
  box-shadow: 0 8px 24px rgba(10, 102, 194, 0.35);
}

.pillar-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.icon-cyan {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
}

.icon-purple {
  background: rgba(129, 140, 248, 0.12);
  color: var(--accent-indigo);
}

.icon-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
}

.pillar-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.pillar-desc {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}

/* Tech Badges */
.tech-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.tech-tag:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-primary);
  border-color: var(--border-active);
  transform: translateY(-1px);
}

/* ==========================================================================
   PROJECTS SECTION (Apple Keynote-Grade 3D Cards)
   ========================================================================== */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.project-card {
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  overflow: hidden;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  transform-style: preserve-3d;
  box-shadow: var(--shadow-md);
}

.project-card:hover {
  border-color: var(--border-active);
  box-shadow: var(--shadow-lg), 0 0 50px rgba(56, 189, 248, 0.12);
}

.project-card-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: stretch;
  min-height: 440px;
}

.project-card.reversed .project-card-inner {
  grid-template-columns: 1.15fr 1fr;
}

.project-card.reversed .project-media-col {
  order: 2;
}

.project-card.reversed .project-content-col {
  order: 1;
}

.project-media-col {
  position: relative;
  overflow: hidden;
  background: #090a10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-img-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.project-img-wrapper.stage-wrap {
  width: 100%;
  height: 100%;
  min-height: 440px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(to bottom, rgba(10, 14, 22, 0.3), rgba(6, 9, 14, 0.65)),
    url('rpi-desktop-bg.jpg') center center / cover no-repeat;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.7);
}

#stage {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 440px;
  cursor: pointer;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow), filter var(--transition-normal);
  filter: brightness(0.9) contrast(1.1);
}

.project-card:hover .project-img {
  transform: scale(1.05);
  filter: brightness(1) contrast(1.15);
}

.project-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5, 5, 8, 0.4) 0%, rgba(5, 5, 8, 0.85) 100%);
  pointer-events: none;
}

/* Floating interactive UI snippet on the image */
.project-floating-hud {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(10, 11, 16, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.hud-title {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-status {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  gap: 5px;
}

.hud-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-primary);
}

.hud-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  margin-top: 8px;
  overflow: hidden;
}

.hud-bar-fill {
  height: 100%;
  background: var(--gradient-tech);
  border-radius: var(--radius-full);
}

.project-content-col {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.project-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

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

.project-domain-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
}

.project-number {
  font-size: 1.1rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-weight: 600;
}

.project-title {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 14px;
}

.project-description {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

.project-highlights {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.highlight-bullet {
  color: var(--accent-cyan);
  font-weight: bold;
  line-height: 1.4;
}

.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

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

.btn-card-action {
  padding: 10px 20px;
  font-size: 0.88rem;
}

/* Disabled project links (KAMA / BOI) — shown as "Release Soon" placeholders.
   The `disabled` attribute on the <button> blocks activation; these rules
   just restyle it so it reads as unavailable rather than clickable. */
.btn-disabled,
.btn-disabled:hover,
.btn-disabled:active {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.release-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-amber);
  white-space: nowrap;
}

.release-soon-badge .pulse-dot-amber {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-amber);
  box-shadow: 0 0 8px var(--accent-amber);
  animation: pulse-dot 2.5s infinite;
}

/* ==========================================================================
   PROFESSIONAL EXPERIENCE SECTION (Luminous Apple Timeline)
   ========================================================================== */
.experience-wrapper {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}

.timeline-track {
  position: absolute;
  top: 10px;
  bottom: 20px;
  left: 28px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-indigo) 50%, rgba(255, 255, 255, 0.05) 100%);
}

.timeline-items {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.timeline-item {
  position: relative;
  padding-left: 74px;
  transition: transform var(--transition-fast);
}

.timeline-node {
  position: absolute;
  left: 19px;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.5);
  z-index: 2;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.timeline-node-inner {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
}

.timeline-item:hover .timeline-node {
  transform: scale(1.3);
  border-color: #ffffff;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.8);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.timeline-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.timeline-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.timeline-role {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.timeline-company {
  font-size: 1.05rem;
  color: var(--accent-cyan);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.timeline-period-badge {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-tertiary);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.timeline-summary {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.timeline-achievements {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.achievement-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.achievement-dot {
  color: var(--accent-indigo);
  font-weight: bold;
}

.achievement-row strong {
  color: var(--text-primary);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 48px;
  align-items: flex-start;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-headline {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.contact-bio {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.65;
}

.contact-meta-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.meta-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.meta-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  transform: translateX(4px);
}

.meta-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.meta-text-group {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.meta-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Contact Form Styling */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.form-label {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  font-weight: 500;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: rgba(5, 5, 8, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-fast);
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent-cyan);
  background: rgba(10, 11, 16, 0.85);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--text-muted);
}

.btn-submit {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #38bdf8 0%, #6366f1 100%);
  color: #ffffff;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.25);
  margin-top: 10px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.4);
  filter: brightness(1.1);
}

.btn-submit:active {
  transform: translateY(0);
}

/* Submitting state — the button locks while the request is in flight. */
.btn-submit:disabled {
  cursor: not-allowed;
  opacity: 0.75;
  transform: none;
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.15);
}

/* Spam honeypot (Formspree `_gotcha`). Pulled off-screen so it occupies no
   space in the flex column and can never be seen or clicked by a real person. */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Form Toast Notification */
.form-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(15, 17, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--accent-emerald);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  z-index: 1100;
  transform: translateY(120%);
  opacity: 0;
  transition: all var(--transition-normal);
}

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

.toast-icon {
  font-size: 1.3rem;
  color: var(--accent-emerald);
}

.toast-text {
  font-size: 0.9rem;
  color: #ffffff;
  font-weight: 500;
}

/* Failure variant — used for validation errors and failed Formspree posts. */
.form-toast.error {
  border-color: rgba(248, 113, 113, 0.6);
}

.form-toast.error .toast-icon {
  color: #f87171;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
  text-align: center;
  position: relative;
  z-index: 10;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-social-link {
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: color var(--transition-fast);
}

.footer-social-link:hover {
  color: var(--accent-cyan);
}

/* ==========================================================================
   MODAL (Interactive Project Inspection)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 4, 6, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

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

.modal-card {
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-xl);
  overflow-y: auto;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(56, 189, 248, 0.2);
  transform: scale(0.95) translateY(20px);
  transition: transform var(--transition-normal);
  padding: 36px;
  position: relative;
}

.modal-overlay.open .modal-card {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.modal-header {
  margin-bottom: 24px;
}

.modal-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.modal-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
}

.modal-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

.modal-tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}

.modal-tab-btn.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
}

.code-terminal-block {
  background: #050608;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #38bdf8;
  overflow-x: auto;
  line-height: 1.6;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS (Apple Style)
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(35px) scale(0.98);
  filter: blur(6px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-visual {
    max-width: 440px;
    margin: 0 auto;
  }
  .project-card-inner,
  .project-card.reversed .project-card-inner {
    grid-template-columns: 1fr;
  }
  .project-card.reversed .project-media-col {
    order: 0;
  }
  .project-card.reversed .project-content-col {
    order: 1;
  }
  .project-media-col {
    min-height: 320px;
  }
  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* --- Mobile navigation -------------------------------------------------
     The desktop pill links collapse into the drawer behind the hamburger. */
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .mobile-drawer,
  .mobile-drawer-backdrop {
    display: flex;
  }
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    /* Lift above the backdrop (950) and drawer (970) so the close button
       always stays tappable while the drawer is open. */
    z-index: 980;
  }
  .nav-container {
    padding: 8px 12px;
    gap: 8px;
  }
  /* The sound toggle is icon-sized; give it a real touch target. */
  #sound-toggle-btn {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .brand-tag {
    display: none;
  }
  /* LinkedIn still lives in the drawer footer and the site footer. */
  .btn-linkedin {
    display: none;
  }

  /* --- Vertical rhythm & type scale -------------------------------------- */
  .main-content {
    padding: 92px 16px 56px;
  }
  .section {
    padding: 60px 0;
  }
  .section-header {
    margin-bottom: 36px;
  }
  .hero-title {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }
  .section-title {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }
  .hero-actions .btn {
    width: 100%;
  }

  .hero-telemetry {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .telemetry-item:nth-child(2) {
    border-right: none;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .project-content-col {
    padding: 30px 24px;
  }
  /* Project action buttons ("... — Release Soon" + "Inspect Architecture")
     are too wide to share a row on phones — let them stack full-width. */
  .project-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .project-actions .btn-card-action {
    width: 100%;
    justify-content: center;
  }
  .timeline-track {
    left: 14px;
  }
  .timeline-node {
    left: 5px;
  }
  .timeline-item {
    padding-left: 45px;
  }
  .timeline-card {
    padding: 20px;
  }
  .contact-form-card {
    padding: 24px;
  }

  /* --- Project inspection modal ------------------------------------------ */
  .modal-overlay {
    padding: 12px;
  }
  .modal-card {
    padding: 24px 18px;
    max-height: 92vh;
    max-height: 92dvh;
    border-radius: var(--radius-lg);
  }
  .modal-title {
    font-size: 1.35rem;
    /* Keep the heading clear of the close button. */
    padding-right: 48px;
  }
  .modal-close-btn {
    width: 44px;
    height: 44px;
    top: 12px;
    right: 12px;
  }
  /* Four tabs will not fit across a phone — scroll the strip sideways. */
  .modal-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .modal-tabs::-webkit-scrollbar {
    display: none;
  }
  .modal-tab-btn {
    padding: 12px 14px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .code-terminal-block {
    font-size: 0.75rem;
    padding: 14px;
  }

  /* --- Toast & footer: clear notches and the home indicator --------------- */
  .form-toast {
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .site-footer {
    padding: 28px 0 calc(28px + env(safe-area-inset-bottom, 0px));
  }
  .footer-inner {
    justify-content: center;
    text-align: center;
  }
}

/* --- Extra small phones ------------------------------------------------- */
@media (max-width: 380px) {
  .hero-title {
    font-size: 1.9rem;
  }
  .nav-container {
    padding: 8px 10px;
  }
  .contact-form-card {
    padding: 20px 16px;
  }
}
