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

:root {
  --text: #16252B;        /* deep petrol ink, threads the teal through the neutrals */
  --text-light: #4C5A60;
  --text-muted: #74828A;
  --accent: #0E7490;      /* Muno petrol teal */
  --accent-hover: #0B5E76;
  --accent-soft: rgba(14, 116, 144, 0.08);
  --sand: #B0714B;        /* warm secondary (from the deck), used sparingly */
  --bg: #FAFAF8;
  --bg-card: #FFFFFF;
  --border: #E7E4DE;      /* warm hairline to match the paper background */
  --border-light: #F2F0EB;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  display: block;
}

/* Branded text selection */
::selection {
  background: rgba(14, 116, 144, 0.16);
  color: var(--text);
}

/* Keyboard focus only: invisible to mouse users, clear for keyboard nav */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ── Top Navigation ── */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 250, 249, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-name {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-name:hover {
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-social {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav-social a {
  color: var(--text-muted);
  display: flex;
  transition: color 0.2s;
}

.nav-social a:hover {
  color: var(--text);
}

.mobile-nav-toggle {
  display: none;
}

/* ── Main Container ── */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Hero / Bio Section ── */
.hero {
  padding-top: 120px;
  padding-bottom: 48px;
}

.hero-row {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.hero-photo {
  width: 220px;
  flex-shrink: 0;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(22, 37, 43, 0.05), 0 12px 32px -14px rgba(22, 37, 43, 0.22);
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-text h1 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 6px;
  color: var(--text);
}

.hero-text .hero-tagline {
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 18px;
}

.hero-text .hero-tagline a {
  color: var(--accent);
}

.hero-text .hero-cta {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-light);
}

.hero-text .hero-cta a {
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

.hero-text p {
  margin-bottom: 12px;
  color: var(--text-light);
  line-height: 1.7;
}

.hero-text ul {
  margin: 8px 0 0 20px;
  color: var(--text-light);
}

.hero-text li {
  margin-bottom: 4px;
}

.hero-links {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.hero-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -12px rgba(14, 116, 144, 0.5);
}

.hero-links a svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ── Traction Metrics ── */
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 56px;
}

.metric {
  background: var(--bg-card);
  padding: 24px;
  text-align: center;
}

.metric-value {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}

.metric-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* ── Muno Card (Currently Building) ── */
.muno-card {
  margin-bottom: 40px;
}

.muno-card-inner {
  display: flex;
  gap: 28px;
  align-items: center;
  padding: 28px;
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.07), rgba(176, 113, 75, 0.05));
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.muno-card-inner:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(14, 116, 144, 0.20);
}

.muno-logo {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.muno-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.muno-text {
  flex: 1;
  min-width: 0;
}

.muno-eyebrow {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 6px;
}

.muno-name {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 4px;
}

.muno-tagline {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
}

.muno-mission {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 12px;
}

.muno-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  display: inline-block;
  transition: transform 0.2s ease;
}

.muno-card-inner:hover .muno-link {
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .muno-card-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 24px;
  }

  .muno-logo {
    width: 80px;
    height: 80px;
  }
}

/* ── Section ── */
.section {
  margin-bottom: 56px;
}

.section-heading {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* ── Prose section (e.g. Technology Transfer) ── */
.section-text {
  max-width: 68ch;
}

.section-text p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 14px;
}

.section-text p:last-child {
  margin-bottom: 0;
}

.section-text a {
  color: var(--accent);
  font-weight: 500;
}

.section-text strong {
  color: var(--text);
  font-weight: 600;
}

.section-text em {
  color: var(--text);
}

.section-cta {
  margin-top: 18px;
  font-size: 14px;
}

.section-cta a {
  font-weight: 600;
}

/* ── Standalone page (Technology Transfer) ── */
.page-head {
  padding-top: 120px;
  margin-bottom: 36px;
  max-width: 760px;
}

.page-eyebrow {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 14px;
}

.page-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 18px;
}

.lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-light);
}

.lead strong {
  color: var(--text);
  font-weight: 600;
}

/* CTA card */
.cta-card {
  margin: 40px 0 16px;
  padding: 28px 30px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.07), rgba(176, 113, 75, 0.05));
}

.cta-eyebrow {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
}

.cta-card h3 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
}

.cta-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 18px;
  max-width: 60ch;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: 10px;
  transition: background 0.2s, transform 0.2s;
}

.btn:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .page-head {
    padding-top: 90px;
  }

  .page-title {
    font-size: 27px;
  }
}

/* ── Unified entry component ── */
.entry-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.entry {
  line-height: 1.6;
}

.entry-header {
  display: flex;
  align-items: baseline;
}

.entry-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

.entry-title a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.entry-title a:hover {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.entry-subtitle {
  white-space: nowrap;
  color: var(--text-light);
}

.entry-dots {
  flex: 1;
  border-bottom: 1px dotted var(--border);
  margin: 0 10px;
  position: relative;
  top: -3px;
  min-width: 20px;
}

.entry-date {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.entry-desc {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 2px;
  line-height: 1.6;
}

/* ── Embeds ── */
.embed-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 16px;
}

.embed-item {
  min-width: 0;
}

/* ── Gallery ── */
.gallery-intro {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.7;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.2s;
}

.gallery-grid img:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

/* ── Footer ── */
footer {
  margin-top: 40px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer a {
  color: var(--text-muted);
}

footer a:hover {
  color: var(--text);
}

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

/* ── Scroll Reveal Animation ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .top-nav {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(250, 250, 249, 0.98);
    backdrop-filter: blur(12px);
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }

  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    padding: 4px;
  }

  .container {
    padding: 0 20px;
  }

  .hero {
    padding-top: 80px;
  }

  .hero-row {
    flex-direction: column;
    gap: 24px;
    align-items: center;
    text-align: center;
  }

  .hero-photo {
    width: 160px;
  }

  .hero-text h1 {
    font-size: 26px;
  }

  .hero-text ul {
    text-align: left;
  }

  .hero-links {
    justify-content: center;
  }

  .metrics {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .embed-row {
    grid-template-columns: 1fr;
  }

  .entry-header {
    flex-wrap: wrap;
  }

  .entry-dots {
    display: none;
  }

  .entry-date {
    width: 100%;
  }

  footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .metrics {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .hero-photo {
    width: 140px;
  }
}
