/* MOTP awards redesign. Prefix aw- so it can sit beside the old rules.
   One artwork height for every laurel. Width follows the file. No size tiers. */
:root{
  --aw-name: #F5F0E8;          /* winner names, same as --ink */
  --aw-mist: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(15,42,36,.95) 0%, rgba(15,42,36,0) 70%),
             radial-gradient(ellipse 60% 40% at 50% 100%, rgba(15,42,36,.55) 0%, rgba(15,42,36,0) 70%);
  --aw-col: 28px;              /* one horizontal gap between laurels */
  --aw-row: 36px;              /* one vertical gap between rows */
  --aw-cap: 12px;              /* one gap from laurel to name */
}
.aw-banner{
  background: var(--aw-mist), var(--bg-deep);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding: clamp(56px,8vw,96px) 0;
}
.aw-head{ text-align:center; max-width:760px; margin:0 auto 44px; }
.aw-head h2{ margin:0 0 12px; }
.aw-tagline{
  margin:0 auto; max-width:24em;
  font-family: var(--f-display); font-weight:500;
  font-size: clamp(1.05rem,1.9vw,1.35rem); letter-spacing:.04em; line-height:1.4;
  color: var(--ink-soft); text-wrap:balance;
}

/* The page grid is the container. 100cqi is its content box, not 100vw. */
.aw-banner > .wrap,
.aw-page-group > .wrap{
  container-type: inline-size;
  container-name: aw;
}

/* ---- one laurel. Height is the artwork; width follows the file. ---- */
.aw-l{
  /* 4.63125 = three ICFF/Content laurels at 741/480. Two column gaps.
     150px while that row fits, including an 820px tablet (content box 764px).
     Narrower tablets ease the height down so the row still fits. */
  --aw-h: min(150px, calc((100cqi - 2 * var(--aw-col)) / 4.63125));
  margin: 0;
  display: table;
  flex: 0 0 auto;
  max-width: 100%;
  border-collapse: collapse;
}
.aw-l .aw-box{
  display: table-cell;
  vertical-align: bottom;
  height: var(--aw-h);
  line-height: 0;
}
.aw-l img{
  display: block;
  height: var(--aw-h);
  width: auto;
  max-width: none;
  max-height: var(--aw-h);
  object-fit: contain;
  object-position: center bottom;
  mix-blend-mode: screen;
}
.aw-name{
  display: table-caption;
  caption-side: bottom;
  margin: 0;
  padding-top: var(--aw-cap);
  text-align: center;
  font-family: var(--f-display); font-weight:400;
  font-size: 1.05rem; letter-spacing:.1em; line-height:1.35;
  color: var(--aw-name); text-wrap:balance;
}

/* ---- rows: one gap, centered, tops aligned so equal heights share a baseline ---- */
.aw-row{
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: var(--aw-col);
}
.aw-row + .aw-row{ margin-top: var(--aw-row); }

/* ---- festival label (matches .cast-group-label) ---- */
.aw-fest{ display:grid; justify-items:center; gap:6px; margin-top:18px; text-decoration:none; color:inherit; }
.aw-fest-name{
  margin:0; font-family:var(--f-ui); font-size:.72rem; font-weight:600;
  letter-spacing:.26em; text-transform:uppercase; color:var(--ink-mute); text-align:center; text-wrap:balance; line-height:1.5;
}
.aw-fest::before{ content:""; display:block; width:40px; height:1px; background:var(--line-strong); margin:0 auto 6px; }
.aw-more{ margin:0; font-family:var(--f-display); font-weight:600; font-size:.98rem; letter-spacing:.06em; color:var(--accent-soft); }
.aw-fest:hover .aw-more, .aw-fest:focus-visible .aw-more{ text-decoration:underline; text-underline-offset:4px; }
.aw-fest:hover .aw-fest-name{ color:var(--ink); }

/* ---- home: festival groups, same laurel size and the same gaps ---- */
.aw-tier1{ display:flex; justify-content:center; align-items:flex-start; gap:var(--aw-col); }
.aw-tier1-fest{ display:flex; justify-content:center; }
.aw-tier1-fest .aw-fest{ margin-top:18px; }
.aw-tier2,
.aw-tier3{
  display:flex;
  justify-content:center;
  align-items:stretch;
  gap:var(--aw-col);
  margin-top:var(--aw-row);
}
.aw-cluster{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex:0 0 auto;
  min-width:0;
}
.aw-cluster > .aw-fest{ width:0; min-width:calc(100% + 40px); margin-top:0; }
.aw-cluster .aw-pair{ display:flex; justify-content:center; align-items:flex-start; gap:var(--aw-col); }
/* Festival name sits above its laurels; "Plus N more!" sits below them.
   Names keep two lines of room and sit on the bottom line, so laurels in one row
   share a top line even when one festival name wraps. "Plus N more!" sits at the
   foot of its column. */
.aw-cluster{ justify-content:flex-start; }
.aw-fest-name{ min-height:3em; display:flex; align-items:flex-end; justify-content:center; }
.aw-tier1-fest .aw-fest-name{ min-height:0; }
.aw-tier1-fest .aw-fest{ margin:0 0 18px; }
.aw-more-link{ display:block; margin-top:auto; text-align:center; text-decoration:none; color:inherit; }
.aw-more{ line-height:1.5; }
.aw-more-link:hover .aw-more, .aw-more-link:focus-visible .aw-more{ text-decoration:underline; text-underline-offset:4px; }
.aw-tier1-more{ display:flex; justify-content:center; margin-top:18px; }
.aw-cta{ display:flex; justify-content:center; margin:56px 0 0; }
.aw-cta .btn{ text-transform:none; letter-spacing:.01em; font-size:.98rem; padding:16px 26px; }

/* ---- /awards page ---- */
.aw-page-group{ padding: clamp(48px,6vw,80px) 0; border-top:1px solid var(--line); background: var(--aw-mist), var(--bg-deep); }
.aw-page-group:nth-of-type(even){ background: var(--bg); }
.aw-page-group h2{ text-align:center; margin:0 auto 36px; max-width:920px; font-size:clamp(1.05rem,2.1vw,1.5rem); letter-spacing:.12em; }
.aw-page-group h2 span::before,.aw-page-group h2 span::after{ content:""; display:inline-block; width:42px; height:1px; background:var(--line-strong); vertical-align:middle; margin:0 14px; }
.aw-rowlabel{ margin:44px 0 20px; text-align:center; font-family:var(--f-ui); font-size:.68rem; font-weight:600; letter-spacing:.24em; text-transform:uppercase; color:var(--ink-faint); }

/* Homepage pairs sit side by side only while the four laurels fit the grid at 150px.
   Below that (content box under ~1115px, viewport under ~1171px) each festival stacks. */
@media (max-width:1184px){
  .aw-tier2{ flex-direction:column; align-items:center; gap:var(--aw-row); }
}

/* ---- phone: two columns of (100vw - 72px) / 2, one height for every laurel ---- */
@media (max-width:640px){
  .aw-head{ margin-bottom:32px; }
  .aw-page-group h2 span::before,.aw-page-group h2 span::after{ display:none; }
  .aw-page-group h2{ margin-bottom:28px; }
  .aw-l{
    /* Widest file is 910/480 = 1.8958. 3.82 = 2 * 1.91, so that laurel
       stays inside the column by about a pixel. */
    --aw-h: calc((100cqi - 16px) / 3.82);
  }
  .aw-l img{ max-width:calc((100cqi - 16px) / 2); }
  .aw-name{ font-size:.9rem; letter-spacing:.08em; }
  .aw-row,
  .aw-tier1,
  .aw-pair,
  .aw-tier3{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    column-gap:16px;
    row-gap:var(--aw-row);
    justify-items:center;
    align-items:start;
    width:100%;
  }
  .aw-row > .aw-l:last-child:nth-child(odd),
  .aw-tier1 > .aw-l:last-child:nth-child(odd){
    grid-column:1 / -1;
    justify-self:center;
  }
  .aw-tier3 > .aw-cluster:last-child:nth-child(odd){
    grid-column:1 / -1;
    justify-self:center;
    width:auto;
  }
  .aw-tier2{
    flex-direction:column;
    align-items:stretch;
    gap:var(--aw-row);
    width:100%;
  }
  .aw-tier2 .aw-cluster,
  .aw-tier3 .aw-cluster{ width:100%; max-width:100%; }
  .aw-cluster > .aw-fest{ width:auto; min-width:0; max-width:100%; }
  .aw-fest-name{ font-size:.66rem; letter-spacing:.2em; min-height:4.5em; }
  .aw-cta{ margin-top:44px; }
  .aw-cta .btn{ width:100%; max-width:340px; justify-content:center; text-align:center; font-size:.92rem; padding:14px 18px; }
}
