:root {
  --bg: #040305;
  --bg-soft: #120b18;
  --glow: rgba(132, 73, 168, 0.42);
  --glow-strong: rgba(166, 121, 199, 0.48);
  --text-main: #e5d5eb;
  --text-soft: rgba(229, 213, 235, 0.8);
  --text-muted: rgba(229, 213, 235, 0.62);
  --border: rgba(229, 213, 235, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background-color: #020202;
}

body {
  overflow: hidden;
  background:
    radial-gradient(circle at 52% 2%, rgba(163, 95, 210, 0.12), transparent 30%),
    radial-gradient(circle at 50% 26%, rgba(108, 62, 142, 0.1), transparent 52%),
    linear-gradient(180deg, #17101d 0%, #070608 48%, #020202 100%);
  color: var(--text-main);
  font-family: "Playfair Display", "Iowan Old Style", "Palatino Linotype",
    "URW Palladio L", serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 22%),
    radial-gradient(circle at 50% 20%, rgba(216, 183, 234, 0.06), transparent 30%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  isolation: isolate;
  overflow: clip;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(120px);
  pointer-events: none;
}

.ambient-one {
  --mouse-x: 0px;
  --mouse-y: 0px;
  top: -22%;
  left: 12%;
  width: min(92vw, 1500px);
  height: min(92vw, 1500px);
  background: radial-gradient(circle, rgba(166, 121, 199, 0.3) 0%, rgba(166, 121, 199, 0.12) 34%, transparent 76%);
  opacity: 0.62;
  animation: ambientFloat 16s ease-in-out infinite alternate;
}

.ambient-two {
  right: -18%;
  bottom: -22%;
  width: min(52vw, 760px);
  height: min(52vw, 760px);
  background: radial-gradient(circle, rgba(55, 26, 75, 0.18) 0%, transparent 76%);
  animation: ambientFloatReverse 24s ease-in-out infinite alternate;
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(170px, 0.6fr) minmax(300px, 1fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4.5rem);
  padding: clamp(2rem, 4vw, 3.25rem);
}

.brand-mark {
  position: relative;
  height: 124px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  align-self: start;
  color: var(--text-main);
  margin-top: 2.75rem;
  margin-left: 2.75rem;
}

.brand-logo {
  width: 102px;
  max-height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  filter:
    drop-shadow(0 0 4px rgba(236, 214, 245, 0.08))
    drop-shadow(0 0 10px rgba(168, 116, 198, 0.07))
    drop-shadow(0 0 16px rgba(58, 18, 82, 0.1));
  animation: logoReveal 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.22s;
}

.hero-copy {
  max-width: 42rem;
  justify-self: end;
  text-align: right;
  align-self: end;
  opacity: 0;
  margin-right: 2.75rem;
  margin-bottom: 2.75rem;
  transform: translateY(24px);
  animation: reveal 1.2s ease forwards 0.35s;
}

.eyebrow,
.status,
.description,
.contact-link,
.contact-address {
  color: var(--text-soft);
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: clamp(0.8rem, 0.95vw, 0.92rem);
  letter-spacing: 0.08em;
}

h1 {
  margin: 0;
  font-size: clamp(1.9rem, 2.8vw, 2.8rem);
  line-height: 1;
  font-weight: 600;
}

.status {
  margin: 1.1rem 0 0;
  font-size: clamp(0.95rem, 1.15vw, 1.15rem);
  font-weight: 500;
}

.description {
  width: min(100%, 30rem);
  margin: 1.5rem 0 0 auto;
  font-size: clamp(0.9rem, 1.02vw, 1rem);
  line-height: 1.5;
}

.contact-block {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.12rem;
  margin-top: clamp(2rem, 5vw, 4.2rem);
  padding-top: 1.4rem;
  border-top: 1px solid transparent;
  position: relative;
}

.contact-name {
  margin: 0 0 0.45rem;
  font-size: clamp(1.2rem, 1.45vw, 1.55rem);
  font-weight: 500;
}

.contact-block::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 22rem);
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(229, 213, 235, 0.42) 18%, rgba(229, 213, 235, 0.18) 100%);
  transform: scaleX(0);
  transform-origin: right center;
  opacity: 0.9;
  animation: drawLine 1.15s ease forwards 0.9s;
}

.contact-link,
.contact-address {
  font-size: clamp(0.92rem, 1.05vw, 1.02rem);
  line-height: 1.35;
  text-decoration: none;
  -webkit-tap-highlight-color: rgba(229, 213, 235, 0.08);
  transition:
    color 180ms ease,
    text-shadow 180ms ease;
}

.contact-link:hover,
.contact-link:focus-visible,
.contact-address:hover,
.contact-address:focus-visible {
  color: var(--text-main);
  text-shadow: 0 0 18px rgba(205, 164, 229, 0.28);
}

.contact-link:focus-visible,
.contact-address:focus-visible {
  outline: none;
}

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

@keyframes drawLine {
  from {
    transform: scaleX(0);
    opacity: 0.3;
  }

  to {
    transform: scaleX(1);
    opacity: 0.9;
  }
}

@keyframes ambientFloat {
  from {
    transform: translate3d(calc(var(--mouse-x) + 0px), calc(var(--mouse-y) + 0px), 0) scale(1);
    opacity: 0.46;
  }

  to {
    transform: translate3d(calc(var(--mouse-x) + 4%), calc(var(--mouse-y) + 5%), 0) scale(1.12);
    opacity: 0.72;
  }
}

@keyframes ambientFloatReverse {
  from {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.16;
  }

  to {
    transform: translate3d(-1.8%, -2.5%, 0) scale(1.03);
    opacity: 0.22;
  }
}

@keyframes logoReveal {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
    filter:
      drop-shadow(0 0 2px rgba(236, 214, 245, 0.04))
      drop-shadow(0 0 6px rgba(168, 116, 198, 0.04))
      drop-shadow(0 0 10px rgba(58, 18, 82, 0.05));
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter:
      drop-shadow(0 0 4px rgba(236, 214, 245, 0.08))
      drop-shadow(0 0 10px rgba(168, 116, 198, 0.07))
      drop-shadow(0 0 16px rgba(58, 18, 82, 0.1));
  }
}

@media (max-width: 900px) {
  body {
    overflow-y: auto;
    overflow-x: hidden;
  }

  .ambient-one,
  .ambient-two,
  .brand-logo {
    animation: none;
  }

  .ambient-one,
  .ambient-two {
    transform: none;
    opacity: 0.5;
  }

  .brand-logo {
    opacity: 1;
    transform: none;
    animation: mobileLogoReveal 0.95s ease-out forwards;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 1rem;
    min-height: auto;
    padding: 2rem 1.5rem 3rem;
  }

  .brand-mark {
    height: min(28vw, 180px);
    justify-content: center;
    align-self: auto;
    margin-top: 0;
    margin-left: 0;
    margin-bottom: 0.5rem;
  }

  .brand-logo {
    width: min(100%, 108px);
  }

  .hero-copy {
    justify-self: stretch;
    align-self: auto;
    max-width: none;
    margin-right: 0;
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(18px);
    animation: mobileCopyReveal 1s ease-out forwards 0.12s;
  }

  .eyebrow {
    font-size: 1rem;
  }

  h1 {
    font-size: clamp(2.6rem, 8vw, 4rem);
  }

  .status {
    font-size: clamp(1.1rem, 3.4vw, 1.55rem);
  }

  .description {
    width: min(100%, 24rem);
    font-size: clamp(1rem, 2.7vw, 1.08rem);
  }

  .contact-name {
    font-size: clamp(1.5rem, 4.2vw, 2rem);
  }

  .contact-link,
  .contact-address {
    font-size: clamp(1rem, 3vw, 1.2rem);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.18rem;
    padding: 0.16rem 0;
  }
}

@media (max-width: 560px) {
  .page-shell {
    min-height: 100%;
  }

  .hero-copy {
    text-align: center;
  }

  .description {
    margin-left: auto;
    margin-right: auto;
  }

  .contact-block {
    display: flex;
    align-items: center;
    width: 100%;
  }

  .contact-link,
  .contact-address {
    width: min(100%, 22rem);
    min-height: 2.28rem;
    padding: 0.18rem 0.16rem;
  }
}

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

@keyframes mobileLogoReveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

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

@keyframes mobileCopyReveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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