/* Purpose Civilization — page sheet
   Scoped to .purpose so the rest of peterluisvenero.com is untouched.
   Serif, sans, and mono come from brand-tokens.css. */

.purpose {
  --p-ink: #f4efe6;
  --p-ink-soft: #d9d0c3;
  --p-muted: #b7aa9a;
  --p-quiet: #8f8476;
  --p-gold: #c9951e;
  --p-line: rgba(232, 220, 196, 0.16);
  --p-vellum: #f4efe4;
  --p-vellum-ink: #1a140c;
  --p-pad: clamp(1.25rem, 4vw, 7rem);
  background: #07070b;
  color: var(--p-ink);
  font-size: 1.125rem;
  line-height: 1.5;
}

.purpose a {
  color: inherit;
  text-decoration: none;
}

.purpose a:hover {
  color: inherit;
}

.purpose :focus-visible {
  outline: 2px solid var(--p-gold);
  outline-offset: 4px;
}

.purpose section,
.purpose .dawn {
  scroll-margin-top: 5.5rem;
}

.purpose .wrap {
  width: min(1120px, calc(100% - (var(--p-pad) * 2)));
  margin-inline: auto;
}

.purpose .hero {
  min-height: calc(100svh - 4.5rem);
  display: flex;
  align-items: flex-end;
  padding: clamp(4.5rem, 12vh, 7rem) var(--p-pad) clamp(3rem, 8vh, 5rem);
  background-color: #14110c;
  background-image:
    linear-gradient(to top, rgba(7, 7, 11, 0.92) 0%, rgba(7, 7, 11, 0.62) 28%, rgba(7, 7, 11, 0.16) 54%),
    linear-gradient(to right, rgba(7, 7, 11, 0.62) 0%, rgba(7, 7, 11, 0.22) 32%, rgba(7, 7, 11, 0) 52%),
    var(--pc-hero);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.purpose .hero-inner {
  width: min(560px, 100%);
}

.purpose .brow {
  margin: 0 0 1.35rem;
  max-width: 18em;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.35;
  color: var(--p-ink-soft);
}

.purpose h1 {
  margin: 0;
  max-width: 11em;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.7rem, 6.4vw, 5.7rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: #f7f3ea;
}

.purpose .sub {
  margin: 1.35rem 0 0;
  max-width: 18em;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  line-height: 1.25;
  color: #e7dccb;
}

.purpose .discover {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--p-ink-soft);
  border-bottom: 1px solid rgba(232, 220, 196, 0.45);
}

.purpose section {
  padding: clamp(5.5rem, 14vh, 9rem) 0;
}

.purpose .voice {
  background: #0c0b10;
}

.purpose .voice blockquote {
  margin: 0;
  padding: 0 0 0 1.25rem;
  border-left: 1px solid rgba(201, 149, 30, 0.7);
  max-width: 24em;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.3vw, 1.95rem);
  font-weight: 400;
  line-height: 1.45;
  color: #f3eee6;
}

.purpose .voice p {
  margin: 0;
}

.purpose .voice figcaption {
  margin: 1.25rem 0 0 1.25rem;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--p-muted);
}

.purpose .sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.purpose .thesis {
  background: #100e0c;
}

.purpose .thesis h2,
.purpose .life h2,
.purpose .flywheel h2,
.purpose .close h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.purpose .thesis h2 {
  margin: 0;
  max-width: 12em;
  font-size: clamp(2.15rem, 4.6vw, 3.7rem);
  line-height: 1.12;
  color: #f7f3ea;
}

.purpose .reclaim {
  margin: 1.75rem 0 0;
  max-width: 36em;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.55;
  color: var(--p-ink-soft);
}

.purpose .orientation {
  margin: 3.5rem 0 1rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--p-quiet);
}

.purpose .contrasts {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 40rem;
}

.purpose .contrasts li {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem 1rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-top: 1px solid var(--p-line);
  font-size: 1.05rem;
}

.purpose .contrasts li:last-child {
  border-bottom: 1px solid var(--p-line);
}

.purpose .contrasts .to {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--p-gold);
}

.purpose .turn {
  margin: 2.5rem 0 0;
  max-width: 16em;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.3;
  color: #f7f3ea;
}

.purpose .life {
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(240, 197, 74, 0.1), transparent 55%),
    #1a1510;
}

.purpose .life h2 {
  margin: 0;
  max-width: 16em;
  font-size: clamp(1.85rem, 3.4vw, 2.8rem);
  line-height: 1.2;
  color: #f7f3ea;
}

.purpose .equation-line {
  margin: 2.25rem 0 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e7d7b0;
}

.purpose .equation {
  display: grid;
  gap: 2.25rem;
  margin-top: 2rem;
}

.purpose .equation h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--p-ink);
}

.purpose .equation p {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--p-ink-soft);
}

.purpose .flywheel {
  background: #120f0c;
}

.purpose .flywheel h2 {
  margin: 0 0 0.75rem;
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3.1rem);
  color: #f7f3ea;
}

.purpose .fly-lead {
  margin: 0 0 2.5rem;
  max-width: 34em;
  color: var(--p-ink-soft);
}

.purpose .institutions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--p-line);
  border: 1px solid var(--p-line);
}

.purpose .card {
  margin: 0;
  padding: 1.75rem 1.35rem 1.6rem;
  background: #18140f;
}

.purpose .mark {
  height: 8.5rem;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  container-type: inline-size;
}

.purpose .mark img {
  object-fit: contain;
}

.purpose .mark .word {
  max-height: 4.75rem;
  max-width: 100%;
  width: auto;
}

.purpose .mark .word.creatiq {
  max-height: 3.35rem;
}

.purpose .mark .word.epiq {
  width: auto;
  max-width: 100%;
  max-height: none;
  height: min(4.75rem, calc(100cqw * 258 / 1003));
}

.purpose .mark .seal {
  max-height: 6.25rem;
  max-width: 6.25rem;
  width: auto;
}

.purpose .name {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: #a89884;
}

.purpose .here {
  margin-left: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #e7d7b0;
}

.purpose .verb {
  margin: 0.7rem 0 0;
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 1.7vw, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f7f1e4;
}

.purpose .fn {
  margin: 0.7rem 0 0;
  color: var(--p-ink-soft);
  font-size: 1rem;
  line-height: 1.45;
}

.purpose .cycle {
  margin: 2rem 0 0;
  max-width: 40em;
  color: var(--p-muted);
  font-size: 1rem;
}

.purpose .shorthand {
  margin: 0.4rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--p-quiet);
}

.purpose .dawn {
  height: 14vh;
  min-height: 5rem;
  background: linear-gradient(180deg, #120f0c 0%, #f4efe4 100%);
}

.purpose .close {
  background: var(--p-vellum);
  color: var(--p-vellum-ink);
  padding-top: clamp(1rem, 4vh, 3rem);
}

.purpose .close .brow {
  color: #5c5144;
}

.purpose .close h2 {
  margin: 0;
  max-width: 12em;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 1.08;
  color: var(--p-vellum-ink);
}

.purpose .support {
  margin: 1.5rem 0 0;
  max-width: 36em;
  font-size: 1.15rem;
  line-height: 1.55;
  color: #3a3126;
}

.purpose .enter {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 2.25rem;
  padding-bottom: 0.15rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  color: var(--p-vellum-ink);
  border-bottom: 1px solid var(--p-vellum-ink);
}

.purpose .note {
  margin: 1rem 0 0;
  max-width: 32em;
  font-size: 0.95rem;
  color: #5c5144;
}

.purpose .invites {
  display: grid;
  gap: 2.25rem 3.5rem;
  margin-top: 2.25rem;
}

.purpose .invite .enter {
  margin-top: 0;
}

.purpose .invite .note {
  margin-top: 0.85rem;
}

@media (min-width: 800px) {
  .purpose .equation {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }

  .purpose .invites {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

@media (min-width: 980px) {
  .purpose .institutions {
    grid-template-columns: repeat(4, 1fr);
  }

  .purpose .card {
    padding: 2rem 1.25rem 1.75rem;
  }

  .purpose .mark .seal {
    max-height: 4.75rem;
    max-width: 4.75rem;
  }
}

@media (max-width: 720px) {
  .purpose .hero {
    background-position: 88% center;
    padding-bottom: 6.5rem;
  }

  .purpose .hero-inner {
    width: min(820px, 100%);
  }

  .purpose .mark {
    height: 8rem;
  }

  .purpose .contrasts li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .purpose {
    scroll-behavior: auto;
  }
}
