/* ==========================================================================
   Homepage — photographic design
   Loaded after style.css + sections.css
   ========================================================================== */

/* Transparent header over the hero photo; solidifies on scroll.
   (Subpages have no photo hero, so .header--solid is set there.) */
.header--over {
  background: transparent;
  border-bottom-color: transparent;
}
.header--over .brand__name,
.header--over .nav__link { color: rgba(255, 255, 255, 0.92); }
.header--over .brand__role { color: var(--gold-300); }
.header--over .nav__link:hover,
.header--over .nav__link.is-active { color: #fff; }
.header--over .burger { border-color: rgba(255, 255, 255, 0.4); }
.header--over .burger span { background: #fff; }

.header--over.is-stuck {
  background: var(--ivory);
  border-bottom-color: rgba(169, 126, 40, 0.18);
}
.header--over.is-stuck .brand__name { color: var(--green-900); }
.header--over.is-stuck .brand__role { color: var(--gold-700); }
.header--over.is-stuck .nav__link { color: var(--ink-soft); }
.header--over.is-stuck .nav__link:hover,
.header--over.is-stuck .nav__link.is-active { color: var(--green-900); }
.header--over.is-stuck .burger { border-color: rgba(11, 59, 46, 0.18); }
.header--over.is-stuck .burger span { background: var(--green-900); }
/* The original green logo is used in every header state — over the hero and
   scrolled — so the mark is consistent everywhere. The gold variant is only
   used in the footer (green-on-dark-green would be invisible there). */
.brand__mark--light { display: none; }
.brand__mark--dark { display: block; }

/* ==========================================================================
   Photo hero
   ========================================================================== */
.phero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 3rem;
  overflow: hidden;
  isolation: isolate;
  background: #1a1410;
}
.phero__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
}
.phero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Legibility: dark on the left where the headline sits. */
.phero__scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(100deg, rgba(12, 10, 8, 0.86) 0%, rgba(12, 10, 8, 0.6) 38%, rgba(12, 10, 8, 0.15) 62%, rgba(12, 10, 8, 0.35) 100%),
    linear-gradient(180deg, rgba(12, 10, 8, 0.55) 0%, transparent 25%, rgba(12, 10, 8, 0.5) 100%);
}

/* ---- Scene hero: she is baked into the image (right side), so the copy is a
   single left column and the scrim only darkens the left/lower area over the
   bright sky. No cut-out layer, no pull-quote. ---- */
.phero--scene .phero__bg img { object-position: 70% center; }
.phero--scene .phero__scrim {
  background:
    linear-gradient(95deg, rgba(10, 12, 10, 0.82) 0%, rgba(10, 12, 10, 0.55) 30%, rgba(10, 12, 10, 0.08) 55%, transparent 72%),
    linear-gradient(180deg, transparent 55%, rgba(8, 16, 12, 0.55) 100%);
}
.phero--scene .phero__inner { grid-template-columns: minmax(auto, 620px); }
.phero--scene .phero h1 { max-width: 14ch; }

/* Her cut-out, layered rather than baked in, so it can be positioned
   responsively and dropped on small screens. */
/* She must stop where the pull-quote begins. The quote is anchored to the
   1200px content column, so she has to be too — a viewport-percentage offset
   drifts relative to the column and lands on her face at some widths.
   Content column right edge = 50% + (wrap/2). Quote is QW wide, plus a gap.
   So her right edge sits at 50% + wrap/2 - QW - gap, i.e. the offset below.
   The max() keeps a floor once the column stops growing with the viewport. */
.phero {
  --quote-w: 230px;
  --quote-gap: 30px;
}
.phero__her {
  position: absolute;
  right: max(
    calc(var(--quote-w) + var(--quote-gap) + 1.25rem),
    calc(50% - (var(--wrap) / 2) + var(--quote-w) + var(--quote-gap))
  );
  bottom: 0;
  height: 84%;
  max-height: 860px;
  width: auto;
  z-index: -1;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(-24px 0 60px rgba(0, 0, 0, 0.35));
}

.phero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.phero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  line-height: 1.06;
  margin-bottom: 1.6rem;
  max-width: 12ch;
}
.phero h1 em {
  display: block;
  font-style: normal;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.phero__lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.94);
  max-width: 34ch;
  margin-bottom: 0.9rem;
  font-weight: 300;
}
.phero__sub {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 36ch;
  margin-bottom: 2.4rem;
}
.phero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn--white {
  background: #fff;
  color: var(--green-900);
  border-color: #fff;
}
.btn--white:hover {
  background: var(--gold-300);
  border-color: var(--gold-300);
  transform: translateY(-2px);
}

/* Pull-quote card, right of the portrait */
.phero__quote {
  /* <figure> carries a UA default of `margin: 1em 40px`. Left in, that 40px
     right margin pulls the quote inside the column edge and it lands on her. */
  margin: 0;
  justify-self: end;
  align-self: center;
  max-width: var(--quote-w);
  padding: 1.4rem 0 1.4rem 1.6rem;
  border-left: 2px solid var(--gold-400);
  position: relative;
  z-index: 2;
  /* She passes behind this card, so it needs its own backing to stay legible. */
  background: linear-gradient(90deg, rgba(10, 24, 19, 0.55), rgba(10, 24, 19, 0.25));
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.phero__quote .mark {
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 0.6;
  color: var(--gold-400);
  display: block;
  margin-bottom: 0.6rem;
}
.phero__quote p {
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.5;
  color: #fff;
  margin-bottom: 1rem;
}
.phero__quote cite {
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--gold-300);
}

/* ==========================================================================
   Stats bar
   ========================================================================== */
.statbar { background: var(--green-900); padding-block: 2.6rem; }
.statbar__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.statbar__item svg {
  width: 30px; height: 30px;
  stroke: var(--gold-400);
  fill: none;
  stroke-width: 1.3;
  margin-bottom: 0.7rem;
}
.statbar__item span {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
  margin-bottom: 0.4rem;
}
.statbar__item b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold-400);
}

/* ==========================================================================
   What is Holistic Mobility — the wheel
   ========================================================================== */
.wheel-sec { background: var(--ivory); }
.wheel-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.wheel { width: 100%; max-width: 620px; margin-inline: auto; }
.wheel svg { width: 100%; height: auto; overflow: visible; }

.wheel__seg { transition: opacity 0.4s var(--ease); cursor: default; }
.wheel__seg:hover { opacity: 0.88; }
.wheel__icon { stroke: #fff; fill: none; stroke-width: 1.5; }
.wheel__hub { fill: #fff; }
.wheel__hub-fig { fill: var(--green-900); }

.wheel__label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  fill: var(--green-900);
}
.wheel__word {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 300;
  fill: var(--ink-soft);
}

/* ==========================================================================
   ACL Methodology over photography
   ========================================================================== */
.acl {
  position: relative;
  color: var(--ivory);
  overflow: hidden;
  isolation: isolate;
}
.acl__bg { position: absolute; inset: 0; z-index: -2; }
.acl__bg img { width: 100%; height: 100%; object-fit: cover; }
/* The photo goes bright on the right, exactly where the three steps sit —
   keep the scrim strong enough there for white text to hold up. */
.acl__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(95deg, rgba(6, 34, 26, 0.97) 0%, rgba(6, 34, 26, 0.9) 42%, rgba(6, 34, 26, 0.78) 100%);
}
.acl__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.acl h2 {
  color: var(--ivory);
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.2;
}
.acl h2 span { display: block; }
.acl__lead { color: var(--on-dark-soft); margin-top: 1.2rem; max-width: 32ch; }

.acl__steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0.8rem;
  align-items: start;
}
.acl__step { text-align: center; }
.acl__ring {
  width: 92px; height: 92px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(217, 180, 91, 0.45);
  background: rgba(6, 34, 26, 0.6);
  transition: all 0.6s var(--ease);
}
.acl__ring svg { width: 38px; height: 38px; stroke: var(--gold-300); fill: none; stroke-width: 1.3; }
.acl__step:nth-child(3) .acl__ring {
  background: var(--gold-grad);
  border-color: transparent;
}
.acl__step:nth-child(3) .acl__ring svg { stroke: var(--green-900); }
.acl__step:hover .acl__ring { transform: translateY(-4px); }
.acl__step h3 {
  color: var(--gold-300);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.acl__step p { font-size: 0.85rem; color: var(--on-dark-soft); }
.acl__arrow {
  align-self: start;
  margin-top: 34px;
  color: var(--gold-400);
  opacity: 0.8;
}

/* ==========================================================================
   Who I Help — photo cards
   ========================================================================== */
.whocards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.2rem;
  margin-top: 3rem;
}
.whocard {
  background: var(--paper);
  border: 1px solid rgba(169, 126, 40, 0.14);
  border-radius: 6px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 1.6rem;
  transition: all 0.55s var(--ease);
}
.whocard:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
/* The badge straddles the bottom edge of the photo, so it cannot live inside
   .whocard__img — that clips (it needs overflow:hidden for the hover zoom).
   This unclipped wrapper is what the badge is positioned against. */
.whocard__media { position: relative; }

.whocard__img {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
}
.whocard__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.whocard:hover .whocard__img img { transform: scale(1.06); }
.whocard__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6, 43, 32, 0.55) 100%);
}
.whocard__badge {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  z-index: 2;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-800);
  border: 2px solid var(--ivory);
}
.whocard__badge svg { width: 20px; height: 20px; stroke: var(--gold-300); fill: none; stroke-width: 1.4; }
.whocard h3 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-900);
  margin: 2.2rem 1rem 0.5rem;
}
.whocard p { font-size: 0.8rem; color: var(--ink-soft); padding-inline: 1rem; }

/* ==========================================================================
   Ecosystem + Latest Insights
   ========================================================================== */
.eco-row { display: grid; grid-template-columns: 1fr 1.15fr; }

.eco {
  background: var(--green-grad);
  color: var(--ivory);
  padding: clamp(3rem, 5vw, 4.5rem);
  position: relative;
}
/* The mark sits to the left of the heading and lead; members run below. */
.eco__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.75rem;
  align-items: center;
  margin-bottom: 2.75rem;
}
.eco__title {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-400);
  padding-left: 1rem;
  border-left: 2px solid var(--gold-400);
  margin-bottom: 0.9rem;
}
.eco__lead { color: var(--on-dark-soft); font-size: 0.92rem; max-width: 42ch; margin-bottom: 0; }

.eco__mark {
  flex-shrink: 0;
  width: 132px; height: 132px;
  border-radius: 50%;
  border: 1px solid rgba(217, 180, 91, 0.4);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0.9rem;
}
.eco__mark img { width: 42px; margin: 0 auto 0.45rem; }
.eco__mark b {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--ivory);
  line-height: 1.3;
  margin-bottom: 0.3rem;
}
.eco__mark span {
  font-size: 0.48rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-300);
}

.eco__members {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.5rem;
}
.eco__item { display: flex; gap: 0.75rem; align-items: flex-start; }
.eco__item svg { width: 16px; height: 16px; stroke: var(--gold-400); fill: none; stroke-width: 1.4; flex-shrink: 0; margin-top: 3px; }
.eco__item b {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gold-300);
  line-height: 1.35;
}
.eco__foot {
  margin-top: 2.5rem;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--on-dark-soft);
}

.latest { background: var(--ivory-dim); padding: clamp(3rem, 5vw, 4.5rem); }
.latest__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.latest h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin-bottom: 0.5rem; }
.latest__head p { font-size: 0.9rem; color: var(--ink-soft); }
.latest__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.acard {
  background: var(--paper);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.5s var(--ease);
}
.acard:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.acard__img { aspect-ratio: 16 / 10; overflow: hidden; }
.acard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.acard:hover .acard__img img { transform: scale(1.06); }
.acard__body { padding: 1.3rem 1.3rem 1.6rem; }
.acard__tag {
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: 0.6rem;
}
.acard h3 { font-size: 1.12rem; line-height: 1.3; margin-bottom: 0.8rem; }
.acard time { font-size: 0.7rem; color: var(--ink-faint); }

/* ==========================================================================
   Closing quote over photography
   ========================================================================== */
.finale {
  position: relative;
  text-align: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(5rem, 10vw, 8rem);
}
.finale__bg { position: absolute; inset: 0; z-index: -2; }
.finale__bg img { width: 100%; height: 100%; object-fit: cover; }
.finale__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(6, 34, 26, 0.82), rgba(4, 22, 17, 0.9));
}
.finale blockquote {
  margin: 0 auto 1rem;
  max-width: 26ch;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  font-weight: 300;
  line-height: 1.45;
  color: #fff;
}
.finale__script {
  font-family: var(--font-script);
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 2.5rem;
}
.finale__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Podcast page
   ========================================================================== */
.pod-mic {
  width: 76px; height: 76px;
  margin: 0 auto 1.8rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(217, 180, 91, 0.4);
  background: rgba(255, 255, 255, 0.03);
}
.pod-mic svg { width: 32px; height: 32px; stroke: var(--gold-300); fill: none; stroke-width: 1.3; }
.pod-soon {
  margin-top: 1.8rem;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
}

/* ==========================================================================
   Footer newsletter
   ========================================================================== */
.footer__news p { font-size: 0.85rem; color: var(--on-dark-faint); margin-bottom: 1.2rem; }
.news-form { display: flex; gap: 0.5rem; }
.news-form input {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--ivory);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(217, 180, 91, 0.25);
  border-radius: 3px;
}
.news-form input::placeholder { color: rgba(250, 247, 240, 0.45); }
.news-form input:focus {
  outline: none;
  border-color: var(--gold-400);
  background: rgba(255, 255, 255, 0.1);
}
.news-form button {
  padding: 0.7rem 1.2rem;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-900);
  background: var(--gold-grad);
  border: none;
  border-radius: 3px;
  transition: all 0.4s var(--ease);
}
.news-form button:hover { transform: translateY(-2px); }
.footer__legal { display: flex; gap: 1.5rem; }
.footer__legal a { transition: color 0.35s var(--ease); }
.footer__legal a:hover { color: var(--gold-300); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .statbar__grid { grid-template-columns: repeat(3, 1fr); gap: 2rem 1rem; }
  .whocards { grid-template-columns: repeat(3, 1fr); }
}

/* Keep the quote. Narrow it and shrink her so all three still fit side by
   side — she is the flexible one, not the copy and not the quote. */
@media (max-width: 1200px) {
  .phero { --quote-w: 200px; --quote-gap: 20px; }
  .phero__inner { grid-template-columns: 1fr auto; }
  .phero__quote { max-width: var(--quote-w); }
  .phero__her { height: 72%; }
  .phero h1 { max-width: 11ch; font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
}

/* Now they genuinely cannot sit side by side. Stack instead of hiding: the
   quote drops beneath the copy and she becomes a faded backdrop. */
@media (max-width: 1024px) {
  .phero__inner { grid-template-columns: 1fr; }
  .phero__quote {
    position: static;
    justify-self: start;
    align-self: start;
    max-width: 34ch;
    margin-top: 2.4rem;
    padding-block: 0.3rem;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .phero__her { right: 0; height: 64%; opacity: 0.5; }
  .phero h1 { max-width: none; }
  .wheel-grid, .acl__grid, .eco-row { grid-template-columns: 1fr; }
  .latest__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .header--over .nav__link { color: rgba(255, 255, 255, 0.92); }
}

@media (max-width: 700px) {
  .phero { text-align: left; }
  .phero__her { display: none; }
  .phero__scrim {
    background: linear-gradient(180deg, rgba(12, 10, 8, 0.75), rgba(12, 10, 8, 0.9));
  }

  /* Scene hero: she is baked in near the top of the frame, so drop the copy to
     the bottom over a strong gradient — the headline never crosses her face. */
  .phero--scene { align-items: flex-end; }
  .phero--scene .phero__inner { grid-template-columns: 1fr; }
  .phero--scene .phero__bg img { object-position: 76% top; }
  .phero--scene .phero__scrim {
    background:
      linear-gradient(180deg, rgba(8, 14, 10, 0.3) 0%, transparent 26%, rgba(8, 14, 10, 0.5) 52%, rgba(6, 12, 9, 0.94) 100%);
  }
  .phero--scene .phero h1 { max-width: none; }
  .statbar__grid { grid-template-columns: repeat(2, 1fr); }
  .whocards { grid-template-columns: 1fr 1fr; }
  .acl__steps { grid-template-columns: 1fr; gap: 2rem; }
  .acl__arrow { display: none; }
  .latest__grid { grid-template-columns: 1fr; }
  .latest__head { flex-direction: column; align-items: flex-start; }
  .eco__head { grid-template-columns: 1fr; justify-items: start; gap: 1.5rem; }
  .eco__members { grid-template-columns: 1fr; }
  .news-form { flex-direction: column; }
}

@media (max-width: 460px) {
  .whocards { grid-template-columns: 1fr; }
}
