/* =============================================
   MILE — Design Tokens
   ============================================= */
:root {
  /* Palette */
  --navy:        #1c2f4a;
  --navy-deep:   #121f36;
  --terracotta:  #c4654a;
  --terracotta-light: #d4846a;
  --sand:        #f5f0ea;
  --cream:       #faf8f5;
  --slate:       #5a6b7d;
  --sage:        #7a9b8e;
  --sage-light:  #e8f0ec;

  /* Semantic */
  --text:        var(--navy);
  --text-muted:  var(--slate);
  --bg:          var(--cream);
  --bg-alt:      var(--sand);
  --accent:      var(--terracotta);
  --accent-hover: #b05540;

  /* Typography */
  --font-brand:  'Montserrat', 'DM Sans', system-ui, sans-serif;
  --font-serif:  'Instrument Serif', Georgia, serif;
  --font-sans:   'DM Sans', system-ui, sans-serif;
  --serif-tracking: 0.02em;

  /* Spacing */
  --section-pad: clamp(4rem, 8vw, 7rem);
  --container:   1120px;
  --radius:      6px;
  --radius-lg:   12px;

  /* Transitions */
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================
   Reset & Base
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* =============================================
   Layout
   ============================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: var(--section-pad);
}

.section-header {
  max-width: 640px;
  margin-bottom: 3rem;
}

.section-header--center {
  text-align: center;
  margin-inline: auto;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-label--light {
  color: var(--terracotta-light);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: var(--serif-tracking);
  margin-bottom: 1rem;
}

.section-title--light {
  color: var(--cream);
}

.section-intro {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.title-dot {
  color: var(--accent);
}

.section-title:not(.section-title--light) .title-dot {
  color: var(--text);
}

.title-dot--light {
  color: var(--terracotta-light);
}

/* =============================================
   Header
   ============================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 39, 68, 0.06);
  transition: box-shadow 0.3s var(--ease);
}

.site-header.scrolled {
  box-shadow: 0 1px 24px rgba(26, 39, 68, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  padding-block: 0.625rem;
}

.logo {
  display: block;
  line-height: 1;
  flex-shrink: 0;
}

.mile-logo {
  display: inline-grid;
  grid-template-rows: auto auto;
  row-gap: 0.35rem;
  line-height: 1;
}

.mile-logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.06em;
  grid-row: 1;
  width: max-content;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1;
  text-transform: uppercase;
  color: var(--navy);
}

.mile-logo-text {
  letter-spacing: 0.06em;
}

.mile-logo-e {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.17em;
  width: 0.92em;
  height: 0.92em;
  flex-shrink: 0;
}

.mile-logo-e-bar {
  display: block;
  height: 0.13em;
  width: 100%;
  background: currentColor;
  border-radius: 1px;
}

.mile-logo-e-bar--accent {
  background: var(--accent);
}

.logo-tagline {
  grid-row: 2;
  width: 0;
  min-width: 100%;
  box-sizing: border-box;
  font-family: var(--font-brand);
  font-size: calc(1.375rem * 0.29);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: justify;
  text-align-last: justify;
  line-height: 1;
  white-space: nowrap;
  color: var(--text-muted);
}

.logo--light .mile-logo-mark {
  color: var(--cream);
}

.logo--light .logo-tagline {
  color: rgba(250, 248, 245, 0.55);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a:not(.nav-cta) {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}

.nav a:not(.nav-cta):hover {
  color: var(--navy);
}

.nav a.nav-cta.btn {
  letter-spacing: 0;
  text-transform: none;
}

.site-header .nav a.nav-cta.btn-primary,
.site-header .nav a.nav-cta.btn-primary:link,
.site-header .nav a.nav-cta.btn-primary:visited {
  background-color: var(--terracotta-light);
  color: #fff;
}

.site-header .nav a.nav-cta.btn-primary:hover,
.site-header .nav a.nav-cta.btn-primary:focus-visible {
  background-color: var(--terracotta);
  color: #fff;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* =============================================
   Buttons
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary,
a.btn-primary:link,
a.btn-primary:visited {
  background-color: var(--terracotta);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible,
a.btn-primary:hover,
a.btn-primary:focus-visible {
  background-color: var(--accent-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(26, 39, 68, 0.15);
}

.btn-ghost:hover {
  color: var(--navy);
  border-color: rgba(26, 39, 68, 0.3);
}

.btn-large {
  font-size: 1rem;
  padding: 1rem 2.25rem;
}

.btn-text-mobile {
  display: none;
}

/* =============================================
   Hero
   ============================================= */
.hero {
  position: relative;
  padding-top: calc(4.5rem + var(--section-pad));
  padding-bottom: var(--section-pad);
  background: var(--navy-deep);
  color: var(--cream);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  max-width: 780px;
  padding-inline: 0;
}

.hero-eyebrow {
  font-family: var(--font-brand);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta-light);
  margin: 0 0 1.5rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.625rem, 2.5vw + 0.75rem, 4.25rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: var(--serif-tracking);
  margin-bottom: 1.5rem;
}

.hero-title-line {
  display: block;
}

.hero-title .title-dot {
  color: var(--cream);
}

.hero-title em {
  font-style: italic;
  color: var(--terracotta-light);
}

.hero-subtitle {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: rgba(250, 248, 245, 0.75);
  max-width: 720px;
  margin-bottom: 1rem;
}

.hero-pillars {
  font-family: var(--font-brand);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta-light);
  margin: 0 0 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero .btn-ghost {
  color: rgba(250, 248, 245, 0.7);
  border-color: rgba(250, 248, 245, 0.2);
}

.hero .btn-ghost:hover {
  color: var(--cream);
  border-color: rgba(250, 248, 245, 0.4);
}

.hero-proof {
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: rgba(250, 248, 245, 0.45);
}

/* =============================================
   Problems
   ============================================= */
.section-problems {
  background: var(--bg-alt);
}

.section-problems .section-header {
  max-width: none;
}

.section-problems .section-title {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  margin-top: 0.25rem;
}

.problem-cell {
  container-type: inline-size;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: clamp(1rem, 2.5vw, 2rem);
  padding: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1.15rem, 2.9vw, 2.35rem);
}

.problem-cell:nth-child(1),
.problem-cell:nth-child(2) {
  border-right: 1px solid rgba(26, 39, 68, 0.12);
}

.problem-cell:nth-child(1),
.problem-cell:nth-child(3) {
  border-bottom: 1px solid rgba(26, 39, 68, 0.12);
}

.problem-index {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 2.75rem;
  padding-top: 0.15rem;
}

.problem-number {
  font-family: var(--font-serif);
  font-size: clamp(1.625rem, 2.8vw, 2.125rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: var(--serif-tracking);
  color: var(--terracotta-light);
}

.problem-number-line {
  display: block;
  width: 2.25rem;
  height: 2px;
  margin-top: 0.5rem;
  background: var(--terracotta-light);
}

.problem-copy {
  margin: 0;
  min-width: 0;
}

.problem-quote-lead {
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  font-weight: 400;
  letter-spacing: var(--serif-tracking);
  line-height: 1.35;
  color: var(--navy);
  margin: 0 0 0.875rem;
  white-space: nowrap;
}

@container (max-width: 520px) {
  .problem-quote-lead {
    font-size: 1.0625rem;
  }
}

@container (max-width: 460px) {
  .problem-quote-lead {
    font-size: 1rem;
  }
}

@container (max-width: 400px) {
  .problem-quote-lead {
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
  }
}

@media (min-width: 1200px) {
  .problem-quote-lead {
    font-size: 1.375rem;
  }
}

.problem-quote-detail {
  font-size: clamp(0.875rem, 1.5vw, 0.9375rem);
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
  max-width: none;
}

/* =============================================
   How I Help
   ============================================= */
.section-help {
  background: var(--bg);
}

.help-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.help-bridge {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.outcomes-list {
  margin-top: 2rem;
}

.outcomes-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text);
}

.outcomes-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
}

.engagement-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.engagement-card {
  background: white;
  border: 1px solid rgba(26, 39, 68, 0.07);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  transition: box-shadow 0.3s var(--ease);
}

.engagement-card--featured {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}

.engagement-card--featured .engagement-when {
  color: var(--terracotta-light);
}

.engagement-card--featured p:last-child {
  color: rgba(250, 248, 245, 0.7);
}

.engagement-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: var(--serif-tracking);
  margin-bottom: 0.35rem;
}

.engagement-when {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.engagement-card p:last-child {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =============================================
   Experience
   ============================================= */
.section-experience {
  background: var(--bg-alt);
}

.section-experience .section-header {
  max-width: 920px;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.125rem;
}

.experience-item {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1rem;
  background: white;
  border: 1px solid rgba(26, 39, 68, 0.07);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.experience-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 39, 68, 0.06);
}

.experience-company {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: var(--serif-tracking);
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.experience-headline {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  letter-spacing: var(--serif-tracking);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.experience-item .experience-detail + .experience-detail {
  margin-top: 1rem;
}

.experience-role {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.experience-detail {
  display: block;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.experience-detail strong {
  font-weight: 600;
  color: var(--navy);
}

/* =============================================
   Testimonials
   ============================================= */
.section-testimonials {
  background: var(--bg);
}

.section-testimonials .section-header {
  max-width: 920px;
}

.section-testimonials .section-title {
  font-size: clamp(1.875rem, 4.2vw, 2.875rem);
}

.testimonial-feature {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
}

.testimonial-slider {
  overflow: hidden;
  transition: height 0.65s var(--ease);
}

.testimonial-track {
  display: flex;
  transition: transform 0.65s var(--ease);
}

.testimonial-slide {
  flex: 0 0 100%;
  width: 100%;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-slider,
  .testimonial-track {
    transition: none;
  }
}

.testimonial-quote-block {
  margin: 0;
}

.testimonial-text {
  margin-bottom: 2rem;
}

.testimonial-text,
.testimonial-text p {
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  line-height: 1.45;
  letter-spacing: var(--serif-tracking);
  color: var(--navy);
}

.testimonial-text p + p {
  margin-top: 1rem;
}

.testimonial-attribution {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.testimonial-name {
  font-size: 0.9375rem;
  font-weight: 600;
  font-style: normal;
  color: var(--navy);
}

.testimonial-role {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(26, 39, 68, 0.15);
  cursor: pointer;
  transition: background 0.2s var(--ease);
}

.testimonial-dot--active {
  background: var(--accent);
}

/* =============================================
   Case Studies
   ============================================= */
.section-cases {
  background: var(--bg-alt);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.case-card {
  background: white;
  border: 1px solid rgba(26, 39, 68, 0.07);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s var(--ease);
}

.case-card:hover {
  box-shadow: 0 12px 40px rgba(26, 39, 68, 0.08);
}

.case-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
}

.case-card h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: var(--serif-tracking);
  margin-bottom: 0.75rem;
}

.case-challenge {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.case-outcomes {
  flex: 1;
  margin-bottom: 1.5rem;
}

.case-outcomes li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.case-outcomes li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
}

.case-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  transition: color 0.2s var(--ease);
}

.case-link:hover {
  color: var(--accent-hover);
}

/* =============================================
   Audience
   ============================================= */
.section-audience {
  background: var(--bg);
}

.audience-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem;
  align-items: start;
}

.audience-main p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.audience-main strong {
  color: var(--navy);
  font-weight: 600;
}

.audience-secondary {
  font-size: 0.9375rem !important;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(26, 39, 68, 0.08);
}

.audience-aside {
  background: var(--sage-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.aside-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.75rem;
}

.aside-label--muted {
  margin-top: 1.5rem;
  color: var(--text-muted);
}

.audience-aside ul li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  color: var(--text);
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

.audience-aside ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sage);
}

.aside-muted {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =============================================
   About
   ============================================= */
.section-about {
  background: var(--bg);
}

.section-about-credibility {
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-bottom: clamp(3.5rem, 6vw, 5rem);
}

/* Slightly wider copy measure: lead on one line, first body para ~3 lines (side-by-side layouts) */
@media (min-width: 640px) {
  .section-about-credibility .container {
    padding-inline: clamp(0.875rem, 2.25vw, 1.5rem);
  }

  .section-about-credibility .about-credibility {
    gap: clamp(1.125rem, 2.25vw, 1.625rem);
  }
}

.about-credibility {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.about-photo {
  max-width: 240px;
  min-height: 0;
}

.about-content .section-label {
  margin-bottom: 0.75rem;
}

.about-content .section-title {
  margin-top: 0;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
}

.about-photo-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 20%;
  border-radius: var(--radius-lg);
  display: block;
}

.about-text p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.8;
}

.about-lead {
  color: var(--text) !important;
}

.about-lead strong {
  font-weight: 600;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  margin-top: 2.75rem;
  padding-top: 2.25rem;
  border-top: 1px solid rgba(26, 39, 68, 0.08);
}

.about-stat {
  margin: 0;
  padding-right: 1.5rem;
  border-right: 1px solid rgba(26, 39, 68, 0.08);
}

.about-stat:last-child {
  border-right: none;
  padding-right: 0;
}

.about-stat-value {
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  font-weight: 400;
  letter-spacing: var(--serif-tracking);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.about-stat-value--companies {
  line-height: 1.25;
  margin-bottom: 0;
}

.about-stat-companies-line {
  display: block;
}

.about-stat-companies-line + .about-stat-companies-line {
  margin-top: 0.375rem;
}

.about-stat-label {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

/* =============================================
   Book a Call
   ============================================= */
.section-book {
  position: relative;
  background: var(--navy-deep);
  text-align: center;
  overflow: hidden;
}

.book-glow {
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(196, 101, 74, 0.3) 0%, transparent 60%);
  pointer-events: none;
}

.book-inner {
  position: relative;
}

.book-subtitle {
  font-size: 1.0625rem;
  color: rgba(250, 248, 245, 0.65);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
  text-wrap: balance;
}

.book-email {
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  color: rgba(250, 248, 245, 0.45);
}

.book-email a {
  color: var(--terracotta-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}

.book-email a:hover {
  color: var(--cream);
}

/* =============================================
   Footer
   ============================================= */
.site-footer {
  background: var(--navy);
  color: rgba(250, 248, 245, 0.6);
  padding: 3rem 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 3rem;
  align-items: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-sub {
  font-family: var(--font-brand);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 248, 245, 0.55);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.875rem;
  transition: color 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--cream);
}

.footer-copy {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  color: rgba(250, 248, 245, 0.35);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(250, 248, 245, 0.08);
}

/* =============================================
   Mobile Nav
   ============================================= */
@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: 4.5rem;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 1.5rem 2rem 2rem;
    gap: 0;
    border-bottom: 1px solid rgba(26, 39, 68, 0.08);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(26, 39, 68, 0.05);
    width: 100%;
  }

  .nav a.nav-cta {
    margin-top: 1rem;
    width: auto !important;
    padding: 0.875rem 1.75rem;
    border-bottom: none !important;
    text-align: center;
    align-self: flex-start;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-toggle.active span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .help-layout,
  .audience-layout,
  .about-credibility {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .about-stat {
    border-right: none;
    padding-right: 0;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(26, 39, 68, 0.08);
  }

  .about-stat:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .about-photo {
    max-width: min(100%, 360px);
    margin-inline: auto;
    width: 100%;
  }

  .cases-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-links {
    justify-content: center;
  }
}

/* Tablet / narrow: keep photo + copy side-by-side; photo height matches content column */
@media (min-width: 640px) and (max-width: 900px) {
  .about-credibility {
    grid-template-columns: minmax(150px, 34%) minmax(0, 1fr);
    align-items: stretch;
    gap: clamp(1.25rem, 3vw, 2rem);
  }

  .about-photo {
    max-width: none;
    margin-inline: 0;
    width: 100%;
    display: flex;
  }

  .about-photo-img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    max-height: none;
    object-fit: cover;
  }
}

@media (min-width: 901px) {
  .about-credibility {
    align-items: stretch;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  }

  .about-photo {
    max-width: none;
    width: 100%;
    display: flex;
  }

  .about-photo-img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    max-height: none;
  }
}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  .container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .btn-text-desktop {
    display: none;
  }

  .btn-text-mobile {
    display: inline;
  }

  .problems-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
  }

  .problem-cell {
    border: none;
    border-right: none;
    border-bottom: 1px solid rgba(26, 39, 68, 0.12);
    padding-inline: 0;
  }

  .problem-cell:nth-child(1),
  .problem-cell:nth-child(2),
  .problem-cell:nth-child(3),
  .problem-cell:nth-child(4) {
    border-right: none;
    border-bottom: none;
  }

  .problem-cell:not(:last-child) {
    border-bottom: 1px solid rgba(26, 39, 68, 0.12);
  }

  .problem-cell:last-child {
    border-bottom: none;
  }

  .problem-quote-lead {
    font-size: 1.3125rem;
    line-height: 1.35;
    white-space: normal;
    text-wrap: pretty;
  }

  .problem-quote-detail {
    font-size: 1rem;
    line-height: 1.6;
  }

  .experience-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    width: 100%;
    min-width: 0;
    padding-inline: 1.5rem;
  }

  .hero-eyebrow {
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
  }

  .hero-title {
    font-size: clamp(1.75rem, 7.5vw, 2.35rem);
    line-height: 1.12;
    margin-bottom: 1.25rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 100%;
    margin-bottom: 0.875rem;
  }

  .hero-pillars {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    margin-bottom: 1.75rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-inline: auto;
    margin-bottom: 0;
    width: fit-content;
    max-width: 100%;
  }

  .hero-actions .btn {
    display: inline-flex;
    width: auto;
    justify-content: center;
    font-size: 1rem;
    padding: 1rem 2.25rem;
    text-align: center;
    box-sizing: border-box;
  }

  .section-header,
  .section-problems .section-header,
  .section-experience .section-header,
  .section-testimonials .section-header {
    max-width: 100%;
    min-width: 0;
  }

  .section-title {
    font-size: clamp(1.375rem, 5vw, 1.875rem);
    line-height: 1.2;
    max-width: 100%;
    text-wrap: balance;
    overflow-wrap: break-word;
  }

  .section-problems .section-title {
    font-size: 1.375rem;
    line-height: 1.25;
    letter-spacing: 0;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    max-width: 100%;
    text-wrap: wrap;
  }

  .section-problems .section-header {
    max-width: 100%;
    width: 100%;
    min-width: 0;
  }

  .section-testimonials .section-title {
    font-size: clamp(1.25rem, 4.2vw, 1.5rem);
  }
}

/* =============================================
   Tablet (touch devices from iPad mini portrait
   to iPad Pro landscape). Desktop and phones are
   unaffected: requires a coarse pointer and a
   tablet-sized viewport in both dimensions.

   Older iPad Safari (before 14.1) ignores flex
   `gap` and `padding-inline`/`margin-inline`, so
   this block uses margins and left/right padding.
   ============================================= */
@media (min-width: 744px) and (max-width: 1366px) and (min-height: 600px) and (pointer: coarse) {
  .container {
    padding-left: 3rem;
    padding-right: 3rem;
    margin-left: auto;
    margin-right: auto;
  }

  .section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .section-header--center,
  .testimonial-feature,
  .about-photo {
    margin-left: auto;
    margin-right: auto;
  }

  /* Header & logo */
  .header-inner {
    min-height: 5.25rem;
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
  }

  .mile-logo {
    row-gap: 0;
  }

  .mile-logo-mark {
    font-size: 1.75rem;
    gap: 0;
  }

  .mile-logo-e {
    gap: 0;
    width: 26px;
    height: auto;
    margin-left: 0.1em;
  }

  .mile-logo-e-bar {
    height: 4px;
    border-radius: 1px;
  }

  .mile-logo-e-bar + .mile-logo-e-bar {
    margin-top: 4px;
  }

  .logo-tagline {
    margin-top: 0.5rem;
    font-size: 0.5rem;
    letter-spacing: 0.04em;
  }

  .site-footer .mile-logo-mark {
    font-size: 1.5rem;
  }

  /* Menu icon */
  .menu-toggle {
    gap: 0;
    padding: 10px;
  }

  .menu-toggle span {
    width: 30px;
    height: 2px;
    border-radius: 1px;
  }

  .menu-toggle span + span {
    margin-top: 8px;
  }

  .menu-toggle.active span:first-child {
    transform: translateY(5px) rotate(45deg);
  }

  .menu-toggle.active span:last-child {
    transform: translateY(-5px) rotate(-45deg);
  }

  .nav {
    top: 5.25rem;
    padding-left: 3rem;
    padding-right: 3rem;
  }

  /* Hero: fill the first screen */
  .hero {
    display: grid;
    align-content: center;
    min-height: 100vh;
    min-height: 100svh;
    padding-top: calc(5.25rem + 2.5rem);
    padding-bottom: 3.5rem;
  }

  .hero-inner {
    max-width: var(--container);
    width: 100%;
    padding-left: 3rem;
    padding-right: 3rem;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-eyebrow {
    font-size: 0.875rem;
    letter-spacing: 0.12em;
    margin-bottom: 1.75rem;
  }

  .hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: 0.02em;
    margin-bottom: 1.75rem;
  }

  .hero-title-line {
    display: block;
    white-space: nowrap;
    font-size: inherit;
    letter-spacing: inherit;
    text-wrap: unset;
  }

  .hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.7;
    letter-spacing: 0.01em;
    max-width: 640px;
    margin-bottom: 1.125rem;
  }

  .hero-pillars {
    margin-bottom: 2.75rem;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    width: auto;
    margin: 0;
  }

  .hero-actions .btn {
    width: auto;
    white-space: nowrap;
    font-size: 1rem;
    padding: 1.0625rem 2.25rem;
  }

  .hero-actions .btn + .btn {
    margin-left: 1.25rem;
  }

  /* Problems and How I help: each fills the screen */
  .section-problems,
  .section-help {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    min-height: 100svh;
    padding-top: calc(5.25rem + 3rem);
    padding-bottom: 4rem;
  }

  .problems-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
  }

  .problem-cell {
    border: none;
    border-right: none;
    padding-inline: 0;
  }

  .problem-cell:nth-child(1),
  .problem-cell:nth-child(2),
  .problem-cell:nth-child(3),
  .problem-cell:nth-child(4) {
    border-right: none;
    border-bottom: none;
  }

  .problem-cell:not(:last-child) {
    border-bottom: 1px solid rgba(26, 39, 68, 0.12);
  }

  .problem-cell:last-child {
    border-bottom: none;
  }

  .problem-quote-lead {
    font-size: 1.375rem;
    line-height: 1.35;
    white-space: normal;
    text-wrap: pretty;
  }

  .problem-quote-detail {
    font-size: 1.0625rem;
    line-height: 1.6;
  }

  .engagement-cards {
    gap: 0;
  }

  .engagement-card + .engagement-card {
    margin-top: 1.5rem;
  }

  .help-layout {
    gap: 3rem;
  }

  /* Undo phone-only rules that reach iPad mini (744-768px) */
  .btn-text-desktop {
    display: inline;
  }

  .btn-text-mobile {
    display: none;
  }

  .experience-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .section-title {
    font-size: 2.5rem;
    line-height: 1.15;
    letter-spacing: var(--serif-tracking);
    text-wrap: balance;
  }

  .section-problems .section-title {
    font-size: 2.5rem;
    line-height: 1.15;
    letter-spacing: var(--serif-tracking);
  }

  .section-testimonials .section-title {
    font-size: 2.25rem;
  }

  /* Remaining flex gaps */
  .testimonial-nav {
    gap: 0;
  }

  .testimonial-dot + .testimonial-dot {
    margin-left: 0.5rem;
  }

  .testimonial-attribution {
    gap: 0;
  }

  .testimonial-role {
    margin-top: 0.25rem;
  }

  .footer-brand {
    gap: 0;
  }

  .footer-sub {
    margin-top: 0.75rem;
  }

  .footer-links {
    gap: 0;
  }

  .footer-links a + a {
    margin-left: 2rem;
  }
}

/* Tablet landscape */
@media (min-width: 1024px) and (max-width: 1366px) and (min-height: 600px) and (pointer: coarse) {
  .container,
  .hero-inner,
  .nav {
    padding-left: 4rem;
    padding-right: 4rem;
  }

  .hero-title {
    font-size: 3.75rem;
  }

  .hero-title-line {
    white-space: nowrap;
    font-size: inherit;
  }

  .section-title,
  .section-problems .section-title {
    font-size: 3rem;
  }

  .problems-grid {
    grid-template-columns: 1fr;
    grid-auto-flow: row;
  }
}

/* Tablet landscape wide enough for the full nav bar */
@media (min-width: 901px) and (max-width: 1366px) and (min-height: 600px) and (pointer: coarse) {
  .nav {
    gap: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .nav a + a {
    margin-left: 2rem;
  }
}

/* Phones: hero fills the first screen (after tablet rules so it always wins on small touch viewports) */
@media (max-width: 768px), (max-width: 900px) and (max-height: 520px) and (pointer: coarse) {
  .hero {
    display: grid;
    align-content: center;
    box-sizing: border-box;
    min-height: calc(var(--vh, 1vh) * 100);
    /* iPhone: --hero-h is the screen height so navy fills behind Safari's floating toolbar (set in index.html) */
    min-height: max(calc(var(--vh, 1vh) * 100), var(--hero-h, 0px));
    padding-top: calc(4.5rem + env(safe-area-inset-top, 0px));
    /* --hero-extra keeps the content centred in the visible area above the toolbar */
    padding-bottom: calc(1.75rem + env(safe-area-inset-bottom, 0px) + var(--hero-extra, 0px));
  }
}

/* =============================================
   Desktop: Problems, How I help, Testimonials and
   About each fit one screen. Mouse/trackpad
   devices only, so tablets and phones are
   unaffected.
   ============================================= */
@media (min-width: 901px) and (pointer: fine) {
  .section-problems,
  .section-help,
  .section-testimonials,
  .section-about {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding-top: calc(4.5rem + 3rem);
    padding-bottom: 3rem;
  }

  .section-about.section-about-credibility {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .section-about-credibility .container {
    width: 100%;
    max-width: 1180px;
    padding-inline: clamp(1rem, 2.25vw, 2rem);
  }

  .section-about-credibility .about-credibility {
    align-items: stretch;
    gap: clamp(1.125rem, 2.25vw, 2rem);
    grid-template-columns: minmax(190px, 252px) minmax(0, 1fr);
  }

  .section-about-credibility .about-photo {
    max-width: none;
    width: 100%;
    display: flex;
  }

  .section-about-credibility .about-photo-img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    max-height: none;
    object-fit: cover;
  }

  .section-about-credibility .section-label {
    margin-bottom: 0.75rem;
  }

  .section-about-credibility .section-title {
    font-size: clamp(1.75rem, 2.2vw, 2.35rem);
    line-height: 1.2;
    margin-bottom: 1.25rem;
  }

  .section-about-credibility .about-text {
    gap: 1.125rem;
  }

  .section-about-credibility .about-text p {
    font-size: 1rem;
    line-height: 1.72;
  }

  .section-about-credibility .about-stats {
    margin-top: 2rem;
    padding-top: 1.75rem;
    gap: 1.25rem 1.75rem;
  }

  .section-about-credibility .about-stat-value {
    font-size: 1.25rem;
    margin-bottom: 0.4375rem;
  }

  .section-about-credibility .about-stat-companies-line + .about-stat-companies-line {
    margin-top: 0.3125rem;
  }

  .section-about-credibility .about-stat-label {
    font-size: 0.8125rem;
    line-height: 1.35;
  }
}

/* Shorter desktop screens: tighten spacing so each section still fits */
@media (min-width: 901px) and (max-height: 860px) and (pointer: fine) {
  .section-problems,
  .section-help,
  .section-testimonials,
  .section-about {
    padding-top: calc(4.5rem + 1.25rem);
    padding-bottom: 1.25rem;
  }

  .section-problems .section-header {
    margin-bottom: 3vh;
  }

  .section-problems .section-label,
  .section-help .section-label {
    margin-bottom: 1.5vh;
  }

  .problem-cell {
    padding: 2.5vh clamp(1rem, 2vw, 1.75rem);
  }

  .help-bridge {
    margin-top: 2vh;
  }

  .engagement-cards {
    gap: 1.5vh;
  }

  .engagement-card {
    padding: 2.5vh 2rem;
  }

  .section-testimonials .section-header {
    margin-bottom: 3vh;
  }

  .section-testimonials .section-label {
    margin-bottom: 1.5vh;
  }

  .testimonial-text {
    margin-bottom: 2vh;
  }

  .testimonial-nav {
    margin-top: 2.5vh;
  }

  .section-about.section-about-credibility {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .section-about-credibility .about-credibility {
    grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
  }

  .section-about-credibility .section-title {
    font-size: clamp(1.5rem, 2vw, 2rem);
    margin-bottom: 1rem;
  }

  .section-about-credibility .about-text {
    gap: 1rem;
  }

  .section-about-credibility .about-text p {
    font-size: 0.9375rem;
    line-height: 1.65;
  }

  .section-about-credibility .about-stats {
    margin-top: 1.5rem;
    padding-top: 1.375rem;
  }
}
                     