/* Foldy brand tokens, from the September 2026 brandbook */
:root {
  --white: #ffffff;
  --cream: #f4e3b8;
  --olive: #616d38;
  --forest: #283517;

  --font-display: Futura, "Futura PT", Jost, "Century Gothic", sans-serif;
  --font-body: Montserrat, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --section: clamp(4.5rem, 11vw, 9.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
[tabindex="-1"]:focus { outline: none; }

body {
  margin: 0;
  background: var(--forest);
  color: var(--white);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  width: 100%;
  max-width: 88rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: .6rem 1rem;
  background: var(--cream);
  color: var(--forest);
}
.skip:focus { top: 1rem; }

/* Buttons: pill shape from the brandbook's palette capsules */
.btn {
  display: inline-block;
  padding: .95rem 1.75rem;
  border-radius: 999px;
  background: var(--cream);
  color: var(--forest);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.btn:hover { background: var(--white); }
.btn--small { padding: .6rem 1.2rem; font-size: .9375rem; }
.btn--dark { background: var(--forest); color: var(--cream); }
.btn--dark:hover { background: var(--olive); color: var(--white); }

.link {
  color: var(--white);
  font-weight: 500;
  text-underline-offset: .3em;
  text-decoration-thickness: 1px;
}
.link:hover { color: var(--cream); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--forest);
}
.site-header__row {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-block: 1.1rem;
}
.site-header__logo { display: block; margin-right: auto; color: var(--white); }
.logo { display: block; width: 7.75rem; height: 3.3rem; }

.site-nav { display: flex; gap: 2rem; }
.site-nav a {
  color: var(--white);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:hover { color: var(--cream); }

/* Hero */
.hero { padding-block: clamp(2.5rem, 5vw, 5rem); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.eyebrow {
  margin-bottom: 1.5rem;
  color: var(--cream);
  font-weight: 500;
}
h1 {
  color: var(--white);
  font-size: clamp(3.25rem, 5.2vw, 4.75rem);
  line-height: .96;
}
.lede {
  max-width: 34rem;
  margin-top: 2rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
}
.lede + .lede { margin-top: 1rem; font-weight: 600; }
@media (min-width: 861px) and (max-width: 960px) {
  h1 { font-size: 2.9rem; }
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2.5rem;
}

.hero__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 1.5rem;
}

/* 75 cycles */
.cycles {
  padding-block: var(--section);
  background: var(--cream);
  color: var(--forest);
}
.cycles__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: end;
}
.cycles__headline {
  display: flex;
  align-items: flex-end;
  align-items: last baseline;
  gap: clamp(.75rem, 1.5vw, 1.5rem);
}
.cycles__number {
  flex: none;
  color: var(--olive);
  font-family: var(--font-display);
  min-width: 1.95em; /* room for "75+", so the words stay put during the count-up */
  font-size: clamp(6.5rem, 12vw, 13rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: .82;
  letter-spacing: -.03em;
}
.cycles h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
}
@media (max-width: 360px) {
  .cycles__number { font-size: 5.25rem; }
}
.cycles__figure > p:last-child { max-width: 30rem; margin-top: 1.25rem; }

.cycles__pills {
  display: grid;
  grid-template-columns: repeat(15, minmax(0, 1fr));
  gap: clamp(.35rem, .9vw, .8rem);
}
.cycles__pills span {
  aspect-ratio: 1 / 2.2;
  border-radius: 999px;
  background: var(--forest);
  transition: background-color .25s ease;
}
.cycles__pills.is-waiting span:not(.is-on) { background: rgb(97 109 56 / .22); }

/* Why */
.why {
  padding-block: var(--section);
  background: var(--white);
  color: var(--forest);
}
.why h2 {
  max-width: 17ch;
  color: var(--forest);
  font-size: clamp(2.5rem, 6vw, 5.25rem);
}
.why__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem clamp(2rem, 5vw, 5rem);
  margin-top: clamp(3rem, 7vw, 6rem);
}
.why__list article {
  padding-top: 1.25rem;
  border-top: 2px solid var(--forest);
}
.why__list h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); color: var(--olive); }
.why__list p { margin-top: .85rem; max-width: 26rem; }

/* Mission and vision */
.mission {
  padding-block: var(--section);
  background: var(--olive);
  color: var(--white);
}
.mission__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem clamp(2rem, 4vw, 4rem);
}
.mission__statement {
  max-width: 20ch;
  font-family: var(--font-display);
  font-size: clamp(2.125rem, 6vw, 5.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.mission__grid { margin-top: clamp(3rem, 7vw, 6rem); }
.mission h3 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); }
.mission__grid p {
  margin-top: 1rem;
  max-width: 34rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  font-weight: 500;
}

/* About the team: photo and name on the front, bio on the back */
.team {
  padding-block: var(--section);
  background: var(--cream);
  color: var(--forest);
}
.team h2 { color: var(--forest); font-size: clamp(2.5rem, 5vw, 4.25rem); }
@media (min-width: 701px) {
  .team h2 { text-align: center; }
  .team__list { justify-content: center; }
}
.team__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 22rem));
  gap: 2.5rem clamp(2rem, 6vw, 6rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.flip {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 1.5rem;
  perspective: 1400px;
  cursor: pointer;
}
.flip:focus-visible { outline: 3px solid var(--olive); outline-offset: 4px; }
.flip__inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
@media (hover: hover) {
  .flip:hover .flip__inner { transform: rotateY(180deg); }
}
.flip.is-flipped .flip__inner { transform: rotateY(180deg); }
.flip__face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 1.5rem;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.flip__front { background: var(--olive); }
.flip__front img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.flip__label {
  position: absolute;
  inset: auto 0 0;
  padding: 4rem 1.5rem 1.4rem;
  background: linear-gradient(to top, rgb(40 53 23 / .95) 35%, rgb(40 53 23 / 0));
  color: var(--white);
}
.flip__label h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); }
.flip__role { margin-top: .2rem; color: var(--cream); font-weight: 600; }
.flip__hint {
  position: absolute;
  right: 1.25rem;
  bottom: 1.4rem;
  padding: .3rem .8rem;
  border: 1.5px solid var(--cream);
  border-radius: 999px;
  color: var(--cream);
  font-size: .8125rem;
  font-weight: 600;
}
.flip__label:has(.flip__hint) .flip__role { padding-right: 6.5rem; }
.flip__back {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--forest);
  color: var(--white);
  transform: rotateY(180deg);
}
.flip__name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  font-weight: 700;
  line-height: 1.05;
}
.flip__bio { margin-top: 1.25rem; font-size: clamp(1rem, 1.3vw, 1.0625rem); line-height: 1.6; }
@media (max-width: 700px) {
  .team__list { grid-template-columns: minmax(0, 22rem); }
}
@media (prefers-reduced-motion: reduce) {
  .flip__inner { transition: none; }
}

/* Values */
.values { padding-block: var(--section); }
.values h2 {
  color: var(--white);
  font-size: clamp(2.5rem, 5vw, 4.25rem);
}
.values__list {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(.6rem, 1.2vw, 1rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.values__list li {
  padding: .5em 1em .55em;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.6vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  background: var(--cream);
  color: var(--forest);
}
.values__list li:nth-child(2),
.values__list li:nth-child(4) { background: var(--white); }
.values__list li:nth-child(3),
.values__list li:nth-child(5) { background: var(--olive); color: var(--white); }

/* Closing call to action */
.cta {
  padding-block: var(--section);
  background: var(--cream);
  color: var(--forest);
}
.cta h2 { max-width: 14ch; font-size: clamp(3rem, 8vw, 7.25rem); line-height: .98; }
.cta p { margin-top: 1.75rem; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); }
.cta .btn { margin-top: 2rem; }

/* Footer: the main logo in its original olive on forest */
.site-footer { padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem; background: var(--forest); color: var(--cream); }
.site-footer__top { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.site-footer__brand { display: block; color: var(--cream); }
.site-footer__logo { display: block; width: clamp(9rem, 18vw, 13rem); aspect-ratio: 948 / 403; }
.site-footer__social { display: flex; gap: 1.25rem; }
.site-footer__social a { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; color: var(--white); transition: background-color .2s, color .2s; }
.site-footer__social a:hover, .site-footer__social a:focus-visible { background: var(--cream); color: var(--forest); }
.site-footer__social svg { width: 1.3rem; height: 1.3rem; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; margin-top: 2.5rem; }
.site-footer__nav a { color: var(--white); font-weight: 500; text-decoration: none; }
.site-footer__nav a:hover, .site-footer__nav a:focus-visible { color: var(--cream); text-decoration: underline; text-underline-offset: .3em; }
.site-footer__bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgb(244 227 184 / .25); }
.site-footer__bottom p { color: rgb(255 255 255 / .75); font-size: .875rem; }

@media (max-width: 860px) {
  .hero__grid, .cycles__grid, .mission__grid { grid-template-columns: minmax(0, 1fr); }
  h1 { line-height: 1.06; }
  .why__list { grid-template-columns: minmax(0, 1fr); }
  .site-nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* How it works */
.how { padding-block: var(--section); }
.how h2 { max-width: 15ch; color: var(--white); font-size: clamp(2.5rem, 6vw, 5.25rem); }
.how__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem clamp(1.5rem, 3vw, 3rem);
  margin: clamp(3rem, 7vw, 6rem) 0 0;
  padding: 0;
  list-style: none;
}
.how__num {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 5.25rem;
  border-radius: 999px;
  background: var(--cream);
  color: var(--forest);
  font: 700 1.5rem/1 var(--font-display);
}
.how__steps h3 { margin-top: 1.5rem; color: var(--cream); font-size: clamp(1.75rem, 2.6vw, 2.25rem); }
.how__steps p { margin-top: .75rem; }

/* Who it's for */
.who { padding-block: var(--section); background: var(--cream); color: var(--forest); }
.who h2 { max-width: 16ch; font-size: clamp(2.5rem, 6vw, 5.25rem); }
.who__list { margin-top: clamp(3rem, 6vw, 5rem); border-bottom: 2px solid var(--forest); }
.who__list li {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: .75rem 2rem;
  align-items: baseline;
  padding-block: clamp(1.25rem, 2.5vw, 2rem);
  border-top: 2px solid var(--forest);
}
.who__list h3 { font-size: clamp(1.75rem, 3.6vw, 3.25rem); }

@media (max-width: 860px) {
  .how__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .who__list li { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .how__steps { grid-template-columns: minmax(0, 1fr); }
}

.cta p.cta__emails { margin-top: 1.5rem; font-size: 1rem; font-weight: 500; }
.cta__emails a { color: var(--forest); text-underline-offset: .25em; overflow-wrap: anywhere; }

/* What is PHA? */
.pha { padding-block: var(--section); }
.pha__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 2rem clamp(3rem, 7vw, 7rem);
  align-items: center;
}
.pha__word {
  color: var(--olive);
  font-family: var(--font-display);
  font-size: clamp(7rem, 17.5vw, 16.5rem);
  font-weight: 700;
  line-height: .85;
  letter-spacing: -.02em;
}
.pha h2 { color: var(--white); font-size: clamp(2.25rem, 4vw, 3.5rem); }
.pha__grid p:not(.pha__word) { margin-top: 1.25rem; max-width: 34rem; }

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