html {
  min-width: 20rem;
  background: var(--color-canvas);
  scroll-behavior: smooth;
}

body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: clip;
  background:
    radial-gradient(circle at 85% 8%, rgb(131 91 39 / 0.09), transparent 30rem),
    radial-gradient(circle at 8% 92%, rgb(213 174 98 / 0.06), transparent 28rem),
    linear-gradient(145deg, #050505 0%, #080705 58%, #030303 100%);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -3;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.012) 1px, transparent 1px);
  background-size: 4rem 4rem;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 76%);
  pointer-events: none;
}

a { color: inherit; }

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.03;
  text-wrap: balance;
}

em {
  color: var(--color-gold-light);
  font-style: normal;
}

button,
a,
input { border-radius: 0; }

:focus-visible {
  outline: 3px solid var(--color-gold-light);
  outline-offset: 4px;
}

[hidden] { display: none !important; }

.whatsapp-float {
  position: fixed;
  z-index: 50;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  display: block;
  width: clamp(4rem, 5vw, 4.8rem);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: drop-shadow(0 0.75rem 1.5rem rgb(0 0 0 / 0.55)) drop-shadow(0 0 1rem rgb(190 128 45 / 0.2));
  transition: translate var(--motion-fast) ease, filter var(--motion-fast) ease;
}

.whatsapp-float:hover {
  filter: drop-shadow(0 1rem 1.8rem rgb(0 0 0 / 0.62)) drop-shadow(0 0 1.25rem rgb(213 174 98 / 0.32));
  translate: 0 -0.2rem;
}

.whatsapp-float:focus-visible {
  outline: 2px solid var(--color-gold-light);
  outline-offset: 0.3rem;
}

.whatsapp-float img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: contain;
}

@media (max-width: 46rem) {
  .whatsapp-float {
    right: max(0.85rem, env(safe-area-inset-right));
    bottom: max(0.85rem, env(safe-area-inset-bottom));
    width: 3.75rem;
  }
}

@media print {
  .whatsapp-float { display: none !important; }
}

.page-frame {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(100%, 90rem);
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  padding-inline: var(--content-gutter);
  grid-template-rows: auto 1fr auto;
}

.ambient-particles {
  position: fixed;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.92;
  pointer-events: none;
}

.ambient-glow {
  position: fixed;
  z-index: 0;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  background: rgb(213 174 98 / 0.05);
  filter: blur(5rem);
  pointer-events: none;
}

.ambient-glow-top { top: -17rem; right: -8rem; }
.ambient-glow-bottom { bottom: -20rem; left: -12rem; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-180%);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-surface-strong);
  padding: 0.75rem 1rem;
  color: var(--color-text);
}

.skip-link:focus { transform: translateY(0); }

.eyebrow {
  color: var(--color-gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.microcopy {
  max-width: 34rem;
  color: var(--color-text-muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

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