/* Hub: a comic-book page of equal panels. White outline + white interior on dark. */
.hub { padding: clamp(20px, 4vw, 48px) var(--gutter) clamp(40px, 6vw, 72px); max-width: 1500px; margin: 0 auto; }
.hub-masthead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: clamp(16px, 3vw, 28px); }
.hub-title { font-size: clamp(44px, 8vw, 96px); margin: 0; letter-spacing: .06em; }
.hub-title span { font-size: .4em; letter-spacing: .14em; color: var(--text-3); vertical-align: middle; margin-left: .4em; }
.hub-sub { margin: 0; color: var(--text-2); font-size: 15px; }
.hub-skip { color: var(--text); font-weight: 700; margin-left: 8px; }

.hub-panels { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(12px, 1.6vw, 22px); }
.panel { flex: 1 1 calc(20% - 22px); min-width: 0; height: clamp(420px, 68vh, 640px); position: relative; }

.panel__link {
  position: relative; display: flex; flex-direction: column; height: 100%;
  text-decoration: none; color: #0d0d0d; background: #fff;
  border: 4px solid #fff; outline: 3px solid #0d0d0d; outline-offset: -8px;
  overflow: hidden; isolation: isolate;
}
/* Halftone dots for comic texture. */
.panel__link::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(0,0,0,.09) 1.2px, transparent 1.6px); background-size: 9px 9px;
}
/* The colour flood (animated in by hub.js / hub-motion styles). */
.panel__link::before {
  content: ''; position: absolute; inset: 0; z-index: -2; background: var(--flood);
  clip-path: circle(0% at var(--fx, 50%) var(--fy, 50%));
}
.panel__art { flex: 1; min-height: 0; display: grid; place-items: center; padding: 18px 14px 0; }
.panel__art img { width: 100%; height: 100%; object-fit: contain; }
.panel__text { padding: 12px 18px 22px; display: grid; gap: 6px; }
.panel__title { font-size: clamp(30px, 2.6vw, 44px); margin: 0; color: #0d0d0d; line-height: .95; }
.panel__cta { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.panel__flag {
  position: absolute; top: 16px; left: 16px; z-index: 3;
  font-family: var(--display); font-size: 22px; letter-spacing: .08em; line-height: 1;
  background: #ffe600; color: #000; border: 3px solid #000; padding: 4px 10px 2px; transform: rotate(-6deg);
  box-shadow: 3px 3px 0 #000;
}
.panel__flag--soon { background: #fff; font-size: 16px; transform: rotate(-3deg); }
.panel__sfx {
  position: absolute; top: 30%; left: 50%; z-index: 4; pointer-events: none;
  font-family: var(--display); font-size: clamp(56px, 6vw, 96px); line-height: 1; letter-spacing: .02em;
  color: #ffe600; -webkit-text-stroke: 3px #000; paint-order: stroke fill;
  text-shadow: 5px 5px 0 #000;
  transform: translate(-50%, -50%) rotate(-12deg) scale(0); opacity: 0;
}
.panel.is-soon .panel__art { filter: grayscale(1); opacity: .7; }

.panel__link:focus-visible { outline: 4px solid var(--warn); outline-offset: 2px; }

@media (max-width: 1100px) {
  .panel { flex-basis: calc(33.333% - 22px); flex-grow: 0; height: clamp(380px, 52vh, 560px); }
}
@media (max-width: 700px) {
  .hub-panels { gap: 14px; }
  .panel { flex-basis: 100%; height: auto; }
  .panel__link { flex-direction: row; align-items: stretch; height: clamp(190px, 30svh, 260px); }
  .panel__art { flex: 0 0 44%; padding: 14px 0 14px 14px; }
  .panel__text { flex: 1; min-width: 0; align-content: end; padding: 14px 16px 18px 6px; }
  .panel__title { font-size: clamp(28px, 9vw, 40px); }
  .panel__cta { font-size: 12px; letter-spacing: .1em; }
  .panel__sfx { left: 24%; top: 42%; font-size: 56px; }
  .panel.is-lit .panel__cta { white-space: nowrap; padding: 3px 6px; }
  .panel__flag { top: 12px; left: auto; right: 14px; }
}

/* ── Motion ───────────────────────────────────── */
/* Panels slide in from alternating sides. Transform only, short and staggered, so LCP isn't held back. */
@media (prefers-reduced-motion: no-preference) {
  .panel { animation: panel-in-l .5s cubic-bezier(.2, 1.25, .4, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }
  .panel:nth-child(even) { animation-name: panel-in-r; }
  @keyframes panel-in-l { from { transform: translateX(-45%) rotate(-3deg); } }
  @keyframes panel-in-r { from { transform: translateX(45%) rotate(3deg); } }
}

/* Colour flood: a circle grows from the pointer with an overshooting snap. */
.panel__link::before { transition: clip-path .32s cubic-bezier(.3, 1.5, .5, 1); }
.panel.is-lit .panel__link::before { clip-path: circle(150% at var(--fx, 50%) var(--fy, 50%)); }
.panel.is-lit .panel__link { animation: panel-snap .28s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes panel-snap { 40% { transform: scale(1.025) rotate(-.6deg); } }
.panel__title, .panel__cta { transition: color .15s; }
.panel.is-lit .panel__title { color: #fff; -webkit-text-stroke: 2px #000; paint-order: stroke fill; text-shadow: 3px 3px 0 #000; }
.panel.is-lit .panel__cta { color: #000; background: #fff; justify-self: start; padding: 4px 8px; border: 2px solid #000; box-shadow: 3px 3px 0 #000; }
.panel.is-lit.is-soon .panel__art { filter: none; opacity: 1; }
.panel.is-lit .panel__link::after { background-image: radial-gradient(rgba(0,0,0,.18) 1.3px, transparent 1.7px); }

/* Sound-effect word pops in with a snap and settles. */
.panel__sfx { transition: opacity .15s, transform .2s; }
.panel.is-lit .panel__sfx { opacity: 1; transform: translate(-50%, -50%) rotate(-12deg) scale(1); transition: opacity .05s, transform .38s cubic-bezier(.2, 2.2, .4, 1); }

@media (prefers-reduced-motion: reduce) {
  .panel__link::before { transition: opacity .2s; clip-path: none; opacity: 0; }
  .panel.is-lit .panel__link::before { opacity: 1; }
  .panel.is-lit .panel__link { animation: none; }
  .panel.is-lit .panel__sfx { transition: opacity .2s; }
}
