/* Artisty: additions the PHP port needs that the static site did not.
 *
 * Kept separate from assets/css/style.css, which is the original stylesheet
 * carried over byte-for-byte. Anything in here exists because markup moved from
 * JavaScript into PHP and something had to change shape; adding it to style.css
 * would make every future diff against the original unreadable.
 *
 * Loads after style.css, so these win at equal specificity.
 */

/* Pager -------------------------------------------------------------------
 *
 * pages.js built the pager from <button> elements and toggled the boundary
 * state with the `disabled` attribute, which style.css styles via
 * .pg-btn:disabled. The server-rendered pager uses links so that paging works
 * without JavaScript and every page has a URL — and a link cannot be :disabled,
 * so the same visual state needs a class.
 */

.pg-btn.is-disabled {
	opacity: .3;
	cursor: default;
	pointer-events: none;
}

.pg-btn.is-disabled:hover {
	border-color: var(--line-2);
}

/* The opportunities pager is driven by an API total, which can be in the
 * hundreds. Rendering a button per page would wrap the row over several lines,
 * so beyond seven pages pages.js prints first, last and the current page's
 * neighbours, and marks each break with .pg-gap. Sized to a .pg-n so the
 * numbers either side keep their spacing.
 */

.pg-gap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	color: var(--muted);
	font-size: 14px;
	user-select: none;
}

/* Reel captions ------------------------------------------------------------
 *
 * A reel card used to carry a one-line title written into home.js. It now
 * carries the Instagram caption, which is free text of whatever length the
 * account posted. .reel .bot is absolutely positioned at the foot of a
 * fixed-ratio card, so an unclamped caption would grow upwards through the
 * play button and out of the frame. Three lines is what fits above it.
 *
 * style.css has no rule for .t at all, so nothing here is overriding it.
 */

.reel .bot .t {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
}

/* Reel thumbnails -----------------------------------------------------------
 *
 * style.css shows the thumbnails desaturated at rest — grayscale(1) with
 * brightness(.7) — and only partly brings the colour back on hover. That was
 * written for the stock stand-ins the track used to hold. These are now the
 * account's own reels, where the thumbnail is what tells one card from another,
 * so it is shown in full colour from the start. The hover rule is restated
 * because style.css sets a filter there too; without it, hovering would dim
 * every card the moment the pointer crossed it. The hover zoom is untouched.
 */

.reel img,
.reel:hover img {
	filter: none;
}

/* FTII seminar landing ------------------------------------------------------
 * The event uses a light hero below the shared fixed header. Give that page's
 * header its own dark surface so the logo and navigation remain legible. */

body[data-event="seminar"] .site-header,
body[data-event="seminar"] .site-header.is-light {
	background: rgba(18, 4, 48, .96);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	color: #fff;
	box-shadow: 0 1px 0 rgba(255, 255, 255, .12);
}

body[data-event="seminar"] .site-header .nav-link {
	opacity: .96;
}

/* Event gallery modal -------------------------------------------------------
 *
 * The Film Expo India 2026 gallery, ported from the live theme's stylesheet
 * (.event-gallery* in artisty-live/.../css/styles.css). The markup is built by
 * pages.js with the live class names, so these rules apply as written apart
 * from four substitutions:
 *
 *   --primary            -> --green  (#9ae334)
 *   --primary-foreground -> --ink    (#0a0a0a)
 *   --font-display       -> --display ("Outfit")
 *   z-index 130          -> 400
 *
 * The live theme had nothing above the modal at 130. Here .site-header is 100,
 * a pill tooltip 200 and .kchat 300, so 130 would let the KalaAI chat bubble
 * sit on top of the lightbox. A modal dialog belongs above all of them.
 */

.event-gallery {
	position: fixed;
	inset: 0;
	z-index: 400;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(0.75rem, 3vw, 2rem);
}

.event-gallery[hidden] {
	display: none;
}

.event-gallery__scrim {
	position: absolute;
	inset: 0;
	background: rgba(6, 6, 12, 0.78);
	backdrop-filter: blur(10px);
}

.event-gallery__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(72rem, 100%);
	/* Fixed height keeps the modal (and the day tabs) from shifting when a
	   tab with fewer/more photos changes the grid's scroll height. */
	height: min(90vh, 60rem);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 1.75rem;
	background: #0c0c10;
	box-shadow: 0 48px 140px rgba(0, 0, 0, 0.55);
	animation: event-gallery-in 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes event-gallery-in {
	from {
		opacity: 0;
		transform: translateY(1.25rem) scale(0.97);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.event-gallery__dialog {
		animation: none;
	}
}

.event-gallery__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.5rem 1.5rem 1rem;
}

@media (min-width: 640px) {
	.event-gallery__header {
		padding: 2rem 2rem 1.25rem;
	}
}

.event-gallery__eyebrow {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--green);
}

.event-gallery__title {
	margin: 0.4rem 0 0;
	font-family: var(--display);
	font-size: clamp(1.5rem, 3.4vw, 2.15rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.03em;
	color: #fff;
}

.event-gallery__meta {
	margin: 0.45rem 0 0;
	font-size: 0.9rem;
	letter-spacing: -0.01em;
	color: rgba(255, 255, 255, 0.6);
}

.event-gallery__close,
.event-gallery__lb-close {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.event-gallery__close:hover,
.event-gallery__lb-close:hover {
	background: #fff;
	border-color: #fff;
	color: #0c0c10;
}

.event-gallery__close:focus-visible,
.event-gallery__tab:focus-visible,
.event-gallery__item:focus-visible,
.event-gallery__lb-close:focus-visible,
.event-gallery__lb-nav:focus-visible {
	outline: 2px solid var(--green);
	outline-offset: 2px;
}

.event-gallery__tabs {
	display: flex;
	gap: 0.4rem;
	padding: 0 1.5rem 1.1rem;
	overflow-x: auto;
	scrollbar-width: none;
}

@media (min-width: 640px) {
	.event-gallery__tabs {
		padding: 0 2rem 1.25rem;
	}
}

.event-gallery__tabs::-webkit-scrollbar {
	display: none;
}

.event-gallery__tab {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.06);
	padding: 0.42rem 0.9rem;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: rgba(255, 255, 255, 0.75);
	cursor: pointer;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.event-gallery__tab:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.event-gallery__tab.is-active {
	background: var(--green);
	border-color: var(--green);
	color: var(--ink);
}

.event-gallery__tab-count {
	font-size: 0.7rem;
	opacity: 0.65;
}

.event-gallery__scroll {
	flex: 1;
	padding: 0 1.5rem 1.5rem;
	overflow-y: auto;
	/* Reserves scrollbar space so the grid doesn't shift horizontally when a
	   day tab changes whether the content overflows. */
	scrollbar-gutter: stable;
}

@media (min-width: 640px) {
	.event-gallery__scroll {
		padding: 0 2rem 2rem;
	}
}

.event-gallery__grid {
	column-gap: 0.7rem;
	columns: 2;
}

@media (min-width: 640px) {
	.event-gallery__grid {
		columns: 3;
	}
}

@media (min-width: 1100px) {
	.event-gallery__grid {
		columns: 4;
	}
}

.event-gallery__item {
	position: relative;
	margin: 0 0 0.7rem;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 0.9rem;
	background: #14141a;
	break-inside: avoid;
	cursor: zoom-in;
}

.event-gallery__item img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 0.45s ease;
}

.event-gallery__item:hover img,
.event-gallery__item:focus-visible img {
	transform: scale(1.045);
}

.event-gallery__item-tag {
	position: absolute;
	bottom: 0.55rem;
	left: 0.55rem;
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: rgba(0, 0, 0, 0.5);
	padding: 0.22rem 0.6rem;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #fff;
	opacity: 0;
	transition: opacity 0.2s;
	backdrop-filter: blur(8px);
}

.event-gallery__item:hover .event-gallery__item-tag,
.event-gallery__item:focus-visible .event-gallery__item-tag {
	opacity: 1;
}

/* Event gallery lightbox */
.event-gallery__lightbox {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(3.5rem, 7vw, 4.5rem) clamp(3.5rem, 7vw, 5rem);
	background: rgba(5, 5, 10, 0.94);
}

.event-gallery__lightbox[hidden] {
	display: none;
}

.event-gallery__lb-figure {
	display: flex;
	max-width: 100%;
	flex-direction: column;
	align-items: center;
	gap: 0.9rem;
	margin: 0;
}

.event-gallery__lb-figure img {
	max-width: min(64rem, 100%);
	max-height: 72vh;
	border-radius: 1rem;
	object-fit: contain;
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}

.event-gallery__lb-caption {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.85rem;
	letter-spacing: -0.01em;
	color: rgba(255, 255, 255, 0.7);
}

.event-gallery__lb-day {
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--green);
}

.event-gallery__lb-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
}

.event-gallery__lb-nav {
	position: absolute;
	top: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	cursor: pointer;
	transform: translateY(-50%);
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.event-gallery__lb-nav:hover {
	background: var(--green);
	border-color: var(--green);
	color: var(--ink);
}

.event-gallery__lb-nav--prev {
	left: clamp(0.5rem, 2vw, 1.5rem);
}

.event-gallery__lb-nav--next {
	right: clamp(0.5rem, 2vw, 1.5rem);
}

@media (max-width: 480px) {
	.event-gallery__lb-nav {
		width: 2.3rem;
		height: 2.3rem;
	}
}

/* Card gallery preview ------------------------------------------------------
 *
 * style.css owns the grid (.ev .gal) — a 4-up row of 4:3 boxes with the images
 * under a grayscale filter — and that is left alone except for the two rules
 * below.
 *
 * The ratio override is not cosmetic. These are not raw photographs: the
 * gallery is 23 pre-designed 1080x1350 social cards, each carrying the Artisty
 * and Film Expo India logos above a "Snippets from day N" title. Covering a 4:5
 * card into a 4:3 box crops 270px off the top and bottom, which cuts the title
 * in half mid-glyph. 4:5 lets the whole card through, as the modal shows it.
 *
 * The filter is cleared for the same reason: grayscale was written for the
 * stock stand-ins this grid used to hold, and on the real cards it desaturates
 * the green Artisty and Film Expo branding that makes them readable as event
 * recaps. Same specificity as style.css, won by load order.
 *
 * pages.js also turns .gal into a second trigger for the modal, so the preview
 * is a control and has to look and behave like one.
 */

.ev .gal > div {
	aspect-ratio: 4 / 5;
}

.ev .gal img {
	filter: none;
}

.ev .gal[data-gallery-trigger] {
	cursor: pointer;
}

.ev .gal[data-gallery-trigger]:focus-visible {
	outline: 2px solid var(--green);
	outline-offset: 3px;
}

/* Multi-select filters -----------------------------------------------------
 *
 * The Department and City filters on /open-opportunities/ send several values at
 * once, which a native <select multiple> can only express with ctrl-click and
 * cannot be styled at all. So they are a button and a panel of checkboxes; the
 * button restates the pill from .fb-row .select select in style.css rather than
 * borrowing .select, and the reason is the chevron.
 *
 * .select::after draws the pill's chevron, positioned against the nearest
 * positioned ancestor. At phone width the panel is deliberately anchored to the
 * whole .fb-row instead of to the control — a half-width control leaves a panel
 * too narrow for a department name, and which half it lands in depends on where
 * the row wraps. That needs .ms to stop being a positioning context, and moving
 * the chevron to .ms-btn (which keeps its own) is what lets it. The markup is
 * .ms with no .select for the same reason: two chevrons otherwise.
 *
 * Nothing here sets `display` on .ms itself: pages.js hides a filter that has no
 * options by setting the `hidden` property, which only wins while the UA rule
 * for [hidden] is unopposed.
 */

.ms {
	position: relative;
}

.ms-btn {
	position: relative;
	display: flex;
	align-items: center;
	height: 44px;
	max-width: 100%;
	padding: 0 44px 0 18px;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	background: #fff;
	color: var(--ink);
	font-size: 14.5px;
	text-align: left;
	cursor: pointer;
	transition: border-color .3s;
}

.ms-btn:hover {
	border-color: var(--ink);
}

.ms.open .ms-btn {
	border-color: var(--green-ink);
}

.ms-btn:focus-visible {
	outline: 2px solid var(--green-ink);
	outline-offset: 2px;
}

/* Same geometry as .select::after, on the button so it cannot follow the panel
   when .ms stops being the positioning context on small screens. */

.ms-btn::after {
	content: "";
	position: absolute;
	right: 18px;
	top: 50%;
	width: 7px;
	height: 7px;
	border-right: 1.5px solid var(--ink);
	border-bottom: 1.5px solid var(--ink);
	transform: translateY(-70%) rotate(45deg);
	transition: transform .3s var(--ease);
	pointer-events: none;
}

.ms.open .ms-btn::after {
	transform: translateY(-30%) rotate(-135deg);
}

.ms-label {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ms-panel {
	display: none;
	position: absolute;
	z-index: 20;
	top: calc(100% + 8px);
	left: 0;
	min-width: 260px;
	max-width: min(340px, calc(100vw - 32px));
	max-height: min(300px, 60vh);
	overflow: hidden;
	overscroll-behavior: contain;
	padding: 8px;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: #fff;
	box-shadow: 0 18px 40px rgba(10, 10, 10, .13);
}

/* The panel is a column: search box, scrolling rows, Clear. The rows scroll
   rather than the panel so the search box and Clear stay put — with every
   Indian city in the list, scrolling the box out of reach is the one thing
   that would make it useless. */

.ms.open .ms-panel {
	display: flex;
	flex-direction: column;
}

.ms-opts {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.ms-search {
	flex: 0 0 auto;
	width: 100%;
	margin: 0 0 6px;
	padding: 9px 12px;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	background: var(--paper);
	color: var(--ink);
	font: inherit;
	font-size: 14px;
}

.ms-search:focus {
	outline: 2px solid var(--green-ink);
	outline-offset: -2px;
	background: #fff;
}

.ms-none {
	padding: 14px 10px;
	color: var(--muted);
	font-size: 13.5px;
}

.ms-opt {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 10px;
	border-radius: var(--r-sm);
	font-size: 14px;
	cursor: pointer;
	transition: background .2s;
}

.ms-opt:hover {
	background: var(--paper);
}

.ms-opt input {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	accent-color: var(--green-ink);
	cursor: pointer;
}

.ms-opt span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ms-clear {
	width: 100%;
	margin-top: 6px;
	padding: 9px 10px 3px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 13px;
	text-align: left;
	transition: color .2s;
}

.ms-clear:hover {
	color: var(--ink);
}

.ms-clear:focus-visible {
	outline: 2px solid var(--green-ink);
	outline-offset: -2px;
	border-radius: var(--r-sm);
}

/* Phone width: the row wraps to two controls per line, so the panel is anchored
   to the row itself and spans it. .fb-row is the positioning context here and
   .ms gives it up — see the note at the top. It is also the case where a panel
   opening downwards has the least room, hence the vh cap. */

@media (max-width: 680px) {
	.fb-row {
		position: relative;
	}

	.ms {
		position: static;
		flex: 1 1 calc(50% - 12px);
	}

	.ms-panel {
		left: 14px;
		right: 14px;
		min-width: 0;
		max-width: none;
	}
}

/* Opportunity skeletons ----------------------------------------------------
 *
 * The listing is fetched, so its first paint was an empty grid. pages.js now
 * paints placeholder cards into it, and they are built from .lcard itself —
 * the box, border, padding and gap are the real card's, so the grid holds the
 * exact height the results will take and nothing moves when they arrive. Only
 * the contents are drawn here.
 *
 * A sweeping highlight rather than a pulsing opacity: these sit on white, and a
 * pulse reads as a rendering fault at the same frequency as a real glitch.
 */

.opp-card.is-skeleton {
	cursor: default;
	pointer-events: none;
}

.sk {
	/* Named because .lcard .facts span sets the `background` shorthand, which
	   resets background-image — the chip bar below has to put the sweep back. */
	--sk-sweep: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .85) 50%, transparent 70%);
	display: block;
	border-radius: 6px;
	background-color: var(--line);
	background-image: var(--sk-sweep);
	background-size: 220% 100%;
	background-repeat: no-repeat;
	animation: sk-sweep 1.3s linear infinite;
}

@keyframes sk-sweep {
	from { background-position: 160% 0; }
	to { background-position: -60% 0; }
}

/* Sized to the real elements they stand in for: the kind pill, the department
   label, the timestamp and the two title lines. */
.sk-pill { width: 62px; height: 24px; border-radius: 999px; }
.sk-dept { width: 46px; height: 11px; }
.sk-when { width: 42px; height: 10px; }
.sk-title { width: 78%; height: 15px; margin-top: 2px; }
.sk-short { width: 52%; }
.sk-pay { width: 42px; height: 13px; }
.sk-apply { width: 76px; height: 34px; border-radius: 999px; }

/* The two fact chips. More specific than both .sk and .lcard .facts span on
   purpose: that rule's `background` shorthand resets the size and repeat as
   well as the image, so all four have to be restored here — the chip keeps its
   own dimensions and gets the sweep back. */
.opp-card .facts span.sk {
	width: 64px;
	padding: 0;
	border-radius: 999px;
	background-color: var(--paper-2);
	background-image: var(--sk-sweep);
	background-size: 220% 100%;
	background-repeat: no-repeat;
}

/* While a request is in flight the grid is aria-busy, and the cards already on
   it dim instead of being replaced — so a filter change is acknowledged even
   though the previous page stays until the new one lands. Skeletons are left
   alone; they are the busy state already. */
#results .opp-card {
	transition: opacity .18s, border-color .4s, box-shadow .5s var(--ease);
}

#results[aria-busy="true"] .opp-card:not(.is-skeleton) {
	opacity: .45;
}

@media (prefers-reduced-motion: reduce) {
	.sk {
		animation: none;
	}

	#results .opp-card {
		transition: none;
	}
}

/* The home hero's placeholders -------------------------------------------------
 *
 * home.js paints these before its first request answers, for the same reason as
 * the grid above — but .pcard is a dark translucent card, so the bars are drawn
 * light instead of in --line, and the sweep is a pale highlight over them.
 */

.pcard.is-skeleton {
	cursor: default;
	pointer-events: none;
}

.pcard.is-skeleton .sk {
	background-color: rgba(255, 255, 255, .12);
	--sk-sweep: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .12) 50%, transparent 70%);
}

.sk-h1 { width: 68%; height: 13px; }
.sk-h2 { width: 42%; height: 10px; }
.sk-h3 { width: 56%; height: 10px; }


/* Articles imported from the live site ----------------------------------------
 *
 * A WXR import brings Word-pasted bodies: no ids on the <h2>s, so
 * artisty_article_toc() finds nothing, and an empty first grid column would
 * squeeze .prose into 160–200px. The template adds .no-toc in exactly that
 * case. The rule sits in a min-width query so the two mobile breakpoints in
 * style.css — which already collapse the grid — keep winning at small widths.
 *
 * Those bodies also carry images with no width attribute, which would
 * otherwise render at their full upload size and overflow the 680px column.
 */
.prose img {
	max-width: 100%;
	height: auto;
}

@media (min-width:1101px) {
	.article-grid.no-toc {
		/* Same 680px cap as the three-column grid, so the article and the CTA
		   card stay one gap apart instead of a track apart. */
		grid-template-columns: minmax(0, 680px) minmax(220px, 260px);
	}
}


/* Creatives panel screenshots -------------------------------------------------
 *
 * Each #creatives tab shows the product screen for its own feature, captured
 * from the app rather than rebuilt in markup. On desktop the screen sits in a
 * browser-window frame that runs off the panel's right edge: a dark chrome bar
 * with three dots, the panel's own radius on the left corners, and the shot
 * filling the frame's height instead of leaving a band of ink underneath it.
 *
 * Verification is the one tab that keeps its badge: the panel is there to say
 * "cleared", so the Artisty Verified banner sits above the assessment screen
 * instead of being left to the caption.
 */
.cp-shot {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--r-xl);
}

.badge-big + .cp-shot {
	margin-top: 18px;
}

@media (min-width:1101px) {
	/* Give the screen a little more of the panel than the text column. */
	#creatives .cpanel {
		grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
	}

	/* The window runs to the panel's right edge — no padding on that side. */
	#creatives .cp-stage {
		width: calc(100% + clamp(18px, 3vw, 40px));
		margin-right: calc(-1 * clamp(18px, 3vw, 40px));
	}

	/*
	 * The screenshot is framed as a browser window: a dark, slightly
	 * translucent body with a chrome bar carrying three dots. Its left corners
	 * take the panel's own radius; the right corners are square and clipped by
	 * the panel's edge, so the window goes right off the side.
	 */
	.cp-stage {
		--cp-chrome: 34px;
		border-radius: var(--r-xl) 0 0 var(--r-xl);
		overflow: hidden;
		background: rgba(10, 10, 10, .55);
	}

	.cp-stage::before {
		content: "";
		position: absolute;
		inset: 0 0 auto;
		height: var(--cp-chrome);
		z-index: 3;
		background-color: rgba(0, 0, 0, .3);
		background-image:
			radial-gradient(circle at 18px 50%, rgba(255, 255, 255, .3) 4px, transparent 4.4px),
			radial-gradient(circle at 38px 50%, rgba(255, 255, 255, .2) 4px, transparent 4.4px),
			radial-gradient(circle at 58px 50%, rgba(255, 255, 255, .13) 4px, transparent 4.4px);
	}

	/*
	 * The text column is taller than a screenshot at the column's own width,
	 * so the stage used to reserve its height and leave a band of empty ink
	 * under the shot. The scene fills the stage below the chrome instead, and
	 * the shot takes the height that is left — cropping from the right or
	 * bottom when cover has to, with the top-left of the screen kept in frame.
	 */
	.cp-stage > .cp-scene.on {
		position: absolute;
		inset: var(--cp-chrome) 0 0 0;
		display: flex;
		flex-direction: column;
	}

	.cp-stage > .cp-scene.on > .cp-shot {
		flex: 1 1 auto;
		height: 0;
		min-height: 0;
		border-radius: 0;
		object-fit: cover;
		object-position: top left;
	}

	.cp-stage > .cp-scene.on > .badge-big {
		flex: none;
		margin: 16px 16px 0;
	}
}

/*
 * Below 1101px the panel is one column, so the stage has no spare height to
 * fill — it should simply be as tall as the shot. Drop the fixed 380–480px
 * floors that used to reserve empty space underneath it.
 */
@media (max-width:1100px) {
	.cp-stage {
		min-height: 0;
	}
}


/* Reel player ----------------------------------------------------------------
 *
 * The homepage reel cards open the reel in a lightbox instead of sending the
 * visitor to Instagram. The embed iframe is created on open and removed on
 * close, so playback stops with the dialog. 400 is the dialog layer already
 * used by the event gallery — above the header (100), tooltips (200) and the
 * KalaAI chat (300).
 */
html.reel-lock {
	overflow: hidden;
}

.reel-modal {
	position: fixed;
	inset: 0;
	z-index: 400;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(12px, 3vw, 32px);
}

.reel-modal[hidden] {
	display: none;
}

.reel-modal-scrim {
	position: absolute;
	inset: 0;
	padding: 0;
	border: 0;
	background: rgba(6, 6, 12, .82);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	cursor: pointer;
}

.reel-modal-box {
	position: relative;
	z-index: 1;
	width: min(420px, 100%);
	height: min(86vh, 760px);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 22px;
	background: #0c0c10;
	box-shadow: 0 40px 120px rgba(0, 0, 0, .6);
}

.reel-modal-frame,
.reel-modal-frame iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	background: #000;
}

.reel-modal-x {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 50%;
	background: rgba(8, 8, 8, .72);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.reel-modal-x:hover {
	background: rgba(20, 20, 20, .9);
}
body[data-event="seminar"] #event-seminar .hero {
  display: block;
  height: auto;
  min-height: 0;
  align-items: initial;
  padding: 90px 0 56px;
}

body[data-event="seminar"] #event-seminar .hero .wrap {
  position: relative;
  z-index: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  flex: initial;
  width: auto;
  min-height: 0;
}

@media (max-width: 1080px) {
  body[data-event="seminar"] #event-seminar .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
}