/* World AI Awards 2026 (picked 2026-10-22). Home: the stamp + proof dialog (award.js).
   About: the stage photo and the certificate side by side. */

/* ---------- hero: the stamp (B, picked 2026-10-22) ---------- */
.award { margin-top: 1.1rem; display: grid; justify-items: center; }
/* the stamp lands from 1.6x; on a phone that is wider than the screen, and the overflow made mobile browsers
   lay the page out wider (427px on a 375px phone). Clip sideways only, so the trophy's rays can still rise above. */
.award { overflow-x: clip; overflow-clip-margin: 8px; }
.award-stamp {
  margin-top: .4rem; cursor: pointer; font: inherit; color: var(--accent); background: none;
  display: grid; justify-items: center; gap: .15rem; padding: .7rem 1.1rem .65rem;
  border: 0; border-radius: 2px; position: relative;
  transform: rotate(-2deg);
  transition: transform 220ms ease, background 180ms ease;
}
/* the double frame is drawn by ::before (inner) and ::after (outer, 4px out), so a mask can open a gap
   in the top edge where the trophy sits; no patch behind the trophy, so nothing hides what's under it */
.award-stamp::before, .award-stamp::after {
  content: ""; position: absolute; inset: 0; border: 1px solid var(--accent-line); border-radius: 2px; pointer-events: none;
  --gap: 24px;
  -webkit-mask: linear-gradient(90deg, #000 calc(50% - var(--gap)), transparent 0 calc(50% + var(--gap)), #000 0) top / 100% 6px no-repeat,
                linear-gradient(#000 0 0) bottom / 100% calc(100% - 6px) no-repeat;
          mask: linear-gradient(90deg, #000 calc(50% - var(--gap)), transparent 0 calc(50% + var(--gap)), #000 0) top / 100% 6px no-repeat,
                linear-gradient(#000 0 0) bottom / 100% calc(100% - 6px) no-repeat;
}
.award-stamp::after { inset: -4px; }
.award-stamp:hover { transform: rotate(0deg); background: var(--accent-dim); }
.award-stamp:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.award-stamp .s1 { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.award-stamp .s2 { font-family: var(--sans); font-size: 17px; font-weight: 500; letter-spacing: -.01em; color: var(--bright); line-height: 1.2; }
.award-stamp .s3 { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mid); }
.award-hint { margin-top: .55rem; font-size: 12.5px; color: var(--dim); }
/* it lands like a rubber stamp once, after the button has risen */
html:not(.rm) .award-stamp { animation: award-stamp 520ms cubic-bezier(.2,.9,.3,1.25) 1.1s both; }
@keyframes award-stamp {
  0%   { opacity: 0; transform: rotate(-9deg) scale(1.6); }
  60%  { opacity: 1; transform: rotate(-1deg) scale(.96); }
  100% { opacity: 1; transform: rotate(-2deg) scale(1); }
}

/* phones: the hero left-aligns at 34rem, so the award follows it */
@media (max-width: 34rem) { .award { justify-items: start; } }

/* ---------- B · proof dialog ---------- */
.award-proof {
  width: min(56rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; overflow: auto;
  color: var(--text); background: var(--card); border: 1px solid var(--line-hi); border-radius: 2px;
  text-align: left;
}
.award-proof::backdrop { background: color-mix(in srgb, var(--ground) 80%, transparent); backdrop-filter: blur(4px); }
.award-proof .in { display: grid; gap: 0; }
@media (min-width: 46rem) { .award-proof .in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.award-proof figure { margin: 0; background: var(--raise); }
.award-proof figure img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 990 / 1310; }
/* two photos side by side, on stage and the certificate, in a wider panel (picked 2026-10-22) */
.award-proof { width: min(66rem, calc(100vw - 2rem)); }
@media (min-width: 46rem) { .award-proof .in { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); } }
.award-proof .pm-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-hi); height: 100%; }
.award-proof .pm-imgs img { aspect-ratio: 3 / 4; }
.award-proof .body { padding: clamp(1.25rem, 3vw, 2rem); display: flex; flex-direction: column; gap: .9rem; }
.award-proof .lbl { margin: 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.award-proof h3 { margin: 0; font-size: clamp(1.3rem, 2.6vw, 1.6rem); line-height: 1.2; letter-spacing: -.02em; font-weight: 500; color: var(--bright); }
.award-proof p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--mid); }
.award-proof ul { list-style: none; margin: 0; padding: 0; border-top: var(--rule); }
.award-proof li a { display: flex; justify-content: space-between; align-items: center; min-height: 44px; border-bottom: var(--rule); color: var(--text); }
.award-proof li a:hover { color: var(--accent); }
.award-proof li span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--dim); }
.award-proof .acts { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; margin-top: auto; padding-top: .5rem; }
.award-proof .acts .cta { margin-top: 0; }
.award-proof .x {
  position: absolute; top: .5rem; right: .5rem; width: 44px; height: 44px; cursor: pointer;
  font: 400 22px/1 var(--sans); color: var(--bright); background: color-mix(in srgb, var(--card) 70%, transparent);
  border: 1px solid var(--line-hi); border-radius: 2px;
}

/* ---------- About: the stage photo ---------- */
.stage { margin: 0 0 1.6rem; }
.stage-a { border: 1px solid var(--line-hi); background: var(--raise); }
.stage-a img { display: block; width: 100%; height: auto; aspect-ratio: 2000 / 1333; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(.92); transition: filter 320ms ease; }
.stage-a:hover img { filter: none; }
/* official stage photo, phone photo and certificate side by side at every width (stacked, a phone got one very tall block);
   the columns follow the three aspect ratios (1.5, 0.75, 0.756), so all three share one height */
.stage-a .pair { display: grid; grid-template-columns: 1.984fr .992fr 1fr; gap: 1px; background: var(--line-hi); }
.stage-a .pair img:nth-child(2) { aspect-ratio: 3 / 4; }
.stage-a .pair img:last-child { aspect-ratio: 990 / 1310; }
.stage figcaption { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding: .7rem .8rem; border-top: var(--rule); }

/* ---------- trophy: hairline, in the house language (picked 2026-10-22) ----------
   A 1.5px amber line drawing with a soft amber glow. The shine is a short bright dash running along the
   outline, and the sparkle is three thin four-point glints. award.js draws the SVG into every .trophy.
   Decorative (aria-hidden); all motion stops for prefers-reduced-motion, the glow stays. */
:root { --tr-hi: #FFF1D0; }
/* on white the cream highlight vanishes; a warm amber reads against the light theme's darker accent */
:root[data-theme="light"] { --tr-hi: #F59E0B; }
.trophy { position: relative; display: inline-block; width: var(--ts, 32px); flex: none; line-height: 0; }
.trophy svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 0 3px color-mix(in srgb, var(--accent) 55%, transparent)) drop-shadow(0 0 9px color-mix(in srgb, var(--accent) 22%, transparent)); }
.tb path { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
/* the bowl and base take the background they sit on, so the rays read as coming from behind the cup */
.tb .solid { fill: var(--tbg, var(--ground)); stroke: none; }
/* rays: hairlines faded outward by a radial gradient; the glow filter on the svg makes them bloom a little */
.tb .ray { stroke-width: 1; opacity: var(--ray-o, .8); }
.tb .s0 { stop-color: var(--tr-hi); }
.tb .s1 { stop-color: var(--accent); }
.tb .rays { transform-box: view-box; transform-origin: 20px 15px; }
/* the whole fan turns slowly and breathes in and out (picked 2026-10-22) */
html:not(.rm) .tb .rays { animation: rays-turn 28s linear infinite, rays-breathe 3.6s ease-in-out infinite; }
@keyframes rays-turn { to { rotate: 360deg; } }
@keyframes rays-breathe { 0%, 100% { scale: .86; opacity: .55; } 50% { scale: 1.06; opacity: 1; } }
.tb .run { stroke: var(--tr-hi); stroke-width: 2; stroke-dasharray: 7 100; stroke-dashoffset: 107; opacity: 0; }
.tb .glint { stroke: var(--tr-hi); stroke-width: 1; transform-box: fill-box; transform-origin: center; transform: scale(0); }
html:not(.rm) .tb .run { animation: trophy-run 4.8s ease-in-out 1.4s infinite; }
html:not(.rm) .tb .glint { animation: trophy-glint 2.6s ease-in-out infinite; animation-delay: var(--w); }
@keyframes trophy-run { 0% { stroke-dashoffset: 107; opacity: 1; } 40% { stroke-dashoffset: 0; opacity: 1; } 41%, 100% { opacity: 0; } }
@keyframes trophy-glint { 0%, 60%, 100% { transform: scale(0) rotate(0deg); } 30% { transform: scale(1) rotate(45deg); } }
@media (prefers-reduced-motion: reduce) { .trophy * { animation: none !important; } }

/* placements */
/* the trophy sits over the stamp's top edge like a seal, in the gap the frame mask leaves */
.award-stamp { margin-top: 1.6rem; padding-top: 1.05rem; }
.award-stamp .trophy { --ts: 30px; --ray-o: 1; position: absolute; left: 50%; top: 0; transform: translate(-50%, -62%); }
.award-proof .trophy { --ts: 48px; --tbg: var(--card); }
.stage-a figcaption { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
/* About: the trophy closes the caption bar on the right, like a hallmark */
.stage-a figcaption .trophy { --ts: 30px; --tbg: var(--raise); }
