/* =========================================================
   HOME (index.php) — loaded after base.css
   ========================================================= */
.categories, .winners, .highlights, .years { padding-block: var(--sec); position: relative; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px;
  border-radius: 999px; background: var(--y); color: var(--ink);
  font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.6s infinite; }

/* ---------- Dates bar (compact, until official dates are announced) ---------- */
.dates-bar {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px 32px;
  margin-top: clamp(40px, 5vw, 64px); padding: 22px 22px 22px 28px; border-radius: var(--r);
  background: var(--ink); color: var(--fg);
}
.dates-bar__text { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.dates-bar__text p { color: var(--fg-dim); max-width: 620px; }
.dates-bar__text strong { color: var(--fg); font-weight: 600; }
.dates-bar__actions { display: flex; align-items: center; gap: 24px; }

/* ---------- Through the years (timeline) ---------- */
.years__stage { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.years__media { position: relative; aspect-ratio: 745 / 440; overflow: hidden; isolation: isolate; border-radius: 26px; background: #151311; touch-action: pan-y; }
.years__shot { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .8s var(--ease); }
.years__shot.is-active { opacity: 1; z-index: 1; }
.years__shot img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 6s ease-out; }
.years__shot.is-active img { transform: scale(1); }
.years__shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(20deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, 0) 45%); }
.years__num {
  position: absolute; z-index: 1; left: clamp(16px, 2.6vw, 34px); bottom: clamp(4px, 1vw, 12px);
  font: 600 clamp(72px, 10vw, 168px)/.82 var(--f-sans); letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .9);
  opacity: 0; transform: translateY(24%); transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.years__shot.is-active .years__num { opacity: 1; transform: none; transition-delay: .15s; }
/* quick "projector flicker" when the year changes (class added by home.js) */
@keyframes years-flicker { 0% { filter: brightness(1.8) contrast(.8); } 30% { filter: brightness(.7); } 55% { filter: brightness(1.25); } 100% { filter: none; } }
.years__shot.is-flick img { animation: years-flicker .55s steps(4, end); }

.years__side { display: flex; flex-direction: column; gap: 32px; }
.years__panels { display: grid; }
.years__panel { grid-area: 1 / 1; visibility: hidden; opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .6s var(--ease), visibility 0s .5s; }
.years__panel.is-active { visibility: visible; opacity: 1; transform: none; transition: opacity .5s var(--ease) .1s, transform .6s var(--ease) .1s; }
.years__ed { font: 500 12px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--y); }
.years__ed span { color: var(--fg-dim); }
.years__panel h3 { margin-top: 16px; font: 600 clamp(32px, 3.2vw, 50px)/1.02 var(--f-sans); letter-spacing: -.045em; }
.years__panel h3 em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--y); }
.years__text { margin-top: 16px; max-width: 480px; color: var(--fg-dim); }
.years__facts { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.years__facts strong { display: block; font: 600 clamp(34px, 3vw, 48px)/1 var(--f-sans); letter-spacing: -.05em; }
.years__facts span { display: block; margin-top: 8px; font-size: 14px; color: var(--fg-dim); }
.years__links { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 28px; }

.years__ctrl { display: flex; align-items: center; gap: 10px; }
.years__btn { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: background .3s, border-color .3s, color .3s; }
.years__btn svg { width: 20px; height: 20px; }
.years__btn[data-dir="-1"] svg { transform: rotate(180deg); }
.years__btn:hover { background: var(--y); border-color: var(--y); color: var(--ink); }
.years__count { margin-left: 8px; font: 500 12px/1 var(--f-mono); letter-spacing: .12em; color: var(--fg-dim); }
.years__count b { color: var(--fg); font-weight: 500; }

/* same section on a light (cream) background: <section class="years light"> */
.years.light .years__ed { color: #8a6d00; }
.years.light .years__ed span, .years.light .years__text, .years.light .years__facts span, .years.light .years__count { color: var(--ink-dim); }
.years.light .years__panel h3 em { color: #b07f00; }
.years.light .years__facts { border-color: var(--ink-line); }
.years.light .years__btn { border-color: var(--ink-line); }
.years.light .years__btn:hover { background: var(--ink); border-color: var(--ink); color: var(--y); }
.years.light .years__count b { color: var(--ink); }

/* filmstrip rail */
.years__rail { position: relative; margin-top: clamp(40px, 5vw, 64px); padding: 26px 16px 22px; border-radius: 20px; background: #151311; color: var(--fg); }
.years.light .years__rail { background: var(--ink); }
.years__rail::before, .years__rail::after {
  content: ""; position: absolute; left: 16px; right: 16px; height: 6px; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .13) 0 10px, transparent 10px 24px);
}
.years__rail::before { top: 9px; }
.years__rail::after { bottom: 9px; }
.years__frames { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.years__frame { display: flex; flex-direction: column; gap: 6px; padding: 8px 8px 12px; border-radius: 14px; border: 1px solid transparent; text-align: left; transition: background .3s, border-color .3s; }
.years__frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 6px; border-radius: 8px; filter: grayscale(1) brightness(.55); transition: filter .5s; }
.years__frame:hover img { filter: grayscale(.3) brightness(.85); }
.years__fy { font: 600 22px/1 var(--f-sans); letter-spacing: -.04em; transition: color .3s; }
.years__frame small { font: 500 10.5px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-dim); }
.years__frame[aria-selected="true"] { border-color: var(--y); background: rgba(255, 224, 0, .06); }
.years__frame[aria-selected="true"] img { filter: none; }
.years__frame[aria-selected="true"] .years__fy { color: var(--y); }
.years__bar { position: relative; height: 2px; margin: 16px 8px 0; background: var(--line); border-radius: 2px; overflow: hidden; }
.years__bar i { position: absolute; inset: 0 auto 0 0; background: var(--y); transition: width .6s var(--ease); }

/* ---------- Category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cat-grid li {
  display: flex; flex-direction: column; gap: 8px; padding: 26px 26px 28px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background .35s;
}
.cat-grid li:hover { background: rgba(255, 224, 0, .06); }
.cat-grid span { font: 500 12px/1 var(--f-mono); color: var(--y); letter-spacing: .1em; margin-bottom: 10px; }
.cat-grid strong { font: 500 clamp(20px, 1.8vw, 26px)/1.15 var(--f-sans); letter-spacing: -.03em; }
.cat-grid small { color: var(--fg-dim); font-size: 14.5px; }

/* ---------- Winners ---------- */
.tabs { position: relative; display: inline-flex; flex-wrap: wrap; padding: 5px; border-radius: 999px; background: rgba(16, 14, 12, .05); border: 1px solid var(--ink-line); }
.tabs button { position: relative; z-index: 1; padding: 11px 20px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-dim); transition: color .4s; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--fg); }
.tabs__pill { position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; background: var(--ink); transition: transform .5s var(--ease), width .5s var(--ease); }
.awards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.awards[hidden] { display: none; }
.award {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 18px; padding: 22px 24px;
  border-radius: var(--r); background: var(--ink); color: var(--fg);
  transition: transform .5s var(--ease);
  animation: rise .6s var(--ease) both;
}
.award:nth-child(2) { animation-delay: .05s; }
.award:nth-child(3) { animation-delay: .1s; }
.award:nth-child(4) { animation-delay: .15s; }
.award:nth-child(5) { animation-delay: .2s; }
.award:nth-child(6) { animation-delay: .25s; }
.award::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 90% at 0% 50%, rgba(245, 183, 0, .16), transparent 70%); }
.award:hover { transform: translateY(-4px); }
.award__laurel { grid-row: span 2; width: 64px; height: 36px; color: var(--y); }
.award__k { display: none; }
.award h3 { font: italic 400 clamp(26px, 2.3vw, 34px)/1.05 var(--f-serif); }
.award p { margin-top: 4px; color: var(--fg-dim); font-size: 14.5px; }
.winners .link { margin-top: 44px; }

/* Trophy banner (winners heading) */
.trophy { position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; background: var(--bg); }
.trophy img { width: 100%; height: auto; min-height: 320px; aspect-ratio: 1536 / 559; object-fit: cover; object-position: 62% center; transition: transform 1.4s var(--ease); }
.trophy:hover img { transform: scale(1.03); }
.trophy::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(8, 7, 6, .94) 0%, rgba(8, 7, 6, .7) 34%, rgba(8, 7, 6, 0) 66%); }
.trophy__text { position: absolute; z-index: 1; left: clamp(24px, 4vw, 60px); top: 50%; transform: translateY(-50%); max-width: 460px; color: var(--fg); }
.light .trophy .label { color: var(--fg-dim); }
.trophy__text .title { margin-top: 14px; color: #fff; }
.trophy__text p:last-child { margin-top: 16px; color: var(--fg-dim); }
.winners__bar { display: flex; justify-content: flex-end; margin: 26px 0 18px; }

/* ---------- Highlights ---------- */
.reels { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(3, 1fr); gap: 12px; height: clamp(420px, 48vw, 720px); }
.reel { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 20px; background: #151311; text-align: left; isolation: isolate; }
.reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.1); transition: transform 1s var(--ease); }
.reel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .78)); }
.reel:hover img { transform: scale(1.15); }
.reel--lg { grid-row: 1 / -1; }
.reel__meta { position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 14px; color: #fff; font: 600 16px/1.2 var(--f-sans); letter-spacing: -.01em; }
.reel__meta small { display: block; margin-bottom: 5px; font: 500 10px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
.reel__play { width: 46px; height: 46px; border-radius: 50%; background: var(--y); color: var(--ink); display: grid; place-items: center; flex: none; transition: transform .5s var(--ease); }
.reel__play svg { width: 18px; height: 18px; margin-left: 2px; }
.reel:hover .reel__play { transform: scale(1.12); }
.reel--lg .reel__meta { left: 28px; bottom: 28px; gap: 18px; font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -.03em; }
.reel--lg .reel__play { width: 72px; height: 72px; }
.reel--lg .reel__play svg { width: 24px; height: 24px; }

/* ---------- Gallery: 8 photos, 4 columns, 3 rows, no holes ---------- */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; grid-auto-flow: dense; gap: 12px; }
.shots .shot:nth-child(1), .shots .shot:nth-child(3) { grid-row: span 2; }
.shots .shot:nth-child(2), .shots .shot:nth-child(7) { grid-column: span 2; }

/* ---------- Newsletter (CTA) ---------- */
.subscribe { position: relative; display: flex; gap: 8px; padding: 7px; border-radius: 999px; background: var(--ink); }
.subscribe:focus-within { box-shadow: 0 0 0 4px rgba(16, 14, 12, .2); }
.subscribe input { flex: 1; min-width: 0; height: 58px; padding: 0 22px; background: transparent; border: 0; outline: none; color: var(--fg); font: 400 17px var(--f-sans); }
.subscribe input::placeholder { color: rgba(243, 238, 229, .4); }
.subscribe button { display: inline-flex; align-items: center; gap: 10px; height: 58px; padding: 0 26px; border-radius: 999px; background: var(--y); color: var(--ink); font-weight: 600; transition: background .3s; }
.subscribe button:hover { background: #fff; }
.subscribe button svg { width: 18px; height: 18px; }
.subscribe__msg { position: absolute; left: 22px; top: calc(100% + 12px); font-size: 14px; font-weight: 500; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .awards { grid-template-columns: repeat(2, 1fr); }

  .reels { grid-template-columns: 1fr 1fr; grid-template-rows: none; height: auto; }
  .reel { aspect-ratio: 16 / 10; height: auto; }
  .reel--lg { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .reels .reel:last-child { grid-column: 1 / -1; aspect-ratio: 21 / 9; }

  .shots { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
  .shots .shot { grid-row: auto; grid-column: auto; }
  .shots .shot:nth-child(1), .shots .shot:nth-child(6) { grid-column: span 2; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .dates-bar { padding: 22px; }

  .years__stage { grid-template-columns: 1fr; }
  .years__frames { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .years__frames::-webkit-scrollbar { display: none; }
  .years__frame { flex: 0 0 150px; scroll-snap-align: start; }
}

@media (max-width: 640px) {
  .trophy img { min-height: 380px; object-position: 78% center; }
  .trophy::after { background: linear-gradient(0deg, rgba(8, 7, 6, .95) 0%, rgba(8, 7, 6, .6) 45%, rgba(8, 7, 6, .1) 80%); }
  .trophy__text { top: auto; bottom: 24px; right: 24px; transform: none; }
  .winners__bar { justify-content: flex-start; }
  .awards { grid-template-columns: 1fr; }
  .reels { grid-template-columns: 1fr; }
  .reel, .reels .reel:last-child { grid-column: auto; aspect-ratio: 16 / 10; }
  .shots { grid-auto-rows: 150px; gap: 10px; }
  .subscribe { flex-direction: column; border-radius: 26px; }
  .subscribe input { height: 52px; }
  .subscribe button { justify-content: center; }
  .cat-grid { grid-template-columns: 1fr; }
  .dates-bar__actions { flex-wrap: wrap; gap: 16px; }
  .tabs button { padding: 10px 14px; font-size: 13px; }
  .years__num { font-size: 64px; }
  .years__frame { flex-basis: 128px; }
  .years__fy { font-size: 19px; }
}
