:root {
  --bg-deep: #0c1210;
  --bg-mid: #141f1a;
  --mist: rgba(212, 196, 168, 0.08);
  --text: #e8e2d6;
  --text-soft: rgba(232, 226, 214, 0.72);
  --accent: #c4a574;
  --accent-glow: rgba(196, 165, 116, 0.35);
  --line: rgba(196, 165, 116, 0.22);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text);
  background: var(--bg-deep);
  overflow-x: hidden;
}

.page {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem 3rem;
  isolation: isolate;
}

.page__bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(72, 98, 82, 0.45), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 80%, rgba(196, 165, 116, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at 0% 60%, rgba(40, 62, 52, 0.35), transparent 45%),
    linear-gradient(165deg, var(--bg-deep) 0%, var(--bg-mid) 55%, #0a0e0c 100%);
}

.page__grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page__ridge {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 38vh;
  z-index: -1;
  opacity: 0.55;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(12, 18, 16, 0.95) 0%,
    transparent 100%
  );
}

.page__ridge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 320' preserveAspectRatio='none'%3E%3Cpath fill='%231a2822' fill-opacity='0.9' d='M0 320 L0 200 Q200 120 400 180 T800 140 T1200 200 L1200 320 Z'/%3E%3Cpath fill='%2324352c' fill-opacity='0.7' d='M0 320 L0 240 Q300 160 600 220 T1200 260 L1200 320 Z'/%3E%3C/svg%3E")
    bottom center / 100% 100% no-repeat;
}

.card {
  width: min(100%, 36rem);
  text-align: center;
  animation: rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 2rem;
  animation: rise 1.1s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand__mark {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--mist);
  box-shadow: 0 0 40px var(--accent-glow);
}

.brand__mark svg {
  width: 1.35rem;
  height: 1.35rem;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 3.75rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  animation: rise 1.1s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.lead {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 28ch;
  margin: 0 auto 2rem;
  animation: rise 1.1s 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.badge {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--mist);
  margin-bottom: 2.5rem;
  animation: rise 1.1s 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Royal envelope seal — wax mark + gold rules */
.seal-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 34rem);
  margin: 2.25rem auto 0;
  padding: 0 0.5rem;
  animation: rise 1.1s 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.seal-ornament__rule {
  flex: 1;
  height: 2px;
  min-width: 3.5rem;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(196, 165, 116, 0.35) 20%,
    var(--accent) 50%,
    rgba(196, 165, 116, 0.35) 80%,
    transparent
  );
  box-shadow: 0 0 18px var(--accent-glow);
}

.seal-ornament__wax {
  flex-shrink: 0;
  width: clamp(5.5rem, 18vw, 7.5rem);
  height: clamp(5.5rem, 18vw, 7.5rem);
  margin: 0 1.5rem;
  filter: drop-shadow(0 0 28px var(--accent-glow)) drop-shadow(0 8px 20px rgba(0, 0, 0, 0.45));
}

.contact {
  font-size: 0.875rem;
  color: var(--text-soft);
  animation: rise 1.1s 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.contact a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.contact a:hover {
  border-bottom-color: var(--accent);
}

.scope {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  margin-top: 0.25rem;
  animation: rise 1.1s 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.scope li {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(12, 18, 16, 0.4);
}

.footer {
  position: fixed;
  bottom: 1.25rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 226, 214, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .brand,
  h1,
  .lead,
  .badge,
  .seal-ornament,
  .contact,
  .scope {
    animation: none;
  }
}
