/* footer — Designer D. Dark band, green accent. A ruled bento board; the waitlist is a ticket. */
#footer { padding-block: var(--s6) var(--s4); }
#footer .board {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  border-top: 1px solid var(--on-ink-line); border-left: 1px solid var(--on-ink-line);
}
#footer .fcell { border-right: 1px solid var(--on-ink-line); border-bottom: 1px solid var(--on-ink-line); padding: 32px; min-width: 0; }
#footer .fcell-h { color: var(--on-ink-50); }

/* ticket cell */
#footer .fticket { grid-column: span 7; padding: 40px; display: grid; align-items: center; }
#footer .fcol { grid-column: span 3; }
#footer .tk-lift { filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)) drop-shadow(0 26px 34px rgba(0,0,0,.42)); }
#footer .ticket {
  --stub: 188px; --notch: 13px;
  display: grid; grid-template-columns: minmax(0, 1fr) var(--stub);
  background: var(--paper); color: var(--ink); border-radius: var(--r-object);
  -webkit-mask: radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 0, #0000 97%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 0, #0000 97%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
}
#footer .tk-main { padding: 32px 36px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-content: start; }
#footer .tk-main > * { min-width: 0; }
#footer .tk-top { display: flex; justify-content: space-between; color: var(--ink-50); }
#footer .tk-title { font-size: var(--t-d2); line-height: .94; letter-spacing: -0.04em; }
#footer .ticket .waitlist { background: var(--paper-2); border-color: var(--ink); max-width: none; }
#footer .ticket .waitlist input::placeholder { color: var(--ink-50); }
#footer .ticket .waitlist .btn { padding: 0 18px; }
#footer .tk-note { font-size: var(--t-small); color: var(--ink-70); margin-top: -6px; }
#footer .tk-stub {
  position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 18px; padding: 30px 26px;
  border-left: 2px dashed var(--ink-28);
}
#footer .tk-mark { width: 34px; height: 34px; color: var(--ink); }
#footer .tk-stub-t { display: grid; gap: 6px; align-content: end; }
#footer .tk-muted { color: var(--ink-50); }
#footer .tk-stamp {
  position: absolute; left: 50%; top: 50%; padding: 8px 12px; border: 2px solid var(--green); color: var(--green);
  border-radius: 6px; background: rgba(223,227,222,.92); white-space: nowrap;
  transform: translate(-50%, -50%) rotate(-14deg) scale(1.3); opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease), transform .5s var(--ease);
}
#footer .ticket.is-in .tk-stamp { opacity: 1; transform: translate(-50%, -50%) rotate(-14deg) scale(1); }
#footer .tk-code { width: 100%; height: 34px; fill: var(--ink); }

/* link cells */
#footer .fcol ul { margin-top: 18px; display: grid; }
#footer .fcol a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px;
  font-size: 16px; color: var(--on-ink); transition: color .2s var(--ease);
}
#footer .lk-arr { width: 13px; height: 10px; color: var(--green-light); opacity: 0; transform: translateX(-6px); transition: opacity .25s var(--ease), transform .35s var(--ease); }
#footer .fcol a:hover { color: var(--green-light); }
#footer .fcol a:hover .lk-arr, #footer .fcol a:focus-visible .lk-arr { opacity: 1; transform: none; }

/* what's live: a status board */
#footer .flive { grid-column: span 5; padding: 0; display: flex; flex-direction: column; }
/* the rules run the full width of the cell; the text keeps the cell's inset */
#footer .flive .fcell-h, #footer .lv li { padding-inline: 32px; }
/* The heading takes a row the same height as each status row, so it sits centred between the cell's edge and the first rule. */
#footer .flive .fcell-h { flex: none; height: 60px; display: flex; align-items: center; margin: 0; }
#footer .lv { flex: 1 1 auto; display: flex; flex-direction: column; border-top: 1px solid var(--on-ink-line); }
#footer .lv li { flex: 1 1 0; display: flex; align-items: center; gap: 14px; min-height: 60px; border-bottom: 1px solid var(--on-ink-line); }
#footer .lv li:last-child { border-bottom: 0; }
#footer .lv-n { font-family: var(--f-display); font-weight: 700; font-size: 22px; letter-spacing: -0.03em; }
#footer .lv-s { color: var(--on-ink-50); margin-left: auto; }
#footer .lv li:last-child .live { background: var(--amber-light); box-shadow: 0 0 6px 1px rgba(227,182,103,.5); }
#footer .lv li:last-child .lv-s { color: var(--amber-light); }

/* disclosures */
#footer .flegal { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; padding-block: 28px; }
#footer .flegal p { font-size: 13.5px; line-height: 1.6; color: var(--on-ink-50); max-width: 62ch; text-wrap: pretty; }

/* base row */
#footer .fbase { grid-column: 1 / -1; display: flex; align-items: center; gap: 28px; padding-block: 22px; }
#footer .fbrand { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-family: var(--f-display); font-weight: 800; font-size: 20px; letter-spacing: -0.035em; color: var(--on-ink); }
#footer .fbrand svg { width: 21px; height: 21px; }
#footer .fbrand span { color: var(--on-ink-50); margin-left: -2px; font-weight: 700; }
#footer .fbase-t { font-size: var(--t-small); color: var(--on-ink-50); }
#footer .fbase-c { margin-left: auto; }

@media (max-width: 1100px) {
  #footer .fticket, #footer .flive { grid-column: 1 / -1; }
  #footer .fcol { grid-column: span 6; }
}
@media (max-width: 720px) {
  #footer { padding-top: 0; }
  #footer .fcell { padding: 24px 20px; }
  #footer .fticket { padding: 20px 0 28px; border-right: 0; }
  #footer .board { border-left: 0; }
  #footer .fcell { border-right: 0; }
  #footer .fcol:nth-of-type(odd) { border-right: 1px solid var(--on-ink-line); padding-left: 0; }
  #footer .flive, #footer .flegal, #footer .fbase { padding-inline: 0; }
  #footer .flive { padding-block: 0; }
  #footer .flive .fcell-h { height: 58px; }
  #footer .lv-n { font-size: 19px; }
  #footer .fcol a { min-height: 44px; }
  #footer .lk-arr { display: none; }
  #footer .ticket {
    --stub-h: 92px;
    grid-template-columns: 1fr; grid-template-rows: auto var(--stub-h);
    -webkit-mask: radial-gradient(circle var(--notch) at 0 calc(100% - var(--stub-h)), #0000 97%, #000) left / 51% 100% no-repeat,
                  radial-gradient(circle var(--notch) at 100% calc(100% - var(--stub-h)), #0000 97%, #000) right / 51% 100% no-repeat;
            mask: radial-gradient(circle var(--notch) at 0 calc(100% - var(--stub-h)), #0000 97%, #000) left / 51% 100% no-repeat,
                  radial-gradient(circle var(--notch) at 100% calc(100% - var(--stub-h)), #0000 97%, #000) right / 51% 100% no-repeat;
  }
  #footer .tk-main { padding: 24px 20px 26px; gap: 18px; }
  #footer .tk-stub { border-left: 0; border-top: 2px dashed var(--ink-28); grid-template-rows: none; grid-template-columns: auto 1fr auto; align-items: center; padding: 0 20px; }
  #footer .tk-mark { width: 28px; height: 28px; }
  #footer .tk-stamp {
  position: absolute; left: 50%; top: 50%; padding: 8px 12px; border: 2px solid var(--green); color: var(--green);
  border-radius: 6px; background: rgba(223,227,222,.92); white-space: nowrap;
  transform: translate(-50%, -50%) rotate(-14deg) scale(1.3); opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease), transform .5s var(--ease);
}
#footer .ticket.is-in .tk-stamp { opacity: 1; transform: translate(-50%, -50%) rotate(-14deg) scale(1); }
#footer .tk-code { width: 84px; }
  /* Phones: the board bleeds to the screen edges so every rule runs edge to edge;
     the content keeps the page gutter as padding. No closing rule at the very bottom. */
  #footer .board { margin-inline: calc(-1 * var(--gutter)); }
  #footer .fticket { padding: 20px var(--gutter) 28px; }
  #footer .flegal, #footer .fbase { padding-inline: var(--gutter); }
  #footer .fcol:nth-of-type(odd) { padding-left: var(--gutter); padding-right: 16px; }
  #footer .fcol:nth-of-type(even) { padding-left: 20px; padding-right: var(--gutter); }
  #footer .flive .fcell-h, #footer .lv li { padding-inline: var(--gutter); }
  #footer .fbase { border-bottom: 0; }
  #footer .flegal { grid-template-columns: 1fr; gap: 16px; }
  #footer .fbase { flex-wrap: wrap; gap: 4px 20px; }
  #footer .fbase-t { flex-basis: 100%; }
  #footer .fbase-c { margin-left: 0; }
}

/* The ticket points to the one waitlist form above it instead of repeating it. */
#footer .tk-note { margin-top: -8px; }
#footer .tk-cta { justify-self: start; }
#footer .ticket.is-in .tk-cta { display: none; }
