/* ============================================================
   sections.css — below-the-fold content
   ============================================================ */

.section {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 9rem) var(--pad);
}

.section__head { max-width: 60ch; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 1.5rem + 4vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0.6rem 0 1rem;
  text-transform: uppercase;
}
.section__lead { color: var(--muted); font-size: clamp(1rem, 0.95rem + 0.4vw, 1.25rem); }

/* Reveal-on-scroll (toggled by IntersectionObserver) */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].in { opacity: 1; transform: none; }

/* ---------------------- For scale ---------------------- */
.facts__grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.fact {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--bg);
  transition: background-color 0.3s ease;
}
.fact:hover { background: var(--bg-soft); }
.fact__index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.fact__value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2.4rem, 1.8rem + 2.5vw, 3.4rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.fact__unit {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.fact__note { margin-top: 0.6rem; font-size: 0.92rem; color: var(--muted); }

/* ---------------------- Team ---------------------- */
.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
}
.person {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-soft) 50%, transparent);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.person:hover { border-color: var(--accent); transform: translateY(-4px); }
.person__head { display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap; }
.person__sym {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--bg);
  background: var(--accent);
  width: 2.2rem; height: 2.2rem;
  display: grid; place-items: center;
  border-radius: 8px;
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 60%, transparent);
}
.person__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1;
}
.person__role {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  width: 100%;
}
.person__bio { color: var(--text); }
.person__tags {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.person__tags li {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 0.3em 0.7em;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}
.person__link {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  width: fit-content;
  transition: gap 0.2s ease;
}
.person__link:hover { text-decoration: underline; }

/* ---------------------- Experiments ---------------------- */
.lab__grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}
.slot {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  overflow: hidden;
}
.slot::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg,
      transparent 0 11px,
      color-mix(in srgb, var(--accent) 6%, transparent) 11px 12px);
  opacity: 0.6;
}
.slot__tag {
  position: relative;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.25em 0.6em;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.slot__id {
  position: relative;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--text);
}

/* ---------------------- Footer ---------------------- */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3rem var(--pad) 4rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 1rem + 3vw, 3rem);
  letter-spacing: -0.01em;
}
.footer__dot { color: var(--accent); }
.footer__tag, .footer__meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}
.footer__row--links { font-family: var(--font-mono); font-size: 0.85rem; }
.footer__row--links a { color: var(--accent); margin-right: 1.25rem; }
.footer__row--links a:hover { text-decoration: underline; }
