/* Family-page specific styles */

.fam-hero {
  position: relative;
  min-height: 80vh;
  padding: 32px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.fam-hero-coords {
  position: absolute;
  top: 24px;
  left: 32px;
  right: 32px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  text-transform: uppercase;
  z-index: 3;
}
.fam-hero-coords span:nth-child(2) { color: var(--fc); }

.fam-hero-sigil {
  position: absolute;
  right: -5%;
  top: 0;
  bottom: 0;
  width: 60%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
}
.fam-hero-sigil svg { width: 100%; height: 100%; }

.fam-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
  padding-top: 100px;
  padding-bottom: 80px;
}
.fam-hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 8vw, 128px);
  line-height: 0.94;
  letter-spacing: -0.025em;
  max-width: 16ch;
}
.fam-hero-title em { font-style: italic; color: var(--fc); }
.fam-hero-lede {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink-dim);
  max-width: 58ch;
  line-height: 1.6;
  margin-top: 32px;
}
.fam-hero-stats {
  position: relative; z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.fam-hero-stats > div {
  padding: 8px 16px 8px 0;
  border-right: 1px solid var(--line-soft);
}
.fam-hero-stats > div:last-child { border-right: 0; }
.fam-hero-stats .k {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 6px;
}
.fam-hero-stats .v { font-size: 14px; color: var(--ink); }

/* Product blocks */
.prod-big {
  border-top: 1px solid var(--line);
  padding: 64px 32px;
  max-width: 1440px;
  margin: 0 auto;
}
.prod-big:first-of-type { border-top: 0; }
.prod-big-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 40px;
}
.prod-big-status {
  display: inline-flex; align-items: center; gap: 8px; color: var(--fc);
}
.prod-big-status .d {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--fc); animation: pulse 1.8s infinite;
}
.prod-big-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.prod-big h3 {
  font-family: var(--serif);
  font-size: clamp(48px, 5vw, 88px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.prod-big-role {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fc);
  margin-top: 16px;
}
.prod-big-blurb {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.35;
  color: var(--ink);
  margin-top: 24px;
  max-width: 34ch;
}
.prod-big-details {
  list-style: none;
  border-top: 1px solid var(--line);
}
.prod-big-details li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--ink-dim);
  line-height: 1.5;
  display: flex;
  gap: 10px;
}
.prod-big-details li::before {
  content: '›'; color: var(--fc); flex-shrink: 0;
}

/* Surface samples */
.prod-sample {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 20px;
  font-family: var(--mono);
  font-size: 11px;
  min-height: 180px;
}
.sample-term .ln {
  color: var(--ink-dim);
  line-height: 1.7;
  font-size: 11px;
  white-space: pre;
}
.sample-term .ln:first-child { color: var(--fc); }
.sample-meter { padding: 24px 0; }
.sample-meter .mtr {
  height: 4px; background: var(--line); margin-bottom: 12px;
}
.sample-meter .mtr-fill {
  height: 100%; background: var(--fc);
  box-shadow: 0 0 10px var(--fc);
  animation: grow 2s ease-out;
}
@keyframes grow { from { width: 0; } }
.sample-meter .mtr-lbl {
  display: flex; justify-content: space-between;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mute);
}
.sample-svg { width: 100%; height: 80px; }

/* Family switcher footer */
.fam-nav {
  max-width: 1440px;
  margin: 0 auto;
  padding: 64px 32px;
  border-top: 1px solid var(--line);
}
.fam-nav-lbl {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 24px;
}
.fam-nav-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.fam-nav-item {
  background: var(--bg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--serif);
  font-size: 32px;
  transition: all 0.2s;
}
.fam-nav-item:hover { background: var(--bg-elev); padding-left: 32px; }
.fam-nav-item .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--fc);
}
.fam-nav-item .arw {
  margin-left: auto;
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 14px;
}

/* Section dividers */
.fam-section-head {
  max-width: 1440px;
  margin: 0 auto;
  padding: 96px 32px 32px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
}
.fam-section-head .tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fc);
  display: flex; align-items: center; gap: 10px;
  padding-top: 12px;
}
.fam-section-head .tag::before {
  content: ''; width: 24px; height: 1px; background: var(--fc);
}
.fam-section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 1;
  letter-spacing: -0.015em;
  max-width: 18ch;
}
.fam-section-head h2 em { font-style: italic; color: var(--fc); }

/* Architecture diagram wrapper */
.archi {
  max-width: 1440px;
  margin: 0 auto 96px;
  padding: 0 32px;
}
.archi-box {
  border: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 48px;
  position: relative;
}
.archi-label {
  position: absolute;
  top: -1px; left: 32px;
  background: var(--bg);
  padding: 0 12px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  transform: translateY(-50%);
}
