@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

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

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  --ink: #0b2035;
  --ink-soft: #29465f;
  --blue: #249cc5;
  --gold: #b9a070;
  --paper: #faf9f6;
  --portal-x: 50vw;
  --portal-y: 50vh;
  --portal-radius: 0px;
  color-scheme: only light;
  font-synthesis: none;
}

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

html {
  min-width: 320px;
  min-height: 100%;
  overflow: hidden;
  background: var(--paper);
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button {
  font: inherit;
}

.final-scene {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--paper);
}

.intro-running .final-scene {
  opacity: 0;
}

.intro-complete .final-scene {
  opacity: 1;
}

.final-picture {
  position: absolute;
  z-index: -3;
  inset: 0;
  display: block;
  overflow: hidden;
}

.final-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.015);
  transform-origin: 58% 48%;
  backface-visibility: hidden;
  will-change: transform, filter;
}

.intro-complete .final-image {
  animation: ambient-image 22s ease-in-out infinite alternate;
}

.final-overlay,
.final-light {
  position: absolute;
  z-index: -2;
  inset: 0;
  pointer-events: none;
}

.final-overlay {
  background:
    linear-gradient(
      90deg,
      rgba(250, 249, 246, 0.97) 0%,
      rgba(250, 249, 246, 0.89) 23%,
      rgba(250, 249, 246, 0.47) 39%,
      rgba(250, 249, 246, 0.09) 55%,
      rgba(250, 249, 246, 0) 68%
    );
}

.final-light {
  z-index: -1;
  background:
    radial-gradient(
      circle at 23% 50%,
      rgba(255, 255, 255, 0.34) 0%,
      rgba(255, 255, 255, 0) 38%
    );
  opacity: 0.72;
}

.intro-complete .final-light {
  animation: ambient-light 18s ease-in-out infinite alternate;
}

.final-copy {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: clamp(2.75rem, 7vw, 8.5rem);
  width: min(42vw, 46rem);
  transform: translateY(-48%);
}

.eyebrow-row {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.7vw, 2rem);
  margin-bottom: clamp(1.25rem, 1.8vw, 2.15rem);
}

.eyebrow {
  flex: 0 0 auto;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(0.64rem, 0.66vw, 0.78rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow-rule {
  display: block;
  width: clamp(3.25rem, 6vw, 6.5rem);
  height: 1px;
  background:
    linear-gradient(
      90deg,
      rgba(36, 156, 197, 0.9),
      rgba(185, 160, 112, 0.56)
    );
  transform-origin: left center;
}

.coming-soon-title {
  margin: 0;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3.25rem, 5.15vw, 6.35rem);
  font-weight: 500;
  letter-spacing: -0.043em;
  line-height: 0.8;
}

.title-mask {
  display: block;
  overflow: hidden;
  padding: 0.08em 0 0.13em;
}

.title-line {
  display: block;
  white-space: nowrap;
}

.coming-soon-label {
  margin: clamp(1.8rem, 2.7vw, 3.2rem) 0 0;
  color: var(--blue);
  font-size: clamp(0.63rem, 0.66vw, 0.76rem);
  font-weight: 500;
  letter-spacing: 0.42em;
  line-height: 1.4;
  text-transform: uppercase;
}

.intro {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  perspective: 1400px;
  background: #f9faf9;
}

.intro-running .intro {
  display: flex;
}

.ambient-light {
  position: absolute;
  width: 58vmax;
  aspect-ratio: 1.4;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.ambient-light--one {
  top: -26vmax;
  right: -18vmax;
  background: rgba(98, 196, 219, 0.23);
  transform: rotate(-14deg);
}

.ambient-light--two {
  bottom: -28vmax;
  left: -20vmax;
  background: rgba(185, 160, 112, 0.13);
  transform: rotate(18deg);
}

.intro-char {
  transform-origin: 50% 70%;
  will-change: transform, opacity, filter;
}

.intro-camera {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: blur(0);
  will-change: filter;
}

.intro-text-line {
  fill: #0b2035;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3.5rem, 7.15vw, 8.2rem);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.intro-camera .intro-char {
  display: inline;
  transform-box: fill-box;
  transform-origin: center;
}

.intro-camera .portal-char {
  fill: #123b55;
}

.transition-light {
  position: fixed;
  z-index: 25;
  inset: -12%;
  display: none;
  background:
    radial-gradient(
      circle at var(--portal-x) var(--portal-y),
      #ffffff 0%,
      rgba(255, 255, 255, 0.98) 18%,
      rgba(255, 255, 255, 0.78) 42%,
      rgba(255, 255, 255, 0) 72%
    );
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

.intro-running .transition-light {
  display: block;
}

.skip-intro {
  position: fixed;
  z-index: 30;
  top: max(1.1rem, env(safe-area-inset-top));
  right: max(1.15rem, env(safe-area-inset-right));
  display: none;
  min-width: 7.6rem;
  min-height: 2.8rem;
  padding: 0.72rem 0.55rem;
  border: 0;
  background: transparent;
  color: rgba(11, 32, 53, 0.63);
  cursor: pointer;
  font-size: 0.69rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-align: center;
  text-underline-offset: 0.35em;
}

.intro-running .skip-intro {
  display: block;
}

.skip-intro:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(36, 156, 197, 0.78);
}

.skip-intro:focus-visible {
  border-radius: 0.18rem;
  outline: 2px solid rgba(36, 156, 197, 0.9);
  outline-offset: 0.15rem;
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: clamp(1rem, 3vw, 2.2rem);
  background: rgba(11, 32, 53, 0);
  opacity: 0;
  pointer-events: none;
  transition:
    background 0.36s ease,
    opacity 0.36s ease,
    backdrop-filter 0.36s ease;
  backdrop-filter: blur(0);
}

.cookie-consent.is-visible {
  background: rgba(11, 32, 53, 0.24);
  opacity: 1;
  pointer-events: auto;
  backdrop-filter: blur(24px);
}

.cookie-consent-card {
  width: min(42rem, 100%);
  padding: clamp(1.35rem, 3vw, 2.15rem);
  border: 1px solid rgba(11, 32, 53, 0.1);
  border-radius: 0.35rem;
  background: rgba(250, 249, 246, 0.97);
  box-shadow: 0 24px 70px rgba(11, 32, 53, 0.2);
  opacity: 0;
  scale: 0.92;
  translate: 0 2rem;
  transition:
    opacity 0.42s ease,
    scale 0.52s cubic-bezier(0.22, 1, 0.36, 1),
    translate 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

.cookie-consent.is-visible .cookie-consent-card {
  opacity: 1;
  scale: 1;
  translate: 0 0;
}

.cookie-consent-kicker {
  margin: 0 0 0.65rem;
  color: var(--blue);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  line-height: 1.35;
  text-transform: uppercase;
}

.cookie-consent-title {
  margin: 0;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.cookie-consent-description {
  max-width: 36rem;
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(0.72rem, 1vw, 0.84rem);
  line-height: 1.65;
}

.cookie-consent-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.7rem;
  max-width: 20rem;
  margin-top: 1.25rem;
}

.cookie-consent-button {
  min-height: 2.9rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 0.2rem;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.2;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.cookie-consent-button--accept {
  background: var(--ink);
  color: #ffffff;
}

.cookie-consent-button:hover {
  transform: translateY(-1px);
}

.cookie-consent-button--accept:hover {
  background: #173a56;
}

.cookie-consent-button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

@keyframes ambient-image {
  from {
    transform: scale(1.015) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.03) translate3d(-0.12%, -0.08%, 0);
  }
}

@keyframes ambient-light {
  from {
    opacity: 0.68;
  }

  to {
    opacity: 0.75;
  }
}

@media (max-width: 1120px) {
  .final-copy {
    left: clamp(2.4rem, 6vw, 4.5rem);
    width: min(44vw, 34rem);
  }

  .coming-soon-title {
    font-size: clamp(3.05rem, 4.95vw, 4.3rem);
  }
}

@media (max-width: 820px) {
  .final-picture {
    bottom: auto;
    height: 78%;
  }

  .final-image {
    object-position: 64% center;
    transform-origin: 64% 46%;
  }

  .final-overlay {
    background:
      linear-gradient(
        0deg,
        rgba(250, 249, 246, 0.99) 0%,
        rgba(250, 249, 246, 0.94) 24%,
        rgba(250, 249, 246, 0.7) 40%,
        rgba(250, 249, 246, 0.18) 61%,
        rgba(250, 249, 246, 0) 77%
      );
  }

  .final-light {
    background:
      radial-gradient(
        ellipse at 20% 84%,
        rgba(255, 255, 255, 0.5) 0%,
        rgba(255, 255, 255, 0) 54%
      );
  }

  .final-copy {
    top: auto;
    right: clamp(1.5rem, 6vw, 3rem);
    bottom: max(4.2vh, calc(env(safe-area-inset-bottom) + 1.7rem));
    left: clamp(1.5rem, 6vw, 3rem);
    width: auto;
    max-width: 37rem;
    transform: none;
  }

  .cookie-consent {
    padding: 0.75rem;
  }

  .cookie-consent-card {
    padding: 1.25rem;
  }

  .eyebrow-row {
    margin-bottom: clamp(0.75rem, 2vw, 1.2rem);
  }

  .coming-soon-title {
    font-size: clamp(2.8rem, 8.2vw, 4.15rem);
    line-height: 0.78;
  }

  .coming-soon-label {
    margin-top: clamp(1.15rem, 2.8vw, 1.85rem);
  }

}

@media (max-width: 520px) {
  .final-image {
    object-position: 64% 46%;
  }

  .final-overlay {
    background:
      linear-gradient(
        0deg,
        rgba(250, 249, 246, 0.995) 0%,
        rgba(250, 249, 246, 0.96) 25%,
        rgba(250, 249, 246, 0.76) 41%,
        rgba(250, 249, 246, 0.24) 60%,
        rgba(250, 249, 246, 0) 76%
      );
  }

  .final-copy {
    right: 1.35rem;
    bottom: max(1.6rem, calc(env(safe-area-inset-bottom) + 0.8rem));
    left: 1.35rem;
  }

  .eyebrow-row {
    gap: 0.9rem;
    margin-bottom: 0.68rem;
  }

  .eyebrow {
    font-size: 0.58rem;
    letter-spacing: 0.22em;
  }

  .eyebrow-rule {
    width: min(17vw, 4.25rem);
  }

  .coming-soon-title {
    font-size: clamp(2.62rem, 11.7vw, 3.65rem);
    letter-spacing: -0.047em;
    line-height: 0.76;
  }

  .coming-soon-label {
    margin-top: 1.08rem;
    font-size: 0.58rem;
  }

  .skip-intro {
    top: max(0.85rem, env(safe-area-inset-top));
    right: max(0.75rem, env(safe-area-inset-right));
  }
}

@media (max-height: 700px) and (max-width: 820px) {
  .final-copy {
    bottom: max(1rem, env(safe-area-inset-bottom));
  }

  .eyebrow-row {
    margin-bottom: 0.55rem;
  }

  .coming-soon-title {
    font-size: clamp(2.4rem, 8.8vh, 3.35rem);
  }

  .coming-soon-label {
    margin-top: 0.85rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }

  .final-image,
  .final-light {
    animation: none !important;
    filter: none !important;
    transform: none;
  }

  .cookie-consent,
  .cookie-consent-card {
    transition: none;
  }
}
