/* =========================================================================
   Stepmedia — site styles (light)
   Brand palette taken from the existing logo and site:
   Step yellow #EFC434 · logo indigo #25286A · signal blue #3F61A7
   heading navy #18223D · logo core #0E1B16 (used only inside the star)
   Page ground is white; colour comes from the brand blocks and the star.
   Interface conventions follow Apple's Human Interface Guidelines:
   system text face at 17px body, large titles, translucent materials,
   44pt minimum targets, segmented controls, sheets, spring motion.
   ========================================================================= */

/* Big Shoulders Display (SIL Open Font Licence) — self-hosted: faster, and no visitor data sent to Google. */
@font-face {
	font-family: "Big Shoulders Display";
	src: url("../fonts/big-shoulders-display.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

.sm-root {
	/* Brand */
	--sm-yellow: #EFC434;
	--sm-yellow-hi: #F6D561;
	--sm-yellow-ink: #6A5100;   /* readable text on pale yellow */
	--sm-indigo: #25286A;
	--sm-blue: #3F61A7;
	--sm-blue-lo: #34528F;
	--sm-navy: #18223D;
	--sm-core: #0E1B16;         /* logo core only */

	/* Light ground */
	--sm-bg: #FFFFFF;
	--sm-surface: #F5F6FA;      /* alternating sections */
	--sm-raised: #FFFFFF;       /* cards on the surface */
	--sm-fg: #18223D;           /* headings & body */
	--sm-fg-2: #4A5470;         /* secondary text */
	--sm-fg-3: #6B7389;         /* captions */
	--sm-line: rgba(24, 34, 61, .12);
	--sm-line-strong: rgba(24, 34, 61, .24);
	--sm-field: #CDD2DE;
	--sm-on-dark: #FFFFFF;
	--sm-on-dark-2: #D3D6F0;    /* secondary text on indigo/blue */
	--sm-danger: #B42318;
	--sm-ok: #1F7A4D;

	--sm-display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif;
	--sm-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;

	/* HIG-style type ramp (rem; scales with the visitor's text-size setting). */
	--sm-fs-caption: .8125rem;
	--sm-fs-footnote: .875rem;
	--sm-fs-sub: .9375rem;
	--sm-fs-body: 1.0625rem;
	--sm-fs-lede: clamp(1.125rem, 1rem + .4vw, 1.3125rem);
	--sm-fs-h4: 1.25rem;
	--sm-fs-h3: clamp(1.625rem, 1.3rem + 1vw, 2.125rem);
	--sm-fs-h2: clamp(2.5rem, 1.5rem + 3.6vw, 4.75rem);
	--sm-fs-hero: clamp(3.75rem, 1.6rem + 8.2vw, 9.25rem);

	/* Radius hierarchy: containers > cards > controls. */
	--sm-r-sheet: 28px;
	--sm-r-panel: 24px;
	--sm-r-card: 18px;
	--sm-r-input: 12px;
	--sm-r-pill: 999px;

	--sm-spring: cubic-bezier(.32, .72, 0, 1);   /* iOS sheet curve */
	--sm-out: cubic-bezier(.2, .8, .2, 1);
	--sm-in: cubic-bezier(.4, 0, 1, 1);
	--sm-t-fast: 160ms;
	--sm-t-med: 320ms;
	--sm-t-slow: 640ms;

	--sm-gutter: clamp(16px, 4vw, 40px);
	--sm-section: clamp(72px, 9vw, 136px);
	--sm-shadow-1: 0 1px 2px rgba(24, 34, 61, .06), 0 4px 14px rgba(24, 34, 61, .06);
	--sm-shadow-2: 0 2px 6px rgba(24, 34, 61, .08), 0 20px 44px rgba(24, 34, 61, .12);

	font-family: var(--sm-text);
	font-size: var(--sm-fs-body);
	line-height: 1.5;
	color: var(--sm-fg);
	background: var(--sm-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

html:has(body.sm-page), body.sm-page { margin: 0; background: #FFFFFF; color: #18223D; }
html:has(body.sm-page) { scroll-behavior: smooth; scroll-padding-top: 84px; }

:where(.sm-root) *, :where(.sm-root) *::before, :where(.sm-root) *::after { box-sizing: border-box; }
:where(.sm-root) :where(img, video, svg) { display: block; max-width: 100%; }
:where(.sm-root) :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
:where(.sm-root) :where(ul, ol) { padding: 0; list-style: none; }
:where(.sm-root) :where(a) { color: inherit; }
:where(.sm-root) :where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(.sm-root) :focus-visible { outline: 3px solid var(--sm-blue); outline-offset: 3px; border-radius: 6px; }
.sm-root .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sm-root [hidden] { display: none !important; }
.sm-icon { flex: none; }

.sm-skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--sm-navy); color: var(--sm-on-dark); padding: 12px 18px; border-radius: var(--sm-r-pill); font-weight: 700; text-decoration: none; transition: top var(--sm-t-fast); }
.sm-skip:focus { top: 12px; }

.sm-wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--sm-gutter); }
main:focus { outline: none; }

/* ---------- Type ---------- */
.sm-h2 { font-family: var(--sm-display); font-weight: 800; font-size: var(--sm-fs-h2); line-height: .94; letter-spacing: -.005em; color: var(--sm-fg); text-wrap: balance; }
.sm-h3 { font-family: var(--sm-display); font-weight: 700; font-size: var(--sm-fs-h3); line-height: 1.02; text-wrap: balance; }
.sm-h4 { font-size: var(--sm-fs-h4); font-weight: 650; line-height: 1.25; }
.sm-lede { font-size: var(--sm-fs-lede); line-height: 1.45; color: var(--sm-fg-2); max-width: 34em; text-wrap: pretty; }

/* ---------- Buttons ---------- */
.sm-btn {
	--bg: var(--sm-surface); --fg: var(--sm-fg); --bd: transparent;
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 44px; padding: 10px 22px; border-radius: var(--sm-r-pill);
	background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd);
	font-weight: 650; font-size: var(--sm-fs-sub); line-height: 1.2; text-decoration: none; white-space: nowrap;
	cursor: pointer; -webkit-tap-highlight-color: transparent;
	transition: background-color var(--sm-t-fast) var(--sm-out), color var(--sm-t-fast), border-color var(--sm-t-fast), transform var(--sm-t-fast) var(--sm-out), box-shadow var(--sm-t-med) var(--sm-out);
}
.sm-btn:active { transform: scale(.97); }
.sm-btn--yellow { --bg: var(--sm-yellow); --fg: var(--sm-navy); }
.sm-btn--yellow:hover { --bg: var(--sm-yellow-hi); box-shadow: 0 8px 24px rgba(214, 170, 24, .35); }
.sm-btn--ghost { --bg: transparent; --fg: var(--sm-fg); --bd: var(--sm-line-strong); }
.sm-btn--ghost:hover { --bg: rgba(24, 34, 61, .05); --bd: var(--sm-navy); }
.sm-btn--dark { --bg: var(--sm-navy); --fg: var(--sm-on-dark); }
.sm-btn--dark:hover { --bg: var(--sm-indigo); }
.sm-btn--plain { --bg: transparent; --fg: var(--sm-blue); padding-inline: 12px; }
.sm-btn--plain:hover { --bg: rgba(63, 97, 167, .1); }
.sm-btn--soft { --bg: rgba(24, 34, 61, .07); --fg: var(--sm-navy); }
.sm-btn--soft:hover { --bg: rgba(24, 34, 61, .12); }
.sm-btn--sm { min-height: 40px; padding: 8px 18px; font-size: var(--sm-fs-footnote); }
.sm-btn--lg { min-height: 54px; padding: 14px 30px; font-size: var(--sm-fs-body); }
.sm-btn--block { display: flex; width: 100%; }
.sm-icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--sm-line-strong); background: transparent; color: var(--sm-fg); cursor: pointer; transition: background-color var(--sm-t-fast), opacity var(--sm-t-fast), transform var(--sm-t-fast); }
.sm-icon-btn:hover { background: rgba(24, 34, 61, .06); }
.sm-icon-btn:active { transform: scale(.94); }
.sm-icon-btn:disabled { opacity: .35; cursor: default; }
.sm-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* On the indigo and blue brand blocks, controls invert. */
.sm-embed--indigo .sm-btn--ghost { --fg: var(--sm-on-dark); --bd: rgba(255, 255, 255, .4); }
.sm-block--blue :focus-visible, .sm-block--indigo :focus-visible { outline-color: var(--sm-yellow); }
.sm-block--yellow :focus-visible { outline-color: var(--sm-navy); }

/* ---------- Navigation (translucent material) ---------- */
.sm-nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0); transition: background-color var(--sm-t-med), box-shadow var(--sm-t-med); }
.sm-nav.is-scrolled, .sm-nav.is-open { background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 1px 0 var(--sm-line); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .sm-nav.is-scrolled, .sm-nav.is-open { background: rgba(255, 255, 255, .97); } }
.sm-nav__bar { display: flex; align-items: center; gap: 24px; height: 72px; transition: height var(--sm-t-med) var(--sm-out); }
.sm-nav.is-scrolled .sm-nav__bar { height: 60px; }
.sm-nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-height: 44px; color: var(--sm-fg); }
.sm-nav__mark { width: 36px; height: 36px; transition: transform var(--sm-t-slow) var(--sm-spring); }
.sm-nav__brand:hover .sm-nav__mark { transform: rotate(60deg); }
.sm-nav__word { font-family: var(--sm-display); font-weight: 800; font-size: 1.5rem; letter-spacing: .01em; }
.sm-nav__list { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.sm-nav__list a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; text-decoration: none; font-size: var(--sm-fs-sub); font-weight: 550; color: var(--sm-fg-2); transition: color var(--sm-t-fast), background-color var(--sm-t-fast); }
.sm-nav__list a:hover { color: var(--sm-fg); background: rgba(24, 34, 61, .05); }
.sm-nav__toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 12px; cursor: pointer; }
.sm-nav__burger { position: relative; display: block; width: 22px; height: 14px; margin: auto; }
.sm-nav__burger span { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--sm-fg); transition: transform var(--sm-t-med) var(--sm-spring), top var(--sm-t-med) var(--sm-spring); }
.sm-nav__burger span:first-child { top: 2px; }
.sm-nav__burger span:last-child { top: 10px; }
.sm-nav__toggle[aria-expanded="true"] .sm-nav__burger span:first-child { top: 6px; transform: rotate(45deg); }
.sm-nav__toggle[aria-expanded="true"] .sm-nav__burger span:last-child { top: 6px; transform: rotate(-45deg); }
.sm-menu { padding: 8px 0 24px; border-top: 1px solid var(--sm-line); }
.sm-menu .sm-wrap { display: grid; gap: 10px; }
.sm-menu__list a { display: flex; align-items: center; min-height: 52px; font-family: var(--sm-display); font-weight: 700; font-size: 1.75rem; text-decoration: none; color: var(--sm-fg); border-bottom: 1px solid var(--sm-line); }
.sm-menu.is-entering .sm-menu__list li { animation: sm-rise var(--sm-t-med) var(--sm-out) both; animation-delay: calc(var(--i, 0) * 40ms); }

@media (max-width: 960px) {
	.sm-nav__links, .sm-nav__cta { display: none; }
	.sm-nav__toggle { display: block; }
}

/* ---------- Hero ---------- */
.sm-hero { position: relative; overflow: clip; margin-top: -72px; padding: calc(72px + clamp(48px, 9vh, 120px)) 0 clamp(40px, 6vw, 72px); min-height: min(100svh, 980px); display: flex; flex-direction: column; justify-content: center; isolation: isolate; background: var(--sm-bg); }
.sm-hero__media { position: absolute; inset: 0; z-index: -2; }
.sm-hero__media img, .sm-hero__media video { width: 100%; height: 100%; object-fit: cover; }
.sm-hero__media video { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--sm-out); }
.sm-hero__media video.is-playing { opacity: 1; }
/* With a photo or video, the text side washes to white so copy stays readable. */
.sm-hero--media .sm-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .88) 42%, rgba(255, 255, 255, .2) 100%), linear-gradient(0deg, rgba(255, 255, 255, .95), transparent 35%); }
/* Faint triangular lattice drawn from the logo geometry. */
.sm-hero__lattice { position: absolute; inset: 0; z-index: -1; opacity: .09; pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='138.56' viewBox='0 0 80 138.56'%3E%3Cpath d='M0 0 L40 69.28 L80 0 M0 138.56 L40 69.28 L80 138.56 M0 69.28 H80' fill='none' stroke='%233F61A7' stroke-width='1'/%3E%3C/svg%3E");
	background-size: 80px 138.56px;
	-webkit-mask-image: radial-gradient(ellipse at 75% 45%, #000 0%, transparent 65%); mask-image: radial-gradient(ellipse at 75% 45%, #000 0%, transparent 65%); }
.sm-hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 64px); }
.sm-hero__title { font-family: var(--sm-display); font-weight: 900; font-size: var(--sm-fs-hero); line-height: .9; letter-spacing: -.01em; color: var(--sm-navy); margin-bottom: clamp(36px, 4.4vw, 56px); }
.sm-word { display: inline-block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; vertical-align: top; }
.sm-word > span { display: inline-block; }
.sm-word:not(:last-child)::after { content: "\00a0"; }
.sm-word:not(:last-child) > span { margin-right: -.02em; }
.sm-hero__lede { font-size: var(--sm-fs-lede); line-height: 1.45; color: var(--sm-fg-2); max-width: 31em; margin-bottom: 32px; text-wrap: pretty; }
.sm-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sm-hero__stage { position: relative; display: grid; place-items: center; }
.sm-hero__mark { width: min(100%, 520px); aspect-ratio: 1; }
.sm-mark { overflow: visible; }
.sm-mark__pt { transform-box: fill-box; transform-origin: center; }
.sm-mark__pt--y { fill: var(--sm-yellow); }
.sm-mark__pt--i { fill: var(--sm-indigo); }
.sm-mark__pt--b { fill: var(--sm-blue); }
.sm-mark__core { fill: var(--sm-core); }
.sm-mark__word { fill: #FFFFFF; font-family: var(--sm-display); font-weight: 900; font-size: 38px; letter-spacing: .02em; }
.sm-mark--hero { width: 100%; height: 100%; filter: drop-shadow(0 30px 60px rgba(37, 40, 106, .22)); }

/* Scroll-linked turn of the star as the hero leaves (no JavaScript needed). */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.sm-hero__mark { animation: sm-turn linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
	}
}
@keyframes sm-turn { to { transform: rotate(40deg) translateY(12%) scale(.86); opacity: .2; } }

.sm-next { margin-top: clamp(40px, 7vh, 80px); display: flex; align-items: center; gap: 18px; max-width: 560px; padding: 14px 18px 14px 14px; border-radius: var(--sm-r-panel); text-decoration: none; color: var(--sm-fg);
	background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px); border: 1px solid var(--sm-line); box-shadow: var(--sm-shadow-1);
	transition: box-shadow var(--sm-t-med), transform var(--sm-t-med) var(--sm-spring), border-color var(--sm-t-med); }
.sm-next:hover { border-color: var(--sm-line-strong); box-shadow: var(--sm-shadow-2); transform: translateY(-2px); }
.sm-next__date { display: grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 16px; background: var(--sm-yellow); color: var(--sm-navy); font-size: var(--sm-fs-caption); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; line-height: 1; }
.sm-next__date b { font-family: var(--sm-display); font-size: 1.9rem; font-weight: 900; letter-spacing: 0; }
.sm-next__body { display: grid; gap: 2px; min-width: 0; }
.sm-next__kicker { font-size: var(--sm-fs-caption); font-weight: 650; color: var(--sm-blue); display: flex; gap: 10px; }
.sm-next__kicker em { font-style: normal; color: var(--sm-yellow-ink); background: rgba(239, 196, 52, .3); padding: 0 8px; border-radius: 6px; }
.sm-next__title { font-weight: 650; font-size: var(--sm-fs-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-next__meta { font-size: var(--sm-fs-footnote); color: var(--sm-fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-next__go { margin-left: auto; color: var(--sm-fg-3); transition: transform var(--sm-t-med) var(--sm-spring), color var(--sm-t-fast); }
.sm-next:hover .sm-next__go { transform: translateX(4px); color: var(--sm-blue); }

.sm-hero__pause { position: absolute; right: var(--sm-gutter); bottom: 24px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--sm-line); display: grid; place-items: center; cursor: pointer; color: var(--sm-fg); background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

@media (max-width: 860px) {
	.sm-hero { min-height: auto; }
	.sm-hero__grid { grid-template-columns: minmax(0, 1fr); }
	.sm-hero__stage { order: -1; justify-items: start; }
	.sm-hero__mark { width: clamp(120px, 34vw, 200px); }
}

/* ---------- The one orchestrated entrance: the star assembles, then the headline lands. ---------- */
@media (prefers-reduced-motion: no-preference) {
	.sm-js .sm-mark--hero .sm-mark__pt { animation: sm-pt-in 1100ms var(--sm-spring) both; animation-delay: calc(120ms + var(--i) * 70ms); }
	.sm-js .sm-mark--hero .sm-mark__core { transform-box: fill-box; transform-origin: center; animation: sm-core-in 700ms var(--sm-spring) both 560ms; }
	.sm-js .sm-mark--hero .sm-mark__word { animation: sm-fade 500ms var(--sm-out) both 900ms; }
	.sm-js .sm-hero__title .sm-word > span { animation: sm-word-in 900ms var(--sm-spring) both; animation-delay: calc(700ms + var(--w) * 90ms); }
	.sm-js .sm-hero__lede { animation: sm-rise 700ms var(--sm-out) both 1150ms; }
	.sm-js .sm-hero__actions { animation: sm-rise 700ms var(--sm-out) both 1250ms; }
	.sm-js .sm-next { animation: sm-rise 800ms var(--sm-spring) both 1450ms; }
}
@keyframes sm-pt-in { from { transform: translate(calc(var(--dx) * 3), calc(var(--dy) * 3)) rotate(-120deg) scale(.4); opacity: 0; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes sm-core-in { from { transform: scale(.3) rotate(-30deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sm-word-in { from { transform: translateY(105%); } to { transform: none; } }
@keyframes sm-rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sm-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Highlights band ---------- */
.sm-proof { background: var(--sm-yellow); color: var(--sm-navy); }
.sm-proof__grid { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 24px; padding-block: clamp(28px, 4vw, 44px); }
.sm-proof__item { display: grid; gap: 2px; padding-left: 18px; border-left: 2px solid rgba(24, 34, 61, .22); }
.sm-proof__value { font-family: var(--sm-display); font-weight: 900; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1; font-variant-numeric: tabular-nums; }
.sm-proof__label { font-size: var(--sm-fs-footnote); font-weight: 550; color: rgba(24, 34, 61, .82); }
@media (max-width: 720px) { .sm-proof__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Services ---------- */
.sm-services { padding-block: var(--sm-section); background: var(--sm-bg); }
.sm-services .sm-h2 { max-width: 13em; margin-bottom: clamp(32px, 5vw, 56px); }
.sm-services__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(var(--rows, 2), auto); gap: 16px; }
.sm-services__grid--1 { grid-template-columns: minmax(0, 1fr); }
.sm-services__grid--4 .sm-block:not(.sm-block--tall) { min-height: 220px; }
.sm-block { --mx: 50%; --my: 50%; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding: clamp(28px, 3.4vw, 44px); border-radius: var(--sm-r-panel); min-height: 300px; isolation: isolate; transition: transform var(--sm-t-med) var(--sm-spring), box-shadow var(--sm-t-med); }
.sm-block:hover { box-shadow: var(--sm-shadow-2); }
.sm-block::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, .24), transparent 60%); opacity: 0; transition: opacity var(--sm-t-med); }
.sm-block:hover::before { opacity: 1; }
.sm-block--tall { grid-row: span var(--rows, 2); min-height: 520px; justify-content: flex-end; }
.sm-block--yellow { background: var(--sm-yellow); color: var(--sm-navy); }
.sm-block--blue { background: var(--sm-blue); color: var(--sm-on-dark); }
.sm-block--indigo { background: var(--sm-indigo); color: var(--sm-on-dark); }
.sm-block--navy { background: var(--sm-navy); color: var(--sm-on-dark); }
.sm-block--navy :focus-visible { outline-color: var(--sm-yellow); }
.sm-block__title { font-family: var(--sm-display); font-weight: 800; font-size: clamp(2rem, 1.4rem + 1.8vw, 3rem); line-height: .95; max-width: 11em; text-wrap: balance; }
.sm-block--tall .sm-block__title { font-size: clamp(2.5rem, 1.6rem + 3vw, 4.25rem); }
.sm-block p { max-width: 30em; opacity: .92; }
.sm-block__link { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.sm-block--tall .sm-block__link { margin-top: 8px; }
.sm-block__link::after { content: ""; position: absolute; inset: 0; } /* Whole block is the target. */
.sm-block__tri { position: absolute; z-index: -1; top: -40px; right: -40px; width: 240px; aspect-ratio: 1; background: currentColor; opacity: .07; clip-path: polygon(50% 0, 100% 86.6%, 0 86.6%); transition: transform 900ms var(--sm-spring); }
.sm-block--tall .sm-block__tri { top: 8%; right: -10%; width: 70%; }
.sm-block:hover .sm-block__tri { transform: rotate(60deg) scale(1.05); }
@media (max-width: 760px) {
	.sm-services__grid { grid-template-columns: minmax(0, 1fr); }
	.sm-block--tall { grid-row: auto; min-height: 380px; }
}

/* ---------- Events ---------- */
.sm-events { background: var(--sm-surface); color: var(--sm-fg); padding-block: var(--sm-section); }
.sm-events__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: clamp(28px, 4vw, 44px); }

/* Segmented control */
.sm-seg { position: relative; display: inline-flex; padding: 3px; border-radius: 12px; background: rgba(24, 34, 61, .08); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.sm-seg::-webkit-scrollbar { display: none; }
.sm-seg__thumb { position: absolute; top: 3px; bottom: 3px; left: 0; width: var(--w, 0); border-radius: 9px; background: var(--sm-raised); box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04); transform: translateX(var(--x, 3px)); transition: transform var(--sm-t-med) var(--sm-spring), width var(--sm-t-med) var(--sm-spring); }
.sm-seg__btn { position: relative; z-index: 1; min-height: 40px; padding: 0 16px; border: 0; background: transparent; border-radius: 9px; font-size: var(--sm-fs-footnote); font-weight: 600; color: var(--sm-fg-2); cursor: pointer; white-space: nowrap; transition: color var(--sm-t-fast); }
.sm-seg__btn[aria-pressed="true"] { color: var(--sm-navy); }
.sm-seg:not(.is-ready) .sm-seg__btn[aria-pressed="true"] { background: var(--sm-raised); box-shadow: 0 3px 8px rgba(0, 0, 0, .12); }
.sm-seg__btn:focus-visible { outline-offset: 0; }

.sm-events__list { display: grid; gap: 12px; }
.sm-ev { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(16px, 2.4vw, 28px); padding: 16px clamp(16px, 2vw, 24px) 16px 16px; border-radius: var(--sm-r-card); background: var(--sm-raised); box-shadow: var(--sm-shadow-1); transition: box-shadow var(--sm-t-med) var(--sm-out), transform var(--sm-t-med) var(--sm-spring); position: relative; }
.sm-ev:hover { box-shadow: var(--sm-shadow-2); transform: translateY(-2px); }
.sm-ev.is-muted { opacity: .72; }
.sm-ev__date { display: grid; place-items: center; align-content: center; width: 76px; height: 84px; border-radius: 14px; background: var(--sm-indigo); color: var(--sm-on-dark); line-height: 1; }
.sm-tone--yellow .sm-ev__date, .sm-next__date.sm-tone--yellow { background: var(--sm-yellow); color: var(--sm-navy); }
.sm-tone--blue .sm-ev__date, .sm-next__date.sm-tone--blue { background: var(--sm-blue); color: var(--sm-on-dark); }
.sm-tone--indigo .sm-ev__date, .sm-next__date.sm-tone--indigo { background: var(--sm-indigo); color: var(--sm-on-dark); }
.sm-tone--navy .sm-ev__date, .sm-next__date.sm-tone--navy { background: var(--sm-navy); color: var(--sm-on-dark); }
.sm-ev__day { font-family: var(--sm-display); font-weight: 900; font-size: 2.4rem; }
.sm-ev__month { font-size: var(--sm-fs-caption); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.sm-ev__body { display: grid; gap: 6px; min-width: 0; }
.sm-ev__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sm-tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 7px; font-size: var(--sm-fs-caption); font-weight: 650; background: rgba(37, 40, 106, .1); color: var(--sm-indigo); }
.sm-tag--tone-yellow { background: rgba(239, 196, 52, .3); color: var(--sm-yellow-ink); }
.sm-tag--tone-blue { background: rgba(63, 97, 167, .14); color: var(--sm-blue-lo); }
.sm-tag--tone-indigo { background: rgba(37, 40, 106, .1); color: var(--sm-indigo); }
.sm-tag--tone-navy { background: rgba(24, 34, 61, .1); color: var(--sm-navy); }
.sm-tag--status { background: var(--sm-navy); color: var(--sm-on-dark); }
.sm-tag--few { background: #FDECC8; color: #7A4B00; }
.sm-tag--cancelled { background: #FDE2E0; color: var(--sm-danger); }
.sm-tag--live { background: var(--sm-ok); color: #FFFFFF; }
.sm-ev__title { font-size: var(--sm-fs-h4); font-weight: 680; line-height: 1.25; text-wrap: balance; }
.sm-ev__title a { text-decoration: none; }
.sm-ev__title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.sm-ev__meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: var(--sm-fs-footnote); color: var(--sm-fg-2); }
.sm-ev__meta span { display: inline-flex; align-items: center; gap: 6px; }
.sm-ev__actions { display: flex; align-items: center; gap: 4px; }
.sm-events__none, .sm-events__all { margin-top: 20px; }
.sm-events__none a { color: var(--sm-blue); font-weight: 650; }
.sm-events__empty { display: grid; justify-items: start; gap: 16px; padding: clamp(28px, 4vw, 48px); border-radius: var(--sm-r-panel); background: var(--sm-raised); box-shadow: var(--sm-shadow-1); max-width: 640px; }
.sm-events__empty p { color: var(--sm-fg-2); }
.sm-events__empty strong { color: var(--sm-fg); }
.sm-ev.is-leaving { display: none; }
::view-transition-group(*) { animation-duration: 380ms; animation-timing-function: cubic-bezier(.32, .72, 0, 1); }
@media (max-width: 720px) {
	.sm-ev { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
	.sm-ev__date { width: 60px; height: 68px; }
	.sm-ev__day { font-size: 1.9rem; }
	.sm-ev__actions { grid-column: 1 / -1; justify-content: flex-start; }
	.sm-ev__actions .sm-btn--dark { flex: 1; }
}

/* ---------- Sheet (event details) ---------- */
.sm-sheet { padding: 0; border: 0; margin: 0; max-width: none; max-height: none; width: 100%; height: 100%; background: transparent; color: var(--sm-fg); overflow: hidden; }
.sm-sheet::backdrop { background: rgba(24, 34, 61, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity var(--sm-t-med) var(--sm-out); }
.sm-sheet.is-open::backdrop { opacity: 1; }
.sm-sheet__panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92svh; overflow: auto; overscroll-behavior: contain; background: var(--sm-raised); border-radius: var(--sm-r-sheet) var(--sm-r-sheet) 0 0; padding-bottom: env(safe-area-inset-bottom); transform: translateY(100%); transition: transform 420ms var(--sm-spring); font-family: var(--sm-text); box-shadow: 0 -10px 40px rgba(24, 34, 61, .15); }
.sm-sheet.is-open .sm-sheet__panel { transform: none; }
.sm-sheet.is-closing .sm-sheet__panel { transition-duration: 240ms; transition-timing-function: var(--sm-in); }
.sm-sheet__grabber { display: block; width: 40px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .7); margin: 8px auto 0; position: absolute; left: 50%; transform: translateX(-50%); z-index: 2; }
.sm-sheet__close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: rgba(255, 255, 255, .85); color: var(--sm-navy); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--sm-shadow-1); }
.sm-sheet__art { aspect-ratio: 16 / 8; overflow: hidden; }
.sm-sheet__art img, .sm-sheet__art .sm-art { width: 100%; height: 100%; object-fit: cover; }
.sm-sheet__body { padding: 24px clamp(20px, 4vw, 36px) 32px; display: grid; gap: 16px; }
.sm-sheet__title { font-family: var(--sm-display); font-weight: 800; font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); line-height: .98; }
.sm-sheet__text { color: var(--sm-fg-2); }
.sm-sheet__actions { display: grid; gap: 10px; margin-top: 4px; }
.sm-sheet__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sm-sheet__more { justify-self: center; display: inline-flex; align-items: center; min-height: 44px; color: var(--sm-blue); font-weight: 600; font-size: var(--sm-fs-sub); }
.sm-facts { display: grid; gap: 12px; }
.sm-facts li { display: flex; gap: 12px; align-items: flex-start; }
.sm-facts .sm-icon { color: var(--sm-blue); margin-top: 2px; }
@media (min-width: 760px) {
	.sm-sheet__panel { left: 50%; right: auto; bottom: auto; top: 50%; width: min(620px, calc(100% - 48px)); max-height: min(88svh, 860px); border-radius: var(--sm-r-sheet); transform: translate(-50%, -46%) scale(.96); opacity: 0; transition: transform 420ms var(--sm-spring), opacity 220ms var(--sm-out); box-shadow: 0 30px 80px rgba(24, 34, 61, .25); }
	.sm-sheet.is-open .sm-sheet__panel { transform: translate(-50%, -50%); opacity: 1; }
	.sm-sheet__grabber { display: none; }
}

/* ---------- Past trainings: poster wall ---------- */
.sm-work { padding-block: var(--sm-section); background: var(--sm-surface); }
.sm-work--archive { padding-top: 8px; background: var(--sm-bg); }
.sm-work__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: clamp(32px, 5vw, 56px); }
.sm-work__head .sm-h2 { max-width: 12em; }
.sm-work__head .sm-section-intro { margin-top: 14px; }
.sm-pt-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: clamp(28px, 3vw, 40px) clamp(18px, 2.4vw, 32px); }
.sm-pt { display: grid; gap: 14px; align-content: start; }
.sm-pt__frame { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; background: var(--sm-navy); box-shadow: 0 1px 2px rgba(24, 34, 61, .08), 0 10px 28px rgba(24, 34, 61, .12); transition: transform var(--sm-t-med) var(--sm-spring), box-shadow var(--sm-t-med) var(--sm-out); }
.sm-tone--blue .sm-pt__frame { background: var(--sm-blue); }
.sm-pt__frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); pointer-events: none; }
.sm-pt__img { position: relative; width: 100%; height: 100%; object-fit: contain; }
/* The same poster, blurred, fills the frame behind it, so any poster shape sits well. */
.sm-pt__bg { position: absolute; inset: -12%; width: 124%; height: 124%; object-fit: cover; filter: blur(48px) saturate(1.2); opacity: .9; transform: scale(1.3); }
.sm-pt__auto { position: absolute; inset: 0; display: grid; grid-template-rows: 56% 1fr; background: var(--sm-navy); color: #fff; text-align: left; }
.sm-tone--blue .sm-pt__auto { background: var(--sm-blue); }
.sm-pt__auto-photo { position: relative; overflow: hidden; display: grid; place-items: center; background: linear-gradient(160deg, var(--sm-blue), var(--sm-indigo)); }
.sm-pt__auto-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.sm-pt__auto-photo::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, var(--sm-navy)); }
.sm-tone--blue .sm-pt__auto-photo::after { background: linear-gradient(transparent, var(--sm-blue)); }
.sm-pt__auto-mark { width: 46%; height: auto; }
.sm-pt__auto-text { display: grid; align-content: start; gap: 8px; padding: 6px 18px 18px; }
.sm-pt__auto-text small { font-size: .72rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--sm-yellow); }
.sm-pt__auto-text small + b + small { color: rgba(255, 255, 255, .75); text-transform: none; letter-spacing: 0; font-weight: 500; }
.sm-pt__auto-text b { font-family: var(--sm-display); font-weight: 800; font-size: clamp(1.7rem, 1.4rem + .8vw, 2.2rem); line-height: .95; text-wrap: balance; }
.sm-pt:hover .sm-pt__frame, .sm-pt:focus-within .sm-pt__frame { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(24, 34, 61, .08), 0 18px 40px rgba(24, 34, 61, .2); }
.sm-pt__count { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border-radius: 999px; background: rgba(24, 34, 61, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: var(--sm-fs-caption); font-weight: 650; }
.sm-pt__body { display: grid; gap: 6px; }
.sm-pt__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: var(--sm-fs-caption); font-weight: 650; color: var(--sm-blue); text-transform: uppercase; letter-spacing: .04em; }
.sm-pt__meta span + span { color: var(--sm-fg-2); }
.sm-pt__title { font-family: var(--sm-display); font-weight: 800; font-size: clamp(1.6rem, 1.3rem + .8vw, 2rem); line-height: 1; text-wrap: balance; }
.sm-pt__title a { text-decoration: none; }
.sm-pt__title a::after { content: ""; position: absolute; inset: 0; }
.sm-pt { position: relative; }
.sm-pt__title a:hover, .sm-pt__title a:focus-visible { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; text-decoration-color: var(--sm-yellow); }
.sm-pt__who { color: var(--sm-fg-2); font-size: var(--sm-fs-sub); }
.sm-work__all { margin-top: clamp(32px, 4vw, 48px); }
.sm-link-arrow { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 650; color: var(--sm-blue); text-decoration: none; }
.sm-link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Past training page ---------- */
.sm-past-page__by { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; font-size: var(--sm-fs-lede); color: var(--sm-fg-2); }
.sm-past-page__by span { display: inline-flex; align-items: center; gap: 8px; }
.sm-past-page__by .sm-icon { color: var(--sm-blue); }
.sm-past-page__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; padding-bottom: var(--sm-section); }
.sm-past-page__poster { position: sticky; top: 96px; margin: 0; }
.sm-past-page__poster a { position: relative; display: block; border-radius: 20px; overflow: hidden; background: var(--sm-navy); box-shadow: 0 2px 6px rgba(24, 34, 61, .1), 0 24px 60px rgba(24, 34, 61, .18); }
.sm-past-page__img { width: 100%; height: auto; display: block; }
.sm-past-page__zoom { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--sm-navy); opacity: 0; transform: scale(.9); transition: opacity var(--sm-t-fast), transform var(--sm-t-fast) var(--sm-out); }
.sm-past-page__poster a:hover .sm-past-page__zoom, .sm-past-page__poster a:focus-visible .sm-past-page__zoom { opacity: 1; transform: none; }
@media (hover: none) { .sm-past-page__zoom { opacity: 1; transform: none; } }
.sm-past-page__story { display: grid; gap: 28px; min-width: 0; }
.sm-past-page__facts { display: flex; flex-wrap: wrap; gap: 20px 36px; padding-bottom: 24px; border-bottom: 1px solid var(--sm-line); }
.sm-past-page__facts div { display: flex; flex-direction: column-reverse; }
.sm-past-page__facts dd { font-family: var(--sm-display); font-weight: 900; font-size: clamp(2rem, 1.6rem + 1vw, 2.6rem); line-height: 1; color: var(--sm-indigo); }
.sm-past-page__facts dt { font-size: var(--sm-fs-footnote); color: var(--sm-fg-2); max-width: 14em; }
.sm-past-page__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) {
	.sm-past-page__grid { grid-template-columns: minmax(0, 1fr); }
	.sm-past-page__poster { position: static; max-width: 460px; }
}

.sm-gallery { padding-block: var(--sm-section); background: var(--sm-surface); }
.sm-gallery .sm-h3 { margin-bottom: 28px; }
.sm-gallery__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.sm-gallery__grid a { display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--sm-line); }
.sm-gallery__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--sm-spring), filter var(--sm-t-med); }
.sm-gallery__grid a:hover img, .sm-gallery__grid a:focus-visible img { transform: scale(1.04); }
@media (min-width: 760px) { .sm-gallery__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.sm-voices { padding-block: var(--sm-section); }
.sm-voices .sm-h3 { margin-bottom: 28px; }
.sm-voices__grid { columns: 3 300px; column-gap: 20px; }
.sm-voice { break-inside: avoid; margin: 0 0 20px; padding: 26px; border-radius: var(--sm-r-panel); background: var(--sm-surface); display: grid; gap: 14px; }
.sm-voice .sm-icon { color: var(--sm-yellow); }
.sm-voice blockquote p { font-size: var(--sm-fs-body); line-height: 1.55; color: var(--sm-fg); }
.sm-voice figcaption { font-size: var(--sm-fs-footnote); font-weight: 650; color: var(--sm-fg-2); }

.sm-past-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-block: 0 var(--sm-section); }
.sm-past-nav__link { display: grid; gap: 4px; padding: 20px 24px; border-radius: 18px; border: 1px solid var(--sm-line); text-decoration: none; transition: border-color var(--sm-t-fast), background-color var(--sm-t-fast); }
.sm-past-nav__link:hover { border-color: var(--sm-blue); background: var(--sm-surface); }
.sm-past-nav__link small { font-size: var(--sm-fs-caption); font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--sm-blue); }
.sm-past-nav__link span { font-weight: 650; }
.sm-past-nav__link--next { text-align: right; }
@media (max-width: 600px) { .sm-past-nav { grid-template-columns: 1fr; } .sm-past-nav__link--next { text-align: left; } }

/* ---------- Trainers & speakers ---------- */
.sm-speakers-section { padding-block: var(--sm-section); background: var(--sm-bg); }
.sm-speakers .sm-h2 { max-width: 12em; margin-bottom: clamp(32px, 5vw, 56px); }
.sm-trainers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr)); gap: clamp(20px, 3vw, 36px) clamp(14px, 2.4vw, 28px); }
.sm-trainer { display: grid; gap: 4px; text-decoration: none; color: inherit; }
.sm-trainer__photo { display: grid; place-items: center; aspect-ratio: 1; margin-bottom: 10px; border-radius: 22px; overflow: hidden; background: linear-gradient(160deg, var(--sm-blue), var(--sm-indigo)); }
.sm-trainer__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform 900ms var(--sm-spring); }
.sm-trainer__initials { font-family: var(--sm-display); font-weight: 800; font-size: 3.5rem; color: rgba(255, 255, 255, .9); }
a.sm-trainer:hover .sm-trainer__photo img, a.sm-trainer:focus-visible .sm-trainer__photo img { transform: scale(1.04); }
.sm-trainer__name { font-family: var(--sm-display); font-weight: 800; font-size: 1.6rem; line-height: 1.02; }
.sm-trainer__role { font-size: var(--sm-fs-footnote); color: var(--sm-fg-2); line-height: 1.4; }
.sm-trainer__more { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: var(--sm-fs-footnote); font-weight: 650; color: var(--sm-blue); }
a.sm-trainer:hover .sm-trainer__name { text-decoration: underline; text-decoration-color: var(--sm-yellow); text-decoration-thickness: 3px; text-underline-offset: 4px; }

/* ---------- Lightbox (posters and photos) ---------- */
.sm-lb { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 14, 28, .94); color: #fff; overscroll-behavior: contain; }
.sm-lb::backdrop { background: transparent; }
.sm-lb[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.sm-lb__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(12px, env(safe-area-inset-top)) 16px 8px; }
.sm-lb__count { font-size: var(--sm-fs-footnote); font-weight: 650; color: rgba(255, 255, 255, .75); }
.sm-lb__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 clamp(12px, 6vw, 88px); touch-action: pan-y; }
.sm-lb__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); user-select: none; -webkit-user-drag: none; }
.sm-lb__btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; transition: background-color var(--sm-t-fast); }
.sm-lb__btn:hover { background: rgba(255, 255, 255, .24); }
.sm-lb__btn:focus-visible { outline: 3px solid var(--sm-yellow); outline-offset: 2px; }
.sm-lb__prev, .sm-lb__next { position: absolute; top: 50%; translate: 0 -50%; }
.sm-lb__prev { left: clamp(8px, 2vw, 24px); }
.sm-lb__next { right: clamp(8px, 2vw, 24px); }
.sm-lb__cap { min-height: 24px; padding: 8px 16px max(16px, env(safe-area-inset-bottom)); text-align: center; font-size: var(--sm-fs-footnote); color: rgba(255, 255, 255, .75); }
@media (prefers-reduced-motion: no-preference) {
	.sm-lb[open] .sm-lb__img { animation: sm-lb-in 320ms var(--sm-spring) both; }
	@keyframes sm-lb-in { from { opacity: 0; transform: scale(.96); } }
}
@media (max-width: 600px) { .sm-lb__prev, .sm-lb__next { top: auto; bottom: 8px; translate: none; } }

/* ---------- About ---------- */
.sm-about { padding-block: var(--sm-section); background: var(--sm-surface); }
.sm-about__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.sm-about__quote blockquote p { font-family: var(--sm-display); font-weight: 700; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.5rem); line-height: 1.02; color: var(--sm-fg); text-wrap: balance; }
.sm-about__quote blockquote p::before { content: "\201C"; color: var(--sm-blue); margin-left: -.42em; }
.sm-about__quote blockquote p::after { content: "\201D"; color: var(--sm-blue); }
.sm-about__quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.sm-about__quote figcaption span:last-child { display: grid; color: var(--sm-fg-2); font-size: var(--sm-fs-sub); }
.sm-about__quote figcaption b { color: var(--sm-fg); font-weight: 650; }
.sm-about__face { flex: none; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--sm-raised); border: 1px solid var(--sm-line); display: grid; place-items: center; }
.sm-about__face img { width: 100%; height: 100%; object-fit: cover; }
.sm-about__face svg { width: 46px; height: 46px; }
.sm-about__text { color: var(--sm-fg-2); font-size: var(--sm-fs-lede); line-height: 1.5; }
@media (max-width: 820px) { .sm-about__grid { grid-template-columns: minmax(0, 1fr); } .sm-about__quote blockquote p::before { margin-left: 0; } }

/* ---------- Enquiry ---------- */
.sm-enquire { padding-block: var(--sm-section); background: var(--sm-bg); }
.sm-enquire__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.sm-enquire__intro { display: grid; gap: 22px; }
.sm-contact { display: grid; gap: 8px; margin-top: 8px; }
.sm-contact__item { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 10px 16px; border-radius: 16px; text-decoration: none; background: var(--sm-raised); border: 1px solid var(--sm-line); transition: border-color var(--sm-t-fast), box-shadow var(--sm-t-fast); }
.sm-contact__item:hover { border-color: var(--sm-line-strong); box-shadow: var(--sm-shadow-1); }
.sm-contact__item .sm-icon { color: var(--sm-blue); }
.sm-contact__item span { display: grid; font-size: var(--sm-fs-sub); color: var(--sm-fg-2); min-width: 0; overflow-wrap: anywhere; }
.sm-contact__item b { color: var(--sm-fg); font-weight: 650; font-size: var(--sm-fs-footnote); }
.sm-contact__item--wa { background: rgba(239, 196, 52, .14); border-color: rgba(214, 170, 24, .45); }
.sm-contact__item--wa .sm-icon { color: var(--sm-navy); }

.sm-form-wrap { border-radius: var(--sm-r-panel); background: var(--sm-raised); color: var(--sm-fg); padding: clamp(22px, 3.4vw, 40px); border: 1px solid var(--sm-line); box-shadow: var(--sm-shadow-2); }
.sm-form { display: grid; gap: 18px; }
.sm-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sm-form__alert { padding: 12px 16px; border-radius: var(--sm-r-input); background: #FDECEA; color: var(--sm-danger); font-weight: 600; font-size: var(--sm-fs-sub); }
.sm-input { display: grid; gap: 6px; align-content: start; }
.sm-input label, .sm-chips legend { font-size: var(--sm-fs-footnote); font-weight: 650; color: var(--sm-fg); }
.sm-opt { font-weight: 450; color: var(--sm-fg-2); }
.sm-input input, .sm-input select, .sm-input textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--sm-r-input); border: 1.5px solid var(--sm-field); background: var(--sm-raised); color: var(--sm-fg); font-size: var(--sm-fs-body); transition: border-color var(--sm-t-fast), box-shadow var(--sm-t-fast); -webkit-appearance: none; appearance: none; }
.sm-input select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2318223D' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.sm-input textarea { min-height: 120px; resize: vertical; }
.sm-input input:focus, .sm-input select:focus, .sm-input textarea:focus { outline: none; border-color: var(--sm-blue); box-shadow: 0 0 0 4px rgba(63, 97, 167, .18); }
.sm-input input[readonly] { background: var(--sm-surface); }
.sm-input [aria-invalid="true"] { border-color: var(--sm-danger); }
.sm-input__err { color: var(--sm-danger); font-size: var(--sm-fs-footnote); font-weight: 600; }
.sm-input__help { margin-top: -8px; font-size: var(--sm-fs-footnote); color: var(--sm-fg-2); }
.sm-input--check { gap: 4px; }
.sm-checkline { display: flex; gap: 12px; align-items: flex-start; font-weight: 450 !important; font-size: var(--sm-fs-sub) !important; color: var(--sm-fg-2) !important; cursor: pointer; }
.sm-checkline input, .sm-input .sm-checkline input { flex: none; width: 22px; height: 22px; min-height: 0; padding: 0; margin: 1px 0 0; border-radius: 4px; -webkit-appearance: checkbox; appearance: auto; accent-color: var(--sm-blue); box-shadow: none; }
.sm-checkline a { color: var(--sm-blue); }
.sm-chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sm-chips legend { width: 100%; margin-bottom: 8px; padding: 0; }
.sm-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sm-chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--sm-r-pill); border: 1.5px solid var(--sm-field); font-size: var(--sm-fs-footnote); font-weight: 600; color: var(--sm-fg); cursor: pointer; transition: background-color var(--sm-t-fast), border-color var(--sm-t-fast), color var(--sm-t-fast), transform var(--sm-t-fast); }
.sm-chip span:hover { border-color: var(--sm-navy); }
.sm-chip input:checked + span { background: var(--sm-navy); border-color: var(--sm-navy); color: var(--sm-on-dark); }
.sm-chip input:focus-visible + span { outline: 3px solid var(--sm-blue); outline-offset: 2px; }
.sm-chip input:active + span { transform: scale(.96); }
.sm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sm-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(24, 34, 61, .25); border-top-color: var(--sm-navy); display: none; }
.sm-btn.is-busy { pointer-events: none; }
.sm-btn.is-busy .sm-spinner { display: inline-block; animation: sm-spin 700ms linear infinite; }
@keyframes sm-spin { to { transform: rotate(360deg); } }
.sm-done { display: grid; justify-items: start; gap: 14px; padding: 12px 0; }
.sm-done:focus { outline: none; }
.sm-done p { color: var(--sm-fg-2); }
.sm-done__check { width: 64px; height: 64px; }
.sm-done__check circle { fill: none; stroke: var(--sm-ok); stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 0; }
.sm-done__check path { fill: none; stroke: var(--sm-ok); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 36; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
	.sm-done.is-animating .sm-done__check circle { animation: sm-draw 600ms var(--sm-out) both; --len: 151; }
	.sm-done.is-animating .sm-done__check path { animation: sm-draw 420ms var(--sm-out) both 420ms; --len: 36; }
	.sm-done.is-animating > :not(svg) { animation: sm-rise 500ms var(--sm-out) both 500ms; }
}
@keyframes sm-draw { from { stroke-dashoffset: var(--len); } to { stroke-dashoffset: 0; } }
@media (max-width: 900px) { .sm-enquire__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .sm-form__row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer, consent, toast ---------- */
.sm-footer { padding: clamp(56px, 7vw, 88px) 0 32px; border-top: 1px solid var(--sm-line); background: var(--sm-surface); color: var(--sm-fg); }
.sm-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.sm-footer__brand { display: grid; gap: 16px; align-content: start; }
.sm-footer__brand p { color: var(--sm-fg-2); max-width: 22em; }
.sm-footer__mark { width: 96px; height: 96px; }
.sm-footer__h { font-size: var(--sm-fs-footnote); font-weight: 650; color: var(--sm-fg-3); margin-bottom: 12px; }
.sm-footer__list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.sm-footer__list a, .sm-footer__list li { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; color: var(--sm-fg); overflow-wrap: anywhere; }
.sm-footer__list a:hover { color: var(--sm-blue); }
.sm-social { display: flex; gap: 6px; margin-top: 12px; }
.sm-social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--sm-line); color: var(--sm-fg-2); background: var(--sm-raised); transition: color var(--sm-t-fast), border-color var(--sm-t-fast); }
.sm-social a:hover { color: var(--sm-blue); border-color: var(--sm-blue); }
.sm-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--sm-line); font-size: var(--sm-fs-footnote); color: var(--sm-fg-2); }
.sm-footer__legal a { color: var(--sm-fg-2); }

@media (max-width: 760px) { .sm-footer__grid { grid-template-columns: minmax(0, 1fr); } }

.sm-consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 520px; margin-inline: auto; padding: 16px 18px; border-radius: 20px; color: var(--sm-fg); background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border: 1px solid var(--sm-line); box-shadow: var(--sm-shadow-2); display: grid; gap: 12px; font-size: var(--sm-fs-sub); animation: sm-rise var(--sm-t-med) var(--sm-spring) both; }
.sm-consent a { color: var(--sm-blue); }
.sm-consent__actions { display: flex; gap: 8px; justify-content: flex-end; }
.sm-toast { position: fixed; left: 50%; bottom: 24px; z-index: 70; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 20px; border-radius: var(--sm-r-pill); background: rgba(24, 34, 61, .94); color: var(--sm-on-dark); font-weight: 600; font-size: var(--sm-fs-sub); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: transform var(--sm-t-med) var(--sm-spring), opacity var(--sm-t-fast); }
.sm-toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Single & archive ---------- */
.sm-single__head { padding: clamp(40px, 6vw, 80px) 0 clamp(28px, 4vw, 48px); background: var(--sm-bg); }
.sm-single__head .sm-wrap { display: grid; gap: 16px; justify-items: start; }
.sm-back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin-left: -6px; padding-right: 8px; color: var(--sm-fg-2); text-decoration: none; font-weight: 600; font-size: var(--sm-fs-sub); }
.sm-back:hover { color: var(--sm-fg); }
.sm-single__title { font-family: var(--sm-display); font-weight: 900; font-size: clamp(3rem, 1.6rem + 5vw, 6.5rem); line-height: .9; color: var(--sm-fg); max-width: 14em; text-wrap: balance; }
.sm-single__media .sm-single__img, .sm-single__media .sm-art { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--sm-r-panel); }
.sm-single__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-block: clamp(40px, 6vw, 72px) var(--sm-section); }
.sm-prose { color: var(--sm-fg-2); font-size: 1.125rem; line-height: 1.65; max-width: 38em; }
.sm-prose > * + * { margin-top: 1.1em; }
.sm-prose h2, .sm-prose h3 { color: var(--sm-fg); font-family: var(--sm-display); font-weight: 800; line-height: 1; margin-top: 1.6em; }
.sm-prose h2 { font-size: 2.25rem; }
.sm-prose h3 { font-size: 1.75rem; }
.sm-prose a { color: var(--sm-blue); }
.sm-prose strong { color: var(--sm-fg); }
.sm-prose ul { list-style: disc; padding-left: 1.2em; }
.sm-prose img { border-radius: var(--sm-r-card); height: auto; }
.sm-card-panel { position: sticky; top: 96px; display: grid; gap: 16px; padding: 24px; border-radius: var(--sm-r-panel); background: var(--sm-raised); color: var(--sm-fg); border: 1px solid var(--sm-line); box-shadow: var(--sm-shadow-2); }
.sm-card-panel > p { color: var(--sm-fg-2); }
.sm-single__poster { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--sm-line); background: var(--sm-bg-2, #f4f5f9); }
.sm-single__poster-img { display: block; width: 100%; height: auto; }
.sm-embed-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--sm-r-card); overflow: hidden; }
.sm-embed-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 880px) { .sm-single__grid { grid-template-columns: minmax(0, 1fr); } .sm-card-panel { position: static; } }

.sm-past { padding-block: 0 var(--sm-section); background: var(--sm-surface); color: var(--sm-fg); }
.sm-past .sm-h3 { margin-bottom: 16px; }
.sm-past__list { display: grid; border-top: 1px solid var(--sm-line); }
.sm-past__list a { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 16px; align-items: center; min-height: 56px; padding: 10px 4px; border-bottom: 1px solid var(--sm-line); text-decoration: none; }
.sm-past__list a:hover .sm-past__title { text-decoration: underline; text-underline-offset: 3px; }
.sm-past__date, .sm-past__venue { font-size: var(--sm-fs-footnote); color: var(--sm-fg-2); }
.sm-past__title { font-weight: 600; }
@media (max-width: 600px) { .sm-past__list a { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* ---------- Brand placeholder art (shown until a photo is added) ---------- */
.sm-art { position: relative; display: grid; place-items: center; width: 100%; height: 100%; min-height: 180px; overflow: hidden; background: var(--sm-indigo); }
.sm-art--yellow { background: var(--sm-yellow); }
.sm-art--blue { background: var(--sm-blue); }
.sm-art--navy { background: var(--sm-navy); }
.sm-art__mark { width: 46%; max-width: 260px; opacity: .95; }
/* The star point matching the tile colour switches to white so all six points stay visible. */
.sm-art:not(.sm-art--yellow):not(.sm-art--blue) .sm-mark__pt--i { fill: #F5F6FA; }
.sm-art--blue .sm-mark__pt--b { fill: #F5F6FA; }
.sm-art--yellow .sm-mark__pt--y { fill: #F5F6FA; }
.sm-art::before { content: ""; position: absolute; inset: 0; opacity: .14; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='103.92' viewBox='0 0 60 103.92'%3E%3Cpath d='M0 0 L30 51.96 L60 0 M0 103.92 L30 51.96 L60 103.92 M0 51.96 H60' fill='none' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E"); background-size: 60px 103.92px; }
.sm-art--yellow::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='103.92' viewBox='0 0 60 103.92'%3E%3Cpath d='M0 0 L30 51.96 L60 0 M0 103.92 L30 51.96 L60 103.92 M0 51.96 H60' fill='none' stroke='%2318223D' stroke-width='1'/%3E%3C/svg%3E"); }

/* ---------- Embeds inside a theme page (shortcodes) ---------- */
.sm-embed { border-radius: var(--sm-r-panel); overflow: hidden; margin-block: 32px; }
.sm-embed .sm-events, .sm-embed .sm-enquire { padding-block: clamp(32px, 5vw, 56px); }
.sm-embed--indigo { background: var(--sm-indigo); padding: 32px var(--sm-gutter); }
.sm-embed--dark { background: var(--sm-bg); border: 1px solid var(--sm-line); }

/* ---------- Team-managed pieces ---------- */
.sm-section-intro { margin-top: -16px; margin-bottom: clamp(28px, 4vw, 44px); }
.sm-events__head .sm-section-intro { margin: 12px 0 0; }

/* Announcement bar */
.sm-announce { position: relative; z-index: 51; font-size: var(--sm-fs-sub); transition: opacity var(--sm-t-med), transform var(--sm-t-med) var(--sm-spring); }
.sm-announce.is-closing { opacity: 0; transform: translateY(-8px); }
.sm-announce--yellow { background: var(--sm-yellow); color: var(--sm-navy); }
.sm-announce--indigo { background: var(--sm-indigo); color: var(--sm-on-dark); }
.sm-announce--blue { background: var(--sm-blue); color: var(--sm-on-dark); }
.sm-announce--navy { background: var(--sm-navy); color: var(--sm-on-dark); }
.sm-announce__inner { display: flex; align-items: center; gap: 12px; min-height: 48px; padding-block: 8px; }
.sm-announce__text { flex: 1; min-width: 0; font-weight: 550; }
.sm-announce__text a { margin-left: 6px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.sm-announce__close { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.sm-announce__close:hover { background: rgba(0, 0, 0, .08); }
.sm-announce--yellow :focus-visible { outline-color: var(--sm-navy); }
.sm-announce:not(.sm-announce--yellow) :focus-visible { outline-color: var(--sm-yellow); }
.sm-announce + .sm-nav + main .sm-hero { margin-top: -72px; }

/* Uploaded logo */
.sm-logo { display: block; height: auto; width: auto; }
.sm-logo--nav { max-height: 44px; max-width: 200px; }
.sm-nav.is-scrolled .sm-logo--nav { max-height: 38px; }
.sm-logo--footer { max-height: 96px; max-width: 240px; }

/* Ordinary pages */
.sm-page__content { padding-block: clamp(24px, 4vw, 48px) var(--sm-section); }
.sm-prose--page { max-width: 44em; }
.sm-prose--page h2, .sm-prose--page h3 { margin-top: 1.4em; }
.sm-prose--page table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.sm-prose--page th, .sm-prose--page td { padding: 10px 12px; border-bottom: 1px solid var(--sm-line); text-align: left; }
.sm-prose--page blockquote { border-left: 3px solid var(--sm-yellow); padding-left: 18px; color: var(--sm-fg); }
.sm-prose--page .wp-block-button__link { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 22px; border-radius: var(--sm-r-pill); background: var(--sm-yellow); color: var(--sm-navy); font-weight: 650; text-decoration: none; }

/* Page not found */
.sm-404 { padding-bottom: var(--sm-section); }
.sm-404__code { font-family: var(--sm-display); font-weight: 900; font-size: clamp(5rem, 3rem + 10vw, 11rem); line-height: .8; color: var(--sm-yellow); }

/* ---------- Motion safety ---------- */
@media (prefers-reduced-motion: reduce) {
	.sm-root *, .sm-root *::before, .sm-root *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	html:has(body.sm-page) { scroll-behavior: auto; }
}

@media print {
	.sm-nav, .sm-hero__media, .sm-hero__lattice, .sm-form-wrap, .sm-consent, .sm-toast, .sm-lb { display: none !important; }
	body.sm-page, .sm-root { background: #fff !important; color: #000 !important; }
}

.sm-credit { display: inline-flex; align-items: center; gap: 8px; color: var(--sm-fg-2); }
.sm-credit__mark { flex: none; width: auto; height: 18px; }
.sm-credit strong { font-weight: 600; color: var(--sm-fg); }
