/* ==========================================================================
   Gala Dinner (template-parts/page-gala.php) — 2026-09-23
   --------------------------------------------------------------------------
   The page is built from the design system (.mwfe in /custom-css/mwf.css:
   hero, marquee, index, the arched section figure, the band). This file adds
   only what the page itself needs, scoped to .mwfe-gala and drawn from the
   system's own tokens, because mwf.css is frozen:

     .gala-block      the three sections after "the evening" (numbered like
                      .mwfe-section, a centred head)
     .gala-teritoria  the umbrella: Teritoria's logo and words, one glass panel
     .gala-chef       an arched portrait with the biography BEHIND it —
                      the base state prints the biography under the portrait
                      (no JavaScript); js/gala.js adds .is-interactive to the
                      section and the biography becomes a panel that rises
                      over the photograph, the arch opening into a card
     .gala-card       the menu and stage panels: glass with a printed menu's
                      inner rule; the "arriving soon" states and the filled
                      menu (courses, chef, wine) are both styled here, so the
                      page needs no CSS work when the menu arrives

   No loading="lazy" anywhere on this page: under Lenis a lazy image inside
   .mwfe is never "near the viewport" and never loads (2026-09-22 lesson).
   ========================================================================== */

/* ------------------------------------------------------------ the blocks */

.mwfe-gala .gala-block {
	position: relative;
	padding: clamp(4.5rem, 12vh, 7.5rem) 0;
	border-top: 1px solid rgba(205, 173, 89, .16);
}

.mwfe-gala .gala-head {
	position: relative;
	max-width: 44rem;
	margin: 0 auto clamp(2.6rem, 6vh, 3.8rem);
	text-align: center;
}

.mwfe-gala .gala-head .mwfe-kicker {
	justify-content: center;
}

.mwfe-gala .gala-head .mwfe-kicker::before {
	display: none;
}

/* ------------------------------------------------------- the umbrella */

.mwfe-gala .gala-teritoria {
	display: grid;
	grid-template-columns: minmax(0, 10.5rem) minmax(0, 1fr);
	gap: clamp(1.6rem, 4vw, 3.4rem);
	align-items: center;
	max-width: 62rem;
	margin: 0 auto;
	padding: clamp(1.7rem, 4vw, 2.8rem) clamp(1.6rem, 4.5vw, 3.4rem);
	border: 1px solid var(--mwfe-line);
	border-radius: 22px;
	background: var(--mwfe-glass);
	backdrop-filter: blur(6px);
	box-shadow: 0 24px 48px -32px rgba(0, 0, 0, .7);
}

.mwfe-gala .gala-teritoria-logo {
	width: 100%;
	height: auto;
}

.mwfe-gala .gala-teritoria p {
	margin: 0;
	font-size: 1.08rem;
	line-height: 1.7;
	color: var(--mwfe-cream-dim);
}

/* ----------------------------------------------------------- the chefs */

.mwfe-gala .gala-hint {
	margin: clamp(3.2rem, 8vh, 4.8rem) 0 clamp(1.8rem, 4vh, 2.4rem);
	font-family: var(--mwfe-sans);
	font-size: .68rem;
	font-weight: 600;
	letter-spacing: .24em;
	text-transform: uppercase;
	text-align: center;
	color: var(--mwfe-brass);
}

.mwfe-gala .gala-chef-grid {
	--gala-gap: clamp(1.6rem, 3vw, 2.8rem);
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: clamp(3.2rem, 7vh, 4.6rem) var(--gala-gap);
	max-width: 76rem;
	margin: 0 auto;
}

.mwfe-gala .gala-chef {
	flex: 0 0 calc((100% - 2 * var(--gala-gap)) / 3);
	min-width: 0;
	text-align: center;
}

/* The frame holds the portrait and, once interactive, the biography over it.
   A size container, so the biography's type follows the card's own width. */
.mwfe-gala .gala-chef-frame {
	position: relative;
	container-type: inline-size;
}

/* The portrait: the design system's arch, written so that it can open.
   50% / 40% on a 4:5 box is the same true semicircle as the system's
   999px, but it interpolates, so the arch can become a card. */
.mwfe-gala .gala-chef-face {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(205, 173, 89, .22);
	border-radius: 50% 50% 22px 22px / 40% 40% 22px 22px;
	overflow: hidden;
	isolation: isolate;
	background: var(--mwfe-plum);
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
	color: inherit;
	font: inherit;
	text-align: inherit;
	cursor: default;
	-webkit-tap-highlight-color: transparent;
	transition: border-radius .6s cubic-bezier(.2, .65, .3, 1), border-color .45s, transform .5s cubic-bezier(.2, .65, .3, 1);
}

.mwfe-gala .gala-chef-face img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: filter .7s ease, transform 1s cubic-bezier(.2, .65, .3, 1);
}

/* the foot of the portrait darkens a little under the "biography" pill */
.mwfe-gala .gala-chef-face::after {
	content: "";
	position: absolute;
	inset: 58% 0 0;
	background: linear-gradient(to top, rgba(var(--mwfe-ink-rgb), .62), rgba(var(--mwfe-ink-rgb), 0));
	pointer-events: none;
}

/* Where a pointer can hover, the five portraits are one black-and-white set
   (one of the photographs is black and white already) and each takes its
   colour under the pointer or when open. Touch screens keep the colour. */
@media (hover: hover) and (pointer: fine) {
	.mwfe-gala .gala-chef-face img {
		filter: grayscale(1) brightness(.94);
	}

	.mwfe-gala .gala-chef:hover .gala-chef-face img,
	.mwfe-gala .gala-chef-face:focus-visible img,
	.mwfe-gala .gala-chef.is-open .gala-chef-face img {
		filter: none;
	}

	.mwfe-gala .gala-chef:hover .gala-chef-face img {
		transform: scale(1.035);
	}
}

.mwfe-gala .gala-chef-more {
	position: absolute;
	left: 50%;
	bottom: 1.15rem;
	z-index: 1;
	display: none;
	align-items: center;
	gap: .75em;
	padding: .5em .55em .5em 1.2em;
	border: 1px solid var(--mwfe-line);
	border-radius: 999px;
	background: rgba(var(--mwfe-ink-rgb), .72);
	backdrop-filter: blur(4px);
	transform: translateX(-50%);
	font-family: var(--mwfe-sans);
	font-size: .64rem;
	font-weight: 700;
	letter-spacing: .22em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--mwfe-gold-light);
	transition: border-color .35s, background .35s, opacity .35s;
}

.mwfe-gala .gala-chef-more i,
.mwfe-gala .gala-chef-close i {
	display: grid;
	place-items: center;
	width: 1.9em;
	height: 1.9em;
	border: 1px solid var(--mwfe-brass);
	border-radius: 50%;
	font-family: var(--mwfe-sans);
	font-size: 1.05em;
	font-style: normal;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0;
	color: var(--mwfe-brass);
	transition: transform .4s cubic-bezier(.2, .65, .3, 1), background .35s, color .35s;
}

.mwfe-gala .gala-chef-name {
	margin: 1.5rem 0 .35rem;
	font-family: var(--mwfe-serif);
	font-size: clamp(1.45rem, 2vw, 1.75rem);
	font-weight: 500;
	line-height: 1.15;
	color: var(--mwfe-gold-light);
	text-wrap: balance;
}

.mwfe-gala .gala-chef-house {
	margin: 0;
	font-family: var(--mwfe-sans);
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .2em;
	line-height: 1.7;
	text-transform: uppercase;
	color: var(--mwfe-brass);
}

.mwfe-gala .gala-chef-house span {
	font-weight: 600;
	color: var(--mwfe-cream-dim);
}

.mwfe-gala .gala-chef-stars {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .45rem;
	margin: .95rem 0 0;
}

.mwfe-gala .gala-star {
	display: inline-flex;
	align-items: center;
	gap: .55em;
	padding: .42em 1em;
	border: 1px solid var(--mwfe-line);
	border-radius: 999px;
	font-family: var(--mwfe-sans);
	font-size: .6rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--mwfe-cream);
}

.mwfe-gala .gala-star::before {
	content: "✦";
	font-size: 1.15em;
	letter-spacing: 0;
	color: var(--mwfe-brass);
}

.mwfe-gala .gala-star--green {
	border-color: rgba(143, 191, 122, .45);
}

.mwfe-gala .gala-star--green::before {
	color: #8fbf7a;
}

/* --- the biography, base state: printed under the portrait (no script) --- */

.mwfe-gala .gala-chef-bio {
	margin: 1.3rem 0 0;
	text-align: left;
}

.mwfe-gala .gala-chef-bio-text {
	font-size: 1.02rem;
	line-height: 1.6;
	color: var(--mwfe-cream-dim);
}

.mwfe-gala .gala-chef-bio-text p {
	margin: 0 0 .8em;
}

.mwfe-gala .gala-chef-bio-text p:last-child {
	margin-bottom: 0;
}

.mwfe-gala .gala-chef-bio-text strong {
	font-weight: 600;
	color: var(--mwfe-gold-light);
}

.mwfe-gala .gala-chef-close {
	display: none;
}

/* Without the script the name belongs under the portrait, not under the
   biography: the frame steps aside so its two children order with the rest. */
.mwfe-gala .gala-chefs:not(.is-interactive) .gala-chef {
	display: flex;
	flex-direction: column;
}

.mwfe-gala .gala-chefs:not(.is-interactive) .gala-chef-frame {
	display: contents;
}

.mwfe-gala .gala-chefs:not(.is-interactive) .gala-chef-bio {
	order: 5;
}

.mwfe-gala .gala-chefs:not(.is-interactive) .gala-hint {
	display: none;
}

.mwfe-gala .gala-chefs:not(.is-interactive) .gala-chef-grid {
	margin-top: clamp(3.2rem, 8vh, 4.8rem);
}

/* --- the biography, interactive: behind the portrait until asked for --- */

.mwfe-gala .gala-chefs.is-interactive .gala-chef-face {
	cursor: pointer;
}

.mwfe-gala .gala-chefs.is-interactive .gala-chef-more {
	display: inline-flex;
}

.mwfe-gala .gala-chefs.is-interactive .gala-chef:hover .gala-chef-face {
	transform: translateY(-6px);
	border-color: rgba(205, 173, 89, .55);
}

.mwfe-gala .gala-chefs.is-interactive .gala-chef:hover .gala-chef-more,
.mwfe-gala .gala-chefs.is-interactive .gala-chef-face:focus-visible .gala-chef-more {
	border-color: var(--mwfe-brass);
	background: rgba(var(--mwfe-ink-rgb), .86);
}

.mwfe-gala .gala-chefs.is-interactive .gala-chef:hover .gala-chef-more i,
.mwfe-gala .gala-chefs.is-interactive .gala-chef-face:focus-visible .gala-chef-more i {
	transform: rotate(90deg);
	background: var(--mwfe-brass);
	color: var(--mwfe-bg-deep);
}

.mwfe-gala .gala-chef-face:focus-visible {
	outline: 2px solid var(--mwfe-brass);
	outline-offset: -7px;
}

.mwfe-gala .gala-chefs.is-interactive .gala-chef-bio {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0;
	/* the bottom padding puts the close pill exactly where the "biography"
	   pill was: the same place opens and closes */
	padding: clamp(1.1rem, 6cqi, 1.7rem) clamp(1rem, 5.6cqi, 1.6rem) calc(1.15rem - 1px);
	border: 1px solid var(--mwfe-brass);
	border-radius: 22px;
	background: rgba(var(--mwfe-ink-rgb), .9);
	backdrop-filter: blur(8px);
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .85);
	visibility: hidden;
	opacity: 0;
	clip-path: inset(38% 0 0 0 round 22px);
	transition: opacity .35s ease, clip-path .6s cubic-bezier(.2, .65, .3, 1), visibility 0s linear .6s;
}

.mwfe-gala .gala-chefs.is-interactive .gala-chef-bio-text {
	flex: 0 1 auto;
	align-self: stretch;
	min-height: 0;
	margin: auto 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	/* sized by the card's own width (the frame is a size container): every
	   biography fits its card without scrolling down to a 360px phone in all
	   three languages (measured 2026-09-23); narrower, it scrolls inside */
	font-size: clamp(.9rem, 4.35cqi, 1.04rem);
	line-height: 1.5;
	color: var(--mwfe-cream);
	scrollbar-width: thin;
	scrollbar-color: rgba(205, 173, 89, .55) transparent;
}

.mwfe-gala .gala-chefs.is-interactive .gala-chef-close {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: .75em;
	margin: .85rem 0 0;
	padding: .5em .55em .5em 1.2em;
	border: 1px solid var(--mwfe-line);
	border-radius: 999px;
	background: rgba(var(--mwfe-ink-rgb), .72);
	font-family: var(--mwfe-sans);
	font-size: .64rem;
	font-weight: 700;
	letter-spacing: .22em;
	line-height: normal;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--mwfe-gold-light);
	cursor: pointer;
	transition: border-color .35s, background .35s;
}

.mwfe-gala .gala-chefs.is-interactive .gala-chef-close:hover,
.mwfe-gala .gala-chefs.is-interactive .gala-chef-close:focus-visible {
	border-color: var(--mwfe-brass);
	outline: none;
}

.mwfe-gala .gala-chefs.is-interactive .gala-chef-close:hover i,
.mwfe-gala .gala-chefs.is-interactive .gala-chef-close:focus-visible i {
	transform: rotate(90deg);
	background: var(--mwfe-brass);
	color: var(--mwfe-bg-deep);
}

/* open: the curtain rises over the portrait and the arch opens into a card */
.mwfe-gala .gala-chefs.is-interactive .gala-chef.is-open .gala-chef-bio {
	visibility: visible;
	opacity: 1;
	clip-path: inset(0 0 0 0 round 22px);
	transition: opacity .35s ease, clip-path .6s cubic-bezier(.2, .65, .3, 1), visibility 0s;
}

.mwfe-gala .gala-chefs.is-interactive .gala-chef.is-open .gala-chef-face {
	border-radius: 22px;
	border-color: var(--mwfe-brass);
	transform: none;
}

.mwfe-gala .gala-chefs.is-interactive .gala-chef.is-open .gala-chef-more {
	opacity: 0;
}

/* ------------------------------------------------ menu & stage panels */

.mwfe-gala .gala-card {
	position: relative;
	max-width: 46rem;
	margin: 0 auto;
	padding: clamp(2.4rem, 5.5vw, 3.8rem) clamp(1.6rem, 5.5vw, 3.8rem);
	border: 1px solid var(--mwfe-line);
	border-radius: 22px;
	background: var(--mwfe-glass);
	backdrop-filter: blur(6px);
	box-shadow: 0 24px 48px -32px rgba(0, 0, 0, .7);
	text-align: center;
}

/* a printed menu's inner rule */
.mwfe-gala .gala-card::before {
	content: "";
	position: absolute;
	inset: .6rem;
	border: 1px solid rgba(205, 173, 89, .16);
	border-radius: 16px;
	pointer-events: none;
}

.mwfe-gala .gala-card + .gala-card {
	margin-top: clamp(1.2rem, 3vh, 1.8rem);
}

.mwfe-gala .gala-soon-mark {
	display: grid;
	place-items: center;
	width: 3.2rem;
	height: 3.2rem;
	margin: 0 auto 1.4rem;
	border: 1px solid var(--mwfe-line);
	border-radius: 50%;
	font-family: var(--mwfe-sans);
	font-size: 1rem;
	line-height: 1;
	color: var(--mwfe-brass);
}

.mwfe-gala .gala-soon p {
	max-width: 34ch;
	margin: 0 auto;
	font-size: clamp(1.2rem, 2vw, 1.5rem);
	font-style: italic;
	line-height: 1.5;
	color: var(--mwfe-cream);
	text-wrap: balance;
}

/* the menu, once it is published: one course after another, like the card
   on the table — course, dish, the kitchen that signs it, the wine */
.mwfe-gala .gala-courses {
	margin: 0 auto;
	list-style: none;
}

.mwfe-gala .gala-course {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 1.7rem 0;
}

.mwfe-gala .gala-course:first-child {
	padding-top: 0;
}

.mwfe-gala .gala-course:last-child {
	padding-bottom: 0;
}

.mwfe-gala .gala-course + .gala-course {
	border-top: 1px dashed rgba(205, 173, 89, .3);
}

.mwfe-gala .gala-course-label {
	margin: 0 0 .55rem;
	font-family: var(--mwfe-sans);
	font-size: .66rem;
	font-weight: 700;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--mwfe-brass);
}

.mwfe-gala .gala-course-dish {
	max-width: 30ch;
	font-size: clamp(1.3rem, 2.2vw, 1.55rem);
	font-weight: 500;
	line-height: 1.3;
	color: var(--mwfe-gold-light);
	text-wrap: balance;
}

.mwfe-gala .gala-course-chef {
	margin-top: .35rem;
	font-size: 1.02rem;
	font-style: italic;
	color: var(--mwfe-cream-dim);
}

.mwfe-gala .gala-course-wine {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: baseline;
	gap: .35em .7em;
	margin-top: 1rem;
	padding: .5em 1.15em;
	border: 1px solid var(--mwfe-line);
	border-radius: 999px;
	font-family: var(--mwfe-sans);
	font-size: .76rem;
	font-weight: 600;
	letter-spacing: .04em;
	line-height: 1.5;
	color: var(--mwfe-cream);
}

.mwfe-gala .gala-course-wine b {
	font-size: .82em;
	font-weight: 700;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--mwfe-brass);
}

/* the stage */
.mwfe-gala .gala-stage-time {
	margin: 0 0 .7rem;
	font-family: var(--mwfe-sans);
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--mwfe-brass);
}

.mwfe-gala .gala-stage-title {
	margin: 0 0 .6rem;
	font-family: var(--mwfe-serif);
	font-size: clamp(1.7rem, 3vw, 2.3rem);
	font-weight: 500;
	line-height: 1.12;
	color: var(--mwfe-gold-light);
	text-wrap: balance;
}

.mwfe-gala .gala-stage-text {
	max-width: 52ch;
	margin: 0 auto;
	font-size: 1.05rem;
	line-height: 1.6;
	color: var(--mwfe-cream-dim);
}

.mwfe-gala .gala-stars-list {
	max-width: 32rem;
	margin: 1.7rem auto 0;
	padding: 0;
	list-style: none;
}

.mwfe-gala .gala-stars-list li {
	display: flex;
	flex-direction: column;
	gap: .3rem;
	padding: 1.05rem 0;
	border-top: 1px solid rgba(205, 173, 89, .18);
}

.mwfe-gala .gala-stars-list li:last-child {
	padding-bottom: 0;
}

.mwfe-gala .gala-stars-name {
	font-size: clamp(1.25rem, 2vw, 1.45rem);
	font-weight: 500;
	line-height: 1.2;
	color: var(--mwfe-cream);
}

.mwfe-gala .gala-stars-role {
	font-family: var(--mwfe-sans);
	font-size: .64rem;
	font-weight: 600;
	letter-spacing: .16em;
	line-height: 1.6;
	text-transform: uppercase;
	color: var(--mwfe-brass);
}

.mwfe-gala .gala-soon-line {
	max-width: 44ch;
	margin: clamp(1.6rem, 4vh, 2.2rem) auto 0;
	font-size: 1.08rem;
	font-style: italic;
	line-height: 1.55;
	text-align: center;
	color: var(--mwfe-cream-dim);
	text-wrap: balance;
}

.mwfe-gala .gala-soon-line::before {
	content: "✦";
	display: block;
	margin: 0 auto .6rem;
	font-family: var(--mwfe-sans);
	font-size: .8rem;
	font-style: normal;
	color: var(--mwfe-brass);
}

/* ------------------------------------------------------------ responsive */

/* two portraits a row: three would leave a biography too little room */
@media (max-width: 1199px) {
	.mwfe-gala .gala-chef {
		flex-basis: calc((100% - var(--gala-gap)) / 2);
		max-width: 26rem;
	}
}

/* On a phone the design system leaves the hero text 4.5rem above the bottom,
   while the scroll cue stands 1.4rem + ~4.25rem tall: a lead whose last line
   runs past the middle (the English one does) was written through by
   "SCROLL". This page's hero text clears it. */
@media (max-width: 700px) {
	.mwfe-gala .mwfe-hero-inner {
		padding-bottom: 6.5rem;
	}
}

@media (max-width: 759px) {
	.mwfe-gala .gala-chef {
		flex-basis: 100%;
		max-width: 24rem;
	}

	.mwfe-gala .gala-teritoria {
		grid-template-columns: minmax(0, 1fr);
		justify-items: center;
		text-align: center;
	}

	.mwfe-gala .gala-teritoria-logo {
		width: 8.5rem;
	}

	.mwfe-gala .gala-teritoria p {
		font-size: 1.02rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mwfe-gala .gala-chef-face,
	.mwfe-gala .gala-chef-face img,
	.mwfe-gala .gala-chef-more,
	.mwfe-gala .gala-chef-more i,
	.mwfe-gala .gala-chef-close i,
	.mwfe-gala .gala-chefs.is-interactive .gala-chef-bio,
	.mwfe-gala .gala-chefs.is-interactive .gala-chef.is-open .gala-chef-bio {
		transition: none;
	}
}
