/* =========================================================
   phase3.css — components added for 3.html
   =========================================================
   Scoped to the Phase 3 page. styles.css and brand.css are untouched by this
   file, so /2 and the teaser cannot be affected by anything in here.
   Load order: styles.css -> brand.css -> phase3.css
   ========================================================= */

/* ---------- 1. Header density ----------
   brand.css sizes the lockup for the teaser, which carries no nav. This page
   has a seven-item nav beside it, so the lockup steps down while keeping the
   same relationship (the logo drives the header height). */
:root {
  --logo-h: clamp(40px, 3.4vw, 52px);
  --header-h: calc(var(--logo-h) + 28px);
}

/* ---------- 2. Hero: the approved key art ----------
   The art already contains the logo, title, date and time, so nothing is
   overlaid on it. It sits full-width on white; the meta line, H1 and RSVP
   button sit underneath. */
.keyart { padding-block: 0 0; background: var(--white); }
.keyart-figure { margin: 0; }
.keyart-figure picture,
.keyart-figure img { display: block; width: 100%; height: auto; }

.keyart-below { padding-block: 40px 56px; text-align: center; }
.keyart-meta {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
}
.keyart-title {
  max-width: 24ch;
  margin-inline: auto;
  margin-top: 14px;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.keyart-below .btn { margin-top: 28px; }

/* ---------- 3. Partner tiles ----------
   Uniform tiles: fixed ratio, logo contained, red border on hover and focus. */
.partner-grid-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.partner-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  padding: 16px;
  background: var(--white);
  border: 2px solid var(--grey-line);
  text-align: center;
  text-decoration: none;
  color: var(--black);
  transition: border-color 0.15s ease, color 0.15s ease;
}
a.partner-tile:hover,
a.partner-tile:focus-visible { border-color: var(--red); color: var(--red); }
.partner-tile img {
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}
/* partners with no artwork yet: a text tile in the same frame */
.partner-tile-text { font-weight: 700; font-size: 0.9375rem; line-height: 1.25; }
/* an unlinked tile is not interactive, so it must not look clickable */
.partner-tile:not(a) { cursor: default; }

/* ---------- 4. Art cube cards ---------- */
.cube-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cube-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--grey-line);
  display: flex;
  flex-direction: column;
}
.cube-card-media { position: relative; margin: 0; }
.cube-card-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--grey-bg);
}
.cube-badge {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 44px;
  padding: 6px 10px;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.cube-card-body { padding: 16px 18px 20px; }
.cube-card .cube-name {
  font-weight: 700;
  font-size: var(--step-1);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.cube-card .artist-name { margin-top: 4px; font-weight: 400; }
.cube-card .cube-loc {
  margin-top: 8px;
  font-size: var(--step--1);
  color: var(--grey-text);
}
.cube-statement {
  margin-top: 10px;
  font-size: var(--step--1);
  line-height: 1.45;
  color: #333;
}
.cube-link {
  display: inline-block;
  margin-top: 12px;
  font-size: var(--step--1);
  font-weight: 700;
  border-bottom: 2px solid var(--red);
  text-decoration: none;
  padding-bottom: 1px;
}
.cube-link:hover { color: var(--red); }
/* a placeholder link is text, not a link, until we have the URL */
.cube-link-tbd {
  color: var(--grey-text);
  border-bottom-color: var(--grey-line);
}

/* ---------- 5. Activity cards ----------
   Icon + a single sentence, with time and location as chips. */
.activity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.activity-card {
  display: flex;
  gap: 16px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-top: 6px solid var(--red);
}
.activity-icon { flex: 0 0 52px; }
.activity-icon svg { width: 52px; height: 52px; display: block; }
.activity-body { min-width: 0; }
.activity-card h3 { margin-bottom: 6px; }
.activity-card p { font-size: var(--step--1); line-height: 1.5; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip-meta {
  display: inline-block;
  padding: 4px 10px;
  background: var(--grey-bg);
  border: 1px solid var(--grey-line);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}
.chip-meta.is-tbd { color: var(--grey-text); font-style: italic; }

/* ---------- 6. Responsive ---------- */
@media (max-width: 1024px) {
  .partner-grid-logos { grid-template-columns: repeat(3, 1fr); }
  .cube-grid, .activity-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  /* the brief asks for 2 columns of art cards on mobile, so .cube-grid keeps
     two here rather than collapsing to one like the site's generic .grid-3 */
  .cube-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .activity-grid { grid-template-columns: 1fr; gap: 12px; }
  .partner-grid-logos { grid-template-columns: repeat(2, 1fr); }

  /* compact row: icon left, text right */
  .activity-card { padding: 16px; gap: 14px; border-top-width: 4px; }
  .activity-icon { flex: 0 0 40px; }
  .activity-icon svg { width: 40px; height: 40px; }

  .cube-card-body { padding: 12px 12px 16px; }
  .cube-card .cube-name { font-size: var(--step-0); }
  .cube-badge { min-width: 36px; padding: 4px 8px; font-size: 0.8125rem; }

  .keyart-below { padding-block: 28px 40px; }
}

@media (max-width: 420px) {
  .partner-grid-logos { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .cube-grid { gap: 10px; }
}
