/* =========================================================
   Jory&Co — Our Impact page
   Builds on main.css (tokens, buttons, ticker-box, marquee, footer, nav)
   Figma: Our Impact_A (7315:11010)
   ========================================================= */

.page-impact .main { background: var(--black); }

/* ---------- shared bits ---------- */
.data-note { font-size: 12px; line-height: 1.4; opacity: .5; }
.btn-pill--sm {
  display: inline-flex; min-height: 0; height: 36px; padding: 0 18px;
  border-radius: 36px; width: auto;
}
[data-lines] .line { display: block; overflow: hidden; padding: .16em .08em .26em; margin: -.16em -.08em -.26em; }
[data-lines] .line + .line { margin-top: -.42em; } /* adjoining line margins collapse (-.26 vs -.16): restore the full overlap so a multi-line heading keeps its height */
[data-lines] { display: flow-root; }
[data-lines] .line__inner { display: block; will-change: transform, opacity; }
html.js [data-fade] { opacity: 0; }
html.js .ph__title { visibility: hidden; }
.nav-link.is-current .nav-link__dot { background: var(--new-green); }

/* Section heading: title + numbered ring (reused in every section) */
.sec-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  border-top: 1px solid var(--white-20);
  padding-top: 20px;
  color: var(--white);
}
.sec-head__title {
  font-weight: 600; font-size: clamp(44px, 6.25vw, 90px); line-height: 1; letter-spacing: -0.03em;
  margin: 0;
}
.sec-head__num {
  flex: none; width: 70px; height: 70px; border-radius: 50%;
  border: 1px solid currentColor; display: grid; place-items: center; line-height: 1;
}
.sec-head--dark { border-top-color: rgba(0,0,0,.2); color: var(--black); }

/* ---------- Page header ---------- */
.ph { position: relative; padding: 0 20px; }
.ph .hero__bar { position: absolute; }
.ph__inner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 50px; text-align: center;
  min-height: 100vh; min-height: 100svh; padding: 110px 0 60px; box-sizing: border-box; }
.ph__title {
  max-width: 1212px; margin: 0;
  font-weight: 600; font-size: clamp(48px, 6.25vw, 90px); line-height: 1; letter-spacing: -0.03em;
}
.ph__intro { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.ph__intro p { max-width: 690px; font-size: 17px; line-height: 1.4; }
.ph__jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; margin-top: 0; }
.ph__jump .icon-down { width: 8px; height: 8px; opacity: .5; color: var(--white); transition: color .3s, opacity .3s; }
.ph__jump a:hover .mono, .ph__jump a:hover .icon-down { color: var(--new-green); opacity: 1; }
.ph__jump .mono { transition: color .3s, opacity .3s; }
.ph__media {
  margin: 0; position: relative;
  aspect-ratio: 1400 / 785; border-radius: var(--radius); overflow: hidden;
}
.ph__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); will-change: transform; }
.ph__media .ph__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); will-change: transform; }

/* ---------- Sections ---------- */
.isec { margin-top: 200px; }
.isec .sec-head + * { margin-top: 200px; }

/* ---------- Donuts ---------- */
.donut-block { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gutter); align-items: center; }
.donut-block + .donut-block { margin-top: 200px; }
.donut { position: relative; width: min(572px, 100%); aspect-ratio: 1; }
.donut-block--sectors .donut { justify-self: end; }
.donut-block--purpose .donut { justify-self: start; }
.donut__svg { width: 100%; height: 100%; overflow: visible; }
.donut__seg { cursor: pointer; transition: opacity .35s ease, transform .45s var(--ease-out); transform-origin: 286px 286px; }
.donut.is-focus .donut__seg { opacity: .3; }
.donut.is-focus .donut__seg.is-on { opacity: 1; }
.donut__center {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px; text-align: center; pointer-events: none;
}
.donut__value { font-weight: 600; font-size: clamp(56px, 6.25vw, 90px); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.donut__label { max-width: 220px; white-space: normal; }

.donut-legend { align-self: start; margin-left: 118px; margin-top: 114px; max-width: 454px; display: flex; flex-direction: column; gap: 30px; }
.donut-legend__intro { font-size: 16px; line-height: 1.4; }
.legend { display: flex; flex-direction: column; gap: 15px; }
.legend__row {
  display: flex; align-items: center; gap: 6px; padding-top: 16px;
  border-top: 1px solid var(--white-20); cursor: pointer;
  transition: opacity .3s ease;
}
.legend__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; transition: transform .3s var(--ease-out); }
.legend__pct { margin-left: auto; opacity: .5; transition: opacity .3s, color .3s; }
.legend.is-focus .legend__row { opacity: .35; }
.legend.is-focus .legend__row.is-on { opacity: 1; }
.legend__row.is-on .legend__dot { transform: scale(1.6); }
.legend__row.is-on .legend__pct { opacity: 1; color: var(--c); }

.donut-copy { padding-left: 140px; max-width: calc(140px + 420px); display: flex; flex-direction: column; align-items: flex-start; gap: 30px; }
.donut-copy__lead { font-weight: 600; font-size: 25px; line-height: 1.4; }

/* ---------- SDGs ---------- */
.sdg { margin-top: 200px; }
.sdg__intro { display: flex; flex-direction: column; gap: 30px; max-width: 690px; }
.sdg__title { font-weight: 600; font-size: 50px; line-height: 1; margin: 0 0 6px; }
.sdg__text { font-size: 18px; line-height: 1.4; }
.sdg__bars { list-style: none; margin: 100px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.sdg__row { position: relative; height: 50px; display: flex; align-items: center; }
.sdg__bar {
  position: relative; height: 50px; width: var(--w); border-radius: 3.188px; background: var(--c);
  overflow: hidden; transform-origin: left center; flex: none;
}
.sdg__label { position: absolute; left: 10px; top: 9.5px; height: 31px; width: var(--lw); overflow: hidden; }
.sdg__label img { position: absolute; max-width: none; }
.sdg__num { margin-left: 10px; opacity: .5; font-variant-numeric: tabular-nums; }

/* ---------- Map ---------- */
.map { margin-top: 200px; }
.map__stage { position: relative; aspect-ratio: 1400 / 676; overflow: hidden; }
.map__svg { position: absolute; left: 0; top: .23%; width: 100%; height: auto; overflow: visible; }
.map-c { fill: #2F2F2F; stroke: #000; stroke-width: .6; stroke-linejoin: round; opacity: .9; transition: fill .6s ease, opacity .4s ease; }
.map-c.is-client { cursor: pointer; }
.map-c.is-lit { fill: rgba(0, 255, 118, 0.55); }
.map-c.is-hot { fill: var(--new-green); }
.map.is-focus .map-c.is-lit:not(.is-hot) { fill: rgba(0, 255, 118, 0.25); }
.map__arc { fill: none; stroke: rgba(0, 255, 118, .55); stroke-width: 1.1; stroke-linecap: round; }
.map__comet { fill: #fff; filter: drop-shadow(0 0 4px #00ff76) drop-shadow(0 0 8px #00ff76); }
.map__beacon { fill: var(--new-green); }
.map__ring { fill: none; stroke: var(--new-green); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: ring 2.4s ease-out infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(5); opacity: 0; } }
.map__title {
  position: absolute; left: 50%; top: 42.8%; transform: translate(-50%, 0);
  margin: 0; white-space: nowrap; pointer-events: none;
  font-weight: 600; font-size: clamp(36px, 4.86vw, 70px); line-height: 1; letter-spacing: -0.03em;
  text-shadow: 0 0 40px rgba(0,0,0,.6);
}
.map__tip {
  position: absolute; left: 0; top: 0; padding: 8px 10px; border-radius: 6px;
  background: rgba(0,0,0,.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--new-green); pointer-events: none; opacity: 0; transform: translate(-50%, -150%);
  transition: opacity .25s ease; white-space: nowrap; z-index: 2;
}
.map__tip.is-on { opacity: 1; }
.map__list { list-style: none; margin: 50px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px; }
.map__list li { opacity: .5; cursor: default; transition: opacity .3s ease, color .3s ease; }
.map__list li.is-on { opacity: 1; color: var(--new-green); }

/* ---------- Years ticker CTA ---------- */
.ticker-box--years { height: 355px; margin-top: 200px; }
.years__strip { position: absolute; left: 0; right: 0; top: 0; height: 230px; display: flex; align-items: center; overflow: hidden; }
.years__track { display: flex; align-items: center; flex: none; will-change: transform; }
.years__track .year { transition: opacity .5s ease; }
.years__strip.is-landed .year:not(:last-child) { opacity: .35; }
.year {
  flex: none; padding-right: 80px; color: var(--new-green);
  font-weight: 600; font-size: clamp(48px, 6.25vw, 90px); line-height: 1; letter-spacing: -0.03em; white-space: nowrap;
}
.ticker-box--years .edge-blur { height: 230px; bottom: auto; }
.years__copy {
  position: absolute; left: 50%; top: 210px; transform: translateX(-50%);
  width: min(750px, 90%); text-align: center; font-size: 18px; line-height: 1.4; color: var(--white); z-index: 3;
}
.years__copy strong { font-weight: 600; }

/* ---------- Bands (full-bleed light/dark sections) ---------- */
.band { position: relative; padding: 200px 20px; }
.band--light { background: var(--white); color: var(--black); }
.band--dark { background: var(--black); color: var(--white); }
.band--last { padding-bottom: 20px; }
.band__inner > .sec-head + * { margin-top: 100px; }

/* ---------- 02 Brands that build value ---------- */
.value { position: relative; }
.value__copy { position: absolute; left: 0; top: 0; max-width: 592px; font-size: 18px; line-height: 1.4; z-index: 1; }
.value__bars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); align-items: end; height: 770px; }
.vbar {
  position: relative; height: var(--h); border-radius: var(--radius); overflow: hidden;
  background: var(--new-green); color: var(--black); text-align: left; padding: 0;
  transform-origin: bottom center; cursor: pointer;
  transition: background-color .45s var(--ease-out), color .45s var(--ease-out);
}
.vbar::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.2); opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.vbar:hover::after, .vbar:focus-visible::after { opacity: 1; }
.vbar.is-open::after { opacity: 0; }
.vbar__head { position: absolute; left: 20px; top: 30px; display: flex; align-items: flex-end; gap: 10px; white-space: nowrap; z-index: 1; }
.vbar__num { font-weight: 600; font-size: clamp(48px, 5.56vw, 80px); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.vbar__round { line-height: 1.4; }
.vbar__icon { position: absolute; right: 20px; top: 20px; width: 30px; height: 30px; z-index: 1; transition: transform .5s var(--ease-out); }
.vbar__icon svg { width: 100%; height: 100%; display: block; }
.vbar__icon circle { fill: var(--black); transition: fill .45s var(--ease-out); }
.vbar__icon path { fill: var(--new-green); transition: fill .45s var(--ease-out); }
.vbar__detail {
  position: absolute; left: 20px; right: 20px; bottom: 20px;
  display: flex; flex-direction: column; gap: 20px; padding-top: 20px;
  border-top: 1px solid var(--white-20); color: var(--white);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
}
.vbar__name { font-weight: 600; font-size: 20px; line-height: 1.2; }
.vbar__desc { font-size: 13px; line-height: 1.4; }
.vbar__tags { opacity: .5; margin-top: 4px; }
.vbar.is-open { background: var(--black); color: var(--new-green); }
.vbar.is-open .vbar__icon { transform: rotate(45deg); }
.vbar.is-open .vbar__icon circle { fill: var(--new-green); }
.vbar.is-open .vbar__icon path { fill: var(--black); }
.vbar.is-open .vbar__detail { opacity: 1; transform: none; transition-delay: .1s; }

/* ---------- 03 Climate positive business: card stacking ---------- */
.climate { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gutter); }
.climate__aside { position: relative; }
.climate__sticky { position: sticky; top: 30vh; display: flex; flex-direction: column; align-items: flex-start; gap: 30px; max-width: 572px; }
.climate__logo { width: 98px; height: 74px; object-fit: cover; }
.climate__copy { font-size: 18px; line-height: 1.4; }
.climate__copy strong { font-weight: 600; }
.pill-tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px; border-radius: 30px;
  border: 1px solid rgba(0, 255, 118, .4); color: var(--new-green);
}
.pill-tag__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--new-green); }
.stack__item { position: sticky; top: 0; height: 790px; padding-top: 20px; }
.stack__card {
  position: relative; height: 770px; border-radius: var(--radius); overflow: hidden;
  transform-origin: center top; will-change: transform, filter;
}
.stack__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stack__text { position: absolute; left: 50px; top: 50px; right: 50px; color: var(--white); }
.stack__num {
  margin-left: -15px; font-weight: 600; font-size: clamp(110px, 17.4vw, 250px); line-height: 1; letter-spacing: -0.03em;
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.stack__unit { font-size: .28em; letter-spacing: -0.03em; }
.stack__unit sup { font-size: .64em; }
.stack__label { margin-top: 10px; font-weight: 600; font-size: 25px; line-height: 1.4; }

/* ---------- 04 Practicing what we preach ---------- */
.practice { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.pcard {
  background: var(--new-green); border-radius: var(--radius); padding: 30px; min-height: 242px;
  display: flex; flex-direction: column; gap: 20px;
}
.pcard__icon { width: 32px; height: 32px; }
.pcard__title { margin: 0; font-weight: 600; font-size: 22px; line-height: 1.2; }
.pcard__text { font-size: 16px; line-height: 1.4; }
.pcard .link-arrow { margin-top: auto; padding-top: 10px; }
.link-arrow--dark .mono { color: var(--black); opacity: .5; }
.link-arrow--dark:hover .mono { opacity: 1; }
.practice__lead { max-width: 758px; margin: 100px auto 100px; text-align: center; font-weight: 600; font-size: 25px; line-height: 1.4; }
.communities { display: grid; grid-template-columns: repeat(2, minmax(0, 572px)); justify-content: center; gap: var(--gutter); }
.comm { position: relative; aspect-ratio: 572 / 322; border-radius: var(--radius); overflow: hidden; outline: none; cursor: default; }
.comm__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.comm::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); transition: background-color .5s var(--ease-out); }
.comm__body { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; }
.comm__logo { max-width: 60%; object-fit: contain; transition: transform .6s var(--ease-out); }
.comm__logo--multiply { filter: brightness(0) invert(1); }
.comm__desc {
  position: absolute; left: 50%; top: 62%; width: min(454px, 84%); transform: translate(-50%, 12px);
  text-align: center; font-size: 14px; line-height: 1.4; color: var(--white);
  opacity: 0; transition: opacity .5s var(--ease-out), transform .6s var(--ease-out);
}
.comm:hover::after, .comm:focus-visible::after { background: rgba(0,0,0,.9); }
.comm:hover .comm__bg { transform: scale(1.04); }
.comm:hover .comm__logo, .comm:focus-visible .comm__logo { transform: translateY(-40px); }
.comm:hover .comm__desc, .comm:focus-visible .comm__desc { opacity: 1; transform: translate(-50%, 0); transition-delay: .08s; }

/* ---------- 05 Charities ---------- */
.charities__copy { max-width: 690px; font-size: 18px; line-height: 1.4; }
.ticker-box--charities { margin-top: 100px; }
.client--tile { background: var(--white); border-radius: var(--radius); }
.client--tile img { max-height: 120px; height: auto; object-fit: contain; }
.band--last .ticker-box--cta { margin-top: 200px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .donut-block, .climate { grid-template-columns: 1fr; row-gap: 60px; }
  .donut-block--sectors .donut, .donut-block--purpose .donut { justify-self: center; }
  .donut-legend { margin: 0 auto; }
  .donut-copy { padding-left: 0; margin: 0 auto; }
  .donut-block--purpose .donut { order: -1; }
  .climate__sticky { position: static; margin-bottom: 40px; }
  .value__copy { position: static; margin-bottom: 40px; }
  .value__bars { height: auto; min-height: 520px; }
  .vbar { height: calc(var(--h) * .75); }
  .communities { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .ph__inner { min-height: 0; padding: 140px 0 100px; }
  .sdg__label { display: none; }
  .value__bars { grid-template-columns: 1fr; }
  .vbar { height: calc(var(--h) * .5); }
  .practice, .communities { grid-template-columns: 1fr; }
  .stack__item { height: 520px; }
  .stack__card { height: 500px; }
  .years__copy { font-size: 15px; top: 190px; }
  .ticker-box--years { height: 330px; }
  .map__list { gap: 10px 18px; }
}

/* ---------- Easter egg: "measured" spec overlay ----------
   Hovering the word draws designer redlines over it: a bounding box with
   handles, live W/H dimensions, typographic guides (cap height, x-height,
   baseline), the type spec, and a crosshair that reads out the cursor. */
.measure { position: relative; transition: color .35s ease; }
@media (hover: hover) and (pointer: fine) { .measure { cursor: crosshair; } }
.measure.is-on { color: var(--new-green); }
.spec {
  position: absolute; left: 0; top: 0; z-index: 30; pointer-events: none;
  --g: var(--new-green);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--g);
}
.spec > *, .spec__guide > span { position: absolute; }
.spec__box { inset: 0; border: 1px solid var(--g); }
.spec__h { width: 7px; height: 7px; margin: -4px 0 0 -4px; background: var(--black); border: 1px solid var(--g); }
.spec__guide { left: -60px; right: -60px; height: 0; border-top: 1px dashed rgba(0, 255, 118, .55); transform-origin: left center; }
.spec__guide span { right: calc(100% + 6px); top: -8px; padding: 1px 4px; white-space: nowrap; color: var(--g); background: var(--black); border-radius: 2px; }
.spec__dim { height: 0; border-top: 1px solid var(--g); transform-origin: left center; }
.spec__dim::before, .spec__dim::after { content: ""; position: absolute; top: -5px; width: 0; height: 9px; border-left: 1px solid var(--g); }
.spec__dim::before { left: 0; } .spec__dim::after { right: 0; }
.spec__dim--v { width: 0; height: auto; border-top: 0; border-left: 1px solid var(--g); transform-origin: center top; }
.spec__dim--v::before, .spec__dim--v::after { top: auto; left: -5px; width: 9px; height: 0; border-left: 0; border-top: 1px solid var(--g); }
.spec__dim--v::before { top: 0; } .spec__dim--v::after { bottom: 0; right: auto; }
.spec__tag { padding: 3px 6px; border-radius: 3px; background: var(--g); color: var(--black); white-space: nowrap; }
.spec__x, .spec__y { background: rgba(0, 255, 118, .5); }
.spec__x { top: 0; bottom: 0; width: 1px; }
.spec__y { left: 0; right: 0; height: 1px; }
.spec__xy { padding: 2px 5px; border-radius: 2px; white-space: nowrap; color: var(--g); background: rgba(0, 0, 0, .85); }

/* country list: an endless strip that drifts across the page (pauses on hover) */
.map__marquee { margin-top: 50px; overflow: hidden; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 120px, #000 calc(100% - 120px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 120px, #000 calc(100% - 120px), transparent); }
.map__marquee .map__list { margin: 0; flex-wrap: nowrap; justify-content: flex-start; gap: 0 40px; width: max-content; will-change: transform; }
.map__marquee .map__list li { white-space: nowrap; flex: none; }
@media (max-width: 760px) { .map__marquee .map__list { gap: 0 28px; } }
/* on hover each logo lifts (and shrinks only if it must) to sit a set gap above its description;
   --ly / --ls are measured per card in impact.js */
.comm:hover .comm__logo, .comm:focus-visible .comm__logo { transform: translateY(var(--ly, -40px)) scale(var(--ls, 1)); }
@media (max-width: 760px) { .comm__desc { top: 54%; width: 90%; font-size: 12px; } }

/* "find out more" on the green practice cards: solid black label + arrow, centred together */
.pcard .link-arrow--dark { align-items: center; gap: 8px; }
.link-arrow--dark .mono { opacity: 1; line-height: 1; }
.link-arrow--dark svg.icon-link, .link-arrow--dark .icon-link { color: var(--black); opacity: 1; }
.link-arrow--dark:hover .mono, .link-arrow--dark:hover .icon-link { opacity: .6; }
