/* A whispered invitation, a crumpled note, then the printed poster. */
.agent-afterhours {
  --aa-paper: #e1e6d5;
  --aa-margin: clamp(12px, 2.5vw, 40px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow-anchor: none;
  padding-bottom: var(--aa-margin);
  background: var(--bg, #030403);
  color: #12190f;
}
.aa-invitation {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: fit-content;
  min-width: 76px;
  min-height: 84px;
  margin: 16px auto 0;
  color: var(--aa-paper);
  list-style: none;
  cursor: pointer;
  touch-action: manipulation;
}
.aa-invitation::-webkit-details-marker { display: none; }
.aa-invitation-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: #aeb7a7;
  font: 14px/1.4 Geist, sans-serif;
}
.aa-whisper { color: var(--aa-paper); font: italic 26px/1 Zilla, Georgia, serif; }
.aa-invitation svg {
  width: 16px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: #a3af9a;
  transition: transform .28s ease-out, color .2s;
}
.aa-secret[open]:has(.aa-unfold[aria-expanded="true"]) > .aa-invitation svg { transform: rotate(180deg); }
.aa-invitation:focus-visible, .aa-unfold:focus-visible, .aa-sheet:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.aa-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  min-height: clamp(156px, 14vw, 202px);
  margin-inline: var(--aa-margin);
}
.aa-stage > * { grid-area: 1 / 1; }
.aa-unfold {
  display: grid;
  place-items: center;
  padding: 12px 18px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--aa-paper);
  cursor: pointer;
  touch-action: manipulation;
  scroll-margin-block: 16px;
}
.aa-unfold img {
  display: block;
  width: clamp(102px, 9vw, 134px);
  height: auto;
  user-select: none;
  filter: drop-shadow(0 7px 4px rgba(0, 0, 0, .28));
  transition: translate .22s ease-out;
}
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="paused"]) .aa-secret[open] .aa-unfold[aria-expanded="false"] { animation: aa-arrive .46s cubic-bezier(.2,.75,.24,1) both; }
}
.aa-unfold[aria-expanded="true"] { position: absolute; opacity: 0; pointer-events: none; }
.aa-unfold[hidden], .aa-sheet[hidden] { display: none; }
@keyframes aa-arrive {
  from { opacity: 0; transform: translateY(-12px) scale(.94); }
  72% { opacity: 1; transform: translateY(2px) scale(1); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (hover: hover) {
  .aa-secret:not([open]) > .aa-invitation:hover svg { transform: translateY(3px); color: var(--aa-paper); }
  .aa-unfold:hover img { translate: 0 -3px; }
}
.aa-unfold-surface { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.aa-sheet { position: relative; width: 100%; padding: 30px 24px 14px; scroll-margin-top: 24px; background: var(--aa-paper); }
.aa-sheet[inert]:not([hidden]) { will-change: clip-path, opacity; }
.aa-sheet[inert] .aa-poster { will-change: transform; }
.aa-paper-curl { position: absolute; right: 0; top: 0; width: clamp(64px, 7vw, 92px); height: auto; overflow: hidden; pointer-events: none; }
.aa-poster { display: block; width: 100%; max-width: 1120px; height: auto; margin: 0 auto; overflow: visible; }
@media (min-width: 1600px) { .aa-poster { max-width: 1190px; } }
@media (max-width: 650px) {
  .aa-invitation { min-height: 74px; margin-top: 12px; }
  .aa-invitation-line { gap: 8px; font-size: 13px; }
  .aa-whisper { font-size: 23px; }
  .aa-sheet { padding: 24px 4px 12px; }
  .aa-poster { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .aa-invitation svg, .aa-unfold img { transition: none; }
}
html[data-motion="paused"] .aa-invitation svg, html[data-motion="paused"] .aa-unfold img { transition: none; }
