/* ============================================
   General Resilience — Light Theme
   ============================================ */

:root {
  --color-bg: #ffffff;
  --color-surface: #f7f7f7;
  --color-surface-2: #efefef;
  --color-border: rgba(0, 0, 0, 0.07);
  --color-border-light: rgba(0, 0, 0, 0.12);
  --color-text: #111111;
  --color-text-muted: #666666;
  --color-text-subtle: #999999;
  --color-accent: #111111;
  --color-accent-hover: #333333;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

a, button {
  cursor: none;
}

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

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

/* Custom Cursor */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.8);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, background 0.25s ease;
  mix-blend-mode: normal;
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out), border-color 0.3s ease;
}

.cursor.hovering {
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.04);
}

.cursor-glow.hovering {
  width: 56px;
  height: 56px;
  border-color: rgba(0, 0, 0, 0.2);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.75rem 0;
  box-shadow: 0 1px 0 var(--color-border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.logo-icon {
  width: 32px;
  height: 32px;
}

.nav-logo-img {
  height: 28px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  transition: color 0.3s ease;
  font-weight: 400;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-text);
  transition: width 0.3s var(--ease-out);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--color-text-muted);
  transition: color 0.3s ease, transform 0.3s var(--ease-out);
}

.mobile-link:hover {
  color: var(--color-text);
  transform: translateX(8px);
}

/* ============================================
   Hero
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
  background: var(--color-bg);
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-label {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out) 0.3s forwards;
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  color: var(--color-text);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s var(--ease-out) 0.5s forwards;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 580px;
  font-weight: 300;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out) 0.8s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text-subtle);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0;
  animation: fadeIn 1s ease 1.4s forwards;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--color-text-subtle), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-body);
  border-radius: 100px;
  cursor: none;
  transition: all 0.3s var(--ease-out);
  border: none;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out) 1s forwards;
}

.btn-primary {
  background: var(--color-accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* ============================================
   Sections
   ============================================ */

.section {
  padding: 7rem 0;
}

.section-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-subtle);
  padding-top: 0.5rem;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.section-intro {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 600px;
  font-weight: 300;
}

/* About */
.section-about {
  border-top: 1px solid var(--color-border);
}

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

.about-text .text-large {
  font-size: 1.2rem;
  color: var(--color-text);
  line-height: 1.7;
}

/* Founder Feature */
.section-founder {
  padding: 6rem 0;
  background: var(--color-surface);
}

.founder-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 4rem;
  align-items: center;
}

.founder-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}

.founder-photo:hover {
  filter: grayscale(60%);
}

.founder-photo-color {
  filter: none;
}

.founder-photo-color:hover {
  filter: none;
}

.founder-name {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

.founder-title {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.founder-bio {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  font-weight: 300;
  margin-bottom: 1rem;
}

.founder-linkedin {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--color-text-subtle);
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

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

/* Stats */
.section-stats {
  padding: 4rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

/* Services */
.section-services {
  background: var(--color-bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--color-border);
  margin-top: 1rem;
}

.service-card {
  background: var(--color-bg);
  padding: 2.5rem;
  transition: background 0.4s ease;
}

.service-card:hover {
  background: var(--color-surface);
}

.service-number {
  font-size: 0.75rem;
  color: var(--color-text-subtle);
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  transition: color 0.3s ease;
}

.service-card:hover .service-number {
  color: var(--color-text-muted);
}

.service-title {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 0.85rem;
  line-height: 1.35;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  font-weight: 300;
}

/* Mission */
.section-mission {
  padding: 7rem 0;
  background: var(--color-text);
}

.mission-quote,
.mission-statement {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.03em;
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
  color: #ffffff;
}

.mission-statement em {
  font-style: italic;
  font-weight: 300;
}

/* ============================================
   Team Page
   ============================================ */

.team-hero {
  padding: 10rem 0 4rem;
  background: var(--color-bg);
}

.team-hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
}

.team-hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 600px;
  font-weight: 300;
}

.section-team-page {
  padding: 2rem 0 6rem;
}

.team-member {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
  padding: 3rem 0;
}

img.team-member-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}

img.team-member-photo:hover {
  filter: grayscale(60%);
}

.team-member-name {
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.team-member-role {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  font-weight: 400;
}

.team-member-bio {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  font-weight: 300;
  margin-bottom: 0.75rem;
}

.team-linkedin {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--color-text-subtle);
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

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

.team-divider {
  height: 1px;
  background: var(--color-border);
}

/* Footer */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--color-border);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.footer-brand .logo-icon {
  width: 28px;
  height: 28px;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  transition: color 0.3s ease;
}

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

.footer-copy p {
  font-size: 0.8rem;
  color: var(--color-text-subtle);
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

/* Stagger children */
.reveal-stagger .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger .reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger .reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger .reveal:nth-child(4) { transition-delay: 0.25s; }
.reveal-stagger .reveal:nth-child(5) { transition-delay: 0.3s; }
.reveal-stagger .reveal:nth-child(6) { transition-delay: 0.35s; }

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 968px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: flex; }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .founder-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

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

  .team-member {
    grid-template-columns: 160px 1fr;
    gap: 2rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .cursor, .cursor-glow {
    display: none;
  }

  body, a, button {
    cursor: auto;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 7rem 1.5rem 3rem;
  }

  .hero-title br {
    display: none;
  }

  .container {
    padding: 0 1.5rem;
  }

  .section {
    padding: 4rem 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-scroll {
    display: none;
  }

  .team-member {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .team-member-photo {
    max-width: 160px;
  }

  .team-hero {
    padding: 8rem 0 3rem;
  }
}

@media (hover: none) and (pointer: coarse) {
  .cursor, .cursor-glow {
    display: none !important;
  }

  body, a, button {
    cursor: auto;
  }
}
