/* =========================================================================
   PUMP KITCHEN — editorial sections
   ========================================================================= */

/* ---------- shared heading block ---------- */
.head { max-width: 60ch; }
.head .eyebrow { margin-bottom: clamp(16px, 2vw, 26px); }
.head h2 { margin-bottom: clamp(16px, 2vw, 26px); }
.head .lede + .btn { margin-top: clamp(24px, 3vw, 40px); }

.head--center {
  margin-inline: auto;
  text-align: center;
}
.head--center .eyebrow { justify-content: center; }
.head--center .lede { margin-inline: auto; }

/* ---------- media figure ---------- */
.figure {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  background: var(--haze-soft);
}
.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(0, var(--par-y, 0px), 0) scale(1.06);
  will-change: transform;
}
.figure--tall { aspect-ratio: 4 / 5; }
.figure--portrait { aspect-ratio: 3 / 4; }
.figure--square { aspect-ratio: 1; }
.figure--wide { aspect-ratio: 16 / 10; }

.figure__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  /* the caption is white on whatever the photo happens to be, so the scrim has
     to be dark where the text actually sits, not just at the very bottom */
  background: linear-gradient(to top,
    rgba(6, 9, 11, 0.92) 0%, rgba(6, 9, 11, 0.6) 58%, rgba(6, 9, 11, 0) 100%);
}

/* ---------- split: media + copy ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.split--flip .split__media { order: 2; }
.split__body { max-width: 54ch; }
.split__body h2 { margin-bottom: clamp(16px, 2vw, 26px); }
.split__body .lede { margin-bottom: clamp(20px, 2.4vw, 32px); }

.split__stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 1.6vw, 22px);
  align-items: start;
}
.split__stack .figure:first-child { margin-top: clamp(24px, 5vw, 64px); }

/* pull quote inside copy */
.pull {
  margin-block: clamp(26px, 3vw, 40px);
  padding-left: clamp(18px, 2vw, 28px);
  border-left: 2px solid var(--accent);
  font-family: var(--f-display);
  font-size: clamp(19px, 2.2vw, 30px);
  line-height: 1.12;
  text-transform: uppercase;
  color: var(--t-hi);
}
.section--dark .pull, .section--deep .pull { color: var(--d-hi); }

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 48px);
  margin-top: clamp(44px, 6vw, 84px);
  border-top: 1px solid var(--d-rule-soft);
  padding-top: clamp(32px, 4vw, 56px);
}
.stat__n {
  font-family: var(--f-display);
  font-size: clamp(40px, 6.4vw, 92px);
  line-height: 0.86;
  letter-spacing: -0.02em;
  color: var(--d-hi);
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.stat__n small {
  font-size: 0.42em;
  color: var(--accent);
  letter-spacing: 0;
}
.stat__k {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--d-mid);
  line-height: 1.45;
  max-width: 22ch;
}

/* ---------- accordion gallery ----------
   Narrow strips that expand on hover, click or keyboard focus. Panels are real
   <button>s so the whole thing is operable from the keyboard; hover is pure
   CSS, and the .is-open class is what click/focus locks in. */
.accord {
  margin-top: clamp(40px, 5vw, 72px);
  padding-inline: var(--gutter);
}
.accord__track {
  display: flex;
  gap: 6px;
  height: clamp(380px, 58vh, 580px);
}

.accord__panel {
  position: relative;
  flex: 1;
  min-width: 0;
  border-radius: 4px;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  color: var(--d-hi);
  text-align: left;
  cursor: pointer;
  transition: flex 0.7s var(--e-out);
}
.accord__panel:focus-visible,
.accord__panel.is-open { flex: 5.2; }

.accord__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.07);
  filter: saturate(0.7) brightness(0.72);
  transition: transform 1s var(--e-out), filter 0.7s var(--e-out);
}
.accord__panel:focus-visible .accord__img,
.accord__panel.is-open .accord__img {
  transform: scale(1);
  filter: saturate(1) brightness(1);
}

.accord__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(6, 9, 11, 0.9) 0%, rgba(6, 9, 11, 0.42) 44%, rgba(6, 9, 11, 0.04) 74%);
}

/* collapsed: the title runs up the strip */
.accord__spine {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 2vw, 28px);
  transform: translateX(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  white-space: nowrap;
  font-family: var(--f-display);
  font-size: clamp(12px, 1vw, 15px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: opacity 0.35s var(--e-out);
}
.accord__panel:focus-visible .accord__spine,
.accord__panel.is-open .accord__spine { opacity: 0; }

/* expanded: the full card */
.accord__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(20px, 2.2vw, 34px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--e-out) 0.08s, transform 0.5s var(--e-out) 0.08s;
}
.accord__panel:focus-visible .accord__body,
.accord__panel.is-open .accord__body { opacity: 1; transform: none; }

/* hover opens a panel only on a real pointer — on touch the panels are driven
   by tap (.is-open), so hover never sticks after a scroll-touch across them */
@media (hover: hover) and (pointer: fine) {
  .accord__panel:hover { flex: 5.2; }
  .accord__panel:hover .accord__img { transform: scale(1); filter: saturate(1) brightness(1); }
  .accord__panel:hover .accord__spine { opacity: 0; }
  .accord__panel:hover .accord__body { opacity: 1; transform: none; }
}

.accord__no {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 10px;
}
.accord__title {
  font-size: clamp(24px, 2.6vw, 40px);
  line-height: 0.92;
  margin-bottom: 10px;
}
.accord__desc {
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 300;
  line-height: 1.5;
  color: var(--d-mid);
  max-width: 34ch;
}

.accord__hint {
  margin-top: 16px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--d-lo);
}

/* ---------- partner band ---------- */
.partner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.partner__marks {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
  margin-top: clamp(26px, 3vw, 42px);
  flex-wrap: wrap;
}
.partner__marks img { height: 22px; width: auto; opacity: 0.9; }
/* the band sits on the mint ground now, so the dot takes the deep green and
   the wordmark inherits whatever the section sets — works on either ground */
.partner__x {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-deep);
  flex: none;
}
.section--dark .partner__x,
.section--deep .partner__x { background: var(--accent); }
.partner__gym {
  font-family: var(--f-display);
  font-size: clamp(18px, 2vw, 26px);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: inherit;
}

/* ---------- closing CTA ---------- */
.cta {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(34px, 6vw, 92px);
  align-items: center;
}
.cta__points {
  margin-top: clamp(26px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 46ch;
}
.cta__point {
  display: flex;
  gap: 16px;
  padding-block: 15px;
  border-top: 1px solid var(--d-rule-soft);
  font-size: 15px;
  color: var(--d-mid);
}
.cta__point:last-child { border-bottom: 1px solid var(--d-rule-soft); }
.cta__point b {
  color: var(--accent);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  min-width: 74px;
  padding-top: 3px;
  flex: none;
}
.cta__actions {
  margin-top: clamp(28px, 3.4vw, 44px);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.cta__seal { color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .split, .partner, .cta { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cta__aside { display: flex; justify-content: flex-start; }
}

/* Below the breakpoint the accordion stacks: strips become rows that open
   downwards, since five vertical slivers are unusable on a phone. */
@media (max-width: 860px) {
  .accord__track {
    flex-direction: column;
    height: auto;
    gap: 8px;
  }
  .accord__panel { flex: none; height: 66px; transition: height 0.6s var(--e-out); }
  .accord__panel:hover,
  .accord__panel:focus-visible,
  .accord__panel.is-open { flex: none; height: clamp(240px, 44vh, 340px); }
  .accord__spine {
    writing-mode: horizontal-tb;
    left: clamp(18px, 4vw, 26px);
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    font-size: 14px;
    letter-spacing: 0.16em;
  }
}

@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; gap: 28px; }
  .split__stack { gap: 10px; }
}
