/* Hallmark · v2.0.0 · shared sections for board round three: results, art, the CV peek · each option restyles them through its own tokens and classes */

/* Results: one reveal, the items stamp in once */
.rec { padding-block: var(--space-10) var(--space-9); }
.rec__head, .art__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-4) var(--space-7); margin-bottom: var(--space-7); }
.rec__head h2, .art__head h2 { font-size: clamp(40px, 4.6vw, 68px); max-width: 15ch; }
.rec__head p, .art__head p { font-size: 19px; color: var(--muted); max-width: 34ch; }
.rec__list { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-4); }
.rec__item { grid-column: span 3; display: grid; gap: var(--space-1); align-content: start; padding: var(--space-5); border-radius: var(--radius-card, 20px); background: var(--card); }
.rec__item:nth-child(-n+3) { grid-column: span 4; }
.rec__big { font-family: var(--font-display); font-weight: var(--display-weight, 800); font-size: clamp(34px, 3.4vw, 56px); line-height: 1; letter-spacing: -0.04em; margin-bottom: var(--space-2); }
.rec__what { font-weight: 700; font-size: 18px; }
.rec__where { font-size: 15px; color: var(--muted); }
.js.fx-reveal [data-reveal]:not(.is-in) > * { opacity: 0; }
.js.fx-reveal [data-reveal].is-in > * { animation: stamp .55s cubic-bezier(.22, 1, .36, 1) calc(var(--i, 0) * 80ms) backwards; }
@keyframes stamp { from { opacity: 0; transform: translateY(16px) scale(1.12) rotate(var(--stamp, -3deg)); } 60% { opacity: 1; } }

/* Art: the turning Bentham beside four prints */
.art { padding-block: var(--space-10) var(--space-9); }
.art__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-5); }
.art__head { grid-column: 1 / -1; margin-bottom: var(--space-3); }
.art__model { grid-column: 1 / 6; position: relative; min-height: 560px; border-radius: var(--radius-card, 20px); background: var(--card); overflow: hidden; }
.art__model model-viewer { position: absolute; inset: 0; width: 100%; height: 100%; --poster-color: transparent; }
.art__model img[slot="poster"] { width: 100%; height: 100%; object-fit: contain; }
.art__model figcaption { position: absolute; left: var(--space-4); bottom: var(--space-4); padding: var(--space-1) var(--space-3); border-radius: 999px; background: var(--bg); font-size: 14px; font-weight: 600; pointer-events: none; }
.art__prints { grid-column: 6 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.art__prints figure { display: grid; gap: var(--space-2); }
.art__prints img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-print, 12px); transition: transform .5s var(--ease); }
@media (hover: hover) { .art__prints li:hover img { transform: scale(1.025) rotate(-.6deg); } }
.art__prints figcaption { font-size: 14px; color: var(--muted); }

/* The CV peek: a small first page that grows when you hover or focus it */
.peek { position: relative; display: inline-block; flex: none; width: 46px; height: 60px; border-radius: 4px; overflow: visible; }
.peek img { width: 46px; height: 60px; object-fit: cover; object-position: top; border-radius: 4px; box-shadow: 0 0 0 1px var(--line); transform-origin: 0 100%; transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
.peek:focus-visible img { transform: scale(3.6); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -20px var(--shadow); position: relative; z-index: 30; }
@media (hover: hover) { .peek:hover img { transform: scale(3.6); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -20px var(--shadow); position: relative; z-index: 30; } }

/* Touch: the print crossing the middle of the screen tilts as if hovered, and when the bar first shows a CV,
   its little page wiggles once to show it can be opened (fx.js sets .is-near and .touch) */
.art__prints li.is-near img { transform: scale(1.025) rotate(-.6deg); }
.touch .picked .peek img { position: relative; z-index: 30; animation: peek-hint 1.2s cubic-bezier(.22, 1, .36, 1) .4s; }
@keyframes peek-hint { 30% { transform: scale(1.45) rotate(-5deg); box-shadow: 0 0 0 1px var(--line), 0 14px 26px -14px var(--shadow); } 60% { transform: scale(1.3) rotate(3deg); } }

@media (max-width: 1080px) {
  .rec__item, .rec__item:nth-child(-n+3) { grid-column: span 6; }
  .art__model { grid-column: 1 / -1; min-height: 480px; }
  .art__prints { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .rec__item, .rec__item:nth-child(-n+3) { grid-column: 1 / -1; }
  .art__prints { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
  .peek:focus-visible img { transform: scale(3.4); }
  @media (hover: hover) { .peek:hover img { transform: scale(3.4); } }
}

/* The character animation, under the prints; it plays only when asked */
.art__film { grid-column: 1 / -1; display: grid; gap: var(--space-2); margin-top: var(--space-3); }
.art__film video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-card, 20px); background: var(--ink); }
.art__film figcaption { font-size: 14px; color: var(--muted); }

/* Bentham's moves: a row of pills over the model; the playing one fills */
.art__model figcaption { bottom: auto; top: var(--space-4); }
.art__moves { position: absolute; left: var(--space-4); right: var(--space-4); bottom: var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-2); z-index: 2; }
.art__moves button {
  min-height: 40px; padding: 0 var(--space-4); border: 1.5px solid var(--ink); border-radius: 999px; background: var(--bg); color: var(--ink);
  font-weight: 700; font-size: 14px; cursor: pointer; transition: transform .15s var(--ease), background-color .15s var(--ease), color .15s var(--ease);
}
@media (hover: hover) { .art__moves button:hover { transform: translateY(-2px); } }
.art__moves button:active { transform: translateY(1px) scale(.96); }
.art__moves button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
@media (max-width: 640px) { .art__moves button { min-height: 36px; padding: 0 var(--space-3); font-size: 13px; } }

/* Bentham's loading state: a thin bar fills while the model streams in, then fades */
.art__bar { position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--ink); transform-origin: left center; transform: scaleX(0); transition: transform .3s var(--ease), opacity .3s var(--ease); pointer-events: none; }
.art__model.is-loading .art__bar { transform: scaleX(.04); opacity: .7; }
.art__model.is-ready .art__bar { transform: scaleX(1); opacity: 0; }
.art__model.is-loading .art__moves button { opacity: .75; }
