/* ═══════════════════════════════════════════════
   IMMINENT FLAIR — Global Stylesheet
   Catrina Turner · Cybersecurity Intelligence
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&family=Instrument+Sans:ital,wght@0,300;0,400;0,500;1,300&family=DM+Mono:wght@300;400&display=swap');

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, video { max-width: 100%; display: block; }
button { cursor: pointer; }

/* ── TOKENS ── */
:root {
  --ink:         #090909;
  --ink-mid:     #111111;
  --ink-soft:    #1a1a1a;
  --ink-lifted:  #242424;
  --gold:        #b8966e;
  --gold-light:  #d4b896;
  --gold-pale:   #e8d5bc;
  --gold-dim:    #7a6045;
  --gold-deep:   #4a3820;
  --ivory:       #f4efe6;
  --ivory-dim:   #d8cfc0;
  --mist:        #9a8870;
  --mist-light:  #b8a890;
  --rule:        rgba(184,150,110,0.18);
  --rule-strong: rgba(184,150,110,0.35);

  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-body:    'Instrument Sans', sans-serif;
  --ff-mono:    'DM Mono', monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
}

/* ── BASE ── */
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--ff-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; opacity: 0.45;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 2px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ivory);
}
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); font-weight: 300; }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.9rem); }
h4 { font-size: 1.1rem; }
em { font-style: italic; color: var(--gold-light); }
strong { font-weight: 500; color: var(--ivory); }
a { color: inherit; text-decoration: none; }

p { color: var(--mist); line-height: 1.85; }

.mono {
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ── LAYOUT ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 64px; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 64px; }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 80px; }

/* ── NAVIGATION ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 64px;
  background: rgba(9,9,9,0.90);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.3s;
}

.nav-logo { text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.nav-logo-name {
  font-family: var(--ff-display);
  font-size: 1.25rem; font-weight: 500;
  letter-spacing: 0.1em; color: var(--ivory); line-height: 1;
}
.nav-logo-sub { font-family: var(--ff-mono); font-size: 0.58rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 40px; }
.nav-links a {
  font-family: var(--ff-mono); font-size: 0.62rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--mist); text-decoration: none;
  transition: color 0.2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}
.nav-links a:hover { color: var(--gold-light); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--gold-light); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  border: 1px solid var(--gold-dim) !important;
  padding: 9px 22px;
  color: var(--gold-light) !important;
  transition: background 0.25s, color 0.25s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--gold) !important; color: var(--ink) !important; }

/* ── TICKER ── */
.ticker {
  background: var(--ink-mid);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden; white-space: nowrap; padding: 11px 0;
}
.ticker-track { display: inline-flex; animation: ticker 35s linear infinite; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 20px;
  padding: 0 40px;
  font-family: var(--ff-mono); font-size: 0.6rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--mist);
}
.ticker-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

/* ── SECTION LABELS ── */
.section-label {
  display: flex; align-items: center; gap: 16px; margin-bottom: 52px;
}
.section-label .mono { color: var(--gold); }
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--rule); }
.section-label-right { justify-content: flex-end; }
.section-label-right::before { content: ''; flex: 1; height: 1px; background: var(--rule); }
.section-label-right::after { display: none; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--ff-mono); font-size: 0.62rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; transition: all 0.25s;
}
.btn-ghost {
  color: var(--ivory); border-bottom: 1px solid var(--gold-dim); padding-bottom: 5px;
}
.btn-ghost:hover { color: var(--gold-light); border-color: var(--gold-light); }
.btn-ghost::after { content: '→'; transition: transform 0.25s; }
.btn-ghost:hover::after { transform: translateX(5px); }

.btn-solid {
  background: var(--gold); color: var(--ink);
  padding: 14px 32px; font-weight: 400;
}
.btn-solid:hover { background: var(--gold-light); }

.btn-outline {
  border: 1px solid var(--gold-dim); color: var(--gold-light);
  padding: 13px 30px;
}
.btn-outline:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* ── CARD VARIANTS ── */
.card {
  background: var(--ink-mid);
  border: 1px solid var(--rule);
  transition: border-color 0.3s, background 0.3s;
}
.card:hover { border-color: var(--rule-strong); background: var(--ink-soft); }

/* ── TAGS ── */
.tag {
  font-family: var(--ff-mono); font-size: 0.58rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold);
}
.tag-pill {
  border: 1px solid var(--gold-dim); padding: 4px 12px;
  font-family: var(--ff-mono); font-size: 0.56rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold);
  white-space: nowrap;
}

/* ── DIVIDER ── */
.rule { border: none; border-top: 1px solid var(--rule); margin: 0; }
.rule-strong { border-color: var(--rule-strong); }

/* ── FOOTER ── */
.footer {
  background: var(--ink-mid);
  border-top: 1px solid var(--rule);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px; padding-bottom: 60px; border-bottom: 1px solid var(--rule);
}
.footer-brand-name { font-family: var(--ff-display); font-size: 1.35rem; font-weight: 500; letter-spacing: 0.1em; color: var(--ivory); margin-bottom: 4px; }
.footer-brand-sub { font-family: var(--ff-mono); font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.footer-brand-desc { font-size: 0.88rem; color: var(--mist); line-height: 1.75; max-width: 260px; }
.footer-col h4 { font-family: var(--ff-mono); font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; font-weight: 400; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 0.9rem; color: var(--mist); text-decoration: none; transition: color 0.2s; font-weight: 300; }
.footer-col a:hover { color: var(--ivory); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0;
  font-family: var(--ff-mono); font-size: 0.58rem;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold-dim);
}

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ── PAGE HEADER (for inner pages) ── */
.page-header {
  padding-top: 68px;
  background: var(--ink-mid);
  border-bottom: 1px solid var(--rule);
}
.page-header-inner {
  padding: 72px 0 64px;
}
.page-header-eyebrow { margin-bottom: 24px; }
.page-header h1 { margin-bottom: 20px; }
.page-header-desc { font-size: 1.05rem; color: var(--mist); max-width: 560px; line-height: 1.8; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}
@keyframes scanline {
  0%,100% { left: -100%; }
  50%      { left: 100%; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .container, .container-narrow, .container-wide { padding: 0 40px; }
  .nav { padding: 0 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .container, .container-narrow, .container-wide { padding: 0 24px; }
  .nav { padding: 0 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}
