:root {
  color-scheme: light only;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: light only;
  }
}

@media (forced-colors: active) {
  .headline-subtitle {
    color: rgba(255, 103, 89, 1) !important;
    forced-color-adjust: none;
  }
  .headline-dates {
    color: rgba(115, 17, 0, 1) !important;
    forced-color-adjust: none;
  }
  .headline-note {
    forced-color-adjust: none;
  }
}

@font-face {
  font-family: 'nectarbrands';
  src: url('assets/fonts/nectar-brands.woff2') format('woff2');
  font-weight: normal;
  font-display: block;
  font-style: normal;
}

@font-face {
  font-family: 'FontAwesome';
  src: url('assets/fonts/fontawesome.woff2') format('woff2');
  font-weight: normal;
  font-display: block;
  font-style: normal;
}

body i[class*='nectar-brands'] {
  font-family: 'nectarbrands';
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  font-size: 1.75em;
}

i[class*='fa-'],
span[class*='fa-'] {
  font-family: FontAwesome;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  margin-top: 0;
  font-size: 1.75em;
}

.links {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
  margin-top: 1.55em;
}

@media (max-width: 450px) {
  body i[class*='nectar-brands'] {
    font-size: 1.5em;
  }

  i[class*='fa-'],
  span[class*='fa-'] {
    font-size: 1.5em;
  }
  .links {
    justify-content: center;
    width: fit-content;
  }

  .link {
    margin: 0.4rem;
  }
}

.link {
  margin: 0 0.4rem;
  color: rgba(115, 17, 0, 1);
}

.link a {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  pointer-events: auto;
}

.nectar-brands-discord:before {
  content: '\e90c';
}
.nectar-brands-x-twitter:before {
  content: '\e918';
}
.nectar-brands-bluesky:before {
  content: '\e919';
}
.fa-telegram:before {
  content: '\f2c6';
}
.fa-bullhorn:before {
  content: '\f0a1';
}
.fa-instagram:before {
  content: '\f16d';
}

@font-face {
  font-family: 'Rosseti';
  src: url('assets/fonts/Rosseti.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Plein Regular';
  src: url('assets/fonts/Plein-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Plein Bold';
  src: url('assets/fonts/Plein-Bold.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

body,
html {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  forced-color-adjust: none;
  color-scheme: light only;
}

body {
  background-color: #ffffff;
  justify-content: center;
  align-items: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background: #ffffff;
  transition: opacity 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

.preloader-logo {
  width: min(160px, 40vw);
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

@property --s1 {
  syntax: '<length>';
  inherits: false;
  initial-value: 0px;
}
@property --s2 {
  syntax: '<length>';
  inherits: false;
  initial-value: 0px;
}
@property --s3 {
  syntax: '<length>';
  inherits: false;
  initial-value: 0px;
}
@property --s4 {
  syntax: '<length>';
  inherits: false;
  initial-value: 0px;
}
@property --s5 {
  syntax: '<length>';
  inherits: false;
  initial-value: 0px;
}

@property --veil {
  syntax: '<number>';
  inherits: false;
  initial-value: 0;
}

@keyframes grow1 {
  to {
    --s1: 220vmax;
  }
}
@keyframes grow2 {
  to {
    --s2: 220vmax;
  }
}
@keyframes grow3 {
  to {
    --s3: 220vmax;
  }
}
@keyframes grow4 {
  to {
    --s4: 220vmax;
  }
}
@keyframes grow5 {
  to {
    --s5: 220vmax;
  }
}

.bg {
  position: fixed;
  inset: 0;
  background-image: url('assets/scene/BG_ATT.webp');
  background-size: cover;
  z-index: 3;
  transition: opacity 0.6s ease;
  contain: strict;
  will-change: auto;
  backface-visibility: hidden;
}

.scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 4;
  transition: opacity 0.6s ease;
}

.bg.revealing,
.scene.revealing {
  mask-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3CradialGradient id='a1' cx='50%25' cy='50%25' r='50%25'%3E%3Cstop offset='0%25' stop-color='white' stop-opacity='1'/%3E%3Cstop offset='65%25' stop-color='white' stop-opacity='0.4'/%3E%3Cstop offset='100%25' stop-color='white' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath d='M50 20 C75 20, 90 40, 90 60 C90 85, 65 95, 50 95 C30 95, 10 80, 10 60 C10 35, 25 20, 50 20Z' fill='url(%23a1)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3CradialGradient id='b1' cx='50%25' cy='50%25' r='50%25'%3E%3Cstop offset='0%25' stop-color='white' stop-opacity='1'/%3E%3Cstop offset='70%25' stop-color='white' stop-opacity='0.35'/%3E%3Cstop offset='100%25' stop-color='white' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath d='M50 15 C65 10, 85 20, 88 40 C92 60, 75 80, 55 85 C35 90, 10 75, 12 55 C13 35, 30 18, 50 15Z' fill='url(%23b1)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3CradialGradient id='a1' cx='50%25' cy='50%25' r='50%25'%3E%3Cstop offset='0%25' stop-color='white' stop-opacity='1'/%3E%3Cstop offset='65%25' stop-color='white' stop-opacity='0.4'/%3E%3Cstop offset='100%25' stop-color='white' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath d='M50 20 C75 20, 90 40, 90 60 C90 85, 65 95, 50 95 C30 95, 10 80, 10 60 C10 35, 25 20, 50 20Z' fill='url(%23a1)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3CradialGradient id='b1' cx='50%25' cy='50%25' r='50%25'%3E%3Cstop offset='0%25' stop-color='white' stop-opacity='1'/%3E%3Cstop offset='70%25' stop-color='white' stop-opacity='0.35'/%3E%3Cstop offset='100%25' stop-color='white' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath d='M50 15 C65 10, 85 20, 88 40 C92 60, 75 80, 55 85 C35 90, 10 75, 12 55 C13 35, 30 18, 50 15Z' fill='url(%23b1)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3CradialGradient id='a1' cx='50%25' cy='50%25' r='50%25'%3E%3Cstop offset='0%25' stop-color='white' stop-opacity='1'/%3E%3Cstop offset='65%25' stop-color='white' stop-opacity='0.4'/%3E%3Cstop offset='100%25' stop-color='white' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath d='M50 20 C75 20, 90 40, 90 60 C90 85, 65 95, 50 95 C30 95, 10 80, 10 60 C10 35, 25 20, 50 20Z' fill='url(%23a1)'/%3E%3C/svg%3E");
  mask-size: var(--s1), var(--s2), var(--s3), var(--s4), var(--s5);
  mask-repeat: no-repeat;
  mask-position:
    calc(12vw - var(--s1) / 2) calc(18vh - var(--s1) / 2),
    calc(88vw - var(--s2) / 2) calc(12vh - var(--s2) / 2),
    calc(50vw - var(--s3) / 2) calc(50vh - var(--s3) / 2),
    calc(90vw - var(--s4) / 2) calc(82vh - var(--s4) / 2),
    calc(15vw - var(--s5) / 2) calc(90vh - var(--s5) / 2);
  animation:
    grow1 6.1s cubic-bezier(0.05, 0.52, 0.53, 1) 0.8s forwards,
    grow2 7.6s cubic-bezier(0.05, 0.52, 0.53, 1) 0.9s forwards,
    grow3 6.6s cubic-bezier(0.05, 0.52, 0.53, 1) 0.4s forwards,
    grow4 7.1s cubic-bezier(0.05, 0.52, 0.53, 1) 1.6s forwards,
    grow5 5.6s cubic-bezier(0.05, 0.52, 0.53, 1) 1.1s forwards;
  transition: clip-path 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.revealing * {
  transition: clip-path 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.above-water {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  width: 100%;
  height: 70%;
  overflow: hidden;
}

.above-water .venice {
  transform: translateY(7px);
}

.below-water {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  height: 30%;
  width: 100%;
  overflow: hidden;
  box-shadow: rgba(225, 146, 128, 1) 0px 0px 2px;
  background-color: rgba(225, 146, 128, 0.5);
}

.venice {
  display: block;
  max-width: 60%;
  height: auto;
}

@media (max-aspect-ratio: 1/1) {
  .venice {
    max-width: 80%;
    max-height: 100%;
    width: auto;
  }
}

.reflection {
  transform: scaleY(-1) translateY(7px);
  opacity: 0.35;
  filter: none;
}

.water-active .reflection {
  filter: url(#water);
}

@keyframes ripple-drift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-30px);
  }
}

@keyframes ripple-fade {
  0% {
    opacity: 0;
  }
  25% {
    opacity: 0.5;
  }
  75% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
  }
}

.water-active .light-ripples {
  opacity: 1;
  filter: url(#water);
  animation: ripple-drift 48s linear infinite;
  contain: layout style paint;
  transform: translateZ(0);
}

.reflection,
.light-ripples {
  transition: opacity 2s ease;
  will-change: filter;
}

.water-active .reflection {
  transition: filter 2s ease;
  will-change: filter;
}

.light-ripples {
  opacity: 0;
  transition: opacity 2s ease;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/scene/ripples.webp');
  background-size: 100% auto;
  background-repeat: repeat-y;
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 5%,
    rgba(0, 0, 0, 1) 25%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  pointer-events: none;
  will-change: background-position;
  transform: translateZ(0);
  backface-visibility: hidden;
  filter: none;
  animation: none;
}

@media (max-width: 450px) {
  .light-ripples {
    background-size: 300% 500px;
    animation: ripple-drift 96s linear infinite;
  }

  @keyframes ripple-drift {
    from {
      background-position: 0 0;
    }
    to {
      background-position: 0 500px;
    }
  }
}

@keyframes ripple-drift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 800px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .light-ripples {
    animation: none;
    opacity: 0.4;
  }
}

.watermark-logo {
  position: absolute;
  left: 0;
  top: 25%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: hard-light;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
  transform: none;
  overflow: visible;
}

.headline-block {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 5% 6%;
  box-sizing: border-box;
  pointer-events: none;
  text-align: right;
}

.infos {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.headline-subtitle,
.headline-dates,
.headline-note {
  color: inherit;
  margin: 0;
}

.headline-block img {
  position: relative;
  display: block;
  max-width: 60%;
  max-height: 60%;
  height: auto;
  margin: 0;
  object-fit: contain;
}

.headline-subtitle {
  font-family: 'Rosseti';
  font-weight: normal;
  font-style: italic;
  font-size: clamp(3em, 4vw, 8em);
  color: rgba(255, 103, 89, 1);
  margin-top: 0.45em;
  margin-bottom: 0;
  line-height: 0.7em;
}

.headline-dates {
  font-family: 'Plein Bold';
  font-size: clamp(3.5vh, 4vw, 2rem);
  color: rgba(115, 17, 0, 1);
  line-height: 1.25em;
}

.headline-note {
  font-family: 'Plein Regular';
  font-size: clamp(0.875rem, 2.5vw, 1.125rem);
  font-style: italic;
  margin-top: 1.25rem;
}

@media (max-width: 450px) {
  .watermark-logo {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    mix-blend-mode: hard-light;
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
    transform: none;
    overflow: visible;
  }

  .headline-block {
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 5%;
    height: 100%;
    display: flex;
    margin-top: 5vh;
  }

  .infos {
    align-items: center;
  }

  .headline-block img {
    align-self: center;
    max-width: 85%;
    max-height: 40%;
  }

  .headline-subtitle {
    font-size: clamp(3em, 9vw, 4em);
  }

  .headline-dates {
    font-size: clamp(1.35rem, 5vw, 1.5rem);
  }

  .headline-note {
    font-size: clamp(0.8rem, 4vw, 1rem);
  }
}

.footer-links {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  display: none;
  flex-direction: row;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  padding: 0;
  box-sizing: border-box;
  z-index: 5;
  pointer-events: auto;
  height: auto;
}

.footer-links .link {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.link-reflection {
  transform: scaleY(-1);
  opacity: 0.1;
  pointer-events: none;
}

@media (max-width: 450px) {
  .footer-links {
    display: flex;
    padding: 1rem;
    gap: 1rem;
  }

  .links {
    display: none;
  }

  .link a {
    font-size: 1.2em;
  }

  .above-water {
    height: 65%;
  }

  .below-water {
    height: 35%;
  }

  .link-reflection {
    display: inline-block;
    font-size: 1.75em !important;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .headline-block {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    padding: 3% 5%;
    margin-top: 0;
    pointer-events: none;
  }

  .infos {
    align-items: flex-start;
  }

  .headline-block img.title {
    align-self: flex-start;
    max-width: 50%;
    max-height: 45%;
  }

  .headline-subtitle {
    font-size: clamp(2.5em, 6vh, 3.5em);
    line-height: 0.8em;
    margin-top: 0.3em;
  }

  .headline-dates {
    font-size: clamp(1.25rem, 4vh, 1.4rem);
  }

  .headline-note {
    font-size: clamp(0.7rem, 3vh, 0.9rem);
    margin-top: 0.5rem;
  }

  .links {
    display: flex;
    justify-content: flex-start;
    margin-top: 1em;
    pointer-events: auto;
  }

  .footer-links {
    display: none;
  }
}
