/* Cradle Mobile: felt shapes on threads above the baby, and everything below hangs quietly from the same thread. */
:root { --te-radius: 1.75rem; --mb-thread: color-mix(in srgb, var(--te-ink) 32%, transparent); --mb-stitch: color-mix(in srgb, var(--te-primary) 42%, transparent); }

/* Chrome */
.te-nav-wrap { padding: 0; position: relative; }
.te-nav { max-width: none; border-radius: 0; box-shadow: none; background: var(--te-menu-bg, transparent); backdrop-filter: none; -webkit-backdrop-filter: none; }
.te-nav-brand { font-weight: 400; }
.te-nav-link { min-height: 2.75rem; border-radius: 999px; }
.te-nav-link.is-active { background: var(--te-surface); }
.te-nav-sheet { background: var(--te-surface); border-radius: 0 0 1.75rem 1.75rem; }
.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); border: 1.5px dashed var(--mb-stitch); }
.te-chip { border-radius: 999px; }
.te-field, .te-choice { border-radius: 1.25rem; }

/* Hero: the mobile */
.mb-hero { --u: clamp(.9rem, 1.3vw + .4rem, 1.35rem); margin-top: -3.5rem; overflow-x: clip; }
.mb-defs { position: absolute; }
.mb-rig { position: relative; height: calc(24.5 * var(--u)); }
.mb-hang { --sw: calc(var(--w) * var(--u)); position: absolute; top: 0; left: var(--x); width: var(--sw); margin-left: calc(var(--sw) / -2); transform-origin: 50% 0; animation: mb-sway var(--dur) ease-in-out var(--delay) infinite alternate; }
@keyframes mb-sway { from { transform: rotate(calc(var(--amp) * -1)); } to { transform: rotate(var(--amp)); } }
.mb-thread { display: block; width: 1px; height: calc(var(--len) * var(--u)); margin-inline: auto; background: var(--mb-thread); }
.mb-felt { display: block; width: 100%; height: auto; overflow: visible; }
.mb-a { fill: var(--te-surface); }
.mb-b { fill: color-mix(in srgb, var(--te-accent) 72%, var(--te-surface)); }
.mb-c { fill: color-mix(in srgb, var(--te-primary) 62%, var(--te-surface)); }
.mb-round { stroke: color-mix(in srgb, var(--te-accent) 72%, var(--te-surface)); stroke-width: 8; stroke-linejoin: round; }
.mb-eye { fill: var(--te-ink); }
.mb-stitch { fill: none; stroke: color-mix(in srgb, var(--te-ink) 34%, transparent); stroke-width: 1.6; stroke-dasharray: 3.5 3.5; stroke-linecap: round; }
.mb-centre { --len: 6; --w: 13; left: 50%; z-index: 1; }
.mb-photo { width: var(--sw); aspect-ratio: 1; overflow: hidden; border-radius: 50%; border: .5rem solid var(--te-surface); outline: 1.5px dashed var(--mb-stitch); outline-offset: -.3125rem; }
.mb-photo > * { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
@media (prefers-reduced-motion: reduce) { .mb-hang { animation: none; } }

.mb-copy { max-width: 42rem; margin-inline: auto; padding: 1.25rem 1.25rem 3rem; text-align: center; }
.mb-label { font-size: 1.0625rem; color: var(--te-muted); }
.mb-title { margin-top: .5rem; font-size: calc(var(--fit, 1) * clamp(3rem, 12vw, 6.5rem)); font-weight: 300; line-height: 1.04; letter-spacing: .01em; color: var(--te-primary-text); overflow-wrap: break-word; }
.mb-sub { margin-top: .875rem; font-size: 1.125rem; color: var(--te-muted); }
.mb-copy .te-count { margin-top: 2.25rem; }
.mb-cta { margin-top: 2rem; }

/* 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(1.75rem, 7vw, 2.75rem); font-weight: 300; }

/* Felt: soft surfaces with an inset running stitch */
.te-tile, .te-card:not(.te-timeline) { background: var(--te-surface); border: 0; border-radius: 1.75rem; box-shadow: none; outline: 1.5px dashed var(--mb-stitch); outline-offset: -.4375rem; }
.te-tile-accent { background: var(--te-tint-accent); }
a.te-card:hover, a.te-tile:hover { box-shadow: none; transform: none; outline-color: var(--te-primary-text); }
.te-icon-tile { border-radius: 50%; }
.te-explore svg.te-accent, .te-story svg.te-i { display: none; }

/* Sections hang from one thread down the middle of the page */
.te-section-head::before, .te-closing-panel::before, .te-page-head::before { content: ""; display: block; width: 1px; height: 3.25rem; margin: 0 auto 1rem; background: var(--mb-thread); }
.te-h-section, .te-h-page { font-weight: 300; font-size: clamp(2.125rem, 7vw, 3.25rem); line-height: 1.1; letter-spacing: .01em; }
.te-h-card { font-weight: 400; font-size: 1.25rem; }
.te-page-head { margin: 0 auto; padding-top: 0; border-radius: 0; background: none; }
.te-section { padding-block: clamp(2.5rem, 7vw, 4.5rem); }

/* Facts and details hang on threads of different lengths */
.te-facts { padding-top: 0 !important; }
.te-facts-grid, #details > section.px-5 > .grid { --gap: 2.25rem; gap: 0 2rem !important; align-items: start; max-width: 62rem !important; }
.te-facts-grid > *, #details > section.px-5 > .grid > * { --m: var(--gap); position: relative; margin-top: var(--m); padding: 1.625rem !important; }
.te-facts-grid > *::before, #details > section.px-5 > .grid > *::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 1px; height: var(--m); background: var(--mb-thread); }

/* Story */
.te-story .te-card { background: none; outline: 0; text-align: center; }
.te-story .te-prose { text-align: left; }

/* Programme: felt beads on one long thread */
.te-schedule > div:not(.te-section-head) { max-width: 56rem !important; }
.te-timeline { padding: 0 !important; background: none; border: 0; box-shadow: none; }
.te-timeline::before { content: ""; position: absolute; top: .5rem; bottom: .5rem; left: .75rem; width: 1px; background: var(--mb-thread); }
.te-timeline > li { grid-template-columns: 1.5rem 1fr !important; }
.te-timeline li > div:first-child { position: relative; z-index: 1; }
.te-timeline li > div:first-child > span:first-child { width: 1.5rem; height: 1.5rem; margin-top: 0; background: var(--te-accent); box-shadow: inset 0 0 0 .1875rem color-mix(in srgb, var(--te-surface) 42%, transparent); }
.te-timeline li:nth-child(even) > div:first-child > span:first-child { background: var(--te-primary); }
.te-timeline li > div:first-child > span:last-child:not(:first-child) { display: none; }
.te-timeline .te-chip { padding: 0; background: none; color: var(--te-accent-text); font-weight: 700; }

/* Gallery: stitched squares on threads, unevenly hung */
.te-gallery-grid { max-width: 62rem !important; padding-top: 2.5rem; gap: 1.5rem 1rem !important; align-items: start; }
.te-gallery-item { --m: 0rem; position: relative; overflow: visible !important; margin-top: var(--m); aspect-ratio: 4/5 !important; padding: .375rem; border-radius: 1.75rem !important; background: var(--te-surface); outline: 1.5px dashed var(--mb-stitch); outline-offset: -.1875rem; }
.te-gallery-item img { border-radius: 1.4rem; object-position: 50% 20%; }
.te-gallery-item::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 1px; height: calc(var(--m) + 2.5rem); background: var(--mb-thread); }
.te-gallery-item:nth-child(even) { --m: 2.5rem; }

/* Closing */
.te-closing-panel { background: none; outline: 0; max-width: 42rem !important; padding-top: 0 !important; }
#venue .te-card { outline-offset: -.5625rem; }

@media (min-width: 640px) {
    .mb-hero { margin-top: -4rem; }
    .te-gallery-item:nth-child(even) { --m: 0rem; }
    .te-gallery-item:nth-child(3n+2) { --m: 3rem; }
    .te-gallery-item:nth-child(3n) { --m: 1.25rem; }
}
@media (min-width: 800px) {
    .te-timeline::before { left: 50%; }
    .te-timeline > li { grid-template-columns: 1fr 4rem 1fr !important; column-gap: 0 !important; }
    .te-timeline li > div:first-child { grid-column: 2; grid-row: 1; }
    .te-timeline li > div:last-child { grid-column: 3; grid-row: 1; }
    .te-timeline li:nth-child(even) > div:last-child { grid-column: 1; text-align: right; }
}
@media (min-width: 1024px) {
    .te-facts-grid, #details > section.px-5 > .grid { --gap: 3rem; }
    .te-facts-grid > :nth-child(3n+2), #details > section.px-5 > .grid > :nth-child(3n+2) { --m: 6rem; }
    .te-facts-grid > :nth-child(3n), #details > section.px-5 > .grid > :nth-child(3n) { --m: 1.75rem; }
}
