/* =============================================================
   Summit 2026 — the page's own styles (template-parts/page-summit.php).
   Scoped to .mwfe-summit; widths and type in rem (the design system
   scales the root above 1920px). Loads after custom-css/mwf.css, which
   stays frozen. Behaviour: js/summit.js — it adds .summit-js to the
   page when it animates; without it there is no curtain and every line
   is drawn.
   ============================================================= */

/* ------------------------------------------------------- hero */
/* the theme line, at the size the 2025 page gave it inline */
.mwfe-summit .mwfe-hero .mwfe-sub { font-size: clamp(1.3rem, 2.6vw, 2rem); }

/* ------------------------------------------- 01 · the theme */
.mwfe-summit .summit-theme { padding-bottom: 0; }
.mwfe-summit .summit-theme .mwfe-prose { max-width: 76ch; }

/* the breath and the cry: full bleed, under the text */
.mwfe-summit .summit-pulse {
	width: 100vw;
	height: clamp(4.5rem, 9vw, 8rem);
	margin: clamp(2.5rem, 7vh, 4.5rem) calc(50% - 50vw) 0;
}
.mwfe-summit .summit-pulse svg { display: block; width: 100%; height: 100%; overflow: visible; }

/* ---------------------------------------- 02 · the programme */
.mwfe-summit .summit-programme {
	padding: clamp(3.5rem, 10vh, 6rem) 0 clamp(4rem, 11vh, 7rem);
}

/* the proscenium: an arch with the day in it, a curtain in front */
.mwfe-summit .summit-proscenium {
	--arch: clamp(7rem, 20vw, 12.5rem);
	position: relative;
	width: min(100%, 58rem);
	margin: 0 auto;
	padding: calc(var(--arch) * .78) clamp(1.25rem, 5vw, 4rem) clamp(2.4rem, 6vh, 3.6rem);
	text-align: center;
	border: 1px solid rgba(205, 173, 89, .6);
	border-bottom: 0;
	border-radius: 50% 50% 0 0 / var(--arch) var(--arch) 0 0;
	overflow: hidden;
	isolation: isolate;
	background:
		radial-gradient(60% 70% at 50% 0%, rgba(205, 173, 89, .2), rgba(205, 173, 89, 0) 70%),
		linear-gradient(to bottom, rgba(var(--mwfe-ink-rgb), .15), rgba(var(--mwfe-ink-rgb), .7));
}
/* the inner hairline of the frame */
.mwfe-summit .summit-proscenium::before {
	content: "";
	position: absolute;
	inset: .6rem .6rem 0;
	border: 1px solid rgba(205, 173, 89, .22);
	border-bottom: 0;
	border-radius: 50% 50% 0 0 / calc(var(--arch) - .6rem) calc(var(--arch) - .6rem) 0 0;
	pointer-events: none;
	z-index: 3;
}
.mwfe-summit .summit-proscenium-inner { position: relative; z-index: 1; }
.mwfe-summit .summit-proscenium .mwfe-kicker { justify-content: center; margin-bottom: 1rem; }
.mwfe-summit .summit-proscenium .mwfe-kicker::before { display: none; }
.mwfe-summit .summit-proscenium .mwfe-h2 { margin: 0 auto .3rem; }

.mwfe-summit .summit-hours {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(.8rem, 2.4vw, 1.6rem);
	margin: .4rem 0 .9rem;
	font-family: var(--mwfe-serif);
	font-weight: 500;
	font-size: clamp(2.1rem, 6vw, 4.6rem);
	line-height: 1;
	color: var(--mwfe-gold-light);
	font-variant-numeric: lining-nums;
}
.mwfe-summit .summit-hours i {
	width: clamp(2rem, 9vw, 8rem);
	height: 1px;
	background: linear-gradient(90deg, rgba(205, 173, 89, .2), var(--mwfe-brass), rgba(205, 173, 89, .2));
	position: relative;
}
.mwfe-summit .summit-hours i::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: .5rem;
	height: .5rem;
	border: 1px solid var(--mwfe-brass);
	background: var(--mwfe-bg-deep);
	transform: translate(-50%, -50%) rotate(45deg);
}
/* tracked capitals carry their tracking after the last letter too: the same
   amount in front keeps each centred label on the axis */
.mwfe-summit .summit-where {
	margin: 0;
	padding-left: .22em;
	font-family: var(--mwfe-sans);
	font-size: .76rem;
	font-weight: 600;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--mwfe-cream-dim);
	line-height: 1.7;
}

/* the curtain: velvet in the festival's wine, gold piping and fringe.
   Only when js/summit.js runs (it draws it open with the scroll). */
.mwfe-summit .summit-curtain { display: none; }
.mwfe-summit.summit-js .summit-curtain {
	display: block;
	position: absolute;
	top: 0;
	bottom: 0;
	width: 50.5%;
	z-index: 2;
	pointer-events: none;
	background:
		linear-gradient(to bottom, rgba(0, 0, 0, .45) 0, rgba(0, 0, 0, 0) 24%, rgba(0, 0, 0, 0) 76%, rgba(0, 0, 0, .5) 100%),
		repeating-linear-gradient(90deg, #35121a 0, #5a1a22 .85rem, #8d2e37 1.45rem, #6b1f28 2.05rem, #35121a 2.9rem);
}
.mwfe-summit.summit-js .summit-curtain--l { left: 0; transform-origin: 0 50%; box-shadow: inset -1.4rem 0 1.4rem -1.1rem rgba(0, 0, 0, .7); }
.mwfe-summit.summit-js .summit-curtain--r { right: 0; transform-origin: 100% 50%; box-shadow: inset 1.4rem 0 1.4rem -1.1rem rgba(0, 0, 0, .7); }
.mwfe-summit .summit-curtain::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 2px;
	background: linear-gradient(to bottom, #8c6d1f, #cdad59 40%, #8c6d1f);
	opacity: .85;
}
.mwfe-summit .summit-curtain--l::before { right: 0; }
.mwfe-summit .summit-curtain--r::before { left: 0; }
.mwfe-summit .summit-curtain::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: .7rem;
	background: repeating-linear-gradient(90deg, rgba(205, 173, 89, .9) 0 .13rem, rgba(205, 173, 89, 0) .13rem .42rem);
	border-top: 2px solid rgba(205, 173, 89, .85);
}

/* the running order */
.mwfe-summit .summit-run {
	list-style: none;
	margin: 0 auto;
	padding: 0;
	width: min(100%, 62rem);
	text-align: center;
}
/* the stage floor under the arch, lit from the front */
.mwfe-summit .summit-run::before {
	content: "";
	display: block;
	height: 1px;
	background: linear-gradient(90deg, rgba(205, 173, 89, 0), var(--mwfe-brass) 14%, var(--mwfe-gold-light) 50%, var(--mwfe-brass) 86%, rgba(205, 173, 89, 0));
	box-shadow: 0 0 1.6rem .25rem rgba(205, 173, 89, .22);
}
/* the curtain's last stitch: a diamond at the end of the morning */
.mwfe-summit .summit-run::after {
	content: "";
	display: block;
	width: .6rem;
	height: .6rem;
	margin: 2.4rem auto 0;
	border: 1px solid var(--mwfe-brass);
	transform: rotate(45deg);
}
.mwfe-summit .summit-act { position: relative; margin: 0; padding: 0; }
.mwfe-summit .summit-tick {
	display: block;
	width: 1px;
	height: clamp(3.2rem, 9vh, 5.5rem);
	margin: 0 auto 1.6rem;
	background: linear-gradient(to bottom, var(--mwfe-brass), rgba(205, 173, 89, .2));
	transform-origin: 50% 0;
}
/* the first tick hangs from the stage floor; the others leave room after the act above */
.mwfe-summit .summit-act + .summit-act .summit-tick { margin-top: 2rem; }
.mwfe-summit .summit-act-num {
	display: block;
	margin: 0 0 1rem;
	font-family: var(--mwfe-serif);
	font-weight: 500;
	font-size: clamp(3rem, 6.5vw, 5.2rem);
	line-height: 1;
	letter-spacing: .04em;
	color: transparent;
	-webkit-text-stroke: 1px rgba(205, 173, 89, .75);
}
.mwfe-summit .summit-act-label {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin: 0 0 1.5rem;
	font-family: var(--mwfe-sans);
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .32em;
	text-transform: uppercase;
	color: var(--mwfe-brass);
}
.mwfe-summit .summit-act-label::before,
.mwfe-summit .summit-act-label::after {
	content: "";
	width: 2.4rem;
	height: 1px;
	background: var(--mwfe-brass);
	opacity: .7;
}
/* the tracking after the last letter, taken back so the label sits on the axis */
.mwfe-summit .summit-act-label::after { margin-left: -.32em; }

.mwfe-summit .summit-talk {
	max-width: 34ch;
	margin: 0 auto;
	font-family: var(--mwfe-serif);
	font-weight: 500;
	font-size: clamp(1.55rem, 3vw, 2.5rem);
	line-height: 1.16;
	color: var(--mwfe-gold-light);
	text-wrap: balance;
}
.mwfe-summit .summit-talk em {
	display: block;
	font-style: italic;
	font-weight: 400;
	color: var(--mwfe-brass);
}
.mwfe-summit .summit-talk-tr {
	max-width: 52ch;
	margin: 1.1rem auto 0;
	font-family: var(--mwfe-serif);
	font-style: italic;
	font-size: clamp(1.02rem, 1.4vw, 1.2rem);
	line-height: 1.5;
	color: var(--mwfe-cream-dim);
	text-wrap: balance;
}
.mwfe-summit .summit-speaker {
	margin: 1.5rem 0 0;
	padding-left: .26em;
	font-family: var(--mwfe-sans);
	font-size: .84rem;
	font-weight: 700;
	letter-spacing: .26em;
	text-transform: uppercase;
	color: var(--mwfe-cream);
}
.mwfe-summit .summit-aff {
	max-width: 46ch;
	margin: .45rem auto 0;
	font-family: var(--mwfe-sans);
	font-size: .86rem;
	line-height: 1.55;
	color: var(--mwfe-cream-dim);
	text-wrap: balance;
}

/* the introduction: two hosts, one on each side of the axis */
.mwfe-summit .summit-hosts {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: start;
	gap: clamp(1rem, 3vw, 2.5rem);
	max-width: 52rem;
	margin: 0 auto;
}
.mwfe-summit .summit-host-name {
	margin: 0;
	font-family: var(--mwfe-serif);
	font-weight: 500;
	font-size: clamp(1.6rem, 2.8vw, 2.3rem);
	line-height: 1.1;
	color: var(--mwfe-gold-light);
}
.mwfe-summit .summit-host-role {
	max-width: 30ch;
	margin: .6rem auto 0;
	font-family: var(--mwfe-sans);
	font-size: .76rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	line-height: 1.6;
	color: var(--mwfe-cream-dim);
	text-wrap: balance;
}
.mwfe-summit .summit-amp {
	font-family: var(--mwfe-serif);
	font-style: italic;
	font-size: clamp(2.4rem, 4.6vw, 3.6rem);
	line-height: .8;
	color: var(--mwfe-brass);
}

/* the closing talk, framed */
.mwfe-summit .summit-closing-card {
	position: relative;
	max-width: 56rem;
	margin: 0 auto;
	padding: clamp(2rem, 5vw, 3.4rem) clamp(1.25rem, 5vw, 4rem);
	border: 1px solid rgba(205, 173, 89, .55);
	border-radius: 1.6rem;
	background: rgba(var(--mwfe-ink-rgb), .55);
	box-shadow: 0 2.2rem 4.4rem -2rem rgba(0, 0, 0, .7);
}
.mwfe-summit .summit-closing-card::before {
	content: "";
	position: absolute;
	inset: .5rem;
	border: 1px solid rgba(205, 173, 89, .2);
	border-radius: 1.2rem;
	pointer-events: none;
}

/* --------------------------------------- 03 · the universities */
.mwfe-summit .summit-atlas {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: clamp(2.5rem, 6vw, 6rem);
	padding: clamp(3.5rem, 9vh, 5.5rem) 0;
	border-top: 1px solid rgba(205, 173, 89, .16);
}
.mwfe-summit .summit-atlas > * { min-width: 0; }
.mwfe-summit .summit-atlas-lead {
	max-width: 46ch;
	margin: 1.2rem 0 2rem;
	font-size: clamp(1.05rem, 1.4vw, 1.25rem);
	line-height: 1.6;
	color: var(--mwfe-cream-dim);
}
.mwfe-summit .summit-atlas-list { list-style: none; margin: 0; padding: 0; max-width: 34rem; }
.mwfe-summit .summit-atlas-list li {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: .3rem;
	padding: .95rem 0 .95rem 1.5rem;
	border-top: 1px solid rgba(205, 173, 89, .2);
}
.mwfe-summit .summit-atlas-list li:last-child { border-bottom: 1px solid rgba(205, 173, 89, .2); }
.mwfe-summit .summit-atlas-list li::before {
	content: "";
	position: absolute;
	left: .1rem;
	top: 1.45rem;
	width: .45rem;
	height: .45rem;
	border-radius: 50%;
	background: var(--mwfe-brass);
	transition: box-shadow .3s, background-color .3s;
}
.mwfe-summit .summit-atlas-list li[data-node="ives"]::before { background: transparent; border: 1px dashed var(--mwfe-brass); }
.mwfe-summit .summit-atlas-list b {
	font-family: var(--mwfe-serif);
	font-weight: 500;
	font-size: 1.32rem;
	line-height: 1.2;
	color: var(--mwfe-gold-light);
	transition: color .3s;
}
.mwfe-summit .summit-atlas-list span {
	font-family: var(--mwfe-sans);
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--mwfe-brass);
}
.mwfe-summit .summit-atlas-list li.is-hot::before { background: var(--mwfe-gold-light); box-shadow: 0 0 0 .35rem rgba(205, 173, 89, .2); }
.mwfe-summit .summit-atlas-list li.is-hot b { color: #fff; }

/* the map: dots and lines in the SVG, labels in HTML on top */
.mwfe-summit .summit-atlas-map { margin: 0; justify-self: center; width: min(100%, 30rem); }
.mwfe-summit .summit-map { position: relative; aspect-ratio: 460 / 645; } /* = the SVG's viewBox ($MAP_W / $MAP_H) */
.mwfe-summit .summit-map svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: hidden; }
.mwfe-summit .summit-rings circle {
	fill: none;
	stroke: var(--mwfe-brass);
	stroke-width: 1;
	opacity: calc(.4 - var(--i) * .036);
}
.mwfe-summit .summit-link {
	fill: none;
	stroke: var(--mwfe-brass);
	stroke-width: 1.2;
	stroke-opacity: .75;
	stroke-linecap: round;
	transition: stroke-opacity .3s, stroke .3s;
}
.mwfe-summit .summit-link--ives { stroke-dasharray: .018 .014; stroke-opacity: .55; }
.mwfe-summit .summit-node-dot { fill: var(--mwfe-gold-light); }
.mwfe-summit .summit-node-halo {
	fill: rgba(205, 173, 89, .12);
	stroke: var(--mwfe-brass);
	stroke-width: 1;
	stroke-opacity: .6;
	transform-box: fill-box;
	transform-origin: center;
	transition: transform .35s ease, fill .35s;
}
.mwfe-summit .summit-node--stage .summit-node-halo { fill: rgba(205, 173, 89, .18); stroke-opacity: .9; }
.mwfe-summit .summit-node-star { fill: var(--mwfe-gold-light); }
.mwfe-summit .summit-node.is-hot .summit-node-halo { transform: scale(1.55); fill: rgba(205, 173, 89, .26); }
.mwfe-summit .summit-link.is-hot { stroke: var(--mwfe-gold-light); stroke-opacity: 1; }

.mwfe-summit .summit-label {
	position: absolute;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: .1rem;
	line-height: 1.2;
	white-space: nowrap;
	text-shadow: 0 1px 2px rgba(var(--mwfe-ink-rgb), .9);
}
.mwfe-summit .summit-label--r { transform: translate(1.1rem, -50%); }
.mwfe-summit .summit-label--b {
	align-items: center;
	text-align: center;
	white-space: normal;
	width: max-content;
	max-width: 11.5rem;
	transform: translate(-50%, .95rem);
}
.mwfe-summit .summit-label--stage { transform: translate(1.5rem, -50%); }
/* under the dashed line, at the left edge where nothing else is drawn */
.mwfe-summit .summit-label--ives { transform: translate(.15rem, .7rem); }
.mwfe-summit .summit-label b {
	font-family: var(--mwfe-sans);
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--mwfe-cream);
	transition: color .3s;
}
.mwfe-summit .summit-label span {
	font-family: var(--mwfe-serif);
	font-style: italic;
	font-size: 1rem;
	color: var(--mwfe-brass);
}
.mwfe-summit .summit-label--stage b { font-size: .76rem; color: var(--mwfe-gold-light); }
.mwfe-summit .summit-label.is-hot b { color: #fff; }

/* the rings breathe outwards, slowly — only when the page animates */
@keyframes summit-ripple {
	0%, 100% { stroke-opacity: .3; }
	50% { stroke-opacity: 1; }
}
.mwfe-summit.summit-js .summit-rings circle {
	animation: summit-ripple 5s ease-in-out infinite;
	animation-delay: calc(var(--i) * .35s);
}

/* ------------------------------------------- 04 · the theatre */
.mwfe-summit .summit-venue {
	padding: clamp(3.5rem, 9vh, 5.5rem) 0 clamp(4rem, 10vh, 6rem);
	border-top: 1px solid rgba(205, 173, 89, .16);
}
/* the façade is right of centre in the square photograph */
.mwfe-summit .summit-venue .mwfe-fig-frame img { object-position: 66% 50%; }

/* ------------------------------------------------- responsive */
@media (max-width: 1100px) {
	.mwfe-summit .summit-atlas { grid-template-columns: 1fr; }
	.mwfe-summit .summit-atlas-text { max-width: 40rem; }
}
@media (max-width: 700px) {
	/* the scroll cue reaches ~5.7rem up and the design system leaves the lead
	   4.5rem below it on phones, so "SCROLL" sat on the lead's last line (the
	   gala page's fix, css/gala.css) */
	.mwfe-summit .mwfe-hero-inner { padding-bottom: 6.5rem; }
	.mwfe-summit .summit-hosts { grid-template-columns: 1fr; gap: .9rem; }
	.mwfe-summit .summit-amp { line-height: 1; }
	.mwfe-summit .summit-act-label::before,
	.mwfe-summit .summit-act-label::after { width: 1.6rem; }
	/* on a phone the map keeps the cities; the names are in the list above it */
	.mwfe-summit .summit-label[data-node]:not([data-node="ives"]) span { display: none; }
	.mwfe-summit .summit-label--ives { transform: translate(.1rem, .4rem); }
	.mwfe-summit .summit-label span { font-size: .92rem; }
	.mwfe-summit .summit-label b { font-size: .62rem; letter-spacing: .2em; }
}
@media (prefers-reduced-motion: reduce) {
	.mwfe-summit .summit-rings circle { animation: none; }
}
