:root {
  color-scheme: dark;
  --background: #000000;
  --foreground: #f4f4f6;
  --muted-foreground: #9ca3af;
  --muted-darker: #6b7280;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --primary: #f4f4f6;
  --primary-foreground: #000000;
  --font-display: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background-color: #000000;
  color: var(--foreground);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Site Container matching main site */
.site-container {
  max-width: 72rem; /* 1152px */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Fixed Floating Header — identical to main site */
.header-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1rem 1rem 0;
  pointer-events: none;
}

.header-fixed nav {
  pointer-events: auto;
}

.nav-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 72rem;
  margin: 0 auto;
  border-radius: 9999px;
  padding: 0.625rem 1.25rem;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

/* Always show border on sub-pages (no "transparent at top" needed) */
.nav-pill.scrolled,
.nav-pill.always-visible {
  border-color: var(--border-strong);
  background-color: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
}

/* Brand logo: exact match to main site */
.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  color: var(--foreground);
  text-decoration: none;
  transition: opacity 0.25s;
}

.brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.45rem;
}

.brand-logo:hover {
  opacity: 0.75;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

/* Exact font-size match to main site (0.8125rem) */
.nav-links a {
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--foreground);
}

.nav-cta-btn {
  display: none;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 0.5rem 1rem;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s;
}

@media (min-width: 640px) {
  .nav-cta-btn {
    display: inline-flex;
  }
}

.nav-cta-btn:hover {
  opacity: 0.85;
}

.nav-cta-btn .arrow {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-cta-btn:hover .arrow {
  transform: translateX(3px);
}

/* Mobile Menu Button — identical to main site */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.hamburger-line {
  position: absolute;
  left: 0;
  width: 1rem;
  height: 1px;
  background-color: var(--foreground);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), top 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-dropdown {
  max-width: 72rem;
  margin: 0.5rem auto 0;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background-color: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 1.5rem;
  pointer-events: auto;
  animation: fadeInDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* btn-primary for mobile dropdown */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border-radius: 9999px;
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 0.875rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.25s, transform 0.25s;
}

.btn-primary:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.btn-primary .arrow {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover .arrow {
  transform: translateX(4px);
}

/* Typography Scale */
.display-lg {
  font-size: clamp(2.2rem, 5.2vw, 4.2rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

/* Hero Section */
.about-hero {
  padding-top: 7.5rem;
  padding-bottom: 4rem;
}

.hero-lede {
  margin-top: 2rem;
  max-width: 44rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #c4c4ca;
}

/* Sections */
.site-section {
  border-top: 1px solid var(--border);
  padding-top: 4rem;
  padding-bottom: 4.5rem;
}

/* Founder Showcase */
.founder-layout {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: start;
}

.founder-photo-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  flex-shrink: 0;
}

.founder-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  display: block;
  background-color: #121212;
}

.founder-meta h2 {
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

.founder-title-badge {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-top: 0.35rem;
}

.founder-bio {
  margin-top: 1.25rem;
  max-width: 46rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #d1d5db;
}

.competency-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.competency-pill {
  font-size: 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  color: #e4e4e7;
  background: rgba(255, 255, 255, 0.02);
}

.founder-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  font-size: 0.85rem;
}

.action-link {
  color: var(--muted-foreground);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.action-link:hover {
  color: var(--foreground);
  border-color: var(--foreground);
}

/* Philosophy Rows (Matching the homepage SERVICES / PROCESS rhythm) */
.philosophy-grid {
  margin-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.philosophy-row {
  display: grid;
  grid-template-columns: 3.5rem 1fr 1.6fr;
  gap: 2rem;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.philosophy-num {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--muted-darker);
  font-variant-numeric: tabular-nums;
}

.philosophy-title {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--foreground);
}

.philosophy-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}

/* CTA Section */
.about-cta {
  border-top: 1px solid var(--border);
  padding-top: 5rem;
  padding-bottom: 6rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border-radius: 9999px;
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 0.875rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: opacity 0.2s, transform 0.2s;
  margin-top: 2rem;
}

.btn-primary:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.btn-primary .arrow {
  transition: transform 0.2s ease;
}

.btn-primary:hover .arrow {
  transform: translateX(4px);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding-top: 3.5rem;
  padding-bottom: 4rem;
  font-size: 0.8rem;
  color: var(--muted-darker);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-nav a {
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--foreground);
}

/* Responsive */
@media (max-width: 768px) {
  .about-hero {
    padding-top: 6rem;
    padding-bottom: 3rem;
  }
  .founder-layout {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .founder-photo {
    width: 110px;
    height: 110px;
  }
  .founder-photo-wrapper {
    width: 110px;
    height: 110px;
  }
  .philosophy-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1.75rem 0;
  }
  .philosophy-num {
    display: none;
  }
}
