/*
 * Giarda entrance inscription.
 * Live font outlines remain crisp on 8K displays and at browser zoom.
 * Load after premium-entrance.css; keep the semantic h2 and its two spans.
 */
.giarda-studio.gs-premium-enabled .gs-premium-welcome h2.gs-premium-motto {
  position: relative;
  isolation: isolate;
  overflow: visible;
  font-family: "Cinzel", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-size: clamp(25px, 2.6vw, 34px);
  font-weight: 700;
  font-style: normal;
  font-synthesis: none;
  line-height: 1.3;
  letter-spacing: .045em;
  text-transform: uppercase;
  text-wrap: balance;
  margin: 0 auto 17px;
  max-width: 100%;
  color: #08090b;
  -webkit-text-fill-color: #08090b;
  -webkit-text-stroke: .85px #f2d486;
  paint-order: stroke fill;
  /* Small edge highlights retain the shape; the wider shadows make the aura. */
  text-shadow:
    0 -.7px 0 #fff5ce,
    0 1px 0 #916319,
    0 0 2px #fff6d9,
    0 0 8px rgba(255, 231, 151, .9),
    0 0 22px rgba(255, 209, 91, .65),
    0 0 48px rgba(255, 192, 61, .4),
    0 3px 5px rgba(0, 0, 0, .65);
  animation: gs-motto-luminous-edge 10s ease-in-out infinite;
}

.giarda-studio.gs-premium-enabled .gs-premium-motto > span {
  display: block;
}

.giarda-studio.gs-premium-enabled .gs-premium-motto > span + span {
  margin-top: .12em;
}

/* A warm halo behind the type, with a white-gold centre and a soft falloff. */
.giarda-studio.gs-premium-enabled .gs-premium-welcome h2.gs-premium-motto::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: -.7em -1.1em;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 47%, rgba(255, 248, 213, .43) 0%, rgba(255, 229, 150, .24) 34%, rgba(242, 179, 54, .12) 57%, transparent 74%);
  filter: blur(.28em);
  opacity: .9;
  animation: gs-motto-luminous-aura 10s ease-in-out infinite;
}

/* Font outlines, not a bitmap: the inscription grows with very large screens. */
@media (min-width: 2560px) {
  .giarda-studio.gs-premium-enabled .gs-premium-welcome {
    width: min(64vw, 1600px);
    max-width: calc(100% - 64px);
  }

  .giarda-studio.gs-premium-enabled .gs-premium-welcome h2.gs-premium-motto {
    font-size: clamp(38px, 1.1vw, 84px);
    -webkit-text-stroke-width: clamp(.9px, .018vw, 1.4px);
  }
}

@media (max-width: 600px) {
  .giarda-studio.gs-premium-enabled .gs-premium-welcome h2.gs-premium-motto {
    font-size: clamp(22px, 4.5vw, 27px);
    line-height: 1.34;
    letter-spacing: .035em;
    margin-bottom: 16px;
    -webkit-text-stroke-width: .75px;
  }

  .giarda-studio.gs-premium-enabled .gs-premium-welcome h2.gs-premium-motto::before {
    inset-inline: -.3em;
  }
}

/* A slow change in warmth, never a flash or an opacity change of the letters. */
@keyframes gs-motto-luminous-edge {
  0%, 100% {
    -webkit-text-stroke-color: #f2d486;
    text-shadow: 0 -.7px 0 #fff5ce, 0 1px 0 #916319, 0 0 2px #fff6d9, 0 0 8px rgba(255, 231, 151, .9), 0 0 22px rgba(255, 209, 91, .65), 0 0 48px rgba(255, 192, 61, .4), 0 3px 5px rgba(0, 0, 0, .65);
  }
  50% {
    -webkit-text-stroke-color: #fff1bd;
    text-shadow: 0 -.7px 0 #fffbed, 0 1px 0 #a97520, 0 0 3px #fff9e8, 0 0 11px rgba(255, 239, 183, .95), 0 0 28px rgba(255, 218, 116, .75), 0 0 58px rgba(255, 197, 72, .45), 0 3px 5px rgba(0, 0, 0, .65);
  }
}

@keyframes gs-motto-luminous-aura {
  0%, 100% { opacity: .8; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .giarda-studio.gs-premium-enabled .gs-premium-welcome h2.gs-premium-motto,
  .giarda-studio.gs-premium-enabled .gs-premium-welcome h2.gs-premium-motto::before {
    animation: none;
  }
}

@media (forced-colors: active) {
  .giarda-studio.gs-premium-enabled .gs-premium-welcome h2.gs-premium-motto {
    color: CanvasText;
    -webkit-text-fill-color: CanvasText;
    -webkit-text-stroke: 0;
    text-shadow: none;
    animation: none;
  }

  .giarda-studio.gs-premium-enabled .gs-premium-welcome h2.gs-premium-motto::before {
    display: none;
  }
}
