/* ========================================
   DESIGN TOKENS
   ======================================== */
:root {
  --bg: #F8FAFF;
  --primary: #84BCE8;
  --primary-dark: #5A9DD4;
  --accent: #82CCC0;
  --accent-light: #B5E2DA;
  --text: #1C2E4A;
  --text-mid: #4A6B8A;
  --surface: #EBF0FF;
  --surface-teal: #E5F5F2;
  --white: #FFFFFF;
  --border: #CBD8EE;
  --progress: #84BCE8;

  --font-display: 'Sora', sans-serif;
  --font-body: 'Sora', sans-serif;
  --font-accent: 'Fraunces', serif;

  --hero-size: clamp(2.5rem, 6vw, 4.5rem);
  --subtitle-size: clamp(1.5rem, 3vw, 2.2rem);
  --h2-size: clamp(1.75rem, 3.5vw, 2.5rem);
  --h3-size: clamp(1.2rem, 2vw, 1.5rem);
  --body-size: clamp(1rem, 1.2vw, 1.125rem);
  --chapter-label-size: 0.8rem;

  --section-padding: 5rem 2rem;
  --card-padding: 2.5rem;
  --panel-radius: 20px;
  --small-radius: 12px;

  --nav-height: 80px;

  /* Spine layout */
  --spine-width: 4px;
  --spine-offset: 3rem;        /* distance from left edge of page wrapper */
  --content-left-pad: 5.5rem;  /* content indented past the spine */
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--body-size);
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--text);
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.2;
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background: var(--bg);
  box-shadow: 0 1px 12px rgba(28, 46, 74, 0.06);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo img {
  height: 44px;
  width: auto;
  display: block;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.nav-logo-tagline {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-mid);
}

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

.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: color 0.2s ease;
}

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

.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 0.625rem 1.5rem;
  border-radius: var(--small-radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background: var(--primary-dark);
  color: var(--white) !important;
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transform-origin: center;
  transition: transform 220ms cubic-bezier(0.4, 0, 0.2, 1),
              opacity 180ms ease-out;
}

/* Hamburger → X animation (keyed off aria-expanded, toggled in js/main.js) */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.875rem 2rem;
  border-radius: var(--small-radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(90, 157, 212, 0.3);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary-dark);
  font-weight: 500;
  font-family: var(--font-display);
  transition: gap 0.2s ease;
}

.text-link:hover {
  gap: 0.7rem;
  color: var(--primary-dark);
}

.text-link .arrow {
  transition: transform 0.2s ease;
}

.text-link:hover .arrow {
  transform: translateX(3px);
}

/* ========================================
   CHAPTER LABEL (header motif)
   ======================================== */
.chapter-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.chapter-label span {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--chapter-label-size);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mid);
  white-space: nowrap;
}

.chapter-label .line {
  flex: 1;
  height: 1px;
  background: var(--border);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.6s ease;
}

.chapter-label.visible .line {
  transform: scaleX(1);
}

/* ========================================
   PAGE WRAPPER — contains the spine
   The spine is position:absolute within
   this relative container.
   ======================================== */
.page-wrapper {
  position: relative;
}

/* ========================================
   THE SPINE
   ======================================== */
.spine-line {
  /* 4px vertical bar down the left margin */
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--spine-offset);
  width: var(--spine-width);
  background: var(--border);
  /* Behind all content, above backgrounds */
  z-index: 10;
  pointer-events: none;
}

/* Each spine label: small number pinned to the bar */
.spine-label {
  position: absolute;
  left: calc(var(--spine-offset) - 1.25rem);
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Circle around the number */
  background: var(--bg);
  border: var(--spine-width) solid var(--border);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--text-mid);
  z-index: 11;
  pointer-events: none;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

/* JS adds .active when that section is the primary viewport occupant */
.spine-label.active {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: var(--white);
}

/* ========================================
   HERO — two-column, 60/40 split
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 2rem) 2rem 4rem;
  /* Left-align content, not centered */
  background: var(--bg);
  overflow: hidden;
}

/* Mesh gradient blobs */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  opacity: 0.08;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -15%;
  right: -10%;
  width: 55%;
  height: 55%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.08;
  pointer-events: none;
}

/* Grid: 60/40 */
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  /* indent past the spine on large screens */
  padding-left: var(--content-left-pad);
  display: grid;
  grid-template-columns: 60fr 40fr;
  gap: 3rem;
  align-items: center;
}

.hero-left {
  /* Content is already left-aligned by default */
}

.hero h1 {
  font-size: var(--hero-size);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 0.8s ease forwards;
  animation-delay: 0.2s;
}

.hero-subtitle {
  font-size: var(--subtitle-size);
  color: var(--text-mid);
  font-weight: 400;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 0.8s ease forwards;
  animation-delay: 0.35s;
}

.hero-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 0.8s ease forwards;
  animation-delay: 0.5s;
}

.hero-tagline {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-mid);
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 0.8s ease forwards;
  animation-delay: 0.65s;
}

.hero-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 0.8s ease forwards;
  animation-delay: 0.05s;
}

.hero-illustration {
  height: clamp(220px, 28vw, 380px);
  width: auto;
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   JOURNEY — stacked chapter cards
   ======================================== */
.journey-section {
  padding: 5rem 2rem;
  background: var(--bg);
}

.journey-section .section-header {
  text-align: center;
  margin-bottom: 3rem;
  /* Center the header relative to the wider content area */
  padding-left: var(--content-left-pad);
}

.journey-section .section-header h2 {
  font-size: var(--h2-size);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.journey-section .section-header p {
  color: var(--text-mid);
  max-width: 500px;
  margin: 0 auto;
}

/* Stack of chapter cards */
.journey-cards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 900px;
  /* Center relative to the full content area (after spine offset) */
  margin: 0 auto;
  padding-left: var(--content-left-pad);
}

.journey-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 4px 32px rgba(28, 46, 74, 0.07), 0 1px 4px rgba(28, 46, 74, 0.04);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 220px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.journey-card:nth-child(1) { background: var(--surface-teal); }
.journey-card:nth-child(2) { background: var(--surface); }
.journey-card:nth-child(3) { background: #C9DCFA; }

/* Large ambient chapter numeral behind left column */
.journey-card-left {
  position: relative;
  padding: 2.5rem 2rem 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.card-numeral {
  /* Decorative large number positioned behind text */
  position: absolute;
  top: 50%;
  left: -0.25em;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(5rem, 10vw, 8rem);
  color: var(--text-mid);
  opacity: 0.18;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.journey-card-left .chapter-label,
.journey-card-left h3 {
  position: relative;
  z-index: 1;
}

.journey-card-left h3 {
  font-size: var(--h3-size);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Right column: list + link */
.journey-card-right {
  padding: 2.5rem 2.5rem 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Slight white overlay to separate from bg color */
  background: rgba(255, 255, 255, 0.35);
}

.journey-card-right ul {
  margin-bottom: 1.25rem;
}

.journey-card-right ul li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--text-mid);
  margin-bottom: 0.4rem;
  line-height: 1.65;
  font-size: 0.95rem;
}

.journey-card-right ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-dark);
}

/* ========================================
   SERVICES — two-column sticky nav
   ======================================== */
.services-section {
  padding: var(--section-padding);
  background: var(--white);
}

.services-section .section-header {
  text-align: center;
  margin-bottom: 3.5rem;
  padding-left: var(--content-left-pad);
}

.services-section .section-header h2 {
  font-size: var(--h2-size);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.services-section .section-header p {
  color: var(--text-mid);
  max-width: 550px;
  margin: 0 auto;
}

/* Two-column layout for services */
.services-inner {
  max-width: 960px;
  margin: 0 auto;
  padding-left: var(--content-left-pad);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 4rem;
  align-items: start;
}

/* Left: sticky vertical category nav */
.service-nav {
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.service-nav-item {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: 0.5rem 0.75rem;
  border-left: 3px solid transparent;
  border-radius: 0 6px 6px 0;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  cursor: pointer;
  background: none;
  border-top: none;
  border-right: none;
  border-bottom: none;
  text-align: left;
  line-height: 1.4;
}

.service-nav-item:hover {
  color: var(--text);
  background: var(--surface);
  border-left-color: var(--border);
}

.service-nav-item.active {
  color: var(--primary-dark);
  font-weight: 600;
  border-left-color: var(--primary);
  background: var(--surface);
}

/* Right: stacked service detail blocks */
.service-blocks {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.service-block {
  padding: var(--card-padding);
  border-radius: var(--panel-radius);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.service-block.bg-surface { background: var(--surface); }
.service-block.bg-teal    { background: var(--surface-teal); }
.service-block.bg-white   {
  background: var(--bg);
  box-shadow: 0 2px 16px rgba(28, 46, 74, 0.04);
}

.service-block h3 {
  font-size: var(--h3-size);
  font-weight: 600;
  margin-bottom: 1rem;
}

.service-block p {
  color: var(--text-mid);
  margin-bottom: 1rem;
}

.service-block ul li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--text-mid);
  margin-bottom: 0.35rem;
  line-height: 1.7;
}

.service-block ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-dark);
}

.service-subgroup {
  margin-top: 1rem;
}

.service-subgroup h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

/* ========================================
   TESTIMONIALS — three-column grid
   ======================================== */
.testimonials-section {
  padding: var(--section-padding);
  background: var(--surface);
}

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

.testimonials-section .section-header h2 {
  font-size: var(--h2-size);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.testimonial-featured {
  max-width: 820px;
  margin: 0 auto 3rem;
  background: var(--white);
  border-radius: var(--panel-radius);
  padding: 2.5rem 3rem;
  box-shadow: 0 2px 16px rgba(28, 46, 74, 0.04);
  border-left: 4px solid var(--primary);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.testimonial-featured blockquote {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.testimonial-featured blockquote::before {
  content: '\201C';
  font-size: 2.5rem;
  color: var(--primary);
  line-height: 0;
  display: block;
  margin-bottom: 0.5rem;
}

.testimonial-featured .testimonial-author {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.testimonial-featured .testimonial-role {
  font-size: 0.8rem;
  color: var(--text-mid);
  font-weight: 400;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--panel-radius);
  padding: 2rem 2.25rem;
  box-shadow: 0 2px 16px rgba(28, 46, 74, 0.04);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.testimonial-card blockquote {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.testimonial-card blockquote::before {
  content: '\201C';
  font-size: 2.5rem;
  color: var(--primary);
  line-height: 0;
  display: block;
  margin-bottom: 0.5rem;
}

.testimonial-author {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-mid);
  font-weight: 400;
}

/* ========================================
   ABOUT — two-column, 50/50
   ======================================== */
.about-section {
  background: var(--surface-teal);
  padding: var(--section-padding);
}

.about-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-left {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Large Fraunces italic opener */
.about-opener {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: var(--h2-size);
  color: var(--text);
  margin-bottom: 1.5rem;
  font-weight: 400;
  line-height: 1.25;
}

.about-left p {
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

/* Right: 2x3 pill chip grid */
.about-right {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: 0.12s;
}

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

.about-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

.about-chip {
  background: var(--white);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  border-radius: 100px;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 1px 8px rgba(28, 46, 74, 0.05);
}

/* ========================================
   CONTACT — centered narrow column
   ======================================== */
.contact-section {
  background: var(--bg);
  padding: var(--section-padding);
  padding-bottom: 6rem;
  text-align: center;
}

.contact-inner {
  max-width: 500px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.contact-section h2 {
  font-size: var(--h2-size);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.contact-section > .contact-inner > p {
  color: var(--text-mid);
  margin-bottom: 2rem;
}

.contact-email-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  padding: 0.9rem 1.6rem;
  margin-top: 0.5rem;
  /* Inherits .btn-primary background/color/radius/transition */
}

.contact-email-cta svg {
  width: 20px;
  height: 20px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2;
}

.contact-email-cta span {
  word-break: break-all;
}

.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-phone:hover {
  color: var(--primary-dark);
}

.contact-phone svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.contact-availability {
  color: var(--text-mid);
  margin-top: 1.75rem;
  font-size: 0.95rem;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.6);
  padding: 2rem;
  text-align: center;
  font-size: 0.85rem;
}

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

.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

/* ========================================
   SCROLL REVEAL — shared fade-up
   ======================================== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ========================================
   RESPONSIVE — tablet breakpoint (covers iPad portrait widths)
   ======================================== */
@media (max-width: 820px) {
  :root {
    /* Remove spine indent on mobile — spine hides */
    --content-left-pad: 0rem;
  }

  /* Hide the spine on mobile */
  .spine-line,
  .spine-label {
    display: none;
  }

  /* Nav: hamburger — always rendered, animated in/out via max-height + opacity */
  .nav-links {
    display: flex;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: 0 8px 24px rgba(28, 46, 74, 0.08);
    z-index: 999;

    /* Closed state */
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 2rem;
    padding-right: 2rem;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transform: translateY(-4px);
    transition:
      max-height 240ms cubic-bezier(0.4, 0, 0.2, 1),
      padding-top 240ms cubic-bezier(0.4, 0, 0.2, 1),
      padding-bottom 240ms cubic-bezier(0.4, 0, 0.2, 1),
      opacity 160ms ease-out,
      transform 200ms cubic-bezier(0.4, 0, 0.2, 1),
      visibility 0s linear 240ms;
  }

  .nav-links.open {
    max-height: 420px;
    padding-top: 2rem;
    padding-bottom: 2rem;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition:
      max-height 240ms cubic-bezier(0.4, 0, 0.2, 1),
      padding-top 240ms cubic-bezier(0.4, 0, 0.2, 1),
      padding-bottom 240ms cubic-bezier(0.4, 0, 0.2, 1),
      opacity 180ms ease-out 40ms,
      transform 200ms cubic-bezier(0.4, 0, 0.2, 1),
      visibility 0s linear;
  }

  .nav-toggle {
    display: block;
  }

  /* Hero: stack vertically */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-right {
    justify-content: center;
    order: -1; /* illustration above text on mobile */
  }

  .hero-illustration {
    height: clamp(160px, 40vw, 240px);
  }

  .hero-cta-wrap {
    align-items: flex-start;
  }

  /* Journey: stack card columns */
  .journey-section .section-header {
    padding-left: 0;
    text-align: center;
  }

  .journey-cards {
    padding-left: 0;
  }

  .journey-card {
    grid-template-columns: 1fr;
  }

  .journey-card-right {
    padding-top: 0;
    padding-left: 2rem;
  }

  /* Services: left nav becomes horizontal scroll tabs */
  .services-section .section-header {
    padding-left: 0;
  }

  .services-inner {
    grid-template-columns: 1fr;
    padding-left: 0;
    gap: 2rem;
  }

  .service-nav {
    position: relative;
    top: 0;
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    padding-bottom: 0.5rem;
    /* Hide scrollbar visually but keep it functional */
    scrollbar-width: none;
  }

  .service-nav::-webkit-scrollbar {
    display: none;
  }

  .service-nav-item {
    /* Horizontal tab style */
    border-left: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 0.75rem 1rem;
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 44px;
  }

  .service-nav-item:hover,
  .service-nav-item.active {
    border-left: none;
    border-bottom-color: var(--primary);
    background: transparent;
  }

  /* Testimonials: single column */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* About: single column */
  .about-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ========================================
   RESPONSIVE — 600px breakpoint (fine-tune)
   ======================================== */
@media (max-width: 600px) {
  :root {
    --section-padding: 3.5rem 1.25rem;
    --card-padding: 1.75rem;
  }

  .hero {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .about-chips {
    grid-template-columns: 1fr;
  }

  .contact-email-cta {
    font-size: 0.85rem;
    padding: 0.85rem 1.2rem;
    max-width: 100%;
  }

  .contact-email-cta span {
    word-break: normal;
    overflow-wrap: anywhere;
  }
}

/* ========================================
   SCROLL HINT — desktop only
   ======================================== */
.scroll-hint {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  opacity: 0.18;
  transition: opacity 0.6s ease;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.scroll-hint.hidden {
  opacity: 0;
}

.scroll-hint svg {
  width: 320px;
  height: 80px;
  stroke: var(--primary);
  stroke-width: 1.5;
  animation: scroll-bob 2.5s ease-in-out infinite;
}

@keyframes scroll-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

@media (max-width: 900px) {
  .scroll-hint { display: none; }
}

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  /* Show all animated elements immediately */
  .fade-up,
  .service-block,
  .testimonial-featured,
  .testimonial-card,
  .journey-card,
  .about-left,
  .about-right,
  .contact-inner {
    opacity: 1;
    transform: none;
  }

  .hero h1,
  .hero-subtitle,
  .hero-cta-wrap,
  .hero-tagline,
  .hero-right {
    opacity: 1;
    transform: none;
  }

  .chapter-label .line {
    transform: scaleX(1);
  }

  .spine-label {
    transition: none;
  }
}

/* ========================================
   FOOTER COPYRIGHT
   ======================================== */
.footer-copyright {
  margin-top: 0.5rem;
}
