/* ==========================================================================
   Beica Mădulari — main stylesheet
   ========================================================================== */

:root {
	--forest: #16301f;
	--forest-2: #1f3d2a;
	--forest-3: #2b5238;
	--moss: #45704b;
	--leaf: #6a9150;
	--sage: #a9b99a;
	--sage-2: #e2e9d8;
	--sage-3: #f0f4ea;
	--cream: #f5efe2;
	--paper: #fbf8f2;
	--white: #fffdf9;
	--sand: #ece2cd;
	--ink: #18221b;
	--muted: #556258;
	--line: rgba(24, 34, 27, .12);
	--line-strong: rgba(24, 34, 27, .22);
	--gold: #b8892c;
	--gold-2: #e3bd62;
	--gold-soft: #f6e8c4;
	--serif: "Fraunces", Georgia, "Times New Roman", serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 40px);
	--radius: 10px;
	--radius-lg: 14px;
	--indigo: #2a3275;      /* data and evidence: dark shade of the association's "Indigo Beica-Mădulari" (#354099) */
	--indigo-soft: #e9ebf5; /* background for tables and data boxes */
	--gold-text: #8a6417;   /* gold that is readable as text on cream */
	--shadow-sm: 0 1px 2px rgba(22, 48, 31, .06), 0 4px 14px -6px rgba(22, 48, 31, .14);
	--shadow: 0 1px 2px rgba(22, 48, 31, .06), 0 18px 40px -18px rgba(22, 48, 31, .28);
	--header-h: 76px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* 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(--paper);
	color: var(--ink);
	font: 400 1.0625rem/1.65 var(--sans);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--forest-3); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--forest); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--forest); line-height: 1.12; letter-spacing: -.012em; margin: 0 0 .5em; font-variation-settings: "SOFT" 30; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }
.sr-only { 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 { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--forest); color: var(--cream); padding: 10px 16px; border-radius: 10px; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; color: var(--cream); }
.site-main:focus { outline: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: calc(800px + var(--gutter) * 2); }

.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.2em; }

/* Reveal on scroll (only when JS runs; falls back to visible). */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); animation: beica-reveal-fallback 0s 2.5s forwards; }
.js [data-reveal].is-visible { opacity: 1; transform: none; animation: none; }
.js-io [data-reveal]:not(.is-visible) { animation: none; }
@keyframes beica-reveal-fallback { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js [data-reveal] { opacity: 1; transform: none; transition: none; animation: none; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Typography helpers ---------------------------------------------------- */
.eyebrow {
	display: inline-flex; align-items: center; gap: .5em;
	margin: 0 0 1rem;
	font: 600 .78rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase;
	color: var(--moss);
}
.eyebrow .icon { width: 1.15em; height: 1.15em; color: var(--gold); }
.eyebrow--light { color: var(--gold-2); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head--split > div { max-width: 640px; }
.section-title { font-size: clamp(2rem, 4vw, 3.1rem); margin-bottom: .4em; }
.section-title--sm { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-intro { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); margin: 0; }
.section-more { text-align: center; margin: clamp(32px, 4vw, 48px) 0 0; }

/* Buttons & links ------------------------------------------------------- */
.btn {
	--btn-bg: var(--forest); --btn-fg: var(--cream); --btn-bd: var(--forest);
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	min-height: 48px; padding: .75em 1.35em;
	border: 1.5px solid var(--btn-bd); border-radius: 999px;
	background: var(--btn-bg); color: var(--btn-fg);
	font: 600 .98rem/1.1 var(--sans); text-decoration: none; letter-spacing: .005em;
	transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
	cursor: pointer;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.btn:hover { color: var(--btn-fg); box-shadow: 0 10px 24px -14px rgba(22, 48, 31, .6); }
.btn:hover .icon--arrow-right { transform: translateX(3px); }
.btn--primary:hover { --btn-bg: var(--forest-3); --btn-bd: var(--forest-3); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--forest); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--white); --btn-bd: var(--forest); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--forest); --btn-bd: var(--forest); }
.btn--outline:hover { --btn-bg: var(--forest); --btn-fg: var(--cream); }
.btn--gold { --btn-bg: var(--gold-2); --btn-fg: var(--forest); --btn-bd: var(--gold-2); }
.btn--gold:hover { --btn-bg: #edca78; --btn-bd: #edca78; }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: var(--cream); --btn-bd: rgba(245, 239, 226, .4); }
.btn--ghost-light:hover { --btn-bg: rgba(245, 239, 226, .08); --btn-bd: var(--cream); }
.btn--small { min-height: 42px; padding: .6em 1.1em; font-size: .92rem; }

.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; color: var(--forest); text-decoration: none; border-bottom: 1.5px solid var(--gold-2); padding-bottom: 2px; }
.link-arrow .icon { width: 1.05em; height: 1.05em; transition: transform .25s var(--ease); }
.link-arrow:hover .icon--arrow-right { transform: translateX(3px); }
.link-arrow:hover .icon--arrow-left { transform: translateX(-3px); }

.chip { display: inline-flex; align-items: center; padding: .2em .7em; border-radius: 999px; background: var(--sage-2); color: var(--forest); font: 600 .72rem/1.5 var(--sans); letter-spacing: .04em; }
.chip--lang { background: var(--gold-soft); color: #6d5212; }

/* Header ----------------------------------------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	border-bottom: 1px solid transparent;
	transition: border-color .3s, box-shadow .3s;
}
/* Blurred background on a pseudo-element: a backdrop-filter on the header itself would turn it into the containing block of the fixed mobile menu. */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(251, 248, 242, .9); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
.nav-open .site-header::before { background: var(--paper); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(22, 48, 31, .5); }
.site-header__inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--forest); margin-right: auto; min-width: 0; }
.brand__logo { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 2px var(--gold-2), 0 4px 12px -4px rgba(0, 0, 0, .4); background: #0c0a0d; }
.brand__logo--svg { display: grid; place-items: center; color: var(--gold-2); }
.brand__logo--svg .icon { width: 24px; height: 24px; }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name { font: 600 1.2rem/1.1 var(--serif); letter-spacing: -.01em; white-space: nowrap; }
.brand__sub { font: 600 .66rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--moss); white-space: nowrap; }
.brand--light { color: var(--cream); }
.brand--light .brand__sub { color: var(--gold-2); }

.primary-nav .menu { list-style: none; margin: 0; padding: 0; }
.primary-nav a { text-decoration: none; }

.site-header__tools { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 38px; min-height: 34px; padding: 0 10px; border-radius: 999px; font: 650 .76rem/1 var(--sans); letter-spacing: .08em; color: var(--forest); text-decoration: none; transition: background-color .2s, color .2s; }
.lang-switch a:hover { background: var(--sage-3); }
.lang-switch a.is-current { background: var(--forest); color: var(--cream); }
.lang-switch .flag { width: 21px; height: 14px; flex: none; border-radius: 3px; box-shadow: 0 0 0 1px rgba(24, 34, 27, .16); }
.lang-switch--footer { background: transparent; border-color: rgba(245, 239, 226, .25); }
.lang-switch--footer a { color: var(--cream); }
.lang-switch--footer a:hover { background: rgba(245, 239, 226, .1); }
.lang-switch--footer a.is-current { background: var(--gold-2); color: var(--forest); }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--white); color: var(--forest); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle__bars { position: relative; width: 18px; height: 12px; display: block; }
.nav-toggle__bars span { position: absolute; left: 0; width: 100%; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease); }
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 5.2px; }
.nav-toggle__bars span:nth-child(3) { top: 10.4px; }
.nav-open .nav-toggle__bars span:nth-child(1) { top: 5.2px; transform: rotate(45deg); }
.nav-open .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle__bars span:nth-child(3) { top: 5.2px; transform: rotate(-45deg); }

@media (min-width: 900px) {
	.primary-nav .menu { display: flex; align-items: center; gap: 4px; }
	.primary-nav .menu > li { position: relative; }
	.primary-nav .menu > li > a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; font: 550 .97rem/1 var(--sans); color: var(--ink); transition: background-color .2s, color .2s; }
	.primary-nav .menu > li > a:hover, .primary-nav .menu > li:focus-within > a { background: var(--sage-3); color: var(--forest); }
	.primary-nav .menu > .current-menu-item > a, .primary-nav .menu > .current-menu-ancestor > a, .primary-nav .menu > .current_page_parent > a, .primary-nav .menu > .current-page-ancestor > a { color: var(--forest); box-shadow: inset 0 -2px 0 var(--gold-2); border-radius: 0; }
	.primary-nav .menu-item-has-children > a::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .6; }
	.primary-nav .sub-menu {
		position: absolute; left: 50%; top: calc(100% + 8px); min-width: 280px;
		list-style: none; margin: 0; padding: 10px;
		background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
		opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .2s, transform .2s var(--ease), visibility .2s;
	}
	.primary-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
	.primary-nav .menu-item-has-children:hover > .sub-menu, .primary-nav .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
	.primary-nav .sub-menu a { display: block; padding: 10px 14px; border-radius: 12px; color: var(--ink); font: 500 .95rem/1.3 var(--sans); }
	.primary-nav .sub-menu a:hover, .primary-nav .sub-menu .current-menu-item > a { background: var(--sage-3); color: var(--forest); }
}

@media (min-width: 900px) and (max-width: 1099.98px) {
	.site-header .brand__text { display: none; }
	.primary-nav .menu > li > a { padding: 0 9px; font-size: .92rem; white-space: nowrap; }
}

@media (max-width: 899.98px) {
	.nav-toggle { display: inline-flex; }
	.primary-nav {
		position: fixed; left: 0; right: 0; top: var(--nav-top, var(--header-h)); bottom: 0; z-index: 99;
		overflow-y: auto; overscroll-behavior: contain;
		padding: 16px var(--gutter) 48px;
		background: var(--paper);
		opacity: 0; visibility: hidden; transform: translateY(-8px);
		transition: opacity .25s, transform .25s var(--ease), visibility .25s;
	}
	.nav-open .primary-nav { opacity: 1; visibility: visible; transform: none; }
	.nav-open { overflow: hidden; }
	.primary-nav .menu > li { border-bottom: 1px solid var(--line); }
	.primary-nav .menu > li > a { display: block; padding: 18px 2px; font: 500 1.6rem/1.15 var(--serif); color: var(--forest); }
	.primary-nav .sub-menu { list-style: none; margin: -6px 0 14px; padding: 0 0 0 2px; display: grid; gap: 2px; }
	.primary-nav .sub-menu a { display: block; padding: 9px 0; color: var(--muted); font: 500 1.02rem/1.35 var(--sans); }
	.primary-nav .current-menu-item > a { color: var(--moss); }
}
@media (max-width: 420px) {
	:root { --header-h: 68px; }
	.brand__logo { width: 40px; height: 40px; }
	.brand__name { font-size: 1.05rem; }
	.brand__sub { font-size: .58rem; letter-spacing: .1em; }
	.brand { gap: 9px; }
	.site-header__tools { gap: 6px; }
	.site-header__inner { gap: 12px; }
	.site-header .lang-switch a { min-width: 40px; padding: 0 9px; }
	.nav-toggle { width: 42px; height: 42px; }
}

/* Hero ------------------------------------------------------------------- */
.hero {
	position: relative; overflow: hidden;
	padding: clamp(36px, 6vw, 84px) 0 clamp(64px, 8vw, 112px);
	background:
		radial-gradient(1100px 520px at 88% 10%, rgba(227, 189, 98, .16), transparent 60%),
		radial-gradient(900px 600px at 0% 100%, rgba(106, 145, 80, .12), transparent 60%),
		var(--paper);
}
.hero__decor { position: absolute; left: -40px; bottom: -40px; width: 360px; color: var(--sage); opacity: .5; pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(2.6rem, 5.4vw, 4.5rem); line-height: 1.02; letter-spacing: -.02em; margin-bottom: .45em; font-weight: 480; }
.hero__lead { font-size: clamp(1.08rem, 1.7vw, 1.28rem); color: var(--muted); max-width: 36em; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__media { position: relative; width: 100%; }
.hero__photo { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); background: var(--sage-2); box-shadow: var(--shadow); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.arch { position: relative; overflow: hidden; border-radius: 999px 999px var(--radius-lg) var(--radius-lg); aspect-ratio: 4 / 5; background: var(--sage-2); box-shadow: var(--shadow); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch--soft { box-shadow: var(--shadow-sm); }
.arch__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--moss); }
.arch__placeholder .icon { width: 64px; height: 64px; }
.hero__arch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); pointer-events: none; }
.hero__flower { position: absolute; right: -14px; top: 16%; width: clamp(92px, 11vw, 132px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 6px solid var(--paper); box-shadow: var(--shadow); }
.hero__flower img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge { position: absolute; left: 24px; bottom: 24px; display: flex; align-items: center; gap: 14px; max-width: 270px; padding: 14px 18px; border-radius: 20px; background: var(--white); box-shadow: var(--shadow); }
.hero__badge strong { font: 500 2.6rem/1 var(--serif); color: var(--gold-text); }
.hero__badge span { font-size: .86rem; line-height: 1.35; color: var(--muted); }

@media (max-width: 1023px) and (min-width: 701px) {
	.hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
	.hero__title { font-size: clamp(2.3rem, 5vw, 3.2rem); }
	.hero__badge { left: 12px; bottom: 12px; max-width: calc(100% - 24px); }
	.hero .hero__photo { aspect-ratio: 4 / 5; }
	.hero .hero__badge { gap: 10px; padding: 10px 12px; }
	.hero .hero__badge strong { font-size: 1.9rem; }
	.hero .hero__badge span { font-size: .76rem; }
}
@media (max-width: 700px) {
	.hero__grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
	.hero__photo { aspect-ratio: 4 / 3; }
	.arch { aspect-ratio: 5 / 6; }
	.hero__badge { left: 12px; bottom: 16px; }
}
@media (max-width: 420px) {
	.hero__title { font-size: 2.35rem; }
	.hero__actions .btn { width: 100%; }
	.hero__badge { max-width: calc(100% - 24px); padding: 12px 14px; }
	.hero__badge strong { font-size: 2.1rem; }
}

/* Areas of work ---------------------------------------------------------- */
.areas { background: linear-gradient(180deg, var(--cream), var(--paper)); }
.area-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); }
@media (max-width: 1023px) { .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .area-grid { grid-template-columns: 1fr; } }
.area-card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.area-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.area-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sage-2); }
.area-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.area-card:hover .area-card__media img { transform: scale(1.045); }
.area-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 20, 13, .38), transparent 42%); pointer-events: none; }
.area-card__num { position: absolute; left: 18px; top: 14px; z-index: 1; font: italic 400 1.6rem/1 var(--serif); color: var(--white); text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.area-card__body { position: relative; display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 34px 26px 26px; }
.area-card__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--sage-3); color: var(--forest); border: 1px solid var(--sage-2); flex: none; }
.area-card__icon .icon { width: 26px; height: 26px; }
.area-card__body > .area-card__icon { position: absolute; top: -26px; left: 22px; background: var(--white); border-color: var(--line); box-shadow: var(--shadow-sm); }
.area-card__title { font-size: 1.55rem; margin: 0 0 .45em; }
.area-card__title a { color: inherit; text-decoration: none; }
.area-card__title a:hover { color: var(--moss); }
.area-card__text { color: var(--muted); font-size: 1rem; margin: 0 0 22px; flex: 1; }

/* About split -------------------------------------------------------------- */
.about-split__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-split__media { width: min(100%, 460px); }
.about-split__media .arch { aspect-ratio: 4 / 5; }
.check-list { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.check-list .icon { color: var(--leaf); margin-top: 2px; }
@media (max-width: 900px) {
	.about-split__grid { grid-template-columns: 1fr; }
	.about-split__media { margin: 0 auto; width: min(100%, 420px); }
	.about-split__media .arch { aspect-ratio: 5 / 4; border-radius: var(--radius-lg); }
}

/* Stats band -------------------------------------------------------------- */
.stats { background: var(--cream); color: var(--ink); padding: clamp(44px, 6vw, 72px) 0; position: relative; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats__grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; }
.stat { display: flex; flex-direction: column; gap: 8px; padding-left: 20px; border-left: 2px solid var(--gold-2); }
.stat__num { font: 450 clamp(2.4rem, 4.6vw, 4.5rem)/1 var(--serif); color: var(--forest); letter-spacing: -.02em; }
.stat__label { font-size: .94rem; line-height: 1.45; color: var(--muted); max-width: 24em; }
@media (max-width: 760px) { .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .stats__grid { grid-template-columns: 1fr; gap: 22px; } }

/* What defines us -------------------------------------------------------- */
.defines { padding: clamp(36px, 5vw, 56px) 0; background: var(--white); border-top: 1px solid var(--line); }
.defines__title { font: 600 .8rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--moss); margin: 0 0 20px; }
.defines__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 32px; }
.defines__item { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 2px solid var(--gold-2); }
.defines__item strong { font: 500 1.2rem/1.3 var(--serif); color: var(--forest); }
.defines__item span { color: var(--muted); font-size: .98rem; }
.defines__item .link-arrow { align-self: flex-start; margin-top: 4px; font-size: .95rem; }
@media (max-width: 900px) { .defines__list { grid-template-columns: 1fr; } }

/* Three paths ------------------------------------------------------------- */
.paths { padding: clamp(36px, 5vw, 56px) 0; background: var(--paper); }
.paths__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.path-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .25s, box-shadow .25s; }
.path-card:hover { border-color: var(--gold-2); box-shadow: var(--shadow-sm); color: var(--ink); }
.path-card__title { font: 500 1.25rem/1.25 var(--serif); color: var(--forest); }
.path-card__text { color: var(--muted); flex: 1; }
.path-card__more { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--forest); }
@media (max-width: 900px) { .paths__grid { grid-template-columns: 1fr; } }

/* Film (YouTube loads only after a click) ---------------------------------- */
.film { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--forest); max-width: 1000px; margin: 0 auto; }
.film__btn, .film iframe { width: 100%; height: 100%; border: 0; padding: 0; display: block; position: relative; cursor: pointer; background: var(--forest); }
.film__btn img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.film__label { position: absolute; left: 24px; bottom: 24px; background: var(--forest); color: var(--cream); padding: 12px 20px; border-radius: 999px; font: 600 1rem/1 var(--sans); }
.film__btn:hover .film__label, .film__btn:focus-visible .film__label { background: var(--forest-3); }
.film__note { text-align: center; color: var(--muted); font-size: .9rem; margin: 14px 0 0; }

/* Recognition strip ------------------------------------------------------- */
.verify { background: var(--indigo-soft); border-top: 1px solid rgba(42, 50, 117, .14); border-bottom: 1px solid rgba(42, 50, 117, .14); padding: 22px 0; }
.verify__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.verify__title { display: inline-flex; align-items: center; gap: .45em; margin: 0; font: 600 .78rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--indigo); }
.verify__title .icon { width: 1.1em; height: 1.1em; color: var(--indigo); }
.verify__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; flex: 1; }
.verify__list li { font-size: .88rem; line-height: 1.35; }
.verify__list a, .verify__list li { color: var(--indigo); }
.verify__list a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--white); border: 1px solid rgba(42, 50, 117, .2); text-decoration: none; transition: border-color .25s; }
.verify__list a:hover { border-color: var(--indigo); }
@media (max-width: 600px) { .verify__inner { flex-direction: column; align-items: flex-start; } }

/* Carta ------------------------------------------------------------------- */
.carta { background: var(--cream); }
.carta__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.medallion { position: relative; width: min(100%, 380px); aspect-ratio: 1; margin: 0 auto; border-radius: 50%; overflow: hidden; background: #0c0a0d; box-shadow: 0 0 0 8px var(--white), 0 0 0 9px var(--gold-2), var(--shadow); display: grid; place-items: center; color: var(--gold-2); }
.medallion img { width: 100%; height: 100%; object-fit: cover; }
.medallion > .icon { width: 40%; height: 40%; }
.principles__title { font: 600 .82rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--moss); margin: 32px 0 16px; }
.principles { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; }
.principles__item { display: flex; gap: 12px; align-items: center; font: 500 1rem/1.3 var(--serif); color: var(--forest); }
.principles__num { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--gold-2); color: var(--gold-text); font: 500 .95rem/1 var(--serif); }
.principles__note { font-size: .92rem; color: var(--muted); margin: 0 0 24px; max-width: 46em; }
@media (max-width: 1023px) {
	.carta__grid { grid-template-columns: 1fr; }
	.medallion { width: min(78%, 320px); }
}
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }

/* Moments (home page content) -------------------------------------------- */
.moments { padding-bottom: 0; }

/* Field Journal ----------------------------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); }
@media (max-width: 1023px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.post-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, var(--sage-2), var(--cream)); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.045); }
.post-card__placeholder { display: grid; place-items: center; height: 100%; color: var(--moss); opacity: .6; }
.post-card__placeholder .icon { width: 48px; height: 48px; }
.post-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex: 1; padding: 22px 24px 24px; }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: .85rem; color: var(--muted); }
.post-card__title { font-size: 1.35rem; margin: 0; }
.post-card__title a { color: inherit; text-decoration: none; }
.post-card__title a:hover { color: var(--moss); }
.post-card__excerpt { color: var(--muted); font-size: .98rem; margin: 0; flex: 1; }
.post-card .link-arrow { margin-top: 6px; }

.journal-empty { max-width: 640px; margin: 0 auto; padding: clamp(36px, 5vw, 56px) 28px; text-align: center; border: 1.5px dashed var(--sage); border-radius: 28px; background: rgba(255, 253, 249, .7); }
.journal-empty__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--sage-3); color: var(--leaf); margin-bottom: 16px; }
.journal-empty__icon .icon { width: 30px; height: 30px; }
.journal-empty__title { font-size: 1.7rem; margin-bottom: .3em; }
.journal-empty p { color: var(--muted); margin: 0; }

.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--forest); text-decoration: none; font-weight: 600; }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--forest); color: var(--cream); border-color: var(--forest); }

/* Partners ---------------------------------------------------------------- */
.partners { background: var(--paper); border-top: 1px solid var(--line); }
.partners__groups { display: grid; gap: clamp(28px, 4vw, 44px); }
.partners__group h3 { font: 600 .8rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--moss); margin: 0 0 16px; text-align: center; }
.partner-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.partner { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 22px 16px 18px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); color: var(--forest); text-decoration: none; text-align: center; transition: border-color .25s, box-shadow .25s; }
a.partner:hover { border-color: var(--forest); box-shadow: var(--shadow-sm); color: var(--forest); }
.partner__logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 80px; }
.partner__logo img { width: auto; height: auto; max-width: min(180px, 100%); max-height: 80px; object-fit: contain; }
.partner__mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--sage-3); color: var(--moss); }
.partner__mark .icon { width: 26px; height: 26px; }
.partner__name { font-size: .9rem; font-weight: 500; line-height: 1.35; color: var(--ink); }
.partner__note { font-size: .8rem; line-height: 1.4; color: var(--muted); }

/* Contact band ------------------------------------------------------------ */
.contact-band { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--forest) 0%, var(--forest-2) 55%, var(--forest-3) 100%); color: var(--cream); padding: clamp(64px, 8vw, 104px) 0; }
.contact-band__decor { position: absolute; right: -30px; top: -20px; width: 300px; color: rgba(227, 189, 98, .22); pointer-events: none; }
.contact-band__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.contact-band .section-title { color: var(--cream); }
.contact-band .section-intro { color: rgba(245, 239, 226, .82); margin-bottom: 28px; }
@media (max-width: 900px) { .contact-band__grid { grid-template-columns: 1fr; } }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list li > .icon { margin-top: 3px; color: var(--gold-2); }
.contact-list li > span { display: flex; flex-direction: column; min-width: 0; }
.contact-list__label { font: 600 .72rem/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.contact-list a { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; }
.contact-list--band { padding: 28px; border-radius: 24px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(245, 239, 226, .14); }

/* Footer ------------------------------------------------------------------ */
.site-footer { background: #0f2216; color: rgba(245, 239, 226, .82); padding: clamp(56px, 7vw, 88px) 0 0; font-size: .96rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.site-footer__brand p { margin: 20px 0 0; max-width: 34ch; }
.site-footer__motto { font: italic 400 1.08rem/1.45 var(--serif); color: var(--gold-2); }
.site-footer__title { font: 600 .76rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--cream); margin: 8px 0 18px; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer__links a { color: rgba(245, 239, 226, .82); text-decoration: none; }
.site-footer__links a:hover { color: var(--gold-2); }
.site-footer .contact-list { gap: 14px; }
.site-footer__legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding-top: 22px; padding-bottom: 22px; border-top: 1px solid rgba(245, 239, 226, .12); }
.site-footer__legal-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: .9rem; }
.site-footer__legal-links a { color: rgba(245, 239, 226, .82); text-decoration-color: rgba(245, 239, 226, .3); }
.site-footer__legal-links a:hover { color: var(--gold-2); }
.site-footer__sal { display: inline-block; line-height: 0; border-radius: 6px; background: #fff; }
.site-footer__sal img { width: 250px; height: 50px; object-fit: contain; }
.site-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid rgba(245, 239, 226, .12); font-size: .86rem; }
.site-footer__bottom p { margin: 0; }
@media (max-width: 1023px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .site-footer__grid { grid-template-columns: 1fr; gap: 32px; } }

/* Inner pages ------------------------------------------------------------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 72px) 0 clamp(36px, 5vw, 56px); background: radial-gradient(900px 400px at 85% 0%, rgba(227, 189, 98, .14), transparent 60%), linear-gradient(180deg, var(--cream), var(--paper)); }
.page-hero__decor { position: absolute; right: -20px; top: -30px; width: 260px; color: var(--sage); opacity: .45; pointer-events: none; }
.page-hero__inner { position: relative; max-width: calc(880px + var(--gutter) * 2); margin-left: 0; }
@media (min-width: 1280px) { .page-hero__inner { margin-left: calc((100vw - var(--wrap)) / 2 - var(--gutter)); } }
.page-hero__title { font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.04; letter-spacing: -.02em; margin-bottom: .35em; }
.page-hero__lead { font-size: clamp(1.08rem, 1.7vw, 1.3rem); color: var(--muted); max-width: 40em; margin: 0; }
.page-hero__badge { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.page-hero__num { font: italic 400 2rem/1 var(--serif); color: var(--gold-text); }
.page-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.page-hero--media .page-hero__inner { margin-left: 0; max-width: none; }
.page-hero__media { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--sage-2); box-shadow: var(--shadow); }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .page-hero__grid { grid-template-columns: 1fr; } .page-hero__media { aspect-ratio: 16 / 10; } }
.page-hero--404 { padding: clamp(80px, 12vw, 160px) 0; }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 22px; font-size: .86rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--forest); text-decoration: underline; }

.page-body { padding: clamp(24px, 4vw, 48px) 0 clamp(64px, 8vw, 104px); }
.page-banner { margin: 0 0 clamp(36px, 5vw, 56px); border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 2 / 1; background: var(--sage-2); box-shadow: var(--shadow-sm); }
.page-banner img { width: 100%; height: 100%; object-fit: cover; }
.page-banner--entry { aspect-ratio: auto; max-height: 720px; }
.page-banner--entry img { height: auto; max-height: 720px; }
@media (max-width: 640px) { .page-banner { aspect-ratio: 4 / 3; border-radius: var(--radius); } }
.area-grid--page { margin-top: 16px; }

.other-areas { background: var(--cream); padding-top: clamp(56px, 7vw, 88px); }
.other-areas__list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.other-areas__list a { display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 14px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); color: var(--forest); text-decoration: none; transition: border-color .25s, box-shadow .25s; }
.other-areas__list a:hover { border-color: var(--forest); box-shadow: var(--shadow-sm); }
.other-areas__list .area-card__icon { width: 46px; height: 46px; }
.other-areas__num { font: italic 400 1.05rem/1 var(--serif); color: var(--gold-text); }
.other-areas__name { font: 500 1.15rem/1.2 var(--serif); flex: 1; }
.other-areas__arrow { color: var(--moss); }

.contact-page { display: grid; gap: clamp(32px, 5vw, 56px); }
.contact-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1023px) { .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .contact-cards { grid-template-columns: 1fr; } }
.contact-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 26px; border-radius: 24px; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .25s, box-shadow .25s; min-width: 0; }
.contact-card:hover { border-color: var(--forest); box-shadow: var(--shadow-sm); color: var(--ink); }
.contact-card .area-card__icon { margin-bottom: 8px; }
.contact-card__label { font: 600 .74rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--moss); }
.contact-card strong { font: 500 1.15rem/1.35 var(--serif); color: var(--forest); overflow-wrap: anywhere; }
.contact-card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; font-size: .88rem; font-weight: 600; color: var(--moss); }
.contact-card__more .icon { width: 1em; height: 1em; }
.contact-page__body { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-page__body .prose { margin: 0; }
.contact-page__media { margin: 0; border-radius: var(--radius-lg); overflow: hidden; }
.contact-page__media img { width: 100%; height: auto; }
@media (max-width: 900px) { .contact-page__body { grid-template-columns: 1fr; } }

/* Single entry ------------------------------------------------------------ */
.entry__header { padding: clamp(36px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); background: linear-gradient(180deg, var(--cream), var(--paper)); }
.entry__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.entry__meta .icon { color: var(--gold); }
.entry__title { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.06; letter-spacing: -.02em; }
.entry__lead { font-size: 1.2rem; color: var(--muted); margin: 0; }
.entry .page-banner { max-width: 1100px; margin-left: auto; margin-right: auto; }
.entry__content { padding-bottom: 24px; }
.entry__footer { max-width: calc(880px + var(--gutter) * 2); padding-bottom: clamp(56px, 7vw, 88px); }
.entry-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0 28px; padding-top: 32px; border-top: 1px solid var(--line); }
.entry-nav__link { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--white); text-decoration: none; color: var(--forest); transition: border-color .25s; }
.entry-nav__link:hover { border-color: var(--forest); }
.entry-nav__link--next { grid-column: 2; text-align: right; align-items: flex-end; }
.entry-nav__label { display: inline-flex; align-items: center; gap: 6px; font: 600 .76rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--moss); }
.entry-nav__title { font: 500 1.1rem/1.3 var(--serif); }
@media (max-width: 640px) { .entry-nav { grid-template-columns: 1fr; } .entry-nav__link--next { grid-column: auto; } }

/* Prose (page and post content from the block editor) --------------------- */
.prose { max-width: 760px; margin: 0 auto; font-size: 1.08rem; line-height: 1.75; }
.prose--wide { max-width: none; }
.prose > * + * { margin-top: 0; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); margin: 1.8em 0 .55em; }
.prose h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin: 1.6em 0 .5em; }
.prose h4 { font-size: 1.15rem; margin: 1.4em 0 .4em; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul > li { position: relative; padding-left: 1.6em; margin-bottom: .55em; }
.prose ul > li::before { content: ""; position: absolute; left: .2em; top: .62em; width: .55em; height: .55em; border-radius: 50% 0; background: var(--leaf); transform: rotate(-45deg); }
.prose ol { padding-left: 1.4em; }
.prose ol > li { margin-bottom: .55em; padding-left: .3em; }
.prose ol > li::marker { color: var(--gold-text); font-family: var(--serif); font-weight: 600; }
.prose strong { color: var(--forest); font-weight: 600; }
.prose a { color: var(--forest-3); font-weight: 500; }
.prose .is-style-lead, .prose .is-lead { font-size: clamp(1.18rem, 2vw, 1.38rem); line-height: 1.6; color: var(--forest); font-family: var(--serif); font-weight: 400; }
.prose blockquote, .prose .wp-block-quote { margin: 2em 0; padding: 6px 0 6px 28px; border-left: 3px solid var(--gold-2); font: italic 400 clamp(1.25rem, 2.2vw, 1.55rem)/1.5 var(--serif); color: var(--forest); }
.prose blockquote p { margin: 0 0 .4em; }
.prose blockquote cite { display: block; margin-top: 8px; font: normal 600 .82rem/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--moss); }
.prose figure { margin: 2em 0; }
.prose img { border-radius: var(--radius); height: auto; }
.prose figcaption, .prose .wp-element-caption { margin-top: 10px; font-size: .88rem; color: var(--muted); text-align: center; }
.prose .alignwide { width: min(1100px, calc(100vw - var(--gutter) * 2)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.prose .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.prose .alignfull img { border-radius: 0; }
.prose hr, .prose .wp-block-separator { border: 0; height: 1px; background: var(--line); margin: 2.5em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid rgba(42, 50, 117, .14); text-align: left; vertical-align: top; }
.prose th { background: var(--indigo-soft); color: var(--indigo); font-weight: 600; }
.prose .wp-block-table { overflow-x: auto; }
.prose .wp-block-embed, .prose iframe { max-width: 100%; }
.prose .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5em 0; }
.prose .wp-block-button__link { display: inline-flex; align-items: center; min-height: 48px; padding: .75em 1.4em; border-radius: 999px; background: var(--forest); color: var(--cream); text-decoration: none; font-weight: 600; }
.prose .wp-block-button__link:hover { background: var(--forest-3); color: var(--cream); }
.prose .is-style-outline .wp-block-button__link { background: transparent; color: var(--forest); border: 1.5px solid var(--forest); }

/* Timeline list style */
.prose ul.is-style-timeline, .prose ol.is-style-timeline { list-style: none; padding: 0 0 0 28px; margin: 1.6em 0 2em; position: relative; }
.prose .is-style-timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1.5px; background: linear-gradient(var(--gold-2), var(--sage)); }
.prose .is-style-timeline > li { position: relative; padding: 0 0 0 10px; margin-bottom: 1.2em; }
.prose .is-style-timeline > li::before { content: ""; position: absolute; left: -27px; top: .5em; width: 15px; height: 15px; border-radius: 50%; background: var(--paper); border: 2px solid var(--gold); transform: none; }
.prose .is-style-timeline > li strong:first-child { display: block; font: 600 .8rem/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--moss); margin-bottom: 2px; }

/* Galleries */
/* Core gallery styles use flex and an id-level selector for widths; these selectors are one class stronger. */
.prose .wp-block-gallery.has-nested-images { display: grid; grid-template-columns: repeat(var(--gallery-cols, 3), minmax(0, 1fr)); gap: 12px; margin: 2em 0; }
.prose .wp-block-gallery.has-nested-images.columns-2 { --gallery-cols: 2; }
.prose .wp-block-gallery.has-nested-images.columns-4 { --gallery-cols: 4; }
.prose .wp-block-gallery.has-nested-images figure.wp-block-image:not(#beica) { margin: 0; width: auto; position: relative; overflow: hidden; border-radius: var(--radius); }
.prose .wp-block-gallery.has-nested-images figure.wp-block-image img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 0; }
.prose .wp-block-gallery.has-nested-images figure.wp-block-image figcaption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 26px 12px 10px; background: linear-gradient(transparent, rgba(10, 20, 13, .7)); color: #fff; font-size: .82rem; text-align: left; }

/* Moments section on the homepage uses a wider, more editorial gallery */
.moments .prose h2 { text-align: center; font-size: clamp(2rem, 4vw, 3.1rem); margin-bottom: .3em; }
.moments .prose > p { text-align: center; color: var(--muted); max-width: 680px; margin-left: auto; margin-right: auto; }
.moments .prose .wp-block-gallery.has-nested-images { --gallery-cols: 4; gap: 14px; }
.moments .prose .wp-block-gallery.has-nested-images figure.wp-block-image img { aspect-ratio: 3 / 4; }
@media (max-width: 760px) {
	.prose .wp-block-gallery.has-nested-images,
	.prose .wp-block-gallery.has-nested-images.columns-4,
	.moments .prose .wp-block-gallery.has-nested-images { --gallery-cols: 2; }
	.moments .prose .wp-block-gallery.has-nested-images figure.wp-block-image img { aspect-ratio: 1; }
}

/* Cookie notice ----------------------------------------------------------- */
.cookie-notice { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 14px 14px 14px 20px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 18px 48px -18px rgba(22, 48, 31, .45); color: var(--ink); font-size: .92rem; line-height: 1.5; }
.cookie-notice[hidden] { display: none; }
.cookie-notice__text { margin: 0; flex: 1; }
.cookie-notice__text a { font-weight: 600; white-space: nowrap; }
.cookie-notice__actions { display: flex; align-items: center; gap: 6px; flex: none; }
.cookie-notice__close { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.cookie-notice__close:hover { background: var(--sage-3); color: var(--forest); }
@media (max-width: 560px) {
	.cookie-notice { left: 10px; right: 10px; bottom: 10px; flex-wrap: wrap; gap: 10px; padding: 14px 12px 12px 16px; }
	.cookie-notice__actions { width: 100%; justify-content: flex-end; }
}

/* WordPress core helpers */
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: .88rem; color: var(--muted); }


/* ==========================================================================
   Motion: reveal on scroll, parallax and continuous ambient animation.
   Everything is switched off for visitors who ask their system for reduced motion.
   ========================================================================== */

/* Reveal variants (data-anim is set by main.js; --d = stagger delay). */
.js [data-reveal] { transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal][data-anim="up"] { transform: translateY(42px); }
.js [data-reveal][data-anim="left"] { transform: translateX(-56px); }
.js [data-reveal][data-anim="right"] { transform: translateX(56px); }
.js [data-reveal][data-anim="zoom"] { transform: scale(.86); filter: blur(6px); }
.js [data-reveal][data-anim="flip"] { transform: perspective(900px) rotateX(18deg) translateY(30px); transform-origin: 50% 100%; }
.js [data-reveal][data-anim="pop"] { transform: scale(.6) rotate(-6deg); }
.js [data-reveal].is-visible { opacity: 1; transform: none; filter: none; }

/* Scroll progress bar. */
.scroll-progress { position: fixed; left: 0; top: 0; z-index: 200; width: 100%; height: 4px; background: linear-gradient(90deg, var(--gold-2), var(--leaf), var(--gold)); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; box-shadow: 0 0 12px rgba(227, 189, 98, .7); }
.admin-bar .scroll-progress { top: 32px; }
@media (max-width: 782px) { .admin-bar .scroll-progress { top: 46px; } }

/* Hero: drifting light, Ken Burns photo, floating badge, word-by-word title. */
.hero, .page-hero { background-size: 160% 160%, 160% 160%, auto; animation: beica-bg-drift 18s ease-in-out infinite alternate; }
@keyframes beica-bg-drift { 0% { background-position: 0% 0%, 100% 100%, 0 0; } 100% { background-position: 100% 60%, 0% 20%, 0 0; } }
.hero__photo img, .page-hero__media img, .page-banner img { animation: beica-kenburns 22s ease-in-out infinite alternate; }
@keyframes beica-kenburns { 0% { scale: 1.06; } 100% { scale: 1.2; } }
.hero__photo::after, .page-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .28) 48%, transparent 66%); transform: translateX(-120%); animation: beica-sheen 7s ease-in-out 2s infinite; pointer-events: none; }
@keyframes beica-sheen { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.hero__badge { animation: beica-bob 4.5s ease-in-out infinite; }
@keyframes beica-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero__badge strong { animation: beica-glow 3s ease-in-out infinite; }
@keyframes beica-glow { 0%, 100% { text-shadow: 0 0 0 rgba(227, 189, 98, 0); } 50% { text-shadow: 0 0 18px rgba(227, 189, 98, .65); } }
.word { display: inline-block; opacity: 0; transform: translateY(.6em) rotate(4deg); animation: beica-word .8s var(--ease) forwards; animation-delay: calc(var(--w, 0) * 90ms + 150ms); }
@keyframes beica-word { to { opacity: 1; transform: none; } }
.hero__decor .botanical, .page-hero__decor .botanical, .contact-band__decor .botanical { transform-origin: 50% 100%; animation: beica-sway 9s ease-in-out infinite; }
@keyframes beica-sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg) scale(1.04); } }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; margin-left: -21px; border-radius: 50%; border: 1.5px solid var(--line-strong); color: var(--forest); background: rgba(255, 253, 249, .7); animation: beica-cue 2.2s ease-in-out infinite; }
.scroll-cue svg { width: 18px; height: 18px; }
@keyframes beica-cue { 0%, 100% { transform: translateY(0); opacity: .7; } 50% { transform: translateY(8px); opacity: 1; } }

/* Floating particles (leaves and pollen) created by main.js. */
.particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.particle { position: absolute; bottom: -30px; left: var(--x); width: var(--s); height: var(--s); opacity: 0; border-radius: 60% 0 60% 0; background: var(--c, rgba(106, 145, 80, .45)); animation: beica-float var(--t) linear var(--delay) infinite; }
.particle--dot { border-radius: 50%; background: rgba(227, 189, 98, .55); box-shadow: 0 0 10px rgba(227, 189, 98, .6); }
@keyframes beica-float { 0% { transform: translate(0, 0) rotate(0deg); opacity: 0; } 10% { opacity: 1; } 50% { transform: translate(var(--dx), -55vh) rotate(180deg); } 90% { opacity: .9; } 100% { transform: translate(calc(var(--dx) * -1), -115vh) rotate(360deg); opacity: 0; } }
.hero > .wrap, .page-hero > .wrap, .contact-band > .wrap, .stats > .wrap { position: relative; z-index: 1; }

/* Buttons: light sweep and a soft pulse on the main call to action. */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); animation: beica-btn-sweep 4.5s ease-in-out infinite; z-index: -1; pointer-events: none; }
.btn--ghost::after, .btn--outline::after { background: linear-gradient(100deg, transparent, rgba(227, 189, 98, .35), transparent); }
@keyframes beica-btn-sweep { 0%, 65% { left: -60%; } 100% { left: 130%; } }
.hero .btn--primary { animation: beica-pulse 2.6s ease-out infinite; }
@keyframes beica-pulse { 0% { box-shadow: 0 0 0 0 rgba(22, 48, 31, .45); } 70% { box-shadow: 0 0 0 16px rgba(22, 48, 31, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 48, 31, 0); } }

/* Section titles: a gold line that grows when the heading appears. */
.section-title::after { content: ""; display: block; width: 0; height: 3px; margin-top: .35em; border-radius: 3px; background: linear-gradient(90deg, var(--gold-2), var(--leaf)); transition: width 1.1s var(--ease) .35s; }
.section-head--center .section-title::after { margin-left: auto; margin-right: auto; }
.is-visible .section-title::after, .section-title.is-visible::after { width: 84px; }
.prose h2 { position: relative; }
.prose h2::after { content: ""; display: block; width: 0; height: 2px; margin-top: .3em; background: var(--gold-2); transition: width 1s var(--ease) .3s; }
.prose h2.is-visible::after { width: 56px; }

/* Eyebrows and small icons keep moving. */
.eyebrow .icon, .verify__title .icon { animation: beica-spin 9s linear infinite; }
@keyframes beica-spin { to { transform: rotate(360deg); } }
.area-card__icon, .partner__mark { animation: beica-wobble 5s ease-in-out infinite; }
.area-card:nth-child(2n) .area-card__icon, .partner-grid li:nth-child(2n) .partner__mark { animation-delay: -2.5s; }
@keyframes beica-wobble { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }
.area-card:hover .area-card__icon { animation: beica-spin 1.2s var(--ease); }

/* Cards: glowing border on hover, image zoom, light 3D tilt from main.js (no lift). */
.area-card, .path-card, .post-card, .partner, .contact-card, .defines__item { transition: border-color .35s, box-shadow .35s, transform .35s var(--ease); transform-style: preserve-3d; }
.area-card:hover, .path-card:hover, .post-card:hover, .partner:hover, .contact-card:hover { box-shadow: 0 0 0 2px var(--gold-2), 0 22px 46px -22px rgba(22, 48, 31, .45); }
.area-card:hover .area-card__media img, .post-card:hover .post-card__media img { transform: scale(1.1); }
.path-card { position: relative; overflow: hidden; }
.path-card::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(227, 189, 98, .3), transparent 70%); animation: beica-orbit 10s linear infinite; pointer-events: none; }
.path-card:nth-child(2)::before { animation-delay: -3.3s; }
.path-card:nth-child(3)::before { animation-delay: -6.6s; }
@keyframes beica-orbit { from { transform: rotate(0deg) translateX(40px) rotate(0deg); } to { transform: rotate(360deg) translateX(40px) rotate(-360deg); } }
.path-card__more .icon { animation: beica-nudge 1.8s ease-in-out infinite; }
@keyframes beica-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }

/* "What defines us": the gold line keeps flowing. */
.defines__item { border-top: 0; position: relative; }
.defines__item::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--gold-2), var(--leaf), var(--gold-2)); background-size: 200% 100%; animation: beica-flow 4s linear infinite; }
@keyframes beica-flow { to { background-position: -200% 0; } }

/* Big numbers: border pulse (numbers count up in main.js). */
.stat { animation: beica-border 3.5s ease-in-out infinite; }
.stat:nth-child(2n) { animation-delay: -1.75s; }
@keyframes beica-border { 0%, 100% { border-left-color: var(--gold-2); } 50% { border-left-color: var(--leaf); } }
.stat__num { display: inline-block; }

/* Recognition chips float gently, one after another. */
.verify__list li { animation: beica-chip 3.6s ease-in-out infinite; }
.verify__list li:nth-child(2) { animation-delay: -.5s; } .verify__list li:nth-child(3) { animation-delay: -1s; } .verify__list li:nth-child(4) { animation-delay: -1.5s; }
.verify__list li:nth-child(5) { animation-delay: -2s; } .verify__list li:nth-child(6) { animation-delay: -2.5s; } .verify__list li:nth-child(7) { animation-delay: -3s; }
@keyframes beica-chip { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* Charter emblem: rotating golden ring. */
.carta__emblem { position: relative; }
.carta__emblem::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(108%, 420px); aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: conic-gradient(from 0deg, transparent, rgba(227, 189, 98, .65), transparent 30%, rgba(106, 145, 80, .45), transparent 65%); animation: beica-ring 12s linear infinite; filter: blur(2px); }
@keyframes beica-ring { to { transform: translate(-50%, -50%) rotate(360deg); } }
.medallion { animation: beica-breathe 6s ease-in-out infinite; }
@keyframes beica-breathe { 0%, 100% { scale: 1; } 50% { scale: 1.03; } }
.principles__num { animation: beica-glow-ring 3s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.35s); }
@keyframes beica-glow-ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(227, 189, 98, 0); } 50% { box-shadow: 0 0 0 6px rgba(227, 189, 98, .25); } }

/* Header logo: soft golden halo. */
.brand__logo { animation: beica-halo 4s ease-in-out infinite; }
@keyframes beica-halo { 0%, 100% { box-shadow: 0 0 0 2px var(--gold-2), 0 4px 12px -4px rgba(0, 0, 0, .4); } 50% { box-shadow: 0 0 0 2px var(--gold-2), 0 0 18px 2px rgba(227, 189, 98, .55); } }

/* Galleries: images breathe slowly; hover zooms further. */
.prose .wp-block-gallery figure.wp-block-image img { animation: beica-breathe-img 14s ease-in-out infinite alternate; transition: filter .4s; }
.prose .wp-block-gallery figure.wp-block-image:nth-child(2n) img { animation-delay: -7s; }
.prose .wp-block-gallery figure.wp-block-image:nth-child(3n) img { animation-duration: 18s; }
.prose .wp-block-gallery figure.wp-block-image:hover img { scale: 1.16; filter: saturate(1.15); animation-play-state: paused; }
@keyframes beica-breathe-img { 0% { scale: 1; } 100% { scale: 1.1; } }

/* Film: pulsing play label. */
.film__label { animation: beica-pulse-light 2.4s ease-out infinite; }
@keyframes beica-pulse-light { 0% { box-shadow: 0 0 0 0 rgba(227, 189, 98, .6); } 70% { box-shadow: 0 0 0 18px rgba(227, 189, 98, 0); } 100% { box-shadow: 0 0 0 0 rgba(227, 189, 98, 0); } }

/* Contact band and footer motto. */
.contact-band { background-size: 200% 200%; animation: beica-band 14s ease-in-out infinite alternate; }
@keyframes beica-band { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }
.site-footer__motto { background: linear-gradient(90deg, var(--gold-2), #fff3c9, var(--gold-2)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: beica-flow 6s linear infinite; }

/* Tables and timeline rows highlight as you pass. */
.prose tbody tr { transition: background-color .3s; }
.prose tbody tr:hover { background: var(--indigo-soft); }
.prose .is-style-timeline > li::before { animation: beica-dot 2.8s ease-in-out infinite; }
@keyframes beica-dot { 0%, 100% { box-shadow: 0 0 0 0 rgba(184, 137, 44, .0); } 50% { box-shadow: 0 0 0 6px rgba(184, 137, 44, .25); } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; }
	.word { opacity: 1; transform: none; }
	.scroll-progress, .particles, .scroll-cue { display: none; }
	.section-title::after, .prose h2::after { width: 0 !important; }
}
