/* Animated: richer motion for this design only. A real photograph with floating objects (drawn by
   js/motion-animated.js) stays fixed behind every page; moving between pages swaps only the content, so
   the scene never restarts. Headline words bounce in, sections pop in with a springy bounce and buttons
   wobble on hover. Visitors who prefer reduced motion, save data or use a weak phone keep the SAME
   look with the scene's phone-sized background photo shown still (html.pf-still) — not a plain
   navy/white fallback. */

/* Moving between pages fades the content instead of cutting; visitors who ask for reduced motion
   get a plain cut */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}

/* Reserve room for the scrollbar so the window width never changes when a page gets longer or shorter */
html:is(.pf-3d, .pf-still).design-animated {
  scrollbar-gutter: stable;
  /* No page-level background: some layouts paint one, which makes the body paint its own solid
     background over the scene (the body colour then fills the window behind the scene as usual) */
  background: none;
  overflow-x: clip;
}

#pf-stage {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* Still fallback: phone-sized equirectangular photo, cropped as a cover (P8 / P15). */
  background-color: #10283d;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.pf-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* shown the moment the first frame is drawn: no fade-in */
  opacity: 0;
}

.pf-canvas.is-on {
  opacity: 1;
}

/* Creatures and the stage stay behind page text (P6). */
html:is(.pf-3d, .pf-still).design-animated nav.site-nav,
html:is(.pf-3d, .pf-still).design-animated main#app-content,
html:is(.pf-3d, .pf-still).design-animated footer.site-footer {
  position: relative;
  z-index: 1;
}

/* ---- Shared look (live 3D and still photo): same colours, no frosted mega-panel (P3) ---- */
html:is(.pf-3d, .pf-still).design-animated nav.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: transparent;
  box-shadow: none;
  border: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html:is(.pf-3d, .pf-still).design-animated nav.site-nav .active,
html:is(.pf-3d, .pf-still).design-animated nav.site-nav [aria-current='page'] {
  color: #fff !important;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.95), 0 0 3px rgba(255, 255, 255, 0.9);
  border-bottom: 2px solid rgba(255, 255, 255, 0.9);
  padding-bottom: 0.1rem;
}

html:is(.pf-3d, .pf-still).design-animated nav.site-nav a,
html:is(.pf-3d, .pf-still).design-animated nav.site-nav .logo__name {
  color: #fff !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.95), 0 0 3px rgba(255, 255, 255, 0.9);
}

/* Phone menu button: three lines on a small solid circle in the site's main colour (P9) */
@media (max-width: 768px) {
  html:is(.pf-3d, .pf-still).design-animated nav.site-nav .nav-toggle {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    border: 0;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  /* Frosted glass only for the open phone menu (P3) */
  html:is(.pf-3d, .pf-still).design-animated nav.site-nav #nav-links {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08)), rgba(16, 28, 22, 0.38);
    -webkit-backdrop-filter: blur(22px) saturate(1.5);
    backdrop-filter: blur(22px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-top: 0;
    border-radius: 0 0 18px 18px;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.18), 0 14px 34px rgba(0, 0, 0, 0.25);
  }

  html:is(.pf-3d, .pf-still).design-animated nav.site-nav #nav-links a,
  html:is(.pf-3d, .pf-still).design-animated nav.site-nav #nav-links .active,
  html:is(.pf-3d, .pf-still).design-animated nav.site-nav #nav-links [aria-current='page'] {
    color: #fff !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
    border-bottom: 0;
    padding-bottom: 0.65rem;
  }

  /* Open phone menu: current page bold and underlined (P10) */
  html:is(.pf-3d, .pf-still).design-animated nav.site-nav.is-open #nav-links .active,
  html:is(.pf-3d, .pf-still).design-animated nav.site-nav.is-open #nav-links [aria-current='page'] {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.28em;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  }

  html:is(.pf-3d, .pf-still).design-animated nav.site-nav #nav-links a:hover {
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    font-weight: 700;
  }

  /* Smaller gap between the top bar and page headings on phones (P11) */
  html:is(.pf-3d, .pf-still).design-animated main > section:first-child:not(.landing) {
    padding-top: max(4.25rem, 8vh);
  }
}

html:is(.pf-3d, .pf-still).design-animated footer.site-footer {
  z-index: 10;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none;
}

html:is(.pf-3d, .pf-still).design-animated footer.site-footer,
html:is(.pf-3d, .pf-still).design-animated footer.site-footer a,
html:is(.pf-3d, .pf-still).design-animated footer.site-footer span,
html:is(.pf-3d, .pf-still).design-animated footer.site-footer p {
  color: #fff !important;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.75), 0 1px 3px rgba(0, 0, 0, 0.7);
}

html:is(.pf-3d, .pf-still).design-animated .social-rail__link,
html:is(.pf-3d, .pf-still).design-animated .footer-social a {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.85) !important;
  color: #fff !important;
  box-shadow: none !important;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

html:is(.pf-3d, .pf-still).design-animated .social-rail__link svg,
html:is(.pf-3d, .pf-still).design-animated .footer-social a svg {
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.6));
}

html:is(.pf-3d, .pf-still).design-animated .social-rail__link:hover,
html:is(.pf-3d, .pf-still).design-animated .footer-social a:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  transform: translateY(-2px);
}

html:is(.pf-3d, .pf-still).design-animated .landing h1 {
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.95), 0 0 4px rgba(255, 255, 255, 0.9);
}

html:is(.pf-3d, .pf-still).design-animated main#app-content {
  min-height: max(30rem, calc(100vh - 4.3rem));
  min-height: max(30rem, calc(100svh - 4.3rem));
}

html:is(.pf-3d, .pf-still).design-animated main > section:first-child:not(.landing) {
  padding-top: max(6.5rem, 12vh);
}

/* No big frosted panel on every page (P3): headings and body use shadows; forms keep glass elsewhere */
html:is(.pf-3d, .pf-still).design-animated main > section:not(.landing) > .container {
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

html:is(.pf-3d, .pf-still).design-animated .landing,
html:is(.pf-3d, .pf-still).design-animated .landing > [class^="landing-"],
html:is(.pf-3d, .pf-still).design-animated .landing-nature,
html:is(.pf-3d, .pf-still).design-animated .landing-coastal,
html:is(.pf-3d, .pf-still).design-animated .landing-hospitality,
html:is(.pf-3d, .pf-still).design-animated .landing-festival {
  background: transparent !important;
  outline: none !important;
  min-height: max(30rem, calc(100vh - 4.3rem));
  min-height: max(30rem, calc(100svh - 4.3rem));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

html:is(.pf-3d, .pf-still).design-animated .landing [class*="__accent"],
html:is(.pf-3d, .pf-still).design-animated .landing [class*="__photo"],
html:is(.pf-3d, .pf-still).design-animated .landing [class*="__curve"] {
  display: none !important;
}

html:is(.pf-3d, .pf-still).design-animated .landing [class$="__copy"] {
  text-align: center;
  max-width: 60rem;
}

html:is(.pf-3d, .pf-still).design-animated .landing h1,
html:is(.pf-3d, .pf-still).design-animated .landing p,
html:is(.pf-3d, .pf-still).design-animated .landing .landing-tagline {
  color: #fff !important;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.65), 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Booking form on the scene: no white card; white labels with shadow; light inputs (P2) */
html:is(.pf-3d, .pf-still).design-animated .booking-card {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0;
}
html:is(.pf-3d, .pf-still).design-animated .booking-card label,
html:is(.pf-3d, .pf-still).design-animated .booking-status,
html:is(.pf-3d, .pf-still).design-animated .booking-card h3,
html:is(.pf-3d, .pf-still).design-animated .booking-card p,
html:is(.pf-3d, .pf-still).design-animated .contact-booking .contact-form__title {
  color: #fff !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75), 0 1px 2px rgba(0, 0, 0, 0.65);
}
html:is(.pf-3d, .pf-still).design-animated .booking-card input,
html:is(.pf-3d, .pf-still).design-animated .booking-card select,
html:is(.pf-3d, .pf-still).design-animated .booking-card textarea {
  background: rgba(255, 255, 255, 0.92) !important;
  color: #1a1a1a !important;
  text-shadow: none !important;
}

@media (prefers-reduced-motion: no-preference) {
  .pf-word {
    display: inline-block;
    animation: pf-word-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: calc(var(--i, 0) * 90ms + 120ms);
  }

  @keyframes pf-word-pop {
    from { opacity: 0; transform: translateY(0.6em) scale(0.8) rotate(-4deg); }
    to   { opacity: 1; transform: none; }
  }

  html.pf-3d.design-animated main#app-content {
    transition: opacity 0.3s ease;
  }

  html.pf-3d.design-animated main#app-content.pf-leaving {
    opacity: 0;
  }

  html.design-animated.motion-ready .motion-reveal {
    opacity: 0;
    transform: translateY(28px) scale(0.92) rotate(-1deg);
    transition: opacity 0.5s ease, transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition-delay: var(--motion-delay, 0ms);
  }

  html.design-animated.motion-ready .motion-reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  html.design-animated .btn-primary:hover,
  html.design-animated .btn-secondary:hover {
    animation: pf-wobble 0.5s ease;
  }

  @keyframes pf-wobble {
    0%, 100% { transform: scale(1.03); }
    30% { transform: rotate(-3deg) scale(1.06); }
    60% { transform: rotate(2.5deg) scale(1.04); }
  }

  html.pf-3d.design-animated .social-rail__link,
  html.pf-3d.design-animated .footer-social a {
    transition: background-color 0.2s ease, transform 0.2s ease;
  }
}

html:is(.pf-3d, .pf-still).design-animated .landing:not(:has(> .landing-nature))::after,
html:is(.pf-3d, .pf-still).design-animated .landing .landing-nature::after { background: none; }
html:is(.pf-3d, .pf-still).design-animated .landing h1,
html:is(.pf-3d, .pf-still).design-animated .landing p,
html:is(.pf-3d, .pf-still).design-animated .landing-tagline,
html:is(.pf-3d, .pf-still).design-animated nav.site-nav a,
html:is(.pf-3d, .pf-still).design-animated nav.site-nav #nav-links a {
  color: #fff !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7), 0 1px 4px rgba(0, 0, 0, 0.65) !important;
}
html:is(.pf-3d, .pf-still).design-animated .landing .btn-primary { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35); }

/* Services as freely floating bubbles, matching the soap bubbles in the scene: clear glass with a bright
   rim and a rainbow sheen. js/motion-animated.js moves them around the window and keeps them from touching
   (minimum gap) and from covering the page heading or top menu (P1). */
html:is(.pf-3d, .pf-still).design-animated main > section:not(.landing) > .container:has(.services-grid) {
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

html:is(.pf-3d, .pf-still).design-animated .container:has(.services-grid) > :is(h1, h2),
html:is(.pf-3d, .pf-still).design-animated .container:has(.services-grid) > p {
  color: #fff !important;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7), 0 1px 4px rgba(0, 0, 0, 0.65);
  position: relative;
  z-index: 6;
}

@media (min-width: 641px) {
  html.pf-3d.design-animated .services-grid,
  html.pf-3d.design-animated .container:has(.services-grid) > :is(h1, h2) {
    transform: none !important;
  }

  html.pf-3d.design-animated .services-grid {
    opacity: 1 !important;
  }

  html.pf-3d.design-animated .services-grid {
    display: block !important;
    height: 0;
    min-height: 0;
    padding: 0;
    margin: 0;
  }

  html.pf-3d.design-animated .services-grid .service-card.is-grabbed {
    cursor: grabbing;
    z-index: 5;
  }

  html.pf-3d.design-animated .services-grid .service-card {
    position: fixed;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
    touch-action: none;
    z-index: 4;
    box-sizing: border-box;
    width: var(--pf-d, 16rem);
    height: var(--pf-d, 16rem);
    min-height: 0 !important;
    margin: 0 !important;
    aspect-ratio: auto !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: calc(var(--pf-d, 16rem) * 0.16) calc(var(--pf-d, 16rem) * 0.13) !important;
    border-radius: 50% !important;
    clip-path: none !important;
    filter: none !important;
    animation: none !important;
    transition: none !important;
    will-change: transform;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    background:
      radial-gradient(circle at 50% 50%, rgba(10, 20, 30, 0.34) 0%, rgba(10, 20, 30, 0.2) 55%, rgba(255, 255, 255, 0.1) 88%, rgba(255, 255, 255, 0.28) 100%) !important;
    -webkit-backdrop-filter: blur(2px) saturate(140%);
    backdrop-filter: blur(2px) saturate(140%);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.28),
      inset 0 0 28px rgba(255, 255, 255, 0.28),
      inset 16px 14px 34px rgba(255, 255, 255, 0.3),
      inset -16px -14px 34px rgba(90, 190, 255, 0.34),
      inset 0 -18px 30px rgba(255, 235, 120, 0.14),
      0 10px 36px rgba(0, 0, 0, 0.16) !important;
  }

  html.pf-3d.design-animated .services-grid .service-card::before {
    content: '';
    position: absolute;
    top: 8%;
    left: 15%;
    width: 24%;
    height: 12%;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
    transform: rotate(-32deg);
    pointer-events: none;
  }

  html.pf-3d.design-animated .services-grid .service-card::after {
    content: '';
    position: absolute;
    right: 17%;
    bottom: 9%;
    width: 13%;
    height: 7%;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
    transform: rotate(-32deg);
    pointer-events: none;
  }

  html.pf-3d.design-animated .services-grid .service-card h3 {
    font-size: max(0.9375rem, clamp(0.8rem, calc(var(--pf-d, 16rem) * 0.062), 1.05rem));
    line-height: 1.2;
    margin: 0 0 0.4rem;
    color: #fff !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75), 0 1px 2px rgba(0, 0, 0, 0.7);
  }

  html.pf-3d.design-animated .services-grid .service-card h3::after {
    display: none;
  }

  html.pf-3d.design-animated .services-grid .service-card p {
    font-size: max(0.9375rem, clamp(0.7rem, calc(var(--pf-d, 16rem) * 0.05), 0.88rem));
    line-height: 1.36;
    margin: 0;
    color: #fff !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8), 0 1px 2px rgba(0, 0, 0, 0.7);
  }
}

/* Still mode: column of readable bubbles (any width) */
html.pf-still.design-animated .services-grid {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  height: auto;
  min-height: 0;
  padding: 1.25rem 0 2rem;
  margin: 0;
}

html.pf-still.design-animated .services-grid .service-card {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  opacity: 1 !important;
  cursor: auto;
  touch-action: auto;
  width: min(68vw, 16rem);
  height: min(68vw, 16rem);
  --pf-d: min(68vw, 16rem);
  z-index: 1;
  box-sizing: border-box;
  min-height: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: calc(var(--pf-d, 16rem) * 0.16) calc(var(--pf-d, 16rem) * 0.13) !important;
  border-radius: 50% !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  background:
    radial-gradient(circle at 50% 50%, rgba(10, 20, 30, 0.34) 0%, rgba(10, 20, 30, 0.2) 55%, rgba(255, 255, 255, 0.1) 88%, rgba(255, 255, 255, 0.28) 100%) !important;
  -webkit-backdrop-filter: blur(2px) saturate(140%);
  backdrop-filter: blur(2px) saturate(140%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    inset 0 0 28px rgba(255, 255, 255, 0.28),
    inset 16px 14px 34px rgba(255, 255, 255, 0.3),
    inset -16px -14px 34px rgba(90, 190, 255, 0.34),
    inset 0 -18px 30px rgba(255, 235, 120, 0.14),
    0 10px 36px rgba(0, 0, 0, 0.16) !important;
}

html.pf-still.design-animated .services-grid .service-card h3 {
  font-size: max(0.9375rem, clamp(0.8rem, calc(var(--pf-d, 16rem) * 0.062), 1.05rem));
  line-height: 1.2;
  margin: 0 0 0.4rem;
  color: #fff !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75), 0 1px 2px rgba(0, 0, 0, 0.7);
}

html.pf-still.design-animated .services-grid .service-card h3::after { display: none; }

html.pf-still.design-animated .services-grid .service-card p {
  font-size: max(0.9375rem, clamp(0.7rem, calc(var(--pf-d, 16rem) * 0.05), 0.88rem));
  line-height: 1.36;
  margin: 0;
  color: #fff !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8), 0 1px 2px rgba(0, 0, 0, 0.7);
}

html.pf-still.design-animated .services-grid .service-card + .service-card { margin-top: -2rem !important; }
html.pf-still.design-animated .services-grid .service-card:nth-child(even) { align-self: flex-end; }
html.pf-still.design-animated .services-grid .service-card:nth-child(odd) { align-self: flex-start; }

@media (max-width: 640px) {
  html.pf-3d.design-animated .services-grid {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    height: auto;
    min-height: 0;
    padding: 1.25rem 0 2rem;
    margin: 0;
  }

  html.pf-3d.design-animated .services-grid .service-card {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    opacity: 1 !important;
    cursor: auto;
    touch-action: auto;
    width: min(68vw, 16rem);
    height: min(68vw, 16rem);
    --pf-d: min(68vw, 16rem);
    z-index: 1;
    box-sizing: border-box;
    min-height: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: calc(var(--pf-d, 16rem) * 0.16) calc(var(--pf-d, 16rem) * 0.13) !important;
    border-radius: 50% !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    background:
      radial-gradient(circle at 50% 50%, rgba(10, 20, 30, 0.34) 0%, rgba(10, 20, 30, 0.2) 55%, rgba(255, 255, 255, 0.1) 88%, rgba(255, 255, 255, 0.28) 100%) !important;
    -webkit-backdrop-filter: blur(2px) saturate(140%);
    backdrop-filter: blur(2px) saturate(140%);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.28),
      inset 0 0 28px rgba(255, 255, 255, 0.28),
      inset 16px 14px 34px rgba(255, 255, 255, 0.3),
      inset -16px -14px 34px rgba(90, 190, 255, 0.34),
      inset 0 -18px 30px rgba(255, 235, 120, 0.14),
      0 10px 36px rgba(0, 0, 0, 0.16) !important;
    animation: pf-bubble-bob 7s ease-in-out infinite alternate !important;
  }

  html.pf-3d.design-animated .services-grid .service-card h3 {
    font-size: max(0.9375rem, clamp(0.8rem, calc(var(--pf-d, 16rem) * 0.062), 1.05rem));
    line-height: 1.2;
    margin: 0 0 0.4rem;
    color: #fff !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75), 0 1px 2px rgba(0, 0, 0, 0.7);
  }

  html.pf-3d.design-animated .services-grid .service-card h3::after { display: none; }

  html.pf-3d.design-animated .services-grid .service-card p {
    font-size: max(0.9375rem, clamp(0.7rem, calc(var(--pf-d, 16rem) * 0.05), 0.88rem));
    line-height: 1.36;
    margin: 0;
    color: #fff !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8), 0 1px 2px rgba(0, 0, 0, 0.7);
  }

  html.pf-3d.design-animated .services-grid .service-card + .service-card { margin-top: -2rem !important; }
  html.pf-3d.design-animated .services-grid .service-card:nth-child(even) {
    align-self: flex-end;
    animation-delay: -3s !important;
  }
  html.pf-3d.design-animated .services-grid .service-card:nth-child(odd) { align-self: flex-start; }

  @keyframes pf-bubble-bob {
    from { translate: 0 -5px; }
    to   { translate: 0 6px; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html.pf-3d.design-animated .services-grid .service-card {
    animation: none !important;
  }
}

/* Features / teaser rows over the scene: text shadows and thin rules, no frosted cards (P3). */
html:is(.pf-3d, .pf-still).design-animated main > section:not(.landing) > .container:has(.pl-feature-rows) {
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  padding: 0 clamp(1rem, 4vw, 2rem);
  max-width: min(78rem, 100%);
}

html:is(.pf-3d, .pf-still).design-animated .pl-features-intro,
html:is(.pf-3d, .pf-still).design-animated .pl-features-intro * {
  color: #fff !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7), 0 1px 4px rgba(0, 0, 0, 0.65);
}

html:is(.pf-3d, .pf-still).design-animated .pl-feature-rows {
  display: flex !important;
  flex-direction: column;
  gap: 0 !important;
  margin-top: 2rem;
}

html:is(.pf-3d, .pf-still).design-animated .pl-feature-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0.9rem !important;
  align-items: start !important;
  box-sizing: border-box;
  width: min(100%, 38rem);
  padding: 1rem 0 1.15rem;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}

html:is(.pf-3d, .pf-still).design-animated .pl-feature-row:nth-child(odd) {
  align-self: flex-start;
  margin-left: clamp(0rem, 4vw, 3rem);
}

html:is(.pf-3d, .pf-still).design-animated .pl-feature-row:nth-child(even) {
  align-self: flex-end;
  margin-right: clamp(0rem, 4vw, 3rem);
}

html:is(.pf-3d, .pf-still).design-animated .pl-feature-row .pl-feature-row__media {
  order: -1;
  margin: 0 !important;
  padding: 0 !important;
}

html:is(.pf-3d, .pf-still).design-animated .pl-feature-row .pl-feature-row__media img {
  width: 100%;
  height: 10.5rem;
  object-fit: cover;
  border-radius: 1.1rem;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.3);
}

html:is(.pf-3d, .pf-still).design-animated .pl-feature-row .pl-feature-row__content {
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  text-align: left;
}

html:is(.pf-3d, .pf-still).design-animated .pl-feature-row .pl-feature-row__content,
html:is(.pf-3d, .pf-still).design-animated .pl-feature-row .pl-feature-row__content * {
  color: #fff !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7), 0 1px 2px rgba(0, 0, 0, 0.65);
}

html:is(.pf-3d, .pf-still).design-animated .pl-feature-row .pl-feature-row__content h3 {
  font-size: 1.2rem;
  line-height: 1.25;
  margin: 0.2rem 0 0.45rem;
}

html:is(.pf-3d, .pf-still).design-animated .pl-feature-row .pl-feature-row__content p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 700px) {
  html:is(.pf-3d, .pf-still).design-animated .pl-feature-row:nth-child(odd),
  html:is(.pf-3d, .pf-still).design-animated .pl-feature-row:nth-child(even) {
    align-self: stretch;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }
}

/* Content pages over the scene: headings and lists use text shadows and thin dividers.
   Frosted-glass panels only for forms (contact form / booking) — plan P3. */
html:is(.pf-3d, .pf-still).design-animated main > section:not(.landing) > .container:has(#about-body, .contact-form-panel, #faq-list, #events-list, #documents-list, #gallery-list, #menu-list, #sponsors-list, #privacy-body, #terms-body) {
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  padding: 0 clamp(1rem, 4vw, 2rem);
  max-width: min(78rem, 100%);
}

html:is(.pf-3d, .pf-still).design-animated main > section > .container > h1,
html:is(.pf-3d, .pf-still).design-animated main > section > .container > h2,
html:is(.pf-3d, .pf-still).design-animated main > section > .container > h1 + p,
html:is(.pf-3d, .pf-still).design-animated main > section > .container > h2 + p,
html:is(.pf-3d, .pf-still).design-animated main > section > .container > .muted-note,
html:is(.pf-3d, .pf-still).design-animated main > section > .container > [id$="-list"] > .muted-note {
  color: #fff !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7), 0 1px 4px rgba(0, 0, 0, 0.65);
}

/* Forms only: frosted glass (P3) */
html:is(.pf-3d, .pf-still).design-animated .contact-form-panel,
html:is(.pf-3d, .pf-still).design-animated .contact-booking {
  box-sizing: border-box;
  margin: 0;
  padding: 1.3rem 1.5rem;
  border-radius: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.22), rgba(10, 20, 30, 0.42) 55%, rgba(10, 20, 30, 0.5)) !important;
  -webkit-backdrop-filter: blur(9px) saturate(140%);
  backdrop-filter: blur(9px) saturate(140%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    inset 0 0 30px rgba(255, 255, 255, 0.1),
    0 14px 40px rgba(0, 0, 0, 0.25) !important;
  color: #fff !important;
}

html:is(.pf-3d, .pf-still).design-animated :is(.contact-form-panel, .contact-booking) :where(h2, h3, h4, p, li, span, label, summary, small, strong, em, dt, dd, legend, a):not(:is(button, .btn, input, select, textarea, option, .btn *, button *)) {
  color: #fff !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* Everything else: white text on the scene, thin dividers — no glass cards */
html:is(.pf-3d, .pf-still).design-animated #about-body > p,
html:is(.pf-3d, .pf-still).design-animated .contact-channels-panel,
html:is(.pf-3d, .pf-still).design-animated .faq-item,
html:is(.pf-3d, .pf-still).design-animated .event-card,
html:is(.pf-3d, .pf-still).design-animated .gallery-item,
html:is(.pf-3d, .pf-still).design-animated #documents-list > li,
html:is(.pf-3d, .pf-still).design-animated #menu-list > *,
html:is(.pf-3d, .pf-still).design-animated #sponsors-list > *,
html:is(.pf-3d, .pf-still).design-animated #privacy-body,
html:is(.pf-3d, .pf-still).design-animated #terms-body {
  box-sizing: border-box;
  margin: 0;
  padding: 0.85rem 0;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 0;
  background: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  color: #fff !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7), 0 1px 2px rgba(0, 0, 0, 0.65);
}

html:is(.pf-3d, .pf-still).design-animated :is(#about-body > p, .contact-channels-panel, .faq-item, .event-card, .gallery-item, #documents-list > li, #menu-list > *, #sponsors-list > *, #privacy-body, #terms-body) :where(h2, h3, h4, p, li, span, label, summary, small, strong, em, dt, dd, legend, figcaption, a):not(:is(button, .btn, input, select, textarea, option, .btn *, button *)) {
  color: #fff !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

html:is(.pf-3d, .pf-still).design-animated .gallery-item {
  padding: 0;
  border-bottom: 0 !important;
}

html:is(.pf-3d, .pf-still).design-animated .contact-mode button {
  color: #fff !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
  opacity: 0.72;
}

/* Readable inactive contact tab (P23) */
html:is(.pf-3d, .pf-still).design-animated .contact-mode button:not(.is-active) {
  opacity: 0.88;
  color: rgba(255, 255, 255, 0.92) !important;
}

html:is(.pf-3d, .pf-still).design-animated .contact-mode button[aria-pressed='true'],
html:is(.pf-3d, .pf-still).design-animated .contact-mode button[aria-selected='true'],
html:is(.pf-3d, .pf-still).design-animated .contact-mode button.is-active,
html:is(.pf-3d, .pf-still).design-animated .contact-mode button.active {
  background: rgba(255, 255, 255, 0.3) !important;
  opacity: 1;
}

html:is(.pf-3d, .pf-still).design-animated :is(.contact-channels-panel, .contact-form-panel) :is(li, hr) {
  border-color: rgba(255, 255, 255, 0.28) !important;
}

html:is(.pf-3d, .pf-still).design-animated #about-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 1.5rem 0 0;
  padding: 0;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html:is(.pf-3d, .pf-still).design-animated #about-body > p {
  width: min(100%, 42rem);
}

html:is(.pf-3d, .pf-still).design-animated .container:has(.contact-form-panel) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

html:is(.pf-3d, .pf-still).design-animated .container:has(.contact-form-panel) > :is(h1, h2) {
  margin-bottom: 0;
}

@media (min-width: 900px) {
  html:is(.pf-3d, .pf-still).design-animated .container:has(.contact-form-panel) {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }

  html:is(.pf-3d, .pf-still).design-animated .container:has(.contact-form-panel) > :is(h1, h2) {
    grid-column: 1 / -1;
  }
}

html:is(.pf-3d, .pf-still).design-animated #faq-list,
html:is(.pf-3d, .pf-still).design-animated #documents-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 46rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

/* Documents heading and list share one width/alignment (P23) */
html:is(.pf-3d, .pf-still).design-animated .container:has(#documents-list) > :is(h1, h2),
html:is(.pf-3d, .pf-still).design-animated #documents-list {
  max-width: 46rem;
  margin-left: 0;
  margin-right: auto;
  width: 100%;
}

html:is(.pf-3d, .pf-still).design-animated #events-list,
html:is(.pf-3d, .pf-still).design-animated #gallery-list,
html:is(.pf-3d, .pf-still).design-animated #menu-list,
html:is(.pf-3d, .pf-still).design-animated #sponsors-list {
  gap: 1.25rem;
}

/* Partners cards equal height (P23) */
html:is(.pf-3d, .pf-still).design-animated #sponsors-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  align-items: stretch;
}
html:is(.pf-3d, .pf-still).design-animated #sponsors-list > * {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  padding: 1rem;
}

html:is(.pf-3d, .pf-still).design-animated #privacy-body,
html:is(.pf-3d, .pf-still).design-animated #terms-body {
  max-width: 52rem;
  margin: 1.5rem 0 0;
  padding: 0;
  border-bottom: 0 !important;
}

@media (max-width: 700px) {
  html:is(.pf-3d, .pf-still).design-animated #about-body > p {
    width: 100%;
  }

  html:is(.pf-3d, .pf-still).design-animated .contact-form-panel,
  html:is(.pf-3d, .pf-still).design-animated .contact-booking {
    padding: 1.1rem 1.1rem;
  }
}
