/* ---------- 07 · WHAT YOU GET, the phone and tablet card system ----------
   Below 900px the text-over-photo tiles stop working: the scrim is
   weak, the copy runs over busy faces, and the round helmet window
   just sits there. So every card becomes the same thing: a photo at
   a fixed 4:3 on top, a solid caption block under it (number, title,
   a three line body, one Read more button). Desktop keeps the
   overlay tiles in sections-c.css; this file only adds the Read more
   button there and styles the touch swap.
   -------------------------------------------------------------- */

/* Read more is a real button in the caption on every card. On a wide
   pointer screen it keeps the old corner chip: hidden until hover or
   keyboard focus. */
.what__more {
  font: inherit;
  border: 0; cursor: pointer;
  text-transform: uppercase;
}
.what__more:focus-visible { opacity: 1; transform: none; outline: 2px solid var(--ink); outline-offset: 2px; }
/* Pointer pass: the button itself must take the click even though the
   old rule left it inert. */
.what--open .what__more { pointer-events: auto; }
/* No hover on a big touch screen (iPad landscape): never hide it. */
@media (hover: none) { .what--open .what__more { opacity: 1; transform: none; } }

/* The helmet photo swap (touch only; built by helmetMask). */
.helmet__swap {
  grid-area: 1 / 1; z-index: 3;
  justify-self: end; align-self: start;
  margin: 0.6rem;
  min-height: 44px; min-width: 44px; padding: 0 0.9rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgb(10 10 10 / 0.82); color: var(--ink);
  border: 1px solid rgb(255 255 255 / 0.28);
  font: inherit; text-transform: uppercase; cursor: pointer;
}
.helmet__swap i { font-style: normal; color: var(--accent); }
.helmet__swap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.helmet--tap .helmet__reveal {
  clip-path: none; opacity: 0;
  transition: opacity var(--d3, 400ms) var(--ease-out);
}
.helmet--tap.helmet--alt .helmet__reveal { opacity: 1; }
.what--helmet.helmet--tap { cursor: auto; }

@media (max-width: 899px) {
  .whatgrid {
    grid-template-columns: 1fr;
    gap: clamp(0.9rem, 3.5vw, 1.25rem);
  }
  .what, .what--hero, .what--wide {
    grid-column: auto; grid-row: auto;
    display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr;
    min-height: 0; overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
  }
  .what::after { content: none; }
  /* Photo: fixed ratio, every card the same. */
  .what > img, .helmet__base, .helmet__reveal {
    position: static; grid-area: 1 / 1;
    width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
    filter: contrast(1.05) brightness(0.92);
    transform: none; transition: none;
  }
  .what:hover > img { transform: none; filter: contrast(1.05) brightness(0.92); }
  .helmet__reveal { z-index: 1; }

  /* Caption: a solid panel under the photo, never over it. */
  .what figcaption {
    position: static; grid-area: 2 / 1;
    display: grid; align-content: start; gap: 0.5rem;
    padding: 1rem 1.1rem 1.15rem;
  }
  .what figcaption strong {
    font-size: clamp(1.15rem, 1rem + 1vw, 1.45rem);
    line-height: 1.05; max-width: 22ch;
  }
  .what figcaption span:not(.mono) {
    color: #c9cbc0; font-size: 0.95rem; line-height: 1.5; max-width: 52ch;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
    overflow: hidden;
  }
  .what .what__more {
    position: static; justify-self: start;
    min-height: 44px; margin-top: 0.35rem; padding: 0 1rem;
    display: inline-flex; align-items: center;
    background: transparent; color: var(--accent);
    border: 1px solid var(--line); outline-offset: 2px;
    opacity: 1; transform: none; pointer-events: auto;
  }
  .what .what__more:active { background: var(--accent); color: var(--accent-ink); }
}

/* Tablet: two columns, the hero card spans both. */
@media (min-width: 600px) and (max-width: 899px) {
  .whatgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .what--hero, .what--wide { grid-column: span 2; }
  .what--hero > img, .what--hero .helmet__base, .what--hero .helmet__reveal,
  .what--wide > img { aspect-ratio: 16 / 9; }
}

@media (prefers-reduced-motion: reduce) {
  .helmet--tap .helmet__reveal { transition: none; }
}
