:root {
  --bg: #0a0b0f;
  --panel: #0f1218;
  --elev: #151a23;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #22d3ee;
  --accent-2: #8b5cf6;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  background:
    radial-gradient(1000px 600px at 10% -10%, #0f1620 0%, rgba(0,0,0,0) 60%),
    radial-gradient(800px 400px at 90% -20%, #081018 0%, rgba(0,0,0,0) 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.7;
  cursor: url('dna.gif') 16 16, auto;
}

a, button { cursor: url('dna.gif') 16 16, pointer; }

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }

.site-header { position: sticky; top: 0; z-index: 1000; }

/* Navbar */
.navbar {
  position: sticky;
  top: 12px; /* a few pixels away from top */
  margin: 12px; /* a few pixels away from sides */
  background: rgba(21, 26, 35, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.2px; color: #fff; text-decoration: none; padding: 6px 10px; border-radius: 999px; border: 1px solid transparent; }
.brand:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.08); }
.brand .logo { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4)); }

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-links a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.nav-links a.active {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(139, 92, 246, 0.22));
  border-color: rgba(34, 211, 238, 0.5);
  color: #fff;
}
.brand.active { background: linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(139, 92, 246, 0.22)); border-color: rgba(34, 211, 238, 0.5); color: #fff; }

/* Content */
.content { max-width: 1200px; margin: 24px auto 80px; padding: 0 12px; }

.section { scroll-margin-top: 110px; margin: 18px 0 24px; }

.card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.section h1, .section h2, .section h3, .section h4 { margin-top: 0; line-height: 1.2; color: #fff; }
.section h1 { font-size: 2rem; }
.section h2 { font-size: 1.6rem; margin-bottom: 12px; }
.section h3 { font-size: 1.2rem; margin-top: 12px; }

.media { margin: 16px 0; background: var(--elev); padding: 10px; border-radius: var(--radius-sm); border: 1px solid rgba(255, 255, 255, 0.06); display: flex; justify-content: center; }
.media img { border-radius: var(--radius-sm); margin: 0 auto; }

.technique { background: var(--elev); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: var(--radius); padding: 16px; margin: 12px 0; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.timeline li { background: var(--elev); border: 1px solid rgba(255, 255, 255, 0.06); padding: 12px; border-radius: var(--radius-sm); }
.timeline .year { color: var(--accent); font-weight: 600; margin-right: 6px; }

.hero { text-align: center; padding: 64px 24px; background:
  none;
}
.hero-title { font-size: 2.4rem; margin: 0; background: linear-gradient(135deg, #ffffff, #b3ecf2); -webkit-background-clip: text; background-clip: text; color: transparent; animation: fadeUp 600ms ease both; }
.hero-subtitle { margin: 8px 0 0; color: var(--muted); animation: fadeUp 800ms ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Upsides / Downsides */
.grid-two { display: grid; grid-template-columns: 1fr; gap: 16px; }
.column { background: var(--elev); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: var(--radius); padding: 16px; }
.point { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: var(--radius-sm); padding: 12px; margin: 10px 0; }

@media (min-width: 900px) { .grid-two { grid-template-columns: 1fr 1fr; } }

/* Mobile menu */
.menu-toggle { display: none; background: transparent; border: 1px solid rgba(255,255,255,0.12); padding: 6px 10px; border-radius: 12px; cursor: pointer; color: #e5e7eb; font-size: 20px; line-height: 1; }
.menu-toggle:hover { background: rgba(255,255,255,0.06); }
.menu-toggle .dots { display: inline-block; letter-spacing: 2px; }

@media (max-width: 899px) {
  .brand span { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: rgba(21, 26, 35, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  .nav-links li, .nav-links a { width: 100%; }
  .nav-links a { display: block; }
  .navbar.is-open .nav-links { display: flex; }
}

@media (min-width: 900px) {
  .menu-toggle { display: none; }
  .nav-links { display: flex; position: static; padding: 0; background: transparent; border: 0; box-shadow: none; }
}

body.custom-cursor-active, body.custom-cursor-active a, body.custom-cursor-active button { cursor: none; }
.cursor-dna { position: fixed; left: 0; top: 0; width: 48px; height: 48px; transform: translate(-50%, -50%); pointer-events: none; z-index: 10000; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5)); border-radius: 8px; }

/* References */
.refs { list-style: disc; padding-left: 20px; }
.refs a { color: var(--accent); }

::selection { background: rgba(34, 211, 238, 0.25); }
