@font-face {
  font-family: "Commissioner";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/commissioner-v24-latin.woff2") format("woff2");
}

@property --intro { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --pull { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --cover { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --haze { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --swap { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --part { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --settle { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --caption { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --drift { syntax: "<number>"; inherits: false; initial-value: 0; }

:root {
  --evening-sky: #9DB2C0;
  --horizon-apricot: #F1B97A;
  --low-sun: #FFE2B0;
  --limestone: #D9CBB6;
  --dusk-sea: #23414F;
  --harbour-ink: #1F2A30;
  --error-coral: #FFB4A2;
  --brand-teal: #0F4C5C;
  --brand-offwhite: #F4F1EA;
  --font: "Commissioner", system-ui, -apple-system, "Segoe UI", sans-serif;
  --edge: clamp(1.25rem, 4vw, 3.5rem);
}

/*
 * Backgrounds that use var(), and gradients on elements that read the animated custom properties, are rebuilt
 * by Chrome on every frame and repainted. Images are literal URLs, and every gradient sits on a pseudo-element
 * that reads no animated property, so all hero layers are painted once and only moved or faded afterwards.
 */
.hero__city,
.hero__word-fill::before {
  background-image: url("/assets/img/hero/limassol-aerial.jpg");
}

[data-variant="collage"] .hero__word-fill::before {
  background-image: url("/assets/img/hero/limassol-collage.jpg");
}

[data-variant="collage"] .hero__city::before {
  background-image:
    url("/assets/img/hero/limassol-collage.jpg"),
    radial-gradient(48vw 42svh at 6vw calc(10vh + 56svh), rgba(255, 226, 176, 0.85), rgba(255, 226, 176, 0) 70%),
    linear-gradient(180deg, #E4ECF0 10vh, #F3F1EC calc(10vh + 55svh), #FBEAD3 100%);
}

@supports (background-image: image-set(url("/x.avif") type("image/avif"))) {
  .hero__city,
  .hero__word-fill::before {
    background-image: image-set(url("/assets/img/hero/limassol-aerial.avif") type("image/avif"), url("/assets/img/hero/limassol-aerial.jpg") type("image/jpeg"));
  }

  [data-variant="collage"] .hero__word-fill::before {
    background-image: image-set(url("/assets/img/hero/limassol-collage.avif") type("image/avif"), url("/assets/img/hero/limassol-collage.jpg") type("image/jpeg"));
  }

  [data-variant="collage"] .hero__city::before {
    background-image:
      image-set(url("/assets/img/hero/limassol-collage.avif") type("image/avif"), url("/assets/img/hero/limassol-collage.jpg") type("image/jpeg")),
      radial-gradient(48vw 42svh at 6vw calc(10vh + 56svh), rgba(255, 226, 176, 0.85), rgba(255, 226, 176, 0) 70%),
      linear-gradient(180deg, #E4ECF0 10vh, #F3F1EC calc(10vh + 55svh), #FBEAD3 100%);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--harbour-ink);
  background: var(--dusk-sea);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--low-sun);
  outline-offset: 3px;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: clamp(1.25rem, 3vw, 2.25rem) var(--edge);
}

.site-header__mark {
  display: inline-block;
  color: var(--brand-offwhite);
}

.site-header__mark:focus-visible {
  outline-offset: 4px;
  border-radius: 2px;
  box-shadow: 0 0 0 4px var(--harbour-ink);
}

.site-header__logo {
  display: block;
  width: auto;
  height: clamp(1.75rem, 2.4vw, 2.25rem);
  aspect-ratio: 675.12 / 150;
}

.hero {
  position: relative;
  height: 320vh;
}

.hero__stage {
  --part-shift: 48%;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.hero__city,
.hero__word,
.hero__cloud,
.hero__haze,
.hero__status,
.hero__caption {
  --intro: 0;
  --pull: 0;
  --cover: 0;
  --haze: 0;
  --swap: 0;
  --part: 0;
  --settle: 0;
  --caption: 0;
  --drift: 0;
}

.hero__sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 45% at 6% 70%, rgba(255, 226, 176, 0.95), rgba(255, 226, 176, 0) 72%),
    linear-gradient(180deg, #9DB2C0 0%, #C4C4BC 40%, #F1B97A 78%, #F6CC98 100%);
}

.hero__city {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-position: 50% 60%;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(calc(1.12 - 0.12 * var(--pull)));
  transform-origin: 50% 60%;
  opacity: calc(1 - var(--swap));
  will-change: transform, opacity;
}

.hero__city::before,
.hero__city::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
}

.hero__city::before {
  top: 0;
  height: 30%;
  background-image: linear-gradient(to bottom, rgba(31, 42, 48, 0.42), rgba(31, 42, 48, 0));
}

.hero__city::after {
  bottom: 0;
  height: 42%;
  background-image: linear-gradient(to top, rgba(31, 42, 48, 0.72), rgba(31, 42, 48, 0));
}

.hero__title {
  position: absolute;
  inset: 0;
  margin: 0;
  font: inherit;
}

.hero__word {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: var(--swap);
  transform: scale(calc(1.16 - 0.16 * var(--settle)));
  will-change: transform, opacity;
}

/* Filter on an uncomposited child: painted once, instead of re-blurred by the compositor every frame. */
.hero__word-fill {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-bottom: 6vh;
  font-size: clamp(4.5rem, 19vw, 22rem);
  color: transparent;
  filter: drop-shadow(0 0.04em 0.1em rgba(31, 42, 48, 0.3));
}

.hero__word-fill::before {
  content: "";
  position: absolute;
  inset: 0;
  background-position: 64% 100%;
  background-size: max(150vw, 267vh) auto;
  background-repeat: no-repeat;
  -webkit-mask: url("/assets/img/brand/logo-mask-horizontal.svg") 50% calc(50% - 3vh) / min(88vw, 180svh, 100rem) auto no-repeat;
  mask: url("/assets/img/brand/logo-mask-horizontal.svg") 50% calc(50% - 3vh) / min(88vw, 180svh, 100rem) auto no-repeat;
}

.hero__cloud {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: max(120vw, 150vh);
  height: auto;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

.hero__cloud--left {
  --reach: 95%;
  left: 0;
  transform-origin: 100% 50%;
  transform:
    translate3d(calc(-100% + var(--cover) * var(--reach) - var(--part) * var(--part-shift)), calc(-50% + var(--drift) * 8% + var(--part) * 14%), 0)
    scale(calc(1 + var(--drift) * 0.2));
}

.hero__cloud--right {
  --reach: 80%;
  right: 0;
  transform-origin: 0% 50%;
  transform:
    translate3d(calc(100% - var(--cover) * var(--reach) + var(--part) * var(--part-shift)), calc(-50% + var(--drift) * 5% + var(--part) * 12%), 0)
    scale(calc(1 + var(--drift) * 0.2));
}

.hero__haze {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: var(--haze);
  pointer-events: none;
  will-change: opacity;
}

.hero__haze::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(120% 90% at 30% 55%, #FFF4E4 0%, #F8E0BF 55%, #EDC9A0 100%);
}

.hero__status {
  position: absolute;
  left: var(--edge);
  bottom: clamp(1.5rem, 5vh, 3rem);
  z-index: 5;
  margin: 0;
  font-weight: 500;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  letter-spacing: -0.01em;
  color: #fff;
  opacity: calc(1 - var(--intro));
  will-change: opacity;
}

.hero__caption {
  position: absolute;
  left: var(--edge);
  right: var(--edge);
  top: calc(50% - 3vh + min(9.78vw, 20svh, 11.1rem) + 1.5rem);
  z-index: 5;
  margin: 0;
  font-weight: 500;
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  text-align: center;
  color: var(--harbour-ink);
  opacity: var(--caption);
  transform: translateY(calc((1 - var(--caption)) * 0.75rem));
  will-change: transform, opacity;
}

.notify {
  padding: clamp(4.5rem, 11vw, 8.5rem) 1.5rem clamp(3.5rem, 8vw, 6rem);
  color: var(--limestone);
  background: linear-gradient(180deg, #2C5263 0%, var(--dusk-sea) 45%);
}

.notify__inner {
  max-width: 34rem;
  margin: 0 auto;
}

.notify__title {
  margin: 0 0 2rem;
  font-weight: 600;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--low-sun);
}

.notify__label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.notify__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.notify__input {
  flex: 1 1 16rem;
  min-width: 0;
  min-height: 3.25rem;
  padding: 0 1rem;
  font: inherit;
  font-size: 1.0625rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(217, 203, 182, 0.75);
  border-radius: 4px;
}

.notify__input::placeholder {
  color: rgba(217, 203, 182, 0.9);
  opacity: 1;
}

.notify__input:focus-visible {
  outline-offset: 2px;
  border-color: transparent;
}

.notify__input[aria-invalid="true"] {
  border-color: var(--error-coral);
}

.notify__button {
  flex: 0 0 auto;
  min-height: 3.25rem;
  padding: 0 1.5rem;
  font: inherit;
  font-weight: 600;
  color: var(--harbour-ink);
  background: var(--horizon-apricot);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.notify__button:hover {
  background: var(--low-sun);
}

.notify__error {
  margin: 0.75rem 0 0;
  font-weight: 500;
  color: var(--error-coral);
}

.notify__error:empty {
  margin: 0;
}

.notify__consent {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.notify__consent a {
  text-decoration-color: var(--horizon-apricot);
  text-underline-offset: 0.2em;
}

.notify__done {
  margin: 0;
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--low-sun);
}

.notify__done:focus {
  outline: none;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
  padding: 2rem 1.5rem 2.5rem;
  font-size: 0.875rem;
  color: var(--limestone);
  background: var(--dusk-sea);
}

.site-footer__item {
  margin: 0;
  text-underline-offset: 0.2em;
}

.no-js .hero {
  height: 100vh;
}

[data-variant="collage"] .site-header__mark {
  color: var(--brand-teal);
}

[data-variant="collage"] .hero__city {
  background-image: none;
  transform: translateY(calc((1 - var(--pull)) * 5vh)) scale(calc(0.97 + 0.06 * var(--pull)));
  transform-origin: 50% 100%;
}

/* Sky painted into the collage layer (multiply done once) and oversized so its moves never uncover the stage. */
[data-variant="collage"] .hero__city::before {
  inset: -10vh -3vw 0;
  height: auto;
  background-position: 50% calc(100% - 3vh), 0 0, 0 0;
  background-size: min(92vw, 128vh) auto, 100% 100%, 100% 100%;
  background-repeat: no-repeat;
  background-blend-mode: multiply, normal, normal;
}

[data-variant="collage"] .hero__city::after {
  display: none;
}

[data-variant="collage"] .hero__status {
  left: var(--edge);
  right: var(--edge);
  top: clamp(4.5rem, 11vh, 7.5rem);
  bottom: auto;
  font-weight: 800;
  font-size: clamp(2.25rem, 5.4vw, 5rem);
  line-height: 1;
  letter-spacing: -0.035em;
  text-align: center;
  color: var(--harbour-ink);
}

[data-variant="collage"] .hero__word-fill::before {
  background-position: 50% 90%;
  background-color: #EDB27A;
  background-blend-mode: multiply;
}

@media (max-width: 640px) {
  .hero {
    height: 240vh;
  }

  .hero__stage {
    --part-shift: 78%;
  }

  .hero__city {
    background-position: 64% 60%;
  }

  [data-variant="collage"] .hero__city::before {
    background-size: 122vw auto, 100% 100%, 100% 100%;
    background-position: 50% calc(10vh + 62svh - 42.57vw), 0 0, 0 0;
  }

  [data-variant="collage"] .hero__status {
    top: clamp(5rem, 18vh, 9rem);
    font-size: 11vw;
  }
}

@media (max-aspect-ratio: 4/5) {
  .hero__word-fill::before {
    -webkit-mask-image: url("/assets/img/brand/logo-mask-stacked.svg");
    mask-image: url("/assets/img/brand/logo-mask-stacked.svg");
    -webkit-mask-size: min(80vw, 77.5svh) auto;
    mask-size: min(80vw, 77.5svh) auto;
  }

  .hero__caption {
    top: calc(50% - 3vh + min(28.4vw, 27.5svh) + 1.5rem);
  }
}

@media (max-aspect-ratio: 4/5) and (prefers-reduced-motion: no-preference) {
  .notify {
    position: relative;
    z-index: 1;
    margin-top: -24svh;
  }

  .no-js .notify {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero {
    height: 100vh;
    height: 100svh;
  }

  .hero__stage {
    position: relative;
  }
}

.notify__button[aria-disabled="true"] {
  cursor: progress;
}

.notify__turnstile {
  margin-top: 0.75rem;
}

.notify__turnstile:empty {
  margin-top: 0;
}

.no-js .notify__form {
  display: none;
}

.notify__noscript {
  margin: 0;
}

.subpage-header {
  padding: clamp(1.25rem, 3vw, 2.25rem) var(--edge) 0;
}

.subpage-header__logo {
  display: inline-block;
  vertical-align: top;
}

.subpage-header__logo img {
  display: block;
  width: auto;
  height: 2.25rem;
}

.subpage {
  padding: clamp(3rem, 8vw, 5.5rem) 1.5rem clamp(3.5rem, 8vw, 6rem);
  color: var(--limestone);
}

.subpage__inner {
  max-width: 40rem;
  margin: 0 auto;
}

.subpage__title {
  margin: 0 0 0.75rem;
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--low-sun);
}

.subpage h2 {
  margin: 2.5rem 0 0.75rem;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--low-sun);
}

.subpage p,
.subpage ul {
  margin: 0 0 1rem;
}

.subpage ul {
  padding-left: 1.25rem;
}

.subpage li + li {
  margin-top: 0.5rem;
}

.subpage a {
  text-decoration-color: var(--horizon-apricot);
  text-underline-offset: 0.2em;
}

.subpage__meta {
  font-size: 0.875rem;
}
