:root {
  color-scheme: dark;
  --ink: #f4f0e8;
  --muted: rgba(233, 238, 240, 0.62);
  --line: rgba(235, 230, 218, 0.24);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  background: #080b0e;
}

body {
  overflow-x: hidden;
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
}

.site-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(1.5rem, 3.35vw, 4rem);
}

.backdrop,
.atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.backdrop {
  z-index: -3;
  background-image: url("assets/turnthecorner-hero.png");
  background-position: center;
  background-size: cover;
  filter: saturate(0.72) contrast(1.08) brightness(0.76);
  transform: scale(1.025);
  animation: settle 2.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.atmosphere {
  z-index: -2;
  background:
    radial-gradient(circle at 50% 46%, rgba(15, 24, 30, 0.02), rgba(3, 6, 8, 0.48) 78%),
    linear-gradient(180deg, rgba(2, 5, 7, 0.64) 0%, transparent 35%, rgba(2, 4, 6, 0.38) 100%);
}

.atmosphere::after {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.17'/%3E%3C/svg%3E");
  content: "";
  mix-blend-mode: soft-light;
  opacity: 0.2;
}

.edge {
  position: absolute;
  left: clamp(1.5rem, 3.35vw, 4rem);
  right: clamp(1.5rem, 3.35vw, 4rem);
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent 24%, transparent 76%, var(--line));
  opacity: 0;
  animation: reveal 1.8s 0.9s ease forwards;
}

.edge::before,
.edge::after {
  position: absolute;
  width: 1px;
  height: 0.7rem;
  background: var(--line);
  content: "";
}

.edge::before {
  left: 0;
}

.edge::after {
  right: 0;
}

.edge--top {
  top: clamp(1.5rem, 3.35vw, 4rem);
}

.edge--top::before,
.edge--top::after {
  top: 0;
}

.edge--bottom {
  bottom: clamp(1.5rem, 3.35vw, 4rem);
}

.edge--bottom::before,
.edge--bottom::after {
  bottom: 0;
}

.identity {
  align-self: center;
  justify-self: center;
  width: 100%;
  margin-top: -5vh;
  text-align: center;
}

.identity h1 {
  margin: 0;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(4.15rem, 9.2vw, 10.5rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.82;
  text-wrap: balance;
  text-shadow: 0 3px 36px rgba(0, 0, 0, 0.42);
  opacity: 0;
  transform: translateY(1rem);
  animation: enter 1.5s 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.identity p {
  margin: clamp(1.15rem, 2vw, 1.8rem) 0 0;
  padding-left: 0.64em;
  font-size: clamp(0.62rem, 0.72vw, 0.78rem);
  font-weight: 400;
  letter-spacing: 0.64em;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0;
  animation: reveal 1.5s 0.9s ease forwards;
}

.locations {
  position: absolute;
  right: clamp(1.5rem, 3.35vw, 4rem);
  bottom: clamp(3.7rem, 7.5vh, 6.5rem);
  left: clamp(1.5rem, 3.35vw, 4rem);
  display: grid;
  grid-template-columns: max-content minmax(5rem, 1fr) max-content;
  align-items: end;
  gap: clamp(1.25rem, 3vw, 3.8rem);
  opacity: 0;
  animation: enter 1.4s 1.05s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.location p {
  margin: 0;
}

.location--east {
  text-align: right;
}

.city {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(1.5rem, 2.2vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
}

.country {
  margin-top: 0.65rem !important;
  color: var(--muted);
  font-size: clamp(0.55rem, 0.62vw, 0.68rem);
  font-weight: 500;
  letter-spacing: 0.3em;
  line-height: 1.4;
  text-transform: uppercase;
}

.connection {
  position: relative;
  height: 1px;
  margin-bottom: 0.47rem;
  background: linear-gradient(90deg, var(--line), rgba(241, 236, 224, 0.55) 50%, var(--line));
}

.connection::before,
.connection::after,
.connection span {
  position: absolute;
  top: 50%;
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
}

.connection::before,
.connection::after {
  width: 4px;
  height: 4px;
  background: #e9e3d8;
  box-shadow: 0 0 14px rgba(235, 228, 214, 0.64);
}

.connection::before {
  left: 0;
}

.connection::after {
  right: 0;
}

.connection span {
  left: 50%;
  width: 1px;
  height: 1px;
  background: #fff;
  box-shadow: 0 0 18px 5px rgba(225, 229, 226, 0.26);
}

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

@keyframes reveal {
  to {
    opacity: 1;
  }
}

@keyframes settle {
  from {
    opacity: 0;
    transform: scale(1.07);
  }

  to {
    opacity: 1;
    transform: scale(1.025);
  }
}

@media (max-width: 680px) {
  .site-shell {
    padding: 1.35rem;
  }

  .backdrop {
    background-position: 48% center;
  }

  .edge {
    right: 1.35rem;
    left: 1.35rem;
  }

  .edge--top {
    top: 1.35rem;
  }

  .edge--bottom {
    bottom: 1.35rem;
  }

  .identity {
    margin-top: -11vh;
  }

  .identity h1 {
    font-size: clamp(3.25rem, 16.5vw, 5.25rem);
    letter-spacing: -0.065em;
  }

  .identity p {
    padding-left: 0.45em;
    font-size: 0.56rem;
    letter-spacing: 0.45em;
  }

  .locations {
    right: 1.35rem;
    bottom: 3.35rem;
    left: 1.35rem;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .location--east {
    text-align: left;
  }

  .city {
    font-size: 1.65rem;
  }

  .connection {
    width: min(62vw, 15rem);
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
  }
}
