/* base.css — design tokens, reset, nav, page shell, footer, section primitives
   Loaded first on every page. */

/* ── [3] BRIGHTER ACCENT for dark-bg visibility ── */
:root {
  --bg: #080808;
  --bg2: #0e0e0e;
  --bg3: #141414;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
  --accent: #7b93c4;
  --accent-light: #a0b4d8;
  --accent-dim: rgba(123, 147, 196, 0.18);
  --gold-grad: linear-gradient(135deg, #ddc28e 0%, #c9a96a 60%, #b8975a 100%);
  --text: #f0ece4;
  --text-dim: rgba(240, 236, 228, 0.822);
  --text-dimmer: rgba(240, 236, 228, 0.568);
  /* Three serif roles, one family. Newsreader's optical-size axis (opsz 6..72)
     covers display and reading sizes, so it replaced Cormorant Garamond (hero)
     and Source Serif 4 (body). The roles stay as separate tokens so a distinct
     face can be reintroduced for one of them without touching 44 call sites. */
  --font-hero: 'Newsreader', serif;
  --font-display: 'Newsreader', serif;
  --font-body: 'Newsreader', serif;
  --font-sans: 'Syne', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --nav-h: 72px;
  --max-w: 1440px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 15% 18%, rgba(123, 147, 196, 0.11), transparent 40%),
    radial-gradient(circle at 85% 78%, rgba(201, 169, 106, 0.08), transparent 44%),
    radial-gradient(circle at 60% 50%, rgba(95, 196, 184, 0.05), transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: auto, auto, auto, 54px 54px, 54px 54px;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

.hero-sub strong, .sol-panel-desc strong,
.work-intro-text strong, .cs-about-text strong, .cs-col-item strong,
.cs-result-desc strong, .about-intro-text strong, .team-bio strong {
  font-weight: 600;
  color: var(--text);
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 48px;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s;
}

nav.scrolled {
  background: rgba(8, 8, 8, .96);
  border-color: var(--border);
  backdrop-filter: blur(12px);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  height: 34px;
  text-decoration: none;
  cursor: pointer;
}

.nav-logo img {
  height: 100%;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.nav-links {
  margin-left: auto;
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  cursor: pointer;
  transition: color .2s;
  background: none;
  border: none;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link.active {
  color: var(--accent);
}

/* [1] FOOTER with LinkedIn */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  height: 32px;
}

.footer-logo img {
  height: 100%;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.footer-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.footer-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  cursor: pointer;
  transition: color .2s;
  background: none;
  border: none;
}

.footer-link:hover {
  color: var(--accent);
}

.footer-li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-dim);
  text-decoration: none;
  transition: border-color .2s, color .2s;
}

.footer-li:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.footer-li svg {
  width: 14px;
  height: 14px;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dimmer);
  letter-spacing: .08em;
}

/* SECTION */
.section {
  padding: 120px 48px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-full {
  padding: 120px 48px;
}

.section-full>.inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

h1,
h2,
h3 {
  font-weight: 300;
}

/* ANIMATION PRIMITIVES */
/* Shared by every page — the Work and About heroes start at opacity 0 and
   rely on fadeUp, so these must not live in a per-page sheet. */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes fadeIn {
  from {
    opacity: 0
  }

  to {
    opacity: .23
  }
}
