@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --bg-dark: #0d0d0c;
  --bg-card: #151514;
  --text-main: #f3f0ea;
  --text-muted: #aaa7a0;
  --border: #2b2a27;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-sans: "Inter", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.7;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  animation: page-fade-in 700ms ease-out both;
}

@keyframes page-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
  }
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navigation */
nav {
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  letter-spacing: 0;
  text-decoration: none;
  color: var(--text-main);
}
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
}
.nav-links a.btn,
.nav-links a.btn:hover,
.nav-links a.btn.active {
  color: var(--bg-dark);
  transition: opacity 0.2s ease;
}
.nav-links a.btn:hover,
.nav-links a.btn.active:hover {
  opacity: 0.9;
}

.menu-toggle {
  display: none;
}

.mobile-menu {
  display: none;
}

.btn.hero-contact {
  display: none;
}

a {
  transition:
    opacity 0.2s ease,
    color 0.2s ease,
    text-decoration-color 0.2s ease;
}

/* Typography & Labels */
.display-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0;
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1.2;
}

.text-muted {
  color: var(--text-muted);
}

/* Layouts */
section {
  padding: 5.5rem 0;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  padding-top: 10rem;
  align-items: start;
}

.split-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

.why-copy {
  max-width: 720px;
}

.why-copy p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.why-copy p:last-child {
  margin-bottom: 0;
}

.why-copy .why-lead {
  color: var(--text-main);
  font-size: 1.2rem;
}

.about-portrait {
  border-bottom: none;
  padding-top: 0;
}

.about-portrait .founder-portrait {
  max-width: 280px;
}

.founder-portrait {
  margin: 0;
}

.founder-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(100%);
}

.founder-portrait figcaption {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.founder-email {
  display: inline-block;
  margin-top: 0.35rem;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 1rem;
  text-decoration: none;
}

.about-story {
  display: block;
  border-bottom: none;
}

.about-copy {
  max-width: 680px;
}

.about-copy p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-copy .about-lead {
  color: var(--text-main);
  font-size: 1.2rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2.5rem;
}

.card h3,
.card h4 {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Buttons & CTAs */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--text-main);
  color: var(--bg-dark);
  padding: 0.85rem 1.75rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  margin-top: 1.5rem;
  transition: opacity 0.2s ease;
}

.btn:hover {
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    padding-top: 4rem;
  }

  .founder-portrait {
    max-width: 280px;
  }

  .about-story {
    gap: 2rem;
  }

  .hero-grid,
  .split-row {
    grid-template-columns: 1fr;
  }

  .btn.hero-contact {
    display: inline-flex;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    position: relative;
    z-index: 50;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    width: 2.75rem;
    height: 2.75rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0;
    cursor: pointer;
  }

  .brand {
    position: relative;
    z-index: 50;
  }

  .menu-toggle span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1.2rem;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transform-origin: center;
    transition:
      transform 0.2s ease,
      opacity 0.2s ease;
  }

  .menu-toggle span:nth-child(1) {
    transform: translate(-50%, calc(-50% - 0.475rem));
  }

  .menu-toggle span:nth-child(2) {
    transform: translate(-50%, -50%);
  }

  .menu-toggle span:nth-child(3) {
    transform: translate(-50%, calc(-50% + 0.475rem));
  }

  nav.menu-open .menu-toggle span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  nav.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  nav.menu-open .menu-toggle span:nth-child(3) {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    background: var(--bg-dark);
    padding: 2rem 2rem 4rem;
    width: 100vw;
    height: 100vh;
  }

  nav.menu-open .mobile-menu {
    display: flex;
  }

  .mobile-menu a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 4.5rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
    transition:
      color 0.2s ease,
      opacity 0.2s ease;
  }

  .mobile-menu a:hover,
  .mobile-menu a.active {
    color: var(--text-main);
  }

  .mobile-menu .btn {
    display: inline-flex;
    width: fit-content;
    min-height: auto;
    margin-top: 1rem;
    padding: 0.85rem 1.75rem;
    border-bottom: none;
    color: var(--bg-dark);
    background: var(--text-main);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    transition:
      color 0.2s ease,
      opacity 0.2s ease;
  }

  .mobile-menu .btn:hover {
    color: var(--bg-dark);
    opacity: 0.9;
  }

  body.menu-open {
    overflow: hidden;
  }
}
