/* EBTMalta — site styles. Colours are taken from the logo (navy, orange) and the
   2026 poster (blue, cyan). */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/outfit-latin.woff2") format("woff2");
}

:root {
  --ink: #090909;
  --navy: #101010;
  --poster-blue: #171717;
  --orange: #f59b23;
  --orange-light: #ffb84d;
  --cyan: #ffc46b;
  --text: #171717;
  --muted: #626262;
  --line: #e4e1dc;
  --mist: #f5f3ef;
  --link: #a95000;
  --error: #b42318;
  --on-dark: #e8e3dc;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(11 16 48 / 0.06), 0 10px 28px rgb(11 16 48 / 0.08);
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}

img,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  font-weight: 750;
  letter-spacing: -0.01em;
  color: inherit;
  text-wrap: balance;
}

p,
li,
dd {
  text-wrap: pretty;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 2px;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* Elements given the hidden attribute stay hidden, whatever display a class sets. */
[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--orange);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--orange-light);
}

.btn-outline {
  border-color: currentColor;
  color: var(--ink);
  background: transparent;
}

.btn-outline:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.dark .btn-outline {
  color: #fff;
}

.dark .btn-outline:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---------- Header and navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: auto;
  height: 52px;
}

.brand-text {
  font-weight: 750;
  font-size: 0.95rem;
  line-height: 1.15;
}

.brand-text span {
  display: block;
  font-weight: 500;
  color: var(--muted);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-icon {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-nav ul {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a:not(.btn) {
  display: block;
  padding: 10px 11px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:not(.btn):hover {
  background: var(--mist);
}

.site-nav a[aria-current="page"] {
  color: var(--link);
  box-shadow: inset 0 -3px 0 var(--orange);
  border-radius: 8px 8px 0 0;
}

@media (width < 1100px) {
  .brand img {
    height: 46px;
  }

  .js .menu-toggle {
    display: inline-flex;
  }

  .site-header {
    position: sticky;
  }

  /* Without JavaScript the menu simply wraps under the logo. */
  .header-inner {
    flex-wrap: wrap;
  }

  .site-nav {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding-bottom: 12px;
  }

  .site-nav ul {
    flex-direction: column;
  }

  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: auto;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 8px var(--gutter) 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgb(11 16 48 / 0.12);
  }

  .js .site-nav[data-open] {
    display: flex;
  }

  .site-nav a:not(.btn) {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 1.1rem;
  }

  .site-nav a[aria-current="page"] {
    box-shadow: inset 4px 0 0 var(--orange);
    padding-left: 14px;
    border-radius: 0;
  }

  .nav-cta {
    margin-top: 16px;
  }
}

@media (width < 420px) {
  .brand-text {
    display: none;
  }
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(56px, 8vw, 104px);
}

.section-tight {
  padding-block: clamp(40px, 5vw, 64px);
}

.section-alt {
  background: var(--mist);
}

.dark {
  background: var(--navy);
  color: #fff;
}

.dark a:not(.btn) {
  color: #fff;
}

.dark :focus-visible {
  outline-color: var(--cyan);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--link);
}

.dark .eyebrow {
  color: var(--orange);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.section-head h2,
.prose h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.dark .section-head p,
.dark .lead {
  color: var(--on-dark);
}

.lead {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  max-width: 44ch;
}

.prose {
  max-width: 70ch;
}

.prose h2 {
  margin-top: 1.6em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 1.6em 0 0.4em;
  font-size: 1.35rem;
}

.muted {
  color: var(--muted);
}

/* ---------- Hero (home) ---------- */

.hero {
  padding-block: clamp(40px, 7vw, 88px);
}

.hero-grid {
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

@media (width >= 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
  }
}

.hero h1 {
  margin: 0 0 0.35em;
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  font-weight: 800;
}

.hero .lead {
  margin: 0;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgb(0 0 0 / 0.35);
}

.facts-strip {
  background: var(--ink);
  color: #fff;
}

.facts-strip ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin: 0;
  padding: 16px 0;
  list-style: none;
  font-weight: 600;
}

.facts-strip li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.facts-strip li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

/* ---------- Page header (inner pages) ---------- */

.page-head {
  padding-block: clamp(40px, 6vw, 76px);
}

.page-head h1 {
  margin: 0 0 0.3em;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
}

.page-head .lead {
  margin: 0;
  max-width: 52ch;
}

.notice {
  margin-top: 24px;
  max-width: 62ch;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.22);
  color: #fff;
}

.notice p {
  margin: 0;
}

/* ---------- Cards ---------- */

.cards {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card > img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
}

.card-body .eyebrow {
  margin: 0;
}

.card h3 {
  margin: 0;
  font-size: 1.4rem;
}

.card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.card h3 a:hover {
  text-decoration: underline;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.card-body > p:last-of-type {
  margin-bottom: 8px;
}

/* ---------- Results ---------- */

.recap-grid {
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

@media (width >= 900px) {
  .recap-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.scorelines {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.scoreline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 4px 12px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.scoreline .comp {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.scoreline .team:first-of-type {
  text-align: right;
}

.score {
  padding: 4px 12px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.winner {
  font-weight: 750;
}

.loser {
  color: var(--muted);
}

.callout {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  margin-bottom: 32px;
  border-radius: 12px;
  background: #fff7e8;
  border: 1px solid #f6c46b;
}

.callout p {
  margin: 0;
  font-size: 1.1rem;
}

.table-wrap {
  container-type: inline-size;
  margin-bottom: 40px;
}

.results-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  --label-2: "Match";
  --label-3: "Score";
}

.results-table caption {
  padding-bottom: 12px;
  text-align: left;
  font-size: 1.4rem;
  font-weight: 750;
}

.results-table th,
.results-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.results-table tbody tr:last-child > * {
  border-bottom: 0;
}

.results-table thead th {
  background: var(--mist);
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.results-table tbody th {
  font-weight: 600;
  white-space: nowrap;
}

.results-table td.score-cell {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff1d6;
  color: #6b4500;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

@container (width < 520px) {
  .results-table,
  .results-table thead,
  .results-table tbody,
  .results-table tr,
  .results-table th,
  .results-table td {
    display: block;
  }

  .results-table thead {
    display: none;
  }

  .results-table caption {
    padding: 14px 16px 6px;
    border-bottom: 1px solid var(--line);
  }

  .results-table tr {
    border-bottom: 1px solid var(--line);
  }

  .results-table tbody tr:last-child {
    border-bottom: 0;
  }

  .results-table th,
  .results-table td {
    border-bottom: 0;
    padding: 4px 16px;
  }

  .results-table tbody th {
    padding-top: 14px;
    color: var(--muted);
    font-size: 0.9rem;
  }

  .results-table td:last-child {
    padding-bottom: 14px;
  }

  .results-table td:nth-child(2)::before {
    content: var(--label-2) ": ";
    content: var(--label-2) ": " / var(--label-2);
    color: var(--muted);
  }

  .results-table td:nth-child(3)::before {
    content: var(--label-3) ": ";
    content: var(--label-3) ": " / var(--label-3);
    color: var(--muted);
    font-weight: 500;
  }
}

/* ---------- Video (click to load) ---------- */

.video {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
  color: #fff;
}

.video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.video:hover img {
  opacity: 1;
}

.video .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.video .play::before {
  content: "";
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--orange)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%230b1030'/%3E%3C/svg%3E")
    center / 34px no-repeat;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.4);
}

.video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-caption {
  margin: 10px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.videos {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}

/* ---------- Partners ---------- */

.partners {
  background: var(--poster-blue);
  color: #fff;
  padding-block: 28px;
}

.partners-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 44px;
}

.partners h2 {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #c9cdf3;
}

.partners ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 44px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.partners img {
  width: auto;
  height: 56px;
}

.partners .logo-wide img {
  height: 34px;
}

/* ---------- Content blocks ---------- */

.split {
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

@media (width >= 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split-reverse > :first-child {
    order: 2;
  }
}

.split img.rounded,
.rounded {
  width: 100%;
  border-radius: var(--radius);
}

.poster {
  justify-self: center;
  width: min(100%, 420px);
}

.facts {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  margin: 0;
}

.facts div {
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.facts dt {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts dd {
  margin: 4px 0 0;
  font-size: 1.12rem;
  font-weight: 650;
}

.facts dd small {
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
}

.ticks {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 32px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--orange)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z' fill='%230b1030'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

.features {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.features li {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.features h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.features p {
  margin: 0;
  color: var(--muted);
}

.steps {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding: 22px;
  border-radius: 12px;
  background: rgb(255 255 255 / 0.07);
  border: 1px solid rgb(255 255 255 / 0.18);
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--ink);
  font-weight: 800;
}

.steps h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.steps p {
  margin: 0;
  color: var(--on-dark);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 600;
}

.chips small {
  color: var(--muted);
  font-weight: 500;
}

.people {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.people li {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.people h3 {
  margin: 0;
  font-size: 1.25rem;
}

.people .role {
  margin: 2px 0 10px;
  font-weight: 650;
  color: var(--link);
}

.people p:last-child {
  margin: 0;
  color: var(--muted);
}

.schedule {
  width: 100%;
  border-collapse: collapse;
}

.schedule th,
.schedule td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.schedule th {
  white-space: nowrap;
}

.faq {
  max-width: 820px;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 18px 40px 18px 0;
  font-size: 1.12rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  translate: 0 -50%;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--link);
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  margin: 0 0 18px;
  color: var(--muted);
}

/* ---------- Photos ---------- */

.photo-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(min(46%, 170px), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.photo-grid a {
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 10px;
  background: var(--mist);
}

.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s;
}

@media (prefers-reduced-motion: no-preference) {
  .photo-grid a:hover img {
    transform: scale(1.04);
  }
}

.photo-grid a {
  position: relative;
}

.play-badge {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.play-badge::before {
  content: "";
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgb(246 162 37 / 0.95)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%230b1030'/%3E%3C/svg%3E")
    center / 22px no-repeat;
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.35);
}

.featured-grid {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

@media (width >= 900px) {
  .featured-grid {
    grid-template-columns: 1.5fr 1fr;
  }
}

.featured-player video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: #000;
  box-shadow: var(--shadow);
}

/* Phone-shot (portrait) videos stay a sensible height and sit centred. */
.featured-player video.is-portrait {
  width: auto;
  max-width: 100%;
  max-height: 72vh;
  margin-inline: auto;
}

.featured-video h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.tile-caption {
  margin: 6px 2px 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.video-grid {
  gap: 22px 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}

.photo-grid.video-grid a {
  aspect-ratio: 16 / 9;
}

.video-grid .tile-caption {
  margin-top: 8px;
  font-size: 1rem;
}

.section-alt + .section-alt {
  border-top: 1px solid var(--line);
}

.photo-strip .photo-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(46%, 150px), 1fr));
}

.album-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 16px;
}

.album-head p {
  margin: 0;
  color: var(--muted);
}

/* Gallery: a card for each album, grouped by year. */
.album-year + .album-year {
  margin-top: clamp(36px, 5vw, 56px);
}

.album-year h3 {
  margin: 0 0 14px;
  font-size: 1.6rem;
}

.album-cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(46%, 230px), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.album-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
}

.album-cover {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--mist);
}

.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s;
}

@media (prefers-reduced-motion: no-preference) {
  .album-card:hover .album-cover img {
    transform: scale(1.04);
  }
}

.album-name {
  padding: 12px 14px 2px;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
}

.album-card:hover .album-name {
  text-decoration: underline;
}

.album-count {
  padding: 0 14px 14px;
  font-size: 0.92rem;
  color: var(--muted);
}

/* One album, opened from its card. */
.album-back {
  margin: 0 0 20px;
}

.album-view h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
}

.album-view h2:focus {
  outline: none;
}

.album-view .eyebrow {
  margin-bottom: 4px;
}

.album-view-count {
  margin: 4px 0 20px;
  color: var(--muted);
}

.album-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
}

.album-nav .album-next {
  margin-left: auto;
}

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.jump a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid rgb(255 255 255 / 0.35);
  text-decoration: none;
  font-weight: 600;
}

.jump a:hover {
  background: rgb(255 255 255 / 0.1);
}

/* Lightbox: a modal <dialog> sized to the photo so the backdrop can be clicked. */
.lightbox {
  max-width: 96vw;
  max-height: 96vh;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgb(5 8 25 / 0.92);
}

.lightbox figure {
  margin: 0;
}

.lightbox img,
.lightbox video {
  max-width: min(96vw, 1600px);
  max-height: 82vh;
  width: auto;
  border-radius: 8px;
}

.lightbox video {
  display: block;
  background: #000;
}

.lightbox figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--on-dark);
}

.lightbox button {
  position: fixed;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.14);
  color: #fff;
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox button:hover {
  background: rgb(255 255 255 / 0.26);
}

.lightbox :focus-visible {
  outline-color: var(--cyan);
}

.lightbox .lb-close {
  top: 16px;
  right: 16px;
}

.lightbox .lb-prev,
.lightbox .lb-next {
  top: 50%;
  translate: 0 -50%;
}

.lightbox .lb-prev {
  left: 12px;
}

.lightbox .lb-next {
  right: 12px;
}

/* ---------- Forms ---------- */

.contact-grid {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}

@media (width >= 900px) {
  .contact-grid {
    grid-template-columns: 1.3fr 1fr;
  }
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 650;
}

.req {
  color: var(--error);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid #b9bfd6;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid rgb(42 53 166 / 0.25);
  outline-offset: 0;
  border-color: var(--link);
}

.field :is(input, select, textarea):user-invalid,
.field .user-invalid-fallback {
  border-color: var(--error);
  background: #fff5f4;
}

.error-msg {
  display: none;
  margin-top: 6px;
  color: var(--error);
  font-size: 0.92rem;
  font-weight: 600;
}

.field :is(input, select, textarea):user-invalid ~ .error-msg,
.field .user-invalid-fallback ~ .error-msg {
  display: block;
}

.hint {
  margin: 6px 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.dark .hint {
  margin-top: 12px;
  color: var(--on-dark);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-alert {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #fff5f4;
  border: 1px solid #f1b8b2;
  color: #7a1c12;
}

.form-alert[hidden] {
  display: none;
}

.panel {
  padding: clamp(22px, 3vw, 32px);
  border-radius: 16px;
}

.panel h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.panel > p {
  margin: 0 0 18px;
}

.panel.dark > p {
  color: var(--on-dark);
}

.panel + .panel {
  margin-top: 20px;
}

.panel-light {
  background: #fff;
  border: 1px solid var(--line);
}

.signup-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.signup-row input {
  flex: 1 1 200px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
}

.signup-row input:focus {
  outline: 3px solid var(--cyan);
  outline-offset: 1px;
}

.contact-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
}

.contact-list span {
  min-width: 84px;
  color: var(--muted);
}

.contact-list a {
  overflow-wrap: anywhere;
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 56px 28px;
  background: var(--ink);
  color: #cfd3ee;
}

.footer-grid {
  display: grid;
  gap: 36px;
}

@media (width >= 800px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-logo {
  display: inline-block;
  padding: 8px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: #fff;
}

.footer-logo img {
  width: auto;
  height: 64px;
}

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #fff;
}

.site-footer p {
  margin: 0;
  max-width: 42ch;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: #fff;
}

.site-footer a:focus-visible {
  outline-color: var(--cyan);
}

.site-footer .footer-bottom {
  max-width: none;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / 0.14);
  font-size: 0.92rem;
}

/* ---------- Misc ---------- */

.center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.stack > * + * {
  margin-top: 16px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}


/* ---------- Cinematic black + orange identity ---------- */
.site-header {
  background: rgb(9 9 9 / 0.96);
  border-bottom-color: rgb(255 255 255 / 0.12);
  color: #fff;
  backdrop-filter: blur(14px);
}
.brand, .site-nav a:not(.btn) { color: #fff; }
.brand-text span { color: #bdbdbd; }
.site-nav a:not(.btn):hover { background: rgb(255 255 255 / 0.09); }
.site-nav a[aria-current="page"] { color: var(--orange); }
.menu-toggle { background: #171717; border-color: #444; color: #fff; }
@media (width < 1100px) {
  .js .site-nav { background: #101010; border-bottom-color: #333; }
  .site-nav a:not(.btn) { border-bottom-color: #333; }
}
.hero.dark {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 82% 48%, rgb(245 155 35 / .16), transparent 38%),
    linear-gradient(115deg, #080808 0%, #111 58%, #1b140c 100%);
}
.hero.dark::after {
  content: "EBTM";
  position: absolute;
  z-index: -1;
  right: -0.04em;
  bottom: -0.34em;
  color: rgb(255 255 255 / .035);
  font-size: clamp(12rem, 31vw, 30rem);
  font-weight: 800;
  line-height: .8;
  letter-spacing: -.09em;
  pointer-events: none;
}
.hero h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 7vw, 6.2rem);
  letter-spacing: -.055em;
  line-height: .98;
  text-transform: uppercase;
}
.hero .eyebrow { letter-spacing: .16em; }
.hero-photo img {
  border-radius: 4px;
  aspect-ratio: 4 / 5;
  max-height: 650px;
  object-position: center;
  box-shadow: 18px 18px 0 rgb(245 155 35 / .9);
}
.hero .btn-primary, .nav-cta {
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.hero .btn-outline { border-radius: 4px; }
.facts-strip { background: #090909; border-top: 1px solid #282828; }
.facts-strip li { text-transform: uppercase; letter-spacing: .04em; font-size: .88rem; }
.section-alt { background: #f1eee8; }
.section-head h2, .prose h2 { letter-spacing: -.045em; }
.cards { gap: 18px; }
.card {
  border-radius: 4px;
  border-color: #ded9d0;
  box-shadow: 0 8px 30px rgb(0 0 0 / .07);
  transition: transform .28s ease, box-shadow .28s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgb(0 0 0 / .13); }
.card > img { aspect-ratio: 5 / 4; }
.card-body { padding: 24px; }
.card .btn { border-radius: 4px; }
.recap-grid .scoreline { border-bottom-color: var(--line); }
.recap-grid .winner { color: #a95000; }
.partners { background: #101010; }
.site-footer { background: #090909; }
.btn-primary { border-radius: 4px; }
.btn-outline { border-radius: 4px; }
:focus-visible { outline-color: var(--orange); }
@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow,
  .hero h1,
  .hero .lead,
  .hero .actions {
    animation: hero-copy-arrive 520ms cubic-bezier(.2,.7,.2,1) both;
  }
  .hero h1 { animation-delay: 60ms; }
  .hero .lead { animation-delay: 110ms; }
  .hero .actions { animation-delay: 160ms; }

  .motion-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1);
  }
  .motion-reveal.is-visible { opacity: 1; transform: none; }
  .card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgb(0 0 0 / .13);
  }
  .hero-photo img { animation: hero-arrive .9s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes hero-copy-arrive {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes hero-arrive {
    from { opacity: .55; transform: translateY(18px) scale(1.025); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .card, .hero-photo img { transition: none; animation: none; }
  .card:hover { transform: none; }
}
