:root {
  color-scheme: dark;
  font-family: "Manrope", system-ui, sans-serif;
  --gold: #e7c963;
  --gold-soft: #f4e394;
  --ink: #050403;
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--ink);
  color: #f7f1d7;
}

.page {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 45%, rgba(168, 130, 28, 0.18) 0, rgba(62, 45, 11, 0.08) 24%, transparent 51%),
    radial-gradient(circle at 50% 115%, rgba(124, 91, 18, 0.12), transparent 38%),
    linear-gradient(145deg, #030303 0%, #0a0805 46%, #030303 100%);
}

.page::before {
  position: absolute;
  z-index: -1;
  width: min(74vw, 790px);
  aspect-ratio: 1;
  border: 1px solid rgba(236, 204, 103, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 90px rgba(211, 168, 46, 0.05),
    inset 0 0 90px rgba(211, 168, 46, 0.025);
  content: "";
}

.ambient {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.25;
  animation: drift 16s ease-in-out infinite alternate;
}

.ambient--one {
  top: -20%;
  left: -15%;
  width: 45vw;
  height: 45vw;
  background: rgba(142, 101, 13, 0.18);
}

.ambient--two {
  right: -12%;
  bottom: -25%;
  width: 50vw;
  height: 50vw;
  background: rgba(105, 72, 8, 0.22);
  animation-delay: -8s;
}

.grain {
  position: absolute;
  z-index: 5;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  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='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.brand {
  position: relative;
  display: grid;
  width: min(68vw, 640px);
  justify-items: center;
  animation: reveal 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.brand__halo {
  position: absolute;
  top: 12%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(232, 199, 88, 0.15);
  filter: blur(70px);
  animation: breathe 6s ease-in-out infinite;
}

.brand__art {
  position: relative;
  width: 100%;
}

.brand__logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: screen;
  filter: contrast(1.07) saturate(0.88) drop-shadow(0 16px 35px rgba(217, 173, 52, 0.12));
}

.brand__reflection {
  position: absolute;
  z-index: 0;
  top: 73%;
  left: 0;
  width: 100%;
  transform: scaleY(-0.32);
  transform-origin: center top;
  opacity: 0.11;
  mix-blend-mode: screen;
  filter: blur(3px) saturate(0.6);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 64%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 64%);
}

.brand__signature {
  position: relative;
  z-index: 2;
  margin: -7% 0 0;
  color: rgba(245, 231, 175, 0.55);
  font-size: clamp(0.55rem, 0.8vw, 0.7rem);
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
}

.webmail {
  position: fixed;
  z-index: 10;
  right: clamp(1.25rem, 3vw, 3rem);
  bottom: clamp(1.25rem, 3vw, 2.5rem);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 46px;
  padding: 0.65rem 0.75rem 0.65rem 0.7rem;
  border: 1px solid rgba(234, 207, 119, 0.18);
  border-radius: 999px;
  background: rgba(18, 15, 9, 0.58);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.28);
  color: rgba(248, 240, 209, 0.78);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: color 250ms ease, border-color 250ms ease, background 250ms ease, transform 250ms ease;
  animation: reveal 1s 0.8s ease both;
}

.webmail__icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(231, 201, 99, 0.23);
  border-radius: 50%;
  background: rgba(231, 201, 99, 0.06);
}

.webmail__icon svg {
  width: 15px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.webmail__arrow {
  color: var(--gold);
  font-size: 0.9rem;
  transition: transform 250ms ease;
}

.webmail:hover {
  transform: translateY(-3px);
  border-color: rgba(234, 207, 119, 0.38);
  background: rgba(40, 31, 12, 0.72);
  color: var(--gold-soft);
}

.webmail:hover .webmail__arrow {
  transform: translate(2px, -2px);
}

.webmail:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

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

@keyframes breathe {
  50% { opacity: 0.7; transform: scale(1.08); }
}

@keyframes drift {
  to { transform: translate3d(6vw, 4vh, 0) scale(1.08); }
}

@media (max-width: 700px) {
  .brand {
    width: min(96vw, 560px);
  }

  .brand__signature {
    margin-top: -5%;
    letter-spacing: 0.28em;
  }

  .page::before {
    width: 110vw;
  }
}

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