/* Glory Rays: light streams from the top of the page and everything below stands in it. */
:root { --te-radius: 0; --ry-strong: color-mix(in srgb, var(--te-accent) 48%, transparent); --ry-soft: color-mix(in srgb, var(--te-accent) 28%, transparent); }

/* The signature: tapered rays fanning down the whole document from top centre. */
.te-site { position: relative; isolation: isolate; }
.te-site::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; transform-origin: 50% 0;
  background:
    radial-gradient(60vmax 36vh at 50% 0, color-mix(in srgb, var(--te-accent) 30%, #fff) 0, transparent 72%),
    conic-gradient(from 90deg at 50% -6vh,
      transparent 3deg, var(--ry-soft) 7deg, var(--ry-soft) 10deg, transparent 15deg,
      transparent 24deg, var(--ry-strong) 30deg, var(--ry-strong) 34deg, transparent 41deg,
      transparent 50deg, var(--ry-soft) 55deg, var(--ry-soft) 58deg, transparent 63deg,
      transparent 69deg, var(--ry-strong) 75deg, var(--ry-strong) 80deg, transparent 87deg,
      transparent 93deg, var(--ry-strong) 100deg, var(--ry-strong) 105deg, transparent 111deg,
      transparent 117deg, var(--ry-soft) 122deg, var(--ry-soft) 125deg, transparent 130deg,
      transparent 139deg, var(--ry-strong) 146deg, var(--ry-strong) 150deg, transparent 156deg,
      transparent 165deg, var(--ry-soft) 170deg, var(--ry-soft) 173deg, transparent 177deg);
  -webkit-mask: linear-gradient(#000 0, rgba(0,0,0,.72) 100vh, rgba(0,0,0,.3) 100%);
  mask: linear-gradient(#000 0, rgba(0,0,0,.72) 100vh, rgba(0,0,0,.3) 100%);
  animation: ry-dawn 2.8s cubic-bezier(.2, .7, .2, 1) backwards;
}
@keyframes ry-dawn { from { opacity: 0; transform: scaleY(.55); } }
@media (prefers-reduced-motion: reduce) { .te-site::before { animation: none; } }

/* Chrome */
.te-nav-wrap { padding: 0; position: relative; }
.te-nav { max-width: 76rem; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.te-nav-brand { font-weight: 600; font-size: 1rem; letter-spacing: -.01em; }
.te-nav-link { border-radius: 999px; }
.te-nav-link.is-active { background: color-mix(in srgb, var(--te-accent) 34%, transparent); }
.te-nav-sheet { background: color-mix(in srgb, var(--te-surface) 92%, transparent); }
.te-btn, .te-btn-outline { border-radius: 999px; font-weight: 600; }
.te-btn { background: var(--te-primary); color: var(--te-on-primary); box-shadow: 0 0 0 6px color-mix(in srgb, var(--te-accent) 22%, transparent); }
.te-btn-accent { background: var(--te-accent); color: var(--te-on-accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--te-accent) 26%, transparent), 0 0 44px color-mix(in srgb, var(--te-accent) 60%, transparent); }
.te-btn-soft { background: color-mix(in srgb, var(--te-surface) 70%, transparent); color: var(--te-primary-text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--te-accent) 60%, transparent); }
.te-btn-light { background: #fff; color: #14141c; box-shadow: none; }
.te-btn.te-btn-outline { background: transparent; color: var(--te-primary-text); box-shadow: none; }
.te-chip { border-radius: 999px; background: color-mix(in srgb, var(--te-accent) 28%, var(--te-surface)); color: var(--te-primary-text); }
.te-field, .te-choice { border-radius: .5rem; }

/* Hero: the name in the light, the photo in a halo beneath it */
.ry-hero { overflow-x: clip; display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(2.25rem, 7vh, 4.5rem) 1.25rem clamp(2.5rem, 7vw, 4.5rem); }
.ry-title { max-width: 62rem; margin: 0; font-size: calc(var(--fit, 1) * clamp(4.25rem, 16vw, 9rem)); line-height: 1.04; font-weight: 300; letter-spacing: -.035em; color: var(--te-primary-text); overflow-wrap: break-word; text-wrap: balance; }
.ry-sub { margin-top: 1.125rem; font-size: clamp(1.0625rem, 2.6vw, 1.375rem); font-weight: 500; color: var(--te-primary-text); }
.ry-halo { position: relative; width: min(86vw, 30rem, 54svh); margin-top: clamp(1.25rem, 4vh, 2.5rem); isolation: isolate; }
.ry-halo::before { content: ""; position: absolute; z-index: -1; inset: -14% -22%; border-radius: 50%; background: radial-gradient(closest-side, #fff 0 58%, color-mix(in srgb, var(--te-accent) 34%, #fff) 76%, transparent 100%); }
.ry-photo { aspect-ratio: 5 / 6; -webkit-mask: radial-gradient(closest-side, #000 72%, transparent 100%); mask: radial-gradient(closest-side, #000 72%, transparent 100%); }
.ry-photo > * { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.ry-when { margin-top: 1rem; font-weight: 700; font-size: 1.125rem; color: var(--te-primary-text); }
.ry-venue { margin-top: .125rem; color: var(--te-muted); font-size: 1rem; }
.ry-count { width: min(100%, 26rem); margin: 1.5rem 0 1.75rem; }
.te-count { gap: 0; }
.te-count-cell { background: none !important; box-shadow: none !important; border-radius: 0; padding-block: .25rem; }
.te-count-cell + .te-count-cell { border-left: 1px solid color-mix(in srgb, var(--te-accent) 70%, transparent); }
.te-count-num { font-weight: 300; font-size: clamp(2.25rem, 9vw, 3.25rem); }
.te-count-label { color: var(--te-primary-text); }

/* Headings stay airy and centred on the axis of light */
.te-section-head { max-width: 44rem; }
.te-h-section, .te-h-page { font-weight: 300; font-size: clamp(2.5rem, 9vw, 4.75rem); line-height: 1.08; letter-spacing: -.03em; }
.te-h-card { font-weight: 600; letter-spacing: -.01em; }

/* Surfaces are lit panes: no box, just light pooling on the top edge */
.te-card, .te-tile { background: color-mix(in srgb, var(--te-surface) 76%, transparent); border: 0; border-top: 2px solid var(--te-accent); border-radius: 0; box-shadow: 0 -22px 44px -30px var(--te-accent); }
.te-tile-accent { background: color-mix(in srgb, var(--te-surface) 76%, transparent); }
a.te-card:hover { transform: none; box-shadow: 0 -28px 56px -26px var(--te-accent); }
.te-icon-tile { border-radius: 50%; background: var(--te-accent); color: var(--te-on-accent); }
.te-icon-tile-accent { background: var(--te-accent); color: var(--te-on-accent); }
.te-eyebrow { color: var(--te-primary-text); font-weight: 600; }

/* Facts: three open columns under the light */
.te-facts-grid { max-width: 68rem !important; gap: 0 !important; }
.te-facts-grid > * { grid-column: auto !important; align-items: center; text-align: center; background: none; border: 0; box-shadow: none; }
.te-facts-grid > * + * { border-top: 1px solid color-mix(in srgb, var(--te-accent) 60%, transparent); }
.te-facts-grid .te-icon-tile { margin-inline: auto; }
.te-facts-grid a:not(.te-card) { min-height: 2.75rem; }
.te-facts-grid .te-i-sm { display: none; }
.te-facts-grid a.te-card:hover { box-shadow: none; }
@media (min-width: 800px) {
  .te-facts-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .te-facts-grid > * + * { border-top: 0; border-left: 1px solid color-mix(in srgb, var(--te-accent) 60%, transparent); }
}

/* Explore: each link is a beam, narrow at the top and spreading as it falls */
.te-explore > div { max-width: 72rem !important; }
.te-explore .grid { gap: .25rem !important; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)) !important; }
.te-explore a.te-card { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: .875rem; min-height: 17rem; padding: 1.5rem 1.5rem 1.75rem; text-align: center; border: 0; box-shadow: none; background: linear-gradient(180deg, color-mix(in srgb, var(--te-accent) 72%, transparent), color-mix(in srgb, var(--te-accent) 12%, transparent)); clip-path: polygon(26% 0, 74% 0, 100% 100%, 0 100%); }
.te-explore a.te-card:hover { box-shadow: none; background: linear-gradient(180deg, var(--te-accent), color-mix(in srgb, var(--te-accent) 26%, transparent)); }
.te-explore a.te-card > svg { display: none; }
.te-explore a.te-card > .te-icon-tile { margin-bottom: auto; background: var(--te-surface); color: var(--te-primary-text); }
.te-explore a.te-card > span:not(.te-icon-tile) { flex: 0 0 auto; max-width: 13rem; }
.te-explore a.te-card .te-muted { color: var(--te-ink); }

/* Story */
.te-story > .te-card { max-width: 42rem !important; text-align: center; background: none; border: 0; box-shadow: none; padding-inline: 0; }
.te-story .te-prose { font-size: 1.1875rem; line-height: 1.8; }

/* Programme: one shaft of light down the middle, moments set either side of it */
.te-schedule > div { max-width: 62rem !important; }
.te-timeline { position: relative; background: none; border: 0; box-shadow: none; padding: 0 !important; }
.te-timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: .375rem; width: .625rem; margin-left: -.3125rem; background: linear-gradient(180deg, var(--te-accent), color-mix(in srgb, var(--te-accent) 12%, transparent)); clip-path: polygon(0 0, 100% 0, 58% 100%, 42% 100%); }
.te-timeline li { grid-template-columns: 1fr !important; padding: 0 0 2.25rem 2rem !important; }
.te-timeline li:last-child { padding-bottom: 0 !important; }
.te-timeline li > div:first-child { display: none; }
.te-timeline .te-chip { background: none; padding: 0; font-size: 1rem; font-weight: 700; color: var(--te-primary-text); }
.te-timeline .te-h-card { font-size: clamp(1.5rem, 4vw, 2.125rem); font-weight: 300; letter-spacing: -.02em; line-height: 1.16; }
@media (min-width: 800px) {
  .te-timeline::before { left: 50%; }
  .te-timeline li { width: 50%; padding-left: 0 !important; padding-right: 3rem !important; text-align: right; }
  .te-timeline li:nth-child(even) { margin-left: 50%; padding-right: 0 !important; padding-left: 3rem !important; text-align: left; }
}

#details > section:not(#venue) > div { display: flex; flex-wrap: wrap; justify-content: center; }
#details > section:not(#venue) > div > * { flex: 1 1 18rem; max-width: 24rem; }

/* Gallery: photographs lit from above */
.te-gallery-grid { max-width: 68rem !important; gap: .875rem !important; }
.te-gallery-item { border-radius: .25rem !important; box-shadow: 0 0 0 1px color-mix(in srgb, var(--te-accent) 70%, transparent), 0 0 48px -6px var(--te-accent); }

/* Inner pages and close */
.te-page-head { background: none; }
.te-closing-panel { position: relative; overflow: hidden; border: 0; box-shadow: none; max-width: 72rem !important; background: var(--te-accent); color: var(--te-on-accent); isolation: isolate; }
.te-closing-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-conic-gradient(from 90deg at 50% 0, color-mix(in srgb, #fff 34%, transparent) 0 11deg, transparent 11deg 24deg); }
.te-closing-panel * { color: inherit !important; }
.te-closing-panel .te-btn { background: var(--te-primary); color: var(--te-on-primary) !important; box-shadow: none; }
footer.te-bg-primary { border-radius: 0; }
footer nav a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.te-nav-sheet .te-nav-link, .te-nav .te-btn-sm { min-height: 2.75rem; }
