/* ============================================================
   GRID+CLUB · join.html, the volunteer flow (scripts/volunteer.js)
   Hero with the deal, nine pickable roles, the start sequence,
   straight answers, the application, and the bar that carries
   your picks down to it.

   Volt means "yours": what you get, what you picked, what is lit.
   Everything you are being asked for stays in ink and muted.
   ============================================================ */

:root { --vbar-h: 4.4rem; }   /* the phone bar's height; the corner widgets lift by it */

/* ---------- hero: the deal ---------- */
.vhero { gap: clamp(2.2rem, 4vw, 3.2rem); }
@media (min-width: 1024px) {
  .vhero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    column-gap: clamp(2.5rem, 5vw, 6rem);
    align-items: end;
  }
}
.vhero__head { display: grid; gap: 1.1rem; align-content: end; min-width: 0; }
.vhero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.8rem; }
.vhero__actions .cta { margin-top: 0.5rem; }
.vhero__link {
  display: inline-flex; gap: 0.7em; align-items: center;
  margin-top: 0.5rem; padding-block: 0.7rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: border-color var(--d2) var(--ease-out), color var(--d2) var(--ease-out);
}
.vhero__link i { font-style: normal; transition: transform var(--d3) var(--ease-out); }
.vhero__link:hover, .vhero__link:focus-visible { color: var(--accent); border-color: var(--accent); outline: none; }
.vhero__link:hover i { transform: translate3d(0.3rem, 0, 0); }

.vdeal {
  display: grid; gap: 1px; min-width: 0;
  background: var(--line); border: 1px solid var(--line);
}
@media (min-width: 640px) { .vdeal { grid-template-columns: 1fr 1fr; } }
.vdeal__side {
  background: var(--surface);
  padding: clamp(1.2rem, 2.4vw, 1.9rem);
  display: grid; gap: 1.1rem; align-content: start;
}
.vdeal__side--get { box-shadow: inset 0 3px 0 var(--accent); }
.vdeal__side--get h2 { color: var(--accent); }
.vdeal__side--ask h2 { color: var(--muted); }
.vdeal ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.95rem; }
.vdeal li { display: grid; gap: 0.3rem; padding-top: 0.95rem; border-top: 1px solid var(--line); }
.vdeal li:first-child { padding-top: 0; border-top: 0; }
.vdeal strong {
  font-family: var(--display-face); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.05rem, 0.92rem + 0.55vw, 1.4rem); line-height: 1;
}
.vdeal__side--get strong { color: var(--accent); }
.vdeal li span { color: var(--muted); font-size: 0.88rem; line-height: 1.45; }

/* ---------- section frame ---------- */
.vsec { padding-block: clamp(3.5rem, 7vw, 7rem); }
.vsec + .vsec { border-top: 1px solid var(--line); }
.vsec__title { font-size: var(--text-section); margin-top: 0.8rem; max-width: 18ch; }
.vsec__head {
  display: grid; gap: 1.4rem 4rem; align-items: end;
  margin-bottom: clamp(1.8rem, 3.4vw, 2.8rem);
}
@media (min-width: 900px) { .vsec__head { grid-template-columns: 1fr minmax(0, 25rem); } }
.vsec__aside { display: grid; gap: 1rem; color: var(--muted); max-width: 42ch; }

.vcount { display: flex; align-items: center; gap: 1.2rem; color: var(--ink); min-height: 2rem; }
.vcount strong { color: var(--accent); font-weight: 700; }
.vcount__clear {
  color: var(--muted); padding: 0.35rem 0;
  border-bottom: 1px solid currentColor;
  transition: color var(--d2) var(--ease-out);
}
.vcount__clear:hover, .vcount__clear:focus-visible { color: var(--accent); outline: none; }

/* ---------- the roles ----------
   Nine cards. Three across from 1024px, and between 640px and 1023px
   two across with the ninth running the full row, so no width ever
   leaves an empty cell in the grid. */
.vroles {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.vroles > li { display: grid; min-width: 0; }
@media (min-width: 640px) {
  .vroles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vroles > li:last-child { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .vroles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vroles > li:last-child { grid-column: auto; }
}

.vrole {
  --vr-muted: var(--muted);
  --vr-line: var(--line);
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-rows: auto auto 1fr auto; gap: 0.85rem;
  width: 100%; min-width: 0;
  min-height: clamp(15rem, 27vh, 19rem);
  padding: clamp(1.3rem, 2.4vw, 2rem);
  text-align: left;
  background: var(--ground); color: var(--ink);
  transition: color var(--d2) var(--ease-out), transform var(--d1) var(--ease-out);
}
/* The picked state floods in from the bottom edge. */
.vrole::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent);
  clip-path: inset(100% 0 0 0);
  transition: clip-path var(--d3) var(--ease-out);
}
.vrole::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform var(--d3) var(--ease-out);
}
.vrole:focus-visible { outline: 2px solid var(--accent); outline-offset: -7px; }
.vrole:focus-visible::after { transform: scaleX(1); }
.vrole:active { transform: scale(0.985); }

.vrole__top { display: flex; justify-content: space-between; align-items: center; }
.vrole__no { color: var(--accent); transition: color var(--d2) var(--ease-out); }
.vrole__tick {
  width: 1.7rem; height: 1.7rem; flex: none;
  display: grid; place-items: center;
  border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent);
  color: var(--ink);
  transition: border-color var(--d2) var(--ease-out), background-color var(--d2) var(--ease-out), color var(--d2) var(--ease-out);
}
.vrole__tick::after {          /* a plus, until picked */
  content: ""; width: 0.7rem; height: 0.7rem;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
}
.vrole__title {
  font-family: var(--display-face); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.85rem); line-height: 0.98;
  max-width: 16ch;
}
.vrole__body { color: var(--vr-muted); font-size: 0.92rem; line-height: 1.5; max-width: 40ch; align-self: start; }
.vrole__foot {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding-top: 0.9rem; border-top: 1px solid var(--vr-line);
}
.vrole__when { color: var(--vr-muted); }
.vrole__state { color: var(--vr-muted); transition: color var(--d2) var(--ease-out); }
.vrole__state::before { content: "Pick"; }

@media (hover: hover) {
  .vrole:hover::after { transform: scaleX(1); }
  .vrole:hover .vrole__tick { border-color: var(--accent); color: var(--accent); }
  .vrole:hover .vrole__state { color: var(--accent); }
}

.vrole[aria-pressed="true"] {
  --vr-muted: color-mix(in srgb, var(--accent-ink) 72%, transparent);
  --vr-line: color-mix(in srgb, var(--accent-ink) 22%, transparent);
  color: var(--accent-ink);
}
.vrole[aria-pressed="true"]::before { clip-path: inset(0); }
.vrole[aria-pressed="true"]::after { background: var(--accent-ink); }
.vrole[aria-pressed="true"]:focus-visible { outline-color: var(--accent-ink); }
.vrole[aria-pressed="true"] .vrole__no { color: var(--accent-ink); }
.vrole[aria-pressed="true"] .vrole__tick,
.vrole[aria-pressed="true"]:hover .vrole__tick {
  background: var(--accent-ink); border-color: var(--accent-ink); color: var(--accent);
  animation: vtick var(--d3) var(--ease-out);
}
.vrole[aria-pressed="true"] .vrole__tick::after {   /* the plus becomes a tick */
  width: 0.62rem; height: 0.32rem; background: none;
  border: 2px solid currentColor; border-top: 0; border-right: 0;
  transform: translate3d(0, -2px, 0) rotate(-45deg);
}
.vrole[aria-pressed="true"] .vrole__state,
.vrole[aria-pressed="true"]:hover .vrole__state { color: var(--accent-ink); }
.vrole[aria-pressed="true"] .vrole__state::before { content: "Picked"; }
@keyframes vtick { from { transform: scale(0.5); } }

/* ---------- what happens next: a start sequence ---------- */
.vsteps {
  --vgap: clamp(1.4rem, 2.6vw, 2.6rem);
  list-style: none; margin: clamp(2rem, 4vw, 3.4rem) 0 0; padding: 0;
  display: grid;
}
.vstep { position: relative; display: grid; gap: 0.55rem; align-content: start; padding: 0 0 2.2rem 2.8rem; }
.vstep:last-child { padding-bottom: 0; }
.vstep::before {               /* the rail to the next light */
  content: ""; position: absolute;
  left: 0.6rem; top: 1.7rem; bottom: 0.3rem; width: 1px;
  background: var(--line);
}
.vstep:last-child::before { display: none; }
.vstep__light {
  position: absolute; left: 0; top: 0.05rem;
  width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent),
              0 0 26px color-mix(in srgb, var(--accent) 45%, transparent);
  transition: background-color var(--d3) var(--ease-out), box-shadow var(--d3) var(--ease-out);
}
.vstep__no { color: var(--accent); }
.vstep__title {
  font-family: var(--display-face); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.2rem, 1rem + 0.9vw, 1.65rem); line-height: 1;
  transition: color var(--d3) var(--ease-out);
}
.vstep p { color: var(--muted); font-size: 0.92rem; line-height: 1.5; max-width: 36ch; }
.vstep.is-dark .vstep__light { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 0 0 4px transparent; }
.vstep.is-dark .vstep__title { color: var(--muted); }

@media (min-width: 900px) {
  .vsteps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--vgap); }
  .vstep { padding: 2.6rem 0 0; }
  .vstep::before { left: 1.9rem; right: calc(-1 * var(--vgap) + 0.6rem); top: 0.62rem; bottom: auto; width: auto; height: 1px; }
}

/* ---------- straight answers ---------- */
.vfaq { display: grid; gap: 1.8rem 4rem; }
@media (min-width: 900px) { .vfaq { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; } }
.vfaq__list { border-top: 1px solid var(--line); }
.vfaq details { border-bottom: 1px solid var(--line); }
.vfaq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding-block: 1.2rem;
  font-family: var(--display-face); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem); line-height: 1.05;
  transition: color var(--d2) var(--ease-out);
}
.vfaq summary::-webkit-details-marker { display: none; }
.vfaq summary::after {
  content: "+"; flex: none;
  font-family: var(--font-mono); font-weight: 400; color: var(--accent);
  transition: transform var(--d3) var(--ease-out);
}
.vfaq details[open] summary::after { transform: rotate(45deg); }
.vfaq summary:hover { color: var(--accent); }
.vfaq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.vfaq details p { margin: 0; padding-bottom: 1.3rem; color: var(--muted); max-width: 56ch; }

/* ---------- the application ---------- */
.vapply { display: grid; gap: 2rem 5rem; }
@media (min-width: 1024px) {
  .vapply { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .vapply__copy { position: sticky; top: 7rem; align-self: start; }
}
.vapply__copy { display: grid; gap: 1rem; align-content: start; }
.vapply__copy p { color: var(--muted); max-width: 40ch; }
.vapply__copy p.mono { line-height: 1.8; }
.vapply__form {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: inset 0 3px 0 var(--accent);
  padding: clamp(1.3rem, 3vw, 2.4rem);
  scroll-margin-top: 6rem;
}

/* ---------- the bar that carries your picks ---------- */
.vbar {
  position: fixed; z-index: 830;
  left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.65rem var(--gutter) calc(0.65rem + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--ground) 90%, transparent);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  color: var(--ink);
  transform: translate3d(0, 110%, 0);
  visibility: hidden;
  transition: transform var(--d3) var(--ease-out), visibility 0s linear var(--d3);
}
.vbar[data-on="true"] {
  transform: none; visibility: visible;
  transition: transform var(--d3) var(--ease-out), visibility 0s;
}
.vbar__txt { display: flex; align-items: center; gap: 0.85rem; min-width: 0; margin: 0; }
.vbar__n {
  font-family: var(--display-face); font-weight: 700;
  font-size: 2.1rem; line-height: 1; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.vbar__words { display: grid; gap: 0.2rem; min-width: 0; }
.vbar__list { color: var(--muted); font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vbar__go {
  flex: none;
  display: inline-flex; align-items: center; gap: 0.8rem;
  padding: 0.9rem 1.3rem;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-mono); font-size: var(--text-mono);
  letter-spacing: var(--track-mono); text-transform: uppercase; font-weight: 500;
  position: relative; overflow: hidden; isolation: isolate;
}
.vbar__go::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink); transform: translate3d(0, 101%, 0);
  transition: transform var(--d3) var(--ease-out);
}
.vbar__go i { font-style: normal; transition: transform var(--d3) var(--ease-out); }
.vbar__go:hover::after, .vbar__go:focus-visible::after { transform: none; }
.vbar__go:hover, .vbar__go:focus-visible { color: var(--ground); }
.vbar__go:hover i { transform: translate3d(0.3rem, 0, 0); }
.vbar__go:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[data-state="lightsout"] .vbar { bottom: 2rem; }

/* On a phone the bar runs edge to edge, so the corner widgets step up. */
@media (max-width: 899px) {
  .sound, .nextup { transition: transform var(--d3) var(--ease-out); }
  .vol-bar-on .sound, .vol-bar-on .nextup { transform: translate3d(0, calc(-1 * var(--vbar-h)), 0); }
  .vol-bar-on .megafoot { padding-bottom: var(--vbar-h); }
}
/* On a desk it is a card in the bottom-left corner, clear of the dial
   and the sound toggle on the right. */
@media (min-width: 900px) {
  .vbar {
    left: var(--gutter); right: auto; bottom: 1.1rem;
    width: min(34rem, calc(100vw - 2 * var(--gutter) - 20rem));
    padding: 0.55rem 0.55rem 0.55rem 1.1rem;
    border: 1px solid var(--line);
    box-shadow: inset 3px 0 0 var(--accent), 0 18px 40px rgba(0, 0, 0, 0.45);
  }
}

@media (prefers-reduced-motion: reduce) {
  .vrole::before, .vrole::after, .vbar, .vstep__light { transition: none; }
  .vrole[aria-pressed="true"] .vrole__tick { animation: none; }
  .vrole:active { transform: none; }
}

/* ============================================================
   GIRL+GRID · girl-crew.html, the same flow in pink.
   Every colour above already reads var(--accent), so the world
   tokens do the recolouring. This block adds the two photos and
   softens the finish: rounded pills, a pink bloom on the cards,
   and Instrument Serif italic for the whisper lines (<em>).
   ============================================================ */

/* ---------- the photos (girl-crew.html only uses .vphoto) ---------- */
.vphoto { position: relative; margin: 0; min-width: 0; overflow: hidden; background: var(--surface); }
.vphoto img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.vphoto figcaption {
  position: absolute; left: 0.9rem; bottom: 0.8rem;
  padding: 0.45rem 0.8rem; border-radius: 999px;
  background: color-mix(in srgb, var(--ground) 72%, transparent);
  backdrop-filter: blur(8px);
  color: var(--ink);
}
.vphoto--hero { aspect-ratio: 4 / 3; }
.vphoto--deal { aspect-ratio: 16 / 9; }
@media (min-width: 640px) { .vdeal--photo .vphoto--deal { grid-column: 1 / -1; } }
@media (min-width: 900px) {
  .vdeal--photo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.7fr); }
  /* The photo takes the height the two lists set, never the other way round. */
  .vdeal--photo .vphoto--deal { grid-column: auto; aspect-ratio: auto; }
  .vdeal--photo .vphoto--deal img { position: absolute; inset: 0; }
}
@media (min-width: 1024px) {
  .vhero--photo .vphoto--hero { aspect-ratio: 4 / 5; width: min(100%, 30rem); justify-self: end; }
  .vhero--photo .vdeal { grid-column: 1 / -1; }
}

/* ---------- the softer finish ---------- */
[data-world="girl"] { font-synthesis-weight: none; }   /* Anton ships one weight: no faux bold */
[data-world="girl"] .phead__title .hot { color: var(--accent); }

[data-world="girl"] .vdeal,
[data-world="girl"] .vroles,
[data-world="girl"] .vapply__form,
[data-world="girl"] .vphoto { border-radius: 1.4rem; overflow: hidden; }
[data-world="girl"] .vdeal,
[data-world="girl"] .vphoto--hero {
  box-shadow: 0 30px 80px -40px color-mix(in srgb, var(--accent) 55%, transparent);
}
[data-world="girl"] .vapply__form {
  box-shadow: inset 0 3px 0 var(--accent),
              0 30px 80px -40px color-mix(in srgb, var(--accent) 55%, transparent);
}

[data-world="girl"] .cta,
[data-world="girl"] .vbar__go,
[data-world="girl"] .lf__submit,
[data-world="girl"] .lf__chip,
[data-world="girl"] .vrole__tick { border-radius: 999px; }
@media (min-width: 900px) { [data-world="girl"] .vbar { border-radius: 999px; } }

/* A pink bloom rising from the bottom edge of a card on hover. */
@media (hover: hover) {
  [data-world="girl"] .vrole:hover {
    box-shadow: inset 0 -60px 80px -50px color-mix(in srgb, var(--accent) 38%, transparent);
  }
}

[data-world="girl"] .vol em {
  font-family: var(--font-whisper); font-style: italic;
  font-size: 1.18em; line-height: 1.3;
  color: var(--ink);
}
