/* ============================================================
   AGNESE ALDE — editorial Atlantic
   Design tokens, base type, layout, components
   ============================================================ */

:root {
	/* -------- Colour — Madeira valley -----------------
	 *  ink       Laurissilva canopy — deep emerald
	 *  accent    Terracotta — village rooftops at midday
	 *  sky       Madeira sky between the clouds
	 *  rose      Bougainvillea / hydrangea bloom
	 *  leaf      Fresh laurel — sun-lit young leaves
	 *  tile      Deep azulejo cobalt, sparingly
	 *  paper     Cloud-white, slightly cool
	 *  -------------------------------------------------- */
	--ink:        #163a25;          /* emerald forest */
	--ink-soft:   #2a5b3b;
	--ink-mute:   #6a8c75;
	--paper:      #f4f4ec;          /* cool stone-cream */
	--paper-deep: #e6e8db;
	--paper-soft: #ecede1;
	--accent:     #d65a2d;          /* Madeira terracotta */
	--accent-deep:#a83814;          /* sunset terracotta */
	--leaf:       #5b9446;          /* fresh laurel */
	--rose:       #cc6d7e;          /* bougainvillea / hydrangea */
	--sky:        #5c9bc0;          /* Madeira sky */
	--tile:       #1f4a7a;          /* azulejo cobalt */
	--rule:       rgba(22, 58, 37, 0.18);
	--rule-soft:  rgba(22, 58, 37, 0.08);

	/* -------- Type -------- */
	--font-display: "Lora", "Iowan Old Style", Georgia, "Times New Roman", serif;
	--font-italic:  "Lora", "Iowan Old Style", Georgia, serif;
	--font-body:    "DM Sans", "Helvetica Neue", system-ui, sans-serif;

	/* type scale (clamped, fluid) */
	--step--2: clamp(.72rem, .66rem + .25vw, .82rem);
	--step--1: clamp(.86rem, .8rem + .3vw, .96rem);
	--step-0:  clamp(1rem, .94rem + .3vw, 1.12rem);
	--step-1:  clamp(1.16rem, 1.06rem + .5vw, 1.32rem);
	--step-2:  clamp(1.45rem, 1.25rem + 1vw, 1.85rem);
	--step-3:  clamp(1.9rem, 1.5rem + 2vw, 2.65rem);
	--step-4:  clamp(2.5rem, 1.8rem + 3.5vw, 3.85rem);
	--step-5:  clamp(3.2rem, 2.2rem + 5vw, 5.4rem);
	--step-6:  clamp(4.2rem, 2.8rem + 7vw, 7.5rem);

	/* -------- Space -------- */
	--gutter: clamp(1.25rem, 1rem + 1vw, 2rem);
	--rail-max: 1440px;
	--rail-narrow: 880px;

	/* -------- Motion -------- */
	--ease-out: cubic-bezier(.2, .7, .25, 1);
	--ease-soft: cubic-bezier(.4, .1, .2, 1);
}

/* ============================================================ */
/* RESET                                                          */
/* ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--step-0);
	line-height: 1.6;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* paper grain texture, very subtle, layered behind everything */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 100;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='5'/><feColorMatrix values='0 0 0 0 .18  0 0 0 0 .16  0 0 0 0 .1  0 0 0 .35 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/></svg>");
	opacity: .3;
	mix-blend-mode: multiply;
}

.skip-link {
	position: absolute; left: -10000px; top: auto; padding: .5rem 1rem;
	background: var(--ink); color: var(--paper); z-index: 9999;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.screen-reader-text {
	position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden;
}

/* ============================================================ */
/* TYPOGRAPHY                                                     */
/* ============================================================ */
h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 400;
	letter-spacing: -0.012em;
	line-height: 1.05;
	margin: 0 0 .5em;
	color: var(--ink);
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

em, i {
	font-family: var(--font-italic);
	font-style: italic;
	font-weight: 400;
}

p, ul, ol, dl { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
strong { font-weight: 600; }

.eyebrow {
	font-family: var(--font-body);
	font-weight: 500;
	font-size: var(--step--2);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--accent-deep);
	margin: 0 0 1rem;
	display: inline-flex;
	align-items: center;
	gap: .65rem;
}
.eyebrow::before {
	content: "";
	width: 32px; height: 1px;
	background: currentColor;
	display: inline-block;
	opacity: .7;
}
/* On dark sections terracotta has poor contrast (~3:1). Use cream so the
 * label reads clearly while still feeling editorial. */
.eyebrow--light { color: var(--paper-deep); opacity: .85; }

.lede {
	font-family: var(--font-display);
	font-size: var(--step-2);
	line-height: 1.35;
	color: var(--ink);
	max-width: 38ch;
	font-weight: 400;
}
.lede--light { color: var(--paper-deep); }

.muted { color: var(--ink-mute); }

/* ============================================================ */
/* LAYOUT                                                         */
/* ============================================================ */
.container {
	width: 100%;
	max-width: var(--rail-max);
	margin: 0 auto;
	padding-inline: var(--gutter);
}
.container--narrow {
	max-width: var(--rail-narrow);
}

.section {
	position: relative;
	padding: clamp(4rem, 3rem + 5vw, 8rem) 0;
}
.section--paper { background: var(--paper); }
.section--cream { background: var(--paper-deep); }
.section--ink   { background: var(--ink); color: var(--paper-deep); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--paper); }
.section--first { padding-top: clamp(6rem, 4rem + 6vw, 9rem); }
.section--centred { text-align: center; }
.section--cta { text-align: center; }

.section-head {
	max-width: 760px;
	margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}
.section-head--centred { margin-inline: auto; text-align: center; }
.section-head__title { font-size: var(--step-4); margin-bottom: .25em; }
.section-head__title--light { color: var(--paper); }
.section-head__lede {
	font-family: var(--font-display);
	font-size: var(--step-1);
	line-height: 1.5;
	max-width: 50ch;
	color: var(--ink-soft);
}

.rule-flourish {
	width: 240px; height: auto; color: var(--accent);
	margin: 1.5rem 0 0;
}
.rule-flourish--light { color: var(--accent); }
.section-head--centred .rule-flourish { margin-left: auto; margin-right: auto; display: block; }

/* ============================================================ */
/* SITE HEADER                                                    */
/* ============================================================ */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--paper);
	border-bottom: 1px solid var(--rule-soft);
}
.site-header__bar {
	display: flex;
	align-items: center;
	gap: 2rem;
	padding: 1rem var(--gutter);
	max-width: var(--rail-max);
	margin: 0 auto;
}

.brand-mark { display: flex; flex-direction: column; line-height: 1; }
.brand-mark__name {
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-style: italic;
	font-weight: 500;
	color: var(--ink);
	letter-spacing: -.01em;
}
.brand-mark__sub {
	font-family: var(--font-body);
	font-size: .68rem;
	letter-spacing: .25em;
	text-transform: uppercase;
	color: var(--accent-deep);
	margin-top: .35rem;
}
.custom-logo-link img {
	max-height: 64px;
	width: auto;
	/* SVG filter knocks out the PNG's white background while preserving
	 * the rest of the logo at full colour. */
	filter: url(#agnese-knock-white);
}

.site-nav { margin-left: auto; display: flex; gap: 2rem; align-items: center; }
.site-nav__list, .site-nav .menu {
	display: flex; gap: 1.6rem; align-items: center;
	list-style: none; margin: 0; padding: 0;
}
.site-nav__list a, .site-nav .menu a {
	font-size: .84rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ink-soft);
	position: relative;
	padding: .3rem 0;
	transition: color .3s var(--ease-out);
}
.site-nav__list a:hover, .site-nav .menu a:hover {
	color: var(--ink);
}
.site-nav__list a::after, .site-nav .menu a::after {
	content: "";
	position: absolute;
	left: 0; right: 100%;
	bottom: -2px;
	height: 1px;
	background: var(--accent);
	transition: right .4s var(--ease-out);
}
.site-nav__list a:hover::after,
.site-nav .menu .current-menu-item a::after,
.site-nav .menu a:hover::after { right: 0; }

.site-nav__meta { display: flex; align-items: center; gap: 1rem; }

.lang-switcher {
	display: flex; gap: .35rem; align-items: center;
	list-style: none; margin: 0; padding: 0;
	font-family: var(--font-body);
	font-size: .72rem;
	letter-spacing: .12em;
}
.lang-switcher__item a {
	padding: .35rem .55rem;
	border: 1px solid var(--rule);
	border-radius: 999px;
	color: var(--ink-mute);
	transition: all .3s var(--ease-out);
}
.lang-switcher__item a:hover {
	color: var(--ink);
	border-color: var(--ink);
}
.lang-switcher__item.is-current a {
	background: var(--ink);
	color: var(--paper);
	border-color: var(--ink);
}

.nav-toggle {
	display: none;
	background: none; border: none; padding: .5rem;
	width: 40px; height: 40px;
	flex-direction: column; justify-content: center; gap: 5px;
	margin-left: auto;
	position: relative;
	z-index: 60;        /* must stay above the open mobile nav overlay */
}
.nav-toggle__line {
	display: block; height: 1px; width: 24px; background: var(--ink);
	transition: transform .35s var(--ease-out), opacity .25s;
}

.site-header__ornament {
	height: 24px;
	width: 100%;
	background-color: var(--ink);
	opacity: .32;
	-webkit-mask-image: url('../img/azulejo-band.svg');
	        mask-image: url('../img/azulejo-band.svg');
	-webkit-mask-repeat: repeat-x;
	        mask-repeat: repeat-x;
	-webkit-mask-position: center;
	        mask-position: center;
	-webkit-mask-size: 60px 24px;
	        mask-size: 60px 24px;
}

/* mobile nav */
@media (max-width: 880px) {
	.nav-toggle { display: inline-flex; }

	.site-nav {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		width: 100vw;
		height: 100vh;
		height: 100dvh;          /* full viewport, accounting for mobile chrome */
		flex-direction: column;
		justify-content: center;
		align-items: center;
		background: var(--paper);
		padding: 6rem 2rem 2rem;
		gap: 2rem;
		z-index: 45;            /* below .nav-toggle (60) */
		overflow-y: auto;       /* allow scrolling if the menu is taller than the viewport */

		/* Truly hidden when closed — belt + suspenders so items can't leak
		 * through even if a parent breaks the fixed positioning. */
		transform: translateY(-100%);
		visibility: hidden;
		opacity: 0;
		pointer-events: none;
		transition:
			transform   .45s var(--ease-soft),
			opacity     .25s var(--ease-out),
			visibility  0s   linear .45s;
	}

	body.menu-open .site-nav {
		transform: translateY(0);
		visibility: visible;
		opacity: 1;
		pointer-events: auto;
		transition:
			transform   .45s var(--ease-soft),
			opacity     .25s var(--ease-out),
			visibility  0s   linear 0s;
	}

	.site-nav__list, .site-nav .menu {
		flex-direction: column;
		gap: 1.5rem;
		align-items: center;
	}
	.site-nav__list a, .site-nav .menu a {
		font-size: var(--step-2);
		text-transform: none;
		letter-spacing: 0;
		font-family: var(--font-display);
		font-style: italic;
		color: var(--ink);
	}

	/* When the menu is open, pin the toggle to the viewport corner so it
	 * can never end up hidden behind the overlay, regardless of containing
	 * block quirks (backdrop-filter, transforms, etc.). */
	body.menu-open .nav-toggle {
		position: fixed;
		top: clamp(.5rem, .5rem + 1vw, 1.25rem);
		right: clamp(.75rem, .5rem + 1vw, 1.5rem);
		z-index: 100;
		width: 44px;
		height: 44px;
		background: var(--paper);
		border: 1px solid var(--rule);
		border-radius: 50%;
	}

	/* Hamburger → X transformation when open. */
	body.menu-open .nav-toggle__line:nth-child(1) { transform: translateY(6px)  rotate( 45deg); }
	body.menu-open .nav-toggle__line:nth-child(2) { opacity: 0; }
	body.menu-open .nav-toggle__line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

	/* Keep the brand mark visible behind/in front of the overlay so users
	 * still have a "home" anchor while the menu is open. */
	body.menu-open .site-header__brand {
		position: relative;
		z-index: 100;
	}

	/* Lock the page scroll behind the open menu. */
	body.menu-open { overflow: hidden; }
}

/* ============================================================ */
/* BUTTONS                                                        */
/* ============================================================ */
.btn {
	display: inline-flex;
	align-items: center;
	gap: .65rem;
	padding: .95rem 1.7rem;
	background: var(--ink);
	color: var(--paper);
	font-family: var(--font-body);
	font-size: .8rem;
	font-weight: 500;
	letter-spacing: .2em;
	text-transform: uppercase;
	border: 1px solid var(--ink);
	border-radius: 0;
	transition: background .35s var(--ease-out), color .35s var(--ease-out), transform .35s var(--ease-out);
	position: relative;
	overflow: hidden;
}
.btn::after {
	content: "→";
	font-size: 1rem;
	transition: transform .35s var(--ease-out);
}
.btn:hover {
	background: var(--accent-deep);
	border-color: var(--accent-deep);
	color: var(--paper);
}
.btn:hover::after { transform: translateX(4px); }
.btn--primary { /* default */ }
.btn--light {
	background: var(--paper);
	color: var(--ink);
	border-color: var(--paper);
}
.btn--light:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--ink);
}
.btn--outline {
	background: transparent;
	color: var(--ink);
	border: 1px solid var(--ink);
}
.btn--outline:hover {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--paper);
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-family: var(--font-body);
	font-size: .8rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--ink);
	border-bottom: 1px solid var(--ink);
	padding-bottom: .25rem;
	transition: color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.link-arrow:hover { color: var(--accent-deep); border-color: var(--accent-deep); }
.link-arrow span[aria-hidden] { transition: transform .35s var(--ease-out); }
.link-arrow:hover span[aria-hidden] { transform: translateX(3px); }
.link-arrow--light {
	color: var(--paper-deep);
	border-color: rgba(244, 244, 236, 0.45);
}
.link-arrow--light:hover {
	color: var(--paper);
	border-color: var(--paper);
}

/* ============================================================ */
/* HERO — full-bleed image w/ floating cream text panel           */
/* ============================================================ */
.hero {
	position: relative;
	min-height: clamp(620px, 88vh, 920px);
	overflow: hidden;
	background: var(--ink);
	color: var(--paper);
	isolation: isolate;
}

.hero__media {
	position: absolute;
	inset: 0;
	z-index: -2;
}
.hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 38%;
	transform: scale(1.04);
	transition: transform 10s var(--ease-soft);
}
.hero:hover .hero__media img { transform: scale(1.08); }

/* Soft cream/sky "pool" concentrated where the small copy sits (lede + CTAs +
   facts). The rest of the image stays fully vibrant — the big headline relies
   on its emerald colour + text-shadow halo for legibility. */
.hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 70% 62% at 22% 78%,
			rgba(231, 240, 246, 0.96) 0%,
			rgba(231, 240, 246, 0.88) 28%,
			rgba(231, 240, 246, 0.55) 50%,
			rgba(231, 240, 246, 0.0)  75%),
		linear-gradient(180deg, rgba(22, 58, 37, 0.0) 55%, rgba(22, 58, 37, 0.5) 100%);
}

.hero__grain {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-image:
		radial-gradient(circle at 12% 22%, rgba(214, 90, 45, 0.22) 0%, transparent 55%),
		radial-gradient(circle at 88% 78%, rgba(92, 155, 192, 0.20) 0%, transparent 55%);
	mix-blend-mode: multiply;
}

.hero__grid {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	gap: clamp(2rem, 1.5rem + 3vw, 5rem);
	align-items: center;
	padding: clamp(4rem, 3rem + 4vw, 7rem) var(--gutter) clamp(4rem, 3rem + 3vw, 6rem);
	max-width: var(--rail-max);
	margin: 0 auto;
	min-height: inherit;
}
.hero__copy {
	position: relative;
	padding-block: clamp(1rem, 1rem + 1vw, 2rem);
	color: var(--ink);
	max-width: 560px;
}
.hero__copy .eyebrow { color: var(--accent-deep); }

.hero__title {
	font-size: var(--step-6);
	line-height: 0.95;
	margin: 1rem 0 1.5rem;
	color: var(--ink);
	/* Soft cream halo so the headline stays readable if it floats over a
	 * less-friendly part of the image — invisible on flat backgrounds, kicks
	 * in where the image is busy. */
	text-shadow:
		0 0 18px rgba(231, 240, 246, 0.85),
		0 0 38px rgba(231, 240, 246, 0.55);
}
.hero__copy .eyebrow {
	text-shadow: 0 1px 12px rgba(231, 240, 246, 0.9);
}
.hero__line { display: block; }
.hero__line--a { letter-spacing: -.02em; }
.hero__line--b {
	color: var(--accent-deep);
	padding-left: clamp(1.5rem, 1rem + 3vw, 4rem);
	font-weight: 500;
}

.hero__lede {
	font-family: var(--font-display);
	font-size: var(--step-2);
	line-height: 1.4;
	max-width: 42ch;
	color: var(--ink);
	margin-bottom: 2.5rem;
}

.hero__actions {
	display: flex;
	align-items: center;
	gap: 2rem;
	flex-wrap: wrap;
	margin-bottom: 3rem;
}
.hero__actions .link-arrow {
	/* Safety net — keeps the link readable if the cream pool ever fades
	 * out exactly where the CTA row sits. */
	text-shadow: 0 1px 10px rgba(231, 240, 246, 0.85);
}

.hero__facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
	padding-top: 2rem;
	border-top: 1px solid var(--rule);
	margin: 0;
}
.hero__facts div { display: flex; flex-direction: column; gap: .35rem; }
.hero__facts dt {
	font-size: .68rem;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--ink-mute);
	font-weight: 500;
}
.hero__facts dd {
	margin: 0;
	font-family: var(--font-display);
	font-size: var(--step-1);
	font-style: italic;
	color: var(--ink);
}

.hero__caption {
	position: absolute;
	right: var(--gutter);
	bottom: clamp(5.5rem, 4rem + 3vw, 7.5rem);
	max-width: 22ch;
	text-align: right;
	font-family: var(--font-display);
	font-style: italic;
	font-size: var(--step-0);
	color: var(--paper);
	text-shadow: 0 2px 14px rgba(22, 58, 37, 0.6);
	z-index: 3;
}
.hero__caption::before {
	content: "";
	display: block;
	width: 40px;
	height: 1px;
	background: var(--paper);
	margin-bottom: .6rem;
	margin-left: auto;
	opacity: .8;
}

.hero__botanical {
	position: absolute;
	top: clamp(2rem, 1rem + 3vw, 4rem);
	right: clamp(1rem, 0 + 3vw, 4rem);
	width: clamp(120px, 12vw, 200px);
	height: auto;
	color: var(--paper);
	opacity: .55;
	z-index: 2;
	pointer-events: none;
	mix-blend-mode: screen;
}

.marquee {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	overflow: hidden;
	border-top: 1px solid rgba(244, 244, 236, 0.32);
	padding: .9rem 0;
	background: rgba(22, 58, 37, 0.82);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	z-index: 2;
}
.marquee__track {
	display: flex;
	width: max-content;          /* size to content, NOT to parent — critical for the -50% loop */
	white-space: nowrap;
	font-family: var(--font-display);
	font-size: var(--step-2);
	color: var(--paper);
	/* 6 copies × -50% = 3 copies' worth of distance per cycle, so duration is
	   3× the old 38s to preserve the original calm pace. */
	animation: marquee 120s linear infinite;
	will-change: transform;
}
/* margin-right (not flex gap) so each item owns its trailing space. */
.marquee__track > span {
	display: inline-block;
	flex-shrink: 0;
	margin-right: 2.25rem;
	color: var(--paper);
}
.marquee__track em {
	font-style: italic;
	color: var(--paper);
	letter-spacing: .01em;
}
@keyframes marquee {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

@media (max-width: 880px) {
	.hero { min-height: 0; }
	.hero__grid { grid-template-columns: 1fr; padding-bottom: 6rem; }
	.hero__media::after {
		/* On mobile a radial pool is awkward — keep a vertical wash but
		 * hold opacity long enough to cover the CTAs (~75% of hero height),
		 * then fade so the image can breathe below. */
		background:
			linear-gradient(180deg,
				rgba(231, 240, 246, 0.96) 0%,
				rgba(231, 240, 246, 0.94) 60%,
				rgba(231, 240, 246, 0.85) 78%,
				rgba(231, 240, 246, 0.35) 88%,
				rgba(231, 240, 246, 0.0)  98%),
			linear-gradient(180deg, rgba(22, 58, 37, 0.0) 70%, rgba(22, 58, 37, 0.62) 100%);
	}
	.hero__media img { object-position: 50% 30%; }
	.hero__line--b { padding-left: 1rem; }
	.hero__caption { display: none; }
	/* Facts row reads poorly where the sage wash fades into the image.
	 * Hide on mobile — the same info lives in the footer + contact section. */
	.hero__facts { display: none; }
}

/* ============================================================ */
/* TOUR CARDS GRID                                                */
/* ============================================================ */
.tour-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: clamp(2rem, 1.5rem + 2vw, 3.5rem) clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
}
.tour-grid--mini { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.tour-grid--mini-2 { grid-template-columns: repeat(2, 1fr); }
.tour-grid--mini-4 { grid-template-columns: repeat(4, 1fr); }

/* On tablets, 4 cards in a row get cramped — drop to a balanced 2x2. */
@media (max-width: 1000px) {
	.tour-grid--mini-4 { grid-template-columns: repeat(2, 1fr); }
}

.tour-card {
	display: grid;
	grid-template-rows: auto 1fr;
	gap: 1.5rem;
	position: relative;
	transition: transform .5s var(--ease-out);
}
.tour-card:nth-child(even) { transform: translateY(2.5rem); }
.tour-grid--mini .tour-card:nth-child(even) { transform: none; }
.tour-grid--mini .tour-card { gap: .75rem; }

.tour-card:hover { transform: translateY(-4px); }
.tour-card:nth-child(even):hover { transform: translateY(calc(2.5rem - 4px)); }

.tour-card__media {
	position: relative;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--paper-deep);
}
.tour-grid--mini .tour-card__media { aspect-ratio: 4 / 3; }

.tour-card__media img {
	width: 100%; height: 100%; object-fit: cover;
	transition: transform 1.2s var(--ease-soft), filter .8s var(--ease-out);
	filter: saturate(0.9);
}
.tour-card:hover .tour-card__media img {
	transform: scale(1.06);
	filter: saturate(1.05);
}
.tour-card__placeholder {
	width: 100%; height: 100%;
	display: grid; place-items: center;
	background: linear-gradient(160deg, var(--paper-deep), var(--paper-soft));
}
.tour-card__art { width: 70%; height: auto; color: var(--tile); opacity: .8; }

.tour-card__index {
	position: absolute;
	top: 1rem; left: 1rem;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: .68rem;
	letter-spacing: .22em;
	text-transform: uppercase;
	padding: .45rem .75rem;
}

.tour-card__title {
	font-size: var(--step-3);
	display: flex; flex-direction: column;
	gap: .3rem;
	margin: 0 0 .75rem;
	line-height: 1.05;
}
.tour-card__sub {
	font-size: var(--step-1);
	color: var(--accent-deep);
	font-weight: 400;
}
.tour-grid--mini .tour-card__title { font-size: var(--step-2); }
.tour-grid--mini .tour-card__sub { font-size: var(--step-0); }

.tour-card__note {
	font-family: var(--font-display);
	font-size: var(--step-1);
	color: var(--ink-soft);
	line-height: 1.45;
	margin-bottom: 1.25rem;
	max-width: 40ch;
}

@media (max-width: 720px) {
	.tour-grid { grid-template-columns: 1fr; gap: 3rem; }
	.tour-grid--mini { grid-template-columns: 1fr; }
	.tour-card:nth-child(even) { transform: none; }
	.tour-card:nth-child(even):hover { transform: translateY(-4px); }
}

/* ============================================================ */
/* ABOUT BLOCK (on front page)                                    */
/* ============================================================ */
.section--ink {
	position: relative;
	overflow: hidden;
}
.section--ink::before {
	content: "";
	position: absolute;
	inset: 0;
	/* Soft emerald glows — give the dark section depth without the
	 * terracotta tint that previously fought the brand colour. */
	background-image:
		radial-gradient(circle at 80% 20%, rgba(91, 148, 70, 0.20) 0%, transparent 45%),
		radial-gradient(circle at 10% 90%, rgba(91, 148, 70, 0.12) 0%, transparent 50%);
	pointer-events: none;
}

.about-grid {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: clamp(2rem, 1.5rem + 3vw, 5rem);
	align-items: start;
	position: relative;
}
.about-grid__intro { position: sticky; top: 6rem; padding-top: 2rem; }
.about-grid__story {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: clamp(1.5rem, 1rem + 2vw, 3rem);
	align-items: start;
}
.about-portrait {
	position: relative;
	margin: 0;
	aspect-ratio: 4 / 5;
	overflow: visible;
}
.about-portrait img {
	position: relative;
	z-index: 1;
	width: 100%; height: 100%;
	object-fit: cover;
	filter: saturate(0.9);
	box-shadow: 0 30px 60px -30px rgba(0,0,0,0.5);
}
.about-copy { padding-top: 0; }
.about-copy > :first-child { margin-top: 0; }
.about-copy .lede { color: var(--paper); max-width: 36ch; }
.about-copy p { color: var(--paper-deep); }

@media (max-width: 880px) {
	.about-grid { grid-template-columns: 1fr; }
	.about-grid__intro { position: static; }
	.about-grid__story { grid-template-columns: 1fr; }
}

/* ============================================================ */
/* REVIEWS / TRUSTINDEX                                           */
/* ============================================================ */
.section--reviews { background: var(--paper); }
.reviews-frame {
	margin-top: 2rem;
	padding: clamp(1.5rem, 1rem + 2vw, 3rem);
	background: var(--paper-soft);
	border: 1px solid var(--rule-soft);
	position: relative;
}
.reviews-frame::before, .reviews-frame::after {
	content: "";
	position: absolute;
	width: 28px; height: 28px;
	border: 1px solid var(--accent);
}
.reviews-frame::before {
	top: -1px; left: -1px;
	border-right: none; border-bottom: none;
}
.reviews-frame::after {
	bottom: -1px; right: -1px;
	border-left: none; border-top: none;
}
/* let trustindex breathe */
.reviews-frame .ti-widget,
.reviews-frame .ti-widget-container { font-family: var(--font-body) !important; }

/* Trustindex nav arrows — the plugin doesn't expose a colour setting for the
 * arrow buttons' background. The widget's CSS is loaded asynchronously from
 * cdn.trustindex.io, so we use doubled class names ("ti-arrow-next.ti-arrow-next")
 * to bump specificity to (0,5,0) and beat any reasonable plugin selector. */
body .reviews-frame .ti-arrow-prev.ti-arrow-prev,
body .reviews-frame .ti-arrow-next.ti-arrow-next,
body .reviews-frame .ti-controls .ti-prev.ti-prev,
body .reviews-frame .ti-controls .ti-next.ti-next {
	background-color: var(--ink) !important;
	box-shadow: 0 6px 18px -6px rgba(22, 58, 37, 0.35) !important;
	outline: none !important;
	transition: background-color .25s var(--ease-out), transform .25s var(--ease-out) !important;
}
body .reviews-frame .ti-arrow-prev.ti-arrow-prev:hover,
body .reviews-frame .ti-arrow-next.ti-arrow-next:hover,
body .reviews-frame .ti-arrow-prev.ti-arrow-prev:focus,
body .reviews-frame .ti-arrow-next.ti-arrow-next:focus,
body .reviews-frame .ti-arrow-prev.ti-arrow-prev:active,
body .reviews-frame .ti-arrow-next.ti-arrow-next:active,
body .reviews-frame .ti-controls .ti-prev.ti-prev:hover,
body .reviews-frame .ti-controls .ti-next.ti-next:hover,
body .reviews-frame .ti-controls .ti-prev.ti-prev:focus,
body .reviews-frame .ti-controls .ti-next.ti-next:focus,
body .reviews-frame .ti-controls .ti-prev.ti-prev:active,
body .reviews-frame .ti-controls .ti-next.ti-next:active {
	background-color: var(--accent-deep) !important;
	outline-color: var(--accent-deep) !important;
}
/* Chevron strokes — drawn with border-top + border-left on ::before. */
body .reviews-frame .ti-arrow-prev.ti-arrow-prev::before,
body .reviews-frame .ti-arrow-next.ti-arrow-next::before {
	border-top-color: var(--paper) !important;
	border-left-color: var(--paper) !important;
}
body .reviews-frame .ti-controls .ti-prev.ti-prev::before,
body .reviews-frame .ti-controls .ti-next.ti-next::before {
	border-bottom-color: var(--paper) !important;
	border-left-color: var(--paper) !important;
}

/* ============================================================ */
/* CONTACT SECTION                                                */
/* ============================================================ */
.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: clamp(2rem, 1.5rem + 3vw, 5rem);
	align-items: start;
}
.contact-grid--page { align-items: start; }
.contact-grid__left { position: relative; padding-right: 2rem; }
.contact-grid__form {
	background: var(--paper);
	padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
	border: 1px solid var(--rule);
	position: relative;
}
.contact-grid__form::before {
	content: "";
	position: absolute;
	inset: 6px;
	border: 1px solid var(--rule-soft);
	pointer-events: none;
}

.contact-meta {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	margin: 2rem 0 0;
	border-top: 1px solid var(--rule);
	padding-top: 2rem;
}
.contact-meta div { display: grid; grid-template-columns: 100px 1fr; gap: 1rem; align-items: baseline; }
.contact-meta dt {
	font-size: .7rem;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--ink-mute);
	margin: 0;
}
.contact-meta dd {
	margin: 0;
	font-family: var(--font-display);
	font-size: var(--step-1);
	font-style: italic;
	color: var(--ink);
}
.contact-meta dd a {
	border-bottom: 1px solid transparent;
	transition: border-color .3s;
}
.contact-meta dd a:hover { border-color: var(--accent-deep); }

.contact-corner {
	position: absolute;
	bottom: -1rem;
	right: -1rem;
	width: 120px;
	height: auto;
	color: var(--accent);
	opacity: .35;
}

.appointment-cta {
	margin-top: 1.75rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--rule);
}
.appointment-cta__intro {
	font-family: var(--font-display);
	font-style: italic;
	font-size: var(--step-0);
	color: var(--ink-soft);
	margin: 0 0 .9rem;
	max-width: 32ch;
}

.contact-fallback {
	padding: 2rem;
	background: var(--paper-soft);
	text-align: center;
}

/* Contact Form 7 — adopt theme styling */
.wpcf7-form p { margin: 0 0 1.25rem; }
.wpcf7-form label {
	display: block;
	font-size: .7rem;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--ink-mute);
	margin-bottom: .5rem;
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="date"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form select,
.wpcf7-form textarea {
	width: 100%;
	padding: .85rem 0;
	background: transparent;
	border: none;
	border-bottom: 1px solid var(--rule);
	font-family: var(--font-display);
	font-size: var(--step-1);
	color: var(--ink);
	transition: border-color .3s var(--ease-out);
}
.wpcf7-form textarea {
	height: 8.5rem;        /* ~5 lines — overrides CF7's default rows=10 */
	min-height: 6rem;
	max-height: 18rem;
	resize: vertical;
	line-height: 1.45;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
	outline: none;
	border-bottom-color: var(--ink);
}
.wpcf7-form input::placeholder, .wpcf7-form textarea::placeholder { color: var(--ink-mute); opacity: .5; }
.wpcf7-form input[type="submit"] {
	background: var(--ink);
	color: var(--paper);
	border: 1px solid var(--ink);
	padding: .95rem 1.7rem;
	font-family: var(--font-body);
	font-size: .8rem;
	font-weight: 500;
	letter-spacing: .2em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .3s, color .3s;
	width: auto;
}
.wpcf7-form input[type="submit"]:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

@media (max-width: 880px) {
	.contact-grid { grid-template-columns: 1fr; }
	.contact-meta div { grid-template-columns: 1fr; gap: .25rem; }
}

/* ============================================================ */
/* TOUR PAGE                                                      */
/* ============================================================ */
.tour-hero {
	position: relative;
	background: var(--paper);
	padding: clamp(3rem, 2rem + 4vw, 6rem) 0 0;
	overflow: hidden;
}
.tour-hero__grain {
	position: absolute; inset: 0;
	/* Faint emerald wash in the upper-right — gives the cream a soft tint
	 * without clashing with the header. Remove the gradient entirely if you
	 * prefer flat cream. */
	background: radial-gradient(circle at 70% 20%, rgba(22, 58, 37, 0.06), transparent 50%);
}
.tour-hero__head {
	position: relative;
	text-align: center;
	max-width: 760px;
	margin: 0 auto clamp(2.5rem, 2rem + 2vw, 4rem);
}
.tour-hero__head .eyebrow { justify-content: center; }
.tour-hero__title {
	font-size: var(--step-5);
	margin: 0;
}
.tour-hero__head .rule-flourish { margin: 1.5rem auto 0; display: block; }

.tour-hero__media {
	margin: 0;
	max-width: 100%;
	overflow: hidden;
	position: relative;
}
.tour-hero__media img {
	width: 100%;
	height: clamp(360px, 50vw, 640px);
	object-fit: cover;
	filter: saturate(0.95);
}
.tour-hero__placeholder {
	max-width: 100%;
	height: clamp(360px, 50vw, 640px);
	background:
		radial-gradient(ellipse at 75% 25%, var(--sky) 0%, transparent 55%),
		linear-gradient(170deg, var(--ink-soft) 0%, var(--ink) 60%, var(--accent-deep) 130%);
	display: grid; place-items: center;
}
.tour-hero__art { width: 240px; height: auto; color: var(--paper); opacity: .85; }

.tour-prose { padding-top: 1rem; }

/* ============================================================ */
/* ABOUT PAGE                                                     */
/* ============================================================ */
.about-hero {
	background: var(--paper);
	padding: clamp(4rem, 3rem + 4vw, 7rem) 0;
	position: relative;
}
.about-hero__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 1.5rem + 3vw, 5rem);
	align-items: center;
}
.about-hero__title {
	font-size: var(--step-5);
	margin: 0;
}
.about-hero__head { padding-right: 2rem; }
.about-hero__figure {
	position: relative;
	margin: 0;
	aspect-ratio: 4 / 5;
	overflow: visible;
}
.about-hero__figure img {
	position: relative;
	z-index: 1;
	width: 100%; height: 100%;
	object-fit: cover;
	box-shadow: 0 30px 60px -30px rgba(22, 58, 37, 0.4);
}
@media (max-width: 880px) {
	.about-hero__grid { grid-template-columns: 1fr; }
	.about-hero__head { padding-right: 0; }
}

/* ============================================================ */
/* PROSE (long-form WordPress content)                            */
/* ============================================================ */
.prose {
	max-width: 68ch;
	font-size: var(--step-0);
	line-height: 1.75;
	color: var(--ink-soft);
}
/* Drop cap is opt-in — toggle Gutenberg's "Drop cap" on a paragraph and
   the class `.has-drop-cap` triggers it. Skip when the paragraph leads
   with a link/heading so it doesn't collide with inline elements. */
.prose p.has-drop-cap:not(:focus)::first-letter {
	font-family: var(--font-display);
	font-style: italic;
	font-size: 4.2em;
	float: left;
	line-height: 0.85;
	padding: .12em .18em 0 0;
	color: var(--accent-deep);
	font-weight: 500;
}
.prose p.has-drop-cap:not(:focus)::after { content: ""; display: table; clear: both; }
.prose h2, .prose h3, .prose h4 {
	color: var(--ink);
	margin-top: 2.5em;
}
.prose h2 { font-size: var(--step-3); }
.prose h3 { font-size: var(--step-2); font-style: italic; font-family: var(--font-italic); }
.prose h4 { letter-spacing: .14em; font-size: .8rem; }
.prose a {
	color: var(--ink);
	border-bottom: 1px solid var(--accent);
	transition: color .3s, border-color .3s;
}
.prose a:hover { color: var(--accent-deep); }
.prose img, .prose figure { margin: 2em 0; }
.prose figure img { width: 100%; }
.prose ul, .prose ol { padding-left: 1.5em; margin: 1.25em 0; }
.prose ul li::marker { color: var(--accent); }
.prose blockquote {
	font-family: var(--font-display);
	font-style: italic;
	font-size: var(--step-2);
	line-height: 1.45;
	margin: 2em 0 2em 0;
	padding: 0 0 0 2rem;
	border-left: 2px solid var(--accent);
	color: var(--ink);
}
.prose hr { border: none; height: 1px; background: var(--rule); margin: 3em 0; }
.prose--about p:first-of-type::first-letter { float: none; font-size: inherit; padding: 0; color: inherit; }

/* WP blocks */
.prose .wp-block-heading { font-family: var(--font-display); }
.prose .wp-block-image figcaption { color: var(--ink-mute); font-style: italic; font-size: var(--step--1); margin-top: .5em; }
.prose .wp-block-columns { gap: 2rem; }

/* ============================================================ */
/* FOOTER                                                         */
/* ============================================================ */
.site-footer {
	background: var(--ink);
	color: var(--paper-deep);
	position: relative;
	padding-bottom: 2rem;
}
.site-footer__ornament {
	color: var(--paper-deep);
	display: flex;
	justify-content: center;
	padding: 2rem 0 1rem;
	opacity: .45;
}
.botanical-divider { width: 220px; height: auto; }

.site-footer__inner {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: clamp(1.5rem, 1rem + 2vw, 3rem);
	padding: clamp(2rem, 1.5rem + 2vw, 4rem) var(--gutter);
	max-width: var(--rail-max);
	margin: 0 auto;
}
.site-footer__col { display: flex; flex-direction: column; gap: .5rem; }
.site-footer__mark {
	font-family: var(--font-display);
	font-size: var(--step-3);
	color: var(--paper);
	margin: 0;
}
.site-footer__sub {
	font-size: .8rem;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--paper-deep);
	opacity: .8;
	margin: 0;
}
.site-footer__licence {
	color: var(--paper-deep);
	opacity: .5;
	font-size: var(--step--1);
}
.site-footer__label {
	font-family: var(--font-body);
	font-size: .7rem;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--paper-deep);
	opacity: .75;
	margin: 0 0 .75rem;
}
.site-footer__list, .site-footer__social {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: .5rem;
	font-family: var(--font-display);
	font-style: italic;
	font-size: var(--step-1);
}
.site-footer__social a,
.site-footer__list a {
	color: var(--paper-deep);
	text-decoration: underline;
	text-decoration-color: transparent;
	text-decoration-thickness: 1px;
	text-underline-offset: 5px;
	transition: color .3s, text-decoration-color .3s;
}
.site-footer__social a:hover,
.site-footer__list a:hover {
	color: var(--paper);
	text-decoration-color: var(--paper);
}
.site-footer__col .lang-switcher__item a {
	color: var(--paper-deep);
	border-color: rgba(255,255,255,.18);
}
.site-footer__col .lang-switcher__item a:hover {
	color: var(--paper);
	border-color: var(--paper);
}
.site-footer__col .lang-switcher__item.is-current a {
	background: var(--paper-deep);
	color: var(--ink);
	border-color: var(--paper-deep);
}

.site-footer__base {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem;
	flex-wrap: wrap;
	padding: 1.5rem var(--gutter) 0;
	max-width: var(--rail-max);
	margin: 0 auto;
	border-top: 1px solid rgba(255,255,255,.08);
	font-size: var(--step--1);
	color: var(--paper-deep);
}
.site-footer__terms {
	color: var(--paper-deep);
	opacity: .75;
	font-size: var(--step--1);
	border-bottom: 1px solid transparent;
	padding-bottom: 1px;
	transition: opacity .25s var(--ease-out), border-color .25s var(--ease-out);
}
.site-footer__terms:hover {
	opacity: 1;
	border-bottom-color: var(--paper);
}

/* Livro de Reclamações — Portuguese-required complaints book badge.
 * Two render modes:
 *   - CSS fallback (no image uploaded): a black pill with a + mark.
 *   - --image: renders the official badge image uploaded via Customizer. */
.complaints-book {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	padding: .4rem .85rem .4rem .45rem;
	background: #0b0b0b;
	color: #fff;
	border-radius: 999px;
	font-family: var(--font-body);
	font-size: .68rem;
	letter-spacing: .04em;
	line-height: 1;
	white-space: nowrap;
	transition: background .25s var(--ease-out), transform .25s var(--ease-out);
}
.complaints-book--image {
	background: transparent;
	padding: 0;
	border-radius: 0;
	margin-top: 1.25rem;
	display: inline-block;
	line-height: 0;          /* prevent extra space under the inline-block */
}
.complaints-book--image img {
	display: block;
	width: 170px;
	height: 70px;
	max-width: 100%;
	transition: opacity .25s var(--ease-out);
}
.complaints-book--image:hover {
	background: transparent;
	transform: none;
}
.complaints-book--image:hover img { opacity: .85; }
.complaints-book__mark {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	flex-shrink: 0;
	position: relative;
}
.complaints-book__mark::before,
.complaints-book__mark::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	background: #0b0b0b;
}
.complaints-book__mark::before {
	width: 2px;
	height: 9px;
	transform: translate(-50%, -50%);
}
.complaints-book__mark::after {
	width: 9px;
	height: 2px;
	transform: translate(-50%, -50%);
}
.complaints-book:hover {
	background: #1a1a1a;
	transform: translateY(-1px);
}
.complaints-book__label {
	display: inline-block;
}

@media (max-width: 540px) {
	.complaints-book__label { font-size: .64rem; }
}

@media (max-width: 880px) {
	.site-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
	.site-footer__inner { grid-template-columns: 1fr; }
}

/* ============================================================ */
/* GENERIC PAGE                                                   */
/* ============================================================ */
.page-head {
	margin-bottom: clamp(2rem, 1.5rem + 2vw, 4rem);
}
.page-head__title {
	font-size: var(--step-5);
	margin: 0;
}
.page-feature {
	margin: 0 0 clamp(2rem, 1.5rem + 2vw, 4rem);
	aspect-ratio: 16 / 9;
	overflow: hidden;
}
.page-feature img { width: 100%; height: 100%; object-fit: cover; }

.post-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(2rem, 1.5rem + 2vw, 4rem);
}
.post-card {
	display: grid;
	grid-template-columns: 1fr 1.5fr;
	gap: clamp(1.5rem, 1rem + 2vw, 3rem);
	align-items: start;
}
.post-card__media img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.post-card__title { font-size: var(--step-3); margin: 0 0 .75rem; }

@media (max-width: 720px) {
	.post-card { grid-template-columns: 1fr; }
}

/* ============================================================ */
/* REVEAL ANIMATION                                               */
/* ============================================================ */
[data-reveal] {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
	transition-delay: 0ms;
}
[data-reveal].is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* ---------- Reduced motion -----------------------------------------------
 * Disable continuous / long-running animations (marquee, hero image zoom,
 * card zooms) and let reveal-on-scroll content appear immediately.
 * Short interactive transitions (focus, hover state colours) stay so the
 * UI doesn't feel dead.
 * --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	/* Stop the destination ticker entirely — it's decorative + aria-hidden. */
	.marquee { display: none; }

	/* Kill long-running iterative / large-distance animations. */
	.marquee__track,
	.hero__media img,
	.tour-card__media img,
	.hero__figure-frame img {
		animation: none !important;
		transition: none !important;
		transform: none !important;
	}

	/* Reveal-on-scroll content appears immediately. */
	[data-reveal] {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}

	/* Shorten any remaining transitions so the UI feels instant. */
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .12s !important;
		scroll-behavior: auto !important;
	}
}

/* ============================================================ */
/* SELECTION                                                      */
/* ============================================================ */
::selection {
	/* Soft emerald wash — visible enough to mark the selection, calm enough
	 * to keep reading comfortably. Text stays its original colour. */
	background: rgba(22, 58, 37, 0.22);
	color: inherit;
	text-shadow: none;
}
::-moz-selection {
	background: rgba(22, 58, 37, 0.22);
	color: inherit;
	text-shadow: none;
}

/* ============================================================ */
/* LIGHTBOX                                                       */
/* ============================================================ */
.prose img.is-lightbox,
.tour-prose img.is-lightbox {
	cursor: zoom-in;
	transition: opacity .3s var(--ease-out), transform .6s var(--ease-soft);
}
.prose img.is-lightbox:hover,
.tour-prose img.is-lightbox:hover {
	opacity: .9;
	transform: scale(1.005);
}

body.lightbox-open { overflow: hidden; }

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: grid;
	place-items: center;
	background: rgba(22, 58, 37, 0.94);
	color: var(--paper);
	opacity: 0;
	visibility: hidden;
	transition: opacity .4s var(--ease-out), visibility .4s;
	padding: clamp(2.5rem, 1rem + 4vw, 5rem);
	-webkit-tap-highlight-color: transparent;
}
.lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.lightbox__figure {
	margin: 0;
	/* Image's side margin = (button offset from edge) + (button width) +
	 * (button offset from edge again, as breathing space) — so the gap
	 * between the image and the nav button matches the gap between the
	 * button and the page edge. */
	--lb-btn-offset: clamp(1rem, 1vw + .5rem, 2.5rem);
	--lb-btn-width: 48px;
	--lb-side: calc(2 * var(--lb-btn-offset) + var(--lb-btn-width));
	max-width: calc(100vw - 2 * var(--lb-side));
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	transform: scale(.96);
	transition: transform .5s var(--ease-soft);
}
.lightbox.is-open .lightbox__figure { transform: scale(1); }

.lightbox__img {
	max-width: 100%;
	max-height: 84vh;
	width: auto;
	height: auto;
	object-fit: contain;
	box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
	background: var(--ink-soft);
	transition: opacity .25s var(--ease-out);
}
.lightbox__img.is-loading { opacity: .25; }

.lightbox__cap {
	font-family: var(--font-display);
	font-style: italic;
	font-size: var(--step-0);
	color: var(--paper-deep);
	text-align: center;
	max-width: 60ch;
}

.lightbox__nav,
.lightbox__close {
	position: absolute;
	background: rgba(244, 244, 236, 0.06);
	border: 1px solid rgba(244, 244, 236, 0.25);
	color: var(--paper);
	width: 48px;
	height: 48px;
	display: grid;
	place-items: center;
	cursor: pointer;
	border-radius: 50%;
	transition: background .25s var(--ease-out), border-color .25s, color .25s, transform .25s;
}
.lightbox__nav:hover,
.lightbox__close:hover,
.lightbox__nav:focus-visible,
.lightbox__close:focus-visible {
	background: var(--paper);
	border-color: var(--paper);
	color: var(--ink);
	transform: scale(1.08);
}
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav:hover { transform: translateY(-50%) scale(1.08); }
.lightbox__nav--prev { left: clamp(1rem, 1vw + .5rem, 2.5rem); }
.lightbox__nav--next { right: clamp(1rem, 1vw + .5rem, 2.5rem); }
.lightbox__close { top: clamp(1rem, 1vw + .5rem, 2rem); right: clamp(1rem, 1vw + .5rem, 2rem); }

.lightbox__counter {
	position: absolute;
	bottom: clamp(1rem, 1vw + .5rem, 2rem);
	left: 50%;
	transform: translateX(-50%);
	font-family: var(--font-body);
	font-size: .72rem;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--paper-deep);
	background: rgba(22, 58, 37, 0.6);
	padding: .4rem .9rem;
	border: 1px solid rgba(244, 244, 236, 0.2);
}

@media (max-width: 720px) {
	.lightbox__close { width: 40px; height: 40px; }
	.lightbox__cap { font-size: var(--step--1); }

	/* Image uses almost the full width — buttons no longer flank it. */
	.lightbox__figure {
		max-width: calc(100vw - 2rem);
		max-height: 74vh;
	}

	/* Bottom toolbar: prev — counter — next, in a horizontal row. */
	.lightbox__nav {
		top: auto;
		bottom: 1.1rem;
		transform: none;
		width: 40px;
		height: 40px;
	}
	.lightbox__nav--prev {
		left: 50%;
		right: auto;
		margin-left: -84px;       /* sit to the left of the centered counter */
	}
	.lightbox__nav--next {
		right: 50%;
		left: auto;
		margin-right: -84px;      /* sit to the right of the centered counter */
	}
	.lightbox__nav:hover { transform: scale(1.08); }

	.lightbox__counter {
		bottom: 1.45rem;          /* nudged so the pill aligns with button centres */
	}
}

/* ============================================================ */
/* PAGINATION                                                     */
/* ============================================================ */
.pagination {
	display: flex; justify-content: center; gap: .5rem;
	margin-top: 3rem;
}
.pagination .page-numbers {
	display: inline-flex;
	min-width: 40px; height: 40px;
	align-items: center; justify-content: center;
	border: 1px solid var(--rule);
	font-family: var(--font-body);
	font-size: .85rem;
	color: var(--ink-soft);
	transition: all .25s var(--ease-out);
}
.pagination .page-numbers:hover,
.pagination .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
