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

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@property --hue {
  syntax: '<number>';
  initial-value: 45;
  inherits: false;
}

:root {
  --gold:        #d4af37;
  --gold-light:  #f5e27a;
  --gold-pale:   #fff8dc;
  --gold-dark:   #8a6a12;
  --gold-deep:   #4a3800;
  --bg:          #050403;
  --bg2:         #0d0a05;
  --panel-bg:    rgba(8, 6, 2, 0.88);
  --text-dim:    #9a8a60;
}

html, body { height: 100%; overflow: hidden; }

body {
  font-family: 'Cormorant Garamond', serif;
  background: var(--bg);
  color: #e8d8a0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.bg-layer { position: fixed; inset: 0; z-index: 0; }

.bg-layer--vignette {
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, transparent 30%, rgba(0,0,0,0.85) 100%),
    radial-gradient(ellipse 40% 40% at 20% 20%, rgba(212,175,55,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 80%, rgba(212,175,55,0.03) 0%, transparent 60%);
}

.bg-layer--noise {
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  opacity: 0.6;
  mix-blend-mode: overlay;
}

.bg-layer--scan {
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,0.08) 3px, rgba(0,0,0,0.08) 4px);
}

#canvas { position: fixed; inset: 0; z-index: 1; pointer-events: none; }

.bg-logo {
  position: fixed; right: -8vw; top: 50%; transform: translateY(-50%);
  width: 52vw; max-width: 740px; opacity: 0.03;
  filter: sepia(1) saturate(6) hue-rotate(5deg) brightness(1.5);
  z-index: 2; animation: bgDrift 10s ease-in-out infinite alternate;
}
@keyframes bgDrift {
  from { transform: translateY(-50%) translateX(0) scale(1); }
  to   { transform: translateY(-50%) translateX(-28px) scale(1.04); }
}

.corner { position: fixed; width: 130px; height: 130px; z-index: 3; opacity: 0; animation: cornerReveal 2s cubic-bezier(0.22,1,0.36,1) both; }
.corner svg { width: 100%; height: 100%; }
.corner--tl { top: 18px; left: 18px; animation-delay: 0.8s; }
.corner--tr { top: 18px; right: 18px; transform: scaleX(-1); animation-delay: 0.9s; }
.corner--bl { bottom: 18px; left: 18px; transform: scaleY(-1); animation-delay: 1.0s; }
.corner--br { bottom: 18px; right: 18px; transform: scale(-1); animation-delay: 1.1s; }
@keyframes cornerReveal { from { opacity: 0; } to { opacity: 0.4; } }

.h-rule { position: fixed; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(212,175,55,0.12) 20%, rgba(212,175,55,0.2) 50%, rgba(212,175,55,0.12) 80%, transparent); z-index: 2; opacity: 0; animation: fadeIn 3s ease both; }
.h-rule--top    { top: 50px; animation-delay: 1.2s; }
.h-rule--bottom { bottom: 50px; animation-delay: 1.3s; }
@keyframes fadeIn { to { opacity: 1; } }

.panel {
  position: relative; z-index: 10; background: var(--panel-bg);
  padding: 56px 52px 48px; max-width: 680px; width: 92vw; text-align: center;
  backdrop-filter: blur(24px) saturate(1.5) brightness(1.05);
  animation: panelReveal 1.8s cubic-bezier(0.22,1,0.36,1) both 0.3s; opacity: 0;
}
.panel-border {
  position: absolute; inset: -1.5px; border-radius: 2px;
  background: conic-gradient(from var(--angle), transparent 0deg, rgba(212,175,55,0.0) 40deg, var(--gold-dark) 80deg, var(--gold) 120deg, var(--gold-light) 160deg, var(--gold) 200deg, var(--gold-dark) 240deg, rgba(212,175,55,0.0) 280deg, transparent 360deg);
  animation: borderSpin 8s linear infinite; z-index: -1;
}
.panel-border-inner { position: absolute; inset: 1px; border-radius: 1px; background: var(--panel-bg); z-index: -1; }
@keyframes borderSpin { to { --angle: 360deg; } }
@keyframes panelReveal { from { opacity: 0; transform: translateY(40px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.panel-inset { position: absolute; inset: 10px; border: 1px solid rgba(212,175,55,0.08); pointer-events: none; }

.logo-wrap { display: inline-flex; justify-content: center; align-items: center; position: relative; margin-bottom: 32px; animation: logoReveal 2s cubic-bezier(0.22,1,0.36,1) both 0.5s; opacity: 0; }
.logo-glow { position: absolute; inset: -30px; border-radius: 50%; background: radial-gradient(circle, rgba(15,10,2,0.9) 0%, rgba(212,175,55,0.22) 45%, transparent 72%); animation: logoGlow 4s ease-in-out infinite; }
.logo-ring { position: absolute; inset: -16px; border-radius: 50%; border: 1px solid rgba(212,175,55,0.15); animation: ringPulse 4s ease-in-out infinite; }
.logo-ring-2 { position: absolute; inset: -28px; border-radius: 50%; border: 1px solid rgba(212,175,55,0.07); animation: ringPulse 4s ease-in-out infinite 0.5s; }
.logo { width: 190px; display: block; position: relative; z-index: 1; mix-blend-mode: lighten; filter: drop-shadow(0 0 36px rgba(212,175,55,0.45)) drop-shadow(0 0 12px rgba(212,175,55,0.25)) brightness(1.1) contrast(1.05); -webkit-mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, black 40%, rgba(0,0,0,0.6) 60%, transparent 78%); mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, black 40%, rgba(0,0,0,0.6) 60%, transparent 78%); }
@keyframes logoReveal { from { opacity: 0; transform: scale(0.85); filter: blur(6px); } to { opacity: 1; transform: scale(1); filter: blur(0); } }
@keyframes logoGlow { 0%, 100% { opacity: 0.7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes ringPulse { 0%, 100% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(1.05); opacity: 1; } }

.brand-eyebrow { font-family: 'Cinzel', serif; font-size: 9px; letter-spacing: 6px; color: var(--gold-dark); text-transform: uppercase; margin-bottom: 8px; animation: fadeUp 2s ease both 0.7s; opacity: 0; }

h1 {
  font-family: 'Cinzel Decorative', serif; font-size: clamp(26px, 4.5vw, 42px); font-weight: 700; letter-spacing: 6px; text-transform: uppercase;
  background: linear-gradient(105deg, var(--gold-deep) 0%, var(--gold-dark) 15%, var(--gold) 30%, var(--gold-light) 45%, var(--gold-pale) 50%, var(--gold-light) 55%, var(--gold) 70%, var(--gold-dark) 85%, var(--gold-deep) 100%);
  background-size: 300% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: shimmer 5s linear infinite, fadeUp 2s ease both 0.9s; opacity: 0; line-height: 1.1; margin-bottom: 6px;
}
@keyframes shimmer { 0% { background-position: 200% center; } 100% { background-position: -100% center; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.divider { display: flex; align-items: center; gap: 12px; margin: 22px auto 26px; animation: fadeUp 2s ease both 1.1s; opacity: 0; }
.divider-line { flex: 1; height: 1px; background: linear-gradient(to right, transparent, rgba(212,175,55,0.6), transparent); }
.divider-center { display: flex; align-items: center; gap: 6px; }
.divider-diamond { width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); flex-shrink: 0; box-shadow: 0 0 8px rgba(212,175,55,0.5); }
.divider-diamond--sm { width: 3px; height: 3px; opacity: 0.5; }

.tagline { font-family: 'Cormorant Garamond', serif; font-size: 17px; font-weight: 300; font-style: italic; line-height: 2; color: #b0a080; animation: fadeUp 2s ease both 1.3s; opacity: 0; max-width: 440px; margin: 0 auto 6px; }
.highlight { color: var(--gold); font-weight: 600; font-style: normal; }

.pillars { display: flex; justify-content: center; gap: 0; margin: 28px 0 30px; animation: fadeUp 2s ease both 1.5s; opacity: 0; }
.pillar { flex: 1; padding: 14px 10px; border-top: 1px solid rgba(212,175,55,0.15); border-bottom: 1px solid rgba(212,175,55,0.15); position: relative; }
.pillar + .pillar { border-left: 1px solid rgba(212,175,55,0.12); }
.pillar-icon { font-size: 18px; margin-bottom: 6px; display: block; opacity: 0.7; }
.pillar-label { font-family: 'Cinzel', serif; font-size: 8px; letter-spacing: 2.5px; color: var(--gold-dark); text-transform: uppercase; display: block; }

.cta-group { animation: fadeUp 2s ease both 1.7s; opacity: 0; display: flex; gap: 0; max-width: 420px; margin: 0 auto; }
.email-input { flex: 1; background: rgba(212,175,55,0.04); border: 1px solid rgba(212,175,55,0.2); border-right: none; color: #e8d8a0; font-family: 'Cormorant Garamond', serif; font-size: 14px; font-style: italic; padding: 12px 18px; outline: none; transition: border-color 0.3s, background 0.3s; letter-spacing: 0.5px; }
.email-input::placeholder { color: rgba(212,175,55,0.25); }
.email-input:focus { border-color: rgba(212,175,55,0.5); background: rgba(212,175,55,0.07); }

.btn { display: inline-block; padding: 12px 26px; background: transparent; border: 1px solid var(--gold); color: var(--gold); text-decoration: none; font-family: 'Cinzel', serif; font-size: 9px; letter-spacing: 2.5px; text-transform: uppercase; cursor: pointer; position: relative; overflow: hidden; transition: color 0.35s, box-shadow 0.35s, transform 0.25s; white-space: nowrap; flex-shrink: 0; }
.btn::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--gold-dark), var(--gold)); transform: translateX(-101%); transition: transform 0.4s cubic-bezier(0.4,0,0.2,1); z-index: 0; }
.btn span { position: relative; z-index: 1; }
.btn:hover::before { transform: translateX(0); }
.btn:hover { color: #000; box-shadow: 0 0 32px rgba(212,175,55,0.35), 0 0 8px rgba(212,175,55,0.2); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.contact-alt { margin-top: 14px; font-size: 11px; color: var(--text-dim); letter-spacing: 1px; animation: fadeUp 2s ease both 1.9s; opacity: 0; }
.contact-alt a { color: rgba(212,175,55,0.5); text-decoration: none; border-bottom: 1px solid rgba(212,175,55,0.15); padding-bottom: 1px; transition: color 0.3s, border-color 0.3s; font-style: italic; }
.contact-alt a:hover { color: var(--gold); border-color: rgba(212,175,55,0.5); }

.footer { margin-top: 26px; font-size: 9px; letter-spacing: 2.5px; color: rgba(74,56,0,0.7); text-transform: uppercase; animation: fadeUp 2s ease both 2.1s; opacity: 0; }

.side-text { position: fixed; font-family: 'Cinzel', serif; font-size: 9px; letter-spacing: 4px; color: rgba(212,175,55,0.12); text-transform: uppercase; z-index: 3; animation: fadeIn 3s ease both 1.5s; opacity: 0; }
.side-text--left { left: 24px; top: 50%; transform: translateX(-50%) rotate(-90deg) translateX(-50%); transform-origin: center center; }
.side-text--right { right: 24px; top: 50%; transform: translateX(50%) rotate(90deg) translateX(-50%); transform-origin: center center; }

.success-msg { display: none; color: var(--gold); font-style: italic; font-size: 14px; letter-spacing: 1px; padding: 12px; border: 1px solid rgba(212,175,55,0.2); background: rgba(212,175,55,0.05); }
