/* ==========================================================================
   TIDE MOTION KIT · Palmilla Beach
   Nothing animates until tide-motion.js adds .tide-on to <html>, so the Elementor
   editor, a visitor with reduced motion, or a failed script all see finished content.

   Attributes (Elementor > Advanced > Attributes):
     data-reveal="wash"   photo uncovered by the site's wide curve
     data-reveal="words"  headline words rise from the baseline, staggered
     data-reveal="rise"   small text or buttons fade up 24px
     data-reveal="fade"   opacity only
     data-delay="200"     optional delay in ms
     data-progress="pin"  tall wrapper with a sticky child; writes --p (0-1)
     data-progress="view" writes --p from entering the viewport to leaving it
     data-drift="60"      parallax, travels 60px against the scroll
     data-tone="golden"   page colours follow the scroll from tone to tone
   Classes: wave-band, curve-top, curve-bottom, curve-both (site edge masks)
   ========================================================================== */
@property --p         { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --page-bg   { syntax: '<color>';  inherits: true; initial-value: #FFFFFF; }
@property --page-ink  { syntax: '<color>';  inherits: true; initial-value: #000000; }
@property --page-soft { syntax: '<color>';  inherits: true; initial-value: #635D58; }
@property --page-accent { syntax: '<color>'; inherits: true; initial-value: #097173; }
@property --page-line { syntax: '<color>';  inherits: true; initial-value: #E5E2DC; }

:root {
  --tide-ease: cubic-bezier(.22, .8, .24, 1);
  --tide-ease-wash: cubic-bezier(.7, 0, .2, 1);
  --page-bg: #FFFFFF;
  --page-ink: #000000;
  --page-soft: #635D58;
  --page-accent: #097173;
  --page-line: #E5E2DC;
  transition: --page-bg 1.4s ease, --page-ink 1.4s ease, --page-soft 1.4s ease,
              --page-accent 1.4s ease, --page-line 1.4s ease;
}

/* ---- Tones: the light of the day ------------------------------------------
   Each tone is a set of tokens. With motion on, tide-motion.js blends them
   with the scroll: a section's tone holds while it fills the screen and
   cross-fades over part of a screen at each boundary. A tone's optional
   "via" color is passed through on the way in (dusk on the way into night).
   With reduced motion the tone switches as each section reaches mid-screen. */
:root {
  --tone-dawn-bg: #FCF8F3; --tone-dawn-ink: #000000; --tone-dawn-soft: #635D58; --tone-dawn-accent: #097173; --tone-dawn-line: #E5E2DC;
  --tone-morning-bg: #FFFFFF; --tone-morning-ink: #000000; --tone-morning-soft: #635D58; --tone-morning-accent: #097173; --tone-morning-line: #E5E2DC;
  --tone-midday-bg: #F1F8F7; --tone-midday-ink: #000000; --tone-midday-soft: #56615F; --tone-midday-accent: #097173; --tone-midday-line: #D5E6E3;
  --tone-afternoon-bg: #FFF7E8; --tone-afternoon-ink: #000000; --tone-afternoon-soft: #635D58; --tone-afternoon-accent: #097173; --tone-afternoon-line: #ECE1CA;
  --tone-golden-bg: #F7DEB1; --tone-golden-ink: #000000; --tone-golden-soft: #574634; --tone-golden-accent: #0F5A66; --tone-golden-line: #E3C48F;
  --tone-sunset-bg: #EFB396; --tone-sunset-ink: #1A1310; --tone-sunset-soft: #4A3125; --tone-sunset-accent: #0B4C57; --tone-sunset-line: #D99A7E;
  --tone-night-bg: #093E47; --tone-night-ink: #F5F3EF; --tone-night-soft: #A9C6C6; --tone-night-accent: #7ED7D2; --tone-night-line: #1F5961; --tone-night-via: #6A6380;
}
:root[data-tone="dawn"]      { --page-bg: var(--tone-dawn-bg); --page-ink: var(--tone-dawn-ink); --page-soft: var(--tone-dawn-soft); --page-accent: var(--tone-dawn-accent); --page-line: var(--tone-dawn-line); }
:root[data-tone="morning"]   { --page-bg: var(--tone-morning-bg); --page-ink: var(--tone-morning-ink); --page-soft: var(--tone-morning-soft); --page-accent: var(--tone-morning-accent); --page-line: var(--tone-morning-line); }
:root[data-tone="midday"]    { --page-bg: var(--tone-midday-bg); --page-ink: var(--tone-midday-ink); --page-soft: var(--tone-midday-soft); --page-accent: var(--tone-midday-accent); --page-line: var(--tone-midday-line); }
:root[data-tone="afternoon"] { --page-bg: var(--tone-afternoon-bg); --page-ink: var(--tone-afternoon-ink); --page-soft: var(--tone-afternoon-soft); --page-accent: var(--tone-afternoon-accent); --page-line: var(--tone-afternoon-line); }
:root[data-tone="golden"]    { --page-bg: var(--tone-golden-bg); --page-ink: var(--tone-golden-ink); --page-soft: var(--tone-golden-soft); --page-accent: var(--tone-golden-accent); --page-line: var(--tone-golden-line); }
:root[data-tone="sunset"]    { --page-bg: var(--tone-sunset-bg); --page-ink: var(--tone-sunset-ink); --page-soft: var(--tone-sunset-soft); --page-accent: var(--tone-sunset-accent); --page-line: var(--tone-sunset-line); }
:root[data-tone="night"]     { --page-bg: var(--tone-night-bg); --page-ink: var(--tone-night-ink); --page-soft: var(--tone-night-soft); --page-accent: var(--tone-night-accent); --page-line: var(--tone-night-line); }
:root.tide-blend { transition: none; }

/* ---- Reveals ------------------------------------------------------------ */
.tide-on [data-reveal] { --tide-delay: 0ms; }

.tide-on [data-reveal="fade"] { opacity: 0; transition: opacity 1.2s ease var(--tide-delay); }
.tide-on [data-reveal="fade"].is-in { opacity: 1; }

.tide-on [data-reveal="rise"] {
  opacity: 0; translate: 0 24px;
  transition: opacity .9s ease var(--tide-delay), translate 1.1s var(--tide-ease) var(--tide-delay);
}
.tide-on [data-reveal="rise"].is-in { opacity: 1; translate: 0 0; }

/* words: tide-motion.js wraps each word in .tide-word > span */
.tide-word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .16em; margin-bottom: -.16em; }
.tide-word > span { display: inline-block; }
.tide-on [data-reveal="words"] .tide-word > span {
  translate: 0 115%;
  transition: translate 1.05s var(--tide-ease);
  transition-delay: calc(var(--tide-delay) + var(--i, 0) * 70ms);
}
.tide-on [data-reveal="words"].is-in .tide-word > span { translate: 0 0; }

/* wash: the script injects .tide-wash, a cover in the page color whose lower
   edge is the site's wide curve. On reveal it slides up and off the photo. */
[data-reveal="wash"] { position: relative; overflow: hidden; }
.tide-wash { display: none; }
.tide-on [data-reveal="wash"] > .tide-wash {
  display: block; position: absolute; left: -1px; right: -1px; top: -1px; height: calc(100% + 2px);
  z-index: 3; pointer-events: none;
  background: var(--tide-wash-color, var(--page-bg));
  transition: translate 1.5s var(--tide-ease-wash) var(--tide-delay);
}
.tide-wash svg { position: absolute; left: 0; top: calc(100% - 1px); width: 100%; height: auto; aspect-ratio: 1682 / 90; display: block; overflow: visible; }
.tide-wash path { fill: var(--tide-wash-color, var(--page-bg)); }
.tide-on [data-reveal="wash"].is-in > .tide-wash { translate: 0 -118%; }
.tide-on [data-reveal="wash"]:not(.is-in) > :not(.tide-wash) { visibility: hidden; }
.tide-on [data-reveal="wash"] > img,
.tide-on [data-reveal="wash"] > .photo__ph { scale: 1.12; transition: scale 2.4s var(--tide-ease) var(--tide-delay); }
.tide-on [data-reveal="wash"].is-in > img,
.tide-on [data-reveal="wash"].is-in > .photo__ph { scale: 1; }

/* ---- Drift (parallax) --------------------------------------------------- */
.tide-on [data-drift] { translate: 0 var(--drift, 0px); will-change: translate; }

/* ---- The site's curves ----------------------------------------------------
   Shapes from the Palmilla Website 2026 file, drawn as masks. Each edge is an
   SVG that keeps its proportions to the element's WIDTH (the 'meet' setting),
   so its depth is about 6% of the width on any screen. The top-edge layer
   and the bottom-edge layer are intersected to leave the band between them. */
:root {
  --edge-wave-top: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='95 0 1682 112' preserveAspectRatio='xMidYMin meet'%3E%3Cpath d='M-20 41C298 19 507.26 38.5 1000.26 93C1493.26 147.5 1694.72 35.37 1872.72 0H1900V100000H-20Z'/%3E%3C/svg%3E");
  --edge-wave-bottom: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='95 706 1682 86' preserveAspectRatio='xMidYMax meet'%3E%3Cpath d='M1880.75 678C1540.76 784 1380.76 836 668.75 744C174.38 680.13 -24.24 736.43 6.76 729H-20V-100000H1900V678Z'/%3E%3C/svg%3E");
  --edge-curve-top: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1682 44' preserveAspectRatio='xMidYMin meet'%3E%3Cpath d='M0 28.59C716.49 77.45 1035.38 -55.47 1682 28.59V100000H0Z'/%3E%3C/svg%3E");
  --edge-curve-bottom: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 15 1682 45' preserveAspectRatio='xMidYMax meet'%3E%3Cpath d='M1682 60C1017.6 6.8 649.3 5.3 0 60V-100000H1682Z'/%3E%3C/svg%3E");
  --edge-flat: linear-gradient(#000 0 0);
}
.wave-band    { --edge-a: var(--edge-wave-top);  --edge-b: var(--edge-wave-bottom); }
.curve-top    { --edge-a: var(--edge-curve-top); --edge-b: var(--edge-flat); }
.curve-bottom { --edge-a: var(--edge-flat);      --edge-b: var(--edge-curve-bottom); }
.curve-both   { --edge-a: var(--edge-curve-top); --edge-b: var(--edge-curve-bottom); }
.wave-band, .curve-top, .curve-bottom, .curve-both {
  -webkit-mask-image: var(--edge-a), var(--edge-b); -webkit-mask-size: 100% 100%; -webkit-mask-repeat: no-repeat;
  -webkit-mask-composite: source-in;
  mask-image: var(--edge-a), var(--edge-b); mask-size: 100% 100%; mask-repeat: no-repeat;
  mask-composite: intersect;
}
.site-curve { display: block; width: 100%; height: clamp(18px, 5.4vw, 92px); color: var(--page-bg); }
.site-curve path { fill: currentColor; }

@media (prefers-reduced-motion: reduce) {
  :root { transition: none; }
}
/* ---- Page: colours follow the tone ---------------------------------------- */
body.tide-page { background: var(--page-bg); color: var(--page-ink); overflow-x: clip; }
html.tide-page { scroll-behavior: smooth; }
body.tide-page .site-main, body.tide-page .elementor { background: transparent; }

/* The site's sticky header floats over a pinned hero: clear with a sand wash at the top, white once the page scrolls. */
html.tide-on body.tide-has-hero .elementor-location-header .elementor-sticky--active::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(100% + 46px); z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(247, 243, 236, .94) 0%, rgba(247, 243, 236, .8) 55%, rgba(247, 243, 236, 0) 100%); transition: opacity .4s ease; }
html.tide-on body.tide-has-hero .elementor-location-header .elementor-sticky { transition: background-color .4s ease, box-shadow .4s ease; }
html.tide-on body.tide-has-hero:not(.tide-scrolled) .elementor-location-header .elementor-sticky { background: transparent !important; box-shadow: none !important; }
html.tide-on body.tide-has-hero.tide-scrolled .elementor-location-header .elementor-sticky--active::before { opacity: 0; }
html.tide-on .xp-hero { margin-top: calc(-1 * var(--tide-header, 0px)); }

/* Without the script (editor, reduced motion, no JS) each section simply wears its own tone. */
html:not(.tide-on) [data-tone="dawn"]      { --page-bg: var(--tone-dawn-bg); --page-ink: var(--tone-dawn-ink); --page-soft: var(--tone-dawn-soft); --page-accent: var(--tone-dawn-accent); --page-line: var(--tone-dawn-line); background-color: var(--page-bg); }
html:not(.tide-on) [data-tone="morning"]   { --page-bg: var(--tone-morning-bg); --page-ink: var(--tone-morning-ink); --page-soft: var(--tone-morning-soft); --page-accent: var(--tone-morning-accent); --page-line: var(--tone-morning-line); background-color: var(--page-bg); }
html:not(.tide-on) [data-tone="midday"]    { --page-bg: var(--tone-midday-bg); --page-ink: var(--tone-midday-ink); --page-soft: var(--tone-midday-soft); --page-accent: var(--tone-midday-accent); --page-line: var(--tone-midday-line); background-color: var(--page-bg); }
html:not(.tide-on) [data-tone="afternoon"] { --page-bg: var(--tone-afternoon-bg); --page-ink: var(--tone-afternoon-ink); --page-soft: var(--tone-afternoon-soft); --page-accent: var(--tone-afternoon-accent); --page-line: var(--tone-afternoon-line); background-color: var(--page-bg); }
html:not(.tide-on) [data-tone="golden"]    { --page-bg: var(--tone-golden-bg); --page-ink: var(--tone-golden-ink); --page-soft: var(--tone-golden-soft); --page-accent: var(--tone-golden-accent); --page-line: var(--tone-golden-line); background-color: var(--page-bg); }
html:not(.tide-on) [data-tone="sunset"]    { --page-bg: var(--tone-sunset-bg); --page-ink: var(--tone-sunset-ink); --page-soft: var(--tone-sunset-soft); --page-accent: var(--tone-sunset-accent); --page-line: var(--tone-sunset-line); background-color: var(--page-bg); }
html:not(.tide-on) [data-tone="night"]     { --page-bg: var(--tone-night-bg); --page-ink: var(--tone-night-ink); --page-soft: var(--tone-night-soft); --page-accent: var(--tone-night-accent); --page-line: var(--tone-night-line); background-color: var(--page-bg); }

/* ---- Wash on a photo: zoom settles to the photo's own --zoom ---------------- */
.xp-band-img { scale: var(--zoom, 1); transform-origin: var(--focus, 50% 50%); }
.tide-on [data-reveal="wash"] > .xp-band-img { scale: calc(var(--zoom, 1) * 1.12); }
.tide-on [data-reveal="wash"].is-in > .xp-band-img { scale: var(--zoom, 1); }

/* ---- Button chevron (the site's arrow button) ------------------------------ */
.xp-btn::after {
  content: ""; flex: none; width: 6px; height: 11px; margin-left: 18px; background: currentColor; transition: translate .3s var(--tide-ease);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 11'%3E%3Cpath d='M1 1l4 4.5L1 10' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 11'%3E%3Cpath d='M1 1l4 4.5L1 10' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.xp-btn:hover::after { translate: 4px 0; }

/* ---- Hero: the surf rolls in over the headline ----------------------------- */
@property --swash { syntax: '<length>'; inherits: true; initial-value: 0px; }
.xp-hero {
  --rise: min(1, max(0, calc((var(--p) - .02) / .6)));
  --intro: min(1, max(0, calc((var(--p) - .34) / .18)));   /* 2026-11-12 client: intro a stitch sooner (was .42 / .2) */
  --wh: max(97.15vw, 130vh);
  --surf-end: calc(-.4 * var(--wh));
  /* The opening screen is one vertical stack, so the postcard, headline and surf can never meet at any window size:
     header + postcard + gap + headline + cue + gap + surf = the window. The postcard gives way first, then the headline. */
  --vh: 100vh;
  --f: min(12.4vw, 236px, 22vh);              /* headline size: width-led until the window is wider than 16:9 */
  --lead: clamp(12px, 1.5vw, 26px);           /* MAKE EVERY DAY A (matches xp-hero-title) */
  --lead-gap: clamp(4px, .5vw, 10px);
  --cue: 11px;
  --cue-gap: clamp(8px, 1.4vh, 18px);
  --gap: clamp(10px, 2vh, 24px);
  --show: min(calc(.17 * var(--wh)), 24vh);   /* surf showing before any scroll, capped so short windows still open on sand */
  --surf-top: calc(100vh - var(--show));
  --t-h: calc(var(--lead) + var(--lead-gap) + 1.06 * var(--f) + var(--cue-gap) + var(--cue));
  --card-top: 56px;
  --card-max: min(27.5vw, 470px);
  /* A -4deg postcard reaches .702 x its width + 30px (caption) below its top */
  --card-w: max(min(130px, var(--card-max)), min(var(--card-max), calc((var(--vh) - var(--show) - var(--t-h) - var(--card-top) - 2 * var(--gap) - 30px) / .702)));
  --card-end: calc(var(--card-top) + .702 * var(--card-w) + 30px + var(--gap));
  --title-top: max(var(--card-end), calc((var(--tide-header, 84px) + var(--vh) - var(--show) - var(--t-h)) / 2));
}
@supports (height: 100svh) { .xp-hero { --vh: 100svh; } }
/* Below 1100 the postcard no longer clears the nav and menu button sideways, so it starts under the header */
@media (max-width: 1100px) { .xp-hero { --card-top: calc(var(--tide-header, 84px) + 16px); } }
@media (max-width: 767px) { .xp-hero { --f: min(14.5vw, 22vh); --lead: 3.2vw; --cue: 10px; --card-top: 100px; --card-max: 40vw; } }
@media (max-height: 520px) { .xp-hero { --f: min(12.4vw, 25vh); --cue: 0px; --cue-gap: 0px; --card-end: 0px; } }
.xp-hero-title::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(1100px, 92vw); height: min(520px, 46vw); translate: -50% -46%; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(247, 243, 236, .9), rgba(247, 243, 236, .66) 52%, rgba(247, 243, 236, 0)); }
html.tide-on .xp-hero { height: 300vh; }
html.tide-on .xp-hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; overflow: hidden; isolation: isolate; }
html.tide-on .xp-hero-title { position: absolute; inset: 0; z-index: 2; isolation: isolate; display: grid; place-content: start center; justify-items: center; padding-block: var(--title-top) 0; pointer-events: none; }
html.tide-on .xp-hero-title em { font-size: var(--f); }
html.tide-on .xp-hero-title::before { top: calc(var(--title-top) + var(--t-h) / 2); }
html.tide-on .xp-hero-cue { position: absolute; z-index: 3; left: 50%; top: calc(var(--title-top) + var(--t-h) - var(--cue)); translate: -50% 0; margin: 0; opacity: calc(1 - var(--p) * 12); }
html.tide-on .xp-hero-stage > .xp-card { top: var(--card-top); width: var(--card-w); }
html.tide-on .xp-hero-card { z-index: 3; }
html.tide-on .xp-surf { display: block; position: absolute; left: 0; right: 0; top: 0; z-index: 4; pointer-events: none; transform: translateY(calc(var(--surf-top) + var(--rise) * (var(--surf-end) - var(--surf-top)))); }
html.tide-on .xp-surf-swash { translate: 0 calc(var(--swash) * (1 - var(--rise))); animation: swash 8s ease-in-out infinite; }
@keyframes swash { 0%, 100% { --swash: 0px; } 50% { --swash: -1.6vh; } }
html.tide-on .xp-surf-img { display: block; width: 100%; max-width: none; height: var(--wh); object-fit: cover; object-position: center top; }
html.tide-on .xp-surf-tail { position: relative; display: block; height: calc(160vh + 16vh); margin-top: -16vh; background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 16vh); }
html.tide-on .xp-intro { position: absolute; inset: 0; z-index: 5; padding: 14vh var(--xp-gutter) 8vh; opacity: var(--intro); translate: 0 calc((1 - var(--intro)) * 46px); pointer-events: none; background: none; }
html.tide-on .xp-hero.is-flooded .xp-intro { pointer-events: auto; }
html:not(.tide-on) .xp-surf { display: none; }
html:not(.tide-on) .xp-hero-title { padding-top: max(46vh, calc(var(--card-top) + .702 * var(--card-max) + 54px)); }
html:not(.tide-on) .xp-hero-cue { display: none; }
html:not(.tide-on) .xp-hero-title { padding-bottom: 16vh; }
html:not(.tide-on) .xp-intro { background: linear-gradient(180deg, #9ddfe3, #c7eeee 45%, #fff); }
:root { --xp-gutter: clamp(20px, 5vw, 80px); }

/* Rotated postcard: never taller than the intro can hold on short laptop screens */
.xp-intro-inner > .xp-card { max-width: 38vh; }

/* ---- One day, at a glance: continues the white under the surf, settling into the page colour ---- */
.xp-glance { background: linear-gradient(180deg, #fff 0%, var(--page-bg) 100%); }

/* ---- Postcards ------------------------------------------------------------- */
.xp-card .elementor-widget-image-carousel, .xp-card .elementor-widget-container { width: 100%; }
.xp-card .elementor-image-carousel-wrapper { aspect-ratio: 3 / 2; overflow: hidden; background: #EDE6D7; }
.xp-card .elementor-image-carousel, .xp-card .swiper-slide, .xp-card .swiper-slide figure, .xp-card .swiper-slide-inner { height: 100%; margin: 0; }
.xp-card .swiper-slide-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.xp-card .swiper-pagination { bottom: 6px !important; line-height: 1; }
.xp-card .swiper-pagination-bullet { position: relative; width: 8px; height: 8px; margin: 0 8px !important; background: #fff; opacity: .65; box-shadow: 0 0 2px rgba(0,0,0,.5); }
.xp-card .swiper-pagination-bullet::after { content: ""; position: absolute; inset: -8px; }
.xp-card .swiper-pagination-bullet-active { background: #fff; opacity: 1; }

/* ---- REDS: the wave tucks over the sand above; dusk fades down into night (Figma "Dusk") ---- */
.xp-little { --edge-a: var(--edge-wave-top); --edge-b: var(--edge-flat); }
body.tide-page #experience-reds { background: linear-gradient(180deg, #6A6380 0, #6A6380 36vw, #093E47 100%) 0 7vw / 100% calc(100% - 7vw) no-repeat; }


/* ---- Little things carousel ------------------------------------------------ */
.xp-little::before { content: ""; position: absolute; left: 50%; top: clamp(40px, 5vw, 90px); width: min(900px, 110vw); height: clamp(200px, 18vw, 300px); translate: -50% 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(247, 243, 236, .9), rgba(247, 243, 236, .6) 55%, rgba(247, 243, 236, 0)); }
.xp-little > * { position: relative; }
.xp-little .swiper-slide > .e-con, .xp-little .swiper-slide > .e-con > .e-con-inner { padding: 0 !important; }
/* Same arrows as the Home and Groups carousels: white 44px disc, teal chevron */
.xp-little .elementor-swiper-button { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-top: -5px; background-color: #fff; border-radius: 50%; box-shadow: 0 2px 10px rgba(0,0,0,.22); color: #18948D; transition: background-color .2s ease, box-shadow .2s ease; }
.xp-little .elementor-swiper-button svg { width: 12px; height: 24px; fill: #18948D !important; transition: fill .2s ease; }
.xp-little .elementor-swiper-button:hover { background-color: #097173; box-shadow: 0 3px 12px rgba(0,0,0,.28); }
.xp-little .elementor-swiper-button:hover svg { fill: #fff !important; }
@media (min-width: 768px) {
  .xp-little .elementor-swiper-button-prev { left: 20px !important; }
  .xp-little .elementor-swiper-button-next { right: 20px !important; }
}
.xp-little .elementor-swiper-button:focus-visible { outline: 3px solid #097173; outline-offset: 2px; }
.xp-tile-img { transition: scale 1.2s var(--tide-ease); }
.xp-tile:hover .xp-tile-img { scale: 1.06; }
/* The hover teal starts a little below the top of the panel; the text does not move. Live value is overridden in the carousel widget's Custom CSS (33a460d). */
.xp-tile-panel::before { content: ""; position: absolute; inset: clamp(20px, 2.6vw, 44px) 0 0; z-index: -1; background: rgba(24, 148, 141, .85); opacity: 0; transition: opacity .45s ease; }
.xp-tile:hover .xp-tile-panel::before { opacity: 1; }

/* ---- Nightfall stars ------------------------------------------------------- */
.xp-night-stars { background-image: radial-gradient(1.6px 1.6px at 12% 22%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 23% 61%, #fff 50%, transparent 52%), radial-gradient(1.8px 1.8px at 37% 14%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 48% 78%, #fff 50%, transparent 52%), radial-gradient(1.5px 1.5px at 64% 19%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 71% 66%, #fff 50%, transparent 52%), radial-gradient(1.8px 1.8px at 83% 31%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 91% 72%, #fff 50%, transparent 52%), radial-gradient(1.4px 1.4px at 6% 84%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 56% 42%, #fff 50%, transparent 52%);
  opacity: .55; }
.tide-on .xp-night-stars { opacity: 0; transition: opacity 2s ease .4s; }
:root[data-tone="night"].tide-on .xp-night-stars { opacity: .55; }

/* ---- The close: two lines part, one photo opens ---------------------------- */
.xp-close { --open: min(1, max(0, calc((var(--p) - .1) / .5))); --cta: min(1, max(0, calc((var(--p) - .66) / .2))); }
html.tide-on .xp-close { height: 290vh; }
html.tide-on .xp-close-stage { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; overflow: hidden; }
html.tide-on .xp-close-photo { clip-path: inset(calc((1 - var(--open)) * 19vh) calc((1 - var(--open)) * 36.5vw) round calc((1 - var(--open)) * 51px)); }
html.tide-on .xp-close-img { scale: calc(1.16 - .16 * var(--open)); }
.xp-close-photo::after { content: ""; position: absolute; inset: 0; z-index: 2; background: radial-gradient(70% 60% at 50% 52%, rgba(6, 46, 52, .62), rgba(6, 46, 52, .3) 70%), linear-gradient(180deg, rgba(6, 46, 52, .1), rgba(6, 46, 52, .5)); }
html.tide-on .xp-close-photo::after { opacity: var(--cta); }
html.tide-on .xp-close-line { display: block; opacity: calc(1 - var(--open) * 1.5); }
html.tide-on .xp-close-line-a { right: calc(50% + 13.5vw + 3.2vw); text-align: right; translate: calc(var(--open) * -34vw) -50%; }
html.tide-on .xp-close-line-b { left: calc(50% + 13.5vw + 3.2vw); text-align: left; translate: calc(var(--open) * 34vw) -50%; }
html.tide-on .xp-close-cta { opacity: var(--cta); translate: 0 calc((1 - var(--cta)) * 34px); pointer-events: none; }
html.tide-on .xp-close.is-open .xp-close-cta { pointer-events: auto; }

/* The white curve that closes the scene */
.xp-site-curve { background: #fff; -webkit-mask: var(--edge-curve-top) center top / 100% 100% no-repeat; mask: var(--edge-curve-top) center top / 100% 100% no-repeat; }

/* ---- Jump links land clear of the sticky header --------------------------- */
body.tide-page section[id] { scroll-margin-top: 90px; }

/* ---- Phone ------------------------------------------------------------------ */
@media (max-width: 860px) {
  html.tide-on .xp-close-photo { clip-path: inset(calc((1 - var(--open)) * 31vh) calc((1 - var(--open)) * 14vw) round calc((1 - var(--open)) * 51px)); }
  html.tide-on .xp-close-line { left: 0; right: 0; text-align: center; }
  html.tide-on .xp-close-line br { display: none; }
  html.tide-on .xp-close-line-a { top: 17vh; translate: 0 calc(var(--open) * -22vh - 50%); }
  html.tide-on .xp-close-line-b { top: auto; bottom: 17vh; translate: 0 calc(var(--open) * 22vh + 50%); }
}
@media (max-width: 767px) {
  .xp-hero-stage > .xp-card { top: 100px; right: 5vw; width: 40vw; }
  /* Shorter pinned scenes on a phone: two to three swipes, not four */
  html.tide-on .xp-hero { height: 260vh; }
  html.tide-on .xp-close { height: 240vh; }
  /* The dusk fade is tied to the taller phone photo band, so the text below always sits on the dark end */
  body.tide-page #experience-reds { background-image: linear-gradient(180deg, #6A6380 0, #6A6380 50vw, #093E47 min(105vw, 560px)); }
  /* Phone cards = photo with the teal panel under it, like the site's other carousels: equal heights, no hover layer */
  .xp-little .swiper-slide { height: auto; display: flex; }
  .xp-little .swiper-slide > .e-con { flex: 1 1 100%; height: auto; display: flex; }
  .xp-little .swiper-slide .xp-tile { flex: 1 1 100%; }
  .xp-tile-panel::before { display: none; }
  .elementor .xp-little .xp-tile-panel { background-image: none; }
  .xp-tile:hover .xp-tile-img { scale: 1; }
}
/* Fit the intro between the header and the bottom of the screen */
@media (max-width: 767px), (max-height: 700px) {
  html.tide-on .xp-intro { padding-top: calc(var(--tide-header, 84px) + 8px); padding-bottom: 12px; }
}
/* Landscape phones and very short windows: the postcards step aside so the words fit */
@media (max-height: 520px) {
  .xp-hero-stage > .xp-card, .xp-intro-inner > .xp-card { display: none; }
  html.tide-on .xp-hero-cue { display: none; }
}
@media (max-width: 700px) {
  .xp-hero-title::before { width: 120vw; height: 70vw; }
}
@media (prefers-reduced-motion: reduce) { html.tide-page { scroll-behavior: auto; } }
