/* values.css — the Values page (pages/about/values.html), drawn from the
   vision deck it follows: a slate-blue ground with a fine grain, cream type,
   torn-paper panels, the four values as inequalities, and the patron, maker
   and citizen as three overlapping spheres (js/values.js).
   Loaded after css/style.css and css/editorial.css by that page alone. */

.values-page {
  --vl-slate: #57728a;
  --vl-deep: #3c5468;
  --vl-cream: #f3ecdc;
  --vl-cream-soft: rgba(243, 236, 220, 0.86);
  --vl-paper: #ece2cd;
  --vl-ink: #22201c;
}

html:has(body.values-page) { scroll-behavior: smooth; }

.vl-main {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-h) + clamp(70px, 13vh, 130px)) clamp(20px, 5vw, 56px) clamp(90px, 14vh, 140px);
  background:
    radial-gradient(120% 70% at 15% 0%, rgba(255, 255, 255, 0.10), transparent 60%),
    linear-gradient(170deg, var(--vl-slate), var(--vl-deep));
  color: var(--vl-cream);
}
.vl-main > * { max-width: 1000px; margin-left: auto; margin-right: auto; }

.vl-eyebrow,
.vl-role-k {
  font-family: "Major Mono Display", monospace;
  text-transform: lowercase;
  font-size-adjust: none;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--vl-cream-soft);
  margin: 0 0 14px;
}

/* ---- The vision ---- */
.vl-title {
  font-weight: 400;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 1;
  letter-spacing: -0.015em;
  margin: 0 0 26px;
  max-width: 11em;
}
.vl-title .fs-w > span { color: var(--vl-cream); }
.vl-lede {
  max-width: 34em;
  font-style: italic;
  font-size: clamp(20px, 2.1vw, 25px);
  line-height: 1.55;
  color: var(--vl-cream-soft);
  margin: 0;
}

.vl-h2 {
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.08;
  margin: 0 0 30px;
  color: var(--vl-cream);
}

/* ---- Beauty is vanishing: a torn sheet of paper ---- */
.vl-paper {
  margin-top: clamp(80px, 12vh, 130px);
  padding: clamp(40px, 6vw, 70px) clamp(24px, 6vw, 80px);
  background: var(--vl-paper);
  color: var(--vl-ink);
  box-shadow: 0 30px 70px rgba(10, 20, 30, 0.35);
  clip-path: polygon(0 3%, 6% 0, 13% 2.5%, 21% 0.5%, 30% 2%, 41% 0, 52% 2.6%, 61% 0.8%, 72% 2.2%, 83% 0, 92% 2%, 100% 0.6%,
    100% 97%, 94% 100%, 86% 97.6%, 77% 99.4%, 66% 97.2%, 55% 100%, 45% 97.8%, 34% 99.6%, 24% 97.4%, 13% 100%, 5% 97.6%, 0 99.5%);
  transform: rotate(-0.6deg);
}
.vl-paper.is-in { transform: rotate(-0.6deg); }
.vl-paper .vl-h2 { color: var(--vl-ink); }
.vl-paper p {
  max-width: 34em;
  font-style: italic;
  font-size: clamp(20px, 2.1vw, 25px);
  line-height: 1.55;
  margin: 0 0 20px;
}
.vl-paper p:last-child { margin-bottom: 0; }

/* ---- Where beauty went ---- */
.vl-now { padding-top: clamp(90px, 14vh, 150px); }
.vl-statement {
  max-width: 24em;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.35;
  color: var(--vl-cream);
  margin: 0;
}

/* ---- The four values ---- */
.vl-values { padding-top: clamp(100px, 15vh, 160px); }
.vl-value {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-areas: "ineq ineq" "body pull";
  gap: 18px clamp(28px, 5vw, 64px);
  align-items: start;
  padding: clamp(36px, 6vh, 56px) 0;
  border-top: 1px solid rgba(243, 236, 220, 0.22);
}
.vl-ineq {
  grid-area: ineq;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.3em;
  margin: 0;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  color: var(--vl-cream);
}
.vl-gt { color: #e7b98a; }
.vl-lo { font-style: italic; font-size: 0.66em; color: var(--vl-cream-soft); }
.vl-value-body { grid-area: body; }
.vl-value-body p {
  margin: 0;
  font-size: clamp(18px, 1.6vw, 19.5px);
  line-height: 1.75;
  color: var(--vl-cream-soft);
}
.vl-pull {
  grid-area: pull;
  margin: 0;
  padding: 22px 26px 24px;
  background: var(--vl-paper);
  color: var(--vl-ink);
  box-shadow: 0 18px 40px rgba(10, 20, 30, 0.3);
  clip-path: polygon(0 6%, 9% 0, 22% 4%, 37% 1%, 52% 5%, 68% 0, 83% 4%, 100% 1%, 100% 94%, 88% 100%, 72% 96%, 57% 99%, 41% 95%, 25% 100%, 10% 96%, 0 99%);
}
.vl-v2 .vl-pull, .vl-v4 .vl-pull { transform: rotate(0.8deg); }
.vl-v1 .vl-pull, .vl-v3 .vl-pull { transform: rotate(-0.8deg); }
.vl-pull p { margin: 0; font-style: italic; font-size: clamp(21px, 2.2vw, 26px); line-height: 1.4; }

/* ---- Patron, maker, citizen: three spheres; the chosen one comes forward ---- */
.vl-roles { padding-top: clamp(100px, 15vh, 160px); text-align: center; }
.vl-roles-intro { margin: -14px 0 34px; font-style: italic; font-size: 19px; color: var(--vl-cream-soft); }
.vl-orbs {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: clamp(220px, 30vw, 330px);
  margin-bottom: 30px;
}
.vl-orb {
  position: relative;
  width: clamp(170px, 24vw, 270px);
  aspect-ratio: 1;
  margin: 0 calc(clamp(170px, 24vw, 270px) * -0.16);
  border-radius: 50%;
  background: var(--img) center / cover;
  box-shadow: 0 24px 60px rgba(5, 12, 20, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  transform: scale(0.82);
  filter: saturate(0.75) brightness(0.8);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s var(--ease);
  z-index: 1;
}
.vl-orb span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "Lora", serif;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
  opacity: 0.85;
}
.vl-orb:hover { filter: saturate(0.9) brightness(0.92); }
.vl-orb.is-on { transform: scale(1); filter: none; z-index: 2; }
.vl-orb.is-on span { opacity: 1; }
.vl-orb:focus-visible { outline: 2px solid var(--vl-cream); outline-offset: 6px; }

.vl-role { max-width: 40em; margin: 0 auto; animation: vlRole 0.6s var(--ease); }
.vl-role[hidden] { display: none; }
@keyframes vlRole { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.vl-role-big { margin: 0 0 14px; font-size: clamp(23px, 2.6vw, 31px); line-height: 1.35; color: var(--vl-cream); }
.vl-role p:last-child { margin: 0; font-size: 18.5px; line-height: 1.7; color: var(--vl-cream-soft); }

/* ---- Close ---- */
.vl-close { padding-top: clamp(110px, 16vh, 170px); text-align: center; }
.vl-close-line {
  font-weight: 400;
  font-style: italic;
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.12;
  margin: 0 auto 30px;
  max-width: 14em;
  color: var(--vl-cream);
}
.vl-close .fs-close-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; margin: 0; }
.vl-close .fs-cta { color: var(--vl-cream); }
.vl-close .fs-cta:hover { color: #e7b98a; }
.vl-close .fs-cta-quiet { color: var(--vl-cream-soft); }

@media (max-width: 760px) {
  .vl-value { grid-template-columns: 1fr; grid-template-areas: "ineq" "body" "pull"; }
  .vl-orbs { height: auto; padding: 10px 0; }
  .vl-orb { width: 138px; margin: 0 -18px; }
  .vl-orb span { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  html:has(body.values-page) { scroll-behavior: auto; }
  .vl-orb, .vl-role { transition: none; animation: none; }
}
