/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --off-white: #F8F5EF;
  --sand:      #EEE4D3;
  --beige:     #E3D6BE;
  --paper:     #FFFFFF;

  --olive:       #5B6146;
  --olive-deep:  #454935;
  --olive-light: #8C9370;
  --olive-mist:  rgba(91,97,70,0.08);

  --gold:      #B3894A;
  --gold-deep: #8F6D38;
  --gold-mist: rgba(179,137,74,0.12);

  --charcoal:      #232320;
  --charcoal-soft: #4A473F;
  --charcoal-mute: #837E70;

  --line: rgba(35,35,32,0.12);
  --line-light: rgba(247,244,238,0.22);

  --serif: "Fraunces", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --container: 1180px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; font-family: var(--serif); font-weight: 500; }
em { font-style: italic; color: var(--olive); font-weight: 400; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--olive); color: var(--off-white); }

:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.2rem; background: var(--charcoal); color: var(--off-white);
  border-radius: 6px; font-weight: 500; transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 800px; }

.kicker {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal-mute);
  margin-bottom: 1.25rem;
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 22px; height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}
.section--told .kicker, .section--book .kicker { justify-content: center; }

.section {
  padding-block: clamp(4.5rem, 10vw, 8.5rem);
}
.section-title {
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  max-width: 18ch;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.container--narrow .section-title { max-width: 100%; }

/* =============================================================
   4. Reveal / split-text effects
   ============================================================= */
[data-reveal] {
  opacity: 0; transform: translateY(32px);
  transition: opacity .9s var(--ease-soft), transform .9s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
/* Defensive: split elements must never stay invisible even if reveal JS is stale */
.reveal[data-split], [data-reveal][data-split] { opacity: 1; transform: none; }

.split-word, .split-char {
  display: inline-block;
  will-change: transform, opacity;
}
.split-line-wrap { display: block; overflow: hidden; }
.split-line { display: inline-block; will-change: transform, opacity; }

.photo-frame--mask { clip-path: inset(0 0 6% 0); transition: clip-path 1.2s var(--ease-soft); }
.photo-frame--mask.is-revealed { clip-path: inset(0); }

/* =============================================================
   5. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1rem 2rem;
  font-size: 0.95rem; font-weight: 500;
  border-radius: 999px;
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background-color .3s var(--ease-out), color .3s var(--ease-out);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); transition-duration: .12s; }

.btn-primary, .btn-light {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-primary::before, .btn-light::before {
  content: "";
  position: absolute; top: 0; left: -60%; width: 35%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-18deg);
  animation: ctaSheen 5s ease-in-out infinite;
  animation-delay: 1.2s;
  pointer-events: none;
}
@keyframes ctaSheen {
  0%   { left: -60%; }
  30%  { left: 130%; }
  100% { left: 130%; }
}

.btn-primary {
  background: var(--olive);
  color: var(--off-white);
  box-shadow: 0 10px 26px -10px rgba(69,73,53,0.55);
  animation: ctaGlow 3.4s ease-in-out infinite;
}
.btn-primary:hover { background: var(--olive-deep); box-shadow: 0 20px 40px -14px rgba(69,73,53,0.6); }
@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 10px 26px -10px rgba(69,73,53,0.55); }
  50%      { box-shadow: 0 12px 32px -8px rgba(179,137,74,0.5), 0 10px 26px -10px rgba(69,73,53,0.5); }
}

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--olive); color: var(--olive-deep); }

.btn-light { background: var(--off-white); color: var(--olive-deep); }
.btn-light:hover { background: var(--paper); }

.btn-outline-light { border: 1px solid var(--line-light); color: var(--off-white); }
.btn-outline-light:hover { border-color: var(--off-white); background: rgba(247,244,238,0.08); }

.btn-small { padding: .65rem 1.4rem; font-size: 0.85rem; }
.btn-small::before { display: none; }

/* =============================================================
   6. Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  padding-block: 1.1rem;
  transition: background-color .4s var(--ease-out), box-shadow .4s var(--ease-out), padding .4s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(248,245,239,0.88);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 0.75rem;
}
.nav-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.nav-brand { display: inline-flex; align-items: center; }
.brand-logo { height: 46px; width: auto; }
.brand-logo--green { display: none; }
.nav.is-scrolled .brand-logo--white { display: none; }
.nav.is-scrolled .brand-logo--green { display: inline-block; }
.nav-links { display: none; align-items: center; gap: 2.1rem; font-size: 0.9rem; }
.nav-links a { position: relative; padding: .25rem 0; transition: color .3s var(--ease-out); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav-links a:hover { color: var(--gold-deep); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
[data-nav-cta] { display: none; }

.nav-toggle {
  display: flex; flex-direction: column; gap: 5px; padding: 8px;
  width: 40px; height: 40px; align-items: center; justify-content: center;
}
.nav-toggle span { width: 20px; height: 1.5px; background: var(--charcoal); transition: transform .3s var(--ease-out), opacity .3s var(--ease-out); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 90;
  background: var(--charcoal); color: var(--off-white);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.8rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-soft);
}
.nav-mobile[data-open="true"] { clip-path: inset(0); }
.nav-mobile a { font-family: var(--serif); font-size: 1.6rem; }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  [data-nav-cta] { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* scroll progress */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; background: transparent; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--olive); transform-origin: 0 0; transform: scaleX(0); }

/* =============================================================
   7. Photo frames (with graceful placeholder fallback)
   ============================================================= */
.photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--sand);
}
.photo-frame__img {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%;
  object-fit: cover; object-position: center 25%;
}
.photo-frame__img.is-broken { display: none; }
.photo-frame__fallback {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(155deg, var(--sand) 0%, var(--beige) 100%);
  display: flex; align-items: center; justify-content: center;
}
.photo-frame__fallback::after {
  content: "B";
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(3rem, 8vw, 5.5rem);
  color: rgba(91,97,70,0.28);
}
.photo-frame__fallback::before {
  content: "";
  position: absolute; inset: 14px;
  border: 1px solid rgba(91,97,70,0.18);
}

.photo-frame--hero { position: absolute; inset: 0; border-radius: 0; }
.photo-frame--about { aspect-ratio: 4/5; }
.photo-frame--about-tall { aspect-ratio: 3/4; margin-bottom: 1.5rem; }
.photo-frame--about-tall .photo-frame__img { object-position: center 12%; }

/* =============================================================
   8. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
  color: var(--off-white);
}
.hero-media { position: absolute; inset: 0; z-index: 0; background: var(--charcoal); }
.hero-media .photo-frame__img { animation: heroAmbientZoom 26s ease-in-out infinite; }
.photo-frame__img--banner { object-fit: cover; object-position: 80% 30%; }
.photo-frame__img--desktop { display: none; }
@media (min-width: 720px) {
  .photo-frame__img--mobile { display: none; }
  .photo-frame__img--desktop { display: block; }
}
@keyframes heroAmbientZoom {
  0%, 100% { transform: scale(1.04) translate3d(0,0,0); }
  50%      { transform: scale(1.09) translate3d(-1%,-1%,0); }
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(35,35,32,0.82) 0%, rgba(35,35,32,0.35) 46%, rgba(35,35,32,0.12) 68%, rgba(35,35,32,0.28) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  width: 100%;
  padding: clamp(7rem, 16vh, 10rem) var(--gutter) clamp(4.5rem, 12vh, 7rem);
}
.hero-content .kicker { color: rgba(248,245,239,0.72); }
.hero-title {
  font-size: clamp(2.4rem, 6.6vw, 5.4rem);
  max-width: 15ch;
  color: var(--off-white);
  margin-bottom: 1.6rem;
}
.hero-sub {
  max-width: 46ch;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(248,245,239,0.86);
  margin-bottom: 2.3rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-actions .btn-ghost { color: var(--off-white); border-color: var(--line-light); }
.hero-actions .btn-ghost:hover { border-color: var(--off-white); }

.hero-scroll {
  position: absolute; right: var(--gutter); bottom: 2rem; z-index: 1;
  display: flex; align-items: center; gap: .7rem;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(248,245,239,0.75);
  writing-mode: vertical-rl;
}
.hero-scroll span {
  width: 1px; height: 42px; background: rgba(248,245,239,0.4);
  position: relative; overflow: hidden;
}
.hero-scroll span::after {
  content: ""; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--off-white);
  animation: scrollLine 2.6s var(--ease-soft) infinite;
}
@keyframes scrollLine {
  0% { top: -100%; } 60% { top: 100%; } 100% { top: 100%; }
}

/* =============================================================
   9. Question cards
   ============================================================= */
.question-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
.question-card {
  padding: clamp(1.8rem, 3vw, 2.6rem);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  transition: transform .5s var(--ease-soft), border-color .4s var(--ease-out), box-shadow .5s var(--ease-soft);
}
.question-card:hover {
  transform: translateY(-6px);
  border-color: var(--olive);
  box-shadow: 0 30px 60px -30px rgba(35,35,32,0.25);
}
.question-mark {
  display: block; font-family: var(--serif); font-style: italic;
  font-size: 1.1rem; color: var(--olive-light); margin-bottom: 1rem;
}
.question-card h3 {
  font-size: 1.25rem; margin-bottom: 0.85rem; font-weight: 500;
}
.question-card p { color: var(--charcoal-soft); font-size: 0.95rem; }

@media (min-width: 720px) {
  .question-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================================
   10. Concept diagram
   ============================================================= */
.concept-flow {
  display: flex; flex-direction: column; align-items: center;
  margin-block: clamp(3rem, 7vw, 5rem);
}
.concept-step {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 0.6rem 0;
}
.concept-num { font-size: 0.75rem; color: var(--charcoal-mute); letter-spacing: 0.08em; }
.concept-label { font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 1.9rem); }
.concept-step--final .concept-label { color: var(--gold-deep); font-style: italic; }
.concept-step--final .concept-num { color: var(--gold); }
.concept-connector {
  width: 1px; height: 32px;
  background: linear-gradient(var(--line), var(--line));
  position: relative;
}
.concept-connector::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}
.concept-note {
  max-width: 62ch; margin-inline: auto; text-align: center;
  color: var(--charcoal-soft); font-size: 1.02rem;
}

/* =============================================================
   11. Book section
   ============================================================= */
.section--book { background: var(--sand); text-align: center; }
.section--book .kicker { text-align: center; }
.book-title { font-size: clamp(2.6rem, 7vw, 4.6rem); font-style: italic; margin-bottom: 1.5rem; }
.book-sub { max-width: 52ch; margin: 0 auto clamp(3rem, 7vw, 5rem); color: var(--charcoal-soft); font-size: 1.05rem; }

.book-showcase {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  margin-bottom: clamp(3.5rem, 8vw, 6rem);
}
.book-stage, .kindle-stage { perspective: 1400px; }

.book-mock {
  width: min(240px, 62vw); aspect-ratio: 297/462;
  border-radius: 3px 8px 8px 3px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transform: rotateY(-18deg) rotateX(2deg);
  transform-style: preserve-3d;
  box-shadow:
    18px 24px 55px -16px rgba(35,35,32,0.45),
    inset -3px 0 0 rgba(0,0,0,0.15);
  transition: transform .7s var(--ease-soft);
}
.book-mock__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.book-mock::before {
  content: ""; position: absolute; right: -6px; top: 4px; bottom: 4px; width: 6px; z-index: 1;
  background: repeating-linear-gradient(180deg, var(--off-white), var(--off-white) 1px, var(--sand) 1px, var(--sand) 2px);
  border-radius: 0 3px 3px 0;
}
.book-showcase:hover .book-mock { transform: rotateY(-10deg) rotateX(1deg); }

.kindle-mock { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.kindle-mock__bezel {
  width: min(200px, 52vw); aspect-ratio: 3/4.1;
  background: var(--charcoal);
  border-radius: 14px;
  padding: 10px;
  transform: rotateY(14deg) rotateX(2deg);
  transform-style: preserve-3d;
  box-shadow: 14px 20px 45px -14px rgba(35,35,32,0.4);
  transition: transform .7s var(--ease-soft);
  position: relative;
}
.book-showcase:hover .kindle-mock__bezel { transform: rotateY(8deg) rotateX(1deg); }
.kindle-mock__dot { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--gold); z-index: 1; }
.kindle-mock__screen {
  width: 100%; height: 100%;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
.kindle-mock__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kindle-mock__label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--charcoal-mute); }

.book-contents { margin-bottom: clamp(3.5rem, 8vw, 6rem); }
.book-contents__label { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--charcoal-mute); margin-bottom: 1.5rem; }
.book-contents__list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 2.5rem;
}
.book-contents__list li {
  font-family: var(--serif); font-size: clamp(1.05rem, 2vw, 1.3rem);
  padding-bottom: 0.4rem; border-bottom: 1px solid var(--line);
}
.book-statement {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.7rem, 4.4vw, 2.8rem); line-height: 1.2;
  max-width: 20ch; margin: 0 auto clamp(3rem, 7vw, 4.5rem);
  color: var(--olive-deep);
}

/* =============================================================
   12. Told section
   ============================================================= */
.section--told { text-align: center; }
.section--told .kicker, .section--told .section-title { text-align: center; margin-inline: auto; }
.told-text { max-width: 62ch; margin: 0 auto 2.5rem; color: var(--charcoal-soft); font-size: 1.05rem; }

/* =============================================================
   13. Method
   ============================================================= */
.method-steps {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-bottom: clamp(3rem, 7vw, 4.5rem);
  padding-block: 2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.method-steps li { display: flex; align-items: flex-start; gap: 1rem; }
.method-steps__num { font-family: var(--serif); font-style: italic; color: var(--olive-light); font-size: 1.1rem; }
.method-steps__label { font-family: var(--serif); font-size: clamp(1.2rem, 2.6vw, 1.55rem); }
.method-intro { color: var(--charcoal-soft); margin-bottom: clamp(2.5rem, 6vw, 3.5rem); max-width: 58ch; }

.service-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.service-card {
  --card-accent: var(--olive);
  padding: clamp(1.8rem, 3vw, 2.4rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--card-accent);
  border-radius: 6px;
  transition: transform .5s var(--ease-soft), border-color .4s, box-shadow .5s var(--ease-soft);
}
.service-card:nth-child(1) { --card-accent: var(--olive); }
.service-card:nth-child(2) { --card-accent: var(--gold); }
.service-card:nth-child(3) { --card-accent: var(--gold-deep); }
.service-card:nth-child(4) { --card-accent: var(--olive-deep); }
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--card-accent);
  box-shadow: 0 30px 60px -30px rgba(35,35,32,0.25);
}
.service-card:hover { box-shadow: 0 30px 60px -26px color-mix(in srgb, var(--card-accent) 40%, rgba(35,35,32,0.28)); }
.service-card h3 { font-size: 1.15rem; margin-bottom: 0.7rem; display: flex; align-items: center; gap: 0.6rem; }
.service-card h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--card-accent); flex-shrink: 0; }
.service-card p { color: var(--charcoal-soft); font-size: 0.92rem; }

@media (min-width: 720px) {
  .method-steps { grid-template-columns: repeat(4, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1280px) {
  .service-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =============================================================
   14. About
   ============================================================= */
.section--about { background: var(--sand); }
.about-grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.about-text { display: flex; flex-direction: column; gap: 1.8rem; }
.about-text p { color: var(--charcoal-soft); font-size: 1.02rem; }
.about-media { display: flex; flex-direction: column; }
.about-closing { max-width: 62ch; color: var(--charcoal-soft); font-size: 1.02rem; }

@media (min-width: 960px) {
  .about-grid { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
}

/* =============================================================
   15. Testimonials
   ============================================================= */
.testimonial-list { display: flex; flex-direction: column; gap: clamp(3rem, 7vw, 4.5rem); }
.testimonial-list blockquote { position: relative; padding-left: 1.8rem; }
.testimonial-list blockquote::before {
  content: "\201C";
  position: absolute; left: 0; top: -0.4rem;
  font-family: var(--serif); font-style: italic; font-size: 2.6rem;
  color: var(--gold);
}
.testimonial-list blockquote p {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.05rem, 1.9vw, 1.3rem); line-height: 1.55;
  color: var(--charcoal); margin-bottom: 0.9rem;
}
.testimonial-list cite {
  display: block; margin-top: 0.4rem;
  font-style: normal; font-size: 0.85rem; letter-spacing: 0.06em;
  color: var(--charcoal-mute);
}

/* =============================================================
   16. CTA final
   ============================================================= */
.section--cta-final {
  background: var(--olive);
  color: var(--off-white);
  text-align: center;
  min-height: 90svh;
  display: flex; align-items: center;
}
.cta-final__title {
  font-size: clamp(2.1rem, 5.6vw, 3.8rem);
  max-width: 18ch; margin-inline: auto 2.5rem;
  color: var(--off-white);
  margin-bottom: 2.5rem;
}
.cta-final__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* =============================================================
   17. Footer
   ============================================================= */
.footer { background: var(--charcoal); color: var(--off-white); padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer-inner {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2rem;
}
.footer-brand { display: inline-flex; align-items: center; }
.footer-brand .brand-logo { height: 42px; width: auto; }

.footer-social { display: flex; gap: 1.3rem; }
.footer-social a, .footer-social span { color: var(--off-white); opacity: 0.8; transition: opacity .3s, color .3s; }
.footer-social a:hover { opacity: 1; color: var(--gold); }
.footer-social .is-disabled { opacity: 0.32; cursor: default; }

.footer-newsletter { width: 100%; max-width: 360px; }
.footer-newsletter label { display: block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--charcoal-mute); margin-bottom: 0.6rem; }
.footer-newsletter__row { display: flex; border-bottom: 1px solid var(--line-light); }
.footer-newsletter input {
  flex: 1; background: transparent; border: 0; color: var(--off-white);
  padding: 0.6rem 0; font-family: inherit; font-size: 0.95rem;
}
.footer-newsletter input::placeholder { color: rgba(248,245,239,0.4); }
.footer-newsletter button { font-size: 1.1rem; padding: 0.6rem 0.4rem; }
.footer-newsletter__msg { font-size: 0.82rem; color: var(--olive-light); margin-top: 0.6rem; min-height: 1.2em; }

.footer-rights { font-size: 0.78rem; color: var(--charcoal-mute); }

/* =============================================================
   18. Responsive — general refinements
   ============================================================= */
@media (min-width: 540px) {
  .footer-inner { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; text-align: left; row-gap: 2rem; }
  .footer-newsletter { max-width: 240px; }
  .footer-rights { flex-basis: 100%; text-align: center; }
}
@media (min-width: 1024px) {
  .footer-rights { flex-basis: auto; text-align: right; }
}

/* =============================================================
   19. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-scroll span::after { animation: none; }
  [data-reveal], .split-word, .split-char { transition-duration: .25s; }
}
