:root {
  --cream: #f4f4ea;
  --cream-2: #e9ecdf;
  --forest: #1f352b;
  --forest-soft: #2c4638;
  --muted: #507867;
  --green: #7fac54;
  --teal: #449faf;
  --line: #d8dccb;
  --white: #ffffff;
  --shadow: 0 12px 40px rgba(31, 53, 43, 0.10);
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--forest);
  background:
    radial-gradient(1100px 520px at 8% -8%, rgba(127, 172, 84, 0.18), transparent 58%),
    radial-gradient(900px 480px at 108% 4%, rgba(68, 159, 175, 0.14), transparent 52%),
    var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Sora", "Inter", sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

code {
  background: rgba(80, 120, 103, 0.14);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.9em;
}

.container {
  width: min(1080px, 92%);
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

.eyebrow {
  color: var(--green);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  margin-bottom: 12px;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--muted);
}

.section-head a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
}

.section-head a:hover {
  text-decoration: underline;
}

.nav-live {
  color: var(--teal) !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem !important;
}

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(2rem, calc((100vw - 1080px) / 2));
  height: 72px;
  background: rgba(244, 244, 234, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(244, 244, 234, 0.96);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--forest);
  text-decoration: none;
}

.nav-logo {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--green), var(--forest));
  box-shadow: inset 0 0 0 4px var(--forest);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  color: var(--forest);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--teal);
}

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

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--forest);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--forest);
  color: var(--cream);
  box-shadow: 0 8px 24px rgba(31, 53, 43, 0.25);
}

.btn-primary:hover {
  background: var(--forest-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--forest);
  border: 1.5px solid var(--forest);
}

.btn-ghost:hover {
  background: rgba(31, 53, 43, 0.06);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.88rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #050a07;
}

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

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 10, 7, 0.78) 0%, rgba(5, 10, 7, 0.32) 46%, rgba(5, 10, 7, 0.08) 100%),
    linear-gradient(180deg, rgba(5, 10, 7, 0.2) 0%, rgba(5, 10, 7, 0.05) 58%, var(--cream) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 120px max(2rem, calc((100vw - 1080px) / 2)) 80px;
}

.hero-eyebrow {
  color: var(--green);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 800;
  margin-bottom: 22px;
  color: var(--cream);
}

.hero-title span {
  color: var(--green);
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: #c8d6c4;
  max-width: 540px;
  margin-bottom: 36px;
}

.hero .btn-primary {
  background: var(--green);
  color: #0d1a12;
  box-shadow: 0 8px 24px rgba(127, 172, 84, 0.28);
}

.hero .btn-primary:hover {
  background: #8fbe62;
}

.hero .btn-ghost {
  color: var(--cream);
  border-color: rgba(244, 244, 234, 0.5);
}

.hero .btn-ghost:hover {
  background: rgba(244, 244, 234, 0.08);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 8px 14px 8px 12px;
  border-radius: 999px;
  background: rgba(13, 26, 18, 0.55);
  border: 1px solid rgba(127, 172, 84, 0.38);
  color: var(--cream);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(5, 10, 7, 0.25);
}

.live-pill:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(127, 172, 84, 0.22);
  animation: live-pulse 1.8s ease-out infinite;
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(127, 172, 84, 0.4); }
  100% { box-shadow: 0 0 0 8px rgba(127, 172, 84, 0); }
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 24px;
  height: 38px;
  border: 2px solid rgba(244, 244, 234, 0.4);
  border-radius: 14px;
  z-index: 2;
}

.hero-scroll::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--green);
  animation: scroll-dot 1.6s infinite;
}

@keyframes scroll-dot {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; }
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-art {
  position: relative;
}

.network-canvas {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.7), transparent 46%),
    var(--cream-2);
  box-shadow: var(--shadow);
  cursor: crosshair;
}

.canvas-caption {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

.about-copy h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin-bottom: 18px;
}

.about-copy > p {
  color: var(--muted);
  margin-bottom: 20px;
}

.about-points {
  list-style: none;
  margin-top: 8px;
}

.about-points li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  color: var(--forest);
  font-weight: 500;
}

.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.5);
}

/* Office */
.office-stage {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #0d1a12;
  margin-bottom: 24px;
}

.office-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.office-stills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.office-stills figure {
  margin: 0;
}

.office-stills img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.office-stills figcaption {
  margin-top: 10px;
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 500;
}

@media (max-width: 820px) {
  .office-stills {
    grid-template-columns: 1fr;
  }
}

/* Canvas lesson */
.canvas-lab {
  background:
    linear-gradient(180deg, rgba(233, 236, 223, 0.55), rgba(244, 244, 234, 0.2));
  border-block: 1px solid var(--line);
}

.lesson-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.lesson-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.lesson-num {
  display: block;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 12px;
}

.lesson-card h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
}

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

/* Team */
.team {
  background: var(--cream-2);
  border-block: 1px solid var(--line);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.member-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
  backdrop-filter: blur(8px);
}

.member-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.member-avatar {
  width: 88px;
  height: 88px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--cream);
  background: var(--cream-2);
  box-shadow: 0 0 0 1px var(--line);
}

.member-avatar.has-photo {
  background: var(--cream-2);
}

.member-card h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.member-role {
  color: var(--teal);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.member-bio {
  color: var(--muted);
  font-size: 0.92rem;
}

.member-card.is-link {
  cursor: pointer;
}

.member-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
}

.member-link {
  color: var(--teal);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.member-link:hover {
  color: var(--forest);
  text-decoration: underline;
}

.member-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 53, 43, 0.6);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  max-width: 520px;
  width: 100%;
  padding: 44px 36px 36px;
  text-align: center;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: var(--cream-2);
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--forest);
}

.modal-avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--cream);
  background: var(--forest-soft);
}

.modal-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.modal-bio {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-top: 14px;
}

.modal-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
}

.modal-link:hover {
  text-decoration: underline;
}

body.modal-open {
  overflow: hidden;
}

/* Profile page */
.profile-page .profile-hero {
  padding: 128px 0 56px;
}

.profile-hero-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: center;
}

.profile-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 12%;
  border-radius: 28px;
  background: var(--cream-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.profile-intro h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 10px;
}

.profile-title {
  color: var(--teal);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.profile-affiliation {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 18px;
  max-width: 560px;
}

.profile-lede {
  font-size: 1.12rem;
  max-width: 580px;
  margin-bottom: 28px;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.profile-section h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 20px;
}

.profile-narrow {
  max-width: 760px;
}

.profile-narrow > p + p,
.profile-copy + .profile-copy {
  margin-top: 16px;
}

.profile-narrow a,
.profile-copy a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
}

.profile-narrow a:hover,
.profile-copy a:hover {
  color: var(--forest);
}

.profile-copy {
  color: var(--muted);
}

.profile-tint {
  background: var(--cream-2);
  border-block: 1px solid var(--line);
}

.profile-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.profile-cards article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}

.profile-cards h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.profile-cards p {
  color: var(--muted);
  font-size: 0.92rem;
}

.profile-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.timeline {
  list-style: none;
  border-left: 2px solid var(--line);
  padding-left: 22px;
}

.timeline li {
  position: relative;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 0.95rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--cream);
}

.timeline span {
  display: block;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.timeline strong {
  display: block;
  color: var(--forest);
  font-size: 1rem;
  margin-bottom: 4px;
}

.profile-list {
  list-style: none;
}

.profile-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 14px;
  color: var(--muted);
}

.profile-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.pub-list {
  list-style: none;
  display: grid;
  gap: 22px;
}

.pub-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.pub-list strong {
  display: block;
  margin-bottom: 6px;
}

.pub-list span {
  display: block;
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 8px;
}

.pub-list a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
}

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

.profile-close .profile-actions {
  justify-content: center;
  margin-top: 24px;
}

@media (max-width: 820px) {
  .profile-hero-grid,
  .profile-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

/* Contact */
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 56px 40px;
}

.contact-form {
  max-width: 480px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--forest-soft);
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--cream);
  color: var(--forest);
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(127, 172, 84, 0.18);
}

.contact-form .btn {
  justify-self: start;
  margin-top: 4px;
}

.form-note {
  font-size: 0.9rem;
  color: var(--teal);
  font-weight: 600;
  min-height: 1.4em;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  background: var(--cream);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

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

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 820px) {
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    background: var(--cream);
    padding: 16px 24px 22px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }

  .nav-links.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .contact-card {
    padding: 40px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll::before,
  .live-dot { animation: none; }
}
