/* ============================================================
   lynx.css — Canonical Lynx brand system
   Shared across: lynxbrydge.com · weblynx.studio · calllynx.ai
   Source of truth for design tokens, primitives, and motion.
   Brand-specific section styles live in each site's index.html.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces — pure black for max editorial contrast */
  --lynx-dark:          0 0% 0%;
  --lynx-dark-lighter:  0 0% 5%;
  --background:         0 0% 0%;
  --card:               0 0% 4%;
  --muted:              0 0% 7%;
  --secondary:          0 0% 10%;
  --input:              0 0% 8%;
  --border:             0 0% 14%;

  /* Text */
  --foreground:         47 96% 89%;   /* warm cream — headings, important text */
  --muted-foreground:   220 6% 65%;   /* cool grey — body, secondary text */

  /* Gold spectrum */
  --lynx-gold:          47 96% 50%;
  --lynx-gold-light:    47 96% 70%;
  --lynx-gold-variant:  47 96% 60%;
  --lynx-gold-dark:     47 96% 35%;
  --lynx-gold-deep:     47 96% 25%;

  /* Semantic */
  --primary:            47 96% 50%;
  --primary-foreground: 220 6% 7%;
  --accent:             47 96% 35%;
  --ring:               47 96% 50%;
  --destructive:        0 84% 60%;

  /* Gradients */
  --gradient-primary:   linear-gradient(135deg, hsl(var(--lynx-gold)) 0%, hsl(var(--lynx-gold-dark)) 100%);
  --gradient-secondary: linear-gradient(135deg, hsl(var(--lynx-gold-variant)) 0%, hsl(var(--lynx-gold-deep)) 100%);
  --gradient-dark:      linear-gradient(135deg, hsl(var(--lynx-dark)) 0%, hsl(var(--lynx-dark-lighter)) 100%);

  /* Shadows */
  --shadow-gold-subtle: 0 0 15px hsl(var(--lynx-gold-variant) / .2);
  --shadow-gold:        0 0 20px hsl(var(--lynx-gold) / .3);
  --shadow-gold-intense:0 0 40px hsl(var(--lynx-gold) / .5);

  /* Motion */
  --transition-smooth:  all .4s cubic-bezier(.4, 0, .2, 1);
  --transition-bounce:  all .6s cubic-bezier(.68, -.55, .265, 1.55);

  /* Geometry */
  --radius:             0.75rem;
}

/* ---------- Film grain overlay — replaces blurred mesh orbs as atmospheric layer ---------- */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: .045;
  mix-blend-mode: overlay;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Reset + base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: hsl(var(--background));
  color: hsl(var(--muted-foreground));      /* canonical: muted grey body */
  font-family: 'Switzer', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .display {
  font-family: 'Switzer', system-ui, -apple-system, sans-serif;
  color: hsl(var(--foreground));            /* canonical: cream headings */
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1rem; }
p  { margin: 0; }
a  { color: inherit; text-decoration: none; transition: var(--transition-smooth); }
a:hover { color: hsl(var(--lynx-gold-light)); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: hsl(var(--lynx-gold)); color: hsl(var(--lynx-dark)); }
hr.hairline {
  height: 1px; border: none; margin: 0;
  background: linear-gradient(90deg, transparent, hsl(var(--lynx-gold) / .5), transparent);
}

/* ---------- Layout ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 6rem 0; position: relative; }
@media (max-width: 768px) { section { padding: 4rem 0; } }

.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { margin-bottom: 1rem; }
.section-head .lead { margin: 1.25rem auto 0; }

.lead, .lede {                                /* .lede aliased for legacy */
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 38rem;
  line-height: 1.6;
}

/* ---------- Atmospherics ---------- */
.mesh-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}
.mesh-bg::before {
  content: ''; position: absolute; width: 600px; height: 600px;
  background: radial-gradient(circle, hsl(var(--lynx-gold) / .15) 0%, transparent 60%);
  top: -200px; left: -150px; filter: blur(64px);
}
.mesh-bg::after {
  content: ''; position: absolute; width: 500px; height: 500px;
  background: radial-gradient(circle, hsl(var(--lynx-gold-variant) / .12) 0%, transparent 60%);
  bottom: -150px; right: -100px; filter: blur(64px);
}
.dot-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(hsl(var(--border)) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  opacity: .35;
}
/* Orbs kept but heavily reduced — grain overlay is the primary atmospheric layer now */
.orb {
  position: absolute; border-radius: 9999px;
  filter: blur(96px); pointer-events: none; opacity: .12;
  animation: float 8s ease-in-out infinite;
  z-index: 0;
}
.orb-1 { width: 480px; height: 480px; background: hsl(var(--lynx-gold)); top: -180px; right: -120px; }
.orb-2 { width: 320px; height: 320px; background: hsl(var(--lynx-gold-deep)); bottom: -120px; left: -80px; opacity: .15; animation-delay: -3s; }

.container, section > .container, section > *:not(.mesh-bg):not(.dot-grid):not(.orb) {
  position: relative; z-index: 1;
}

/* ---------- Brand primitives ---------- */
.gold-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 9999px;
  background: var(--gradient-primary);
  box-shadow: var(--shadow-gold);
  vertical-align: middle;
}

/* Editorial label — replaces the AI-template eyebrow chip with a flat small-caps line */
.eyebrow {
  display: block;
  padding: 0 0 .6rem 0;
  border: none;
  background: none;
  color: hsl(var(--lynx-gold) / .85);
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  border-bottom: 1px solid hsl(var(--lynx-gold) / .25);
  width: fit-content;
  margin-bottom: 1.25rem;
}
.eyebrow-dot { display: none; }
/* Editorial italic serif emphasis — replaces the gold-gradient-on-one-word AI pattern */
em, .emphasis {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: hsl(var(--lynx-gold-light));
  letter-spacing: -.01em;
}
h1 em, h2 em, h3 em { font-weight: 400; }

/* Editorial section number — sits inline before the eyebrow label */
.section-num {
  display: inline-block;
  margin-right: .9rem;
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  color: hsl(var(--lynx-gold) / .55);
}
.section-num::after {
  content: '—';
  margin-left: .65rem;
  color: hsl(var(--lynx-gold) / .35);
}

/* Italic-serif emphasis replaces the gold-gradient-text AI tell.
   .gold-text/.accent kept as a class but renders as editorial italic, not gradient. */
.gold-text, .accent {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: hsl(var(--lynx-gold-light));
  background: none;
  -webkit-background-clip: initial; background-clip: initial;
  letter-spacing: -.01em;
}
.text-gold  { color: hsl(var(--lynx-gold)); }
.text-cream { color: hsl(var(--foreground)); }

.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem 1rem;
  border-radius: 9999px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--lynx-dark-lighter));
  font-size: .8rem;
  color: hsl(var(--foreground) / .9);
}

/* ---------- Buttons (editorial: sharp edges, no glow, restrained) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .9rem 1.5rem;
  border-radius: 2px;                          /* sharp editorial corners, not pill */
  font-family: 'Switzer', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  font-size: .92rem;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}
/* Confident solid gold, no aggressive glow — editorial restraint */
.btn-primary {
  background: hsl(var(--lynx-gold));
  color: hsl(var(--primary-foreground));
  box-shadow: none;
}
.btn-primary:hover {
  background: hsl(var(--lynx-gold-light));
  transform: translateY(-1px);
  color: hsl(var(--primary-foreground));
}
.btn-ghost {
  background: transparent;
  color: hsl(var(--foreground));
  border-color: hsl(var(--border));
}
.btn-ghost:hover {
  background: hsl(var(--secondary));
  border-color: hsl(var(--lynx-gold) / .4);
}
.btn-lg { padding: 1.1rem 2rem; font-size: 1rem; }
.btn-sm { padding: .65rem 1.1rem; font-size: .85rem; }

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(180deg, hsl(var(--lynx-dark-lighter)) 0%, hsl(var(--lynx-dark)) 100%);
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 2rem;
  transition: var(--transition-smooth);
}
.card:hover {
  border-color: hsl(var(--lynx-gold) / .35);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold-subtle);
}

/* ---------- Nav ---------- */
nav, .nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: hsl(var(--background) / .75);
  border-bottom: 1px solid hsl(var(--border));
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto;
  padding: 1rem 1.5rem;
}
.brand {
  display: flex; align-items: center; gap: .65rem;
  font-family: 'Switzer', system-ui, -apple-system, sans-serif;
  font-weight: 600; font-size: 1.1rem;
  color: hsl(var(--foreground));
}
.brand-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--gradient-primary);
  display: grid; place-items: center;
  box-shadow: var(--shadow-gold);
  flex-shrink: 0;
}
.brand-mark svg { width: 18px; height: 18px; color: hsl(var(--primary-foreground)); }
.brand-sub, .brand-parent {
  display: block;
  font-size: .68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  font-weight: 400;
  margin-top: 1px;
}
.nav-links { display: none; gap: 2rem; align-items: center; }
.nav-links a { font-size: .9rem; color: hsl(var(--muted-foreground)); }
.nav-links a:hover { color: hsl(var(--foreground)); }
@media (min-width: 900px) { .nav-links { display: flex; } }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid hsl(var(--border));
  padding: 3.5rem 0 2.5rem;
  background: hsl(var(--lynx-dark));
}
.footer-grid, .foot-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
}
@media (min-width: 800px) {
  .footer-grid, .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 3rem; }
}
.footer-col h4, .foot-col h5 {
  font-family: 'Switzer', system-ui, sans-serif;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
  margin: 0 0 1rem;
}
.footer-col a, .foot-col a {
  display: block;
  padding: .3rem 0;
  font-size: .9rem;
  color: hsl(var(--foreground) / .85);
}
.footer-col a:hover, .foot-col a:hover { color: hsl(var(--lynx-gold)); }
.footer-col ul, .foot-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li, .foot-col li { padding: .25rem 0; font-size: .9rem; }
.footer-tag, .foot-tag {
  color: hsl(var(--muted-foreground));
  font-size: .9rem; margin-top: 1rem; max-width: 320px;
}
.footer-bottom, .foot-legal {
  max-width: 1200px; margin: 2.5rem auto 0; padding: 1.5rem 1.5rem 0;
  border-top: 1px solid hsl(var(--border));
  font-size: .8rem; color: hsl(var(--muted-foreground));
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
}
.family-link.active { color: hsl(var(--lynx-gold)); }

/* ---------- Brand family ticker ---------- */
.brand-ticker {
  position: relative;
  background: hsl(var(--lynx-dark-lighter));
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
  overflow: hidden;
  height: 42px;
  display: flex;
  align-items: center;
  z-index: 40;
}
.brand-ticker::before,
.brand-ticker::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 80px;
  pointer-events: none; z-index: 2;
}
.brand-ticker::before {
  left: 220px;
  background: linear-gradient(90deg, hsl(var(--lynx-dark-lighter)), transparent);
}
.brand-ticker::after {
  right: 0;
  background: linear-gradient(270deg, hsl(var(--lynx-dark-lighter)), transparent);
}
.ticker-label {
  position: relative;
  flex-shrink: 0;
  padding: 0 1.25rem;
  font-family: 'Switzer', system-ui, sans-serif;
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: hsl(var(--lynx-gold-light));
  background: hsl(var(--lynx-dark));
  height: 100%;
  display: flex; align-items: center; gap: .6rem;
  border-right: 1px solid hsl(var(--border));
  z-index: 3;
  white-space: nowrap;
}
.ticker-label .live-pip {
  width: 6px; height: 6px; border-radius: 50%;
  background: hsl(var(--lynx-gold));
  box-shadow: 0 0 8px hsl(var(--lynx-gold));
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
.ticker-viewport {
  flex: 1; overflow: hidden; position: relative;
  height: 100%;
  display: flex; align-items: center;
}
.ticker-track {
  display: flex; align-items: center; gap: 0;
  animation: ticker 70s linear infinite;
  white-space: nowrap;
  will-change: transform;
}
.brand-ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-flex; align-items: center;
  padding: 0 2rem;
  font-family: 'Switzer', system-ui, sans-serif;
  font-size: .9rem; font-weight: 500;
  color: hsl(var(--muted-foreground));
  transition: var(--transition-smooth);
  text-decoration: none;
  white-space: nowrap;
}
.ticker-item:hover { color: hsl(var(--lynx-gold-light)); }
/* Logo variant — Simple Icons CDN brand marks */
.ticker-logo {
  height: 22px; width: auto;
  opacity: .45;
  transition: var(--transition-smooth);
  display: block;
}
.ticker-item:hover .ticker-logo { opacity: 1; }
.ticker-item.logo {
  padding: 0 2.25rem;
}
.ticker-sep {
  color: hsl(var(--lynx-gold) / .5);
  font-size: .7rem;
  user-select: none;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Animations ---------- */
@keyframes fade-in-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float      { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(1deg); } }
@keyframes pulse      { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@keyframes pulse-glow { 0%, 100% { box-shadow: 0 0 20px hsl(var(--lynx-gold) / .3); } 50% { box-shadow: 0 0 40px hsl(var(--lynx-gold) / .6); } }
@keyframes tech-scan  { 0% { transform: translateX(-100%); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateX(100%); opacity: 0; } }
@keyframes wave       { 0%, 100% { height: 20%; opacity: .6; } 50% { height: 100%; opacity: 1; } }

.reveal { animation: fade-in-up .8s ease-out both; }
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.fade-up.in { opacity: 1; transform: translateY(0); }
