/* Local-only refinement. Earlier design is preserved in snapshots/before-polish. */
html { background: #0b0b0b; color-scheme: dark; }
body.theme-monochrome { overflow: auto; --accent-text: #db784f; }
.theme-monochrome .concepts { min-height: 0; }
.theme-monochrome .concept,
.theme-monochrome .about-page {
  display: none;
  position: relative;
  inset: auto;
  overflow: clip;
  min-height: calc(100svh - 66px);
  transition: none;
}
.theme-monochrome .is-active { display: block; }
.theme-monochrome .grid-page {
  background-size: var(--grid-size) var(--grid-size);
  background-image:
    linear-gradient(to right, transparent calc(100% - 1px), #ffffff06 1px),
    linear-gradient(to bottom, transparent calc(100% - 1px), #ffffff06 1px);
}
.theme-monochrome .site-header { z-index: 20; }
.theme-monochrome .site-header nav { font-size: 11px; }
.theme-monochrome .site-header nav a { padding: 10px 0; transition: color .25s ease; }
.theme-monochrome .site-header nav a[aria-current="page"]::after { right: 0; }
.theme-monochrome .grid-page:has(.site-header:hover) .interactive-grid { opacity: 0 !important; transition: none; }
.theme-monochrome a:focus-visible,
.theme-monochrome button:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 6px; }
.theme-monochrome .mono-hero {
  position: relative;
  inset: auto;
  margin: 0 auto;
  padding: 122px var(--side) 52px;
  max-width: 1680px;
  min-height: calc(100svh - 162px);
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr);
  gap: clamp(24px, 4vw, 70px);
  align-items: center;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}
.mono-hero::before, .mono-hero::after, .assemble-stage::before { display: none; }
.theme-monochrome .assemble-stage {
  width: 100%;
  max-width: 540px;
  aspect-ratio: 420 / 520;
  justify-self: center;
  padding: 0;
  overflow: visible;
  background: radial-gradient(ellipse, #bd512810, transparent 68%);
}
.theme-monochrome .assemble-logo { width: 46%; min-width: 0; filter: drop-shadow(0 14px 38px #0009); }
.theme-monochrome .pks-network { inset: 0; width: 100%; height: 100%; opacity: 1; overflow: visible; }
.theme-monochrome .pks-backbone { stroke: #ffffff28; stroke-width: 1; }
.theme-monochrome .pks-branches { display: none; }
.theme-monochrome .pks-signal { animation: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; }
.theme-monochrome .pks-domain { animation: none; fill: #74746e; stroke: #0b0b0b; stroke-width: 1; }
.pks-carrier { fill: #e99067; }
.theme-monochrome .mono-hero-copy { padding: 0 0 14px; min-width: 0; }
.theme-monochrome .mono-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  color: #9b9b95;
  font: 400 11px/1.5 var(--mono);
  letter-spacing: .02em;
  text-transform: none;
}
.california-icon { width: 17px; height: 23px; flex: none; stroke: #fff; stroke-width: 2.8; stroke-linejoin: round; stroke-linecap: round; }
.theme-monochrome .mono-hero-copy h1 {
  margin: 0;
  font-size: clamp(38px, 5.2vw, 86px);
  font-weight: 600;
  font-stretch: 100%;
  letter-spacing: -.055em;
  line-height: 1.04;
}
.theme-monochrome .mono-hero-copy h1 em { color: #a2a29b; font-weight: 340; }
.theme-monochrome .mono-tagline {
  margin-top: 25px;
  font-size: clamp(24px, 2.75vw, 44px);
  line-height: 1.2;
  letter-spacing: -.035em;
  color: #c5c5bd;
  font-weight: 350;
}
.theme-monochrome .mono-cta {
  display: inline-flex;
  align-items: center;
  gap: 25px;
  margin-top: 38px;
  padding: 13px 0;
  color: #ecece5;
  font: 400 13px/1.4 var(--sans);
  letter-spacing: 0;
  text-transform: none;
  transition: color .25s, border-color .25s;
}
.theme-monochrome .mono-cta span { margin: 0; color: var(--accent-text); font-size: 19px; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.theme-monochrome .mono-cta:hover { color: var(--accent-text); }
.theme-monochrome .home-contact {
  display: flex;
  position: relative;
  inset: auto;
  z-index: 5;
  align-items: center;
  width: fit-content;
  margin: 0 var(--side) 26px auto;
  padding-top: 18px;
  gap: 15px;
  border-top: 1px solid #ffffff20;
  font: 400 13px/1.5 var(--sans);
  letter-spacing: 0;
  text-transform: none;
  color: #c1c1b9;
}
.home-contact span:first-child { color: #898982; font-size: 12px; }
.home-contact span:last-child { color: var(--accent-text); }
.theme-monochrome .legal-footer {
  position: relative;
  inset: auto;
  min-height: 66px;
  margin: 0 var(--side);
  padding: 22px 0;
  border-top: 1px solid #ffffff13;
  text-align: right;
}
.theme-monochrome .legal-footer a { color: #8e8e87; font-size: 10px; }
.theme-monochrome .about-heading { padding-bottom: 23px; border-color: #ffffff24; }
.theme-monochrome .about-heading h1,
.theme-monochrome .about-heading h2 { font-weight: 400; letter-spacing: -.035em; }
.theme-monochrome .team-history { color: #9a9a93; line-height: 1.65; }
.theme-monochrome .team-role { line-height: 1.65; }
.theme-monochrome .portrait-frame { border: 1px solid rgba(23,23,22,.12); background: #dddcd6; }
/* Keep the original portrait interaction unchanged by the monochrome theme. */
.theme-monochrome .portrait-links a { color: #fdfcf8; background: rgba(23,23,22,.9); border: 0; }
.theme-monochrome .portrait-links a:hover,
.theme-monochrome .portrait-links a:focus-visible { color: #171716; background: #fdfcf8; outline: 1px solid #171716; outline-offset: 2px; }
.theme-monochrome .mission-quote,
.theme-monochrome .affiliation-copy a { color: var(--accent-text); }
.theme-monochrome .affiliation-copy a { text-decoration-color: #db784f80; text-underline-offset: .17em; }
.theme-monochrome .affiliation-logo-jbei { filter: none; }
.theme-monochrome .project-card,
.theme-monochrome .research-card {
  background: #101010d9;
  border-color: #ffffff25;
  transition: border-color .35s ease, background-color .35s ease, transform .45s cubic-bezier(.2,.8,.2,1);
}
.theme-monochrome .project-card:hover,
.theme-monochrome .project-card:focus-visible,
.theme-monochrome .project-card:focus-within {
  color: #f5f5f1;
  background: #1b1714;
  border-color: #bd512877;
  transform: translateY(-2px);
}
.theme-monochrome .project-copy strong { letter-spacing: -.035em; }
.theme-monochrome .project-copy small,
.theme-monochrome .project-card:hover .project-copy small { color: #aaa9a0; line-height: 1.6; }
.theme-monochrome .project-card:hover .project-index { color: #99998f; }
.theme-monochrome .project-maintainer,
.theme-monochrome .project-card:hover .project-maintainer { color: var(--accent-text) !important; }
.theme-monochrome .project-card:hover .project-action { color: #eee; border-color: #ffffff45; }
.theme-monochrome .project-action { min-height: 40px; transition: background-color .25s, border-color .25s; }
.theme-monochrome .project-action:hover,
.theme-monochrome .project-card:hover .project-action:hover { background: #994020; color: white; border-color: #bd5128; }
.theme-monochrome .project-news-copy p,
.theme-monochrome .project-panel > p { color: #aaa9a0; line-height: 1.65; }
.theme-monochrome .project-news-item > a,
.theme-monochrome .project-panel-link { color: var(--accent-text); }
@media (max-width: 820px) {
  .theme-monochrome .mono-hero { grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr); grid-template-rows: auto; gap: 22px; }
  .theme-monochrome .mono-hero-copy h1 { font-size: clamp(32px, 5.1vw, 44px); }
  .theme-monochrome .mono-kicker { font-size: 10px; margin-bottom: 20px; }
  .theme-monochrome .mono-tagline { font-size: clamp(22px, 3.1vw, 28px); }
}
@media (max-width: 620px) {
  .theme-monochrome { --side: 24px; }
  .theme-monochrome .site-header { align-items: center; flex-wrap: wrap; gap: 18px; }
  .theme-monochrome .brand-mark { gap: 9px; }
  .theme-monochrome .brand-name { font-size: 12px; }
  .theme-monochrome .brand-symbol { width: 22px; height: 25px; }
  .theme-monochrome .site-header nav { font-size: 10px; gap: 16px; }
  .theme-monochrome .mono-hero { padding-top: 115px; padding-bottom: 36px; grid-template-columns: 1fr; gap: 18px; min-height: 0; }
  .theme-monochrome .assemble-stage { width: min(76vw, 320px); }
  .theme-monochrome .mono-hero-copy { text-align: center; align-items: center; padding: 0; }
  .theme-monochrome .mono-hero-copy h1 { font-size: clamp(31px, 8.5vw, 51px); }
  .theme-monochrome .mono-kicker { margin-bottom: 17px; }
  .theme-monochrome .mono-tagline { margin-top: 18px; font-size: 26px; }
  .theme-monochrome .mono-cta { align-self: center; margin-top: 23px; }
  .theme-monochrome .home-contact { margin: 0 auto 24px; font-size: 12px; gap: 10px; }
  .theme-monochrome .about-content,
  .theme-monochrome .projects-content,
  .theme-monochrome .legal-content { padding-top: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  .theme-monochrome *, .theme-monochrome *::before, .theme-monochrome *::after { animation: none !important; transition: none !important; }
  .theme-monochrome .interactive-grid, .theme-monochrome .grid-trail { display: none; }
}
