/* ===========================================================================
   Home: hero, the floating island with its counter card, the measured-impact
   band, the strategy band, and the two card rows.
   =========================================================================== */

/* ---- Hero ----------------------------------------------------------------- */
.home-hero {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 52px clamp(20px, 3vw, 56px) 0;
  padding-left: var(--gutter);
}

.home-hero__eyebrow {
  margin: 0 0 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--green-bright);
}

.home-hero__title {
  margin: 0;
  font-size: clamp(34px, 4.8vw, 72px);
  line-height: 1.03;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--green-deep);
  text-wrap: balance;
}

.home-hero__sub {
  margin: 22px auto 0;
  max-width: 480px;
  font-size: clamp(14.5px, 1.1vw, 17.5px);
  line-height: 1.5;
  color: var(--muted-alt);
  text-wrap: pretty;
}

.home-hero__cta {
  margin: 14px auto 0;
}

/* ---- Island with the counter card ----------------------------------------- */
.island {
  position: relative;
  z-index: 1;
  margin: clamp(-96px, -6.4vw, -26px) auto 0;
  width: 100%;
  max-width: 1400px;
  padding: 0 clamp(18px, 3vw, 56px) clamp(24px, 4vw, 40px);
  padding-left: var(--gutter);
}

.island__art {
  display: block;
  width: 100%;
  height: auto;
  margin-top: clamp(16px, 2.4vw, 36px);
  animation: islandDrift 9s ease-in-out infinite;
}

@keyframes islandDrift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

/* Sticks to the bottom of the screen while the section is in view, then rides
   up with the artwork. Only its vertical position ever changes. */
.island__card {
  position: sticky;
  bottom: calc(var(--page-bottom) + clamp(16px, 2.4vw, 34px));
  z-index: 3;
  width: clamp(190px, 17vw, 258px);
  max-width: 100%;
  margin: clamp(-150px, -9vw, -96px) clamp(0px, 1.5vw, 26px) 0 auto;
}

.island__panel {
  position: relative;
  padding: clamp(15px, 1.5vw, 21px) clamp(16px, 1.6vw, 23px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(12, 61, 32, 0.58), rgba(12, 61, 32, 0.74));
  box-shadow: 0 26px 60px rgba(12, 61, 32, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  animation: cardFloat 6.5s ease-in-out infinite;
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.island__count {
  margin: 0;
  font-size: clamp(21px, 1.95vw, 29px);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.island__unit {
  margin: 8px 0 0;
  font-size: clamp(11px, 0.88vw, 12.5px);
  font-weight: 600;
  color: #fff;
}

.island__note {
  margin: 9px 0 0;
  font-size: clamp(11.5px, 0.85vw, 12.5px);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.76);
  text-wrap: pretty;
}

/* On a phone the card sits below the artwork in normal flow: nothing covers
   the island, and the card scrolls away with the page instead of sticking. */
@media (max-width: 819px) {
  .island__card {
    position: static;
    width: 100%;
    margin: clamp(16px, 4vw, 24px) 0 0;
  }

  /* It is part of the page now, so the bob would collide with what follows. */
  .island__panel {
    animation: none;
  }
}

@media (max-width: 560px) {
  .island__note { display: none; }
  .island__panel { border-radius: 18px; padding: 13px 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .island__art, .island__panel { animation: none; }
}

/* ---- Measured impact ------------------------------------------------------ */
.impact {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: clamp(64px, 9vw, 120px) clamp(18px, 4vw, 72px);
  padding-left: var(--gutter);
  background-color: var(--band-green);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  color: #fff;
}

.impact__inner {
  position: relative;
  max-width: var(--page-max);
  margin: 0 auto;
}

.impact__head {
  display: grid;
  gap: clamp(20px, 4vw, 64px);
  align-items: end;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.impact__eyebrow {
  margin: 0 0 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--lime);
}

.impact__title {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1.03;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
  text-wrap: balance;
}

.impact__blurb {
  margin: 0;
  max-width: 480px;
  justify-self: end;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.5;
  color: var(--on-dark);
  text-wrap: pretty;
}

.impact__panel {
  margin-top: clamp(30px, 3.6vw, 52px);
  padding: clamp(34px, 4.6vw, 72px) clamp(20px, 3vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
}

.impact__count {
  margin: 0;
  font-size: clamp(46px, 7.2vw, 108px);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.impact__unit {
  margin: 12px 0 0;
  font-size: clamp(24px, 2.6vw, 40px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--lime);
}

.impact__note {
  margin: 16px auto 0;
  max-width: 720px;
  font-size: clamp(16px, 1.35vw, 21px);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
  text-wrap: pretty;
}

.impact__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(30px, 3.4vw, 52px);
}

.impact__footNote {
  margin: 0;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
}

/* ---- Strategy ------------------------------------------------------------- */
.strategy {
  position: relative;
  z-index: 2;
  padding: clamp(64px, 9vw, 120px) clamp(18px, 4vw, 72px);
  padding-left: var(--gutter);
  background: var(--band-green-soft);
  color: #fff;
}

.strategy__inner {
  position: relative;
  display: grid;
  gap: clamp(34px, 4.5vw, 72px);
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  max-width: var(--page-max);
  margin: 0 auto;
}

.strategy__eyebrow {
  margin: 0 0 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--lime);
}

.strategy__title {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1.03;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
  text-wrap: balance;
}

.strategy__accent {
  display: block;
  color: var(--lime);
}

.strategy__blurb {
  margin: 28px 0 0;
  max-width: 520px;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.55;
  color: var(--on-dark);
  text-wrap: pretty;
}

.strategy__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 22px);
}

.strategy__card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(18px, 2.2vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  box-shadow: 0 10px 30px rgba(6, 28, 19, 0.18);
  transition: transform 0.3s var(--ease), background-color 0.3s, box-shadow 0.3s;
}

.strategy__card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
  box-shadow: 0 20px 46px rgba(6, 28, 19, 0.3);
}

.strategy__plate {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(92px, 9vw, 116px);
  height: clamp(92px, 9vw, 116px);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
}

.strategy__plate img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.strategy__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.strategy__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.strategy__value {
  font-size: clamp(34px, 3.6vw, 50px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--lime);
}

.strategy__unit {
  font-size: 16px;
  color: var(--on-dark);
}

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

/* ---- Card rows (news and journal) ----------------------------------------- */
.card-row {
  position: relative;
  z-index: 2;
  padding: clamp(64px, 9vw, 120px) clamp(18px, 4vw, 72px);
  padding-left: var(--gutter);
}

.card-row--sand { background: var(--tint-sand); }
.card-row--band { background: var(--band-green); color: #fff; }

.card-row__inner {
  position: relative;
  max-width: var(--page-max);
  margin: 0 auto;
}

.card-row__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
}

.card-row__eyebrow {
  margin: 0 0 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--green-bright);
}

.card-row__title {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1.03;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--page-ink);
  text-wrap: balance;
}

.card-row__link {
  font-size: 15px;
  font-weight: 600;
  color: var(--green-mid);
  border-bottom: 1.5px solid rgba(26, 107, 52, 0.35);
  padding-bottom: 3px;
}

.card-row__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
  margin-top: clamp(32px, 3.6vw, 52px);
}

.card-row__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: inherit;
}

.card-row__card:hover { color: inherit; }

.card-row__media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 20px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--page);
}

.card-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.card-row__card:hover .card-row__media img { transform: scale(1.04); }

/* Same reasoning as the news page: award imagery is portrait, so show all of
   it. The journal row keeps `cover`, its artwork being landscape by design. */
.card-row--news .card-row__media {
  padding: 16px;
}

.card-row--news .card-row__media img {
  object-fit: contain;
}

.card-row__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: #143a26;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--lime);
}

.card-row__meta {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-bright);
}

.card-row__cardTitle {
  margin-top: 10px;
  font-size: clamp(20px, 1.8vw, 25px);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--page-ink);
  text-wrap: balance;
}

.card-row__excerpt {
  margin-top: 10px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted-soft);
  text-wrap: pretty;
}

.card-row__card .link-more { margin-top: 16px; }

/* The journal row sits on the deep green band. */
.card-row--band .card-row__eyebrow,
.card-row--band .card-row__meta,
.card-row--band .link-more { color: var(--lime); }
.card-row--band .card-row__title,
.card-row--band .card-row__cardTitle { color: #fff; }
.card-row--band .card-row__excerpt { color: var(--on-dark); }
.card-row--band .card-row__media { background: rgba(255, 255, 255, 0.08); }
.card-row--band .card-row__link { color: var(--lime); border-bottom-color: rgba(199, 242, 77, 0.4); }

@media (max-width: 900px) {
  .card-row__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .card-row__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Certification rail --------------------------------------------------- *
 * Fixed beside the page on a wide screen, a bar along the bottom on a narrow
 * one. The geometry below is taken from the design bundle and is deliberate:
 * cell height, insets and the per-shape scales set the optical weight of marks
 * that are drawn at very different proportions.
 */
.cert-rail {
  position: fixed;
  left: var(--rail-left);
  top: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  width: 136px;
  padding: clamp(96px, 13vh, 124px) 0 clamp(18px, 2.4vh, 24px);
  pointer-events: none; /* only the dark panel inside catches the pointer */
}

.cert-rail__stack {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 100%;
  padding: clamp(10px, 2vh, 18px) 0;
  border-radius: 26px;
  background: var(--band-green, #0d3324);
  box-shadow: 0 18px 40px rgba(24, 44, 34, 0.18);
  pointer-events: auto;
}

.cert-rail__item {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  height: clamp(62px, 10vh, 96px);
  padding: 2px 0;
  border-radius: 16px;
  /* Marks magnify away from the rail, never back over it. */
  transform-origin: left center;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cert-rail__item[data-near='0'] { transform: scale(1.34); z-index: 3; }
.cert-rail__item[data-near='1'] { transform: scale(1.14); z-index: 2; }
.cert-rail__item[data-near='2'] { transform: scale(1.04); }

.cert-rail__glow {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: var(--band-green, #0d3324);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  opacity: 0;
  transition: opacity 0.24s ease-out;
}

.cert-rail__item[data-near='0'] .cert-rail__glow {
  opacity: 1;
}

.cert-rail__mark {
  position: absolute;
  inset: 2px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-rail__mark[data-shape='wide'] {
  transform: scale(0.78);
}

.cert-rail__mark img,
.cert-bar__mark img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* Flattens every mark to solid white on the dark panel. */
  filter: brightness(0) invert(1);
}

/* ---- Hover card ---- */
.cert-rail__tip {
  position: absolute;
  left: calc(100% + 16px);
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateX(-10px);
  pointer-events: none;
  transition: opacity 0.28s ease-out, transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.cert-rail__item[data-near='0'] .cert-rail__tip {
  opacity: 1;
  transform: translateX(0);
}

.cert-rail__arrow {
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: -5px;
  background: #fff;
  box-shadow: -3px 3px 10px rgba(24, 44, 34, 0.1);
  transform: rotate(45deg);
}

.cert-rail__card {
  position: relative;
  display: block;
  min-width: 210px;
  padding: 14px 20px;
  border: 1px solid rgba(24, 44, 34, 0.08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(24, 44, 34, 0.16);
}

.cert-rail__name {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--page-ink);
}

.cert-rail__note {
  display: block;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(24, 44, 34, 0.66);
}

.cert-rail__tag {
  display: block;
  margin-top: 9px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--green-deep, #0d3324);
}

/* ---- Narrow screens: a bar along the bottom ---- */
.cert-bar {
  display: none;
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 6;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 10px clamp(12px, 4vw, 20px) calc(10px + env(safe-area-inset-bottom));
  background: var(--band-green, #0d3324);
  box-shadow: 0 -10px 30px rgba(24, 44, 34, 0.22);
}

.cert-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 56px;
  padding: 6px 4px;
  border-radius: 12px;
  background: var(--band-green-soft, #14492f);
}

.cert-bar__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 94%;
  height: 30px;
}

.cert-bar__mark[data-shape='wide'] { width: 54%; }
.cert-bar__mark[data-shape='xl'] { width: 116%; }
.cert-bar__mark[data-shape='big'] { width: 104%; }

.cert-bar__label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  color: #b7c8bd;
}

@media (max-width: 819px) {
  .cert-rail {
    display: none;
  }

  .cert-bar {
    display: grid;
  }

  /* The bar is fixed over the page, so the footer needs room to clear it.
     --page-bottom already carries that height for the hero counter. */
  .home .site-footer {
    padding-bottom: calc(var(--page-bottom) + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .cert-rail__item,
  .cert-rail__tip,
  .cert-rail__glow {
    transition: none;
  }
}
