/* ── VARIABLES ── */
:root {
  --white:   #ffffff;
  --off:     #f8f7f4;
  --border:  #e8e5de;
  --muted:   #9a9488;
  --ink:     #1a1a18;
  --forest:  #1b4a30;
  --leaf:    #2d8a5e;
  --leaf-lt: #e8f5ee;
  --amber:   #c8871a;
  --amber-lt:#fdf3e0;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
}

/* ── NAVBAR ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  min-height: 76px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(26,26,24,0.06);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  flex-shrink: 0;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-brand-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--forest);
  letter-spacing: 0.02em;
}

.nav-brand-subtitle {
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 4px;
  white-space: nowrap;
}

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

.nav-links a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* Hamburger Button - hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--forest);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--forest);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 4px;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--leaf);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--forest);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 4px;
  border: 1.5px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}

.btn-ghost:hover {
  border-color: var(--leaf);
  color: var(--leaf);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--leaf);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 11px 22px;
  border-radius: 4px;
  border: 1.5px solid var(--leaf);
  transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
  background: var(--leaf);
  color: #fff;
}

.project-detail-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 1.4rem;
  background: var(--forest);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 4px;
  transition: background 0.2s, transform 0.2s;
}

.project-detail-btn:hover {
  background: var(--leaf);
  transform: translateY(-2px);
}

/* ── SHARED SECTION STYLES ── */
section { padding: 90px 5vw; }

.section-eyebrow,
.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-eyebrow::before,
.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1.5px;
  background: var(--leaf);
  flex-shrink: 0;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.section-footer {
  margin-top: 2.5rem;
  text-align: center;
}

.text-center { text-align: center; }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 5vw 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 700px;
  animation: fadeUp 0.7s ease both;
}

.hero-badge {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--amber-lt);
  border: 1px solid #f0d9a0;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 1.8rem;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
  color: var(--forest);
}

.brand-rich { color: var(--forest); }
.brand-dash { color: var(--leaf); }
.brand-ne   { color: var(--leaf); }

.hero-full-name {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(26,26,24,0.6);
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  max-width: 800px;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  animation: fadeUp 0.7s ease 0.2s both;
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px;
  background: var(--off);
  transition: background 0.2s;
}

.stat-item:hover { background: var(--leaf-lt); }

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--forest);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-plus {
  font-size: 1.4rem;
  color: var(--leaf);
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-align: center;
  line-height: 1.3;
}

.stat-divider {
  width: 1px;
  align-self: stretch;
  background: var(--border);
  flex-shrink: 0;
}

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

/* ── ABOUT ── */
#about {
  background: var(--off);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6vw;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.about-left p {
  font-size: 0.97rem;
  line-height: 1.8;
  color: rgba(26,26,24,0.7);
  margin-bottom: 1rem;
}

.about-left p strong {
  color: var(--forest);
  font-weight: 600;
}

.about-left .btn-outline { margin-top: 0.5rem; }

.about-right {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
}

.focus-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--forest);
  background: var(--leaf-lt);
  border: 1px solid #c4e6d4;
  padding: 6px 14px;
  border-radius: 4px;
}

/* ── PROJECTS ── */
#projects { background: var(--white); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  max-width: 1100px;
}

.project-card {
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 26px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.project-card:hover {
  border-color: var(--leaf);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(45,138,94,0.08);
}

.project-index {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.project-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 0.7rem;
  line-height: 1.35;
}

.project-card p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(26,26,24,0.55);
}

.project-tags {
  display: flex;
  gap: 6px;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

.project-tags span {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--leaf);
  border: 1px solid #c4e6d4;
  padding: 4px 10px;
  border-radius: 3px;
  background: var(--leaf-lt);
}

/* ── MEMBERS ── */
#members {
  background: var(--off);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.members-list {
  margin-top: 2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  max-width: 900px;
}

.member-row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 20px 24px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.member-row:last-child { border-bottom: none; }
.member-row:hover { background: var(--leaf-lt); }

.member-abbr {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--leaf);
  font-weight: 700;
  white-space: nowrap;
}

.member-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--forest);
  line-height: 1.4;
}

.member-type {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ── CTA ── */
#cta { background: var(--white); }

.cta-box {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 60px 48px;
}

.cta-box .section-eyebrow { justify-content: center; }
.cta-box .section-title   { margin-bottom: 1rem; }

.cta-box p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(26,26,24,0.6);
  margin-bottom: 2rem;
}

/* ── FOOTER ── */
footer {
  background: var(--forest);
  color: rgba(255,255,255,0.6);
  padding: 60px 5vw 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3vw;
  max-width: 1100px;
  margin: 0 auto 24px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.04em;
  margin-bottom: 0.9rem;
}

.footer-brand-name span { color: #7fd4a8; }

.footer-brand p {
  font-size: 0.83rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
  max-width: 260px;
  margin-bottom: 1.2rem;
}

.footer-contact-item {
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.4rem;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.footer-contact-item a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact-item a:hover { color: #7fd4a8; }

.footer-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7fd4a8;
  margin-bottom: 1.1rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.55rem; }

.footer-col ul a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul a:hover { color: #fff; }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── RESPONSIVE : 900px ── */
@media (max-width: 900px) {

  /* Nav stays single row on tablet */
  nav {
    padding: 0 4vw;
    min-height: 70px;
    flex-wrap: nowrap;
    gap: 1rem;
  }

  .nav-brand-title    { font-size: 1.2rem; }
  .nav-brand-subtitle { font-size: 0.56rem; }

  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
    padding: 6px 0;
  }

  .nav-links a { font-size: 0.72rem; }

  #hero { padding-top: 120px; }

  .hero-stats {
    flex-wrap: wrap;
    border-radius: 8px;
    border: 1px solid var(--border);
  }

  .stat-item   { flex: 1 0 40%; }
  .stat-divider { display: none; }

  .about-wrap      { grid-template-columns: 1fr; gap: 2rem; }
  .projects-grid   { grid-template-columns: 1fr 1fr; }
  .member-row      { grid-template-columns: 100px 1fr; }
  .member-type     { display: none; }

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

/* ── RESPONSIVE : 600px (mobile) ── */
@media (max-width: 600px) {

  /* ── Section padding ── */
  section {
    padding: 70px 5vw;
    scroll-margin-top: 64px;
  }

  #hero { padding-top: 80px; }

  /* ── Navbar: single row with hamburger ── */
  nav {
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 4vw !important;
    min-height: 64px !important;
    gap: 0 !important;
  }

  .nav-brand          { justify-content: flex-start; }
  .nav-brand-subtitle { display: none; }

  .nav-brand img {
    width: 46px;
    height: 46px;
  }

  .nav-brand-title { font-size: 1.1rem; }

  /* Show hamburger on mobile */
  .nav-toggle { display: flex !important; }

  /* Hide nav links by default; show when .open added by JS */
  .nav-links {
    display: none !important;
    position: fixed !important;
    top: 64px !important;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column !important;
    align-items: center !important;
    padding: 20px 0 !important;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(26,26,24,0.08);
    gap: 1rem !important;
    z-index: 99;
    list-style: none !important;
  }

  .nav-links.open { display: flex !important; }

  .nav-links a {
    font-size: 0.88rem !important;
    padding: 6px 0;
  }

  /* ── Rest of mobile layout ── */
  .projects-grid  { grid-template-columns: 1fr; }
  .hero-stats     { flex-direction: column; }
  .stat-item      { width: 100%; }
  .cta-box        { padding: 40px 24px; }
  .member-row     { grid-template-columns: 1fr; gap: 0.4rem; }
  .footer-grid    { grid-template-columns: 1fr; }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
}
