/* Trident BJJ — concept C "Lineage"
   Charcoal, photographic, Didone titling. Gold is reserved for hairlines
   and the lineage line; blue appears exactly twice (CTA, active nav). */

:root {
  --charcoal: #17181B;
  --deep: #0E0F11;
  --bone: #E8E4DC;
  --ash: #9A9891;
  --gold: #C9962B;
  --blue: #2F7FE0;
  --blue-hover: #276FC7;
  --rule: rgba(154, 152, 145, 0.22);

  --font-display: "Barlow Condensed", sans-serif;
  --font-body: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --section-y: clamp(80px, 12vw, 160px);
  --head-gap: clamp(40px, 6vw, 72px);

  --step--1: clamp(0.875rem, 0.85rem + 0.15vw, 0.9375rem);
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  --step-2: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
  --step-3: clamp(2.5rem, 1.8rem + 3.2vw, 4.75rem);
  --step-4: clamp(3.25rem, 2rem + 6vw, 7rem);
  --label: 0.78rem;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--charcoal);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; display: block; }

a { color: inherit; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

.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;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 100;
  padding: 12px 18px;
  background: var(--bone);
  color: var(--deep);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Type roles ---------- */

.label {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--label);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
}
.label--gold { color: var(--gold); }

.h2 {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-3);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--bone);
  max-width: 16ch;
  font-variation-settings: "opsz" 96;
}

.h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-2);
  line-height: 1.1;
  color: var(--bone);
  font-variation-settings: "opsz" 48;
}

.section-lede {
  max-width: 52ch;
  margin-top: 24px;
  color: var(--ash);
  font-size: var(--step-1);
  line-height: 1.5;
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}
.btn:hover { background: var(--blue-hover); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn--small { min-height: 44px; padding: 0 20px; }

.link-quiet {
  display: inline-block;
  padding: 10px 0;
  color: var(--bone);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--ash);
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.2s var(--ease);
}
.link-quiet:hover { text-decoration-color: var(--bone); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  transition: background-color 0.4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(23, 24, 27, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
/* No backdrop-filter while open: it would become the containing block
   for the fixed-position menu panel and clip it to the header's height. */
.site-header.is-open {
  background: var(--charcoal);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--gutter);
}

.brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--bone);
  text-decoration: none;
  min-height: 44px;
}
.brand-mark { width: 24px; height: auto; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  line-height: 1;
}

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

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

.nav-link {
  display: inline-block;
  padding: 14px 0;
  font-size: var(--label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.nav-link:hover { color: var(--ash); }
.nav-link.is-active { color: var(--blue); }

.nav-toggle {
  display: none;
  position: relative;
  z-index: 2;
  min-width: 44px;
  min-height: 44px;
  padding: 0 4px;
  background: none;
  border: 0;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: var(--label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--deep);
}

.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(23, 24, 27, 0.35) 0%,
      rgba(23, 24, 27, 0.05) 28%,
      rgba(23, 24, 27, 0.35) 58%,
      var(--charcoal) 100%);
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  filter: grayscale(1) contrast(1.06) brightness(0.82);
}

.hero-meta {
  position: absolute;
  top: 96px;
  right: var(--gutter);
  z-index: 1;
  color: var(--bone);
  text-align: right;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 var(--gutter) clamp(48px, 8vw, 96px);
}

.hero-title {
  margin: 0 0 20px -0.04em;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(96px, 18vw, 260px);
  line-height: 0.86;
  letter-spacing: -0.015em;
  color: var(--bone);
  font-variation-settings: "opsz" 96;
}

.hero-sub {
  max-width: 30ch;
  margin: 0 0 32px;
  font-size: var(--step-1);
  line-height: 1.4;
  color: var(--bone);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}

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

.section {
  padding: var(--section-y) var(--gutter);
}

.section-head {
  margin-bottom: var(--head-gap);
}

/* ---------- Lineage (signature) ---------- */

.lineage {
  background: var(--charcoal);
}

.lineage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(48px, 7vw, 120px);
  align-items: start;
}

.lineage-intro .h2 { margin-bottom: 28px; }
.lineage-intro p { max-width: 44ch; color: var(--bone); }
.lineage-intro p + p { color: var(--ash); }

.lineage-figure {
  margin: 44px 0 0;
  max-width: 300px;
}
.lineage-figure img {
  width: 100%;
  height: auto;
  filter: grayscale(0.25);
}
.lineage-figure figcaption { margin-top: 12px; }

.chain {
  position: relative;
  margin: 0;
  padding: 8px 0 8px 52px;
  list-style: none;
}

.chain-line {
  position: absolute;
  top: 0;
  left: 6px;
  width: 2px;
  height: 100%;
  overflow: visible;
}
.chain-line line {
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  vector-effect: non-scaling-stroke;
}

.chain-item {
  position: relative;
  padding: 0 0 clamp(40px, 5.5vw, 72px);
}
.chain-item:last-child { padding-bottom: 0; }

.chain-name {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.005em;
  color: var(--bone);
  font-variation-settings: "opsz" 72;
}

.chain-node {
  position: absolute;
  top: calc(0.5em - 7px);
  left: -52px;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  background: var(--charcoal);
  transition: background-color 0.4s var(--ease);
}
.chain-node.is-lit { background: var(--gold); }

.chain-role {
  display: block;
  margin-top: 12px;
}
.chain-place { color: var(--gold); }

/* ---------- Academies ---------- */

.academies {
  background: var(--deep);
}

.academies-head {
  padding: var(--section-y) var(--gutter) var(--head-gap);
}

.panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 78vh;
}
.panel--flip .panel-media { order: 2; }

.panel-media {
  position: relative;
  min-height: 420px;
  background: var(--charcoal);
}
.panel-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    filter: none;
}
.panel-img--colour {
  filter: grayscale(0.4) brightness(0.92);
}

.panel-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 7vw, 120px) var(--gutter);
}

.panel-title {
  margin: 12px 0 24px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-4);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--bone);
  font-variation-settings: "opsz" 96;
}

.panel-copy {
  max-width: 44ch;
  margin-bottom: 24px;
}

.panel-tags { margin-bottom: 32px; }

.address {
  margin: 0 0 8px;
  font-style: normal;
  color: var(--bone);
}
.panel-note {
  margin-bottom: 16px;
  color: var(--ash);
}

/* ---------- Programmes ---------- */

.prog-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.prog-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 24px 40px;
  padding: 0 0 clamp(40px, 5vw, 64px);
}
.prog-row:last-child { padding-bottom: 0; }

.prog-age { padding-top: 0.55em; }

.prog-name .label { margin-top: 12px; }

.prog-copy { max-width: 56ch; color: var(--ash); }
.prog-copy p + p { margin-top: 1em; }

.prog-foot {
  max-width: 60ch;
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 32px;
  border-top: 1px solid var(--gold);
  color: var(--bone);
}

/* ---------- Timetable ---------- */

.timetable {
  background: var(--deep);
}

.timetable-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 120px);
  align-items: start;
}

.tt-academy-title {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 36px;
}

.tt-group + .tt-group {
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--gold);
}

.tt-group-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-1);
  line-height: 1.2;
  color: var(--bone);
}

.tt-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.tt-table th,
.tt-table td {
  padding: 10px 0;
  text-align: left;
  vertical-align: top;
}
.tt-table th {
  width: 42%;
  padding-right: 16px;
  font-family: var(--font-body);
  font-size: var(--label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
  line-height: 1.7;
}
.tt-table td {
  color: var(--bone);
  font-weight: 500;
}
.tt-sep {
  margin: 0 8px;
  color: var(--ash);
  font-weight: 400;
}
.tt-age {
  display: block;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.tt-note {
  max-width: 48ch;
  margin-top: 36px;
  color: var(--ash);
}

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.price-col {
  padding: 8px clamp(24px, 3vw, 48px) 8px 0;
}
.price-col + .price-col {
  padding-left: clamp(24px, 3vw, 48px);
  border-left: 1px solid var(--gold);
}

.price-name { margin-bottom: 20px; }

.price-amount {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 12px;
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(44px, 4.5vw, 64px);
  line-height: 1;
  color: var(--bone);
  font-weight: 600;
  font-optical-sizing: none;
  font-variation-settings: "opsz" 28;
}
.price-from,
.price-per {
  font-family: var(--font-body);
  font-size: var(--label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
}

.price-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ash);
}
.price-list li { padding: 6px 0; }

.pricing-foot {
  max-width: 60ch;
  margin-top: clamp(48px, 6vw, 80px);
}
.pricing-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: 24px;
}

/* ---------- Testimonials ---------- */

.testimonials {
  position: relative;
  overflow: hidden;
  background: var(--deep);
}

.testimonials-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  opacity: 0.25;
  filter: grayscale(1);
}

.testimonials-inner {
  position: relative;
  z-index: 1;
}

.quotes {
  display: grid;
  gap: clamp(48px, 6vw, 80px);
  max-width: 880px;
}

.quote { margin: 0; }

.quote-text {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.3vw, 28px);
  line-height: 1.4;
  color: var(--bone);
  font-variation-settings: "opsz" 24;
}

.quote-by {
  margin-top: 18px;
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 760px;
  border-bottom: 1px solid var(--rule);
}

.faq-item {
  border-top: 1px solid var(--rule);
}

.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 44px;
  padding: 22px 0;
  font-weight: 600;
  font-size: var(--step-0);
  line-height: 1.4;
  color: var(--bone);
  cursor: pointer;
  list-style: none;
}
.faq-summary::-webkit-details-marker { display: none; }

.faq-icon {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.3s var(--ease);
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }

.faq-body {
  max-width: 60ch;
  padding: 0 0 26px;
  color: var(--ash);
}

/* ---------- Free trial form ---------- */

.trial {
  background: var(--deep);
}

.trial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(48px, 7vw, 120px);
  align-items: start;
}

.trial-intro .h2 { margin-bottom: 28px; }
.trial-intro p { max-width: 42ch; }
.trial-intro p + p { color: var(--ash); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 28px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field--full { grid-column: 1 / -1; }

.field-label {
  font-size: var(--label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
}

.input {
  width: 100%;
  min-height: 46px;
  padding: 10px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ash);
  border-radius: 0;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.4;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.input::placeholder { color: rgba(154, 152, 145, 0.6); }
.input:focus {
  outline: none;
  border-bottom-color: var(--bone);
  box-shadow: 0 1px 0 0 var(--bone);
}
.input:focus-visible { outline: none; }

.input--select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23C9962B' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  cursor: pointer;
}
.input--select option { color: #111; background: #fff; }

.input--area {
  resize: vertical;
  min-height: 96px;
}

.form-consent {
  max-width: 52ch;
  margin: 28px 0;
  font-size: var(--step--1);
  color: var(--ash);
}

.form-status {
  margin-top: 24px;
  padding: 18px 0 0;
  border-top: 1px solid var(--gold);
  font-size: var(--step-1);
  line-height: 1.4;
  color: var(--bone);
}
.form-status[hidden] { display: none; }
.form-status.is-error { border-top-color: var(--ash); }

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

.site-footer {
  padding: var(--section-y) var(--gutter) 40px;
  background: var(--deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: auto repeat(3, minmax(0, 1fr));
  gap: 48px clamp(32px, 5vw, 80px);
  align-items: start;
}

.footer-emblem {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  mix-blend-mode: screen;
}

.footer-title { margin-bottom: 18px; }

.footer-person {
  margin-top: 16px;
  line-height: 1.7;
}
.footer-person a {
  color: var(--bone);
  text-decoration: underline;
  text-decoration-color: var(--ash);
  text-underline-offset: 4px;
}
.footer-person a:hover { text-decoration-color: var(--bone); }
.footer-muted {
  color: var(--ash);
  font-size: var(--step--1);
}
.footer-cta { font-weight: 600; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 40px;
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: var(--step--1);
  color: var(--ash);
}
.footer-bottom p { margin: 0; max-width: 64ch; }

/* ---------- Image fade ---------- */

.js .fade {
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.js .fade.is-loaded { opacity: 1; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: auto 1fr 1fr; }
  .footer-brand { grid-row: span 2; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 40px;
    padding: 104px var(--gutter) 40px;
    background: var(--charcoal);
    overflow-y: auto;
  }
  .nav.is-open { display: flex; }

  .nav-list {
    flex-direction: column;
    gap: 4px;
  }
  .nav-link {
    padding: 10px 0;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: var(--step-2);
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.1;
  }

  .hero-meta {
    right: auto;
    left: var(--gutter);
    text-align: left;
    max-width: 24ch;
  }
  .hero-media::after {
    background:
      linear-gradient(to bottom,
        rgba(23, 24, 27, 0.6) 0%,
        rgba(23, 24, 27, 0.1) 30%,
        rgba(23, 24, 27, 0.45) 60%,
        var(--charcoal) 100%);
  }

  .lineage-grid,
  .timetable-grid,
  .trial-grid {
    grid-template-columns: 1fr;
  }

  .panel { grid-template-columns: 1fr; min-height: 0; }
  .panel--flip .panel-media { order: 0; }
  .panel-media { min-height: 62vw; }

  .prog-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .prog-age { padding-top: 0; }
  .prog-copy { margin-top: 8px; }

  .pricing-grid { grid-template-columns: 1fr; }
  .price-col { padding: 0 0 36px; }
  .price-col + .price-col {
    padding: 36px 0;
    border-left: 0;
    border-top: 1px solid var(--gold);
  }
  .price-col:last-child { padding-bottom: 0; }

  .form-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-row: auto; }
}

@media (max-width: 480px) {
    .hero-img {
        object-fit: contain;
        object-position: center center;
    }
    .hero-title { font-size: clamp(64px, 18vw, 88px); }
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .btn { width: 100%; }
    .btn--small { width: auto; }
    .chain { padding-left: 40px; }
    .chain-node { left: -40px; }
    .tt-table th { width: 46%; }
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .fade { opacity: 1; }
  .chain-line line { stroke-dashoffset: 0; }
  .chain-node { background: var(--gold); }
}
.panel-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
/* Swindon academy team image */
#academies .panel:first-of-type .panel-media {
    min-height: 0 !important;
    height: auto !important;
}

#academies .panel:first-of-type .panel-img {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    filter: none !important;
}
/* Swindon team photo — show original image in full */
.panel--swindon .panel-media {
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
    background: var(--charcoal);
}

.panel--swindon .panel-img {
    position: static !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: unset !important;
    object-position: unset !important;
    filter: none !important;
    transform: none !important;
}