.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 110;
  width: 100%;
  height: 3px;
  background: var(--gold-line);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
  pointer-events: none;
}

.submenu a[aria-current="page"] {
  background: var(--mist);
  color: var(--royal);
  border-left-color: var(--gold);
}

.page-hero {
  background:
    radial-gradient(760px 520px at 84% 40%, rgba(6, 42, 87, 0.08), transparent 70%),
    radial-gradient(520px 360px at 4% 100%, rgba(217, 160, 58, 0.12), transparent 70%),
    var(--white);
  padding: 4rem 0 6rem;
  overflow: hidden;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) fit-content(58%);
  gap: 4rem;
  align-items: center;
}

.page-hero .hero-copy::before {
  display: none;
}

.crumbs {
  margin-bottom: 2rem;
}

.crumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.crumbs li + li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.6rem;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
}

.crumbs a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.crumbs a:hover {
  color: var(--royal);
}

.crumbs [aria-current] {
  color: var(--navy);
  font-weight: 500;
}

.page-hero h1 {
  font-size: clamp(2.8rem, 5.8vw, 4.6rem);
  letter-spacing: -0.015em;
  margin-bottom: 1.4rem;
}

.page-hero p {
  max-width: 33rem;
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 2.3rem;
}

.page-hero .actions {
  align-items: center;
}

.page-hero .hero-visual {
  width: auto;
  max-width: 100%;
  justify-self: end;
}

.hero-photo {
  margin: 0;
}

.hero-photo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 560px;
  max-height: min(640px, max(320px, calc(100vh - var(--header-h) - 10rem)));
  max-height: min(640px, max(320px, calc(100svh - var(--header-h) - 10rem)));
  margin-inline: auto;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 13%, #000 87%, transparent), linear-gradient(to bottom, transparent, #000 13%, #000 87%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 13%, #000 87%, transparent), linear-gradient(to bottom, transparent, #000 13%, #000 87%, transparent);
  mask-composite: intersect;
}

.hero-photo img.is-missing {
  visibility: hidden;
  min-height: 280px;
  min-width: 280px;
}

.page-hero .hero-chip {
  left: 1rem;
  bottom: 1.75rem;
}

.copy-link {
  padding: 0.25rem 0.5rem;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 500;
  color: var(--royal);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  cursor: pointer;
}

.copy-link:hover {
  text-decoration-thickness: 2px;
}

.prog-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 1.5rem;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  background: var(--mist);
}

.prog-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-text p {
  max-width: 34rem;
}

.how {
  padding: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--mist);
}

.how h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.how .commitments {
  margin-top: 0;
}

.contact-card {
  padding: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 18px 18px 0 var(--mist-deep);
}

.contact-card h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.contact-card dl {
  margin: 0;
}

.contact-card dl > div {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.contact-card dt {
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-card dd {
  margin: 0.15rem 0 0;
  overflow-wrap: anywhere;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--navy);
}

.others-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.others-head h2 {
  margin-bottom: 0;
}

.programmes--compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 3.5rem;
}

.programmes--compact .programme {
  padding: 1.5rem 0.5rem;
}

.programmes--compact h3 {
  margin: 0;
}

.section.gallery {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.gallery-head {
  max-width: 34rem;
  margin-bottom: 2.5rem;
}

.section.gallery h2 {
  margin-bottom: 0.75rem;
}

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

.mosaic {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.tile {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(160deg, var(--mist-deep), var(--mist));
}

.tile:has(.tile-btn:focus-visible) {
  outline: 3px solid var(--royal);
  outline-offset: 3px;
}

.tile-btn {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.tile-btn:focus-visible {
  outline: none;
}

.tile-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.tile-btn img.is-missing {
  visibility: hidden;
}

.tile-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(6, 42, 87, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tile-btn::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 2px;
  background: var(--gold-line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.tile-btn:hover img,
.tile-btn:focus-visible img {
  transform: scale(1.05);
}

.tile-btn:hover::after,
.tile-btn:focus-visible::after {
  opacity: 1;
}

.tile-btn:hover::before,
.tile-btn:focus-visible::before {
  transform: scaleX(1);
}

@supports (animation-timeline: view()) {
  .tile {
    animation: tile-rise linear backwards;
    animation-timeline: view();
    animation-range: entry 0% entry 45%;
  }
}

@keyframes tile-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

body.lb-open {
  overflow: hidden;
}

.lightbox {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.97);
  color: var(--navy);
}

.lightbox::backdrop {
  background: rgba(255, 255, 255, 0.9);
}

.lightbox[open] {
  display: grid;
  animation: lb-in 0.25s ease both;
}

@keyframes lb-in {
  from {
    opacity: 0;
  }
}

.lb-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 4.5rem 6rem;
}

.lb-figure {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  max-width: 100%;
  margin: 0;
}

.lb-figure img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 10rem);
  max-height: calc(100svh - 10rem);
  border-radius: 6px;
  box-shadow: 0 30px 60px -30px rgba(3, 27, 59, 0.35);
}

.lb-figure img.is-missing {
  visibility: hidden;
  min-height: 40vh;
}

.lb-figure figcaption {
  display: flex;
  justify-content: center;
}

.lb-count {
  font-size: 0.92rem;
  color: var(--muted);
}

.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.lb-btn:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.lb-btn[hidden] {
  display: none;
}

.lb-close {
  top: 1.25rem;
  right: 1.25rem;
}

.lb-close::before,
.lb-close::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.lb-close::before {
  transform: rotate(45deg);
}

.lb-close::after {
  transform: rotate(-45deg);
}

.lb-prev,
.lb-next {
  top: 50%;
  margin-top: -23px;
}

.lb-prev {
  left: 1.25rem;
}

.lb-next {
  right: 1.25rem;
}

.lb-prev::before,
.lb-next::before {
  content: "";
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
}

.lb-prev::before {
  margin-left: 4px;
  transform: rotate(-45deg);
}

.lb-next::before {
  margin-right: 4px;
  transform: rotate(135deg);
}

@media (max-width: 900px) {
  .mosaic {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .tile:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.75rem;
  z-index: 120;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.95rem;
  box-shadow: 0 18px 36px -14px rgba(3, 27, 59, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 14px);
  transition: opacity 0.3s ease, transform 0.35s var(--ease), visibility 0.3s;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

@media (max-width: 1000px) {
  .page-hero-grid {
    gap: 3.5rem;
  }
}

@media (max-width: 900px) {
  .page-hero {
    padding: 3rem 0 5rem;
  }

  .page-hero-grid {
    grid-template-columns: 1fr;
  }

  .page-hero .hero-visual {
    justify-self: center;
  }

  .hero-photo img {
    max-height: min(420px, 60svh);
  }

  .how,
  .contact-card {
    padding: 2rem;
  }

  .programmes--compact {
    grid-template-columns: 1fr;
  }

  .lb-stage {
    padding: 4.5rem 1rem 6rem;
  }

  .lb-prev,
  .lb-next {
    top: auto;
    bottom: 1.25rem;
    margin-top: 0;
  }

  .lb-prev {
    left: calc(50% - 60px);
  }

  .lb-next {
    right: calc(50% - 60px);
  }
}

@media (max-width: 600px) {
  .page-hero .hero-chip {
    left: 0.5rem;
  }

  .toast {
    bottom: 5.5rem;
    max-width: calc(100% - 2rem);
    text-align: center;
  }
}
