@font-face {
  font-family: "Marcellus";
  src: url("../fonts/marcellus-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Lumark Sans";
  src: url("../fonts/lumark-sans.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy: #091a39;
  --navy-soft: #29364d;
  --ivory: #f7f3ea;
  --brass: #a77a32;
  --page-x: clamp(1.35rem, 5vw, 5.75rem);
  --page-y: clamp(1.35rem, 4vw, 3.75rem);
  --desktop-hero-image: url("../images/erbil-desktop.webp");
  --mobile-hero-image: url("../images/erbil-mobile.webp");
  --logo-filter: none;
}

:root[data-theme="night"] {
  color-scheme: dark;
  --navy: #f4efe5;
  --navy-soft: #d0c8bb;
  --ivory: #071426;
  --brass: #d0a65f;
  --desktop-hero-image: url("../images/erbil-desktop-night.webp");
  --mobile-hero-image: url("../images/erbil-mobile-night.webp");
  --logo-filter: brightness(0) invert(96%) sepia(8%) saturate(380%) hue-rotate(345deg)
    brightness(103%) contrast(91%);
}

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

html {
  min-width: 20rem;
  background: var(--ivory);
}

body {
  margin: 0;
  min-width: 20rem;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--navy);
  background: var(--ivory);
  font-family: "Lumark Sans", Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.coming-soon {
  --pointer-x: 72vw;
  --pointer-y: 42vh;
  --background-shift-x: 0px;
  --background-shift-y: 0px;
  --reflection-opacity: 0.28;

  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--page-y) var(--page-x);
  overflow: hidden;
}

.coming-soon::before {
  position: absolute;
  z-index: -3;
  inset: 0;
  background-image: var(--desktop-hero-image);
  background-position: center;
  background-size: cover;
  filter: saturate(0.78) contrast(1.02);
  transform: scale(1.035) translate3d(var(--background-shift-x), var(--background-shift-y), 0);
  transform-origin: center;
  will-change: transform;
  content: "";
}

.coming-soon::after {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(
      to top right,
      rgb(247 243 234 / 98%) 0%,
      rgb(247 243 234 / 94%) 18%,
      rgb(247 243 234 / 72%) 31%,
      rgb(247 243 234 / 38%) 45%,
      rgb(247 243 234 / 12%) 58%,
      transparent 72%
    ),
    linear-gradient(180deg, rgb(247 243 234 / 18%), transparent 34%, rgb(247 243 234 / 10%));
  content: "";
  pointer-events: none;
}

:root[data-theme="night"] .coming-soon::after {
  background:
    linear-gradient(
      to top right,
      rgb(7 20 38 / 98%) 0%,
      rgb(7 20 38 / 94%) 18%,
      rgb(7 20 38 / 72%) 31%,
      rgb(7 20 38 / 38%) 45%,
      rgb(7 20 38 / 12%) 58%,
      transparent 72%
    ),
    linear-gradient(180deg, rgb(7 20 38 / 14%), transparent 34%, rgb(7 20 38 / 20%));
}

.coming-soon__reflection {
  position: absolute;
  z-index: -1;
  inset: 0;
  mix-blend-mode: soft-light;
  opacity: var(--reflection-opacity);
  -webkit-mask-image: linear-gradient(90deg, transparent 22%, rgb(0 0 0 / 22%) 43%, black 62%);
  mask-image: linear-gradient(90deg, transparent 22%, rgb(0 0 0 / 22%) 43%, black 62%);
  pointer-events: none;
  transition: opacity 420ms ease;
  will-change: opacity;
}

.coming-soon__reflection::before {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(30rem, 54vw, 56rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgb(255 250 231 / 36%) 0%,
    rgb(184 137 58 / 13%) 27%,
    rgb(9 26 57 / 4%) 46%,
    transparent 70%
  );
  transform: translate3d(calc(var(--pointer-x) - 50%), calc(var(--pointer-y) - 50%), 0);
  will-change: transform;
  content: "";
}

.coming-soon__mobile-visual {
  display: none;
}

.coming-soon__header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
}

.coming-soon__theme-toggle {
  position: absolute;
  z-index: 4;
  top: var(--page-y);
  right: var(--page-x);
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  place-items: center;
  color: var(--navy);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 220ms ease, transform 220ms ease;
  view-transition-name: theme-toggle;
}

.coming-soon__theme-toggle:hover {
  color: var(--brass);
  transform: translateY(-1px);
}

.coming-soon__theme-toggle:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 0.3rem;
}

.coming-soon__theme-icon {
  grid-area: 1 / 1;
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.coming-soon__theme-icon--moon {
  fill: currentColor;
  stroke: none;
}

.coming-soon__theme-icon--sun {
  opacity: 0;
  transform: scale(0.65) rotate(-24deg);
}

:root[data-theme="night"] .coming-soon__theme-icon--moon {
  opacity: 0;
  transform: scale(0.65) rotate(24deg);
}

:root[data-theme="night"] .coming-soon__theme-icon--sun {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.coming-soon__brand {
  display: block;
  width: fit-content;
  color: var(--navy);
  text-decoration: none;
}

.coming-soon__brand:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--brass);
  outline-offset: 0.4rem;
}

.coming-soon__brand-wordmark {
  display: block;
  width: clamp(calc(4.25rem + 10px), calc(7vw + 10px), calc(5.5rem + 10px));
  height: auto;
  aspect-ratio: 3505.38 / 1000;
  filter: var(--logo-filter);
}

.coming-soon__eyebrow {
  margin: 0;
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.2em;
  line-height: 1.5;
  text-transform: uppercase;
}

.coming-soon__content {
  align-self: end;
  width: min(35rem, 43vw);
  padding: clamp(2rem, 5vh, 4rem) 0 0;
}

.coming-soon__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--brass);
}

.coming-soon__eyebrow::before {
  width: 1.3rem;
  height: 1px;
  background: currentColor;
  content: "";
}

.coming-soon__title {
  max-width: none;
  margin: 1.3rem 0 34px;
  font-family: "Marcellus", Georgia, serif;
  font-size: clamp(2.9rem, 5vw, 4.75rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.94;
  text-wrap: balance;
}

.coming-soon__title-line {
  display: block;
}

.coming-soon__title-word {
  display: inline-block;
  overflow: hidden;
  padding-top: 0.06em;
  padding-bottom: 0.2em;
  margin-top: -0.06em;
  margin-bottom: -0.2em;
  vertical-align: bottom;
}

.coming-soon__title-word-inner {
  display: block;
}

.coming-soon__title-accent {
  color: var(--brass);
}

.coming-soon__intro {
  max-width: 33rem;
  margin: 0;
  color: var(--navy-soft);
  font-size: clamp(0.88rem, 1.1vw, 1rem);
  font-weight: 420;
  line-height: 1.8;
  text-wrap: pretty;
}

.coming-soon__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin-top: 44px;
  font-style: normal;
}

.coming-soon__contact a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.coming-soon__contact a::after {
  position: absolute;
  right: 0;
  bottom: 0.35rem;
  left: 0;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0.22);
  transform-origin: left;
  transition: transform 220ms ease;
  content: "";
}

.coming-soon__contact a:hover::after,
.coming-soon__contact a:focus-visible::after {
  transform: scaleX(1);
}

.coming-soon__contact a:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 0.35rem;
}

@media (max-width: 62rem) {
  .coming-soon::before {
    background-position: 58% center;
  }

  .coming-soon::after {
    background:
      linear-gradient(
        to top right,
        rgb(247 243 234 / 98%) 0%,
        rgb(247 243 234 / 94%) 20%,
        rgb(247 243 234 / 78%) 34%,
        rgb(247 243 234 / 44%) 50%,
        rgb(247 243 234 / 16%) 66%,
        transparent 82%
      ),
      linear-gradient(180deg, rgb(247 243 234 / 20%), transparent);
  }

  :root[data-theme="night"] .coming-soon::after {
    background:
      linear-gradient(
        to top right,
        rgb(7 20 38 / 98%) 0%,
        rgb(7 20 38 / 94%) 20%,
        rgb(7 20 38 / 78%) 34%,
        rgb(7 20 38 / 44%) 50%,
        rgb(7 20 38 / 16%) 66%,
        transparent 82%
      ),
      linear-gradient(180deg, rgb(7 20 38 / 18%), transparent);
  }

  .coming-soon__content {
    width: min(32rem, 58vw);
  }
}

@media (max-width: 42rem) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .coming-soon {
    grid-template-rows: minmax(0, 68fr) minmax(0, 32fr);
    height: 100svh;
    height: 100dvh;
    min-height: 0;
    padding: 0;
    overflow: hidden;
  }

  .coming-soon::before {
    display: none;
  }

  .coming-soon::after {
    display: none;
  }

  .coming-soon__reflection {
    display: none;
  }

  .coming-soon__header {
    position: absolute;
    z-index: 2;
    top: max(0.75rem, env(safe-area-inset-top));
    right: 0;
    left: 0;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 1.25rem;
    transform: none;
  }

  .coming-soon__theme-toggle {
    top: max(0.75rem, env(safe-area-inset-top));
    right: max(1rem, env(safe-area-inset-right));
  }

  .coming-soon__brand-wordmark {
    width: 6.5rem;
  }

  .coming-soon__brand {
    display: inline-flex;
    min-width: 2.75rem;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
  }

  .coming-soon__mobile-visual {
    position: relative;
    display: block;
    height: 100%;
    aspect-ratio: auto;
    min-height: 0;
    overflow: hidden;
    background-image: var(--mobile-hero-image);
    background-color: var(--ivory);
    background-position: center 47%;
    background-repeat: no-repeat;
    background-size: cover;
  }

  .coming-soon__mobile-visual::after {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(
        to top,
        var(--ivory) 0,
        rgb(247 243 234 / 96%) 1.5rem,
        rgb(247 243 234 / 80%) 3.25rem,
        rgb(247 243 234 / 52%) 5.25rem,
        rgb(247 243 234 / 24%) 6.75rem,
        transparent 8rem
      ),
      linear-gradient(
        to top right,
        rgb(247 243 234 / 82%) 0,
        rgb(247 243 234 / 64%) 2rem,
        rgb(232 216 187 / 34%) 4rem,
        rgb(196 165 111 / 13%) 6rem,
        transparent 8rem
      );
    content: "";
    pointer-events: none;
  }

  :root[data-theme="night"] .coming-soon__mobile-visual::after {
    background:
      linear-gradient(
        to top,
        var(--ivory) 0,
        rgb(7 20 38 / 96%) 1.5rem,
        rgb(7 20 38 / 80%) 3.25rem,
        rgb(7 20 38 / 52%) 5.25rem,
        rgb(7 20 38 / 24%) 6.75rem,
        transparent 8rem
      ),
      linear-gradient(
        to top right,
        rgb(7 20 38 / 82%) 0,
        rgb(7 20 38 / 64%) 2rem,
        rgb(20 39 65 / 34%) 4rem,
        rgb(208 166 95 / 13%) 6rem,
        transparent 8rem
      );
  }

  .coming-soon__content {
    align-self: stretch;
    display: flex;
    height: 100%;
    min-height: 0;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    padding:
      clamp(0.875rem, 2.5vh, 1.25rem)
      max(1.25rem, env(safe-area-inset-right))
      max(0.875rem, env(safe-area-inset-bottom))
      max(1.25rem, env(safe-area-inset-left));
  }

  .coming-soon__eyebrow {
    gap: 0.625rem;
    font-size: 0.58rem;
  }

  .coming-soon__eyebrow::before {
    width: 1rem;
  }

  .coming-soon__title {
    margin: 0.825rem 0 2.025rem;
    font-size: clamp(2.925rem, 13.05vw, 3.45rem);
    line-height: 1;
  }

  .coming-soon__intro {
    max-width: 29rem;
    font-size: 0.868rem;
    line-height: 1.5;
  }

  .coming-soon__contact {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.25rem;
    margin-top: 1.1rem;
  }

  .coming-soon__contact a {
    font-size: 0.661rem;
    letter-spacing: 0.07em;
  }

}

@media (max-width: 22rem) {
  .coming-soon__contact {
    gap: 0.2rem;
  }
}

@media (max-width: 42rem) and (max-height: 50rem) {
  .coming-soon {
    grid-template-rows: minmax(0, 58fr) minmax(0, 42fr);
  }

  .coming-soon__content {
    padding-top: 0.65rem;
    padding-bottom: max(0.65rem, env(safe-area-inset-bottom));
  }

  .coming-soon__title {
    margin: 0.605rem 0 1.35rem;
    font-size: clamp(2.55rem, 12vw, 3rem);
  }

  .coming-soon__intro {
    font-size: 0.784rem;
    line-height: 1.4;
  }

  .coming-soon__contact {
    margin-top: 0.75rem;
  }
}

@media (max-width: 42rem) and (max-height: 44rem) {
  .coming-soon {
    grid-template-rows: minmax(0, 52fr) minmax(0, 48fr);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .coming-soon__header,
  .coming-soon__content {
    animation: reveal 760ms both cubic-bezier(0.22, 1, 0.36, 1);
  }

  .coming-soon__content {
    animation-delay: 90ms;
  }

  .coming-soon__title-word-inner {
    animation: title-word-wipe 920ms both cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
  }

  .coming-soon__title-word--1 .coming-soon__title-word-inner {
    animation-delay: 160ms;
  }

  .coming-soon__title-word--2 .coming-soon__title-word-inner {
    animation-delay: 270ms;
  }

  .coming-soon__title-word--3 .coming-soon__title-word-inner {
    animation-delay: 390ms;
  }

  .coming-soon__title-word--4 .coming-soon__title-word-inner {
    animation-delay: 500ms;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 560ms;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    mix-blend-mode: normal;
  }

  ::view-transition-old(root) {
    animation-name: theme-view-out;
  }

  ::view-transition-new(root) {
    animation-name: theme-view-in;
  }

  ::view-transition-old(theme-toggle) {
    animation: theme-icon-out 360ms both cubic-bezier(0.22, 1, 0.36, 1);
  }

  ::view-transition-new(theme-toggle) {
    animation: theme-icon-in 440ms 80ms both cubic-bezier(0.22, 1, 0.36, 1);
  }

  @keyframes theme-view-out {
    from {
      opacity: 1;
    }

    to {
      opacity: 0;
    }
  }

  @keyframes theme-view-in {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  @keyframes theme-icon-out {
    to {
      opacity: 0;
      transform: scale(0.68) rotate(24deg);
    }
  }

  @keyframes theme-icon-in {
    from {
      opacity: 0;
      transform: scale(0.68) rotate(-24deg);
    }

    to {
      opacity: 1;
      transform: scale(1) rotate(0deg);
    }
  }

  @keyframes title-word-wipe {
    from {
      opacity: 0;
      transform: translate3d(0, 112%, 0) rotate(0.8deg);
    }

    to {
      opacity: 1;
      transform: translate3d(0, 0, 0) rotate(0deg);
    }
  }

  @keyframes reveal {
    from {
      opacity: 0;
      transform: translateY(0.65rem);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .coming-soon__reflection {
    display: none;
  }

  .coming-soon::before {
    transform: scale(1.02);
    will-change: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .coming-soon__theme-toggle {
    transition: none;
  }
}
