/* ─── RESET & VARIABLES ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #f8f7f3;
  --surface:   #ffffff;
  --ink:       #1c1c1c;
  --muted:     #6b6b6b;
  --accent:    #1d3d72;
  --accent2:   #c8974a;
  --border:    #e4e2db;
  --radius:    12px;
  --shadow:    0 2px 16px rgba(0,0,0,.07);
  --shadow-hov:0 8px 32px rgba(0,0,0,.12);
  --font-disp: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── NAVIGATION ────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248,247,243,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 clamp(1.5rem, 5vw, 3rem);
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}

.nav-logo {
  display: flex; align-items: center;
  height: 40px;
}
.nav-logo img {
  height: 100%;
  width: auto;
}

.nav-right { display: flex; align-items: center; gap: 1.5rem; }

.nav-links { display: flex; gap: 1.25rem; list-style: none; }
.nav-links a {
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }

/* Lang toggle */
.lang-toggle {
  display: flex; align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .06em;
}
.lang-btn {
  padding: .28rem .7rem;
  cursor: pointer;
  transition: background .2s, color .2s;
  color: var(--muted);
}
.lang-btn.active {
  background: var(--accent);
  color: #fff;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: .3s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed; inset: 60px 0 0 0;
  background: var(--bg);
  z-index: 99;
  padding: 2rem;
  flex-direction: column; gap: 1.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* ─── HERO ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: 6rem clamp(1.5rem, 5vw, 3rem);
  text-align: center;
}

/* Starfield canvas */
#stars {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .45;
}

/* Decorative constellation lines */
.hero-deco {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-deco::before {
  content: '';
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  border: 1px solid rgba(29,61,114,.1);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.hero-deco::after {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  border: 1px solid rgba(29,61,114,.06);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.hero-content {
  position: relative; z-index: 1;
  max-width: 700px;
  animation: fadeUp .9s ease both;
}

.hero-eyebrow {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 1.2rem;
}

.hero-name {
  font-family: var(--font-disp);
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -.01em;
  color: var(--ink);
  margin-bottom: 1.4rem;
}
.hero-name em {
  font-style: italic;
  color: var(--accent);
}

.hero-tagline {
  font-size: clamp(.95rem, 2.2vw, 1.1rem);
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 2.4rem;
  font-weight: 300;
}

.hero-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--accent);
  color: #fff;
  padding: .78rem 1.8rem;
  border-radius: 50px;
  font-size: .84rem;
  font-weight: 500;
  letter-spacing: .04em;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(29,61,114,.3);
  background: #254d91;
}
.hero-cta span { font-size: 1rem; }

/* Social row */
.hero-social {
  display: flex; justify-content: center; gap: 1rem;
  margin-top: 2rem;
}
.social-dot {
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  background: var(--surface);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.social-dot:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(29,61,114,.1);
  transform: translateY(-2px);
}

/* ─── SECTION COMMON ────────────────────────────────────────── */
section {
  padding: 5rem clamp(1.5rem, 5vw, 4rem);
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: .6rem;
}

.section-title {
  font-family: var(--font-disp);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.section-title em { font-style: italic; color: var(--accent); }

/* Divider */
.divider {
  border: none;
  height: 1px;
  background: var(--border);
  max-width: 1200px;
  margin: 0 auto;
}

/* ─── ABOUT ─────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 2rem;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 1rem;
  font-weight: 300;
  font-size: 1rem;
}

.interests {
  display: flex; flex-wrap: wrap; gap: .6rem;
  margin-top: 1.5rem;
}
.interest-tag {
  padding: .3rem .85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 500;
  color: var(--muted);
  display: flex; align-items: center; gap: .3rem;
}

.about-quote {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.about-quote blockquote {
  font-family: var(--font-disp);
  font-size: 1.4rem;
  font-weight: 300;
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
}
.about-quote cite {
  display: block;
  margin-top: 1rem;
  font-size: .8rem;
  font-style: normal;
  color: var(--muted);
  letter-spacing: .06em;
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ─── SITES SECTION ─────────────────────────────────────────── */
.sites-header {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 2.5rem;
}

/* Filter bar */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-bottom: 2.5rem;
}
.filter-btn {
  padding: .35rem 1rem;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: .78rem;
  font-weight: 500;
  cursor: pointer;
  transition: .2s;
  color: var(--muted);
  font-family: var(--font-body);
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex; flex-direction: column;
  gap: .75rem;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  cursor: pointer;
  animation: fadeUp .5s ease both;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hov);
  border-color: rgba(29,61,114,.2);
}

.card-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem;
}

.card-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.card-badge {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .2rem .65rem;
  border-radius: 50px;
  flex-shrink: 0;
}
/* Badge colors by category */
.badge-astro    { background: #e8f0ff; color: #2c4fa3; }
.badge-photo    { background: #fff3e0; color: #b05000; }
.badge-podcast  { background: #f0e8ff; color: #6a33aa; }
.badge-health   { background: #e8fff3; color: #1a7a4a; }
.badge-science  { background: #e8f8ff; color: #0d607a; }
.badge-tech     { background: #f5f5f5; color: #444; }
.badge-past     { background: #fef9e8; color: #7a5e0d; }

.card-title {
  font-family: var(--font-disp);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.25;
}

.card-desc {
  font-size: .84rem;
  color: var(--muted);
  font-weight: 300;
  flex: 1;
  line-height: 1.55;
}

.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: .25rem;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
}

.card-url {
  font-size: .72rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-link {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .78rem;
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
  transition: gap .2s, opacity .2s;
}
.card-link:hover { gap: .5rem; }
.card-link-arrow { transition: transform .2s; }
.card:hover .card-link-arrow { transform: translateX(3px); }

/* hidden card */
.card.hidden { display: none; }

/* ─── CONTACT ───────────────────────────────────────────────── */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.contact-info h3 {
  font-family: var(--font-disp);
  font-size: 1.6rem;
  font-weight: 300;
  margin-bottom: 1rem;
}
.contact-info p { color: var(--muted); font-weight: 300; margin-bottom: 1.5rem; }

.contact-links { display: flex; flex-direction: column; gap: .65rem; }
.contact-link {
  display: flex; align-items: center; gap: .75rem;
  padding: .85rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .85rem;
  transition: border-color .2s, box-shadow .2s;
}
.contact-link:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(29,61,114,.1);
}
.contact-link-icon { font-size: 1.1rem; }
.contact-link-label { font-weight: 500; }
.contact-link-sub { font-size: .75rem; color: var(--muted); margin-top: .05rem; }

.contact-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
}
.contact-visual-name {
  font-family: var(--font-disp);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: .5rem;
}
.contact-visual-title {
  font-size: .82rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.contact-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.stat {
  background: var(--bg);
  border-radius: 8px;
  padding: 1rem;
}
.stat-num {
  font-family: var(--font-disp);
  font-size: 2rem;
  font-weight: 400;
  color: var(--accent);
}
.stat-label {
  font-size: .75rem;
  color: var(--muted);
  margin-top: .1rem;
}

@media (max-width: 768px) {
  .contact-wrapper { grid-template-columns: 1fr; gap: 2rem; }
}

/* ─── FOOTER ────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem clamp(1.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 100%;
}
.footer-name {
  font-family: var(--font-disp);
  font-size: 1.1rem;
  font-weight: 400;
}
.footer-copy {
  font-size: .78rem;
  color: var(--muted);
}
.footer-links {
  display: flex; gap: 1rem;
  font-size: .78rem;
  color: var(--muted);
}
.footer-links a:hover { color: var(--accent); }

/* ─── ANIMATIONS ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Stagger cards */
.card:nth-child(1)  { animation-delay: .05s; }
.card:nth-child(2)  { animation-delay: .1s; }
.card:nth-child(3)  { animation-delay: .15s; }
.card:nth-child(4)  { animation-delay: .2s; }
.card:nth-child(5)  { animation-delay: .25s; }
.card:nth-child(6)  { animation-delay: .3s; }
.card:nth-child(7)  { animation-delay: .35s; }
.card:nth-child(8)  { animation-delay: .4s; }
.card:nth-child(9)  { animation-delay: .45s; }
.card:nth-child(10) { animation-delay: .5s; }
.card:nth-child(11) { animation-delay: .55s; }
.card:nth-child(12) { animation-delay: .6s; }
.card:nth-child(13) { animation-delay: .65s; }
.card:nth-child(14) { animation-delay: .7s; }
.card:nth-child(15) { animation-delay: .75s; }

/* Scroll fade-in */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ─── SCROLL-TO-TOP ─────────────────────────────────────────── */
.scroll-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: 40px; height: 40px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 50;
}
.scroll-top.show { opacity: 1; pointer-events: all; }
.scroll-top:hover { transform: translateY(-3px); }
