/* ==========================================================================
   PORTFOLIO V2 — DESIGN SYSTEM & BASE STYLES
   Tailored OKLCH Token Engine, Space Grotesk / DM Sans / JetBrains Mono Typography,
   Fluid Utilities, Glassmorphic Navigation, Responsive Grids, and Dark-First Theme.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Space+Grotesk:wght@300..700&display=swap');

:root {
  --radius: 0.5rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --radius-2xl: calc(var(--radius) + 8px);
  --radius-3xl: calc(var(--radius) + 12px);

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  /* Light Theme Tokens — warm editorial paper */
  --background: oklch(0.977 0.004 90);
  --foreground: oklch(0.185 0.008 60);
  --surface: oklch(0.955 0.005 90);
  --surface-raised: oklch(0.995 0.002 90);
  --card: oklch(0.995 0.002 90);
  --card-foreground: oklch(0.185 0.008 60);
  --popover: oklch(0.995 0.002 90);
  --popover-foreground: oklch(0.185 0.008 60);
  --primary: oklch(0.185 0.008 60);
  --primary-foreground: oklch(0.977 0.004 90);
  --secondary: oklch(0.93 0.006 90);
  --secondary-foreground: oklch(0.24 0.008 60);
  --muted: oklch(0.93 0.006 90);
  --muted-foreground: oklch(0.30 0.012 65);
  --subtle: oklch(0.45 0.01 70);
  --accent: oklch(0.93 0.006 90);
  --accent-foreground: oklch(0.24 0.008 60);
  --brand: oklch(0.52 0.13 48);
  --brand-foreground: oklch(0.99 0.005 90);
  --brand-muted: oklch(0.52 0.13 48 / 12%);
  --destructive: oklch(0.52 0.19 27);
  --destructive-foreground: oklch(0.99 0.005 90);
  --border: oklch(0.75 0.006 85);
  --border-strong: oklch(0.65 0.008 80);
  --input: oklch(0.885 0.006 85);
  --ring: oklch(0.52 0.13 48);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  /* Dark Theme Tokens — deep editorial ink */
  --background: oklch(0.155 0.006 70);
  --foreground: oklch(0.965 0.004 90);
  --surface: oklch(0.19 0.007 70);
  --surface-raised: oklch(0.225 0.008 70);
  --card: oklch(0.19 0.007 70);
  --card-foreground: oklch(0.965 0.004 90);
  --popover: oklch(0.19 0.007 70);
  --popover-foreground: oklch(0.965 0.004 90);
  --primary: oklch(0.965 0.004 90);
  --primary-foreground: oklch(0.155 0.006 70);
  --secondary: oklch(0.255 0.008 70);
  --secondary-foreground: oklch(0.965 0.004 90);
  --muted: oklch(0.255 0.008 70);
  --muted-foreground: oklch(0.85 0.012 80);
  --subtle: oklch(0.58 0.01 75);
  --accent: oklch(0.255 0.008 70);
  --accent-foreground: oklch(0.965 0.004 90);
  --brand: oklch(0.79 0.13 62);
  --brand-foreground: oklch(0.17 0.02 60);
  --brand-muted: oklch(0.79 0.13 62 / 14%);
  --destructive: oklch(0.68 0.18 25);
  --destructive-foreground: oklch(0.155 0.006 70);
  --border: oklch(1 0 0 / 11%);
  --border-strong: oklch(1 0 0 / 22%);
  --input: oklch(1 0 0 / 15%);
  --ring: oklch(0.79 0.13 62);
}

/* ==========================================================================
   Base & Resets
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

::selection {
  background: var(--brand);
  color: var(--brand-foreground);
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: 2px;
}

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

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

/* ==========================================================================
   Typography Utilities
   ========================================================================== */

.display-xl {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 1.5rem + 3vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.display-lg {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 1.5rem + 2.2vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.028em;
}

.display-md {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.022em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.lead {
  font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.3125rem);
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* ==========================================================================
   Layout & Containers
   ========================================================================== */

.site-container {
  width: 100%;
  max-width: 76rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 1024px) {
  .site-container {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

.section {
  padding-top: clamp(4rem, 7vw, 7rem);
  padding-bottom: clamp(4rem, 7vw, 7rem);
  position: relative;
}

.section-border-top {
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background-color: var(--background);
  background-color: color-mix(in srgb, var(--background) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s var(--ease-standard);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--foreground);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-logo:hover {
  color: var(--brand);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.2s var(--ease-standard);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--foreground);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--brand);
  border-radius: 999px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle {
  width: 2.375rem;
  height: 2.375rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--foreground);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.theme-toggle:hover {
  background-color: var(--surface-raised);
  border-color: var(--border-strong);
}

.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.375rem;
  height: 2.375rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--foreground);
  cursor: pointer;
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-nav-drawer {
  position: fixed;
  top: 4.25rem;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--background);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 49;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s var(--ease-out-expo), opacity 0.3s ease;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-drawer.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--foreground);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* ==========================================================================
   Buttons & Tags
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  transition: all 0.2s var(--ease-standard);
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  line-height: 1.4;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--foreground);
  border-color: var(--border);
}

.btn-secondary:hover {
  background-color: var(--surface-raised);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.btn-brand {
  background-color: var(--brand);
  color: var(--brand-foreground);
}

.btn-brand:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* Minimal, borderless CTA for section headers — reads as a link, behaves as a button. */
.btn-tertiary {
  padding: 0.375rem 0;
  gap: 0.375rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-foreground);
  background-color: transparent;
  border-color: transparent;
  white-space: nowrap;
}

.btn-tertiary svg {
  transition: transform 0.2s var(--ease-standard);
}

.btn-tertiary:hover {
  color: var(--brand);
}

.btn-tertiary:hover svg {
  transform: translateX(3px);
}

.tag-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background-color: var(--surface);
  color: var(--muted-foreground);
  border: 1px solid var(--border);
  letter-spacing: 0.02em;
}

.tag-badge--brand {
  background-color: var(--brand-muted);
  color: var(--brand);
  border-color: transparent;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.3fr 0.9fr;
    gap: 4rem;
  }
}

.hero-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background-color: var(--surface);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
  max-width: 400px;
  margin: 0 auto;
}

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

.hero-about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .hero-about-grid {
    grid-template-columns: 1.35fr 0.85fr;
    gap: 3.5rem;
    align-items: start;
  }
}

.hero-about-portrait-wrapper {
  max-width: 380px;
  width: 100%;
  margin: 0 auto;
}

@media (min-width: 960px) {
  .hero-about-portrait-wrapper {
    position: sticky;
    top: 7rem;
    margin: 0 0 0 auto;
  }
}

.hero-about-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background-color: var(--surface);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.2);
}

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

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

/* ==========================================================================
   Project Cards & Work Grid
   ========================================================================== */

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

.project-card {
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  transition: transform 0.3s var(--ease-out-expo);
}

.project-card__image-wrap,
.project-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background-color: var(--surface);
  transition: transform 0.4s var(--ease-out-expo), border-color 0.3s ease, box-shadow 0.3s ease;
}

.project-card__image-wrap img,
.project-card__media img,
.project-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out-expo);
}

.project-card:hover .project-card__image-wrap,
.project-card:hover .project-card__media {
  border-color: var(--border-strong);
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.3);
}

.project-card:hover .project-card__image-wrap img,
.project-card:hover .project-card__media img,
.project-card:hover .project-card__image {
  transform: scale(1.03);
}

.project-card__badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background-color: rgba(18, 18, 20, 0.82);
  color: #f4f4f5;
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

[data-theme="light"] .project-card__badge {
  background-color: rgba(255, 255, 255, 0.9);
  color: #18181b;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.project-card__body,
.project-card__content {
  padding: 1.25rem 0 0 0;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-card__company,
.project-card__category {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-foreground);
  margin-bottom: 0.375rem;
}

.project-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--foreground);
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.project-card:hover .project-card__title {
  color: var(--brand);
}

.project-card__desc {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.55;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
}

.tag-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.625rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  background-color: var(--surface);
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.tag-badge--brand {
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 35%, transparent);
  background-color: var(--brand-muted);
}

.project-card__footer {
  margin-top: 0.5rem;
  padding-top: 0.25rem;
}

.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  transition: gap 0.2s var(--ease-standard), color 0.2s ease;
}

.project-card__link svg {
  transition: transform 0.2s var(--ease-standard);
}

.project-card:hover .project-card__link {
  gap: 0.625rem;
}

.project-card:hover .project-card__link svg {
  transform: translateX(3px);
}

/* Stretched link — the CTA anchor covers the whole card so the hero image and
   the copy are clickable too, without nesting interactive elements. */
.project-card__link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--radius-xl);
}

.project-card:has(.project-card__link) {
  cursor: pointer;
}

/* The badge paints above the stretched hit area, so let clicks pass through. */
.project-card__badge {
  pointer-events: none;
}

/* Keyboard parity with :hover — the card reacts when the CTA is focused. */
.project-card:focus-within .project-card__image-wrap {
  border-color: var(--border-strong);
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.3);
}

.project-card:focus-within .project-card__title {
  color: var(--brand);
}

.project-card__link:focus-visible::after {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

/* ==========================================================================
   Metrics & Leadership Grid
   ========================================================================== */

/* Hub page hero metrics — horizontal stat row under the intro copy. */
.metrics-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .metrics-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.metrics-strip .metric-card {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1.25rem 1.375rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background-color: var(--surface);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.metrics-strip .metric-card:hover {
  border-color: var(--border-strong);
  background-color: var(--surface-raised);
}

.metric-val {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--brand);
}

.metric-lbl {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 960px) {
  .metrics-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.metric-tile {
  padding: 1.75rem;
  border-radius: var(--radius-xl);
  background-color: var(--card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.metric-tile__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--brand);
  line-height: 1;
}

.metric-tile__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--foreground);
}

.metric-tile__desc {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

/* ==========================================================================
   Career Snapshot Bento Box Grid
   ========================================================================== */

.bento-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .bento-snapshot-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 1.25rem;
    grid-auto-rows: 1fr;
    align-items: stretch;
  }
}

.bento-tile {
  padding: 1.5rem 1.625rem;
  border-radius: var(--radius-xl);
  background-color: var(--card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-sizing: border-box;
  transition: transform 0.25s var(--ease-out-expo), border-color 0.25s ease, box-shadow 0.25s ease;
}

.bento-tile:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.15);
}

.bento-tile__num {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 3vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.bento-tile__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--foreground);
  line-height: 1.35;
}

.bento-tile__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  align-items: center;
}

/* Bento Responsive Spans */
@media (max-width: 767px) {
  .bento-stat { grid-column: span 1; }
  .bento-industries { grid-column: span 2; }
  .bento-platforms { grid-column: span 2; }
  .bento-research { grid-column: span 2; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .bento-stat { grid-column: span 6; }
  .bento-industries { grid-column: span 6; }
  .bento-platforms { grid-column: span 6; }
  .bento-research { grid-column: span 12; }
}

@media (min-width: 1024px) {
  .bento-stat { grid-column: span 3; }
  .bento-industries { grid-column: span 3; }
  .bento-platforms { grid-column: span 5; }
  .bento-research { grid-column: span 4; }
}

/* Career Timeline */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
}

.timeline-item {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--border);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 0.25rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--brand);
  border: 2px solid var(--background);
}

.timeline-role {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
}

.timeline-meta {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
}

.timeline-desc {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border);
  background-color: var(--surface);
  padding: 4rem 0 2.5rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
  }
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-foreground);
  margin-bottom: 1.25rem;
}

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

.footer-link {
  font-size: 0.9375rem;
  color: var(--foreground);
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--brand);
}

.footer-bottom {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
  }
}

/* ==========================================================================
   Motion & Reveal Utilities
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

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

/* ==========================================================================
   Scroll Progress Bar
   ========================================================================== */

.scroll-progress-container {
  position: fixed;
  top: 4.25rem;
  left: 0;
  right: 0;
  height: 2px;
  background-color: transparent;
  z-index: 45;
  pointer-events: none;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background-color: var(--brand);
  transform-origin: left;
  transition: width 0.1s ease-out;
}

/* ==========================================================================
   Sticky Section Navigation (About Page)
   ========================================================================== */

.sticky-section-nav {
  position: sticky;
  top: 4.25rem;
  z-index: 40;
  background-color: color-mix(in srgb, var(--background) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.625rem 0;
  display: none;
}

@media (min-width: 768px) {
  .sticky-section-nav {
    display: block;
  }
}

.sticky-nav-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sticky-nav-list::-webkit-scrollbar {
  display: none;
}

.sticky-nav-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted-foreground);
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  white-space: nowrap;
  transition: all 0.2s var(--ease-standard);
  text-decoration: none;
}

.sticky-nav-link:hover {
  color: var(--foreground);
  background-color: var(--surface);
}

.sticky-nav-link.active {
  color: var(--brand);
  background-color: var(--brand-muted);
  font-weight: 600;
}

/* ==========================================================================
   Sticky Company Filter Chips Bar (Work / All Projects Page)
   ========================================================================== */

.sticky-filter-bar {
  position: sticky;
  top: 4.25rem;
  z-index: 40;
  background-color: color-mix(in srgb, var(--background) 86%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.2s var(--ease-standard), background-color 0.2s ease;
}

.sticky-filter-bar__inner {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0.125rem 0;
}

.sticky-filter-bar__inner::-webkit-scrollbar {
  display: none;
}

.company-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
}

.company-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.4rem 0.9375rem;
  border-radius: 9999px;
  background-color: var(--surface);
  color: var(--muted-foreground);
  border: 1px solid var(--border);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s var(--ease-standard);
}

.company-pill:hover {
  color: var(--foreground);
  border-color: var(--border-strong);
  background-color: var(--surface-raised);
}

.company-pill.active {
  color: var(--brand);
  border-color: var(--brand);
  background-color: var(--brand-muted);
  font-weight: 600;
}

/* ==========================================================================
   3-Column Work Grid & Right-Aligned All Projects Link
   ========================================================================== */

.work-grid-3col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .work-grid-3col {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 2rem;
  }
}

@media (min-width: 1024px) {
  .work-grid-3col {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2.25rem;
  }
}

.all-projects-wrapper {
  display: flex;
  justify-content: flex-end;
  margin-top: 2.5rem;
}

.all-projects-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--foreground);
  text-decoration: none;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid var(--border-strong);
  transition: all 0.2s var(--ease-standard);
}

.all-projects-link svg {
  transition: transform 0.2s var(--ease-standard);
}

.all-projects-link:hover {
  color: var(--brand);
  border-color: var(--brand);
}

.all-projects-link:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   Company Sections (Work Page)
   ========================================================================== */

.company-section {
  scroll-margin-top: 8.5rem;
}

.company-section-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .company-section-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

/* Minimal "go to company hub" CTA sitting beside a company section heading. */
.company-hub-link {
  align-self: flex-start;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

@media (min-width: 768px) {
  .company-hub-link {
    align-self: flex-end;
    margin-top: 0;
    margin-bottom: 0.25rem;
  }
}

.company-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background-color: var(--brand-muted);
  color: var(--brand);
  width: fit-content;
}

/* ==========================================================================
   Chapter Accordions (About Page Experience)
   ========================================================================== */

.chapter-accordion {
  border-top: 1px solid var(--border);
  transition: background-color 0.2s;
  scroll-margin-top: 6rem;
}

.chapter-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.75rem 0;
  cursor: pointer;
  list-style: none;
  align-items: center;
}

.chapter-summary::-webkit-details-marker {
  display: none;
}

@media (min-width: 768px) {
  .chapter-summary {
    grid-template-columns: 3.5rem 1fr auto auto;
    gap: 1.5rem;
  }
}

.chapter-logo {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background-color: var(--surface);
  overflow: hidden;
}

.chapter-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chapter-duration {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.chapter-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.chapter-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
}

.chapter-role {
  font-size: 0.875rem;
  color: var(--brand);
  font-weight: 500;
}

.chapter-toggle-icon {
  color: var(--muted-foreground);
  transition: transform 0.25s var(--ease-standard);
  justify-self: end;
}

.chapter-accordion[open] .chapter-toggle-icon {
  transform: rotate(45deg);
}

.chapter-body {
  padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .chapter-body {
    padding-left: 4.75rem;
  }
}

.chapter-story-text {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.65;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.chapter-achievements-list {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chapter-achievement-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--foreground);
}

.chapter-bullet-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--brand);
  margin-top: 0.55rem;
  flex-shrink: 0;
}

.chapter-split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .chapter-split-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.chapter-split-card {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background-color: var(--card);
}

.chapter-split-card h4 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.chapter-split-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.55;
}

/* ==========================================================================
   Leadership Ladder, Skills, Focus, and Philosophy
   ========================================================================== */

.focus-callout {
  padding: 2.25rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background-color: var(--card);
}

@media (min-width: 768px) {
  .focus-callout {
    padding: 3rem;
  }
}

.ladder-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 960px) {
  .ladder-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ladder-card {
  padding: 1.75rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background-color: var(--card);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ladder-stage-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--brand);
  font-weight: 500;
}

.ladder-role {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
}

.ladder-specs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.ladder-spec-item dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

.ladder-spec-item dd {
  color: var(--foreground);
  line-height: 1.5;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.skills-card {
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background-color: var(--card);
}

.skills-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .philosophy-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.philosophy-card {
  padding: 1.75rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background-color: var(--card);
}

.philosophy-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.philosophy-card p {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.education-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .education-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.education-card {
  padding: 1.75rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background-color: var(--card);
}

.education-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.education-card .degree-title {
  color: var(--brand);
  font-size: 0.9375rem;
  font-weight: 500;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.education-card .degree-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.55;
}

/* ==========================================================================
   Toast Notification (Email Copy Feedback)
   ========================================================================== */

.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  background-color: var(--foreground);
  color: var(--background);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s var(--ease-out-expo), opacity 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toast-notification.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

