/* ============ Ethos Group — shared styles ============ */
html { scroll-behavior: smooth; }
body { background: linear-gradient(180deg, #F4F4F5 0%, #EAEAEC 100%); background-attachment: fixed; color: #18181B; -webkit-font-smoothing: antialiased; font-family: 'Inter', sans-serif; }
/* Page-wide faint grain to ground the floating cards */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%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)'/%3E%3C/svg%3E");
  opacity: 0.03;
}
::selection { background: #34D399; color: #000; }

/* Scroll cue (hero) */
@keyframes bob { 0%,100% { transform: translateY(0); opacity: .55; } 50% { transform: translateY(6px); opacity: 1; } }
.scroll-cue { animation: bob 2s ease-in-out infinite; }
/* Chapter number chip inside eyebrow labels */
.chapter-num { color: #34D399; }
.chapter-num::after { content: ""; display: inline-block; width: 18px; height: 1px; background: currentColor; opacity: .5; vertical-align: middle; margin: 0 8px 2px 8px; }

/* Grain overlay (noise SVG) for dark sections */
.grain::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%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)'/%3E%3C/svg%3E");
  opacity: 0.15; pointer-events: none; mix-blend-mode: overlay;
}

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.glass-nav {
  background: rgba(9, 9, 11, 0.55);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tracking-tightest { letter-spacing: -0.05em; }
.label { font-weight: 700; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; }

/* Entry animation */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; }
.reveal.in { animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.bounce-tag { animation: floaty 3s ease-in-out infinite; }

.grid-lines {
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
}
.hero-bgtext { font-size: 22vw; line-height: 0.8; opacity: 0.03; filter: blur(2px); }

/* Nav dropdown */
.nav-drop { opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .25s cubic-bezier(0.16,1,0.3,1); }
.nav-item:hover .nav-drop, .nav-drop:hover { opacity: 1; visibility: visible; transform: translateY(0); }

/* Mobile sheet */
#mobile-sheet { transition: opacity .3s ease, visibility .3s ease; }
#mobile-sheet.hidden-sheet { opacity: 0; visibility: hidden; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { animation: none !important; opacity: 1 !important; }
  .bounce-tag { animation: none; }
  .scroll-cue { animation: none; }
  html { scroll-behavior: auto; }
  .nav-drop { transition: none; }
}
