/* =====================================================================
   Homepage — specific styles
   ===================================================================== */

/* Scroll-reveal styles are shared across all pages — see style.css (§9). */

/* ---- Hero with background video ---- */
.hero {
  position: relative;
  /* sit behind the (transparent) sticky header so the video fills the top
     (−1px also covers the header's 1px bottom border) */
  margin-top: calc(-1 * var(--header-h) - 1px);
  min-height: 100vh;
  overflow: hidden;
  background: #0b0d0d;
  display: flex;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Brand globe — only the thick strokes are "liquid glass": they frost the
   video behind them. Half off the right edge, no full disc. */
.hero__globe {
  --globe-size: clamp(440px, 54vw, 780px);
  position: absolute;
  z-index: 1;
  /* mostly off the bottom-right corner — only the top-left corner peeks in */
  right: calc(var(--globe-size) / -2);
  bottom: calc(var(--globe-size) / -2);
  width: var(--globe-size);
  aspect-ratio: 1 / 1;
  pointer-events: none;
}
/* Frosted layer clipped to the globe-stroke shape */
.hero__globe-glass {
  position: absolute;
  inset: 0;
  -webkit-backdrop-filter: blur(5px) saturate(115%);
          backdrop-filter: blur(5px) saturate(115%);
  -webkit-mask: url("../images/globe.svg") center / contain no-repeat;
          mask: url("../images/globe.svg") center / contain no-repeat;
}
.hero__globe-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: #fff;          /* solid strokes... */
  opacity: 0.18;        /* ...then one uniform opacity on the whole globe
                           so overlapping strokes don't look darker */
}
@media (max-width: 700px) {
  .hero__globe { --globe-size: 116vw; }
}

/* Legibility overlay — darker at the bottom and left (where the text sits) */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top,
      rgba(8, 10, 10, 0.82) 0%,
      rgba(8, 10, 10, 0.30) 42%,
      rgba(8, 10, 10, 0.12) 68%,
      rgba(8, 10, 10, 0.40) 100%),
    linear-gradient(to right,
      rgba(8, 10, 10, 0.55) 0%,
      rgba(8, 10, 10, 0.10) 55%,
      rgba(8, 10, 10, 0) 100%);
}

/* Content anchored bottom-left, aligned with the nav */
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
}
.hero__content { max-width: 780px; }

.hero__title {
  color: #fff;
  font-weight: 400;
  font-size: clamp(2.4rem, 5.6vw, 4.8rem);
  line-height: 1.08;
  letter-spacing: -0.008em;
  margin: 0 0 1.25rem;
}

.hero__subtitle {
  color: #ffffff;
  font-weight: 300;
  font-size: var(--fs-lg);
  line-height: 1.5;
  max-width: 48ch;
  margin: 0 0 2rem;
}

.hero__cta {
  font-size: var(--fs-base);
  padding: 1.05rem 1.8rem;
}
.hero__cta svg { transition: transform var(--transition); }
.hero__cta:hover svg { transform: translateX(4px); }

@media (max-width: 640px) {
  .hero__subtitle { font-size: var(--fs-base); }
}

/* Hero buttons — simple rectangular: one solid white, one transparent */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 0.6rem;
}
.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid #fff;
  border-radius: 0;
  transition: letter-spacing var(--transition);
}
.hero__btn--solid { background: #fff; color: var(--color-ink); }
.hero__btn--ghost { background: transparent; color: #fff; }
/* keep each button's colour on hover (override the global a:hover) */
.hero__btn--solid:hover { color: var(--color-ink); }
.hero__btn--ghost:hover { color: #fff; }

/* hover: no colour change — just a subtle text spacing + an arrow that slides in */
.hero__btn::after {
  content: "→";
  display: inline-block;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateX(-6px);
  transition: max-width var(--transition), opacity var(--transition),
              transform var(--transition), margin-left var(--transition);
}
.hero__btn:hover { letter-spacing: 0.03em; }
.hero__btn:hover::after,
.hero__btn:focus-visible::after {
  max-width: 1.4em;
  margin-left: 0.5rem;
  opacity: 1;
  transform: translateX(0);
}

/* ---- About the firm: statement left, single figure right ----
   Type scale and aeration are taken straight from the Overview page, our
   design reference: .kicker carries its own 86px of air, then title to
   content is 96px, .ab-title for the heading, .ab-var__title for the
   sub-heading, .ab-metric--hero for the figure. */
.hm-about__head { margin-bottom: clamp(3.5rem, 7vw, 6rem); }
.hm-about__title {
  margin: 0;
  max-width: 22ch;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 1.3rem + 3vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.006em;
  color: var(--color-ink);
}

.hm-about__body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.hm-about__sub {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 1rem + 1vw, 1.8rem);
  line-height: 1.15;
  color: var(--color-ink);
}
.hm-about__text {
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
  max-width: 60ch;
  font-size: var(--fs-lg);
  font-weight: 300;
  line-height: 1.6;
  color: var(--color-text-secondary);
}
.hm-about__cta { margin-top: clamp(2.25rem, 4vw, 3rem); }

/* The figure column starts level with the paragraph, not with the sub-heading */
.hm-about__stat { padding-top: clamp(2.5rem, 5vw, 4.4rem); }
.hm-about__figure {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.5rem, 1.5rem + 7.5vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
  color: var(--color-ink);
}
.hm-about__label {
  margin: clamp(1.25rem, 2.5vw, 2rem) 0 0;
  max-width: 24ch;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: 300;
  line-height: 1.3;
  color: var(--color-text-secondary);
}
.hm-about__note {
  margin: clamp(1.5rem, 3vw, 2rem) 0 0;
  max-width: 34ch;
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 300;
  line-height: 1.55;
  color: var(--color-muted);
}

@media (max-width: 860px) {
  .hm-about__body { grid-template-columns: 1fr; gap: clamp(3rem, 8vw, 4rem); }
  .hm-about__stat { padding-top: 0; }
}

/* ---- What we back: the thesis on a dark band, primary needs drifting past ----
   Same type scale as the band above: .ab-title for the heading, .ab-lead for
   the body. Dark band, so every text is pure white (no grey on black). */
.hm-back {
  background: var(--color-footer);
  color: #fff;
  padding-bottom: 0;                 /* the marquee carries the bottom air */
  overflow: hidden;                  /* the track is wider than the viewport */
}

.hm-back__title {
  margin: 0;
  max-width: 22ch;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 1.3rem + 3vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.006em;
  color: #fff;
}
.hm-back__copy { margin-top: clamp(3.5rem, 7vw, 6rem); }
.hm-back__text {
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
  max-width: 66.67%;                 /* two thirds of the container */
  font-size: var(--fs-lg);
  font-weight: 300;
  line-height: 1.6;
  color: #fff;
}
.hm-back__text:last-of-type { margin-bottom: 0; }
.hm-back__cta { display: inline-block; margin-top: clamp(2.5rem, 4.5vw, 3.5rem); }

/* Primary needs: one continuous drift, edge to edge, never interactive */
.hm-back__marquee {
  margin-top: clamp(2.5rem, 4.5vw, 4rem);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  user-select: none;
}
.hm-back__track {
  display: flex;
  width: max-content;
  animation: hm-back-drift 46s linear infinite;
}
.hm-back__group { display: flex; align-items: center; }
.hm-back__item {
  flex: 0 0 auto;
  padding-inline: clamp(1.75rem, 3.25vw, 3.25rem);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 1.2rem + 3vw, 4.25rem);
  line-height: 1.2;
  letter-spacing: -0.006em;
  white-space: nowrap;
  color: #fff;
}
@keyframes hm-back-drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }   /* exactly one group */
}
@media (max-width: 860px) {
  .hm-back__text { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-back__track { animation: none; }
}

/* ---- Impact Report: title left, cover centre, links right ---- */
.hm-report__grid {
  /* Height of the kicker plus its air: what the two right columns drop by so
     the cover starts level with the TOP OF THE TITLE, not with the kicker. */
  --kicker-offset: calc(0.8125rem + clamp(3.15rem, 6.3vw, 5.4rem));
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.75fr) minmax(0, 0.6fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.hm-report__title {
  margin: 0;
  max-width: 16ch;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 1.3rem + 3vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.006em;
  color: var(--color-ink);
}
/* Report cover, exported from page 1 of the deck. A4 proportions (1240x1754),
   not 3/4, so it is never distorted. The cover is mostly white, so a hairline
   and a soft shadow keep it from dissolving into the white band. */
.hm-report__cover { padding-top: var(--kicker-offset); }
.hm-report__cover-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1240 / 1754;
  object-fit: cover;
  border: 1px solid var(--color-border);
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.10);
}

/* The link list sits level with the lower half of the cover, as in the layout */
.hm-report__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(0.9rem, 1.8vw, 1.35rem);
  padding-top: calc(var(--kicker-offset) + clamp(9rem, 17vw, 16rem));
}
.hm-report__link {
  position: relative;
  padding-bottom: 4px;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-ink);
}
.hm-report__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.9s cubic-bezier(0.19, 1, 0.22, 1);
}
.hm-report__link:hover,
.hm-report__link:focus-visible { color: var(--color-ink); }
.hm-report__link:hover::after,
.hm-report__link:focus-visible::after { transform: scaleX(1); transform-origin: left; }

@media (max-width: 1000px) {
  .hm-report__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); }
  .hm-report__intro { grid-column: 1 / -1; }
  .hm-report__cover { padding-top: 0; }
  .hm-report__links { padding-top: 0; justify-content: center; }
}
@media (max-width: 680px) {
  .hm-report__grid { grid-template-columns: 1fr; }
  .hm-report__cover { max-width: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-report__link::after { transition: none; }
}

/* ---- News & Insights: the three most recent items, dark band ---- */
.hm-news {
  background: var(--color-footer);
  color: #fff;
}

.hm-news__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.hm-news__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 1.3rem + 3vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.006em;
  color: #fff;
}

/* Lead item takes twice the width of the two that follow */
.hm-news__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}
.hm-news__card {
  display: block;
  color: #fff;
  text-decoration: none;
}
.hm-news__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.hm-news__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.hm-news__card:hover .hm-news__img,
.hm-news__card:focus-visible .hm-news__img { transform: scale(1.04); }

.hm-news__card-title {
  margin: clamp(1.1rem, 2vw, 1.6rem) 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.2rem, 0.9rem + 0.8vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: -0.006em;
  color: #fff;
}
.hm-news__date {
  margin: clamp(0.9rem, 1.8vw, 1.35rem) 0 0;
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 300;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 900px) {
  .hm-news__grid { grid-template-columns: 1fr 1fr; }
  .hm-news__card--lead { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .hm-news__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-news__img { transition: none; }
  .hm-news__card:hover .hm-news__img { transform: none; }
}
