/* ==========================================================================
   D84 theme
   ========================================================================== */

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/poppins-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/poppins-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/poppins-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/poppins-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/poppins-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/poppins-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/poppins-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/poppins-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Stack Sans Headline"; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/stack-sans-headline-latin-ext-300-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Stack Sans Headline"; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/stack-sans-headline-latin-300-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Stack Sans Headline"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/stack-sans-headline-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Stack Sans Headline"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/stack-sans-headline-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Stack Sans Headline"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/stack-sans-headline-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Stack Sans Headline"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/stack-sans-headline-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens ---------- */
:root {
	--red: #ac171d;
	--red-dark: #8e1217;
	--red-soft: #f6e7e7;
	--black: #000;
	--ink: #1d1b1a;
	--text: #6a6765;
	--muted: #8f8b88;
	--line: #e7e3e1;
	--bg: #f9f9f9;
	--white: #fff;
	--font-head: "Poppins", system-ui, sans-serif;
	--font-body: "Stack Sans Headline", "Poppins", system-ui, sans-serif;
	--container: 1300px;
	--gutter: clamp(16px, 4vw, 40px);
	--radius: 16px;
	--radius-lg: 32px;
	--header-h: 88px;
	--section: clamp(64px, 9vw, 120px);
	--ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
	--shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 500; line-height: 1.2; color: var(--ink); margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
figure { margin: 0; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.sr-only, .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; }
.skip-link:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link:focus { position: fixed !important; top: 12px; left: 12px; z-index: 1000; width: auto; height: auto; padding: 10px 16px; clip: auto; background: var(--white); color: var(--ink); border-radius: 8px; box-shadow: var(--shadow); }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.center { text-align: center; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(880px + 2 * var(--gutter)); }
.section { padding: var(--section) 0; }
.section--white { background: var(--white); }
.section--light { background: var(--bg); }
.section--red { background: var(--red); color: rgba(255, 255, 255, 0.85); }
.section--red .section-title, .section--red h2, .section--red h3 { color: var(--white); }
.section--red .section-intro { color: rgba(255, 255, 255, 0.85); }
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--3 { grid-template-columns: 1fr; } .grid--4 { gap: 16px; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border: 1px solid var(--red); border-radius: 999px; background: var(--red); color: var(--white); font-family: var(--font-head); font-weight: 500; font-size: 15px; line-height: 1.2; cursor: pointer; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.btn:hover { background: var(--black); border-color: var(--black); color: var(--white); }
.btn--outline { background: transparent; color: var(--red); }
.btn--outline:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.btn--sm { padding: 8px 16px; font-size: 14px; }
.btn--block { width: 100%; justify-content: center; margin-top: 16px; }
.btn .icon { width: 16px; height: 16px; }
.round-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--ink); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; transition: background 0.25s, color 0.25s; }
.round-btn:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.round-btn:disabled { opacity: 0.3; cursor: default; background: transparent; color: var(--ink); border-color: var(--ink); }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 500; font-size: 14px; color: var(--red); }
.link-more .icon { width: 16px; height: 16px; }
.section--red .link-more { color: var(--white); }

/* ---------- Section heading ---------- */
.section-head { margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }
.section-head--center { max-width: 900px; margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-block; margin: 0 0 16px; padding: 3px 14px; border: 1px solid #ecd4d5; border-radius: 999px; background: var(--white); color: var(--red); font-family: var(--font-body); font-size: 13px; line-height: 1.6; }
.eyebrow--grey { border-color: #dcdcdc; background: #eee; color: var(--ink); font-family: var(--font-head); font-weight: 500; }
.section-title { font-size: clamp(30px, 4.2vw, 50px); color: var(--red); margin: 0; }
.section-intro { margin-top: 16px; font-size: 16px; }
.section-intro p:last-child { margin-bottom: 0; }

/* ---------- Header ---------- */
.site-header { position: absolute; inset: 0 0 auto; z-index: 50; height: var(--header-h); border-bottom: 1px solid rgba(255, 255, 255, 0.12); color: var(--white); transition: background 0.3s, transform 0.3s; }
.has-hero-home .site-header, .has-hero-plain .site-header, .has-no-hero .site-header { position: sticky; top: 0; background: var(--black); }
.site-header.is-fixed { position: fixed; background: rgba(0, 0, 0, 0.92); backdrop-filter: blur(8px); }
.admin-bar .site-header.is-fixed { top: 32px; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }

.logo { display: inline-flex; align-items: center; color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 40px; line-height: 1; letter-spacing: -0.02em; }
.logo:hover { color: var(--white); }
.logo img { max-height: 52px; width: auto; }
.logo__d { display: inline-grid; place-items: center; width: 0.95em; height: 1.18em; margin-right: 0.04em; background: var(--red); padding-top: 0.06em; }
.has-hero-red .site-header:not(.is-fixed) .logo__d { background: transparent; width: auto; margin-right: 0.08em; }
.logo--footer { font-size: 64px; margin-bottom: 20px; }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav__list { display: flex; gap: 32px; list-style: none; }
.main-nav__list a { display: block; padding: 8px 0; color: var(--white); font-family: var(--font-head); font-weight: 500; font-size: 15px; position: relative; }
.main-nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.35s var(--ease-out); }
.main-nav__list a:hover::after, .main-nav__list .current-menu-item > a::after, .main-nav__list .current-menu-ancestor > a::after { transform: scaleX(1); transform-origin: left; }
.main-nav__list .sub-menu { display: none; }
.lang-switch { display: flex; gap: 2px; list-style: none; padding: 3px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px; }
.lang-switch a { display: block; padding: 2px 10px; border-radius: 999px; color: var(--white); font-family: var(--font-head); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; }
.lang-switch a.is-current { background: var(--white); color: var(--black); }
.nav-toggle { display: none; background: none; border: 0; color: var(--white); padding: 8px; cursor: pointer; }
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle__close { display: none; }

@media (max-width: 960px) {
	:root { --header-h: 72px; }
	.logo { font-size: 32px; }
	.nav-toggle { display: block; position: relative; z-index: 60; }
	.main-nav { position: fixed; inset: 0; z-index: 55; flex-direction: column; justify-content: center; gap: 32px; background: var(--black); opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
	.main-nav__list { flex-direction: column; align-items: center; gap: 12px; }
	.main-nav__list a { font-size: 24px; }
	.nav-open .main-nav { opacity: 1; visibility: visible; }
	.nav-open .nav-toggle__open { display: none; }
	.nav-open .nav-toggle__close { display: block; }
	.nav-open { overflow: hidden; }
}

/* ---------- Page hero ---------- */
.page-hero { position: relative; display: flex; align-items: flex-end; min-height: clamp(360px, 42vw, 520px); padding: calc(var(--header-h) + 48px) 0 clamp(56px, 7vw, 96px); background: var(--red); color: var(--white); text-align: center; overflow: hidden; }
.page-hero--image { background: #2b2b2b var(--bg) center / cover no-repeat; }
.page-hero--image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.7) 100%); }
.page-hero__inner { position: relative; }
.page-hero__title { margin: 0 auto 16px; max-width: 1100px; color: var(--white); font-size: clamp(36px, 6vw, 80px); font-weight: 600; line-height: 1.1; }
.page-hero__subtitle { margin: 0 0 12px; font-size: 18px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; list-style: none; font-family: var(--font-head); font-size: 15px; font-weight: 500; }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; opacity: 0.8; }
.breadcrumb a { color: inherit; }
.breadcrumb a:hover { text-decoration: underline; color: inherit; }
.page-hero .breadcrumb { color: var(--white); }

/* ---------- Home hero ---------- */
.home-hero { background: var(--white); padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 110px); overflow: hidden; }
.home-hero__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(24px, 5vw, 80px); }
.home-hero__title { font-size: clamp(38px, 5.2vw, 64px); font-weight: 600; color: var(--red); margin: 0 0 28px; }
.home-hero__lead { max-width: 520px; font-size: 17px; }
.home-hero__media { position: relative; display: grid; place-items: center; min-height: 320px; background: var(--bg, none) center / contain no-repeat; }
.home-hero__media img { max-height: 560px; width: auto; object-fit: contain; }
@media (max-width: 860px) { .home-hero__grid { grid-template-columns: 1fr; } .home-hero__media { min-height: 0; } .home-hero__media img { max-height: 340px; } }

/* ---------- Focus areas ---------- */
.focus__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1180px; margin: 0 auto; }
.focus__card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; min-height: 300px; padding: 40px 32px; background: var(--white); color: var(--ink); text-align: center; overflow: hidden; }
.focus__card.is-red { background: var(--red); color: var(--white); }
.focus__card:hover { color: inherit; }
.focus__title { margin: 0; font-size: clamp(20px, 2.2vw, 28px); font-weight: 600; color: inherit; }
.focus__icon img { width: 110px; height: 110px; object-fit: contain; transition: transform 0.5s var(--ease-out); }
.focus__card.is-red .focus__icon img { filter: brightness(0) invert(1); }
.focus__desc, .focus__more { max-height: 0; margin: 0; opacity: 0; overflow: hidden; transition: max-height 0.5s var(--ease-out), opacity 0.35s; }
.focus__more { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 500; font-size: 14px; }
.focus__more .icon { width: 16px; height: 16px; }
.focus__card:hover .focus__desc, .focus__card:focus-visible .focus__desc { max-height: 6em; opacity: 1; }
.focus__card:hover .focus__more, .focus__card:focus-visible .focus__more { max-height: 2em; opacity: 1; }
.focus__card:hover .focus__icon img { transform: scale(0.82); }
@media (hover: none) { .focus__desc, .focus__more { max-height: none; opacity: 1; } }
@media (max-width: 640px) {
	.focus__grid { grid-template-columns: 1fr; }
	.focus__card { min-height: 220px; }
	.focus__card:nth-child(n) { background: var(--white); color: var(--ink); }
	.focus__card:nth-child(n) .focus__icon img { filter: none; }
	.focus__card:nth-child(even) { background: var(--red); color: var(--white); }
	.focus__card:nth-child(even) .focus__icon img { filter: brightness(0) invert(1); }
}

/* ---------- Cards ---------- */
.card { position: relative; height: 100%; }
.card__placeholder { display: block; width: 100%; aspect-ratio: 36 / 26; background: linear-gradient(135deg, #d9d4d2, #bdb6b3); }
.card__label { display: inline-block; padding: 4px 12px; border-radius: 6px; background: rgba(0, 0, 0, 0.75); color: var(--white); font-family: var(--font-head); font-size: 11px; font-weight: 500; line-height: 1.5; }

.card--overlay .card__link { display: block; position: relative; height: 100%; min-height: 360px; border-radius: 12px; overflow: hidden; color: var(--white); }
.card--overlay .card__media, .card--overlay .card__media img, .card--overlay .card__placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.card--overlay .card__media img { transition: transform 0.8s var(--ease-out); }
.card--overlay .card__link:hover img { transform: scale(1.06); }
.card__glass { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 18px 16px; border-radius: 10px; background: rgba(40, 40, 40, 0.35); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); text-align: center; transition: background 0.3s; }
.card--overlay .card__link:hover .card__glass { background: rgba(172, 23, 29, 0.75); }
.card--overlay .card__title { margin: 8px 0 0; color: var(--white); font-size: 17px; font-weight: 500; }

.card--story { display: flex; flex-direction: column; background: var(--white); border-radius: 20px; overflow: hidden; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.06), 0 12px 30px rgba(0, 0, 0, 0.06); }
.card--story .card__media { position: relative; display: block; aspect-ratio: 16 / 7; overflow: hidden; }
.card--story .card__media img, .card--story .card__placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.card--story:hover .card__media img { transform: scale(1.05); }
.card--story .card__label { position: absolute; right: 16px; bottom: 12px; background: var(--black); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 26px 24px; }
.card--story .card__title { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.card--story .card__title a { color: var(--ink); }
.card--story .card__title a:hover { color: var(--red); }
.card__excerpt { font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.card__more { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; align-self: flex-end; color: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: 14px; }
.card__more .icon { width: 14px; height: 14px; transition: transform 0.25s; }
.card__more:hover .icon { transform: translateX(4px); }

/* ---------- Carousel ---------- */
.carousel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.carousel-head .section-head { margin-bottom: 40px; }
.carousel-nav { display: flex; gap: 10px; margin-bottom: 40px; }
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 28px) / 3); gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 4px 24px; margin: -4px -4px 0; overscroll-behavior-x: contain; }
.carousel::-webkit-scrollbar { display: none; }
.carousel__item { scroll-snap-align: start; }
@media (max-width: 1024px) { .carousel { grid-auto-columns: calc((100% - 28px) / 2); } }
@media (max-width: 640px) { .carousel { grid-auto-columns: 86%; gap: 16px; } .carousel-nav { display: none; } }

/* ---------- Announcements ---------- */
.ann { max-width: 1100px; margin: 0 auto; }
.ann__head, .ann__item { display: grid; grid-template-columns: 200px 1fr 140px; gap: 24px; align-items: center; }
.ann__head { padding: 0 24px 12px; border-bottom: 2px solid var(--ink); font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.ann__head span:last-child { text-align: right; }
.ann__list { list-style: none; }
.ann__item { padding: 22px 24px; border-bottom: 1px solid var(--line); transition: background 0.25s; }
.ann__item:hover { background: var(--white); }
.ann__date { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 14px; color: var(--ink); }
.ann__date .icon { color: var(--red); width: 18px; height: 18px; }
.ann__title { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.ann__title a { color: var(--ink); }
.ann__title a:hover { color: var(--red); }
.ann__main p { margin: 0; font-size: 14px; }
.ann__more { justify-self: end; }
.ann__foot { margin-top: 32px; text-align: center; }
@media (max-width: 760px) {
	.ann__head { display: none; }
	.ann__item { grid-template-columns: 1fr; gap: 8px; padding: 20px 4px; }
	.ann__more { justify-self: start; }
}

/* ---------- Partners marquee ---------- */
.partners { overflow: hidden; }
.marquee { display: flex; width: max-content; --duration: calc(var(--count, 10) * 4s); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; align-items: center; gap: clamp(40px, 6vw, 88px); padding-right: clamp(40px, 6vw, 88px); list-style: none; animation: marquee var(--duration) linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__item img { width: auto; height: auto; max-height: 72px; max-width: 180px; object-fit: contain; filter: grayscale(1); opacity: 0.75; transition: filter 0.3s, opacity 0.3s; }
.marquee__item a:hover img, .marquee__item a:focus-visible img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Newsletter ---------- */
.newsletter { padding: 0 0 clamp(48px, 6vw, 72px); }
.newsletter__box { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; padding: clamp(28px, 4vw, 48px); border-radius: 20px; background: var(--red); color: var(--white); }
.newsletter h2 { margin: 0 0 6px; color: var(--white); font-size: clamp(24px, 2.8vw, 34px); font-weight: 600; }
.newsletter p { margin: 0; font-family: var(--font-head); font-weight: 500; }
.newsletter__form { position: relative; display: flex; gap: 8px; padding: 8px; border-radius: 14px; background: var(--white); }
.newsletter__form input { flex: 1; min-width: 0; padding: 10px 16px; border: 0; background: transparent; color: var(--ink); }
.newsletter__form input:focus { outline: none; }
.newsletter__form:focus-within { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5); }
.newsletter__form button { padding: 10px 26px; border: 0; border-radius: 10px; background: #d7d7d7; color: var(--red); font-family: var(--font-head); font-weight: 600; cursor: pointer; transition: background 0.25s, color 0.25s; }
.newsletter__form button:hover { background: var(--black); color: var(--white); }
@media (max-width: 860px) { .newsletter__box { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .newsletter__form { flex-direction: column; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; padding: clamp(64px, 8vw, 110px) 0 0; background: #050505; color: rgba(255, 255, 255, 0.82); overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 40% 0%, rgba(90, 70, 20, 0.35), transparent 70%), repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 22px), repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 22px); pointer-events: none; }
.site-footer__grid { position: relative; display: grid; grid-template-columns: 1.6fr 0.8fr 1.2fr 1fr; gap: 40px; padding-bottom: 56px; }
.site-footer__about p { max-width: 400px; margin: 0; }
.site-footer__title { color: var(--white); font-size: 22px; font-weight: 500; margin: 0 0 20px; }
.footer-menu { list-style: none; }
.footer-menu li { position: relative; padding-left: 14px; margin-bottom: 10px; }
.footer-menu li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: #ffb4b6; }
.footer-menu a { font-family: var(--font-head); font-weight: 500; }
.site-footer__address, .site-footer__mail { display: flex; gap: 12px; align-items: flex-start; font-family: var(--font-head); font-weight: 500; color: var(--white); }
.site-footer__address strong { display: block; font-weight: 500; }
.site-footer__address .icon, .site-footer__mail .icon { margin-top: 4px; }
.site-footer__mail { margin-top: 16px; }
.site-footer__bottom { position: relative; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; padding-bottom: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 14px; }
.site-footer__bottom p { margin: 0; }
@media (max-width: 1024px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

.socials { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s; }
.socials .icon { width: 20px; height: 20px; }
.socials--round a { border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50%; color: var(--white); }
.socials--round a:hover { background: var(--red); border-color: var(--red); color: var(--white); transform: translateY(-2px); }
.socials--square a { border-radius: 6px; background: var(--ink); color: var(--white); width: 38px; height: 38px; }
.socials--square a:hover { background: var(--red); color: var(--white); }
.socials--square .icon { width: 18px; height: 18px; }

/* ---------- About ---------- */
.about-intro__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-intro__media { position: relative; }
.about-intro__img { border-radius: 60px 60px 60px 0; overflow: hidden; }
.about-intro__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.counter-badge { position: absolute; right: -24px; bottom: -24px; display: grid; justify-items: center; gap: 4px; margin: 0; padding: 18px 26px; border-radius: 8px; background: #d9d9d9; color: var(--ink); text-align: center; box-shadow: var(--shadow); }
.counter-badge__num { font-family: var(--font-head); font-size: 34px; font-weight: 500; line-height: 1; color: var(--red); }
.counter-badge__label { font-size: 13px; line-height: 1.3; color: var(--red); max-width: 7em; }
.about-intro__text .section-head { margin-bottom: 20px; }
.prose { font-size: 16px; }
.prose > *:last-child { margin-bottom: 0; }
.prose h2 { font-size: clamp(24px, 2.6vw, 32px); color: var(--red); margin-top: 1.4em; }
.prose h3 { font-size: 22px; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose img, .prose figure { border-radius: 12px; margin: 1.5em 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--red); font-size: 18px; color: var(--ink); }
@media (max-width: 860px) { .about-intro__grid { grid-template-columns: 1fr; } .counter-badge { right: 12px; bottom: -20px; } }

.core__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { padding: clamp(24px, 3vw, 36px); border-radius: 6px; background: #f5f4f4; }
.panel--wide { grid-column: 1 / -1; }
.panel__title { color: var(--red); font-size: 22px; margin-bottom: 12px; }
.panel p { margin: 0; font-size: 15px; }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; list-style: none; }
.value { padding: 20px; border-radius: 6px; background: var(--white); transition: transform 0.3s var(--ease-out), box-shadow 0.3s; }
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value h4 { font-size: 16px; margin-bottom: 8px; }
.value p { font-size: 14px; }
.value--rust h4 { color: #c05a3c; }
.value--olive h4 { color: #8b8a3e; }
.value--green h4 { color: #5f8f5a; }
.value--teal h4 { color: #4c8a8f; }
.value--plum h4 { color: #8a5f93; }
.value--rose h4 { color: #c26c78; }
@media (max-width: 860px) { .core__grid, .values { grid-template-columns: 1fr; } }

.team-grid .section-head { margin-bottom: 32px; }
.team-grid__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; list-style: none; margin-bottom: clamp(48px, 6vw, 80px); }
.team-grid__list:last-child { margin-bottom: 0; }
.team-grid__list > li { width: calc((100% - 4 * 20px) / 5); }
.team-grid__list--programme > li { width: calc((100% - 4 * 20px) / 4.4); }
.person { position: relative; display: block; border-radius: 6px; overflow: hidden; color: var(--white); }
.person__img img { width: 100%; aspect-ratio: 5 / 6.4; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.person:hover .person__img img { transform: scale(1.05); }
.person::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(180deg, rgba(172, 23, 29, 0) 0%, rgba(172, 23, 29, 0.85) 70%, #ac171d 100%); pointer-events: none; }
.person__text { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; display: grid; gap: 2px; }
.person__name { font-family: var(--font-head); font-weight: 600; font-size: 14px; line-height: 1.3; }
.person__role { font-size: 11px; line-height: 1.3; opacity: 0.9; }
@media (max-width: 1024px) { .team-grid__list > li, .team-grid__list--programme > li { width: calc((100% - 2 * 20px) / 3); } }
@media (max-width: 560px) { .team-grid__list > li, .team-grid__list--programme > li { width: calc((100% - 20px) / 2); } }

/* ---------- Funding chart ---------- */
.funding__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 36px; }
.funding__tabs button { min-width: 64px; padding: 8px 16px; border: 0; border-radius: 4px; background: #e8e6e5; color: var(--red); font-family: var(--font-head); font-weight: 600; font-size: 15px; cursor: pointer; transition: background 0.2s, color 0.2s; }
.funding__tabs button:hover { background: #dcd8d6; }
.funding__tabs button[aria-selected="true"] { background: var(--red); color: var(--white); }
.funding__panel:focus-visible { outline-offset: 8px; }
.bars { list-style: none; display: grid; gap: 14px; }
.bars__row { display: grid; grid-template-columns: minmax(140px, 34%) 1fr 64px; align-items: center; gap: 16px; }
.bars__label { color: var(--ink); font-size: 15px; line-height: 1.35; }
.bars__track { height: 14px; border-radius: 0 4px 4px 0; background: #f1efee; overflow: hidden; }
.bars__fill { display: block; height: 100%; width: var(--w); border-radius: 0 4px 4px 0; background: var(--red); transform-origin: left; transition: transform 1s var(--ease-out); }
.js .funding__panel:not(.is-drawn) .bars__fill { transform: scaleX(0); }
.bars__value { font-family: var(--font-head); font-weight: 600; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .bars__row { grid-template-columns: 1fr 56px; gap: 4px 12px; } .bars__label { grid-column: 1 / -1; } }

/* ---------- Team page ---------- */
.team-group { background: var(--white); }
.team-group + .team-group { padding-top: 0; }
.team-group__title { position: sticky; top: calc(var(--header-h) + 8px); z-index: 2; margin-bottom: 48px; padding: 8px 0; background: var(--white); text-align: center; }
.member { display: grid; grid-template-columns: 320px 1fr; gap: clamp(24px, 4vw, 48px); max-width: 1080px; margin: 0 auto clamp(56px, 7vw, 96px); scroll-margin-top: calc(var(--header-h) + 90px); }
.member__img { border-radius: 8px; overflow: hidden; align-self: start; }
.member__img img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; }
.member__name { color: var(--red); font-size: clamp(26px, 3vw, 38px); margin: 0 0 6px; }
.member__role { margin: 0 0 18px; color: var(--red); font-family: var(--font-head); font-weight: 500; font-size: 14px; }
.member__bio { font-size: 15px; }
.member__social { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; font-family: var(--font-head); font-weight: 500; font-size: 14px; color: var(--red); }
@media (max-width: 760px) { .member { grid-template-columns: 1fr; } .member__img { max-width: 320px; } }

/* ---------- Our Work, archives ---------- */
.work-area__more { margin: 32px 0 0; text-align: center; }
.list-title { margin: 0 0 24px; font-size: 22px; color: var(--ink); }
.archive-grid + .list-title { margin-top: 56px; }

/* ---------- Project ---------- */
.project__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.project__lead { font-size: clamp(24px, 2.8vw, 34px); color: var(--red); margin-bottom: 24px; }
.project__aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.facts { padding: 28px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.facts__title { margin: 0 0 16px; font-size: 18px; color: var(--ink); }
.facts dl { margin: 0; display: grid; gap: 14px; }
.facts dl > div { display: grid; gap: 2px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.facts dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { font-family: var(--font-head); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); font-size: 15px; }
.facts dd ul { list-style: none; display: grid; gap: 2px; }
.facts dd a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(172, 23, 29, 0.4); text-underline-offset: 3px; }
.facts dd a:hover { color: var(--red); }
.facts__docs { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-family: var(--font-head); font-weight: 500; font-size: 14px; }
.facts__note { margin: 16px 0 0; font-size: 14px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status--active { color: #1f7a3a; }
.status--done { color: var(--muted); }
.mini-list { list-style: none; display: grid; gap: 10px; }
.mini-list a { display: grid; color: var(--ink); font-size: 15px; line-height: 1.4; }
.mini-list span { font-size: 12px; color: var(--muted); }
.docs { margin-top: 48px; }
.docs__title { font-size: 22px; color: var(--ink); }
.docs__list { list-style: none; display: grid; gap: 10px; }
.doc { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); transition: border-color 0.25s, box-shadow 0.25s; }
.doc:hover { border-color: var(--red); box-shadow: var(--shadow); color: var(--ink); }
.doc__icon { color: var(--red); }
.doc__title { font-weight: 600; line-height: 1.35; }
.doc__meta { font-size: 13px; color: var(--muted); }
.doc__action { color: var(--red); }
@media (max-width: 960px) { .project__grid { grid-template-columns: 1fr; } .project__aside { position: static; } }

.gallery-section { position: relative; background: var(--bg); overflow: hidden; }
.gallery-section::before { content: ""; position: absolute; inset: -20% -10%; background: radial-gradient(40% 50% at 20% 30%, rgba(172, 23, 29, 0.08), transparent 70%), radial-gradient(35% 45% at 80% 70%, rgba(0, 0, 0, 0.05), transparent 70%); transform: translate3d(var(--px, 0), var(--py, 0), 0); pointer-events: none; }
.gallery { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; }
.gallery__item { display: block; border-radius: 10px; overflow: hidden; cursor: zoom-in; }
.gallery__item img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.gallery__item:hover img { transform: scale(1.06); }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.lightbox:not([open]) { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 48px 72px; border: 0; background: rgba(0, 0, 0, 0.92); }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.9); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 96px); width: auto; border-radius: 6px; }
.lightbox button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50%; background: rgba(0, 0, 0, 0.4); color: var(--white); cursor: pointer; }
.lightbox button:hover { background: var(--red); border-color: var(--red); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox { padding: 64px 12px; } .lightbox__prev, .lightbox__next { top: auto; bottom: 12px; transform: none; } }

/* ---------- Publications ---------- */
.pubs { list-style: none; row-gap: 48px; }
.pub { display: block; text-align: center; }
.pub__cover { overflow: hidden; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.35); transition: transform 0.5s var(--ease-out), box-shadow 0.5s; }
.pub:hover .pub__cover { transform: translateY(-6px); box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.45); }
.pub__cover img { width: 100%; aspect-ratio: 283 / 400; object-fit: cover; }
.pub__title { margin: 20px 0 4px; color: var(--red); font-size: 18px; line-height: 1.35; }
.pub__meta { margin: 0; font-size: 14px; }
.section-intro-block { margin: 0 auto 48px; }

.has-hero-plain .site-main { padding-top: 0; }
.publication__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.publication__cover { position: sticky; top: calc(var(--header-h) + 24px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5); }
.publication__cover img { width: 100%; }
.publication__body .breadcrumb ol { justify-content: flex-start; color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.publication__title { color: var(--red); font-size: clamp(30px, 3.6vw, 46px); margin-bottom: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-bottom: 28px; }
.chip { padding: 8px 16px; border-radius: 6px; background: #1a1a1a; color: var(--white); font-size: 14px; }
.chip strong { color: var(--white); font-weight: 600; }
.get-copy { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.get-copy__title { color: var(--red); font-size: 24px; }
.get-copy__links { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) { .publication__grid { grid-template-columns: 1fr; } .publication__cover { position: static; max-width: 340px; } }

/* ---------- Contact ---------- */
.contact-card { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: 12px; border-radius: 20px; background: var(--white); }
.contact-card__img { border-radius: 14px; overflow: hidden; }
.contact-card__img img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.contact-card__body { padding: 24px clamp(8px, 3vw, 40px) 24px 0; }
.contact-card .section-head { margin-bottom: 24px; }
.contact-list { list-style: none; display: grid; gap: 16px; margin-bottom: 24px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
.contact-list .icon { color: var(--red); margin-top: 3px; }
.contact-list a { font-size: 18px; }
@media (max-width: 860px) { .contact-card { grid-template-columns: 1fr; } .contact-card__body { padding: 8px 12px 20px; } }

/* ---------- Lists, misc ---------- */
.post-list { list-style: none; display: grid; gap: 32px; max-width: 980px; margin: 0 auto; }
.post-list__item { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: center; }
.post-list__img { display: block; border-radius: 12px; overflow: hidden; }
.post-list__meta { margin: 0 0 4px; font-size: 13px; color: var(--muted); }
.post-list__title { font-size: 22px; }
.post-list__title a { color: var(--ink); }
.post-list__title a:hover { color: var(--red); }
@media (max-width: 640px) { .post-list__item { grid-template-columns: 1fr; } }
.post-image { margin-bottom: 32px; border-radius: 12px; overflow: hidden; }
.big-404 { font-family: var(--font-head); font-size: clamp(96px, 18vw, 200px); font-weight: 700; line-height: 1; color: var(--red); margin: 0 0 16px; }
.search-box { margin: 0 auto 40px; }
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-field { width: 100%; padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; }
.search-submit { padding: 12px 22px; border: 0; border-radius: 999px; background: var(--red); color: var(--white); cursor: pointer; }
.nav-links { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.page-numbers { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); }
.page-numbers.current, .page-numbers:hover { background: var(--red); border-color: var(--red); color: var(--white); }

/* WordPress core blocks inside .prose */
.wp-block-image img { border-radius: 12px; }
.wp-block-gallery { gap: 12px; }
.alignwide { max-width: 1100px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ==========================================================================
   Motion
   Same effects as the old site, without GSAP / Elementor / ElementsKit.
   Content is only hidden when JS runs (html.js) and motion is allowed.
   ========================================================================== */

/* Shiny glass sweep on hover */
.shine { position: relative; overflow: hidden; }
.shine::after { content: ""; position: absolute; left: 50%; top: 50%; z-index: 1; width: 200%; height: 0; background: rgba(255, 255, 255, 0.3); transform: translate(-50%, -50%) rotate(-45deg); pointer-events: none; }
a:hover > .shine::after, .shine:hover::after, a.shine:hover::after { height: 250%; background: transparent; transition: all 600ms linear; }

@media (prefers-reduced-motion: no-preference) {
	/* Entrance: fade in up (Elementor fadeInUp) */
	.js [data-reveal] { opacity: 0; transition: opacity 0.9s var(--ease-out) var(--d, 0ms), transform 0.9s var(--ease-out) var(--d, 0ms); }
	.js [data-reveal="fade-up"] { transform: translate3d(0, 40px, 0); }
	.js [data-reveal="fade"] { transform: none; }
	.js [data-reveal].is-in { opacity: 1; transform: none; }

	/* Entrance: bounce in from the sides (Elementor bounceInLeft / Right, slow) */
	.js [data-reveal^="bounce"] { transition: none; }
	.js [data-reveal="bounce-left"].is-in { animation: bounceInLeft 2s var(--d, 0ms) both; }
	.js [data-reveal="bounce-right"].is-in { animation: bounceInRight 2s var(--d, 0ms) both; }

	/* Headings: letters slide in from the right (old "style-3") */
	.js [data-split] .split__c { display: inline-block; opacity: 0; transform: translate3d(50px, 0, 0); transition: opacity 1s var(--ease-back), transform 1s var(--ease-back); transition-delay: calc(var(--i) * 20ms); }
	.js [data-split].is-in .split__c { opacity: 1; transform: none; }

	/* Images: curtain reveal from left to right (old "image style-1") */
	.js .reveal-img img { clip-path: inset(0 100% 0 0); transition: clip-path 1.5s cubic-bezier(0.45, 0, 0.2, 1); }
	.js .reveal-img.is-in img { clip-path: inset(0 0 0 0); }
}

.split { display: inline; }
.split__w { display: inline-block; white-space: nowrap; }

@keyframes bounceInLeft {
	0%, 60%, 75%, 90%, 100% { animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }
	0% { opacity: 0; transform: translate3d(-3000px, 0, 0) scaleX(3); }
	60% { opacity: 1; transform: translate3d(25px, 0, 0) scaleX(1); }
	75% { transform: translate3d(-10px, 0, 0) scaleX(0.98); }
	90% { transform: translate3d(5px, 0, 0) scaleX(0.995); }
	100% { opacity: 1; transform: none; }
}
@keyframes bounceInRight {
	0%, 60%, 75%, 90%, 100% { animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }
	0% { opacity: 0; transform: translate3d(3000px, 0, 0) scaleX(3); }
	60% { opacity: 1; transform: translate3d(-25px, 0, 0) scaleX(1); }
	75% { transform: translate3d(10px, 0, 0) scaleX(0.98); }
	90% { transform: translate3d(-5px, 0, 0) scaleX(0.995); }
	100% { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.marquee { width: auto; flex-wrap: wrap; justify-content: center; mask-image: none; -webkit-mask-image: none; }
	.marquee__track { animation: none; flex-wrap: wrap; justify-content: center; gap: 24px 32px; padding: 0 var(--gutter); }
	.marquee__item img { max-width: 130px; max-height: 56px; }
	.marquee__track[aria-hidden="true"] { display: none; }
	*, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
