/* =========================================================
   LUGERIA — shared effects layer (every page)
   intro · logo glint & melt · scroll progress · liquid text · tilt + sheen
   ring light · marquee · heading reveal · count-up · parallax · footer mark
   ========================================================= */
@property --fx-rv { syntax: '<percentage>'; inherits: true; initial-value: 118%; }
@property --fx-wipe { syntax: '<percentage>'; inherits: false; initial-value: 118%; }
@property --fx-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

/* ---------- intro: the drop fills with the sea, the name is written, the curtain lifts, the logo flies home ---------- */
.fx-intro { display: none; }
.has-intro .fx-intro { position: fixed; inset: 0; z-index: 400; display: block; animation: fx-failsafe 0s linear 6.5s forwards; }
html.has-intro { overflow: hidden; animation: fx-unlock 0s linear 6.5s forwards; }
.has-intro .header .logo { opacity: 0; }
@keyframes fx-failsafe { to { visibility: hidden; } }
@keyframes fx-unlock { to { overflow: visible; } }
.fx-intro-curtain { position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 46%, #17556B 0%, #0F3B4C 38%, #0B1C25 78%); clip-path: inset(0 0 0 0); transition: clip-path .85s cubic-bezier(.7, 0, .2, 1); }
.fx-intro-curtain::after { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 30% at 50% 46%, rgba(233, 201, 138, .16), transparent 70%); animation: fx-breathe 3s ease-in-out infinite alternate; }
@keyframes fx-breathe { to { opacity: .4; transform: scale(1.08); } }
.fx-intro.is-leaving .fx-intro-curtain { clip-path: inset(100% 0 0 0); }   /* the sea drains away: the header is uncovered first */
.fx-intro-logo { position: absolute; inset: 0; margin: auto; width: 1px; height: 1px; transform-origin: 0 0; transition: transform .85s cubic-bezier(.7, 0, .2, 1); translate: var(--shift, 0) 0; animation: fx-center 1.2s cubic-bezier(.6, 0, .2, 1) .6s both; }
@keyframes fx-center { from { translate: var(--shift, 0) 0; } to { translate: 0 0; } }
.fx-il-dropbox, .fx-il-wordbox { position: absolute; }
.fx-il { position: absolute; inset: 0; }
.fx-il-ghost { -webkit-mask: url(/assets/img/drop-silhouette.svg) 0 0 / 100% 100% no-repeat; mask: url(/assets/img/drop-silhouette.svg) 0 0 / 100% 100% no-repeat; background: rgba(255, 255, 255, .1); }
.fx-il-fill {
  -webkit-mask: url(/assets/img/drop-silhouette.svg) 0 0 / 100% 100% no-repeat, url(/assets/img/wave.svg) 0 0 / 70% 200% repeat-x;
  -webkit-mask-composite: source-in;
          mask: url(/assets/img/drop-silhouette.svg) 0 0 / 100% 100% no-repeat, url(/assets/img/wave.svg) 0 0 / 70% 200% repeat-x;
          mask-composite: intersect;
  background: linear-gradient(180deg, #8CC6D4 0%, #3C94AE 30%, #17556B 70%, #0F3B4C 100%);
  animation: fx-fill 1.1s cubic-bezier(.35, .55, .25, 1) .05s both;
}
@keyframes fx-fill {
  from { -webkit-mask-position: 0 0, 0% 0%; mask-position: 0 0, 0% 0%; }
  to { -webkit-mask-position: 0 0, -300% 100%; mask-position: 0 0, -300% 100%; }
}
.fx-il-drop { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; animation: fx-show .6s ease 1s both; }
@keyframes fx-show { to { opacity: 1; } }
.fx-il-wordbox { filter: drop-shadow(0 0 22px rgba(140, 200, 215, .3)); transition: filter .28s ease .52s; }
.fx-il-word {
  -webkit-mask: url(/assets/img/logo-wordmark-light.png) 0 0 / 100% 100% no-repeat, linear-gradient(90deg, #000 calc(var(--fx-rv) - 16%), transparent var(--fx-rv));
  -webkit-mask-composite: source-in;
          mask: url(/assets/img/logo-wordmark-light.png) 0 0 / 100% 100% no-repeat, linear-gradient(90deg, #000 calc(var(--fx-rv) - 16%), transparent var(--fx-rv));
          mask-composite: intersect;
  background: linear-gradient(100deg, #CFE3EA 0%, #FFFFFF 18%, #FFFFFF 32%, #F6E6C4 44%, #FFFFFF 56%, #DCEBF0 78%, #FFFFFF 100%) 0 0 / 250% 100%;
  animation: fx-reveal .95s cubic-bezier(.22, 1, .36, 1) 1s both, fx-pearl 5s ease-in-out infinite alternate;
  transition: opacity .28s ease .52s;
}
@keyframes fx-reveal { from { --fx-rv: 0%; } to { --fx-rv: 118%; } }
@keyframes fx-pearl { from { background-position: 0% 0; } to { background-position: 100% 0; } }
.fx-il-wordimg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .28s ease .52s; }
.fx-intro.is-leaving .fx-il-word { opacity: 0; }
.fx-intro.is-leaving .fx-il-wordimg { opacity: 1; }
.fx-intro.is-leaving .fx-il-wordbox { filter: none; }
.fx-intro .fx-il-glint { -webkit-mask: var(--m) 0 0 / 100% 100% no-repeat; mask: var(--m) 0 0 / 100% 100% no-repeat; background: linear-gradient(100deg, transparent 0 42%, rgba(255, 255, 255, .95) 50%, transparent 58% 100%) 0 0 / 250% 100% no-repeat; background-position: 103% 0; animation: fx-glint-now 1s cubic-bezier(.22, 1, .36, 1) 1.5s both; }
.fx-intro-tag { position: absolute; left: 0; right: 0; top: calc(50% + var(--ih, 60px) / 2 + 30px); margin: 0; display: flex; justify-content: center; clip-path: inset(0 50% 0 50%); opacity: 0; animation: fx-tag 1s cubic-bezier(.22, 1, .36, 1) 1.45s both; }
.fx-intro-tag img { width: calc(var(--iw, 360px) * .52); height: auto; opacity: .82; }
@keyframes fx-tag { to { clip-path: inset(0 0 0 0); opacity: 1; } }
.fx-intro.is-leaving .fx-intro-tag { opacity: 0; transition: opacity .16s; animation: none; }
/* hero entrance waits for the curtain */
html.fx-hold.is-ready [data-in] { opacity: 0 !important; transform: translateY(22px) !important; }

/* ---------- header logo: a light sweeps over it; when the header is stuck the name melts into the drop ---------- */
.header .logo { position: relative; }
.fx-glint { position: absolute; pointer-events: none; -webkit-mask: var(--m) 0 0 / 100% 100% no-repeat; mask: var(--m) 0 0 / 100% 100% no-repeat; background: linear-gradient(100deg, transparent 0 42%, rgba(255, 255, 255, .95) 50%, transparent 58% 100%) 0 0 / 250% 100% no-repeat; background-position: 103% 0; animation: fx-glint 8s cubic-bezier(.22, 1, .36, 1) 2.5s infinite; transition: opacity .6s; }
.fx-glint-w { animation-delay: 2.65s; }
.logo:hover .fx-glint, .logo:focus-visible .fx-glint { animation: fx-glint-now 1.1s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes fx-glint { 0% { background-position: 103% 0; } 22%, 100% { background-position: -3% 0; } }
@keyframes fx-glint-now { from { background-position: 103% 0; } to { background-position: -3% 0; } }
.header .logo-word { -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--fx-wipe) - 14%), transparent var(--fx-wipe)); mask-image: linear-gradient(90deg, #000 calc(var(--fx-wipe) - 14%), transparent var(--fx-wipe)); transition: --fx-wipe .9s cubic-bezier(.22, 1, .36, 1), filter .9s cubic-bezier(.22, 1, .36, 1), translate .9s cubic-bezier(.22, 1, .36, 1); }
.header.is-scrolled .logo:not(:hover):not(:focus-visible) .logo-word { --fx-wipe: 0%; filter: blur(1.2px); translate: -10px 0; }
.header.is-scrolled .logo:not(:hover):not(:focus-visible) .fx-glint-w { opacity: 0; }
.header.is-scrolled .logo:not(:hover):not(:focus-visible) .logo-drop { animation: fx-absorb 1.1s cubic-bezier(.22, 1, .36, 1) .3s; }
@keyframes fx-absorb { 0%, 100% { scale: 1; filter: none; } 45% { scale: 1.12; filter: brightness(1.15) drop-shadow(0 0 6px rgba(60, 148, 174, .55)); } }

/* ---------- scroll progress under the header ---------- */
.fx-progress { position: fixed; left: 0; top: 0; z-index: 101; width: 100%; height: 2px; pointer-events: none; transform-origin: 0 50%; }
.fx-progress::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #7FA7B3, #17556B 45%, #3C94AE 70%, #E9C98A); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }

/* ---------- liquid text: the sea flows through the letters ---------- */
.fx-liquid { background: linear-gradient(100deg, #0F3B4C 0%, #17556B 18%, #3C94AE 32%, #17556B 44%, #0F3B4C 60%, #2B8A9C 80%, #0F3B4C 100%) 0 0 / 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; animation: fx-flow 9s linear infinite; }
.fx-liquid--light { background-image: linear-gradient(100deg, #9CC3CF 0%, #E6F2F5 16%, #FFFFFF 28%, #F1D9A8 40%, #9CC3CF 58%, #E6F2F5 78%, #9CC3CF 100%); }
@keyframes fx-flow { to { background-position: 183.33% 0; } }

/* ---------- cards tilt towards the pointer; a light sweeps over the packshots ---------- */
.fx-tilt { transform-style: preserve-3d; will-change: transform; }
.pcard-img::after, .col-img::after, .serie-img::after, .fx-sheen::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .55) 48%, transparent 61%);
  transform: translateX(-102%); transition: transform 1.1s cubic-bezier(.22, 1, .36, 1);
}
.serie-img { overflow: hidden; }
.pcard:hover .pcard-img::after, .col:hover .col-img::after, .serie:hover .serie-img::after, .fx-sheen:hover::after { transform: translateX(102%); }

/* ---------- a light runs around a card's edge (twice on arrival, and while hovered) ---------- */
.fx-ring { position: relative; }
.fx-ring::after {
  content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--fx-a), transparent 0 66%, rgba(60, 148, 174, .8) 78%, #E9C98A 84%, rgba(60, 148, 174, .8) 90%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: fx-spin 4.5s linear 2 paused;
}
.fx-go .fx-ring::after { animation-play-state: running; }
.fx-ring:hover::after { animation: fx-spin 3.6s linear infinite; }
@keyframes fx-spin { to { --fx-a: 360deg; } }

/* ---------- endless marquee ---------- */
.fx-marquee { display: flex; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.fx-marquee-track { display: flex; flex: none; align-items: center; animation: fx-marq var(--dur, 40s) linear infinite; }
.fx-marquee.is-rev .fx-marquee-track { animation-direction: reverse; }
.fx-marquee:hover .fx-marquee-track { animation-play-state: paused; }
@keyframes fx-marq { to { transform: translateX(-50%); } }

/* ---------- section headings: the eyebrow line draws, the title rises out of a mask ---------- */
.fx-line { display: inline-flex; align-items: center; gap: 14px; }
.fx-line::before { content: ""; width: 30px; height: 1px; background: currentColor; transform-origin: 100% 50%; }
.js [data-fx] .fx-line::before { transform: scaleX(0); transition: transform 1s cubic-bezier(.22, 1, .36, 1) .2s; }
.js [data-fx].fx-in .fx-line::before { transform: scaleX(1); }
.js [data-fx] .fx-rise { clip-path: inset(0 0 100% 0); transform: translateY(28px); transition: clip-path 1.1s cubic-bezier(.22, 1, .36, 1) .1s, transform 1.1s cubic-bezier(.22, 1, .36, 1) .1s; }
.js [data-fx].fx-in .fx-rise { clip-path: inset(-14% -6% -26% -6%); transform: none; }
.js [data-fx] .fx-up { opacity: 0; transform: translateY(22px); transition: opacity .9s ease .35s, transform 1s cubic-bezier(.22, 1, .36, 1) .35s; }
.js [data-fx].fx-in .fx-up { opacity: 1; transform: none; }

/* ---------- photos behind dark bands drift slower than the page ---------- */
@supports (animation-timeline: view()) {
  .fx-parallax { scale: 1.18; animation: fx-par linear both; animation-timeline: view(); animation-range: cover; }
  @keyframes fx-par { from { translate: 0 -7%; } to { translate: 0 7%; } }
}

/* ---------- home hero photo: slow Ken Burns (scale composes with the scroll parallax transform) ---------- */
.hero-photo img { animation: fx-kb 26s ease-out both; }
@keyframes fx-kb { from { scale: 1.1; } to { scale: 1; } }

/* ---------- footer: the name, very large, with the sea flowing through it ---------- */
.foot-mark { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) 6px; }
.foot-mark i { display: block; width: 100%; aspect-ratio: 744 / 260; -webkit-mask: url(/assets/img/logo-wordmark-light.png) 0 0 / 100% 100% no-repeat; mask: url(/assets/img/logo-wordmark-light.png) 0 0 / 100% 100% no-repeat;
  background: linear-gradient(90deg, rgba(15, 59, 76, .06), rgba(23, 85, 107, .2) 22%, rgba(127, 167, 179, .09) 44%, rgba(15, 59, 76, .06) 60%, rgba(60, 148, 174, .18) 80%, rgba(15, 59, 76, .06)) 0 0 / 200% 100%;
  animation: fx-flow 16s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  .fx-liquid, .fx-glint, .fx-marquee-track, .fx-ring::after, .foot-mark i, .hero-photo img { animation: none !important; }
  .fx-parallax { animation: none !important; scale: none; }
  .header .logo-word { transition: none; }
}
.reduced .fx-liquid, .reduced .fx-glint, .reduced .fx-marquee-track, .reduced .foot-mark i { animation: none; }

/* ---------- site search overlay ---------- */
.srch { position: fixed; inset: 0; z-index: 300; display: none; }
.srch.is-open { display: block; }
html.srch-open { overflow: hidden; }
.srch-veil { position: absolute; inset: 0; background: rgba(8,18,28,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: srch-fade .3s ease both; }
.srch-panel { position: relative; width: min(680px, calc(100% - 32px)); margin: 10vh auto 0; border-radius: 24px; background: #fff; box-shadow: 0 40px 100px -30px rgba(0,0,0,.6); overflow: hidden; animation: srch-in .45s cubic-bezier(.22,1,.36,1) both; }
@keyframes srch-fade { from { opacity: 0; } } @keyframes srch-in { from { opacity: 0; transform: translateY(-16px) scale(.98); } }
.srch-field { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 22px; border-bottom: 1px solid var(--line); }
.srch-field svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--sea); stroke-width: 2; stroke-linecap: round; }
.srch-field input { flex: 1; min-width: 0; padding: 14px 0; border: 0; outline: 0; font: 400 18px/1.2 var(--sans); color: var(--ink); background: none; }
.srch-x { padding: 8px 10px; border-radius: 8px; background: var(--mist); font: 600 11px/1 var(--sans); color: var(--muted); }
.srch-list { max-height: min(62vh, 560px); overflow-y: auto; padding: 8px 10px 14px; }
.srch-h { margin: 12px 12px 6px; font: 600 10.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.srch-it { display: flex; align-items: center; gap: 14px; padding: 8px 12px; border-radius: 14px; color: var(--ink); transition: background .2s; }
.srch-it:hover, .srch-it.is-on { background: var(--mist); }
.srch-it img { width: 52px; height: 52px; flex: none; object-fit: contain; border-radius: 10px; background: var(--mist); mix-blend-mode: multiply; }
.srch-it span { flex: 1; min-width: 0; } .srch-it b { display: block; font: 400 16px/1.25 var(--serif); }
.srch-it small { display: block; font-size: 12px; color: var(--muted); } .srch-it em { font-style: normal; font-weight: 600; font-size: 14px; white-space: nowrap; }
.srch-pg i { width: 52px; height: 52px; flex: none; border-radius: 10px; background: linear-gradient(160deg, #17556B, #0B1C25); position: relative; }
.srch-pg i::after { content: ""; position: absolute; inset: 30%; background: url(/assets/img/logo-drop.webp) center / contain no-repeat; }
.srch-empty { padding: 26px 14px; color: var(--muted); text-align: center; }

/* elements that are sticky keep it when they also carry the light ring */
.summary.fx-ring { position: sticky; }
@media (max-width: 1000px) { .summary.fx-ring { position: relative; } }
