/* ============================================
   neurovia — site styles
   ============================================ */

@font-face { font-family: 'Robit'; src: url('fonts/robittrial-light.otf') format('opentype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Robit'; src: url('fonts/robittrial-regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Robit'; src: url('fonts/robittrial-medium.otf') format('opentype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Robit'; src: url('fonts/robittrial-bold.otf') format('opentype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Robit'; src: url('fonts/robittrial-dark.otf') format('opentype'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Heming'; src: url('fonts/Heming Variable.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }

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

:root {
  --bg: #0F0F0F;
  --bg-card: #1A1A1A;
  --bg-elevated: #262626;
  --bg-deep: #080808;
  --text: #F2EDE4;
  --text-secondary: #6B6560;
  --text-dim: #4a4744;
  --border: #333333;
  --accent: #C9B99A;
  --accent-dim: rgba(201, 185, 154, 0.15);
  --font: 'Robit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Heming', Georgia, serif;
  --radius: 16px;
  --radius-sm: 10px;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  letter-spacing: 0.06em;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  z-index: 1; pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
}

/* body text elements use Heming */
.hero-tagline, .hero-sub, .body-text, .closing-sub, .newsroom-subtitle,
.article-card-excerpt, .article-content p, .article-pull p,
.articles-empty p, .article-hint, .page-404-text {
  font-family: var(--font-body);
  letter-spacing: 0.07em;
}

#stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 3rem; position: relative; z-index: 2; }
a { color: inherit; text-decoration: none; }

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

/* ============================================
   NAV
   ============================================ */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 3rem;
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(15, 15, 15, 0.88);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo { font-size: 1.1rem; font-weight: 700; color: var(--text); letter-spacing: 0.06em; }
.nav-links { display: flex; gap: 2.25rem; }
.nav-links a {
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 400;
  color: var(--text-secondary); letter-spacing: 0.07em; transition: color 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

/* ============================================
   HERO
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; position: relative; z-index: 2;
  padding: 6rem 2rem;
}

.hero-orb {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(
    circle at 40% 40%,
    rgba(201, 185, 154, 0.1) 0%,
    rgba(201, 185, 154, 0.04) 35%,
    rgba(91, 141, 217, 0.03) 55%,
    transparent 75%
  );
  filter: blur(60px);
  animation: orbFloat 12s ease-in-out infinite, orbMorph 18s ease-in-out infinite;
  pointer-events: none; z-index: 0;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(-50%, -50%) translate(0, 0); }
  25% { transform: translate(-50%, -50%) translate(15px, -20px); }
  50% { transform: translate(-50%, -50%) translate(-10px, 10px); }
  75% { transform: translate(-50%, -50%) translate(20px, 15px); }
}
@keyframes orbMorph {
  0%, 100% { border-radius: 50%; width: 500px; height: 500px; }
  33% { border-radius: 45% 55% 50% 50%; width: 520px; height: 480px; }
  66% { border-radius: 55% 45% 48% 52%; width: 480px; height: 520px; }
}

.hero-content { position: relative; z-index: 1; }
.hero-title {
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 700; color: var(--text); margin-bottom: 1.25rem;
}
.hero-tagline {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 300; color: var(--text-secondary); margin-bottom: 2rem;
}
.hero-line {
  width: 40px; height: 1px;
  background: var(--text-secondary); margin: 0 auto 2rem;
}
.hero-sub {
  font-size: clamp(0.85rem, 1.6vw, 0.95rem);
  font-weight: 400; color: var(--text-dim);
}

.scroll-hint {
  position: absolute; bottom: 2.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem; z-index: 1;
}
.scroll-text {
  font-size: 0.65rem; font-weight: 400;
  text-transform: uppercase; color: var(--text-dim);
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--text-dim), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}
@keyframes scrollPulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 0.8; } }

/* ============================================
   SECTIONS
   ============================================ */

.section {
  padding: 7rem 0; position: relative; z-index: 2;
  border-top: 1px solid var(--border);
}

.section-header {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 3rem;
}
.section-header--center { justify-content: center; }
.section-number { font-size: 0.7rem; font-weight: 500; color: var(--accent); }
.section-label {
  font-size: 0.7rem; font-weight: 400;
  text-transform: uppercase; color: var(--text-secondary);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 500; line-height: 1.25; color: var(--text);
}

.body-text {
  font-size: 1rem; font-weight: 300;
  color: var(--text-secondary); line-height: 1.8; margin-bottom: 1.25rem;
}
.body-accent {
  font-size: 0.9rem; font-weight: 500;
  color: var(--text); margin-top: 0.5rem;
}

/* ---- Vision (split) ---- */

.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: start;
}

/* ---- Philosophy ---- */

.section--centered { text-align: center; }

.philosophy-statements {
  display: flex; flex-direction: column;
  max-width: 600px; margin: 0 auto;
}
.statement {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 300; color: var(--text);
  padding: 1.5rem 0; border-bottom: 1px solid var(--border);
}
.statement:first-child { border-top: 1px solid var(--border); }

/* ---- Closing ---- */

.closing { padding: 8rem 0; }
.closing-text {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 500; color: var(--text); margin-bottom: 2rem;
}
.closing-line {
  width: 40px; height: 1px;
  background: var(--text-dim); margin: 0 auto 2rem;
}
.closing-sub {
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  font-weight: 300; color: var(--text-dim);
}
.closing-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; font-weight: 400; color: var(--text-secondary);
  margin-top: 2.5rem;
  transition: color 0.3s ease, gap 0.3s ease;
}
.closing-link:hover { color: var(--accent); gap: 0.75rem; }

/* ============================================
   NEWSROOM
   ============================================ */

.newsroom-hero { padding: 8rem 0 4rem; position: relative; z-index: 2; }
.newsroom-title {
  font-size: clamp(4rem, 12vw, 11rem);
  font-weight: 800; color: var(--text); line-height: 0.9; margin-bottom: 2.5rem;
}
.newsroom-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300; color: var(--text-secondary);
}

.articles-section {
  padding: 3rem 0 6rem; position: relative; z-index: 2;
  border-top: 1px solid var(--border);
}

/* article card */
.article-card {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color 0.4s ease, transform 0.4s ease;
}
.article-card:hover {
  border-color: rgba(201, 185, 154, 0.2);
  transform: translateY(-2px);
}

.article-card-visual {
  position: relative; background: var(--bg-deep);
  overflow: hidden; min-height: 280px;
}

/* generative grid visual */
.acv-grid {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(6, 1fr);
  gap: 1px; padding: 2rem; opacity: 0.5;
}
.acv-cell {
  border-radius: 3px; background: var(--accent);
  opacity: 0; animation: cellFade 6s ease-in-out infinite;
  transition: opacity 0.15s ease;
}
.acv-cell:nth-child(3)  { opacity: 0.04; animation-delay: 0.0s; }
.acv-cell:nth-child(7)  { opacity: 0.06; animation-delay: 0.4s; }
.acv-cell:nth-child(12) { opacity: 0.08; animation-delay: 0.8s; }
.acv-cell:nth-child(15) { opacity: 0.05; animation-delay: 1.2s; }
.acv-cell:nth-child(20) { opacity: 0.1;  animation-delay: 1.6s; }
.acv-cell:nth-child(24) { opacity: 0.04; animation-delay: 2.0s; }
.acv-cell:nth-child(28) { opacity: 0.07; animation-delay: 2.4s; }
.acv-cell:nth-child(33) { opacity: 0.06; animation-delay: 2.8s; }
.acv-cell:nth-child(37) { opacity: 0.09; animation-delay: 3.2s; }
.acv-cell:nth-child(42) { opacity: 0.05; animation-delay: 3.6s; }
.acv-cell:nth-child(45) { opacity: 0.08; animation-delay: 4.0s; }
@keyframes cellFade { 0%, 100% { opacity: 0.02; } 50% { opacity: 0.12; } }

.acv-orb {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 185, 154, 0.06) 0%, transparent 60%);
  filter: blur(30px);
}

.article-card-body {
  padding: 2.5rem;
  display: flex; flex-direction: column; justify-content: center;
}
.article-card-date {
  font-size: 0.7rem; font-weight: 400;
  color: var(--text-dim); margin-bottom: 0.75rem;
}
.article-card-title {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 500; color: var(--text);
  line-height: 1.3; margin-bottom: 1rem;
}
.article-card-excerpt {
  font-size: 0.95rem; font-weight: 300;
  color: var(--text-secondary); line-height: 1.75; margin-bottom: 1.5rem;
}
.article-card-link {
  font-size: 0.8rem; font-weight: 500; color: var(--accent);
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: gap 0.3s ease;
}
.article-card:hover .article-card-link { gap: 0.75rem; }

.articles-empty { padding: 3rem 0; text-align: center; }
.articles-empty p { font-size: 0.9rem; font-weight: 300; color: var(--text-dim); }

/* ============================================
   ARTICLE PAGE
   ============================================ */

.article-hero { padding: 7rem 0 3rem; position: relative; z-index: 2; }

.article-back {
  font-size: 0.75rem; font-weight: 400; color: var(--text-dim);
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-bottom: 2.5rem; transition: color 0.3s ease;
}
.article-back:hover { color: var(--text-secondary); }

.article-hero-visual {
  position: relative; height: 320px;
  background: var(--bg-deep); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 3rem;
  border: 1px solid var(--border);
}
.ahv-grid {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(6, 1fr);
  gap: 1px; padding: 2.5rem; opacity: 0.6;
}
.ahv-cell {
  border-radius: 3px; background: var(--accent); opacity: 0;
  animation: cellFade 6s ease-in-out infinite;
  transition: opacity 0.15s ease;
}
.ahv-cell:nth-child(5)  { opacity: 0.04; animation-delay: 0.0s; }
.ahv-cell:nth-child(11) { opacity: 0.07; animation-delay: 0.3s; }
.ahv-cell:nth-child(18) { opacity: 0.1;  animation-delay: 0.6s; }
.ahv-cell:nth-child(23) { opacity: 0.05; animation-delay: 0.9s; }
.ahv-cell:nth-child(30) { opacity: 0.08; animation-delay: 1.2s; }
.ahv-cell:nth-child(36) { opacity: 0.06; animation-delay: 1.5s; }
.ahv-cell:nth-child(42) { opacity: 0.09; animation-delay: 1.8s; }
.ahv-cell:nth-child(48) { opacity: 0.04; animation-delay: 2.1s; }
.ahv-cell:nth-child(55) { opacity: 0.07; animation-delay: 2.4s; }
.ahv-cell:nth-child(60) { opacity: 0.06; animation-delay: 2.7s; }
.ahv-cell:nth-child(66) { opacity: 0.1;  animation-delay: 3.0s; }
.ahv-cell:nth-child(70) { opacity: 0.05; animation-delay: 3.3s; }

.ahv-orb {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 185, 154, 0.05) 0%, transparent 55%);
  filter: blur(40px);
}

.article-date {
  font-size: 0.75rem; font-weight: 400;
  color: var(--text-dim); margin-bottom: 0.75rem;
}
.article-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 500; color: var(--text); line-height: 1.2;
}

.article-body {
  padding: 3rem 0 5rem; position: relative; z-index: 2;
  border-top: 1px solid var(--border);
}
.article-content { max-width: 640px; }
.article-content p {
  font-size: 1rem; font-weight: 300;
  color: var(--text-secondary); line-height: 1.85; margin-bottom: 1.5rem;
}
.article-content p:last-child { margin-bottom: 0; }
.article-content p.lead {
  font-size: 1.05rem; color: var(--text); font-weight: 400;
}

.article-pull {
  border-left: 2px solid var(--accent);
  padding: 0.25rem 0 0.25rem 2rem; margin: 2.5rem 0;
}
.article-pull p {
  font-size: 1.05rem; font-weight: 400;
  color: var(--text); line-height: 1.75;
}

.article-divider {
  width: 30px; height: 1px;
  background: var(--accent); opacity: 0.2; margin: 3rem 0;
}
.article-hint {
  font-size: 0.9rem; font-weight: 300;
  color: var(--text-dim); font-style: italic;
}

/* ============================================
   404 PAGE
   ============================================ */

.page-404 {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; position: relative; z-index: 2;
  padding: 6rem 2rem;
}
.page-404-orb {
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 185, 154, 0.06) 0%, transparent 65%);
  filter: blur(40px); margin-bottom: 2rem; pointer-events: none;
}
.page-404-code {
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 800; color: var(--text); line-height: 1; margin-bottom: 1rem;
}
.page-404-text {
  font-size: 1.1rem; font-weight: 300;
  color: var(--text-secondary); margin-bottom: 2.5rem;
}
.page-404-link {
  font-size: 0.85rem; font-weight: 500; color: var(--accent);
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: gap 0.3s ease;
}
.page-404-link:hover { gap: 0.75rem; }

/* ============================================
   FOOTER
   ============================================ */

.footer { border-top: 1px solid var(--border); position: relative; z-index: 2; }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 2.5rem 3rem;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-logo { font-size: 0.85rem; font-weight: 700; color: var(--text-dim); letter-spacing: 0.04em; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a {
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 400;
  color: var(--text-dim); letter-spacing: 0.07em; transition: color 0.3s ease;
}
.footer-links a:hover { color: var(--text-secondary); }
.footer-copy { font-size: 0.75rem; font-weight: 400; color: var(--text-dim); }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
  .container { padding: 0 2rem; }
  .nav { padding: 0 2rem; }
  .section { padding: 5rem 0; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .article-card { grid-template-columns: 1fr; }
  .article-card-visual { min-height: 200px; }
  .article-card-body { padding: 2rem; }
  .article-hero-visual { height: 220px; }
  .closing { padding: 6rem 0; }
  .footer-inner { padding: 2rem; flex-direction: column; gap: 1rem; }
  .hero-orb { width: 350px; height: 350px; }
  .newsroom-title { margin-bottom: 1.5rem; }
}

@media (max-width: 550px) {
  .container { padding: 0 1.25rem; }
  .nav { padding: 0 1.25rem; }
  .section { padding: 4rem 0; }
  .nav-links { gap: 1.25rem; }
  .article-hero-visual { height: 160px; border-radius: var(--radius-sm); }
  .footer-inner { padding: 1.5rem 1.25rem; }
  .hero-orb { width: 280px; height: 280px; }
}
