:root {
  --ink:     #05080f;
  --deep:    #090d18;
  --surface: #0f1424;
  --lift:    #161d30;
  --star:    #edeae0;
  --muted:   #7a7f96;
  --gold:    #c9a96e;
  --gold-dim: rgba(201,169,110,0.12);
  --blue:    #89b8d4;
  --rust:    #c97a5e;
  --border:  rgba(237,234,224,0.07);
  --glow:    rgba(201,169,110,0.18);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--star);
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}

/* ── CUSTOM CURSOR ── */
.cursor {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  transform: translate(-50%,-50%);
  transition: transform 0.1s;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(201,169,110,0.5);
  border-radius: 50%;
  transform: translate(-50%,-50%);
  transition: all 0.18s ease;
}
body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring {
  width: 52px; height: 52px;
  border-color: var(--gold);
}

/* ── GRAIN OVERLAY ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.35;
}

/* ── HEADER AND FOOTER ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 0 48px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s, backdrop-filter 0.4s;
}
.site-header.scrolled {
  background: rgba(5,8,15,0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.site-title {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--star);
  text-decoration: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.4s, transform 0.4s;
}
.site-header.scrolled .site-title { opacity: 1; transform: translateY(0); }
.menu {
  display: flex;
  gap: 36px;
  list-style: none;
}
.menu a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.menu a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.menu a:hover { color: var(--star); }
.menu a:hover::after { width: 100%; }
.menu a.menu-item-21 {
  color: var(--gold);
  padding: 5px 14px;
  border: 1px solid rgba(201,169,110,0.3);
}
.menu a.menu-item-21::after { display: none; }
.menu a.menu-item-21:hover {
  background: var(--gold-dim);
  color: var(--gold);
  border-color: var(--gold);
}

@media ( max-width: 800px ) {
    .site-header {
        flex-direction: column;
        height: 200px;
        justify-content: space-evenly;
        position: relative;
        background: rgba(5,8,15,0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
    }
    .site-title {
        opacity: 1;
    }
    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}



/* ── FOOTER ── */
footer {
  background: var(--ink);
  padding: 48px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
}
.footer-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--star);
  text-decoration: none;
}
#footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
#footer-links a {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
#footer-links a:hover { color: var(--gold); }
.footer-copy {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: rgba(122,127,150,0.5);
  letter-spacing: 0.1em;
}



@media ( max-width: 800px ) {
    footer {
        flex-direction: column;
    }
    #footer-links {
        margin-top: 10px;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .footer-copy {
        margin-top: 30px;
    }
}




/* ── HERO ── */
.hero {
  position: relative;
  height: 90vh;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(137,184,212,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 30% 70%, rgba(201,169,110,0.05) 0%, transparent 50%),
    linear-gradient(170deg, #070b14 0%, #0b1120 40%, #060912 100%);
  will-change: transform;
}
/* Simulated stars */
.hero-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 12%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 18% 35%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(2px 2px at 25% 8%, rgba(201,169,110,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 35% 55%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 45% 22%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 52% 78%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(2px 2px at 58% 15%, rgba(137,184,212,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 65% 42%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 72% 68%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 78% 28%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(2px 2px at 85% 50%, rgba(201,169,110,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 91% 18%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 96% 72%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 14% 82%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 42% 90%, rgba(137,184,212,0.4) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 67% 88%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 88% 92%, rgba(255,255,255,0.3) 0%, transparent 100%);
  will-change: transform;
}
/* Nebula glow blob */
.hero-nebula {
  position: absolute;
  width: 600px; height: 400px;
  top: 15%; right: 5%;
  background: radial-gradient(ellipse, rgba(137,184,212,0.06) 0%, rgba(201,169,110,0.03) 40%, transparent 70%);
  border-radius: 50%;
  will-change: transform;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,8,15,1) 0%, rgba(5,8,15,0.6) 30%, transparent 60%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 64px 80px;
  width: 100%;
}
.hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.2s forwards;
}
.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(56px, 9vw, 120px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.9s 0.4s forwards;
}
.hero-name em {
  font-style: italic;
  color: rgba(237,234,224,0.5);
}
.hero-desc {
  font-size: 16px;
  font-weight: 300;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.6s forwards;
}
.hero-desc strong { color: var(--star); font-weight: 400; }
.hero-cta {
  display: flex;
  gap: 16px;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.8s forwards;
}
.btn-primary {
  padding: 13px 32px;
  background: var(--gold);
  color: var(--ink);
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s;
}
.btn-primary:hover { background: #d9ba82; transform: translateY(-2px); }
.btn-ghost {
  padding: 13px 28px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  right: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeUp 1s 1.2s forwards;
}
.scroll-hint span {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-lr;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ── STAT STRIP ── */
.stat-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 36px 40px;
  border-right: 1px solid var(--border);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s, transform 0.6s;
}
.stat-item:last-child { border-right: none; }
.stat-item.visible { opacity: 1; transform: translateY(0); }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 6px;
}
.stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── SECTIONS COMMON ── */
section { position: relative; }
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 64px;
}
.section-tag {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transform: translateX(-16px);
  transition: all 0.6s;
}
.section-tag.visible { opacity: 1; transform: translateX(0); }
.section-tag::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--gold);
}
h2.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s 0.1s;
}
h2.section-heading em { font-style: italic; color: rgba(237,234,224,0.45); }
h2.section-heading.visible { opacity: 1; transform: translateY(0); }
.section-intro {
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 64px;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.7s 0.2s;
}
.section-intro.visible { opacity: 1; transform: translateY(0); }

/* ── ABOUT ── */
.about-section { background: var(--deep); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-text p {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(237,234,224,0.75);
  margin-bottom: 20px;
}
.about-text p strong { color: var(--star); font-weight: 500; }
.about-details {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 40px;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateX(16px);
  transition: all 0.5s;
}
.detail-row.visible { opacity: 1; transform: translateX(0); }
.detail-key {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.detail-val {
  font-size: 14px;
  color: var(--star);
  font-weight: 400;
  text-align: right;
}

/* ── GALLERY ── */
.gallery-section { background: var(--ink); overflow: hidden; }
.gallery-scroll-container {
  overflow-x: auto;
  scrollbar-width: none;
  cursor: grab;
  padding-bottom: 8px;
}
.gallery-scroll-container::-webkit-scrollbar { display: none; }
.gallery-scroll-container.grabbing { cursor: grabbing; }
.gallery-track {
  display: flex;
  gap: 16px;
  padding: 0 64px 40px;
  width: max-content;
}
.gallery-item {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s, transform 0.6s;
}
.gallery-item.visible { opacity: 1; transform: translateY(0); }
.gallery-item:nth-child(odd) { width: 380px; height: 480px; }
.gallery-item:nth-child(even) { width: 320px; height: 400px; margin-top: 48px; }
.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: brightness(0.85) saturate(1.1);
}
.gallery-item:hover .gallery-img { transform: scale(1.04); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,8,15,0.9) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-caption {
  font-size: 14px;
  color: var(--star);
  font-weight: 400;
  margin-bottom: 4px;
}
.gallery-meta {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.15em;
}

/* Placeholder image backgrounds */
.img-moon { background-image: url('https://brittneymiller.space/wp-content/uploads/2026/03/mineral_moon.jpg'); }
.img-saturn { background-image: url('https://brittneymiller.space/wp-content/uploads/2026/03/Saturn_IR_91923.jpg'); }
.img-eclipse { background-image: url('https://brittneymiller.space/wp-content/uploads/2026/03/third-positive-color.jpg'); }
.img-m77 { background-image: url('https://brittneymiller.space/wp-content/uploads/2026/03/m77.jpg'); }
.img-m32 { background-image: url('https://brittneymiller.space/wp-content/uploads/2026/03/m32.jpg'); }
.img-horsehead { background-image: url('https://brittneymiller.space/wp-content/uploads/2026/03/horsehead_nebula.jpg'); }

.gallery-drag-hint {
  padding: 0 64px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.gallery-drag-hint span {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.drag-arrow {
  display: flex;
  gap: 4px;
  animation: dragPulse 2s ease-in-out infinite;
}
.drag-arrow span { color: var(--gold); font-size: 14px; }

/* ── PRESENTATIONS ── */
.talks-section { background: var(--surface); }
.talks-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.talk-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 0;
  background: var(--lift);
  border: 1px solid var(--border);
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.5s;
  cursor: default;
}
.talk-item.visible { opacity: 1; transform: translateY(0); }
.talk-item:hover { border-color: rgba(201,169,110,0.2); background: rgba(201,169,110,0.04); }
.talk-num {
  background: rgba(201,169,110,0.06);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 400;
  color: rgba(201,169,110,0.3);
  padding: 24px 16px;
}
.talk-body { padding: 24px 32px; }
.talk-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--star);
  margin-bottom: 6px;
}
.talk-venue {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--muted);
}
.talk-date {
  padding: 24px 32px;
  display: flex;
  align-items: center;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.1em;
  white-space: nowrap;
}

/* ── OUTREACH ── */
.outreach-section { background: var(--deep); }
.outreach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.outreach-card {
  background: var(--lift);
  border: 1px solid var(--border);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s;
}
.outreach-card.visible { opacity: 1; transform: translateY(0); }
.outreach-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}
.outreach-card:hover::before { transform: scaleX(1); }
.outreach-icon {
  font-size: 28px;
  margin-bottom: 20px;
  display: block;
}
.outreach-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 10px;
}
.outreach-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── SKILLS ── */
.skills-section { background: var(--ink); }
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.skill-group h3 {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-tag {
  padding: 7px 16px;
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.05em;
  transition: all 0.2s;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.4s, transform 0.4s, color 0.2s, border-color 0.2s, background 0.2s;
}
.skill-tag.visible { opacity: 1; transform: scale(1); }
.skill-tag:hover { color: var(--star); border-color: rgba(201,169,110,0.3); background: var(--gold-dim); }

/* ── JOURNAL CTA ── */
.journal-cta {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.journal-cta-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cta-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400;
  margin-bottom: 12px;
}
.cta-text h2 em { font-style: italic; color: var(--gold); }
.cta-text p {
  font-size: 15px;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.7;
}
.cta-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s;
  flex-shrink: 0;
}
.cta-link:hover { background: var(--gold); color: var(--ink); }
.cta-arrow {
  width: 20px; height: 1px;
  background: currentColor;
  position: relative;
  transition: width 0.3s;
}
.cta-link:hover .cta-arrow { width: 28px; }

/* ── FOOTER ── */
footer {
  background: var(--ink);
  padding: 48px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
}
.footer-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--star);
}
.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.footer-links a {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-copy {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: rgba(122,127,150,0.5);
  letter-spacing: 0.1em;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.15); }
}
@keyframes dragPulse {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}
