/* ================================================================
   NO PERRY — cofounders-heraldic-44b.css
   Visual reforge: five equal heraldic war standards (presentation only)
   ================================================================ */

.np-cofounders {
  --cf-iron: #2a2c28;
  --cf-iron-hi: #5a5e56;
  --cf-iron-lo: #121410;
  --cf-cloth: #0e1210;
  --cf-cloth-hi: #161c18;
  --cf-cloth-lo: #080a09;
  --cf-moss: rgba(120, 148, 96, 0.55);
  --cf-moss-dim: rgba(90, 112, 74, 0.35);
  margin-top: clamp(0.75rem, 1.8vw, 1.35rem);
  padding-top: clamp(2.25rem, 4.5vw, 3.25rem);
  border-top: none;
}

.np-cofounders::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(92%, 56rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120, 148, 96, 0.35), transparent);
  pointer-events: none;
}

.np-cofounders__bg {
  opacity: 0.72;
  background:
    radial-gradient(ellipse 55% 42% at 50% 0%, rgba(28, 36, 24, 0.45), transparent 70%),
    radial-gradient(ellipse 80% 55% at 50% 100%, rgba(18, 24, 16, 0.6), transparent 72%),
    linear-gradient(180deg, rgba(4, 6, 5, 0.55) 0%, rgba(6, 8, 7, 0.94) 38%, rgba(4, 6, 5, 0.98) 100%),
    url('../assets/images/hero-no-perry-battlefield.webp') center 42% / cover no-repeat;
  filter: saturate(0.38) brightness(0.32);
}

.np-cofounders__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 78% 62%, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 44% 84%, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 100%);
  background-size: 120px 120px, 160px 160px, 140px 140px;
  opacity: 0.5;
  mix-blend-mode: screen;
}

.np-cofounders__title {
  font-family: 'Cinzel', 'Times New Roman', serif;
  letter-spacing: 0.18em;
  color: rgba(188, 204, 172, 0.96);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}

.np-cofounders__subtitle {
  color: rgba(164, 178, 150, 0.78);
  letter-spacing: 0.04em;
}

.np-cofounders__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(165deg, transparent 58%, rgba(8, 12, 8, 0.35) 58.2%, transparent 58.5%),
    linear-gradient(15deg, transparent 62%, rgba(6, 10, 8, 0.28) 62.2%, transparent 62.5%),
    radial-gradient(ellipse 8% 22% at 8% 72%, rgba(40, 48, 36, 0.22), transparent 70%),
    radial-gradient(ellipse 6% 18% at 92% 68%, rgba(40, 48, 36, 0.18), transparent 70%);
  opacity: 0.55;
  mix-blend-mode: soft-light;
}

.np-cofounders__standards {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
}

.np-cofounder-standard {
  align-items: center;
  min-height: clamp(380px, 42vw, 430px);
  border: none;
  background: transparent;
  box-shadow: none;
  text-align: center;
  transition: transform 0.24s ease, filter 0.24s ease;
}

.np-cofounder-standard:hover,
.np-cofounder-standard:focus-visible {
  border-color: transparent;
  transform: translateY(-6px);
  box-shadow: none;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.45));
}

.np-cofounder-standard:focus-visible .np-cofounder-standard__cloth {
  box-shadow:
    inset 0 0 0 1px rgba(140, 168, 120, 0.35),
    0 0 0 2px rgba(100, 128, 88, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .np-cofounder-standard,
  .np-cofounder-standard:hover,
  .np-cofounder-standard:focus-visible {
    transform: none;
    transition: none;
  }
}

.np-cofounder-standard__rig {
  position: relative;
  width: 78%;
  height: 14px;
  margin-bottom: 2px;
  flex-shrink: 0;
}

.np-cofounder-standard__chain {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 8px;
  background: linear-gradient(180deg, var(--cf-iron-lo), var(--cf-iron-hi));
  border-radius: 1px;
  opacity: 0.7;
}

.np-cofounder-standard__crossbar {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background:
    linear-gradient(180deg, var(--cf-iron-hi) 0%, var(--cf-iron) 45%, var(--cf-iron-lo) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 2px 4px rgba(0, 0, 0, 0.45);
}

.np-cofounder-standard__crossbar::before,
.np-cofounder-standard__crossbar::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  transform: translateY(-50%) rotate(45deg);
  background: linear-gradient(135deg, var(--cf-iron-hi), var(--cf-iron-lo));
  border: 1px solid rgba(0, 0, 0, 0.35);
}

.np-cofounder-standard__crossbar::before { left: -3px; }
.np-cofounder-standard__crossbar::after { right: -3px; }

.np-cofounder-standard__crossbar-spike {
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 5px solid var(--cf-iron-hi);
}

.np-cofounder-standard__cloth {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  padding: 0.55rem 0.45rem 1.35rem;
  background:
    linear-gradient(180deg, rgba(22, 28, 22, 0.95) 0%, rgba(10, 12, 10, 0.98) 55%, rgba(8, 10, 9, 1) 100%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.015) 0 1px,
      transparent 1px 5px
    );
  clip-path: polygon(
    2% 0%, 98% 0%, 100% 2%, 100% calc(100% - 22px),
    50% 100%, 0 calc(100% - 22px), 0 2%
  );
  box-shadow:
    inset 1px 0 0 rgba(120, 148, 96, 0.12),
    inset -1px 0 0 rgba(120, 148, 96, 0.12),
    inset 0 -8px 16px rgba(0, 0, 0, 0.35),
    0 10px 24px rgba(0, 0, 0, 0.38);
  transition: box-shadow 0.24s ease;
}

.np-cofounder-standard:hover .np-cofounder-standard__cloth,
.np-cofounder-standard:focus-visible .np-cofounder-standard__cloth {
  box-shadow:
    inset 1px 0 0 rgba(140, 168, 120, 0.2),
    inset -1px 0 0 rgba(140, 168, 120, 0.2),
    inset 0 -8px 18px rgba(0, 0, 0, 0.4),
    0 14px 28px rgba(0, 0, 0, 0.48);
}

.np-cofounder-standard__cloth::before {
  content: '';
  position: absolute;
  inset: 0.35rem 0.28rem auto;
  height: 38%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent);
  opacity: 0.55;
}

.np-cofounder-standard__cloth-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  text-align: center;
}

.np-cofounder-standard__rail {
  position: absolute;
  top: 0.25rem;
  bottom: 1.1rem;
  width: 3px;
  background: linear-gradient(180deg, transparent, var(--cf-moss-dim) 15%, var(--cf-moss-dim) 85%, transparent);
  opacity: 0.65;
  pointer-events: none;
}

.np-cofounder-standard__rail--left { left: 0.18rem; }
.np-cofounder-standard__rail--right { right: 0.18rem; }

.np-cofounder-standard__rune {
  position: absolute;
  top: 0.45rem;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  opacity: 0.28;
  background:
    radial-gradient(circle at 50% 40%, var(--cf-moss) 0 2px, transparent 2px),
    linear-gradient(135deg, transparent 42%, var(--cf-moss-dim) 42% 58%, transparent 58%);
  pointer-events: none;
}

.np-cofounder-standard__seal-mount {
  position: relative;
  margin: 0.65rem auto 0.5rem;
  width: clamp(72px, 7.5vw, 88px);
  height: clamp(72px, 7.5vw, 88px);
  padding: 0.35rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 35%, rgba(90, 110, 78, 0.25), rgba(12, 16, 12, 0.85) 68%),
    linear-gradient(180deg, rgba(70, 82, 62, 0.35), rgba(18, 22, 18, 0.9));
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(100, 124, 88, 0.35),
    0 4px 10px rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.24s ease, transform 0.24s ease;
}

.np-cofounder-standard:hover .np-cofounder-standard__seal-mount,
.np-cofounder-standard:focus-visible .np-cofounder-standard__seal-mount {
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(130, 158, 110, 0.45),
    0 0 14px rgba(90, 120, 72, 0.22),
    0 6px 12px rgba(0, 0, 0, 0.4);
  transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
  .np-cofounder-standard:hover .np-cofounder-standard__seal-mount,
  .np-cofounder-standard:focus-visible .np-cofounder-standard__seal-mount {
    transform: none;
  }
}

.np-cofounder-standard__crest {
  width: 100%;
  height: 100%;
  margin: 0;
}

.np-cofounder-standard__crest .np-war-portrait {
  width: 100%;
  height: 100%;
  margin: 0;
}

.np-cofounder-standard__crest .np-avatar-aperture {
  inset: 5%;
}

.np-cofounder-standard__role {
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.np-cofounder-standard__name {
  margin: 0.15rem 0.35rem 0;
  font-family: 'Cinzel', 'Times New Roman', serif;
  font-size: clamp(0.74rem, 1.05vw, 0.88rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.08em;
  font-variant: small-caps;
  color: rgba(214, 224, 204, 0.96);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.np-cofounder-standard__role {
  margin: 0.28rem 0.35rem 0;
  font-size: 0.52rem;
  letter-spacing: 0.2em;
  color: rgba(130, 158, 110, 0.82);
}

.np-cofounder-standard__stats {
  display: grid;
  gap: 0.55rem;
  width: 100%;
  margin: 0.85rem 0.25rem 0;
  padding: 0.65rem 0.35rem 0;
  border-top: 1px solid rgba(90, 112, 78, 0.28);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), transparent 40%);
}

.np-cofounder-standard__stat {
  display: grid;
  gap: 0.12rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(70, 88, 62, 0.2);
}

.np-cofounder-standard__stat:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.np-cofounder-standard__stat-value {
  font-family: 'Cinzel', 'Times New Roman', serif;
  font-size: clamp(0.82rem, 1.15vw, 0.94rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(228, 236, 216, 0.95);
  line-height: 1.1;
}

.np-cofounder-standard__stat-label {
  font-size: 0.46rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(120, 142, 108, 0.72);
}

.np-cofounder-standard__cta {
  display: block;
  margin: auto 0.35rem 0.15rem;
  padding: 0.45rem 0.55rem 0.35rem;
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(150, 176, 132, 0.85);
  background:
    linear-gradient(180deg, rgba(40, 48, 38, 0.55), rgba(16, 20, 16, 0.85));
  border: 1px solid rgba(90, 112, 78, 0.35);
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.np-cofounder-standard__finial {
  position: absolute;
  bottom: 0.15rem;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 14px;
  background:
    linear-gradient(180deg, var(--cf-iron-hi), var(--cf-iron-lo));
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  opacity: 0.75;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.4));
}

.np-cofounder-standard__pole {
  display: none;
}

/* —— Dossier overlay —— */
.np-cofounders.is-dossier-open .np-cofounders__bg {
  opacity: 0.88;
  filter: saturate(0.32) brightness(0.28);
}

.np-cofounders__overlay {
  background: rgba(3, 5, 4, 0.78);
  backdrop-filter: none;
}

.np-cofounder-dossier {
  position: relative;
  width: min(100%, 56rem);
  max-height: min(92vh, 36rem);
  overflow: auto;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid rgba(100, 124, 88, 0.38);
  background:
    linear-gradient(145deg, rgba(14, 18, 14, 0.98) 0%, rgba(8, 10, 9, 0.99) 100%),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.012) 0 1px,
      transparent 1px 4px
    );
  box-shadow:
    inset 0 0 0 1px rgba(60, 78, 54, 0.2),
    0 24px 64px rgba(0, 0, 0, 0.62);
}

.np-cofounder-dossier::before,
.np-cofounder-dossier::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(100, 124, 88, 0.35);
  pointer-events: none;
}

.np-cofounder-dossier::before {
  top: 0.45rem;
  left: 0.45rem;
  border-right: none;
  border-bottom: none;
}

.np-cofounder-dossier::after {
  bottom: 0.45rem;
  right: 0.45rem;
  border-left: none;
  border-top: none;
}

.np-cofounder-dossier__close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(100, 124, 88, 0.4);
  background: rgba(12, 16, 12, 0.92);
  color: rgba(196, 210, 178, 0.9);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.np-cofounder-dossier__layout {
  display: grid;
  grid-template-columns: minmax(140px, 0.9fr) minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(0.85rem, 2vw, 1.35rem);
  align-items: start;
}

.np-cofounder-dossier__identity {
  text-align: center;
}

.np-cofounder-dossier__portrait {
  width: 104px;
  height: 104px;
  margin: 0 auto 0.65rem;
  padding: 0.4rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 35%, rgba(90, 110, 78, 0.28), rgba(10, 14, 10, 0.92) 70%);
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(100, 124, 88, 0.4);
}

.np-cofounder-dossier__portrait .np-war-portrait {
  width: 100%;
  height: 100%;
}

.np-cofounder-dossier__identity h3 {
  margin: 0;
  font-family: 'Cinzel', 'Times New Roman', serif;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  font-variant: small-caps;
  color: rgba(214, 226, 200, 0.96);
}

.np-cofounder-dossier__meta {
  margin: 0.45rem 0 0;
  font-size: 0.68rem;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: rgba(140, 160, 128, 0.82);
}

.np-cofounder-dossier__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.65rem;
  padding: 0.35rem 0.15rem;
  border-left: 1px solid rgba(80, 100, 70, 0.25);
  border-right: 1px solid rgba(80, 100, 70, 0.25);
}

.np-cofounder-dossier__field {
  padding: 0.4rem 0.25rem;
  border-top: 1px solid rgba(70, 88, 62, 0.22);
}

.np-cofounder-dossier__field-label {
  display: block;
  font-size: 0.48rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(120, 142, 108, 0.72);
}

.np-cofounder-dossier__field-value {
  display: block;
  margin-top: 0.12rem;
  font-family: 'Cinzel', 'Times New Roman', serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(224, 234, 210, 0.94);
}

.np-cofounder-dossier__combat {
  padding: 0.15rem 0.05rem;
}

.np-cofounder-dossier__combat h4 {
  margin: 0 0 0.55rem;
  font-size: 0.58rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: rgba(130, 158, 110, 0.85);
}

.np-cofounder-dossier__event {
  margin: 0 0 0.5rem;
  padding: 0.4rem 0.35rem;
  font-size: 0.72rem;
  line-height: 1.4;
  color: rgba(186, 200, 172, 0.88);
  background: rgba(0, 0, 0, 0.18);
  border-left: 2px solid rgba(100, 124, 88, 0.35);
}

.np-cofounder-dossier__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(80, 100, 70, 0.28);
}

.np-cofounder-dossier__freshness {
  margin: 0;
  font-size: 0.6rem;
  color: rgba(120, 140, 108, 0.62);
}

.np-cofounder-dossier__actions a {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Legacy sheet classes hidden if present */
.np-cofounder-sheet {
  display: none;
}

@media (max-width: 900px) {
  .np-cofounder-dossier__layout {
    grid-template-columns: 1fr;
  }

  .np-cofounder-dossier__stats {
    border-left: none;
    border-right: none;
    border-top: 1px solid rgba(80, 100, 70, 0.25);
    border-bottom: 1px solid rgba(80, 100, 70, 0.25);
    padding: 0.65rem 0;
  }
}

@media (max-width: 1100px) {
  .np-cofounders__standards {
    grid-template-columns: none;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0.85rem;
    padding-inline: clamp(0.5rem, 3vw, 1rem);
  }

  .np-cofounder-standard {
    flex: 0 0 min(82vw, 210px);
    min-width: min(82vw, 210px);
    scroll-snap-align: center;
  }
}

@media (max-width: 430px) {
  .np-cofounder-standard {
    flex: 0 0 84vw;
    min-width: 84vw;
  }

  .np-cofounder-dossier__stats {
    grid-template-columns: 1fr;
  }
}
