/* Ocean Breeze Villa: splash screen + cursor. Small, transform/opacity only. Built by Revmonic. */
/* ---------- splash ---------- */
.sp { display: none; }
html.splash-on .sp { display: block; }
html.splash-hold, html.splash-hold body { overflow: hidden; }
html.splash-hold .hero, html.splash-hold .hero * { animation-play-state: paused !important; }

.sp {
  position: fixed; inset: 0; z-index: 100000; height: 100vh; height: 100dvh;
  background: linear-gradient(180deg, #bfe4f5 0%, #def2fb 55%, #fbf6ea 100%);
  color: var(--ink, #0a2a52); font-family: var(--f-body, "Manrope", system-ui, sans-serif);
  transition: transform 0.95s cubic-bezier(0.65, 0, 0.35, 1); will-change: transform;
  user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.sp.is-out { transform: translateY(-104%); }
/* 2 Dec 2026, shorter splash: desktop lifts in 0.7 s and the sea rises in 1 s;
   phones (html.splash-quick) lift in 0.45 s, the sea is already up, and the tap hints are hidden (no time to tap) */
html.splash-on .sp { transition-duration: 0.7s; }
html.splash-on .sp__sea { animation-duration: 1s; animation-delay: 0s; }
/* phones: CSS only, so it starts at the very first paint instead of waiting for the page script (about 2 s on a slow phone);
   a quick brand flash, then the curtain lifts. The gate in <head> removes .splash-on on animationend. */
html.splash-quick .sp { transition: none; animation: spLift 0.35s cubic-bezier(0.65, 0, 0.35, 1) 0.1s forwards; }
@keyframes spLift { to { transform: translateY(-104%); } }
html.splash-quick .sp__sea { animation: none; transform: none; }
html.splash-quick .sp__hand, html.splash-quick .sp__skip { display: none; }
.sp__in { position: absolute; inset: 0; overflow: hidden; }

/* column in the upper half */
.sp__c {
  position: absolute; left: 0; right: 0; top: 0; bottom: 46%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(6px, 1.6vh, 14px); padding: max(16px, env(safe-area-inset-top)) 20px 0; text-align: center;
}
.sp__par { transform: translate3d(calc(var(--mx, 0) * 16px), calc(var(--my, 0) * 12px), 0); transition: transform 0.25s ease-out; }
.sp__sun {
  position: relative; display: block; width: clamp(78px, 19vmin, 150px); aspect-ratio: 1; padding: 0; border-radius: 50%; cursor: pointer;
  background: radial-gradient(circle at 35% 30%, #ffe58a, #ffcf4a 62%); border: 3px solid #0a2a52; box-shadow: 4px 5px 0 #0a2a52;
  animation: spBob 2.6s ease-in-out infinite; -webkit-appearance: none; appearance: none;
}
.sp__sun::before {
  content: ""; position: absolute; inset: -26%; border-radius: 50%; z-index: -1; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 207, 74, 0) 0 11deg, rgba(255, 207, 74, 0.6) 11deg 22deg);
  -webkit-mask: radial-gradient(circle, transparent 56%, #000 57%, #000 74%, transparent 75%); mask: radial-gradient(circle, transparent 56%, #000 57%, #000 74%, transparent 75%);
  animation: spSpin 16s linear infinite;
}
.sp__sun .e { position: absolute; top: 36%; width: 9%; height: 13%; border-radius: 50%; background: #0a2a52; animation: spBlink 3.6s infinite; }
.sp__sun .l { left: 30%; } .sp__sun .r { right: 30%; }
.sp__sun .m { position: absolute; left: 50%; top: 56%; width: 34%; height: 17%; margin-left: -17%; border: 3px solid #0a2a52; border-top: 0; border-radius: 0 0 80px 80px / 0 0 100% 100%; transition: all 0.15s; }
.sp__sun.is-ouch { animation: spOuch 0.6s ease-out; }
.sp__sun.is-ouch .e { animation: none; transform: scaleY(0.15); }
.sp__sun.is-ouch .m { width: 18%; height: 22%; margin-left: -9%; border: 3px solid #0a2a52; border-radius: 50%; }
.sp__brand { margin: 4px 0 0; font: 800 clamp(1.7rem, 6.4vw, 3.4rem) / 1 var(--f-display, "Bricolage Grotesque", system-ui, sans-serif); letter-spacing: -0.02em; color: var(--deep, #08264d); }
.sp__sub { margin: 0; font-weight: 700; font-size: clamp(0.6rem, 1.7vw, 0.78rem); letter-spacing: 0.28em; text-transform: uppercase; color: var(--ocean, #1769b0); }
.sp__hand { margin: 4px 0 0; font: 700 clamp(1.2rem, 4.2vw, 1.9rem) / 1 var(--f-hand, "Caveat", cursive); color: var(--ocean, #1769b0); transform: rotate(-3deg); min-height: 1.1em; }
.sp__hand.pop { animation: spPop 0.35s ease-out; }

.sp__birds { position: absolute; top: 12%; left: -16%; width: clamp(70px, 13vw, 130px); aspect-ratio: 2 / 1; background: var(--ink, #0a2a52); opacity: 0.75;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; animation: spFly 11s linear 0.4s infinite; }

/* rising sea: three paper-cut wave layers */
.sp__sea { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; transform: translateY(104%); animation: spRise 2.2s cubic-bezier(0.3, 0.7, 0.2, 1) 0.15s forwards; }
.sp__w { position: absolute; left: 0; bottom: 0; width: 200%; max-width: none; display: block; }
.sp__w path { vector-effect: non-scaling-stroke; stroke: rgba(255, 255, 255, 0.7); stroke-width: 2px; }
.sp__w1 { height: 100%; fill: #7ccbeb; animation: spSlideL 12s linear infinite; }
.sp__w2 { height: 84%; fill: #2e9bd6; animation: spSlideR 8.5s linear infinite; }
.sp__w3 { height: 66%; fill: #0b3d7a; animation: spSlideL 6.5s linear infinite; }
.sp__edge { position: absolute; left: 0; right: 0; top: calc(100% - 1px); width: 100%; max-width: none; height: clamp(36px, 7vw, 84px); fill: #0b3d7a; display: block; }

.sp__skip {
  position: absolute; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 3; min-height: 44px; padding: 0 20px; cursor: pointer;
  font: 800 0.78rem / 1 var(--f-body, system-ui, sans-serif); letter-spacing: 0.12em; text-transform: uppercase; color: #0a2a52; background: #fbf6ea;
  border: 2.5px solid #0a2a52; border-radius: 99px; box-shadow: 3px 3px 0 #0a2a52; transition: transform 0.15s, box-shadow 0.15s;
}
.sp__skip:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 #0a2a52; }
.sp__skip:active { transform: translate(3px, 3px); box-shadow: 0 0 0 #0a2a52; }
.sp__skip:focus-visible, .sp__sun:focus-visible { outline: 3px solid #0a2a52; outline-offset: 4px; }

/* splashes, ripples and foam drops (used by the splash and by cursor clicks) */
.sp-drop { position: fixed; left: 0; top: 0; z-index: 100002; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; pointer-events: none; background: var(--c, #ffcf4a); border: 2px solid #0a2a52; animation: spDrop 0.8s cubic-bezier(0.2, 0.7, 0.4, 1) forwards; }
.sp-rip { position: fixed; z-index: 100002; width: 12px; height: 12px; margin: -6px 0 0 -6px; border: 3px solid rgba(10, 42, 82, 0.55); border-radius: 50%; pointer-events: none; animation: spRip 0.7s ease-out forwards; }

@keyframes spRise { to { transform: translateY(0); } }
@keyframes spSlideL { to { transform: translateX(-50%); } }
@keyframes spSlideR { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes spBob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
@keyframes spSpin { to { transform: rotate(360deg); } }
@keyframes spBlink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
@keyframes spOuch { 0% { transform: scale(1); } 30% { transform: scale(0.84, 1.14) rotate(-7deg); } 65% { transform: scale(1.1, 0.92) rotate(5deg); } 100% { transform: scale(1); } }
@keyframes spPop { 0% { transform: rotate(-3deg) scale(0.6); } 100% { transform: rotate(-3deg) scale(1); } }
@keyframes spFly { 0% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(70vw, -12px, 0); } 100% { transform: translate3d(135vw, 6px, 0); } }
@keyframes spDrop { 0% { transform: translate(0, 0) scale(1); opacity: 1; } 55% { opacity: 1; } 100% { transform: translate(var(--dx, 0), var(--dy, 60px)) scale(0.35); opacity: 0; } }
@keyframes spRip { to { transform: scale(9); opacity: 0; } }

@media (max-height: 520px) and (orientation: landscape) {
  .sp__c { bottom: 40%; flex-direction: row; flex-wrap: wrap; gap: 4px 18px; padding-top: 10px; }
  .sp__sea { height: 40%; }
  .sp__sub { display: none; }
  .sp__sun { width: clamp(60px, 22vh, 100px); }
}
@media (prefers-reduced-motion: reduce) {
  .sp { display: none !important; }
}

/* ---------- cursor (fine pointers only; the script adds .has-cur) ---------- */
html.has-cur, html.has-cur a, html.has-cur button, html.has-cur summary, html.has-cur label, html.has-cur [role="button"], html.has-cur .btn { cursor: none !important; }
html.has-cur input, html.has-cur textarea { cursor: text !important; }
html.has-cur select { cursor: default !important; }
.cur-dot, .cur-ring { position: fixed; left: 0; top: 0; z-index: 100001; pointer-events: none; opacity: 0; transition: opacity 0.2s; will-change: transform; }
.cur-dot.is-on, .cur-ring.is-on { opacity: 1; }
.cur-dot::after { content: ""; display: block; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #ffcf4a; border: 2px solid #0a2a52; transition: transform 0.15s; }
.cur-ring::after { content: ""; display: block; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; border: 2px solid #fff; mix-blend-mode: difference; transition: transform 0.28s cubic-bezier(0.3, 1.5, 0.5, 1), background-color 0.2s; }
.cur-ring { mix-blend-mode: difference; }
.cur-ring.is-link::after { transform: scale(1.65); background-color: rgba(255, 255, 255, 0.22); }
.cur-ring.is-down::after { transform: scale(0.65); }
.cur-dot.is-link::after { transform: scale(0.6); }
.cur-dot.is-text, .cur-ring.is-text { opacity: 0 !important; }
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) { .cur-dot, .cur-ring { display: none !important; } }

/* photo viewer is a top-layer <dialog>: the custom cursor can't sit above it, so give the normal cursor back while it is open */
html.has-cur:has(dialog[open]), html.has-cur:has(dialog[open]) *, html.has-cur:has(dialog[open]) a, html.has-cur:has(dialog[open]) button { cursor: auto !important; }
html.has-cur:has(dialog[open]) button, html.has-cur:has(dialog[open]) a { cursor: pointer !important; }
html:has(dialog[open]) .cur-dot, html:has(dialog[open]) .cur-ring { opacity: 0 !important; }

/* mobile footer: the big faint name was cut off ("Ocean Breeze Vi"); size it to fit the screen, keep legal text clear of the sticky bar */
@media (max-width: 767px) {
  .ftr__big { font-size: 9.6vw !important; margin-top: 40px; }
  .ftr { padding-bottom: 130px; }
}
