/* ==========================================================================
   What we value. One forest band: the headline and intro, the first criterion
   set large beside the sculpture (assets/js/sculpture.js, purely decorative),
   the four things we look at, and a close.
   ========================================================================== */
.values {
  --values-line: var(--color-inverse-line);
  padding-block: clamp(var(--space-8), 2rem + 6vw, 8.5rem);
  overflow-x: clip;
}

/* ---- Headline ------------------------------------------------------------- */
.values__head { display: grid; gap: var(--space-5) var(--space-8); }
.values__head .section-marker { margin: 0; }
.values__head h1 { font-size: var(--text-3xl); line-height: var(--leading-tight); max-width: 12ch; margin: 0; color: var(--color-inverse-text); }
.values__head h1 em { color: var(--sage-200); }
.values__intro { max-width: 52ch; }
.values__intro .lede { color: var(--color-inverse-text); margin-bottom: var(--space-4); }
.values__intro p:not(.lede) { color: var(--color-inverse-soft); }
@media (min-width: 960px) {
  .values__head { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: end; }
  .values__head .section-marker { grid-column: 1 / -1; max-width: 14rem; }
}

/* ---- The first criterion, with the sculpture ----------------------------- */
.values__criterion {
  display: grid; gap: var(--space-6) var(--space-7); align-items: center;
  margin-top: clamp(var(--space-8), 2rem + 5vw, 7.5rem); padding-top: var(--space-5);
  border-top: 1px solid var(--values-line);
}
.values__criterion-text { display: grid; gap: var(--space-3); }
.values__kicker { margin: 0; font: 500 12px var(--font-mono); letter-spacing: var(--tracking-mono); text-transform: uppercase; color: var(--sage-200); }
.values__statement {
  margin: 0; font: 300 clamp(2.75rem, 1.6rem + 4.4vw, 5.25rem)/0.98 var(--font-serif);
  font-optical-sizing: auto; letter-spacing: -0.035em; color: var(--color-inverse-text);
}
.values__statement em { font-style: italic; font-weight: 400; color: var(--sage-200); }
.values__note { margin: var(--space-3) 0 0; max-width: 30ch; font: italic 400 var(--text-lg)/1.45 var(--font-serif); color: var(--color-inverse-soft); }

.sculpture { position: relative; margin: 0; width: 100%; max-width: 34rem; aspect-ratio: 1; justify-self: center; }
.sculpture canvas, .sculpture__still { display: block; width: 100%; height: 100%; }
.sculpture canvas { opacity: 0; transition: opacity 1.6s var(--ease-out); }
.sculpture.is-ready canvas { opacity: 1; }
.sculpture__still { height: auto; }
@media (min-width: 960px) {
  .values__criterion { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  /* Let the piece breathe past its column a little, toward the page edge. */
  .sculpture { max-width: none; width: calc(100% + var(--space-7)); margin-block: calc(var(--space-6) * -1); justify-self: start; }
}
@media (max-width: 959px) {
  /* The piece sits inside its square with air around it; on narrower screens let it
     run past the text margins and tuck into the space above and below. */
  .sculpture { width: 124%; max-width: 40rem; margin: -12% -12% -10%; justify-self: center; }
}
@media (prefers-reduced-motion: reduce) { .sculpture canvas { transition: none; } }

/* ---- What we look at --------------------------------------------------------- */
.values__list {
  list-style: none; margin: clamp(var(--space-6), 1rem + 3vw, var(--space-8)) 0 0; padding: 0;
  display: grid; gap: var(--space-6) var(--space-5);
}
.value { padding-top: var(--space-4); border-top: 1px solid var(--values-line); }
.value__num { display: block; font: italic 400 var(--text-base) var(--font-serif); color: var(--sage-300); margin-bottom: var(--space-2); }
.value h2 { font-size: var(--text-xl); line-height: 1.2; letter-spacing: -0.01em; color: var(--color-inverse-text); margin: 0 0 var(--space-2); }
.value p { margin: 0; font-size: var(--text-sm); line-height: 1.55; color: var(--color-inverse-soft); max-width: 24ch; }
@media (min-width: 560px) { .values__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .values__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---- Close ------------------------------------------------------------------- */
.values__close {
  display: grid; gap: var(--space-5) var(--space-8);
  margin-top: clamp(var(--space-8), 2rem + 4vw, var(--space-9)); padding-top: var(--space-5);
  border-top: 1px solid var(--values-line);
}
.values__close > p:first-child { margin: 0; max-width: 46ch; color: var(--color-inverse-soft); }
.values__priority { display: flex; align-items: baseline; gap: var(--space-4); margin: 0; font: 400 var(--text-xl)/1.3 var(--font-serif); color: var(--color-inverse-text); }
.values__priority em { font-style: italic; color: var(--sage-200); }
.values__mark { flex: none; width: 1.35em; height: 1.35em; align-self: center; fill: var(--sage-200); }
.values__actions { margin-top: var(--space-6); }
@media (min-width: 960px) { .values__close { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } }
