/* ================================================
   main.css — Jesse Millard Portfolio
   ================================================
   1.  CSS Variables & Theme
   2.  Base Reset & Typography
   3.  Layout
   4.  Scrollbar & Cursor
   5.  Navigation
   6.  Hero
   7.  Stats Bar
   8.  Section Scaffolding
   9.  Testimonials
   10. Case Studies
   10b. Landing Pages
   11. Bio
   12. FAQ
   13. Contact
   14. Footer
   15. Buttons & Tags
   16. Scroll Animations
   17. Mobile
   ================================================ */

/* ── 1. CSS Variables & Theme ─────────────────── */
:root {
  --bg:          #07070d;
  --surface:     #0f0f18;
  --card:        #121219;
  --card-hover:  #191921;
  --border:      rgba(255, 255, 255, 0.07);
  --border-md:   rgba(255, 255, 255, 0.12);
  --text:        #e8e8f2;
  --text-muted:  #8080a0;
  --text-subtle: #48486a;
  --accent:      #ff6a00;
  --accent-alt:  #ff8c00;
  --accent-dim:  rgba(255, 106, 0, 0.12);
  --accent-glow: rgba(255, 106, 0, 0.20);
  --blue:        #3b82f6;
  --blue-dim:    rgba(59, 130, 246, 0.12);
  --blue-border: rgba(59, 130, 246, 0.25);
  --nav-bg:      rgba(7, 7, 13, 0.85);
  --shadow:      0 4px 32px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.4);
  --radius:      14px;
  --radius-sm:   8px;
  --font:        'Montserrat', sans-serif;
  --font-brand:  'Montserrat', sans-serif;
}

[data-theme="light"] {
  --bg:          #f3f3fb;
  --surface:     #ffffff;
  --card:        #ffffff;
  --card-hover:  #f0f0f8;
  --border:      rgba(0, 0, 0, 0.07);
  --border-md:   rgba(0, 0, 0, 0.13);
  --text:        #0d0d1a;
  --text-muted:  #4a4a6a;
  --text-subtle: #9090b0;
  --accent:      #d85000;
  --accent-alt:  #ff6a00;
  --accent-dim:  rgba(216, 80, 0, 0.08);
  --accent-glow: rgba(216, 80, 0, 0.15);
  --blue:        #1d4ed8;
  --blue-dim:    rgba(29, 78, 216, 0.08);
  --blue-border: rgba(29, 78, 216, 0.2);
  --nav-bg:      rgba(243, 243, 251, 0.90);
  --shadow:      0 4px 32px rgba(0, 0, 0, 0.10);
  --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.07);
}

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

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-muted);
}

strong {
  color: var(--text);
  font-weight: 600;
}

/* Stylized bullet list */
.styled-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.styled-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-muted);
}

.styled-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  top: 0.1em;
  color: var(--accent);
  font-size: 0.55em;
  line-height: 1.8;
}

/* ── 3. Layout ────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  color: var(--text);
}

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

/* ── 4. Scrollbar & Cursor ────────────────────── */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-alt) 0%, var(--accent) 100%);
  border-radius: 999px;
}

@media (pointer: fine) {
  *, *::before, *::after {
    cursor: none !important;
  }

  .cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 9px; height: 9px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s, opacity 0.25s;
    will-change: left, top;
  }

  .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    width: 36px; height: 36px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 999998;
    transform: translate(-50%, -50%);
    background: conic-gradient(from 0deg, #ff9500, #ff6a00, #ff5301, #ff6a00, #ff9500);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #fff calc(100% - 2px));
    mask:         radial-gradient(farthest-side, transparent calc(100% - 2px), #fff calc(100% - 2px));
    transition: width 0.3s cubic-bezier(0.23,1,0.32,1), height 0.3s cubic-bezier(0.23,1,0.32,1), opacity 0.25s;
    will-change: left, top;
    opacity: 0.85;
  }

  .cursor-dot.hovering  { width: 11px; height: 11px; }
  .cursor-ring.hovering { width: 56px; height: 56px; opacity: 1; }
  .cursor-dot.clicking  { transform: translate(-50%,-50%) scale(0.6); }
  .cursor-ring.clicking { transform: translate(-50%,-50%) scale(0.75); opacity: 0.6; }
  .cursor-dot.hidden, .cursor-ring.hidden { opacity: 0; }
}

/* ── 5. Navigation ────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.nav-container {
  display: flex;
  align-items: center;
  height: 68px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
  gap: 2rem;
}

.nav-logo {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

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

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--text);
  background: var(--accent-dim);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-toggle svg {
  width: 16px; height: 16px;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px; height: 38px;
  padding: 8px;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.nav-mobile {
  display: none;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
}

.nav-mobile.open {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
  animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-mobile-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.nav-mobile-link:hover {
  color: var(--accent);
}

.nav-mobile-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-contact-link {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-contact-link:hover {
  color: var(--accent);
}

/* ── 6. Hero ──────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(7, 7, 13, 0.88) 0%,
    rgba(7, 7, 13, 0.70) 50%,
    rgba(7, 7, 13, 0.40) 100%
  );
}

[data-theme="light"] .hero-overlay {
  background: linear-gradient(
    105deg,
    rgba(243, 243, 251, 0.90) 0%,
    rgba(243, 243, 251, 0.75) 50%,
    rgba(243, 243, 251, 0.45) 100%
  );
}

.hero-container {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 110px;
  padding-bottom: 40px;
  /* No custom max-width — inherits 1240px from .container so left edge
     aligns exactly with the nav logo */
}

.hero-content {
  max-width: 700px;
}

/* Stats bar anchored to bottom of hero */
.hero-stats {
  position: relative;
  z-index: 1;
  background: rgba(4, 4, 10, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stats .stats-container {
  padding-top: 24px;
  padding-bottom: 24px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-domain {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-transform: uppercase;
}

.hero-updated {
  font-size: 0.78rem;
  color: var(--text-subtle);
  font-weight: 500;
}

.hero-headline {
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  color: var(--accent);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.hero-plain {
  color: var(--text);
}

.hero-body {
  font-size: 0.975rem;
  color: rgba(232, 232, 242, 0.82); /* white for dark mode video bg */
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 620px;
}

[data-theme="light"] .hero-body {
  color: rgba(13, 13, 26, 0.75); /* dark for light mode tinted bg */
}

/* Value Proposition List */
.hero-vp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 2rem;
}

.hero-vp-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.hero-vp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(255, 106, 0, 0.3);
  color: var(--accent);
  flex-shrink: 0;
}

.hero-vp-icon svg {
  width: 16px;
  height: 16px;
}

.hero-vp-item span:last-child {
  font-size: 1.05rem;
  font-weight: 600;
  color: #f0f0f8; /* white for dark mode */
  letter-spacing: -0.01em;
}

[data-theme="light"] .hero-vp-item span:last-child {
  color: #0d0d1a; /* dark for light mode tinted bg */
}

.hero-signature {
  width: 220px;
  margin-bottom: 2rem;
  opacity: 0.85;
}

[data-theme="light"] .hero-signature {
  filter: invert(1);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn-ghost-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-md);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.btn-ghost-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── 7. Stats (inside hero bottom bar) ────────── */
.stats-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

.stat-item {
  text-align: center;
  padding: 0.5rem 0.75rem;
}

.stat-number {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}


/* ── 8. Section Scaffolding ───────────────────── */
.section-header .section-label {
  margin-bottom: 10px;
}

/* ── Force-dark section (testimonials always dark) ── */
.force-dark {
  --bg:          #07070d;
  --surface:     #0f0f18;
  --card:        #1a1a24;
  --card-hover:  #222230;
  --border:      rgba(255, 255, 255, 0.08);
  --border-md:   rgba(255, 255, 255, 0.14);
  --text:        #e8e8f2;
  --text-muted:  #9090a8;
  --text-subtle: #50506a;
  --accent-dim:  rgba(255, 106, 0, 0.14);
  background: #07070d !important;
  color: #e8e8f2;
}

.force-dark .section-label {
  color: var(--accent);
}

.force-dark h2 {
  color: #e8e8f2;
}

/* ── 9. Testimonials ──────────────────────────── */
.testimonials {
  background: #07070d;
  padding-top: 80px; /* reduced — no gap below hero stats */
}

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

.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
}

.testimonial-card:hover {
  border-color: var(--border-md);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.testimonial-card.featured {
  grid-column: span 2;
  border-color: var(--accent-dim);
}

.testimonial-card.featured:hover {
  border-color: rgba(255,106,0,0.3);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}

.reviewer-photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.reviewer-info {
  flex: 1;
}

.reviewer-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.reviewer-date {
  font-size: 0.78rem;
  color: var(--text-subtle);
}

.google-badge {
  flex-shrink: 0;
}

.stars {
  color: #ff6a00;
  font-size: 1rem;
  letter-spacing: 0.12em;
  line-height: 1;
  flex-shrink: 0;
}

.testimonial-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── 10. Case Studies Slider ──────────────────── */
.case-studies {
  background: var(--surface);
}

/* Slider wrapper */
.cs-slider {
  position: relative;
  padding: 0 52px;
}

.cs-viewport {
  overflow: hidden;
  border-radius: var(--radius);
}

.cs-track {
  display: flex;
  will-change: transform;
}

/* Each slide: 2 vertical cards side by side */
.cs-slide {
  flex: 0 0 100%;
  min-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* Vertical case study card */
.cs-card-v {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.cs-card-v:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 106, 0, 0.3);
  box-shadow: 0 12px 40px rgba(255, 106, 0, 0.1);
}

.cs-video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.cs-video-thumb .cs-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.cs-card-v:hover .cs-video {
  transform: scale(1.04);
}

.cs-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,7,13,0.6) 0%, transparent 60%);
}

/* Card content area — increased padding for breathing room */
.cs-content {
  padding: 1.75rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.cs-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.cs-meta {
  font-size: 0.82rem;
  color: var(--text-subtle);
  font-weight: 500;
}

.cs-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.cs-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.2s;
}

.cs-slide:hover .cs-cta {
  gap: 0.75rem;
}

.btn-arrow-sm {
  width: 14px;
  height: auto;
  opacity: 0.9;
}

/* Arrows */
.cs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(calc(-50% - 28px));
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border-md);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.cs-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.cs-arrow-prev { left: 0; }
.cs-arrow-next { right: 0; }

.cs-arrow svg {
  width: 20px;
  height: 20px;
}

/* Dots */
.cs-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.cs-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--border-md);
  border: none;
  cursor: pointer;
  transition: background 0.25s, width 0.25s;
  padding: 0;
}

.cs-dot.active {
  background: var(--accent);
  width: 28px;
}

/* ── 10b. Landing Pages Section ──────────────── */
/* ── 10b. Landing Pages — Horizontal Scroll ──── */

/* Outer: tall enough for JS to compute scrollable distance */
.lp-section {
  /* Height set dynamically by JS; fallback for no-JS */
}

.lp-scroll-outer {
  position: relative;
  /* Height injected by JS at runtime */
}

/* Sticky viewport — the visible frame */
.lp-scroll-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  /* clip-path instead of overflow:hidden — clips visually without breaking sticky */
  clip-path: inset(0);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg);
}

/* Section header inside sticky area */
.lp-section-header {
  padding: 0 2rem;
  text-align: center;
  flex-shrink: 0;
  margin-bottom: 2.5rem;
}

.lp-section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 620px;
  margin: 1.5rem auto 0;
}

/* Horizontal strip of cards */
.lp-scroll-track {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  padding: 0 5vw;
  will-change: transform;
  flex-shrink: 0;
  align-items: center;
}

/* Individual card — fills most of the viewport width */
.lp-scroll-card {
  position: relative;
  flex: 0 0 58.5vw;
  max-width: 900px;
  height: 62vh;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  text-decoration: none;
  border: 1px solid var(--border-md);
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.lp-scroll-card:hover {
  border-color: rgba(255, 106, 0, 0.35);
  box-shadow: 0 20px 60px rgba(255, 106, 0, 0.12);
}

.lp-scroll-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.lp-scroll-card:hover .lp-scroll-img {
  transform: scale(1.03);
}

/* Hover overlay with site name */
.lp-scroll-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 13, 0.68);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lp-scroll-card:hover .lp-scroll-overlay {
  opacity: 1;
}

.lp-scroll-name {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.lp-scroll-cta {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
}

/* Mobile: revert to normal vertical scroll */
@media (max-width: 768px) {
  .lp-scroll-outer {
    height: auto !important;
  }
  .lp-scroll-sticky {
    position: static;
    height: auto;
    overflow: visible;
    display: block;
    padding: 80px 0;
  }
  .lp-scroll-track {
    flex-direction: column;
    padding: 0 1.25rem;
    transform: none !important;
  }
  .lp-scroll-card {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

/* ── 10c. Automated Dashboards ───────────────── */
.dash-section {
  overflow: hidden;
}

/* ── Trust Bar ──────────────────────────────────── */
.trust-bar {
  background: #0f0f18;
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 18px 0;
}
.trust-bar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 2.5rem;
  display: flex; align-items: center; justify-content: center;
  gap: 28px; flex-wrap: wrap;
}
.trust-bar-label {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.3); font-weight: 600; white-space: nowrap;
}
.trust-bar-logos {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center;
}
.trust-logo-img {
  height: 26px; width: auto; object-fit: contain;
  opacity: 0.6; transition: opacity .2s;
  filter: brightness(0) invert(1);
}
.trust-logo-img:hover { opacity: 0.9; }
.trust-bar-divider {
  width: 1px; height: 14px;
  background: rgba(255,255,255,0.12); flex-shrink: 0;
}
@media (max-width: 640px) {
  .trust-bar-divider { display: none; }
  .trust-bar-inner { gap: 10px; flex-direction: column; }
  .trust-bar-logos { gap: 10px; flex-wrap: nowrap; }
  .trust-logo-img { height: 16px !important; }
  .trust-logo-img[alt="ABC"] { height: 24px !important; }
  .trust-logo-img[alt="CBS"] { height: 19px !important; }
  .trust-logo-img[alt="NBC"] { height: 19px !important; }
}

.dash-section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 620px;
  margin: 1.5rem auto 0;
}

/* ── How It Works ────────────────────────────────── */
.hiw-section { background: var(--bg); padding: 96px 0 80px; }
.hiw-inner   { max-width: 1200px; margin: 0 auto; padding: 0 2.5rem; }

.hiw-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center; margin-bottom: 52px;
}
.hiw-split-text { text-align: left; }
.hiw-desc {
  font-size: 1rem; line-height: 1.75;
  color: var(--text-muted); font-weight: 300; margin: 1.5rem 0 0;
}

.fc-img-wrap {
  position: relative; width: 100%;
  border-radius: 12px; padding: 2px; z-index: 0; overflow: hidden;
}
.fc-img-wrap::before {
  content: ''; position: absolute; inset: -1px; border-radius: 13px;
  background: linear-gradient(90deg,#ff0080,#ff8c00,#ffe100,#00cf00,#00bfff,#8000ff,#ff0080);
  background-size: 300% 100%;
  animation: rainbow-slide 3s linear infinite; z-index: -1;
}
.fc-img-wrap::after {
  content: ''; position: absolute; inset: -5px; border-radius: 17px;
  background: linear-gradient(90deg,#ff0080,#ff8c00,#ffe100,#00cf00,#00bfff,#8000ff,#ff0080);
  background-size: 300% 100%;
  animation: rainbow-slide 3s linear infinite;
  z-index: -2; filter: blur(10px); opacity: .65;
}
@keyframes rainbow-slide {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
.fc-hero-video {
  width: 100%; border-radius: 10px; display: block;
  box-shadow: var(--shadow);
  aspect-ratio: 16/9; object-fit: cover; object-position: center;
}

.fc-flowchart { margin-top: 52px; }
.fc-track {
  position: relative; display: flex; align-items: center;
  height: 20px; padding: 0 10%;
}
.fc-track::before {
  content: ''; position: absolute; top: 50%; left: 10%; right: 10%;
  height: 1px; transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, var(--accent) 8%, var(--accent-glow) 50%, var(--accent) 92%, transparent);
}
.fc-dots {
  display: flex; justify-content: space-between;
  width: 100%; position: relative; z-index: 1;
}
.fc-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
  box-shadow: 0 0 10px var(--accent-glow); flex-shrink: 0;
}
.fc-cards { display: flex; gap: 8px; margin-top: 0; }
.fc-node   { flex: 1; display: flex; flex-direction: column; align-items: center; }
.fc-drop   { width: 1px; height: 18px; background: var(--border); }
.fc-card {
  width: 100%; padding: 20px 12px;
  background: var(--card); border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  text-align: center; flex: 1;
  transition: border-top-color .2s, background .2s;
}
.fc-node:hover .fc-card { background: var(--card-hover); border-top-color: var(--accent-alt); }
.fc-num {
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); font-family: var(--font); font-weight: 600; margin-bottom: 10px;
}
.fc-icon {
  width: 44px; height: 44px; border-radius: 6px;
  background: var(--accent-dim); border: 1px solid var(--accent-glow);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 12px;
}
.fc-icon svg {
  width: 22px; height: 22px; stroke: var(--accent); fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.fc-title {
  font-family: var(--font); font-weight: 700; font-size: .85rem;
  text-transform: uppercase; color: var(--text); line-height: 1.2; margin-bottom: 8px;
}
.fc-sub {
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent); opacity: .75; font-family: var(--font);
}
.hiw-brand-note {
  margin-top: 48px; padding-top: 36px;
  border-top: 1px solid var(--border); text-align: center;
}
.hiw-brand-note p   { font-size: .85rem; color: var(--text-subtle); letter-spacing: 0.5px; }
.hiw-brand-note span { color: var(--accent); font-weight: 600; }

@media (max-width: 960px) {
  .fc-cards { flex-direction: column; }
  .fc-node  { width: 100%; }
  .fc-card  { padding: 16px; }
  .fc-drop  { height: 10px; }
  .fc-track { display: none; }
}
@media (max-width: 900px) {
  .hiw-split { grid-template-columns: 1fr; gap: 32px; }
}

.dash-video-wrap {
  max-width: 1100px;
  margin: 2.5rem auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  /* Start tilted back and faded, pivot from bottom edge */
  transform-origin: center bottom;
  transform: perspective(1200px) rotateX(24deg) scale(0.88);
  opacity: 0.2;
  transition:
    transform 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity   0.9s ease;
  /* Same orange glow treatment as bio photo */
  border: 1px solid rgba(255, 106, 0, 0.2);
  box-shadow:
    0 0 0 1px rgba(255, 106, 0, 0.12),
    0 8px 48px rgba(255, 106, 0, 0.15),
    0 32px 80px rgba(0, 0, 0, 0.5);
  background: #1a0800;
}

/* Fired by JS IntersectionObserver at 50% visibility */
.dash-video-wrap.dash-tilted-in {
  transform: perspective(1200px) rotateX(0deg) scale(1);
  opacity: 1;
}

/* Orange gradient overlay — top burn + bottom fade, matching bio photo */
.dash-video-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 110% 50% at 50% 0%, rgba(255, 80, 0, 0.55) 0%, rgba(180, 40, 0, 0.2) 45%, transparent 70%),
    linear-gradient(to top, rgba(200, 50, 0, 0.25) 0%, transparent 40%);
}

.dash-video {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  position: relative;
  z-index: 2;
}

.dash-showcase {
  padding: 3rem 2rem 5rem;
  display: flex;
  justify-content: center;
  perspective: 1400px;
}

/* Browser mockup wrapper */
.dash-browser {
  width: min(1160px, 95vw);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-md);
  box-shadow:
    0 0 0 1px var(--border),
    0 32px 100px rgba(0, 0, 0, 0.45),
    0 8px 32px rgba(255, 106, 0, 0.06);
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 0.3s ease;
  cursor: default;
}

.dash-browser:hover {
  box-shadow:
    0 0 0 1px rgba(255,106,0,0.2),
    0 40px 120px rgba(0, 0, 0, 0.55),
    0 12px 48px rgba(255, 106, 0, 0.12);
}

/* Chrome top bar */
.dash-chrome {
  background: #1a1a1a;
  border-bottom: 1px solid #2a2a2a;
  padding: 0.625rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  user-select: none;
}

[data-theme="light"] .dash-chrome {
  background: #e8e8ed;
  border-bottom-color: #d0d0d8;
}

.dash-chrome-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.dash-chrome-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dash-chrome-dots span:nth-child(1) { background: #ff5f56; }
.dash-chrome-dots span:nth-child(2) { background: #febc2e; }
.dash-chrome-dots span:nth-child(3) { background: #27c840; }

.dash-chrome-bar {
  flex: 1;
  background: #111111;
  border: 1px solid #2e2e2e;
  border-radius: 6px;
  padding: 0.3125rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  color: #888;
  max-width: 380px;
  margin: 0 auto;
}
.dash-chrome-bar svg { color: #555; flex-shrink: 0; }

[data-theme="light"] .dash-chrome-bar {
  background: #fff;
  border-color: #ccc;
  color: #555;
}
[data-theme="light"] .dash-chrome-bar svg { color: #888; }

.dash-chrome-live {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #4ade80;
  flex-shrink: 0;
}

.dash-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  animation: dashLivePulse 2s ease-in-out infinite;
}

@keyframes dashLivePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74,222,128,0.6); }
  50%       { opacity: 0.8; box-shadow: 0 0 0 4px rgba(74,222,128,0); }
}

/* iframe container */
.dash-viewport {
  height: 580px;
  overflow: hidden;
  position: relative;
  background: #111111;
}

.dash-viewport iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  pointer-events: auto;
}


/* ── 10d. Skills Section ──────────────────────── */
.skills-section {
  position: relative;
  overflow: hidden;
  background: #07070d;
  padding: 100px 0;
}

.skills-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.skills-video-bg video {
  width: 100%;
  height: 120%; /* extra height so parallax doesn't show gaps */
  object-fit: cover;
  opacity: 0.55;
  will-change: transform;
}

.skills-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(7,7,13,0.45) 0%, rgba(7,7,13,0.25) 50%, rgba(7,7,13,0.55) 100%);
}

.skills-section .container {
  position: relative;
  z-index: 1;
}

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

.skill-card {
  background: rgba(18, 18, 25, 0.85);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  transition: border-color 0.25s, transform 0.25s;
}

.skill-card:hover {
  border-color: rgba(255,106,0,0.3);
  transform: translateY(-3px);
}

.skill-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  margin-bottom: 0.875rem;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.skill-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #e8e8f2;
  margin-bottom: 0.875rem;
  letter-spacing: -0.01em;
}

.skill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.skill-list li {
  font-size: 0.8rem;
  color: #8080a0;
  padding-left: 1rem;
  position: relative;
  line-height: 1.4;
}

.skill-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  top: 0.05em;
  color: var(--accent);
  font-size: 0.45em;
  line-height: 2;
}

/* ── 11. Bio ──────────────────────────────────── */
.bio {
  background: var(--bg);
}

.bio-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  align-items: start;
}

.bio-sidebar {
  position: sticky;
  top: 88px;
}

.bio-photo-wrapper {
  margin-bottom: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 106, 0, 0.2);
  box-shadow: 0 0 0 1px rgba(255, 106, 0, 0.12), 0 8px 48px rgba(255, 106, 0, 0.15);
  background: #1a0800;
}

.bio-photo-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 110% 50% at 50% 0%, rgba(255, 80, 0, 0.55) 0%, rgba(180, 40, 0, 0.2) 45%, transparent 70%),
    linear-gradient(to top, rgba(200, 50, 0, 0.25) 0%, transparent 40%);
}

.bio-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  position: relative;
  z-index: 2;
}

.bio-credentials {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.credential-group {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

/* <details>/<summary> dropdown behaviour */
.credential-group[open] > summary { margin-bottom: 0.875rem; }

.credential-group summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  margin-bottom: 0;
}

/* Remove default browser disclosure triangle */
.credential-group summary::-webkit-details-marker { display: none; }
.credential-group summary::marker              { display: none; }

/* +/– indicator */
.credential-group summary::after {
  content: '+';
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  transition: transform 0.2s;
}
.credential-group[open] summary::after {
  content: '−';
}

/* Smooth open — handled by JS (max-height + opacity transition) */
.credential-group .credential-body {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.credential-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0; /* controlled by details[open] */
}

.credential-item {
  margin-bottom: 0.75rem;
}

.credential-item:last-child {
  margin-bottom: 0;
}

.credential-role {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.credential-detail {
  font-size: 0.8rem;
  color: var(--text-subtle);
}

.bio-main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.bio-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.bio-text p {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.bio-competencies {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.competencies-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.tags-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bio-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── 12. FAQ ──────────────────────────────────── */
.faq {
  background: var(--surface);
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.5rem 0;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  gap: 1rem;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color 0.2s, transform 0.3s, background 0.2s;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--text-muted);
  border-radius: 2px;
  transition: opacity 0.25s, transform 0.25s, background 0.2s;
}

.faq-icon::before {
  width: 10px;
  height: 1.5px;
}

.faq-icon::after {
  width: 1.5px;
  height: 10px;
}

.faq-item.open .faq-question {
  color: var(--accent);
}

.faq-item.open .faq-icon {
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: rotate(45deg);
}

.faq-item.open .faq-icon::before,
.faq-item.open .faq-icon::after {
  background: var(--accent);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-answer {
  max-height: 600px;
}

.faq-answer-inner {
  padding-bottom: 1.5rem;
}

.faq-answer-inner p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── 13. Contact ──────────────────────────────── */
.contact {
  background: var(--bg);
}

/* Video background variant */
.contact--video-bg {
  position: relative;
  overflow: hidden;
}

.contact-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.75;
}

.contact-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(7, 7, 13, 0.65) 0%,
    rgba(7, 7, 13, 0.50) 100%
  );
  z-index: 1;
}

[data-theme="light"] .contact-bg-overlay {
  background: linear-gradient(
    135deg,
    rgba(243, 243, 251, 0.68) 0%,
    rgba(243, 243, 251, 0.52) 100%
  );
}

.contact--video-bg .container {
  position: relative;
  z-index: 2;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--text);
  margin-bottom: 1rem;
}

.contact-description {
  font-size: 0.975rem;
  color: rgba(232, 232, 242, 0.82);
  line-height: 1.7;
  margin-bottom: 2rem;
}

[data-theme="light"] .contact-description {
  color: rgba(13, 13, 26, 0.75);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.875rem 1.125rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.contact-link-item:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-dim);
}

.contact-link-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: 0.8;
  /* Dark mode: invert dark icons to white */
  filter: brightness(0) invert(0.85);
}

[data-theme="light"] .contact-link-icon {
  filter: brightness(0) invert(0.35); /* dark grey on light bg */
  opacity: 0.7;
}

.contact-form-wrapper {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.form-input {
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
}

.form-success,
.form-error {
  display: none;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
}

.form-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #22c55e;
}

.form-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #ef4444;
}

.form-success.visible,
.form-error.visible {
  display: block;
}

/* ── 14. Footer ───────────────────────────────── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer-container {
  padding-top: 64px;
  padding-bottom: 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.footer-thanks {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.footer-name {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-signature {
  width: 160px;
  opacity: 0.7;
}

[data-theme="light"] .footer-signature {
  filter: invert(1);
  opacity: 0.5;
}

.footer-links-group {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-link-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.footer-link-item img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 0.75;
  filter: brightness(0) invert(0.75);
}

[data-theme="light"] .footer-link-item img {
  filter: brightness(0) invert(0.4);
  opacity: 0.7;
}

.footer-bottom {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 32px;
}

.footer-logo {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  flex: 1;
}

.footer-legal {
  font-size: 0.8rem;
  color: var(--text-subtle);
  flex: 1;
  text-align: center;
}

/* ── 15. Buttons & Tags ───────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
}

.btn-primary:hover {
  background: var(--accent-alt);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255,106,0,0.35);
}

.btn-large {
  padding: 0.875rem 1.75rem;
  font-size: 0.95rem;
}

.btn-sm {
  padding: 0.45rem 0.875rem;
  font-size: 0.8rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-md);
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-dim);
}

.btn-arrow {
  width: 16px;
  height: auto;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.65rem;
  border-radius: 4px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(255,106,0,0.2);
}

.tag.soft {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-muted);
}

.tag.blue {
  background: var(--blue-dim);
  border-color: var(--blue-border);
  color: var(--blue);
  font-size: 0.8rem;
  padding: 0.4rem 0.875rem;
  border-radius: var(--radius-sm);
}

/* ── 16. Scroll Animations ────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate][data-delay="100"] { transition-delay: 0.10s; }
[data-animate][data-delay="150"] { transition-delay: 0.15s; }
[data-animate][data-delay="200"] { transition-delay: 0.20s; }
[data-animate][data-delay="250"] { transition-delay: 0.25s; }
[data-animate][data-delay="300"] { transition-delay: 0.30s; }
[data-animate][data-delay="350"] { transition-delay: 0.35s; }

/* ── 17a. Light Mode Arrow Fixes ─────────────── */

/* White arrow images are invisible on light backgrounds.
   Invert them to near-black for ghost buttons and cs-cta text links. */
[data-theme="light"] .cs-cta .btn-arrow-sm {
  filter: invert(35%) sepia(90%) saturate(800%) hue-rotate(5deg) brightness(0.85);
}

[data-theme="light"] .btn-ghost .btn-arrow,
[data-theme="light"] .footer-top-btn .btn-arrow {
  filter: invert(1) brightness(0.15);
}

/* Stars are CSS text (★★★★★) with hardcoded orange — no filter needed */

/* Stats bar: ensure it contrasts on light surface */
[data-theme="light"] .stats-bar {
  background: var(--surface);
}

/* Scrollbar accent in light mode */
[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-alt) 0%, var(--accent) 100%);
}

/* ── 17. Mobile ───────────────────────────────── */
@media (max-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .bio-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    align-items: start;
  }

  .bio-photo-wrapper {
    margin-bottom: 0;
  }

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

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

  .testimonial-card.featured {
    grid-column: span 1;
  }

  .cs-grid {
    grid-template-columns: 1fr;
  }

  .stats-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .stats-container .stat-item:nth-child(4),
  .stats-container .stat-item:nth-child(5) {
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .container {
    padding: 0 1.25rem;
  }

  /* ── Navbar ── */
  .nav-container {
    gap: 0; /* remove gap so logo doesn't push items too far */
  }

  .nav-logo {
    padding-right: 0.5rem; /* small gap before the flex spacer */
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    margin-left: auto; /* push actions to the right, matching container padding */
  }

  /* Show Get In Touch in nav on mobile — compact size */
  .nav-cta {
    display: inline-flex;
    padding: 0.4rem 0.875rem;
    font-size: 0.8rem;
  }

  .nav-hamburger {
    display: flex;
  }

  /* ── Footer ── */
  .footer-container {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .footer-top {
    flex-direction: column;
    padding-left: 0;
    padding-right: 0;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    padding-left: 0;
    padding-right: 0;
  }

  .footer-legal {
    text-align: center;
  }

  /* ── Hero: hide subtext to save space ── */
  .hero-body {
    display: none;
  }

  /* ── Hero + Bio CTA buttons: full width ── */
  .hero-cta-group {
    flex-direction: column;
    gap: 0.875rem;
  }

  .hero-cta-group .btn,
  .hero-cta-group .btn-ghost-link {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 0.875rem 1.5rem;
    border: 1px solid var(--border-md);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
  }

  .hero-cta-group .btn-ghost-link {
    color: var(--text);
    border-color: var(--border-md);
    border-bottom-width: 1px;
    padding-bottom: 0.875rem;
  }

  .bio-cta-group {
    flex-direction: column;
    gap: 0.875rem;
  }

  .bio-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  /* ── Stats: individual bordered boxes ── */
  .stats-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.625rem;
    padding: 1rem 0;
  }

  .stat-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem 0.75rem;
  }

  .stats-container .stat-item:nth-child(4),
  .stats-container .stat-item:nth-child(5) {
    border-top: 1px solid var(--border); /* match individual box borders */
  }

  /* ── Testimonials: equal-height cards with read-more ── */
  .testimonial-card {
    height: 240px;
    overflow: hidden;
    position: relative;
  }

  .testimonial-card.t-expanded {
    height: auto;
  }

  .testimonial-read-more {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.6rem 1.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-align: left;
    background: var(--card);
    border: none;
    cursor: pointer;
    z-index: 2;
  }

  .testimonial-card.t-expanded .testimonial-read-more {
    position: static;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    margin-top: 0.75rem;
  }

  /* ── Case Studies: 1 per slide handled by JS restructure ── */
  .cs-slider {
    padding: 0 28px;
  }

  .cs-slide--single {
    grid-template-columns: 1fr;
  }

  /* ── Dashboard image: side padding ── */
  .dash-video-wrap {
    margin-left: 1.25rem;
    margin-right: 1.25rem;
  }

  /* ── Skills: 1 column on mobile ── */
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .bio-sidebar {
    grid-template-columns: 1fr;
  }

  .bio-photo-wrapper {
    max-width: 240px;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  /* ── Stats: 2-col grid on small screens ── */
  .stats-container {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .stats-container .stat-item:nth-child(5) {
    grid-column: span 2;
  }

  .hero-headline {
    font-size: 1.85rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }
}
