/* ============================================================
   RESET — box-sizing, margin, padding wipe
   ============================================================ */
*, *::before,
 *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ============================================================
   DESIGN TOKENS — global CSS variables (colors, etc.)
   ============================================================ */
:root {
  --ink: #0e1117;
  --ink-soft: #3a3f4b;
  --ink-faint: #7a818f;
  --rule: #dde1e8;
  --bg: #f9fafb;
  --white: #ffffff;
  --accent: #0000CC;
  --accent-light: #e8effe;
}

/* ============================================================
   BASE — html & body defaults
   ============================================================ */
html {
    scroll-behavior: smooth;
}

body{
    font-family: 'DM Sans',sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
}

/* ============================================================
   NAV — sticky top navigation bar
   ============================================================ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(249, 250, 251, 0.93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  height: 100px;
  width: auto;
  display: block;
}


.nav-brand {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.nav-brand span {
  color: var(--accent);
}

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

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

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

/* ============================================================
   HERO — full-height landing section with headline & CTA
   ============================================================ */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6rem 5vw;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 55% at 58% 42%, #e8effe 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 540px;
  position: relative;
  flex-shrink: 0;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid #c7d7fd;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.8rem;
}

h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 1rem;
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 540px;
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn-primary {
  background: var(--accent);
  color: var(--white);
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: 1.5px solid var(--accent);
  transition: background 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  background: #0000aa;
  box-shadow: 0 4px 16px rgba(26, 86, 219, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: 1.5px solid var(--rule);
  transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================================
   SHARED SECTION LAYOUT — h2, section-label, section-intro
   ============================================================ */
h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.section-intro {
  font-size: 1rem;
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 640px;
  line-height: 1.8;
  margin: 0 auto 3rem;
}

/* ============================================================
   TEAM — grid of member cards with headshots, roles & bios
   ============================================================ */
#team {
  padding: 6rem 5vw;
  border-top: 1px solid var(--rule);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

#photo-showcase {
  padding: 6rem 5vw;
  border-top: 1px solid var(--rule);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.team-card {
  background: var(--white);
  border: 1.5px solid var(--rule);
  border-radius: 10px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: box-shadow 0.25s, border-color 0.25s;
}

.team-card:hover {
  box-shadow: 0 6px 32px rgba(14, 17, 23, 0.13);
  border-color: #c7d7fd;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-light);
  border: 2px solid #c7d7fd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 auto 1rem;
}

.headshot {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #c7d7fd;
  display: block;
  margin: 0 auto 1rem;
}

.team-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.team-card .role {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.team-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.team-card ul li {
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 300;
}

.bio {
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-bottom: 0.75rem;
}

.team-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.team-links a {
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.team-links a:hover {
  opacity: 0.65;
}

/* ── LinkedIn link ── */
.linkedin-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.linkedin-link:hover {
  border-bottom-color: var(--accent);
}

/* ── Bio expand / collapse toggle ── */
.bio-toggle {
  margin-top: 1rem;
  background: none;
  border: 1.5px solid var(--rule);
  border-radius: 6px;
  padding: 0.4rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  width: 100%;
}

.bio-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.bio-toggle.open {
  border-color: var(--accent);
  color: var(--accent);
}

.bio-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0;
}

.bio-content.open {
  max-height: 300px;
  padding-top: 1rem;
}

.bio-content p {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.7;
  text-align: left;
}

/* ============================================================
   HERO DIAGRAM — pipeline flowchart shown beside hero text
   ============================================================ */
.hero-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pipeline {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pipe-node {
  background: var(--white);
  border: 1.5px solid var(--rule);
  border-radius: 8px;
  padding: 0.6rem 1.3rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink);
  box-shadow: 0 2px 16px rgba(14, 17, 23, 0.07);
  white-space: nowrap;
  min-width: 210px;
  text-align: center;
}

.pipe-node.accent {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.pipe-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pipe-line {
  width: 1.5px;
  height: 18px;
  background: linear-gradient(to bottom, var(--rule), var(--accent));
}

.pipe-label {
  font-size: 0.62rem;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 2px 0;
}

.pipe-tip {
  color: var(--accent);
  font-size: 0.65rem;
  margin-top: -2px;
}

.hero-video {
  flex: 1;
  max-width: 680px;
  min-width: 400px;
  margin-left: 3rem;
  position: relative;
  z-index: 1;
}

.hero-video-sub {
  font-size: 1rem;
  color: var(--ink-soft);
  font-weight: 300;
  text-align: center;
  margin-bottom: 1rem;
}

.hero-video-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
  line-height: 1.1;
  text-align: center;
}

.hero-icon {
  width: 100%;
  max-width: 320px;
  height: auto;
  opacity: 0.9;
}

/* hide diagram/video on small screens */
@media (max-width: 960px) {
  .hero-diagram,
  .hero-video {
    display: none;
  }
}

/* ============================================================
   OVERVIEW — mission statement, audience cards, how-it-works
   ============================================================ */
#overview {
  padding: 6rem 5vw;
  border-top: 1px solid var(--rule);
}

.overview-sub {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  margin-top: 3.5rem;
}

/* ── Audience cards ── */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.audience-card {
  background: var(--white);
  border: 1.5px solid var(--rule);
  border-radius: 10px;
  padding: 1.75rem;
  transition: box-shadow 0.25s, border-color 0.25s;
}

.audience-card:hover {
  box-shadow: 0 6px 32px rgba(14, 17, 23, 0.1);
  border-color: #c7d7fd;
}

.audience-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.audience-card p {
  font-size: 0.875rem;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.7;
}

/* ── What-it-is callout ── */
.overview-callout {
  display: grid;
  grid-template-columns: 22% 1fr;
  gap: 4rem;
  padding: 3rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-top: 3.5rem;
}

.overview-callout .overview-sub {
  margin-top: 0.35rem;
}

.overview-callout-right p {
  font-size: 1.05rem;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.9;
  max-width: 640px;
}

@media (max-width: 640px) {
  .overview-callout {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* ── How-it-works steps ── */
.how-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.how-step {
  background: var(--white);
  border: 1.5px solid var(--rule);
  border-radius: 10px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, border-color 0.25s;
}

.how-step:hover {
  box-shadow: 0 6px 32px rgba(14, 17, 23, 0.1);
  border-color: #c7d7fd;
}

.step-num {
  font-family: 'DM Sans', sans-serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.step-body h4 {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.step-body p {
  font-size: 0.875rem;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.65;
}

@media (max-width: 640px) {
  .how-steps {
    grid-template-columns: 1fr;
  }
}

/* ── Architecture ── */
#architecture {
  padding: 6rem 5vw;
  border-top: 1px solid var(--rule);
}

.arch-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.arch-node {
  background: var(--white);
  border: 1.5px solid var(--rule);
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-align: center;
  box-shadow: 0 2px 16px rgba(14, 17, 23, 0.07);
}

.arch-node.accent {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.arch-arrow {
  color: var(--accent);
  font-size: 1rem;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.module-card {
  background: var(--white);
  border: 1.5px solid var(--rule);
  border-radius: 8px;
  padding: 1.5rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.module-card:hover {
  box-shadow: 0 6px 32px rgba(14, 17, 23, 0.13);
  border-color: #c7d7fd;
}

.module-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.module-card p {
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .modules-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Pipeline ── */
#pipeline {
  padding: 6rem 5vw;
  border-top: 1px solid var(--rule);
}

.pipeline-float-right {
  float: right;
  margin-left: 3rem;
  margin-bottom: 1rem;
}

.pipeline-stages {
  display: flex;
  flex-direction: column;
  max-width: 700px;
}

.stage {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}

.stage:last-child {
  border-bottom: none;
}

.stage-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  min-width: 40px;
}

.stage-body h4 {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.stage-body p {
  font-size: 0.875rem;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.65;
}

code {
  font-size: 0.78rem;
  background: var(--tag-bg);
  color: var(--tag-text);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
}

/* ── Demo ── */
#demo {
  padding: 6rem 5vw;
  border-top: 1px solid var(--rule);
}

.demo-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--rule);
  box-shadow: 0 8px 40px rgba(14, 17, 23, 0.1);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ── Resources ── */
#docs {
  padding: 6rem 5vw;
  border-top: 1px solid var(--rule);
}

#docs .section-intro,
#pipeline .section-intro,
#architecture .section-intro,
#overview .section-intro {
  margin-left: 0;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.doc-item {
  background: var(--white);
  border: 1.5px solid var(--rule);
  border-radius: 8px;
  padding: 1.4rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-decoration: none;
  transition: box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
}

.doc-item:hover {
  box-shadow: 0 6px 32px rgba(14, 17, 23, 0.13);
  border-color: #c7d7fd;
}

.doc-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 6px;
  background: var(--accent-light);
  border: 1px solid #c7d7fd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.doc-meta h4 {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.doc-meta p {
  font-size: 0.78rem;
  color: var(--ink-faint);
  font-weight: 300;
}

.doc-badge {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  align-self: center;
  white-space: nowrap;
}



/* Contributors section */
#contributors {
  padding: 80px 48px;
  max-width: 900px;
  margin: 0 auto;
}

.contributor-card {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 3rem;
  margin-top: 2.5rem;
}

.contributor-card .headshot {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.contributor-info h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.contributor-info .role {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1rem;
}

.contributor-info ul {
  font-size: 1rem;
  color: var(--ink-faint);
  padding-left: 1.1rem;
  margin-bottom: 1rem;
}

.contributor-links {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.contributor-bio {
  font-size: 1rem;
  color: var(--ink-faint);
  line-height: 1.75;
}

@media (max-width: 600px) {
  .contributor-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .contributor-links {
    justify-content: center;
  }
  .contributor-info ul {
    text-align: left;
  }
}
