/*
 * Landing page effects (see inc/landing.php). Layout of the marker classes lives here so
 * the motion math and the CSS agree; colours/type come from the ork-* tokens.
 * `:root .x` (0,2,0) wins over Elementor's single-class base styles.
 * html.ork-hero-on / html.ork-deck-on are set by landing.js (never with reduced motion).
 */

/* ---------- Hero: room photo + wall frame, pinned camera push ---------- */
:root .ork-hero-zoom {
	--ratio: 2;          /* photo width / height (desktop lounge hero, 1774×887; sign at 31–44% × 6–34%) */
	--frame-x: 69.9%;    /* frame box on the photo (% of photo width/height): on the empty wall right of the sign; right edge lines up with the header's last menu item at ~1900px */
	--frame-y: 11.1%;
	--frame-w: 13%;
	--fx: .6;            /* focal point kept in view when the screen is narrower than the photo */
	--a: 0;              /* window → full bleed (0–1) */
	--b: 0;              /* headline card out (0–1) */
	--c: 1;              /* caption in (0–1) */
	position: relative;
	display: block;
	width: 100%;
	height: 100vh;
	height: 100svh;
	padding: 0;
	background: var(--ork-c-paper);
}
/* Pinned run = height − 100svh: two thirds animate, the last third holds on the frame (landing.js). */
html.ork-hero-on .ork-hero-zoom { height: 170svh; --c: 0; }
@media (min-width: 1025px) {
	html.ork-hero-on .ork-hero-zoom { height: 235svh; }
}
@media (max-width: 767px) {
	:root .ork-hero-zoom { --fx: .7; } /* sign + frame */
	/* Phones: a longer pinned run (~1.7× the old 170svh) so one finger swipe does not cover the
	   whole push; landing.js also eases the shown progress behind the scroll. */
	html.ork-hero-on .ork-hero-zoom { height: 220svh; }
}

:root .ork-hero-sticky {
	position: sticky;
	top: 0;
	display: block;
	width: 100%;
	height: 100vh;
	height: 100svh;
	padding: 0;
	overflow: hidden;
	container-type: size;
	--inset-x: calc((1 - var(--a)) * var(--ork-gutter));
	clip-path: inset(
		calc((1 - var(--a)) * .75rem)
		var(--inset-x)
		calc((1 - var(--a)) * (var(--ork-header-h, 4rem) + var(--ork-gutter)))
		var(--inset-x)
		round calc((1 - var(--a)) * var(--ork-radius))
	);
}

/* Photo box: "cover" the window, keep --fx in view, never leave a gap. */
:root .ork-hero-stage {
	--w: max(100cqw, 100cqh * var(--ratio));
	--h: max(100cqh, 100cqw / var(--ratio));
	position: absolute;
	top: calc((100cqh - var(--h)) / 2);
	left: clamp(calc(100cqw - var(--w)), calc(50cqw - var(--fx) * var(--w)), 0px);
	width: var(--w);
	height: var(--h);
	min-width: 0;
	padding: 0; /* will-change is toggled by landing.js only while scrolling (sharp re-raster at rest) */
}
:root .ork-hero-img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}
html.ork-hero-on .ork-hero-img { animation: ork-hero-settle 2.6s var(--ork-ease) both; }
@keyframes ork-hero-settle { from { scale: 1.07; } }

/* The wall frame: ink moulding, ivory mat, poster inside. */
:root .ork-hero-frame {
	position: absolute;
	left: var(--frame-x);
	top: var(--frame-y);
	width: var(--frame-w);
	min-width: 0;
	aspect-ratio: 3 / 4;
	padding: 0;
	border: max(3px, .45cqw) solid var(--ork-c-ink);
	background: var(--ork-c-paper);
	/* Hanging on the wall: the window light comes from the left, so the frame casts a soft
	   warm shadow down and to the right (contact shadow + wider falloff). */
	box-shadow:
		.25cqw .3cqw .35cqw rgb(74 48 12 / .32),
		.9cqw 1.1cqw 1.6cqw rgb(74 48 12 / .26),
		inset .12cqw .15cqw .3cqw rgb(28 39 36 / .28); /* mat sits recessed inside the moulding */
}
/* Bevelled mat edge: the poster window is cut into the mat, lit from the left. */
:root .ork-hero-frame > *::after {
	content: "";
	position: absolute;
	inset: 0;
	box-shadow:
		inset .18cqw .22cqw .4cqw rgb(28 39 36 / .38),
		inset -.06cqw -.06cqw .12cqw rgb(255 255 255 / .35);
	pointer-events: none;
}
:root .ork-hero-frame > * {
	position: absolute;
	inset: 8%;
	display: block;
	width: auto;
	min-width: 0;
	padding: 0;
	overflow: hidden;
	background: var(--ork-c-sand);
}
:root .ork-hero-frame:not([data-ork-loop]) > * + * { display: none; } /* editor: template + empty state */
/* Slider (up to 3 upcoming events, landing.js): posters crossfade, one caption at a time. */
:root .ork-hero-frame.has-slides > * { opacity: 0; transition: opacity .7s var(--ork-ease); }
:root .ork-hero-frame.has-slides > .is-active { opacity: 1; }
:root .ork-hero-caption.has-slides > :not(.is-active) { display: none; }
/* Without the script: first event only. */
:root .ork-hero-frame[data-ork-loop]:not(.has-slides) > * + *,
:root .ork-hero-caption[data-ork-loop]:not(.has-slides) > * + * { display: none; }
.ork-hero-arrow {
	position: absolute;
	z-index: 4;
	display: grid;
	place-items: center;
	width: var(--ork-tap);   /* 44px touch target; the chevron itself is a thin, tall line */
	height: 4rem;
	padding: 0;
	border: 0;
	background: none;
	color: rgb(28 39 36 / .55);
	cursor: pointer;
	translate: -50% -50%;
	transition: color .3s, translate .4s var(--ork-ease);
}
.ork-hero-arrow svg { display: block; width: 1.25rem; height: 3rem; }
.ork-hero-arrow:focus-visible { outline: 1px solid currentColor; outline-offset: 2px; border-radius: 4px; }
@media (hover: hover) {
	.ork-hero-arrow:hover { color: var(--ork-c-ink); }
	.ork-hero-arrow.is-prev:hover { translate: calc(-50% - 4px) -50%; }
	.ork-hero-arrow.is-next:hover { translate: calc(-50% + 4px) -50%; }
}
html.ork-hero-on .ork-hero-arrow { opacity: var(--c); }
html.ork-hero-on .ork-hero-zoom:not(.is-past-c) .ork-hero-arrow { visibility: hidden; }
/* Default frame kept after the slides (shown by landing.js when every slide has ended). */
:root .ork-hero-frame > [hidden],
:root .ork-hero-caption > [hidden] { display: none !important; }
/* Story bars on top of the frame (landing.js, two or more slides): the current one fills in
   "Seconds per slide" (Orkid → Hero frame), then the frame moves on. */
.ork-hero-bars {
	position: absolute;
	z-index: 4;
	display: flex;
	gap: 4px;
	translate: -50% -100%;
	pointer-events: none;
}
.ork-hero-bars > span {
	flex: 1;
	height: 2px;
	overflow: hidden;
	border-radius: var(--ork-pill);
	background: rgb(28 39 36 / .2);
}
.ork-hero-bars i {
	display: block;
	height: 100%;
	background: var(--ork-c-ink);
	transform: scaleX(0);
	transform-origin: left center;
}
.ork-hero-bars > .is-done i { transform: scaleX(1); }
.ork-hero-bars > .is-active i {
	animation: ork-hero-bar var(--ork-bar-dur, 7s) linear forwards;
	animation-play-state: paused;
}
.ork-hero-bars.is-playing > .is-active i { animation-play-state: running; }
@keyframes ork-hero-bar { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
	.ork-hero-bars > .is-active i { animation: none; transform: scaleX(1); }
}
html.ork-hero-on .ork-hero-bars { opacity: var(--c); }
html.ork-hero-on .ork-hero-zoom:not(.is-past-c) .ork-hero-bars { visibility: hidden; }
/* Scroll cue (landing.js, pinned hero only): a glass chevron at the bottom, in with the caption. */
.ork-hero-cue {
	position: absolute;
	left: 50%;
	bottom: max(1rem, env(safe-area-inset-bottom));
	z-index: 4;
	display: grid;
	place-items: center;
	width: var(--ork-tap, 2.75rem);
	height: var(--ork-tap, 2.75rem);
	padding: 0;
	border: 1px solid rgb(255 255 255 / .5);
	border-radius: var(--ork-pill);
	background: rgb(247 244 238 / .85);
	color: var(--ork-c-ink);
	cursor: pointer;
	opacity: var(--c);
	translate: -50% calc((1 - var(--c)) * 1rem);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	html:root .ork-hero-cue {
		background: rgb(247 244 238 / .5);
		-webkit-backdrop-filter: blur(16px) saturate(140%);
		backdrop-filter: blur(16px) saturate(140%);
	}
}
.ork-hero-cue svg { display: block; width: 1.375rem; height: 1.375rem; animation: ork-cue-nudge 1.8s var(--ork-ease) infinite; }
@keyframes ork-cue-nudge { 0%, 100% { translate: 0 -2px; } 50% { translate: 0 3px; } }
.ork-hero-cue:focus-visible { outline: 2px solid var(--ork-c-gold); outline-offset: 3px; }
html.ork-hero-on .ork-hero-zoom:not(.is-past-c) .ork-hero-cue { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .ork-hero-cue svg { animation: none; } }
:root .ork-hero-frame img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

/* Headline card */
:root .ork-hero-panel {
	position: absolute;
	left: calc(var(--ork-gutter) + clamp(.75rem, 2.5vw, 2.5rem));
	bottom: calc(var(--ork-header-h, 4rem) + var(--ork-gutter) + clamp(.75rem, 2.5vw, 2.5rem));
	z-index: 2;
	width: min(36rem, calc(100% - 2 * (var(--ork-gutter) + .75rem)));
	padding: clamp(1.5rem, 3vw, 2.75rem);
	border: 1px solid rgb(255 255 255 / .5);
	border-radius: var(--ork-radius);
	/* Frosted glass over the photo; solid ivory where backdrop-filter is unsupported. */
	background: rgb(247 244 238 / .9);
	opacity: calc(1 - var(--b));
	translate: 0 calc(var(--b) * 3rem);
	visibility: visible;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	html:root :is(.ork-hero-panel, .ork-hero-caption) { /* (0,2,1): beats the solid fallbacks above and below */
		background: rgb(247 244 238 / .5);
		-webkit-backdrop-filter: blur(22px) saturate(140%);
		backdrop-filter: blur(22px) saturate(140%);
	}
}
html.ork-hero-on .ork-hero-zoom.is-past-b .ork-hero-panel { visibility: hidden; }

/* Next-event caption (fades in once the frame fills the screen) */
:root .ork-hero-caption {
	position: absolute;
	right: calc(var(--ork-gutter) + clamp(.75rem, 2.5vw, 2.5rem));
	bottom: calc(var(--ork-header-h, 4rem) + var(--ork-gutter) + clamp(.75rem, 2.5vw, 2.5rem));
	z-index: 3;
	width: auto;
	max-width: min(30rem, calc(100% - 2 * (var(--ork-gutter) + .75rem)));
	padding: 1.25rem 1.5rem;
	border: 1px solid rgb(255 255 255 / .5);
	border-radius: var(--ork-radius);
	background: rgb(247 244 238 / .9); /* glass via @supports below */
	opacity: var(--c);
	translate: 0 calc((1 - var(--c)) * 1.5rem);
}
:root .ork-hero-caption:not([data-ork-loop]) > * + .ork-loop-empty { display: none; }
/* No button on the card (theme 1.70.0, user decision 2026-11-30): the slide's link (Details /
   Register / the default frame's button) becomes an invisible layer over the whole card, so a
   click or tap anywhere on it opens the event or story. Without a link the card is plain text. */
:root .ork-hero-caption { width: 22rem; }
:root .ork-hero-caption > * { position: static; }
:root .ork-hero-caption a {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: block;
	width: auto;
	min-width: 0;
	min-height: 0;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: inherit;
	font-size: 0;
	translate: none;
}
/* !important: the button classes (ork-btn-accent…) restyle their own :hover / :focus. */
:root .ork-hero-caption a,
:root .ork-hero-caption a:is(:hover, :focus, :active) {
	background: none !important;
	color: transparent !important;
	border-color: transparent !important;
	box-shadow: none !important;
}
:root .ork-hero-caption a:focus-visible { outline: 2px solid var(--ork-c-ink); outline-offset: 3px; }
:root .ork-hero-caption p { min-width: 0; overflow-wrap: break-word; }
:root .ork-hero-caption:has(a) { cursor: pointer; transition: background-color .3s, border-color .3s; }
@media (hover: hover) {
	html:root .ork-hero-caption:has(a:hover) { border-color: rgb(132 100 42 / .45); background-color: rgb(247 244 238 / .72); }
}
/* Pinned: just under the zoomed frame (--cap-y = frame bottom, --cap-w = zoomed frame width,
   both set by landing.js): always as wide as the frame, whatever the title. */
html.ork-hero-on .ork-hero-caption {
	right: auto;
	left: 50%;
	top: calc(var(--cap-y, 76%) + 1rem);
	bottom: auto;
	translate: -50% calc((1 - var(--c)) * 1.5rem);
	width: var(--cap-w, 22rem);
	max-width: calc(100% - 2rem);
}
html.ork-hero-on .ork-hero-zoom:not(.is-past-c) .ork-hero-caption { visibility: hidden; }
@media (max-width: 767px) {
	html:not(.ork-hero-on) .ork-hero-caption { display: none; } /* static phones: the poster links to the event */
	html.ork-hero-on .ork-hero-caption { padding: 1rem 1.25rem; }
	html.ork-hero-on .ork-hero-caption .ork-eyebrow { margin: 0; font-size: .625rem; letter-spacing: .16em; line-height: 1.5; }
	html.ork-hero-on .ork-hero-caption p:not(.ork-eyebrow) { font-size: 1.0625rem; line-height: 1.25; }
}

/* Phones: inc/landing.php swaps in the portrait lounge photo (<picture>, 941×1672): the
   Orkid sign sits left of centre, the wall frame hangs on the empty wall to its right, and
   a compact glass card sits at the bottom over the sofa. Changing the photo → adjust these.
   Portrait only: phones turned sideways get the landscape photo (see "Short landscape" below). */
@media (max-width: 767px) and (orientation: portrait) {
	:root .ork-hero-zoom:has(.has-mobile) {
		--ratio: .5628;
		--frame-x: 57%;
		--frame-y: 28.5%; /* a little below the sign's top, on the wall to its right */
		--frame-w: 24%;
		--fx: .535;       /* keeps sign (25–48%) and frame (57–81%) in view */
		--zoom: 1.2;      /* photo 20% taller than the screen… */
		--crop: .183;     /* …lifted by 18.3% of its height: no ceiling, plant and sofa above the card */
		--span: .56;      /* sign left → frame right (photo width) that must fit inside the window */
		--ceil: .183;     /* least crop that still hides the ceiling */
	}
	/* Its bottom then ends above the screen edge; landing.js holds the window's opening behind the
	   growing photo so nothing shows there. The floor tone is only a safety net for that sliver. */
	:root .ork-hero-zoom:has(.has-mobile) .ork-hero-sticky { background: var(--ork-c-stone); }
	/* Tall phones (iPhone 16/Pro Max, PWA): sizing by height alone made the photo so wide that the
	   sign and frame touched the window edges. The photo is capped so --span fits with ~1.25rem
	   either side, but stays tall enough to fill the window down to the card (--clip-b) with at
	   least --ceil cropped off the top; the crop shrinks towards --ceil only when needed. */
	:root .ork-hero-zoom:has(.has-mobile) .ork-hero-stage {
		--clip-b: calc(100cqh - var(--ork-header-h, 4rem) - var(--ork-gutter));
		--h: max(
			calc(var(--clip-b) / (1 - var(--ceil))),
			min(
				calc(max(100cqh, 100cqw / var(--ratio)) * var(--zoom)),
				calc((100cqw - 2 * var(--ork-gutter) - 2.5rem) / var(--span) / var(--ratio))
			)
		);
		--w: calc(var(--h) * var(--ratio));
		top: max(calc(var(--h) * var(--crop) * -1), calc(var(--clip-b) - var(--h)));
	}
}
@media (max-width: 767px) {
	html:root .ork-hero-panel {
		left: calc(var(--ork-gutter) + .625rem);
		bottom: calc(var(--ork-header-h, 4rem) + var(--ork-gutter) + .625rem);
		width: calc(100% - 2 * (var(--ork-gutter) + .625rem));
		padding: 1.25rem 1.25rem 1.375rem;
		gap: .625rem;
	}
	html:root .ork-hero-panel .ork-eyebrow { margin: 0; font-size: .625rem; letter-spacing: .16em; line-height: 1.5; }
	html:root .ork-hero-panel h1 { margin: 0; font-size: clamp(2rem, 9.5vw, 2.375rem); line-height: 1.05; }
	html:root .ork-hero-panel .ork-lead { margin: 0; font-size: .875rem; line-height: 1.55; }
	html:root .ork-hero-panel > div { flex-direction: row; flex-wrap: nowrap; gap: .5rem; margin-top: .25rem; }
	html:root .ork-hero-panel > div > a {
		display: flex;
		flex: 1 1 0;
		align-items: center;     /* the label sat at the top of the 48px pill */
		justify-content: center;
		min-width: 0;
		min-height: 3rem;
		padding: 0 .5rem;
		font-size: .6875rem;
		line-height: 1;
		letter-spacing: .12em;
		text-align: center;
		white-space: nowrap;
		text-box: trim-both cap alphabetic; /* centre the capitals themselves, not the font's line box */
	}
	html:root .ork-hero-panel > div > a > * { margin: 0; line-height: 1; }
}
/* Tablets (768–1024px): inc/landing.php swaps in the closer lounge crop (1774×887, sign at
   33–46% × 7–39%). The frame hangs just right of the sign so both fit a portrait tablet,
   which shows only ~35% of the photo's width. Large portrait tablets (iPad Pro 13", 1032px
   wide) count as tablets too: the desktop frame spot (70%) falls off their narrow window. */
@media (min-width: 768px) and (max-width: 1024px), (min-width: 1025px) and (max-width: 1366px) and (orientation: portrait) {
	:root .ork-hero-zoom:has(.has-tablet) {
		--frame-x: 53%;
		--frame-y: 14%;
		--frame-w: 10.5%;
		--fx: .483;
	}
}
/* Hero photo set v2 (November 2026, sculptural coffee table; inc/landing.php adds .is-v2 to the
   <picture>). Same sizes as the originals (1774×887, 941×1672) but the sign moved: desktop
   44–55% × 3–29%, phone 16–40% × 24–40%. No tablet photo: tablets show the desktop one with the
   frame closer to the sign (a portrait tablet sees ~37% of its width). */
@media (min-width: 1025px) {
	:root .ork-hero-zoom:has(.is-v2) {
		--frame-x: 70%;   /* empty wall right of the sign, clear of the cushions */
		--frame-y: 9%;
		--frame-w: 13%;
		--fx: .6;
	}
}
@media (min-width: 768px) and (max-width: 1024px), (min-width: 1025px) and (max-width: 1366px) and (orientation: portrait) {
	:root .ork-hero-zoom:has(.is-v2) {
		--frame-x: 57.5%;
		--frame-y: 10%;
		--frame-w: 10.5%;
		--fx: .56;        /* sign (44–55%) and frame (57.5–68%) both in view */
	}
}
@media (max-width: 767px) and (orientation: portrait) {
	:root .ork-hero-zoom:has(.is-v2.has-mobile) {
		--frame-x: 54.5%;
		--frame-y: calc(23.5% + .625rem); /* ~10px below the sign's top (sign 23.5–39.5%) */
		--frame-w: 23.5%;
		--fx: .466;       /* centre of sign (15.2–40%) + frame (54.5–78%): equal margins */
		--zoom: 1.2;
		--crop: .183;
		--span: .628;     /* 15.2% → 78% */
		--ceil: .15;      /* the ceiling (top ~15% on the left) stays out of view */
	}
}
/* Landscape tablets (iPad Mini 1024×768): a slimmer headline card with the buttons side by side
   (stacked, the card reached up to the sign), and the photo nudged right so the sign and frame
   sit in the right half, clear of the card. */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
	html:root .ork-hero-panel { width: min(30rem, calc(100% - 2 * (var(--ork-gutter) + .75rem))); padding: 1.5rem 1.75rem; }
	html:root .ork-hero-panel h1 { font-size: 2.5rem; line-height: 1.08; }
	html:root .ork-hero-panel .ork-lead { font-size: .9375rem; line-height: 1.55; }
	html:root .ork-hero-panel > div { flex-direction: row; flex-wrap: nowrap; gap: .75rem; }
	:root .ork-hero-zoom:has(.is-v2) { --fx: .45; }
}
@media (max-width: 767px) and (max-height: 700px) {
	html:root .ork-hero-panel .ork-lead { display: none; } /* short phones (SE): headline + buttons only */
}
/* Short landscape (phones turned sideways, ≤500px tall): the landscape photo with the whole
   wall in view, its top edge pinned so the sign is not cut off, and a compact card on the left
   (eyebrow, headline, two buttons side by side) that stops before the sign. */
@media (orientation: landscape) and (max-height: 500px) {
	:root .ork-hero-zoom:has(.is-v2) {
		--frame-x: 64%;
		--frame-y: 9%;
		--frame-w: 11%;
		--fx: .44;        /* as far left as the photo goes on narrow phones: sign from ~44% of the window */
	}
	:root .ork-hero-zoom .ork-hero-stage { top: .75rem; } /* the photo is barely taller than the window */
	html:root .ork-hero-panel {
		left: calc(var(--ork-gutter) + .75rem);
		bottom: calc(var(--ork-header-h, 4rem) + var(--ork-gutter) + .75rem);
		width: clamp(17rem, 36%, 20rem);
		padding: 1rem 1.125rem;
		gap: .5rem;
	}
	html:root .ork-hero-panel .ork-eyebrow { margin: 0; font-size: .5625rem; letter-spacing: .14em; line-height: 1.5; }
	html:root .ork-hero-panel h1 { margin: 0; font-size: clamp(1.5rem, 3.4vw, 2rem); line-height: 1.05; }
	html:root .ork-hero-panel .ork-lead { display: none; }
	html:root .ork-hero-panel > div { flex-direction: row; flex-wrap: nowrap; gap: .5rem; margin-top: .25rem; }
	html:root .ork-hero-panel > div > a {
		display: flex;
		flex: 1 1 0;
		align-items: center;
		justify-content: center;
		min-width: 0;
		min-height: 2.75rem;
		padding: 0 .375rem;
		font-size: .625rem;
		line-height: 1;
		letter-spacing: .1em;
		text-align: center;
		white-space: nowrap;
		text-box: trim-both cap alphabetic;
	}
	html:root .ork-hero-panel > div > a > * { margin: 0; line-height: 1; }
}

/* ---------- Events deck ---------- */
:root .ork-deck-track {
	display: flex;
	flex-wrap: nowrap;
	gap: clamp(1rem, 2vw, 1.75rem);
	--edge: max(var(--ork-gutter), calc((100% - var(--ork-max)) / 2)); /* the 1344px content edge */
	width: 100%;
	margin: 0;
	padding: .5rem var(--edge) 1.5rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--edge);
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
:root .ork-deck-track::-webkit-scrollbar { display: none; }
:root .ork-deck-card {
	position: relative;
	display: flex;
	flex: 0 0 min(76vw, 19rem);
	flex-direction: column;
	min-width: 0;
	padding: 0;
	overflow: hidden;
	border-radius: var(--ork-radius);
	background: var(--ork-c-paper);
	scroll-snap-align: center;
	transform-origin: 50% 85%;
}
/* Glass cards: the mist band behind shows through the body. */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	html:root .ork-deck-card {
		border: 1px solid rgb(255 255 255 / .6);
		background: rgb(247 244 238 / .42);
		-webkit-backdrop-filter: blur(18px) saturate(140%);
		backdrop-filter: blur(18px) saturate(140%);
	}
}
/* Mist band behind the card row: slides in from the left as the section arrives
   (--band 0 → 1, landing.js). Inside the pinned layer, so it stays put while pinned. */
:root .ork-deck-sticky { position: relative; isolation: isolate; }
:root .ork-deck-sticky::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: 36%;
	bottom: 6%;
	left: 0;
	width: 64%;
	background: var(--ork-mist, #ebe2dd);
	translate: calc((1 - var(--band, 1)) * -22%) 0;
	pointer-events: none;
}
@media (max-width: 767px) {
	:root .ork-deck-sticky::before { top: 42%; bottom: 4%; width: 78%; }
}
/* The section is full bleed (no side padding, for the card row) and Elementor's ork-container
   has padding 0, so below its max-width the heading and button touched the screen edge: give
   the head the same gutter as the cards' first edge. (0,3,0) beats `.elementor .ork-container`. */
@media (max-width: 1024px) {
	:root .ork-deck-sticky > .ork-container { padding-inline: var(--ork-gutter); }
}
:root .ork-deck-card .ork-loop-empty,
:root .ork-deck-track > .ork-loop-empty { flex: 1 1 100%; }
html.ork-deck-on .ork-deck.ork-deck { padding-block: 0; }
html.ork-deck-on .ork-deck-sticky {
	position: sticky;
	top: 0;
	height: 100vh;
	height: 100svh;
	justify-content: center;
	overflow: hidden;
}
html.ork-deck-on .ork-deck-track {
	overflow: visible;
	scroll-snap-type: none;
	will-change: translate;
}
/* Pinned: section head + one card row must fit the screen height. */
html.ork-deck-on .ork-deck-card { flex-basis: min(17rem, calc((100svh - 24rem) * .68)); }
html.ork-deck-on .ork-deck-sticky { gap: 2rem; }
/* Class cards in the deck use the classes-page overlay card (ork-evcard, base.css):
   no glass panel or border, and the card height follows the pinned screen height. */
html:root .ork-deck-card.ork-evcard {
	border: 0;
	background: var(--ork-c-green-deep);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}
html.ork-deck-on body .ork-deck-card.ork-evcard { min-height: clamp(22rem, calc(100svh - 21rem), 32rem); } /* room for the arrows under the row (theme 1.61.0) */
/* Same card width as the Classes & Workshops page grid: desktop = a third of its 1344px
   (84rem) container, 1.5rem gaps; tablet = half. A very long price moves "View Class →"
   to a second line instead of overflowing. */
:root .ork-deck-card.ork-evcard,
html.ork-deck-on .ork-deck-card.ork-evcard { flex-basis: calc((min(100vw - 4rem, 84rem) - 3rem) / 3); }
:root .ork-deck-card.ork-evcard :is(.ork-evcard-price, .ork-evcard-cta) { white-space: nowrap; }
:root body .ork-deck-card.ork-evcard .ork-evcard-foot { flex-wrap: wrap; row-gap: .5rem; column-gap: .75rem; }
@media (min-width: 768px) and (max-width: 1024px) {
	:root .ork-deck-card.ork-evcard { flex-basis: calc((100vw - 4rem - 1.5rem) / 2); }
}
@media (max-width: 767px) {
	:root .ork-deck-card.ork-evcard { flex-basis: min(86vw, 22rem); }
}
/* Frosted glass from a blurred copy of the photo (landing.js adds it and .has-glass): unlike
   backdrop-filter it stays whole while the deck scales and moves the cards. Scaled up a little
   so the blur has no soft, see-through rim at the card edges; masked like the glass layer. */
:root body .ork-evcard-media .ork-evcard-glass {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	filter: blur(14px);
	transform: scale(1.08);
	pointer-events: none;
	-webkit-mask-image: linear-gradient(to top, #000 calc(var(--gh, 12rem) * .6), transparent var(--gh, 12rem));
	mask-image: linear-gradient(to top, #000 calc(var(--gh, 12rem) * .6), transparent var(--gh, 12rem));
}
:root body .ork-evcard.has-glass .ork-evcard-body::before { -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ---------- Upcoming events: sticky stacked cards ---------- */
:root .ork-evstack { display: flex; flex-direction: column; gap: 2rem; padding: 0; }
:root .ork-evstack > .ork-loop-empty { width: 100%; }
:root .ork-ev-card {
	--dim: 0;
	position: relative;
	display: grid;
	grid-template-columns: min(22rem, 40%) minmax(0, 1fr);
	align-items: center;
	gap: clamp(1.5rem, 3.5vw, 4rem);
	width: 100%;
	padding: clamp(.75rem, 1.2vw, 1.25rem);
	border-radius: var(--ork-radius);
	background: var(--ork-c-paper);
	transform-origin: 50% 0;
}
:root .ork-ev-card::after { /* depth: dims as the next card covers it */
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: var(--ork-c-ink);
	opacity: var(--dim);
	pointer-events: none;
}
:root .ork-ev-media { position: relative; padding: 0; overflow: hidden; border-radius: var(--ork-radius-sm); }
:root .ork-ev-img {
	display: block;
	width: 100%;
	height: auto;
	max-width: none;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}
/* Body: details | side column (Starts in + countdown + buttons), split by a 1px rule. */
:root .ork-ev-body {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.75rem clamp(2rem, 3.5vw, 3.5rem);
	padding: 1rem clamp(1rem, 2.5vw, 2.5rem) 1rem 0;
}
:root .ork-ev-main { flex: 1 1 20rem; min-width: 0; }
:root .ork-ev-aside {
	flex: 0 0 16.5rem;
	align-self: stretch;
	justify-content: center;
	padding-inline-start: clamp(2rem, 3.5vw, 3.5rem);
	border-inline-start: 1px solid var(--ork-c-line);
}
:root .ork-ev-aside [data-ork-countdown] { display: flex; flex-wrap: nowrap; gap: .5rem; padding: 0; }
:root .ork-ev-aside .ork-cd { flex: 1 1 0; min-width: 0; }
:root .ork-ev-aside a { text-align: center; white-space: nowrap; padding-inline: 1rem; } /* one-line labels ("Reserve") */
/* Phone list (ork-evlist-m + ork-loop-upcoming): the events-page overlay cards (ork-evcard,
   base.css) replace the stacked cards on phones; desktop/tablet keep the stack. */
:root body .ork-evlist-m { display: none; }
@media (max-width: 767px) {
	/* A swipe row like the class deck (same card width), bleeding to the screen edges. */
	:root body .ork-evlist-m:has(.ork-evcard) {
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		gap: 1rem;
		width: auto;
		margin-inline: calc(-1 * var(--ork-gutter));
		padding: .25rem var(--ork-gutter) .75rem;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--ork-gutter);
		overscroll-behavior-x: contain;
		scrollbar-width: none;
	}
	:root body .ork-evlist-m::-webkit-scrollbar { display: none; }
	:root body .ork-evlist-m > .ork-evcard { flex: 0 0 min(86vw, 22rem); scroll-snap-align: center; }
	:root body .ork-evlist-m > .ork-evcard:only-child { flex-basis: 100%; }
	:root body .ork-evstack:has(~ .ork-evlist-m .ork-evcard) > .ork-ev-card { display: none; }
}

/* Carousel arrows (.ork-cnav): site.js + base.css. */
@media (max-width: 1200px) { /* aside moves under the details */
	:root .ork-ev-aside {
		flex: 1 1 100%;
		padding: 1.5rem 0 0;
		border-inline-start: 0;
		border-block-start: 1px solid var(--ork-c-line);
	}
	:root .ork-ev-aside > div:last-child { flex-direction: row; flex-wrap: wrap; }
	:root .ork-ev-aside [data-ork-countdown] { max-width: 20rem; }
}
@media (min-width: 768px) {
	:root .ork-ev-card { position: sticky; top: calc(var(--ork-header-h, 4rem) + 1.5rem + var(--i, 0) * 1.25rem); }
}
@media (max-width: 767px) {
	/* Compact phone card: a whole card (photo → buttons) fits on one screen, so the cards can
	   stack without the next one covering this one's buttons. */
	:root .ork-ev-card { grid-template-columns: minmax(0, 1fr); gap: .875rem; }
	:root .ork-ev-img { aspect-ratio: 16 / 9; }
	:root .ork-ev-body { gap: 1rem; padding: 0 .5rem .625rem; }
	:root .ork-ev-main { display: flex; flex-direction: column; gap: .5rem; }
	:root .ork-ev-main > * { margin: 0; }
	:root .ork-ev-main .ork-body { /* summary: 2 lines here, the full text is on the event page */
		display: -webkit-box;
		overflow: hidden;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		line-clamp: 2;
	}
	:root .ork-ev-aside { gap: .625rem; padding-top: 1rem; }
	:root .ork-ev-aside > * { margin: 0; }
	:root .ork-ev-aside [data-ork-countdown] { max-width: none; }
	/* Stacked (landing.js adds .is-stack and each card's --stick): cards pin under the header,
	   each a little lower than the last (a card taller than the screen pins with its buttons
	   in view), and the covered one recedes and dims. */
	:root .ork-evstack.is-stack { gap: 1.25rem; }
	:root .ork-evstack.is-stack > .ork-ev-card { position: sticky; top: var(--stick, calc(var(--ork-header-h, 4rem) + .5rem)); }
}

/* ---------- Founder portrait: curtain reveal + settling photo + offset gold hairline ----------
   --pp 0 → 1 with scroll (landing.js); 1 by default = final state without JS / reduced motion. */
:root .ork-portrait {
	--pp: 1;
	position: relative;
	padding: 0 1.5rem 1.5rem 0;
}
:root .ork-portrait::before { /* mounted-print hairline: slides from behind the photo to its offset */
	content: "";
	position: absolute;
	inset: 1.5rem 0 0 1.5rem;
	border: 1px solid var(--ork-c-gold);
	border-radius: var(--ork-radius);
	opacity: var(--pp);
	translate: calc((1 - var(--pp)) * -1.5rem) calc((1 - var(--pp)) * -1.5rem);
	pointer-events: none;
}
:root .ork-portrait > :first-child {
	position: relative;
	z-index: 1;
	width: 100%;
	padding: 0;
	overflow: hidden;
	border-radius: var(--ork-radius);
	clip-path: inset(calc((1 - var(--pp)) * 16%) calc((1 - var(--pp)) * 11%) round var(--ork-radius));
}
:root .ork-portrait img {
	display: block;
	width: 100%;
	transform-origin: 50% 30%;
	scale: calc(1.18 - .18 * var(--pp));
	translate: 0 calc((1 - var(--pp)) * 5%);
}
/* Phones: the portrait sat wider than its centred column, so the hairline (which reaches the
   box's right edge) ran off screen. Full column width, a smaller offset for the hairline. */
@media (max-width: 767px) {
	:root .ork-portrait {
		box-sizing: border-box;
		align-self: stretch;
		width: 100%;
		max-width: 100%;
		padding: 0 1rem 1rem 0;
	}
	:root .ork-portrait::before {
		inset: 1rem 0 0 1rem;
		translate: calc((1 - var(--pp)) * -1rem) calc((1 - var(--pp)) * -1rem);
	}
}

/* Founder social icons (inc/social.php): in the button row; fade in one by one, after the
   button, once the row scrolls into view (.is-in from landing.js). */
:root .ork-founder-social { display: flex; align-items: center; width: auto; padding: 0; }
:root .ork-founder-social .ork-social { margin: 0; gap: .5rem; }
:root .ork-founder-social :is(a, .ork-social__item) { border: 1px solid rgb(247 244 238 / .3); }
html.ork-js .ork-founder-social li {
	opacity: 0;
	translate: -.75rem 0;
	transition: opacity .8s var(--ork-ease), translate 1s var(--ork-ease);
	transition-delay: calc(.45s + var(--i, 0) * .14s);
}
html.ork-js .ork-founder-social.is-in li { opacity: 1; translate: none; }

/* ---------- Hover list (classes) ---------- */
:root .ork-hover-list { counter-reset: ork-hl; }
:root .ork-hl-row {
	position: relative;
	display: grid;
	grid-template-columns: 4.5rem minmax(0, 1fr) auto;
	align-items: center;
	gap: 1rem;
	padding: 1.25rem 0;
	border-block-start: 1px solid var(--ork-c-line);
	counter-increment: ork-hl;
}
:root .ork-hl-row:last-child { border-block-end: 1px solid var(--ork-c-line); }
:root .ork-hl-img {
	display: block;
	width: 4.5rem;
	height: 4.5rem;
	max-width: none;
	border-radius: var(--ork-radius-sm);
	object-fit: cover;
}
:root .ork-hl-main { display: flex; flex-direction: column; gap: .25rem; min-width: 0; padding: 0; }
:root .ork-hl-title a { color: inherit; text-decoration: none; }
:root .ork-hl-title a::after { content: ""; position: absolute; inset: 0; } /* whole row is the link */
:root .ork-hl-row:focus-within { outline: 2px solid var(--ork-c-gold-deep); outline-offset: 4px; }
:root .ork-hl-row :focus-visible { outline: none; }
:root .ork-hl-arrow { transition: translate .4s var(--ork-ease); }
@media (min-width: 1025px) {
	:root .ork-hl-row { grid-template-columns: 3rem minmax(0, 1fr) auto; padding: 1.75rem 0; }
	:root .ork-hl-row::before {
		content: counter(ork-hl, decimal-leading-zero);
		color: var(--ork-c-gold-deep);
		font-size: .75rem;
		font-weight: 600;
		letter-spacing: .16em;
	}
	:root .ork-hl-row .ork-hl-img { display: none; }
}
@media (min-width: 1025px) and (hover: hover) {
	:root .ork-hl-title { transition: translate .5s var(--ork-ease), color .3s; }
	:root .ork-hl-row:hover .ork-hl-title { translate: .75rem 0; color: var(--ork-c-green); }
	:root .ork-hl-row:hover .ork-hl-arrow { translate: .5rem 0; }
}
.ork-hl-float {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 50;
	width: 17rem;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--ork-radius);
	pointer-events: none;
	opacity: 0;
	scale: .85;
	transition: opacity .35s var(--ork-ease), scale .5s var(--ork-ease);
}
.ork-hl-float.is-on { opacity: 1; scale: 1; }
.ork-hl-float img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Map (brand SVG inlined by landing.js; Google embed as fallback) ---------- */
:root .ork-map-lite {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 1rem;
	min-height: 22rem;
	overflow: hidden;
	border: 1px solid var(--ork-c-line); /* the map's paper matches the Contact page: a hairline frame */
	border-radius: var(--ork-radius);
}
.ork-map-lite iframe,
.ork-map-lite > .ork-map-svg {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	border: 0;
	background: var(--ork-c-paper, #F7F4EE);
}
.ork-map-svg svg { display: block; width: 100%; height: 100%; }
@media (max-width: 767px) {
	:root .ork-map-lite.is-loaded:has(> .ork-map-svg) { min-height: 22rem; } /* room for the pin card and the button */
}
.ork-map-lite > :not(iframe, .ork-map-svg) { position: relative; z-index: 1; }
:root .ork-map-lite.is-loaded { justify-content: flex-start; min-height: 14rem; padding: 1rem; }
/* Google's keyless embed can't be styled: a light sage-green monochrome filter (near ork-green). */
.ork-map-lite iframe { filter: grayscale(1) sepia(.45) hue-rotate(95deg) saturate(.38) contrast(.9) brightness(.8); } /* muted, easy on the eye */
/* Opening (Bijoux-like): a top → bottom wipe while the map settles from a slight zoom.
   .is-open from landing.js once the map has loaded and is in view. */
html.ork-js .ork-map-lite iframe,
html.ork-js .ork-map-lite > .ork-map-svg {
	clip-path: inset(0 0 100% 0);
	scale: 1.14;
	transform-origin: 50% 0;
	transition: clip-path 1.6s var(--ork-ease-io), scale 2.2s var(--ork-ease);
}
html.ork-js .ork-map-lite.is-open iframe,
html.ork-js .ork-map-lite.is-open > .ork-map-svg { clip-path: inset(0); scale: 1; }
@media (prefers-reduced-motion: reduce) {
	html.ork-js .ork-map-lite > .ork-map-svg { transition: none; }
}
.ork-map-lite.is-loaded .ork-map-address { display: none; }
/* Get Directions over the map (theme 1.72.2): a pill with a direction arrow, at the bottom of the
   map, bottom-left on the home page and bottom-right elsewhere (Contact Us). The OSM credit sits
   top-right in the SVG, so the button never covers it. Excluded from the phones' full-width
   button rule in base.css. */
:root .ork-map-lite.is-loaded { justify-content: flex-end; }
:root .ork-map-lite.is-loaded > a {
	display: inline-flex;
	align-items: center;
	gap: .625rem;
	width: auto;
	align-self: flex-end;
}
:root .home .ork-map-lite.is-loaded > a { align-self: flex-start; }
:root .ork-map-lite.is-loaded > a::before {
	content: "";
	flex: none;
	width: 1.0625rem;
	height: 1.0625rem;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M3 11 21 3l-8 18-2-8z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M3 11 21 3l-8 18-2-8z'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* The ork-btn-accent hover turns it ivory like the map itself, so it keeps a gold hairline there.
   Inset ring = no size change. */
:root .ork-map-lite > a:is(:hover, :focus-visible) { box-shadow: inset 0 0 0 1.5px var(--ork-c-gold); }
/* Phones: a compact pill. */
@media (max-width: 767px) {
	:root .ork-map-lite.is-loaded > a {
		gap: .5rem;
		min-height: 2.75rem;
		padding: .625rem 1.125rem .625rem .875rem;
		font-size: .6875rem;
	}
	:root .ork-map-lite.is-loaded > a::before { width: 1rem; height: 1rem; }
}
/* Contact grid: both columns share one height; the map (flex-grow in the info column) takes up
   the rest, so its bottom edge lines up with the bottom of the form. */

/* ---------- Contact: "the way here" — drifting column lines + a dotted route to the map ----------
   --rl (lines grow) and --rx (drift) are set by landing.js; defaults = static final state. */
:root .ork-route { position: relative; isolation: isolate; overflow: hidden; }
:root .ork-route > :not(.ork-route__svg, .ork-route__glows) { position: relative; z-index: 1; } /* decor layers stay absolute */
:root .ork-route::before { /* 1px column lines every 22rem, like a city grid */
	content: "";
	position: absolute;
	z-index: 0;
	inset: 0 -22rem 0 0;
	background: repeating-linear-gradient(90deg, transparent 0 calc(22rem - 1px), rgb(28 39 36 / .08) calc(22rem - 1px) 22rem);
	transform-origin: 50% 0;
	scale: 1 var(--rl, 1);
	translate: calc(var(--rx, 0) * -11rem) 0;
	pointer-events: none;
}
.ork-route__svg { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; overflow: visible; pointer-events: none; } /* above the form: point on its corner */
.ork-route__pin { opacity: 0; transition: opacity .5s var(--ork-ease); }
.ork-route__pin circle { fill: var(--ork-c-gold); }
.ork-route__pin .ork-route__ring { fill: none; stroke: var(--ork-c-gold); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; }
.ork-route.is-arrived .ork-route__pin { opacity: 1; }
/* Contact form: no "* Required" note (fields keep their * and native validation). */
/* Soft green/gold glows behind the glass form; they drift with scroll (landing.js) so the
   frosted glass visibly refracts them. Very faint, no hard edges. */
.ork-route__glows { position: absolute; z-index: 0; pointer-events: none; }
.ork-route__glows span {
	position: absolute;
	border-radius: 50%;
	will-change: translate;
}
.ork-route__glows .is-a { top: -8%; left: -6%; width: 55%; aspect-ratio: 1; background: radial-gradient(closest-side, rgb(84 116 106 / .26), rgb(84 116 106 / 0)); }
.ork-route__glows .is-b { top: 22%; right: -10%; width: 48%; aspect-ratio: 1; background: radial-gradient(closest-side, rgb(211 172 100 / .3), rgb(211 172 100 / 0)); }
.ork-route__glows .is-c { bottom: -12%; left: 28%; width: 42%; aspect-ratio: 1; background: radial-gradient(closest-side, rgb(84 116 106 / .2), rgb(84 116 106 / 0)); }
.ork-route.is-arrived .ork-route__ring { animation: ork-route-pulse 2.4s var(--ork-ease) infinite; }
@keyframes ork-route-pulse {
	from { scale: 1; opacity: .9; }
	to { scale: 4; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.ork-hero-img { animation: none !important; }
	.ork-route__ring { animation: none !important; }
}
