/* A pull-down invitation: a cobalt bar outside, a real ticket inside.
   The ticket is a white card floating on cobalt: a date stub on the left,
   torn off by a perforation with two notches, the story in the middle,
   the venue and the seat on the right. */
.launch-invite {
  /* The production font injector reads this variable on every descendant. */
  --optlyx-font-sans: 'Instrument Sans', system-ui, sans-serif;
  --invite-blue: #0015ff;
  --invite-deep: #0a1fb8;
  --invite-ink: #0b1f3f;
  --invite-muted: #4d6184;
  --invite-line: #d9e1f7;
  --stub: 148px;
  position: sticky; top: 0; z-index: 101; width: 100%;
  color: #fff; background: linear-gradient(110deg, #0015ff 10%, #123ad9 100%);
  font-family: 'Instrument Sans', system-ui, sans-serif;
}
.launch-invite[hidden] { display: none; }
.launch-invite *, .launch-invite *::before, .launch-invite *::after { box-sizing: border-box; }
.launch-invite button, .launch-invite a { -webkit-tap-highlight-color: transparent; }
.launch-invite button:focus-visible, .launch-invite a:focus-visible { outline: 2px solid currentColor; outline-offset: -5px; }
.launch-invite__bar { max-width: 1120px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 20px; }
.launch-invite__trigger { appearance: none; border: 0; background: none; color: inherit; padding: 13px 0; min-height: 96px; flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; text-align: left; cursor: grab; touch-action: pan-x; user-select: none; }
.launch-invite__trigger:active { cursor: grabbing; }
.launch-invite__copy { display: flex; flex-direction: column; gap: 3px; }
.launch-invite__meta { font: 500 10px/1.5 'Instrument Sans', system-ui, sans-serif; letter-spacing: .1em; color: #d8e1ff; }
.launch-invite__headline { font: 400 29px/1.1 'Instrument Serif', Georgia, serif; letter-spacing: -.015em; }
.launch-invite__when { font: 400 12px/1.5 'Instrument Sans', system-ui, sans-serif; color: #e2e9ff; }
.launch-invite__affordance { display: flex; align-items: center; gap: 14px; }
.launch-invite__hint { font: 500 12px/1.4 'Instrument Sans', system-ui, sans-serif; }
.launch-invite__arrow { width: 36px; height: 36px; border: 1px solid #ffffff60; border-radius: 50%; display: grid; place-items: center; }
.launch-invite__dismiss { appearance: none; border: 0; border-left: 1px solid #ffffff45; border-radius: 0; background: none; color: #d8e1ff; width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; cursor: pointer; }
.launch-invite__dismiss:hover { color: #fff; background: #ffffff14; }
.launch-invite__pull-track { height: 2px; margin-top: -2px; position: relative; z-index: 1; overflow: hidden; }
.launch-invite__pull-track span { display: block; height: 100%; background: #fff; transform-origin: center; }

/* The drawer keeps the cobalt: the ticket is what is white. */
.launch-invite__reveal { overflow: hidden; color: var(--invite-ink); background:
  radial-gradient(900px 260px at 18% 0%, #2f55ff 0%, transparent 60%),
  linear-gradient(180deg, #0b24d4 0%, #0618a8 100%); }
.launch-invite__scroll { max-height: min(520px, calc(100dvh - 210px)); overflow-y: auto; overscroll-behavior: contain; }

.launch-ticket { position: relative; max-width: 1120px; margin: 26px auto 30px; width: calc(100% - 40px);
  display: grid; grid-template-columns: var(--stub) minmax(0, 1fr) 272px; gap: 0; padding: 0;
  background: #fff; border-radius: 18px; color: var(--invite-ink);
  box-shadow: 0 30px 60px -20px rgba(2, 10, 80, .55), 0 1px 0 #ffffff80 inset; }
.launch-ticket p { margin: 0; }

/* The perforation between the stub and the body: a dashed line and two bitten notches. */
.launch-ticket::before, .launch-ticket::after { content: ''; position: absolute; left: calc(var(--stub) - 11px); width: 22px; height: 22px; border-radius: 50%; background: #0a1fc0; z-index: 2; }
.launch-ticket::before { top: -11px; }
.launch-ticket::after { bottom: -11px; }

/* The stub: the date, printed in cobalt on cobalt paper. */
.launch-ticket__date { display: flex; flex-direction: column; justify-content: center; align-items: center; align-self: stretch; padding: 22px 12px; gap: 2px;
  background: linear-gradient(180deg, #0015ff 0%, #0a2be0 100%); color: #fff; transform: none; border: 0; border-radius: 18px 0 0 18px; box-shadow: none;
  border-right: 2px dashed #ffffff5c; }
.launch-ticket__date span { font: 600 10px/1.5 'Instrument Sans', system-ui, sans-serif; letter-spacing: .18em; color: #dbe3ff; }
.launch-ticket__date strong { font: 400 92px/.95 'Instrument Serif', Georgia, serif; letter-spacing: -.04em; margin: 4px 0; text-shadow: 0 10px 30px #00000033; }
.launch-ticket__date .launch-ticket__year { margin-top: 6px; color: #b9c6ff; letter-spacing: .3em; }

/* The story. */
.launch-ticket__story { padding: 30px 36px 28px 38px; min-width: 0; }
.launch-ticket__eyebrow { font: 600 10px/1.5 'Instrument Sans', system-ui, sans-serif; letter-spacing: .16em; color: var(--invite-blue); }
.launch-ticket__story h2 { font: 400 clamp(30px, 3vw, 40px)/1.02 'Instrument Serif', Georgia, serif; letter-spacing: -.025em; margin: 10px 0 12px; max-width: 520px; color: var(--invite-ink); }
.launch-ticket__story h2 em { color: var(--invite-blue); font-style: italic; font-weight: 400; }
.launch-ticket__description { font: 400 14.5px/1.6 'Instrument Sans', system-ui, sans-serif; max-width: 500px; color: var(--invite-muted); }

/* The programme as a line of the morning: three stops on one rail. */
.launch-ticket__agenda { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 22px; padding-top: 0; border-top: 0; position: relative; font: 400 12.5px/1.45 'Instrument Sans', system-ui, sans-serif; color: var(--invite-muted); max-width: 520px; }
.launch-ticket__agenda::before { content: ''; position: absolute; left: 5px; right: 18%; top: 5px; height: 2px; background: linear-gradient(90deg, var(--invite-blue), #bfcbff); }
.launch-ticket__agenda span { position: relative; padding-top: 18px; }
.launch-ticket__agenda span::before { content: ''; position: absolute; left: 0; top: 0; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--invite-blue); box-shadow: 0 0 0 3px #fff; }
.launch-ticket__agenda span:last-child::before { background: var(--invite-blue); }
.launch-ticket__agenda b { display: block; color: var(--invite-ink); font-weight: 600; font-size: 14px; letter-spacing: -.01em; }

/* The seat: where, and the button that takes it. */
.launch-ticket__action { border-left: 1px solid var(--invite-line); padding: 30px 30px 28px; align-self: stretch; display: flex; flex-direction: column; justify-content: center; background: #f7f9ff; border-radius: 0 18px 18px 0; }
.launch-ticket__venue { font: 600 14px/1.5 'Instrument Sans', system-ui, sans-serif; color: var(--invite-ink); }
.launch-ticket__address { margin-top: 4px !important; font: 400 12.5px/1.6 'Instrument Sans', system-ui, sans-serif; color: var(--invite-muted); }
.launch-ticket__cta { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 50px; padding: 10px 18px 10px 20px; margin-top: 20px; border-radius: 14px; background: var(--invite-blue); color: #fff; text-decoration: none; font: 600 14px/1.4 'Instrument Sans', system-ui, sans-serif; box-shadow: 0 10px 24px -10px #0015ff99; transition: background .2s, transform .2s, box-shadow .2s; }
.launch-ticket__cta:hover { background: var(--invite-deep); transform: translateY(-2px); box-shadow: 0 14px 28px -10px #0015ffb3; }
.launch-ticket__cta span { font-size: 22px; line-height: 1; }
.launch-ticket__note { margin-top: 10px !important; font: 400 11px/1.4 'Instrument Sans', system-ui, sans-serif; color: var(--invite-muted); }

@media (max-width: 760px) {
  .launch-invite { --stub: 92px; }
  .launch-ticket { grid-template-columns: var(--stub) minmax(0, 1fr); margin: 18px auto 22px; width: calc(100% - 24px); border-radius: 16px; }
  .launch-ticket__date { border-radius: 16px 0 0 0; }
  .launch-ticket__action { border-radius: 0 0 16px 16px; }
  .launch-ticket__story { display: block; padding: 18px 16px 18px 18px; }
  .launch-ticket__description, .launch-ticket__agenda { grid-column: auto; }
  .launch-ticket__date { justify-content: flex-start; padding-top: 22px; }
  .launch-ticket__date { padding: 16px 6px; }
  .launch-ticket__date strong { font-size: 58px; }
  .launch-ticket__date span { font-size: 8px; letter-spacing: .14em; }
  .launch-ticket__story h2 { font-size: 27px; margin: 8px 0 10px; }
  .launch-ticket__description { font-size: 13.5px; }
  .launch-ticket__agenda { margin-top: 18px; font-size: 11.5px; }
  .launch-ticket__agenda b { font-size: 13px; }
  .launch-ticket__action { grid-column: 1 / -1; border-left: 0; border-top: 1px dashed var(--invite-line); padding: 18px 18px 20px; }
  .launch-ticket__cta { margin-top: 14px; }
  .launch-ticket::before, .launch-ticket::after { display: none; }
  .launch-invite__bar { gap: 8px; padding: 0 12px 0 20px; }
  .launch-invite__trigger { gap: 12px; }
  .launch-invite__affordance { flex-direction: column; gap: 4px; }
  .launch-invite__hint { order: 2; max-width: 50px; font-size: 10px; line-height: 1.2; text-align: center; }
  .launch-invite__headline { font-size: 24px; }
  .launch-invite__meta { font-size: 9px; letter-spacing: .06em; }
  .launch-invite__arrow { width: 30px; height: 30px; }
  .launch-invite__dismiss { width: 32px; min-height: 44px; border-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .launch-invite *, .launch-invite *::before, .launch-invite *::after { animation: none !important; transition: none !important; }
}

@keyframes invitation-unfold {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes invitation-read {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .launch-invite[data-expanded="true"] .launch-ticket { animation: invitation-unfold .5s cubic-bezier(.2,.7,.3,1) both; }
  .launch-invite[data-expanded="true"] .launch-ticket__intro { animation: invitation-read .4s .08s both; }
  .launch-invite[data-expanded="true"] .launch-ticket__action { animation: invitation-read .4s .14s both; }
}

.launch-invite__headline, .launch-ticket__date strong, .launch-ticket__story h2 { --optlyx-font-sans: 'Instrument Serif', Georgia, serif; }
