@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Satoshi:wght@300;400;500;700&display=swap');

/* ==========================================================================
   DESIGN SYSTEM VARIABLES
   ========================================================================== */
:root {
  /* ── Option B: Cashmere Blue & Mint Green 60-30-10 Light Palette ── */
  --bg-dark:         #FAFAFC;   /* Clean light canvas */
  --bg-dark-elevated:#FFFFFF;   /* Pure white card surface */
  --bg-card:         #FFFFFF;   /* Elevated card surface */
  --bg-card-hover:   #F0F4F8;   /* Soft Cashmere hover tint */
  --cornsilk:        #FFFFFF;   /* Main bright white canvas */
  --black-forest:    #111115;   /* Deep charcoal primary text */

  /* ── Text Tones ───────────────────────────────────────────── */
  --text-primary:   #111115;
  --text-secondary: #4B5563;
  --text-tertiary:  #6B7280;

  /* ── Palette Accents ──────────────────────────────────────── */
  --purple-anchor:  #4C2E55;   /* Japanese Violet dark purple hero anchor */
  --cashmere-blue:  #A4B9CE;   /* Cashmere Blue secondary accent */
  --cashmere-light: #EBF0F6;   /* Light Cashmere Blue section tint */
  --copper:         #02F5A4;   /* Signature Mint Green accent */
  --copper-hover:   #02F5A4;   /* Rich Emerald hover */
  --divider:        #E2E8F0;

  /* ── Domain Accents ───────────────────────────────────────── */
  --status-green:         #02F5A4;
  --status-green-muted:   rgba(5, 150, 105, 0.10);
  --status-green-border:  rgba(5, 150, 105, 0.25);
  --status-green-dot:     #02F5A4;

  --teal:           #2563EB;
  --teal-muted:     rgba(37, 99, 235, 0.10);
  --teal-border:    rgba(37, 99, 235, 0.22);
  --teal-text:      #2563EB;

  --amber:          #D97706;
  --amber-muted:    rgba(217, 119, 6, 0.10);
  --amber-border:   rgba(217, 119, 6, 0.22);
  --amber-text:     #D97706;

  --slate:          #64748B;
  --slate-muted:    rgba(100, 116, 139, 0.10);
  --slate-border:   rgba(100, 116, 139, 0.22);
  --slate-text:     #475569;

  /* ── Layout & Utility ─────────────────────────────────────── */
  --divider:        rgba(17, 17, 21, 0.08);
  --tag-bg:         rgba(11, 11, 15, 0.04);
  --tag-border:     rgba(11, 11, 15, 0.12);

  /* ── Typography ───────────────────────────────────────────── */
  --font-display: 'Poppins', sans-serif;
  --font-sans:    'Satoshi', sans-serif;

  /* ── Transitions & Motion ──────────────────────────────────── */
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast:   all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global SVG Logo & Brand Icon Grayscale-to-Color Transition */
.brand-icon {
  filter: grayscale(0.8) opacity(0.6);
  transition: filter 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-icon:hover {
  filter: grayscale(0) opacity(1) !important;
  transform: translateY(-2px);
}

.exp-card.expanded .brand-icon {
  filter: grayscale(0) opacity(1);
}


/* ==========================================================================
   RESET & FOUNDATIONS
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
}

body {
  background-color: var(--cornsilk);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

/* Global Headings: Enforce Dark Forest Charcoal (#111115) */
h1, h2, h3, h4, h5, h6,
.section-title, .page-title, .project-card-title {
  color: var(--black-forest, #111115) !important;
  font-family: var(--font-display);
}

/* Sam Dickie style floating dots ambient background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    radial-gradient(circle at 12% 20%, rgba(16, 185, 129, 0.25) 0px, transparent 18px),
    radial-gradient(circle at 88% 18%, rgba(124, 58, 237, 0.22) 0px, transparent 24px),
    radial-gradient(circle at 78% 70%, rgba(59, 130, 246, 0.20) 0px, transparent 20px),
    radial-gradient(circle at 18% 75%, rgba(244, 114, 182, 0.22) 0px, transparent 16px),
    radial-gradient(circle at 50% 48%, rgba(16, 185, 129, 0.15) 0px, transparent 22px);
  pointer-events: none;
  z-index: 0;
}

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

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

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

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 65ch;
}

.italic-accent {
  font-family: var(--font-display);
  font-style: normal;
  color: var(--copper);
  font-weight: 600;
}

/* ==========================================================================
   NAVIGATION BAR (Rectangle with Rounded Corners & Equal Spacing)
   ========================================================================== */
#main-header {
  position: sticky;
  top: 1.25rem;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid #111115;
  width: calc(100% - 2rem);
  max-width: 1000px;
  margin: 0 auto 2.5rem auto;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(17, 17, 21, 0.08);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* Sam Dickie Nav Hide on scroll down / reveal on scroll up */
header.nav-hidden {
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
}

header.nav-revealed {
  animation: navRevealCenter 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes navRevealCenter {
  0% {
    transform: translateY(-20%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4.25rem;
  padding: 0 1.75rem;
}

/* 3-column navbar: Sam Dickie exact layout (Pill container, wide centered logo gap) */
.nav-menu-3col {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-links-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  white-space: nowrap;
}

.nav-emblem-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  flex-shrink: 0;
}

.nav-emblem-logo span {
  display: none;
}

.nav-emblem-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--copper);
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-emblem-logo:hover .nav-emblem-icon {
  transform: rotate(12deg) scale(1.1);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.15);
}

.nav-links-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  white-space: nowrap;
}

/* ==========================================================================
   LAYOUT STRUCTURE
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

main {
  flex-grow: 1;
}

section {
  padding: 4rem 0;
}

/* C3 FIX: Tighten padding on projects and skills section */
.projects {
  padding-bottom: 2rem !important;
}

.skills {
  padding-top: 2rem !important;
}

.mobile-only-link {
  display: none;
}

@media (max-width: 768px) {
  .mobile-only-link {
    display: block;
  }
}

/* Sam Dickie typography accents: Green Underline Heading & Pill Highlight */
.underline-green {
  display: inline-block;
  position: relative;
}

.underline-green::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 6px;
  background-color: #02F5A4;
  z-index: -1;
  border-radius: 2px;
  opacity: 0.85;
}

.highlight-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #02F5A4;
  color: #111115 !important;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 100px;
  font-size: 0.9em;
  margin: 0 0.2rem;
  line-height: 1.2;
}

/* Minimal page headers for non-home pages */
.simple-page-header {
  padding: 4rem 0 2rem 0;
}

.simple-page-header .page-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  color: #111115;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-dot {
  width: 6px;
  height: 6px;
  background-color: var(--copper);
  border-radius: 50%;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: 100%;
  justify-content: space-between;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-secondary);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--copper);
  transition: var(--transition-smooth);
}

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

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

/* CTA Pill Button */
.cta-button {
  background-color: #02f5a4;
  color: #111115 !important;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.65rem 1.5rem;
  border-radius: 100px;
  border: 1.5px solid #111115;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-button:hover {
  background-color: #02F5A4;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(2, 245, 164, 0.4);
}

.cta-button:active {
  transform: translateY(0);
}

/* Hamburger menu for mobile */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 24px;
  height: 18px;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--black-forest);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero,
#hero-section {
  padding: 4rem 0 5rem 0;
  background-color: #8697fa !important;
  color: #111115;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(17, 17, 21, 0.1);
}

.hero-tagline-quote {
  border-left: 3px solid var(--copper);
  padding-left: 1.75rem;
  margin-bottom: 2rem;
  width: 100%;
}

.hero-tagline-quote .hero-title {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.2;
}

.hero-layout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 950px; /* Expands horizontal space to give the whole left side to hero contents */
}

.hero-badge {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--status-green);
  background-color: var(--status-green-muted);
  border: 1px solid var(--status-green-border);
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-title {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 1.1;
  color: var(--black-forest);
  margin-bottom: 2rem;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  max-width: none;
}

.hero-ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.secondary-button {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--black-forest);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 2px solid var(--divider);
  padding-bottom: 0.25rem;
}

.secondary-button:hover {
  border-color: var(--copper);
  color: var(--copper);
  padding-right: 0.5rem;
}

/* ==========================================================================
   PROJECTS SECTION (LIST LAYOUT)
   ========================================================================== */
.section-header {
  margin-bottom: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.section-title {
  font-size: 2.25rem;
  color: var(--black-forest);
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--divider);
}

/* ── Pudding.cool 3-Column Project Grid ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

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

@media (max-width: 640px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.project-card-grid {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1.1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: var(--transition-smooth);
  text-decoration: none;
  color: inherit;
}

.project-card-grid:hover {
  transform: translateY(-5px);
  border-color: #02F5A4;
  box-shadow: 0 18px 40px rgba(16, 185, 129, 0.14);
}

.project-card-thumb-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  background: #F4F4F6;
  border-radius: 16px;
  margin-bottom: 1.1rem;
}

.project-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.4s ease;
}

.project-card-grid:hover .project-card-thumb {
  transform: scale(1.04);
}

.project-number-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: #111115;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  letter-spacing: 0.05em;
  z-index: 2;
}

.project-card-body {
  padding: 0.25rem 0.35rem 0.35rem 0.35rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-meta .label-role,
.project-meta .badge-business,
.project-meta .badge-data {
  background: #E6F9F0 !important;
  color: #065F46 !important;
  border: none !important;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 0.85rem;
}

.project-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #111115;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.project-card-desc {
  font-size: 0.93rem;
  color: #555562;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.project-card-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.project-card-cta {
  font-size: 0.9rem;
  font-weight: 700;
  color: #02F5A4;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
}

/* ── Stripe Press Sticky Timeline Rail ── */
.sticky-experience-wrapper {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  position: relative;
  align-items: start;
}

@media (max-width: 860px) {
  .sticky-experience-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .sticky-timeline-rail {
    display: none;
  }
}

.sticky-timeline-rail {
  position: sticky;
  top: 100px;
  align-self: start;
  padding-left: 0.5rem;
}

.rail-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.rail-line {
  position: absolute;
  left: 9px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: #E5E7EB;
  z-index: 1;
}

.rail-marker {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.3s ease, transform 0.3s ease;
  text-decoration: none;
}

.rail-marker:hover, .rail-marker.active {
  opacity: 1;
  transform: translateX(3px);
}

.rail-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid #9CA3AF;
  transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.rail-marker.active .rail-dot {
  background: #02F5A4;
  border-color: #02F5A4;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.rail-info {
  display: flex;
  flex-direction: column;
}

.rail-year {
  font-size: 0.8rem;
  font-weight: 800;
  color: #02F5A4;
  letter-spacing: 0.05em;
}

.rail-label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #111115;
}

.project-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.5rem 2rem;
  border: 1.5px solid #111115;
  background-color: #ffffff;
  border-radius: 20px;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 24px rgba(17, 17, 21, 0.04);
  transition: var(--transition-smooth);
}

.project-item:hover {
  background-color: #ffffff;
  border-color: var(--copper);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(17, 17, 21, 0.08);
}

.project-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 70%;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
}

.project-meta .label-role {
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

/* Default label-role colour (fallback if no badge class) */
.project-meta .label-role:not(.badge-data):not(.badge-business):not(.badge-pending) {
  background-color: var(--status-green-muted);
  color: var(--status-green);
  border: 1px solid var(--status-green-border);
}

/* Badge overrides at matching specificity */
.project-meta .badge-data {
  background-color: var(--teal-muted);
  color: var(--teal-text);
  border: 1px solid var(--teal-border);
}

.project-meta .badge-business {
  background-color: var(--amber-muted);
  color: var(--amber-text);
  border: 1px solid var(--amber-border);
}

.project-meta .badge-pending {
  background-color: var(--slate-muted);
  color: var(--slate-text);
  border: 1px solid var(--slate-border);
}

.project-meta .label-date {
  font-family: var(--font-sans);
}

.project-item-title {
  font-size: 1.6rem;
  color: var(--black-forest);
}

.project-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 60ch;
}

.project-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.tool-tag {
  font-size: 0.8rem;
  font-weight: 500;
  background-color: var(--tag-bg);
  border: 1px solid var(--tag-border);
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
}

.project-action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--copper);
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
}

.project-item:hover .project-action {
  border-color: var(--copper);
  background-color: var(--copper-muted);
  padding-right: 2rem;
}

/* Coming Soon card */
.project-item.placeholder {
  cursor: default;
}
.project-item.placeholder:hover {
  background-color: transparent;
  padding-left: 0;
  padding-right: 0;
}
.project-item.placeholder .project-action {
  color: var(--text-tertiary);
  font-style: italic;
}

/* ==========================================================================
   SKILLS & METRICS SECTION
   ========================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media(min-width: 768px) {
  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.skill-category {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skill-category-title {
  font-size: 1.35rem;
  color: var(--black-forest);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.skill-category-title svg {
  color: var(--status-green);
}

.skill-items-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Metrics strip - Minimalist Horizontal Typographic Row */
.metrics-strip {
  border-top: 1px solid var(--divider);
  padding-top: 2rem;
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  column-gap: 2.5rem;
  row-gap: 1.25rem;
  align-items: center;
  width: 100%;
}

.metric-card {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  position: relative;
}

/* Custom typographic slash separator between items for larger screens */
.metric-card:not(:last-child)::after {
  content: '/';
  color: var(--divider);
  margin-left: 2.5rem;
  font-weight: 300;
}

/* Hide separators on wrapped lines or smaller columns if needed */
@media (max-width: 640px) {
  .metric-card:not(:last-child)::after {
    display: none;
  }
  .metrics-strip {
    column-gap: 1.5rem;
    row-gap: 0.75rem;
  }
}

.metric-number {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--copper);
  line-height: 1;
}

.metric-label {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: none;
  letter-spacing: 0;
}

/* ==========================================================================
   EXPERIENCE PAGE CARDS
   ========================================================================== */
.experience-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
}

.exp-card {
  position: relative;
  border: 1px solid var(--divider);
  background-color: rgba(40, 54, 24, 0.01);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.exp-card:hover {
  border-color: rgba(40, 54, 24, 0.25);
  background-color: rgba(40, 54, 24, 0.02);
}

.exp-header {
  padding: 2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.exp-header-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.exp-company {
  font-size: 1.4rem;
  color: var(--black-forest);
}

.exp-role-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.exp-role {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--copper);
}

.exp-dates {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.exp-toggle-icon {
  width: 24px;
  height: 24px;
  color: var(--text-tertiary);
  transition: var(--transition-smooth);
}

.exp-card.expanded .exp-toggle-icon {
  transform: rotate(180deg);
  color: var(--status-green);
}

.exp-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-top: 1px solid transparent;
}

.exp-card.expanded .exp-details {
  max-height: 1200px;
  border-top: 1px solid var(--divider);
}

/* Brand color accents on cards */
#exp-card-pharma {
  border-left: 4px solid #cc0000;
}
#exp-card-pharma.expanded {
  background-color: rgba(204, 0, 0, 0.02);
}
#exp-card-lla {
  border-left: 4px solid #c0392b;
}
#exp-card-lla.expanded {
  background-color: rgba(192, 57, 43, 0.02);
}
#exp-card-mad {
  border-left: 4px solid #000;
}
#exp-card-mad.expanded {
  background-color: rgba(0, 0, 0, 0.02);
}
#exp-card-mccann {
  border-left: 4px solid #6b2fa0;
}
#exp-card-mccann.expanded {
  background-color: rgba(107, 47, 160, 0.02);
}

.exp-content {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.exp-summary {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.exp-framework-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: 1rem;
}

.papao-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media(min-width: 768px) {
  .papao-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.papao-item {
  background-color: var(--tag-bg);
  border: 1px solid var(--tag-border);
  border-radius: 8px;
  padding: 1.5rem;
}

.papao-label {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.5rem;
}

.papao-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.star-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.star-list-item {
  position: relative;
  padding-left: 2rem;
  font-size: 1rem;
  color: var(--text-secondary);
}

.star-list-item::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--copper);
  font-weight: 700;
}

/* ==========================================================================
   CASE STUDY DETAIL PAGES
   ========================================================================== */
.cs-hero {
  padding: 5rem 0 3rem 0;
  border-bottom: 1px solid var(--divider);
}

.cs-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.cs-container p,
.cs-section p {
  max-width: none;
}

.cs-analysis-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.cs-analysis-card {
  background-color: var(--tag-bg);
  border: 1px solid var(--tag-border);
  border-radius: 8px;
  padding: 1.75rem;
  transition: var(--transition-smooth);
}

.cs-analysis-card:hover {
  border-color: rgba(40, 54, 24, 0.25);
  background-color: rgba(40, 54, 24, 0.015);
}

.cs-analysis-card strong {
  color: var(--black-forest);
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.cs-analysis-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
  max-width: none;
}

.cs-navigation {
  padding: 4rem 0 2rem 0;
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--divider);
  margin-top: 4rem;
}

.cs-nav-link {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--copper);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.cs-nav-link:hover {
  color: var(--black-forest);
  transform: translateX(6px);
}

.cs-meta-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-top: 3rem;
}

.cs-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cs-meta-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
}

.cs-meta-val {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--black-forest);
}

/* Home Page Wide Hero Spacing & Zero Indent */
.home-hero-layout {
  max-width: 1200px;
}
.home-hero-layout .hero-tagline-quote {
  border-left: none;
  padding-left: 0;
}

/* Status Dot — pulsing green indicator for active projects */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--status-green-dot);
  display: inline-block;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Case Study Tools box pills */
.cs-meta-tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
  max-width: 450px;
}
.cs-meta-tool-tag {
  font-size: 0.8rem;
  font-weight: 600;
  background-color: var(--tag-bg);
  border: 1px solid var(--tag-border);
  color: var(--black-forest);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
}

/* GitHub Meta Link Button (Turns off-black on hover) */
.github-meta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--copper);
  color: var(--cornsilk) !important;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  border: 1px solid var(--copper);
  transition: var(--transition-smooth);
  margin-top: 0.25rem;
  cursor: pointer;
}
.github-meta-btn:hover {
  background-color: oklch(0.15 0 0) !important; /* Turns to sleek brand black */
  border-color: oklch(0.15 0 0) !important;
  color: var(--cornsilk) !important;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Header Right Timeline location (prevents rotation) */
.exp-header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
  margin-right: 0.5rem; /* Breathing room so location text never touches card borders */
}
.exp-location {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-tertiary);
  white-space: nowrap;
}

/* Home Page Hero Tagline Two-Line System */
.hero-line {
  display: block;
}
@media (min-width: 768px) {
  .hero-line {
    white-space: nowrap;
  }
}

.cs-section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--divider);
}

.cs-section-title {
  font-size: 1.8rem;
  color: var(--black-forest);
  margin-bottom: 2rem;
}

/* Gradient Outcome Card */
.outcome-card {
  background: linear-gradient(135deg, rgba(188, 108, 37, 0.05), rgba(40, 54, 24, 0.05));
  border: 1px solid var(--copper);
  border-radius: 16px;
  padding: 3rem;
  margin-top: 4rem;
}

.outcome-title {
  font-size: 1.5rem;
  color: var(--copper);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.outcome-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.outcome-item {
  position: relative;
  padding-left: 2.25rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--black-forest);
}

.outcome-item svg {
  position: absolute;
  left: 0;
  top: 3px;
  color: var(--copper);
}

/* ==========================================================================
   CONTACT PAGE & FOOTER CALLOUT
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media(min-width: 768px) {
  .contact-layout {
    grid-template-columns: 1.2fr 1px 0.8fr;
    gap: 2.5rem;
  }
}

.contact-divider {
  display: none;
}

@media(min-width: 768px) {
  .contact-divider {
    display: block;
    width: 1px;
    background: var(--black-forest);
    opacity: 0.15;
  }
}

.contact-circle {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.circle-block-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--copper);
  margin-bottom: 0.5rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
  font-weight: 500;
}

.contact-info-item svg {
  color: var(--copper);
}

/* Page Footer callout */
.footer-callout {
  border-top: 1px solid var(--divider);
  background-color: rgba(40, 54, 24, 0.015);
  padding: 5rem 0;
  text-align: center;
}

.footer-callout-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-callout-title {
  font-size: 1.75rem;
  color: var(--black-forest);
}

.footer-socials {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.footer-social-link svg {
  color: currentColor;
  transition: var(--transition-smooth);
}

.footer-social-link:hover {
  color: var(--copper);
  transform: translateY(-2px);
}

.footer-social-link#footer-social-gmail:hover {
  color: #ea4335;
}

.footer-social-link#footer-social-linkedin:hover {
  color: #0077b5;
}

.footer-social-link#footer-social-github:hover {
  color: #181717;
}

.footer-bottom {
  text-align: center;
  padding: 2rem 0;
  font-size: 0.85rem;
  color: var(--text-tertiary);
  border-top: 1px solid var(--divider);
}

/* ==========================================================================
   TL;DR / KEY TAKEAWAYS BOX (case study pages)
   ========================================================================== */
.cs-tldr {
  margin: 2.5rem 0 0 0;
  border-left: 3px solid var(--copper);
  background-color: oklch(0.40 0.14 295 / 0.04);
  border: 1px solid oklch(0.40 0.14 295 / 0.18);
  border-left: 3px solid var(--copper);
  border-radius: 0 8px 8px 0;
  padding: 1.75rem 2rem;
}

.cs-tldr-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--copper);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.cs-tldr-item {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.97rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.cs-tldr-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--copper);
  opacity: 0.7;
}

/* ==========================================================================
   TESTIMONIAL STRIP (homepage)
   ========================================================================== */
.testimonials {
  padding: 5rem 0;
  border-top: 1px solid var(--divider);
}

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

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.testimonial-card {
  background-color: #ffffff;
  border: 1.5px solid #111115;
  border-radius: 24px;
  padding: 2.25rem;
  box-shadow: 0 10px 30px rgba(17, 17, 21, 0.05);
  position: relative;
  transition: var(--transition-smooth);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--copper);
  box-shadow: 0 18px 40px rgba(5, 150, 105, 0.12);
}

.testimonial-quote {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text-primary);
  font-style: normal;
  margin-bottom: 1.5rem;
  max-width: none;
}

.testimonial-author {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--purple-accent);
  text-transform: none;
  letter-spacing: -0.01em;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  font-weight: 400;
  margin-top: 0.2rem;
}

/* ==========================================================================
   HERO AVATAR (homepage split layout)
   ========================================================================== */

.hero-split {
  display: flex;
  flex-direction: column-reverse;
  gap: 2.5rem;
  align-items: flex-start;
  width: 100%;
}

@media (min-width: 860px) {
  .hero-split {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }
  .hero-content {
    flex: 1 1 0;
    min-width: 0;
  }
  .hero-avatar-wrap {
    flex-shrink: 0;
  }
}

.hero-avatar-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

@media (min-width: 860px) {
  .hero-avatar-wrap {
    width: auto;
  }
}

.hero-avatar-img {
  width: 220px;
  height: 220px;
  border-radius: 28px;
  object-fit: cover;
  object-position: top center;
  border: 3px solid var(--copper);
  box-shadow: 0 0 0 8px rgba(5, 150, 105, 0.08),
              0 24px 48px rgba(5, 150, 105, 0.14);
}

@media (min-width: 860px) {
  .hero-avatar-img {
    width: 260px;
    height: 310px;
  }
}

/* ==========================================================================
   CAREER PATH STRIP (homepage)
   ========================================================================== */
.career-path {
  border-top: 1px solid var(--divider);
  padding: 5rem 0;
  background-color: oklch(0.40 0.14 295 / 0.02);
}

.career-path-track {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-top: 2rem;
}

.career-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 160px;
  text-align: center;
}

.career-node-label {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
}

.career-node-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.career-node-year {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  font-family: var(--font-sans);
}

.career-node-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--copper);
  margin-bottom: 0.25rem;
}

.career-node.career-node-current .career-node-dot {
  background-color: var(--status-green-dot);
  animation: pulse-dot 2s ease-in-out infinite;
}

.career-node.career-node-next .career-node-dot {
  background-color: transparent;
  border: 2px dashed var(--copper);
  opacity: 0.5;
}

.career-connector {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--copper) 0%, oklch(0.40 0.14 295 / 0.3) 100%);
  min-width: 40px;
  position: relative;
  top: -28px;
}

.career-connector.connector-next {
  background: var(--divider);
  border-top: 1px dashed oklch(0.40 0.14 295 / 0.25);
  height: 0;
}

/* ==========================================================================
   CASE STUDY MID-PAGE CTA
   ========================================================================== */
.cs-mid-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.5rem 0;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  margin: 3rem 0;
}

.cs-mid-cta-text {
  font-size: 0.97rem;
  color: var(--text-secondary);
  max-width: 50ch;
}

.cs-mid-cta-text strong {
  color: var(--text-primary);
}

@media (max-width: 600px) {
  .cs-mid-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   MOBILE RESPONSIVENESS & ACTIVE STATES
   ========================================================================== */
.hamburger.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  /* On mobile: 3-col grid collapses to flex row (avatar left/center, hamburger right) */
  .nav-menu-3col {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .nav-links-left {
    display: none;
  }

  /* Slide-out mobile drawer */
  .nav-links-right {
    position: fixed;
    top: 4.5rem;
    left: 0;
    width: 100%;
    height: calc(100vh - 4.5rem);
    background-color: var(--cornsilk);
    border-top: 1px solid var(--divider);
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: var(--transition-smooth);
    align-items: flex-start;
    display: flex;
    z-index: 99;
  }

  .nav-links-right.active {
    transform: translateX(0);
  }

  .nav-links-right .cta-button {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
  }
  
  section {
    padding: 5rem 0;
  }
  
  .hero {
    padding: 6rem 0 4rem 0;
  }
  
  .project-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  
  .project-info {
    max-width: 100%;
  }
  
  .project-action {
    width: 100%;
    justify-content: center;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  /* ====================================================================
     MOBILE TIMELINE FIX — Restructure card layout for narrow viewports
     ==================================================================== */
  .experience-timeline {
    padding-left: 0;
  }

  .exp-header {
    padding: 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .exp-header > div:first-child {
    gap: 0.75rem;
  }

  .exp-header-info {
    gap: 0.25rem;
  }

  .exp-company {
    font-size: 1.15rem;
  }

  .exp-role-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .exp-header-right {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-right: 0;
    gap: 0.5rem;
  }

  .exp-content {
    padding: 1.5rem 1.25rem;
  }

  .papao-item {
    padding: 1rem;
  }

  .star-list-item {
    padding-left: 1.25rem;
    font-size: 0.9rem;
  }
}


/* ==========================================================================
   FILTER BAR
   ========================================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.filter-badge {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: 100px;
  border: 1px solid var(--tag-border);
  background-color: var(--tag-bg);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.filter-badge:hover {
  border-color: var(--copper);
  color: var(--copper);
}

.filter-badge:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}

.filter-badge.active {
  background-color: var(--copper);
  border-color: var(--copper);
  color: var(--cornsilk);
}

.filter-badge.active:hover {
  background-color: var(--copper-hover);
  color: var(--cornsilk);
}

/* Project card filter transitions */
.project-item {
  transition: opacity 0.3s ease, max-height 0.3s ease, padding 0.3s ease, margin 0.3s ease, border-width 0.3s ease;
  overflow: hidden;
}

.project-item.filter-hidden {
  opacity: 0;
  max-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-bottom-width: 0 !important;
  pointer-events: none;
}

/* Empty state */
.filter-empty-state {
  padding: 4rem 0;
  text-align: center;
}

.filter-empty-state p {
  font-size: 1.1rem;
  color: var(--text-tertiary);
  max-width: none;
}

/* Reduced motion — expanded to cover all animated elements */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  header.nav-revealed {
    animation: none !important;
  }

  .hero-avatar-img {
    animation: none !important;
  }
}

/* Responsive filter bar */
@media (max-width: 768px) {
  .filter-bar {
    gap: 0.5rem;
  }
}

/* ==========================================================================
   PROJECT TYPE BADGES (3c)
   ========================================================================== */
.badge-data {
  background-color: var(--teal-muted);
  color: var(--teal-text);
  border: 1px solid var(--teal-border);
}

.badge-business {
  background-color: var(--amber-muted);
  color: var(--amber-text);
  border: 1px solid var(--amber-border);
}

.badge-pending {
  background-color: var(--slate-muted);
  color: var(--slate-text);
  border: 1px solid var(--slate-border);
}

/* ==========================================================================
   SKILLS SECTION BLOCKS (3d)
   ========================================================================== */
.skills-block-methodology {
  background-color: var(--amber-muted);
  border: 1px solid var(--amber-border);
  border-radius: 12px;
  padding: 1.25rem;
}

.skills-block-methodology .skills-block-label {
  color: var(--amber-text);
}

.skills-block-analytics {
  background-color: var(--teal-muted);
  border: 1px solid var(--teal-border);
  border-radius: 12px;
  padding: 1.25rem;
}

.skills-block-analytics .skills-block-label {
  color: var(--teal-text);
}

/* ==========================================================================
   CASE STUDY CALLOUT BOXES (3e)
   ========================================================================== */
.cs-callout {
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.cs-callout-finding {
  background-color: var(--amber-muted);
  border: 1px solid var(--amber-border);
}

.cs-callout-finding .cs-callout-title {
  color: var(--amber-text);
}

.cs-callout-data {
  background-color: var(--teal-muted);
  border: 1px solid var(--teal-border);
}

.cs-callout-data .cs-callout-title {
  color: var(--teal-text);
}

/* ==========================================================================
   MOBILE CASE STUDY & GLOBAL FONT ADJUSTMENTS
   ========================================================================== */
@media (max-width: 768px) {
  /* Global mobile font reduction */
  body {
    font-size: 0.92rem;
  }

  p {
    font-size: 0.9rem !important;
  }

  /* Case study container tighter padding */
  .cs-container {
    padding: 0 1.25rem;
  }

  .cs-section {
    padding: 2.5rem 0;
  }

  .cs-section-title {
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
  }

  /* Analysis cards — tighter on mobile */
  .cs-analysis-card {
    padding: 1.25rem;
  }

  .cs-analysis-card strong {
    font-size: 0.95rem;
  }

  .cs-analysis-card p {
    font-size: 0.85rem !important;
  }

  /* Meta section */
  .cs-meta-wrap {
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .cs-meta-val {
    font-size: 0.92rem;
  }

  /* Outcome card */
  .outcome-card {
    padding: 1.5rem;
    margin-top: 2.5rem;
  }

  .outcome-title {
    font-size: 1.2rem;
  }

  .outcome-item {
    font-size: 0.9rem;
    padding-left: 1.75rem;
  }
}

/* ── Sam Dickie Headline Green Underline Highlight (Guaranteed Bottom Marker Line) ── */
.highlight,
.headline-underline,
.underline-green,
.page-title span,
.section-title span,
.cs-title span {
  position: relative;
  display: inline-block;
  color: #111115 !important;
  z-index: 1;
  padding: 0 4px;
}

.highlight::after,
.headline-underline::after,
.underline-green::after,
.page-title span::after,
.section-title span::after,
.cs-title span::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 12px;
  background-color: #02F5A4 !important;
  z-index: -1;
  border-radius: 2px;
  pointer-events: none;
}

#hero-section .hero-title {
  color: #111115 !important; /* Dark Forest Charcoal */
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 100%;
  margin-bottom: 1.5rem;
}

#hero-section .hero-subtitle {
  color: #1E1E26;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.65;
  max-width: 800px;
  margin-bottom: 2.2rem;
  font-weight: 500;
}

/* ── Sam Dickie Crisp Clear Background Circles (Sharp Edges, 100% Visible, NO Blur) ── */
.bg-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: none !important;
  -webkit-filter: none !important;
  opacity: 1 !important;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.bg-circle-green { background-color: #02F5A4 !important; }
.bg-circle-purple { background-color: #8697FA !important; }
.bg-circle-blue { background-color: #A4B9CE !important; }
.bg-circle-white { background-color: #FFFFFF !important; }

/* Base resets & variables */
  .cs-hero .hero-subtitle {
    font-size: 0.95rem !important;
  }

  /* Inline stat cards (the 6.8%, 7289, 50%+ boxes) */
  .cs-section [style*="font-size: 2.5rem"] {
    font-size: 1.8rem !important;
  }

  /* Charts — prevent shrinking */
  .narrative-chart {
    margin: 1.5rem -0.5rem;
    padding: 0 0.5rem;
  }

  .chart-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }

  /* Grid tables that have min-width — allow scroll */
  .cs-section [style*="min-width: 600px"] {
    min-width: auto !important;
  }

  /* Root cause comparison grid — stack vertically */
  .cs-analysis-card [style*="grid-template-columns: 1fr auto 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  /* Footer callout */
  .footer-callout {
    padding: 3rem 0;
  }

  .footer-callout-title {
    font-size: 1.35rem;
  }
}

/* Custom Dropdown Details */
.services-dropdown summary::-webkit-details-marker {
  display: none;
}
.services-dropdown[open] .dropdown-icon {
  transform: rotate(180deg);
}
.dropdown-icon {
  transition: transform 0.3s ease;
}

/* ── Single Card CTA Layout ── */
.free-cta-card {
  background: #ffffff !important;
  border: 2px solid #111115 !important;
  border-radius: 28px !important;
  padding: 2.25rem 3.5rem !important;
  width: 100% !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
  text-align: left !important;
  box-shadow: 4px 4px 0px #111115 !important;
}
@media (max-width: 640px) {
  .free-cta-card {
    padding: 1.75rem 1.25rem !important;
    width: 100% !important;
  }
}
@media (max-width: 640px) {
  .free-cta-card {
    padding: 1.75rem 1.25rem;
    width: 100%;
  }
}

/* ── Pudding.cool Inspired Layout ── */
.pudding-section { padding: 3rem 0 5rem 0; }
.pudding-header { margin-bottom: 2.5rem; }
.pudding-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem 2.25rem; }
@media (max-width: 992px) { .pudding-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.75rem; } }
@media (max-width: 640px) { .pudding-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.pudding-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.pudding-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.65rem; font-family: var(--font-mono, monospace); }
.pudding-pill { display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid #111115; border-radius: 100px; padding: 0.15rem 0.65rem; font-size: 0.78rem; font-weight: 800; color: #111115; background: #FFFFFF; }
.pudding-date { font-size: 0.82rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #111115; }
.pudding-frame { width: 100%; aspect-ratio: 1 / 1; border-radius: 16px; border: 1.5px solid #111115; padding: 1.5rem; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; box-shadow: 0 4px 16px rgba(17, 17, 21, 0.04); transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.pudding-card:hover .pudding-frame { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(17, 17, 21, 0.12); }
.pudding-inner-graphic { background: #FFFFFF; border: 1.5px solid #111115; border-radius: 12px; width: 100%; height: 100%; padding: 1.1rem; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 8px 24px rgba(0,0,0,0.06); transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.pudding-card:hover .pudding-inner-graphic { transform: scale(1.02); }
.pudding-title { font-family: var(--font-display); font-size: 1.45rem; font-weight: 900; letter-spacing: -0.03em; line-height: 1.15; text-transform: lowercase; color: #111115; margin: 0.9rem 0 0.4rem 0; transition: color 0.2s ease; }
.pudding-card:hover .pudding-title { color: #000000; text-decoration: underline; text-decoration-color: #02F5A4; text-decoration-thickness: 3px; }
.pudding-desc { font-size: 0.92rem; color: #4B4B55; line-height: 1.55; margin: 0; }

.simple-page-header, .page-title, .pudding-header { text-align: left !important; }


/* ── Stripe Press Scroll Experience ── */
.sticky-experience-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3.5rem;
  align-items: start;
}

@media (max-width: 860px) {
  .sticky-experience-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .sticky-timeline-rail {
    display: none;
  }
}

.sticky-timeline-rail {
  position: sticky;
  top: 120px;
  align-self: start;
  padding-left: 0.5rem;
}

.rail-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

.rail-line {
  position: absolute;
  left: 9px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: #E5E7EB;
  z-index: 1;
}

.rail-line-progress {
  position: absolute;
  left: 9px;
  top: 12px;
  width: 2px;
  height: 0%;
  background: #02F5A4;
  z-index: 2;
  transition: height 0.15s ease-out;
  box-shadow: 0 0 8px rgba(2, 245, 164, 0.6);
}

.rail-marker {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.rail-marker:hover, .rail-marker.active {
  opacity: 1;
  transform: translateX(4px);
}

.rail-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid #9CA3AF;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.rail-marker.active .rail-dot {
  background: #02F5A4;
  border-color: #111115;
  box-shadow: 0 0 0 4px rgba(2, 245, 164, 0.3);
  transform: scale(1.15);
}

.exp-card {
  background: #FFFFFF;
  border: 1.5px solid #111115;
  border-radius: 20px;
  padding: 1.75rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 16px rgba(17, 17, 21, 0.04);
  transform: perspective(1200px) rotateX(3deg) scale(0.97);
  opacity: 0.75;
  transform-origin: top center;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease, box-shadow 0.45s ease, border-color 0.3s ease;
}

.exp-card.stripe-active {
  transform: perspective(1200px) rotateX(0deg) scale(1.0);
  opacity: 1.0;
  border-color: #111115;
  box-shadow: 0 20px 45px rgba(17, 17, 21, 0.1), 0 0 0 2px #02F5A4;
}
