@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Lora-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/SourceSans3.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/SourceSans3.woff2') format('woff2');
}

/* ============================================
   TOKENS — Light
   ============================================ */
[data-theme="light"] {
  --primary-50:  #F7F6F5;
  --primary-100: #EEEDEB;
  --primary-200: #DAD8D4;
  --primary-300: #C0BCB6;
  --primary-400: #9E9890;
  --primary-500: #7E776E;
  --primary-600: #665F56;
  --primary-700: #524C44;
  --primary-800: #3D3832;
  --primary-900: #2A2622;
  --primary-950: #1A1714;

  --accent-50:  #FDF5F7;
  --accent-100: #F9E5EA;
  --accent-200: #F0C8D1;
  --accent-300: #DF9EAC;
  --accent-400: #D28191;
  --accent-500: #C47A8A;
  --accent-600: #A4596A;
  --accent-700: #8E4A5B;
  --accent-800: #6E3847;
  --accent-900: #4F2833;
  --accent-950: #331A22;

  --bg:            #FAFAF8;
  --bg-subtle:     #F5F4F1;
  --surface:       #FFFFFF;
  --surface-hover: #F7F6F4;
  --text-primary:  #1A1714;
  --text-secondary:#524C44;
  --text-muted:    #7E776E;
  --border:        #DAD8D4;
  --border-subtle: #EEEDEB;
  --accent-subtle-bg: #FDF5F7;
}

/* ============================================
   TOKENS — Dark
   ============================================ */
[data-theme="dark"] {
  --primary-50:  #F7F6F5;
  --primary-100: #EEEDEB;
  --primary-200: #DAD8D4;
  --primary-300: #C0BCB6;
  --primary-400: #9E9890;
  --primary-500: #7E776E;
  --primary-600: #665F56;
  --primary-700: #524C44;
  --primary-800: #3D3832;
  --primary-900: #2A2622;
  --primary-950: #1A1714;

  --accent-50:  #FDF5F7;
  --accent-100: #F9E5EA;
  --accent-200: #F0C8D1;
  --accent-300: #DF9EAC;
  --accent-400: #D28191;
  --accent-500: #C47A8A;
  --accent-600: #A4596A;
  --accent-700: #8E4A5B;
  --accent-800: #6E3847;
  --accent-900: #4F2833;
  --accent-950: #331A22;

  --bg:            #141210;
  --bg-subtle:     #1E1C19;
  --surface:       #252220;
  --surface-hover: #2E2A25;
  --text-primary:  #F0EDE8;
  --text-secondary:#B5AFA6;
  --text-muted:    #9E9890;
  --border:        #2E2A25;
  --border-subtle: #252220;
  --accent-subtle-bg: #2A1E22;
}

:root {
  /* Typography */
  --font-heading: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body:    'Source Sans 3', system-ui, -apple-system, sans-serif;

  /* Perfect Fourth scale (1.333) from 16px base */
  --text-xs:   12px;
  --text-base: 16px;
  --text-lg:   21px;
  --text-xl:   28px;
  --text-2xl:  37px;
  --text-3xl:  50px;
  --text-4xl:  67px;

  /* Spacing — 8pt grid */
  --space-1:  8px;
  --space-2:  16px;
  --space-3:  24px;
  --space-4:  32px;
  --space-5:  40px;
  --space-6:  48px;
  --space-8:  64px;
  --space-10: 80px;
  --space-12: 96px;
  --space-15: 120px;
}

/* ============================================
   UTILITIES
   ============================================ */
.text-secondary {
  color: var(--text-secondary);
}

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

[data-theme="dark"] .text-accent {
  color: var(--accent-400);
}

/* ============================================
   RESET
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s ease, color 0.3s ease;
}

/* ============================================
   THEME TOGGLE
   ============================================ */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.2s ease, opacity 0.4s ease, transform 0.4s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.theme-toggle.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.theme-toggle:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

/* ============================================
   ABOVE THE FOLD
   ============================================ */
.above-fold {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================
   HERO — Layout C (Split)
   ============================================ */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color 0.3s ease;
}

.hero > .container {
  width: 100%;
}

.hero-split {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: var(--space-6);
  align-items: center;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
  transition: color 0.3s ease;
}

.hero-subhead {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 55ch;
  margin-bottom: var(--space-5);
  transition: color 0.3s ease;
}

/* ============================================
   CTA BLOCK — shared component
   ============================================ */
.cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.cta-block .btn {
  min-width: 220px;
}

/* ============================================
   HERO PHOTO + NAME CARD
   ============================================ */
.hero-photo-wrapper {
  position: relative;
}

.hero-photo {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.hero-photo picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.name-card {
  position: absolute;
  bottom: var(--space-2);
  left: var(--space-2);
  right: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: rgba(250, 250, 248, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: background 0.3s ease;
}

[data-theme="dark"] .name-card {
  background: rgba(20, 18, 16, 0.8);
}

.name-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  transition: color 0.3s ease;
}

.name-card__role {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-600);
  transition: color 0.3s ease;
}

[data-theme="dark"] .name-card__role {
  color: var(--accent-300);
}

.name-card__tagline {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  padding: 12px var(--space-3);
  min-height: 48px;
  border-radius: 6px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--accent-700);
  color: #FFFFFF;
  border-color: var(--accent-700);
}

.btn-primary:hover {
  background: var(--accent-600);
  border-color: var(--accent-600);
}

[data-theme="dark"] .btn-primary {
  background: var(--accent-600);
  border-color: var(--accent-600);
}

[data-theme="dark"] .btn-primary:hover {
  background: var(--accent-400);
  border-color: var(--accent-400);
}

.cta-supporting {
  font-size: var(--text-base);
  color: var(--text-muted);
  transition: color 0.3s ease;
}

/* ============================================
   SOCIAL PROOF — Carousel
   ============================================ */
.social-proof {
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color 0.3s ease;
}

.carousel {
  position: relative;
}

.carousel__track {
  position: relative;
  height: 100px; /* fixed height — no jumping */
}

.carousel__slide {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  padding: 0 var(--space-3);
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  pointer-events: none;
}

.carousel__slide.active {
  opacity: 1;
  pointer-events: auto;
}

.carousel__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  min-width: 180px;
  height: 100%;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.carousel__desc {
  max-width: 420px;
  width: 420px;
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: 1.6;
  text-align: left;
  transition: color 0.3s ease;
}

.carousel__logo svg {
  height: 24px;
  width: auto;
  fill: currentColor;
}

.carousel__logo img {
  height: 28px;
  width: auto;
  transition: filter 0.3s ease;
}

[data-theme="dark"] .carousel__logo img {
  filter: invert(1);
}

.carousel__logo--mira-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 64px;
  background: var(--bg);
  border-radius: 4px;
  padding: 4px;
  transition: background 0.3s ease;
}

.carousel__logo--mira-inner img {
  width: 100%;
  height: auto;
  filter: invert(1);
  mix-blend-mode: screen;
}

[data-theme="light"] .carousel__logo--mira-inner img {
  filter: none;
  mix-blend-mode: multiply;
}

.carousel__logo--mira-inner .mira-wordmark {
  display: block;
  width: 100%;
  font-family: var(--font-body);
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-align: center;
  white-space: nowrap;
  margin-left: 2px;
  color: var(--text-primary);
}

.carousel__desc strong {
  color: var(--text-primary);
  font-weight: 600;
  transition: color 0.3s ease;
}

/* ============================================
   WHAT I BRING
   ============================================ */
.what-i-bring {
  padding: var(--space-10) 0;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.value-card {
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .value-card {
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.value-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
  line-height: 1.2;
  transition: color 0.3s ease;
}

.value-card__desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.6;
  transition: color 0.3s ease;
}

/* ============================================
   HOW I WORK — 3 scenario cards
   ============================================ */
.how-i-work {
  padding: var(--space-8) 0;
  background: var(--bg);
  transition: background 0.3s ease;
}

.how-i-work__header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.how-i-work__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: var(--space-2);
}

.how-i-work__title em {
  font-style: italic;
  color: var(--accent-600);
}

[data-theme="dark"] .how-i-work__title em {
  color: var(--accent-400);
}

.how-i-work__subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
}

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

.scenario-card {
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.scenario-card:hover {
  border-color: var(--accent-300);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

[data-theme="dark"] .scenario-card:hover {
  border-color: var(--accent-600);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.scenario-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: var(--space-4);
}

.scenario-card__section {
  margin-bottom: var(--space-1);
}

.scenario-card__section:last-child {
  margin-bottom: 0;
}

.scenario-card__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-600);
  margin-bottom: var(--space-1);
}

[data-theme="dark"] .scenario-card__label {
  color: var(--accent-400);
}

.scenario-card__need {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
}

.scenario-card__fix {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.6;
}

.scenario-closer {
  text-align: center;
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-top: var(--space-6);
  transition: color 0.3s ease;
}

.scenario-closer a {
  color: var(--accent-600);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s ease;
}

.scenario-closer a:hover {
  color: var(--accent-700);
  text-decoration: underline;
}

[data-theme="dark"] .scenario-closer a {
  color: var(--accent-400);
}

[data-theme="dark"] .scenario-closer a:hover {
  color: var(--accent-300);
}

/* ============================================
   PROBLEM SECTION
   ============================================ */
.problem {
  padding: var(--space-10) 0;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s ease, border-color 0.3s ease;
}


.problem > .container {
  max-width: 780px;
}

.problem-heading {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: var(--space-6);
  padding: 0 var(--space-5);
  text-align: center;
  transition: color 0.3s ease;
}

.problem-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.problem-item {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  width: 60%;
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-300);
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

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

.problem-item:nth-child(even) {
  align-self: flex-end;
  border-left: 1px solid var(--border-subtle);
  border-right: 3px solid var(--accent-300);
}

[data-theme="dark"] .problem-item {
  border-left-color: var(--accent-700);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

[data-theme="dark"] .problem-item:nth-child(even) {
  border-left-color: var(--border-subtle);
  border-right-color: var(--accent-700);
}

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta {
  padding: var(--space-10) 0;
  text-align: center;
  background: var(--bg-subtle);
  transition: background 0.3s ease;
}

.cta-heading {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: var(--space-2);
  padding: 0 var(--space-5);
  transition: color 0.3s ease;
}

.cta-subheading {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
  transition: color 0.3s ease;
}

/* cta-actions removed — using shared .cta-block instead */

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: var(--space-6) 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.footer-copyright {
  font-size: var(--text-xs);
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.footer-links {
  display: flex;
  gap: var(--space-3);
}

.footer-links a {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .above-fold {
    min-height: auto;
  }

  .hero {
    padding: var(--space-10) 0 var(--space-8);
  }

  .hero-split {
    grid-template-columns: 1fr;
  }

  .hero-headline {
    font-size: var(--text-3xl);
  }

  .hero-photo {
    aspect-ratio: 4 / 3;
  }

  .hero-photo-wrapper {
    order: 1;
  }

  .name-card {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    background: var(--surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid var(--border-subtle);
    border-radius: 0 0 8px 8px;
    margin-top: -6px;
  }

  [data-theme="dark"] .name-card {
    background: var(--surface);
  }

  .name-card__name {
    color: var(--text-primary);
  }

  .name-card__tagline {
    color: var(--text-secondary);
  }

  /* Carousel */
  .carousel__slide {
    flex-direction: column;
    text-align: center;
  }

  .carousel__logo {
    width: auto;
    min-width: auto;
    height: auto;
  }

  .carousel__desc {
    max-width: 100%;
    width: auto;
    text-align: center;
  }

  .carousel__track {
    height: 180px;
  }

  /* What I Bring */
  .value-grid {
    grid-template-columns: 1fr;
  }

  /* How I Work */
  .scenario-grid {
    grid-template-columns: 1fr;
  }

  .problem-heading {
    font-size: var(--text-xl);
  }

  .problem-item {
    width: 100%;
  }

  .problem-item:nth-child(even) {
    align-self: stretch;
  }

  .cta-heading {
    font-size: var(--text-xl);
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}
