/* ==========================================================================
   Serendib Trails — theme styles
   Tokens come from theme.json (var(--wp--preset--*)). Motion is gated behind
   html.st-motion (added only when reduced motion is NOT requested), so the
   default state of every rule below is the final, fully visible layout.
   ========================================================================== */

:root {
	--st-ease: cubic-bezier(.2, .7, .1, 1);
	--st-ease-in-out: cubic-bezier(.65, 0, .35, 1);
	--st-radius: 1.25rem;
	--st-radius-lg: 2rem;
	--st-header-h: 76px;
	--st-gutter: var(--wp--style--root--padding-left, 1.5rem);
}

html { scroll-padding-top: calc(var(--st-header-h) + 1rem); }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img { height: auto; }
::selection { background: var(--wp--preset--color--highlight); color: var(--wp--preset--color--contrast); }
:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
	border-radius: 4px;
}
.wp-site-blocks { padding-top: 0; }
.wp-site-blocks > main { margin-block-start: 0; }

/* Skip link (core adds one; make sure it is visible on focus) */
.skip-link.screen-reader-text:focus { z-index: 1000; }

/* ---------- Small type helpers ---------- */
.st-eyebrow {
	font-size: var(--wp--preset--font-size--caption);
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
	display: inline-flex;
	align-items: center;
	gap: .75rem;
}
.st-eyebrow::before {
	content: "";
	width: 2.25rem;
	height: 1px;
	background: currentColor;
	display: inline-block;
}
.has-contrast-background-color .st-eyebrow,
.has-sea-background-color .st-eyebrow,
.has-deep-background-color .st-eyebrow,
.st-on-dark .st-eyebrow { color: var(--wp--preset--color--highlight); }
.st-italic, em.st-italic { font-style: italic; font-weight: 400; }
.st-accent-word { font-style: italic; color: var(--wp--preset--color--accent); }
.has-contrast-background-color .st-accent-word,
.has-sea-background-color .st-accent-word { color: var(--wp--preset--color--highlight); }
.st-muted { color: var(--wp--preset--color--muted); }
.st-balance { text-wrap: balance; }
.st-pretty { text-wrap: pretty; }

/* ---------- Buttons ---------- */
.wp-element-button, .wp-block-button__link {
	transition: background-color .35s var(--st-ease), color .35s var(--st-ease), transform .35s var(--st-ease), box-shadow .35s var(--st-ease);
}
.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(16, 35, 28, .55); }
.st-btn-arrow .wp-block-button__link::after,
button.st-btn-arrow::after {
	content: "→";
	display: inline-block;
	margin-left: .6em;
	transition: transform .35s var(--st-ease);
}
.st-btn-arrow .wp-block-button__link:hover::after,
button.st-btn-arrow:hover::after { transform: translateX(4px); }
.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 1.5px solid currentColor;
	background: transparent;
	color: inherit;
	padding: calc(.95rem - 1.5px) calc(1.6rem - 1.5px);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--surface);
	border-color: var(--wp--preset--color--contrast);
}
.st-on-dark .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.has-contrast-background-color .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	border-color: var(--wp--preset--color--surface);
}
.st-link-arrow a, a.st-link-arrow {
	font-weight: 700;
	text-decoration: none;
	color: inherit;
	background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
	padding-bottom: 2px;
	transition: background-size .45s var(--st-ease), color .3s;
}
.st-link-arrow a::after, a.st-link-arrow::after { content: " →"; }
.st-link-arrow a:hover, a.st-link-arrow:hover { background-size: 0 1.5px; background-position: 100% 100%; color: var(--wp--preset--color--accent); }

/* ==========================================================================
   Header
   ========================================================================== */
.st-header-wrap { position: sticky; top: 0; z-index: 50; }
.admin-bar .st-header-wrap { top: var(--wp-admin--admin-bar--height, 32px); }
.st-header {
	min-height: var(--st-header-h);
	transition: background-color .4s var(--st-ease), box-shadow .4s var(--st-ease), backdrop-filter .4s;
	background-color: color-mix(in srgb, var(--wp--preset--color--base) 0%, transparent);
}
.st-header.is-scrolled,
html:not(.st-motion) .st-header,
body:not(.home) .st-header {
	background-color: color-mix(in srgb, var(--wp--preset--color--base) 88%, transparent);
	backdrop-filter: saturate(1.4) blur(14px);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	box-shadow: 0 1px 0 color-mix(in srgb, var(--wp--preset--color--line) 70%, transparent);
}
.home .st-header-wrap { position: fixed; left: 0; right: 0; }
.st-header .wp-block-site-title a { text-decoration: none; color: var(--wp--preset--color--contrast); }
.st-logo-mark { display: inline-flex; align-items: center; gap: .6rem; }
.st-header .wp-block-navigation a { text-decoration: none; }
.st-header .wp-block-navigation .wp-block-navigation-item__content { position: relative; padding-block: .35rem; }
.st-header .wp-block-navigation .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
	background: currentColor; transform: scaleX(0); transform-origin: right;
	transition: transform .45s var(--st-ease);
}
.st-header .wp-block-navigation .wp-block-navigation-item__content:hover::after,
.st-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); transform-origin: left; }
.st-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--contrast) !important;
	color: var(--wp--preset--color--base) !important;
	padding: var(--wp--preset--spacing--40);
}
.st-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 4rem; }
.st-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2rem, 9vw, 3rem);
	font-weight: 500;
	padding-block: .2rem;
}
.st-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: .5rem; }
@media (max-width: 599px) {
	.st-header .st-header__cta { display: none; }
}

/* ==========================================================================
   HERO — arch reveal (signature)
   --p: 0 = small arch window, 1 = full bleed. Default 1 (final state).
   ========================================================================== */
.st-hero {
	--p: 1;
	--arch-top: 44svh;
	--arch-side: 31vw;
	--arch-r: 19vw;
	position: relative;
	margin: 0 !important;
	padding: 0 !important;
	background: var(--wp--preset--color--base);
}
.st-hero__stage {
	position: relative;
	height: 100svh;
	min-height: 560px;
	overflow: hidden;
	margin: 0 !important;
	padding: 0 !important;
}
.st-hero__media {
	position: absolute !important;
	inset: 0;
	margin: 0 !important;
	max-width: none !important;
	width: 100% !important;
	clip-path: inset(
		calc((1 - var(--p)) * var(--arch-top))
		calc((1 - var(--p)) * var(--arch-side))
		0
		calc((1 - var(--p)) * var(--arch-side))
		round calc((1 - var(--p)) * var(--arch-r)) calc((1 - var(--p)) * var(--arch-r)) 0 0
	);
	will-change: clip-path;
}
.st-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 45%;
	transform: translateY(calc((1 - var(--p)) * var(--arch-shift, 26svh))) scale(calc(1.08 - var(--p) * .08));
	transform-origin: 50% 40%;
}
.st-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(10, 23, 18, .62) 0%, rgba(10, 23, 18, .12) 42%, rgba(10, 23, 18, .2) 60%, rgba(10, 23, 18, .82) 100%);
	opacity: var(--p);
}
.st-hero__title-wrap {
	position: absolute !important;
	left: 0; right: 0;
	top: calc(var(--st-header-h) + 5svh);
	z-index: 2;
	text-align: center;
	padding-inline: var(--st-gutter);
	margin: 0 !important;
	color: color-mix(in srgb, var(--wp--preset--color--surface) calc(var(--p) * 100%), var(--wp--preset--color--contrast));
}
.st-hero__title-wrap .st-eyebrow { color: inherit; justify-content: center; }
.st-hero__title-wrap .st-eyebrow::after { content: ""; width: 2.25rem; height: 1px; background: currentColor; display: inline-block; }
.st-hero__title {
	margin-top: .5rem !important;
	font-weight: 500;
	letter-spacing: -.035em;
	line-height: .95;
	text-wrap: balance;
}
.st-hero__title em { font-weight: 400; }
.st-hero__copy {
	position: absolute !important;
	left: 0; right: 0; bottom: 0;
	z-index: 2;
	margin: 0 !important;
	padding: 0 var(--st-gutter) clamp(1.75rem, 5svh, 3.5rem) !important;
	color: var(--wp--preset--color--surface);
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--30);
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto !important;
	opacity: clamp(0, (var(--p) - .72) * 4, 1);
	transform: translateY(calc((1 - clamp(0, (var(--p) - .72) * 4, 1)) * 24px));
	visibility: visible;
}
.st-hero__copy p { max-width: 34rem; margin: 0; }
.st-hero__copy .wp-block-buttons { margin: 0; }
.st-hero__badge {
	position: absolute !important;
	z-index: 3;
	right: calc(var(--arch-side) * (1 - var(--p)) - 3.5rem + var(--p) * 6rem);
	bottom: calc(5svh + var(--p) * 6rem);
	width: 7.5rem; height: 7.5rem;
	margin: 0 !important;
	color: var(--wp--preset--color--contrast);
	opacity: calc(1 - var(--p));
	pointer-events: none;
}
.st-hero__badge svg { width: 100%; height: 100%; display: block; }
.st-hero__badge .st-badge__ring { transform-origin: 50% 50%; }
.st-hero__badge .st-badge__dot { fill: var(--wp--preset--color--accent); }

@media (max-width: 781px) {
	.st-hero { --arch-top: 46svh; --arch-side: 9vw; --arch-r: 41vw; }
	.st-hero__title-wrap { top: calc(var(--st-header-h) + 3svh); }
	.st-hero__copy { flex-direction: column; align-items: flex-start; }
	.st-hero__badge { display: none; }
}

/* motion-only: pinned hero, intro choreography */
.st-motion .st-hero { height: 230svh; }
.st-motion .st-hero__stage { position: sticky; top: 0; }
.st-motion .st-hero__copy { visibility: var(--copy-vis, visible); }
@media (max-width: 781px) { .st-motion .st-hero { height: 175svh; } }
@media (prefers-reduced-motion: no-preference) {
	.st-motion .st-hero__badge .st-badge__ring { animation: st-spin 22s linear infinite; }
	.st-motion .st-hero__title .st-line { display: inline-block; overflow: clip; vertical-align: top; padding-bottom: .08em; }
	.st-motion .st-hero__title .st-line > span { display: inline-block; animation: st-rise 1.2s var(--st-ease) both; animation-delay: calc(.15s + var(--i, 0) * .12s); }
	.st-motion .st-hero__title-wrap .st-eyebrow { animation: st-fade 1s var(--st-ease) .1s both; }
	.st-motion .st-hero__media { animation: st-arch-in 1.6s var(--st-ease) both; }
}
@keyframes st-spin { to { transform: rotate(360deg); } }
@keyframes st-rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes st-fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes st-arch-in { from { opacity: 0; translate: 0 8svh; } to { opacity: 1; translate: 0 0; } }

/* ==========================================================================
   Reveal system
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
	.st-motion.st-ready .st-reveal:not(.is-in),
	.st-motion.st-ready .st-stagger:not(.is-in) > * {
		opacity: 0;
		transform: translateY(32px);
	}
	.st-motion .st-reveal,
	.st-motion .st-stagger > * {
		transition: opacity 1s var(--st-ease), transform 1.1s var(--st-ease);
		transition-delay: calc(var(--i, 0) * 90ms);
	}
	.st-motion.st-ready .st-reveal-img:not(.is-in) img { clip-path: inset(18% 0 0 0); transform: scale(1.15); }
	.st-motion .st-reveal-img img { transition: clip-path 1.3s var(--st-ease), transform 1.6s var(--st-ease); }
}

/* ==========================================================================
   Statement (word-by-word light-up)
   ========================================================================== */
.st-statement { position: relative; }
.st-statement .st-words { font-family: var(--wp--preset--font-family--display); line-height: 1.18; letter-spacing: -.015em; text-wrap: pretty; }
.st-motion .st-words .st-w { color: color-mix(in srgb, currentColor 22%, transparent); transition: color .5s var(--st-ease); }
.st-motion .st-words .st-w.is-lit { color: inherit; }
.st-statement__sign { display: flex; gap: 1rem; align-items: center; }

/* ==========================================================================
   Marquee
   ========================================================================== */
.st-marquee {
	overflow: hidden;
	border-block: 1px solid var(--wp--preset--color--line);
	padding-block: clamp(1rem, 2.5vw, 1.75rem) !important;
	--speed: 48s;
}
.st-marquee__track {
	display: flex !important;
	flex-wrap: wrap;
	gap: 0 clamp(1.5rem, 4vw, 3.5rem) !important;
	justify-content: center;
	align-items: center;
	margin: 0 !important;
}
.st-marquee__track > * { margin: 0 !important; white-space: nowrap; }
.st-marquee__track p {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2.25rem, 6vw, 5.5rem);
	font-style: italic;
	line-height: 1.15;
	color: transparent;
	-webkit-text-stroke: 1px var(--wp--preset--color--contrast);
	transition: color .4s var(--st-ease);
}
.st-marquee__track p:nth-child(3n+2) { color: var(--wp--preset--color--contrast); -webkit-text-stroke: 0; font-style: normal; }
.st-marquee__track p::after { content: "✦"; font-style: normal; font-size: .35em; vertical-align: middle; margin-left: clamp(1.5rem, 4vw, 3.5rem); color: var(--wp--preset--color--accent); -webkit-text-stroke: 0; }
.st-marquee__track p:hover { color: var(--wp--preset--color--accent); -webkit-text-stroke-color: var(--wp--preset--color--accent); }
@media (prefers-reduced-motion: no-preference) {
	.st-motion .st-marquee__track { flex-wrap: nowrap; justify-content: flex-start; width: max-content; animation: st-marquee var(--speed) linear infinite; }
	.st-motion .st-marquee:hover .st-marquee__track { animation-play-state: paused; }
}
@keyframes st-marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Journeys — horizontal pinned scroll (desktop) / swipe (phone)
   ========================================================================== */
.st-journeys { position: relative; }
.st-journeys__sticky { overflow: hidden; }
.st-journeys__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--wp--preset--spacing--30); }
.st-journeys__head > * { margin: 0 !important; }
.st-journeys .wp-block-query { margin-top: var(--wp--preset--spacing--40) !important; }
.st-journeys__track {
	display: flex !important;
	gap: clamp(1rem, 2vw, 1.75rem);
	list-style: none;
	margin: 0 !important;
	padding: 0 0 1rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}
.st-journeys__track > li { flex: 0 0 clamp(260px, 78vw, 400px); scroll-snap-align: start; margin: 0 !important; }
.st-journeys__progress { height: 2px; background: var(--wp--preset--color--line); margin-top: var(--wp--preset--spacing--30); position: relative; overflow: hidden; display: none; }
.st-journeys__progress span { position: absolute; inset: 0; background: var(--wp--preset--color--accent); transform-origin: left; transform: scaleX(var(--hp, 0)); }

@media (min-width: 782px) {
	.st-motion .st-journeys.is-pinned .st-journeys__sticky { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: var(--st-header-h) !important; }
	.st-motion .st-journeys.is-pinned .st-journeys__track { overflow: visible; scroll-snap-type: none; transform: translate3d(var(--hx, 0px), 0, 0); will-change: transform; padding-bottom: 0; }
	.st-motion .st-journeys.is-pinned .st-journeys__sticky > * { width: 100%; }
	.st-motion .st-journeys.is-pinned .st-journeys__sticky { padding-bottom: var(--wp--preset--spacing--40) !important; }
	.st-motion .st-journeys.is-pinned .st-journeys__track > li { flex-basis: clamp(260px, min(26vw, 42svh), 420px); }
	.st-motion .st-journeys.is-pinned .wp-block-query { margin-top: var(--wp--preset--spacing--30) !important; }
	.st-motion .st-journeys.is-pinned .st-journeys__progress { display: block; }
}

/* Journey card (used in sliders, archives, related) */
.st-card { position: relative; height: 100%; display: flex; flex-direction: column; gap: 0 !important; }
.st-card .wp-block-post-featured-image { margin: 0 !important; border-radius: var(--st-radius); overflow: hidden; position: relative; isolation: isolate; }
.st-card .wp-block-post-featured-image img { transition: transform 1.2s var(--st-ease), filter .6s; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; height: 100%; }
.st-card:hover .wp-block-post-featured-image img { transform: scale(1.06); }
.st-card .wp-block-post-featured-image::after {
	content: "→"; position: absolute; right: 1rem; bottom: 1rem; width: 3rem; height: 3rem; border-radius: 50%;
	display: grid; place-items: center; font-size: 1.25rem;
	background: var(--wp--preset--color--surface); color: var(--wp--preset--color--contrast);
	transform: scale(.6) rotate(-45deg); opacity: 0;
	transition: transform .5s var(--st-ease), opacity .4s;
}
.st-card:hover .wp-block-post-featured-image::after,
.st-card:focus-within .wp-block-post-featured-image::after { transform: none; opacity: 1; }
.st-card__body { padding-top: 1.1rem !important; display: flex; flex-direction: column; gap: .4rem !important; }
.st-card__body > * { margin: 0 !important; }
.st-card .wp-block-post-title { font-size: var(--wp--preset--font-size--subheading); line-height: 1.1; }
.st-card .wp-block-post-title a { text-decoration: none; color: inherit; }
.st-card .wp-block-post-title a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.st-card .wp-block-post-terms a { text-decoration: none; color: var(--wp--preset--color--accent); position: relative; z-index: 2; }
.st-card__meta { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); display: flex; align-items: center; gap: .5rem; }
.st-card__meta::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--wp--preset--color--highlight); display: inline-block; }
.st-card__meta:empty { display: none; }
.st-card .wp-block-post-excerpt { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }
.st-card .wp-block-post-excerpt__more-text { display: none; }

/* ==========================================================================
   Route map
   ========================================================================== */
.st-route { position: relative; }
.st-route__cols { align-items: center !important; }
.st-route__stops { list-style: none; padding: 0 !important; margin: var(--wp--preset--spacing--30) 0 0 !important; counter-reset: stop; display: grid; gap: .1rem; }
.st-route__stops li {
	counter-increment: stop; display: grid; grid-template-columns: 2.5rem 1fr auto; align-items: baseline;
	padding: .7rem 0; border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent);
	transition: color .4s var(--st-ease), padding-left .4s var(--st-ease);
}
.st-route__stops li::before { content: counter(stop, decimal-leading-zero); font-size: var(--wp--preset--font-size--caption); font-weight: 700; color: var(--wp--preset--color--highlight); }
.st-route__stops li strong { font-family: var(--wp--preset--font-family--display); font-size: 1.3rem; font-weight: 500; }
.st-route__stops li span { font-size: var(--wp--preset--font-size--caption); opacity: .75; text-align: right; }
.st-motion .st-route__stops li:not(.is-active) { color: color-mix(in srgb, currentColor 55%, transparent); }
.st-motion .st-route__stops li.is-active { padding-left: .35rem; }
.st-map { width: 100%; max-width: 520px; margin-inline: auto; }
.st-map svg { width: auto; max-width: 100%; height: min(80svh, 720px); display: block; overflow: visible; margin-inline: auto; }
@media (max-width: 781px) { .st-map svg { width: 100%; height: auto; } }
.st-map__land { fill: color-mix(in srgb, var(--wp--preset--color--base) 10%, transparent); stroke: color-mix(in srgb, var(--wp--preset--color--base) 55%, transparent); stroke-width: 1.5; }
.st-map__grid line { stroke: color-mix(in srgb, var(--wp--preset--color--base) 10%, transparent); stroke-width: 1; }
.st-map__route { fill: none; stroke: var(--wp--preset--color--highlight); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.st-map__route-ghost { fill: none; stroke: color-mix(in srgb, var(--wp--preset--color--highlight) 30%, transparent); stroke-width: 1.5; stroke-dasharray: 3 7; }
.st-map__pin circle { fill: var(--wp--preset--color--highlight); stroke: var(--wp--preset--color--sea); stroke-width: 3; }
.st-map__pin .st-map__halo { fill: none; stroke: var(--wp--preset--color--highlight); stroke-width: 1.5; opacity: 0; }
.st-map__pin text { fill: var(--wp--preset--color--base); font-family: var(--wp--preset--font-family--display); font-size: 19px; font-style: italic; }
.st-map__pin, .st-map__pin * { transform-box: fill-box; transform-origin: center; }
.st-map__compass { fill: none; stroke: color-mix(in srgb, var(--wp--preset--color--base) 45%, transparent); }
.st-map__compass text { fill: color-mix(in srgb, var(--wp--preset--color--base) 70%, transparent); stroke: none; font-size: 14px; font-family: var(--wp--preset--font-family--body); font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
	.st-motion .st-map__route { stroke-dasharray: var(--len, 2000); stroke-dashoffset: calc(var(--len, 2000) * (1 - var(--draw, 1))); }
	.st-motion .st-map__pin { opacity: 0; transform: scale(.4); transition: opacity .5s var(--st-ease), transform .6s var(--st-ease); }
	.st-motion .st-map__pin.is-on { opacity: 1; transform: none; }
	.st-motion .st-map__pin.is-on .st-map__halo { animation: st-halo 2.4s var(--st-ease) infinite; }
}
@keyframes st-halo { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(2.6); } }

/* ==========================================================================
   Experiences bento
   ========================================================================== */
.st-bento {
	display: grid !important;
	grid-template-columns: repeat(12, 1fr);
	grid-auto-rows: clamp(150px, 16vw, 230px);
	gap: clamp(.75rem, 1.5vw, 1.25rem) !important;
}
.st-bento > * { margin: 0 !important; }
.st-tile { position: relative; overflow: hidden; border-radius: var(--st-radius); isolation: isolate; color: var(--wp--preset--color--surface); }
.st-tile:nth-child(1) { grid-column: span 5; grid-row: span 3; }
.st-tile:nth-child(2) { grid-column: span 7; grid-row: span 2; }
.st-tile:nth-child(3) { grid-column: span 4; grid-row: span 2; }
.st-tile:nth-child(4) { grid-column: span 3; grid-row: span 2; }
.st-tile:nth-child(5) { grid-column: span 5; grid-row: span 1; }
.st-tile:nth-child(6) { grid-column: span 12; grid-row: span 1; }
.st-tile .wp-block-image { position: absolute; inset: 0; margin: 0; z-index: -1; }
.st-tile .wp-block-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--st-ease); }
.st-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(10, 23, 18, .78) 100%); transition: opacity .5s; }
.st-tile:hover .wp-block-image img { transform: scale(1.07); }
.st-tile__label { position: absolute !important; left: 0; right: 0; bottom: 0; padding: clamp(1rem, 2vw, 1.5rem) !important; margin: 0 !important; }
.st-tile__label > * { margin: 0 !important; }
.st-tile__label h3 { font-size: clamp(1.4rem, 2.2vw, 2rem); }
.st-tile__label h3 a { color: inherit; text-decoration: none; }
.st-tile__label h3 a::after { content: ""; position: absolute; inset: 0; }
.st-tile__label p { font-size: var(--wp--preset--font-size--small); opacity: .88; max-width: 28ch; transition: opacity .5s var(--st-ease), transform .5s var(--st-ease); }
.st-tile__kicker { font-size: var(--wp--preset--font-size--caption) !important; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--wp--preset--color--highlight); opacity: 1 !important; }
@media (hover: hover) and (min-width: 782px) {
	.st-tile__label p:not(.st-tile__kicker) { opacity: 0; transform: translateY(8px); max-height: 0; }
	.st-tile:hover .st-tile__label p, .st-tile:focus-within .st-tile__label p { opacity: .9; transform: none; max-height: 6em; }
}
@media (max-width: 781px) {
	.st-bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }
	.st-tile:nth-child(n) { grid-column: span 2; grid-row: span 1; }
}

/* ==========================================================================
   Seasons ribbon
   ========================================================================== */
.st-seasons { --cols: 12; }
.st-seasons__months, .st-seasons__row { display: grid; grid-template-columns: minmax(9rem, 14rem) repeat(var(--cols), 1fr); gap: 4px; align-items: center; }
.st-seasons__months span { font-size: var(--wp--preset--font-size--caption); font-weight: 700; text-align: center; color: var(--wp--preset--color--muted); letter-spacing: .06em; }
.st-seasons__row { margin-top: .75rem; }
.st-seasons__row > strong { font-family: var(--wp--preset--font-family--display); font-weight: 500; font-size: 1.15rem; line-height: 1.2; padding-right: 1rem; }
.st-seasons__row > i { height: 2.5rem; border-radius: 6px; background: color-mix(in srgb, var(--wp--preset--color--line) 60%, transparent); position: relative; overflow: hidden; }
.st-seasons__row > i::after { content: ""; position: absolute; inset: 0; transform-origin: left; }
.st-seasons__row > i.is-good::after { background: var(--wp--preset--color--sea); }
.st-seasons__row > i.is-ok::after { background: color-mix(in srgb, var(--wp--preset--color--sea) 40%, var(--wp--preset--color--base)); }
.st-seasons__legend { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1.25rem; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
.st-seasons__legend span::before { content: ""; display: inline-block; width: .9rem; height: .9rem; border-radius: 3px; margin-right: .45rem; vertical-align: -2px; }
.st-seasons__legend .is-good::before { background: var(--wp--preset--color--sea); }
.st-seasons__legend .is-ok::before { background: color-mix(in srgb, var(--wp--preset--color--sea) 40%, var(--wp--preset--color--base)); }
.st-seasons__legend .is-off::before { background: color-mix(in srgb, var(--wp--preset--color--line) 60%, transparent); }
@media (prefers-reduced-motion: no-preference) {
	.st-motion.st-ready .st-seasons:not(.is-in) .st-seasons__row > i::after { transform: scaleX(0); }
	.st-motion .st-seasons__row > i::after { transition: transform .9s var(--st-ease); transition-delay: calc(var(--m, 0) * 60ms + var(--r, 0) * 200ms); }
}
@media (max-width: 781px) {
	.st-seasons__months, .st-seasons__row { grid-template-columns: repeat(12, 1fr); }
	.st-seasons__months > span:first-child { display: none; }
	.st-seasons__row > strong { grid-column: 1 / -1; padding: 0 0 .35rem; font-size: 1.05rem; }
	.st-seasons__row > i { height: 1.75rem; }
	.st-seasons__months span { font-size: .625rem; letter-spacing: 0; }
}

/* ==========================================================================
   Steps
   ========================================================================== */
.st-steps { counter-reset: step; }
.st-step { counter-increment: step; border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); padding-top: var(--wp--preset--spacing--30) !important; }
.st-step::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--wp--preset--font-family--display); font-style: italic; font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1; color: var(--wp--preset--color--highlight); margin-bottom: 1rem; }
.st-step h3 { margin-top: 0 !important; }

/* ==========================================================================
   Full-bleed CTA band
   ========================================================================== */
.st-cta { position: relative; overflow: hidden; isolation: isolate; color: var(--wp--preset--color--surface); }
.st-cta__bg { position: absolute !important; inset: -12% 0; margin: 0 !important; z-index: -2; max-width: none !important; width: 100% !important; }
.st-cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.st-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 23, 18, .82) 0%, rgba(10, 23, 18, .45) 55%, rgba(10, 23, 18, .15) 100%); }
.st-cta h2 { max-width: 14ch; }
.st-cta p { max-width: 38ch; }

/* parallax (JS sets --py) */
.st-parallax img { transform: translate3d(0, var(--py, 0px), 0) scale(1.08); will-change: transform; }

/* ==========================================================================
   Footer
   ========================================================================== */
.st-footer { position: relative; overflow: hidden; }
.st-footer a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--st-ease); }
.st-footer a:hover { background-size: 100% 1px; color: var(--wp--preset--color--highlight); }
.st-footer .wp-block-list { list-style: none; padding: 0; display: grid; gap: .45rem; }
.st-footer__label { font-size: var(--wp--preset--font-size--caption); letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--wp--preset--color--highlight); }
.st-footer__wordmark {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(3rem, 12.4vw, 15rem) !important;
	line-height: .8 !important;
	letter-spacing: -.05em;
	font-weight: 500;
	white-space: nowrap;
	color: transparent;
	-webkit-text-stroke: 1px color-mix(in srgb, var(--wp--preset--color--base) 35%, transparent);
	margin: 0 !important;
	text-align: center;
	user-select: none;
	max-width: none !important;
}
.st-footer__wordmark em { font-weight: 400; }
.st-footer__bottom { font-size: var(--wp--preset--font-size--caption); color: color-mix(in srgb, var(--wp--preset--color--base) 70%, transparent); }
@media (prefers-reduced-motion: no-preference) {
	.st-motion.st-ready .st-footer__wordmark:not(.is-in) { transform: translateY(40%); opacity: 0; }
	.st-motion .st-footer__wordmark { transition: transform 1.4s var(--st-ease), opacity 1.2s var(--st-ease); }
}

/* ==========================================================================
   Interior page header
   ========================================================================== */
.st-page-hero { position: relative; overflow: hidden; isolation: isolate; color: var(--wp--preset--color--surface); min-height: min(78svh, 760px); display: flex !important; flex-direction: column; justify-content: flex-end; }
.st-page-hero__bg { position: absolute !important; inset: 0; margin: 0 !important; z-index: -2; max-width: none !important; width: 100% !important; }
.st-page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.st-page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 23, 18, .35) 0%, rgba(10, 23, 18, .1) 40%, rgba(10, 23, 18, .8) 100%); }
.st-page-hero h1 { text-wrap: balance; }
.st-page-hero .st-eyebrow { color: var(--wp--preset--color--highlight); }
@media (prefers-reduced-motion: no-preference) {
	.st-motion .st-page-hero__bg img { animation: st-kenburns 2.2s var(--st-ease) both; }
	.st-motion .st-page-hero h1, .st-motion .st-page-hero .st-eyebrow, .st-motion .st-page-hero p { animation: st-fade 1.1s var(--st-ease) both; }
	.st-motion .st-page-hero h1 { animation-delay: .15s; }
	.st-motion .st-page-hero p:not(.st-eyebrow) { animation-delay: .3s; }
}
@keyframes st-kenburns { from { transform: scale(1.14); } to { transform: scale(1); } }

/* Plain page title band (no image) */
.st-title-band .wp-block-post-title, .st-title-band h1 { text-wrap: balance; }

/* ==========================================================================
   Destinations rows
   ========================================================================== */
.st-dest { align-items: center !important; }
.st-dest + .st-dest { margin-top: var(--wp--preset--spacing--60) !important; }
.st-dest__img { border-radius: var(--st-radius-lg); overflow: hidden; margin: 0 !important; }
.st-dest__img img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.st-dest__num { font-family: var(--wp--preset--font-family--display); font-style: italic; font-size: clamp(3rem, 7vw, 6rem); line-height: 1; color: var(--wp--preset--color--accent); margin: 0 !important; }
.st-dest__places { font-size: var(--wp--preset--font-size--small); font-weight: 700; letter-spacing: .04em; color: var(--wp--preset--color--muted); }
@media (min-width: 782px) {
	.st-dest.is-flipped { flex-direction: row-reverse; }
}

/* ==========================================================================
   Single journey
   ========================================================================== */
.st-tour-hero { min-height: min(86svh, 820px) !important; }
.st-tour-hero .wp-block-cover__inner-container { width: 100%; }
.st-tour-hero .wp-block-post-title { font-size: var(--wp--preset--font-size--display); text-wrap: balance; max-width: 14ch; }
.st-tour-hero .wp-block-post-terms a { color: var(--wp--preset--color--highlight); text-decoration: none; }
.st-facts { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 0 !important; border-block: 1px solid var(--wp--preset--color--line); }
.st-fact { padding: 1.25rem 1.25rem 1.25rem 0 !important; margin: 0 !important; }
.st-fact + .st-fact { border-left: 1px solid var(--wp--preset--color--line); padding-left: 1.25rem !important; }
.st-fact > * { margin: 0 !important; }
.st-fact__label { font-size: var(--wp--preset--font-size--caption); letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--wp--preset--color--muted); }
.st-fact__value { font-family: var(--wp--preset--font-family--display); font-size: 1.3rem; line-height: 1.25; margin-top: .3rem !important; }
@media (max-width: 781px) {
	.st-facts { grid-template-columns: 1fr 1fr; }
	.st-fact:nth-child(3) { border-left: 0; padding-left: 0 !important; }
	.st-fact:nth-child(n+3) { border-top: 1px solid var(--wp--preset--color--line); }
}
.st-tour-body h2 { font-size: var(--wp--preset--font-size--subheading); margin-top: var(--wp--preset--spacing--40); }
.st-itinerary { counter-reset: day; }
.st-itinerary h3 { counter-increment: day; display: grid; grid-template-columns: 4.5rem 1fr; align-items: baseline; font-size: 1.4rem; margin-top: var(--wp--preset--spacing--30) !important; padding-top: var(--wp--preset--spacing--30); border-top: 1px solid var(--wp--preset--color--line); }
.st-itinerary h3::before { content: "Day " counter(day); font-family: var(--wp--preset--font-family--body); font-size: var(--wp--preset--font-size--caption); letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--wp--preset--color--accent); }
.st-itinerary h3 + p { padding-left: 4.5rem; margin-top: .5rem; color: var(--wp--preset--color--muted); }
@media (max-width: 599px) {
	.st-itinerary h3 { grid-template-columns: 1fr; gap: .25rem; }
	.st-itinerary h3 + p { padding-left: 0; }
}
.st-aside { position: sticky; top: calc(var(--st-header-h) + 2rem); border-radius: var(--st-radius); }
.st-aside > * { margin-top: 0; }

/* ==========================================================================
   Archive filter chips (Terms list / Categories block)
   ========================================================================== */
.st-filter { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.st-filter > * { margin: 0 !important; }
.st-filter ul, ul.st-filter { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.st-filter a, .st-chip-link a {
	display: inline-block; padding: .55rem 1.1rem; border-radius: 999px; border: 1px solid var(--wp--preset--color--line);
	text-decoration: none; color: var(--wp--preset--color--contrast); font-size: var(--wp--preset--font-size--small); font-weight: 600;
	transition: background .3s var(--st-ease), color .3s, border-color .3s;
}
.st-filter a:hover, .st-chip-link a:hover, .st-filter .current-cat > a { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--surface); border-color: var(--wp--preset--color--contrast); }
.st-grid .wp-block-post-template { gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30) !important; }
.st-grid .wp-block-post-template > li { margin: 0; }

/* Journal cards */
.st-post-card .wp-block-post-featured-image { border-radius: var(--st-radius); overflow: hidden; margin: 0 0 1rem !important; }
.st-post-card .wp-block-post-featured-image img { aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1.2s var(--st-ease); }
.st-post-card:hover .wp-block-post-featured-image img { transform: scale(1.05); }
.st-post-card .wp-block-post-title a { text-decoration: none; color: inherit; }
.st-post-card > * { margin-block: 0 .5rem !important; }

.wp-block-query-pagination { gap: 1rem; font-weight: 600; }
.wp-block-query-pagination a { text-decoration: none; }

/* Post content niceties */
.st-prose > * + * { margin-top: 1.25em; }
.st-prose h2 { margin-top: 1.8em; font-size: var(--wp--preset--font-size--subheading); }
.st-prose img { border-radius: var(--st-radius); }

/* ==========================================================================
   Enquiry form
   ========================================================================== */
.st-form { display: grid; gap: 1.25rem; }
.st-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 599px) { .st-form__grid { grid-template-columns: 1fr; } }
.st-field { margin: 0; display: grid; gap: .4rem; border: 0; padding: 0; min-width: 0; }
.st-field label, .st-field legend { font-size: var(--wp--preset--font-size--small); font-weight: 700; }
.st-field legend { margin-bottom: .6rem; padding: 0; }
.st-field input[type="text"], .st-field input[type="email"], .st-field input[type="number"], .st-field select, .st-field textarea {
	width: 100%; font: inherit; color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line);
	border-radius: .75rem; padding: .85rem 1rem; transition: border-color .3s, box-shadow .3s;
}
.st-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 1.25rem) 55%, calc(100% - .95rem) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2.5rem; }
.st-field input:focus, .st-field select:focus, .st-field textarea:focus { border-color: var(--wp--preset--color--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--accent) 18%, transparent); outline: none; }
.st-field.has-error input, .st-field.has-error textarea { border-color: #B3261E; }
.st-field.has-error label { color: #8C1D18; }
.st-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.st-chips legend { width: 100%; }
.st-chip { position: relative; }
.st-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.st-chip span { display: inline-block; padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--wp--preset--color--line); background: var(--wp--preset--color--surface); font-size: var(--wp--preset--font-size--small); font-weight: 600; transition: background .25s, color .25s, border-color .25s; cursor: pointer; }
.st-chip input:checked + span { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--surface); border-color: var(--wp--preset--color--contrast); }
.st-chip input:checked + span::before { content: "✓ "; }
.st-chip input:focus-visible + span { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 2px; }
.st-consent label { font-weight: 500; display: flex; gap: .6rem; align-items: flex-start; }
.st-consent input { margin-top: .3rem; accent-color: var(--wp--preset--color--accent); width: 1.1rem; height: 1.1rem; flex: none; }
.st-form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin: 0; }
.st-form__submit button { border: 0; cursor: pointer; background: var(--wp--preset--color--accent); color: var(--wp--preset--color--surface); border-radius: 999px; padding: 1rem 1.75rem; font: 700 var(--wp--preset--font-size--small) / 1 var(--wp--preset--font-family--body); letter-spacing: .02em; }
.st-form__submit button:hover { background: var(--wp--preset--color--contrast); }
.st-form__note { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
.st-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.st-form-notice { border-radius: var(--st-radius); padding: 1.25rem 1.5rem; }
.st-form-notice p { margin: 0; }
.st-form-notice ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.st-form-notice__title { font-family: var(--wp--preset--font-family--display); font-size: 1.35rem; margin-bottom: .35rem !important; }
.st-form-notice.is-success { background: color-mix(in srgb, var(--wp--preset--color--sea) 12%, var(--wp--preset--color--surface)); border: 1px solid color-mix(in srgb, var(--wp--preset--color--sea) 40%, transparent); }
.st-form-notice.is-error { background: #FBEAE8; border: 1px solid #E4B4AF; color: #5C1310; }
.st-form-card { border-radius: var(--st-radius-lg); }

/* 404 */
.st-404 .st-404__num { font-family: var(--wp--preset--font-family--display); font-size: clamp(7rem, 26vw, 20rem); line-height: .8; font-style: italic; color: var(--wp--preset--color--accent); margin: 0; }

/* Editor: never pin / hide in the canvas */
.editor-styles-wrapper .st-hero { height: auto; }
.editor-styles-wrapper .st-hero__stage { position: relative; }

/* Hide the hero title only until JS has split it into lines (failsafe removes .st-motion if JS never runs) */
@media (prefers-reduced-motion: no-preference) {
	.st-motion .st-hero__title:not(.is-split) { opacity: 0; }
}

/* Stronger scrim behind journey titles (busy photos) */
.st-tour-hero::before { background: linear-gradient(180deg, rgba(10, 23, 18, .4) 0%, rgba(10, 23, 18, .2) 35%, rgba(10, 23, 18, .88) 100%); }
.st-tour-hero .wp-block-post-terms { color: var(--wp--preset--color--highlight); }
/* "All journeys" chip is the current filter on the journeys archive */
.post-type-archive-tour .st-chip-link a { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--surface); border-color: var(--wp--preset--color--contrast); }

/* Phone refinements for the hero */
@media (max-width: 781px) {
	.st-hero { --arch-top: 38svh; --arch-shift: 18svh; }
	.st-hero__title-wrap .st-eyebrow { white-space: nowrap; letter-spacing: .12em; }
}
@media (max-width: 479px) {
	.st-hero__title-wrap .st-eyebrow::before,
	.st-hero__title-wrap .st-eyebrow::after { display: none; }
}

/* Visually hidden text (season ribbon summaries) */
.screen-reader-text { border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
