/* =========================================================
   HOMEPAGE — ELEGANT REDESIGN
   Palette taken from the logo (#5E2A41 plum) and the
   portrait backdrop (#EBDFDF blush). Loaded on index.html only.
   ========================================================= */

:root {
  --plum: #5E2A41;            /* logo colour */
  --plum-deep: #3D1A2B;
  --plum-ink: #2A1220;
  --plum-soft: #8B6377;
  --blush: #EBDFDF;           /* portrait backdrop */
  --blush-light: #F5EDEC;
  --ivory: #FCF8F5;
  --gold: #7D5C1E;            /* deep antique gold: 5.8:1 on ivory */
  --gold-light: #D9C08E;
  --ink: #1F1218;
  --ink-soft: #4A3540;
  --hair: rgba(94, 42, 65, 0.16);
  --h-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body.home { background: var(--ivory); }

/* Nav sits on the blush hero before scrolling */
body.home .nav:not(.nav--scrolled) {
  background: rgba(235, 223, 223, 0.72);
  border-bottom-color: transparent;
}

/* ---------- Shared homepage primitives ---------- */
.h-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.h-container--narrow { max-width: 860px; }

.h-section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.h-section--ivory { background: var(--ivory); }
.h-section--blush { background: var(--blush-light); }

.h-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--plum);
  line-height: 1.4;
}

.h-rule {
  display: block;
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: var(--space-lg) 0;
}

.h-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.h-head--center { text-align: center; }
.h-head--center .h-rule { margin-left: auto; margin-right: auto; }
.h-head .h-rule:last-child { margin-bottom: 0; }

.h-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.h-lead {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: var(--space-lg) 0 var(--space-2xl);
}

/* ---------- Buttons ---------- */
.h-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0 2rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background 0.4s var(--h-ease), color 0.4s var(--h-ease),
              border-color 0.4s var(--h-ease), transform 0.4s var(--h-ease),
              box-shadow 0.4s var(--h-ease);
}
.h-btn .arrow { transition: transform 0.4s var(--h-ease); }
.h-btn:hover .arrow { transform: translateX(4px); }

.h-btn--solid { background: var(--plum); color: #fff; }
.h-btn--solid:hover {
  background: var(--plum-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -12px rgba(94, 42, 65, 0.55);
}

.h-btn--line { border-color: var(--plum); color: var(--plum); background: transparent; }
.h-btn--line:hover { background: var(--plum); color: #fff; transform: translateY(-2px); }

.h-btn--light { background: #fff; color: var(--plum); }
.h-btn--light:hover { background: var(--blush); color: var(--plum-deep); transform: translateY(-2px); }

.h-btn--ghost-light { border-color: rgba(217, 192, 142, 0.7); color: var(--gold-light); }
.h-btn--ghost-light:hover { background: var(--gold-light); color: var(--plum-deep); border-color: var(--gold-light); }

.h-textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-xl);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--plum);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}
.h-textlink:hover { color: var(--plum-deep); border-bottom-color: var(--plum); }
.h-textlink .arrow { transition: transform 0.4s var(--h-ease); }
.h-textlink:hover .arrow { transform: translateX(4px); }

/* ---------- Hero ---------- */
.h-hero {
  position: relative;
  background: var(--blush);
  padding-top: var(--nav-height);
  overflow: hidden;
}

.h-hero__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) var(--gutter) 0;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  min-height: calc(min(100dvh, 920px) - var(--nav-height));
}

.h-hero__content {
  align-self: center;
  padding-bottom: clamp(2rem, 5vw, 4rem);
  animation: hRise 1s var(--h-ease) both;
}

.h-hero__name {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6.4vw, 5.75rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: var(--space-lg) 0 var(--space-xl);
}
.h-hero__name em {
  font-style: italic;
  font-weight: 400;
  color: var(--plum);
}

.h-hero__intro {
  max-width: 34rem;
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.8;
  color: var(--ink-soft);
  padding-left: var(--space-lg);
  border-left: 1px solid var(--gold);
  margin-bottom: var(--space-2xl);
}

.h-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-md); }

.h-hero__media {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 470px;
  animation: hFade 1.2s 0.15s var(--h-ease) both;
}

/* Arched frame echoes the circular sweep of the logo */
.h-arch {
  position: relative;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  aspect-ratio: 2 / 2.75;
  background: var(--blush);
}
.h-arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}
.h-hero__media::before {
  content: "";
  position: absolute;
  inset: -18px -18px 0 18px;
  border: 1px solid rgba(94, 42, 65, 0.28);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  pointer-events: none;
}

.h-hero__seal {
  position: absolute;
  left: -48px;
  bottom: 56px;
  width: 112px;
  height: 112px;
  padding: 18px 14px;
  object-fit: contain;
  background: var(--ivory);
  border-radius: 50%;
  box-shadow: 0 18px 40px -18px rgba(61, 26, 43, 0.45);
}

/* ---------- Philosophy ---------- */
.h-philosophy {
  background: var(--ivory);
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  text-align: center;
}
.h-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.625rem, 3.4vw, 2.625rem);
  line-height: 1.35;
  color: var(--plum);
  margin: 0 auto;
  max-width: 22ch;
  position: relative;
}
.h-quote::before,
.h-quote::after {
  content: "";
  display: block;
  width: 1px;
  height: 48px;
  background: var(--gold);
  margin: 0 auto var(--space-xl);
}
.h-quote::after { margin: var(--space-xl) auto 0; }

/* ---------- What I Do ---------- */
.h-roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hair);
}
.h-role {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-2xl) clamp(1.25rem, 3vw, 2.5rem) var(--space-xl);
  transition: background 0.5s var(--h-ease);
}
.h-role + .h-role { border-left: 1px solid var(--hair); }
.h-role::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--plum);
  transition: width 0.6s var(--h-ease);
}
.h-role:hover { background: #fff; }
.h-role:hover::before { width: 100%; }

.h-role__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--gold);
  margin-bottom: var(--space-lg);
}
.h-role__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--hair);
  color: var(--plum);
  margin-bottom: var(--space-lg);
  transition: background 0.5s var(--h-ease), color 0.5s var(--h-ease);
}
.h-role:hover .h-role__icon { background: var(--plum); color: #fff; border-color: var(--plum); }
.h-role__title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--space-md);
}
.h-role__text {
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: var(--space-xl);
}
.h-role__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--plum);
}
.h-role__link .arrow { transition: transform 0.4s var(--h-ease); }
.h-role:hover .h-role__link .arrow { transform: translateX(5px); }
/* whole card is clickable */
.h-role__link::after { content: ""; position: absolute; inset: 0; }

/* ---------- Stats ---------- */
.h-stats {
  background:
    var(--plum);
  color: #fff;
  padding: clamp(3.5rem, 6vw, 5rem) 0;
}
.h-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}
.h-stat { padding: var(--space-md) var(--space-xl); }
.h-stat + .h-stat { border-left: 1px solid rgba(255, 255, 255, 0.16); }
.h-stat__number {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1;
  color: var(--gold-light);
  margin-bottom: var(--space-md);
  font-variant-numeric: lining-nums tabular-nums;
}
.h-stat__label {
  max-width: 17rem;
  margin: 0 auto;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

/* ---------- Signature Talks ---------- */
.h-talks {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.h-talks__intro { position: sticky; top: calc(var(--nav-height) + 2rem); }
.h-talks__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.h-talk {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: var(--space-md);
  padding: var(--space-2xl) var(--space-lg) var(--space-2xl) 0;
  border-bottom: 1px solid var(--hair);
  transition: background 0.5s var(--h-ease), padding 0.5s var(--h-ease);
}
.h-talk:hover { background: var(--blush-light); padding-left: var(--space-lg); }
.h-talk__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--gold);
  padding-top: 0.2rem;
}
.h-talk__title {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--space-sm);
}
.h-talk__desc { color: var(--ink-soft); line-height: 1.75; margin-bottom: var(--space-md); }
.h-talk__audience { font-size: 0.875rem; color: var(--ink-soft); opacity: 0.85; }
.h-talk__audience strong {
  color: var(--plum);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-right: 0.25rem;
}

/* ---------- Testimonials ---------- */
.h-testimonials { max-width: 860px; margin: 0 auto; }
.h-testimonial.testimonial-card {
  background: transparent;
  border: 0;
  text-align: center;
  padding: var(--space-xl) clamp(0.5rem, 4vw, 3rem) 0;
  margin: 0;
}
.h-testimonial.testimonial-card::before {
  position: static;
  display: block;
  content: "\201C";
  font-size: 5rem;
  line-height: 0.6;
  height: 2.25rem;
  color: var(--gold);
  opacity: 1;
}
.h-testimonial .testimonial-card__text {
  font-size: clamp(1.25rem, 2.4vw, 1.625rem);
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: var(--space-xl);
}
.h-testimonial figcaption::before {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background: var(--plum);
  margin: 0 auto var(--space-md);
}
.h-testimonial .testimonial-card__author {
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--plum);
}
.h-testimonial .testimonial-card__role { margin-top: 0.25rem; color: var(--ink-soft); }
.h-testimonials .testimonials-nav { margin-top: var(--space-2xl); gap: 0.75rem; }
.h-testimonials .testimonials-dot {
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--hair);
  position: relative;
}
.h-testimonials .testimonials-dot::after { content: ""; position: absolute; inset: -10px -2px; } /* larger tap target */
.h-testimonials .testimonials-dot--active { background: var(--plum); transform: none; width: 44px; }

/* ---------- Trusted By ---------- */
.h-trusted { background: var(--ivory); padding: clamp(3.5rem, 6vw, 5rem) 0; border-bottom: 1px solid var(--hair); }
.h-trusted__label {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--plum);
}
.h-trusted__label::before,
.h-trusted__label::after { content: ""; flex: 1; height: 1px; background: var(--hair); }
.h-trusted__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: center;
  gap: var(--space-2xl) var(--space-3xl);
}
.h-trusted__logos img {
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: filter 0.5s var(--h-ease), opacity 0.5s var(--h-ease);
}
.h-trusted__logos img:hover { filter: none; opacity: 1; }

/* ---------- Gallery (gap-free editorial grid) ---------- */
.h-gallery {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr;
  grid-template-rows: repeat(2, clamp(180px, 20vw, 280px));
  grid-template-areas:
    "a b b c"
    "a d e f";
  gap: var(--space-md);
}
.h-gallery__item { margin: 0; overflow: hidden; border-radius: 4px; position: relative; }
.h-gallery__item--a { grid-area: a; border-radius: 999px 999px 4px 4px; }
.h-gallery__item--b { grid-area: b; }
.h-gallery__item--c { grid-area: c; }
.h-gallery__item--d { grid-area: d; }
.h-gallery__item--e { grid-area: e; }
.h-gallery__item--f { grid-area: f; }
.h-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--h-ease);
}
.h-gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(61, 26, 43, 0.35), transparent 50%);
  opacity: 0;
  transition: opacity 0.6s var(--h-ease);
}
.h-gallery__item:hover img { transform: scale(1.05); }
.h-gallery__item:hover::after { opacity: 1; }

/* ---------- Closing CTA ---------- */
.h-cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fff;
  padding: clamp(5rem, 10vw, 8.5rem) 0;
  background:
    var(--plum-deep);
}
.h-cta__seal {
  position: absolute;
  right: -40px;
  bottom: -50px;
  width: 340px;
  height: auto;
  opacity: 0.07;
  filter: brightness(0) invert(1);
  pointer-events: none;
}
.h-cta__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 500;
  line-height: 1.15;
  color: #fff;
  margin-bottom: var(--space-lg);
}
.h-cta__text {
  max-width: 560px;
  margin: 0 auto var(--space-2xl);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
}
.h-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-md) var(--space-lg); }
.h-cta__or {
  font-family: var(--font-serif);
  font-style: italic;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Motion ---------- */
@keyframes hRise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes hFade { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .h-hero__inner { grid-template-columns: 1fr 0.9fr; }
  .h-hero__seal { left: -24px; width: 92px; height: 92px; }
  .h-talks { grid-template-columns: 1fr; }
  .h-talks__intro { position: static; }
}

@media (max-width: 860px) {
  .h-hero__inner {
    grid-template-columns: 1fr;
    min-height: 0;
    text-align: center;
    gap: var(--space-2xl);
  }
  .h-hero__content { padding-bottom: 0; }
  .h-hero__intro {
    border-left: 0;
    padding-left: 0;
    margin-left: auto;
    margin-right: auto;
  }
  .h-hero__intro::before {
    content: "";
    display: block;
    width: 48px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto var(--space-lg);
  }
  .h-hero__actions { justify-content: center; }
  .h-hero__media { max-width: 360px; }
  .h-hero__seal { left: -12px; bottom: 32px; width: 84px; height: 84px; padding: 14px 10px; }

  .h-roles { grid-template-columns: 1fr; }
  .h-role + .h-role { border-left: 0; border-top: 1px solid var(--hair); }
  .h-role { padding-left: 0; padding-right: 0; }
  .h-role:hover { background: transparent; }

  .h-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    grid-auto-rows: clamp(150px, 42vw, 240px);
    grid-template-areas:
      "a b"
      "a c"
      "d e"
      "f f";
  }
}

@media (max-width: 600px) {
  .h-stats__grid { grid-template-columns: 1fr; }
  .h-stat + .h-stat { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.16); }
  .h-stat { padding: var(--space-xl) 0; }

  .h-hero__actions .h-btn { flex: 1 1 100%; }
  .h-cta__actions .h-btn { width: 100%; }
  .h-cta__or { display: none; }

  .h-talk { grid-template-columns: 2.25rem 1fr; padding-right: 0; }
  .h-talk:hover { padding-left: 0; background: transparent; }
  .h-trusted__logos { gap: var(--space-xl) var(--space-2xl); }
  .h-trusted__logos img { height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .h-hero__content, .h-hero__media { animation: none; }
}

/* ---------- Fixes after visual review ---------- */
/* Slides must be exactly one viewport of the slider wide */
.h-testimonials .testimonials-track > .testimonial-card {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
}
.h-testimonials .testimonial-card__text { overflow-wrap: break-word; }
.h-quote { max-width: 26ch; }
/* Logos have very different shapes: normalise by box, not height */
.h-trusted__logos img { height: 44px; max-width: 150px; }
.h-trusted__logos img[src*="digit_logo"] { height: 60px; }

/* ---------- Curated homepage (compact flow) ---------- */
/* Trusted By as a slim credibility strip directly under the hero */
.h-trusted--strip {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--hair);
}
.h-trusted--strip .h-container {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}
.h-trusted--strip .h-trusted__label {
  flex: 0 0 auto;
  margin: 0;
}
.h-trusted--strip .h-trusted__label::before { display: none; }
.h-trusted--strip .h-trusted__label::after { flex: 0 0 40px; }
.h-trusted--strip .h-trusted__logos {
  flex: 1;
  justify-content: space-between;
  gap: var(--space-lg) var(--space-xl);
}
.h-trusted--strip .h-trusted__logos img { height: 34px; max-width: 120px; }
.h-trusted--strip .h-trusted__logos img[src*="digit_logo"] { height: 46px; }

/* Quote now introduces "What I Do" */
.h-head .h-quote {
  margin-top: var(--space-lg);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  max-width: 28ch;
}
.h-head .h-quote::before,
.h-head .h-quote::after { display: none; }

/* Tighter rhythm so the page reaches its end sooner */
.h-section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.h-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.h-hero__inner { min-height: calc(min(100dvh, 860px) - var(--nav-height)); }

@media (max-width: 860px) {
  .h-trusted--strip .h-container { flex-direction: column; gap: var(--space-lg); }
  .h-trusted--strip .h-trusted__label::after { display: none; }
  .h-trusted--strip .h-trusted__logos { justify-content: center; }
}

@media (max-width: 860px) {
  .h-role {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: var(--space-md);
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
  }
  .h-role__num { display: none; }
  .h-role__icon { width: 44px; height: 44px; margin: 0; align-self: center; }
  .h-role__title { margin: 0; align-self: center; font-size: 1.5rem; }
  .h-role__text, .h-role__link { grid-column: 1 / -1; }
  .h-role__text { margin: var(--space-md) 0 var(--space-md); }
  .h-hero__media { max-width: 320px; }
}

/* ---------- Testimonial slider controls ---------- */
.h-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}
.h-slider-btn {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--plum);
  background: #fff;
  color: var(--plum);
  cursor: pointer;
  box-shadow: 0 6px 18px -10px rgba(61, 26, 43, 0.5);
  transition: background 0.35s var(--h-ease), color 0.35s var(--h-ease), transform 0.35s var(--h-ease);
}
.h-slider-btn:hover { background: var(--plum); color: #fff; transform: translateY(-2px); }
.h-slider-btn:active { transform: scale(0.95); }
.h-slider-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Progress indicators: clearly visible on the blush background */
.h-testimonials .h-slider-controls .testimonials-nav { margin-top: 0; gap: 10px; }
.h-testimonials .testimonials-dot {
  width: 28px;
  height: 5px;
  border-radius: 3px;
  background: rgba(94, 42, 65, 0.3);
  transition: width 0.4s var(--h-ease), background 0.4s var(--h-ease);
}
.h-testimonials .testimonials-dot:hover { background: rgba(94, 42, 65, 0.6); }
.h-testimonials .testimonials-dot--active { width: 52px; background: var(--plum); }

/* Hint that the quote can be swiped / dragged on touch screens */
.h-testimonials .testimonials-track { touch-action: pan-y; cursor: grab; }

@media (max-width: 600px) {
  .h-slider-controls { gap: var(--space-md); }
  .h-slider-btn { width: 46px; height: 46px; }
  .h-testimonials .testimonials-dot { width: 20px; }
  .h-testimonials .testimonials-dot--active { width: 36px; }
}

.h-slider-controls { padding: 6px 0 16px; }

/* ---------- Side arrows: [prev] quote [next] ---------- */
.h-testimonials { max-width: 1000px; }
.h-testimonials__stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(0.75rem, 3vw, 2.5rem);
}
.h-testimonials__viewport { overflow: hidden; min-width: 0; }
.h-testimonials .h-slider-btn { margin: 6px 0 14px; } /* room for the soft shadow */
.h-testimonials > .testimonials-nav {
  margin-top: var(--space-xl);
  gap: 10px;
}

@media (max-width: 600px) {
  .h-testimonials__stage { gap: 0.5rem; }
  .h-testimonials .h-slider-btn { width: 40px; height: 40px; }
  .h-testimonials .h-slider-btn svg { width: 18px; height: 18px; }
  .h-testimonial.testimonial-card { padding-left: 0.25rem; padding-right: 0.25rem; }
  .h-testimonial .testimonial-card__text { font-size: 1.125rem; }
}

/* Arrows sit right beside the quote, centred vertically */
.h-testimonials { max-width: 860px; }
.h-testimonials__stage { gap: clamp(0.5rem, 2vw, 1.5rem); }
.h-testimonial.testimonial-card { padding-left: 0; padding-right: 0; }
.h-testimonials .h-slider-btn { margin: 0; }
.h-testimonials__viewport { padding: 0; }
.h-testimonial .testimonial-card__text { padding: 0 0.15em; } /* keeps italic overhang inside the frame */

/* ---------- Trusted By: full-colour logo marquee (before the CTA) ---------- */
.h-trusted {
  background: var(--ivory);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  border-bottom: 0;
}
.h-trusted .h-trusted__label { margin-bottom: var(--space-2xl); }

.h-marquee {
  overflow: hidden;
  /* soft fade at both edges */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.h-marquee__track {
  display: flex;
  width: max-content;
  animation: hMarquee 32s linear infinite;
}
.h-marquee:hover .h-marquee__track { animation-play-state: paused; }
.h-marquee__group {
  display: flex;
  align-items: center;
  gap: clamp(3rem, 7vw, 6rem);
  padding-right: clamp(3rem, 7vw, 6rem); /* same as gap, so the loop has no seam */
  list-style: none;
  margin: 0;
}
.h-marquee__item { flex: 0 0 auto; display: flex; align-items: center; }
.h-marquee__item img {
  height: 52px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  filter: none;          /* original colours */
  opacity: 1;
  transition: transform 0.4s var(--h-ease);
}
.h-marquee__item img[src*="digit_logo"] { height: 72px; }
.h-marquee__item img:hover { transform: scale(1.06); }

@keyframes hMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 600px) {
  .h-marquee__track { animation-duration: 22s; }
  .h-marquee__item img { height: 40px; max-width: 140px; }
  .h-marquee__item img[src*="digit_logo"] { height: 56px; }
}

/* Respect "reduce motion": show the logos as a static, centred row */
@media (prefers-reduced-motion: reduce) {
  .h-marquee { -webkit-mask-image: none; mask-image: none; }
  .h-marquee__track { animation: none; width: auto; justify-content: center; flex-wrap: wrap; }
  .h-marquee__group { flex-wrap: wrap; justify-content: center; padding: 0 var(--gutter); row-gap: var(--space-xl); }
  .h-marquee__group[aria-hidden="true"] { display: none; }
}

/* ---------- Inspirational lit-bulb icon (Speaker) ---------- */
.h-icon-bulb__rays { color: var(--gold); transition: color 0.4s var(--h-ease); }
.h-icon-bulb__spark { color: var(--gold); }
.h-role:hover .h-icon-bulb__rays,
.h-role:hover .h-icon-bulb__spark { color: var(--gold-light); }
.h-role:hover .h-icon-bulb__rays { animation: hGlow 1.6s ease-in-out infinite; transform-origin: 12px 10.6px; }
@keyframes hGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .h-role:hover .h-icon-bulb__rays { animation: none; }
}

/* ---------- More visible accents (title underlines + numbering) ---------- */
.h-rule { width: 64px; height: 3px; border-radius: 2px; }
.h-role__num {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.h-hero__intro { border-left-width: 2px; }
.h-textlink { border-bottom-width: 2px; }

/* ---------- Original-site voice elements ---------- */
/* "Hello, I'm glad you're here." — a warm greeting, not a shouty label */
.h-hero__hello.h-eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  letter-spacing: 0;
  text-transform: none;
  color: var(--plum);
  margin: 0;
}
/* "I'm" sits quietly before the name; the H1 still reads "I'm Dr Sofiat Olaosebikan" */
.h-hero__im {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}
/* Question that invites the visitor into each strand */
.h-role__ask {
  margin-top: auto;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--plum);
  margin-bottom: var(--space-sm);
}
.h-role__ask + .h-role__link { margin-top: 0; }
@media (max-width: 860px) {
  .h-role__ask { grid-column: 1 / -1; }
}

/* "I'm" reads inline with the name: "I'm Dr Sofiat / Olaosebikan" */
.h-hero__im {
  display: inline;
  font: inherit;
  letter-spacing: inherit;
  text-transform: none;
  color: inherit;
  margin: 0;
}

/* =========================================================
   HERO FIT — spacing only.
   Text sizes and photo size are kept exactly as designed;
   only empty space above/below is tightened on shorter screens
   so the buttons sit higher.
   ========================================================= */
@media (min-width: 861px) {
  .h-hero__inner {
    min-height: calc(min(100svh, 860px) - var(--nav-height));
    padding-top: clamp(1.5rem, 4svh, 3.5rem);
  }
  .h-hero__content { padding-bottom: clamp(1.5rem, 4svh, 3rem); }
}
@media (min-width: 861px) and (max-height: 820px) {
  .h-hero__name { margin-top: 0.75rem; margin-bottom: 1rem; }
  .h-hero__intro { margin-bottom: 1.5rem; }
  .h-textlink { margin-top: 1rem; }
}

/* =========================================================
   PHONES: photo first at its normal size; the hero CTA buttons
   stay pinned to the bottom of the screen while the hero is in
   view, then settle into their normal place under the intro.
   Nothing is resized.
   ========================================================= */
@media (max-width: 860px) {
  .h-hero { overflow: clip; }              /* 'hidden' would stop sticky from working */
  .h-hero__media { order: -1; }
  .h-hero__actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin-left: calc(-1 * var(--gutter));
    margin-right: calc(-1 * var(--gutter));
    padding: 0.875rem var(--gutter) calc(0.875rem + env(safe-area-inset-bottom));
    background: linear-gradient(to top, var(--blush) 78%, rgba(235, 223, 223, 0));
  }
}

/* Phones: name above the photo, so the pinned buttons never cover it.
   Order: tagline → name → photo → intro → buttons → clarity link */
@media (max-width: 860px) {
  .h-hero__content { display: contents; }
  .h-hero__inner { align-items: center; text-align: center; }
  .h-hero__inner > * , .h-hero__content > * { width: 100%; }
  .h-hero__content > .h-eyebrow { order: 1; }
  .h-hero__name { order: 2; margin-bottom: 0; }
  .h-hero__media { order: 3; width: 100%; }
  .h-hero__intro { order: 4; }
  .h-hero__actions { order: 5; }
  .h-textlink { order: 6; width: auto; align-self: center; }
}
@media (max-width: 860px) {
  .h-hero__actions { width: auto; align-self: stretch; }   /* full-bleed bar, no offset */
  .h-hero__inner { gap: 1rem; }
  .h-hero__name { margin-top: 0.25rem; }
  .h-hero__media { margin-top: 0.75rem; }
}

/* Intro paragraph: one step smaller so the hero breathes; still >= 15px and full contrast */
.h-hero__intro {
  font-size: clamp(0.96875rem, 1.15vw, 1.0625rem);   /* was 1.0625–1.1875rem */
  line-height: 1.75;
  max-width: 32rem;
}
@media (max-width: 860px) {
  .h-hero__intro { font-size: 0.96875rem; line-height: 1.7; max-width: 34rem; }
}

/* Intro paragraph matches the closing CTA paragraph exactly (17px / 1.75) */
.h-hero__intro { font-size: 1.0625rem; line-height: 1.75; }
@media (max-width: 860px) {
  .h-hero__intro { font-size: 1.0625rem; line-height: 1.75; }
}

/* =========================================================
   Desktop: buttons sit at the bottom of the hero, aligned with
   the base of the photo; the text block floats above with air.
   ========================================================= */
@media (min-width: 861px) {
  .h-hero__content {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: clamp(1rem, 3svh, 2rem);
    padding-bottom: clamp(2rem, 6svh, 3.5rem);
  }
  .h-hero__content > .h-eyebrow { margin-top: auto; }   /* centres the text block in the space above… */
  .h-hero__intro { margin-bottom: clamp(2rem, 6svh, 4rem); }
  .h-hero__actions { margin-top: auto; }                  /* …and pushes the buttons to the bottom */
  .h-textlink { margin-top: 1rem; }
}
/* Short laptop screens: keep the buttons inside the first view */
@media (min-width: 861px) and (max-height: 760px) {
  .h-hero__content { padding-bottom: 3.25rem; }
  .h-hero__intro { margin-bottom: 1.5rem; }
}

/* Hero fills the whole first screen (no 860px cap), so the buttons
   sit at the very bottom of the view instead of leaving a gap below. */
@media (min-width: 861px) {
  .h-hero__inner {
    min-height: calc(100svh - var(--nav-height));
    max-height: none;
  }
}

/* =========================================================
   CTA group: rests at the bottom of the hero; on windows shorter
   than the hero it lifts to stay just above the bottom edge of
   the screen, with the clarity-call underline fully visible.
   ========================================================= */
.h-hero { overflow: clip; }                 /* allows sticky; still clips decorations */
@media (min-width: 861px) {
  .h-hero__actions { margin-top: 0; }
  .h-hero__cta {
    margin-top: auto;
    position: sticky;
    bottom: clamp(1.5rem, 4.5svh, 2.75rem);
    z-index: 2;
  }
  .h-hero__content { padding-bottom: clamp(1.5rem, 4.5svh, 2.75rem); }
}
@media (min-width: 861px) and (max-height: 760px) {
  .h-hero__content { padding-bottom: clamp(1.5rem, 4.5svh, 2.75rem); }
}
/* Phones keep their existing pinned-buttons behaviour */
@media (max-width: 860px) {
  .h-hero__cta { display: contents; }
}

/* The CTA can only rise within this zone, which starts right after the
   intro — so on very short windows it never overlaps the text. */
@media (min-width: 861px) {
  .h-hero__cta-zone {
    flex: 1 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  .h-hero__cta { margin-top: 0; }
  .h-hero__content > .h-eyebrow { margin-top: clamp(0.5rem, 6svh, 4.5rem); }
}
@media (max-width: 860px) {
  .h-hero__cta-zone { display: contents; }
}

/* Desktop: the two hero buttons sit flush with the end of the hero
   (same line as the base of the photo). "Book a clarity call" moves
   into the same row so nothing sits below them. */
@media (min-width: 861px) {
  .h-hero__content { padding-bottom: 0; }
  .h-hero__cta {
    bottom: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 1.75rem;
    row-gap: 0.75rem;
  }
  .h-hero__cta .h-textlink { margin-top: 0; order: 2; }
}

/* Phones: the small text link under the hero buttons stays compact and centred */
@media (max-width: 860px) {
  .h-hero .h-hero__cta .h-textlink,
  .h-hero .h-textlink { align-self: center; width: auto; max-width: max-content; margin-left: auto; margin-right: auto; }
}
