/* ═══════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════ */
:root {
  --bg:         #F7F5EF;
  --bg-alt:     #EDEADE;
  --bg-dark:    #06101F;
  --bg-navy:    #0C1B52;
  --bg-navy-2:  #0E2158;
  --gold:       #C8A52A;
  --gold-l:     #DFC264;
  --gold-pale:  #FBF7E4;
  --text:       #0B1330;
  --text-muted: #6B7191;
  --white:      #FFFFFF;
  --border-l:   rgba(11,19,48,0.08);
  --border-d:   rgba(255,255,255,0.07);
  --shadow-l:   0 1px 2px rgba(11,19,48,0.05), 0 8px 28px rgba(11,19,48,0.09);
  --r-card:     1.5rem;
  --r-btn:      0.625rem;
}

/* ═══════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Cinematic Premium Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-navy);
}
::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-l);
}
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ═══════════════════════════════════════════
   ANNOUNCEMENT BAR
═══════════════════════════════════════════ */
#announce-bar {
  background: var(--bg-navy);
  height: 36px;
  display: flex; align-items: center;
  padding: 0 1.25rem;
  position: relative; z-index: 1001;
  overflow: hidden;
}
.announce-track {
  flex: 1; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.announce-inner {
  display: flex; gap: 3rem;
  white-space: nowrap;
  animation: announce-scroll 28s linear infinite;
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem; letter-spacing: 0.11em;
  color: var(--gold-l);
}
.announce-sep { color: var(--gold); opacity: 0.6; }
@keyframes announce-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
#announce-close {
  background: none; border: none;
  color: rgba(255,255,255,0.35);
  cursor: pointer; font-size: 1.1rem;
  padding-left: 1rem;
  transition: color 0.2s;
  flex-shrink: 0; line-height: 1;
}
#announce-close:hover { color: white; }

/* ═══════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 36px; left: 0; right: 0;
  z-index: 1000; height: 70px;
  display: flex; align-items: center;
  padding: 0 2.5rem;
  transition: background 0.55s cubic-bezier(0.16,1,0.3,1), box-shadow 0.55s;
}
#navbar.scrolled {
  background: rgba(247,245,239,0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 var(--border-l);
}
.nav-logo { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.nav-logo img {
  height: 42px; width: 42px; border-radius: 50%;
  object-fit: cover; border: 2px solid rgba(200,165,42,0.4);
}
.nav-logo-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem; font-weight: 600;
  color: white; line-height: 1.25; transition: color 0.4s;
}
#navbar.scrolled .nav-logo-name { color: var(--text); }
.nav-logo-sub {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold-l); transition: color 0.4s;
}
#navbar.scrolled .nav-logo-sub { color: var(--gold); }

.nav-links {
  display: flex; align-items: center; gap: 1.75rem;
  list-style: none; margin-left: auto; margin-right: 2rem;
}
.nav-links > li > a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.83rem; font-weight: 500;
  color: rgba(255,255,255,0.8); text-decoration: none;
  transition: color 0.25s; position: relative;
}
.nav-links > li > a::after {
  content: ''; position: absolute;
  bottom: -2px; left: 0; right: 100%;
  height: 1.5px; background: var(--gold);
  transition: right 0.3s cubic-bezier(0.16,1,0.3,1);
}
.nav-links > li > a:hover { color: white; }
.nav-links > li > a:hover::after { right: 0; }
.nav-links > li > a.active { color: var(--gold); }
.nav-links > li > a.active::after { right: 0; }
#navbar.scrolled .nav-links > li > a { color: var(--text-muted); }
#navbar.scrolled .nav-links > li > a:hover { color: var(--text); }
#navbar.scrolled .nav-links > li > a.active { color: var(--gold); }

/* About dropdown */
.nav-dropdown { position: relative; }
/* Invisible hit-area extension so hover doesn't drop when moving cursor down */
.nav-dropdown::after {
  content: ''; position: absolute;
  bottom: -1.5rem; left: 0; right: 0; height: 1.5rem; background: transparent;
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.75rem); left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--bg-navy);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.75rem;
  padding: 0.5rem;
  min-width: 160px;
  list-style: none;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1; pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu li a {
  display: block; padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.8rem; color: rgba(255,255,255,0.75);
  white-space: nowrap; text-decoration: none;
}
.nav-dropdown-menu li a:hover {
  background: rgba(255,255,255,0.06); color: white;
}
.nav-dropdown-menu li a::after { display: none; }
#navbar.scrolled .nav-dropdown-menu {
  background: white;
  border-color: var(--border-l);
  box-shadow: 0 8px 24px rgba(11,19,48,0.12);
}
#navbar.scrolled .nav-dropdown-menu li a { color: var(--text-muted); }
#navbar.scrolled .nav-dropdown-menu li a:hover {
  background: rgba(11,19,48,0.04); color: var(--text);
}

.nav-apply {
  background: var(--gold); color: var(--bg-navy);
  padding: 0.5rem 1.375rem; border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.83rem; font-weight: 700;
  text-decoration: none; white-space: nowrap;
  transition: background 0.25s, transform 0.2s;
  position: relative; overflow: hidden;
}
.nav-apply::before {
  content: ''; position: absolute; inset: 0;
  background: var(--gold-l); transform: translateX(-100%);
  transition: transform 0.45s cubic-bezier(0.76,0,0.24,1);
}
.nav-apply:hover::before { transform: translateX(0); }
.nav-apply:hover { transform: translateY(-1px); }
.nav-apply:active { transform: scale(0.97); }
.nav-apply span { position: relative; z-index: 1; }

.nav-ham {
  display: none; background: none; border: none;
  cursor: pointer; padding: 0.4rem; color: white;
  margin-left: auto; flex-direction: column; gap: 5px;
}
#navbar.scrolled .nav-ham { color: var(--text); }
.nav-ham span {
  display: block; width: 22px; height: 1.5px;
  background: currentColor; border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ═══════════════════════════════════════════
   MOBILE NAV
═══════════════════════════════════════════ */
#mob-nav {
  position: fixed; inset: 0;
  background: var(--bg-dark);
  z-index: 1050;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.75rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s;
}
#mob-nav.open { opacity: 1; pointer-events: all; }
#mob-nav a {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: 2.25rem;
  color: rgba(255,255,255,0.85); text-decoration: none;
  transition: color 0.2s;
}
#mob-nav a:hover { color: var(--gold); }
#mob-nav a.active { color: var(--gold); }
#mob-nav .mob-sub {
  font-size: 1.5rem;
  color: rgba(255,255,255,0.55);
  padding-left: 1.5rem;
  position: relative;
}
#mob-nav .mob-sub::before {
  content: '↳';
  position: absolute; left: 0;
  color: rgba(200,165,42,0.5);
  font-style: normal; font-size: 1rem;
  top: 0.3rem;
}
#mob-close {
  position: absolute; top: 1.5rem; right: 2rem;
  background: none; border: none;
  color: rgba(255,255,255,0.4);
  font-size: 2rem; cursor: pointer; transition: color 0.2s;
}
#mob-close:hover { color: white; }

/* ═══════════════════════════════════════════
   SHARED UTILITIES
═══════════════════════════════════════════ */
.fr { opacity: 0; transform: translateY(38px); }

.sec-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.sec-chip::before {
  content: ''; display: block;
  width: 2px; height: 16px;
  background: var(--gold); border-radius: 1px;
}

/* ═══════════════════════════════════════════
   PAGE FOOTER
═══════════════════════════════════════════ */
.page-footer {
  background: #06101F;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 1.25rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.5rem;
}
.footer-text {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.2);
}
.footer-status { display: flex; align-items: center; gap: 0.4rem; }
.footer-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22C55E;
  animation: pulse-dot 2.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.75); }
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-links, .nav-apply { display: none; }
  .nav-ham { display: flex; }
  #navbar { padding: 0 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .fr { opacity: 1; transform: none; }
}
