/* ==========================================================================
   Mike Stemple — Static Site Stylesheet
   Hand-written CSS. No framework, no CDN dependency.
   ========================================================================== */

:root {
  --bg: #FAF7F2;
  --white: #ffffff;
  --text: #1c1917;

  --stone-900: #1c1917;
  --stone-800: #292524;
  --stone-700: #44403c;
  --stone-600: #57534e;
  --stone-500: #78716c;
  --stone-400: #a8a29e;
  --stone-300: #d6d3d1;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --stone-50: #fafaf9;

  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-100: #fef3c7;
  --amber-50: #fffbeb;

  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-100: #d1fae5;

  --violet-600: #7c3aed;
  --violet-500: #8b5cf6;
  --violet-400: #a78bfa;
  --violet-100: #ede9fe;

  --rose-500: #f43f5e;
  --rose-100: #ffe4e6;

  --red-600: #dc2626;
  --red-500: #ef4444;
  --red-100: #fee2e2;

  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;

  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --container-width: 1280px;
}

/* -------------------------------------------------------------------------
   Reset / base
   ------------------------------------------------------------------------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1, h2, h3, h4, p {
  margin: 0;
}

.icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-prose {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  position: relative;
  padding: 6rem 1.5rem;
}

.section-tight {
  padding: 4rem 1.5rem;
}

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

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.eyebrow-violet { color: var(--violet-600); }
.eyebrow-amber { color: var(--amber-600); }
.eyebrow-emerald { color: var(--emerald-600); }
.eyebrow-stone { color: var(--stone-500); }

.section-heading {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--stone-900);
  line-height: 1.15;
}

.section-subtext {
  font-size: 1.05rem;
  color: var(--stone-500);
  font-weight: 300;
  line-height: 1.7;
  max-width: 760px;
  margin: 0 auto;
}

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

.section-header > * + * {
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .section-heading { font-size: 2.75rem; }
  .section-subtext { font-size: 1.15rem; }
}

@media (min-width: 1024px) {
  .section-heading { font-size: 3.25rem; }
}

.text-gradient-amber {
  background: linear-gradient(90deg, var(--amber-500), var(--amber-600), var(--amber-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gradient-violet {
  background: linear-gradient(90deg, var(--violet-500), #9333ea, var(--violet-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gradient-emerald {
  background: linear-gradient(90deg, var(--emerald-500), var(--emerald-600), #14b8a6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  background: none;
  white-space: nowrap;
}

.btn-lg {
  padding: 1.25rem 2.5rem;
  font-size: 1.05rem;
}

.btn-primary {
  background: var(--stone-900);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--emerald-600);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.btn-outline {
  background: transparent;
  border-color: var(--stone-300);
  color: var(--stone-700);
}

.btn-outline:hover {
  border-color: var(--stone-400);
  background: var(--stone-50);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.btn-dark-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.btn-full {
  width: 100%;
  margin-top: 1.5rem;
}

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

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-row-center {
  justify-content: center;
}

.btn .icon {
  transition: transform 0.3s ease;
}

.btn:hover .icon-arrow {
  transform: translateX(4px);
}

/* -------------------------------------------------------------------------
   Header / Nav
   ------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--stone-200);
}

.nav {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 1.35rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--stone-900);
  transition: color 0.2s ease;
}

.brand:hover {
  color: var(--amber-600);
}

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

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--stone-500);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber-600);
}

.menu-toggle {
  display: inline-flex;
  background: none;
  border: none;
  padding: 0.5rem;
  color: var(--stone-600);
}

.menu-toggle:hover {
  color: var(--stone-900);
}

.mobile-menu {
  background: var(--bg);
  border-bottom: 1px solid var(--stone-200);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.mobile-menu.open {
  max-height: 320px;
}

.mobile-menu-inner {
  padding: 1rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  display: block;
  padding: 0.5rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--stone-500);
}

.mobile-nav-link.active {
  color: var(--amber-600);
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .menu-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* -------------------------------------------------------------------------
   Home page hero
   ------------------------------------------------------------------------- */

.home-hero {
  position: relative;
  min-height: calc(100vh - 5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
  overflow: hidden;
}

.home-hero::before,
.home-hero::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  filter: blur(90px);
  z-index: 0;
}

.home-hero::before {
  width: 500px;
  height: 500px;
  top: 8%;
  right: -8%;
  background: var(--amber-100);
  opacity: 0.6;
}

.home-hero::after {
  width: 400px;
  height: 400px;
  bottom: 8%;
  left: -8%;
  background: var(--violet-100);
  opacity: 0.5;
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-width);
  width: 100%;
  margin: 0 auto;
}

.home-intro {
  text-align: center;
  margin-bottom: 4rem;
}

.home-title {
  font-size: 2.75rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--stone-900);
  margin-bottom: 1.25rem;
}

.home-subtitle {
  font-size: 1.15rem;
  color: var(--stone-500);
  font-weight: 300;
  max-width: 640px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .home-title { font-size: 4rem; }
  .home-subtitle { font-size: 1.35rem; }
}

@media (min-width: 1024px) {
  .home-title { font-size: 4.5rem; }
}

.home-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .home-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.persona-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--stone-200);
  background: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.4s ease;
}

.persona-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.persona-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.persona-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.persona-card:hover .persona-media img {
  transform: scale(1.05);
}

.persona-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 25, 23, 0.75), rgba(28, 25, 23, 0.2), transparent);
}

.persona-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.75rem;
}

.persona-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.persona-eyebrow.amber { color: var(--amber-400); }
.persona-eyebrow.violet { color: var(--violet-400); }

.persona-title {
  font-size: 1.85rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.persona-desc {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.persona-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: gap 0.2s ease;
}

.persona-link.amber { color: var(--amber-400); }
.persona-link.violet { color: var(--violet-400); }

.persona-card:hover .persona-link {
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .persona-content { padding: 2rem; }
  .persona-title { font-size: 2.25rem; }
  .persona-desc { font-size: 1rem; }
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--stone-200);
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1024px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--stone-900);
}

.footer-brand:hover {
  color: var(--amber-600);
}

.footer-tagline {
  color: var(--stone-500);
  font-size: 0.9rem;
  font-weight: 300;
}

.footer-heading {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone-400);
}

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

.footer-links a {
  color: var(--stone-500);
  font-size: 0.9rem;
  font-weight: 300;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--stone-900);
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-row a {
  color: var(--stone-400);
  transition: color 0.2s ease;
}

.social-row a:hover {
  color: var(--stone-900);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--stone-200);
  text-align: center;
}

.footer-bottom p {
  color: var(--stone-400);
  font-size: 0.9rem;
  font-weight: 300;
}

/* -------------------------------------------------------------------------
   Scroll-reveal animation
   ------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 900ms ease-out, transform 900ms ease-out;
}

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

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }
.reveal-delay-5 { transition-delay: 500ms; }

.fade-in {
  animation: fade-in-up 0.7s ease-out both;
}

.fade-in-delay-1 { animation-delay: 0.15s; }
.fade-in-delay-2 { animation-delay: 0.3s; }

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.pulse {
  animation: pulse-soft 2s ease-in-out infinite;
}

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

.spin {
  animation: spin 1s linear infinite;
}

/* -------------------------------------------------------------------------
   Innovator hero
   ------------------------------------------------------------------------- */

.inv-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 8rem 1.5rem 6rem;
  background: linear-gradient(to bottom right, var(--bg), var(--amber-50), var(--bg));
}

.inv-hero::before,
.inv-hero::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  filter: blur(90px);
  z-index: 0;
}

.inv-hero::before {
  width: 550px;
  height: 550px;
  top: 5%;
  right: -10%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.25) 0%, transparent 70%);
}

.inv-hero::after {
  width: 480px;
  height: 480px;
  bottom: 8%;
  left: -6%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
}

.inv-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-width);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .inv-hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.inv-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--stone-200);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  margin-bottom: 2rem;
}

.dot-emerald {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--emerald-500);
}

.inv-badge span.label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--stone-600);
}

.inv-title {
  font-size: 2.75rem;
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.inv-title span {
  display: block;
  margin-top: 0.25rem;
}

.inv-title .dark { color: var(--stone-800); }

.highlight {
  position: relative;
  display: inline-block;
}

.highlight-text {
  position: relative;
  z-index: 1;
  font-weight: 500;
}

.highlight-glow {
  position: absolute;
  inset: -0.5rem -0.75rem;
  background: rgba(167, 243, 208, 0.5);
  filter: blur(16px);
  border-radius: 999px;
  z-index: 0;
}

@media (min-width: 768px) {
  .inv-title { font-size: 3.75rem; }
}
@media (min-width: 1024px) {
  .inv-title { font-size: 4.5rem; }
}
@media (min-width: 1280px) {
  .inv-title { font-size: 5.25rem; }
}

.inv-quote {
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid var(--amber-400);
  margin-bottom: 1.75rem;
}

.inv-quote p {
  font-size: 1.25rem;
  font-weight: 300;
  font-style: italic;
  color: var(--stone-500);
}

.inv-lede {
  font-size: 1.1rem;
  color: var(--stone-600);
  line-height: 1.7;
  font-weight: 300;
  max-width: 640px;
  margin-bottom: 2rem;
}

.inv-lede .strong { color: var(--stone-900); font-weight: 500; }
.inv-lede .amber { color: var(--amber-600); font-weight: 500; }
.inv-lede .emerald { color: var(--emerald-600); font-weight: 500; }

.inv-portrait-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

@media (min-width: 1024px) {
  .inv-portrait-wrap { justify-content: flex-end; }
}

.inv-portrait {
  position: relative;
}

.inv-portrait-glow {
  position: absolute;
  inset: -2rem;
  background: linear-gradient(to bottom right, rgba(253, 230, 138, 0.3), transparent, rgba(167, 243, 208, 0.3));
  filter: blur(48px);
  opacity: 0.6;
  border-radius: var(--radius-xl);
}

.inv-portrait-frame {
  position: relative;
}

.inv-portrait-border-1 {
  position: absolute;
  inset: -1rem;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
}

.inv-portrait-border-2 {
  position: absolute;
  inset: -2rem;
  border: 1px solid var(--stone-100);
  border-radius: var(--radius-xl);
}

.inv-portrait-image {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 380px;
}

.inv-portrait-caption {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  max-width: calc(100% - 1rem);
}

.inv-portrait-caption p {
  font-size: 0.7rem;
  color: var(--stone-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.scroll-hint {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.scroll-hint span {
  font-size: 0.7rem;
  color: var(--stone-400);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.scroll-line {
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, var(--stone-400), transparent);
}

/* -------------------------------------------------------------------------
   Generic content grids / cards
   ------------------------------------------------------------------------- */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stone-200);
  background: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

@media (min-width: 1024px) {
  .card { padding: 2.5rem; }
}

.card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.card-icon.violet { background: var(--violet-100); color: var(--violet-600); }
.card-icon.amber { background: var(--amber-100); color: var(--amber-600); }
.card-icon.rose { background: var(--rose-100); color: #e11d48; }
.card-icon.emerald { background: var(--emerald-100); color: var(--emerald-600); }
.card-icon.red { background: var(--red-100); color: var(--red-600); }

.card h3 {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--stone-900);
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--stone-600);
  font-weight: 300;
  line-height: 1.7;
}

.card > * + * {
  margin-top: 1rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 0.75rem;
  background: var(--white);
  border: 1px solid var(--stone-200);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.feature-bullet {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
}

.feature-bullet.violet { background: var(--violet-100); color: var(--violet-600); }
.feature-bullet.amber { background: var(--amber-100); color: var(--amber-600); }

.feature-item h4 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--stone-900);
  margin-bottom: 0.25rem;
}

.feature-item p {
  font-size: 0.9rem;
  color: var(--stone-600);
  font-weight: 300;
}

.callout {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background: linear-gradient(to bottom right, var(--violet-100), #f3e8ff);
  border: 1px solid #ddd6fe;
}

.callout p {
  color: var(--stone-700);
  font-weight: 300;
  line-height: 1.7;
}

.callout .strong {
  color: var(--stone-900);
  font-weight: 500;
}

/* Two-column problem/solution cards */
.grid-2-even {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-2-even { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

.problem-card {
  height: 100%;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stone-200);
  background: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

@media (min-width: 1024px) {
  .problem-card { padding: 2.5rem; }
}

.problem-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.problem-head h3 {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--stone-900);
}

.problem-head .tag {
  font-size: 0.85rem;
  font-weight: 500;
}

.tag-red { color: var(--red-600); }
.tag-emerald { color: var(--emerald-600); }

.dot-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dot-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: var(--stone-600);
  font-weight: 300;
}

.dot {
  flex-shrink: 0;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  margin-top: 0.5rem;
}

.dot-red { background: var(--red-500); }
.dot-emerald { background: var(--emerald-500); }
.dot-violet { background: var(--violet-500); }
.dot-amber { background: var(--amber-500); }

/* T.A.I.L. framework grid */
.framework-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

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

.framework-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stone-200);
  background: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.4s ease;
}

.framework-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.framework-card h3 {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--stone-900);
  margin-bottom: 0.25rem;
}

.framework-card .subtitle {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.framework-card p {
  color: var(--stone-600);
  font-weight: 300;
  line-height: 1.7;
}

.cta-panel {
  position: relative;
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stone-200);
  background: var(--white);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
  text-align: center;
}

@media (min-width: 1024px) {
  .cta-panel { padding: 4rem; }
}

.cta-panel h3 {
  font-size: 1.85rem;
  font-weight: 300;
  color: var(--stone-900);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .cta-panel h3 { font-size: 2.25rem; }
}

.cta-panel p {
  color: var(--stone-500);
  font-weight: 300;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

/* Profile summary card ("What I deliver") */
.profile-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 2rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--stone-200);
}

.profile-photo {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card-header h3 {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--stone-900);
}

.profile-card-header p {
  color: var(--stone-500);
  font-size: 0.9rem;
}

.profile-body {
  color: var(--stone-600);
  font-weight: 300;
  line-height: 1.7;
}

.profile-body > * + * {
  margin-top: 1.25rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--stone-200);
}

.badge {
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  color: var(--stone-500);
  border: 1px solid var(--stone-200);
  border-radius: 999px;
  background: var(--stone-50);
}

/* Services section */
.service-primary {
  position: relative;
  margin-bottom: 2rem;
  padding: 2rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--stone-200);
  background: var(--white);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

@media (min-width: 1024px) {
  .service-primary { padding: 3rem; }
}

.service-primary-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .service-primary-inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
  }
}

.service-primary-main {
  flex: 1;
}

.service-primary-main > * + * {
  margin-top: 1.5rem;
}

.pill {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  font-size: 0.7rem;
  font-weight: 500;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pill-amber { background: var(--amber-100); color: var(--amber-700); }
.pill-violet { background: var(--violet-100); color: #6d28d9; }

.service-primary h3 {
  font-size: 2rem;
  font-weight: 300;
  color: var(--stone-900);
}

@media (min-width: 768px) {
  .service-primary h3 { font-size: 2.35rem; }
}

.service-primary-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 240px;
}

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

@media (min-width: 1024px) {
  .service-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

.service-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stone-200);
  background: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.service-card h3 {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--stone-900);
  margin-bottom: 0.5rem;
}

.service-card > p {
  color: var(--stone-600);
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.service-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.service-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--stone-600);
  font-weight: 300;
}

/* Books */
.book-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1024px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .book-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

.quote-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stone-200);
  background: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
}

.quote-card:last-child {
  margin-bottom: 0;
}

.quote-mark {
  color: var(--stone-200);
  margin-bottom: 1rem;
}

.quote-card blockquote {
  font-size: 1.1rem;
  color: var(--stone-600);
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
}

.quote-attribution {
  padding-top: 1rem;
  border-top: 1px solid var(--stone-100);
}

.quote-attribution .name {
  color: var(--stone-900);
  font-weight: 500;
}

.quote-attribution .title {
  font-size: 0.85rem;
  color: var(--stone-500);
}

.book-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stone-200);
  background: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.book-cover {
  width: 14rem;
  max-width: 100%;
  height: 18rem;
  margin-bottom: 2rem;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 15px rgba(0, 0, 0, 0.15));
}

.book-card h3 {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--stone-900);
  margin-bottom: 0.5rem;
}

.book-card .subtitle {
  font-size: 1rem;
  color: var(--stone-500);
  font-weight: 300;
  margin-bottom: 1rem;
}

.book-card .desc {
  font-size: 0.9rem;
  color: var(--stone-600);
  font-weight: 300;
  margin-bottom: 2rem;
  flex-grow: 1;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

@media (min-width: 1024px) {
  .testimonial-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

.testimonial-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stone-200);
  background: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.testimonial-card blockquote {
  color: var(--stone-600);
  font-weight: 300;
  line-height: 1.7;
  margin: 0 0 1.5rem 0;
  flex-grow: 1;
}

.testimonial-attribution {
  padding-top: 1rem;
  border-top: 1px solid var(--stone-100);
}

.testimonial-attribution .name {
  color: var(--stone-900);
  font-weight: 500;
}

.testimonial-attribution .title {
  font-size: 0.85rem;
  color: var(--stone-500);
}

.testimonial-attribution .company {
  font-size: 0.85rem;
  color: var(--emerald-600);
}

/* Final CTA */
.final-cta {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.final-cta h2 {
  font-size: 2.25rem;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--stone-900);
}

.final-cta h2.muted {
  color: var(--stone-400);
}

@media (min-width: 768px) {
  .final-cta h2 { font-size: 3rem; }
}
@media (min-width: 1024px) {
  .final-cta h2 { font-size: 4rem; }
}

.final-cta-heading {
  margin-bottom: 3rem;
}

.final-cta-heading > * + * {
  margin-top: 0.5rem;
}

.final-cta-note {
  color: var(--stone-400);
  font-weight: 300;
  margin-top: 3rem;
}

/* -------------------------------------------------------------------------
   Contact modal
   ------------------------------------------------------------------------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.97), rgba(30, 41, 59, 0.97));
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 640px;
  animation: modal-enter 0.25s ease-out both;
}

@keyframes modal-enter {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-panel {
  position: relative;
  background: linear-gradient(to bottom right, var(--slate-900), var(--slate-800), var(--slate-900));
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.modal-close {
  position: absolute;
  top: -0.75rem;
  right: -0.75rem;
  z-index: 10;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--slate-700);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.modal-close:hover {
  background: #475569;
  color: var(--white);
}

.modal-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(251, 191, 36, 0.8);
  margin-bottom: 0.75rem;
}

.modal-panel h3 {
  font-size: 1.85rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .modal-panel h3 { font-size: 2.25rem; }
}

.modal-panel > p.modal-lede {
  color: var(--stone-400);
  font-weight: 300;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

/* Honeypot field: visually hidden from real users, still present in the DOM
   for basic spam bots to fill in (revealing themselves). Not display:none /
   visibility:hidden, since some bots skip those. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-group label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(255, 255, 255, 0.07);
}

.form-group textarea {
  resize: none;
}

.modal-submit {
  width: 100%;
  margin-top: 1.5rem;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  border: none;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.15), rgba(16, 185, 129, 0.15), rgba(244, 63, 94, 0.15));
  color: var(--white);
  font-weight: 500;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: opacity 0.3s ease;
}

.modal-submit:hover {
  opacity: 0.9;
}

.modal-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.error-box {
  display: none;
  padding: 1rem;
  margin-bottom: 1.25rem;
  border-radius: 0.75rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
  font-size: 0.9rem;
}

.error-box.visible {
  display: block;
}

.success-view {
  display: none;
  text-align: center;
  padding: 3rem 0;
}

.success-view.visible {
  display: block;
}

.success-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #34d399;
}

.success-view p.headline {
  font-size: 1.25rem;
  color: var(--white);
  font-weight: 300;
}

.success-view p.sub {
  color: var(--stone-400);
  font-weight: 300;
  margin-top: 0.5rem;
}

.hidden {
  display: none !important;
}

/* -------------------------------------------------------------------------
   Utility spacing helpers
   ------------------------------------------------------------------------- */

.mt-lg { margin-top: 5rem; }
.mb-lg { margin-bottom: 5rem; }
