/* ============================================
   Adeolu Timothy — Portfolio Website
   Modern White Clean Design System
   Avenir (body) + Outfit (headings) · Red & White
   ============================================ */

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

/* --- CSS Custom Properties --- */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #FAFAFA;
  --bg-card: #ffffff;
  --bg-glass: rgba(0, 0, 0, 0.02);
  --accent-red: #D42B2B;
  --accent-red-light: #E84545;
  --accent-red-glow: rgba(212, 43, 43, 0.08);
  --accent-red-soft: rgba(212, 43, 43, 0.05);
  --accent-dark: #1A1A1A;
  --text-primary: #1A1A1A;
  --text-secondary: #6B6B6B;
  --text-muted: #999999;
  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-medium: rgba(0, 0, 0, 0.10);
  --border-accent: rgba(212, 43, 43, 0.2);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.08);
  --shadow-subtle: 0 1px 2px rgba(0, 0, 0, 0.04);
  --transition-smooth: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Alternating Section Backgrounds --- */
.section-alt {
  background: #f7f7f8;
}

.section-alt .venture-card,
.section-alt .thought-card,
.section-alt .product-card,
.section-alt .about-stat {
  background: #ffffff;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p {
  text-align: justify;
}

h1, h2, h3, h4, h5, h6,
.section-title,
.section-label,
.section-subtitle {
  text-align: left;
}

a {
  color: var(--accent-red);
  text-decoration: none;
  transition: color var(--transition-smooth);
}

a:hover {
  color: var(--accent-red-light);
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

/* --- Utility --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 80px 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-red);
  margin-bottom: 16px;
  padding: 6px 16px;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  background: var(--accent-red-soft);
}

.section-label .dot {
  width: 6px;
  height: 6px;
  background: var(--accent-red);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.8;
  font-weight: 400;
}

.gradient-text {
  color: var(--accent-red);
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
}

/* --- Reveal on scroll --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* --- Background Decorations --- */
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  pointer-events: none;
  z-index: 0;
}

.bg-glow.blue {
  background: rgba(212, 43, 43, 0.04);
}

.bg-glow.gold {
  background: rgba(212, 43, 43, 0.03);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition-smooth);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: var(--accent-red);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition-smooth);
  letter-spacing: 0.01em;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-red);
  border-radius: 2px;
  transition: width var(--transition-smooth);
}

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

.nav-cta {
  padding: 10px 24px !important;
  background: var(--accent-red) !important;
  color: #fff !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  transition: all var(--transition-smooth) !important;
  border: none;
  letter-spacing: 0.01em;
}

.nav-cta:hover {
  background: var(--accent-red-light) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(212, 43, 43, 0.25);
}

.nav-cta::after {
  display: none !important;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  background: var(--bg-primary);
}

.hero .bg-glow.blue {
  width: 700px;
  height: 700px;
  top: -150px;
  right: -250px;
}

.hero .bg-glow.gold {
  width: 500px;
  height: 500px;
  bottom: -150px;
  left: -150px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

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

.hero-name {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.02;
  margin-bottom: 24px;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.hero-nickname {
  display: inline-block;
  font-size: 0.32em;
  font-weight: 500;
  color: var(--text-muted);
  vertical-align: super;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-left: 8px;
  border: 1px solid var(--border-medium);
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  position: relative;
  top: -0.3em;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-secondary);
  margin-bottom: 12px;
  min-height: 2.4em;
  font-weight: 400;
}

.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 1.2em;
  background: var(--accent-red);
  margin-left: 4px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero-intro {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-headshot {
  width: 260px;
  height: 300px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  object-fit: cover;
  object-position: top center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.10);
  border: 3px solid var(--border-subtle);
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: none;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--accent-red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-red-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 43, 43, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-medium);
}

.btn-outline:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
  transform: translateY(-2px);
}

/* Hero grid pattern */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 30% 50%, black 15%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, black 15%, transparent 65%);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  position: relative;
  background: var(--bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 20px;
  line-height: 1.85;
}

.about-text p strong {
  color: var(--text-primary);
  font-weight: 600;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.stat-card {
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-subtle);
}

.stat-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-red);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
  font-weight: 500;
}

.about-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-quote {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-secondary);
  border-left: 3px solid var(--accent-red);
  padding: 6px 0 6px 16px;
  margin: 16px 0 0;
  line-height: 1.6;
}

.about-signature {
  width: 120px;
  height: auto;
  opacity: 0.8;
  filter: contrast(1.2);
  display: block;
  margin-left: auto;
  margin-top: 8px;
}

.about-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.about-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  filter: grayscale(20%);
  transition: filter var(--transition-smooth);
}

.about-image-wrap:hover .about-image {
  filter: grayscale(0%);
}

/* ============================================
   VENTURES SECTION
   ============================================ */
.ventures {
  position: relative;
  background: var(--bg-primary);
}

.ventures-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.venture-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 22px;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}

.venture-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent-red);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.venture-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-hover);
}

.venture-card:hover::before {
  opacity: 1;
}

.venture-card--compact {
  display: flex;
  flex-direction: column;
}

.venture-meta {
  margin-bottom: 12px;
}

.venture-role {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 600;
  background: var(--bg-secondary);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.venture-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.venture-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.venture-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-red);
  transition: gap var(--transition-smooth);
}

.venture-link:hover {
  gap: 10px;
  color: var(--accent-red-light);
}

.venture-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.venture-img {
  max-width: 160px;
  max-height: 160px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity var(--transition-smooth);
}

.venture-card:hover .venture-img {
  opacity: 1;
}

/* Products List */
.products-section {
  margin-top: 60px;
}

.products-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  font-family: var(--font-heading);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.product-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-smooth);
  text-decoration: none;
  box-shadow: var(--shadow-subtle);
}

.product-item:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.product-icon {
  flex-shrink: 0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.product-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.product-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.product-arrow {
  margin-left: auto;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  transition: all var(--transition-smooth);
}

.product-item:hover .product-arrow {
  color: var(--accent-red);
  transform: translateX(4px);
}


/* ============================================
   BLOG SECTION
   ============================================ */
.blog-section {
  position: relative;
  background: var(--bg-secondary);
}

.blog-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 4px;
  width: fit-content;
  box-shadow: var(--shadow-subtle);
}

.blog-tab {
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: none;
  background: none;
  font-family: var(--font-body);
}

.blog-tab.active {
  background: var(--accent-red);
  color: #fff;
}

.blog-tab:hover:not(.active) {
  color: var(--text-primary);
}

/* Category Filter Pills */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.category-pill {
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: capitalize;
}

.category-pill:hover {
  border-color: var(--border-medium);
  color: var(--text-secondary);
}

.category-pill.active {
  background: var(--accent-red);
  color: #fff;
  border-color: var(--accent-red);
}

.thought-card.filtered-out {
  display: none;
}

/* --- Thought Cards Feed --- */
.thoughts-feed {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.thought-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 24px;
  transition: all 0.4s ease;
  box-shadow: var(--shadow-subtle);
  position: relative;
  overflow: hidden;
}

/* Focus mode: dim siblings when one card is expanded */
.thoughts-feed.has-expanded .thought-card {
  opacity: 0.3;
  transform: scale(0.98);
  pointer-events: none;
}

.thoughts-feed.has-expanded .thought-card.expanded {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  border-color: var(--border-medium);
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  z-index: 10;
}

.thought-card:hover {
  border-color: var(--border-medium);
}

.thought-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0;
  line-height: 1.3;
}

.thought-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.thought-body p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0 0 6px 0;
}

.thought-body p:last-child { margin-bottom: 0; }

.thought-body blockquote {
  border-left: 3px solid var(--accent-red);
  padding-left: 12px;
  margin: 6px 0;
  font-style: italic;
  color: var(--text-muted);
}

.thought-body blockquote p { margin: 0; }

.thought-body ul, .thought-body ol {
  padding-left: 20px;
  margin: 6px 0;
}

.thought-body li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2px;
}

.thought-card.expanded .thought-body {
  max-height: 400px;
  padding-top: 12px;
}

.thought-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.thought-toggle {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-red);
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  transition: all var(--transition-smooth);
}

.thought-toggle:hover {
  color: var(--accent-red-light);
}

.thought-card.expanded .thought-toggle svg {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

/* Fire Reaction Button */
.thought-react {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s ease;
  position: relative;
  overflow: visible;
}

.thought-react:hover {
  border-color: var(--border-medium);
  color: var(--text-secondary);
}

.thought-react.fired {
  border-color: #ff6b35;
  background: rgba(255, 107, 53, 0.08);
  color: #ff6b35;
}

.react-count {
  font-variant-numeric: tabular-nums;
}

/* Fire burst particles */
.fire-particle {
  position: fixed;
  pointer-events: none;
  font-size: 1.2rem;
  z-index: 9999;
  animation: fireBurst 0.8s ease-out forwards;
}

@keyframes fireBurst {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0.3); }
}

/* Thought excerpt preview */
.thought-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 4px 0 0;
  line-height: 1.5;
  text-align: left;
}

.thought-card.expanded .thought-excerpt {
  display: none;
}

/* Actions row */
.thought-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.thought-comment-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.thought-comment-toggle:hover {
  border-color: var(--border-medium);
  color: var(--text-secondary);
}

/* Collapsible Comments Section */
.thought-comments {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.thought-card.comments-open .thought-comments {
  max-height: 600px;
  overflow-y: auto;
}

.comments-list {
  padding: 12px 0 8px;
}

.comment-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.comment-item:last-child {
  border-bottom: none;
}

.comment-author {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.comment-content {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  text-align: left;
}

.comment-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.comment-name,
.comment-text {
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 8px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text-primary);
  resize: none;
  outline: none;
  transition: border-color 0.2s ease;
}

.comment-name:focus,
.comment-text:focus {
  border-color: var(--accent-red);
}

.comment-submit {
  align-self: flex-end;
  padding: 6px 20px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent-red);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.comment-submit:hover {
  background: var(--accent-red-light);
}

/* Share Button & Dropdown */
.thought-share-wrap {
  position: relative;
}

.thought-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.thought-share:hover {
  border-color: var(--border-medium);
  color: var(--text-secondary);
}

.share-dropdown {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  padding: 6px 0;
  min-width: 180px;
  z-index: 100;
  animation: dropIn 0.2s ease;
}

.share-dropdown.open {
  display: block;
}

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

.share-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s ease;
  border: none;
  background: none;
  width: 100%;
  font-family: var(--font-body);
  text-align: left;
}

.share-option:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.share-option svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.share-copied {
  color: var(--accent-red) !important;
  font-weight: 600;
}

/* --- Thought Leadership: Card Grid --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all var(--transition-smooth);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-subtle);
}

.blog-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.blog-card-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-red);
  font-weight: 600;
  margin-bottom: 12px;
}

.blog-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
  transition: color var(--transition-smooth);
}

.blog-card:hover .blog-card-title {
  color: var(--accent-red);
}

/* Collapsible body for cards */
.blog-card-body-wrap {
  overflow: hidden;
  max-height: 5.1em;
  /* ~3 lines */
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  flex-grow: 1;
}

.blog-card-body-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 24px;
  background: linear-gradient(transparent, var(--bg-card));
  transition: opacity var(--transition-smooth);
}

.blog-card.expanded .blog-card-body-wrap {
  max-height: 600px;
}

.blog-card.expanded .blog-card-body-wrap::after {
  opacity: 0;
}

.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 16px;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.blog-card-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.blog-card-read {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-red);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-smooth);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.blog-card:hover .blog-card-read {
  gap: 8px;
}

.blog-view-all {
  text-align: center;
  margin-top: 48px;
}

/* ============================================
   CONTACT / CTA SECTION
   ============================================ */
.contact {
  position: relative;
  background: var(--bg-primary);
}

.contact-inner {
  background: var(--text-primary);
  border: none;
  border-radius: var(--radius-xl);
  padding: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 43, 43, 0.1), transparent 40%, rgba(212, 43, 43, 0.06));
  pointer-events: none;
}

.contact-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  color: #ffffff;
}

.contact-title .gradient-text {
  color: var(--accent-red-light);
}

.contact-subtitle {
  font-size: 1.1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto 32px;
  position: relative;
  z-index: 1;
  line-height: 1.8;
}

.contact-ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.contact-ctas .btn-primary {
  background: var(--accent-red);
  color: #fff;
}

.contact-ctas .btn-primary:hover {
  background: var(--accent-red-light);
}

.contact-ctas .btn-outline {
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.contact-ctas .btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  transition: all var(--transition-smooth);
  background: rgba(255, 255, 255, 0.05);
}

.social-link:hover {
  border-color: var(--accent-red);
  color: var(--accent-red-light);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(212, 43, 43, 0.2);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  background: var(--bg-primary);
}

.footer-quote {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
  text-align: center;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.footer-copy a {
  color: var(--text-secondary);
  font-weight: 500;
}

.footer-copy a:hover {
  color: var(--accent-red);
}

/* ============================================
   BLOG PAGE (blog.html)
   ============================================ */
.blog-page-header {
  padding-top: 140px;
  padding-bottom: 60px;
}

.blog-page-header .section-eyebrow {
  margin-bottom: 12px;
}

.blog-page-header .section-title {
  margin-bottom: 8px;
}

.blog-page-header .section-desc {
  margin-bottom: 20px;
}

.blog-page-header .blog-tabs {
  margin-top: 24px;
  margin-bottom: 12px;
}

.blog-search {
  position: relative;
  max-width: 400px;
  margin-bottom: 32px;
}

.blog-search input {
  width: 100%;
  padding: 12px 20px 12px 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-smooth);
}

.blog-search input::placeholder {
  color: var(--text-muted);
}

.blog-search input:focus {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px var(--accent-red-soft);
}

.blog-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.blog-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-masonry .blog-card {
  break-inside: avoid;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 90;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

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

.scroll-top-btn:hover {
  background: var(--accent-red);
  color: #fff;
  border-color: var(--accent-red);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-image-wrap { order: -1; }
  .hero-headshot { width: 200px; height: 200px; }
  .hero-intro { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .products-grid { grid-template-columns: 1fr; }
  .ventures-grid { grid-template-columns: 1fr; }

  .blog-grid,
  .blog-masonry {
    grid-template-columns: repeat(2, 1fr);
  }

  .thoughts-feed {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-inner {
    padding: 60px 40px;
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }

  .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  /* Navigation */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-primary);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 40px;
    border-left: 1px solid var(--border-subtle);
    transition: right 0.4s ease;
    z-index: 999;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.08);
  }

  .nav-links.open { right: 0; }
  .nav-toggle { display: flex; z-index: 1001; }
  .nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.2); z-index: 998; }
  .nav-overlay.open { display: block; }
  .nav-logo { font-size: 1.1rem; }

  /* Hero */
  .hero-name { font-size: clamp(1.8rem, 8vw, 3rem); }
  .hero-nickname { font-size: 0.35em; }
  .hero-headshot { width: 240px; height: 240px; }
  .hero-tagline { font-size: 1.05rem; font-weight: 700; }
  .hero-intro { font-size: 0.88rem; text-align: left; }

  /* Hero buttons — smaller, not full-width */
  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .hero-ctas .btn {
    width: auto;
    padding: 10px 24px;
    font-size: 0.85rem;
  }

  /* All text — left align, never justify */
  p, .about-text, .venture-desc, .section-desc,
  .thought-body p, .hero-intro, blockquote {
    text-align: left !important;
  }

  /* Section */
  .section-padding { padding: 48px 0; }
  .section-title { font-size: 1.5rem; }
  .section-eyebrow { font-size: 0.7rem; }

  /* About */
  .about-stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .about-stat {
    padding: 14px;
  }
  .about-text { font-size: 0.9rem; }
  .about-signature { margin-top: 16px; }
  .about-signature img { max-width: 100px; }

  /* Ventures & Impact — compact */
  .ventures-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  .venture-card { padding: 16px; }
  .venture-name { font-size: 1rem; }
  .venture-desc { font-size: 0.85rem; }
  .impact-section .ventures-grid { grid-template-columns: 1fr !important; }
  .impact-section { padding-top: 20px; }

  /* Products */
  .products-grid { grid-template-columns: 1fr; }
  .product-card { padding: 20px; }

  /* Blog Tabs & Filters */
  .blog-tabs { width: 100%; margin-bottom: 12px; }
  .blog-tab { flex: 1; text-align: center; font-size: 0.82rem; padding: 10px 12px; }

  .blog-grid,
  .blog-masonry,
  .thoughts-feed { grid-template-columns: 1fr; gap: 14px; }

  .category-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
    gap: 6px;
  }
  .category-filters::-webkit-scrollbar { display: none; }
  .category-pill {
    white-space: nowrap;
    flex-shrink: 0;
    background: rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.08);
    padding: 6px 14px;
    font-size: 0.78rem;
    border-radius: 20px;
  }
  .category-pill.active {
    background: var(--accent-red);
    color: #fff;
    border-color: var(--accent-red);
  }

  /* Blog page header */
  .blog-page-header { padding-top: 100px; padding-bottom: 24px; }
  .blog-page-header .blog-tabs {
    display: flex;
    width: 100%;
    margin-bottom: 14px;
  }
  .blog-page-header .category-filters {
    margin-top: 4px;
  }
  .blog-search { max-width: 100%; }

  /* Thought Cards — always expanded on mobile, no collapse */
  .thought-card { padding: 14px 16px 8px; }
  .thought-title { font-size: 1rem; margin-bottom: 8px; }
  .thought-excerpt { display: none; }

  .thought-body {
    max-height: none !important;
    padding-top: 8px !important;
    overflow: visible !important;
  }

  .thought-toggle { display: none !important; }

  /* Remove focus-mode dimming on mobile */
  .thoughts-feed.has-expanded .thought-card {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  .thought-body p { font-size: 0.88rem; line-height: 1.7; }

  .thought-footer {
    flex-direction: row;
    align-items: center;
    gap: 0;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid var(--border-subtle);
  }

  .thought-actions {
    width: auto;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0;
  }

  .thought-react,
  .thought-comment-toggle,
  .thought-share {
    padding: 2px 6px;
    font-size: 0.7rem;
    border: none;
    background: none;
  }

  .thought-react i,
  .thought-comment-toggle i,
  .thought-share i {
    width: 14px !important;
    height: 14px !important;
  }

  .thought-date {
    display: none;
  }

  .share-dropdown { right: auto; left: 0; min-width: 160px; }

  /* Comments hidden by default, shown on click */
  .thought-comments {
    display: none !important;
    padding: 0;
    max-height: none;
  }
  .thought-card.comments-open .thought-comments {
    display: block !important;
    padding: 10px 0;
    max-height: none;
    overflow: visible;
  }

  /* Comment sections */
  .comment-form { gap: 8px; }
  .comment-name, .comment-text { font-size: 0.82rem; padding: 8px 10px; }
  .comment-submit { padding: 6px 14px; font-size: 0.78rem; }
  .comment-item { padding: 8px 0; }
  .comment-author { font-size: 0.8rem; }
  .comment-content { font-size: 0.82rem; }

  /* Contact — not full-width buttons */
  .contact-inner { padding: 40px 24px; }
  .contact-title { font-size: 1.4rem !important; }
  .contact-subtitle { font-size: 0.88rem; text-align: left; }
  .contact-ctas { flex-direction: column; align-items: stretch; }
  .contact-ctas .btn {
    width: auto;
    padding: 10px 24px;
    font-size: 0.85rem;
  }

  /* Footer */
  .footer { padding: 32px 0; }
  .footer-quote { font-size: 0.85rem; }
  .footer-copy { font-size: 0.78rem; }
}

@media (max-width: 480px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .about-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-name { font-size: clamp(1.5rem, 10vw, 2.2rem); }
  .hero-headshot { width: 200px; height: 200px; }
  .section-title { font-size: 1.3rem; }
  .thought-card { padding: 14px; }
  .thought-title { font-size: 0.95rem; }
  .stat-number { font-size: 1.4rem; }
  .contact-ctas { flex-direction: column; align-items: stretch; }
}

/* ============================================
   PAGE TRANSITION
   ============================================ */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--accent-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   SELECTION HIGHLIGHT
   ============================================ */
::selection {
  background: var(--accent-red);
  color: #ffffff;
}

::-moz-selection {
  background: var(--accent-red);
  color: #ffffff;
}