@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Montserrat:wght@300;400;500&display=swap');

:root {
  --ink: #f7f2ef;
  --muted: rgba(247, 242, 239, .66);
  --line: rgba(247, 242, 239, .22);
  --wine: #6f1728;
  --wine-soft: rgba(111, 23, 40, .22);
  --bg: #10090c;
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  font-family: Montserrat, Arial, sans-serif;
}

.welcome {
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 38px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(111,23,40,.18), transparent 34%),
    radial-gradient(circle at 15% 15%, rgba(255,255,255,.035), transparent 26%),
    linear-gradient(135deg, #0d080a 0%, #160b10 50%, #0b0709 100%);
}

.welcome::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
}

.ambient {
  position: absolute;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  animation: breathe 9s ease-in-out infinite alternate;
}

.ambient-one {
  top: -18rem;
  left: -12rem;
  background: rgba(111,23,40,.18);
}

.ambient-two {
  right: -18rem;
  bottom: -20rem;
  background: rgba(104, 62, 74, .13);
  animation-delay: -4s;
}

.brand {
  position: absolute;
  top: 8.5%;
  left: clamp(24px, 7vw, 110px);
  opacity: 0;
  transform: translateY(-12px);
  animation: brandIn 1.4s cubic-bezier(.2,.7,.2,1) .25s forwards;
}

.logo-wrap {
  width: clamp(92px, 10vw, 132px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: #f5f4f2;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.15),
    0 10px 45px rgba(0,0,0,.35);
}

.logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.content {
  width: min(820px, 100%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.type-title,
.type-quote,
.type-reference,
.type-closing {
  position: relative;
}

.type-title {
  min-height: 1.25em;
  margin: 0 0 42px;
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  font-weight: 500;
  letter-spacing: .32em;
  line-height: 1.5;
}

.verse {
  margin: 0;
  max-width: 760px;
  min-height: 4.5em;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: .015em;
}

.quote-line {
  display: block;
  min-height: 1.03em;
}

.reference {
  min-height: 1.4em;
  margin: 28px 0 0;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
}

.divider {
  width: min(420px, 70%);
  height: 1px;
  margin: 40px 0 30px;
  position: relative;
  background: var(--line);
  overflow: hidden;
}

.divider span {
  position: absolute;
  inset: 0 auto 0 -30%;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.8), transparent);
  animation: sweep 2.8s ease-in-out 5.8s infinite;
}

.closing {
  min-height: 1.5em;
  margin: 0;
  max-width: 650px;
  font-size: clamp(.78rem, 1.7vw, .95rem);
  font-weight: 300;
  letter-spacing: .08em;
  line-height: 1.8;
  color: rgba(247,242,239,.78);
}

.bottom-mark {
  position: absolute;
  bottom: 4.5%;
  font-size: .8rem;
  color: rgba(255,255,255,.25);
  opacity: 0;
  animation: fadeIn 1.5s ease 8s forwards;
}

.type-title::after,
.type-quote::after,
.type-reference::after,
.type-closing::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-left: 4px;
  vertical-align: -.12em;
  background: rgba(255,255,255,.8);
  animation: cursor .8s step-end infinite;
}

.type-quote.second::after { animation-delay: .1s; }

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

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

@keyframes breathe {
  from { transform: scale(.92); opacity: .65; }
  to { transform: scale(1.08); opacity: 1; }
}

@keyframes sweep {
  0% { left: -30%; }
  55%, 100% { left: 100%; }
}

@keyframes cursor {
  50% { opacity: 0; }
}

@media (max-width: 650px) {
  .welcome {
    padding: 38px 22px 55px;
    justify-content: center;
  }

  .brand {
    top: 5.5%;
    left: 50%;
    transform: translateX(-50%) translateY(-12px);
    animation-name: brandMobileIn;
  }

  .logo-wrap {
    width: 92px;
  }

  .type-title {
    margin-bottom: 30px;
    letter-spacing: .22em;
    font-size: 1.05rem;
  }

  .verse {
    font-size: clamp(1.95rem, 9vw, 2.8rem);
    line-height: 1.06;
  }

  .reference {
    margin-top: 22px;
    letter-spacing: .22em;
  }

  .divider {
    margin: 32px 0 24px;
  }

  .closing {
    font-size: .75rem;
    letter-spacing: .05em;
  }
}

@keyframes brandMobileIn {
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

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