/* ─── TOKENS ─────────────────────────────────────────────────── */
:root {
  --bg:       #ECF1F5;
  --surface:  #e2e8ed;
  --border:   #C1CED9;
  --accent:   #485F66;
  --brand:    #293740;
  --text:     #131313;
  --text-2:   #485F66;
  --text-3:   #7a8f98;
  --white:    #ffffff;
  --f:        'Manrope', system-ui, sans-serif;
  --radius:   6px;
  --ease:     cubic-bezier(.25,.46,.45,.94);
}

/* ─── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--f);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
p + p { margin-top: .85rem; }

/* ─── LAYOUT ─────────────────────────────────────────────────── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}
.section-alt { background: var(--surface); }

/* ─── TYPE SCALE ─────────────────────────────────────────────── */
h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.025em;
  color: var(--brand);
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--brand);
  margin-bottom: .6rem;
}
h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: .35rem;
  letter-spacing: -.01em;
}
p { font-weight: 400; color: var(--text-2); font-size: .95rem; line-height: 1.8; }
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: .85rem;
}
.eyebrow::before {
  content: '';
  display: block; width: 18px; height: 1px;
  background: var(--accent);
}
.section-sub {
  font-size: .95rem; font-weight: 400;
  color: var(--text-2); max-width: 540px;
  margin-top: .35rem; margin-bottom: 2.75rem;
}

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f); font-size: .875rem; font-weight: 600;
  padding: 11px 22px; border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: background .15s, border-color .15s, color .15s;
  cursor: pointer; letter-spacing: .01em;
}
.btn-primary { background: var(--brand); color: var(--bg); }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand); }

/* ─── NAV ────────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(236,241,245,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 58px; gap: 1.5rem;
}
.nav-logo {
  display: flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 700; color: var(--brand);
  white-space: nowrap; flex-shrink: 0;
}
.nav-links {
  display: flex; list-style: none; align-items: center; gap: .25rem;
}
.nav-links a {
  font-size: 13px; font-weight: 500; color: var(--text-2);
  padding: 6px 12px; border-radius: var(--radius);
  transition: background .12s, color .12s;
}
.nav-links a:hover { background: var(--surface); color: var(--brand); }
.nav-cta {
  background: var(--brand) !important; color: var(--bg) !important;
  padding: 7px 16px !important; border-radius: var(--radius) !important;
}
.nav-cta:hover { background: var(--accent) !important; }
.nav-toggle {
  display: none; flex-direction: column; gap: 4px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--brand); border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* ─── HERO ───────────────────────────────────────────────────── */
#hero {
  border-bottom: 1px solid var(--border);
  padding: 5rem 0;
}
#hero .container {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center;
}
.hero-content { max-width: 520px; }
.hero-content h1 { margin-bottom: 1.1rem; }
.hero-sub {
  font-size: 1rem; color: var(--text-2);
  max-width: 440px; margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-visual svg { width: 100%; max-width: 400px; margin: 0 auto; }

/* ─── ABOUT ──────────────────────────────────────────────────── */
.two-col {
  display: grid; grid-template-columns: 1fr 1.6fr;
  gap: 4rem; align-items: start;
}
.about-body {}
.about-stats {
  display: flex; gap: 2rem; margin-top: 2rem; padding-top: 2rem;
  border-top: 1px solid var(--border); flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 1.8rem; font-weight: 800; color: var(--brand); letter-spacing: -.02em; line-height: 1; }
.stat-label { font-size: 11px; font-weight: 600; color: var(--text-3); letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; }

/* ─── CARDS ──────────────────────────────────────────────────── */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.card {
  background: var(--surface); padding: 1.75rem 1.5rem;
  transition: background .15s;
}
.card:hover { background: #d8e0e6; }
.card-icon {
  width: 36px; height: 36px; border-radius: 5px;
  background: var(--bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin-bottom: 1rem;
}
.card-freq {
  font-size: 11px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .5rem;
}
.card h3 { margin-bottom: .4rem; }
.card p { font-size: .875rem; }

/* ─── PROJECTS ───────────────────────────────────────────────── */
.projects-list { display: flex; flex-direction: column; }
.project-row {
  display: grid; grid-template-columns: 130px 1fr 80px;
  gap: 2rem; align-items: start;
  padding: 2rem 0; border-bottom: 1px solid var(--border);
}
.project-row:last-child { border-bottom: none; }
.project-meta { display: flex; flex-direction: column; gap: .5rem; }
.project-domain {
  font-size: 11px; font-weight: 600; color: var(--text-3);
  letter-spacing: .07em; text-transform: uppercase;
}
.status {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 3px;
}
.status-prototype { background: #dff0e8; color: #1e5c38; }
.status-research { background: #e8eef2; color: #2c4a54; }
.status-testing { background: #fef3e0; color: #7a4d00; }
.status-deployment { background: #e0e8ff; color: #1e2e80; }
.project-body h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.project-stack {
  margin-top: .75rem; font-size: .8rem; font-weight: 600;
  color: var(--text-3); letter-spacing: .03em;
}
.avatar-group { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.avatar {
  width: 32px; height: 32px; border-radius: 4px;
  background: var(--brand); color: var(--bg);
  font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: .02em;
}

/* ─── TEAM ───────────────────────────────────────────────────── */
.team-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.team-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  display: flex; gap: 1.25rem;
}
.team-avatar {
  width: 44px; height: 44px; border-radius: 5px; flex-shrink: 0;
  background: var(--brand); color: var(--bg);
  font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.team-role { font-size: .8rem; font-weight: 600; color: var(--accent); margin-bottom: .5rem; }
.team-bio { font-size: .85rem; color: var(--text-2); line-height: 1.65; }
.team-proj {
  font-size: .78rem; font-weight: 600; color: var(--text-3);
  margin-top: .75rem; padding-top: .75rem;
  border-top: 1px solid var(--border);
}

/* ─── JOIN ───────────────────────────────────────────────────── */
.join-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: start;
}
.join-left h2 { margin-bottom: .75rem; }
.join-left p { margin-bottom: .85rem; }
.join-left .btn { margin-top: .5rem; }
.join-note { font-size: 11px; color: var(--text-3); margin-top: .6rem !important; }
.join-right h3 { margin-bottom: 1.25rem; font-size: 1rem; }
.social-links { display: flex; flex-direction: column; gap: .5rem; }
.social-link {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: .875rem; font-weight: 500;
  color: var(--brand); transition: border-color .15s, background .15s;
}
.social-link:hover { border-color: var(--brand); background: var(--surface); }
.social-link svg { color: var(--accent); flex-shrink: 0; }

/* ─── FOOTER ─────────────────────────────────────────────────── */
footer {
  background: var(--brand); padding: 2rem 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .5rem;
}
.footer-name { font-size: 12px; font-weight: 700; color: var(--bg); letter-spacing: .04em; }
.footer-note { font-size: 12px; color: rgba(193,206,217,.6); font-weight: 400; }

/* ─── REVEAL ─────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .07s; }
.delay-2 { transition-delay: .14s; }
.delay-3 { transition-delay: .21s; }
.delay-4 { transition-delay: .28s; }
.delay-5 { transition-delay: .35s; }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  #hero .container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .team-grid { grid-template-columns: 1fr; }
  .join-inner { grid-template-columns: 1fr; gap: 3rem; }
  .project-row { grid-template-columns: 1fr; gap: .75rem; }
  .avatar-group { flex-direction: row; justify-content: flex-start; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 58px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem; gap: .25rem; z-index: 100;
  }
  .nav-toggle { display: flex; }
}
@media (max-width: 600px) {
  section { padding: 3.5rem 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .about-stats { gap: 1.5rem; }
}
