/* ═══════════════════════════════════════════════════════════════
   ATHENA DEVELOPMENT — GILDED PRESTIGE DESIGN SYSTEM
   Obsidian base · Silver text · Sapphire glow · Gilt gold luxury
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* ── Obsidian Backgrounds ── */
  --obsidian: #08080c;
  --obsidian-light: #0e0e14;
  --surface: #14141e;
  --surface-raised: #1a1a28;
  --stone: #22223a;

  /* ── Metallic Silver ── */
  --silver: #c8c8d4;
  --silver-bright: #e8e8f0;
  --silver-muted: #8e8e9e;
  --silver-dim: #5a5a6c;

  /* ── Sapphire ── */
  --sapphire: #1e3a6e;
  --sapphire-mid: #2a508f;
  --sapphire-bright: #3d6ab8;
  --sapphire-glow: #5080d0;

  /* ── Gilt Gold (richer, jewel-like) ── */
  --gold: #c9a35e;
  --gold-bright: #e8c987;
  --gold-pale: #f4e3b0;
  --gold-deep: #9c7c44;
  --gold-shadow: #6e5530;

  /* ── Gold gradients ── */
  --gild: linear-gradient(135deg, #f4e3b0 0%, #c9a35e 38%, #8a6c3a 64%, #e8c987 100%);
  --gild-soft: linear-gradient(135deg, #e8c987 0%, #c9a35e 50%, #9c7c44 100%);
  --gild-line: linear-gradient(90deg, transparent, rgba(201, 163, 94, 0.55), rgba(244, 227, 176, 0.85), rgba(201, 163, 94, 0.55), transparent);

  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-sans: 'Montserrat', ui-sans-serif, system-ui, sans-serif;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --maxw: 1280px;
}

* { box-sizing: border-box; }

/* Smooth scrolling is handled by a manual JS tween (athena.js) so it works
   reliably even where the browser's native smooth-scroll is disabled. */
html { scroll-behavior: auto; }

body {
  font-family: var(--font-sans);
  background-color: var(--obsidian);
  color: var(--silver);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

html { overflow-x: clip; }

::selection { background: rgba(201, 163, 94, 0.35); color: var(--silver-bright); }

img { display: block; max-width: 100%; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--obsidian); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--gold-deep), var(--gold-shadow));
  border-radius: 6px;
  border: 2px solid var(--obsidian);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(var(--gold), var(--gold-deep)); }

/* ═══════════════ TYPOGRAPHY ═══════════════ */

.font-display { font-family: var(--font-display); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 300; margin: 0; }

.gild-text {
  background: var(--gild);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.silver-text {
  background: linear-gradient(135deg, #f2f2f8 0%, #c8c8d4 45%, #8a8aa0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Section eyebrow label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: '';
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.eyebrow.center::after {
  content: '';
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.eyebrow.center { justify-content: center; }

/* ═══════════════ DECORATIVE ═══════════════ */

/* Gold hairline with center diamond */
.rule-gold {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
}
.rule-gold .line { height: 1px; flex: 1; background: var(--gild-line); }
.rule-gold .diamond {
  width: 7px; height: 7px;
  background: var(--gild);
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(201,163,94,0.6);
  flex: none;
}

.divider-gold {
  height: 1px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright), var(--gold-deep));
}

/* Gilt frame with corner brackets */
.gilt {
  position: relative;
}
.gilt::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201, 163, 94, 0.34);
  pointer-events: none;
  z-index: 2;
}
.gilt::after {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(201, 163, 94, 0.16);
  pointer-events: none;
  z-index: 2;
}
.corner {
  position: absolute;
  width: 16px; height: 16px;
  z-index: 3;
  pointer-events: none;
}
.corner::before, .corner::after {
  content: '';
  position: absolute;
  background: var(--gild);
  box-shadow: 0 0 6px rgba(201, 163, 94, 0.5);
}
.corner::before { width: 100%; height: 1.5px; }
.corner::after { width: 1.5px; height: 100%; }
.corner.tl { top: -1px; left: -1px; }
.corner.tr { top: -1px; right: -1px; }
.corner.tr::after { right: 0; }
.corner.tr::before { right: 0; }
.corner.bl { bottom: -1px; left: -1px; }
.corner.bl::before { bottom: 0; }
.corner.br { bottom: -1px; right: -1px; }
.corner.br::before { bottom: 0; right: 0; }
.corner.br::after { bottom: 0; right: 0; }

/* Greek meander key border (thin) */
.meander {
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='14' viewBox='0 0 48 14'%3E%3Cpath d='M0 11h9V5h6v6h6V2h12v9h6V5h6v6h9' fill='none' stroke='%23c9a35e' stroke-opacity='0.5' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
  opacity: 0.7;
}

/* ═══════════════ BUTTONS ═══════════════ */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.05rem 2.4rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.45s var(--ease);
  overflow: hidden;
}

/* Primary — gilt gold */
.btn-gold {
  color: #1a1206;
  background: var(--gild);
  background-size: 200% 100%;
  background-position: 0% 0%;
  box-shadow: 0 6px 26px rgba(201, 163, 94, 0.22), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-gold:hover {
  background-position: 100% 0%;
  box-shadow: 0 10px 36px rgba(201, 163, 94, 0.4), inset 0 1px 0 rgba(255,255,255,0.5);
  transform: translateY(-2px);
}

/* Secondary — outlined */
.btn-ghost {
  color: var(--silver-bright);
  background: transparent;
  border: 1px solid rgba(201, 163, 94, 0.4);
}
.btn-ghost:hover {
  border-color: var(--gold-bright);
  background: rgba(201, 163, 94, 0.07);
  box-shadow: 0 6px 26px rgba(201, 163, 94, 0.12);
  transform: translateY(-2px);
}

.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ═══════════════ LAYOUT ═══════════════ */

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 2rem; }

section { position: relative; }

.section-pad { padding: 7rem 0; }

/* Sections that sit above the fixed hero video */
.layer { position: relative; z-index: 2; background: var(--obsidian); }

/* Soft sapphire glow blob */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.glow-sapphire { background: rgba(42, 80, 143, 0.16); }
.glow-gold { background: rgba(201, 163, 94, 0.08); }

/* ═══════════════ SCROLL REVEAL ═══════════════ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
.reveal.d5 { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
