/* The Sculpted reveal, /packaging/sculpted/reveal/ (src/reveal-page.mjs, src/reveal-client.js). Loaded on that
   page only. Colors are the site's custom properties; motion uses the site's tokens, and nothing moves with
   reduced motion. The stage is night teal, the color the renders sit on. */
.reveal-section { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.reveal { max-width: 64rem; }
/* Scrolled into view on a choice: clear of the sticky header, with Choose again below it in view too. */
.reveal-stage { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--night); color: var(--paper); scroll-margin: 6rem 0 5.5rem; }

/* The three closed boxes. Without script each is a picture with its name and example card; with script a
   button covers the whole tile. */
.reveal-choices { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: clamp(.5rem, 2vw, 1.25rem); margin: 0; padding: clamp(.75rem, 2.4vw, 1.75rem); list-style: none; }
.reveal-choice { position: relative; display: flex; flex-direction: column; align-items: center; margin: 0; padding: 0 0 .6rem; text-align: center; }
.reveal-choice img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: calc(var(--radius) - .125rem); }
.reveal-choice__name { margin: .7rem 0 0; font-family: var(--font-display); font-size: clamp(1.45rem, 1rem + 1.6vw, 2.25rem); line-height: 1.05; }
.reveal-choice__card { margin: .3rem 0 0; color: var(--night-muted); font-size: .875rem; line-height: 1.4; }
.reveal-choice__button { position: absolute; inset: 0; z-index: 1; width: 100%; min-height: 2.75rem; margin: 0; padding: 0; border: 1px solid transparent; border-radius: var(--radius); background: transparent; color: inherit; cursor: pointer; transition: border-color var(--motion-quick) var(--ease-fold), background-color var(--motion-quick) var(--ease-fold); }
.reveal-choice__button:hover { border-color: var(--brass); background-color: rgb(244 241 233 / .06); }
.reveal-choice__button:focus-visible { outline-offset: .2rem; border-color: var(--brass); }

/* The screen: the opening clip, then the card clip, then the card's last frame as a still. */
.reveal-screen { position: relative; aspect-ratio: 16 / 9; background: var(--night); }
.reveal-screen__media, .reveal-screen__stills { position: absolute; inset: 0; width: 100%; height: 100%; }
.reveal-screen__media { display: block; object-fit: cover; background: var(--night); }
.reveal-screen__stills { display: grid; grid-template-columns: minmax(0, 1fr); }
.reveal-screen__stills[data-layout="pair"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.reveal-screen__still { width: 100%; height: 100%; object-fit: cover; }

.reveal-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin-top: 1rem; }
.reveal-bar__caption { flex: 1 1 22rem; max-width: var(--measure); margin: 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.5; }
.reveal-bar__again { flex: 0 0 auto; min-height: 2.75rem; }

/* The example cards: the card photographs the site already shows, with the box each one opens in. */
.reveal-cards { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: clamp(1rem, 3vw, 2.5rem); margin: 0; padding: 0; list-style: none; }
.reveal-card { display: grid; grid-template-columns: minmax(4.5rem, 7.5rem) minmax(0, 1fr); gap: 1rem; align-items: start; margin: 0; }
.reveal-card img { width: 100%; height: auto; border-radius: .25rem; }
.reveal-card h3 { margin: 0 0 .25rem; font-size: 1.25rem; line-height: 1.2; }
.reveal-card p { margin: 0; color: var(--ink-soft); font-size: .9rem; line-height: 1.5; }
.reveal-card .mono-label { margin-bottom: .35rem; }
.reveal-card .text-link { display: inline-flex; min-height: 2.75rem; align-items: center; }


@media (max-width: 48rem) {
  .reveal-choice__card { font-size: .78rem; }
  .reveal-cards { grid-auto-flow: row; }
}
@media (forced-colors: active) {
  .reveal-choice__button:hover, .reveal-choice__button:focus-visible { border-color: Highlight; }
}
