/* ============================================================
   BNEW — Bangalore Neuromorphic Engineering Workshop
   Landing styles.  Palette held to the original site:
     maroon #941236 · cream #f6eaaf · ink (warm near-black)
   Signature: the "spike" (action potential) — neuromorphic
   chips talk in spikes, so the spike is the structural mark.
   ============================================================ */

:root {
  --maroon:        #941236;
  --maroon-deep:   #6d0d28;
  --maroon-bright: #b51a44;
  --cream:         #f6eaaf;
  --cream-soft:    #faf3d4;
  --ink:           #17110f;
  --ink-soft:      #211915;
  --paper:         #f7f1e8;
  --paper-card:    #fffdf8;
  --line:          rgba(23, 17, 15, 0.10);
  --muted:         #6b625b;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'Space Mono', ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* The spike glyph — a flat baseline with one upward spike.
   Reused as the kicker marker across every section. */
.spike-mark {
  display: inline-block;
  width: 30px;
  height: 12px;
  background: var(--maroon);
  clip-path: polygon(0 100%, 36% 100%, 50% 0, 64% 100%, 100% 100%);
  vertical-align: middle;
  margin-right: 0.7rem;
}

/* ============================================================
   Navbar
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2.5rem;
  background: rgba(23, 17, 15, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(246, 234, 175, 0.12);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.18rem;
  text-decoration: none;
  line-height: 1;
}
.brand-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.brand .brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: var(--cream);
}
.brand .brand-year {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--maroon-deep);
  background: var(--cream);
  padding: 0.16rem 0.45rem;
  border-radius: 5px;
  transition: transform 0.25s var(--ease), background 0.25s;
}
.brand .brand-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(246, 234, 175, 0.6);
}
.brand:hover .brand-year {
  background: #fff;
  transform: translateY(-1px);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-links a {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  padding: 0.5rem 0.95rem;
  border-radius: 7px;
  transition: color 0.25s, background 0.25s;
}
.nav-links a:hover { color: var(--cream); background: rgba(246, 234, 175, 0.08); }
.nav-links a.nav-cta {
  background: var(--maroon);
  color: #fff;
}
.nav-links a.nav-cta:hover { background: var(--maroon-bright); color: #fff; }

/* dropdown groups */
.has-dropdown { position: relative; }
.nav-top {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0.95rem;
  border-radius: 7px;
  transition: color 0.25s, background 0.25s;
}
.nav-top:hover,
.has-dropdown:hover .nav-top,
.has-dropdown:focus-within .nav-top {
  color: var(--cream);
  background: rgba(246, 234, 175, 0.08);
}
.nav-chevron {
  width: 11px;
  height: 11px;
  transition: transform 0.25s var(--ease);
}
.has-dropdown:hover .nav-chevron,
.has-dropdown:focus-within .nav-chevron { transform: rotate(180deg); }
.dropdown {
  list-style: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: #241a16;
  border: 1px solid rgba(246, 234, 175, 0.14);
  border-radius: 10px;
  padding: 0.5rem;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 60;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown::before {     /* hover bridge so the menu doesn't close in the gap */
  content: "";
  position: absolute;
  top: -10px; left: 0; right: 0;
  height: 10px;
}
.dropdown a {
  display: block;
  width: 100%;
  font-size: 0.88rem;
  padding: 0.6rem 0.85rem;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.82);
}
.dropdown a:hover { background: rgba(246, 234, 175, 0.1); color: var(--cream); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 25px; height: 2px;
  background: var(--cream);
  transition: 0.3s;
}

/* ============================================================
   Hero — dark "lab instrument" panel with a live spike trace
   ============================================================ */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  padding: 5rem 2.5rem 0;
}
.hero::after { /* faint maroon glow, top-left */
  content: "";
  position: absolute;
  top: -20%; left: -10%;
  width: 55%; height: 80%;
  background: radial-gradient(circle, rgba(148, 18, 54, 0.45) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
}

/* two-column hero: text + live network */
.hero-grid {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
}
.hero-grid .hero-inner { margin: 0; }

/* Silicon neuron — chip die growing into a dendritic arbor */
.hero-net {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0;
}
.neuron-chip {
  width: 100%;
  max-width: 560px;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 0 40px rgba(148, 18, 54, 0.25));
}

/* dendritic traces: circuit stub + tapering branch tree */
.neuron-chip .d-stub {
  fill: none;
  stroke: rgba(246, 234, 175, 0.6);
  stroke-width: 3;
  stroke-linecap: round;
}
.neuron-chip .d-seg {
  fill: none;
  stroke: rgba(246, 234, 175, 0.5);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.neuron-chip .route { fill: none; stroke: none; }   /* geometry only */
.neuron-chip .d-via {
  fill: var(--ink);
  stroke: rgba(246, 234, 175, 0.7);
  stroke-width: 1.4;
}
.neuron-chip .d-bouton {
  fill: rgba(246, 234, 175, 0.8);
  filter: drop-shadow(0 0 3px rgba(246, 234, 175, 0.5));
}

/* travelling spikes */
.neuron-chip .p-in {
  fill: #fff;
  filter: drop-shadow(0 0 6px rgba(246, 234, 175, 0.95));
}
.neuron-chip .p-out {
  fill: var(--maroon-bright);
  filter: drop-shadow(0 0 8px rgba(192, 34, 76, 0.95));
}

/* die */
.neuron-chip .die-body {
  fill: var(--ink-soft);
  stroke: rgba(246, 234, 175, 0.6);
  stroke-width: 1.6;
}
.neuron-chip .die-sheen { fill: url(#dieSheen); }
.neuron-chip .die-inner {
  fill: none;
  stroke: rgba(246, 234, 175, 0.22);
  stroke-width: 1.2;
}
.neuron-chip .die-inner2 { stroke: rgba(246, 234, 175, 0.16); }
.neuron-chip .die-trace {
  fill: none;
  stroke: rgba(246, 234, 175, 0.4);
  stroke-width: 1.4;
  stroke-linecap: round;
}
.neuron-chip .mark {
  fill: none;
  stroke: rgba(246, 234, 175, 0.5);
  stroke-width: 1.4;
}

/* core + shockwave */
.neuron-chip .core { transition: opacity 0.1s linear; }
.neuron-chip .shockwave {
  fill: none;
  stroke: rgba(192, 34, 76, 0.7);
  stroke-width: 2;
  opacity: 0;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(246, 234, 175, 0.85);
  display: flex;
  align-items: center;
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  max-width: 14ch;
  margin-bottom: 1.3rem;
}
.hero h1 .accent { color: var(--cream); }

.hero-lead {
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  max-width: 48ch;
  margin-bottom: 1.8rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.9rem;
}
.date-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--cream);
  background: rgba(246, 234, 175, 0.06);
  border: 1px solid rgba(246, 234, 175, 0.32);
  border-radius: 50px;
  padding: 0.5rem 1.15rem 0.5rem 0.95rem;
}
.date-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--maroon-bright);
  box-shadow: 0 0 0 0 rgba(181, 26, 68, 0.7);
  animation: led-blink 1.8s infinite;
}
.venue {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  padding-bottom: 3rem;
}

.btn {
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.85rem 1.7rem;
  border-radius: 50px;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--maroon);
  color: #fff;
  box-shadow: 0 12px 30px rgba(148, 18, 54, 0.4);
}
.btn-primary:hover { background: var(--maroon-bright); transform: translateY(-3px); }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(246, 234, 175, 0.4);
}
.btn-ghost:hover { background: var(--cream); color: var(--ink); transform: translateY(-3px); }

/* The signature: the spike trace running along the hero floor */
.spike-trace {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 130px;
}
.spike-trace .trace-line {
  fill: none;
  stroke: var(--cream);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(246, 234, 175, 0.5));
  stroke-dasharray: 3000;
  stroke-dashoffset: 3000;
  animation: trace-draw 3s var(--ease) 0.3s forwards;
}
.spike-trace .trace-baseline {
  stroke: rgba(246, 234, 175, 0.18);
  stroke-width: 1;
}
.spike-trace .live-dot {
  fill: var(--maroon-bright);
  animation: live-pulse 1.6s ease-in-out infinite;
}
@keyframes trace-draw { to { stroke-dashoffset: 0; } }
@keyframes live-pulse {
  0%, 100% { opacity: 1; r: 5; }
  50%      { opacity: 0.35; r: 8; }
}

/* ============================================================
   2027 announcement — full-bleed maroon
   ============================================================ */
.announce {
  background: linear-gradient(120deg, var(--maroon) 0%, var(--maroon-deep) 100%);
  color: #fff;
  padding: 1.1rem 2.5rem;
  overflow: hidden;
}
.announce-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.3rem;
}
.announce-tag {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--cream);
  color: var(--maroon-deep);
  padding: 0.45rem 0.85rem;
  border-radius: 50px;
  font-weight: 700;
}
.live-dot-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--maroon-bright);
  box-shadow: 0 0 0 0 rgba(181, 26, 68, 0.7);
  animation: led-blink 1.6s infinite;
}
@keyframes led-blink {
  0%   { box-shadow: 0 0 0 0 rgba(181, 26, 68, 0.7); }
  70%  { box-shadow: 0 0 0 7px rgba(181, 26, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(181, 26, 68, 0); }
}

/* Scrolling ticker */
.ticker {
  position: relative;
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: ticker-scroll 26s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  font-size: 0.96rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  padding: 0 0.2rem;
}
.ticker-sep {
  display: inline-block;
  width: 26px;
  height: 11px;
  margin: 0 1.6rem;
  background: var(--cream);
  opacity: 0.8;
  clip-path: polygon(0 100%, 36% 100%, 50% 0, 64% 100%, 100% 100%);
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   Section scaffolding
   ============================================================ */
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4.25rem 2.5rem;
}
.section--tint {
  background: #f4ebe0;
  border: 1px solid rgba(148, 18, 54, 0.10);
  border-radius: 20px;
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding: 3.5rem 2.5rem;
}

/* Organizers: a soft tinted band so the leads stand out */
.section--organizers {
  background: linear-gradient(135deg, #fbeede 0%, #faece1 100%);
  border: 1px solid rgba(148, 18, 54, 0.12);
  border-radius: 20px;
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding: 3.5rem 2.5rem;
}
.section--organizers .org-card { background: #ffffff; }
.section--organizers .org-photo {
  width: 138px;
  height: 138px;
}
.section-head { max-width: 700px; margin-bottom: 3.5rem; }
.kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--maroon);
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.section-sub {
  margin-top: 0.9rem;
  font-size: 1.08rem;
  color: var(--muted);
}

/* ============================================================
   What's Next — registration / speakers / schedule coming soon
   ============================================================ */
.soon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.soon-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2.3rem 2.1rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.soon-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(23, 17, 15, 0.10);
}
/* the lead card (registration) gets the dark treatment to stand out */
.soon-card--lead {
  background: var(--ink);
  border-color: transparent;
  color: #fff;
}
.soon-status {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--maroon);
  background: var(--cream);
  padding: 0.32rem 0.7rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
}
.soon-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
}
.soon-card p {
  color: var(--muted);
  font-size: 0.97rem;
  margin-bottom: 1.5rem;
}
.soon-card--lead p { color: rgba(255, 255, 255, 0.72); }
.soon-meta {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--maroon);
}
.soon-meta--light { color: var(--cream); }

/* ============================================================
   Themes 2027
   ============================================================ */
.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}
.theme-card {
  position: relative;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.theme-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(148, 18, 54, 0.18);
  border-color: rgba(148, 18, 54, 0.3);
}

/* topic-matched visual header */
.theme-visual {
  position: relative;
  height: 140px;
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-deep) 100%);
  color: var(--cream);
  overflow: hidden;
}
.theme-visual::after {        /* subtle grid texture */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(246,234,175,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246,234,175,0.08) 1px, transparent 1px);
  background-size: 22px 22px;
}
.theme-visual svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
}

/* NIC — neuron-wired IC: static at rest; on hover, neurons fire and edges flow */
.theme-visual--nic .tv-neurons circle {
  transform-box: fill-box;
  transform-origin: center;
}
.theme-card:hover .theme-visual--nic .tv-neurons circle {
  animation: tv-fire 1.6s ease-in-out infinite;
}
.theme-card:hover .theme-visual--nic .tv-neurons circle:nth-child(2) { animation-delay: 0.2s; }
.theme-card:hover .theme-visual--nic .tv-neurons circle:nth-child(3) { animation-delay: 0.4s; }
.theme-card:hover .theme-visual--nic .tv-neurons circle:nth-child(4) { animation-delay: 0.6s; }
.theme-card:hover .theme-visual--nic .tv-edge {
  stroke-dasharray: 6 6;
  animation: tv-flow 0.7s linear infinite;
}

/* EBS — DVS sensor: static at rest; on hover, light rays travel in, events fire out */
.theme-visual--ebs .tv-rays line { opacity: 0.55; }
.theme-card:hover .theme-visual--ebs .tv-ray {
  stroke-dasharray: 5 6;
  animation: tv-flow 0.55s linear infinite;
}
.theme-visual--ebs .tv-events circle {
  transform-box: fill-box;
  transform-origin: center;
}
.theme-visual--ebs .tv-ev--off { fill: none; stroke: currentColor; stroke-width: 2; }
.theme-card:hover .theme-visual--ebs .tv-ev { animation: tv-twinkle 1.3s ease-in-out infinite; }
.theme-card:hover .theme-visual--ebs .tv-ev:nth-child(2) { animation-delay: 0.3s; }
.theme-card:hover .theme-visual--ebs .tv-ev:nth-child(3) { animation-delay: 0.6s; }
.theme-card:hover .theme-visual--ebs .tv-ev:nth-child(4) { animation-delay: 0.9s; }
.theme-card:hover .theme-visual--ebs .tv-pixels { animation: tv-glow 1.3s ease-in-out infinite; }

/* BCI — brain to compute: static at rest; on hover, the signal travels across */
.theme-visual--bci .tv-sig { stroke-dasharray: 4 5; }
.theme-card:hover .theme-visual--bci .tv-sig { animation: tv-flow 0.6s linear infinite; }
.theme-card:hover .theme-visual--bci .tv-dot { animation: tv-travel 1.8s ease-in-out infinite; }
.theme-card:hover .theme-visual--bci .tv-chip rect:first-of-type { animation: tv-glow 1.8s ease-in-out infinite; }

@keyframes tv-fire {
  0%, 100% { transform: scale(1); }
  40%      { transform: scale(1.45); }
}
@keyframes tv-flow { to { stroke-dashoffset: -12; } }
@keyframes tv-wave {
  0%   { opacity: 0; }
  30%  { opacity: 0.9; }
  100% { opacity: 0; }
}
@keyframes tv-pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50%      { transform: scale(1.25); opacity: 1; }
}
@keyframes tv-twinkle {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 1; }
}
@keyframes tv-travel {
  0%   { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(72px); opacity: 0.2; }
}
@keyframes tv-glow {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}

.theme-body { padding: 1.8rem 1.9rem 2.1rem; }
.theme-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--maroon);
  background: rgba(148, 18, 54, 0.08);
  border: 1px solid rgba(148, 18, 54, 0.2);
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.theme-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.2;
  margin-bottom: 0.85rem;
}
.theme-card p {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.6;
}

/* ============================================================
   About BNEW — centered intro + feature cards
   ============================================================ */
.section-head--center {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.section-head--center .kicker { justify-content: center; }
.section-head--center .section-sub { margin-left: auto; margin-right: auto; }
.about-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.about-pills--center { justify-content: center; margin-top: 1.5rem; }
.about-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--maroon);
  background: rgba(148, 18, 54, 0.07);
  border: 1px solid rgba(148, 18, 54, 0.18);
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.feature-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2.4rem 2rem;
  text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(148, 18, 54, 0.14);
  border-color: rgba(148, 18, 54, 0.28);
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-bright));
  color: var(--cream);
  margin-bottom: 1.3rem;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.24rem;
  margin-bottom: 0.6rem;
}
.feature-card p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

/* ============================================================
   How BNEW has grown — horizontal timeline
   ============================================================ */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 56px;            /* room for the year rail above the cards */
}
.timeline::before {            /* the rail line running through every station */
  content: "";
  position: absolute;
  top: 28px;
  left: 8%;
  right: 8%;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--maroon) 0 10px, transparent 10px 18px);
  opacity: 0.55;
}
.timeline-item {
  position: relative;
  text-align: center;
}
.timeline-node {
  position: absolute;
  top: -56px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.timeline-year {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--maroon);
  background: var(--paper);
  border: 2px solid var(--maroon);
  box-shadow: 0 0 0 6px var(--paper, #f4ebe0);
}
.timeline-item--now .timeline-year {
  color: #fff;
  background: var(--maroon);
  box-shadow: 0 0 0 6px rgba(148, 18, 54, 0.16);
}
/* connector stub from the rail down into each card */
.timeline-item::before {
  content: "";
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 28px;
  background: var(--maroon);
  opacity: 0.4;
  z-index: 1;
}
.timeline-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2rem 1.7rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.timeline-item--now .timeline-card {
  border-color: rgba(148, 18, 54, 0.32);
  box-shadow: 0 16px 40px rgba(148, 18, 54, 0.14);
}
.timeline-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.24rem;
  margin-bottom: 0.6rem;
}
.timeline-card > p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.4rem;
}
.timeline-stats {
  display: flex;
  justify-content: center;
  gap: 1.6rem;
  margin-top: auto;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}
.timeline-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--maroon);
}
.timeline-lbl {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.timeline-cta { margin-top: auto; padding-top: 0.5rem; }


/* ============================================================
   Mission — maroon full-bleed band
   ============================================================ */
.mission {
  background: var(--maroon);
  color: #fff;
}
.mission-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4.5rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2.5rem;
}
.mission .kicker { color: var(--cream); }
.mission h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 18ch;
  margin-bottom: 1.4rem;
}
.mission p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.08rem;
  max-width: 52ch;
  margin-bottom: 2.5rem;
}
.mission-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  border-top: 1px solid rgba(246, 234, 175, 0.25);
  padding-top: 2rem;
}
.stat-num {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1;
  display: block;
}
.stat-label {
  margin-top: 0.6rem;
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

/* world-convergence map */
.mission-net {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mission-net canvas {
  width: 100%;
  height: auto;
  max-width: 560px;
}

/* ============================================================
   Organizers
   ============================================================ */
.org-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}
.org-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2.2rem 1.6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.org-card::before {           /* colored accent bar along the top */
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--maroon), var(--cream));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.org-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(148, 18, 54, 0.16);
  border-color: rgba(148, 18, 54, 0.3);
}
.org-card:hover::before { transform: scaleX(1); }
.org-photo {
  width: 132px;
  height: 132px;
  margin: 0 auto 1.3rem;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}
.org-photo::after { /* thin maroon ring */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px var(--maroon);
}
.org-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.org-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  margin-bottom: 0.3rem;
}
.org-card p {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--maroon);
  text-transform: uppercase;
}
.org-card h3 a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--maroon), var(--maroon));
  background-size: 0% 2px;
  background-position: 50% 100%;
  background-repeat: no-repeat;
  transition: color 0.2s, background-size 0.25s var(--ease);
  padding-bottom: 2px;
}
.org-card h3 a:hover {
  color: var(--maroon);
  background-size: 100% 2px;
}
.org-card h3 a:focus-visible {
  outline: 2px solid var(--maroon);
  outline-offset: 3px;
  border-radius: 2px;
}

/* committee: more, smaller cards, centered rows */
.org-grid--committee {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}
.org-grid--committee .org-card {
  flex: 0 1 200px;
}
.org-grid--committee .org-photo {
  width: 104px;
  height: 104px;
  margin-bottom: 1rem;
}
.org-grid--committee .org-card { padding: 1.8rem 1.2rem; }
.org-grid--committee .org-card h3 { font-size: 1.02rem; }
.org-grid--committee .org-card p { font-size: 0.68rem; }

/* ============================================================
   Past workshops
   ============================================================ */
.past { background: var(--ink); color: #fff; }
.past-wrap { max-width: 1180px; margin: 0 auto; padding: 4.5rem 2.5rem; }
.past .kicker { color: var(--cream); }
.past h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  margin-bottom: 3rem;
}
.past-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.past-card {
  display: block;
  text-decoration: none;
  color: #fff;
  background: var(--ink-soft);
  border: 1px solid rgba(246, 234, 175, 0.14);
  border-radius: 4px;
  padding: 2.3rem 2.1rem;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.past-card:hover { transform: translateY(-5px); border-color: var(--cream); }
.past-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.past-card p { color: rgba(255, 255, 255, 0.6); font-size: 0.95rem; margin-bottom: 1.3rem; }
.past-arrow {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--cream);
}

/* ============================================================
   Watch the lectures — YouTube CTA
   ============================================================ */
.watch {
  background: linear-gradient(135deg, #2a0f17 0%, #1c0c11 100%);
  color: #fff;
  border-top: 1px solid rgba(246, 234, 175, 0.10);
}
.watch-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4.5rem 2.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: center;
}
.watch-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(246, 234, 175, 0.08);
  border: 1px solid rgba(246, 234, 175, 0.25);
  flex-shrink: 0;
  text-decoration: none;
  transition: transform 0.3s var(--ease), background 0.3s;
  position: relative;
}
.watch-play::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(246, 234, 175, 0.18);
}
.watch-play:hover { transform: scale(1.05); background: rgba(246, 234, 175, 0.14); }
.watch-play-btn {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--maroon-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}
.watch-play-btn svg { width: 34px; height: 34px; margin-left: 4px; }
.watch-text .kicker { color: var(--cream); }
.watch-text h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.watch-text p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 60ch;
  margin-bottom: 1.8rem;
}
.watch-text .btn-primary {
  background: var(--cream);
  color: var(--maroon-deep);
}
.watch-text .btn-primary:hover { background: #fff; }

/* ============================================================
   Research Outcomes page
   ============================================================ */
.ro-hero {
  background: var(--ink);
  color: #fff;
  padding: 6.5rem 2.5rem 4rem;
  position: relative;
  overflow: hidden;
}
.ro-hero::after {       /* faint circuit grid texture */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(246,234,175,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246,234,175,0.04) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}
.ro-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
}
.ro-hero .kicker { color: var(--cream); }
.ro-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 1.2rem;
  max-width: 18ch;
}
.ro-lead {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 62ch;
  margin-bottom: 2.5rem;
}
.ro-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.6rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(246, 234, 175, 0.2);
}
.ro-stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--cream);
}
.ro-stat-label {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

/* publication list */
.pub-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.pub-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.6rem;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.9rem 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.pub-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--maroon), var(--cream));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s var(--ease);
}
.pub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(148, 18, 54, 0.14);
  border-color: rgba(148, 18, 54, 0.28);
}
.pub-card:hover::before { transform: scaleY(1); }
.pub-index {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--maroon);
  opacity: 0.55;
  line-height: 1.2;
}
.pub-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  line-height: 1.35;
  margin-bottom: 0.7rem;
}
.pub-authors {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 0.9rem;
}
.pub-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.pub-venue { color: var(--ink); font-style: italic; }
.pub-year { color: var(--muted); }
.pub-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--maroon);
  opacity: 0.5;
}
.pub-badge {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  border: 1px solid;
}
.pub-badge--journal { color: #1f7a4d; border-color: rgba(31,122,77,0.4); background: rgba(31,122,77,0.08); }
.pub-badge--conf { color: #1f5c7a; border-color: rgba(31,92,122,0.4); background: rgba(31,92,122,0.08); }
.pub-badge--preprint { color: var(--maroon); border-color: rgba(148,18,54,0.35); background: rgba(148,18,54,0.07); }
.pub-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--maroon);
  text-decoration: none;
  transition: gap 0.2s;
}
.pub-link svg { width: 14px; height: 14px; }
.pub-link:hover { gap: 0.65rem; text-decoration: underline; }

/* acknowledgement CTA */
.ro-ack {
  background: linear-gradient(135deg, #fbeede 0%, #faece1 100%);
  border-top: 1px solid rgba(148, 18, 54, 0.1);
}
.ro-ack-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 5rem 2.5rem;
  text-align: center;
}
.ro-ack-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-bright));
  color: var(--cream);
  margin-bottom: 1.5rem;
}
.ro-ack-icon svg { width: 28px; height: 28px; }
.ro-ack .kicker { justify-content: center; color: var(--maroon); }
.ro-ack h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 1.1rem;
}
.ro-ack p {
  color: #4a423d;
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 60ch;
  margin: 0 auto 2rem;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 3rem 1.5rem;
  border-top: 1px solid rgba(246, 234, 175, 0.12);
}
.site-footer p { margin: 0.3rem 0; font-size: 0.9rem; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 820px) {
  .site-nav { padding: 1rem 1.3rem; }
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    padding: 0.5rem 1rem 1.1rem;
    border-bottom: 1px solid rgba(246, 234, 175, 0.12);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.85rem 1rem; }
  /* dropdowns expand inline within the mobile menu */
  .nav-top {
    width: 100%;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    font-weight: 600;
  }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0 0 0.4rem 0.6rem;
  }
  .dropdown a { font-size: 0.9rem; color: rgba(255,255,255,0.65); }
  .nav-chevron { display: none; }

  .hero { padding: 4.5rem 1.3rem 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 1rem; }
  .hero-net { display: none; }
  .section, .mission-wrap, .past-wrap { padding: 4rem 1.3rem; }
  .mission-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .mission-net { order: -1; }
  .timeline { grid-template-columns: 1fr; gap: 2.5rem; }
  .timeline::before { display: none; }
  .watch-wrap { grid-template-columns: 1fr; gap: 1.8rem; padding: 3.5rem 1.3rem; text-align: center; }
  .watch-play { margin: 0 auto; width: 130px; height: 130px; }
  .watch-text .kicker { justify-content: center; }
  .ro-hero { padding: 5rem 1.3rem 3rem; }
  .ro-stats { gap: 1.6rem; }
  .pub-card { grid-template-columns: 1fr; gap: 0.6rem; padding: 1.6rem 1.4rem; }
  .pub-index { font-size: 0.95rem; }
  .ro-ack-inner { padding: 3.5rem 1.3rem; }
  .announce { padding: 1.3rem; }
  .announce-inner { flex-direction: column; text-align: center; gap: 0.8rem; }
  .mission-stats { gap: 2.2rem; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .spike-trace .trace-line { animation: none; stroke-dashoffset: 0; }
  .spike-trace .live-dot { animation: none; }
  .netviz .nodes circle, .netviz .hub { animation: none; }
  .netviz .pulses { display: none; }
  .ticker-track { animation: none; }
  .live-dot-led { animation: none; }
  * { scroll-behavior: auto; }
}

/* Keyboard focus */
a:focus-visible, .btn:focus-visible, .hamburger:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}