:root {
  color-scheme: dark;
  --bg: #050505;
  --gold-1: #fff1cf;
  --gold-2: #e1b66f;
  --gold-3: #9e642d;
  --gold-line: rgba(212, 151, 75, 0.38);
}

* {
  box-sizing: border-box;
}

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

html {
  background: var(--bg);
}

body {
  overflow: hidden;
  background: var(--bg);
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  width: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(
      65vw 50vw at 50% 46%,
      rgba(121, 82, 39, 0.12) 0%,
      rgba(31, 22, 15, 0.05) 42%,
      transparent 72%
    ),
    linear-gradient(180deg, #0a0a0a 0%, #060606 55%, #030303 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.014) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.ambient {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.7;
  will-change: transform;
}

.ambient-a {
  width: min(74vw, 1100px);
  height: min(31vw, 470px);
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center,
    rgba(232, 174, 96, 0.11) 0%,
    rgba(157, 96, 40, 0.055) 46%,
    transparent 74%
  );
  animation: breathe-a 10s ease-in-out infinite alternate;
}

.ambient-b {
  width: 42vw;
  height: 42vw;
  right: -18vw;
  bottom: -26vw;
  background: rgba(139, 81, 33, 0.055);
  animation: breathe-b 14s ease-in-out infinite alternate;
}

.brand-wrap {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 0 4vw;
  transform: translateY(-4vh);
  text-align: center;
}

.brand {
  margin: 0;
  display: inline-block;
  font-size: clamp(4.2rem, 12vw, 12rem);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: 0.085em;
  white-space: nowrap;

  color: var(--gold-2);
  background: linear-gradient(
    180deg,
    #fff5db 0%,
    #efd49e 20%,
    #d7a65d 48%,
    #9a5e29 76%,
    #e6bd78 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  filter:
    drop-shadow(0 0 0.5px rgba(255, 242, 211, 0.9))
    drop-shadow(0 0 10px rgba(228, 170, 91, 0.18))
    drop-shadow(0 0 32px rgba(176, 106, 40, 0.10));

  animation: brand-in 1.6s cubic-bezier(.2,.8,.2,1) both;
}

.horizon {
  position: absolute;
  z-index: 1;
  left: -8vw;
  right: -8vw;
  bottom: 6vh;
  height: 42vh;
  pointer-events: none;
}

.arc {
  position: absolute;
  left: 50%;
  width: 150vw;
  height: 52vh;
  border-radius: 50%;
  border-top: 1px solid var(--gold-line);
  transform-origin: center;
}

.arc-a {
  bottom: -35vh;
  transform: translateX(-50%) rotate(-6deg);
  box-shadow:
    0 -1px 4px rgba(250, 205, 139, 0.18),
    0 -9px 40px rgba(187, 116, 48, 0.07);
}

.arc-b {
  bottom: -39vh;
  transform: translateX(-50%) rotate(5deg);
  border-top-color: rgba(183, 117, 52, 0.28);
}

.arc-c {
  bottom: -44vh;
  transform: translateX(-50%) rotate(-13deg);
  border-top-color: rgba(155, 91, 37, 0.18);
}

.horizon-glow {
  position: absolute;
  left: 50%;
  bottom: 8.5vh;
  width: min(34vw, 520px);
  height: 5px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 192, 105, 0.58);
  filter: blur(12px);
  opacity: 0.6;
  animation: horizon-pulse 8s ease-in-out infinite alternate;
}

.footer {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: max(3.2vh, 22px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(240, 220, 186, 0.78);
  font-size: 0.84rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  white-space: nowrap;
  animation: footer-in 2.2s ease both;
}

.footer-line {
  width: clamp(42px, 7vw, 92px);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(202, 139, 69, 0.52) 100%
  );
}

.footer-line-right {
  transform: scaleX(-1);
}

@keyframes brand-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.992);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes footer-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes breathe-a {
  from { transform: translate(-50%, -50%) scale(0.96); opacity: 0.55; }
  to   { transform: translate(-50%, -50%) scale(1.05); opacity: 0.85; }
}

@keyframes breathe-b {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-4vw, -2vh, 0) scale(1.12); }
}

@keyframes horizon-pulse {
  from { opacity: 0.32; transform: translateX(-50%) scaleX(0.86); }
  to   { opacity: 0.72; transform: translateX(-50%) scaleX(1.08); }
}

@media (max-width: 760px) {
  .brand-wrap {
    padding: 0 5vw;
    transform: translateY(-3vh);
  }

  .brand {
    font-size: clamp(3rem, 15vw, 6.8rem);
    letter-spacing: 0.055em;
  }

  .horizon {
    bottom: 4vh;
    height: 36vh;
  }

  .footer {
    gap: 14px;
    font-size: 0.76rem;
    bottom: max(2.8vh, 18px);
  }
}

@media (max-width: 430px) {
  .brand {
    font-size: clamp(2.6rem, 15.5vw, 4.4rem);
    letter-spacing: 0.035em;
  }

  .footer-line {
    width: 34px;
  }
}

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