:root {
  --void: #070a0d;
  --ink: #e8eef2;
  --teal: #3dd6c6;
  --copper: #d4894a;
  --amber: #f0c36a;
  --font-code: "IBM Plex Mono", "SF Mono", ui-monospace, monospace;
  --font-church: "Fraunces", "Iowan Old Style", Georgia, serif;
}

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

html {
  background: var(--void);
  color: var(--ink);
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  font-family: var(--font-code);
  -webkit-font-smoothing: antialiased;
  background: var(--void);
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transform: scale(1.03);
  animation: rose-breathe 36s ease-in-out infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(75% 65% at 50% 35%, transparent 0%, rgba(7, 10, 13, 0.05) 45%, rgba(7, 10, 13, 0.55) 100%),
    linear-gradient(180deg, rgba(7, 10, 13, 0.05) 0%, rgba(7, 10, 13, 0.2) 55%, rgba(7, 10, 13, 0.9) 100%);
}

.glass-flare {
  position: absolute;
  width: min(28vw, 16rem);
  height: min(28vw, 16rem);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
  mix-blend-mode: screen;
  opacity: 0.35;
  animation: flare 14s ease-in-out infinite alternate;
}

.glass-flare-a {
  top: 18%;
  left: 22%;
  background: rgba(61, 214, 198, 0.55);
}

.glass-flare-b {
  top: 28%;
  right: 18%;
  width: min(18vw, 10rem);
  height: min(18vw, 10rem);
  background: rgba(240, 195, 106, 0.45);
  animation-duration: 18s;
  animation-delay: -3s;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(42rem, calc(100% - 2rem));
  margin: 0 auto 11vh;
  padding: 0 1rem;
  text-align: center;
}

.brand {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0;
  line-height: 1;
  animation: settle 900ms ease-out both;
}

.brand-code {
  font-family: var(--font-code);
  font-weight: 600;
  font-size: clamp(1.85rem, 7.5vw, 3.4rem);
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: #d7e6e4;
  text-shadow: 0 0 24px rgba(61, 214, 198, 0.25);
}

.brand-dot {
  font-family: var(--font-church);
  font-weight: 700;
  font-size: clamp(2.1rem, 8.5vw, 3.8rem);
  color: var(--amber);
  margin: 0 0.02em;
  text-shadow:
    0 0 18px rgba(240, 195, 106, 0.75),
    0 0 40px rgba(61, 214, 198, 0.35);
  transform: translateY(0.04em);
}

.brand-church {
  font-family: var(--font-church);
  font-weight: 700;
  font-size: clamp(2.35rem, 9.5vw, 4.4rem);
  letter-spacing: -0.03em;
  color: #f3f1ea;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55);
}

@keyframes rose-breathe {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(0, -1%, 0); }
}

@keyframes flare {
  from { opacity: 0.22; transform: translate3d(0, 0, 0) scale(1); }
  to { opacity: 0.42; transform: translate3d(1rem, -0.5rem, 0) scale(1.08); }
}

@keyframes settle {
  from { opacity: 0; transform: translateY(0.7rem); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-img,
  .glass-flare,
  .brand {
    animation: none;
  }
}

@media (max-width: 640px) {
  .hero-copy {
    margin-bottom: 8vh;
  }
  .hero-img {
    object-position: center 12%;
  }
}

@media (min-width: 900px) {
  .hero-img {
    object-position: center center;
    object-fit: contain;
    background: #070a0d;
  }
  .hero-media {
    background: #070a0d;
  }
}
