/* ═══════════════════════════════════════════════════════════════
   EQRA FATIMA — CREATIVE PORTFOLIO STYLESHEET
   Design System: Editorial Craft, High-Contrast Modernist, Snug Layouts
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* 5-Color System Palette from User */
  --c-midnight: #22223b;      /* Color 1: Deepest Midnight Aubergine */
  --c-slate: #4a4e69;         /* Color 2: Slate Indigo / Deep Accent */
  --c-mauve: #9a8c98;         /* Color 3: Smoky Mauve / Elegant Lilac */
  --c-blush: #c9ada7;         /* Color 4: Warm Rose Almond / Blush Taupe */
  --c-cream: #f2e9e4;         /* Color 5: Soft Alabaster Cream / Silk Linen */

  /* Surface & Background Colors */
  --bg: #f2e9e4;              /* Primary Canvas: Soft Alabaster Cream */
  --bg-subtle: #e8ded7;       /* Secondary Surface: Silk Linen Tint */
  --bg-card: #faf7f5;         /* Card Surface: Crisp Off-White Cream */
  --bg-dark: #22223b;         /* Dark Elements / Contact: Deep Midnight */
  --bg-dark-card: #2c2c47;    /* Dark Card: Midnight Slate */

  /* Typography Colors */
  --text: #22223b;            /* Primary High-Contrast Text: Deep Midnight */
  --text-muted: #575b77;      /* Muted Text: Slate Indigo Tint */
  --text-light: #f2e9e4;      /* Light Text on Dark: Soft Cream */
  --text-light-muted: #c9ada7;/* Light Muted Text: Warm Blush Taupe */

  /* Accent Colors */
  --accent: #4a4e69;          /* Primary Accent: Slate Indigo */
  --accent-hover: #22223b;    /* Hover State: Deep Midnight */
  --accent-warm: #9a8c98;     /* Secondary Creative Accent: Smoky Mauve */
  --accent-blush: #c9ada7;    /* Tertiary Accent: Warm Blush */
  --accent-soft: rgba(74, 78, 105, 0.12); /* Soft Indigo Wash */
  --accent-glow: rgba(74, 78, 105, 0.28); /* Indigo Aura */

  /* Borders & Dividers */
  --border: rgba(34, 34, 59, 0.14);
  --border-subtle: rgba(34, 34, 59, 0.08);
  --border-dark: rgba(242, 233, 228, 0.15);

  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* ── TYPOGRAPHY ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: inherit;
}

h1 {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(34px, 4.5vw, 62px);
  line-height: 1;
  letter-spacing: -0.04em;
}

h2 em, h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

p {
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
}

.eyebrow {
  font: 700 10.5px var(--font-mono);
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 8px;
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 11.5px var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 20px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  border: 1.5px solid transparent;
  white-space: nowrap;
}

.button-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.button-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(74, 78, 105, 0.25);
}

.button-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}

.button-outline:hover {
  background: var(--text);
  color: var(--bg);
  transform: translateY(-2px);
}

.button-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.button-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
}

.button-dark {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.button-dark:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 78, 105, 0.35);
}

/* ── HEADER ─────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  padding: 0 4vw;
  background: rgba(247, 246, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1.5px solid var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--text);
  font: 700 11px var(--font-mono);
  letter-spacing: 0.05em;
  transition: background 0.25s, color 0.25s;
}

.brand:hover .brand-mark {
  background: var(--text);
  color: var(--bg);
}

.brand .brand-name {
  font: 700 13px var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--text);
}

.nav {
  display: flex;
  gap: 26px;
}

.nav a {
  font: 600 11.5px var(--font-mono);
  color: var(--text);
  letter-spacing: 0.04em;
  transition: color 0.25s, opacity 0.25s;
}

.nav a:hover {
  opacity: 0.6;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-insta-btn {
  font: 700 11px var(--font-mono);
  color: var(--accent);
  background: rgba(74, 78, 105, 0.08);
  border: 1.5px solid rgba(74, 78, 105, 0.25);
  padding: 8px 12px;
  border-radius: 2px;
  transition: all 0.25s;
  text-decoration: none;
  white-space: nowrap;
}

.header-insta-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.header-cta {
  font: 700 11.5px var(--font-mono);
  letter-spacing: 0.06em;
  border: 1.5px solid var(--text);
  padding: 8px 14px;
  color: var(--text);
  border-radius: 2px;
  transition: all 0.25s;
}

.header-cta:hover {
  background: var(--text);
  color: var(--bg);
}

.header-hire-btn {
  font: 700 11.5px var(--font-mono);
  letter-spacing: 0.06em;
  background: var(--text);
  color: var(--bg);
  border: 1.5px solid var(--text);
  padding: 8px 16px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
}

.header-hire-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(74, 78, 105, 0.3);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Drawer */
.mobile-nav {
  position: fixed;
  inset: 70px 0 0 0;
  background: var(--bg);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 6vw;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s var(--ease-out), opacity 0.3s ease;
  border-bottom: 2px solid var(--border);
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav-links a {
  font: 700 18px var(--font-mono);
  color: var(--text);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── HERO SECTION ───────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4vw;
  align-items: center;
  padding: 60px 5vw;
  position: relative;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 10px var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--text);
  padding: 6px 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 20px;
  width: fit-content;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.hero-kicker {
  font: 700 11px var(--font-mono);
  letter-spacing: 0.16em;
  color: var(--accent);
}

.hero-lede {
  font-size: 16.5px;
  line-height: 1.6;
  max-width: 580px;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.hero-highlights {
  display: flex;
  gap: 32px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1.5px solid var(--border-subtle);
}

.highlight-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.highlight-num {
  font: 700 24px var(--font-mono);
  color: var(--text);
}

.highlight-label {
  font: 500 10.5px var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.05em;
  max-width: 140px;
}

/* Studio Canvas Visual */
.hero-visual {
  display: flex;
  justify-content: center;
}

/* ── SMARTPHONE REEL SHOWCASE (HERO VISUAL) ──────────────────── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup-wrap {
  position: relative;
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-ambient-glow {
  position: absolute;
  top: 8%;
  left: 6%;
  right: 6%;
  bottom: 12%;
  background: radial-gradient(circle, rgba(74, 78, 105, 0.28) 0%, rgba(74, 78, 105, 0) 70%);
  filter: blur(36px);
  z-index: 0;
  pointer-events: none;
}

.phone-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  background: #181716;
  border: 4px solid #2e2b27;
  border-radius: 36px;
  padding: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25),
              0 8px 24px rgba(0, 0, 0, 0.15),
              inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
}

/* Dynamic Island */
.phone-island {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 19px;
  background: #000;
  border-radius: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 9px;
}

.phone-lens {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #111;
  border: 1.5px solid #1f2421;
}

.phone-sensor {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #141b2b;
}

/* Phone Screen */
.phone-screen {
  position: relative;
  width: 100%;
  height: 430px;
  background: #000;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Top Status Bar */
.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px 4px;
  font: 600 10px var(--font-mono);
  color: #fff;
  z-index: 5;
}

.phone-status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
}

/* Reel Header Bar */
.reel-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  z-index: 5;
}

.reel-creator-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reel-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9a8c98, #4a4e69);
  display: grid;
  place-items: center;
  font-size: 14px;
  border: 1.5px solid #fff;
}

.reel-creator-text {
  display: flex;
  flex-direction: column;
}

.reel-handle {
  font: 700 11px var(--font-mono);
  color: #fff;
  line-height: 1.2;
}

.reel-tagline {
  font: 500 8.5px var(--font-mono);
  color: rgba(255, 255, 255, 0.7);
}

.reel-follow-pill {
  font: 700 9.5px var(--font-mono);
  color: #fff;
  background: var(--accent);
  border: none;
  padding: 4px 10px;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.2s;
}

.reel-follow-pill:hover {
  background: #c9ada7;
  transform: scale(1.04);
}

/* Video Stage */
.reel-video-stage {
  position: relative;
  flex: 1;
  overflow: hidden;
  display: flex;
}

.reel-bg-visual {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: background 0.4s ease;
}

.visual-modest {
  background: linear-gradient(165deg, #22223b 0%, #4a4e69 50%, #9a8c98 100%);
}

.visual-atribotx {
  background: linear-gradient(165deg, #0d131f 0%, #152642 45%, #1d3e68 100%);
}

.visual-olive {
  background: linear-gradient(165deg, #0e1e19 0%, #17382c 45%, #1f523f 100%);
}

.reel-mesh-gradient {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.reel-badge-pill {
  position: absolute;
  top: 14px;
  font: 700 8.5px var(--font-mono);
  letter-spacing: 0.1em;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 3px 9px;
  border-radius: 12px;
}

.reel-center-play {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-size: 18px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  z-index: 4;
}

.reel-center-play:hover {
  transform: scale(1.1);
  background: var(--accent);
  border-color: var(--accent);
}

.play-triangle {
  margin-left: 3px;
}

/* Audio Visualizer */
.reel-audio-visualizer {
  position: absolute;
  bottom: 80px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  z-index: 4;
}

.reel-audio-visualizer span {
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
  animation: visualizerPulse 1s ease-in-out infinite alternate;
}

.reel-audio-visualizer span:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.reel-audio-visualizer span:nth-child(2) { height: 14px; animation-delay: 0.25s; }
.reel-audio-visualizer span:nth-child(3) { height: 18px; animation-delay: 0.4s; }
.reel-audio-visualizer span:nth-child(4) { height: 10px; animation-delay: 0.15s; }
.reel-audio-visualizer span:nth-child(5) { height: 16px; animation-delay: 0.35s; }
.reel-audio-visualizer span:nth-child(6) { height: 8px; animation-delay: 0.2s; }
.reel-audio-visualizer span:nth-child(7) { height: 12px; animation-delay: 0.3s; }

@keyframes visualizerPulse {
  0% { transform: scaleY(0.4); opacity: 0.6; }
  100% { transform: scaleY(1); opacity: 1; }
}

/* Right Interaction Column */
.reel-actions-column {
  position: absolute;
  right: 10px;
  bottom: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 5;
}

.reel-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
}

.reel-action-icon {
  font-size: 18px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
  transition: transform 0.2s;
}

.reel-action-item:hover .reel-action-icon {
  transform: scale(1.2);
}

.reel-action-count {
  font: 700 8.5px var(--font-mono);
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.reel-audio-disc {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #111;
  border: 2px solid #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  margin-top: 4px;
  animation: discSpin 4s linear infinite;
}

@keyframes discSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Bottom Caption Bar */
.reel-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 48px;
  padding: 10px 14px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85) 60%);
  z-index: 5;
}

.reel-caption {
  font-size: 10px;
  line-height: 1.35;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  margin-bottom: 5px;
}

.reel-caption strong {
  color: #c9ada7;
  font-family: var(--font-mono);
}

.reel-music-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 500 8px var(--font-mono);
  color: rgba(255, 255, 255, 0.85);
}

/* Progress Track */
.reel-progress-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  width: 100%;
}

.reel-progress-fill {
  height: 100%;
  width: 45%;
  background: var(--accent);
  animation: progressTick 8s infinite linear;
}

@keyframes progressTick {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* Switcher Tabs Below Phone */
.phone-reel-switcher {
  display: flex;
  gap: 5px;
  margin-top: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.switcher-btn {
  font: 700 8.5px var(--font-mono);
  letter-spacing: 0.04em;
  padding: 5px 9px;
  background: #22201e;
  color: #a8a59e;
  border: 1px solid #33312e;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.switcher-btn:hover {
  color: #fff;
  border-color: #555;
}

.switcher-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(74, 78, 105, 0.3);
}

/* ── INFINITE MARQUEE TICKER ────────────────────────────────── */
.ticker-wrapper {
  background: var(--text);
  color: var(--bg);
  padding: 14px 0;
  display: flex;
  overflow: hidden;
  user-select: none;
}

.ticker-group {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-shrink: 0;
  white-space: nowrap;
  animation: tickerScroll 30s linear infinite;
  font: 700 11.5px var(--font-mono);
  letter-spacing: 0.12em;
}

.ticker-star {
  color: var(--accent);
  font-size: 14px;
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* ── COMMON SECTION STRUCTURE ───────────────────────────────── */
.section {
  padding: 65px 5vw;
}

.section-container {
  max-width: 1160px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 36px;
}

.section-sub {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 680px;
  margin-top: 8px;
}

/* ── 01 STORY SECTION (BALANCED OPTIMIZED LAYOUT) ───────────── */
.story-header {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4vw;
  align-items: end;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1.5px solid var(--border-subtle);
}

.story-sub {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

.story-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.story-profile-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  padding: 26px 24px;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.profile-card-header {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.profile-kicker {
  font: 700 9.5px var(--font-mono);
  letter-spacing: 0.14em;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}

.profile-card-header h3 {
  font-size: 22px;
  margin-bottom: 4px;
}

.profile-role {
  font: 600 11px var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.profile-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.story-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.story-link:hover {
  color: var(--accent-hover);
}

.profile-card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.profile-card-pills span {
  font: 600 9px var(--font-mono);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 2px;
  color: var(--text);
}

.story-pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pillar-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  padding: 20px 18px;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.pillar-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

.pillar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.pillar-index {
  font: 700 9.5px var(--font-mono);
  color: var(--accent);
}

.pillar-badge {
  font: 700 7.5px var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 2px 6px;
  border-radius: 2px;
}

.pillar-card h3 {
  font-size: 15px;
  margin-bottom: 6px;
  line-height: 1.25;
}

.pillar-card p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.pillar-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.pillar-bullets li {
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--text);
  position: relative;
  padding-left: 14px;
}

.pillar-bullets li::before {
  content: '✦';
  position: absolute;
  left: 0;
  font-size: 9px;
  color: var(--accent);
}

.pillar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.pillar-tags span {
  font: 600 8.5px var(--font-mono);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 2px;
  color: var(--text-muted);
}

/* ── 02 WORK SHOWCASE ───────────────────────────────────────── */
.work-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  font: 700 10.5px var(--font-mono);
  letter-spacing: 0.08em;
  padding: 7px 14px;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.25s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}

.project-card.is-hidden {
  display: none !important;
}

.project-card.is-animating {
  animation: filterCardFade 0.22s var(--ease-out) forwards;
}

@keyframes filterCardFade {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.project-visual {
  height: 190px;
  position: relative;
  overflow: hidden;
  background: #181716;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font: 700 8.5px var(--font-mono);
  letter-spacing: 0.1em;
  color: #fff;
  background: rgba(0, 0, 0, 0.65);
  padding: 4px 8px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 2;
}

.mock-graphic {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--ease-out);
}

.project-card:hover .mock-graphic {
  transform: scale(1.08);
}

/* Custom CSS graphics for project cards */
.g-atribotx {
  background: linear-gradient(135deg, #09122c, #1e293b);
  color: #fff;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.mock-atribotx-logo {
  font: 800 22px var(--font-mono);
  letter-spacing: 0.18em;
  color: #38bdf8;
}
.mock-atribotx-sub {
  font: 700 8.5px var(--font-mono);
  letter-spacing: 0.12em;
  color: #e2e8f0;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 3px 8px;
  border-radius: 2px;
}
.atribotx-dots {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}
.atribotx-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
}

.g-school {
  background: linear-gradient(135deg, #134e5e, #1e3a2f);
  color: #fff;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.mock-school-badge {
  font: 800 18px var(--font-mono);
  letter-spacing: 0.12em;
  color: #e2fbe8;
}
.mock-school-sub {
  font: 600 8.5px var(--font-mono);
  letter-spacing: 0.14em;
  color: #a7f3d0;
}
.mock-school-sheet {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 60px;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px;
  border-radius: 2px;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  margin-top: 4px;
}
.mock-school-sheet span {
  height: 3px;
  background: #a7f3d0;
  border-radius: 1px;
}
.mock-school-sheet span:nth-child(2) { width: 75%; }
.mock-school-sheet span:nth-child(3) { width: 50%; }

.g-modest {
  background: linear-gradient(135deg, #2b201d, #422d26);
  color: #fff;
  padding: 16px;
  text-align: center;
  position: relative;
}
.mock-modest-badge {
  font: 800 20px var(--font-mono);
  letter-spacing: 0.16em;
  color: #f7e6d8;
}
.mock-modest-sub {
  font: 600 8.5px var(--font-mono);
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-top: 3px;
}
.mock-insta-tag {
  font: 600 9.5px var(--font-mono);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: 20px;
  margin-top: 10px;
  display: inline-block;
  color: #f7e6d8;
}

.g-video {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  position: relative;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.video-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
  box-shadow: 0 4px 18px rgba(74, 78, 105, 0.4);
}
.video-timeline {
  display: flex;
  gap: 4px;
  width: 75%;
  height: 10px;
}
.video-timeline span {
  flex: 1;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  position: relative;
}
.video-timeline span::after {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 60%;
  background: var(--accent);
  border-radius: 2px;
}
.video-tag {
  font: 700 8.5px var(--font-mono);
  letter-spacing: 0.12em;
  color: #94a3b8;
}

.g-photo {
  background: linear-gradient(135deg, #18181b, #27272a);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.lens-ring {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 3px solid #52525b;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, #09090b 40%, #27272a 100%);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}
.lens-aperture {
  font: 700 8px var(--font-mono);
  color: var(--accent);
}
.photo-badge {
  font: 700 8.5px var(--font-mono);
  letter-spacing: 0.1em;
  color: #a1a1aa;
}

.g-brand {
  background: linear-gradient(135deg, #1b262c, #0f4c75);
}
.mock-logo {
  font: 800 24px var(--font-mono);
  letter-spacing: 0.25em;
  color: #fff;
}
.mock-palette {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}
.mock-palette span {
  width: 18px;
  height: 18px;
  border-radius: 2px;
}

.g-editorial {
  background: linear-gradient(135deg, #2c3e50, #34495e);
}
.mock-doc-page {
  width: 110px;
  height: 120px;
  background: #fff;
  border-radius: 2px;
  padding: 14px 12px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.doc-header-line {
  height: 6px;
  background: var(--accent);
  width: 50%;
  border-radius: 1px;
}
.doc-line {
  height: 4px;
  background: #cbd5e1;
  width: 100%;
  border-radius: 1px;
}
.doc-line.short { width: 70%; }
.doc-box {
  height: 36px;
  background: #f1f5f9;
  border: 1px dashed #94a3b8;
  margin-top: auto;
}

.g-publications {
  background: linear-gradient(135deg, #22223b, #3d3b59);
  color: #fff;
  padding: 16px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.mock-doc-icon {
  font-size: 24px;
}
.mock-doc-title {
  font: 800 13px var(--font-mono);
  letter-spacing: 0.12em;
  color: #f2e9e4;
}
.mock-doc-sub {
  font: 600 8.5px var(--font-mono);
  letter-spacing: 0.14em;
  color: #c9ada7;
}
.mock-doc-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 70px;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px;
  border-radius: 2px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  margin-top: 4px;
}
.mock-doc-lines span {
  height: 3px;
  background: #c9ada7;
  border-radius: 1px;
}
.mock-doc-lines span:nth-child(2) { width: 80%; }
.mock-doc-lines span:nth-child(3) { width: 55%; }

.g-ai {
  background: linear-gradient(135deg, #1f1c2c, #928dab);
  position: relative;
}
.ai-lens {
  font: 700 16px var(--font-mono);
  letter-spacing: 0.15em;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
}

.g-marketing {
  background: linear-gradient(135deg, #d35400, #c0392b);
}
.mock-banner {
  font: 800 20px var(--font-mono);
  color: #fff;
  letter-spacing: 0.1em;
}
.mock-sale-tag {
  font: 700 10px var(--font-mono);
  background: #fff;
  color: #c0392b;
  padding: 3px 8px;
  margin-top: 8px;
}

.g-typo {
  background: #111;
  color: #fff;
}
.typo-huge {
  font: 800 32px var(--font-mono);
  letter-spacing: -0.05em;
  color: #fff;
}
.typo-sub {
  font: 600 9px var(--font-mono);
  letter-spacing: 0.3em;
  color: var(--accent);
}

.g-deck {
  background: linear-gradient(135deg, #134e5e, #71b280);
}
.mock-slide {
  width: 140px;
  height: 95px;
  background: #1c2833;
  border-radius: 3px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.slide-kicker {
  font: 700 8px var(--font-mono);
  color: #71b280;
}
.slide-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 40px;
}
.slide-bars span {
  flex: 1;
  background: #71b280;
  border-radius: 1px 1px 0 0;
}

.project-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-index {
  font: 700 9.5px var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 6px;
}

.project-info h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.project-info p {
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.tags span {
  font: 600 9px var(--font-mono);
  letter-spacing: 0.05em;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 2px;
  color: var(--text);
}

/* ── 03 EXPERIENCE TIMELINE ─────────────────────────────────── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.timeline-item {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 3px;
  padding: 26px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 30px;
  transition: border-color 0.3s;
}

.timeline-item:hover {
  border-color: var(--accent);
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.timeline-year {
  font: 700 13px var(--font-mono);
  color: var(--text);
}

.timeline-duration {
  font: 700 9.5px var(--font-mono);
  color: var(--accent);
  letter-spacing: 0.1em;
}

.timeline-role-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 10px;
}

.timeline-role-head h3 {
  font-size: 19px;
}

.timeline-org {
  font: 600 12px var(--font-mono);
  color: var(--text-muted);
}

.timeline-summary {
  font-size: 14.5px;
  line-height: 1.55;
  margin-bottom: 14px;
}

.timeline-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-bullets li {
  font-size: 13.5px;
  color: var(--text-muted);
  position: relative;
  padding-left: 18px;
  line-height: 1.5;
}

.timeline-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ── 02 SKILLS & WORKBENCH ──────────────────────────────────── */
.skills-cloud-wrap {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 4px;
  padding: 22px 24px;
  margin-bottom: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.cloud-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.cloud-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cloud-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  display: inline-block;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.cloud-label {
  font: 700 11px var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--text);
}

.cloud-badge {
  font: 700 8.5px var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(74, 78, 105, 0.08);
  border: 1px solid rgba(74, 78, 105, 0.25);
  padding: 2px 7px;
  border-radius: 12px;
}

.cloud-filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cloud-tab {
  font: 600 10.5px var(--font-mono);
  letter-spacing: 0.04em;
  padding: 5px 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.cloud-tab:hover {
  color: var(--text);
  border-color: var(--text);
}

.cloud-tab.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.skills-cloud {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}

.skill-card-chip {
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 3px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.skill-card-chip:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 6px 16px rgba(74, 78, 105, 0.12);
}

.skill-card-chip.featured {
  border-color: rgba(74, 78, 105, 0.35);
  background: linear-gradient(135deg, #ffffff 0%, rgba(74, 78, 105, 0.03) 100%);
}

.skill-card-chip.is-dimmed {
  opacity: 0.25;
  transform: scale(0.97);
  pointer-events: none;
}

.chip-icon {
  font-size: 18px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  flex-shrink: 0;
}

.chip-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.chip-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chip-desc {
  font: 500 9.5px var(--font-mono);
  color: var(--text-muted);
  line-height: 1.2;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chip-star {
  font-size: 11px;
  color: var(--accent);
  opacity: 0.8;
  margin-left: auto;
  flex-shrink: 0;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.stack-block {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  padding: 22px 20px;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.stack-block:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.stack-block.active {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(74, 78, 105, 0.12);
}

.stack-block-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.stack-icon {
  font-size: 22px;
}

.stack-num {
  font: 700 10px var(--font-mono);
  color: var(--accent);
  letter-spacing: 0.1em;
}

.stack-block h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.stack-block p {
  font-size: 12.5px;
  line-height: 1.5;
  margin-bottom: 12px;
  color: var(--text-muted);
}

.stack-expand-cue {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 5px 10px;
  font: 700 9px var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(74, 78, 105, 0.08);
  border: 1px solid rgba(74, 78, 105, 0.25);
  border-radius: 2px;
  width: fit-content;
  transition: all 0.2s;
  user-select: none;
}

.stack-block:hover .stack-expand-cue,
.stack-block.active .stack-expand-cue {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.cue-arrow {
  transition: transform 0.25s;
  display: inline-block;
  font-size: 10px;
}

.stack-block.active .cue-arrow {
  transform: rotate(180deg);
}

.stack-feature-list {
  list-style: none;
  display: none; /* HIDE BY DEFAULT AS REQUESTED */
  flex-direction: column;
  gap: 6px;
  margin: 0 0 14px;
  padding: 10px 0;
  border-top: 1px dashed var(--border-subtle);
  border-bottom: 1px dashed var(--border-subtle);
}

.stack-block.active .stack-feature-list {
  display: flex;
  animation: stackFeatureFade 0.25s var(--ease-out) forwards;
}

@keyframes stackFeatureFade {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stack-feature-list li {
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--text);
  position: relative;
  padding-left: 15px;
}

.stack-feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 10px;
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
}

.stack-tags span {
  font: 600 8.5px var(--font-mono);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 3px 7px;
  border-radius: 2px;
  color: var(--text-muted);
}

.languages-strip {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  padding: 18px 22px;
  border-radius: 3px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.lang-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-heading h4 {
  font: 700 11px var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--text);
  margin: 0;
}

.lang-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lang-pill {
  font: 500 11.5px var(--font-mono);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 2px;
  color: var(--text);
}

.lang-pill strong {
  color: var(--accent);
}

/* ── 05 CREDENTIALS & EDUCATION ─────────────────────────────── */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.cert-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  padding: 18px 20px;
  border-radius: 3px;
  min-height: auto;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.cert-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.cert-card.active {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(74, 78, 105, 0.12);
}

.cert-front {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
}

.cert-icon {
  font-size: 22px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 1px;
}

.cert-info-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: 3px;
}

.cert-card h3 {
  font-size: 15px;
  margin: 0;
  min-height: auto;
  line-height: 1.25;
  color: var(--text);
  font-weight: 700;
}

.cert-org {
  font: 600 11px var(--font-mono);
  color: var(--text-muted);
  margin: 0;
  min-height: auto;
  line-height: 1.35;
}

.cert-badge-wrap {
  display: flex;
  margin-top: 4px;
}

.cert-badge {
  font: 700 8px var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid rgba(74, 78, 105, 0.3);
  background: rgba(74, 78, 105, 0.08);
  padding: 3px 8px;
  border-radius: 2px;
  white-space: nowrap;
  width: fit-content;
  margin: 0;
}

.cert-details {
  display: none;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted);
  width: 100%;
  animation: certDetailsFade 0.2s var(--ease-out) forwards;
}

.cert-card.active .cert-details {
  display: block;
}

@keyframes certDetailsFade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.cert-scope {
  font: 700 8.5px var(--font-mono);
  color: var(--accent);
  display: block;
  margin-top: 8px;
  letter-spacing: 0.06em;
}

/* ── 06 CONTACT COMMAND CENTER ──────────────────────────────── */
.contact {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 80px 5vw;
}

.contact-frame {
  max-width: 1160px;
  margin: 0 auto;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4vw;
  align-items: start;
}

.contact-left-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-header .eyebrow {
  color: var(--accent);
}

.contact-header h2 {
  font-size: clamp(38px, 4.8vw, 76px);
  line-height: 0.88;
  letter-spacing: -0.06em;
  margin: 12px 0 16px;
  color: #fff;
}

.contact-sub {
  color: var(--text-light-muted);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
  max-width: 520px;
}

.contact-ecosystem {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.contact-action {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--border-dark);
  padding: 16px 14px;
  text-decoration: none;
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease-out);
  overflow: hidden;
  border-radius: 2px;
}

.contact-action:hover {
  border-color: var(--accent);
  background: rgba(74, 78, 105, 0.08);
  transform: translateY(-2px);
}

.contact-action-icon {
  font-size: 18px;
  margin-bottom: 2px;
}

.contact-action-label {
  font: 500 9px var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--text-light-muted);
}

.contact-action-value {
  font-size: 12px;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-details {
  display: flex;
  gap: 45px;
  padding-top: 20px;
  border-top: 1px solid var(--border-dark);
  margin-top: 6px;
}

.contact-detail .eyebrow {
  color: var(--text-light-muted);
  display: block;
  margin-bottom: 6px;
}

.contact-detail p {
  margin: 0;
  font-size: 14px;
  color: var(--text-light);
}

/* Connect Form */
.contact-right-col {
  display: flex;
  flex-direction: column;
}

.contact-form-wrap {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
  padding: 28px 26px;
  backdrop-filter: blur(8px);
  border-radius: 2px;
  height: auto;
  align-self: start;
  box-sizing: border-box;
  transition: border-color 0.4s, box-shadow 0.4s;
}

@keyframes formHighlightPulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 78, 105, 0.7); }
  50% { box-shadow: 0 0 35px 8px rgba(74, 78, 105, 0.4); border-color: var(--accent); }
  100% { box-shadow: 0 0 0 0 rgba(74, 78, 105, 0); }
}

.contact-form-wrap.highlight-pulse {
  animation: formHighlightPulse 1.8s ease-out;
  border-color: var(--accent) !important;
}

.form-header {
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.form-kicker {
  font: 600 9px var(--font-mono);
  letter-spacing: 0.15em;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}

.form-header h3 {
  font-size: 22px;
  letter-spacing: -0.04em;
  margin: 0 0 5px;
  color: #fff;
}

.form-header p {
  font-size: 13px;
  color: var(--text-light-muted);
  margin: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 13px;
}

.form-field label {
  font: 600 10px var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--text-light-muted);
}

.form-field label span {
  color: var(--accent);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 11px 13px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  transition: border-color 0.25s, background 0.25s;
  border-radius: 2px;
  -webkit-appearance: none;
  box-sizing: border-box;
}

.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234a4e69' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-field select option {
  background: #181716;
  color: #fff;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}

.form-field-message textarea {
  min-height: 105px;
  resize: vertical;
}

.form-transmission-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 14px;
  font: 500 9.5px var(--font-mono);
  color: var(--text-light-muted);
  letter-spacing: 0.03em;
}

.form-transmission-meta .meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  flex-shrink: 0;
}

.form-submit-btn {
  width: 100%;
  padding: 14px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin-top: 4px;
  background: var(--accent);
  color: #fff;
  border: none;
  font: 700 11.5px var(--font-mono);
  letter-spacing: 0.1em;
  transition: background 0.3s, transform 0.2s, box-shadow 0.25s;
  box-shadow: 0 4px 16px rgba(74, 78, 105, 0.25);
  border-radius: 2px;
}

.form-submit-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(74, 78, 105, 0.4);
}

/* ── PROFESSIONAL EXECUTIVE FOOTER ──────────────────────────── */
.footer {
  background: #0d0c0b;
  color: var(--text-light-muted);
  padding: 60px 5vw 36px;
  border-top: 1.5px solid var(--border-dark);
}

.footer-container {
  max-width: 1160px;
  margin: 0 auto;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 5vw;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand-pane {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand-title {
  font: 700 15px var(--font-mono);
  color: #fff;
  letter-spacing: 0.08em;
}

.footer-summary {
  font-size: 13.5px;
  line-height: 1.6;
  color: #a8a59f;
  max-width: 500px;
  margin: 0;
}

.footer-summary strong {
  color: #fff;
}

.footer-summary a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 20px;
  font: 700 9px var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--text-light);
  width: fit-content;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 30px;
}

.footer-col-head {
  font: 700 10px var(--font-mono);
  letter-spacing: 0.14em;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
}

.footer-list a {
  font: 500 12.5px var(--font-mono);
  color: #a8a59f;
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
}

.footer-list a:hover {
  color: #fff;
  transform: translateX(3px);
}

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 14px;
  font: 500 11.5px var(--font-mono);
  color: #7a7670;
}

.footer-bullet {
  margin: 0 6px;
  color: var(--border-dark);
}

.footer-top-btn {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(74, 78, 105, 0.3);
  border-radius: 2px;
  transition: all 0.25s;
}

.footer-top-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.form-feedback {
  margin-top: 12px;
  padding: 10px 12px;
  font: 500 11.5px var(--font-mono);
  display: none;
  border-radius: 2px;
}

.form-feedback.success {
  display: block;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.form-feedback.error {
  display: block;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: #0d0c0b;
  color: var(--text-light-muted);
  padding: 36px 5vw;
  border-top: 1px solid var(--border-dark);
}

.footer-container {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 700 12px var(--font-mono);
  color: var(--text-light);
}

.footer-copy {
  font: 500 11.5px var(--font-mono);
  color: var(--text-light-muted);
}

.footer-links a {
  font: 700 11px var(--font-mono);
  color: var(--accent);
  transition: opacity 0.25s;
}

.footer-links a:hover {
  opacity: 0.7;
}

/* ── PROJECT DETAIL MODAL ───────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 20px;
}

.modal.active {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  background: #181716;
  color: #fff;
  border: 1.5px solid #3d3a36;
  border-radius: 4px;
  width: min(780px, 95vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: modalPop 0.3s var(--ease-out);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: #22201e;
  border-bottom: 1px solid #383531;
}

.modal-kicker {
  font: 700 9px var(--font-mono);
  color: var(--accent);
  letter-spacing: 0.14em;
  display: block;
}

.modal-header h2 {
  font-size: 22px;
  margin-top: 2px;
  color: #fff;
}

.modal-close {
  background: none;
  border: 1px solid #4a4641;
  color: #fff;
  font-size: 20px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.modal-body {
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.modal-visual {
  height: 220px;
  border-radius: 3px;
  overflow: hidden;
  background: #121110;
  border: 1px solid #333;
}

.modal-block h3 {
  font-size: 15px;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.modal-block p {
  font-size: 14px;
  line-height: 1.6;
  color: #d1cfc7;
}

.modal-block ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-block ul li {
  font-size: 13.5px;
  color: #d1cfc7;
  position: relative;
  padding-left: 18px;
  line-height: 1.5;
}

.modal-block ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-tags span {
  font: 600 10px var(--font-mono);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  border-radius: 2px;
  color: #fff;
}

/* ── FLOATING BACK TO TOP ───────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  background: var(--text);
  color: var(--bg);
  border: 1.5px solid var(--border);
  padding: 8px 14px;
  font: 700 10.5px var(--font-mono);
  letter-spacing: 0.08em;
  border-radius: 20px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 78, 105, 0.35);
}

.back-to-top .top-icon {
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.back-to-top .top-label {
  font-size: 10px;
  letter-spacing: 0.08em;
}

/* ── REVEAL ANIMATIONS ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE MEDIA QUERIES
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .header-cta { display: none; }
  .header-insta-btn { display: none; }
  .menu-toggle { display: flex; }
  .brand .brand-name { display: none; } /* Show brand mark only on mobile, like user's portfolio */

  /* Centered Hire Now button on mobile header, exactly like user's portfolio */
  .header-hire-btn {
    display: inline-flex;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font: 700 11px var(--font-mono);
    letter-spacing: 0.06em;
    background: var(--text);
    color: var(--bg);
    border: 1.5px solid var(--text);
    padding: 7px 16px;
    border-radius: 2px;
    white-space: nowrap;
    margin: 0;
    text-decoration: none;
    transition: all 0.25s;
    z-index: 10;
  }

  .header-hire-btn:hover,
  .header-hire-btn:active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateX(-50%) translateY(-1px);
    box-shadow: 0 4px 14px rgba(74, 78, 105, 0.35);
  }

  /* Seamless mobile nav drawer (no bleed gap) */
  .mobile-nav {
    top: 58px;
    inset: 58px 0 0 0;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 28px 4vw 20px;
    gap: 20px;
  }

  /* Keep hero-content FIRST on mobile so her intro is front-and-center */
  .hero-visual {
    order: 2;
    margin-top: 10px;
  }

  .phone-mockup-wrap {
    max-width: 290px;
    margin: 10px auto 0;
  }

  .phone-screen {
    height: 390px;
  }

  .story-header {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
  }

  .story-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-details {
    margin-top: 12px;
  }
}

@media (max-width: 600px) {
  .site-header { padding: 0 4vw; height: 58px; }
  .brand-mark { width: 28px; height: 28px; font-size: 9.5px; }
  .brand .brand-name { display: none; }
  .mobile-nav { top: 58px; inset: 58px 0 0 0; }

  /* ── CORE SKILLS MATRIX (MOBILE OPTIMIZATION) ── */
  .skills-cloud-wrap {
    padding: 14px 12px;
    margin-bottom: 20px;
  }

  .cloud-header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-bottom: 10px;
    margin-bottom: 12px;
  }

  .cloud-filter-tabs {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    gap: 4px;
    flex-wrap: nowrap;
  }

  .cloud-tab {
    font-size: 9px;
    padding: 3px 8px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .skills-cloud {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .skill-card-chip {
    padding: 8px 8px;
    gap: 6px;
  }

  .chip-icon {
    width: 24px;
    height: 24px;
    font-size: 13px;
  }

  .chip-name {
    font-size: 10.5px;
  }

  .chip-desc {
    font-size: 7.5px;
  }

  .chip-star {
    display: none;
  }

  /* ── SECTION PADDING TIGHTENED ── */
  .section {
    padding: 34px 4vw;
  }

  .section-header {
    margin-bottom: 16px;
  }

  .section-header h2 {
    font-size: clamp(24px, 7.5vw, 32px);
    line-height: 1.05;
  }

  .section-sub {
    font-size: 13px;
    line-height: 1.5;
    margin-top: 6px;
  }

  /* ── HERO OPTIMIZATIONS (IMAGE 1 & IMAGE 2 FIXES) ── */
  .hero {
    padding-top: 18px;
    padding-bottom: 20px;
    gap: 14px;
  }

  .status-badge {
    padding: 4px 10px;
    font-size: 8.5px;
  }

  .hero-kicker {
    font-size: 9px;
    letter-spacing: 0.1em;
    line-height: 1.35;
  }

  .hero h1 {
    font-size: clamp(25px, 8vw, 32px);
    line-height: 1.08;
  }

  .hero-lede {
    font-size: 12.5px;
    line-height: 1.5;
  }

  .hero-actions {
    display: flex;
    gap: 8px;
    margin-top: 2px;
    flex-wrap: wrap;
  }

  .hero-actions .button {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
    padding: 9px 10px;
    font-size: 9.5px;
    letter-spacing: 0.04em;
  }

  /* 2x2 Clean Compact Grid for Highlights (Image 2 Fix) */
  .hero-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
  }

  .highlight-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 8px 10px;
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .highlight-num {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
  }

  .highlight-label {
    font-size: 9px;
    line-height: 1.25;
    color: var(--text-muted);
  }

  /* ── STORY SECTION OPTIMIZATIONS (IMAGE 3 FIX — NO MORE MASSIVE SCROLLING) ── */
  .story-profile-card {
    padding: 16px 14px;
  }

  .profile-card-header {
    margin-bottom: 8px;
    padding-bottom: 8px;
  }

  .profile-card-header h3 {
    font-size: 18px;
  }

  .profile-card-body {
    gap: 8px;
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 10px;
  }

  .profile-card-pills {
    gap: 4px;
    padding-top: 8px;
  }

  .profile-card-pills span {
    font-size: 8px;
    padding: 2px 6px;
  }

  /* 2x2 Snug Grid for 4 Pillars without huge scrolling */
  .story-pillars-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .pillar-card {
    padding: 10px 8px;
  }

  .pillar-top {
    margin-bottom: 4px;
  }

  .pillar-index {
    font-size: 8.5px;
  }

  .pillar-badge {
    font-size: 7px;
    padding: 1px 4px;
  }

  .pillar-card h3 {
    font-size: 12px;
    margin-bottom: 3px;
    line-height: 1.2;
  }

  .pillar-card p {
    font-size: 10.5px;
    line-height: 1.35;
    margin-bottom: 4px;
  }

  /* Hide long bullet lists on mobile so user doesn't have to scroll for miles */
  .pillar-bullets {
    display: none;
  }

  .pillar-tags {
    gap: 3px;
    padding-top: 6px;
  }

  .pillar-tags span {
    font-size: 7.5px;
    padding: 1px 4px;
  }

  /* ── SKILLS SECTION (IMAGE 4 FIX — NO MORE SKINNY TOWERS) ── */
  .skills-cloud-wrap {
    padding: 10px 12px;
    margin-bottom: 12px;
    gap: 5px;
  }

  .cloud-label {
    font-size: 8.5px;
  }

  .skill-pill {
    font-size: 8.5px;
    padding: 3px 7px;
  }

  /* FULL WIDTH 1 COLUMN ON MOBILE so cards aren't narrow 700px skyscrapers! */
  .stack-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stack-block {
    padding: 12px 14px;
  }

  .stack-block-top {
    margin-bottom: 4px;
  }

  .stack-icon {
    font-size: 18px;
  }

  .stack-num {
    font-size: 9.5px;
  }

  .stack-block h3 {
    font-size: 14.5px;
    margin-bottom: 4px;
  }

  .stack-block p {
    font-size: 11.5px;
    line-height: 1.45;
    margin-bottom: 6px;
  }

  .stack-feature-list {
    margin: 4px 0 8px;
    padding: 6px 0;
    gap: 3px;
  }

  .stack-feature-list li {
    font-size: 10.5px;
    line-height: 1.35;
    padding-left: 14px;
  }

  .stack-tags {
    gap: 4px;
  }

  .stack-tags span {
    font-size: 8px;
    padding: 2px 5px;
  }

  .languages-strip {
    padding: 10px 12px;
    margin-top: 12px;
    gap: 6px;
  }

  .lang-heading h4 {
    font-size: 9.5px;
  }

  .lang-pill {
    font-size: 10px;
    padding: 3px 7px;
  }

  /* ── EXPERIENCE SECTION (IMAGE 5 FIX — COMPACT & EXECUTIVE) ── */
  .timeline {
    gap: 10px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 14px;
  }

  .timeline-meta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .timeline-year {
    font-size: 11px;
    font-weight: 700;
  }

  .timeline-duration {
    font-size: 8.5px;
    background: var(--bg-subtle);
    padding: 2px 5px;
    border-radius: 2px;
  }

  .timeline-role-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-bottom: 3px;
  }

  .timeline-role-head h3 {
    font-size: 14px;
    line-height: 1.25;
  }

  .timeline-org {
    font-size: 11px;
    color: var(--accent);
    font-weight: 700;
  }

  .timeline-summary {
    font-size: 11.5px;
    line-height: 1.45;
    margin-bottom: 6px;
  }

  .timeline-bullets {
    gap: 3px;
  }

  .timeline-bullets li {
    font-size: 10.5px;
    line-height: 1.35;
    padding-left: 14px;
  }

  /* On mobile, keep top 2 high-impact bullets so cards stay compact */
  .timeline-bullets li:nth-child(n+3) {
    display: none;
  }

  /* ── WORK SECTION ── */
  .project-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .project-visual {
    height: 105px;
  }

  .project-info {
    padding: 8px 6px;
  }

  .project-info h3 {
    font-size: 12.5px;
  }

  .project-info p {
    font-size: 9.5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
  }

  .tags span {
    font-size: 7.5px;
    padding: 2px 4px;
  }

  /* ── CREDENTIALS (IMAGE 1 FIX — SLEEK HORIZONTAL ROWS) ── */
  .cert-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .cert-card {
    min-height: auto !important;
    padding: 12px 14px;
    border-radius: 3px;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: left;
    transition: border-color 0.25s, box-shadow 0.25s;
  }

  .cert-front {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 12px;
    width: 100%;
    text-align: left;
  }

  .cert-icon {
    font-size: 19px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 3px;
    margin-top: 1px;
    flex-shrink: 0;
  }

  .cert-info-wrap {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    gap: 2px;
  }

  .cert-card h3 {
    font-size: 13.5px;
    line-height: 1.25;
    margin: 0;
    min-height: auto;
    white-space: normal;
  }

  .cert-org {
    font-size: 10px;
    line-height: 1.3;
    margin: 0;
    min-height: auto;
    white-space: normal;
    color: var(--text-muted);
  }

  .cert-badge-wrap {
    display: flex;
    margin-top: 4px;
  }

  .cert-badge {
    font-size: 7.5px;
    padding: 2px 6px;
    margin: 0;
    letter-spacing: 0.06em;
    white-space: nowrap;
    width: fit-content;
  }

  .cert-details {
    display: none;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-subtle);
    font-size: 11px;
    line-height: 1.4;
    color: var(--text-muted);
    width: 100%;
  }

  .cert-card.active .cert-details {
    display: block !important;
  }

  .cert-scope {
    font-size: 8px;
    margin-top: 4px;
  }

  /* ── CONTACT & FORM (IMAGE 2 FIX — 2-COL QUICK GRID & COMPACT FORM) ── */
  .contact {
    padding: 28px 4vw 32px;
    scroll-margin-top: 60px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .contact-header {
    margin-bottom: 10px;
  }

  .contact-header h2 {
    font-size: clamp(23px, 7.5vw, 29px);
    margin: 6px 0 4px;
  }

  .contact-sub {
    font-size: 11.5px;
    line-height: 1.45;
    margin-bottom: 10px;
  }

  .contact-ecosystem {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 12px;
  }

  .contact-action {
    padding: 8px 10px;
    border-radius: 2px;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .contact-action-icon {
    font-size: 14px;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .contact-action-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .contact-action-label {
    font-size: 7.5px;
    letter-spacing: 0.08em;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 2px;
  }

  .contact-action-value {
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
  }

  .contact-action-wide {
    grid-column: 1 / -1;
  }

  .contact-details {
    display: none;
  }

  /* Compact Form on mobile */
  .contact-form-wrap {
    padding: 14px 12px;
    background: #151413;
    border: 1px solid #2d2925;
    border-radius: 3px;
  }

  .form-header {
    margin-bottom: 10px;
    padding-bottom: 6px;
  }

  .form-kicker {
    font-size: 8px;
    margin-bottom: 2px;
  }

  .form-header h3 {
    font-size: 14.5px;
    margin-bottom: 2px;
  }

  .form-header p {
    font-size: 10.5px;
    line-height: 1.35;
  }

  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 6px;
  }

  .form-field {
    margin-bottom: 0;
    gap: 3px;
  }

  .form-field-full {
    grid-column: 1 / -1;
  }

  .form-field label {
    font-size: 8px;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
  }

  .form-field input,
  .form-field select,
  .form-field textarea {
    padding: 7px 8px;
    font-size: 11px;
    border-radius: 2px;
    border-color: #38342f;
    background: #1c1a18;
    color: #fff;
  }

  .form-field-message {
    margin-top: 6px;
  }

  .form-field textarea {
    min-height: 55px;
    resize: vertical;
  }

  .form-transmission-meta {
    font-size: 8.5px;
    margin: 6px 0 8px;
  }

  .form-submit-btn {
    width: 100%;
    justify-content: center;
    padding: 9px 14px;
    font-size: 10.5px;
    letter-spacing: 0.08em;
  }

  /* ── EXECUTIVE FOOTER ON MOBILE ── */
  .footer {
    padding: 28px 4vw 22px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-bottom: 18px;
  }

  .footer-brand-pane {
    gap: 8px;
  }

  .footer-brand-title {
    font-size: 14px;
  }

  .footer-summary {
    font-size: 11px;
    line-height: 1.5;
  }

  .footer-badge {
    font-size: 7.5px;
    padding: 3px 8px;
  }

  .footer-links-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .footer-col-head {
    font-size: 8.5px;
    margin-bottom: 6px;
  }

  .footer-list {
    gap: 5px;
  }

  .footer-list a {
    font-size: 10.5px;
  }

  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 14px;
    font-size: 9.5px;
  }

  .footer-top-btn {
    font-size: 9px;
    padding: 3px 8px;
  }

  /* ── FLOATING TOP BUTTON (PERFECTLY CENTERED RAZOR-SHARP ARROW CIRCLE) ── */
  .back-to-top {
    bottom: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(74, 78, 105, 0.45);
  }

  .back-to-top .top-icon {
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    display: block;
    transform: translateY(-1px);
  }

  .back-to-top .top-label {
    display: none; /* Hide cramped text TOP on mobile */
  }
}
