/* ============================================
   TAANIS KARIGAR — DESIGN SYSTEM
   Warm editorial, precise technical
   ============================================ */

/* ------------------------------------------
   1. VARIABLES
   ------------------------------------------ */
:root {
  /* Foundation */
  --paper: #faf9f5;
  --paper-alt: #f2f0ea;
  --paper-deep: #efe9de;
  --ink: #141413;
  --ink-soft: rgba(20, 20, 19, 0.74);
  --ink-muted: rgba(20, 20, 19, 0.54);
  --stone: #d9d4ca;
  --stone-strong: #b7b0a3;

  /* Brand */
  --brick-red: #b31e21;
  --brick-red-hover: #8f171a;
  --brick-red-soft: rgba(179, 30, 33, 0.12);

  /* Accents */
  --olive: #515b3a;
  --sage: #b1b79c;
  --graphite: #1d1d1b;
  --graphite-deep: #141413;

  /* Semantic */
  --success: #2f7a4b;
  --warning: #a15c1b;

  /* Shadows */
  --shadow-soft: 0 10px 30px rgba(20, 20, 19, 0.06);
  --shadow-medium: 0 16px 40px rgba(20, 20, 19, 0.10);
  --shadow-strong: 0 24px 60px rgba(20, 20, 19, 0.22);

  /* Layout */
  --max-width: 1180px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 28px;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Animation */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
}

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

:focus-visible {
  outline: 2px solid var(--brick-red);
  outline-offset: 2px;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Cause", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul, ol { list-style: none; }

/* ------------------------------------------
   3. TYPOGRAPHY
   ------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: "Shadows Into Light Two", Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.display-xl {
  font-size: clamp(3.2rem, 7vw, 5.5rem);
  line-height: 0.95;
  white-space: nowrap;
}

.display-lg {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.05;
}

.display-md {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.15;
}

.heading-xl {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
}

.heading-lg {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.15;
}

.heading-md {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  line-height: 1.25;
}

.heading-sm {
  font-size: 1.1rem;
  line-height: 1.3;
}

.body-lg {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  line-height: 1.7;
  color: var(--ink-soft);
}

.body-md {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.body-sm {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

.label {
  font-family: "Cause", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brick-red);
}

.caption {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-muted);
}

/* ------------------------------------------
   4. LAYOUT UTILITIES
   ------------------------------------------ */
.container {
  width: min(calc(100% - var(--space-6)), var(--max-width));
  margin: 0 auto;
}

.page-shell {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.section {
  padding: var(--space-7) 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.section-header > div:first-child {
  max-width: 600px;
}

.section-header .section-copy {
  max-width: 400px;
  text-align: right;
}

@media (max-width: 768px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .section-header .section-copy {
    text-align: left;
    max-width: 100%;
  }
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

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

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ------------------------------------------
   5. NAVIGATION
   ------------------------------------------ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 245, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--stone);
  transition: var(--transition-base);
}

.topbar.scrolled {
  box-shadow: var(--shadow-soft);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: "Shadows Into Light Two", serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ink);
}

.brand-mark {
  display: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: var(--transition-fast);
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brick-red);
  transition: var(--transition-base);
  border-radius: 2px;
}

.nav a:hover,
.nav a.active {
  color: var(--ink);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: var(--transition-base);
  border-radius: 2px;
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--stone);
    padding: var(--space-5);
    flex-direction: column;
    gap: var(--space-4);
    box-shadow: var(--shadow-strong);
  }
  .nav.open {
    display: flex;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ------------------------------------------
   6. HERO
   ------------------------------------------ */
.hero {
  padding: var(--space-7) 0 var(--space-6);
  position: relative;
}

.hero-full {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--space-7) 0;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--paper) 0%, #f7f4ee 50%, var(--paper-deep) 100%);
  box-shadow: var(--shadow-strong);
  padding: var(--space-7);
}

.hero-panel::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(179, 30, 33, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-panel::after {
  content: "";
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(81, 91, 58, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: var(--space-7);
  align-items: center;
}

.hero-text {
  max-width: 640px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: var(--space-2) var(--space-3);
  border: 1px solid rgba(20, 20, 19, 0.12);
  border-radius: 999px;
  background: rgba(250, 249, 245, 0.6);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--space-4);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brick-red);
}

.hero-title {
  font-family: "Cause", sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  color: var(--brick-red);
  margin-top: var(--space-3);
  letter-spacing: 0.02em;
}

.hero-description {
  margin-top: var(--space-6);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 48ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.hero-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(20, 20, 19, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: grid;
  gap: var(--space-5);
}

.hero-card-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.hero-card .stat-grid {
  gap: var(--space-4);
}

.hero-card .stat {
  padding: var(--space-4);
  background: transparent;
  border: none;
  text-align: left;
}

.hero-card .stat-value {
  font-family: "Shadows Into Light Two", serif;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--brick-red);
  font-variant-numeric: tabular-nums;
}

.hero-card .stat-label {
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--ink-muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-card-footer {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  font-size: 0.9rem;
  color: var(--ink-muted);
  position: relative;
}

.hero-card-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--brick-red);
  border-radius: 2px;
}

.profile-wrapper {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: var(--space-5);
}

.profile-img {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .hero-panel {
    padding: var(--space-6);
  }
}

@media (max-width: 640px) {
  .hero-panel {
    padding: var(--space-5);
    border-radius: var(--radius-lg);
  }
  .profile-wrapper {
    flex-direction: column;
  }
  .profile-img {
    width: 110px;
    height: 110px;
  }
}

/* ------------------------------------------
   7. STATS & METRICS
   ------------------------------------------ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.stat {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: rgba(250, 249, 245, 0.5);
  border: 1px solid rgba(20, 20, 19, 0.06);
}

.stat-value {
  font-family: "Shadows Into Light Two", serif;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--ink);
}

.stat-label {
  margin-top: var(--space-2);
  font-size: 0.8rem;
  color: var(--ink-muted);
  font-weight: 600;
}

.stat-big {
  text-align: center;
  padding: var(--space-6);
}

.stat-big .stat-value {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--brick-red);
}

.stat-big .stat-label {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: var(--space-3);
}

/* ------------------------------------------
   8. BUTTONS
   ------------------------------------------ */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: "Cause", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  transition: var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
}

.button-primary {
  background: var(--brick-red);
  color: #fff;
}

.button-primary:hover {
  background: var(--brick-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(179, 30, 33, 0.25);
}

.button-secondary {
  background: transparent;
  border-color: var(--stone);
  color: var(--ink);
}

.button-secondary:hover {
  background: var(--paper-alt);
  border-color: var(--stone-strong);
  transform: translateY(-1px);
}

.button-ghost {
  background: transparent;
  color: var(--brick-red);
  padding: 0;
  min-height: auto;
  font-weight: 700;
}

.button-ghost:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.button-dark {
  background: var(--graphite);
  color: #fff;
}

.button-dark:hover {
  background: var(--graphite-deep);
  transform: translateY(-1px);
}

/* ------------------------------------------
   9. CARDS
   ------------------------------------------ */
.card {
  background: rgba(250, 249, 245, 0.95);
  border: 1px solid var(--stone);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-4px);
}

.card-accent {
  border-top: 4px solid var(--brick-red);
}

.card-olive {
  border-top: 4px solid var(--olive);
}

.card-quiet {
  background: var(--paper-alt);
}

.card h3 {
  margin-top: var(--space-3);
  font-size: 1.3rem;
  line-height: 1.2;
}

.card p {
  margin-top: var(--space-3);
  color: var(--ink-soft);
  line-height: 1.65;
  flex-grow: 1;
}

.card-meta {
  font-size: 0.8rem;
  color: var(--ink-muted);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.card-footer {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--stone);
}

/* ------------------------------------------
   10. TAGS & PILLS
   ------------------------------------------ */
.tag {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(81, 91, 58, 0.1);
  color: var(--olive);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tag-red {
  background: rgba(179, 30, 33, 0.1);
  color: var(--brick-red);
}

.tag-blue {
  background: rgba(29, 29, 27, 0.06);
  color: var(--graphite);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-success {
  background: rgba(47, 122, 75, 0.1);
  color: var(--success);
}

.status-success::before { background: var(--success); }

.status-info {
  background: rgba(81, 91, 58, 0.1);
  color: var(--olive);
}

.status-info::before { background: var(--olive); }

.status-warning {
  background: rgba(161, 92, 27, 0.1);
  color: var(--warning);
}

.status-warning::before { background: var(--warning); }

/* ------------------------------------------
   11. TIMELINE
   ------------------------------------------ */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--stone), var(--brick-red), var(--stone));
  transform: translateX(-1px);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 var(--space-6) var(--space-7);
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brick-red);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 2px var(--stone);
  z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -8px;
}

.timeline-content {
  background: rgba(250, 249, 245, 0.95);
  border: 1px solid var(--stone);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-base);
}

.timeline-content:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

.timeline-period {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brick-red);
  margin-bottom: var(--space-2);
}

.timeline-role {
  font-family: "Cause", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.timeline-company {
  font-family: "Shadows Into Light Two", serif;
  font-size: 1rem;
  color: var(--olive);
  margin-bottom: var(--space-3);
}

.timeline-bullets {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.timeline-bullet {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.6;
  position: relative;
  padding-left: 16px;
}

.timeline-bullet::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brick-red);
}

@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    left: 0 !important;
    text-align: left !important;
    padding-left: 48px;
    padding-right: 0;
  }
  .timeline-dot {
    left: 12px !important;
    right: auto !important;
  }
}

/* ------------------------------------------
   12. SKILLS
   ------------------------------------------ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-5);
}

.skill-item {
  padding: var(--space-4);
  background: rgba(250, 249, 245, 0.8);
  border: 1px solid var(--stone);
  border-radius: var(--radius-md);
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}

.skill-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.skill-pct {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.skill-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--stone);
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brick-red), #d43f42);
  width: 0;
  transition: width 1.2s ease-out;
}

/* ------------------------------------------
   13. LANGUAGES
   ------------------------------------------ */
.lang-chart {
  display: grid;
  gap: var(--space-4);
  max-width: 500px;
}

.lang-row {
  display: grid;
  grid-template-columns: 100px 1fr 40px;
  gap: var(--space-4);
  align-items: center;
}

.lang-name {
  font-size: 0.9rem;
  font-weight: 700;
  text-align: right;
}

.lang-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--stone);
  overflow: hidden;
}

.lang-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--olive);
  width: 0;
  transition: width 1.2s ease-out;
}

.lang-level {
  font-size: 0.85rem;
  color: var(--ink-muted);
  font-weight: 600;
}

@media (max-width: 640px) {
  .lang-row {
    grid-template-columns: 70px 1fr 35px;
    gap: var(--space-3);
  }
}

/* ------------------------------------------
   14. JOURNEY / PATH
   ------------------------------------------ */
.journey {
  position: relative;
  padding: var(--space-7) 0;
}

.journey-path {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.journey-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--stone);
  transform: translateX(-1.5px);
}

.journey-line-fill {
  position: absolute;
  left: 50%;
  top: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--brick-red), var(--olive));
  transform: translateX(-1.5px);
  height: 0;
  transition: height 1.5s ease-out;
}

.journey-node {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  padding: var(--space-6) 0;
  align-items: center;
}

.journey-node:nth-child(even) .journey-content {
  grid-column: 2;
}

.journey-node:nth-child(even) .journey-visual {
  grid-column: 1;
  grid-row: 1;
  text-align: right;
}

.journey-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--brick-red);
  transform: translate(-50%, -50%);
  z-index: 2;
  box-shadow: 0 0 0 4px rgba(179, 30, 33, 0.1);
}

.journey-phase {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brick-red);
  margin-bottom: var(--space-2);
}

.journey-title {
  font-size: 1.4rem;
  margin-bottom: var(--space-3);
}

.journey-desc {
  color: var(--ink-soft);
  line-height: 1.65;
}

.journey-visual {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
}

.journey-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: white;
  padding: 4px;
  border: 1px solid var(--stone);
  box-shadow: var(--shadow-soft);
}

@media (max-width: 768px) {
  .journey-node {
    grid-template-columns: 1fr;
    padding-left: 40px;
  }
  .journey-node:nth-child(even) .journey-content,
  .journey-node:nth-child(even) .journey-visual {
    grid-column: 1;
    grid-row: auto;
    text-align: left;
  }
  .journey-line,
  .journey-line-fill {
    left: 12px;
  }
  .journey-dot {
    left: 12px;
  }
}

/* ------------------------------------------
   15. PROJECTS / CASE STUDIES
   ------------------------------------------ */
.project-hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--paper) 0%, var(--paper-alt) 100%);
  border: 1px solid var(--stone);
  box-shadow: var(--shadow-soft);
}

.project-body {
  padding: var(--space-6);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-4) 0;
}

.project-tech {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--paper-alt);
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 600;
}

.project-metric {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-4);
  margin: var(--space-5) 0;
  padding: var(--space-5);
  background: var(--paper-alt);
  border-radius: var(--radius-md);
}

.metric-item {
  text-align: center;
}

.metric-number {
  font-family: "Shadows Into Light Two", serif;
  font-size: 2rem;
  color: var(--brick-red);
  line-height: 1;
}

.metric-desc {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-top: var(--space-2);
  font-weight: 600;
}

/* ------------------------------------------
   16. FEATURE LIST
   ------------------------------------------ */
.feature-list {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

.feature-item::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brick-red);
  flex-shrink: 0;
  margin-top: 8px;
}

/* ------------------------------------------
   17. SOCIAL LINKS
   ------------------------------------------ */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--stone);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: var(--transition-base);
}

.social-link:hover {
  background: var(--paper-alt);
  border-color: var(--brick-red);
  color: var(--brick-red);
  transform: translateY(-2px);
}

.social-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ------------------------------------------
   18. DARK CARD / PANEL
   ------------------------------------------ */
.dark-card {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--paper), #f2eee7);
  color: var(--ink);
  box-shadow: var(--shadow-strong);
}

.dark-card p {
  color: var(--ink-soft);
}

.dark-card a {
  color: var(--brick-red);
}

.dark-card a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ------------------------------------------
   19. FOOTER
   ------------------------------------------ */
.footer {
  padding: var(--space-7) 0 var(--space-8);
  margin-top: auto;
}

.footer-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--stone);
  background: rgba(250, 249, 245, 0.85);
  flex-wrap: wrap;
}

.footer-panel p {
  margin-top: 4px;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.footer-brand {
  font-family: "Shadows Into Light Two", serif;
  font-size: 1.2rem;
}

.footer-nav {
  display: flex;
  gap: var(--space-4);
}

.footer-nav a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--brick-red);
}

@media (max-width: 640px) {
  .footer-panel {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .footer-nav {
    flex-wrap: wrap;
  }
}

/* ------------------------------------------
   20. SKIP LINK & ACCESSIBILITY
   ------------------------------------------ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 999;
  padding: 12px 20px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 12px;
}

/* ------------------------------------------
   21. SCROLL TO TOP
   ------------------------------------------ */
.scroll-top {
  position: fixed;
  bottom: var(--space-5);
  right: var(--space-5);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--graphite);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-medium);
  z-index: 99;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--brick-red);
}

/* ------------------------------------------
   22. CERTIFICATIONS
   ------------------------------------------ */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}

.cert-card {
  padding: var(--space-5);
  background: var(--paper-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--stone);
}

.cert-card h4 {
  font-family: "Cause", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.cert-card p {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin: 0;
}

/* ------------------------------------------
   23. BLOG PLACEHOLDER
   ------------------------------------------ */
.blog-placeholder {
  text-align: center;
  padding: var(--space-9) var(--space-5);
  max-width: 600px;
  margin: 0 auto;
}

.blog-placeholder-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-5);
  background: var(--paper-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

/* ------------------------------------------
   24. PRINT
   ------------------------------------------ */
@media print {
  .topbar { position: static; backdrop-filter: none; border-bottom: 1px solid #ccc; }
  .hero-panel, .card, .timeline-content { box-shadow: none; border: 1px solid #ccc; }
  .button, .hero-actions { display: none !important; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 10px; color: var(--stone-strong); }
  .section { scroll-margin-top: 0; page-break-inside: avoid; }
  .skip-link, .mobile-menu-toggle, .scroll-top { display: none; }
  body { font-size: 12pt; line-height: 1.5; }
}

/* ------------------------------------------
   25. REDUCED MOTION
   ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
