/* Tide: swells rise up the hero and the photo floats on the waterline. Waves return between sections. */
:root {
    --te-radius: 1.5rem;
    --td-w: 66rem;
    --td-swell: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath fill-opacity='.42' d='M0 22C240 -8 480 -8 720 22S1200 52 1440 22V46C1200 76 960 76 720 46S240 16 0 46Z'/%3E%3Cpath d='M0 42C240 12 480 12 720 42S1200 72 1440 42V68C1200 98 960 98 720 68S240 38 0 68Z'/%3E%3C/svg%3E");
    --td-crest: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 42C240 6 480 6 720 42S1200 78 1440 42V80H0Z'/%3E%3C/svg%3E");
    --td-ripple: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 8'%3E%3Cpath d='M0 4C8 0 16 0 24 4S40 8 48 4' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E");
    --td-tint: color-mix(in srgb, var(--te-primary) 34%, var(--te-bg));
}

/* Chrome */
.te-nav-wrap { padding: 0; position: relative; }
.te-nav { max-width: 80rem; border-radius: 0; box-shadow: none; background: var(--te-menu-bg, transparent); backdrop-filter: none; -webkit-backdrop-filter: none; }
.te-nav-link { min-height: 2.75rem; border-radius: 999px; }
.te-nav-sheet { background: var(--te-surface); border-radius: 0 0 1.25rem 1.25rem; }
.te-btn, .te-btn-outline { border-radius: 999px; box-shadow: none; }
.te-btn-sm { min-height: 2.75rem; }
.te-btn.te-btn-outline { background: transparent; color: var(--te-primary-text); }
.te-chip { border-radius: 999px; }
.te-field, .te-choice { border-radius: 1rem; }

/* Hero */
.td-hero { --h: clamp(11rem, 30vw, 19rem); position: relative; isolation: isolate; overflow: hidden; }
.td-sky { position: relative; z-index: 2; padding: clamp(1.5rem, 4vw, 3rem) 1.25rem 0; text-align: center; }
.td-label { font-size: 1.0625rem; font-weight: 700; color: var(--te-accent-text); }
.td-title { margin-top: .5rem; font-size: calc(var(--fit, 1) * clamp(3.25rem, 13vw, 8rem)); font-weight: 500; line-height: 1.02; letter-spacing: -.015em; color: var(--te-primary-text); overflow-wrap: break-word; }
.td-sub { max-width: 32rem; margin: .875rem auto 0; font-size: 1.125rem; color: var(--te-muted); }
.td-photo { width: clamp(13rem, 56vw, 22rem); aspect-ratio: 4/5; margin: 1.75rem auto 0; overflow: hidden; border: .5rem solid var(--te-surface); border-radius: 1rem; transform: rotate(-2.5deg); }
.td-photo > * { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }

.td-water { position: relative; height: var(--h); margin-top: calc(var(--h) * -.62); }
.td-wave { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; animation: td-drift var(--dur) linear infinite; }
@keyframes td-drift { to { transform: translateX(-50%); } }
.td-far { --dur: 120s; z-index: 1; fill: color-mix(in srgb, var(--te-primary) 22%, var(--te-bg)); }
.td-mid { --dur: 90s; z-index: 1; fill: color-mix(in srgb, var(--te-primary) 42%, var(--te-bg)); }
.td-near { --dur: 105s; z-index: 3; fill: color-mix(in srgb, var(--te-primary) 70%, var(--te-bg)); }
.td-front { --dur: 75s; z-index: 3; fill: var(--te-primary); }
@media (prefers-reduced-motion: reduce) { .td-wave { animation: none; } }

.td-foot { position: relative; z-index: 4; padding: .75rem 1.25rem clamp(5rem, 11vw, 7rem); background: var(--te-primary); color: var(--te-on-primary); text-align: center; }
.td-foot::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(2.5rem, 6vw, 4.5rem); background: var(--te-bg); -webkit-mask: var(--td-crest) 0 0 / max(56rem, 100%) 100% repeat-x; mask: var(--td-crest) 0 0 / max(56rem, 100%) 100% repeat-x; }
.td-foot .te-count-num, .td-foot .te-count-label, .td-foot .te-count-done { color: inherit; }
.td-foot .te-count-label { opacity: .85; }
.td-cta { margin-top: 1.5rem; }

/* Countdown */
.te-count { gap: 1.75rem; }
.te-count-cell { flex: 0 0 auto; padding: 0; border-radius: 0; background: none !important; box-shadow: none !important; }
.te-count-num { font-size: clamp(2rem, 8vw, 3rem); font-weight: 400; font-style: italic; }

/* Dividers: a double swell between sections */
.te-explore, .te-story, .te-schedule, #details, .te-gallery { position: relative; }
.te-explore::before, .te-story::before, .te-schedule::before, #details::before, .te-gallery::before { content: ""; display: block; width: 100vw; height: clamp(2.75rem, 6vw, 4.5rem); margin: 0 0 clamp(2rem, 5vw, 3.5rem) calc(50% - 50vw); background: var(--td-tint); -webkit-mask: var(--td-swell) 0 0 / max(56rem, 100%) 100% repeat-x; mask: var(--td-swell) 0 0 / max(56rem, 100%) 100% repeat-x; }
.te-explore { padding-top: 2.5rem; }
.te-story { padding-top: 1rem; }
.te-schedule, #details { padding-top: 1rem !important; }
.te-gallery { padding-top: 1rem !important; padding-bottom: clamp(6rem, 12vw, 9rem) !important; }

/* Open water, no boxes */
.te-card, .te-tile { background: none; border: 0; border-radius: 0; box-shadow: none; }
a.te-card:hover, a.te-tile:hover { transform: none; box-shadow: none; }
.te-icon-tile, .te-explore svg.te-i, .te-facts svg.te-i, .te-story svg.te-i { display: none; }
.te-section-head { max-width: var(--td-w); text-align: left; }
.te-schedule > .te-section-head, #details > .te-section-head { max-width: calc(var(--td-w) + 2.5rem); }
.te-h-section, .te-h-page { font-weight: 500; font-size: clamp(2.25rem, 7vw, 3.5rem); line-height: 1.1; }
.te-h-card { font-weight: 500; font-size: 1.25rem; }
.te-page-head { position: relative; margin: 0; padding-bottom: clamp(4.5rem, 9vw, 6.5rem); border-radius: 0; background: var(--te-tint-strong); }
.te-page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(2.5rem, 6vw, 4.5rem); background: var(--te-bg); -webkit-mask: var(--td-crest) 0 0 / max(56rem, 100%) 100% repeat-x; mask: var(--td-crest) 0 0 / max(56rem, 100%) 100% repeat-x; }

/* Facts and details: columns under a small ripple */
.te-facts-grid, .te-explore > div, .te-gallery-grid, #details > section.px-5 > .grid { max-width: var(--td-w) !important; }
.te-facts-grid, #details > section.px-5 > .grid { gap: 2.25rem 3rem !important; }
.te-facts-grid > *, #details > section.px-5 > .grid > * { padding: 0 !important; }
.te-facts-grid > *::before, #details > section.px-5 > .grid > *::before { content: ""; display: block; width: 6rem; height: .5rem; margin-bottom: .875rem; background: var(--te-accent-text); -webkit-mask: var(--td-ripple) 0 0 / 3rem .5rem repeat-x; mask: var(--td-ripple) 0 0 / 3rem .5rem repeat-x; }
.te-facts .te-eyebrow { margin-top: 0 !important; }
#details > section.px-5 .te-h-card { margin-top: 0 !important; }
.te-facts .te-accent { min-height: 2.75rem; }

/* Explore */
.te-explore .grid { gap: 0 3rem !important; }
.te-explore a.te-card { position: relative; min-height: 3.5rem; padding: 1.125rem 0 !important; }
.te-explore a.te-card::after, .te-timeline > li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: .5rem; background: var(--td-tint); -webkit-mask: var(--td-ripple) 0 0 / 3rem .5rem repeat-x; mask: var(--td-ripple) 0 0 / 3rem .5rem repeat-x; }

/* Story */
.te-story .te-card { max-width: 42rem !important; padding: 0 !important; }
.te-story .te-prose { font-family: var(--te-heading); font-size: 1.1875rem; }
.te-story .te-chip { padding: 0; background: none; color: var(--te-accent-text); font-weight: 700; }

/* Programme: a tide table */
.te-schedule > div:not(.te-section-head) { max-width: calc(var(--td-w) + 2.5rem) !important; padding-inline: 1.25rem !important; }
.te-timeline { padding: 0 !important; }
.te-timeline li > div:first-child { display: none; }
.te-timeline > li { display: block !important; padding: 1.25rem 0 !important; }
.te-timeline > li:last-child::after { content: none; }
.te-timeline .te-chip { padding: 0; margin: 0 0 .25rem; background: none; font-family: var(--te-heading); font-size: 1.5rem; font-style: italic; font-weight: 400; color: var(--te-primary-text); }

/* Gallery: buoys riding at different heights */
.te-gallery-grid { gap: 1.25rem 1rem !important; align-items: start; }
.te-gallery-item { aspect-ratio: 3/4 !important; border-radius: 999px !important; }
.te-gallery-item img { object-position: 50% 18%; }
.te-gallery .text-center { margin-top: 3rem; }

/* Venue */
#venue .border-t { border-color: var(--te-line) !important; }

/* Closing: the deep */
.te-closing { position: relative; margin-top: clamp(1rem, 3vw, 2rem); padding: 1rem 1.25rem 3rem !important; background: var(--te-primary); color: var(--te-on-primary); }
.te-closing::before { content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: clamp(3rem, 7vw, 5rem); background: var(--te-primary); -webkit-mask: var(--td-crest) 0 0 / max(56rem, 100%) 100% repeat-x; mask: var(--td-crest) 0 0 / max(56rem, 100%) 100% repeat-x; }
.te-closing-panel { background: none; }
.te-closing-panel * { color: inherit !important; }
.te-closing-panel .te-muted { opacity: .88; }
.te-closing .te-btn { background: var(--te-accent); color: var(--te-on-accent) !important; }

@media (max-width: 639px) {
    .te-gallery-item:nth-child(even) { margin-top: 2rem; }
}
@media (min-width: 640px) {
    .te-timeline li > div:last-child { display: grid; grid-template-columns: 11rem 1fr; column-gap: 1.5rem; align-items: baseline; }
    .te-timeline .te-chip { grid-row: 1 / span 2; margin: 0 !important; }
    .te-gallery-item:nth-child(3n+2) { margin-top: 2.75rem; }
    .te-gallery-item:nth-child(3n) { margin-top: 1rem; }
}
