:root {
  --ink: #0a0a0a;
  --muted: #5d5e61;
  --line: #d0d0d0;
  --paper: #f3f3f3;
  --surface: #ffffff;
  --primary: #901a1e;
  --primary-dark: #6f1115;
  --accent: #db3b0a;
  --accent-dark: #a5000c;
  --accent-soft: #f4e9ea;
  --neutral-soft: #f8f8f8;
  --blue-soft: #f0f4f7;
  --shadow: 0 18px 45px rgba(10, 10, 10, 0.08);
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: Consolas, "Liberation Mono", Menlo, Courier, monospace;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

code {
  font-family: var(--font-mono);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--primary);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.site-logo {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem;
}

.site-nav a {
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.94rem;
  padding: 0.45rem 0.65rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--primary);
}

.hero {
  min-height: min(760px, calc(100vh - 72px));
  display: grid;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 38%, rgba(255, 255, 255, 0.22) 72%),
    url("assets/biohpc-research-computing.png") center right / cover no-repeat;
  border-bottom: 1px solid var(--line);
  padding: clamp(4rem, 7vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
}

.hero-copy {
  max-width: 690px;
}

.hero .lead {
  color: #151515;
  font-weight: 650;
}

.eyebrow {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.12;
  margin: 0 0 0.8rem;
}

h1 {
  font-size: clamp(3.4rem, 8vw, 6.8rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1rem;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  max-width: 760px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.button {
  align-items: center;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-weight: 750;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.72rem 1rem;
  text-decoration: none;
}

.button:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.button.secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--primary);
}

.button.secondary:hover {
  background: var(--accent-soft);
  border-color: #edcfd4;
}

.button.disabled,
.button.disabled:hover {
  background: var(--neutral-soft);
  border-color: var(--line);
  color: var(--muted);
  cursor: not-allowed;
  pointer-events: none;
}

.link-disabled {
  color: var(--muted);
  font-weight: 750;
}

.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section.alt {
  background: var(--neutral-soft);
  border-block: 1px solid var(--line);
}

.section-heading {
  max-width: 790px;
  margin-bottom: 1.8rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.glance-list {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.stat-value {
  color: var(--primary);
  display: block;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 850;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.stat-card h3 {
  margin-bottom: 0;
}

.glance-list div {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  font-weight: 750;
  gap: 0.6rem;
  padding: 0.9rem 1rem;
}

.glance-list span {
  color: var(--primary);
  font-weight: 900;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.card p,
.step p,
.callout p {
  color: var(--muted);
}

.number {
  align-items: center;
  background: var(--accent-soft);
  border-radius: 8px;
  color: var(--primary-dark);
  display: inline-flex;
  font-weight: 800;
  height: 2rem;
  justify-content: center;
  margin-bottom: 0.85rem;
  width: 2rem;
}

.workflow {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.step {
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 1rem;
  grid-template-columns: 2.2rem 1fr;
  padding: 1rem;
}

.model {
  background: var(--blue-soft);
  border: 1px solid #c8d8dd;
  border-radius: 8px;
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}

.org-chart {
  gap: 0;
  justify-items: center;
}

.model-pi {
  border-color: var(--primary);
  max-width: 18rem;
  text-align: center;
}

.model-branches {
  border-top: 1px solid #9eb4bc;
  border-inline: 1px solid #9eb4bc;
  height: 2rem;
  margin-top: 1rem;
  width: 70%;
}

.model-branches::before {
  background: #9eb4bc;
  content: "";
  display: block;
  height: 1rem;
  margin: -1rem auto 0;
  width: 1px;
}

.model-projects {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
}

.model-project {
  display: grid;
  gap: 0.5rem;
}

.model-project span,
.model-project em {
  color: var(--muted);
}

.model-project em {
  font-style: normal;
}

.model-row {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr 1.4fr 1.2fr;
}

.model-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}

.callout {
  background: var(--accent-soft);
  border: 1px solid #e3c8b3;
  border-radius: 8px;
  padding: 1.25rem;
}

.callout.spaced {
  margin-top: 1rem;
}

.info-stack {
  display: grid;
  gap: 1rem;
}

.additional-info section {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.additional-info section + section {
  margin-top: 1rem;
}

.sub-callout {
  background: var(--blue-soft);
  border: 1px solid #c8d8dd;
  border-radius: 8px;
  margin-top: 1rem;
  padding: 1rem;
}

.sub-callout h3 {
  font-size: 1rem;
}

.sub-callout p {
  color: var(--muted);
  margin-bottom: 0;
}

.page-hero {
  background:
    linear-gradient(90deg, rgba(244, 233, 234, 0.98) 0%, rgba(244, 233, 234, 0.94) 50%, rgba(244, 233, 234, 0.68) 100%),
    url("assets/biohpc-research-computing.png") center right / cover no-repeat;
  border-bottom: 1px solid var(--line);
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.header-art {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid #e3c8b3;
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--ink);
  justify-self: end;
  max-width: 34rem;
  padding: 1.25rem;
  width: 100%;
}

.header-art strong {
  font-weight: 800;
}

.header-art span {
  color: var(--muted);
  font-size: 0.88rem;
}

.docs-art {
  align-items: end;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.4fr 1fr;
}

.art-window,
.art-side-card,
.mail-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
}

.art-window {
  min-height: 12rem;
}

.art-window::before {
  background: linear-gradient(90deg, var(--primary) 0 22%, #9eb4bc 22% 48%, var(--line) 48% 100%);
  border-radius: 999px;
  content: "";
  height: 0.45rem;
  margin-bottom: 0.45rem;
  width: 62%;
}

.contact-art {
  display: grid;
  gap: 1rem;
}

.mail-card {
  position: relative;
}

.mail-card::before {
  border-bottom: 1px solid #9eb4bc;
  border-left: 1px solid #9eb4bc;
  content: "";
  height: 3rem;
  position: absolute;
  right: 1.1rem;
  top: 1rem;
  transform: rotate(-45deg);
  width: 3rem;
}

.mail-line {
  background: #9eb4bc;
  height: 1px;
  margin: 0 auto;
  width: 84%;
}

.support-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.support-chips span {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 750;
  padding: 0.55rem 0.7rem;
}

.hero-onboarding {
  align-items: center;
}

.hero-flow {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  justify-self: end;
  max-width: 23rem;
  padding: 1.25rem;
  width: 100%;
}

.hero-flow div {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.2rem;
  padding: 0.7rem 0.85rem;
  text-align: center;
}

.hero-flow strong {
  font-weight: 750;
}

.hero-flow small {
  color: var(--muted);
  font-size: 0.84rem;
}

.hero-flow span {
  height: 1.3rem;
  position: relative;
}

.hero-flow span::before {
  background: var(--primary);
  content: "";
  display: block;
  height: 100%;
  margin: 0 auto;
  width: 1px;
}

.hero-flow span::after {
  border-bottom: 1px solid var(--primary);
  border-right: 1px solid var(--primary);
  bottom: 0.1rem;
  content: "";
  display: block;
  height: 0.4rem;
  left: calc(50% - 0.2rem);
  position: absolute;
  transform: rotate(45deg);
  width: 0.4rem;
}

.hero-note {
  color: var(--muted);
  margin-top: 1rem;
  max-width: 760px;
}

.project-map {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  justify-self: end;
  max-width: 34rem;
  padding: 1.25rem;
  width: 100%;
}

.project-map-pi {
  border: 1px solid var(--primary);
  border-radius: 8px;
  justify-self: center;
  padding: 0.75rem 1rem;
  text-align: center;
  width: min(100%, 18rem);
}

.project-map-branches {
  border-inline: 1px solid #9eb4bc;
  border-top: 1px solid #9eb4bc;
  height: 2rem;
  justify-self: center;
  margin-top: 1rem;
  width: 72%;
}

.project-map-branches::before {
  background: #9eb4bc;
  content: "";
  display: block;
  height: 1rem;
  margin: -1rem auto 0;
  width: 1px;
}

.project-map-spaces {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-map-spaces div {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.45rem;
  padding: 0.85rem;
  text-align: center;
}

.project-map-spaces strong {
  font-weight: 750;
}

.project-map-spaces span,
.project-map-spaces em {
  color: var(--muted);
  font-size: 0.86rem;
}

.project-map-spaces em {
  border-top: 1px solid var(--line);
  font-style: normal;
  padding-top: 0.45rem;
}

.plain-list {
  margin: 0;
  padding-left: 1.15rem;
}

.plain-list li {
  margin: 0.35rem 0;
}

.doc-source-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.doc-source-note {
  color: var(--muted);
  font-weight: 750;
  margin-top: 1.25rem;
}

.pricing-examples {
  margin-top: 1rem;
}

.pricing-rule {
  border-color: #e3c8b3;
  box-shadow: 0 20px 50px rgba(144, 26, 30, 0.13);
}

.price-charge {
  background: var(--accent-soft);
  border: 1px solid #e3c8b3;
  border-radius: 8px;
  padding: 0.75rem;
}

.resource-table {
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: block;
  overflow-x: auto;
  width: 100%;
}

.resource-table th,
.resource-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.9rem;
  text-align: left;
  vertical-align: top;
}

.resource-table tr:last-child td {
  border-bottom: 0;
}

.form-table {
  box-shadow: none;
  font-size: 0.94rem;
}

.form-table th,
.form-table td {
  padding: 0.7rem;
}

.email-link {
  align-items: center;
  background: var(--accent-soft);
  border: 1px solid #e3c8b3;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 750;
  gap: 0.45rem;
  padding: 0.62rem 0.8rem;
  text-decoration: none;
}

.email-link::before {
  content: "Email";
  color: var(--muted);
  font-weight: 700;
}

.contact-primary-section {
  padding-top: clamp(3.5rem, 8vw, 6rem);
}

.contact-card {
  margin: 0 auto;
  max-width: 860px;
  padding: clamp(1.65rem, 4vw, 2.6rem);
  box-shadow: 0 24px 60px rgba(144, 26, 30, 0.13);
}

.contact-email {
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-weight: 850;
  padding: 0.78rem 1rem;
}

.statistics-hero h1 {
  font-size: clamp(3rem, 7vw, 5.8rem);
}

.dashboard-art {
  display: grid;
  gap: 1rem;
}

.dashboard-art div:first-child {
  display: grid;
  gap: 0.45rem;
}

.dashboard-bars {
  align-items: end;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(4, 1fr);
  min-height: 8rem;
  padding-top: 1rem;
}

.dashboard-bars span {
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 8px 8px 0 0;
  min-height: 2.5rem;
}

.dashboard-bars span:nth-child(1) {
  height: 48%;
}

.dashboard-bars span:nth-child(2) {
  height: 78%;
}

.dashboard-bars span:nth-child(3) {
  height: 62%;
}

.dashboard-bars span:nth-child(4) {
  height: 92%;
}

.statistics-dashboard {
  background: var(--paper);
}

.dashboard-message,
.dashboard-inline-message {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--muted);
  font-weight: 750;
  padding: 1.1rem 1.25rem;
}

.dashboard-message.error {
  background: var(--accent-soft);
  border-color: #e3c8b3;
  color: var(--primary-dark);
}

.dashboard-block + .dashboard-block {
  margin-top: clamp(2.6rem, 6vw, 4.5rem);
}

.statistics-info-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding: 1.1rem 1.25rem;
}

.statistics-info-panel h2 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  margin-bottom: 0.45rem;
}

.statistics-info-panel p {
  color: var(--muted);
  margin-bottom: 0.85rem;
  max-width: 58rem;
}

.statistics-updated {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
}

.statistics-updated span {
  color: var(--muted);
  font-weight: 750;
}

.statistics-updated strong {
  color: var(--text);
  font-size: 1.05rem;
}

.dashboard-metrics,
.dashboard-charts,
.dashboard-tables {
  display: grid;
  gap: 1rem;
}

.dashboard-metrics {
  gap: 1.25rem;
}

.dashboard-metric-section {
  display: grid;
  gap: 0.75rem;
}

.dashboard-metric-section-title {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0;
  margin-bottom: 0;
  text-transform: uppercase;
}

.dashboard-metric-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.dashboard-metric-grid[data-count="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-charts,
.dashboard-tables {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-metric-card,
.dashboard-chart-card,
.dashboard-table-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.dashboard-metric-card {
  min-height: 9rem;
}

.dashboard-metric-value {
  color: var(--primary);
  display: block;
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  font-weight: 850;
  line-height: 1;
  margin-bottom: 0.75rem;
  overflow-wrap: anywhere;
}

.dashboard-metric-card h3,
.dashboard-chart-card h3,
.dashboard-table-card h3 {
  font-size: 1.05rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.metric-trend {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
  margin-bottom: 0;
}

.metric-trend.up {
  color: #2f6f3e;
}

.metric-trend.down {
  color: var(--primary-dark);
}

.chart-canvas-wrap {
  height: 20rem;
  min-height: 20rem;
  position: relative;
}

.table-card-header {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.table-card-header h3 {
  margin-bottom: 0;
}

.table-export,
.dashboard-table th button {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--primary);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  padding: 0.45rem 0.65rem;
}

.table-export:hover,
.dashboard-table th button:hover {
  background: var(--accent-soft);
}

.table-wrap {
  overflow-x: auto;
}

.dashboard-table {
  box-shadow: none;
  min-width: 36rem;
}

.dashboard-table th button {
  border-color: transparent;
  padding-inline: 0;
  text-align: left;
}

.dashboard-table th button::after {
  color: var(--muted);
  content: " sort";
  font-size: 0.78rem;
  font-weight: 700;
}

.dashboard-table th button[data-direction="asc"]::after {
  content: " asc";
}

.dashboard-table th button[data-direction="desc"]::after {
  content: " desc";
}

.footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.78);
  padding: 2rem 0;
}

.footer a {
  color: #fff;
}

.footer p {
  margin-bottom: 0.5rem;
}

@media (max-width: 860px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 48%, rgba(255, 255, 255, 0.62) 100%),
      url("assets/biohpc-research-computing.png") center / cover no-repeat;
    min-height: 660px;
  }

  .page-hero {
    background:
      linear-gradient(180deg, rgba(244, 233, 234, 0.98) 0%, rgba(244, 233, 234, 0.94) 58%, rgba(244, 233, 234, 0.82) 100%),
      url("assets/biohpc-research-computing.png") center / cover no-repeat;
  }

  .grid.four,
  .grid.three,
  .grid.two,
  .stats-grid,
  .glance-list,
  .model-projects,
  .project-map-spaces,
  .model-row,
  .dashboard-metrics,
  .dashboard-metric-grid,
  .dashboard-metric-grid[data-count="3"],
  .dashboard-charts,
  .dashboard-tables {
    grid-template-columns: 1fr;
  }

  .hero-flow {
    justify-self: stretch;
    max-width: none;
  }

  .project-map {
    justify-self: stretch;
    max-width: none;
  }

  .header-art {
    justify-self: stretch;
    max-width: none;
  }

  .project-map-branches {
    border-left: 1px solid #9eb4bc;
    border-right: 0;
    border-top: 0;
    height: 1rem;
    margin-top: 0.75rem;
    width: 1px;
  }

  .project-map-branches::before {
    display: none;
  }

  .model-branches {
    border-left: 1px solid #9eb4bc;
    border-right: 0;
    border-top: 0;
    height: 1rem;
    margin-top: 0.75rem;
    width: 1px;
  }

  .model-branches::before {
    display: none;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 1.25rem, 1120px);
  }

  .site-nav a {
    padding-inline: 0.45rem;
  }

  .actions,
  .button {
    width: 100%;
  }

  .docs-art {
    grid-template-columns: 1fr;
  }

  .step {
    grid-template-columns: 1fr;
  }

  .table-card-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
