/* ========================================================================
   Design System & Variables — Creative Portfolio (Bright Monochrome)
   ======================================================================== */
:root {
  /* Colors — Light Monochrome System */
  --surface-lowest: #ffffff;
  --surface: #ffffff;
  --surface-low: #f8f9fa;
  --surface-container: #f1f3f5;
  --surface-high: #e9ecef;
  --surface-highest: #dee2e6;
  --surface-bright: #f8f9fa;

  --primary: #1a1a1a;
  --primary-container: #000000;
  --on-primary: #ffffff;

  --on-background: #1a1a1a;
  --on-surface: #1a1a1a;
  --on-surface-variant: #6c757d;

  --outline: #adb5bd;
  --outline-variant: #dee2e6;

  /* Legacy mapped variables */
  --bg-main: var(--surface);
  --text-primary: #1a1a1a;
  --text-secondary: #495057;
  --text-dim: #6c757d;
  --text-muted: #adb5bd;
  --space-accent: #1a1a1a;
  --space-glow-1: rgba(0, 0, 0, 0.02);
  --space-glow-2: rgba(0, 0, 0, 0.01);
  --space-glow-3: rgba(0, 0, 0, 0.005);

  /* Typography */
  --font-display: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-label: 'Inter', sans-serif;

  /* Transitions */
  --transition-snappy: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  --transition-smooth: 0.3s ease;
}

/* ========================================================================
   Global Reset & Backgrounds
   ======================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: #ffffff;
}

body {
  font-family: var(--font-body);
  background-color: #ffffff;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

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

ul {
  list-style: none;
}

/* ========================================================================
   Typography Utilities
   ======================================================================== */
.dim {
  color: var(--text-dim);
}

.space-accent {
  color: var(--space-accent);
}

.section-padding {
  padding: 7rem 4%;
}

/* ========================================================================
   Buttons & Links
   ======================================================================== */
.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 1rem 2rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 8px;
  border: 2px solid #1a1a1a;
  transition: all var(--transition-snappy);
  cursor: pointer;
}

.btn-solid:hover {
  background-color: #333;
  border-color: #333;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.btn-solid.invert,
.btn-outline {
  background-color: transparent;
  color: #1a1a1a;
  border: 2px solid #1a1a1a;
}

.btn-solid.invert:hover,
.btn-outline:hover {
  background-color: #1a1a1a;
  color: #ffffff;
  transform: translateY(-2px);
}

.link-arrow, .link-arrow-lg {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-dim);
}

.link-arrow { font-size: 0.95rem; }
.link-arrow-lg { font-size: 1.1rem; margin-top: 1rem; }

.link-arrow:hover, .link-arrow-lg:hover {
  color: var(--text-primary);
}

.link-arrow span, .link-arrow-lg span {
  transition: transform var(--transition-snappy);
}

.link-arrow:hover span, .link-arrow-lg:hover span {
  transform: translateX(6px);
}

.inline-link {
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 500;
}

.inline-link:hover {
  color: var(--text-primary);
}

/* ========================================================================
   Site Wrapper
   ======================================================================== */
.site-wrapper {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 100vh;
}

/* ========================================================================
   Navigation
   ======================================================================== */
.navbar {
  padding: 0 4%;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Navbar over dark hero — light text */
.navbar .logo {
  color: #ffffff;
  transition: color 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar .nav-links a {
  color: rgba(255,255,255,0.7);
  transition: color 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar .nav-links a:hover,
.navbar .nav-links a.active {
  color: #ffffff;
}

.navbar .nav-btn {
  background: #ffffff;
  color: #0a0a0a !important;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar .nav-btn:hover {
  background: rgba(255,255,255,0.85);
  color: #0a0a0a !important;
  transform: translateY(-2px);
}

/* Navbar scrolled — switches to light background */
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 30px rgba(0,0,0,0.06);
}

.navbar.scrolled .logo {
  color: #1a1a1a;
}

.navbar.scrolled .nav-links a {
  color: var(--text-dim);
}

.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active {
  color: #1a1a1a;
}

.navbar.scrolled .nav-btn {
  background: #1a1a1a;
  color: #ffffff !important;
}

.navbar.scrolled .nav-btn:hover {
  background: #333;
  color: #ffffff !important;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ========================================================================
   Hero Section — Creative Portfolio Style
   ======================================================================== */
.hero-redesigned {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 10rem 4% 6rem;
  position: relative;
  background: #0a0a0a;
  overflow: hidden;
}

.hero-redesigned::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% 30%, rgba(255,255,255,0.04), transparent),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(255,255,255,0.02), transparent);
  z-index: 0;
}

.hero-tag {
  font-family: var(--font-label);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #ffffff;
  line-height: 1.1;
  max-width: 900px;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
}

.hero-subheading {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
}

.hero-name-subtext {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
  margin: 0 auto 1rem;
  position: relative;
  z-index: 1;
}

.hero-name-subtext strong {
  font-weight: 700;
  color: rgba(255,255,255,0.8);
}

.hero-name-underline {
  display: block;
  width: 60px;
  height: 3px;
  background: rgba(255,255,255,0.3);
  margin: 0 auto 2rem;
  border-radius: 2px;
  position: relative;
  z-index: 1;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* Hero CTA buttons — inverted for dark background */
.hero-ctas .btn-solid {
  background: #ffffff;
  color: #0a0a0a;
  border-color: #ffffff;
}

.hero-ctas .btn-solid:hover {
  background: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.85);
}

.hero-ctas .btn-solid.invert {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255,255,255,0.4);
}

.hero-ctas .btn-solid.invert:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  color: #ffffff;
}

.hero-photo-strip {
  position: relative;
  z-index: 1;
  margin-top: 4rem;
}

.hero-photo-strip img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  filter: grayscale(100%);
  transition: filter 0.5s, transform 0.5s;
}

.hero-photo-strip img:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* ========================================================================
   Big Numbers / Key Achievements Strip
   ======================================================================== */
.big-numbers-section {
  padding: 5rem 4%;
  background: #f8f9fa;
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.big-numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.big-number-item .number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.big-number-item .label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ========================================================================
   Experience Ticker
   ======================================================================== */
.ticker-section {
  padding: 3rem 0;
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  background: #ffffff;
  overflow: hidden;
  margin-top: 0;
}

.ticker-header {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.ticker-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.ticker-content {
  display: flex;
  width: max-content;
  animation: ticker 40s linear infinite;
}

.ticker-content:hover {
  animation-play-state: paused;
}

.ticker-group {
  display: flex;
  gap: 5rem;
  padding-right: 5rem;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0.6;
  transition: opacity var(--transition-snappy);
}

.ticker-item:hover {
  opacity: 1;
}

.ticker-item img {
  height: 36px;
  width: 130px;
  object-fit: contain;
  object-position: left center;
  filter: grayscale(100%);
}

.ticker-item span {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========================================================================
   Section Header
   ======================================================================== */
.section-header {
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: -0.03em;
}

.section-label {
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

/* ========================================================================
   About Section — Photo + Bio
   ======================================================================== */
#about {
  background: #ffffff;
}

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

.about-photo-block {
  position: sticky;
  top: 7rem;
  /* Off-center: push photo block to the left-third of its column */
  margin-right: auto;
  margin-left: 0;
}

.about-photo {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  /* Rule of thirds: position subject at right-third intersection */
  object-position: 65% 33%;
  border-radius: 16px;
  filter: grayscale(100%);
  transition: filter 0.6s ease, transform 0.6s ease;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.about-photo:hover {
  filter: grayscale(0%);
  transform: scale(1.02);
}

/* ========================================================================
   Right Fit Feature (AI UI)
   ======================================================================== */
.right-fit-container {
  margin-top: 5rem;
  width: 100%;
}

.right-fit-card {
  background: var(--surface-low);
  border: 1px solid var(--outline-variant);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
}

.right-fit-header {
  margin-bottom: 2rem;
}

.right-fit-badge {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  background: #e3e8ff;
  color: #3b5bdb;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.right-fit-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.right-fit-subtitle {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.5;
}

.right-fit-input-area {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.right-fit-textarea {
  width: 100%;
  border: 1px solid var(--outline);
  border-radius: 12px;
  padding: 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: #ffffff;
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.right-fit-textarea:focus {
  outline: none;
  border-color: #1a1a1a;
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
}

.right-fit-btn {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
}

.right-fit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.right-fit-loading {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #f1f3f5;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px dashed var(--outline);
}

.loading-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dim);
  font-weight: 500;
}

.dot.dark {
  background: var(--text-dim);
}

.right-fit-result {
  margin-top: 2rem;
  animation: fadeIn 0.5s ease;
}

.right-fit-divider {
  border: 0;
  border-top: 1px solid var(--outline-variant);
  margin-bottom: 2rem;
}

.result-verdict-box {
  background: #ffffff;
  border-left: 4px solid #1a1a1a;
  padding: 1.5rem;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
  margin-bottom: 2rem;
}

.result-verdict {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 0.4rem;
}

.verdict-strong { border-left-color: #2b8a3e; }
.verdict-good { border-left-color: #f59f00; }
.verdict-partial { border-left-color: #e03131; }

.result-reason {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

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

.result-section-label {
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.result-list {
  list-style: none;
  padding: 0;
}

.result-list li {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  position: relative;
  padding-left: 1.5rem;
}

.result-list.success-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2b8a3e;
  font-weight: bold;
}

.result-list.warning-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #e03131;
  font-weight: bold;
}

.result-take-box {
  background: #fafafa;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--outline-variant);
  margin-bottom: 2.5rem;
}

.result-take-text {
  font-size: 0.95rem;
  color: #1a1a1a;
  line-height: 1.6;
  font-style: italic;
}

.result-cta-box {
  text-align: center;
  padding: 2rem;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--outline-variant);
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.result-cta-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
}

.result-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-outline {
  background: transparent;
  color: #1a1a1a;
  border: 1px solid var(--outline);
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}

.btn-outline:hover {
  border-color: #1a1a1a;
  background: #f8f9fa;
}

.right-fit-attribution {
  text-align: right;
  margin-top: 1rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-label);
}

/* ========================================================================
   Product Philosophy
   ======================================================================== */
.philosophy-section {
  background: #f8f9fa;
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.philosophy-statement {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.5;
  max-width: 800px;
  margin-bottom: 4rem;
  letter-spacing: -0.02em;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.philosophy-item {
  padding: 2rem 0;
  border-top: 3px solid #1a1a1a;
}

.philosophy-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
}

.philosophy-desc {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ========================================================================
   Experience Section
   ======================================================================== */
.experience-list {
  display: flex;
  flex-direction: column;
}

.experience-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: background var(--transition-smooth);
}

.experience-row:first-child {
  border-top: 1px solid rgba(0,0,0,0.06);
}

.experience-row:hover {
  background: #fafafa;
  padding-left: 1rem;
  padding-right: 1rem;
  margin-left: -1rem;
  margin-right: -1rem;
  border-radius: 12px;
}

.exp-logo-box {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #f8f9fa;
  border: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.exp-logo-box img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.exp-details {
  flex-grow: 1;
}

.exp-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.01em;
  margin-bottom: 0.15rem;
}

.exp-company {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.exp-date {
  font-family: var(--font-label);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ========================================================================
   Key Achievements — Dark Contrast Block
   ======================================================================== */
.achievements-section {
  background: #1a1a1a;
  color: #ffffff;
  padding: 6rem 4%;
}

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

.achievement-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  transition: background var(--transition-smooth);
}

.achievement-row:hover {
  background: rgba(255,255,255,0.08);
}

.achievement-icon {
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.achievement-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.achievement-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

/* ========================================================================
   Case Studies — Tabbed Interface
   ======================================================================== */
.case-studies {
  background: #f8f9fa;
}

.case-studies .section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.view-all {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  border-bottom: 2px solid var(--text-dim);
  color: var(--text-dim);
  padding-bottom: 0.2rem;
}

.view-all:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
}

/* Tab Navigation */
.case-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.case-tab {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.1);
  padding: 0.65rem 1.5rem;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.case-tab:hover {
  border-color: rgba(0,0,0,0.3);
  color: #1a1a1a;
}

.case-tab.active {
  background: #1a1a1a;
  color: #ffffff;
  border-color: #1a1a1a;
}

/* Case Card */
.case-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.06);
  display: none;
  animation: fadeIn 0.4s ease;
}

.case-card.active {
  display: block;
}

.case-card-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.case-card-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,0,0,0.06);
  flex-shrink: 0;
}

.case-card-logo img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.case-card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1a1a1a;
  margin-bottom: 0.25rem;
}

.case-card-company {
  font-family: var(--font-label);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.case-card-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.case-section-label {
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.case-section-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.case-impact-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.case-impact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.case-impact-list li::before {
  content: '★';
  color: #1a1a1a;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.case-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.skill-pill {
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: #f1f3f5;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  border: 1px solid rgba(0,0,0,0.06);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Legacy study rows (hidden but kept for modal triggers) */
.study-list { display: none; }

/* ========================================================================
   Process Section — Dark Contrast Block
   ======================================================================== */
.process-section {
  background: #1a1a1a;
  color: #ffffff;
  padding: 6rem 4%;
  text-align: center;
}

.process-section h2 {
  color: #ffffff;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  max-width: 700px;
  margin: 0 auto 4rem;
  line-height: 1.2;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

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

.process-number {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.process-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.process-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

/* ========================================================================
   Services — S&P-Style Split Panel
   ======================================================================== */
.engage-section {
  background: #ffffff;
}

/* Split Panel Grid */
.sp-panel {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  min-height: 480px;
}

/* Left Navigation */
.sp-nav {
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e5e5e5;
  padding-right: 0;
}

.sp-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem 1.5rem;
  background: none;
  border: none;
  border-top: 1px solid #e5e5e5;
  border-left: 3px solid transparent;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s ease;
}

.sp-nav-item:last-child {
  border-bottom: 1px solid #e5e5e5;
}

.sp-nav-label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  letter-spacing: -0.01em;
  transition: color 0.25s ease;
}

.sp-nav-chevron {
  font-size: 1.3rem;
  font-weight: 300;
  color: #999;
  transition: all 0.25s ease;
  line-height: 1;
}

/* Active state */
.sp-nav-item.active {
  border-left-color: #1a1a1a;
  background: rgba(0,0,0,0.02);
}

.sp-nav-item.active .sp-nav-label {
  color: #1a1a1a;
  font-weight: 800;
}

.sp-nav-item.active .sp-nav-chevron {
  color: #1a1a1a;
}

/* Hover for inactive */
.sp-nav-item:not(.active):hover {
  background: rgba(0,0,0,0.015);
}

.sp-nav-item:not(.active):hover .sp-nav-label {
  color: #1a1a1a;
}

/* Right Content Area */
.sp-content {
  padding-left: 3rem;
  position: relative;
}

/* Panel switching */
.sp-panel-content {
  display: none;
}

.sp-panel-content.active {
  display: block;
  animation: spFadeIn 0.35s ease;
}

@keyframes spFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- Justin Welsh Style Hero & Nudge --- */
.hero-tagline {
    font-size: clamp(2.5rem, 5vw, 3.8rem) !important;
    line-height: 1.1 !important;
    margin-bottom: 2rem !important;
    font-weight: 800 !important;
    max-width: 1000px;
    letter-spacing: -0.03em !important;
    color: #1a1a1a;
}

.hero-subheading {
    font-family: var(--font-body);
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.hero-nudge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 3.5rem;
    background: rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(8px);
    padding: 0.6rem 1.25rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(0, 0, 0, 0.08);
    animation: fadeInUp 1s ease both 0.8s;
}

.hero-nudge .material-symbols-outlined {
    color: #000;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Narrative Hero Styles --- */
.hero-narrative {
    text-align: left;
    padding-top: 10rem;
    padding-bottom: 6rem;
    background: #000; /* High-contrast black background */
    color: #fff;       /* White text */
}

/* Two-column hero layout */
.hero-two-col {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 4rem;
    align-items: center;
}

.hero-text-col {
    /* intentionally unstyled — inherits hero-content-wrapper */
}

/* Profile photo column */
.hero-photo-col {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hero-profile-frame {
    position: relative;
    width: 280px;
    height: 340px;
    flex-shrink: 0;
}

.hero-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    /* Desaturate slightly so it blends with black bg */
    filter: grayscale(20%) brightness(0.88);
    /* Fade bottom into the black background */
    -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
    /* Fade left edge slightly */
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%),
                        linear-gradient(to right, transparent 0%, black 18%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%),
                linear-gradient(to right, transparent 0%, black 18%);
    mask-composite: intersect;
}

/* Faint frame accent behind photo */
.hero-profile-frame::before {
    content: '';
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    right: -1.2rem;
    bottom: -1.2rem;
    border: 1px solid rgba(255,255,255,0.08);
    pointer-events: none;
    z-index: 0;
}

.hero-profile-img {
    position: relative;
    z-index: 1;
}

/* Hide photo on mobile, keep layout single column */
@media (max-width: 900px) {
    .hero-two-col {
        grid-template-columns: 1fr;
    }
    .hero-photo-col {
        display: none;
    }
}

.hero-content-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.hero-intro-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.6); /* Slightly dimmed white */
    margin-bottom: 2.5rem;
}

.hero-narrative-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.6rem);
    line-height: 1.25;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: 3rem;
}

.hero-narrative-title .highlight {
    color: #fff;
    position: relative;
    display: inline-block;
}

.hero-narrative-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.15); /* Subtle white highlight */
    z-index: -1;
}

.hero-antithesis {
    border-top: 4px solid #fff;
    border-bottom: 2px dotted rgba(255, 255, 255, 0.4); /* dotted frame line */
    padding: 1.5rem 0;
    margin-top: 1rem;
    margin-bottom: 3rem;
    display: inline-block; /* Width hugs the text */
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1rem, 2vw, 1.35rem);
    letter-spacing: 0.02em;
    color: #fff;
    font-style: italic;
}

/* APOS Highlight Wordmark */
.apos-highlight {
    font-size: 1.5em;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #fff;
    display: inline-block;
    line-height: 1;
}

.hero-bio-short {
    max-width: 750px;
    margin-bottom: 4rem;
}

.hero-bio-short p {
    font-size: 1.25rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8); /* readable white */
    margin-bottom: 1.5rem;
}

.hero-bio-short strong {
    color: #fff;
    font-weight: 700;
}

.hero-no-fluff {
    font-weight: 600;
    color: #fff !important;
    font-style: italic;
    font-size: 1.1rem !important;
}

.hero-narrative-outro {
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.01em;
}

/* Adjusting Buttons for Dark Background */
.hero-narrative .btn-solid.invert {
    border-color: #fff;
    color: #fff;
    background: transparent;
}

.hero-narrative .btn-solid.invert:hover {
    background: #fff;
    color: #000;
}

/* Response for Mobile Hero Narrative */
@media (max-width: 768px) {
    .hero-narrative {
        padding-top: 7rem;
        text-align: left;
    }
    .hero-ctas {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-ctas .btn-solid {
        width: 100%;
        justify-content: center;
    }
}

/* Panel Title */
.sp-panel-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
}

/* Panel Intro */
.sp-panel-intro {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dim);
  font-style: italic;
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 0;
}

/* Divider */
.sp-divider {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 1.5rem 0 2rem;
}

/* Card Grid */
.sp-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

/* Individual Card */
.sp-card {
  background: #f5f5f5;
  border-radius: 0;
  transition: background 0.25s ease, transform 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.sp-card.featured-highlight {
  border: 1px solid var(--gold);
  background: #fff;
  box-shadow: 0 10px 30px rgba(201,146,42,0.1);
}

.sp-featured-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--gold);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.5rem 1.2rem;
  letter-spacing: 0.15em;
  z-index: 2;
  clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%); /* Editorial skew */
}

.sp-card:hover {
  background: #eeeeee;
}

.sp-card-inner {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sp-card-num {
  font-family: var(--font-label);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.sp-card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: -0.02em;
  margin-bottom: 0.7rem;
}

.sp-card p {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.sp-card-deliverable {
  font-family: var(--font-label);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(0,0,0,0.08);
}

/* Sustain Card */
.sp-card-sustain {
  background: #fafafa;
  border: 1.5px dashed rgba(0,0,0,0.15);
}

.sp-card-sustain:hover {
  background: #f2f2f2;
}

.sp-sustain-badge {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.25rem 0.7rem;
  background: #1a1a1a;
  color: #ffffff;
  margin-bottom: 0.6rem;
  width: fit-content;
}

/* Card stagger animation */
.sp-panel-content.active .sp-card {
  animation: spCardIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.sp-panel-content.active .sp-card:nth-child(1) { animation-delay: 0.04s; }
.sp-panel-content.active .sp-card:nth-child(2) { animation-delay: 0.08s; }
.sp-panel-content.active .sp-card:nth-child(3) { animation-delay: 0.12s; }
.sp-panel-content.active .sp-card:nth-child(4) { animation-delay: 0.16s; }
.sp-panel-content.active .sp-card:nth-child(5) { animation-delay: 0.2s; }

@keyframes spCardIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.mugen-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  padding: 2.5rem;
  border-radius: 16px;
  position: relative;
  transition: all var(--transition-snappy);
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.mugen-card:hover {
  border-color: rgba(0,0,0,0.15);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  transform: translateY(-4px);
}

.card-number {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.mugen-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}

.mugen-card p {
  color: var(--text-dim);
  margin-bottom: 2rem;
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
}

.deliverable {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0,0,0,0.08);
  color: var(--text-dim);
}

/* Card Meta Elements — Learning & Coaching Tier */
.card-meta {
  font-family: var(--font-label);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.card-audience {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex-grow: 0;
}

.card-status {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #1a1a1a;
  background: rgba(0,0,0,0.05);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  display: inline-block;
  margin-top: auto;
}

.card-status-limited {
  background: #1a1a1a;
  color: #ffffff;
}

.card-detail {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.card-detail span {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #1a1a1a;
}

/* Retainer Section */
.engage-retainer {
  position: relative;
}

.retainer-rule {
  width: 100%;
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    var(--text-muted) 0,
    var(--text-muted) 6px,
    transparent 6px,
    transparent 12px
  );
  margin-bottom: 2.5rem;
}

.retainer-content {
  background: #f8f9fa;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 3rem;
}

.retainer-header {
  margin-bottom: 1.5rem;
}

.retainer-badge {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #ffffff;
  background: #1a1a1a;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.retainer-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.retainer-availability {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dim);
  font-style: italic;
}

.retainer-body {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 900px;
}

/* ========================================================================
   Testimonials Section
   ======================================================================== */
.testimonials {
  background: #f8f9fa;
}

.testimonials-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 2rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.testimonials-track::-webkit-scrollbar {
  height: 4px;
}
.testimonials-track::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.03);
}
.testimonials-track::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.12);
  border-radius: 4px;
}

.testimonial-card {
  flex: 0 0 calc(33.333% - 1rem);
  scroll-snap-align: start;
  padding: 2.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  color: #dee2e6;
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  line-height: 1;
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}
.testimonial-text strong {
  color: #1a1a1a;
  font-weight: 600;
}

.testimonial-author {
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
}

.author-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.03em;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
}

.author-title {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 0.15rem;
}

.author-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ========================================================================
   Course Section
   ======================================================================== */
.course-section {
  background: #ffffff;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.course-module {
  padding: 2rem;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  transition: all var(--transition-smooth);
}
.course-module:hover {
  border-color: #1a1a1a;
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.module-number {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.course-module h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.course-module p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ========================================================================
   Writing Section
   ======================================================================== */
.writing-section {
  background: #f8f9fa;
}

/* ========================================================================
   Footer
   ======================================================================== */
.site-footer {
  padding: 6rem 4% 2rem;
  position: relative;
  background: #ffffff;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.footer-cta {
  background: #f8f9fa;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 20px;
  padding: 5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
}

.footer-cta h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: #1a1a1a;
  line-height: 1.05;
}

.footer-actions {
  max-width: 420px;
}

.footer-actions p {
  margin-bottom: 2rem;
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.btn-group {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(0,0,0,0.06);
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 500;
}
.footer-links a:hover {
  color: #1a1a1a;
}

/* ========================================================================
   Animations — Smooth Scroll Reveals & Hero Entrance
   ======================================================================== */

/* Base scroll reveal — fade + slide up */
.stagger-up {
  opacity: 0;
  transform: translateY(60px);
  transition: 
    opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-up.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* ---- Hero Entrance — dramatic staged reveal ---- */
.hero-redesigned .hero-tagline {
  opacity: 0;
  transform: translateY(80px);
  transition: 
    opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.3s,
    transform 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.hero-redesigned .hero-subheading {
  opacity: 0;
  transform: translateY(50px);
  transition: 
    opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.8s,
    transform 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.8s;
}

.hero-redesigned .hero-name-subtext {
  opacity: 0;
  transform: translateY(40px);
  transition: 
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 1.2s,
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.2s;
}

.hero-redesigned .hero-name-underline {
  opacity: 0;
  transform: scaleX(0);
  transition: 
    opacity 0.8s ease 1.5s,
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.5s;
  transform-origin: center;
}

.hero-redesigned .hero-ctas {
  opacity: 0;
  transform: translateY(40px);
  transition: 
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 1.8s,
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.8s;
}

/* Hero active state */
.hero-redesigned.hero-visible .hero-tagline,
.hero-redesigned.hero-visible .hero-subheading,
.hero-redesigned.hero-visible .hero-name-subtext,
.hero-redesigned.hero-visible .hero-ctas {
  opacity: 1;
  transform: translateY(0);
}

.hero-redesigned.hero-visible .hero-name-underline {
  opacity: 1;
  transform: scaleX(1);
}

/* ---- Navbar entrance ---- */
.navbar {
  opacity: 0;
  transform: translateY(-30px);
  animation: navSlideDown 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

@keyframes navSlideDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Staggered grid children — cards cascade in ---- */
.big-numbers-grid .big-number-item,
.philosophy-grid .philosophy-item,
.course-grid .course-module {
  opacity: 0;
  transform: translateY(50px);
  transition: 
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-up.active .big-number-item,
.stagger-up.active .philosophy-item,
.stagger-up.active .course-module {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grid children */
.stagger-up.active .big-number-item:nth-child(1),
.stagger-up.active .philosophy-item:nth-child(1),
.stagger-up.active .course-module:nth-child(1) { transition-delay: 0.15s; }

.stagger-up.active .big-number-item:nth-child(2),
.stagger-up.active .philosophy-item:nth-child(2),
.stagger-up.active .course-module:nth-child(2) { transition-delay: 0.3s; }

.stagger-up.active .big-number-item:nth-child(3),
.stagger-up.active .philosophy-item:nth-child(3),
.stagger-up.active .course-module:nth-child(3) { transition-delay: 0.45s; }

.stagger-up.active .big-number-item:nth-child(4),
.stagger-up.active .course-module:nth-child(4) { transition-delay: 0.6s; }

/* ---- Experience rows cascade ---- */
.experience-row {
  opacity: 0;
  transform: translateY(35px);
  transition: 
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.experience-row.row-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Achievement rows cascade ---- */
.achievement-row {
  opacity: 0;
  transform: translateY(40px);
  transition: 
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.achievement-row.row-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Testimonial cards ---- */
.testimonial-card {
  opacity: 0;
  transform: translateY(50px) scale(0.95);
  transition: 
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card.card-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ---- Section label slide-in ---- */
.section-label {
  opacity: 0;
  transform: translateX(-20px);
  transition: 
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-up.active .section-label,
.stagger-up.active.section-label {
  opacity: 1;
  transform: translateX(0);
}

/* ---- Retainer special reveal ---- */
.engage-retainer .retainer-rule {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.3s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.engage-retainer.active .retainer-rule {
  transform: scaleX(1);
}

.engage-retainer .retainer-content {
  opacity: 0;
  transform: translateY(40px);
  transition: 
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s,
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s;
}

.engage-retainer.active .retainer-content {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Tier header reveal ---- */
.tier-header {
  opacity: 0;
  transform: translateY(45px);
  transition: 
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-up.active .tier-header {
  opacity: 1;
  transform: translateY(0);
}

/* Smooth fadeIn keyframe */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================================================
   Case Study Overlays (Panels)
   ======================================================================== */
.overlay-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-snappy), visibility var(--transition-snappy);
}

.overlay-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.case-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 700px;
  height: 100vh;
  background-color: #ffffff;
  z-index: 1000;
  overflow-y: auto;
  transition: right 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.case-panel.active {
  right: 0;
}

.panel-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: #f1f3f5;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition-smooth);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-close:hover {
  background: #e9ecef;
  color: #1a1a1a;
}

.panel-content {
  padding: 4rem 3rem 3rem;
}

.panel-meta {
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.panel-content h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 2.5rem;
  color: #1a1a1a;
  font-weight: 800;
}

.panel-body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.panel-body h3 {
  color: #1a1a1a;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
}

.panel-body p {
  margin-bottom: 1rem;
}

.panel-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.panel-list li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-secondary);
}

.panel-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: #1a1a1a;
  font-weight: 700;
}

.panel-list strong {
  color: #1a1a1a;
}

/* ========================================================================
   Founder Trigger Strip
   ======================================================================== */
.founder-trigger {
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
}

.founder-trigger img {
  border: 2px solid #e9ecef !important;
}

.founder-trigger h3 {
  color: #1a1a1a !important;
}

/* ========================================================================
   AI Chat Widget
   ======================================================================== */
.chat-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1a1a1a;
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  transition: transform var(--transition-snappy), background var(--transition-snappy);
}
.chat-fab:hover {
  transform: scale(1.05);
  background: #333;
}

.chat-window {
  position: fixed;
  bottom: 5.5rem;
  right: 2rem;
  width: 380px;
  height: 500px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity var(--transition-snappy), transform var(--transition-snappy);
}
.chat-window.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.chat-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border-radius: 16px 16px 0 0;
}
.chat-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: #1a1a1a;
}
.chat-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color var(--transition-smooth);
}
.chat-close:hover {
  color: #1a1a1a;
}

.chat-messages {
  flex-grow: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #fafafa;
}

.message {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  animation: fadeUp 0.3s ease-out;
}
.ai-message {
  align-self: flex-start;
  background: #ffffff;
  color: var(--text-secondary);
  border: 1px solid rgba(0,0,0,0.06);
  border-bottom-left-radius: 4px;
}
.user-message {
  align-self: flex-end;
  background: #1a1a1a;
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.chat-input-area {
  padding: 1rem;
  border-top: 1px solid rgba(0,0,0,0.06);
  background: #ffffff;
  border-radius: 0 0 16px 16px;
}
.chat-input-area input {
  flex-grow: 1;
  background: #f8f9fa;
  border: 1px solid rgba(0,0,0,0.1);
  color: #1a1a1a;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
}
.chat-input-area input:focus {
  outline: none;
  border-color: #1a1a1a;
}
.chat-input-area button {
  background: #1a1a1a;
  color: #ffffff;
  border: none;
  padding: 0 1.2rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-smooth);
}
.chat-input-area button:hover {
  background: #333;
}

/* Typing Indicator */
.typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  height: 18px;
}
.dot {
  width: 5px;
  height: 5px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}
.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================================================
   Career Timeline (in Panel)
   ======================================================================== */
.career-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid #e9ecef;
}
.timeline-node {
  position: relative;
}
.timeline-marker {
  position: absolute;
  left: -2.5rem;
  top: 0.3rem;
  width: 0.85rem;
  height: 0.85rem;
  background: #ffffff;
  border: 3px solid #1a1a1a;
  border-radius: 50%;
}
.timeline-date {
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  display: block;
  margin-bottom: 0.5rem;
}
.timeline-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}
.timeline-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========================================================================
   Responsive Adjustments
   ======================================================================== */
@media (max-width: 1024px) {
  .big-numbers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .case-card-body {
    grid-template-columns: 1fr;
  }
  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  /* S&P panel → stacked on tablet */
  .sp-panel {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .sp-nav {
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid #e5e5e5;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .sp-nav-item {
    flex-shrink: 0;
    border-top: none;
    border-bottom: none;
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 1rem 1.3rem;
  }
  .sp-nav-item:last-child {
    border-bottom: 3px solid transparent;
  }
  .sp-nav-item.active {
    border-left-color: transparent;
    border-bottom-color: #1a1a1a;
  }
  .sp-nav-chevron {
    display: none;
  }
  .sp-content {
    padding-left: 0;
    padding-top: 2rem;
  }
  .sp-card-grid {
    grid-template-columns: 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-photo {
    max-width: 280px;
  }
  .about-photo-block {
    position: static;
  }
  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .achievements-grid {
    grid-template-columns: 1fr;
  }
  .footer-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 3rem;
    padding: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero-tagline {
    font-size: 2.4rem;
  }
  .hero-redesigned {
    padding: 8rem 4% 4rem;
  }
  .big-numbers-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-cta {
    padding: 2rem;
  }
  .course-grid {
    grid-template-columns: 1fr;
  }
  .testimonial-card {
    flex: 0 0 85vw;
  }
  .case-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .experience-row {
    flex-wrap: wrap;
  }
  .exp-date {
    width: 100%;
    padding-left: calc(48px + 1.5rem);
    margin-top: -0.5rem;
  }
}

/* ── QUICK WINS SECTION ── */
.quick-wins-section {
    background: #0a0a0a;
    padding: 7rem 2rem;
    position: relative;
    overflow: hidden;
}

.quick-wins-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

.qw-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.qw-header {
    text-align: center;
    margin-bottom: 4rem;
}

.qw-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.04em;
    line-height: 1.15;
    margin: 0.75rem 0 0.75rem;
}

.qw-title em {
    font-style: italic;
    font-weight: 400;
    color: rgba(255,255,255,0.55);
}

.qw-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.02em;
}

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

/* Base card styles */
.qw-card {
    border-radius: 2px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qw-card:hover {
    transform: translateY(-4px);
}

/* Primary card: white on dark */
.qw-card-primary {
    background: #fff;
    color: #0a0a0a;
}

/* Secondary card: outlined */
.qw-card-secondary {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
}

.qw-card-secondary .qw-card-title,
.qw-card-secondary .qw-card-eyebrow,
.qw-card-secondary .qw-card-desc,
.qw-card-secondary .qw-price,
.qw-card-secondary .qw-feature-list li {
    color: #fff;
}

.qw-card-secondary:hover {
    border-color: rgba(255,255,255,0.35);
    box-shadow: 0 20px 50px rgba(255,255,255,0.04);
}

.qw-card-eyebrow {
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.5;
}

.qw-card-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0;
}

.qw-card-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.7;
}

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

.qw-feature-list li {
    font-size: 0.88rem;
    line-height: 1.5;
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    opacity: 0.75;
}

.qw-feature-list li::before {
    content: '→';
    flex-shrink: 0;
    font-weight: 600;
    opacity: 0.5;
}

.qw-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-top: 0.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.qw-card-secondary .qw-price-row {
    border-top-color: rgba(255,255,255,0.1);
}

.qw-price {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.qw-price-mo {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0;
    opacity: 0.6;
}

.qw-price-note {
    font-size: 0.78rem;
    opacity: 0.45;
    letter-spacing: 0.02em;
}

/* CTAs */
.qw-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.75rem;
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.25s ease;
}

.qw-cta-primary {
    background: #0a0a0a;
    color: #fff;
    border: 2px solid #0a0a0a;
}

.qw-cta-primary:hover {
    background: transparent;
    color: #0a0a0a;
}

.qw-cta-secondary {
    background: #fff;
    color: #0a0a0a;
    border: 2px solid #fff;
}

.qw-cta-secondary:hover {
    background: transparent;
    color: #fff;
}

@media (max-width: 768px) {
    .qw-cards { grid-template-columns: 1fr; }
    .quick-wins-section { padding: 5rem 1.5rem; }
}

